From 1b01911d64cd1ca470726c46f4a63ad41e59ac75 Mon Sep 17 00:00:00 2001 From: CodeSchwert Date: Fri, 2 Aug 2024 02:47:37 +0000 Subject: [PATCH] chore: update game bridge to 1.46.10 --- Web/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Web/index.js b/Web/index.js index 4a654e0..88e42e0 100644 --- a/Web/index.js +++ b/Web/index.js @@ -1,4 +1,4 @@ -!function(e,t,r,n,i){var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},s="function"==typeof a[n]&&a[n],o=s.cache||{},c="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function f(t,r){if(!o[t]){if(!e[t]){var i="function"==typeof a[n]&&a[n];if(!r&&i)return i(t,!0);if(s)return s(t,!0);if(c&&"string"==typeof t)return c(t);var u=Error("Cannot find module '"+t+"'");throw u.code="MODULE_NOT_FOUND",u}l.resolve=function(r){var n=e[t][1][r];return null!=n?n:r},l.cache={};var d=o[t]=new f.Module(t);e[t][0].call(d.exports,l,d,d.exports,this)}return o[t].exports;function l(e){var t=l.resolve(e);return!1===t?{}:f(t)}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=o,f.parent=s,f.register=function(t,r){e[t]=[function(e,t){t.exports=r},{}]},Object.defineProperty(f,"root",{get:function(){return a[n]}}),a[n]=f;for(var u=0;u{let t=JSON.stringify(e);if(console.log(`callbackToGame: ${t}`),console.log(t),void 0!==window.ue){if(void 0===window.ue.jsconnector){let e="Unreal JSConnector not defined";throw console.error(e),Error(e)}window.ue.jsconnector.sendtogame(t)}else if("undefined"!=typeof blu_event)blu_event("sendtogame",t);else if("undefined"!=typeof UnityPostMessage)UnityPostMessage(t);else if("undefined"!==window.Unity)window.Unity.call(t);else{let e="No available game callbacks to call from ImmutableSDK game-bridge";throw console.error(e),Error(e)}},b=()=>{if(null==n)throw Error("No Passport client");return n},g=e=>null!=e?(i=e,console.log("IMX provider set"),!0):(console.log("No IMX provider"),!1),y=()=>{if(null==i)throw Error("No IMX provider");return i},v=e=>null!=e?(a=e,console.log("zkEvm provider set"),!0):(console.log("No zkEvm provider"),!1),w=()=>{if(null==a)throw Error("No zkEvm provider");return a},_=e=>Date.now()-e;(0,u.track)(l,"loadedGameBridge",{sdkVersionTag:h}),window.callFunction=async e=>{console.log(`Call function ${e}`);let t=null,r=null,o=Date.now();try{let E=JSON.parse(e);t=E.fxName,r=E.requestId;let A=E.data;switch((0,u.track)(l,"startedCallFunction",{function:t}),t){case p.init:{let e=JSON.parse(A),i=e?.redirectUri;if(!n){let t={baseConfig:new f.ImmutableConfiguration({environment:e.environment}),clientId:e.clientId,audience:"platform_api",scope:"openid offline_access profile email transact",redirectUri:i??"https://localhost:3000/",logoutRedirectUri:e?.logoutRedirectUri,crossSdkBridgeEnabled:!0};n=new c.Passport(t),(0,u.trackDuration)(l,"initialisedPassport",_(o))}m({responseFor:t,requestId:r,success:!0,error:null});let{engineVersion:a}=e;s={gameBridgeTag:h,gameBridgeSha:"__SDK_VERSION_SHA__",engine:a.engine,engineVersion:a.engineVersion,engineSdkVersion:a.engineSdkVersion??"",platform:a.platform,platformVersion:a.platformVersion,deviceModel:a.deviceModel??"N/A"},console.log(`Version check: ${JSON.stringify(s)}`),(0,u.trackDuration)(l,"completedInitGameBridge",_(o),{...s});break}case p.initDeviceFlow:{let e=await b().loginWithDeviceFlow();(0,u.trackDuration)(l,"performedInitDeviceFlow",_(o)),m({responseFor:t,requestId:r,success:!0,error:null,code:e.code,deviceCode:e.deviceCode,url:e.url,interval:e.interval});break}case p.relogin:{let e=await b().login({useCachedSession:!0}),n=null!==e;if(!n)throw Error("Failed to re-login");(0,u.identify)({passportId:e?.sub}),(0,u.trackDuration)(l,"performedRelogin",_(o),{succeeded:n}),m({responseFor:t,requestId:r,success:null!==e,error:null});break}case p.reconnect:{let e=!1,n=await b().login({useCachedSession:!0});if(n){let t=await b().connectImx();e=g(t),(0,u.identify)({passportId:n?.sub})}if(!e)throw Error("Failed to reconnect");(0,u.trackDuration)(l,"performedReconnect",_(o),{succeeded:null!==n}),m({responseFor:t,requestId:r,success:e,error:null});break}case p.getPKCEAuthUrl:{let e=b().loginWithPKCEFlow();(0,u.trackDuration)(l,"performedGetPkceAuthUrl",_(o)),m({responseFor:t,requestId:r,success:!0,error:null,result:e});break}case p.loginPKCE:{let e=JSON.parse(A),n=await b().loginWithPKCEFlowCallback(e.authorizationCode,e.state);(0,u.identify)({passportId:n.sub}),(0,u.trackDuration)(l,"performedLoginPkce",_(o)),m({responseFor:t,requestId:r,success:!0,error:null});break}case p.connectPKCE:{let e=JSON.parse(A),n=await b().loginWithPKCEFlowCallback(e.authorizationCode,e.state),i=await b().connectImx(),a=g(i);if(!a)throw Error("Failed to connect via PKCE");(0,u.identify)({passportId:n.sub}),(0,u.trackDuration)(l,"performedConnectPkce",_(o),{succeeded:a}),m({responseFor:t,requestId:r,success:a,error:null});break}case p.loginConfirmCode:{let e=JSON.parse(A),n=await b().loginWithDeviceFlowCallback(e.deviceCode,e.interval,e.timeoutMs??null);(0,u.identify)({passportId:n.sub}),(0,u.trackDuration)(l,"performedLoginConfirmCode",_(o)),m({responseFor:t,requestId:r,success:!0,error:null});break}case p.connectConfirmCode:{let e=JSON.parse(A),n=await b().loginWithDeviceFlowCallback(e.deviceCode,e.interval,e.timeoutMs??null),i=await b().connectImx(),a=g(i);if(!a)throw Error("Failed to connect via confirm code");(0,u.identify)({passportId:n.sub}),(0,u.trackDuration)(l,"performedConnectConfirmCode",_(o),{succeeded:a}),m({responseFor:t,requestId:r,success:a,error:null});break}case p.logout:{let e=await b().logoutDeviceFlow();i=null,a=null,(0,u.trackDuration)(l,"performedGetLogoutUrl",_(o)),m({responseFor:t,requestId:r,success:!0,error:null,result:e});break}case p.getAccessToken:{let e=await b().getAccessToken(),n=void 0!==e;if(!n)throw Error("No access token");(0,u.trackDuration)(l,"performedGetAccessToken",_(o)),m({responseFor:t,requestId:r,success:n,error:null,result:e});break}case p.getIdToken:{let e=await b().getIdToken(),n=void 0!==e;if(!n)throw Error("No ID token");(0,u.trackDuration)(l,"performedGetIdToken",_(o)),m({responseFor:t,requestId:r,success:n,error:null,result:e});break}case p.getEmail:{let e=await b().getUserInfo(),n=e?.email!==void 0;if(!n)throw Error("No email");(0,u.trackDuration)(l,"performedGetEmail",_(o)),m({responseFor:t,requestId:r,success:n,error:null,result:e?.email});break}case p.getPassportId:{let e=await b().getUserInfo(),n=e?.sub!==void 0;if(!n)throw Error("No Passport ID");(0,u.trackDuration)(l,"performedGetPassportId",_(o)),m({responseFor:t,requestId:r,success:n,error:null,result:e?.sub});break}case p.getLinkedAddresses:{let e=await b().getLinkedAddresses();(0,u.trackDuration)(l,"performedGetLinkedAddresses",_(o)),m({responseFor:t,requestId:r,success:!0,error:null,result:e});break}case p.imx.getAddress:{let e=await y().getAddress();(0,u.trackDuration)(l,"performedImxGetAddress",_(o)),m({responseFor:t,requestId:r,success:!0,error:null,result:e});break}case p.imx.isRegisteredOffchain:{let e=await y().isRegisteredOffchain();(0,u.trackDuration)(l,"performedImxIsRegisteredOffchain",_(o)),m({responseFor:t,requestId:r,success:!0,error:null,result:e});break}case p.imx.registerOffchain:{let e=await y().registerOffchain();(0,u.trackDuration)(l,"performedImxRegisterOffchain",_(o)),m({responseFor:t,requestId:r,success:!0,error:null,...e});break}case p.imx.transfer:{let e=JSON.parse(A),n=await y().transfer(e);(0,u.trackDuration)(l,"performedImxTransfer",_(o)),m({responseFor:t,requestId:r,success:!0,error:null,...n});break}case p.imx.batchNftTransfer:{let e=JSON.parse(A),n=await y().batchNftTransfer(e);(0,u.trackDuration)(l,"performedImxBatchNftTransfer",_(o)),m({responseFor:t,requestId:r,success:!0,error:null,...n});break}case p.zkEvm.connectEvm:{let e=b().connectEvm(),n=v(e);if(!n)throw Error("Failed to connect to EVM");(0,u.trackDuration)(l,"performedZkevmConnectEvm",_(o),{succeeded:n}),m({responseFor:t,requestId:r,success:n,error:null});break}case p.zkEvm.sendTransaction:{let e=JSON.parse(A),n=await w().request({method:"eth_sendTransaction",params:[e]}),i=null!=n;if(!i)throw Error("Failed to send transaction");(0,u.trackDuration)(l,"performedZkevmSendTransaction",_(o)),m({responseFor:t,requestId:r,success:i,error:null,result:n});break}case p.zkEvm.sendTransactionWithConfirmation:{let e=JSON.parse(A),n=w(),i=new d.providers.Web3Provider(n),a=i.getSigner(),s=await a.sendTransaction(e),c=await s.wait();(0,u.trackDuration)(l,"performedZkevmSendTransactionWithConfirmation",_(o)),m({responseFor:t,requestId:r,success:!0,error:null,...c});break}case p.zkEvm.requestAccounts:{let e=await w().request({method:"eth_requestAccounts"}),n=null!=e;if(!n)throw Error("Failed to request accounts");(0,u.trackDuration)(l,"performedZkevmRequestAccounts",_(o)),m({responseFor:t,requestId:r,success:n,error:null,accounts:e});break}case p.zkEvm.getBalance:{let e=JSON.parse(A),n=await w().request({method:"eth_getBalance",params:[e.address,e.blockNumberOrTag]}),i=null!=n;if(!i)throw Error("Failed to get balance");(0,u.trackDuration)(l,"performedZkevmGetBalance",_(o)),m({responseFor:t,requestId:r,success:i,error:null,result:n});break}case p.zkEvm.getTransactionReceipt:{let e=JSON.parse(A),n=await w().request({method:"eth_getTransactionReceipt",params:[e.txHash]}),i=null!=n;if(!i)throw Error("Failed to get transaction receipt");(0,u.trackDuration)(l,"performedZkevmGetTransactionReceipt",_(o)),m({responseFor:t,requestId:r,success:i,error:null,...n});break}case"track":{let e=JSON.parse(A),n=JSON.parse(e.properties);(0,u.track)(e.moduleName,e.eventName,n),m({responseFor:t,requestId:r,success:!0,error:null})}}}catch(i){let e;e=i instanceof Error?i:Error(i);let n=i instanceof c.PassportError?i?.type:void 0;(0,u.trackError)(l,t,e,{fxName:t,requestId:r,errorType:n,...s}),(0,u.trackDuration)(l,"failedCallFunction",_(o),{fxName:t,requestId:r,error:e.message}),console.log("callFunction error",i),m({responseFor:t,requestId:r,success:!1,error:i?.message!==null&&i?.message!==void 0?i.message:"Error",errorType:i instanceof c.PassportError?i?.type:null})}},console.log("index.ts loaded"),o=function(){m({responseFor:"init",requestId:"1",success:!0,error:null})},"complete"===document.readyState?o():window.addEventListener("load",o)},{"@imtbl/passport":"iPtWy","@imtbl/config":"ed8SG","@imtbl/metrics":"dO0KB",ethers:"8wpcu"}],iPtWy:[function(e,t,r){let n;var i,a,s,o,c,f,u,d,l,h,p,m,b,g,y=e("@parcel/transformer-js/src/esmodule-helpers.js");y.defineInteropFlag(r),y.export(r,"JsonRpcError",()=>e6),y.export(r,"Passport",()=>tR),y.export(r,"PassportError",()=>K),y.export(r,"ProviderErrorCode",()=>b),y.export(r,"ProviderEvent",()=>m),y.export(r,"RpcErrorCode",()=>g);var v=e("axios"),w=y.interopDefault(v),_=e("@imtbl/metrics"),E=e("@imtbl/generated-clients"),A=e("@imtbl/x-client"),M=e("@imtbl/config"),S=e("oidc-client-ts"),x=e("crypto"),T=e("jwt-decode"),k=y.interopDefault(T),R=e("localforage"),I=y.interopDefault(R),C=e("magic-sdk"),P=e("@magic-ext/oidc"),O=e("@ethersproject/providers"),N=e("@imtbl/toolkit"),j=e("@imtbl/guardian"),B=e("ethers"),L=e("events"),D=e("@0xsequence/abi"),U=e("@0xsequence/core"),F=e("uuid"),q=e("a7402fb880ab41a1");function z(e){return"code"in e&&"message"in e}(i=u||(u={})).AUTHENTICATION_ERROR="AUTHENTICATION_ERROR",i.INVALID_CONFIGURATION="INVALID_CONFIGURATION",i.WALLET_CONNECTION_ERROR="WALLET_CONNECTION_ERROR",i.NOT_LOGGED_IN_ERROR="NOT_LOGGED_IN_ERROR",i.SILENT_LOGIN_ERROR="SILENT_LOGIN_ERROR",i.REFRESH_TOKEN_ERROR="REFRESH_TOKEN_ERROR",i.USER_REGISTRATION_ERROR="USER_REGISTRATION_ERROR",i.USER_NOT_REGISTERED_ERROR="USER_NOT_REGISTERED_ERROR",i.LOGOUT_ERROR="LOGOUT_ERROR",i.TRANSFER_ERROR="TRANSFER_ERROR",i.CREATE_ORDER_ERROR="CREATE_ORDER_ERROR",i.CANCEL_ORDER_ERROR="CANCEL_ORDER_ERROR",i.EXCHANGE_TRANSFER_ERROR="EXCHANGE_TRANSFER_ERROR",i.CREATE_TRADE_ERROR="CREATE_TRADE_ERROR",i.OPERATION_NOT_SUPPORTED_ERROR="OPERATION_NOT_SUPPORTED_ERROR",i.LINK_WALLET_ALREADY_LINKED_ERROR="LINK_WALLET_ALREADY_LINKED_ERROR",i.LINK_WALLET_MAX_WALLETS_LINKED_ERROR="LINK_WALLET_MAX_WALLETS_LINKED_ERROR",i.LINK_WALLET_VALIDATION_ERROR="LINK_WALLET_VALIDATION_ERROR",i.LINK_WALLET_DUPLICATE_NONCE_ERROR="LINK_WALLET_DUPLICATE_NONCE_ERROR",i.LINK_WALLET_GENERIC_ERROR="LINK_WALLET_GENERIC_ERROR";class K extends Error{type;constructor(e,t){super(e),this.type=t}}let H=async(e,t,r)=>{try{return await e()}catch(i){let e;e=(0,v.isAxiosError)(i)&&i.response?.data&&z(i.response.data)?i.response.data.message:i.message;let n=new K(e,t);throw r&&(0,_.trackError)("passport",r,n),n}},V="pkce_state",W="pkce_verifier";class G{areValid(e){if(e){let t=this.isTokenValid(e.access_token),r=this.isTokenValid(e.id_token);return t&&r}return!1}isTokenValid(e){try{let t=(0,k.default)(e),r=t.exp??0,n=Date.now()/1e3+3600;return r>n}catch(e){return!1}}savePKCEData(e){localStorage.setItem(V,e.state),localStorage.setItem(W,e.verifier)}getPKCEData(){let e=localStorage.getItem(V),t=localStorage.getItem(W);return e&&t?{state:e,verifier:t}:null}}var J={warn:(...e)=>{if(void 0===q)return;let t=q?.env?.JEST_WORKER_ID===void 0;t&&console.warn(...e)}};(a=d||(d={})).LOGGED_OUT="loggedOut",a.LOGGED_IN="loggedIn",a.ACCOUNTS_REQUESTED="accountsRequested";let Z=e=>!!e.zkEvm,$=e=>!!e.imx,X="passport-overlay",Y=`${X}-close`,Q=`${X}-try-again`,ee=` +!function(e,t,r,n,i){var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},s="function"==typeof a[n]&&a[n],o=s.cache||{},c="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function f(t,r){if(!o[t]){if(!e[t]){var i="function"==typeof a[n]&&a[n];if(!r&&i)return i(t,!0);if(s)return s(t,!0);if(c&&"string"==typeof t)return c(t);var u=Error("Cannot find module '"+t+"'");throw u.code="MODULE_NOT_FOUND",u}l.resolve=function(r){var n=e[t][1][r];return null!=n?n:r},l.cache={};var d=o[t]=new f.Module(t);e[t][0].call(d.exports,l,d,d.exports,this)}return o[t].exports;function l(e){var t=l.resolve(e);return!1===t?{}:f(t)}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=o,f.parent=s,f.register=function(t,r){e[t]=[function(e,t){t.exports=r},{}]},Object.defineProperty(f,"root",{get:function(){return a[n]}}),a[n]=f;for(var u=0;u{let t=JSON.stringify(e);if(console.log(`callbackToGame: ${t}`),console.log(t),void 0!==window.ue){if(void 0===window.ue.jsconnector){let e="Unreal JSConnector not defined";throw console.error(e),Error(e)}window.ue.jsconnector.sendtogame(t)}else if("undefined"!=typeof blu_event)blu_event("sendtogame",t);else if("undefined"!=typeof UnityPostMessage)UnityPostMessage(t);else if("undefined"!==window.Unity)window.Unity.call(t);else{let e="No available game callbacks to call from ImmutableSDK game-bridge";throw console.error(e),Error(e)}},b=()=>{if(null==n)throw Error("No Passport client");return n},g=e=>null!=e?(i=e,console.log("IMX provider set"),!0):(console.log("No IMX provider"),!1),y=()=>{if(null==i)throw Error("No IMX provider");return i},v=e=>null!=e?(a=e,console.log("zkEvm provider set"),!0):(console.log("No zkEvm provider"),!1),w=()=>{if(null==a)throw Error("No zkEvm provider");return a},_=e=>Date.now()-e;(0,u.track)(l,"loadedGameBridge",{sdkVersionTag:h}),window.callFunction=async e=>{console.log(`Call function ${e}`);let t=null,r=null,o=Date.now();try{let E=JSON.parse(e);t=E.fxName,r=E.requestId;let A=E.data;switch((0,u.track)(l,"startedCallFunction",{function:t}),t){case p.init:{let e=JSON.parse(A),i=e?.redirectUri;if(!n){let t={baseConfig:new f.ImmutableConfiguration({environment:e.environment}),clientId:e.clientId,audience:"platform_api",scope:"openid offline_access profile email transact",redirectUri:i??"https://localhost:3000/",logoutRedirectUri:e?.logoutRedirectUri,crossSdkBridgeEnabled:!0};n=new c.Passport(t),(0,u.trackDuration)(l,"initialisedPassport",_(o))}m({responseFor:t,requestId:r,success:!0,error:null});let{engineVersion:a}=e;s={gameBridgeTag:h,gameBridgeSha:"6b23ebbf5652140482bd3abf199644729674b374",engine:a.engine,engineVersion:a.engineVersion,engineSdkVersion:a.engineSdkVersion??"",platform:a.platform,platformVersion:a.platformVersion,deviceModel:a.deviceModel??"N/A"},console.log(`Version check: ${JSON.stringify(s)}`),(0,u.trackDuration)(l,"completedInitGameBridge",_(o),{...s});break}case p.initDeviceFlow:{let e=await b().loginWithDeviceFlow();(0,u.trackDuration)(l,"performedInitDeviceFlow",_(o)),m({responseFor:t,requestId:r,success:!0,error:null,code:e.code,deviceCode:e.deviceCode,url:e.url,interval:e.interval});break}case p.relogin:{let e=await b().login({useCachedSession:!0}),n=null!==e;if(!n)throw Error("Failed to re-login");(0,u.identify)({passportId:e?.sub}),(0,u.trackDuration)(l,"performedRelogin",_(o),{succeeded:n}),m({responseFor:t,requestId:r,success:null!==e,error:null});break}case p.reconnect:{let e=!1,n=await b().login({useCachedSession:!0});if(n){let t=await b().connectImx();e=g(t),(0,u.identify)({passportId:n?.sub})}if(!e)throw Error("Failed to reconnect");(0,u.trackDuration)(l,"performedReconnect",_(o),{succeeded:null!==n}),m({responseFor:t,requestId:r,success:e,error:null});break}case p.getPKCEAuthUrl:{let e=b().loginWithPKCEFlow();(0,u.trackDuration)(l,"performedGetPkceAuthUrl",_(o)),m({responseFor:t,requestId:r,success:!0,error:null,result:e});break}case p.loginPKCE:{let e=JSON.parse(A),n=await b().loginWithPKCEFlowCallback(e.authorizationCode,e.state);(0,u.identify)({passportId:n.sub}),(0,u.trackDuration)(l,"performedLoginPkce",_(o)),m({responseFor:t,requestId:r,success:!0,error:null});break}case p.connectPKCE:{let e=JSON.parse(A),n=await b().loginWithPKCEFlowCallback(e.authorizationCode,e.state),i=await b().connectImx(),a=g(i);if(!a)throw Error("Failed to connect via PKCE");(0,u.identify)({passportId:n.sub}),(0,u.trackDuration)(l,"performedConnectPkce",_(o),{succeeded:a}),m({responseFor:t,requestId:r,success:a,error:null});break}case p.loginConfirmCode:{let e=JSON.parse(A),n=await b().loginWithDeviceFlowCallback(e.deviceCode,e.interval,e.timeoutMs??null);(0,u.identify)({passportId:n.sub}),(0,u.trackDuration)(l,"performedLoginConfirmCode",_(o)),m({responseFor:t,requestId:r,success:!0,error:null});break}case p.connectConfirmCode:{let e=JSON.parse(A),n=await b().loginWithDeviceFlowCallback(e.deviceCode,e.interval,e.timeoutMs??null),i=await b().connectImx(),a=g(i);if(!a)throw Error("Failed to connect via confirm code");(0,u.identify)({passportId:n.sub}),(0,u.trackDuration)(l,"performedConnectConfirmCode",_(o),{succeeded:a}),m({responseFor:t,requestId:r,success:a,error:null});break}case p.logout:{let e=await b().logoutDeviceFlow();i=null,a=null,(0,u.trackDuration)(l,"performedGetLogoutUrl",_(o)),m({responseFor:t,requestId:r,success:!0,error:null,result:e});break}case p.getAccessToken:{let e=await b().getAccessToken(),n=void 0!==e;if(!n)throw Error("No access token");(0,u.trackDuration)(l,"performedGetAccessToken",_(o)),m({responseFor:t,requestId:r,success:n,error:null,result:e});break}case p.getIdToken:{let e=await b().getIdToken(),n=void 0!==e;if(!n)throw Error("No ID token");(0,u.trackDuration)(l,"performedGetIdToken",_(o)),m({responseFor:t,requestId:r,success:n,error:null,result:e});break}case p.getEmail:{let e=await b().getUserInfo(),n=e?.email!==void 0;if(!n)throw Error("No email");(0,u.trackDuration)(l,"performedGetEmail",_(o)),m({responseFor:t,requestId:r,success:n,error:null,result:e?.email});break}case p.getPassportId:{let e=await b().getUserInfo(),n=e?.sub!==void 0;if(!n)throw Error("No Passport ID");(0,u.trackDuration)(l,"performedGetPassportId",_(o)),m({responseFor:t,requestId:r,success:n,error:null,result:e?.sub});break}case p.getLinkedAddresses:{let e=await b().getLinkedAddresses();(0,u.trackDuration)(l,"performedGetLinkedAddresses",_(o)),m({responseFor:t,requestId:r,success:!0,error:null,result:e});break}case p.imx.getAddress:{let e=await y().getAddress();(0,u.trackDuration)(l,"performedImxGetAddress",_(o)),m({responseFor:t,requestId:r,success:!0,error:null,result:e});break}case p.imx.isRegisteredOffchain:{let e=await y().isRegisteredOffchain();(0,u.trackDuration)(l,"performedImxIsRegisteredOffchain",_(o)),m({responseFor:t,requestId:r,success:!0,error:null,result:e});break}case p.imx.registerOffchain:{let e=await y().registerOffchain();(0,u.trackDuration)(l,"performedImxRegisterOffchain",_(o)),m({responseFor:t,requestId:r,success:!0,error:null,...e});break}case p.imx.transfer:{let e=JSON.parse(A),n=await y().transfer(e);(0,u.trackDuration)(l,"performedImxTransfer",_(o)),m({responseFor:t,requestId:r,success:!0,error:null,...n});break}case p.imx.batchNftTransfer:{let e=JSON.parse(A),n=await y().batchNftTransfer(e);(0,u.trackDuration)(l,"performedImxBatchNftTransfer",_(o)),m({responseFor:t,requestId:r,success:!0,error:null,...n});break}case p.zkEvm.connectEvm:{let e=b().connectEvm(),n=v(e);if(!n)throw Error("Failed to connect to EVM");(0,u.trackDuration)(l,"performedZkevmConnectEvm",_(o),{succeeded:n}),m({responseFor:t,requestId:r,success:n,error:null});break}case p.zkEvm.sendTransaction:{let e=JSON.parse(A),n=await w().request({method:"eth_sendTransaction",params:[e]}),i=null!=n;if(!i)throw Error("Failed to send transaction");(0,u.trackDuration)(l,"performedZkevmSendTransaction",_(o)),m({responseFor:t,requestId:r,success:i,error:null,result:n});break}case p.zkEvm.sendTransactionWithConfirmation:{let e=JSON.parse(A),n=w(),i=new d.providers.Web3Provider(n),a=i.getSigner(),s=await a.sendTransaction(e),c=await s.wait();(0,u.trackDuration)(l,"performedZkevmSendTransactionWithConfirmation",_(o)),m({responseFor:t,requestId:r,success:!0,error:null,...c});break}case p.zkEvm.requestAccounts:{let e=await w().request({method:"eth_requestAccounts"}),n=null!=e;if(!n)throw Error("Failed to request accounts");(0,u.trackDuration)(l,"performedZkevmRequestAccounts",_(o)),m({responseFor:t,requestId:r,success:n,error:null,accounts:e});break}case p.zkEvm.getBalance:{let e=JSON.parse(A),n=await w().request({method:"eth_getBalance",params:[e.address,e.blockNumberOrTag]}),i=null!=n;if(!i)throw Error("Failed to get balance");(0,u.trackDuration)(l,"performedZkevmGetBalance",_(o)),m({responseFor:t,requestId:r,success:i,error:null,result:n});break}case p.zkEvm.getTransactionReceipt:{let e=JSON.parse(A),n=await w().request({method:"eth_getTransactionReceipt",params:[e.txHash]}),i=null!=n;if(!i)throw Error("Failed to get transaction receipt");(0,u.trackDuration)(l,"performedZkevmGetTransactionReceipt",_(o)),m({responseFor:t,requestId:r,success:i,error:null,...n});break}case"track":{let e=JSON.parse(A),n=JSON.parse(e.properties);(0,u.track)(e.moduleName,e.eventName,n),m({responseFor:t,requestId:r,success:!0,error:null})}}}catch(i){let e;e=i instanceof Error?i:Error(i);let n=i instanceof c.PassportError?i?.type:void 0;(0,u.trackError)(l,t,e,{fxName:t,requestId:r,errorType:n,...s}),(0,u.trackDuration)(l,"failedCallFunction",_(o),{fxName:t,requestId:r,error:e.message}),console.log("callFunction error",i),m({responseFor:t,requestId:r,success:!1,error:i?.message!==null&&i?.message!==void 0?i.message:"Error",errorType:i instanceof c.PassportError?i?.type:null})}},console.log("index.ts loaded"),o=function(){m({responseFor:"init",requestId:"1",success:!0,error:null})},"complete"===document.readyState?o():window.addEventListener("load",o)},{"@imtbl/passport":"iPtWy","@imtbl/config":"ed8SG","@imtbl/metrics":"dO0KB",ethers:"8wpcu"}],iPtWy:[function(e,t,r){let n;var i,a,s,o,c,f,u,d,l,h,p,m,b,g,y=e("@parcel/transformer-js/src/esmodule-helpers.js");y.defineInteropFlag(r),y.export(r,"JsonRpcError",()=>e6),y.export(r,"Passport",()=>tR),y.export(r,"PassportError",()=>K),y.export(r,"ProviderErrorCode",()=>b),y.export(r,"ProviderEvent",()=>m),y.export(r,"RpcErrorCode",()=>g);var v=e("axios"),w=y.interopDefault(v),_=e("@imtbl/metrics"),E=e("@imtbl/generated-clients"),A=e("@imtbl/x-client"),M=e("@imtbl/config"),S=e("oidc-client-ts"),x=e("crypto"),T=e("jwt-decode"),k=y.interopDefault(T),R=e("localforage"),I=y.interopDefault(R),C=e("magic-sdk"),P=e("@magic-ext/oidc"),O=e("@ethersproject/providers"),N=e("@imtbl/toolkit"),j=e("@imtbl/guardian"),B=e("ethers"),L=e("events"),D=e("@0xsequence/abi"),U=e("@0xsequence/core"),F=e("uuid"),q=e("a7402fb880ab41a1");function z(e){return"code"in e&&"message"in e}(i=u||(u={})).AUTHENTICATION_ERROR="AUTHENTICATION_ERROR",i.INVALID_CONFIGURATION="INVALID_CONFIGURATION",i.WALLET_CONNECTION_ERROR="WALLET_CONNECTION_ERROR",i.NOT_LOGGED_IN_ERROR="NOT_LOGGED_IN_ERROR",i.SILENT_LOGIN_ERROR="SILENT_LOGIN_ERROR",i.REFRESH_TOKEN_ERROR="REFRESH_TOKEN_ERROR",i.USER_REGISTRATION_ERROR="USER_REGISTRATION_ERROR",i.USER_NOT_REGISTERED_ERROR="USER_NOT_REGISTERED_ERROR",i.LOGOUT_ERROR="LOGOUT_ERROR",i.TRANSFER_ERROR="TRANSFER_ERROR",i.CREATE_ORDER_ERROR="CREATE_ORDER_ERROR",i.CANCEL_ORDER_ERROR="CANCEL_ORDER_ERROR",i.EXCHANGE_TRANSFER_ERROR="EXCHANGE_TRANSFER_ERROR",i.CREATE_TRADE_ERROR="CREATE_TRADE_ERROR",i.OPERATION_NOT_SUPPORTED_ERROR="OPERATION_NOT_SUPPORTED_ERROR",i.LINK_WALLET_ALREADY_LINKED_ERROR="LINK_WALLET_ALREADY_LINKED_ERROR",i.LINK_WALLET_MAX_WALLETS_LINKED_ERROR="LINK_WALLET_MAX_WALLETS_LINKED_ERROR",i.LINK_WALLET_VALIDATION_ERROR="LINK_WALLET_VALIDATION_ERROR",i.LINK_WALLET_DUPLICATE_NONCE_ERROR="LINK_WALLET_DUPLICATE_NONCE_ERROR",i.LINK_WALLET_GENERIC_ERROR="LINK_WALLET_GENERIC_ERROR";class K extends Error{type;constructor(e,t){super(e),this.type=t}}let H=async(e,t,r)=>{try{return await e()}catch(i){let e;e=(0,v.isAxiosError)(i)&&i.response?.data&&z(i.response.data)?i.response.data.message:i.message;let n=new K(e,t);throw r&&(0,_.trackError)("passport",r,n),n}},V="pkce_state",W="pkce_verifier";class G{areValid(e){if(e){let t=this.isTokenValid(e.access_token),r=this.isTokenValid(e.id_token);return t&&r}return!1}isTokenValid(e){try{let t=(0,k.default)(e),r=t.exp??0,n=Date.now()/1e3+3600;return r>n}catch(e){return!1}}savePKCEData(e){localStorage.setItem(V,e.state),localStorage.setItem(W,e.verifier)}getPKCEData(){let e=localStorage.getItem(V),t=localStorage.getItem(W);return e&&t?{state:e,verifier:t}:null}}var J={warn:(...e)=>{if(void 0===q)return;let t=q?.env?.JEST_WORKER_ID===void 0;t&&console.warn(...e)}};(a=d||(d={})).LOGGED_OUT="loggedOut",a.LOGGED_IN="loggedIn",a.ACCOUNTS_REQUESTED="accountsRequested";let Z=e=>!!e.zkEvm,$=e=>!!e.imx,X="passport-overlay",Y=`${X}-close`,Q=`${X}-try-again`,ee=` e.map(e=>({delegateCall:!0===e.delegateCall,revertOnError:!0===e.revertOnError,gasLimit:e.gasLimit??B.constants.Zero,target:e.to??B.constants.AddressZero,value:e.value??B.constants.Zero,data:e.data??[]})),eW=(e,t)=>{let r=(0,B.utils).defaultAbiCoder.encode(["uint256",eH],[e,t]);return(0,B.utils).keccak256(r)},eG=e=>(0,B.utils).defaultAbiCoder.encode([eH],[e]),eJ=async(e,t)=>{try{let r=new B.Contract(t,D.walletContracts.mainModule.abi,e),n=await r.nonce();if(n instanceof B.BigNumber)return n}catch(e){if(e instanceof Error&&"code"in e&&e.code===B.errors.CALL_EXCEPTION)return(0,B.BigNumber).from(0);throw e}throw Error("Unexpected result from contract.nonce() call.")},eZ=(e,t,r)=>(0,B.utils).solidityPack(["string","uint256","address","bytes32"],["\x19\x01",e,t,r]),e$=async(e,t,r,n,i)=>{let a=eV(e),s=eW(t,a),o=eZ(r,n,s),c=(0,B.utils).keccak256(o),f=(0,B.utils).arrayify(c),u=performance.now(),d=await i.signMessage(f);(0,_.trackDuration)("passport","magicSignMessageGetSignedMetaTransactions",Math.round(performance.now()-u));let l=`${d}02`,h=(0,U.v1).signature.encodeSignature({version:1,threshold:1,signers:[{isDynamic:!1,unrecovered:!0,weight:1,signature:l}]}),p=new B.utils.Interface(D.walletContracts.mainModule.abi);return p.encodeFunctionData(p.getFunction("execute"),[a,t,h])},eX=e=>{let t=`0x0000${e}`;return(0,U.v1).signature.decodeSignature(t)},eY=(e,t,r)=>{let n=`${e}02`,{signers:i}=eX(r),a=[...i,{isDynamic:!1,unrecovered:!0,weight:1,signature:n,address:t}],s=a.sort((e,t)=>{let r=(0,B.BigNumber).from(e.address),n=(0,B.BigNumber).from(t.address);return r.lte(n)?-1:r.eq(n)?0:1});return(0,U.v1).signature.encodeSignature({version:1,threshold:2,signers:s})},eQ=async(e,t,r,n,i)=>{let a={...e.types};delete a.EIP712Domain;let{_TypedDataEncoder:s}=B.utils,o=s.hash(e.domain,a,e.message),c=eZ(r,n,o),f=(0,B.utils).keccak256(c),u=(0,B.utils).arrayify(f),d=performance.now(),l=await i.signMessage(u);(0,_.trackDuration)("passport","magicSignMessageTypedData",Math.round(performance.now()-d));let h=await i.getAddress();return eY(l,h,t)},e0=async(e,t,r,n)=>{let i=(0,B.utils).hashMessage(t),a=eZ(e,n,i),s=(0,B.utils).keccak256(a),o=(0,B.utils).arrayify(s);return r.signMessage(o)},e1=e=>`eip155:${e}`;class e2{config;rpcProvider;authManager;constructor({config:e,rpcProvider:t,authManager:r}){this.config=e,this.rpcProvider=t,this.authManager=r}async postToRelayer(e){let t={id:1,jsonrpc:"2.0",...e},r=await this.authManager.getUserZkEvm(),n=performance.now(),i=await fetch(`${this.config.relayerUrl}/v1/transactions`,{method:"POST",headers:{Authorization:`Bearer ${r.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify(t)});(0,_.trackDuration)("passport","postToRelayer",Math.round(performance.now()-n),{rpcMethod:e.method});let a=await i.json();if(a.error)throw a.error;return a}async ethSendTransaction(e,t){let{chainId:r}=await this.rpcProvider.detectNetwork(),n={method:"eth_sendTransaction",params:[{to:e,data:t,chainId:e1(r)}]},{result:i}=await this.postToRelayer(n);return i}async imGetTransactionByHash(e){let{result:t}=await this.postToRelayer({method:"im_getTransactionByHash",params:[e]});return t}async imGetFeeOptions(e,t){let{chainId:r}=await this.rpcProvider.detectNetwork(),n={method:"im_getFeeOptions",params:[{userAddress:e,data:t,chainId:e1(r)}]},{result:i}=await this.postToRelayer(n);return i}async imSignTypedData(e,t){let{chainId:r}=await this.rpcProvider.detectNetwork(),n={method:"im_signTypedData",params:[{address:e,eip712Payload:t,chainId:e1(r)}]},{result:i}=await this.postToRelayer(n);return i}async imSign(e,t){let{chainId:r}=await this.rpcProvider.detectNetwork(),n={method:"im_sign",params:[{address:e,message:t,chainId:e1(r)}]},{result:i}=await this.postToRelayer(n);return i}}(c=b||(b={}))[c.USER_REJECTED_REQUEST=4001]="USER_REJECTED_REQUEST",c[c.UNAUTHORIZED=4100]="UNAUTHORIZED",c[c.UNSUPPORTED_METHOD=4200]="UNSUPPORTED_METHOD",c[c.DISCONNECTED=4900]="DISCONNECTED",(f=g||(g={}))[f.RPC_SERVER_ERROR=-32e3]="RPC_SERVER_ERROR",f[f.INVALID_REQUEST=-32600]="INVALID_REQUEST",f[f.METHOD_NOT_FOUND=-32601]="METHOD_NOT_FOUND",f[f.INVALID_PARAMS=-32602]="INVALID_PARAMS",f[f.INTERNAL_ERROR=-32603]="INTERNAL_ERROR",f[f.PARSE_ERROR=-32700]="PARSE_ERROR",f[f.TRANSACTION_REJECTED=-32003]="TRANSACTION_REJECTED";class e6 extends Error{message;code;constructor(e,t){super(t),this.message=t,this.code=e}}async function e3({authManager:e,ethSigner:t,multiRollupApiClients:r,accessToken:n,rpcProvider:i,flow:a}){let s=t.getAddress();s.then(()=>a.addEvent("endGetAddress"));let o=(0,N.signRaw)("Only sign this message from Immutable Passport",t);o.then(()=>a.addEvent("endSignRaw"));let c=i.detectNetwork();c.then(()=>a.addEvent("endDetectNetwork"));let f=r.chainsApi.listChains();f.then(()=>a.addEvent("endListChains"));let[u,d,l,h]=await Promise.all([s,o,c,f]),p=e1(l.chainId),m=h.data?.result?.find(e=>e.id===p)?.name;if(!m)throw new e6(g.INTERNAL_ERROR,`Chain name does not exist on for chain id ${l.chainId}`);try{let t=await r.passportApi.createCounterfactualAddressV2({chainName:m,createCounterfactualAddressRequest:{ethereum_address:u,ethereum_signature:d}},{headers:{Authorization:`Bearer ${n}`}});return a.addEvent("endCreateCounterfactualAddress"),e.forceUserRefreshInBackground(),t.data.counterfactual_address}catch(e){throw new e6(g.INTERNAL_ERROR,`Failed to create counterfactual address: ${e}`)}}let e5="Transaction requires confirmation but this functionality is not supported in this environment. Please contact Immutable support if you need to enable this feature.",e8=e=>(0,B.BigNumber).from(e).toString(),e4=e=>{try{return e.map(e=>({delegateCall:!0===e.delegateCall,revertOnError:!0===e.revertOnError,gasLimit:e.gasLimit?e8(e.gasLimit):"0",target:e.to??B.ethers.constants.AddressZero,value:e.value?e8(e.value):"0",data:e.data?e.data.toString():"0x"}))}catch(t){let e=t instanceof Error?t.message:String(t);throw new e6(g.INVALID_PARAMS,`Transaction failed to parsing: ${e}`)}};class e7{transactionAPI;messageAPI;confirmationScreen;crossSdkBridgeEnabled;authManager;constructor({confirmationScreen:e,config:t,authManager:r}){let n=new j.Configuration({basePath:t.imxPublicApiDomain});this.confirmationScreen=e,this.crossSdkBridgeEnabled=t.crossSdkBridgeEnabled,this.messageAPI=new j.MessagesApi(n),this.transactionAPI=new j.TransactionsApi(n),this.authManager=r}withConfirmationScreen(e){return t=>this.withConfirmationScreenTask(e)(t)()}withConfirmationScreenTask(e){return t=>async()=>{this.confirmationScreen.loading(e);try{return await t()}catch(e){throw this.confirmationScreen.closeWindow(),e}}}withDefaultConfirmationScreenTask(e){return this.withConfirmationScreenTask()(e)}async evaluateImxTransaction({payloadHash:e}){let t=await this.authManager.getUserImx(),r={Authorization:`Bearer ${t.accessToken}`},n=await eP(async()=>this.transactionAPI.getTransactionByID({transactionID:e,chainType:"starkex"},{headers:r}),{finallyFn:()=>{this.confirmationScreen.closeWindow()}});if(!n.data.id)throw Error("Transaction doesn't exists");let i=await this.transactionAPI.evaluateTransaction({id:e,transactionEvaluationRequest:{chainType:"starkex"}},{headers:r}),{confirmationRequired:a}=i.data;if(a){if(this.crossSdkBridgeEnabled)throw Error(e5);let r=await this.confirmationScreen.requestConfirmation(e,t.imx.ethAddress,j.TransactionApprovalRequestChainTypeEnum.Starkex);if(!r.confirmed)throw Error("Transaction rejected by user")}else this.confirmationScreen.closeWindow()}async evaluateEVMTransaction({chainId:e,nonce:t,metaTransactions:r}){let n=await this.authManager.getUserZkEvm(),i={Authorization:`Bearer ${n.accessToken}`},a=e4(r);try{let r=await this.transactionAPI.evaluateTransaction({id:"evm",transactionEvaluationRequest:{chainType:"evm",chainId:e,transactionData:{nonce:t,userAddress:n.zkEvm.ethAddress,metaTransactions:a}}},{headers:i});return r.data}catch(t){let e=t instanceof Error?t.message:String(t);throw new e6(g.INTERNAL_ERROR,`Transaction failed to validate with error: ${e}`)}}async validateEVMTransaction({chainId:e,nonce:t,metaTransactions:r}){let n=await this.evaluateEVMTransaction({chainId:e,nonce:t,metaTransactions:r}),{confirmationRequired:i,transactionId:a}=n;if(i&&this.crossSdkBridgeEnabled)throw new e6(g.TRANSACTION_REJECTED,e5);if(i&&a){let t=await this.authManager.getUserZkEvm(),r=await this.confirmationScreen.requestConfirmation(a,t.zkEvm.ethAddress,j.TransactionApprovalRequestChainTypeEnum.Evm,e);if(!r.confirmed)throw new e6(g.TRANSACTION_REJECTED,"Transaction rejected by user")}else this.confirmationScreen.closeWindow()}async handleEIP712MessageEvaluation({chainID:e,payload:t}){try{let r=await this.authManager.getUserZkEvm();if(null===r)throw new e6(b.UNAUTHORIZED,"User not logged in. Please log in first.");let n=await this.messageAPI.evaluateMessage({messageEvaluationRequest:{chainID:e,payload:t}},{headers:{Authorization:`Bearer ${r.accessToken}`}});return n.data}catch(t){let e=t instanceof Error?t.message:String(t);throw new e6(g.INTERNAL_ERROR,`Message failed to validate with error: ${e}`)}}async evaluateEIP712Message({chainID:e,payload:t}){let{messageId:r,confirmationRequired:n}=await this.handleEIP712MessageEvaluation({chainID:e,payload:t});if(n&&this.crossSdkBridgeEnabled)throw new e6(g.TRANSACTION_REJECTED,e5);if(n&&r){let e=await this.authManager.getUserZkEvm(),t=await this.confirmationScreen.requestMessageConfirmation(r,e.zkEvm.ethAddress,"eip712");if(!t.confirmed)throw new e6(g.TRANSACTION_REJECTED,"Signature rejected by user")}else this.confirmationScreen.closeWindow()}async handleERC191MessageEvaluation({chainID:e,payload:t}){try{let r=await this.authManager.getUserZkEvm();if(null===r)throw new e6(b.UNAUTHORIZED,"User not logged in. Please log in first.");let n=await this.messageAPI.evaluateErc191Message({eRC191MessageEvaluationRequest:{chainID:e1(e),payload:t}},{headers:{Authorization:`Bearer ${r.accessToken}`}});return n.data}catch(t){let e=t instanceof Error?t.message:String(t);throw new e6(g.INTERNAL_ERROR,`Message failed to validate with error: ${e}`)}}async evaluateERC191Message({chainID:e,payload:t}){let{messageId:r,confirmationRequired:n}=await this.handleERC191MessageEvaluation({chainID:e,payload:t});if(n&&this.crossSdkBridgeEnabled)throw new e6(g.TRANSACTION_REJECTED,e5);if(n&&r){let e=await this.authManager.getUserZkEvm(),t=await this.confirmationScreen.requestMessageConfirmation(r,e.zkEvm.ethAddress,"erc191");if(!t.confirmed)throw new e6(g.TRANSACTION_REJECTED,"Signature rejected by user")}else this.confirmationScreen.closeWindow()}}let e9=async(e,t,r)=>{let n=eV([e]),i=eG(n),a=await r.imGetFeeOptions(t,i),s=a.find(e=>"IMX"===e.tokenSymbol);if(!s)throw Error("Failed to retrieve fees for IMX token");return s},te=async(e,t,r,n)=>{if(!e.to)throw new e6(g.INVALID_PARAMS,'eth_sendTransaction requires a "to" field');let i={to:e.to,data:e.data,nonce:(0,B.BigNumber).from(0),value:e.value,revertOnError:!0},[a,s]=await Promise.all([eJ(t,n),e9(i,n,r)]),o=[{...i,nonce:a}],c=(0,B.BigNumber).from(s.tokenPrice);return c.isZero()||o.push({nonce:a,to:s.recipientAddress,value:c,revertOnError:!0}),o},tt=async({params:e,ethSigner:t,rpcProvider:r,relayerClient:n,guardianClient:i,zkEvmAddress:a,flow:s})=>{let{chainId:o}=await r.detectNetwork(),c=(0,B.BigNumber).from(o);s.addEvent("endDetectNetwork");let f=await te(e[0],r,n,a);s.addEvent("endBuildMetaTransactions");let{nonce:u}=f[0];if(!u)throw Error("Failed to retrieve nonce from the smart wallet");let d=i.validateEVMTransaction({chainId:e1(o),nonce:e8(u),metaTransactions:f});d.then(()=>s.addEvent("endValidateEVMTransaction"));let l=e$(f,u,c,a,t);l.then(()=>s.addEvent("endGetSignedMetaTransactions"));let[,h]=await Promise.all([d,l]),m=await n.ethSendTransaction(a,h);s.addEvent("endRelayerSendTransaction");let b=async()=>{let e=await n.imGetTransactionByHash(m);if(e.status===p.PENDING)throw Error();return e},y=await eP(b,{retries:30,interval:1e3,finalErr:new e6(g.RPC_SERVER_ERROR,"transaction hash not generated in time")});if(s.addEvent("endRetrieveRelayerTransaction"),![p.SUBMITTED,p.SUCCESSFUL].includes(y.status)){let e=`Transaction failed to submit with status ${y.status}.`;throw y.statusMessage&&(e+=` Error message: ${y.statusMessage}`),new e6(g.RPC_SERVER_ERROR,e)}return y.hash},tr=["types","domain","primaryType","message"],tn=e=>tr.every(t=>t in e),ti=(e,t)=>{let r;if("string"==typeof e)try{r=JSON.parse(e)}catch(e){throw new e6(g.INVALID_PARAMS,`Failed to parse typed data JSON: ${e}`)}else if("object"==typeof e)r=e;else throw new e6(g.INVALID_PARAMS,`Invalid typed data argument: ${e}`);if(!tn(r))throw new e6(g.INVALID_PARAMS,`Invalid typed data argument. The following properties are required: ${tr.join(", ")}`);let n=r.domain?.chainId;if(n&&("string"==typeof n&&(n.startsWith("0x")?r.domain.chainId=parseInt(n,16):r.domain.chainId=parseInt(n,10)),r.domain.chainId!==t))throw new e6(g.INVALID_PARAMS,`Invalid chainId, expected ${t}`);return r},ta=async({params:e,method:t,ethSigner:r,rpcProvider:n,relayerClient:i,guardianClient:a,flow:s})=>{let o=e[0],c=e[1];if(!o||!c)throw new e6(g.INVALID_PARAMS,`${t} requires an address and a typed data JSON`);let{chainId:f}=await n.detectNetwork(),u=ti(c,f);s.addEvent("endDetectNetwork"),await a.evaluateEIP712Message({chainID:String(f),payload:u}),s.addEvent("endValidateMessage");let d=await i.imSignTypedData(o,u);s.addEvent("endRelayerSignTypedData");let l=await eQ(u,d,(0,B.BigNumber).from(f),o,r);return s.addEvent("getSignedTypedData"),l},ts=e=>{if(!e)return e;try{let t=(0,B.utils).stripZeros((0,B.utils).arrayify(e));return(0,B.utils).toUtf8String(t)}catch(t){return e}},to=async({params:e,ethSigner:t,zkEvmAddress:r,rpcProvider:n,guardianClient:i,relayerClient:a,flow:s})=>{let o=e[0],c=e[1];if(!c||!o)throw new e6(g.INVALID_PARAMS,"personal_sign requires an address and a message");if(c.toLowerCase()!==r.toLowerCase())throw new e6(g.INVALID_PARAMS,"personal_sign requires the signer to be the from address");let f=ts(o),{chainId:u}=await n.detectNetwork();s.addEvent("endDetectNetwork");let d=(0,B.BigNumber).from(u),l=e0(d,f,t,c);l.then(()=>s.addEvent("endEOASignature")),await i.evaluateERC191Message({chainID:u,payload:f}),s.addEvent("endEvaluateERC191Message");let[h,p]=await Promise.all([l,a.imSign(c,f)]);s.addEvent("endRelayerSign");let m=await t.getAddress();return s.addEvent("endGetEOAAddress"),eY(h,m,p)},tc=e=>{switch(e){case M.Environment.SANDBOX:return"https://api.sandbox.immutable.com";case M.Environment.PRODUCTION:return"https://api.immutable.com";default:throw Error("Environment not supported")}},tf=e=>{n||(n=(0,w.default).create({baseURL:tc(e)}))};async function tu(e){if(!n)throw Error("Client not initialised");return n.get("/v1/sdk/session-activity/check",{params:e}).then(e=>e.data).catch(e=>{if(404!==e.response.status)throw e})}let{getItem:td,setItem:tl}=_.utils.localStorage,th="sessionActivitySendCount",tp="sessionActivityDate",tm=0,tb=0,tg=!1,ty=()=>{tb=td(th)||0;let e=td(tp),t=new Date().toISOString().split("T")[0];e&&e===t||(tb=0),tl(tp,t),tl(th,tb)};ty();let tv=()=>{ty(),tl(th,++tb),tm=0},tw=async e=>new Promise(t=>{setTimeout(t,1e3*e)}),t_=async e=>{let t;let r=e.flow||(0,_.trackFlow)("passport","sendSessionActivity");if(tg){r.addEvent("Existing Delay Early Exit");return}tg=!0;let{sendTransaction:n,environment:i}=e;if(!n)throw Error("No sendTransaction function provided");if(!i)throw Error("No environment provided");tf(i);let a=e.passportClient;if(!a)throw r.addEvent("No Passport Client ID"),Error("No Passport Client ID provided");let s=e.walletAddress;if(!s)throw r.addEvent("No Passport Wallet Address"),Error("No wallet address");try{if(r.addEvent("Fetching details"),t=await tu({clientId:a,wallet:s,checkCount:tm,sendCount:tb}),tm++,r.addEvent("Fetched details",{checkCount:tm}),!t){r.addEvent("No details found");return}}catch(e){throw r.addEvent("Failed to fetch details"),Error("Failed to get details",{cause:e})}if(t&&t.contractAddress&&t.functionName){let n=new B.utils.Interface([`function ${t.functionName}()`]).encodeFunctionData(t.functionName),i=t.contractAddress;try{r.addEvent("Start Sending Transaction");let t=await e.sendTransaction([{to:i,from:s,data:n}],r);tv(),r.addEvent("Transaction Sent",{tx:t})}catch(t){r.addEvent("Failed to send Transaction");let e=Error("Failed to send transaction",{cause:t});(0,_.trackError)("passport","sessionActivityError",e)}}t&&t.delay&&t.delay>0&&(r.addEvent("Delaying Transaction",{delay:t.delay}),await tw(t.delay),setTimeout(()=>{r.addEvent("Retrying after Delay"),tg=!1,tE({...e,flow:r})},0))},tE=e=>{var t;return((...e)=>{try{let r=t_(...e);if(r instanceof Promise)return r.catch(e=>(e instanceof Error&&(0,_.trackError)("passport","sessionActivityError",e),t));return r}catch(e){return e instanceof Error&&(0,_.trackError)("passport","sessionActivityError",e),t}})(e).then(()=>{tg=!1})},tA=e=>"zkEvm"in e;class tM{#i;#a;#s;#o;#c;#f;#u;#d;#l;#h;#p;isPassport=!0;constructor({authManager:e,magicAdapter:t,config:r,multiRollupApiClients:n,passportEventEmitter:i,guardianClient:a}){this.#i=e,this.#u=t,this.#a=r,this.#c=a,this.#o=i,r.crossSdkBridgeEnabled?this.#f=new O.StaticJsonRpcProvider({url:this.#a.zkEvmRpcUrl,fetchOptions:{referrer:"http://imtblgamesdk.local"}}):this.#f=new O.StaticJsonRpcProvider(this.#a.zkEvmRpcUrl),this.#l=new e2({config:this.#a,rpcProvider:this.#f,authManager:this.#i}),this.#d=n,this.#s=new eK,this.#i.getUser().then(e=>{e&&tA(e)&&this.#m(e)}).catch(()=>{}),i.on(d.LOGGED_IN,e=>this.#m(e)),i.on(d.LOGGED_OUT,this.#b),i.on(d.ACCOUNTS_REQUESTED,tE)}#b=()=>{this.#h=void 0,this.#s.emit(m.ACCOUNTS_CHANGED,[])};#m(e){let t=async()=>{let t=await this.#u.login(e.idToken),r=new O.Web3Provider(t);return r.getSigner()};this.#p=void 0,this.#h=new Promise(async e=>{try{e(await t())}catch(t){this.#p=t,e(void 0)}})}async #g(){let e=await this.#h;if(void 0===e){if(void 0!==this.#p)throw this.#p;throw Error("Signer failed to initialise")}return e}async #y(e){let t=async(t,r)=>{let n=await this.#g();return await tt({params:t,ethSigner:n,guardianClient:this.#c,rpcProvider:this.#f,relayerClient:this.#l,zkEvmAddress:e,flow:r})};this.#o.emit(d.ACCOUNTS_REQUESTED,{environment:this.#a.baseConfig.environment,sendTransaction:t,walletAddress:e,passportClient:this.#a.oidcConfiguration.clientId})}async #v(){try{let e=await this.#i.getUser();if(e&&tA(e))return e.zkEvm.ethAddress;return}catch{return}}async #w(e){switch(e.method){case"eth_requestAccounts":{let e=await this.#v();if(e)return[e];let t=(0,_.trackFlow)("passport","ethRequestAccounts");try{let e;let r=await this.#i.getUserOrLogin();if(t.addEvent("endGetUserOrLogin"),this.#m(r),tA(r))e=r.zkEvm.ethAddress;else{t.addEvent("startUserRegistration");let n=await this.#g();t.addEvent("ethSignerResolved"),e=await e3({ethSigner:n,authManager:this.#i,multiRollupApiClients:this.#d,accessToken:r.accessToken,rpcProvider:this.#f,flow:t}),t.addEvent("endUserRegistration")}return this.#s.emit(m.ACCOUNTS_CHANGED,[e]),(0,_.identify)({passportId:r.profile.sub}),this.#y(e),[e]}catch(e){throw e instanceof Error&&(0,_.trackError)("passport","ethRequestAccounts",e),t.addEvent("errored"),e}finally{t.addEvent("End")}}case"eth_sendTransaction":{let t=await this.#v();if(!t)throw new e6(b.UNAUTHORIZED,"Unauthorised - call eth_requestAccounts first");let r=(0,_.trackFlow)("passport","ethSendTransaction");try{return await this.#c.withConfirmationScreen({width:480,height:720})(async()=>{let n=await this.#g();return r.addEvent("endGetSigner"),await tt({params:e.params||[],ethSigner:n,guardianClient:this.#c,rpcProvider:this.#f,relayerClient:this.#l,zkEvmAddress:t,flow:r})})}catch(e){throw e instanceof Error&&(0,_.trackError)("passport","eth_sendTransaction",e),r.addEvent("errored"),e}finally{r.addEvent("End")}}case"eth_accounts":{let e=await this.#v();return e?[e]:[]}case"personal_sign":{let t=await this.#v();if(!t)throw new e6(b.UNAUTHORIZED,"Unauthorised - call eth_requestAccounts first");let r=(0,_.trackFlow)("passport","personalSign");try{return await this.#c.withConfirmationScreen({width:480,height:720})(async()=>{let n=await this.#g();return r.addEvent("endGetSigner"),await to({params:e.params||[],ethSigner:n,zkEvmAddress:t,rpcProvider:this.#f,guardianClient:this.#c,relayerClient:this.#l,flow:r})})}catch(e){throw e instanceof Error&&(0,_.trackError)("passport","personal_sign",e),r.addEvent("errored"),e}finally{r.addEvent("End")}}case"eth_signTypedData":case"eth_signTypedData_v4":{let t=await this.#v();if(!t)throw new e6(b.UNAUTHORIZED,"Unauthorised - call eth_requestAccounts first");let r=(0,_.trackFlow)("passport","ethSignTypedDataV4");try{return await this.#c.withConfirmationScreen({width:480,height:720})(async()=>{let t=await this.#g();return r.addEvent("endGetSigner"),await ta({method:e.method,params:e.params||[],ethSigner:t,rpcProvider:this.#f,relayerClient:this.#l,guardianClient:this.#c,flow:r})})}catch(e){throw e instanceof Error&&(0,_.trackError)("passport","eth_signTypedData",e),r.addEvent("errored"),e}finally{r.addEvent("End")}}case"eth_chainId":{let{chainId:e}=await this.#f.detectNetwork();return(0,B.utils).hexlify(e)}case"eth_getBalance":case"eth_getCode":case"eth_getTransactionCount":{let[t,r]=e.params||[];return this.#f.send(e.method,[t,r||"latest"])}case"eth_getStorageAt":{let[t,r,n]=e.params||[];return this.#f.send(e.method,[t,r,n||"latest"])}case"eth_call":case"eth_estimateGas":{let[t,r]=e.params||[];return this.#f.send(e.method,[t,r||"latest"])}case"eth_gasPrice":case"eth_blockNumber":case"eth_getBlockByHash":case"eth_getBlockByNumber":case"eth_getTransactionByHash":case"eth_getTransactionReceipt":return this.#f.send(e.method,e.params||[]);default:throw new e6(b.UNSUPPORTED_METHOD,"Method not supported")}}async #_(e){let{id:t,jsonrpc:r}=e;try{let n=await this.#w(e);return{id:t,jsonrpc:r,result:n}}catch(e){return{id:t,jsonrpc:r,error:e instanceof e6?e:e instanceof Error?new e6(g.INTERNAL_ERROR,e.message):new e6(g.INTERNAL_ERROR,"Internal error")}}}async request(e){try{return this.#w(e)}catch(e){if(e instanceof e6)throw e;if(e instanceof Error)throw new e6(g.INTERNAL_ERROR,e.message);throw new e6(g.INTERNAL_ERROR,"Internal error")}}sendAsync(e,t){if(!t)throw Error("No callback provided");Array.isArray(e)?Promise.all(e.map(this.#_)).then(e=>{t(null,e)}).catch(e=>{t(e,[])}):this.#_(e).then(e=>{t(null,e)}).catch(e=>{t(e,null)})}async send(e,t,r){if("string"==typeof e)return"function"==typeof t?this.sendAsync({method:e,params:[]},t):r?this.sendAsync({method:e,params:Array.isArray(t)?t:[]},r):this.request({method:e,params:Array.isArray(t)?t:[]});if("function"==typeof t)return this.sendAsync(e,t);if(!Array.isArray(e)&&"object"==typeof e)return this.#_(e);throw new e6(g.INVALID_REQUEST,"Invalid request")}on(e,t){this.#s.on(e,t)}removeListener(e,t){this.#s.removeListener(e,t)}}let tS={icon:'data:image/svg+xml,',name:"Immutable Passport",rdns:"com.immutable.passport",uuid:(0,F.v4)()},tx=e=>e.overrides?(0,E.createConfig)({basePath:e.overrides.imxPublicApiDomain}):e.baseConfig.environment===M.Environment.SANDBOX?(0,E.imxApiConfig).getSandbox():(0,E.imxApiConfig).getProduction(),tT=e=>{if(e.overrides?.imxApiClients)return e.overrides.imxApiClients;let t=tx(e);return new E.ImxApiClients(t)},tk=e=>{let t=new eD(e),r=new eg(t),n=new ew(t),i=new ez(t),a=new E.MultiRollupApiClients(t.multiRollupConfig),s=new eK,o=e.overrides?e.overrides.immutableXClient:new A.IMXClient({baseConfig:e.baseConfig}),c=new e7({confirmationScreen:i,config:t,authManager:r}),f=tT(e),u=new eB({authManager:r,immutableXClient:o,magicAdapter:n,passportEventEmitter:s,imxApiClients:f,guardianClient:c});return{config:t,authManager:r,magicAdapter:n,confirmationScreen:i,immutableXClient:o,multiRollupApiClients:a,passportEventEmitter:s,passportImxProviderFactory:u,guardianClient:c}};class tR{authManager;config;confirmationScreen;immutableXClient;magicAdapter;multiRollupApiClients;passportImxProviderFactory;passportEventEmitter;guardianClient;constructor(e){let t=tk(e);this.config=t.config,this.authManager=t.authManager,this.magicAdapter=t.magicAdapter,this.confirmationScreen=t.confirmationScreen,this.immutableXClient=t.immutableXClient,this.multiRollupApiClients=t.multiRollupApiClients,this.passportEventEmitter=t.passportEventEmitter,this.passportImxProviderFactory=t.passportImxProviderFactory,this.guardianClient=t.guardianClient,(0,_.setPassportClientId)(e.clientId),(0,_.track)("passport","initialise")}async connectImxSilent(){return this.passportImxProviderFactory.getProviderSilent()}async connectImx(){return this.passportImxProviderFactory.getProvider()}connectEvm(e={announceProvider:!0}){let t=new tM({passportEventEmitter:this.passportEventEmitter,authManager:this.authManager,magicAdapter:this.magicAdapter,config:this.config,multiRollupApiClients:this.multiRollupApiClients,guardianClient:this.guardianClient});return e?.announceProvider&&function(e){if("undefined"==typeof window)return;let t=new CustomEvent("eip6963:announceProvider",{detail:Object.freeze(e)});window.dispatchEvent(t),window.addEventListener("eip6963:requestProvider",()=>window.dispatchEvent(t))}({info:tS,provider:t}),t}async login(e){let{useCachedSession:t=!1}=e||{},r=null;try{r=await this.authManager.getUser()}catch(e){if(t)throw e;J.warn("Failed to retrieve a cached user session",e)}return r||t||(r=await this.authManager.login(e?.anonymousId)),r&&((0,_.identify)({passportId:r.profile.sub}),this.passportEventEmitter.emit(d.LOGGED_IN,r)),r?r.profile:null}async loginCallback(){return this.authManager.loginCallback()}async loginWithDeviceFlow(e){return this.authManager.loginWithDeviceFlow(e?.anonymousId)}async loginWithDeviceFlowCallback(e,t,r){let n=await this.authManager.loginWithDeviceFlowCallback(e,t,r);return this.passportEventEmitter.emit(d.LOGGED_IN,n),n.profile}loginWithPKCEFlow(){return this.authManager.getPKCEAuthorizationUrl()}async loginWithPKCEFlowCallback(e,t){let r=await this.authManager.loginWithPKCEFlowCallback(e,t);return this.passportEventEmitter.emit(d.LOGGED_IN,r),r.profile}async logout(){"silent"===this.config.oidcConfiguration.logoutMode?await Promise.allSettled([this.authManager.logout(),this.magicAdapter.logout()]):(await this.magicAdapter.logout(),await this.authManager.logout()),this.passportEventEmitter.emit(d.LOGGED_OUT)}async logoutDeviceFlow(){return await this.authManager.removeUser(),await this.magicAdapter.logout(),this.passportEventEmitter.emit(d.LOGGED_OUT),this.authManager.getDeviceFlowEndSessionEndpoint()}async logoutSilentCallback(e){return this.authManager.logoutSilentCallback(e)}async getUserInfo(){let e=await this.authManager.getUser();return e?.profile}async getIdToken(){let e=await this.authManager.getUser();return e?.idToken}async getAccessToken(){let e=await this.authManager.getUser();return e?.accessToken}async getLinkedAddresses(){let e=await this.authManager.getUser();if(!e?.profile.sub)return[];let t={Authorization:`Bearer ${e.accessToken}`},r=await this.multiRollupApiClients.passportProfileApi.getUserInfo({headers:t});return r.data.linked_addresses}async linkExternalWallet(e){(0,_.track)("passport","linkWallet",{type:e.type});let t=await this.authManager.getUser();if(!t)throw new K("User is not logged in",u.NOT_LOGGED_IN_ERROR);let r=$(t),n=Z(t);if(!r&&!n)throw new K("User has not been registered",u.USER_NOT_REGISTERED_ERROR);let i={Authorization:`Bearer ${t.accessToken}`},a={type:e.type,wallet_address:e.walletAddress,signature:e.signature,nonce:e.nonce};try{let e=await this.multiRollupApiClients.passportProfileApi.linkWalletV2({linkWalletV2Request:a},{headers:i});return{...e.data}}catch(t){if((0,_.trackError)("passport","linkWallet",t),(0,v.isAxiosError)(t)&&t.response){if(t.response.data&&z(t.response.data)){let{code:e,message:r}=t.response.data;switch(e){case"ALREADY_LINKED":throw new K(r,u.LINK_WALLET_ALREADY_LINKED_ERROR);case"MAX_WALLETS_LINKED":throw new K(r,u.LINK_WALLET_MAX_WALLETS_LINKED_ERROR);case"DUPLICATE_NONCE":throw new K(r,u.LINK_WALLET_DUPLICATE_NONCE_ERROR);case"VALIDATION_ERROR":throw new K(r,u.LINK_WALLET_VALIDATION_ERROR);default:throw new K(r,u.LINK_WALLET_GENERIC_ERROR)}}else if(t.response.status)throw new K(`Link wallet request failed with status code ${t.response.status}`,u.LINK_WALLET_GENERIC_ERROR)}let e="Link wallet request failed";throw t instanceof Error&&(e+=`: ${t.message}`),new K(e,u.LINK_WALLET_GENERIC_ERROR)}}}},{a7402fb880ab41a1:"fg0b3",axios:"jhAcT","@imtbl/metrics":"dO0KB","@imtbl/generated-clients":"2eu25","@imtbl/x-client":"hV3j7","@imtbl/config":"ed8SG","oidc-client-ts":"eOqnc",crypto:"32wxM","jwt-decode":"dIfrw",localforage:"6uh7U","magic-sdk":"cTdgN","@magic-ext/oidc":"bCVaL","@ethersproject/providers":"lpm2Y","@imtbl/toolkit":"5Doxg","@imtbl/guardian":"lnZ3o",ethers:"8wpcu",events:"ikfQ0","@0xsequence/abi":"NeOck","@0xsequence/core":"hBsZJ",uuid:"hlwPQ","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],fg0b3:[function(e,t,r){var n,i,a,s=t.exports={};function o(){throw Error("setTimeout has not been defined")}function c(){throw Error("clearTimeout has not been defined")}function f(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{i="function"==typeof clearTimeout?clearTimeout:c}catch(e){i=c}}();var u=[],d=!1,l=-1;function h(){d&&a&&(d=!1,a.length?u=a.concat(u):l=-1,u.length&&p())}function p(){if(!d){var e=f(h);d=!0;for(var t=u.length;t;){for(a=u,u=[];++l1)for(var r=1;ra.default),n.export(r,"Axios",()=>s),n.export(r,"AxiosError",()=>o),n.export(r,"CanceledError",()=>c),n.export(r,"isCancel",()=>f),n.export(r,"CancelToken",()=>u),n.export(r,"VERSION",()=>d),n.export(r,"all",()=>l),n.export(r,"Cancel",()=>h),n.export(r,"isAxiosError",()=>p),n.export(r,"spread",()=>m),n.export(r,"toFormData",()=>b),n.export(r,"AxiosHeaders",()=>g),n.export(r,"HttpStatusCode",()=>y),n.export(r,"formToJSON",()=>v),n.export(r,"getAdapter",()=>w),n.export(r,"mergeConfig",()=>_);var i=e("./lib/axios.js"),a=n.interopDefault(i);let{Axios:s,AxiosError:o,CanceledError:c,isCancel:f,CancelToken:u,VERSION:d,all:l,Cancel:h,isAxiosError:p,spread:m,toFormData:b,AxiosHeaders:g,HttpStatusCode:y,formToJSON:v,getAdapter:w,mergeConfig:_}=a.default},{"./lib/axios.js":"8DJLn","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"8DJLn":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);"use strict";var i=e("./utils.js"),a=n.interopDefault(i),s=e("./helpers/bind.js"),o=n.interopDefault(s),c=e("./core/Axios.js"),f=n.interopDefault(c),u=e("./core/mergeConfig.js"),d=n.interopDefault(u),l=e("./defaults/index.js"),h=n.interopDefault(l),p=e("./helpers/formDataToJSON.js"),m=n.interopDefault(p),b=e("./cancel/CanceledError.js"),g=n.interopDefault(b),y=e("./cancel/CancelToken.js"),v=n.interopDefault(y),w=e("./cancel/isCancel.js"),_=n.interopDefault(w),E=e("./env/data.js"),A=e("./helpers/toFormData.js"),M=n.interopDefault(A),S=e("./core/AxiosError.js"),x=n.interopDefault(S),T=e("./helpers/spread.js"),k=n.interopDefault(T),R=e("./helpers/isAxiosError.js"),I=n.interopDefault(R),C=e("./core/AxiosHeaders.js"),P=n.interopDefault(C),O=e("./adapters/adapters.js"),N=n.interopDefault(O),j=e("./helpers/HttpStatusCode.js"),B=n.interopDefault(j);let L=function e(t){let r=new f.default(t),n=(0,o.default)(f.default.prototype.request,r);return(0,a.default).extend(n,f.default.prototype,r,{allOwnKeys:!0}),(0,a.default).extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e((0,d.default)(t,r))},n}(h.default);L.Axios=f.default,L.CanceledError=g.default,L.CancelToken=v.default,L.isCancel=_.default,L.VERSION=E.VERSION,L.toFormData=M.default,L.AxiosError=x.default,L.Cancel=L.CanceledError,L.all=function(e){return Promise.all(e)},L.spread=k.default,L.isAxiosError=I.default,L.mergeConfig=d.default,L.AxiosHeaders=P.default,L.formToJSON=e=>(0,m.default)((0,a.default).isHTMLForm(e)?new FormData(e):e),L.getAdapter=N.default.getAdapter,L.HttpStatusCode=B.default,L.default=L,r.default=L},{"./utils.js":"2ioTY","./helpers/bind.js":"9mfTC","./core/Axios.js":"2wp4K","./core/mergeConfig.js":"j8Sbj","./defaults/index.js":"1GU0t","./helpers/formDataToJSON.js":"jhUur","./cancel/CanceledError.js":"judoa","./cancel/CancelToken.js":"2aN3e","./cancel/isCancel.js":"5ndsF","./env/data.js":"9ssnR","./helpers/toFormData.js":"k8OtD","./core/AxiosError.js":"hjCVQ","./helpers/spread.js":"gQxw3","./helpers/isAxiosError.js":"lE0ea","./core/AxiosHeaders.js":"1qkRX","./adapters/adapters.js":"6E0f0","./helpers/HttpStatusCode.js":"agO1h","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2ioTY":[function(e,t,r){var n,i,a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(r);"use strict";var s=e("./helpers/bind.js"),o=a.interopDefault(s),c=arguments[3];let{toString:f}=Object.prototype,{getPrototypeOf:u}=Object,d=(n=Object.create(null),e=>{let t=f.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())}),l=e=>(e=e.toLowerCase(),t=>d(t)===e),h=e=>t=>typeof t===e,{isArray:p}=Array,m=h("undefined"),b=l("ArrayBuffer"),g=h("string"),y=h("function"),v=h("number"),w=e=>null!==e&&"object"==typeof e,_=e=>{if("object"!==d(e))return!1;let t=u(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},E=l("Date"),A=l("File"),M=l("Blob"),S=l("FileList"),x=l("URLSearchParams");function T(e,t,{allOwnKeys:r=!1}={}){let n,i;if(null!=e){if("object"!=typeof e&&(e=[e]),p(e))for(n=0,i=e.length;n0;)if(t===(r=n[i]).toLowerCase())return r;return null}let R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:c,I=e=>!m(e)&&e!==R,C=(i="undefined"!=typeof Uint8Array&&u(Uint8Array),e=>i&&e instanceof i),P=l("HTMLFormElement"),O=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),N=l("RegExp"),j=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};T(r,(r,i)=>{let a;!1!==(a=t(r,i,e))&&(n[i]=a||r)}),Object.defineProperties(e,n)},B="abcdefghijklmnopqrstuvwxyz",L="0123456789",D={DIGIT:L,ALPHA:B,ALPHA_DIGIT:B+B.toUpperCase()+L},U=l("AsyncFunction");r.default={isArray:p,isArrayBuffer:b,isBuffer:function(e){return null!==e&&!m(e)&&null!==e.constructor&&!m(e.constructor)&&y(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||y(e.append)&&("formdata"===(t=d(e))||"object"===t&&y(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&b(e.buffer)},isString:g,isNumber:v,isBoolean:e=>!0===e||!1===e,isObject:w,isPlainObject:_,isUndefined:m,isDate:E,isFile:A,isBlob:M,isRegExp:N,isFunction:y,isStream:e=>w(e)&&y(e.pipe),isURLSearchParams:x,isTypedArray:C,isFileList:S,forEach:T,merge:function e(){let{caseless:t}=I(this)&&this||{},r={},n=(n,i)=>{let a=t&&k(r,i)||i;_(r[a])&&_(n)?r[a]=e(r[a],n):_(n)?r[a]=e({},n):p(n)?r[a]=n.slice():r[a]=n};for(let e=0,t=arguments.length;e(T(t,(t,n)=>{r&&y(t)?e[n]=(0,o.default)(t,r):e[n]=t},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let i,a,s;let o={};if(t=t||{},null==e)return t;do{for(a=(i=Object.getOwnPropertyNames(e)).length;a-- >0;)s=i[a],(!n||n(s,e,t))&&!o[s]&&(t[s]=e[s],o[s]=!0);e=!1!==r&&u(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype)return t},kindOf:d,kindOfTest:l,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!v(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{let r;let n=e&&e[Symbol.iterator],i=n.call(e);for(;(r=i.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let r;let n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:P,hasOwnProperty:O,hasOwnProp:O,reduceDescriptors:j,freezeMethods:e=>{j(e,(t,r)=>{if(y(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;let n=e[r];if(y(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(e,t)=>{let r={};return(e=>{e.forEach(e=>{r[e]=!0})})(p(e)?e:String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>Number.isFinite(e=+e)?e:t,findKey:k,global:R,isContextDefined:I,ALPHABET:D,generateString:(e=16,t=D.ALPHA_DIGIT)=>{let r="",{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&y(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{let t=Array(10),r=(e,n)=>{if(w(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;let i=p(e)?[]:{};return T(e,(e,t)=>{let a=r(e,n+1);m(a)||(i[t]=a)}),t[n]=void 0,i}}return e};return r(e,0)},isAsyncFn:U,isThenable:e=>e&&(w(e)||y(e))&&y(e.then)&&y(e.catch)}},{"./helpers/bind.js":"9mfTC","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"9mfTC":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";function i(e,t){return function(){return e.apply(t,arguments)}}n.defineInteropFlag(r),n.export(r,"default",()=>i)},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],cI3Jn:[function(e,t,r){r.interopDefault=function(e){return e&&e.__esModule?e:{default:e}},r.defineInteropFlag=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.exportAll=function(e,t){return Object.keys(e).forEach(function(r){"default"===r||"__esModule"===r||t.hasOwnProperty(r)||Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[r]}})}),t},r.export=function(e,t,r){Object.defineProperty(e,t,{enumerable:!0,get:r})}},{}],"2wp4K":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);"use strict";var i=e("./../utils.js"),a=n.interopDefault(i),s=e("../helpers/buildURL.js"),o=n.interopDefault(s),c=e("./InterceptorManager.js"),f=n.interopDefault(c),u=e("./dispatchRequest.js"),d=n.interopDefault(u),l=e("./mergeConfig.js"),h=n.interopDefault(l),p=e("./buildFullPath.js"),m=n.interopDefault(p),b=e("../helpers/validator.js"),g=n.interopDefault(b),y=e("./AxiosHeaders.js"),v=n.interopDefault(y);let w=g.default.validators;class _{constructor(e){this.defaults=e,this.interceptors={request:new f.default,response:new f.default}}request(e,t){let r,n;"string"==typeof e?(t=t||{}).url=e:t=e||{},t=(0,h.default)(this.defaults,t);let{transitional:i,paramsSerializer:s,headers:o}=t;void 0!==i&&(0,g.default).assertOptions(i,{silentJSONParsing:w.transitional(w.boolean),forcedJSONParsing:w.transitional(w.boolean),clarifyTimeoutError:w.transitional(w.boolean)},!1),null!=s&&((0,a.default).isFunction(s)?t.paramsSerializer={serialize:s}:(0,g.default).assertOptions(s,{encode:w.function,serialize:w.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let c=o&&(0,a.default).merge(o.common,o[t.method]);o&&(0,a.default).forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=(0,v.default).concat(c,o);let f=[],u=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(u=u&&e.synchronous,f.unshift(e.fulfilled,e.rejected))});let l=[];this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let p=0;if(!u){let e=[(0,d.default).bind(this),void 0];for(e.unshift.apply(e,f),e.push.apply(e,l),n=e.length,r=Promise.resolve(t);pf);"use strict";var i=e("../utils.js"),a=n.interopDefault(i),s=e("../helpers/AxiosURLSearchParams.js"),o=n.interopDefault(s);function c(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function f(e,t,r){let n;if(!t)return e;let i=r&&r.encode||c,s=r&&r.serialize;if(n=s?s(t,r):(0,a.default).isURLSearchParams(t)?t.toString():new(0,o.default)(t,r).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}},{"../utils.js":"2ioTY","../helpers/AxiosURLSearchParams.js":"juzHK","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],juzHK:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);"use strict";var i=e("./toFormData.js"),a=n.interopDefault(i);function s(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function o(e,t){this._pairs=[],e&&(0,a.default)(e,this,t)}let c=o.prototype;c.append=function(e,t){this._pairs.push([e,t])},c.toString=function(e){let t=e?function(t){return e.call(this,t,s)}:s;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")},r.default=o},{"./toFormData.js":"k8OtD","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],k8OtD:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);"use strict";var i=e("../utils.js"),a=n.interopDefault(i),s=e("../core/AxiosError.js"),o=n.interopDefault(s),c=e("../platform/node/classes/FormData.js"),f=n.interopDefault(c),u=e("adfd9b103875c2dd").Buffer;function d(e){return(0,a.default).isPlainObject(e)||(0,a.default).isArray(e)}function l(e){return(0,a.default).endsWith(e,"[]")?e.slice(0,-2):e}function h(e,t,r){return e?e.concat(t).map(function(e,t){return e=l(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}let p=(0,a.default).toFlatObject(a.default,{},null,function(e){return/^is[A-Z]/.test(e)});r.default=function(e,t,r){if(!(0,a.default).isObject(e))throw TypeError("target must be an object");t=t||new(f.default||FormData),r=(0,a.default).toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!(0,a.default).isUndefined(t[e])});let n=r.metaTokens,i=r.visitor||y,s=r.dots,c=r.indexes,m=r.Blob||"undefined"!=typeof Blob&&Blob,b=m&&(0,a.default).isSpecCompliantForm(t);if(!(0,a.default).isFunction(i))throw TypeError("visitor must be a function");function g(e){if(null===e)return"";if((0,a.default).isDate(e))return e.toISOString();if(!b&&(0,a.default).isBlob(e))throw new o.default("Blob is not supported. Use a Buffer instead.");return(0,a.default).isArrayBuffer(e)||(0,a.default).isTypedArray(e)?b&&"function"==typeof Blob?new Blob([e]):u.from(e):e}function y(e,r,i){let o=e;if(e&&!i&&"object"==typeof e){if((0,a.default).endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else{var f;if((0,a.default).isArray(e)&&(f=e,(0,a.default).isArray(f)&&!f.some(d))||((0,a.default).isFileList(e)||(0,a.default).endsWith(r,"[]"))&&(o=(0,a.default).toArray(e)))return r=l(r),o.forEach(function(e,n){(0,a.default).isUndefined(e)||null===e||t.append(!0===c?h([r],n,s):null===c?r:r+"[]",g(e))}),!1}}return!!d(e)||(t.append(h(i,r,s),g(e)),!1)}let v=[],w=Object.assign(p,{defaultVisitor:y,convertValue:g,isVisitable:d});if(!(0,a.default).isObject(e))throw TypeError("data must be an object");return!function e(r,n){if(!(0,a.default).isUndefined(r)){if(-1!==v.indexOf(r))throw Error("Circular reference detected in "+n.join("."));v.push(r),(0,a.default).forEach(r,function(r,s){let o=!((0,a.default).isUndefined(r)||null===r)&&i.call(t,r,(0,a.default).isString(s)?s.trim():s,n,w);!0===o&&e(r,n?n.concat(s):[s])}),v.pop()}}(e),t}},{adfd9b103875c2dd:"2MMCE","../utils.js":"2ioTY","../core/AxiosError.js":"hjCVQ","../platform/node/classes/FormData.js":"fN4B6","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2MMCE":[function(e,t,r){"use strict";let n=e("9c62938f1dccc73c"),i=e("aceacb6a4531a9d2"),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,o.prototype),t}function o(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return u(e)}return c(e,t,r)}function c(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!o.isEncoding(t))throw TypeError("Unknown encoding: "+t);let r=0|p(e,t),n=s(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(L(e,Uint8Array)){let t=new Uint8Array(e);return l(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(L(e,ArrayBuffer)||e&&L(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(L(e,SharedArrayBuffer)||e&&L(e.buffer,SharedArrayBuffer)))return l(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return o.from(n,t,r);let i=function(e){var t;if(o.isBuffer(e)){let t=0|h(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?s(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return o.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function f(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return f(e),s(e<0?0:0|h(e))}function d(e){let t=e.length<0?0:0|h(e.length),r=s(t);for(let n=0;n=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||L(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return N(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return j(e).length;default:if(i)return n?-1:N(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,r){let i=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=t;n2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(a=r=+r)!=a&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=o.from(t,n)),o.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){let a,s=1,o=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;s=2,o/=2,c/=2,r/=2}function f(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){let n=-1;for(a=r;ao&&(r=o-c),a=r;a>=0;a--){let r=!0;for(let n=0;n239?4:t>223?3:t>191?2:1;if(i+s<=r){let r,n,o,c;switch(s){case 1:t<128&&(a=t);break;case 2:(192&(r=e[i+1]))==128&&(c=(31&t)<<6|63&r)>127&&(a=c);break;case 3:r=e[i+1],n=e[i+2],(192&r)==128&&(192&n)==128&&(c=(15&t)<<12|(63&r)<<6|63&n)>2047&&(c<55296||c>57343)&&(a=c);break;case 4:r=e[i+1],n=e[i+2],o=e[i+3],(192&r)==128&&(192&n)==128&&(192&o)==128&&(c=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&o)>65535&&c<1114112&&(a=c)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),i+=s}return function(e){let t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nr)throw RangeError("Trying to access beyond buffer length")}function _(e,t,r,n,i,a){if(!o.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function E(e,t,r,n,i){I(t,n,i,e,r,7);let a=Number(t&BigInt(4294967295));e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,r}function A(e,t,r,n,i){I(t,n,i,e,r,7);let a=Number(t&BigInt(4294967295));e[r+7]=a,a>>=8,e[r+6]=a,a>>=8,e[r+5]=a,a>>=8,e[r+4]=a;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s>>=8,e[r+2]=s,s>>=8,e[r+1]=s,s>>=8,e[r]=s,r+8}function M(e,t,r,n,i,a){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function S(e,t,r,n,a){return t=+t,r>>>=0,a||M(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function x(e,t,r,n,a){return t=+t,r>>>=0,a||M(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}r.Buffer=o,r.SlowBuffer=function(e){return+e!=e&&(e=0),o.alloc(+e)},r.INSPECT_MAX_BYTES=50,r.kMaxLength=2147483647,o.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),o.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}}),o.poolSize=8192,o.from=function(e,t,r){return c(e,t,r)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array),o.alloc=function(e,t,r){return(f(e),e<=0)?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)},o.allocUnsafe=function(e){return u(e)},o.allocUnsafeSlow=function(e){return u(e)},o.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==o.prototype},o.compare=function(e,t){if(L(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),L(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(e)||!o.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,a=Math.min(r,n);in.length?(o.isBuffer(t)||(t=o.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else if(o.isBuffer(t))t.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=t.length}return n},o.byteLength=p,o.prototype._isBuffer=!0,o.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tt&&(e+=" ... "),""},a&&(o.prototype[a]=o.prototype.inspect),o.prototype.compare=function(e,t,r,n,i){if(L(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;let a=i-n,s=r-t,c=Math.min(a,s),f=this.slice(n,i),u=e.slice(t,r);for(let e=0;e>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let l=this.length-t;if((void 0===r||r>l)&&(r=l),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let h=!1;for(;;)switch(n){case"hex":return function(e,t,r,n){let i;r=Number(r)||0;let a=e.length-r;n?(n=Number(n))>a&&(n=a):n=a;let s=t.length;for(n>s/2&&(n=s/2),i=0;i>8,i.push(r%256),i.push(n);return i}(e,this.length-u),this,u,d);default:if(h)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.slice=function(e,t){let r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||w(e,t,this.length);let n=this[e],i=1,a=0;for(;++a>>=0,t>>>=0,r||w(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},o.prototype.readUint8=o.prototype.readUInt8=function(e,t){return e>>>=0,t||w(e,1,this.length),this[e]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readBigUInt64LE=U(function(e){C(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&P(e,this.length-8);let n=t+256*this[++e]+65536*this[++e]+16777216*this[++e],i=this[++e]+256*this[++e]+65536*this[++e]+16777216*r;return BigInt(n)+(BigInt(i)<>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&P(e,this.length-8);let n=16777216*t+65536*this[++e]+256*this[++e]+this[++e],i=16777216*this[++e]+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<>>=0,t>>>=0,r||w(e,t,this.length);let n=this[e],i=1,a=0;for(;++a=(i*=128)&&(n-=Math.pow(2,8*t)),n},o.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let n=t,i=1,a=this[e+--n];for(;n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},o.prototype.readInt8=function(e,t){return(e>>>=0,t||w(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},o.prototype.readInt16LE=function(e,t){e>>>=0,t||w(e,2,this.length);let r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt16BE=function(e,t){e>>>=0,t||w(e,2,this.length);let r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readBigInt64LE=U(function(e){C(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&P(e,this.length-8);let n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&P(e,this.length-8);let n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<>>=0,t||w(e,4,this.length),i.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e>>>=0,t||w(e,4,this.length),i.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e>>>=0,t||w(e,8,this.length),i.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e>>>=0,t||w(e,8,this.length),i.read(this,e,!1,52,8)},o.prototype.writeUintLE=o.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;_(this,e,t,r,n,0)}let i=1,a=0;for(this[t]=255&e;++a>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;_(this,e,t,r,n,0)}let i=r-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+r},o.prototype.writeUint8=o.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,1,255,0),this[t]=255&e,t+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeBigUInt64LE=U(function(e,t=0){return E(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=U(function(e,t=0){return A(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);_(this,e,t,r,n-1,-n)}let i=0,a=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+r},o.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);_(this,e,t,r,n-1,-n)}let i=r-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},o.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},o.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeBigInt64LE=U(function(e,t=0){return E(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=U(function(e,t=0){return A(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeFloatLE=function(e,t,r){return S(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){return S(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){return x(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){return x(this,e,t,!1,r)},o.prototype.copy=function(e,t,r,n){if(!o.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function I(e,t,r,n,i,a){if(e>r||e3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${(a+1)*8}${i}`:`>= -(2${i} ** ${(a+1)*8-1}${i}) and < 2 ** ${(a+1)*8-1}${i}`:`>= ${t}${i} and <= ${r}${i}`,new T.ERR_OUT_OF_RANGE("value",n,e)}C(i,"offset"),(void 0===n[i]||void 0===n[i+a])&&P(i,n.length-(a+1))}function C(e,t){if("number"!=typeof e)throw new T.ERR_INVALID_ARG_TYPE(t,"number",e)}function P(e,t,r){if(Math.floor(e)!==e)throw C(e,r),new T.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new T.ERR_BUFFER_OUT_OF_BOUNDS;throw new T.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}k("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),k("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),k("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>4294967296?i=R(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=R(i)),i+="n"),n+=` It must be ${t}. Received ${i}`},RangeError);let O=/[^+/0-9A-Za-z-_]/g;function N(e,t){let r;t=t||1/0;let n=e.length,i=null,a=[];for(let s=0;s55295&&r<57344){if(!i){if(r>56319||s+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return a}function j(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(O,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function B(e,t,r,n){let i;for(i=0;i=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function L(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let D=function(){let e="0123456789abcdef",t=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function U(e){return"undefined"==typeof BigInt?F:e}function F(){throw Error("BigInt not supported")}},{"9c62938f1dccc73c":"6P4Ax",aceacb6a4531a9d2:"lPFVa"}],"6P4Ax":[function(e,t,r){"use strict";r.byteLength=function(e){var t=f(e),r=t[0],n=t[1];return(r+n)*3/4-n},r.toByteArray=function(e){var t,r,n=f(e),s=n[0],o=n[1],c=new a((s+o)*3/4-o),u=0,d=o>0?s-4:s;for(r=0;r>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===o&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,c[u++]=255&t),1===o&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,a=[],s=0,o=r-i;s>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}(e,s,s+16383>o?o:s+16383));return 1===i?a.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&a.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),a.join("")};for(var n=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,c=s.length;o0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],lPFVa:[function(e,t,r){r.read=function(e,t,r,n,i){var a,s,o=8*i-n-1,c=(1<>1,u=-7,d=r?i-1:0,l=r?-1:1,h=e[t+d];for(d+=l,a=h&(1<<-u)-1,h>>=-u,u+=o;u>0;a=256*a+e[t+d],d+=l,u-=8);for(s=a&(1<<-u)-1,a>>=-u,u+=n;u>0;s=256*s+e[t+d],d+=l,u-=8);if(0===a)a=1-f;else{if(a===c)return s?NaN:(h?-1:1)*(1/0);s+=Math.pow(2,n),a-=f}return(h?-1:1)*s*Math.pow(2,a-n)},r.write=function(e,t,r,n,i,a){var s,o,c,f=8*a-i-1,u=(1<>1,l=23===i?5960464477539062e-23:0,h=n?0:a-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(o=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+d>=1?t+=l/c:t+=l*Math.pow(2,1-d),t*c>=2&&(s++,c/=2),s+d>=u?(o=0,s=u):s+d>=1?(o=(t*c-1)*Math.pow(2,i),s+=d):(o=t*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;e[r+h]=255&o,h+=p,o/=256,i-=8);for(s=s<0;e[r+h]=255&s,h+=p,s/=256,f-=8);e[r+h-p]|=128*m}},{}],hjCVQ:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);"use strict";var i=e("../utils.js"),a=n.interopDefault(i);function s(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}(0,a.default).inherits(s,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:(0,a.default).toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});let o=s.prototype,c={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{c[e]={value:e}}),Object.defineProperties(s,c),Object.defineProperty(o,"isAxiosError",{value:!0}),s.from=(e,t,r,n,i,c)=>{let f=Object.create(o);return(0,a.default).toFlatObject(e,f,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),s.call(f,e.message,t,r,n,i),f.cause=e,f.name=e.name,c&&Object.assign(f,c),f},r.default=s},{"../utils.js":"2ioTY","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],fN4B6:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=null},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"5Qndl":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);"use strict";var i=e("./../utils.js"),a=n.interopDefault(i);r.default=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){(0,a.default).forEach(this.handlers,function(t){null!==t&&e(t)})}}},{"./../utils.js":"2ioTY","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gTZwy:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>g);"use strict";var i=e("./transformData.js"),a=n.interopDefault(i),s=e("../cancel/isCancel.js"),o=n.interopDefault(s),c=e("../defaults/index.js"),f=n.interopDefault(c),u=e("../cancel/CanceledError.js"),d=n.interopDefault(u),l=e("../core/AxiosHeaders.js"),h=n.interopDefault(l),p=e("../adapters/adapters.js"),m=n.interopDefault(p);function b(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new d.default(null,e)}function g(e){b(e),e.headers=(0,h.default).from(e.headers),e.data=(0,a.default).call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);let t=(0,m.default).getAdapter(e.adapter||f.default.adapter);return t(e).then(function(t){return b(e),t.data=(0,a.default).call(e,e.transformResponse,t),t.headers=(0,h.default).from(t.headers),t},function(t){return!(0,o.default)(t)&&(b(e),t&&t.response&&(t.response.data=(0,a.default).call(e,e.transformResponse,t.response),t.response.headers=(0,h.default).from(t.response.headers))),Promise.reject(t)})}},{"./transformData.js":"8H0wy","../cancel/isCancel.js":"5ndsF","../defaults/index.js":"1GU0t","../cancel/CanceledError.js":"judoa","../core/AxiosHeaders.js":"1qkRX","../adapters/adapters.js":"6E0f0","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"8H0wy":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>u);"use strict";var i=e("./../utils.js"),a=n.interopDefault(i),s=e("../defaults/index.js"),o=n.interopDefault(s),c=e("../core/AxiosHeaders.js"),f=n.interopDefault(c);function u(e,t){let r=this||o.default,n=t||r,i=(0,f.default).from(n.headers),s=n.data;return(0,a.default).forEach(e,function(e){s=e.call(r,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}},{"./../utils.js":"2ioTY","../defaults/index.js":"1GU0t","../core/AxiosHeaders.js":"1qkRX","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"1GU0t":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);"use strict";var i=e("../utils.js"),a=n.interopDefault(i),s=e("../core/AxiosError.js"),o=n.interopDefault(s),c=e("./transitional.js"),f=n.interopDefault(c),u=e("../helpers/toFormData.js"),d=n.interopDefault(u),l=e("../helpers/toURLEncodedForm.js"),h=n.interopDefault(l),p=e("../platform/index.js"),m=n.interopDefault(p),b=e("../helpers/formDataToJSON.js"),g=n.interopDefault(b);let y={transitional:f.default,adapter:["xhr","http"],transformRequest:[function(e,t){let r;let n=t.getContentType()||"",i=n.indexOf("application/json")>-1,s=(0,a.default).isObject(e);s&&(0,a.default).isHTMLForm(e)&&(e=new FormData(e));let o=(0,a.default).isFormData(e);if(o)return i&&i?JSON.stringify((0,g.default)(e)):e;if((0,a.default).isArrayBuffer(e)||(0,a.default).isBuffer(e)||(0,a.default).isStream(e)||(0,a.default).isFile(e)||(0,a.default).isBlob(e))return e;if((0,a.default).isArrayBufferView(e))return e.buffer;if((0,a.default).isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return(0,h.default)(e,this.formSerializer).toString();if((r=(0,a.default).isFileList(e))||n.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return(0,d.default)(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}return s||i?(t.setContentType("application/json",!1),function(e,t,r){if((0,a.default).isString(e))try{return(0,JSON.parse)(e),(0,a.default).trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){let t=this.transitional||y.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&(0,a.default).isString(e)&&(r&&!this.responseType||n)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!r&&n){if("SyntaxError"===e.name)throw(0,o.default).from(e,o.default.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:m.default.classes.FormData,Blob:m.default.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};(0,a.default).forEach(["delete","get","head","post","put","patch"],e=>{y.headers[e]={}}),r.default=y},{"../utils.js":"2ioTY","../core/AxiosError.js":"hjCVQ","./transitional.js":"lBqaD","../helpers/toFormData.js":"k8OtD","../helpers/toURLEncodedForm.js":"bgvH4","../platform/index.js":"fP1Ni","../helpers/formDataToJSON.js":"jhUur","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lBqaD:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);"use strict";r.default={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],bgvH4:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>u);"use strict";var i=e("../utils.js"),a=n.interopDefault(i),s=e("./toFormData.js"),o=n.interopDefault(s),c=e("../platform/index.js"),f=n.interopDefault(c);function u(e,t){return(0,o.default)(e,new f.default.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return f.default.isNode&&(0,a.default).isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}},{"../utils.js":"2ioTY","./toFormData.js":"k8OtD","../platform/index.js":"fP1Ni","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],fP1Ni:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./node/index.js"),a=n.interopDefault(i),s=e("./common/utils.js");r.default={...s,...a.default}},{"./node/index.js":"3yghl","./common/utils.js":"dkG5V","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"3yghl":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./classes/URLSearchParams.js"),a=n.interopDefault(i),s=e("./classes/FormData.js"),o=n.interopDefault(s),c=e("./classes/Blob.js"),f=n.interopDefault(c);r.default={isBrowser:!0,classes:{URLSearchParams:a.default,FormData:o.default,Blob:f.default},protocols:["http","https","file","blob","url","data"]}},{"./classes/URLSearchParams.js":"eT4YQ","./classes/FormData.js":"2389U","./classes/Blob.js":"eKMhL","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],eT4YQ:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);"use strict";var i=e("../../../helpers/AxiosURLSearchParams.js"),a=n.interopDefault(i);r.default="undefined"!=typeof URLSearchParams?URLSearchParams:a.default},{"../../../helpers/AxiosURLSearchParams.js":"juzHK","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2389U":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);"use strict";r.default="undefined"!=typeof FormData?FormData:null},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],eKMhL:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);"use strict";r.default="undefined"!=typeof Blob?Blob:null},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dkG5V:[function(e,t,r){var n,i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"hasBrowserEnv",()=>a),i.export(r,"hasStandardBrowserWebWorkerEnv",()=>o),i.export(r,"hasStandardBrowserEnv",()=>s);let a="undefined"!=typeof window&&"undefined"!=typeof document,s=(n="undefined"!=typeof navigator&&navigator.product,a&&0>["ReactNative","NativeScript","NS"].indexOf(n)),o="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],jhUur:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);"use strict";var i=e("../utils.js"),a=n.interopDefault(i);r.default=function(e){if((0,a.default).isFormData(e)&&(0,a.default).isFunction(e.entries)){let t={};return(0,a.default).forEachEntry(e,(e,r)=>{!function e(t,r,n,i){let s=t[i++];if("__proto__"===s)return!0;let o=Number.isFinite(+s),c=i>=t.length;if(s=!s&&(0,a.default).isArray(n)?n.length:s,c)return(0,a.default).hasOwnProp(n,s)?n[s]=[n[s],r]:n[s]=r,!o;n[s]&&(0,a.default).isObject(n[s])||(n[s]=[]);let f=e(t,r,n[s],i);return f&&(0,a.default).isArray(n[s])&&(n[s]=function(e){let t,r;let n={},i=Object.keys(e),a=i.length;for(t=0;t"[]"===e[0]?"":e[1]||e[0]),r,t,0)}),t}return null}},{"../utils.js":"2ioTY","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"1qkRX":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);"use strict";var i=e("../utils.js"),a=n.interopDefault(i),s=e("../helpers/parseHeaders.js"),o=n.interopDefault(s);let c=Symbol("internals");function f(e){return e&&String(e).trim().toLowerCase()}function u(e){return!1===e||null==e?e:(0,a.default).isArray(e)?e.map(u):String(e)}let d=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function l(e,t,r,n,i){if((0,a.default).isFunction(n))return n.call(this,t,r);if(i&&(t=r),(0,a.default).isString(t)){if((0,a.default).isString(n))return -1!==t.indexOf(n);if((0,a.default).isRegExp(n))return n.test(t)}}class h{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function i(e,t,r){let i=f(t);if(!i)throw Error("header name must be a non-empty string");let s=(0,a.default).findKey(n,i);s&&void 0!==n[s]&&!0!==r&&(void 0!==r||!1===n[s])||(n[s||t]=u(e))}let s=(e,t)=>(0,a.default).forEach(e,(e,r)=>i(e,r,t));return(0,a.default).isPlainObject(e)||e instanceof this.constructor?s(e,t):(0,a.default).isString(e)&&(e=e.trim())&&!d(e)?s((0,o.default)(e),t):null!=e&&i(t,e,r),this}get(e,t){if(e=f(e)){let r=(0,a.default).findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t)return function(e){let t;let r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=n.exec(e);)r[t[1]]=t[2];return r}(e);if((0,a.default).isFunction(t))return t.call(this,e,r);if((0,a.default).isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=f(e)){let r=(0,a.default).findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||l(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function i(e){if(e=f(e)){let i=(0,a.default).findKey(r,e);i&&(!t||l(r,r[i],i,t))&&(delete r[i],n=!0)}}return(0,a.default).isArray(e)?e.forEach(i):i(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let i=t[r];(!e||l(this,this[i],i,e,!0))&&(delete this[i],n=!0)}return n}normalize(e){let t=this,r={};return(0,a.default).forEach(this,(n,i)=>{let s=(0,a.default).findKey(r,i);if(s){t[s]=u(n),delete t[i];return}let o=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(i).trim();o!==i&&delete t[i],t[o]=u(n),r[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return(0,a.default).forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&(0,a.default).isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=this[c]=this[c]={accessors:{}},r=t.accessors,n=this.prototype;function i(e){let t=f(e);r[t]||(!function(e,t){let r=(0,a.default).toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:!0})})}(n,e),r[t]=!0)}return(0,a.default).isArray(e)?e.forEach(i):i(e),this}}h.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),(0,a.default).reduceDescriptors(h.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),(0,a.default).freezeMethods(h),r.default=h},{"../utils.js":"2ioTY","../helpers/parseHeaders.js":"aYbVO","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],aYbVO:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);"use strict";var i=e("./../utils.js"),a=n.interopDefault(i);let s=(0,a.default).toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);r.default=e=>{let t,r,n;let i={};return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),t=e.substring(0,n).trim().toLowerCase(),r=e.substring(n+1).trim(),!t||i[t]&&s[t]||("set-cookie"===t?i[t]?i[t].push(r):i[t]=[r]:i[t]=i[t]?i[t]+", "+r:r)}),i}},{"./../utils.js":"2ioTY","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"5ndsF":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";function i(e){return!!(e&&e.__CANCEL__)}n.defineInteropFlag(r),n.export(r,"default",()=>i)},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],judoa:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);"use strict";var i=e("../core/AxiosError.js"),a=n.interopDefault(i),s=e("../utils.js");function o(e,t,r){(0,a.default).call(this,null==e?"canceled":e,a.default.ERR_CANCELED,t,r),this.name="CanceledError"}(0,n.interopDefault(s).default).inherits(o,a.default,{__CANCEL__:!0}),r.default=o},{"../core/AxiosError.js":"hjCVQ","../utils.js":"2ioTY","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"6E0f0":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("../utils.js"),a=n.interopDefault(i),s=e("./http.js"),o=n.interopDefault(s),c=e("./xhr.js"),f=n.interopDefault(c),u=e("../core/AxiosError.js"),d=n.interopDefault(u);let l={http:o.default,xhr:f.default};(0,a.default).forEach(l,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let h=e=>`- ${e}`,p=e=>(0,a.default).isFunction(e)||null===e||!1===e;r.default={getAdapter:e=>{let t,r;e=(0,a.default).isArray(e)?e:[e];let{length:n}=e,i={};for(let a=0;a`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")),t=n?e.length>1?"since :\n"+e.map(h).join("\n"):" "+h(e[0]):"as no adapter specified";throw new d.default("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return r},adapters:l}},{"../utils.js":"2ioTY","./http.js":"fN4B6","./xhr.js":"9qcoo","../core/AxiosError.js":"hjCVQ","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"9qcoo":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);"use strict";var i=e("./../utils.js"),a=n.interopDefault(i),s=e("./../core/settle.js"),o=n.interopDefault(s),c=e("./../helpers/cookies.js"),f=n.interopDefault(c),u=e("./../helpers/buildURL.js"),d=n.interopDefault(u),l=e("../core/buildFullPath.js"),h=n.interopDefault(l),p=e("./../helpers/isURLSameOrigin.js"),m=n.interopDefault(p),b=e("../defaults/transitional.js"),g=n.interopDefault(b),y=e("../core/AxiosError.js"),v=n.interopDefault(y),w=e("../cancel/CanceledError.js"),_=n.interopDefault(w),E=e("../helpers/parseProtocol.js"),A=n.interopDefault(E),M=e("../platform/index.js"),S=n.interopDefault(M),x=e("../core/AxiosHeaders.js"),T=n.interopDefault(x),k=e("../helpers/speedometer.js"),R=n.interopDefault(k);function I(e,t){let r=0,n=(0,R.default)(50,250);return i=>{let a=i.loaded,s=i.lengthComputable?i.total:void 0,o=a-r,c=n(o),f=a<=s;r=a;let u={loaded:a,total:s,progress:s?a/s:void 0,bytes:o,rate:c||void 0,estimated:c&&s&&f?(s-a)/c:void 0,event:i};u[t?"download":"upload"]=!0,e(u)}}let C="undefined"!=typeof XMLHttpRequest;r.default=C&&function(e){return new Promise(function(t,r){let n,i,s=e.data,c=(0,T.default).from(e.headers).normalize(),{responseType:u,withXSRFToken:l}=e;function p(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}if((0,a.default).isFormData(s)){if(S.default.hasStandardBrowserEnv||S.default.hasStandardBrowserWebWorkerEnv)c.setContentType(!1);else if(!1!==(i=c.getContentType())){let[e,...t]=i?i.split(";").map(e=>e.trim()).filter(Boolean):[];c.setContentType([e||"multipart/form-data",...t].join("; "))}}let b=new XMLHttpRequest;if(e.auth){let t=e.auth.username||"",r=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";c.set("Authorization","Basic "+btoa(t+":"+r))}let y=(0,h.default)(e.baseURL,e.url);function w(){if(!b)return;let n=(0,T.default).from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),i=u&&"text"!==u&&"json"!==u?b.response:b.responseText,a={data:i,status:b.status,statusText:b.statusText,headers:n,config:e,request:b};(0,o.default)(function(e){t(e),p()},function(e){r(e),p()},a),b=null}if(b.open(e.method.toUpperCase(),(0,d.default)(y,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=w:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(w)},b.onabort=function(){b&&(r(new v.default("Request aborted",v.default.ECONNABORTED,e,b)),b=null)},b.onerror=function(){r(new v.default("Network Error",v.default.ERR_NETWORK,e,b)),b=null},b.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||g.default;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new v.default(t,n.clarifyTimeoutError?v.default.ETIMEDOUT:v.default.ECONNABORTED,e,b)),b=null},S.default.hasStandardBrowserEnv&&(l&&(0,a.default).isFunction(l)&&(l=l(e)),l||!1!==l&&(0,m.default)(y))){let t=e.xsrfHeaderName&&e.xsrfCookieName&&(0,f.default).read(e.xsrfCookieName);t&&c.set(e.xsrfHeaderName,t)}void 0===s&&c.setContentType(null),"setRequestHeader"in b&&(0,a.default).forEach(c.toJSON(),function(e,t){b.setRequestHeader(t,e)}),(0,a.default).isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),u&&"json"!==u&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",I(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",I(e.onUploadProgress)),(e.cancelToken||e.signal)&&(n=t=>{b&&(r(!t||t.type?new _.default(null,e,b):t),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n)));let E=(0,A.default)(y);if(E&&-1===(0,S.default).protocols.indexOf(E)){r(new v.default("Unsupported protocol "+E+":",v.default.ERR_BAD_REQUEST,e));return}b.send(s||null)})}},{"./../utils.js":"2ioTY","./../core/settle.js":"dlf0W","./../helpers/cookies.js":"lftHJ","./../helpers/buildURL.js":"aGaJq","../core/buildFullPath.js":"48uot","./../helpers/isURLSameOrigin.js":"33eDi","../defaults/transitional.js":"lBqaD","../core/AxiosError.js":"hjCVQ","../cancel/CanceledError.js":"judoa","../helpers/parseProtocol.js":"3ExDf","../platform/index.js":"fP1Ni","../core/AxiosHeaders.js":"1qkRX","../helpers/speedometer.js":"cludo","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dlf0W:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>s);"use strict";var i=e("./AxiosError.js"),a=n.interopDefault(i);function s(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new a.default("Request failed with status code "+r.status,[a.default.ERR_BAD_REQUEST,a.default.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}},{"./AxiosError.js":"hjCVQ","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lftHJ:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./../utils.js"),a=n.interopDefault(i),s=e("../platform/index.js"),o=n.interopDefault(s);r.default=o.default.hasStandardBrowserEnv?{write(e,t,r,n,i,s){let o=[e+"="+encodeURIComponent(t)];(0,a.default).isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),(0,a.default).isString(n)&&o.push("path="+n),(0,a.default).isString(i)&&o.push("domain="+i),!0===s&&o.push("secure"),document.cookie=o.join("; ")},read(e){let t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}}},{"./../utils.js":"2ioTY","../platform/index.js":"fP1Ni","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"48uot":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>c);"use strict";var i=e("../helpers/isAbsoluteURL.js"),a=n.interopDefault(i),s=e("../helpers/combineURLs.js"),o=n.interopDefault(s);function c(e,t){return e&&!(0,a.default)(t)?(0,o.default)(e,t):t}},{"../helpers/isAbsoluteURL.js":"lW14e","../helpers/combineURLs.js":"kZdZo","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lW14e:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";function i(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}n.defineInteropFlag(r),n.export(r,"default",()=>i)},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],kZdZo:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";function i(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}n.defineInteropFlag(r),n.export(r,"default",()=>i)},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"33eDi":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);"use strict";var i=e("./../utils.js"),a=n.interopDefault(i),s=e("../platform/index.js"),o=n.interopDefault(s);r.default=o.default.hasStandardBrowserEnv?function(){let e;let t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){let n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){let r=(0,a.default).isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},{"./../utils.js":"2ioTY","../platform/index.js":"fP1Ni","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"3ExDf":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";function i(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}n.defineInteropFlag(r),n.export(r,"default",()=>i)},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],cludo:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);"use strict";r.default=function(e,t){let r;e=e||10;let n=Array(e),i=Array(e),a=0,s=0;return t=void 0!==t?t:1e3,function(o){let c=Date.now(),f=i[s];r||(r=c),n[a]=o,i[a]=c;let u=s,d=0;for(;u!==a;)d+=n[u++],u%=e;if((a=(a+1)%e)===s&&(s=(s+1)%e),c-rf);"use strict";var i=e("../utils.js"),a=n.interopDefault(i),s=e("./AxiosHeaders.js"),o=n.interopDefault(s);let c=e=>e instanceof o.default?e.toJSON():e;function f(e,t){t=t||{};let r={};function n(e,t,r){return(0,a.default).isPlainObject(e)&&(0,a.default).isPlainObject(t)?(0,a.default).merge.call({caseless:r},e,t):(0,a.default).isPlainObject(t)?(0,a.default).merge({},t):(0,a.default).isArray(t)?t.slice():t}function i(e,t,r){return(0,a.default).isUndefined(t)?(0,a.default).isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function s(e,t){if(!(0,a.default).isUndefined(t))return n(void 0,t)}function o(e,t){return(0,a.default).isUndefined(t)?(0,a.default).isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function f(r,i,a){return a in t?n(r,i):a in e?n(void 0,r):void 0}let u={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:f,headers:(e,t)=>i(c(e),c(t),!0)};return(0,a.default).forEach(Object.keys(Object.assign({},e,t)),function(n){let s=u[n]||i,o=s(e[n],t[n],n);(0,a.default).isUndefined(o)&&s!==f||(r[n]=o)}),r}},{"../utils.js":"2ioTY","./AxiosHeaders.js":"1qkRX","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"8PNBN":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";n.defineInteropFlag(r);var i=e("../env/data.js"),a=e("../core/AxiosError.js"),s=n.interopDefault(a);let o={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{o[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let c={};o.transitional=function(e,t,r){function n(e,t){return"[Axios v"+i.VERSION+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,a)=>{if(!1===e)throw new s.default(n(i," has been removed"+(t?" in "+t:"")),s.default.ERR_DEPRECATED);return t&&!c[i]&&(c[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,a)}},r.default={assertOptions:function(e,t,r){if("object"!=typeof e)throw new s.default("options must be an object",s.default.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),i=n.length;for(;i-- >0;){let a=n[i],o=t[a];if(o){let t=e[a],r=void 0===t||o(t,a,e);if(!0!==r)throw new s.default("option "+a+" must be "+r,s.default.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new s.default("Unknown option "+a,s.default.ERR_BAD_OPTION)}},validators:o}},{"../env/data.js":"9ssnR","../core/AxiosError.js":"hjCVQ","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"9ssnR":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"VERSION",()=>i);let i="1.6.5"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2aN3e":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);"use strict";var i=e("./CanceledError.js"),a=n.interopDefault(i);class s{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;let n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,i){r.reason||(r.reason=new a.default(e,n,i),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;let t=new s(function(t){e=t});return{token:t,cancel:e}}}r.default=s},{"./CanceledError.js":"judoa","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gQxw3:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";function i(e){return function(t){return e.apply(null,t)}}n.defineInteropFlag(r),n.export(r,"default",()=>i)},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lE0ea:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>s);"use strict";var i=e("./../utils.js"),a=n.interopDefault(i);function s(e){return(0,a.default).isObject(e)&&!0===e.isAxiosError}},{"./../utils.js":"2ioTY","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],agO1h:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);let n={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(n).forEach(([e,t])=>{n[t]=e}),r.default=n},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dO0KB:[function(e,t,r){let n,i;var a,s,o,c,f=e("@parcel/transformer-js/src/esmodule-helpers.js");f.defineInteropFlag(r),f.export(r,"Detail",()=>o),f.export(r,"getDetail",()=>ef),f.export(r,"identify",()=>ea),f.export(r,"setEnvironment",()=>es),f.export(r,"setPassportClientId",()=>eo),f.export(r,"setPublishableApiKey",()=>ec),f.export(r,"track",()=>W),f.export(r,"trackDuration",()=>X),f.export(r,"trackError",()=>en),f.export(r,"trackFlow",()=>er),f.export(r,"utils",()=>eu);var u=e("axios"),d=f.interopDefault(u),l=e("lru-memorise"),h=e("global-const"),p=e("6a0bfe3548874972").Buffer;e("15cbbe915ba0ee1");let m=()=>"undefined"==typeof window,b=()=>!m(),g=()=>b()&&window.localStorage,y=e=>{if(null!==e)try{return JSON.parse(e)}catch(t){return e}},v=e=>"string"==typeof e?e:JSON.stringify(e),w=e=>`__IMX-${e}`;function _(e){if(g())return y(window.localStorage.getItem(w(e)))}let E=(e,t)=>!!g()&&(window.localStorage.setItem(w(e),v(t)),!0);var A=Object.freeze({__proto__:null,deleteItem:e=>!!g()&&(window.localStorage.removeItem(w(e)),!0),getItem:_,setItem:E});let M=0,S=e=>{let t=1e3*parseInt(e,10),r=new Date(t),n=new Date;return M=r.getTime()-n.getTime()},x=()=>{let e=new Date().getTime()+M,t=new Date(e).toISOString();return t};async function T(e,t){let r=(0,d.default).create({baseURL:"https://api.immutable.com"}),n=JSON.stringify(t),i={payload:p.from(n).toString("base64")},a=await r.post(e,i);return a.data}(a=o||(o={})).RUNTIME_ID="rid",a.PASSPORT_CLIENT_ID="passportClientId",a.ENVIRONMENT="env",a.PUBLISHABLE_API_KEY="pak",a.IDENTITY="uid",a.DOMAIN="domain",a.SDK_VERSION="sdkVersion",(s=c||(c={})).EVENTS="metrics-events",s.RUNTIME="metrics-runtime",n=_(c.EVENTS)||[],i=_(c.RUNTIME)||{};let k=(e,t)=>{i={...i,[e]:t},E(c.RUNTIME,i)},R=e=>{if(void 0!==i[e])return i[e]},I=()=>i,C=()=>n,P=e=>{n.push(e),E(c.EVENTS,n)},O=e=>{n=n.slice(e),E(c.EVENTS,n)},N=e=>{let t=[];return Object.entries(e).forEach(([e,r])=>{("string"==typeof e||"string"==typeof r||"number"==typeof r||"boolean"==typeof r)&&t.push([e,r.toString()])}),t},j="__SDK_VERSION__",B=()=>m()?"":window.location.ancestorOrigins&&window.location.ancestorOrigins.length>0?new URL(window.location.ancestorOrigins[0]).hostname:document.referrer?new URL(window.document.referrer).hostname:"",L=()=>{let e;if(m())return"";try{window.self!==window.top&&(e=B())}catch(e){}return e||(e=window.location.hostname),e},D=()=>{if(k(o.SDK_VERSION,j),m())return{browser:"nodejs",sdkVersion:j};let e=L();return e&&k(o.DOMAIN,e),{sdkVersion:j,browser:window.navigator.userAgent,domain:e,tz:Intl.DateTimeFormat().resolvedOptions().timeZone,screen:`${window.screen.width}x${window.screen.height}`}},U=!1,F=()=>U,q=async()=>{U=!0;try{let e=N(D()),t=R(o.RUNTIME_ID),r=R(o.IDENTITY),n=await T("/v1/sdk/initialise",{version:1,data:{runtimeDetails:e,runtimeId:t,uId:r}}),{runtimeId:i,sTime:a}=n;k(o.RUNTIME_ID,i),S(a)}catch(e){U=!1}};function z(e,t){return(...r)=>{try{let n=e(...r);if(n instanceof Promise)return n.catch(()=>t);return n}catch(e){return t}}}let K=z(function(){return!b()&&!1},!1),H="imtbl__metrics",V=(e,t)=>(0,h.getGlobalisedValue)(H,e,t),W=z(((e,t)=>{let r=(0,l.memorise)(t,{lruOptions:{ttl:5e3,max:1e3}});return(0,h.getGlobalisedValue)(H,e,r)})("track",(e,t,r)=>{let n={event:`${e}.${t}`,time:x(),...r&&{properties:N(r)}};P(n)})),G=async()=>{if(!1===F()){await q();return}let e=C();if(0===e.length)return;let t=e.length,r=I(),n=await T("/v1/sdk/metrics",{version:1,data:{events:e,details:r}});n instanceof Error||O(t)},J=z(G),Z=async()=>{await J(),setTimeout(Z,5e3)},$=!1;K()||z(V("startFlushing",()=>{$||($=!0,Z())}))();let X=(e,t,r,n)=>W(e,t,{...n||{},duration:Math.round(r)}),Y=()=>{let e=()=>Math.floor((1+Math.random())*65536).toString(16).substring(1);return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`},Q=(...e)=>{let t=e.some(e=>!!e);if(!t)return{};let r={};return e.forEach(e=>{e&&(r={...r,...e})}),r},ee=e=>e.replace(/[^a-zA-Z0-9\s\-_]/g,""),et=(e,t)=>`${e}_${ee(t)}`,er=z((e,t,r)=>{let n=Y(),i=Date.now(),a=0,s=0,o={},c=(...e)=>Q(o,...e,{flowId:n,flowName:t});o=c(r);let f=(r,n)=>{let i=et(t,r),o=0,f=performance.now();a>0&&(o=f-s);let u=c(n,{flowEventName:r,flowStep:a});X(e,i,o,u),a++,s=f};return f("Start"),{details:{moduleName:e,flowName:t,flowId:n,flowStartTime:i},addEvent:z(f),addFlowProperties:z(e=>{e&&(o=c(e))})}}),en=z((e,t,r,n)=>{let{message:i}=r,a=r.stack||"",{cause:s}=r;s instanceof Error&&(a=`${a} +)[]`,eV=e=>e.map(e=>({delegateCall:!0===e.delegateCall,revertOnError:!0===e.revertOnError,gasLimit:e.gasLimit??B.constants.Zero,target:e.to??B.constants.AddressZero,value:e.value??B.constants.Zero,data:e.data??[]})),eW=(e,t)=>{let r=(0,B.utils).defaultAbiCoder.encode(["uint256",eH],[e,t]);return(0,B.utils).keccak256(r)},eG=e=>(0,B.utils).defaultAbiCoder.encode([eH],[e]),eJ=async(e,t)=>{try{let r=new B.Contract(t,D.walletContracts.mainModule.abi,e),n=await r.nonce();if(n instanceof B.BigNumber)return n}catch(e){if(e instanceof Error&&"code"in e&&e.code===B.errors.CALL_EXCEPTION)return(0,B.BigNumber).from(0);throw e}throw Error("Unexpected result from contract.nonce() call.")},eZ=(e,t,r)=>(0,B.utils).solidityPack(["string","uint256","address","bytes32"],["\x19\x01",e,t,r]),e$=async(e,t,r,n,i)=>{let a=eV(e),s=eW(t,a),o=eZ(r,n,s),c=(0,B.utils).keccak256(o),f=(0,B.utils).arrayify(c),u=performance.now(),d=await i.signMessage(f);(0,_.trackDuration)("passport","magicSignMessageGetSignedMetaTransactions",Math.round(performance.now()-u));let l=`${d}02`,h=(0,U.v1).signature.encodeSignature({version:1,threshold:1,signers:[{isDynamic:!1,unrecovered:!0,weight:1,signature:l}]}),p=new B.utils.Interface(D.walletContracts.mainModule.abi);return p.encodeFunctionData(p.getFunction("execute"),[a,t,h])},eX=e=>{let t=`0x0000${e}`;return(0,U.v1).signature.decodeSignature(t)},eY=(e,t,r)=>{let n=`${e}02`,{signers:i}=eX(r),a=[...i,{isDynamic:!1,unrecovered:!0,weight:1,signature:n,address:t}],s=a.sort((e,t)=>{let r=(0,B.BigNumber).from(e.address),n=(0,B.BigNumber).from(t.address);return r.lte(n)?-1:r.eq(n)?0:1});return(0,U.v1).signature.encodeSignature({version:1,threshold:2,signers:s})},eQ=async(e,t,r,n,i)=>{let a={...e.types};delete a.EIP712Domain;let{_TypedDataEncoder:s}=B.utils,o=s.hash(e.domain,a,e.message),c=eZ(r,n,o),f=(0,B.utils).keccak256(c),u=(0,B.utils).arrayify(f),d=performance.now(),l=await i.signMessage(u);(0,_.trackDuration)("passport","magicSignMessageTypedData",Math.round(performance.now()-d));let h=await i.getAddress();return eY(l,h,t)},e0=async(e,t,r,n)=>{let i=(0,B.utils).hashMessage(t),a=eZ(e,n,i),s=(0,B.utils).keccak256(a),o=(0,B.utils).arrayify(s);return r.signMessage(o)},e1=e=>`eip155:${e}`;class e2{config;rpcProvider;authManager;constructor({config:e,rpcProvider:t,authManager:r}){this.config=e,this.rpcProvider=t,this.authManager=r}async postToRelayer(e){let t={id:1,jsonrpc:"2.0",...e},r=await this.authManager.getUserZkEvm(),n=performance.now(),i=await fetch(`${this.config.relayerUrl}/v1/transactions`,{method:"POST",headers:{Authorization:`Bearer ${r.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify(t)});(0,_.trackDuration)("passport","postToRelayer",Math.round(performance.now()-n),{rpcMethod:e.method});let a=await i.json();if(a.error)throw a.error;return a}async ethSendTransaction(e,t){let{chainId:r}=await this.rpcProvider.detectNetwork(),n={method:"eth_sendTransaction",params:[{to:e,data:t,chainId:e1(r)}]},{result:i}=await this.postToRelayer(n);return i}async imGetTransactionByHash(e){let{result:t}=await this.postToRelayer({method:"im_getTransactionByHash",params:[e]});return t}async imGetFeeOptions(e,t){let{chainId:r}=await this.rpcProvider.detectNetwork(),n={method:"im_getFeeOptions",params:[{userAddress:e,data:t,chainId:e1(r)}]},{result:i}=await this.postToRelayer(n);return i}async imSignTypedData(e,t){let{chainId:r}=await this.rpcProvider.detectNetwork(),n={method:"im_signTypedData",params:[{address:e,eip712Payload:t,chainId:e1(r)}]},{result:i}=await this.postToRelayer(n);return i}async imSign(e,t){let{chainId:r}=await this.rpcProvider.detectNetwork(),n={method:"im_sign",params:[{address:e,message:t,chainId:e1(r)}]},{result:i}=await this.postToRelayer(n);return i}}(c=b||(b={}))[c.USER_REJECTED_REQUEST=4001]="USER_REJECTED_REQUEST",c[c.UNAUTHORIZED=4100]="UNAUTHORIZED",c[c.UNSUPPORTED_METHOD=4200]="UNSUPPORTED_METHOD",c[c.DISCONNECTED=4900]="DISCONNECTED",(f=g||(g={}))[f.RPC_SERVER_ERROR=-32e3]="RPC_SERVER_ERROR",f[f.INVALID_REQUEST=-32600]="INVALID_REQUEST",f[f.METHOD_NOT_FOUND=-32601]="METHOD_NOT_FOUND",f[f.INVALID_PARAMS=-32602]="INVALID_PARAMS",f[f.INTERNAL_ERROR=-32603]="INTERNAL_ERROR",f[f.PARSE_ERROR=-32700]="PARSE_ERROR",f[f.TRANSACTION_REJECTED=-32003]="TRANSACTION_REJECTED";class e6 extends Error{message;code;constructor(e,t){super(t),this.message=t,this.code=e}}async function e3({authManager:e,ethSigner:t,multiRollupApiClients:r,accessToken:n,rpcProvider:i,flow:a}){let s=t.getAddress();s.then(()=>a.addEvent("endGetAddress"));let o=(0,N.signRaw)("Only sign this message from Immutable Passport",t);o.then(()=>a.addEvent("endSignRaw"));let c=i.detectNetwork();c.then(()=>a.addEvent("endDetectNetwork"));let f=r.chainsApi.listChains();f.then(()=>a.addEvent("endListChains"));let[u,d,l,h]=await Promise.all([s,o,c,f]),p=e1(l.chainId),m=h.data?.result?.find(e=>e.id===p)?.name;if(!m)throw new e6(g.INTERNAL_ERROR,`Chain name does not exist on for chain id ${l.chainId}`);try{let t=await r.passportApi.createCounterfactualAddressV2({chainName:m,createCounterfactualAddressRequest:{ethereum_address:u,ethereum_signature:d}},{headers:{Authorization:`Bearer ${n}`}});return a.addEvent("endCreateCounterfactualAddress"),e.forceUserRefreshInBackground(),t.data.counterfactual_address}catch(e){throw new e6(g.INTERNAL_ERROR,`Failed to create counterfactual address: ${e}`)}}let e5="Transaction requires confirmation but this functionality is not supported in this environment. Please contact Immutable support if you need to enable this feature.",e8=e=>(0,B.BigNumber).from(e).toString(),e4=e=>{try{return e.map(e=>({delegateCall:!0===e.delegateCall,revertOnError:!0===e.revertOnError,gasLimit:e.gasLimit?e8(e.gasLimit):"0",target:e.to??B.ethers.constants.AddressZero,value:e.value?e8(e.value):"0",data:e.data?e.data.toString():"0x"}))}catch(t){let e=t instanceof Error?t.message:String(t);throw new e6(g.INVALID_PARAMS,`Transaction failed to parsing: ${e}`)}};class e7{transactionAPI;messageAPI;confirmationScreen;crossSdkBridgeEnabled;authManager;constructor({confirmationScreen:e,config:t,authManager:r}){let n=new j.Configuration({basePath:t.imxPublicApiDomain});this.confirmationScreen=e,this.crossSdkBridgeEnabled=t.crossSdkBridgeEnabled,this.messageAPI=new j.MessagesApi(n),this.transactionAPI=new j.TransactionsApi(n),this.authManager=r}withConfirmationScreen(e){return t=>this.withConfirmationScreenTask(e)(t)()}withConfirmationScreenTask(e){return t=>async()=>{this.confirmationScreen.loading(e);try{return await t()}catch(e){throw this.confirmationScreen.closeWindow(),e}}}withDefaultConfirmationScreenTask(e){return this.withConfirmationScreenTask()(e)}async evaluateImxTransaction({payloadHash:e}){let t=await this.authManager.getUserImx(),r={Authorization:`Bearer ${t.accessToken}`},n=await eP(async()=>this.transactionAPI.getTransactionByID({transactionID:e,chainType:"starkex"},{headers:r}),{finallyFn:()=>{this.confirmationScreen.closeWindow()}});if(!n.data.id)throw Error("Transaction doesn't exists");let i=await this.transactionAPI.evaluateTransaction({id:e,transactionEvaluationRequest:{chainType:"starkex"}},{headers:r}),{confirmationRequired:a}=i.data;if(a){if(this.crossSdkBridgeEnabled)throw Error(e5);let r=await this.confirmationScreen.requestConfirmation(e,t.imx.ethAddress,j.TransactionApprovalRequestChainTypeEnum.Starkex);if(!r.confirmed)throw Error("Transaction rejected by user")}else this.confirmationScreen.closeWindow()}async evaluateEVMTransaction({chainId:e,nonce:t,metaTransactions:r}){let n=await this.authManager.getUserZkEvm(),i={Authorization:`Bearer ${n.accessToken}`},a=e4(r);try{let r=await this.transactionAPI.evaluateTransaction({id:"evm",transactionEvaluationRequest:{chainType:"evm",chainId:e,transactionData:{nonce:t,userAddress:n.zkEvm.ethAddress,metaTransactions:a}}},{headers:i});return r.data}catch(t){let e=t instanceof Error?t.message:String(t);throw new e6(g.INTERNAL_ERROR,`Transaction failed to validate with error: ${e}`)}}async validateEVMTransaction({chainId:e,nonce:t,metaTransactions:r}){let n=await this.evaluateEVMTransaction({chainId:e,nonce:t,metaTransactions:r}),{confirmationRequired:i,transactionId:a}=n;if(i&&this.crossSdkBridgeEnabled)throw new e6(g.TRANSACTION_REJECTED,e5);if(i&&a){let t=await this.authManager.getUserZkEvm(),r=await this.confirmationScreen.requestConfirmation(a,t.zkEvm.ethAddress,j.TransactionApprovalRequestChainTypeEnum.Evm,e);if(!r.confirmed)throw new e6(g.TRANSACTION_REJECTED,"Transaction rejected by user")}else this.confirmationScreen.closeWindow()}async handleEIP712MessageEvaluation({chainID:e,payload:t}){try{let r=await this.authManager.getUserZkEvm();if(null===r)throw new e6(b.UNAUTHORIZED,"User not logged in. Please log in first.");let n=await this.messageAPI.evaluateMessage({messageEvaluationRequest:{chainID:e,payload:t}},{headers:{Authorization:`Bearer ${r.accessToken}`}});return n.data}catch(t){let e=t instanceof Error?t.message:String(t);throw new e6(g.INTERNAL_ERROR,`Message failed to validate with error: ${e}`)}}async evaluateEIP712Message({chainID:e,payload:t}){let{messageId:r,confirmationRequired:n}=await this.handleEIP712MessageEvaluation({chainID:e,payload:t});if(n&&this.crossSdkBridgeEnabled)throw new e6(g.TRANSACTION_REJECTED,e5);if(n&&r){let e=await this.authManager.getUserZkEvm(),t=await this.confirmationScreen.requestMessageConfirmation(r,e.zkEvm.ethAddress,"eip712");if(!t.confirmed)throw new e6(g.TRANSACTION_REJECTED,"Signature rejected by user")}else this.confirmationScreen.closeWindow()}async handleERC191MessageEvaluation({chainID:e,payload:t}){try{let r=await this.authManager.getUserZkEvm();if(null===r)throw new e6(b.UNAUTHORIZED,"User not logged in. Please log in first.");let n=await this.messageAPI.evaluateErc191Message({eRC191MessageEvaluationRequest:{chainID:e1(e),payload:t}},{headers:{Authorization:`Bearer ${r.accessToken}`}});return n.data}catch(t){let e=t instanceof Error?t.message:String(t);throw new e6(g.INTERNAL_ERROR,`Message failed to validate with error: ${e}`)}}async evaluateERC191Message({chainID:e,payload:t}){let{messageId:r,confirmationRequired:n}=await this.handleERC191MessageEvaluation({chainID:e,payload:t});if(n&&this.crossSdkBridgeEnabled)throw new e6(g.TRANSACTION_REJECTED,e5);if(n&&r){let e=await this.authManager.getUserZkEvm(),t=await this.confirmationScreen.requestMessageConfirmation(r,e.zkEvm.ethAddress,"erc191");if(!t.confirmed)throw new e6(g.TRANSACTION_REJECTED,"Signature rejected by user")}else this.confirmationScreen.closeWindow()}}let e9=async(e,t,r)=>{let n=eV([e]),i=eG(n),a=await r.imGetFeeOptions(t,i),s=a.find(e=>"IMX"===e.tokenSymbol);if(!s)throw Error("Failed to retrieve fees for IMX token");return s},te=async(e,t,r,n)=>{if(!e.to)throw new e6(g.INVALID_PARAMS,'eth_sendTransaction requires a "to" field');let i={to:e.to,data:e.data,nonce:(0,B.BigNumber).from(0),value:e.value,revertOnError:!0},[a,s]=await Promise.all([eJ(t,n),e9(i,n,r)]),o=[{...i,nonce:a}],c=(0,B.BigNumber).from(s.tokenPrice);return c.isZero()||o.push({nonce:a,to:s.recipientAddress,value:c,revertOnError:!0}),o},tt=async({params:e,ethSigner:t,rpcProvider:r,relayerClient:n,guardianClient:i,zkEvmAddress:a,flow:s})=>{let{chainId:o}=await r.detectNetwork(),c=(0,B.BigNumber).from(o);s.addEvent("endDetectNetwork");let f=await te(e[0],r,n,a);s.addEvent("endBuildMetaTransactions");let{nonce:u}=f[0];if(!u)throw Error("Failed to retrieve nonce from the smart wallet");let d=i.validateEVMTransaction({chainId:e1(o),nonce:e8(u),metaTransactions:f});d.then(()=>s.addEvent("endValidateEVMTransaction"));let l=e$(f,u,c,a,t);l.then(()=>s.addEvent("endGetSignedMetaTransactions"));let[,h]=await Promise.all([d,l]),m=await n.ethSendTransaction(a,h);s.addEvent("endRelayerSendTransaction");let b=async()=>{let e=await n.imGetTransactionByHash(m);if(e.status===p.PENDING)throw Error();return e},y=await eP(b,{retries:30,interval:1e3,finalErr:new e6(g.RPC_SERVER_ERROR,"transaction hash not generated in time")});if(s.addEvent("endRetrieveRelayerTransaction"),![p.SUBMITTED,p.SUCCESSFUL].includes(y.status)){let e=`Transaction failed to submit with status ${y.status}.`;throw y.statusMessage&&(e+=` Error message: ${y.statusMessage}`),new e6(g.RPC_SERVER_ERROR,e)}return y.hash},tr=["types","domain","primaryType","message"],tn=e=>tr.every(t=>t in e),ti=(e,t)=>{let r;if("string"==typeof e)try{r=JSON.parse(e)}catch(e){throw new e6(g.INVALID_PARAMS,`Failed to parse typed data JSON: ${e}`)}else if("object"==typeof e)r=e;else throw new e6(g.INVALID_PARAMS,`Invalid typed data argument: ${e}`);if(!tn(r))throw new e6(g.INVALID_PARAMS,`Invalid typed data argument. The following properties are required: ${tr.join(", ")}`);let n=r.domain?.chainId;if(n&&("string"==typeof n&&(n.startsWith("0x")?r.domain.chainId=parseInt(n,16):r.domain.chainId=parseInt(n,10)),r.domain.chainId!==t))throw new e6(g.INVALID_PARAMS,`Invalid chainId, expected ${t}`);return r},ta=async({params:e,method:t,ethSigner:r,rpcProvider:n,relayerClient:i,guardianClient:a,flow:s})=>{let o=e[0],c=e[1];if(!o||!c)throw new e6(g.INVALID_PARAMS,`${t} requires an address and a typed data JSON`);let{chainId:f}=await n.detectNetwork(),u=ti(c,f);s.addEvent("endDetectNetwork"),await a.evaluateEIP712Message({chainID:String(f),payload:u}),s.addEvent("endValidateMessage");let d=await i.imSignTypedData(o,u);s.addEvent("endRelayerSignTypedData");let l=await eQ(u,d,(0,B.BigNumber).from(f),o,r);return s.addEvent("getSignedTypedData"),l},ts=e=>{if(!e)return e;try{let t=(0,B.utils).stripZeros((0,B.utils).arrayify(e));return(0,B.utils).toUtf8String(t)}catch(t){return e}},to=async({params:e,ethSigner:t,zkEvmAddress:r,rpcProvider:n,guardianClient:i,relayerClient:a,flow:s})=>{let o=e[0],c=e[1];if(!c||!o)throw new e6(g.INVALID_PARAMS,"personal_sign requires an address and a message");if(c.toLowerCase()!==r.toLowerCase())throw new e6(g.INVALID_PARAMS,"personal_sign requires the signer to be the from address");let f=ts(o),{chainId:u}=await n.detectNetwork();s.addEvent("endDetectNetwork");let d=(0,B.BigNumber).from(u),l=e0(d,f,t,c);l.then(()=>s.addEvent("endEOASignature")),await i.evaluateERC191Message({chainID:u,payload:f}),s.addEvent("endEvaluateERC191Message");let[h,p]=await Promise.all([l,a.imSign(c,f)]);s.addEvent("endRelayerSign");let m=await t.getAddress();return s.addEvent("endGetEOAAddress"),eY(h,m,p)},tc=e=>{switch(e){case M.Environment.SANDBOX:return"https://api.sandbox.immutable.com";case M.Environment.PRODUCTION:return"https://api.immutable.com";default:throw Error("Environment not supported")}},tf=e=>{n||(n=(0,w.default).create({baseURL:tc(e)}))};async function tu(e){if(!n)throw Error("Client not initialised");return n.get("/v1/sdk/session-activity/check",{params:e}).then(e=>e.data).catch(e=>{if(404!==e.response.status)throw e})}let{getItem:td,setItem:tl}=_.utils.localStorage,th="sessionActivitySendCount",tp="sessionActivityDate",tm=0,tb=0,tg=!1,ty=()=>{tb=td(th)||0;let e=td(tp),t=new Date().toISOString().split("T")[0];e&&e===t||(tb=0),tl(tp,t),tl(th,tb)};ty();let tv=()=>{ty(),tl(th,++tb),tm=0},tw=async e=>new Promise(t=>{setTimeout(t,1e3*e)}),t_=async e=>{let t;let r=e.flow||(0,_.trackFlow)("passport","sendSessionActivity");if(tg){r.addEvent("Existing Delay Early Exit");return}tg=!0;let{sendTransaction:n,environment:i}=e;if(!n)throw Error("No sendTransaction function provided");if(!i)throw Error("No environment provided");tf(i);let a=e.passportClient;if(!a)throw r.addEvent("No Passport Client ID"),Error("No Passport Client ID provided");let s=e.walletAddress;if(!s)throw r.addEvent("No Passport Wallet Address"),Error("No wallet address");try{if(r.addEvent("Fetching details"),t=await tu({clientId:a,wallet:s,checkCount:tm,sendCount:tb}),tm++,r.addEvent("Fetched details",{checkCount:tm}),!t){r.addEvent("No details found");return}}catch(e){throw r.addEvent("Failed to fetch details"),Error("Failed to get details",{cause:e})}if(t&&t.contractAddress&&t.functionName){let n=new B.utils.Interface([`function ${t.functionName}()`]).encodeFunctionData(t.functionName),i=t.contractAddress;try{r.addEvent("Start Sending Transaction");let t=await e.sendTransaction([{to:i,from:s,data:n}],r);tv(),r.addEvent("Transaction Sent",{tx:t})}catch(t){r.addEvent("Failed to send Transaction");let e=Error("Failed to send transaction",{cause:t});(0,_.trackError)("passport","sessionActivityError",e)}}t&&t.delay&&t.delay>0&&(r.addEvent("Delaying Transaction",{delay:t.delay}),await tw(t.delay),setTimeout(()=>{r.addEvent("Retrying after Delay"),tg=!1,tE({...e,flow:r})},0))},tE=e=>{var t;return((...e)=>{try{let r=t_(...e);if(r instanceof Promise)return r.catch(e=>(e instanceof Error&&(0,_.trackError)("passport","sessionActivityError",e),t));return r}catch(e){return e instanceof Error&&(0,_.trackError)("passport","sessionActivityError",e),t}})(e).then(()=>{tg=!1})},tA=e=>"zkEvm"in e;class tM{#i;#a;#s;#o;#c;#f;#u;#d;#l;#h;#p;isPassport=!0;constructor({authManager:e,magicAdapter:t,config:r,multiRollupApiClients:n,passportEventEmitter:i,guardianClient:a}){this.#i=e,this.#u=t,this.#a=r,this.#c=a,this.#o=i,r.crossSdkBridgeEnabled?this.#f=new O.StaticJsonRpcProvider({url:this.#a.zkEvmRpcUrl,fetchOptions:{referrer:"http://imtblgamesdk.local"}}):this.#f=new O.StaticJsonRpcProvider(this.#a.zkEvmRpcUrl),this.#l=new e2({config:this.#a,rpcProvider:this.#f,authManager:this.#i}),this.#d=n,this.#s=new eK,this.#i.getUser().then(e=>{e&&tA(e)&&this.#m(e)}).catch(()=>{}),i.on(d.LOGGED_IN,e=>this.#m(e)),i.on(d.LOGGED_OUT,this.#b),i.on(d.ACCOUNTS_REQUESTED,tE)}#b=()=>{this.#h=void 0,this.#s.emit(m.ACCOUNTS_CHANGED,[])};#m(e){let t=async()=>{let t=await this.#u.login(e.idToken),r=new O.Web3Provider(t);return r.getSigner()};this.#p=void 0,this.#h=new Promise(async e=>{try{e(await t())}catch(t){this.#p=t,e(void 0)}})}async #g(){let e=await this.#h;if(void 0===e){if(void 0!==this.#p)throw this.#p;throw Error("Signer failed to initialise")}return e}async #y(e){let t=async(t,r)=>{let n=await this.#g();return await tt({params:t,ethSigner:n,guardianClient:this.#c,rpcProvider:this.#f,relayerClient:this.#l,zkEvmAddress:e,flow:r})};this.#o.emit(d.ACCOUNTS_REQUESTED,{environment:this.#a.baseConfig.environment,sendTransaction:t,walletAddress:e,passportClient:this.#a.oidcConfiguration.clientId})}async #v(){try{let e=await this.#i.getUser();if(e&&tA(e))return e.zkEvm.ethAddress;return}catch{return}}async #w(e){switch(e.method){case"eth_requestAccounts":{let e=await this.#v();if(e)return[e];let t=(0,_.trackFlow)("passport","ethRequestAccounts");try{let e;let r=await this.#i.getUserOrLogin();if(t.addEvent("endGetUserOrLogin"),this.#m(r),tA(r))e=r.zkEvm.ethAddress;else{t.addEvent("startUserRegistration");let n=await this.#g();t.addEvent("ethSignerResolved"),e=await e3({ethSigner:n,authManager:this.#i,multiRollupApiClients:this.#d,accessToken:r.accessToken,rpcProvider:this.#f,flow:t}),t.addEvent("endUserRegistration")}return this.#s.emit(m.ACCOUNTS_CHANGED,[e]),(0,_.identify)({passportId:r.profile.sub}),this.#y(e),[e]}catch(e){throw e instanceof Error&&(0,_.trackError)("passport","ethRequestAccounts",e),t.addEvent("errored"),e}finally{t.addEvent("End")}}case"eth_sendTransaction":{let t=await this.#v();if(!t)throw new e6(b.UNAUTHORIZED,"Unauthorised - call eth_requestAccounts first");let r=(0,_.trackFlow)("passport","ethSendTransaction");try{return await this.#c.withConfirmationScreen({width:480,height:720})(async()=>{let n=await this.#g();return r.addEvent("endGetSigner"),await tt({params:e.params||[],ethSigner:n,guardianClient:this.#c,rpcProvider:this.#f,relayerClient:this.#l,zkEvmAddress:t,flow:r})})}catch(e){throw e instanceof Error&&(0,_.trackError)("passport","eth_sendTransaction",e),r.addEvent("errored"),e}finally{r.addEvent("End")}}case"eth_accounts":{let e=await this.#v();return e?[e]:[]}case"personal_sign":{let t=await this.#v();if(!t)throw new e6(b.UNAUTHORIZED,"Unauthorised - call eth_requestAccounts first");let r=(0,_.trackFlow)("passport","personalSign");try{return await this.#c.withConfirmationScreen({width:480,height:720})(async()=>{let n=await this.#g();return r.addEvent("endGetSigner"),await to({params:e.params||[],ethSigner:n,zkEvmAddress:t,rpcProvider:this.#f,guardianClient:this.#c,relayerClient:this.#l,flow:r})})}catch(e){throw e instanceof Error&&(0,_.trackError)("passport","personal_sign",e),r.addEvent("errored"),e}finally{r.addEvent("End")}}case"eth_signTypedData":case"eth_signTypedData_v4":{let t=await this.#v();if(!t)throw new e6(b.UNAUTHORIZED,"Unauthorised - call eth_requestAccounts first");let r=(0,_.trackFlow)("passport","ethSignTypedDataV4");try{return await this.#c.withConfirmationScreen({width:480,height:720})(async()=>{let t=await this.#g();return r.addEvent("endGetSigner"),await ta({method:e.method,params:e.params||[],ethSigner:t,rpcProvider:this.#f,relayerClient:this.#l,guardianClient:this.#c,flow:r})})}catch(e){throw e instanceof Error&&(0,_.trackError)("passport","eth_signTypedData",e),r.addEvent("errored"),e}finally{r.addEvent("End")}}case"eth_chainId":{let{chainId:e}=await this.#f.detectNetwork();return(0,B.utils).hexlify(e)}case"eth_getBalance":case"eth_getCode":case"eth_getTransactionCount":{let[t,r]=e.params||[];return this.#f.send(e.method,[t,r||"latest"])}case"eth_getStorageAt":{let[t,r,n]=e.params||[];return this.#f.send(e.method,[t,r,n||"latest"])}case"eth_call":case"eth_estimateGas":{let[t,r]=e.params||[];return this.#f.send(e.method,[t,r||"latest"])}case"eth_gasPrice":case"eth_blockNumber":case"eth_getBlockByHash":case"eth_getBlockByNumber":case"eth_getTransactionByHash":case"eth_getTransactionReceipt":return this.#f.send(e.method,e.params||[]);default:throw new e6(b.UNSUPPORTED_METHOD,"Method not supported")}}async #_(e){let{id:t,jsonrpc:r}=e;try{let n=await this.#w(e);return{id:t,jsonrpc:r,result:n}}catch(e){return{id:t,jsonrpc:r,error:e instanceof e6?e:e instanceof Error?new e6(g.INTERNAL_ERROR,e.message):new e6(g.INTERNAL_ERROR,"Internal error")}}}async request(e){try{return this.#w(e)}catch(e){if(e instanceof e6)throw e;if(e instanceof Error)throw new e6(g.INTERNAL_ERROR,e.message);throw new e6(g.INTERNAL_ERROR,"Internal error")}}sendAsync(e,t){if(!t)throw Error("No callback provided");Array.isArray(e)?Promise.all(e.map(this.#_)).then(e=>{t(null,e)}).catch(e=>{t(e,[])}):this.#_(e).then(e=>{t(null,e)}).catch(e=>{t(e,null)})}async send(e,t,r){if("string"==typeof e)return"function"==typeof t?this.sendAsync({method:e,params:[]},t):r?this.sendAsync({method:e,params:Array.isArray(t)?t:[]},r):this.request({method:e,params:Array.isArray(t)?t:[]});if("function"==typeof t)return this.sendAsync(e,t);if(!Array.isArray(e)&&"object"==typeof e)return this.#_(e);throw new e6(g.INVALID_REQUEST,"Invalid request")}on(e,t){this.#s.on(e,t)}removeListener(e,t){this.#s.removeListener(e,t)}}let tS={icon:'data:image/svg+xml,',name:"Immutable Passport",rdns:"com.immutable.passport",uuid:(0,F.v4)()},tx=e=>e.overrides?(0,E.createConfig)({basePath:e.overrides.imxPublicApiDomain}):e.baseConfig.environment===M.Environment.SANDBOX?(0,E.imxApiConfig).getSandbox():(0,E.imxApiConfig).getProduction(),tT=e=>{if(e.overrides?.imxApiClients)return e.overrides.imxApiClients;let t=tx(e);return new E.ImxApiClients(t)},tk=e=>{let t=new eD(e),r=new eg(t),n=new ew(t),i=new ez(t),a=new E.MultiRollupApiClients(t.multiRollupConfig),s=new eK,o=e.overrides?e.overrides.immutableXClient:new A.IMXClient({baseConfig:e.baseConfig}),c=new e7({confirmationScreen:i,config:t,authManager:r}),f=tT(e),u=new eB({authManager:r,immutableXClient:o,magicAdapter:n,passportEventEmitter:s,imxApiClients:f,guardianClient:c});return{config:t,authManager:r,magicAdapter:n,confirmationScreen:i,immutableXClient:o,multiRollupApiClients:a,passportEventEmitter:s,passportImxProviderFactory:u,guardianClient:c}};class tR{authManager;config;confirmationScreen;immutableXClient;magicAdapter;multiRollupApiClients;passportImxProviderFactory;passportEventEmitter;guardianClient;constructor(e){let t=tk(e);this.config=t.config,this.authManager=t.authManager,this.magicAdapter=t.magicAdapter,this.confirmationScreen=t.confirmationScreen,this.immutableXClient=t.immutableXClient,this.multiRollupApiClients=t.multiRollupApiClients,this.passportEventEmitter=t.passportEventEmitter,this.passportImxProviderFactory=t.passportImxProviderFactory,this.guardianClient=t.guardianClient,(0,_.setPassportClientId)(e.clientId),(0,_.track)("passport","initialise")}async connectImxSilent(){return this.passportImxProviderFactory.getProviderSilent()}async connectImx(){return this.passportImxProviderFactory.getProvider()}connectEvm(e={announceProvider:!0}){let t=new tM({passportEventEmitter:this.passportEventEmitter,authManager:this.authManager,magicAdapter:this.magicAdapter,config:this.config,multiRollupApiClients:this.multiRollupApiClients,guardianClient:this.guardianClient});return e?.announceProvider&&function(e){if("undefined"==typeof window)return;let t=new CustomEvent("eip6963:announceProvider",{detail:Object.freeze(e)});window.dispatchEvent(t),window.addEventListener("eip6963:requestProvider",()=>window.dispatchEvent(t))}({info:tS,provider:t}),t}async login(e){let{useCachedSession:t=!1}=e||{},r=null;try{r=await this.authManager.getUser()}catch(e){if(t)throw e;J.warn("Failed to retrieve a cached user session",e)}return r||t||(r=await this.authManager.login(e?.anonymousId)),r&&((0,_.identify)({passportId:r.profile.sub}),this.passportEventEmitter.emit(d.LOGGED_IN,r)),r?r.profile:null}async loginCallback(){return this.authManager.loginCallback()}async loginWithDeviceFlow(e){return this.authManager.loginWithDeviceFlow(e?.anonymousId)}async loginWithDeviceFlowCallback(e,t,r){let n=await this.authManager.loginWithDeviceFlowCallback(e,t,r);return this.passportEventEmitter.emit(d.LOGGED_IN,n),n.profile}loginWithPKCEFlow(){return this.authManager.getPKCEAuthorizationUrl()}async loginWithPKCEFlowCallback(e,t){let r=await this.authManager.loginWithPKCEFlowCallback(e,t);return this.passportEventEmitter.emit(d.LOGGED_IN,r),r.profile}async logout(){"silent"===this.config.oidcConfiguration.logoutMode?await Promise.allSettled([this.authManager.logout(),this.magicAdapter.logout()]):(await this.magicAdapter.logout(),await this.authManager.logout()),this.passportEventEmitter.emit(d.LOGGED_OUT)}async logoutDeviceFlow(){return await this.authManager.removeUser(),await this.magicAdapter.logout(),this.passportEventEmitter.emit(d.LOGGED_OUT),this.authManager.getDeviceFlowEndSessionEndpoint()}async logoutSilentCallback(e){return this.authManager.logoutSilentCallback(e)}async getUserInfo(){let e=await this.authManager.getUser();return e?.profile}async getIdToken(){let e=await this.authManager.getUser();return e?.idToken}async getAccessToken(){let e=await this.authManager.getUser();return e?.accessToken}async getLinkedAddresses(){let e=await this.authManager.getUser();if(!e?.profile.sub)return[];let t={Authorization:`Bearer ${e.accessToken}`},r=await this.multiRollupApiClients.passportProfileApi.getUserInfo({headers:t});return r.data.linked_addresses}async linkExternalWallet(e){(0,_.track)("passport","linkWallet",{type:e.type});let t=await this.authManager.getUser();if(!t)throw new K("User is not logged in",u.NOT_LOGGED_IN_ERROR);let r=$(t),n=Z(t);if(!r&&!n)throw new K("User has not been registered",u.USER_NOT_REGISTERED_ERROR);let i={Authorization:`Bearer ${t.accessToken}`},a={type:e.type,wallet_address:e.walletAddress,signature:e.signature,nonce:e.nonce};try{let e=await this.multiRollupApiClients.passportProfileApi.linkWalletV2({linkWalletV2Request:a},{headers:i});return{...e.data}}catch(t){if((0,_.trackError)("passport","linkWallet",t),(0,v.isAxiosError)(t)&&t.response){if(t.response.data&&z(t.response.data)){let{code:e,message:r}=t.response.data;switch(e){case"ALREADY_LINKED":throw new K(r,u.LINK_WALLET_ALREADY_LINKED_ERROR);case"MAX_WALLETS_LINKED":throw new K(r,u.LINK_WALLET_MAX_WALLETS_LINKED_ERROR);case"DUPLICATE_NONCE":throw new K(r,u.LINK_WALLET_DUPLICATE_NONCE_ERROR);case"VALIDATION_ERROR":throw new K(r,u.LINK_WALLET_VALIDATION_ERROR);default:throw new K(r,u.LINK_WALLET_GENERIC_ERROR)}}else if(t.response.status)throw new K(`Link wallet request failed with status code ${t.response.status}`,u.LINK_WALLET_GENERIC_ERROR)}let e="Link wallet request failed";throw t instanceof Error&&(e+=`: ${t.message}`),new K(e,u.LINK_WALLET_GENERIC_ERROR)}}}},{a7402fb880ab41a1:"fg0b3",axios:"jhAcT","@imtbl/metrics":"dO0KB","@imtbl/generated-clients":"2eu25","@imtbl/x-client":"hV3j7","@imtbl/config":"ed8SG","oidc-client-ts":"eOqnc",crypto:"32wxM","jwt-decode":"dIfrw",localforage:"6uh7U","magic-sdk":"cTdgN","@magic-ext/oidc":"bCVaL","@ethersproject/providers":"lpm2Y","@imtbl/toolkit":"5Doxg","@imtbl/guardian":"lnZ3o",ethers:"8wpcu",events:"ikfQ0","@0xsequence/abi":"NeOck","@0xsequence/core":"hBsZJ",uuid:"hlwPQ","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],fg0b3:[function(e,t,r){var n,i,a,s=t.exports={};function o(){throw Error("setTimeout has not been defined")}function c(){throw Error("clearTimeout has not been defined")}function f(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{i="function"==typeof clearTimeout?clearTimeout:c}catch(e){i=c}}();var u=[],d=!1,l=-1;function h(){d&&a&&(d=!1,a.length?u=a.concat(u):l=-1,u.length&&p())}function p(){if(!d){var e=f(h);d=!0;for(var t=u.length;t;){for(a=u,u=[];++l1)for(var r=1;ra.default),n.export(r,"Axios",()=>s),n.export(r,"AxiosError",()=>o),n.export(r,"CanceledError",()=>c),n.export(r,"isCancel",()=>f),n.export(r,"CancelToken",()=>u),n.export(r,"VERSION",()=>d),n.export(r,"all",()=>l),n.export(r,"Cancel",()=>h),n.export(r,"isAxiosError",()=>p),n.export(r,"spread",()=>m),n.export(r,"toFormData",()=>b),n.export(r,"AxiosHeaders",()=>g),n.export(r,"HttpStatusCode",()=>y),n.export(r,"formToJSON",()=>v),n.export(r,"getAdapter",()=>w),n.export(r,"mergeConfig",()=>_);var i=e("./lib/axios.js"),a=n.interopDefault(i);let{Axios:s,AxiosError:o,CanceledError:c,isCancel:f,CancelToken:u,VERSION:d,all:l,Cancel:h,isAxiosError:p,spread:m,toFormData:b,AxiosHeaders:g,HttpStatusCode:y,formToJSON:v,getAdapter:w,mergeConfig:_}=a.default},{"./lib/axios.js":"8DJLn","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"8DJLn":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);"use strict";var i=e("./utils.js"),a=n.interopDefault(i),s=e("./helpers/bind.js"),o=n.interopDefault(s),c=e("./core/Axios.js"),f=n.interopDefault(c),u=e("./core/mergeConfig.js"),d=n.interopDefault(u),l=e("./defaults/index.js"),h=n.interopDefault(l),p=e("./helpers/formDataToJSON.js"),m=n.interopDefault(p),b=e("./cancel/CanceledError.js"),g=n.interopDefault(b),y=e("./cancel/CancelToken.js"),v=n.interopDefault(y),w=e("./cancel/isCancel.js"),_=n.interopDefault(w),E=e("./env/data.js"),A=e("./helpers/toFormData.js"),M=n.interopDefault(A),S=e("./core/AxiosError.js"),x=n.interopDefault(S),T=e("./helpers/spread.js"),k=n.interopDefault(T),R=e("./helpers/isAxiosError.js"),I=n.interopDefault(R),C=e("./core/AxiosHeaders.js"),P=n.interopDefault(C),O=e("./adapters/adapters.js"),N=n.interopDefault(O),j=e("./helpers/HttpStatusCode.js"),B=n.interopDefault(j);let L=function e(t){let r=new f.default(t),n=(0,o.default)(f.default.prototype.request,r);return(0,a.default).extend(n,f.default.prototype,r,{allOwnKeys:!0}),(0,a.default).extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e((0,d.default)(t,r))},n}(h.default);L.Axios=f.default,L.CanceledError=g.default,L.CancelToken=v.default,L.isCancel=_.default,L.VERSION=E.VERSION,L.toFormData=M.default,L.AxiosError=x.default,L.Cancel=L.CanceledError,L.all=function(e){return Promise.all(e)},L.spread=k.default,L.isAxiosError=I.default,L.mergeConfig=d.default,L.AxiosHeaders=P.default,L.formToJSON=e=>(0,m.default)((0,a.default).isHTMLForm(e)?new FormData(e):e),L.getAdapter=N.default.getAdapter,L.HttpStatusCode=B.default,L.default=L,r.default=L},{"./utils.js":"2ioTY","./helpers/bind.js":"9mfTC","./core/Axios.js":"2wp4K","./core/mergeConfig.js":"j8Sbj","./defaults/index.js":"1GU0t","./helpers/formDataToJSON.js":"jhUur","./cancel/CanceledError.js":"judoa","./cancel/CancelToken.js":"2aN3e","./cancel/isCancel.js":"5ndsF","./env/data.js":"9ssnR","./helpers/toFormData.js":"k8OtD","./core/AxiosError.js":"hjCVQ","./helpers/spread.js":"gQxw3","./helpers/isAxiosError.js":"lE0ea","./core/AxiosHeaders.js":"1qkRX","./adapters/adapters.js":"6E0f0","./helpers/HttpStatusCode.js":"agO1h","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2ioTY":[function(e,t,r){var n,i,a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(r);"use strict";var s=e("./helpers/bind.js"),o=a.interopDefault(s),c=arguments[3];let{toString:f}=Object.prototype,{getPrototypeOf:u}=Object,d=(n=Object.create(null),e=>{let t=f.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())}),l=e=>(e=e.toLowerCase(),t=>d(t)===e),h=e=>t=>typeof t===e,{isArray:p}=Array,m=h("undefined"),b=l("ArrayBuffer"),g=h("string"),y=h("function"),v=h("number"),w=e=>null!==e&&"object"==typeof e,_=e=>{if("object"!==d(e))return!1;let t=u(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},E=l("Date"),A=l("File"),M=l("Blob"),S=l("FileList"),x=l("URLSearchParams");function T(e,t,{allOwnKeys:r=!1}={}){let n,i;if(null!=e){if("object"!=typeof e&&(e=[e]),p(e))for(n=0,i=e.length;n0;)if(t===(r=n[i]).toLowerCase())return r;return null}let R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:c,I=e=>!m(e)&&e!==R,C=(i="undefined"!=typeof Uint8Array&&u(Uint8Array),e=>i&&e instanceof i),P=l("HTMLFormElement"),O=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),N=l("RegExp"),j=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};T(r,(r,i)=>{let a;!1!==(a=t(r,i,e))&&(n[i]=a||r)}),Object.defineProperties(e,n)},B="abcdefghijklmnopqrstuvwxyz",L="0123456789",D={DIGIT:L,ALPHA:B,ALPHA_DIGIT:B+B.toUpperCase()+L},U=l("AsyncFunction");r.default={isArray:p,isArrayBuffer:b,isBuffer:function(e){return null!==e&&!m(e)&&null!==e.constructor&&!m(e.constructor)&&y(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||y(e.append)&&("formdata"===(t=d(e))||"object"===t&&y(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&b(e.buffer)},isString:g,isNumber:v,isBoolean:e=>!0===e||!1===e,isObject:w,isPlainObject:_,isUndefined:m,isDate:E,isFile:A,isBlob:M,isRegExp:N,isFunction:y,isStream:e=>w(e)&&y(e.pipe),isURLSearchParams:x,isTypedArray:C,isFileList:S,forEach:T,merge:function e(){let{caseless:t}=I(this)&&this||{},r={},n=(n,i)=>{let a=t&&k(r,i)||i;_(r[a])&&_(n)?r[a]=e(r[a],n):_(n)?r[a]=e({},n):p(n)?r[a]=n.slice():r[a]=n};for(let e=0,t=arguments.length;e(T(t,(t,n)=>{r&&y(t)?e[n]=(0,o.default)(t,r):e[n]=t},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let i,a,s;let o={};if(t=t||{},null==e)return t;do{for(a=(i=Object.getOwnPropertyNames(e)).length;a-- >0;)s=i[a],(!n||n(s,e,t))&&!o[s]&&(t[s]=e[s],o[s]=!0);e=!1!==r&&u(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype)return t},kindOf:d,kindOfTest:l,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!v(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{let r;let n=e&&e[Symbol.iterator],i=n.call(e);for(;(r=i.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let r;let n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:P,hasOwnProperty:O,hasOwnProp:O,reduceDescriptors:j,freezeMethods:e=>{j(e,(t,r)=>{if(y(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;let n=e[r];if(y(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(e,t)=>{let r={};return(e=>{e.forEach(e=>{r[e]=!0})})(p(e)?e:String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>Number.isFinite(e=+e)?e:t,findKey:k,global:R,isContextDefined:I,ALPHABET:D,generateString:(e=16,t=D.ALPHA_DIGIT)=>{let r="",{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&y(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{let t=Array(10),r=(e,n)=>{if(w(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;let i=p(e)?[]:{};return T(e,(e,t)=>{let a=r(e,n+1);m(a)||(i[t]=a)}),t[n]=void 0,i}}return e};return r(e,0)},isAsyncFn:U,isThenable:e=>e&&(w(e)||y(e))&&y(e.then)&&y(e.catch)}},{"./helpers/bind.js":"9mfTC","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"9mfTC":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";function i(e,t){return function(){return e.apply(t,arguments)}}n.defineInteropFlag(r),n.export(r,"default",()=>i)},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],cI3Jn:[function(e,t,r){r.interopDefault=function(e){return e&&e.__esModule?e:{default:e}},r.defineInteropFlag=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.exportAll=function(e,t){return Object.keys(e).forEach(function(r){"default"===r||"__esModule"===r||t.hasOwnProperty(r)||Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[r]}})}),t},r.export=function(e,t,r){Object.defineProperty(e,t,{enumerable:!0,get:r})}},{}],"2wp4K":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);"use strict";var i=e("./../utils.js"),a=n.interopDefault(i),s=e("../helpers/buildURL.js"),o=n.interopDefault(s),c=e("./InterceptorManager.js"),f=n.interopDefault(c),u=e("./dispatchRequest.js"),d=n.interopDefault(u),l=e("./mergeConfig.js"),h=n.interopDefault(l),p=e("./buildFullPath.js"),m=n.interopDefault(p),b=e("../helpers/validator.js"),g=n.interopDefault(b),y=e("./AxiosHeaders.js"),v=n.interopDefault(y);let w=g.default.validators;class _{constructor(e){this.defaults=e,this.interceptors={request:new f.default,response:new f.default}}request(e,t){let r,n;"string"==typeof e?(t=t||{}).url=e:t=e||{},t=(0,h.default)(this.defaults,t);let{transitional:i,paramsSerializer:s,headers:o}=t;void 0!==i&&(0,g.default).assertOptions(i,{silentJSONParsing:w.transitional(w.boolean),forcedJSONParsing:w.transitional(w.boolean),clarifyTimeoutError:w.transitional(w.boolean)},!1),null!=s&&((0,a.default).isFunction(s)?t.paramsSerializer={serialize:s}:(0,g.default).assertOptions(s,{encode:w.function,serialize:w.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let c=o&&(0,a.default).merge(o.common,o[t.method]);o&&(0,a.default).forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=(0,v.default).concat(c,o);let f=[],u=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(u=u&&e.synchronous,f.unshift(e.fulfilled,e.rejected))});let l=[];this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let p=0;if(!u){let e=[(0,d.default).bind(this),void 0];for(e.unshift.apply(e,f),e.push.apply(e,l),n=e.length,r=Promise.resolve(t);pf);"use strict";var i=e("../utils.js"),a=n.interopDefault(i),s=e("../helpers/AxiosURLSearchParams.js"),o=n.interopDefault(s);function c(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function f(e,t,r){let n;if(!t)return e;let i=r&&r.encode||c,s=r&&r.serialize;if(n=s?s(t,r):(0,a.default).isURLSearchParams(t)?t.toString():new(0,o.default)(t,r).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}},{"../utils.js":"2ioTY","../helpers/AxiosURLSearchParams.js":"juzHK","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],juzHK:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);"use strict";var i=e("./toFormData.js"),a=n.interopDefault(i);function s(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function o(e,t){this._pairs=[],e&&(0,a.default)(e,this,t)}let c=o.prototype;c.append=function(e,t){this._pairs.push([e,t])},c.toString=function(e){let t=e?function(t){return e.call(this,t,s)}:s;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")},r.default=o},{"./toFormData.js":"k8OtD","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],k8OtD:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);"use strict";var i=e("../utils.js"),a=n.interopDefault(i),s=e("../core/AxiosError.js"),o=n.interopDefault(s),c=e("../platform/node/classes/FormData.js"),f=n.interopDefault(c),u=e("adfd9b103875c2dd").Buffer;function d(e){return(0,a.default).isPlainObject(e)||(0,a.default).isArray(e)}function l(e){return(0,a.default).endsWith(e,"[]")?e.slice(0,-2):e}function h(e,t,r){return e?e.concat(t).map(function(e,t){return e=l(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}let p=(0,a.default).toFlatObject(a.default,{},null,function(e){return/^is[A-Z]/.test(e)});r.default=function(e,t,r){if(!(0,a.default).isObject(e))throw TypeError("target must be an object");t=t||new(f.default||FormData),r=(0,a.default).toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!(0,a.default).isUndefined(t[e])});let n=r.metaTokens,i=r.visitor||y,s=r.dots,c=r.indexes,m=r.Blob||"undefined"!=typeof Blob&&Blob,b=m&&(0,a.default).isSpecCompliantForm(t);if(!(0,a.default).isFunction(i))throw TypeError("visitor must be a function");function g(e){if(null===e)return"";if((0,a.default).isDate(e))return e.toISOString();if(!b&&(0,a.default).isBlob(e))throw new o.default("Blob is not supported. Use a Buffer instead.");return(0,a.default).isArrayBuffer(e)||(0,a.default).isTypedArray(e)?b&&"function"==typeof Blob?new Blob([e]):u.from(e):e}function y(e,r,i){let o=e;if(e&&!i&&"object"==typeof e){if((0,a.default).endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else{var f;if((0,a.default).isArray(e)&&(f=e,(0,a.default).isArray(f)&&!f.some(d))||((0,a.default).isFileList(e)||(0,a.default).endsWith(r,"[]"))&&(o=(0,a.default).toArray(e)))return r=l(r),o.forEach(function(e,n){(0,a.default).isUndefined(e)||null===e||t.append(!0===c?h([r],n,s):null===c?r:r+"[]",g(e))}),!1}}return!!d(e)||(t.append(h(i,r,s),g(e)),!1)}let v=[],w=Object.assign(p,{defaultVisitor:y,convertValue:g,isVisitable:d});if(!(0,a.default).isObject(e))throw TypeError("data must be an object");return!function e(r,n){if(!(0,a.default).isUndefined(r)){if(-1!==v.indexOf(r))throw Error("Circular reference detected in "+n.join("."));v.push(r),(0,a.default).forEach(r,function(r,s){let o=!((0,a.default).isUndefined(r)||null===r)&&i.call(t,r,(0,a.default).isString(s)?s.trim():s,n,w);!0===o&&e(r,n?n.concat(s):[s])}),v.pop()}}(e),t}},{adfd9b103875c2dd:"2MMCE","../utils.js":"2ioTY","../core/AxiosError.js":"hjCVQ","../platform/node/classes/FormData.js":"fN4B6","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2MMCE":[function(e,t,r){"use strict";let n=e("9c62938f1dccc73c"),i=e("aceacb6a4531a9d2"),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,o.prototype),t}function o(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return u(e)}return c(e,t,r)}function c(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!o.isEncoding(t))throw TypeError("Unknown encoding: "+t);let r=0|p(e,t),n=s(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(L(e,Uint8Array)){let t=new Uint8Array(e);return l(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(L(e,ArrayBuffer)||e&&L(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(L(e,SharedArrayBuffer)||e&&L(e.buffer,SharedArrayBuffer)))return l(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return o.from(n,t,r);let i=function(e){var t;if(o.isBuffer(e)){let t=0|h(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?s(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return o.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function f(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return f(e),s(e<0?0:0|h(e))}function d(e){let t=e.length<0?0:0|h(e.length),r=s(t);for(let n=0;n=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||L(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return N(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return j(e).length;default:if(i)return n?-1:N(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,r){let i=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=t;n2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(a=r=+r)!=a&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=o.from(t,n)),o.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){let a,s=1,o=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;s=2,o/=2,c/=2,r/=2}function f(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){let n=-1;for(a=r;ao&&(r=o-c),a=r;a>=0;a--){let r=!0;for(let n=0;n239?4:t>223?3:t>191?2:1;if(i+s<=r){let r,n,o,c;switch(s){case 1:t<128&&(a=t);break;case 2:(192&(r=e[i+1]))==128&&(c=(31&t)<<6|63&r)>127&&(a=c);break;case 3:r=e[i+1],n=e[i+2],(192&r)==128&&(192&n)==128&&(c=(15&t)<<12|(63&r)<<6|63&n)>2047&&(c<55296||c>57343)&&(a=c);break;case 4:r=e[i+1],n=e[i+2],o=e[i+3],(192&r)==128&&(192&n)==128&&(192&o)==128&&(c=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&o)>65535&&c<1114112&&(a=c)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),i+=s}return function(e){let t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nr)throw RangeError("Trying to access beyond buffer length")}function _(e,t,r,n,i,a){if(!o.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function E(e,t,r,n,i){I(t,n,i,e,r,7);let a=Number(t&BigInt(4294967295));e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,r}function A(e,t,r,n,i){I(t,n,i,e,r,7);let a=Number(t&BigInt(4294967295));e[r+7]=a,a>>=8,e[r+6]=a,a>>=8,e[r+5]=a,a>>=8,e[r+4]=a;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s>>=8,e[r+2]=s,s>>=8,e[r+1]=s,s>>=8,e[r]=s,r+8}function M(e,t,r,n,i,a){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function S(e,t,r,n,a){return t=+t,r>>>=0,a||M(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function x(e,t,r,n,a){return t=+t,r>>>=0,a||M(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}r.Buffer=o,r.SlowBuffer=function(e){return+e!=e&&(e=0),o.alloc(+e)},r.INSPECT_MAX_BYTES=50,r.kMaxLength=2147483647,o.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),o.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}}),o.poolSize=8192,o.from=function(e,t,r){return c(e,t,r)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array),o.alloc=function(e,t,r){return(f(e),e<=0)?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)},o.allocUnsafe=function(e){return u(e)},o.allocUnsafeSlow=function(e){return u(e)},o.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==o.prototype},o.compare=function(e,t){if(L(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),L(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(e)||!o.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,a=Math.min(r,n);in.length?(o.isBuffer(t)||(t=o.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else if(o.isBuffer(t))t.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=t.length}return n},o.byteLength=p,o.prototype._isBuffer=!0,o.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tt&&(e+=" ... "),""},a&&(o.prototype[a]=o.prototype.inspect),o.prototype.compare=function(e,t,r,n,i){if(L(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;let a=i-n,s=r-t,c=Math.min(a,s),f=this.slice(n,i),u=e.slice(t,r);for(let e=0;e>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let l=this.length-t;if((void 0===r||r>l)&&(r=l),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let h=!1;for(;;)switch(n){case"hex":return function(e,t,r,n){let i;r=Number(r)||0;let a=e.length-r;n?(n=Number(n))>a&&(n=a):n=a;let s=t.length;for(n>s/2&&(n=s/2),i=0;i>8,i.push(r%256),i.push(n);return i}(e,this.length-u),this,u,d);default:if(h)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.slice=function(e,t){let r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||w(e,t,this.length);let n=this[e],i=1,a=0;for(;++a>>=0,t>>>=0,r||w(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},o.prototype.readUint8=o.prototype.readUInt8=function(e,t){return e>>>=0,t||w(e,1,this.length),this[e]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readBigUInt64LE=U(function(e){C(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&P(e,this.length-8);let n=t+256*this[++e]+65536*this[++e]+16777216*this[++e],i=this[++e]+256*this[++e]+65536*this[++e]+16777216*r;return BigInt(n)+(BigInt(i)<>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&P(e,this.length-8);let n=16777216*t+65536*this[++e]+256*this[++e]+this[++e],i=16777216*this[++e]+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<>>=0,t>>>=0,r||w(e,t,this.length);let n=this[e],i=1,a=0;for(;++a=(i*=128)&&(n-=Math.pow(2,8*t)),n},o.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let n=t,i=1,a=this[e+--n];for(;n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},o.prototype.readInt8=function(e,t){return(e>>>=0,t||w(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},o.prototype.readInt16LE=function(e,t){e>>>=0,t||w(e,2,this.length);let r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt16BE=function(e,t){e>>>=0,t||w(e,2,this.length);let r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readBigInt64LE=U(function(e){C(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&P(e,this.length-8);let n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&P(e,this.length-8);let n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<>>=0,t||w(e,4,this.length),i.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e>>>=0,t||w(e,4,this.length),i.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e>>>=0,t||w(e,8,this.length),i.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e>>>=0,t||w(e,8,this.length),i.read(this,e,!1,52,8)},o.prototype.writeUintLE=o.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;_(this,e,t,r,n,0)}let i=1,a=0;for(this[t]=255&e;++a>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;_(this,e,t,r,n,0)}let i=r-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+r},o.prototype.writeUint8=o.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,1,255,0),this[t]=255&e,t+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeBigUInt64LE=U(function(e,t=0){return E(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=U(function(e,t=0){return A(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);_(this,e,t,r,n-1,-n)}let i=0,a=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+r},o.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);_(this,e,t,r,n-1,-n)}let i=r-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},o.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},o.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeBigInt64LE=U(function(e,t=0){return E(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=U(function(e,t=0){return A(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeFloatLE=function(e,t,r){return S(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){return S(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){return x(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){return x(this,e,t,!1,r)},o.prototype.copy=function(e,t,r,n){if(!o.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function I(e,t,r,n,i,a){if(e>r||e3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${(a+1)*8}${i}`:`>= -(2${i} ** ${(a+1)*8-1}${i}) and < 2 ** ${(a+1)*8-1}${i}`:`>= ${t}${i} and <= ${r}${i}`,new T.ERR_OUT_OF_RANGE("value",n,e)}C(i,"offset"),(void 0===n[i]||void 0===n[i+a])&&P(i,n.length-(a+1))}function C(e,t){if("number"!=typeof e)throw new T.ERR_INVALID_ARG_TYPE(t,"number",e)}function P(e,t,r){if(Math.floor(e)!==e)throw C(e,r),new T.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new T.ERR_BUFFER_OUT_OF_BOUNDS;throw new T.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}k("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),k("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),k("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>4294967296?i=R(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=R(i)),i+="n"),n+=` It must be ${t}. Received ${i}`},RangeError);let O=/[^+/0-9A-Za-z-_]/g;function N(e,t){let r;t=t||1/0;let n=e.length,i=null,a=[];for(let s=0;s55295&&r<57344){if(!i){if(r>56319||s+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return a}function j(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(O,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function B(e,t,r,n){let i;for(i=0;i=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function L(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let D=function(){let e="0123456789abcdef",t=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function U(e){return"undefined"==typeof BigInt?F:e}function F(){throw Error("BigInt not supported")}},{"9c62938f1dccc73c":"6P4Ax",aceacb6a4531a9d2:"lPFVa"}],"6P4Ax":[function(e,t,r){"use strict";r.byteLength=function(e){var t=f(e),r=t[0],n=t[1];return(r+n)*3/4-n},r.toByteArray=function(e){var t,r,n=f(e),s=n[0],o=n[1],c=new a((s+o)*3/4-o),u=0,d=o>0?s-4:s;for(r=0;r>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===o&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,c[u++]=255&t),1===o&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,a=[],s=0,o=r-i;s>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}(e,s,s+16383>o?o:s+16383));return 1===i?a.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&a.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),a.join("")};for(var n=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,c=s.length;o0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],lPFVa:[function(e,t,r){r.read=function(e,t,r,n,i){var a,s,o=8*i-n-1,c=(1<>1,u=-7,d=r?i-1:0,l=r?-1:1,h=e[t+d];for(d+=l,a=h&(1<<-u)-1,h>>=-u,u+=o;u>0;a=256*a+e[t+d],d+=l,u-=8);for(s=a&(1<<-u)-1,a>>=-u,u+=n;u>0;s=256*s+e[t+d],d+=l,u-=8);if(0===a)a=1-f;else{if(a===c)return s?NaN:(h?-1:1)*(1/0);s+=Math.pow(2,n),a-=f}return(h?-1:1)*s*Math.pow(2,a-n)},r.write=function(e,t,r,n,i,a){var s,o,c,f=8*a-i-1,u=(1<>1,l=23===i?5960464477539062e-23:0,h=n?0:a-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(o=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+d>=1?t+=l/c:t+=l*Math.pow(2,1-d),t*c>=2&&(s++,c/=2),s+d>=u?(o=0,s=u):s+d>=1?(o=(t*c-1)*Math.pow(2,i),s+=d):(o=t*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;e[r+h]=255&o,h+=p,o/=256,i-=8);for(s=s<0;e[r+h]=255&s,h+=p,s/=256,f-=8);e[r+h-p]|=128*m}},{}],hjCVQ:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);"use strict";var i=e("../utils.js"),a=n.interopDefault(i);function s(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}(0,a.default).inherits(s,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:(0,a.default).toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});let o=s.prototype,c={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{c[e]={value:e}}),Object.defineProperties(s,c),Object.defineProperty(o,"isAxiosError",{value:!0}),s.from=(e,t,r,n,i,c)=>{let f=Object.create(o);return(0,a.default).toFlatObject(e,f,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),s.call(f,e.message,t,r,n,i),f.cause=e,f.name=e.name,c&&Object.assign(f,c),f},r.default=s},{"../utils.js":"2ioTY","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],fN4B6:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=null},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"5Qndl":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);"use strict";var i=e("./../utils.js"),a=n.interopDefault(i);r.default=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){(0,a.default).forEach(this.handlers,function(t){null!==t&&e(t)})}}},{"./../utils.js":"2ioTY","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gTZwy:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>g);"use strict";var i=e("./transformData.js"),a=n.interopDefault(i),s=e("../cancel/isCancel.js"),o=n.interopDefault(s),c=e("../defaults/index.js"),f=n.interopDefault(c),u=e("../cancel/CanceledError.js"),d=n.interopDefault(u),l=e("../core/AxiosHeaders.js"),h=n.interopDefault(l),p=e("../adapters/adapters.js"),m=n.interopDefault(p);function b(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new d.default(null,e)}function g(e){b(e),e.headers=(0,h.default).from(e.headers),e.data=(0,a.default).call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);let t=(0,m.default).getAdapter(e.adapter||f.default.adapter);return t(e).then(function(t){return b(e),t.data=(0,a.default).call(e,e.transformResponse,t),t.headers=(0,h.default).from(t.headers),t},function(t){return!(0,o.default)(t)&&(b(e),t&&t.response&&(t.response.data=(0,a.default).call(e,e.transformResponse,t.response),t.response.headers=(0,h.default).from(t.response.headers))),Promise.reject(t)})}},{"./transformData.js":"8H0wy","../cancel/isCancel.js":"5ndsF","../defaults/index.js":"1GU0t","../cancel/CanceledError.js":"judoa","../core/AxiosHeaders.js":"1qkRX","../adapters/adapters.js":"6E0f0","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"8H0wy":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>u);"use strict";var i=e("./../utils.js"),a=n.interopDefault(i),s=e("../defaults/index.js"),o=n.interopDefault(s),c=e("../core/AxiosHeaders.js"),f=n.interopDefault(c);function u(e,t){let r=this||o.default,n=t||r,i=(0,f.default).from(n.headers),s=n.data;return(0,a.default).forEach(e,function(e){s=e.call(r,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}},{"./../utils.js":"2ioTY","../defaults/index.js":"1GU0t","../core/AxiosHeaders.js":"1qkRX","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"1GU0t":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);"use strict";var i=e("../utils.js"),a=n.interopDefault(i),s=e("../core/AxiosError.js"),o=n.interopDefault(s),c=e("./transitional.js"),f=n.interopDefault(c),u=e("../helpers/toFormData.js"),d=n.interopDefault(u),l=e("../helpers/toURLEncodedForm.js"),h=n.interopDefault(l),p=e("../platform/index.js"),m=n.interopDefault(p),b=e("../helpers/formDataToJSON.js"),g=n.interopDefault(b);let y={transitional:f.default,adapter:["xhr","http"],transformRequest:[function(e,t){let r;let n=t.getContentType()||"",i=n.indexOf("application/json")>-1,s=(0,a.default).isObject(e);s&&(0,a.default).isHTMLForm(e)&&(e=new FormData(e));let o=(0,a.default).isFormData(e);if(o)return i&&i?JSON.stringify((0,g.default)(e)):e;if((0,a.default).isArrayBuffer(e)||(0,a.default).isBuffer(e)||(0,a.default).isStream(e)||(0,a.default).isFile(e)||(0,a.default).isBlob(e))return e;if((0,a.default).isArrayBufferView(e))return e.buffer;if((0,a.default).isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return(0,h.default)(e,this.formSerializer).toString();if((r=(0,a.default).isFileList(e))||n.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return(0,d.default)(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}return s||i?(t.setContentType("application/json",!1),function(e,t,r){if((0,a.default).isString(e))try{return(0,JSON.parse)(e),(0,a.default).trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){let t=this.transitional||y.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&(0,a.default).isString(e)&&(r&&!this.responseType||n)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!r&&n){if("SyntaxError"===e.name)throw(0,o.default).from(e,o.default.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:m.default.classes.FormData,Blob:m.default.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};(0,a.default).forEach(["delete","get","head","post","put","patch"],e=>{y.headers[e]={}}),r.default=y},{"../utils.js":"2ioTY","../core/AxiosError.js":"hjCVQ","./transitional.js":"lBqaD","../helpers/toFormData.js":"k8OtD","../helpers/toURLEncodedForm.js":"bgvH4","../platform/index.js":"fP1Ni","../helpers/formDataToJSON.js":"jhUur","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lBqaD:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);"use strict";r.default={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],bgvH4:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>u);"use strict";var i=e("../utils.js"),a=n.interopDefault(i),s=e("./toFormData.js"),o=n.interopDefault(s),c=e("../platform/index.js"),f=n.interopDefault(c);function u(e,t){return(0,o.default)(e,new f.default.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return f.default.isNode&&(0,a.default).isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}},{"../utils.js":"2ioTY","./toFormData.js":"k8OtD","../platform/index.js":"fP1Ni","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],fP1Ni:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./node/index.js"),a=n.interopDefault(i),s=e("./common/utils.js");r.default={...s,...a.default}},{"./node/index.js":"3yghl","./common/utils.js":"dkG5V","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"3yghl":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./classes/URLSearchParams.js"),a=n.interopDefault(i),s=e("./classes/FormData.js"),o=n.interopDefault(s),c=e("./classes/Blob.js"),f=n.interopDefault(c);r.default={isBrowser:!0,classes:{URLSearchParams:a.default,FormData:o.default,Blob:f.default},protocols:["http","https","file","blob","url","data"]}},{"./classes/URLSearchParams.js":"eT4YQ","./classes/FormData.js":"2389U","./classes/Blob.js":"eKMhL","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],eT4YQ:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);"use strict";var i=e("../../../helpers/AxiosURLSearchParams.js"),a=n.interopDefault(i);r.default="undefined"!=typeof URLSearchParams?URLSearchParams:a.default},{"../../../helpers/AxiosURLSearchParams.js":"juzHK","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2389U":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);"use strict";r.default="undefined"!=typeof FormData?FormData:null},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],eKMhL:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);"use strict";r.default="undefined"!=typeof Blob?Blob:null},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dkG5V:[function(e,t,r){var n,i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"hasBrowserEnv",()=>a),i.export(r,"hasStandardBrowserWebWorkerEnv",()=>o),i.export(r,"hasStandardBrowserEnv",()=>s);let a="undefined"!=typeof window&&"undefined"!=typeof document,s=(n="undefined"!=typeof navigator&&navigator.product,a&&0>["ReactNative","NativeScript","NS"].indexOf(n)),o="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],jhUur:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);"use strict";var i=e("../utils.js"),a=n.interopDefault(i);r.default=function(e){if((0,a.default).isFormData(e)&&(0,a.default).isFunction(e.entries)){let t={};return(0,a.default).forEachEntry(e,(e,r)=>{!function e(t,r,n,i){let s=t[i++];if("__proto__"===s)return!0;let o=Number.isFinite(+s),c=i>=t.length;if(s=!s&&(0,a.default).isArray(n)?n.length:s,c)return(0,a.default).hasOwnProp(n,s)?n[s]=[n[s],r]:n[s]=r,!o;n[s]&&(0,a.default).isObject(n[s])||(n[s]=[]);let f=e(t,r,n[s],i);return f&&(0,a.default).isArray(n[s])&&(n[s]=function(e){let t,r;let n={},i=Object.keys(e),a=i.length;for(t=0;t"[]"===e[0]?"":e[1]||e[0]),r,t,0)}),t}return null}},{"../utils.js":"2ioTY","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"1qkRX":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);"use strict";var i=e("../utils.js"),a=n.interopDefault(i),s=e("../helpers/parseHeaders.js"),o=n.interopDefault(s);let c=Symbol("internals");function f(e){return e&&String(e).trim().toLowerCase()}function u(e){return!1===e||null==e?e:(0,a.default).isArray(e)?e.map(u):String(e)}let d=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function l(e,t,r,n,i){if((0,a.default).isFunction(n))return n.call(this,t,r);if(i&&(t=r),(0,a.default).isString(t)){if((0,a.default).isString(n))return -1!==t.indexOf(n);if((0,a.default).isRegExp(n))return n.test(t)}}class h{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function i(e,t,r){let i=f(t);if(!i)throw Error("header name must be a non-empty string");let s=(0,a.default).findKey(n,i);s&&void 0!==n[s]&&!0!==r&&(void 0!==r||!1===n[s])||(n[s||t]=u(e))}let s=(e,t)=>(0,a.default).forEach(e,(e,r)=>i(e,r,t));return(0,a.default).isPlainObject(e)||e instanceof this.constructor?s(e,t):(0,a.default).isString(e)&&(e=e.trim())&&!d(e)?s((0,o.default)(e),t):null!=e&&i(t,e,r),this}get(e,t){if(e=f(e)){let r=(0,a.default).findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t)return function(e){let t;let r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=n.exec(e);)r[t[1]]=t[2];return r}(e);if((0,a.default).isFunction(t))return t.call(this,e,r);if((0,a.default).isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=f(e)){let r=(0,a.default).findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||l(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function i(e){if(e=f(e)){let i=(0,a.default).findKey(r,e);i&&(!t||l(r,r[i],i,t))&&(delete r[i],n=!0)}}return(0,a.default).isArray(e)?e.forEach(i):i(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let i=t[r];(!e||l(this,this[i],i,e,!0))&&(delete this[i],n=!0)}return n}normalize(e){let t=this,r={};return(0,a.default).forEach(this,(n,i)=>{let s=(0,a.default).findKey(r,i);if(s){t[s]=u(n),delete t[i];return}let o=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(i).trim();o!==i&&delete t[i],t[o]=u(n),r[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return(0,a.default).forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&(0,a.default).isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=this[c]=this[c]={accessors:{}},r=t.accessors,n=this.prototype;function i(e){let t=f(e);r[t]||(!function(e,t){let r=(0,a.default).toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:!0})})}(n,e),r[t]=!0)}return(0,a.default).isArray(e)?e.forEach(i):i(e),this}}h.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),(0,a.default).reduceDescriptors(h.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),(0,a.default).freezeMethods(h),r.default=h},{"../utils.js":"2ioTY","../helpers/parseHeaders.js":"aYbVO","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],aYbVO:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);"use strict";var i=e("./../utils.js"),a=n.interopDefault(i);let s=(0,a.default).toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);r.default=e=>{let t,r,n;let i={};return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),t=e.substring(0,n).trim().toLowerCase(),r=e.substring(n+1).trim(),!t||i[t]&&s[t]||("set-cookie"===t?i[t]?i[t].push(r):i[t]=[r]:i[t]=i[t]?i[t]+", "+r:r)}),i}},{"./../utils.js":"2ioTY","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"5ndsF":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";function i(e){return!!(e&&e.__CANCEL__)}n.defineInteropFlag(r),n.export(r,"default",()=>i)},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],judoa:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);"use strict";var i=e("../core/AxiosError.js"),a=n.interopDefault(i),s=e("../utils.js");function o(e,t,r){(0,a.default).call(this,null==e?"canceled":e,a.default.ERR_CANCELED,t,r),this.name="CanceledError"}(0,n.interopDefault(s).default).inherits(o,a.default,{__CANCEL__:!0}),r.default=o},{"../core/AxiosError.js":"hjCVQ","../utils.js":"2ioTY","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"6E0f0":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("../utils.js"),a=n.interopDefault(i),s=e("./http.js"),o=n.interopDefault(s),c=e("./xhr.js"),f=n.interopDefault(c),u=e("../core/AxiosError.js"),d=n.interopDefault(u);let l={http:o.default,xhr:f.default};(0,a.default).forEach(l,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let h=e=>`- ${e}`,p=e=>(0,a.default).isFunction(e)||null===e||!1===e;r.default={getAdapter:e=>{let t,r;e=(0,a.default).isArray(e)?e:[e];let{length:n}=e,i={};for(let a=0;a`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")),t=n?e.length>1?"since :\n"+e.map(h).join("\n"):" "+h(e[0]):"as no adapter specified";throw new d.default("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return r},adapters:l}},{"../utils.js":"2ioTY","./http.js":"fN4B6","./xhr.js":"9qcoo","../core/AxiosError.js":"hjCVQ","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"9qcoo":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);"use strict";var i=e("./../utils.js"),a=n.interopDefault(i),s=e("./../core/settle.js"),o=n.interopDefault(s),c=e("./../helpers/cookies.js"),f=n.interopDefault(c),u=e("./../helpers/buildURL.js"),d=n.interopDefault(u),l=e("../core/buildFullPath.js"),h=n.interopDefault(l),p=e("./../helpers/isURLSameOrigin.js"),m=n.interopDefault(p),b=e("../defaults/transitional.js"),g=n.interopDefault(b),y=e("../core/AxiosError.js"),v=n.interopDefault(y),w=e("../cancel/CanceledError.js"),_=n.interopDefault(w),E=e("../helpers/parseProtocol.js"),A=n.interopDefault(E),M=e("../platform/index.js"),S=n.interopDefault(M),x=e("../core/AxiosHeaders.js"),T=n.interopDefault(x),k=e("../helpers/speedometer.js"),R=n.interopDefault(k);function I(e,t){let r=0,n=(0,R.default)(50,250);return i=>{let a=i.loaded,s=i.lengthComputable?i.total:void 0,o=a-r,c=n(o),f=a<=s;r=a;let u={loaded:a,total:s,progress:s?a/s:void 0,bytes:o,rate:c||void 0,estimated:c&&s&&f?(s-a)/c:void 0,event:i};u[t?"download":"upload"]=!0,e(u)}}let C="undefined"!=typeof XMLHttpRequest;r.default=C&&function(e){return new Promise(function(t,r){let n,i,s=e.data,c=(0,T.default).from(e.headers).normalize(),{responseType:u,withXSRFToken:l}=e;function p(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}if((0,a.default).isFormData(s)){if(S.default.hasStandardBrowserEnv||S.default.hasStandardBrowserWebWorkerEnv)c.setContentType(!1);else if(!1!==(i=c.getContentType())){let[e,...t]=i?i.split(";").map(e=>e.trim()).filter(Boolean):[];c.setContentType([e||"multipart/form-data",...t].join("; "))}}let b=new XMLHttpRequest;if(e.auth){let t=e.auth.username||"",r=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";c.set("Authorization","Basic "+btoa(t+":"+r))}let y=(0,h.default)(e.baseURL,e.url);function w(){if(!b)return;let n=(0,T.default).from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),i=u&&"text"!==u&&"json"!==u?b.response:b.responseText,a={data:i,status:b.status,statusText:b.statusText,headers:n,config:e,request:b};(0,o.default)(function(e){t(e),p()},function(e){r(e),p()},a),b=null}if(b.open(e.method.toUpperCase(),(0,d.default)(y,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=w:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(w)},b.onabort=function(){b&&(r(new v.default("Request aborted",v.default.ECONNABORTED,e,b)),b=null)},b.onerror=function(){r(new v.default("Network Error",v.default.ERR_NETWORK,e,b)),b=null},b.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||g.default;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new v.default(t,n.clarifyTimeoutError?v.default.ETIMEDOUT:v.default.ECONNABORTED,e,b)),b=null},S.default.hasStandardBrowserEnv&&(l&&(0,a.default).isFunction(l)&&(l=l(e)),l||!1!==l&&(0,m.default)(y))){let t=e.xsrfHeaderName&&e.xsrfCookieName&&(0,f.default).read(e.xsrfCookieName);t&&c.set(e.xsrfHeaderName,t)}void 0===s&&c.setContentType(null),"setRequestHeader"in b&&(0,a.default).forEach(c.toJSON(),function(e,t){b.setRequestHeader(t,e)}),(0,a.default).isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),u&&"json"!==u&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",I(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",I(e.onUploadProgress)),(e.cancelToken||e.signal)&&(n=t=>{b&&(r(!t||t.type?new _.default(null,e,b):t),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n)));let E=(0,A.default)(y);if(E&&-1===(0,S.default).protocols.indexOf(E)){r(new v.default("Unsupported protocol "+E+":",v.default.ERR_BAD_REQUEST,e));return}b.send(s||null)})}},{"./../utils.js":"2ioTY","./../core/settle.js":"dlf0W","./../helpers/cookies.js":"lftHJ","./../helpers/buildURL.js":"aGaJq","../core/buildFullPath.js":"48uot","./../helpers/isURLSameOrigin.js":"33eDi","../defaults/transitional.js":"lBqaD","../core/AxiosError.js":"hjCVQ","../cancel/CanceledError.js":"judoa","../helpers/parseProtocol.js":"3ExDf","../platform/index.js":"fP1Ni","../core/AxiosHeaders.js":"1qkRX","../helpers/speedometer.js":"cludo","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dlf0W:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>s);"use strict";var i=e("./AxiosError.js"),a=n.interopDefault(i);function s(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new a.default("Request failed with status code "+r.status,[a.default.ERR_BAD_REQUEST,a.default.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}},{"./AxiosError.js":"hjCVQ","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lftHJ:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./../utils.js"),a=n.interopDefault(i),s=e("../platform/index.js"),o=n.interopDefault(s);r.default=o.default.hasStandardBrowserEnv?{write(e,t,r,n,i,s){let o=[e+"="+encodeURIComponent(t)];(0,a.default).isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),(0,a.default).isString(n)&&o.push("path="+n),(0,a.default).isString(i)&&o.push("domain="+i),!0===s&&o.push("secure"),document.cookie=o.join("; ")},read(e){let t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}}},{"./../utils.js":"2ioTY","../platform/index.js":"fP1Ni","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"48uot":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>c);"use strict";var i=e("../helpers/isAbsoluteURL.js"),a=n.interopDefault(i),s=e("../helpers/combineURLs.js"),o=n.interopDefault(s);function c(e,t){return e&&!(0,a.default)(t)?(0,o.default)(e,t):t}},{"../helpers/isAbsoluteURL.js":"lW14e","../helpers/combineURLs.js":"kZdZo","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lW14e:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";function i(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}n.defineInteropFlag(r),n.export(r,"default",()=>i)},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],kZdZo:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";function i(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}n.defineInteropFlag(r),n.export(r,"default",()=>i)},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"33eDi":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);"use strict";var i=e("./../utils.js"),a=n.interopDefault(i),s=e("../platform/index.js"),o=n.interopDefault(s);r.default=o.default.hasStandardBrowserEnv?function(){let e;let t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){let n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){let r=(0,a.default).isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},{"./../utils.js":"2ioTY","../platform/index.js":"fP1Ni","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"3ExDf":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";function i(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}n.defineInteropFlag(r),n.export(r,"default",()=>i)},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],cludo:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);"use strict";r.default=function(e,t){let r;e=e||10;let n=Array(e),i=Array(e),a=0,s=0;return t=void 0!==t?t:1e3,function(o){let c=Date.now(),f=i[s];r||(r=c),n[a]=o,i[a]=c;let u=s,d=0;for(;u!==a;)d+=n[u++],u%=e;if((a=(a+1)%e)===s&&(s=(s+1)%e),c-rf);"use strict";var i=e("../utils.js"),a=n.interopDefault(i),s=e("./AxiosHeaders.js"),o=n.interopDefault(s);let c=e=>e instanceof o.default?e.toJSON():e;function f(e,t){t=t||{};let r={};function n(e,t,r){return(0,a.default).isPlainObject(e)&&(0,a.default).isPlainObject(t)?(0,a.default).merge.call({caseless:r},e,t):(0,a.default).isPlainObject(t)?(0,a.default).merge({},t):(0,a.default).isArray(t)?t.slice():t}function i(e,t,r){return(0,a.default).isUndefined(t)?(0,a.default).isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function s(e,t){if(!(0,a.default).isUndefined(t))return n(void 0,t)}function o(e,t){return(0,a.default).isUndefined(t)?(0,a.default).isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function f(r,i,a){return a in t?n(r,i):a in e?n(void 0,r):void 0}let u={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:f,headers:(e,t)=>i(c(e),c(t),!0)};return(0,a.default).forEach(Object.keys(Object.assign({},e,t)),function(n){let s=u[n]||i,o=s(e[n],t[n],n);(0,a.default).isUndefined(o)&&s!==f||(r[n]=o)}),r}},{"../utils.js":"2ioTY","./AxiosHeaders.js":"1qkRX","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"8PNBN":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";n.defineInteropFlag(r);var i=e("../env/data.js"),a=e("../core/AxiosError.js"),s=n.interopDefault(a);let o={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{o[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let c={};o.transitional=function(e,t,r){function n(e,t){return"[Axios v"+i.VERSION+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,a)=>{if(!1===e)throw new s.default(n(i," has been removed"+(t?" in "+t:"")),s.default.ERR_DEPRECATED);return t&&!c[i]&&(c[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,a)}},r.default={assertOptions:function(e,t,r){if("object"!=typeof e)throw new s.default("options must be an object",s.default.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),i=n.length;for(;i-- >0;){let a=n[i],o=t[a];if(o){let t=e[a],r=void 0===t||o(t,a,e);if(!0!==r)throw new s.default("option "+a+" must be "+r,s.default.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new s.default("Unknown option "+a,s.default.ERR_BAD_OPTION)}},validators:o}},{"../env/data.js":"9ssnR","../core/AxiosError.js":"hjCVQ","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"9ssnR":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"VERSION",()=>i);let i="1.6.5"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2aN3e":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);"use strict";var i=e("./CanceledError.js"),a=n.interopDefault(i);class s{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;let n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,i){r.reason||(r.reason=new a.default(e,n,i),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;let t=new s(function(t){e=t});return{token:t,cancel:e}}}r.default=s},{"./CanceledError.js":"judoa","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gQxw3:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";function i(e){return function(t){return e.apply(null,t)}}n.defineInteropFlag(r),n.export(r,"default",()=>i)},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lE0ea:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>s);"use strict";var i=e("./../utils.js"),a=n.interopDefault(i);function s(e){return(0,a.default).isObject(e)&&!0===e.isAxiosError}},{"./../utils.js":"2ioTY","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],agO1h:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);let n={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(n).forEach(([e,t])=>{n[t]=e}),r.default=n},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dO0KB:[function(e,t,r){let n,i;var a,s,o,c,f=e("@parcel/transformer-js/src/esmodule-helpers.js");f.defineInteropFlag(r),f.export(r,"Detail",()=>o),f.export(r,"getDetail",()=>ef),f.export(r,"identify",()=>ea),f.export(r,"setEnvironment",()=>es),f.export(r,"setPassportClientId",()=>eo),f.export(r,"setPublishableApiKey",()=>ec),f.export(r,"track",()=>W),f.export(r,"trackDuration",()=>X),f.export(r,"trackError",()=>en),f.export(r,"trackFlow",()=>er),f.export(r,"utils",()=>eu);var u=e("axios"),d=f.interopDefault(u),l=e("lru-memorise"),h=e("global-const"),p=e("6a0bfe3548874972").Buffer;e("15cbbe915ba0ee1");let m=()=>"undefined"==typeof window,b=()=>!m(),g=()=>b()&&window.localStorage,y=e=>{if(null!==e)try{return JSON.parse(e)}catch(t){return e}},v=e=>"string"==typeof e?e:JSON.stringify(e),w=e=>`__IMX-${e}`;function _(e){if(g())return y(window.localStorage.getItem(w(e)))}let E=(e,t)=>!!g()&&(window.localStorage.setItem(w(e),v(t)),!0);var A=Object.freeze({__proto__:null,deleteItem:e=>!!g()&&(window.localStorage.removeItem(w(e)),!0),getItem:_,setItem:E});let M=0,S=e=>{let t=1e3*parseInt(e,10),r=new Date(t),n=new Date;return M=r.getTime()-n.getTime()},x=()=>{let e=new Date().getTime()+M,t=new Date(e).toISOString();return t};async function T(e,t){let r=(0,d.default).create({baseURL:"https://api.immutable.com"}),n=JSON.stringify(t),i={payload:p.from(n).toString("base64")},a=await r.post(e,i);return a.data}(a=o||(o={})).RUNTIME_ID="rid",a.PASSPORT_CLIENT_ID="passportClientId",a.ENVIRONMENT="env",a.PUBLISHABLE_API_KEY="pak",a.IDENTITY="uid",a.DOMAIN="domain",a.SDK_VERSION="sdkVersion",(s=c||(c={})).EVENTS="metrics-events",s.RUNTIME="metrics-runtime",n=_(c.EVENTS)||[],i=_(c.RUNTIME)||{};let k=(e,t)=>{i={...i,[e]:t},E(c.RUNTIME,i)},R=e=>{if(void 0!==i[e])return i[e]},I=()=>i,C=()=>n,P=e=>{n.push(e),E(c.EVENTS,n)},O=e=>{n=n.slice(e),E(c.EVENTS,n)},N=e=>{let t=[];return Object.entries(e).forEach(([e,r])=>{("string"==typeof e||"string"==typeof r||"number"==typeof r||"boolean"==typeof r)&&t.push([e,r.toString()])}),t},j="1.46.10",B=()=>m()?"":window.location.ancestorOrigins&&window.location.ancestorOrigins.length>0?new URL(window.location.ancestorOrigins[0]).hostname:document.referrer?new URL(window.document.referrer).hostname:"",L=()=>{let e;if(m())return"";try{window.self!==window.top&&(e=B())}catch(e){}return e||(e=window.location.hostname),e},D=()=>{if(k(o.SDK_VERSION,j),m())return{browser:"nodejs",sdkVersion:j};let e=L();return e&&k(o.DOMAIN,e),{sdkVersion:j,browser:window.navigator.userAgent,domain:e,tz:Intl.DateTimeFormat().resolvedOptions().timeZone,screen:`${window.screen.width}x${window.screen.height}`}},U=!1,F=()=>U,q=async()=>{U=!0;try{let e=N(D()),t=R(o.RUNTIME_ID),r=R(o.IDENTITY),n=await T("/v1/sdk/initialise",{version:1,data:{runtimeDetails:e,runtimeId:t,uId:r}}),{runtimeId:i,sTime:a}=n;k(o.RUNTIME_ID,i),S(a)}catch(e){U=!1}};function z(e,t){return(...r)=>{try{let n=e(...r);if(n instanceof Promise)return n.catch(()=>t);return n}catch(e){return t}}}let K=z(function(){return!b()&&!1},!1),H="imtbl__metrics",V=(e,t)=>(0,h.getGlobalisedValue)(H,e,t),W=z(((e,t)=>{let r=(0,l.memorise)(t,{lruOptions:{ttl:5e3,max:1e3}});return(0,h.getGlobalisedValue)(H,e,r)})("track",(e,t,r)=>{let n={event:`${e}.${t}`,time:x(),...r&&{properties:N(r)}};P(n)})),G=async()=>{if(!1===F()){await q();return}let e=C();if(0===e.length)return;let t=e.length,r=I(),n=await T("/v1/sdk/metrics",{version:1,data:{events:e,details:r}});n instanceof Error||O(t)},J=z(G),Z=async()=>{await J(),setTimeout(Z,5e3)},$=!1;K()||z(V("startFlushing",()=>{$||($=!0,Z())}))();let X=(e,t,r,n)=>W(e,t,{...n||{},duration:Math.round(r)}),Y=()=>{let e=()=>Math.floor((1+Math.random())*65536).toString(16).substring(1);return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`},Q=(...e)=>{let t=e.some(e=>!!e);if(!t)return{};let r={};return e.forEach(e=>{e&&(r={...r,...e})}),r},ee=e=>e.replace(/[^a-zA-Z0-9\s\-_]/g,""),et=(e,t)=>`${e}_${ee(t)}`,er=z((e,t,r)=>{let n=Y(),i=Date.now(),a=0,s=0,o={},c=(...e)=>Q(o,...e,{flowId:n,flowName:t});o=c(r);let f=(r,n)=>{let i=et(t,r),o=0,f=performance.now();a>0&&(o=f-s);let u=c(n,{flowEventName:r,flowStep:a});X(e,i,o,u),a++,s=f};return f("Start"),{details:{moduleName:e,flowName:t,flowId:n,flowStartTime:i},addEvent:z(f),addFlowProperties:z(e=>{e&&(o=c(e))})}}),en=z((e,t,r,n)=>{let{message:i}=r,a=r.stack||"",{cause:s}=r;s instanceof Error&&(a=`${a} Cause: ${s.message} - ${s.stack}`),W(e,`trackError_${t}`,{...n||{},errorMessage:i,errorStack:a,isTrackError:!0})}),ei=e=>{if(e.passportId){let t=`passport:${e.passportId.toLowerCase()}`;return t}if(e.ethAddress){let t=`ethAddress:${e.ethAddress.toLowerCase()}`;return t}throw Error("invalid_identity")},ea=z(e=>{let t=ei(e);t&&(k(o.IDENTITY,t),W("metrics","identify",e.traits))}),es=z(V("setEnvironment",e=>{k(o.ENVIRONMENT,e)})),eo=z(V("setPassportClientId",e=>{k(o.PASSPORT_CLIENT_ID,e)})),ec=z(V("setPublishableApiKey",e=>{k(o.PUBLISHABLE_API_KEY,e)})),ef=z(V("getDetail",R)),eu={localStorage:A}},{"6a0bfe3548874972":"2MMCE","15cbbe915ba0ee1":"fg0b3",axios:"jhAcT","lru-memorise":"h26r2","global-const":"5eChp","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],h26r2:[function(e,t,r){!function(e){"use strict";class t{constructor(e=0,t=0,r=!1){this.first=null,this.items=Object.create(null),this.last=null,this.max=e,this.resetTtl=r,this.size=0,this.ttl=t}clear(){return this.first=null,this.items=Object.create(null),this.last=null,this.size=0,this}delete(e){if(this.has(e)){let t=this.items[e];delete this.items[e],this.size--,null!==t.prev&&(t.prev.next=t.next),null!==t.next&&(t.next.prev=t.prev),this.first===t&&(this.first=t.next),this.last===t&&(this.last=t.prev)}return this}entries(e=this.keys()){return e.map(e=>[e,this.get(e)])}evict(e=!1){if(e||this.size>0){let e=this.first;delete this.items[e.key],0==--this.size?(this.first=null,this.last=null):(this.first=e.next,this.first.prev=null)}return this}expiresAt(e){let t;return this.has(e)&&(t=this.items[e].expiry),t}get(e){let t;if(this.has(e)){let r=this.items[e];this.ttl>0&&r.expiry<=Date.now()?this.delete(e):(t=r.value,this.set(e,t,!0))}return t}has(e){return e in this.items}keys(){let e=[],t=this.first;for(;null!==t;)e.push(t.key),t=t.next;return e}set(e,t,r=!1,n=this.resetTtl){let i;if(r||this.has(e)){if((i=this.items[e]).value=t,!1===r&&n&&(i.expiry=this.ttl>0?Date.now()+this.ttl:this.ttl),this.last!==i){let e=this.last,t=i.next,r=i.prev;this.first===i&&(this.first=i.next),i.next=null,i.prev=this.last,e.next=i,null!==r&&(r.next=t),null!==t&&(t.prev=r)}}else this.max>0&&this.size===this.max&&this.evict(!0),i=this.items[e]={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:e,prev:this.last,next:null,value:t},1==++this.size?this.first=i:this.last.next=i;return this.last=i,this}values(e=this.keys()){return e.map(e=>this.get(e))}}let r={max:1e3},n=(e,n={})=>{let{cache:a,cacheKeyResolver:s=i,onHit:o,lruOptions:c={}}=n,f={...r,...c},u=a||function(e=1e3,r=0,n=!1){if(isNaN(e)||e<0)throw TypeError("Invalid max value");if(isNaN(r)||r<0)throw TypeError("Invalid ttl value");if("boolean"!=typeof n)throw TypeError("Invalid resetTtl value");return new t(e,r,n)}(f.max,f.ttl);function d(...t){let r=s(...t),n=u.get(r);if(u.has(r))return o&&o(r,n,u),n;let i=e.apply(this,t);return u.set(r,i),i}return d._cache=u,d},i=(...e)=>0===e.length?"no-args":e.map(e=>void 0===e?"undefined":null===e?"null":Array.isArray(e)?`[${i(...e)}]`:"object"==typeof e?`{${i(...a(e))}}`:JSON.stringify(e)).join(","),a=e=>Object.entries(e).sort((e,t)=>e[0]"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:n,a=(e,t)=>{if("string"!=typeof e)throw"Invalid namespace key";if("string"!=typeof t)throw"Invalid item key"},s=e=>`globalise__singleton__${e}`,o=e=>{let t=i(),r=s(e);return t[r]||(t[r]={}),t[r]},c=(e,t)=>{let r=o(e);return r[t]||void 0},f=(e,t,r)=>{let n=o(e);n[t]=r};r.getGlobalisedValue=(e,t,r)=>{a(e,t);let n=c(e,t);return void 0!==n?n:(f(e,t,r),r)},r.clearGlobalNamespace=e=>{let t=i(),r=s(e);void 0!==t[r]&&delete t[r]}},{}],"2eu25":[function(e,t,r){var n,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y,v,w,_,E,A,M,S,x,T,k,R=e("@parcel/transformer-js/src/esmodule-helpers.js");R.defineInteropFlag(r),R.export(r,"BlockchainData",()=>tw),R.export(r,"ImxApiClients",()=>t_),R.export(r,"MultiRollupApiClients",()=>tE),R.export(r,"createConfig",()=>tM),R.export(r,"imx",()=>eK),R.export(r,"imxApiConfig",()=>tS),R.export(r,"mr",()=>tv),R.export(r,"multiRollupConfig",()=>tx);var I=e("axios"),C=R.interopDefault(I);let P="https://api.sandbox.x.immutable.com".replace(/\/+$/,""),O=class{basePath;axios;configuration;constructor(e,t=P,r=C.default){this.basePath=t,this.axios=r,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}},N=class extends Error{field;name="RequiredError";constructor(e,t){super(t),this.field=e}},j="https://example.com",B=function(e,t,r){if(null==r)throw new N(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},L=async function(e,t,r){if(r&&r.apiKey){let n="function"==typeof r.apiKey?await r.apiKey(t):await r.apiKey;e[t]=n}},D=function(e,...t){let r=new URLSearchParams(e.search);!function e(t,r,n=""){"object"==typeof r?Array.isArray(r)?r.forEach(r=>e(t,r,n)):Object.keys(r).forEach(i=>e(t,r[i],`${n}${""!==n?".":""}${i}`)):t.has(n)?t.append(n,r):t.set(n,r)}(r,t),e.search=r.toString()},U=function(e,t,r){let n="string"!=typeof e,i=n&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):n;return i?JSON.stringify(void 0!==e?e:{}):e||""},F=function(e){return e.pathname+e.search+e.hash},q=function(e,t,r,n){return(i=t,a=r)=>{let s={...e.options,url:(n?.basePath||a)+e.url};return i.request(s)}},z=function(e){return{getAsset:async(t,r,n,i={})=>{let a;B("getAsset","tokenAddress",t),B("getAsset","tokenId",r);let s="/v1/assets/{token_address}/{token_id}".replace("{token_address}",encodeURIComponent(String(t))).replace("{token_id}",encodeURIComponent(String(r))),o=new URL(s,j);e&&(a=e.baseOptions);let c={method:"GET",...a,...i},f={};void 0!==n&&(f.include_fees=n),D(o,f);let u=a&&a.headers?a.headers:{};return c.headers={...u,...i.headers},{url:F(o),options:c}},listAssets:async(t,r,n,i,a,s,o,c,f,u,d,l,h,p,m,b,g={})=>{let y;let v=new URL("/v1/assets",j);e&&(y=e.baseOptions);let w={method:"GET",...y,...g},_={};void 0!==t&&(_.page_size=t),void 0!==r&&(_.cursor=r),void 0!==n&&(_.order_by=n),void 0!==i&&(_.direction=i),void 0!==a&&(_.user=a),void 0!==s&&(_.status=s),void 0!==o&&(_.name=o),void 0!==c&&(_.metadata=c),void 0!==f&&(_.sell_orders=f),void 0!==u&&(_.buy_orders=u),void 0!==d&&(_.include_fees=d),void 0!==l&&(_.collection=l),void 0!==h&&(_.updated_min_timestamp=h),void 0!==p&&(_.updated_max_timestamp=p),void 0!==m&&(_.auxiliary_fee_percentages=m),void 0!==b&&(_.auxiliary_fee_recipients=b),D(v,_);let E=y&&y.headers?y.headers:{};return w.headers={...E,...g.headers},{url:F(v),options:w}}}},K=function(e){let t=z(e);return{async getAsset(r,n,i,a){let s=await t.getAsset(r,n,i,a);return q(s,C.default,P,e)},async listAssets(r,n,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y){let v=await t.listAssets(r,n,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y);return q(v,C.default,P,e)}}};class H extends O{getAsset(e,t){return K(this.configuration).getAsset(e.tokenAddress,e.tokenId,e.includeFees,t).then(e=>e(this.axios,this.basePath))}listAssets(e={},t){return K(this.configuration).listAssets(e.pageSize,e.cursor,e.orderBy,e.direction,e.user,e.status,e.name,e.metadata,e.sellOrders,e.buyOrders,e.includeFees,e.collection,e.updatedMinTimestamp,e.updatedMaxTimestamp,e.auxiliaryFeePercentages,e.auxiliaryFeeRecipients,t).then(e=>e(this.axios,this.basePath))}}let V=function(e){return{getBalance:async(t,r,n={})=>{let i;B("getBalance","owner",t),B("getBalance","address",r);let a="/v2/balances/{owner}/{address}".replace("{owner}",encodeURIComponent(String(t))).replace("{address}",encodeURIComponent(String(r))),s=new URL(a,j);e&&(i=e.baseOptions);let o={method:"GET",...i,...n};D(s,{});let c=i&&i.headers?i.headers:{};return o.headers={...c,...n.headers},{url:F(s),options:o}},listBalances:async(t,r,n,i,a,s={})=>{let o;B("listBalances","owner",t);let c="/v2/balances/{owner}".replace("{owner}",encodeURIComponent(String(t))),f=new URL(c,j);e&&(o=e.baseOptions);let u={method:"GET",...o,...s},d={};void 0!==r&&(d.page_size=r),void 0!==n&&(d.cursor=n),void 0!==i&&(d.order_by=i),void 0!==a&&(d.direction=a),D(f,d);let l=o&&o.headers?o.headers:{};return u.headers={...l,...s.headers},{url:F(f),options:u}}}},W=function(e){let t=V(e);return{async getBalance(r,n,i){let a=await t.getBalance(r,n,i);return q(a,C.default,P,e)},async listBalances(r,n,i,a,s,o){let c=await t.listBalances(r,n,i,a,s,o);return q(c,C.default,P,e)}}};class G extends O{getBalance(e,t){return W(this.configuration).getBalance(e.owner,e.address,t).then(e=>e(this.axios,this.basePath))}listBalances(e,t){return W(this.configuration).listBalances(e.owner,e.pageSize,e.cursor,e.orderBy,e.direction,t).then(e=>e(this.axios,this.basePath))}}let J=function(e){return{createCollection:async(t,r,n,i,a={})=>{let s;B("createCollection","iMXSignature",t),B("createCollection","iMXTimestamp",r),B("createCollection","createCollectionRequest",n);let o=new URL("/v1/collections",j);e&&(s=e.baseOptions);let c={method:"POST",...s,...a},f={};null!=t&&(f["IMX-Signature"]=String(t)),null!=r&&(f["IMX-Timestamp"]=String(r)),null!=i&&(f["x-immutable-api-key"]=String(i)),f["Content-Type"]="application/json",D(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...f,...u,...a.headers},c.data=U(n,c,e),{url:F(o),options:c}},getCollection:async(t,r={})=>{let n;B("getCollection","address",t);let i="/v1/collections/{address}".replace("{address}",encodeURIComponent(String(t))),a=new URL(i,j);e&&(n=e.baseOptions);let s={method:"GET",...n,...r};D(a,{});let o=n&&n.headers?n.headers:{};return s.headers={...o,...r.headers},{url:F(a),options:s}},listCollectionFilters:async(t,r,n,i={})=>{let a;B("listCollectionFilters","address",t);let s="/v1/collections/{address}/filters".replace("{address}",encodeURIComponent(String(t))),o=new URL(s,j);e&&(a=e.baseOptions);let c={method:"GET",...a,...i},f={};void 0!==r&&(f.page_size=r),void 0!==n&&(f.next_page_token=n),D(o,f);let u=a&&a.headers?a.headers:{};return c.headers={...u,...i.headers},{url:F(o),options:c}},listCollections:async(t,r,n,i,a,s,o,c={})=>{let f;let u=new URL("/v1/collections",j);e&&(f=e.baseOptions);let d={method:"GET",...f,...c},l={};void 0!==t&&(l.page_size=t),void 0!==r&&(l.cursor=r),void 0!==n&&(l.order_by=n),void 0!==i&&(l.direction=i),void 0!==a&&(l.blacklist=a),void 0!==s&&(l.whitelist=s),void 0!==o&&(l.keyword=o),D(u,l);let h=f&&f.headers?f.headers:{};return d.headers={...h,...c.headers},{url:F(u),options:d}},summarizeCollections:async(t,r={})=>{let n;B("summarizeCollections","user",t);let i=new URL("/v1/collections-summary",j);e&&(n=e.baseOptions);let a={method:"GET",...n,...r},s={};void 0!==t&&(s.user=t),D(i,s);let o=n&&n.headers?n.headers:{};return a.headers={...o,...r.headers},{url:F(i),options:a}},updateCollection:async(t,r,n,i,a={})=>{let s;B("updateCollection","address",t),B("updateCollection","iMXSignature",r),B("updateCollection","iMXTimestamp",n),B("updateCollection","updateCollectionRequest",i);let o="/v1/collections/{address}".replace("{address}",encodeURIComponent(String(t))),c=new URL(o,j);e&&(s=e.baseOptions);let f={method:"PATCH",...s,...a},u={};null!=r&&(u["IMX-Signature"]=String(r)),null!=n&&(u["IMX-Timestamp"]=String(n)),u["Content-Type"]="application/json",D(c,{});let d=s&&s.headers?s.headers:{};return f.headers={...u,...d,...a.headers},f.data=U(i,f,e),{url:F(c),options:f}}}},Z=function(e){let t=J(e);return{async createCollection(r,n,i,a,s){let o=await t.createCollection(r,n,i,a,s);return q(o,C.default,P,e)},async getCollection(r,n){let i=await t.getCollection(r,n);return q(i,C.default,P,e)},async listCollectionFilters(r,n,i,a){let s=await t.listCollectionFilters(r,n,i,a);return q(s,C.default,P,e)},async listCollections(r,n,i,a,s,o,c,f){let u=await t.listCollections(r,n,i,a,s,o,c,f);return q(u,C.default,P,e)},async summarizeCollections(r,n){let i=await t.summarizeCollections(r,n);return q(i,C.default,P,e)},async updateCollection(r,n,i,a,s){let o=await t.updateCollection(r,n,i,a,s);return q(o,C.default,P,e)}}},$=class extends O{createCollection(e,t){return Z(this.configuration).createCollection(e.iMXSignature,e.iMXTimestamp,e.createCollectionRequest,e.xImmutableApiKey,t).then(e=>e(this.axios,this.basePath))}getCollection(e,t){return Z(this.configuration).getCollection(e.address,t).then(e=>e(this.axios,this.basePath))}listCollectionFilters(e,t){return Z(this.configuration).listCollectionFilters(e.address,e.pageSize,e.nextPageToken,t).then(e=>e(this.axios,this.basePath))}listCollections(e={},t){return Z(this.configuration).listCollections(e.pageSize,e.cursor,e.orderBy,e.direction,e.blacklist,e.whitelist,e.keyword,t).then(e=>e(this.axios,this.basePath))}summarizeCollections(e,t){return Z(this.configuration).summarizeCollections(e.user,t).then(e=>e(this.axios,this.basePath))}updateCollection(e,t){return Z(this.configuration).updateCollection(e.address,e.iMXSignature,e.iMXTimestamp,e.updateCollectionRequest,t).then(e=>e(this.axios,this.basePath))}},X=function(e){return{getDeposit:async(t,r={})=>{let n;B("getDeposit","id",t);let i="/v1/deposits/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(i,j);e&&(n=e.baseOptions);let s={method:"GET",...n,...r};D(a,{});let o=n&&n.headers?n.headers:{};return s.headers={...o,...r.headers},{url:F(a),options:s}},getSignableDeposit:async(t,r={})=>{let n;B("getSignableDeposit","getSignableDepositRequest",t);let i=new URL("/v1/signable-deposit-details",j);e&&(n=e.baseOptions);let a={method:"POST",...n,...r},s={};s["Content-Type"]="application/json",D(i,{});let o=n&&n.headers?n.headers:{};return a.headers={...s,...o,...r.headers},a.data=U(t,a,e),{url:F(i),options:a}},listDeposits:async(t,r,n,i,a,s,o,c,f,u,d,l,h,p,m,b,g={})=>{let y;let v=new URL("/v1/deposits",j);e&&(y=e.baseOptions);let w={method:"GET",...y,...g},_={};void 0!==t&&(_.page_size=t),void 0!==r&&(_.cursor=r),void 0!==n&&(_.order_by=n),void 0!==i&&(_.direction=i),void 0!==a&&(_.user=a),void 0!==s&&(_.status=s),void 0!==o&&(_.min_timestamp=o),void 0!==c&&(_.max_timestamp=c),void 0!==f&&(_.token_type=f),void 0!==u&&(_.token_id=u),void 0!==d&&(_.asset_id=d),void 0!==l&&(_.token_address=l),void 0!==h&&(_.token_name=h),void 0!==p&&(_.min_quantity=p),void 0!==m&&(_.max_quantity=m),void 0!==b&&(_.metadata=b),D(v,_);let E=y&&y.headers?y.headers:{};return w.headers={...E,...g.headers},{url:F(v),options:w}}}},Y=function(e){let t=X(e);return{async getDeposit(r,n){let i=await t.getDeposit(r,n);return q(i,C.default,P,e)},async getSignableDeposit(r,n){let i=await t.getSignableDeposit(r,n);return q(i,C.default,P,e)},async listDeposits(r,n,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y){let v=await t.listDeposits(r,n,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y);return q(v,C.default,P,e)}}};class Q extends O{getDeposit(e,t){return Y(this.configuration).getDeposit(e.id,t).then(e=>e(this.axios,this.basePath))}getSignableDeposit(e,t){return Y(this.configuration).getSignableDeposit(e.getSignableDepositRequest,t).then(e=>e(this.axios,this.basePath))}listDeposits(e={},t){return Y(this.configuration).listDeposits(e.pageSize,e.cursor,e.orderBy,e.direction,e.user,e.status,e.minTimestamp,e.maxTimestamp,e.tokenType,e.tokenId,e.assetId,e.tokenAddress,e.tokenName,e.minQuantity,e.maxQuantity,e.metadata,t).then(e=>e(this.axios,this.basePath))}}let ee=function(e){return{encodeAsset:async(t,r,n={})=>{let i;B("encodeAsset","assetType",t),B("encodeAsset","encodeAssetRequest",r);let a="/v1/encode/{assetType}".replace("{assetType}",encodeURIComponent(String(t))),s=new URL(a,j);e&&(i=e.baseOptions);let o={method:"POST",...i,...n},c={};c["Content-Type"]="application/json",D(s,{});let f=i&&i.headers?i.headers:{};return o.headers={...c,...f,...n.headers},o.data=U(r,o,e),{url:F(s),options:o}}}},et=function(e){let t=ee(e);return{async encodeAsset(r,n,i){let a=await t.encodeAsset(r,n,i);return q(a,C.default,P,e)}}};class er extends O{encodeAsset(e,t){return et(this.configuration).encodeAsset(e.assetType,e.encodeAssetRequest,t).then(e=>e(this.axios,this.basePath))}}let en=function(e){return{createExchange:async(t,r={})=>{let n;B("createExchange","createExchangeAPIRequest",t);let i=new URL("/v3/exchanges",j);e&&(n=e.baseOptions);let a={method:"POST",...n,...r},s={};s["Content-Type"]="application/json",D(i,{});let o=n&&n.headers?n.headers:{};return a.headers={...s,...o,...r.headers},a.data=U(t,a,e),{url:F(i),options:a}},createExchangeTransfer:async(t,r,n,i,a,s={})=>{let o;B("createExchangeTransfer","id",t),B("createExchangeTransfer","createTransferRequest",r);let c="/v2/exchanges/{id}/transfers".replace("{id}",encodeURIComponent(String(t))),f=new URL(c,j);e&&(o=e.baseOptions);let u={method:"POST",...o,...s},d={};null!=n&&(d["x-imx-eth-address"]=String(n)),null!=i&&(d["x-imx-eth-signature"]=String(i)),null!=a&&(d.Authorization=String(a)),d["Content-Type"]="application/json",D(f,{});let l=o&&o.headers?o.headers:{};return u.headers={...d,...l,...s.headers},u.data=U(r,u,e),{url:F(f),options:u}},getExchange:async(t,r={})=>{let n;B("getExchange","id",t);let i="/v3/exchanges/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(i,j);e&&(n=e.baseOptions);let s={method:"GET",...n,...r};D(a,{});let o=n&&n.headers?n.headers:{};return s.headers={...o,...r.headers},{url:F(a),options:s}},getExchangeSignableTransfer:async(t,r,n={})=>{let i;B("getExchangeSignableTransfer","id",t),B("getExchangeSignableTransfer","getSignableTransferRequest",r);let a="/v2/exchanges/{id}/signable-transfer-details".replace("{id}",encodeURIComponent(String(t))),s=new URL(a,j);e&&(i=e.baseOptions);let o={method:"POST",...i,...n},c={};c["Content-Type"]="application/json",D(s,{});let f=i&&i.headers?i.headers:{};return o.headers={...c,...f,...n.headers},o.data=U(r,o,e),{url:F(s),options:o}},getExchanges:async(t,r,n,i,a,s,o,c,f,u={})=>{let d;let l=new URL("/v3/exchanges",j);e&&(d=e.baseOptions);let h={method:"GET",...d,...u},p={};void 0!==t&&(p.page_size=t),void 0!==r&&(p.cursor=r),void 0!==n&&(p.order_by=n),void 0!==i&&(p.direction=i),void 0!==a&&(p.id=a),void 0!==s&&(p.wallet_address=s),void 0!==o&&(p.status=o),void 0!==c&&(p.provider=c),void 0!==f&&(p.transfer_id=f),D(l,p);let m=d&&d.headers?d.headers:{};return h.headers={...m,...u.headers},{url:F(l),options:h}}}},ei=function(e){let t=en(e);return{async createExchange(r,n){let i=await t.createExchange(r,n);return q(i,C.default,P,e)},async createExchangeTransfer(r,n,i,a,s,o){let c=await t.createExchangeTransfer(r,n,i,a,s,o);return q(c,C.default,P,e)},async getExchange(r,n){let i=await t.getExchange(r,n);return q(i,C.default,P,e)},async getExchangeSignableTransfer(r,n,i){let a=await t.getExchangeSignableTransfer(r,n,i);return q(a,C.default,P,e)},async getExchanges(r,n,i,a,s,o,c,f,u,d){let l=await t.getExchanges(r,n,i,a,s,o,c,f,u,d);return q(l,C.default,P,e)}}};class ea extends O{createExchange(e,t){return ei(this.configuration).createExchange(e.createExchangeAPIRequest,t).then(e=>e(this.axios,this.basePath))}createExchangeTransfer(e,t){return ei(this.configuration).createExchangeTransfer(e.id,e.createTransferRequest,e.xImxEthAddress,e.xImxEthSignature,e.authorization,t).then(e=>e(this.axios,this.basePath))}getExchange(e,t){return ei(this.configuration).getExchange(e.id,t).then(e=>e(this.axios,this.basePath))}getExchangeSignableTransfer(e,t){return ei(this.configuration).getExchangeSignableTransfer(e.id,e.getSignableTransferRequest,t).then(e=>e(this.axios,this.basePath))}getExchanges(e={},t){return ei(this.configuration).getExchanges(e.pageSize,e.cursor,e.orderBy,e.direction,e.id,e.walletAddress,e.status,e.provider,e.transferId,t).then(e=>e(this.axios,this.basePath))}}let es=function(e){return{addMetadataSchemaToCollection:async(t,r,n,i,a={})=>{let s;B("addMetadataSchemaToCollection","address",t),B("addMetadataSchemaToCollection","iMXSignature",r),B("addMetadataSchemaToCollection","iMXTimestamp",n),B("addMetadataSchemaToCollection","addMetadataSchemaToCollectionRequest",i);let o="/v1/collections/{address}/metadata-schema".replace("{address}",encodeURIComponent(String(t))),c=new URL(o,j);e&&(s=e.baseOptions);let f={method:"POST",...s,...a},u={};null!=r&&(u["IMX-Signature"]=String(r)),null!=n&&(u["IMX-Timestamp"]=String(n)),u["Content-Type"]="application/json",D(c,{});let d=s&&s.headers?s.headers:{};return f.headers={...u,...d,...a.headers},f.data=U(i,f,e),{url:F(c),options:f}},getMetadataSchema:async(t,r={})=>{let n;B("getMetadataSchema","address",t);let i="/v1/collections/{address}/metadata-schema".replace("{address}",encodeURIComponent(String(t))),a=new URL(i,j);e&&(n=e.baseOptions);let s={method:"GET",...n,...r};D(a,{});let o=n&&n.headers?n.headers:{};return s.headers={...o,...r.headers},{url:F(a),options:s}},updateMetadataSchemaByName:async(t,r,n,i,a,s={})=>{let o;B("updateMetadataSchemaByName","address",t),B("updateMetadataSchemaByName","name",r),B("updateMetadataSchemaByName","iMXSignature",n),B("updateMetadataSchemaByName","iMXTimestamp",i),B("updateMetadataSchemaByName","metadataSchemaRequest",a);let c="/v1/collections/{address}/metadata-schema/{name}".replace("{address}",encodeURIComponent(String(t))).replace("{name}",encodeURIComponent(String(r))),f=new URL(c,j);e&&(o=e.baseOptions);let u={method:"PATCH",...o,...s},d={};null!=n&&(d["IMX-Signature"]=String(n)),null!=i&&(d["IMX-Timestamp"]=String(i)),d["Content-Type"]="application/json",D(f,{});let l=o&&o.headers?o.headers:{};return u.headers={...d,...l,...s.headers},u.data=U(a,u,e),{url:F(f),options:u}}}},eo=function(e){let t=es(e);return{async addMetadataSchemaToCollection(r,n,i,a,s){let o=await t.addMetadataSchemaToCollection(r,n,i,a,s);return q(o,C.default,P,e)},async getMetadataSchema(r,n){let i=await t.getMetadataSchema(r,n);return q(i,C.default,P,e)},async updateMetadataSchemaByName(r,n,i,a,s,o){let c=await t.updateMetadataSchemaByName(r,n,i,a,s,o);return q(c,C.default,P,e)}}},ec=class extends O{addMetadataSchemaToCollection(e,t){return eo(this.configuration).addMetadataSchemaToCollection(e.address,e.iMXSignature,e.iMXTimestamp,e.addMetadataSchemaToCollectionRequest,t).then(e=>e(this.axios,this.basePath))}getMetadataSchema(e,t){return eo(this.configuration).getMetadataSchema(e.address,t).then(e=>e(this.axios,this.basePath))}updateMetadataSchemaByName(e,t){return eo(this.configuration).updateMetadataSchemaByName(e.address,e.name,e.iMXSignature,e.iMXTimestamp,e.metadataSchemaRequest,t).then(e=>e(this.axios,this.basePath))}},ef=function(e){return{getAListOfMetadataRefreshes:async(t,r,n,i,a,s,o={})=>{let c;B("getAListOfMetadataRefreshes","xImxEthSignature",t),B("getAListOfMetadataRefreshes","xImxEthTimestamp",r),B("getAListOfMetadataRefreshes","xImxEthAddress",n);let f=new URL("/v1/metadata-refreshes",j);e&&(c=e.baseOptions);let u={method:"GET",...c,...o},d={},l={};void 0!==i&&(l.page_size=i),void 0!==a&&(l.cursor=a),void 0!==s&&(l.collection_address=s),null!=t&&(d["x-imx-eth-signature"]=String(t)),null!=r&&(d["x-imx-eth-timestamp"]=String(r)),null!=n&&(d["x-imx-eth-address"]=String(n)),D(f,l);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...o.headers},{url:F(f),options:u}},getMetadataRefreshErrors:async(t,r,n,i,a,s,o={})=>{let c;B("getMetadataRefreshErrors","refreshId",t),B("getMetadataRefreshErrors","xImxEthSignature",r),B("getMetadataRefreshErrors","xImxEthTimestamp",n),B("getMetadataRefreshErrors","xImxEthAddress",i);let f="/v1/metadata-refreshes/{refresh_id}/errors".replace("{refresh_id}",encodeURIComponent(String(t))),u=new URL(f,j);e&&(c=e.baseOptions);let d={method:"GET",...c,...o},l={},h={};void 0!==a&&(h.page_size=a),void 0!==s&&(h.cursor=s),null!=r&&(l["x-imx-eth-signature"]=String(r)),null!=n&&(l["x-imx-eth-timestamp"]=String(n)),null!=i&&(l["x-imx-eth-address"]=String(i)),D(u,h);let p=c&&c.headers?c.headers:{};return d.headers={...l,...p,...o.headers},{url:F(u),options:d}},getMetadataRefreshResults:async(t,r,n,i,a={})=>{let s;B("getMetadataRefreshResults","refreshId",t),B("getMetadataRefreshResults","xImxEthSignature",r),B("getMetadataRefreshResults","xImxEthTimestamp",n),B("getMetadataRefreshResults","xImxEthAddress",i);let o="/v1/metadata-refreshes/{refresh_id}".replace("{refresh_id}",encodeURIComponent(String(t))),c=new URL(o,j);e&&(s=e.baseOptions);let f={method:"GET",...s,...a},u={};null!=r&&(u["x-imx-eth-signature"]=String(r)),null!=n&&(u["x-imx-eth-timestamp"]=String(n)),null!=i&&(u["x-imx-eth-address"]=String(i)),D(c,{});let d=s&&s.headers?s.headers:{};return f.headers={...u,...d,...a.headers},{url:F(c),options:f}},requestAMetadataRefresh:async(t,r,n,i,a={})=>{let s;B("requestAMetadataRefresh","xImxEthSignature",t),B("requestAMetadataRefresh","xImxEthTimestamp",r),B("requestAMetadataRefresh","xImxEthAddress",n),B("requestAMetadataRefresh","createMetadataRefreshRequest",i);let o=new URL("/v1/metadata-refreshes",j);e&&(s=e.baseOptions);let c={method:"POST",...s,...a},f={};null!=t&&(f["x-imx-eth-signature"]=String(t)),null!=r&&(f["x-imx-eth-timestamp"]=String(r)),null!=n&&(f["x-imx-eth-address"]=String(n)),f["Content-Type"]="application/json",D(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...f,...u,...a.headers},c.data=U(i,c,e),{url:F(o),options:c}}}},eu=function(e){let t=ef(e);return{async getAListOfMetadataRefreshes(r,n,i,a,s,o,c){let f=await t.getAListOfMetadataRefreshes(r,n,i,a,s,o,c);return q(f,C.default,P,e)},async getMetadataRefreshErrors(r,n,i,a,s,o,c){let f=await t.getMetadataRefreshErrors(r,n,i,a,s,o,c);return q(f,C.default,P,e)},async getMetadataRefreshResults(r,n,i,a,s){let o=await t.getMetadataRefreshResults(r,n,i,a,s);return q(o,C.default,P,e)},async requestAMetadataRefresh(r,n,i,a,s){let o=await t.requestAMetadataRefresh(r,n,i,a,s);return q(o,C.default,P,e)}}};class ed extends O{getAListOfMetadataRefreshes(e,t){return eu(this.configuration).getAListOfMetadataRefreshes(e.xImxEthSignature,e.xImxEthTimestamp,e.xImxEthAddress,e.pageSize,e.cursor,e.collectionAddress,t).then(e=>e(this.axios,this.basePath))}getMetadataRefreshErrors(e,t){return eu(this.configuration).getMetadataRefreshErrors(e.refreshId,e.xImxEthSignature,e.xImxEthTimestamp,e.xImxEthAddress,e.pageSize,e.cursor,t).then(e=>e(this.axios,this.basePath))}getMetadataRefreshResults(e,t){return eu(this.configuration).getMetadataRefreshResults(e.refreshId,e.xImxEthSignature,e.xImxEthTimestamp,e.xImxEthAddress,t).then(e=>e(this.axios,this.basePath))}requestAMetadataRefresh(e,t){return eu(this.configuration).requestAMetadataRefresh(e.xImxEthSignature,e.xImxEthTimestamp,e.xImxEthAddress,e.createMetadataRefreshRequest,t).then(e=>e(this.axios,this.basePath))}}let el=function(e){return{getMint:async(t,r={})=>{let n;B("getMint","id",t);let i="/v1/mints/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(i,j);e&&(n=e.baseOptions);let s={method:"GET",...n,...r};D(a,{});let o=n&&n.headers?n.headers:{};return s.headers={...o,...r.headers},{url:F(a),options:s}},getMintableTokenDetailsByClientTokenId:async(t,r,n={})=>{let i;B("getMintableTokenDetailsByClientTokenId","tokenAddress",t),B("getMintableTokenDetailsByClientTokenId","tokenId",r);let a="/v1/mintable-token/{token_address}/{token_id}".replace("{token_address}",encodeURIComponent(String(t))).replace("{token_id}",encodeURIComponent(String(r))),s=new URL(a,j);e&&(i=e.baseOptions);let o={method:"GET",...i,...n};D(s,{});let c=i&&i.headers?i.headers:{};return o.headers={...c,...n.headers},{url:F(s),options:o}},listMints:async(t,r,n,i,a,s,o,c,f,u,d,l,h,p,m,b={})=>{let g;let y=new URL("/v1/mints",j);e&&(g=e.baseOptions);let v={method:"GET",...g,...b},w={};void 0!==t&&(w.page_size=t),void 0!==r&&(w.cursor=r),void 0!==n&&(w.order_by=n),void 0!==i&&(w.direction=i),void 0!==a&&(w.user=a),void 0!==s&&(w.status=s),void 0!==o&&(w.min_timestamp=o),void 0!==c&&(w.max_timestamp=c),void 0!==f&&(w.token_type=f),void 0!==u&&(w.token_id=u),void 0!==d&&(w.token_name=d),void 0!==l&&(w.token_address=l),void 0!==h&&(w.min_quantity=h),void 0!==p&&(w.max_quantity=p),void 0!==m&&(w.metadata=m),D(y,w);let _=g&&g.headers?g.headers:{};return v.headers={..._,...b.headers},{url:F(y),options:v}},mintTokens:async(t,r={})=>{let n;B("mintTokens","mintTokensRequestV2",t);let i=new URL("/v2/mints",j);e&&(n=e.baseOptions);let a={method:"POST",...n,...r},s={};s["Content-Type"]="application/json",D(i,{});let o=n&&n.headers?n.headers:{};return a.headers={...s,...o,...r.headers},a.data=U(t,a,e),{url:F(i),options:a}}}},eh=function(e){let t=el(e);return{async getMint(r,n){let i=await t.getMint(r,n);return q(i,C.default,P,e)},async getMintableTokenDetailsByClientTokenId(r,n,i){let a=await t.getMintableTokenDetailsByClientTokenId(r,n,i);return q(a,C.default,P,e)},async listMints(r,n,i,a,s,o,c,f,u,d,l,h,p,m,b,g){let y=await t.listMints(r,n,i,a,s,o,c,f,u,d,l,h,p,m,b,g);return q(y,C.default,P,e)},async mintTokens(r,n){let i=await t.mintTokens(r,n);return q(i,C.default,P,e)}}};class ep extends O{getMint(e,t){return eh(this.configuration).getMint(e.id,t).then(e=>e(this.axios,this.basePath))}getMintableTokenDetailsByClientTokenId(e,t){return eh(this.configuration).getMintableTokenDetailsByClientTokenId(e.tokenAddress,e.tokenId,t).then(e=>e(this.axios,this.basePath))}listMints(e={},t){return eh(this.configuration).listMints(e.pageSize,e.cursor,e.orderBy,e.direction,e.user,e.status,e.minTimestamp,e.maxTimestamp,e.tokenType,e.tokenId,e.tokenName,e.tokenAddress,e.minQuantity,e.maxQuantity,e.metadata,t).then(e=>e(this.axios,this.basePath))}mintTokens(e,t){return eh(this.configuration).mintTokens(e.mintTokensRequestV2,t).then(e=>e(this.axios,this.basePath))}}let em=function(e){return{createNftPrimary:async(t,r={})=>{let n;B("createNftPrimary","createAPIRequest",t);let i=new URL("/v2/nft/primary",j);e&&(n=e.baseOptions);let a={method:"POST",...n,...r},s={};s["Content-Type"]="application/json",D(i,{});let o=n&&n.headers?n.headers:{};return a.headers={...s,...o,...r.headers},a.data=U(t,a,e),{url:F(i),options:a}},getCurrenciesNFTCheckoutPrimary:async(t,r,n={})=>{let i;let a=new URL("/v2/nft/primary/currencies",j);e&&(i=e.baseOptions);let s={method:"GET",...i,...n},o={};void 0!==t&&(o.provider=t),void 0!==r&&(o.include_limits=r),D(a,o);let c=i&&i.headers?i.headers:{};return s.headers={...c,...n.headers},{url:F(a),options:s}},getNftPrimaryTransaction:async(t,r={})=>{let n;B("getNftPrimaryTransaction","transactionId",t);let i="/v2/nft/primary/{transaction_id}".replace("{transaction_id}",encodeURIComponent(String(t))),a=new URL(i,j);e&&(n=e.baseOptions);let s={method:"GET",...n,...r};D(a,{});let o=n&&n.headers?n.headers:{};return s.headers={...o,...r.headers},{url:F(a),options:s}},getNftPrimaryTransactions:async(t,r,n,i,a,s,o,c,f,u,d,l={})=>{let h;let p=new URL("/v2/nft/primary",j);e&&(h=e.baseOptions);let m={method:"GET",...h,...l},b={};void 0!==t&&(b.page_size=t),void 0!==r&&(b.cursor=r),void 0!==n&&(b.order_by=n),void 0!==i&&(b.direction=i),void 0!==a&&(b.transaction_id=a),void 0!==s&&(b.contract_address=s),void 0!==o&&(b.seller_wallet_address=o),void 0!==c&&(b.user_wallet_address=c),void 0!==f&&(b.status=f),void 0!==u&&(b.provider=u),void 0!==d&&(b.mint_id=d),D(p,b);let g=h&&h.headers?h.headers:{};return m.headers={...g,...l.headers},{url:F(p),options:m}},registerNftPrimarySalesContract:async(t,r={})=>{let n;B("registerNftPrimarySalesContract","createAPIRequest",t);let i=new URL("/v2/nft/primary/register",j);e&&(n=e.baseOptions);let a={method:"POST",...n,...r},s={};s["Content-Type"]="application/json",D(i,{});let o=n&&n.headers?n.headers:{};return a.headers={...s,...o,...r.headers},a.data=U(t,a,e),{url:F(i),options:a}}}},eb=function(e){let t=em(e);return{async createNftPrimary(r,n){let i=await t.createNftPrimary(r,n);return q(i,C.default,P,e)},async getCurrenciesNFTCheckoutPrimary(r,n,i){let a=await t.getCurrenciesNFTCheckoutPrimary(r,n,i);return q(a,C.default,P,e)},async getNftPrimaryTransaction(r,n){let i=await t.getNftPrimaryTransaction(r,n);return q(i,C.default,P,e)},async getNftPrimaryTransactions(r,n,i,a,s,o,c,f,u,d,l,h){let p=await t.getNftPrimaryTransactions(r,n,i,a,s,o,c,f,u,d,l,h);return q(p,C.default,P,e)},async registerNftPrimarySalesContract(r,n){let i=await t.registerNftPrimarySalesContract(r,n);return q(i,C.default,P,e)}}};class eg extends O{createNftPrimary(e,t){return eb(this.configuration).createNftPrimary(e.createAPIRequest,t).then(e=>e(this.axios,this.basePath))}getCurrenciesNFTCheckoutPrimary(e={},t){return eb(this.configuration).getCurrenciesNFTCheckoutPrimary(e.provider,e.includeLimits,t).then(e=>e(this.axios,this.basePath))}getNftPrimaryTransaction(e,t){return eb(this.configuration).getNftPrimaryTransaction(e.transactionId,t).then(e=>e(this.axios,this.basePath))}getNftPrimaryTransactions(e={},t){return eb(this.configuration).getNftPrimaryTransactions(e.pageSize,e.cursor,e.orderBy,e.direction,e.transactionId,e.contractAddress,e.sellerWalletAddress,e.userWalletAddress,e.status,e.provider,e.mintId,t).then(e=>e(this.axios,this.basePath))}registerNftPrimarySalesContract(e,t){return eb(this.configuration).registerNftPrimarySalesContract(e.createAPIRequest,t).then(e=>e(this.axios,this.basePath))}}let ey=function(e){return{cancelOrderV3:async(t,r,n,i,a,s={})=>{let o;B("cancelOrderV3","id",t),B("cancelOrderV3","cancelOrderRequest",r);let c="/v3/orders/{id}".replace("{id}",encodeURIComponent(String(t))),f=new URL(c,j);e&&(o=e.baseOptions);let u={method:"DELETE",...o,...s},d={};null!=n&&(d["x-imx-eth-address"]=String(n)),null!=i&&(d["x-imx-eth-signature"]=String(i)),null!=a&&(d.Authorization=String(a)),d["Content-Type"]="application/json",D(f,{});let l=o&&o.headers?o.headers:{};return u.headers={...d,...l,...s.headers},u.data=U(r,u,e),{url:F(f),options:u}},createOrderV3:async(t,r,n,i,a={})=>{let s;B("createOrderV3","createOrderRequest",t);let o=new URL("/v3/orders",j);e&&(s=e.baseOptions);let c={method:"POST",...s,...a},f={};null!=r&&(f["x-imx-eth-address"]=String(r)),null!=n&&(f["x-imx-eth-signature"]=String(n)),null!=i&&(f.Authorization=String(i)),f["Content-Type"]="application/json",D(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...f,...u,...a.headers},c.data=U(t,c,e),{url:F(o),options:c}},getOrderV3:async(t,r,n,i,a={})=>{let s;B("getOrderV3","id",t);let o="/v3/orders/{id}".replace("{id}",encodeURIComponent(String(t))),c=new URL(o,j);e&&(s=e.baseOptions);let f={method:"GET",...s,...a},u={};void 0!==r&&(u.include_fees=r),void 0!==n&&(u.auxiliary_fee_percentages=n),void 0!==i&&(u.auxiliary_fee_recipients=i),D(c,u);let d=s&&s.headers?s.headers:{};return f.headers={...d,...a.headers},{url:F(c),options:f}},getSignableCancelOrderV3:async(t,r={})=>{let n;B("getSignableCancelOrderV3","getSignableCancelOrderRequest",t);let i=new URL("/v3/signable-cancel-order-details",j);e&&(n=e.baseOptions);let a={method:"POST",...n,...r},s={};s["Content-Type"]="application/json",D(i,{});let o=n&&n.headers?n.headers:{};return a.headers={...s,...o,...r.headers},a.data=U(t,a,e),{url:F(i),options:a}},getSignableOrder:async(t,r={})=>{let n;B("getSignableOrder","getSignableOrderRequestV3",t);let i=new URL("/v3/signable-order-details",j);e&&(n=e.baseOptions);let a={method:"POST",...n,...r},s={};s["Content-Type"]="application/json",D(i,{});let o=n&&n.headers?n.headers:{};return a.headers={...s,...o,...r.headers},a.data=U(t,a,e),{url:F(i),options:a}},listOrdersV3:async(t,r,n,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y,v,w,_,E,A,M,S,x,T,k,R,I={})=>{let C;let P=new URL("/v3/orders",j);e&&(C=e.baseOptions);let O={method:"GET",...C,...I},N={};void 0!==t&&(N.page_size=t),void 0!==r&&(N.cursor=r),void 0!==n&&(N.order_by=n),void 0!==i&&(N.direction=i),void 0!==a&&(N.user=a),void 0!==s&&(N.status=s),void 0!==o&&(N.min_timestamp=o),void 0!==c&&(N.max_timestamp=c),void 0!==f&&(N.updated_min_timestamp=f),void 0!==u&&(N.updated_max_timestamp=u),void 0!==d&&(N.buy_token_type=d),void 0!==l&&(N.buy_token_id=l),void 0!==h&&(N.buy_asset_id=h),void 0!==p&&(N.buy_token_address=p),void 0!==m&&(N.buy_token_name=m),void 0!==b&&(N.buy_min_quantity=b),void 0!==g&&(N.buy_max_quantity=g),void 0!==y&&(N.buy_metadata=y),void 0!==v&&(N.sell_token_type=v),void 0!==w&&(N.sell_token_id=w),void 0!==_&&(N.sell_asset_id=_),void 0!==E&&(N.sell_token_address=E),void 0!==A&&(N.sell_token_name=A),void 0!==M&&(N.sell_min_quantity=M),void 0!==S&&(N.sell_max_quantity=S),void 0!==x&&(N.sell_metadata=x),void 0!==T&&(N.auxiliary_fee_percentages=T),void 0!==k&&(N.auxiliary_fee_recipients=k),void 0!==R&&(N.include_fees=R),D(P,N);let B=C&&C.headers?C.headers:{};return O.headers={...B,...I.headers},{url:F(P),options:O}}}},ev=function(e){let t=ey(e);return{async cancelOrderV3(r,n,i,a,s,o){let c=await t.cancelOrderV3(r,n,i,a,s,o);return q(c,C.default,P,e)},async createOrderV3(r,n,i,a,s){let o=await t.createOrderV3(r,n,i,a,s);return q(o,C.default,P,e)},async getOrderV3(r,n,i,a,s){let o=await t.getOrderV3(r,n,i,a,s);return q(o,C.default,P,e)},async getSignableCancelOrderV3(r,n){let i=await t.getSignableCancelOrderV3(r,n);return q(i,C.default,P,e)},async getSignableOrder(r,n){let i=await t.getSignableOrder(r,n);return q(i,C.default,P,e)},async listOrdersV3(r,n,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y,v,w,_,E,A,M,S,x,T,k,R,I,O){let N=await t.listOrdersV3(r,n,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y,v,w,_,E,A,M,S,x,T,k,R,I,O);return q(N,C.default,P,e)}}},ew=class extends O{cancelOrderV3(e,t){return ev(this.configuration).cancelOrderV3(e.id,e.cancelOrderRequest,e.xImxEthAddress,e.xImxEthSignature,e.authorization,t).then(e=>e(this.axios,this.basePath))}createOrderV3(e,t){return ev(this.configuration).createOrderV3(e.createOrderRequest,e.xImxEthAddress,e.xImxEthSignature,e.authorization,t).then(e=>e(this.axios,this.basePath))}getOrderV3(e,t){return ev(this.configuration).getOrderV3(e.id,e.includeFees,e.auxiliaryFeePercentages,e.auxiliaryFeeRecipients,t).then(e=>e(this.axios,this.basePath))}getSignableCancelOrderV3(e,t){return ev(this.configuration).getSignableCancelOrderV3(e.getSignableCancelOrderRequest,t).then(e=>e(this.axios,this.basePath))}getSignableOrder(e,t){return ev(this.configuration).getSignableOrder(e.getSignableOrderRequestV3,t).then(e=>e(this.axios,this.basePath))}listOrdersV3(e={},t){return ev(this.configuration).listOrdersV3(e.pageSize,e.cursor,e.orderBy,e.direction,e.user,e.status,e.minTimestamp,e.maxTimestamp,e.updatedMinTimestamp,e.updatedMaxTimestamp,e.buyTokenType,e.buyTokenId,e.buyAssetId,e.buyTokenAddress,e.buyTokenName,e.buyMinQuantity,e.buyMaxQuantity,e.buyMetadata,e.sellTokenType,e.sellTokenId,e.sellAssetId,e.sellTokenAddress,e.sellTokenName,e.sellMinQuantity,e.sellMaxQuantity,e.sellMetadata,e.auxiliaryFeePercentages,e.auxiliaryFeeRecipients,e.includeFees,t).then(e=>e(this.axios,this.basePath))}},e_=function(e){return{acceptPrimarySale:async(t,r={})=>{let n;B("acceptPrimarySale","id",t);let i="/v1/primary_sales/{id}/accept".replace("{id}",encodeURIComponent(String(t))),a=new URL(i,j);e&&(n=e.baseOptions);let s={method:"POST",...n,...r},o={};await L(o,"x-imx-eth-address",e),await L(o,"x-imx-eth-signature",e),D(a,{});let c=n&&n.headers?n.headers:{};return s.headers={...o,...c,...r.headers},{url:F(a),options:s}},createPrimarySale:async(t,r={})=>{let n;let i=new URL("/v1/primary_sales",j);e&&(n=e.baseOptions);let a={method:"POST",...n,...r},s={};await L(s,"x-imx-eth-address",e),await L(s,"x-imx-eth-signature",e),s["Content-Type"]="application/json",D(i,{});let o=n&&n.headers?n.headers:{};return a.headers={...s,...o,...r.headers},a.data=U(t,a,e),{url:F(i),options:a}},getPrimarySale:async(t,r={})=>{let n;B("getPrimarySale","id",t);let i="/v1/primary_sales/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(i,j);e&&(n=e.baseOptions);let s={method:"GET",...n,...r};D(a,{});let o=n&&n.headers?n.headers:{};return s.headers={...o,...r.headers},{url:F(a),options:s}},rejectPrimarySale:async(t,r={})=>{let n;B("rejectPrimarySale","id",t);let i="/v1/primary_sales/{id}/reject".replace("{id}",encodeURIComponent(String(t))),a=new URL(i,j);e&&(n=e.baseOptions);let s={method:"POST",...n,...r},o={};await L(o,"x-imx-eth-address",e),await L(o,"x-imx-eth-signature",e),D(a,{});let c=n&&n.headers?n.headers:{};return s.headers={...o,...c,...r.headers},{url:F(a),options:s}},signableAcceptPrimarySale:async(t,r={})=>{let n;B("signableAcceptPrimarySale","id",t);let i="/v1/primary_sales/{id}/signable-accept-details".replace("{id}",encodeURIComponent(String(t))),a=new URL(i,j);e&&(n=e.baseOptions);let s={method:"POST",...n,...r};D(a,{});let o=n&&n.headers?n.headers:{};return s.headers={...o,...r.headers},{url:F(a),options:s}},signableCreatePrimarySale:async(t,r={})=>{let n;let i=new URL("/v1/primary_sales/signable-primary-sale-details",j);e&&(n=e.baseOptions);let a={method:"POST",...n,...r},s={};s["Content-Type"]="application/json",D(i,{});let o=n&&n.headers?n.headers:{};return a.headers={...s,...o,...r.headers},a.data=U(t,a,e),{url:F(i),options:a}},signableRejectPrimarySale:async(t,r={})=>{let n;B("signableRejectPrimarySale","id",t);let i="/v1/primary_sales/{id}/signable-reject-details".replace("{id}",encodeURIComponent(String(t))),a=new URL(i,j);e&&(n=e.baseOptions);let s={method:"POST",...n,...r};D(a,{});let o=n&&n.headers?n.headers:{};return s.headers={...o,...r.headers},{url:F(a),options:s}}}},eE=function(e){let t=e_(e);return{async acceptPrimarySale(r,n){let i=await t.acceptPrimarySale(r,n);return q(i,C.default,P,e)},async createPrimarySale(r,n){let i=await t.createPrimarySale(r,n);return q(i,C.default,P,e)},async getPrimarySale(r,n){let i=await t.getPrimarySale(r,n);return q(i,C.default,P,e)},async rejectPrimarySale(r,n){let i=await t.rejectPrimarySale(r,n);return q(i,C.default,P,e)},async signableAcceptPrimarySale(r,n){let i=await t.signableAcceptPrimarySale(r,n);return q(i,C.default,P,e)},async signableCreatePrimarySale(r,n){let i=await t.signableCreatePrimarySale(r,n);return q(i,C.default,P,e)},async signableRejectPrimarySale(r,n){let i=await t.signableRejectPrimarySale(r,n);return q(i,C.default,P,e)}}};class eA extends O{acceptPrimarySale(e,t){return eE(this.configuration).acceptPrimarySale(e.id,t).then(e=>e(this.axios,this.basePath))}createPrimarySale(e={},t){return eE(this.configuration).createPrimarySale(e.body,t).then(e=>e(this.axios,this.basePath))}getPrimarySale(e,t){return eE(this.configuration).getPrimarySale(e.id,t).then(e=>e(this.axios,this.basePath))}rejectPrimarySale(e,t){return eE(this.configuration).rejectPrimarySale(e.id,t).then(e=>e(this.axios,this.basePath))}signableAcceptPrimarySale(e,t){return eE(this.configuration).signableAcceptPrimarySale(e.id,t).then(e=>e(this.axios,this.basePath))}signableCreatePrimarySale(e={},t){return eE(this.configuration).signableCreatePrimarySale(e.body,t).then(e=>e(this.axios,this.basePath))}signableRejectPrimarySale(e,t){return eE(this.configuration).signableRejectPrimarySale(e.id,t).then(e=>e(this.axios,this.basePath))}}let eM=function(e){return{getProject:async(t,r,n,i={})=>{let a;B("getProject","id",t),B("getProject","iMXSignature",r),B("getProject","iMXTimestamp",n);let s="/v1/projects/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(s,j);e&&(a=e.baseOptions);let c={method:"GET",...a,...i},f={};null!=r&&(f["IMX-Signature"]=String(r)),null!=n&&(f["IMX-Timestamp"]=String(n)),D(o,{});let u=a&&a.headers?a.headers:{};return c.headers={...f,...u,...i.headers},{url:F(o),options:c}}}},eS=function(e){let t=eM(e);return{async getProject(r,n,i,a){let s=await t.getProject(r,n,i,a);return q(s,C.default,P,e)}}};class ex extends O{getProject(e,t){return eS(this.configuration).getProject(e.id,e.iMXSignature,e.iMXTimestamp,t).then(e=>e(this.axios,this.basePath))}}let eT=function(e){return{getToken:async(t,r={})=>{let n;B("getToken","address",t);let i="/v1/tokens/{address}".replace("{address}",encodeURIComponent(String(t))),a=new URL(i,j);e&&(n=e.baseOptions);let s={method:"GET",...n,...r};D(a,{});let o=n&&n.headers?n.headers:{};return s.headers={...o,...r.headers},{url:F(a),options:s}},listTokens:async(t,r,n,i,a,s,o={})=>{let c;let f=new URL("/v1/tokens",j);e&&(c=e.baseOptions);let u={method:"GET",...c,...o},d={};void 0!==t&&(d.page_size=t),void 0!==r&&(d.cursor=r),void 0!==n&&(d.order_by=n),void 0!==i&&(d.direction=i),void 0!==a&&(d.address=a),void 0!==s&&(d.symbols=s),D(f,d);let l=c&&c.headers?c.headers:{};return u.headers={...l,...o.headers},{url:F(f),options:u}}}},ek=function(e){let t=eT(e);return{async getToken(r,n){let i=await t.getToken(r,n);return q(i,C.default,P,e)},async listTokens(r,n,i,a,s,o,c){let f=await t.listTokens(r,n,i,a,s,o,c);return q(f,C.default,P,e)}}},eR=class extends O{getToken(e,t){return ek(this.configuration).getToken(e.address,t).then(e=>e(this.axios,this.basePath))}listTokens(e={},t){return ek(this.configuration).listTokens(e.pageSize,e.cursor,e.orderBy,e.direction,e.address,e.symbols,t).then(e=>e(this.axios,this.basePath))}},eI=function(e){return{createTradeV3:async(t,r,n,i,a={})=>{let s;B("createTradeV3","createTradeRequest",t);let o=new URL("/v3/trades",j);e&&(s=e.baseOptions);let c={method:"POST",...s,...a},f={};null!=r&&(f["x-imx-eth-address"]=String(r)),null!=n&&(f["x-imx-eth-signature"]=String(n)),null!=i&&(f.Authorization=String(i)),f["Content-Type"]="application/json",D(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...f,...u,...a.headers},c.data=U(t,c,e),{url:F(o),options:c}},getSignableTrade:async(t,r={})=>{let n;B("getSignableTrade","getSignableTradeRequest",t);let i=new URL("/v3/signable-trade-details",j);e&&(n=e.baseOptions);let a={method:"POST",...n,...r},s={};s["Content-Type"]="application/json",D(i,{});let o=n&&n.headers?n.headers:{};return a.headers={...s,...o,...r.headers},a.data=U(t,a,e),{url:F(i),options:a}},getTradeV3:async(t,r={})=>{let n;B("getTradeV3","id",t);let i="/v3/trades/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(i,j);e&&(n=e.baseOptions);let s={method:"GET",...n,...r};D(a,{});let o=n&&n.headers?n.headers:{};return s.headers={...o,...r.headers},{url:F(a),options:s}},listTradesV3:async(t,r,n,i,a,s,o,c,f,u,d,l={})=>{let h;let p=new URL("/v3/trades",j);e&&(h=e.baseOptions);let m={method:"GET",...h,...l},b={};void 0!==t&&(b.party_a_token_type=t),void 0!==r&&(b.party_a_token_address=r),void 0!==n&&(b.party_b_token_type=n),void 0!==i&&(b.party_b_token_address=i),void 0!==a&&(b.party_b_token_id=a),void 0!==s&&(b.page_size=s),void 0!==o&&(b.cursor=o),void 0!==c&&(b.order_by=c),void 0!==f&&(b.direction=f),void 0!==u&&(b.min_timestamp=u),void 0!==d&&(b.max_timestamp=d),D(p,b);let g=h&&h.headers?h.headers:{};return m.headers={...g,...l.headers},{url:F(p),options:m}}}},eC=function(e){let t=eI(e);return{async createTradeV3(r,n,i,a,s){let o=await t.createTradeV3(r,n,i,a,s);return q(o,C.default,P,e)},async getSignableTrade(r,n){let i=await t.getSignableTrade(r,n);return q(i,C.default,P,e)},async getTradeV3(r,n){let i=await t.getTradeV3(r,n);return q(i,C.default,P,e)},async listTradesV3(r,n,i,a,s,o,c,f,u,d,l,h){let p=await t.listTradesV3(r,n,i,a,s,o,c,f,u,d,l,h);return q(p,C.default,P,e)}}};class eP extends O{createTradeV3(e,t){return eC(this.configuration).createTradeV3(e.createTradeRequest,e.xImxEthAddress,e.xImxEthSignature,e.authorization,t).then(e=>e(this.axios,this.basePath))}getSignableTrade(e,t){return eC(this.configuration).getSignableTrade(e.getSignableTradeRequest,t).then(e=>e(this.axios,this.basePath))}getTradeV3(e,t){return eC(this.configuration).getTradeV3(e.id,t).then(e=>e(this.axios,this.basePath))}listTradesV3(e={},t){return eC(this.configuration).listTradesV3(e.partyATokenType,e.partyATokenAddress,e.partyBTokenType,e.partyBTokenAddress,e.partyBTokenId,e.pageSize,e.cursor,e.orderBy,e.direction,e.minTimestamp,e.maxTimestamp,t).then(e=>e(this.axios,this.basePath))}}let eO=function(e){return{createTransfer:async(t,r,n,i,a={})=>{let s;B("createTransfer","createTransferRequestV2",t);let o=new URL("/v2/transfers",j);e&&(s=e.baseOptions);let c={method:"POST",...s,...a},f={};null!=r&&(f["x-imx-eth-address"]=String(r)),null!=n&&(f["x-imx-eth-signature"]=String(n)),null!=i&&(f.Authorization=String(i)),f["Content-Type"]="application/json",D(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...f,...u,...a.headers},c.data=U(t,c,e),{url:F(o),options:c}},createTransferV1:async(t,r,n,i,a={})=>{let s;B("createTransferV1","createTransferRequest",t);let o=new URL("/v1/transfers",j);e&&(s=e.baseOptions);let c={method:"POST",...s,...a},f={};null!=r&&(f["x-imx-eth-address"]=String(r)),null!=n&&(f["x-imx-eth-signature"]=String(n)),null!=i&&(f.Authorization=String(i)),f["Content-Type"]="application/json",D(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...f,...u,...a.headers},c.data=U(t,c,e),{url:F(o),options:c}},getSignableTransfer:async(t,r={})=>{let n;B("getSignableTransfer","getSignableTransferRequestV2",t);let i=new URL("/v2/signable-transfer-details",j);e&&(n=e.baseOptions);let a={method:"POST",...n,...r},s={};s["Content-Type"]="application/json",D(i,{});let o=n&&n.headers?n.headers:{};return a.headers={...s,...o,...r.headers},a.data=U(t,a,e),{url:F(i),options:a}},getSignableTransferV1:async(t,r={})=>{let n;B("getSignableTransferV1","getSignableTransferRequest",t);let i=new URL("/v1/signable-transfer-details",j);e&&(n=e.baseOptions);let a={method:"POST",...n,...r},s={};s["Content-Type"]="application/json",D(i,{});let o=n&&n.headers?n.headers:{};return a.headers={...s,...o,...r.headers},a.data=U(t,a,e),{url:F(i),options:a}},getTransfer:async(t,r={})=>{let n;B("getTransfer","id",t);let i="/v1/transfers/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(i,j);e&&(n=e.baseOptions);let s={method:"GET",...n,...r};D(a,{});let o=n&&n.headers?n.headers:{};return s.headers={...o,...r.headers},{url:F(a),options:s}},listTransfers:async(t,r,n,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y={})=>{let v;let w=new URL("/v1/transfers",j);e&&(v=e.baseOptions);let _={method:"GET",...v,...y},E={};void 0!==t&&(E.page_size=t),void 0!==r&&(E.cursor=r),void 0!==n&&(E.order_by=n),void 0!==i&&(E.direction=i),void 0!==a&&(E.user=a),void 0!==s&&(E.receiver=s),void 0!==o&&(E.status=o),void 0!==c&&(E.min_timestamp=c),void 0!==f&&(E.max_timestamp=f),void 0!==u&&(E.token_type=u),void 0!==d&&(E.token_id=d),void 0!==l&&(E.asset_id=l),void 0!==h&&(E.token_address=h),void 0!==p&&(E.token_name=p),void 0!==m&&(E.min_quantity=m),void 0!==b&&(E.max_quantity=b),void 0!==g&&(E.metadata=g),D(w,E);let A=v&&v.headers?v.headers:{};return _.headers={...A,...y.headers},{url:F(w),options:_}}}},eN=function(e){let t=eO(e);return{async createTransfer(r,n,i,a,s){let o=await t.createTransfer(r,n,i,a,s);return q(o,C.default,P,e)},async createTransferV1(r,n,i,a,s){let o=await t.createTransferV1(r,n,i,a,s);return q(o,C.default,P,e)},async getSignableTransfer(r,n){let i=await t.getSignableTransfer(r,n);return q(i,C.default,P,e)},async getSignableTransferV1(r,n){let i=await t.getSignableTransferV1(r,n);return q(i,C.default,P,e)},async getTransfer(r,n){let i=await t.getTransfer(r,n);return q(i,C.default,P,e)},async listTransfers(r,n,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y,v){let w=await t.listTransfers(r,n,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y,v);return q(w,C.default,P,e)}}};class ej extends O{createTransfer(e,t){return eN(this.configuration).createTransfer(e.createTransferRequestV2,e.xImxEthAddress,e.xImxEthSignature,e.authorization,t).then(e=>e(this.axios,this.basePath))}createTransferV1(e,t){return eN(this.configuration).createTransferV1(e.createTransferRequest,e.xImxEthAddress,e.xImxEthSignature,e.authorization,t).then(e=>e(this.axios,this.basePath))}getSignableTransfer(e,t){return eN(this.configuration).getSignableTransfer(e.getSignableTransferRequestV2,t).then(e=>e(this.axios,this.basePath))}getSignableTransferV1(e,t){return eN(this.configuration).getSignableTransferV1(e.getSignableTransferRequest,t).then(e=>e(this.axios,this.basePath))}getTransfer(e,t){return eN(this.configuration).getTransfer(e.id,t).then(e=>e(this.axios,this.basePath))}listTransfers(e={},t){return eN(this.configuration).listTransfers(e.pageSize,e.cursor,e.orderBy,e.direction,e.user,e.receiver,e.status,e.minTimestamp,e.maxTimestamp,e.tokenType,e.tokenId,e.assetId,e.tokenAddress,e.tokenName,e.minQuantity,e.maxQuantity,e.metadata,t).then(e=>e(this.axios,this.basePath))}}let eB=function(e){return{getSignableRegistration:async(t,r={})=>{let n;B("getSignableRegistration","getSignableRegistrationRequest",t);let i=new URL("/v1/signable-registration",j);e&&(n=e.baseOptions);let a={method:"POST",...n,...r},s={};s["Content-Type"]="application/json",D(i,{});let o=n&&n.headers?n.headers:{};return a.headers={...s,...o,...r.headers},a.data=U(t,a,e),{url:F(i),options:a}},getSignableRegistrationOffchain:async(t,r={})=>{let n;B("getSignableRegistrationOffchain","getSignableRegistrationRequest",t);let i=new URL("/v1/signable-registration-offchain",j);e&&(n=e.baseOptions);let a={method:"POST",...n,...r},s={};s["Content-Type"]="application/json",D(i,{});let o=n&&n.headers?n.headers:{};return a.headers={...s,...o,...r.headers},a.data=U(t,a,e),{url:F(i),options:a}},getUsers:async(t,r={})=>{let n;B("getUsers","user",t);let i="/v1/users/{user}".replace("{user}",encodeURIComponent(String(t))),a=new URL(i,j);e&&(n=e.baseOptions);let s={method:"GET",...n,...r};D(a,{});let o=n&&n.headers?n.headers:{};return s.headers={...o,...r.headers},{url:F(a),options:s}},registerPassportUser:async(t,r,n={})=>{let i;B("registerPassportUser","authorization",t),B("registerPassportUser","registerPassportUserRequest",r);let a=new URL("/v1/passport/users",j);e&&(i=e.baseOptions);let s={method:"POST",...i,...n},o={};null!=t&&(o.Authorization=String(t)),o["Content-Type"]="application/json",D(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...o,...c,...n.headers},s.data=U(r,s,e),{url:F(a),options:s}},registerPassportUserV2:async(t,r,n={})=>{let i;B("registerPassportUserV2","authorization",t),B("registerPassportUserV2","registerPassportUserRequest",r);let a=new URL("/v2/passport/users",j);e&&(i=e.baseOptions);let s={method:"POST",...i,...n},o={};null!=t&&(o.Authorization=String(t)),o["Content-Type"]="application/json",D(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...o,...c,...n.headers},s.data=U(r,s,e),{url:F(a),options:s}},registerUser:async(t,r={})=>{let n;B("registerUser","registerUserRequest",t);let i=new URL("/v1/users",j);e&&(n=e.baseOptions);let a={method:"POST",...n,...r},s={};s["Content-Type"]="application/json",D(i,{});let o=n&&n.headers?n.headers:{};return a.headers={...s,...o,...r.headers},a.data=U(t,a,e),{url:F(i),options:a}}}},eL=function(e){let t=eB(e);return{async getSignableRegistration(r,n){let i=await t.getSignableRegistration(r,n);return q(i,C.default,P,e)},async getSignableRegistrationOffchain(r,n){let i=await t.getSignableRegistrationOffchain(r,n);return q(i,C.default,P,e)},async getUsers(r,n){let i=await t.getUsers(r,n);return q(i,C.default,P,e)},async registerPassportUser(r,n,i){let a=await t.registerPassportUser(r,n,i);return q(a,C.default,P,e)},async registerPassportUserV2(r,n,i){let a=await t.registerPassportUserV2(r,n,i);return q(a,C.default,P,e)},async registerUser(r,n){let i=await t.registerUser(r,n);return q(i,C.default,P,e)}}};class eD extends O{getSignableRegistration(e,t){return eL(this.configuration).getSignableRegistration(e.getSignableRegistrationRequest,t).then(e=>e(this.axios,this.basePath))}getSignableRegistrationOffchain(e,t){return eL(this.configuration).getSignableRegistrationOffchain(e.getSignableRegistrationRequest,t).then(e=>e(this.axios,this.basePath))}getUsers(e,t){return eL(this.configuration).getUsers(e.user,t).then(e=>e(this.axios,this.basePath))}registerPassportUser(e,t){return eL(this.configuration).registerPassportUser(e.authorization,e.registerPassportUserRequest,t).then(e=>e(this.axios,this.basePath))}registerPassportUserV2(e,t){return eL(this.configuration).registerPassportUserV2(e.authorization,e.registerPassportUserRequest,t).then(e=>e(this.axios,this.basePath))}registerUser(e,t){return eL(this.configuration).registerUser(e.registerUserRequest,t).then(e=>e(this.axios,this.basePath))}}let eU=function(e){return{createWithdrawal:async(t,r,n,i={})=>{let a;B("createWithdrawal","xImxEthAddress",t),B("createWithdrawal","xImxEthSignature",r),B("createWithdrawal","createWithdrawalRequest",n);let s=new URL("/v1/withdrawals",j);e&&(a=e.baseOptions);let o={method:"POST",...a,...i},c={};null!=t&&(c["x-imx-eth-address"]=String(t)),null!=r&&(c["x-imx-eth-signature"]=String(r)),c["Content-Type"]="application/json",D(s,{});let f=a&&a.headers?a.headers:{};return o.headers={...c,...f,...i.headers},o.data=U(n,o,e),{url:F(s),options:o}},createWithdrawalV2:async(t,r,n,i={})=>{let a;B("createWithdrawalV2","xImxEthAddress",t),B("createWithdrawalV2","xImxEthSignature",r),B("createWithdrawalV2","createWithdrawalRequestV2",n);let s=new URL("/v2/withdrawals",j);e&&(a=e.baseOptions);let o={method:"POST",...a,...i},c={};null!=t&&(c["x-imx-eth-address"]=String(t)),null!=r&&(c["x-imx-eth-signature"]=String(r)),c["Content-Type"]="application/json",D(s,{});let f=a&&a.headers?a.headers:{};return o.headers={...c,...f,...i.headers},o.data=U(n,o,e),{url:F(s),options:o}},getSignableWithdrawal:async(t,r={})=>{let n;B("getSignableWithdrawal","getSignableWithdrawalRequest",t);let i=new URL("/v1/signable-withdrawal-details",j);e&&(n=e.baseOptions);let a={method:"POST",...n,...r},s={};s["Content-Type"]="application/json",D(i,{});let o=n&&n.headers?n.headers:{};return a.headers={...s,...o,...r.headers},a.data=U(t,a,e),{url:F(i),options:a}},getSignableWithdrawalV2:async(t,r={})=>{let n;B("getSignableWithdrawalV2","getSignableWithdrawalRequest",t);let i=new URL("/v2/signable-withdrawal-details",j);e&&(n=e.baseOptions);let a={method:"POST",...n,...r},s={};s["Content-Type"]="application/json",D(i,{});let o=n&&n.headers?n.headers:{};return a.headers={...s,...o,...r.headers},a.data=U(t,a,e),{url:F(i),options:a}},getWithdrawal:async(t,r={})=>{let n;B("getWithdrawal","id",t);let i="/v1/withdrawals/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(i,j);e&&(n=e.baseOptions);let s={method:"GET",...n,...r};D(a,{});let o=n&&n.headers?n.headers:{};return s.headers={...o,...r.headers},{url:F(a),options:s}},listWithdrawals:async(t,r,n,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y,v={})=>{let w;let _=new URL("/v1/withdrawals",j);e&&(w=e.baseOptions);let E={method:"GET",...w,...v},A={};void 0!==t&&(A.withdrawn_to_wallet=t),void 0!==r&&(A.rollup_status=r),void 0!==n&&(A.page_size=n),void 0!==i&&(A.cursor=i),void 0!==a&&(A.order_by=a),void 0!==s&&(A.direction=s),void 0!==o&&(A.user=o),void 0!==c&&(A.status=c),void 0!==f&&(A.min_timestamp=f),void 0!==u&&(A.max_timestamp=u),void 0!==d&&(A.token_type=d),void 0!==l&&(A.token_id=l),void 0!==h&&(A.asset_id=h),void 0!==p&&(A.token_address=p),void 0!==m&&(A.token_name=m),void 0!==b&&(A.min_quantity=b),void 0!==g&&(A.max_quantity=g),void 0!==y&&(A.metadata=y),D(_,A);let M=w&&w.headers?w.headers:{};return E.headers={...M,...v.headers},{url:F(_),options:E}}}},eF=function(e){let t=eU(e);return{async createWithdrawal(r,n,i,a){let s=await t.createWithdrawal(r,n,i,a);return q(s,C.default,P,e)},async createWithdrawalV2(r,n,i,a){let s=await t.createWithdrawalV2(r,n,i,a);return q(s,C.default,P,e)},async getSignableWithdrawal(r,n){let i=await t.getSignableWithdrawal(r,n);return q(i,C.default,P,e)},async getSignableWithdrawalV2(r,n){let i=await t.getSignableWithdrawalV2(r,n);return q(i,C.default,P,e)},async getWithdrawal(r,n){let i=await t.getWithdrawal(r,n);return q(i,C.default,P,e)},async listWithdrawals(r,n,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y,v,w){let _=await t.listWithdrawals(r,n,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y,v,w);return q(_,C.default,P,e)}}};class eq extends O{createWithdrawal(e,t){return eF(this.configuration).createWithdrawal(e.xImxEthAddress,e.xImxEthSignature,e.createWithdrawalRequest,t).then(e=>e(this.axios,this.basePath))}createWithdrawalV2(e,t){return eF(this.configuration).createWithdrawalV2(e.xImxEthAddress,e.xImxEthSignature,e.createWithdrawalRequestV2,t).then(e=>e(this.axios,this.basePath))}getSignableWithdrawal(e,t){return eF(this.configuration).getSignableWithdrawal(e.getSignableWithdrawalRequest,t).then(e=>e(this.axios,this.basePath))}getSignableWithdrawalV2(e,t){return eF(this.configuration).getSignableWithdrawalV2(e.getSignableWithdrawalRequest,t).then(e=>e(this.axios,this.basePath))}getWithdrawal(e,t){return eF(this.configuration).getWithdrawal(e.id,t).then(e=>e(this.axios,this.basePath))}listWithdrawals(e={},t){return eF(this.configuration).listWithdrawals(e.withdrawnToWallet,e.rollupStatus,e.pageSize,e.cursor,e.orderBy,e.direction,e.user,e.status,e.minTimestamp,e.maxTimestamp,e.tokenType,e.tokenId,e.assetId,e.tokenAddress,e.tokenName,e.minQuantity,e.maxQuantity,e.metadata,t).then(e=>e(this.axios,this.basePath))}}let ez=class{apiKey;username;password;accessToken;basePath;baseOptions;formDataCtor;constructor(e={}){this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=e.baseOptions,this.formDataCtor=e.formDataCtor}isJsonMime(e){let t=RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}};var eK=Object.freeze({__proto__:null,AcceptPrimarySaleBadRequestBodyAllOf1CodeEnum:{ValidationError:"VALIDATION_ERROR"},AcceptPrimarySaleForbiddenBodyAllOf1CodeEnum:{AuthenticationError:"AUTHENTICATION_ERROR"},AcceptPrimarySaleInternalServerErrorBodyAllOf1CodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},AcceptPrimarySaleNotFoundBodyAllOf1CodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},AcceptPrimarySaleNotImplementedBodyAllOf1CodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},AcceptPrimarySaleOKBodyResultFeesItemsTypeEnum:{Ecosystem:"ECOSYSTEM",Protocol:"PROTOCOL"},AcceptPrimarySaleOKBodyResultStatusEnum:{Pending:"PENDING",Active:"ACTIVE",Invalid:"INVALID",InProgress:"IN_PROGRESS",Accepted:"ACCEPTED",Failed:"FAILED",Rejected:"REJECTED",Expired:"EXPIRED"},AcceptPrimarySaleUnauthorizedBodyAllOf1CodeEnum:{UnauthorisedRequest:"UNAUTHORISED_REQUEST"},AcceptPrimarySaleUnprocessableEntityBodyAllOf1CodeEnum:{UnprocessableEntityError:"UNPROCESSABLE_ENTITY_ERROR"},AssetsApi:H,AssetsApiAxiosParamCreator:z,AssetsApiFactory:function(e,t,r){let n=K(e);return{getAsset:(e,i,a,s)=>n.getAsset(e,i,a,s).then(e=>e(r,t)),listAssets:(e,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y,v)=>n.listAssets(e,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y,v).then(e=>e(r,t))}},AssetsApiFp:K,BalancesApi:G,BalancesApiAxiosParamCreator:V,BalancesApiFactory:function(e,t,r){let n=W(e);return{getBalance:(e,i,a)=>n.getBalance(e,i,a).then(e=>e(r,t)),listBalances:(e,i,a,s,o,c)=>n.listBalances(e,i,a,s,o,c).then(e=>e(r,t))}},BalancesApiFp:W,CollectionsApi:$,CollectionsApiAxiosParamCreator:J,CollectionsApiFactory:function(e,t,r){let n=Z(e);return{createCollection:(e,i,a,s,o)=>n.createCollection(e,i,a,s,o).then(e=>e(r,t)),getCollection:(e,i)=>n.getCollection(e,i).then(e=>e(r,t)),listCollectionFilters:(e,i,a,s)=>n.listCollectionFilters(e,i,a,s).then(e=>e(r,t)),listCollections:(e,i,a,s,o,c,f,u)=>n.listCollections(e,i,a,s,o,c,f,u).then(e=>e(r,t)),summarizeCollections:(e,i)=>n.summarizeCollections(e,i).then(e=>e(r,t)),updateCollection:(e,i,a,s,o)=>n.updateCollection(e,i,a,s,o).then(e=>e(r,t))}},CollectionsApiFp:Z,Configuration:ez,CreateExchangeAndURLAPIRequestProviderEnum:{Moonpay:"moonpay",Layerswap:"layerswap"},CreateExchangeAndURLAPIRequestTypeEnum:{Onramp:"onramp",Offramp:"offramp"},CreatePrimarySaleBadRequestBodyAllOf1CodeEnum:{ValidationError:"VALIDATION_ERROR"},CreatePrimarySaleCreatedBodyResultFeesItemsTypeEnum:{Ecosystem:"ECOSYSTEM",Protocol:"PROTOCOL"},CreatePrimarySaleCreatedBodyResultStatusEnum:{Pending:"PENDING",Active:"ACTIVE",Invalid:"INVALID",InProgress:"IN_PROGRESS",Accepted:"ACCEPTED",Failed:"FAILED",Rejected:"REJECTED",Expired:"EXPIRED"},CreatePrimarySaleForbiddenBodyAllOf1CodeEnum:{AuthenticationError:"AUTHENTICATION_ERROR"},CreatePrimarySaleInternalServerErrorBodyAllOf1CodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},CreatePrimarySaleNotFoundBodyAllOf1CodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},CreatePrimarySaleNotImplementedBodyAllOf1CodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},CreatePrimarySaleParamsBodyFeesItemsTypeEnum:{Ecosystem:"ECOSYSTEM",Protocol:"PROTOCOL"},CreatePrimarySaleUnauthorizedBodyAllOf1CodeEnum:{UnauthorisedRequest:"UNAUTHORISED_REQUEST"},CreateProjectGroupRequestChainTypeEnum:{Starkex:"starkex",Zkevm:"zkevm"},DepositsApi:Q,DepositsApiAxiosParamCreator:X,DepositsApiFactory:function(e,t,r){let n=Y(e);return{getDeposit:(e,i)=>n.getDeposit(e,i).then(e=>e(r,t)),getSignableDeposit:(e,i)=>n.getSignableDeposit(e,i).then(e=>e(r,t)),listDeposits:(e,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y,v)=>n.listDeposits(e,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y,v).then(e=>e(r,t))}},DepositsApiFp:Y,EncodeAssetRequestTokenTypeEnum:{Eth:"ETH",Erc20:"ERC20",Erc721:"ERC721"},EncodingApi:er,EncodingApiAxiosParamCreator:ee,EncodingApiFactory:function(e,t,r){let n=et(e);return{encodeAsset:(e,i,a)=>n.encodeAsset(e,i,a).then(e=>e(r,t))}},EncodingApiFp:et,ExchangesApi:ea,ExchangesApiAxiosParamCreator:en,ExchangesApiFactory:function(e,t,r){let n=ei(e);return{createExchange:(e,i)=>n.createExchange(e,i).then(e=>e(r,t)),createExchangeTransfer:(e,i,a,s,o,c)=>n.createExchangeTransfer(e,i,a,s,o,c).then(e=>e(r,t)),getExchange:(e,i)=>n.getExchange(e,i).then(e=>e(r,t)),getExchangeSignableTransfer:(e,i,a)=>n.getExchangeSignableTransfer(e,i,a).then(e=>e(r,t)),getExchanges:(e,i,a,s,o,c,f,u,d,l)=>n.getExchanges(e,i,a,s,o,c,f,u,d,l).then(e=>e(r,t))}},ExchangesApiFp:ei,ExperimentalCreatePrimarySaleBadRequestBodyAllOf1CodeEnum:{ValidationError:"VALIDATION_ERROR"},ExperimentalCreatePrimarySaleCreatedBodyResultFeesItemsTypeEnum:{Ecosystem:"ECOSYSTEM",Protocol:"PROTOCOL"},ExperimentalCreatePrimarySaleCreatedBodyResultStatusEnum:{Pending:"PENDING",Active:"ACTIVE",Invalid:"INVALID",InProgress:"IN_PROGRESS",Accepted:"ACCEPTED",Rejected:"REJECTED",Expired:"EXPIRED"},ExperimentalCreatePrimarySaleForbiddenBodyAllOf1CodeEnum:{AuthenticationError:"AUTHENTICATION_ERROR"},ExperimentalCreatePrimarySaleInternalServerErrorBodyAllOf1CodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},ExperimentalCreatePrimarySaleNotFoundBodyAllOf1CodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},ExperimentalCreatePrimarySaleNotImplementedBodyAllOf1CodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},ExperimentalCreatePrimarySaleParamsBodyFeesItemsTypeEnum:{Ecosystem:"ECOSYSTEM",Protocol:"PROTOCOL"},ExperimentalCreatePrimarySaleUnauthorizedBodyAllOf1CodeEnum:{UnauthorisedRequest:"UNAUTHORISED_REQUEST"},ExperimentalGetPrimarySaleBadRequestBodyAllOf1CodeEnum:{ValidationError:"VALIDATION_ERROR"},ExperimentalGetPrimarySaleInternalServerErrorBodyAllOf1CodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},ExperimentalGetPrimarySaleNotFoundBodyAllOf1CodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},ExperimentalGetPrimarySaleNotImplementedBodyAllOf1CodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},ExperimentalGetPrimarySaleOKBodyResultFeesItemsTypeEnum:{Ecosystem:"ECOSYSTEM",Protocol:"PROTOCOL"},ExperimentalGetPrimarySaleOKBodyResultStatusEnum:{Pending:"PENDING",Active:"ACTIVE",Invalid:"INVALID",InProgress:"IN_PROGRESS",Accepted:"ACCEPTED",Rejected:"REJECTED",Expired:"EXPIRED"},FeeTokenTypeEnum:{Eth:"ETH",Erc20:"ERC20"},GetMetadataRefreshResponseStatusEnum:{Queued:"queued",InProgress:"in_progress",Completed:"completed"},GetPrimarySaleBadRequestBodyAllOf1CodeEnum:{ValidationError:"VALIDATION_ERROR"},GetPrimarySaleInternalServerErrorBodyAllOf1CodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},GetPrimarySaleNotFoundBodyAllOf1CodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},GetPrimarySaleNotImplementedBodyAllOf1CodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},GetPrimarySaleOKBodyResultFeesItemsTypeEnum:{Ecosystem:"ECOSYSTEM",Protocol:"PROTOCOL"},GetPrimarySaleOKBodyResultStatusEnum:{Pending:"PENDING",Active:"ACTIVE",Invalid:"INVALID",InProgress:"IN_PROGRESS",Accepted:"ACCEPTED",Failed:"FAILED",Rejected:"REJECTED",Expired:"EXPIRED"},MetadataApi:ec,MetadataApiAxiosParamCreator:es,MetadataApiFactory:function(e,t,r){let n=eo(e);return{addMetadataSchemaToCollection:(e,i,a,s,o)=>n.addMetadataSchemaToCollection(e,i,a,s,o).then(e=>e(r,t)),getMetadataSchema:(e,i)=>n.getMetadataSchema(e,i).then(e=>e(r,t)),updateMetadataSchemaByName:(e,i,a,s,o,c)=>n.updateMetadataSchemaByName(e,i,a,s,o,c).then(e=>e(r,t))}},MetadataApiFp:eo,MetadataRefreshExcludingSummaryStatusEnum:{Queued:"queued",InProgress:"in_progress",Completed:"completed"},MetadataRefreshesApi:ed,MetadataRefreshesApiAxiosParamCreator:ef,MetadataRefreshesApiFactory:function(e,t,r){let n=eu(e);return{getAListOfMetadataRefreshes:(e,i,a,s,o,c,f)=>n.getAListOfMetadataRefreshes(e,i,a,s,o,c,f).then(e=>e(r,t)),getMetadataRefreshErrors:(e,i,a,s,o,c,f)=>n.getMetadataRefreshErrors(e,i,a,s,o,c,f).then(e=>e(r,t)),getMetadataRefreshResults:(e,i,a,s,o)=>n.getMetadataRefreshResults(e,i,a,s,o).then(e=>e(r,t)),requestAMetadataRefresh:(e,i,a,s,o)=>n.requestAMetadataRefresh(e,i,a,s,o).then(e=>e(r,t))}},MetadataRefreshesApiFp:eu,MetadataSchemaRequestTypeEnum:{Enum:"enum",Text:"text",Boolean:"boolean",Continuous:"continuous",Discrete:"discrete"},MintsApi:ep,MintsApiAxiosParamCreator:el,MintsApiFactory:function(e,t,r){let n=eh(e);return{getMint:(e,i)=>n.getMint(e,i).then(e=>e(r,t)),getMintableTokenDetailsByClientTokenId:(e,i,a)=>n.getMintableTokenDetailsByClientTokenId(e,i,a).then(e=>e(r,t)),listMints:(e,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y)=>n.listMints(e,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y).then(e=>e(r,t)),mintTokens:(e,i)=>n.mintTokens(e,i).then(e=>e(r,t))}},MintsApiFp:eh,NftCheckoutPrimaryApi:eg,NftCheckoutPrimaryApiAxiosParamCreator:em,NftCheckoutPrimaryApiFactory:function(e,t,r){let n=eb(e);return{createNftPrimary:(e,i)=>n.createNftPrimary(e,i).then(e=>e(r,t)),getCurrenciesNFTCheckoutPrimary:(e,i,a)=>n.getCurrenciesNFTCheckoutPrimary(e,i,a).then(e=>e(r,t)),getNftPrimaryTransaction:(e,i)=>n.getNftPrimaryTransaction(e,i).then(e=>e(r,t)),getNftPrimaryTransactions:(e,i,a,s,o,c,f,u,d,l,h,p)=>n.getNftPrimaryTransactions(e,i,a,s,o,c,f,u,d,l,h,p).then(e=>e(r,t)),registerNftPrimarySalesContract:(e,i)=>n.registerNftPrimarySalesContract(e,i).then(e=>e(r,t))}},NftCheckoutPrimaryApiFp:eb,OrdersApi:ew,OrdersApiAxiosParamCreator:ey,OrdersApiFactory:function(e,t,r){let n=ev(e);return{cancelOrderV3:(e,i,a,s,o,c)=>n.cancelOrderV3(e,i,a,s,o,c).then(e=>e(r,t)),createOrderV3:(e,i,a,s,o)=>n.createOrderV3(e,i,a,s,o).then(e=>e(r,t)),getOrderV3:(e,i,a,s,o)=>n.getOrderV3(e,i,a,s,o).then(e=>e(r,t)),getSignableCancelOrderV3:(e,i)=>n.getSignableCancelOrderV3(e,i).then(e=>e(r,t)),getSignableOrder:(e,i)=>n.getSignableOrder(e,i).then(e=>e(r,t)),listOrdersV3:(e,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y,v,w,_,E,A,M,S,x,T,k,R,I,C,P)=>n.listOrdersV3(e,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y,v,w,_,E,A,M,S,x,T,k,R,I,C,P).then(e=>e(r,t))}},OrdersApiFp:ev,PrimarySalesApi:eA,PrimarySalesApiAxiosParamCreator:e_,PrimarySalesApiFactory:function(e,t,r){let n=eE(e);return{acceptPrimarySale:(e,i)=>n.acceptPrimarySale(e,i).then(e=>e(r,t)),createPrimarySale:(e,i)=>n.createPrimarySale(e,i).then(e=>e(r,t)),getPrimarySale:(e,i)=>n.getPrimarySale(e,i).then(e=>e(r,t)),rejectPrimarySale:(e,i)=>n.rejectPrimarySale(e,i).then(e=>e(r,t)),signableAcceptPrimarySale:(e,i)=>n.signableAcceptPrimarySale(e,i).then(e=>e(r,t)),signableCreatePrimarySale:(e,i)=>n.signableCreatePrimarySale(e,i).then(e=>e(r,t)),signableRejectPrimarySale:(e,i)=>n.signableRejectPrimarySale(e,i).then(e=>e(r,t))}},PrimarySalesApiFp:eE,ProjectsApi:ex,ProjectsApiAxiosParamCreator:eM,ProjectsApiFactory:function(e,t,r){let n=eS(e);return{getProject:(e,i,a,s)=>n.getProject(e,i,a,s).then(e=>e(r,t))}},ProjectsApiFp:eS,RejectPrimarySaleBadRequestBodyAllOf1CodeEnum:{ValidationError:"VALIDATION_ERROR"},RejectPrimarySaleForbiddenBodyAllOf1CodeEnum:{AuthenticationError:"AUTHENTICATION_ERROR"},RejectPrimarySaleInternalServerErrorBodyAllOf1CodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},RejectPrimarySaleNotFoundBodyAllOf1CodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},RejectPrimarySaleNotImplementedBodyAllOf1CodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},RejectPrimarySaleOKBodyResultFeesItemsTypeEnum:{Ecosystem:"ECOSYSTEM",Protocol:"PROTOCOL"},RejectPrimarySaleOKBodyResultStatusEnum:{Pending:"PENDING",Active:"ACTIVE",Invalid:"INVALID",InProgress:"IN_PROGRESS",Accepted:"ACCEPTED",Failed:"FAILED",Rejected:"REJECTED",Expired:"EXPIRED"},RejectPrimarySaleUnauthorizedBodyAllOf1CodeEnum:{UnauthorisedRequest:"UNAUTHORISED_REQUEST"},RejectPrimarySaleUnprocessableEntityBodyAllOf1CodeEnum:{UnprocessableEntityError:"UNPROCESSABLE_ENTITY_ERROR"},SignableAcceptPrimarySaleBadRequestBodyAllOf1CodeEnum:{ValidationError:"VALIDATION_ERROR"},SignableAcceptPrimarySaleInternalServerErrorBodyAllOf1CodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},SignableAcceptPrimarySaleNotFoundBodyAllOf1CodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},SignableAcceptPrimarySaleNotImplementedBodyAllOf1CodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},SignableAcceptPrimarySaleUnprocessableEntityBodyAllOf1CodeEnum:{UnprocessableEntityError:"UNPROCESSABLE_ENTITY_ERROR"},SignableCreatePrimarySaleBadRequestBodyAllOf1CodeEnum:{ValidationError:"VALIDATION_ERROR"},SignableCreatePrimarySaleInternalServerErrorBodyAllOf1CodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},SignableCreatePrimarySaleNotFoundBodyAllOf1CodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},SignableCreatePrimarySaleNotImplementedBodyAllOf1CodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},SignableCreatePrimarySaleOKBodyFeesItemsTypeEnum:{Ecosystem:"ECOSYSTEM",Protocol:"PROTOCOL"},SignableRejectPrimarySaleBadRequestBodyAllOf1CodeEnum:{ValidationError:"VALIDATION_ERROR"},SignableRejectPrimarySaleInternalServerErrorBodyAllOf1CodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},SignableRejectPrimarySaleNotFoundBodyAllOf1CodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},SignableRejectPrimarySaleNotImplementedBodyAllOf1CodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},SignableRejectPrimarySaleUnprocessableEntityBodyAllOf1CodeEnum:{UnprocessableEntityError:"UNPROCESSABLE_ENTITY_ERROR"},TokensApi:eR,TokensApiAxiosParamCreator:eT,TokensApiFactory:function(e,t,r){let n=ek(e);return{getToken:(e,i)=>n.getToken(e,i).then(e=>e(r,t)),listTokens:(e,i,a,s,o,c,f)=>n.listTokens(e,i,a,s,o,c,f).then(e=>e(r,t))}},TokensApiFp:ek,TradesApi:eP,TradesApiAxiosParamCreator:eI,TradesApiFactory:function(e,t,r){let n=eC(e);return{createTradeV3:(e,i,a,s,o)=>n.createTradeV3(e,i,a,s,o).then(e=>e(r,t)),getSignableTrade:(e,i)=>n.getSignableTrade(e,i).then(e=>e(r,t)),getTradeV3:(e,i)=>n.getTradeV3(e,i).then(e=>e(r,t)),listTradesV3:(e,i,a,s,o,c,f,u,d,l,h,p)=>n.listTradesV3(e,i,a,s,o,c,f,u,d,l,h,p).then(e=>e(r,t))}},TradesApiFp:eC,TransfersApi:ej,TransfersApiAxiosParamCreator:eO,TransfersApiFactory:function(e,t,r){let n=eN(e);return{createTransfer:(e,i,a,s,o)=>n.createTransfer(e,i,a,s,o).then(e=>e(r,t)),createTransferV1:(e,i,a,s,o)=>n.createTransferV1(e,i,a,s,o).then(e=>e(r,t)),getSignableTransfer:(e,i)=>n.getSignableTransfer(e,i).then(e=>e(r,t)),getSignableTransferV1:(e,i)=>n.getSignableTransferV1(e,i).then(e=>e(r,t)),getTransfer:(e,i)=>n.getTransfer(e,i).then(e=>e(r,t)),listTransfers:(e,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y,v,w)=>n.listTransfers(e,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y,v,w).then(e=>e(r,t))}},TransfersApiFp:eN,UsersApi:eD,UsersApiAxiosParamCreator:eB,UsersApiFactory:function(e,t,r){let n=eL(e);return{getSignableRegistration:(e,i)=>n.getSignableRegistration(e,i).then(e=>e(r,t)),getSignableRegistrationOffchain:(e,i)=>n.getSignableRegistrationOffchain(e,i).then(e=>e(r,t)),getUsers:(e,i)=>n.getUsers(e,i).then(e=>e(r,t)),registerPassportUser:(e,i,a)=>n.registerPassportUser(e,i,a).then(e=>e(r,t)),registerPassportUserV2:(e,i,a)=>n.registerPassportUserV2(e,i,a).then(e=>e(r,t)),registerUser:(e,i)=>n.registerUser(e,i).then(e=>e(r,t))}},UsersApiFp:eL,WithdrawalsApi:eq,WithdrawalsApiAxiosParamCreator:eU,WithdrawalsApiFactory:function(e,t,r){let n=eF(e);return{createWithdrawal:(e,i,a,s)=>n.createWithdrawal(e,i,a,s).then(e=>e(r,t)),createWithdrawalV2:(e,i,a,s)=>n.createWithdrawalV2(e,i,a,s).then(e=>e(r,t)),getSignableWithdrawal:(e,i)=>n.getSignableWithdrawal(e,i).then(e=>e(r,t)),getSignableWithdrawalV2:(e,i)=>n.getSignableWithdrawalV2(e,i).then(e=>e(r,t)),getWithdrawal:(e,i)=>n.getWithdrawal(e,i).then(e=>e(r,t)),listWithdrawals:(e,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y,v,w,_)=>n.listWithdrawals(e,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y,v,w,_).then(e=>e(r,t))}},WithdrawalsApiFp:eF});let eH="https://api.sandbox.immutable.com".replace(/\/+$/,"");class eV{basePath;axios;configuration;constructor(e,t=eH,r=C.default){this.basePath=t,this.axios=r,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}class eW extends Error{field;constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}let eG="https://example.com",eJ=function(e,t,r){if(null==r)throw new eW(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},eZ=async function(e,t,r){if(r&&r.apiKey){let n="function"==typeof r.apiKey?await r.apiKey(t):await r.apiKey;e[t]=n}},e$=async function(e,t){if(t&&t.accessToken){let r="function"==typeof t.accessToken?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+r}},eX=function(e,...t){let r=new URLSearchParams(e.search);!function e(t,r,n=""){null!=r&&("object"==typeof r?Array.isArray(r)?r.forEach(r=>e(t,r,n)):Object.keys(r).forEach(i=>e(t,r[i],`${n}${""!==n?".":""}${i}`)):t.has(n)?t.append(n,r):t.set(n,r))}(r,t),e.search=r.toString()},eY=function(e,t,r){let n="string"!=typeof e,i=n&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):n;return i?JSON.stringify(void 0!==e?e:{}):e||""},eQ=function(e){return e.pathname+e.search+e.hash},e0=function(e,t,r,n){return(i=t,a=r)=>{let s={...e.options,url:(n?.basePath||i.defaults.baseURL||a)+e.url};return i.request(s)}},e1=function(e){return{getActivity:async(t,r,n={})=>{let i;eJ("getActivity","chainName",t),eJ("getActivity","activityId",r);let a="/v1/chains/{chain_name}/activities/{activity_id}".replace("{chain_name}",encodeURIComponent(String(t))).replace("{activity_id}",encodeURIComponent(String(r))),s=new URL(a,eG);e&&(i=e.baseOptions);let o={method:"GET",...i,...n};eX(s,{});let c=i&&i.headers?i.headers:{};return o.headers={...c,...n.headers},{url:eQ(s),options:o}},listActivities:async(t,r,n,i,a,s,o,c,f={})=>{let u;eJ("listActivities","chainName",t);let d="/v1/chains/{chain_name}/activities".replace("{chain_name}",encodeURIComponent(String(t))),l=new URL(d,eG);e&&(u=e.baseOptions);let h={method:"GET",...u,...f},p={};void 0!==r&&(p.contract_address=r),void 0!==n&&(p.token_id=n),void 0!==i&&(p.account_address=i),void 0!==a&&(p.activity_type=a),void 0!==s&&(p.transaction_hash=s),void 0!==o&&(p.page_cursor=o),void 0!==c&&(p.page_size=c),eX(l,p);let m=u&&u.headers?u.headers:{};return h.headers={...m,...f.headers},{url:eQ(l),options:h}},listActivityHistory:async(t,r,n,i,a,s,o,c={})=>{let f;eJ("listActivityHistory","chainName",t),eJ("listActivityHistory","fromUpdatedAt",r);let u="/v1/chains/{chain_name}/activity-history".replace("{chain_name}",encodeURIComponent(String(t))),d=new URL(u,eG);e&&(f=e.baseOptions);let l={method:"GET",...f,...c},h={};void 0!==r&&(h.from_updated_at=r instanceof Date?r.toISOString():r),void 0!==n&&(h.to_updated_at=n instanceof Date?n.toISOString():n),void 0!==i&&(h.contract_address=i),void 0!==a&&(h.activity_type=a),void 0!==s&&(h.page_cursor=s),void 0!==o&&(h.page_size=o),eX(d,h);let p=f&&f.headers?f.headers:{};return l.headers={...p,...c.headers},{url:eQ(d),options:l}}}},e2=function(e){let t=e1(e);return{async getActivity(r,n,i){let a=await t.getActivity(r,n,i);return e0(a,C.default,eH,e)},async listActivities(r,n,i,a,s,o,c,f,u){let d=await t.listActivities(r,n,i,a,s,o,c,f,u);return e0(d,C.default,eH,e)},async listActivityHistory(r,n,i,a,s,o,c,f){let u=await t.listActivityHistory(r,n,i,a,s,o,c,f);return e0(u,C.default,eH,e)}}};class e6 extends eV{getActivity(e,t){return e2(this.configuration).getActivity(e.chainName,e.activityId,t).then(e=>e(this.axios,this.basePath))}listActivities(e,t){return e2(this.configuration).listActivities(e.chainName,e.contractAddress,e.tokenId,e.accountAddress,e.activityType,e.transactionHash,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}listActivityHistory(e,t){return e2(this.configuration).listActivityHistory(e.chainName,e.fromUpdatedAt,e.toUpdatedAt,e.contractAddress,e.activityType,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}}let e3=function(e){return{listChains:async(t,r,n={})=>{let i;let a=new URL("/v1/chains",eG);e&&(i=e.baseOptions);let s={method:"GET",...i,...n},o={};void 0!==t&&(o.page_cursor=t),void 0!==r&&(o.page_size=r),eX(a,o);let c=i&&i.headers?i.headers:{};return s.headers={...c,...n.headers},{url:eQ(a),options:s}}}},e5=function(e){let t=e3(e);return{async listChains(r,n,i){let a=await t.listChains(r,n,i);return e0(a,C.default,eH,e)}}};class e8 extends eV{listChains(e={},t){return e5(this.configuration).listChains(e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}}let e4=function(e){return{getCollection:async(t,r,n={})=>{let i;eJ("getCollection","contractAddress",t),eJ("getCollection","chainName",r);let a="/v1/chains/{chain_name}/collections/{contract_address}".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),s=new URL(a,eG);e&&(i=e.baseOptions);let o={method:"GET",...i,...n};eX(s,{});let c=i&&i.headers?i.headers:{};return o.headers={...c,...n.headers},{url:eQ(s),options:o}},listCollections:async(t,r,n,i,a,s,o={})=>{let c;eJ("listCollections","chainName",t);let f="/v1/chains/{chain_name}/collections".replace("{chain_name}",encodeURIComponent(String(t))),u=new URL(f,eG);e&&(c=e.baseOptions);let d={method:"GET",...c,...o},l={};r&&(l.contract_address=r),n&&(l.verification_status=n),void 0!==i&&(l.from_updated_at=i instanceof Date?i.toISOString():i),void 0!==a&&(l.page_cursor=a),void 0!==s&&(l.page_size=s),eX(u,l);let h=c&&c.headers?c.headers:{};return d.headers={...h,...o.headers},{url:eQ(u),options:d}},listCollectionsByNFTOwner:async(t,r,n,i,a={})=>{let s;eJ("listCollectionsByNFTOwner","accountAddress",t),eJ("listCollectionsByNFTOwner","chainName",r);let o="/v1/chains/{chain_name}/accounts/{account_address}/collections".replace("{account_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),c=new URL(o,eG);e&&(s=e.baseOptions);let f={method:"GET",...s,...a},u={};void 0!==n&&(u.page_cursor=n),void 0!==i&&(u.page_size=i),eX(c,u);let d=s&&s.headers?s.headers:{};return f.headers={...d,...a.headers},{url:eQ(c),options:f}},refreshCollectionMetadata:async(t,r,n,i={})=>{let a;eJ("refreshCollectionMetadata","contractAddress",t),eJ("refreshCollectionMetadata","chainName",r),eJ("refreshCollectionMetadata","refreshCollectionMetadataRequest",n);let s="/v1/chains/{chain_name}/collections/{contract_address}/refresh-metadata".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),o=new URL(s,eG);e&&(a=e.baseOptions);let c={method:"POST",...a,...i},f={};await eZ(f,"x-immutable-api-key",e),await e$(f,e),f["Content-Type"]="application/json",eX(o,{});let u=a&&a.headers?a.headers:{};return c.headers={...f,...u,...i.headers},c.data=eY(n,c,e),{url:eQ(o),options:c}}}},e7=function(e){let t=e4(e);return{async getCollection(r,n,i){let a=await t.getCollection(r,n,i);return e0(a,C.default,eH,e)},async listCollections(r,n,i,a,s,o,c){let f=await t.listCollections(r,n,i,a,s,o,c);return e0(f,C.default,eH,e)},async listCollectionsByNFTOwner(r,n,i,a,s){let o=await t.listCollectionsByNFTOwner(r,n,i,a,s);return e0(o,C.default,eH,e)},async refreshCollectionMetadata(r,n,i,a){let s=await t.refreshCollectionMetadata(r,n,i,a);return e0(s,C.default,eH,e)}}};class e9 extends eV{getCollection(e,t){return e7(this.configuration).getCollection(e.contractAddress,e.chainName,t).then(e=>e(this.axios,this.basePath))}listCollections(e,t){return e7(this.configuration).listCollections(e.chainName,e.contractAddress,e.verificationStatus,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}listCollectionsByNFTOwner(e,t){return e7(this.configuration).listCollectionsByNFTOwner(e.accountAddress,e.chainName,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}refreshCollectionMetadata(e,t){return e7(this.configuration).refreshCollectionMetadata(e.contractAddress,e.chainName,e.refreshCollectionMetadataRequest,t).then(e=>e(this.axios,this.basePath))}}let te=function(e){return{getMetadata:async(t,r,n,i={})=>{let a;eJ("getMetadata","chainName",t),eJ("getMetadata","contractAddress",r),eJ("getMetadata","metadataId",n);let s="/v1/chains/{chain_name}/collections/{contract_address}/metadata/{metadata_id}".replace("{chain_name}",encodeURIComponent(String(t))).replace("{contract_address}",encodeURIComponent(String(r))).replace("{metadata_id}",encodeURIComponent(String(n))),o=new URL(s,eG);e&&(a=e.baseOptions);let c={method:"GET",...a,...i};eX(o,{});let f=a&&a.headers?a.headers:{};return c.headers={...f,...i.headers},{url:eQ(o),options:c}},listMetadata:async(t,r,n,i,a,s={})=>{let o;eJ("listMetadata","chainName",t),eJ("listMetadata","contractAddress",r);let c="/v1/chains/{chain_name}/collections/{contract_address}/metadata".replace("{chain_name}",encodeURIComponent(String(t))).replace("{contract_address}",encodeURIComponent(String(r))),f=new URL(c,eG);e&&(o=e.baseOptions);let u={method:"GET",...o,...s},d={};void 0!==n&&(d.from_updated_at=n instanceof Date?n.toISOString():n),void 0!==i&&(d.page_cursor=i),void 0!==a&&(d.page_size=a),eX(f,d);let l=o&&o.headers?o.headers:{};return u.headers={...l,...s.headers},{url:eQ(f),options:u}},listMetadataForChain:async(t,r,n,i,a={})=>{let s;eJ("listMetadataForChain","chainName",t);let o="/v1/chains/{chain_name}/metadata".replace("{chain_name}",encodeURIComponent(String(t))),c=new URL(o,eG);e&&(s=e.baseOptions);let f={method:"GET",...s,...a},u={};void 0!==r&&(u.from_updated_at=r instanceof Date?r.toISOString():r),void 0!==n&&(u.page_cursor=n),void 0!==i&&(u.page_size=i),eX(c,u);let d=s&&s.headers?s.headers:{};return f.headers={...d,...a.headers},{url:eQ(c),options:f}},refreshMetadataByID:async(t,r,n,i={})=>{let a;eJ("refreshMetadataByID","chainName",t),eJ("refreshMetadataByID","contractAddress",r),eJ("refreshMetadataByID","refreshMetadataByIDRequest",n);let s="/v1/chains/{chain_name}/collections/{contract_address}/metadata/refresh-metadata".replace("{chain_name}",encodeURIComponent(String(t))).replace("{contract_address}",encodeURIComponent(String(r))),o=new URL(s,eG);e&&(a=e.baseOptions);let c={method:"POST",...a,...i},f={};await eZ(f,"x-immutable-api-key",e),f["Content-Type"]="application/json",eX(o,{});let u=a&&a.headers?a.headers:{};return c.headers={...f,...u,...i.headers},c.data=eY(n,c,e),{url:eQ(o),options:c}},refreshNFTMetadataByTokenID:async(t,r,n,i={})=>{let a;eJ("refreshNFTMetadataByTokenID","contractAddress",t),eJ("refreshNFTMetadataByTokenID","chainName",r),eJ("refreshNFTMetadataByTokenID","refreshNFTMetadataByTokenIDRequest",n);let s="/v1/chains/{chain_name}/collections/{contract_address}/nfts/refresh-metadata".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),o=new URL(s,eG);e&&(a=e.baseOptions);let c={method:"POST",...a,...i},f={};await eZ(f,"x-immutable-api-key",e),f["Content-Type"]="application/json",eX(o,{});let u=a&&a.headers?a.headers:{};return c.headers={...f,...u,...i.headers},c.data=eY(n,c,e),{url:eQ(o),options:c}}}},tt=function(e){let t=te(e);return{async getMetadata(r,n,i,a){let s=await t.getMetadata(r,n,i,a);return e0(s,C.default,eH,e)},async listMetadata(r,n,i,a,s,o){let c=await t.listMetadata(r,n,i,a,s,o);return e0(c,C.default,eH,e)},async listMetadataForChain(r,n,i,a,s){let o=await t.listMetadataForChain(r,n,i,a,s);return e0(o,C.default,eH,e)},async refreshMetadataByID(r,n,i,a){let s=await t.refreshMetadataByID(r,n,i,a);return e0(s,C.default,eH,e)},async refreshNFTMetadataByTokenID(r,n,i,a){let s=await t.refreshNFTMetadataByTokenID(r,n,i,a);return e0(s,C.default,eH,e)}}},tr=function(e){return{listAllNFTOwners:async(t,r,n,i,a={})=>{let s;eJ("listAllNFTOwners","chainName",t);let o="/v1/chains/{chain_name}/nft-owners".replace("{chain_name}",encodeURIComponent(String(t))),c=new URL(o,eG);e&&(s=e.baseOptions);let f={method:"GET",...s,...a},u={};void 0!==r&&(u.from_updated_at=r instanceof Date?r.toISOString():r),void 0!==n&&(u.page_cursor=n),void 0!==i&&(u.page_size=i),eX(c,u);let d=s&&s.headers?s.headers:{};return f.headers={...d,...a.headers},{url:eQ(c),options:f}},listNFTOwners:async(t,r,n,i,a,s={})=>{let o;eJ("listNFTOwners","contractAddress",t),eJ("listNFTOwners","tokenId",r),eJ("listNFTOwners","chainName",n);let c="/v1/chains/{chain_name}/collections/{contract_address}/nfts/{token_id}/owners".replace("{contract_address}",encodeURIComponent(String(t))).replace("{token_id}",encodeURIComponent(String(r))).replace("{chain_name}",encodeURIComponent(String(n))),f=new URL(c,eG);e&&(o=e.baseOptions);let u={method:"GET",...o,...s},d={};void 0!==i&&(d.page_cursor=i),void 0!==a&&(d.page_size=a),eX(f,d);let l=o&&o.headers?o.headers:{};return u.headers={...l,...s.headers},{url:eQ(f),options:u}},listOwnersByContractAddress:async(t,r,n,i,a,s,o={})=>{let c;eJ("listOwnersByContractAddress","contractAddress",t),eJ("listOwnersByContractAddress","chainName",r);let f="/v1/chains/{chain_name}/collections/{contract_address}/owners".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),u=new URL(f,eG);e&&(c=e.baseOptions);let d={method:"GET",...c,...o},l={};n&&(l.account_address=n),void 0!==i&&(l.from_updated_at=i instanceof Date?i.toISOString():i),void 0!==a&&(l.page_cursor=a),void 0!==s&&(l.page_size=s),eX(u,l);let h=c&&c.headers?c.headers:{};return d.headers={...h,...o.headers},{url:eQ(u),options:d}}}},tn=function(e){let t=tr(e);return{async listAllNFTOwners(r,n,i,a,s){let o=await t.listAllNFTOwners(r,n,i,a,s);return e0(o,C.default,eH,e)},async listNFTOwners(r,n,i,a,s,o){let c=await t.listNFTOwners(r,n,i,a,s,o);return e0(c,C.default,eH,e)},async listOwnersByContractAddress(r,n,i,a,s,o,c){let f=await t.listOwnersByContractAddress(r,n,i,a,s,o,c);return e0(f,C.default,eH,e)}}};class ti extends eV{listAllNFTOwners(e,t){return tn(this.configuration).listAllNFTOwners(e.chainName,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}listNFTOwners(e,t){return tn(this.configuration).listNFTOwners(e.contractAddress,e.tokenId,e.chainName,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}listOwnersByContractAddress(e,t){return tn(this.configuration).listOwnersByContractAddress(e.contractAddress,e.chainName,e.accountAddress,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}}let ta=function(e){return{createMintRequest:async(t,r,n,i={})=>{let a;eJ("createMintRequest","contractAddress",t),eJ("createMintRequest","chainName",r),eJ("createMintRequest","createMintRequestRequest",n);let s="/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),o=new URL(s,eG);e&&(a=e.baseOptions);let c={method:"POST",...a,...i},f={};await eZ(f,"x-immutable-api-key",e),f["Content-Type"]="application/json",eX(o,{});let u=a&&a.headers?a.headers:{};return c.headers={...f,...u,...i.headers},c.data=eY(n,c,e),{url:eQ(o),options:c}},getMintRequest:async(t,r,n,i={})=>{let a;eJ("getMintRequest","contractAddress",t),eJ("getMintRequest","chainName",r),eJ("getMintRequest","referenceId",n);let s="/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests/{reference_id}".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))).replace("{reference_id}",encodeURIComponent(String(n))),o=new URL(s,eG);e&&(a=e.baseOptions);let c={method:"GET",...a,...i},f={};await eZ(f,"x-immutable-api-key",e),eX(o,{});let u=a&&a.headers?a.headers:{};return c.headers={...f,...u,...i.headers},{url:eQ(o),options:c}},getNFT:async(t,r,n,i={})=>{let a;eJ("getNFT","contractAddress",t),eJ("getNFT","tokenId",r),eJ("getNFT","chainName",n);let s="/v1/chains/{chain_name}/collections/{contract_address}/nfts/{token_id}".replace("{contract_address}",encodeURIComponent(String(t))).replace("{token_id}",encodeURIComponent(String(r))).replace("{chain_name}",encodeURIComponent(String(n))),o=new URL(s,eG);e&&(a=e.baseOptions);let c={method:"GET",...a,...i};eX(o,{});let f=a&&a.headers?a.headers:{};return c.headers={...f,...i.headers},{url:eQ(o),options:c}},listAllNFTs:async(t,r,n,i,a={})=>{let s;eJ("listAllNFTs","chainName",t);let o="/v1/chains/{chain_name}/nfts".replace("{chain_name}",encodeURIComponent(String(t))),c=new URL(o,eG);e&&(s=e.baseOptions);let f={method:"GET",...s,...a},u={};void 0!==r&&(u.from_updated_at=r instanceof Date?r.toISOString():r),void 0!==n&&(u.page_cursor=n),void 0!==i&&(u.page_size=i),eX(c,u);let d=s&&s.headers?s.headers:{};return f.headers={...d,...a.headers},{url:eQ(c),options:f}},listMintRequests:async(t,r,n,i,a,s={})=>{let o;eJ("listMintRequests","contractAddress",t),eJ("listMintRequests","chainName",r);let c="/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),f=new URL(c,eG);e&&(o=e.baseOptions);let u={method:"GET",...o,...s},d={},l={};await eZ(d,"x-immutable-api-key",e),void 0!==n&&(l.page_cursor=n),void 0!==i&&(l.page_size=i),void 0!==a&&(l.status=a),eX(f,l);let h=o&&o.headers?o.headers:{};return u.headers={...d,...h,...s.headers},{url:eQ(f),options:u}},listNFTs:async(t,r,n,i,a,s,o={})=>{let c;eJ("listNFTs","contractAddress",t),eJ("listNFTs","chainName",r);let f="/v1/chains/{chain_name}/collections/{contract_address}/nfts".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),u=new URL(f,eG);e&&(c=e.baseOptions);let d={method:"GET",...c,...o},l={};n&&(l.token_id=n),void 0!==i&&(l.from_updated_at=i instanceof Date?i.toISOString():i),void 0!==a&&(l.page_cursor=a),void 0!==s&&(l.page_size=s),eX(u,l);let h=c&&c.headers?c.headers:{};return d.headers={...h,...o.headers},{url:eQ(u),options:d}},listNFTsByAccountAddress:async(t,r,n,i,a,s,o,c={})=>{let f;eJ("listNFTsByAccountAddress","accountAddress",t),eJ("listNFTsByAccountAddress","chainName",r);let u="/v1/chains/{chain_name}/accounts/{account_address}/nfts".replace("{account_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),d=new URL(u,eG);e&&(f=e.baseOptions);let l={method:"GET",...f,...c},h={};void 0!==n&&(h.contract_address=n),i&&(h.token_id=i),void 0!==a&&(h.from_updated_at=a instanceof Date?a.toISOString():a),void 0!==s&&(h.page_cursor=s),void 0!==o&&(h.page_size=o),eX(d,h);let p=f&&f.headers?f.headers:{};return l.headers={...p,...c.headers},{url:eQ(d),options:l}}}},ts=function(e){let t=ta(e);return{async createMintRequest(r,n,i,a){let s=await t.createMintRequest(r,n,i,a);return e0(s,C.default,eH,e)},async getMintRequest(r,n,i,a){let s=await t.getMintRequest(r,n,i,a);return e0(s,C.default,eH,e)},async getNFT(r,n,i,a){let s=await t.getNFT(r,n,i,a);return e0(s,C.default,eH,e)},async listAllNFTs(r,n,i,a,s){let o=await t.listAllNFTs(r,n,i,a,s);return e0(o,C.default,eH,e)},async listMintRequests(r,n,i,a,s,o){let c=await t.listMintRequests(r,n,i,a,s,o);return e0(c,C.default,eH,e)},async listNFTs(r,n,i,a,s,o,c){let f=await t.listNFTs(r,n,i,a,s,o,c);return e0(f,C.default,eH,e)},async listNFTsByAccountAddress(r,n,i,a,s,o,c,f){let u=await t.listNFTsByAccountAddress(r,n,i,a,s,o,c,f);return e0(u,C.default,eH,e)}}};class to extends eV{createMintRequest(e,t){return ts(this.configuration).createMintRequest(e.contractAddress,e.chainName,e.createMintRequestRequest,t).then(e=>e(this.axios,this.basePath))}getMintRequest(e,t){return ts(this.configuration).getMintRequest(e.contractAddress,e.chainName,e.referenceId,t).then(e=>e(this.axios,this.basePath))}getNFT(e,t){return ts(this.configuration).getNFT(e.contractAddress,e.tokenId,e.chainName,t).then(e=>e(this.axios,this.basePath))}listAllNFTs(e,t){return ts(this.configuration).listAllNFTs(e.chainName,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}listMintRequests(e,t){return ts(this.configuration).listMintRequests(e.contractAddress,e.chainName,e.pageCursor,e.pageSize,e.status,t).then(e=>e(this.axios,this.basePath))}listNFTs(e,t){return ts(this.configuration).listNFTs(e.contractAddress,e.chainName,e.tokenId,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}listNFTsByAccountAddress(e,t){return ts(this.configuration).listNFTsByAccountAddress(e.accountAddress,e.chainName,e.contractAddress,e.tokenId,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}}let tc=function(e){return{cancelOrders:async(t,r,n={})=>{let i;eJ("cancelOrders","chainName",t),eJ("cancelOrders","cancelOrdersRequestBody",r);let a="/v1/chains/{chain_name}/orders/cancel".replace("{chain_name}",encodeURIComponent(String(t))),s=new URL(a,eG);e&&(i=e.baseOptions);let o={method:"POST",...i,...n},c={};c["Content-Type"]="application/json",eX(s,{});let f=i&&i.headers?i.headers:{};return o.headers={...c,...f,...n.headers},o.data=eY(r,o,e),{url:eQ(s),options:o}},createListing:async(t,r,n={})=>{let i;eJ("createListing","chainName",t),eJ("createListing","createListingRequestBody",r);let a="/v1/chains/{chain_name}/orders/listings".replace("{chain_name}",encodeURIComponent(String(t))),s=new URL(a,eG);e&&(i=e.baseOptions);let o={method:"POST",...i,...n},c={};c["Content-Type"]="application/json",eX(s,{});let f=i&&i.headers?i.headers:{};return o.headers={...c,...f,...n.headers},o.data=eY(r,o,e),{url:eQ(s),options:o}},fulfillmentData:async(t,r,n={})=>{let i;eJ("fulfillmentData","chainName",t),eJ("fulfillmentData","fulfillmentDataRequest",r);let a="/v1/chains/{chain_name}/orders/fulfillment-data".replace("{chain_name}",encodeURIComponent(String(t))),s=new URL(a,eG);e&&(i=e.baseOptions);let o={method:"POST",...i,...n},c={};c["Content-Type"]="application/json",eX(s,{});let f=i&&i.headers?i.headers:{};return o.headers={...c,...f,...n.headers},o.data=eY(r,o,e),{url:eQ(s),options:o}},getListing:async(t,r,n={})=>{let i;eJ("getListing","chainName",t),eJ("getListing","listingId",r);let a="/v1/chains/{chain_name}/orders/listings/{listing_id}".replace("{chain_name}",encodeURIComponent(String(t))).replace("{listing_id}",encodeURIComponent(String(r))),s=new URL(a,eG);e&&(i=e.baseOptions);let o={method:"GET",...i,...n};eX(s,{});let c=i&&i.headers?i.headers:{};return o.headers={...c,...n.headers},{url:eQ(s),options:o}},getTrade:async(t,r,n={})=>{let i;eJ("getTrade","chainName",t),eJ("getTrade","tradeId",r);let a="/v1/chains/{chain_name}/trades/{trade_id}".replace("{chain_name}",encodeURIComponent(String(t))).replace("{trade_id}",encodeURIComponent(String(r))),s=new URL(a,eG);e&&(i=e.baseOptions);let o={method:"GET",...i,...n};eX(s,{});let c=i&&i.headers?i.headers:{};return o.headers={...c,...n.headers},{url:eQ(s),options:o}},listListings:async(t,r,n,i,a,s,o,c,f,u,d,l,h,p={})=>{let m;eJ("listListings","chainName",t);let b="/v1/chains/{chain_name}/orders/listings".replace("{chain_name}",encodeURIComponent(String(t))),g=new URL(b,eG);e&&(m=e.baseOptions);let y={method:"GET",...m,...p},v={};void 0!==r&&(v.status=r),void 0!==n&&(v.sell_item_contract_address=n),void 0!==i&&(v.buy_item_type=i),void 0!==a&&(v.buy_item_contract_address=a),void 0!==s&&(v.account_address=s),void 0!==o&&(v.sell_item_metadata_id=o),void 0!==c&&(v.sell_item_token_id=c),void 0!==f&&(v.from_updated_at=f instanceof Date?f.toISOString():f),void 0!==u&&(v.page_size=u),void 0!==d&&(v.sort_by=d),void 0!==l&&(v.sort_direction=l),void 0!==h&&(v.page_cursor=h),eX(g,v);let w=m&&m.headers?m.headers:{};return y.headers={...w,...p.headers},{url:eQ(g),options:y}},listTrades:async(t,r,n,i,a,s,o,c,f={})=>{let u;eJ("listTrades","chainName",t);let d="/v1/chains/{chain_name}/trades".replace("{chain_name}",encodeURIComponent(String(t))),l=new URL(d,eG);e&&(u=e.baseOptions);let h={method:"GET",...u,...f},p={};void 0!==r&&(p.account_address=r),void 0!==n&&(p.sell_item_contract_address=n),void 0!==i&&(p.from_indexed_at=i instanceof Date?i.toISOString():i),void 0!==a&&(p.page_size=a),void 0!==s&&(p.sort_by=s),void 0!==o&&(p.sort_direction=o),void 0!==c&&(p.page_cursor=c),eX(l,p);let m=u&&u.headers?u.headers:{};return h.headers={...m,...f.headers},{url:eQ(l),options:h}}}},tf=function(e){let t=tc(e);return{async cancelOrders(r,n,i){let a=await t.cancelOrders(r,n,i);return e0(a,C.default,eH,e)},async createListing(r,n,i){let a=await t.createListing(r,n,i);return e0(a,C.default,eH,e)},async fulfillmentData(r,n,i){let a=await t.fulfillmentData(r,n,i);return e0(a,C.default,eH,e)},async getListing(r,n,i){let a=await t.getListing(r,n,i);return e0(a,C.default,eH,e)},async getTrade(r,n,i){let a=await t.getTrade(r,n,i);return e0(a,C.default,eH,e)},async listListings(r,n,i,a,s,o,c,f,u,d,l,h,p,m){let b=await t.listListings(r,n,i,a,s,o,c,f,u,d,l,h,p,m);return e0(b,C.default,eH,e)},async listTrades(r,n,i,a,s,o,c,f,u){let d=await t.listTrades(r,n,i,a,s,o,c,f,u);return e0(d,C.default,eH,e)}}};class tu extends eV{cancelOrders(e,t){return tf(this.configuration).cancelOrders(e.chainName,e.cancelOrdersRequestBody,t).then(e=>e(this.axios,this.basePath))}createListing(e,t){return tf(this.configuration).createListing(e.chainName,e.createListingRequestBody,t).then(e=>e(this.axios,this.basePath))}fulfillmentData(e,t){return tf(this.configuration).fulfillmentData(e.chainName,e.fulfillmentDataRequest,t).then(e=>e(this.axios,this.basePath))}getListing(e,t){return tf(this.configuration).getListing(e.chainName,e.listingId,t).then(e=>e(this.axios,this.basePath))}getTrade(e,t){return tf(this.configuration).getTrade(e.chainName,e.tradeId,t).then(e=>e(this.axios,this.basePath))}listListings(e,t){return tf(this.configuration).listListings(e.chainName,e.status,e.sellItemContractAddress,e.buyItemType,e.buyItemContractAddress,e.accountAddress,e.sellItemMetadataId,e.sellItemTokenId,e.fromUpdatedAt,e.pageSize,e.sortBy,e.sortDirection,e.pageCursor,t).then(e=>e(this.axios,this.basePath))}listTrades(e,t){return tf(this.configuration).listTrades(e.chainName,e.accountAddress,e.sellItemContractAddress,e.fromIndexedAt,e.pageSize,e.sortBy,e.sortDirection,e.pageCursor,t).then(e=>e(this.axios,this.basePath))}}let td=function(e){return{createCounterfactualAddressV2:async(t,r,n={})=>{let i;eJ("createCounterfactualAddressV2","chainName",t),eJ("createCounterfactualAddressV2","createCounterfactualAddressRequest",r);let a="/v2/chains/{chain_name}/passport/counterfactual-address".replace("{chain_name}",encodeURIComponent(String(t))),s=new URL(a,eG);e&&(i=e.baseOptions);let o={method:"POST",...i,...n},c={};await e$(c,e),c["Content-Type"]="application/json",eX(s,{});let f=i&&i.headers?i.headers:{};return o.headers={...c,...f,...n.headers},o.data=eY(r,o,e),{url:eQ(s),options:o}},getLinkedAddresses:async(t,r,n={})=>{let i;eJ("getLinkedAddresses","userId",t),eJ("getLinkedAddresses","chainName",r);let a="/v1/chains/{chain_name}/passport/users/{user_id}/linked-addresses".replace("{user_id}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),s=new URL(a,eG);e&&(i=e.baseOptions);let o={method:"GET",...i,...n},c={};await e$(c,e),eX(s,{});let f=i&&i.headers?i.headers:{};return o.headers={...c,...f,...n.headers},{url:eQ(s),options:o}},getLinkedAddressesDeprecated:async(t,r={})=>{let n;eJ("getLinkedAddressesDeprecated","userId",t);let i="/passport-mr/v1/users/{userId}/linked-addresses".replace("{userId}",encodeURIComponent(String(t))),a=new URL(i,eG);e&&(n=e.baseOptions);let s={method:"GET",...n,...r},o={};await e$(o,e),eX(a,{});let c=n&&n.headers?n.headers:{};return s.headers={...o,...c,...r.headers},{url:eQ(a),options:s}},getTransactionMetadata:async(t,r,n={})=>{let i;eJ("getTransactionMetadata","chainName",t),eJ("getTransactionMetadata","getTransactionMetadataRequest",r);let a="/v1/chains/{chain_name}/passport/transaction-metadata".replace("{chain_name}",encodeURIComponent(String(t))),s=new URL(a,eG);e&&(i=e.baseOptions);let o={method:"POST",...i,...n},c={};await e$(c,e),c["Content-Type"]="application/json",eX(s,{});let f=i&&i.headers?i.headers:{};return o.headers={...c,...f,...n.headers},o.data=eY(r,o,e),{url:eQ(s),options:o}},getTypedDataMetadata:async(t,r,n={})=>{let i;eJ("getTypedDataMetadata","chainName",t),eJ("getTypedDataMetadata","getTypedDataMetadataRequest",r);let a="/v1/chains/{chain_name}/passport/typeddata-metadata".replace("{chain_name}",encodeURIComponent(String(t))),s=new URL(a,eG);e&&(i=e.baseOptions);let o={method:"POST",...i,...n},c={};await e$(c,e),c["Content-Type"]="application/json",eX(s,{});let f=i&&i.headers?i.headers:{};return o.headers={...c,...f,...n.headers},o.data=eY(r,o,e),{url:eQ(s),options:o}}}},tl=function(e){let t=td(e);return{async createCounterfactualAddressV2(r,n,i){let a=await t.createCounterfactualAddressV2(r,n,i);return e0(a,C.default,eH,e)},async getLinkedAddresses(r,n,i){let a=await t.getLinkedAddresses(r,n,i);return e0(a,C.default,eH,e)},async getLinkedAddressesDeprecated(r,n){let i=await t.getLinkedAddressesDeprecated(r,n);return e0(i,C.default,eH,e)},async getTransactionMetadata(r,n,i){let a=await t.getTransactionMetadata(r,n,i);return e0(a,C.default,eH,e)},async getTypedDataMetadata(r,n,i){let a=await t.getTypedDataMetadata(r,n,i);return e0(a,C.default,eH,e)}}};class th extends eV{createCounterfactualAddressV2(e,t){return tl(this.configuration).createCounterfactualAddressV2(e.chainName,e.createCounterfactualAddressRequest,t).then(e=>e(this.axios,this.basePath))}getLinkedAddresses(e,t){return tl(this.configuration).getLinkedAddresses(e.userId,e.chainName,t).then(e=>e(this.axios,this.basePath))}getLinkedAddressesDeprecated(e,t){return tl(this.configuration).getLinkedAddressesDeprecated(e.userId,t).then(e=>e(this.axios,this.basePath))}getTransactionMetadata(e,t){return tl(this.configuration).getTransactionMetadata(e.chainName,e.getTransactionMetadataRequest,t).then(e=>e(this.axios,this.basePath))}getTypedDataMetadata(e,t){return tl(this.configuration).getTypedDataMetadata(e.chainName,e.getTypedDataMetadataRequest,t).then(e=>e(this.axios,this.basePath))}}let tp=function(e){return{getUserInfo:async(t={})=>{let r;let n=new URL("/passport-profile/v1/user/info",eG);e&&(r=e.baseOptions);let i={method:"GET",...r,...t},a={};await e$(a,e),eX(n,{});let s=r&&r.headers?r.headers:{};return i.headers={...a,...s,...t.headers},{url:eQ(n),options:i}},linkWalletV2:async(t,r={})=>{let n;let i=new URL("/passport-profile/v2/linked-wallets",eG);e&&(n=e.baseOptions);let a={method:"POST",...n,...r},s={};await e$(s,e),s["Content-Type"]="application/json",eX(i,{});let o=n&&n.headers?n.headers:{};return a.headers={...s,...o,...r.headers},a.data=eY(t,a,e),{url:eQ(i),options:a}}}},tm=function(e){let t=tp(e);return{async getUserInfo(r){let n=await t.getUserInfo(r);return e0(n,C.default,eH,e)},async linkWalletV2(r,n){let i=await t.linkWalletV2(r,n);return e0(i,C.default,eH,e)}}};class tb extends eV{getUserInfo(e){return tm(this.configuration).getUserInfo(e).then(e=>e(this.axios,this.basePath))}linkWalletV2(e={},t){return tm(this.configuration).linkWalletV2(e.linkWalletV2Request,t).then(e=>e(this.axios,this.basePath))}}let tg=function(e){return{getERC20Token:async(t,r,n={})=>{let i;eJ("getERC20Token","contractAddress",t),eJ("getERC20Token","chainName",r);let a="/v1/chains/{chain_name}/tokens/{contract_address}".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),s=new URL(a,eG);e&&(i=e.baseOptions);let o={method:"GET",...i,...n};eX(s,{});let c=i&&i.headers?i.headers:{};return o.headers={...c,...n.headers},{url:eQ(s),options:o}},listERC20Tokens:async(t,r,n,i,a,s={})=>{let o;eJ("listERC20Tokens","chainName",t);let c="/v1/chains/{chain_name}/tokens".replace("{chain_name}",encodeURIComponent(String(t))),f=new URL(c,eG);e&&(o=e.baseOptions);let u={method:"GET",...o,...s},d={};void 0!==r&&(d.from_updated_at=r instanceof Date?r.toISOString():r),n&&(d.verification_status=n),void 0!==i&&(d.page_cursor=i),void 0!==a&&(d.page_size=a),eX(f,d);let l=o&&o.headers?o.headers:{};return u.headers={...l,...s.headers},{url:eQ(f),options:u}}}},ty=function(e){let t=tg(e);return{async getERC20Token(r,n,i){let a=await t.getERC20Token(r,n,i);return e0(a,C.default,eH,e)},async listERC20Tokens(r,n,i,a,s,o){let c=await t.listERC20Tokens(r,n,i,a,s,o);return e0(c,C.default,eH,e)}}};var tv=Object.freeze({__proto__:null,APIError400AllOfCodeEnum:{ValidationError:"VALIDATION_ERROR"},APIError401AllOfCodeEnum:{UnauthorisedRequest:"UNAUTHORISED_REQUEST"},APIError403AllOfCodeEnum:{AuthenticationError:"AUTHENTICATION_ERROR"},APIError404AllOfCodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},APIError409AllOfCodeEnum:{ConflictError:"CONFLICT_ERROR"},APIError429AllOfCodeEnum:{TooManyRequestsError:"TOO_MANY_REQUESTS_ERROR"},APIError500AllOfCodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},APIError501AllOfCodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},ActiveOrderStatusNameEnum:{Active:"ACTIVE"},ActivitiesApi:e6,ActivitiesApiAxiosParamCreator:e1,ActivitiesApiFactory:function(e,t,r){let n=e2(e);return{getActivity:(e,i)=>n.getActivity(e.chainName,e.activityId,i).then(e=>e(r,t)),listActivities:(e,i)=>n.listActivities(e.chainName,e.contractAddress,e.tokenId,e.accountAddress,e.activityType,e.transactionHash,e.pageCursor,e.pageSize,i).then(e=>e(r,t)),listActivityHistory:(e,i)=>n.listActivityHistory(e.chainName,e.fromUpdatedAt,e.toUpdatedAt,e.contractAddress,e.activityType,e.pageCursor,e.pageSize,i).then(e=>e(r,t))}},ActivitiesApiFp:e2,ActivityType:{Mint:"mint",Burn:"burn",Transfer:"transfer",Sale:"sale",Deposit:"deposit",Withdrawal:"withdrawal"},AssetVerificationStatus:{Verified:"verified",Unverified:"unverified",Spam:"spam",Inactive:"inactive"},CancelledOrderStatusCancellationTypeEnum:{OnChain:"ON_CHAIN",OffChain:"OFF_CHAIN",Underfunded:"UNDERFUNDED"},CancelledOrderStatusNameEnum:{Cancelled:"CANCELLED"},ChainsApi:e8,ChainsApiAxiosParamCreator:e3,ChainsApiFactory:function(e,t,r){let n=e5(e);return{listChains:(e={},i)=>n.listChains(e.pageCursor,e.pageSize,i).then(e=>e(r,t))}},ChainsApiFp:e5,CollectionContractType:{Erc721:"ERC721",Erc1155:"ERC1155"},CollectionsApi:e9,CollectionsApiAxiosParamCreator:e4,CollectionsApiFactory:function(e,t,r){let n=e7(e);return{getCollection:(e,i)=>n.getCollection(e.contractAddress,e.chainName,i).then(e=>e(r,t)),listCollections:(e,i)=>n.listCollections(e.chainName,e.contractAddress,e.verificationStatus,e.fromUpdatedAt,e.pageCursor,e.pageSize,i).then(e=>e(r,t)),listCollectionsByNFTOwner:(e,i)=>n.listCollectionsByNFTOwner(e.accountAddress,e.chainName,e.pageCursor,e.pageSize,i).then(e=>e(r,t)),refreshCollectionMetadata:(e,i)=>n.refreshCollectionMetadata(e.contractAddress,e.chainName,e.refreshCollectionMetadataRequest,i).then(e=>e(r,t))}},CollectionsApiFp:e7,Configuration:class{apiKey;username;password;accessToken;basePath;baseOptions;formDataCtor;constructor(e={}){this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=e.baseOptions,this.formDataCtor=e.formDataCtor}isJsonMime(e){let t=RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}},ERC1155ItemTypeEnum:{Erc1155:"ERC1155"},ERC20ApproveMetadataTransactionTypeEnum:{Erc20Approve:"ERC20_APPROVE"},ERC20ItemTypeEnum:{Erc20:"ERC20"},ERC20TransferFromMetadataTransactionTypeEnum:{Erc20TransferFrom:"ERC20_TRANSFER_FROM"},ERC20TransferMetadataTransactionTypeEnum:{Erc20Transfer:"ERC20_TRANSFER"},ERC721ApproveMetadataTransactionTypeEnum:{Erc721Approve:"ERC721_APPROVE"},ERC721ItemTypeEnum:{Erc721:"ERC721"},ERC721SafeTransferFromBatchMetadataTransactionTypeEnum:{Erc721SafeTransferFromBatch:"ERC721_SAFE_TRANSFER_FROM_BATCH"},ERC721TransferFromMetadataTransactionTypeEnum:{Erc721TransferFrom:"ERC721_TRANSFER_FROM"},ExpiredOrderStatusNameEnum:{Expired:"EXPIRED"},FailedOrderCancellationReasonCodeEnum:{Filled:"FILLED"},FeeTypeEnum:{Royalty:"ROYALTY",MakerEcosystem:"MAKER_ECOSYSTEM",TakerEcosystem:"TAKER_ECOSYSTEM",Protocol:"PROTOCOL"},FilledOrderStatusNameEnum:{Filled:"FILLED"},ImmutableVerificationStatusEnum:{Verified:"verified",Unverified:"unverified",Spam:"spam",Inactive:"inactive"},InactiveOrderStatusNameEnum:{Inactive:"INACTIVE"},ListListingsBuyItemTypeEnum:{Native:"NATIVE",Erc20:"ERC20"},ListListingsSortByEnum:{CreatedAt:"created_at",UpdatedAt:"updated_at",BuyItemAmount:"buy_item_amount"},ListListingsSortDirectionEnum:{Asc:"asc",Desc:"desc"},ListTradesSortByEnum:{IndexedAt:"indexed_at"},ListTradesSortDirectionEnum:{Asc:"asc",Desc:"desc"},MetadataApi:class extends eV{getMetadata(e,t){return tt(this.configuration).getMetadata(e.chainName,e.contractAddress,e.metadataId,t).then(e=>e(this.axios,this.basePath))}listMetadata(e,t){return tt(this.configuration).listMetadata(e.chainName,e.contractAddress,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}listMetadataForChain(e,t){return tt(this.configuration).listMetadataForChain(e.chainName,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}refreshMetadataByID(e,t){return tt(this.configuration).refreshMetadataByID(e.chainName,e.contractAddress,e.refreshMetadataByIDRequest,t).then(e=>e(this.axios,this.basePath))}refreshNFTMetadataByTokenID(e,t){return tt(this.configuration).refreshNFTMetadataByTokenID(e.contractAddress,e.chainName,e.refreshNFTMetadataByTokenIDRequest,t).then(e=>e(this.axios,this.basePath))}},MetadataApiAxiosParamCreator:te,MetadataApiFactory:function(e,t,r){let n=tt(e);return{getMetadata:(e,i)=>n.getMetadata(e.chainName,e.contractAddress,e.metadataId,i).then(e=>e(r,t)),listMetadata:(e,i)=>n.listMetadata(e.chainName,e.contractAddress,e.fromUpdatedAt,e.pageCursor,e.pageSize,i).then(e=>e(r,t)),listMetadataForChain:(e,i)=>n.listMetadataForChain(e.chainName,e.fromUpdatedAt,e.pageCursor,e.pageSize,i).then(e=>e(r,t)),refreshMetadataByID:(e,i)=>n.refreshMetadataByID(e.chainName,e.contractAddress,e.refreshMetadataByIDRequest,i).then(e=>e(r,t)),refreshNFTMetadataByTokenID:(e,i)=>n.refreshNFTMetadataByTokenID(e.contractAddress,e.chainName,e.refreshNFTMetadataByTokenIDRequest,i).then(e=>e(r,t))}},MetadataApiFp:tt,MintRequestStatus:{Pending:"pending",Succeeded:"succeeded",Failed:"failed"},NFTContractType:{Erc721:"ERC721",Erc1155:"ERC1155"},NFTSetApprovalForAllMetadataTransactionTypeEnum:{Erc721SetApprovalForAll:"ERC721_SET_APPROVAL_FOR_ALL",Erc1155SetApprovalForAll:"ERC1155_SET_APPROVAL_FOR_ALL"},NativeItemTypeEnum:{Native:"NATIVE",Erc20:"ERC20",Erc721:"ERC721",Erc1155:"ERC1155"},Network:{StarkEx:"starkEx",ZkEvm:"zkEvm"},NftOwnersApi:ti,NftOwnersApiAxiosParamCreator:tr,NftOwnersApiFactory:function(e,t,r){let n=tn(e);return{listAllNFTOwners:(e,i)=>n.listAllNFTOwners(e.chainName,e.fromUpdatedAt,e.pageCursor,e.pageSize,i).then(e=>e(r,t)),listNFTOwners:(e,i)=>n.listNFTOwners(e.contractAddress,e.tokenId,e.chainName,e.pageCursor,e.pageSize,i).then(e=>e(r,t)),listOwnersByContractAddress:(e,i)=>n.listOwnersByContractAddress(e.contractAddress,e.chainName,e.accountAddress,e.fromUpdatedAt,e.pageCursor,e.pageSize,i).then(e=>e(r,t))}},NftOwnersApiFp:tn,NftsApi:to,NftsApiAxiosParamCreator:ta,NftsApiFactory:function(e,t,r){let n=ts(e);return{createMintRequest:(e,i)=>n.createMintRequest(e.contractAddress,e.chainName,e.createMintRequestRequest,i).then(e=>e(r,t)),getMintRequest:(e,i)=>n.getMintRequest(e.contractAddress,e.chainName,e.referenceId,i).then(e=>e(r,t)),getNFT:(e,i)=>n.getNFT(e.contractAddress,e.tokenId,e.chainName,i).then(e=>e(r,t)),listAllNFTs:(e,i)=>n.listAllNFTs(e.chainName,e.fromUpdatedAt,e.pageCursor,e.pageSize,i).then(e=>e(r,t)),listMintRequests:(e,i)=>n.listMintRequests(e.contractAddress,e.chainName,e.pageCursor,e.pageSize,e.status,i).then(e=>e(r,t)),listNFTs:(e,i)=>n.listNFTs(e.contractAddress,e.chainName,e.tokenId,e.fromUpdatedAt,e.pageCursor,e.pageSize,i).then(e=>e(r,t)),listNFTsByAccountAddress:(e,i)=>n.listNFTsByAccountAddress(e.accountAddress,e.chainName,e.contractAddress,e.tokenId,e.fromUpdatedAt,e.pageCursor,e.pageSize,i).then(e=>e(r,t))}},NftsApiFp:ts,OperatorAllowlistAdminAction:{Approve:"approve",Reject:"reject"},OperatorAllowlistStatus:{Requested:"requested",Approved:"approved",Rejected:"rejected",Removed:"removed",Added:"added"},OrderStatusName:{Pending:"PENDING",Active:"ACTIVE",Inactive:"INACTIVE",Filled:"FILLED",Expired:"EXPIRED",Cancelled:"CANCELLED"},OrderTypeEnum:{Listing:"LISTING"},OrdersApi:tu,OrdersApiAxiosParamCreator:tc,OrdersApiFactory:function(e,t,r){let n=tf(e);return{cancelOrders:(e,i)=>n.cancelOrders(e.chainName,e.cancelOrdersRequestBody,i).then(e=>e(r,t)),createListing:(e,i)=>n.createListing(e.chainName,e.createListingRequestBody,i).then(e=>e(r,t)),fulfillmentData:(e,i)=>n.fulfillmentData(e.chainName,e.fulfillmentDataRequest,i).then(e=>e(r,t)),getListing:(e,i)=>n.getListing(e.chainName,e.listingId,i).then(e=>e(r,t)),getTrade:(e,i)=>n.getTrade(e.chainName,e.tradeId,i).then(e=>e(r,t)),listListings:(e,i)=>n.listListings(e.chainName,e.status,e.sellItemContractAddress,e.buyItemType,e.buyItemContractAddress,e.accountAddress,e.sellItemMetadataId,e.sellItemTokenId,e.fromUpdatedAt,e.pageSize,e.sortBy,e.sortDirection,e.pageCursor,i).then(e=>e(r,t)),listTrades:(e,i)=>n.listTrades(e.chainName,e.accountAddress,e.sellItemContractAddress,e.fromIndexedAt,e.pageSize,e.sortBy,e.sortDirection,e.pageCursor,i).then(e=>e(r,t))}},OrdersApiFp:tf,OrganisationTier:{Common:"common",Uncommon:"uncommon",Rare:"rare",Epic:"epic",Legendary:"legendary"},PassportApi:th,PassportApiAxiosParamCreator:td,PassportApiFactory:function(e,t,r){let n=tl(e);return{createCounterfactualAddressV2:(e,i)=>n.createCounterfactualAddressV2(e.chainName,e.createCounterfactualAddressRequest,i).then(e=>e(r,t)),getLinkedAddresses:(e,i)=>n.getLinkedAddresses(e.userId,e.chainName,i).then(e=>e(r,t)),getLinkedAddressesDeprecated:(e,i)=>n.getLinkedAddressesDeprecated(e.userId,i).then(e=>e(r,t)),getTransactionMetadata:(e,i)=>n.getTransactionMetadata(e.chainName,e.getTransactionMetadataRequest,i).then(e=>e(r,t)),getTypedDataMetadata:(e,i)=>n.getTypedDataMetadata(e.chainName,e.getTypedDataMetadataRequest,i).then(e=>e(r,t))}},PassportApiFp:tl,PassportProfileApi:tb,PassportProfileApiAxiosParamCreator:tp,PassportProfileApiFactory:function(e,t,r){let n=tm(e);return{getUserInfo:e=>n.getUserInfo(e).then(e=>e(r,t)),linkWalletV2:(e={},i)=>n.linkWalletV2(e.linkWalletV2Request,i).then(e=>e(r,t))}},PassportProfileApiFp:tm,PendingOrderStatusNameEnum:{Pending:"PENDING"},ProtocolDataOrderTypeEnum:{FullRestricted:"FULL_RESTRICTED",PartialRestricted:"PARTIAL_RESTRICTED"},SaleFeeTypeEnum:{Royalty:"ROYALTY"},SeaportCreateListingMetadataTypedDataTypeEnum:{SeaportCreateListingMetadata:"SEAPORT_CREATE_LISTING_METADATA"},SeaportERC1155ItemTypeEnum:{Erc1155:"ERC1155"},SeaportERC20ItemTypeEnum:{Erc20:"ERC20"},SeaportERC721ItemTypeEnum:{Erc721:"ERC721"},SeaportFeeTypeEnum:{Erc20:"ERC20",Native:"NATIVE"},SeaportFulfillAvailableAdvancedOrdersMetadataTransactionTypeEnum:{SeaportFulfillAvailableAdvancedOrders:"SEAPORT_FULFILL_AVAILABLE_ADVANCED_ORDERS"},SeaportNativeItemTypeEnum:{Native:"NATIVE"},TokenContractType:{Erc20:"ERC20"},TokenType:{Erc721:"ERC721",Erc1155:"ERC1155"},TokensApi:class extends eV{getERC20Token(e,t){return ty(this.configuration).getERC20Token(e.contractAddress,e.chainName,t).then(e=>e(this.axios,this.basePath))}listERC20Tokens(e,t){return ty(this.configuration).listERC20Tokens(e.chainName,e.fromUpdatedAt,e.verificationStatus,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}},TokensApiAxiosParamCreator:tg,TokensApiFactory:function(e,t,r){let n=ty(e);return{getERC20Token:(e,i)=>n.getERC20Token(e.contractAddress,e.chainName,i).then(e=>e(r,t)),listERC20Tokens:(e,i)=>n.listERC20Tokens(e.chainName,e.fromUpdatedAt,e.verificationStatus,e.pageCursor,e.pageSize,i).then(e=>e(r,t))}},TokensApiFp:ty,UnknownMetadataTransactionTypeEnum:{Unknown:"UNKNOWN"},UnknownTypedDataMetadataTypedDataTypeEnum:{Unknown:"UNKNOWN"},VerificationRequestContractType:{Erc20:"ERC20",Erc721:"ERC721",Erc1155:"ERC1155"},VerificationRequestStatus:{Completed:"completed",Pending:"pending"}});(f||(f={})).ValidationError="VALIDATION_ERROR",(u||(u={})).UnauthorisedRequest="UNAUTHORISED_REQUEST",(d||(d={})).AuthenticationError="AUTHENTICATION_ERROR",(l||(l={})).ResourceNotFound="RESOURCE_NOT_FOUND",(h||(h={})).ConflictError="CONFLICT_ERROR",(p||(p={})).TooManyRequestsError="TOO_MANY_REQUESTS_ERROR",(m||(m={})).InternalServerError="INTERNAL_SERVER_ERROR",(b||(b={})).NotImplementedError="NOT_IMPLEMENTED_ERROR",(g||(g={})).Active="ACTIVE",(n=y||(y={})).Mint="mint",n.Burn="burn",n.Transfer="transfer",n.Sale="sale",n.Deposit="deposit",n.Withdrawal="withdrawal",(i=v||(v={})).Pending="pending",i.Verified="verified",i.Unverified="unverified",i.Spam="spam",i.Inactive="inactive",(a=w||(w={})).Erc721="ERC721",a.Erc1155="ERC1155",(_||(_={})).Erc1155="ERC1155",(E||(E={})).Erc20="ERC20",(A||(A={})).Erc721="ERC721",(s=M||(M={})).Pending="pending",s.Succeeded="succeeded",s.Failed="failed",(o=S||(S={})).Erc721="ERC721",o.Erc1155="ERC1155",(c=x||(x={})).Native="NATIVE",c.Erc20="ERC20",c.Erc721="ERC721",c.Erc1155="ERC1155",(T||(T={})).Royalty="ROYALTY",(k||(k={})).Erc20="ERC20";var tw=Object.freeze({__proto__:null,get APIError400AllOfCodeEnum(){return f},get APIError401AllOfCodeEnum(){return u},get APIError403AllOfCodeEnum(){return d},get APIError404AllOfCodeEnum(){return l},get APIError409AllOfCodeEnum(){return h},get APIError429AllOfCodeEnum(){return p},get APIError500AllOfCodeEnum(){return m},get APIError501AllOfCodeEnum(){return b},get ActiveOrderStatusNameEnum(){return g},get ActivityType(){return y},get AssetVerificationStatus(){return v},get CollectionContractType(){return w},get ERC1155ItemTypeEnum(){return _},get ERC20ItemTypeEnum(){return E},get ERC721ItemTypeEnum(){return A},get MintRequestStatus(){return M},get NFTContractType(){return S},get NativeItemTypeEnum(){return x},get SaleFeeTypeEnum(){return T},get TokenContractType(){return k}});class t_{config;assetApi;balanceApi;collectionApi;depositsApi;encodingApi;exchangeApi;metadataApi;metadataRefreshesApi;mintsApi;nftCheckoutPrimaryApi;ordersApi;primarySalesApi;projectsApi;tokensApi;tradesApi;transfersApi;usersApi;withdrawalsApi;constructor(e){this.config=e,this.assetApi=new H(e),this.balanceApi=new G(e),this.collectionApi=new $(e),this.depositsApi=new Q(e),this.encodingApi=new er(e),this.exchangeApi=new ea(e),this.metadataApi=new ec(e),this.metadataRefreshesApi=new ed(e),this.mintsApi=new ep(e),this.nftCheckoutPrimaryApi=new eg(e),this.ordersApi=new ew(e),this.primarySalesApi=new eA(e),this.projectsApi=new ex(e),this.tokensApi=new eR(e),this.tradesApi=new eP(e),this.transfersApi=new ej(e),this.usersApi=new eD(e),this.withdrawalsApi=new eq(e)}}class tE{config;activitiesApi;chainsApi;collectionApi;nftOwnersApi;nftsApi;ordersApi;passportApi;passportProfileApi;constructor(e){this.config=e,this.activitiesApi=new e6(e.indexer),this.chainsApi=new e8(e.indexer),this.collectionApi=new e9(e.indexer),this.nftOwnersApi=new ti(e.indexer),this.nftsApi=new to(e.indexer),this.ordersApi=new tu(e.orderBook),this.passportApi=new th(e.passport),this.passportProfileApi=new tb(e.passport)}}let tA={"x-sdk-version":"ts-immutable-sdk-__SDK_VERSION__"},tM=({basePath:e,headers:t})=>{if(!e.trim())throw Error("basePath can not be empty");let r={...tA,...t||{}};return new ez({basePath:e,baseOptions:{headers:r}})},tS={getProduction:()=>tM({basePath:"https://api.x.immutable.com"}),getSandbox:()=>tM({basePath:"https://api.sandbox.x.immutable.com"})},tx={getProduction:()=>({indexer:tM({basePath:"https://api.immutable.com"}),orderBook:tM({basePath:"https://api.immutable.com"}),passport:tM({basePath:"https://api.immutable.com"})}),getSandbox:()=>({indexer:tM({basePath:"https://api.sandbox.immutable.com"}),orderBook:tM({basePath:"https://api.sandbox.immutable.com"}),passport:tM({basePath:"https://api.sandbox.immutable.com"})})}},{axios:"jhAcT","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],hV3j7:[function(e,t,r){var n,i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"Environment",()=>s.Environment),i.export(r,"ImmutableConfiguration",()=>s.ImmutableConfiguration),i.export(r,"EthSigner",()=>_.Signer),i.export(r,"ApiConfiguration",()=>A),i.export(r,"AssetsApi",()=>eS),i.export(r,"BalancesApi",()=>ex),i.export(r,"CollectionsApi",()=>eT),i.export(r,"Contracts",()=>eM),i.export(r,"DepositsApi",()=>ek),i.export(r,"EncodingApi",()=>eR),i.export(r,"ExchangesApi",()=>eI),i.export(r,"IMXClient",()=>eu),i.export(r,"IMXError",()=>C),i.export(r,"ImmutableX",()=>ed),i.export(r,"ImxConfiguration",()=>R),i.export(r,"MetadataApi",()=>eP),i.export(r,"MetadataRefreshesApi",()=>eO),i.export(r,"MetadataSchemaRequestTypeEnum",()=>eK),i.export(r,"MintsApi",()=>eC),i.export(r,"NftCheckoutPrimaryApi",()=>eN),i.export(r,"OrdersApi",()=>ej),i.export(r,"PrimarySalesApi",()=>eB),i.export(r,"ProjectsApi",()=>eL),i.export(r,"TokensApi",()=>eD),i.export(r,"TradesApi",()=>eU),i.export(r,"TransfersApi",()=>eF),i.export(r,"UsersApi",()=>eq),i.export(r,"WithdrawalsApi",()=>ez),i.export(r,"createConfig",()=>S),i.export(r,"createImmutableXConfiguration",()=>x),i.export(r,"createStarkSigner",()=>K),i.export(r,"generateLegacyStarkPrivateKey",()=>Y),i.export(r,"generateStarkPrivateKey",()=>X),i.export(r,"imxClientConfig",()=>I),i.export(r,"imxClientCreateStarkSigner",()=>K),i.export(r,"imxClientGenerateLegacyStarkPrivateKey",()=>Y),i.export(r,"production",()=>T),i.export(r,"sandbox",()=>k),i.export(r,"serializePackedSignature",()=>er),i.export(r,"signRegisterEthAddress",()=>en),i.export(r,"starkEcOrder",()=>G);var a=e("@imtbl/generated-clients"),s=e("@imtbl/config"),o=e("axios"),c=i.interopDefault(o),f=e("@ethersproject/keccak256"),u=e("@ethersproject/strings"),d=e("bn.js"),l=i.interopDefault(d),h=e("enc-utils"),p=e("ethers"),m=e("@ethersproject/bytes"),b=e("hash.js"),g=i.interopDefault(b),y=e("elliptic"),v=i.interopDefault(y),w=e("ethereumjs-wallet");e("assert");var _=e("@ethersproject/abstract-signer"),E=e("c745b84b96ec5443").Buffer;class A extends a.imx.Configuration{}let M={"x-sdk-version":"ts-immutable-sdk-__SDK_VERSION__"},S=({coreContractAddress:e,registrationContractAddress:t,registrationV4ContractAddress:r,chainID:n,basePath:i,headers:a,sdkVersion:o,baseConfig:c})=>{if(!i.trim())throw Error("basePath can not be empty");o&&(M["x-sdk-version"]=o),a={...a||{},...s.addKeysToHeadersOverride(c,{headers:a})?.headers||{},...M};let f={basePath:i,baseOptions:{headers:a}};return{apiConfiguration:new A(f),ethConfiguration:{coreContractAddress:e,registrationContractAddress:t,registrationV4ContractAddress:r,chainID:n}}},x=({basePath:e,chainID:t,coreContractAddress:r,registrationContractAddress:n,registrationV4ContractAddress:i,baseConfig:a})=>S({basePath:e,chainID:t,coreContractAddress:r,registrationContractAddress:n,registrationV4ContractAddress:i,sdkVersion:"ts-immutable-sdk-__SDK_VERSION__",baseConfig:a}),T=({baseConfig:e})=>x({basePath:"https://api.x.immutable.com",chainID:1,coreContractAddress:"0x5FDCCA53617f4d2b9134B29090C87D01058e27e9",registrationContractAddress:"0x72a06bf2a1CE5e39cBA06c0CAb824960B587d64c",registrationV4ContractAddress:"0xac88a57943b5BBa1ecd931F8494cAd0B7F717590",baseConfig:e}),k=({baseConfig:e})=>x({basePath:"https://api.sandbox.x.immutable.com",chainID:11155111,coreContractAddress:"0x2d5C349fD8464DA06a3f90b4B0E9195F3d1b7F98",registrationContractAddress:"0xDbA6129C02E69405622fAdc3d5A7f8d23eac3b97",registrationV4ContractAddress:"0xd1527c65c6287ec5ab816d328eb83bb4cb690e92",baseConfig:e});class R{immutableXConfig;baseConfig;constructor({baseConfig:e,overrides:t}){if(this.baseConfig=e,t)this.immutableXConfig=t.immutableXConfig;else switch(e.environment){case s.Environment.SANDBOX:this.immutableXConfig=k({baseConfig:e});break;case s.Environment.PRODUCTION:this.immutableXConfig=T({baseConfig:e});break;default:this.immutableXConfig=k({baseConfig:e})}}}let I=e=>{if(!e)throw Error("configOptions is required");if(-1===Object.values(s.Environment).indexOf(e.environment))throw Error(`Invalid environment: ${e.environment}`);let t={baseConfig:new s.ImmutableConfiguration(e)};return t};class C extends Error{code;details;constructor({code:e,details:t,message:r}){super(r),this.code=e,this.details=t}}function P(e){if((0,c.default).isAxiosError(e)&&e.response){let t=e.response.data;return new C(t.code&&t.message?{code:t.code,details:t.details,message:t.message}:{code:e.code??e.response?.status.toString()??"unknown_error_code",message:String(e)})}return new C({code:"unknown_error_code",message:String(e)})}let O=[["49ee3eba8c1600700ee1b87eb599f16716b0b1022947733551fde4050ca6804","3ca0cfe4b3bc6ddf346d49d06ea0ed34e621062c0e056c1d0405d266e10268a"],["1ef15c18599971b7beced415a40f0c7deacfd9b0d1819e03d723d8bc943cfca","5668060aa49730b7be4801df46ec62de53ecd11abe43a32873000c36e8dc1f"],["234287dcbaffe7f969c748655fca9e58fa8120b6d56eb0c1080d17957ebe47b","3b056f100f96fb21e889527d41f4e39940135dd7a6c94cc6ed0268ee89e5615"],["3909690e1123c80678a7ba0fde0e8447f6f02b3f6b960034d1e93524f8b476","7122e9063d239d89d4e336753845b76f2b33ca0d7f0c1acd4b9fe974994cc19"],["40fd002e38ea01a01b2702eb7c643e9decc2894cbf31765922e281939ab542c","109f720a79e2a41471f054ca885efd90c8cfbbec37991d1b6343991e0a3e740"],["2f52066635c139fc2f64eb0bd5e3fd7a705f576854ec4f00aa60361fddb981b","6d78a24d8a5f97fc600318ce16b3c840315979c3273078ec1a285f217ee6a26"],["6a0767a1fd60d5b9027a35af1b68e57a1c366ebcde2006cdd07af27043ef674","606b72c0ca0498b8c1817ed7922d550894c324f5efdfc85a19a1ae382411ca2"],["7fa463ee2a2d6a585d5c3358918270f6c28c66df1f86803374d1edf3819cc62","a996edf01598832e644e1cae9a37288865ad80e2787f9bf958aceccc99afae"],["3d4da70d1540da597dbae1651d28487604a4e66a4a1823b97e8e9639393dbec","45cdef70c35d3b6f0a2273a9886ccb6306d813e8204bdfd30b4efee63c8a3f9"],["1e448fdbcd9896c6fbf5f36cb7e7fcb77a751ff2d942593cae023363cc7750e","30c81da0f3a8cb64468eaa491c7ae7b4842b62cb4148820da211afc4caffb3a"],["6531acf1a7cb90a4eb27de0b7f915e387a3b0fd063ba6e1289b91f48411be26","31330f5daa091889981a3ea782ae997f5f171336ed0487a03f051551a2cafa2"],["54be016394d5662d67d7e82f5e889ed2f97ccf95d911f57dd2362c4040ed4f4","c6cb184053f054d6a59c1bf0986d17090d25089b3fdcdaf185edc87ef113e5"],["35b9ecd0499ca1d5d42dcbb0c6b4042b3733c64b607ca711e706e786ef2afc6","5624b476a5b21c3a544f0712d4817b06ad380a5a6529d323bf64da8ef862d8d"],["4ce0378e3ee8f77ed58f2ddbd8bb7676c8a38bfb1d3694c275254bd8ca38e23","5a16fcbff0769c9cf2b02c31621878ec819fff4b8231bff82c6183db2746820"],["648d5c6f98680a1b926bfeb01c00224c56fdcf751b251c4449c8a94f425cfcf","72c05ac793cd1620a833fbe2214d36900ebe446e095c62fcb740937f98cca8c"],["bd09be3e4e1af8a14189977e334f097c18e4a8bf42577ef5aafa0f807bd89b","6e0e72ed7eb65c86cee29c411fb4761122558ee81013344ba8509c49de9f9b6"],["35ea4e339b44ae7724419bdfbe07022253137a4afb7cbaffad341ea61249357","3665d676a026a174f367bb4417780e53a7803cb02d0db32eb4545c267c42f14"],["36457bc744f42e697b825c2d1afd8f4029d696a4514710f81da52d88e178643","7c93715896735492a68c7969a024b3a8fd538bffc1521538107de1a5f13ce9c"],["5b3a08ebcf9c109cc9082f70d9df2b9c11b5428ee23917b4e790c4c10f6e661","9d7b42ab0c20f5510df7ea5e196eec99342739077e9a168198c89da859753"],["21883ef8580fc06e59481955d52ece3aca6e82c8c9fc58e216dcf46f96990c6","51a6423543e6e8a43e71da34cd90f5b520b8d33b67c4bf857573ab9e301aa4c"],["19e86b77f9b581e81092b305c852faf53940a8f15f0a6990c414f04c0fa7ef9","515630e35d4398c9c79fc4ee08e1023fa47d8e03c6e7819c6d2ccef45398fa"],["888ab8eb4c31bb2ac5b54aa320dbe1a69c96b864e8a5f54d89c1d1a6b86c24","730e148467f6a55ce22c5296f5380df88f38de76ef0b2de844cd3094aaaf3ea"],["75e79ff13a894e7120dac17b7429c0c32ce7828f726c9973728c0977a5f5977","4960526e59c1c736561a201bc56f7d762641b39f609d273cc996f5d9197cfb8"],["640fe009249115d7254f72ecafb3006139e4bed7e9041af51458c737282d1d5","3cc6c978a575246e2ce4f7ef1fcc7f63085db9ff98a1b1f3fe374087c0332c"],["6d6fd09ccab7c26de9b3906191235deb5c34685580c488275356a05e209ca96","7157f81a34213dd8f91dea4f6df1bcfabc4ee091a3049eeeb3b7923d39b8645"],["5531ca1d00f151d71da820918f74caf2985b24dca20e124721fff507b5a5876","518529643d3f25e47f72c322223ba60a63d6bfe78cf3f612215d9c19bf29200"],["6192d454e4f8fe212bdfccd5b15dd5056d7622ffe456c6c67e5a7265aea49c4","2377a45dc630017ae863cb968ddb38333a70c7946d8684e6d7a6213f634b7bc"],["542fb44b4ef3640a64fdb22a2560fb26668065c069cf31d1df424819a39ff18","5dbae9b0948e0361aea443503840341c322aa1a1366ce5390e71bf161f78f8c"],["299ff3e3412a7eb4cb4a3051b07b1be2e7b1c4b789f39ffb52cba3d048b71de","1951d3175c02761b291d86b6c0a08387ad5e2a2130ccc33c852530572cb3958"],["628ce3f5367dadc1411133e55eb25e2e3c2880d6e28754a5cb1c5d109627e73","ae3e9b7d50964e28bd15380400b7659b87affdef5d2586cbefcd9be7d67c0d"],["6ea54aff064895eccf9db2283225d62044ae67621192b3346338948382f5933","6431507e51aadacfaf39f102a8ff387756e9b5e1bc8323d44acae55130d93db"],["28097d50d175a6235320fe8cfe138dd9e46895d189582e472c38ad7a67d923a","7f9eab4133d7d09a7ff63368d6135c26262b62336eca1b5ca33f2096ce388ba"],["619fd09cdd6ff4323973f256c2cbdcb224f7f25b8aef623af2d4a0105e62e02","2c95f0ae11d47eeae1bc7f1350f75f9185c5bc840382ceb38a797cae9c40308"],["641c18982ced304512a3f2395942a38add0d6a7156229c2a7c8b8dfbe9beb96","6f6288c9c659b6af5ac975f4180deffe53d516399b2cc62f31732e9d4ba9837"],["58ab546e51fe49fc5a382e4064a2bd6cfc268904412f86c26de14f28a71d0f2","124b7217943e7e328408e8afdfa7da00dcbc94a2bb85fd8e01fb162d2c2c0a9"],["a82c2fdedbb26c3c762a12f7e86b0e01e65320e0a25a8399d665f6e266bf74","1a1de28e253f3e10f44d0111e8074f882d7f42e5900780ccbdc31da372d3fd8"],["744c725a7455a992e3cf5bd007bc234dd4668dba285f553f38350ad94c1615b","7f721a87f48798bdc4a9c0eb88559e2ad7a74112fd901e70ea159e67a9c33f"],["434df142ddaa60f7881b6348d91687de40457de7ccfb07f0304b9e820705d0c","7fae425e3b53f97dd1f5b20e49ed9fe24ff1efc341ba5e017ac89cf8df0cc39"],["7a1e2b809dff46277021cbc376f79c37e1b683bbd6bca5317014f0dc0e1ae73","56790278a231912c334eff05281e08af1558e85516b4411ef64647c13bea431"],["4931b7990348d41cf8907be79f45bb7991fd18f8a57868351c92fa7a34cbcd7","ca35091815cdf0837d396e25aad6052ad32d497a33b123256cffdc008bc50e"],["250b815d352fd89f8210b624b147ea7d0a4f47bcac49f3ac9b777840da93ebe","1173f10e9691948b7da7632f328520455aadcba46e017f891e0a1d7da2bef04"],["2223b85032fa67292f6e1f822628e6756e5c3cc08fc252ab88d63d624e4dfb2","55619ba96a7dcec77832fcb22cd5c21c7dcebc0280d730cba0002b67e0a8c63"],["249b131e04de73af9820d3e22492d9ec51bdc0c4c4f34d95352fa44dd61f245","7576d3b5d136368ff01170a77d8286d0d1c7c40688862fb40813b4af3c6065e"],["6777915d9b4769027eb7e04733f8a2d669c84fe06080f55e8a55674dfbf9efb","640d0ff384c9635e1af364760f104e058e3c86209fa9d2320aeac887b2e02d8"],["2abe3f237681052f002414399111cf07f8421535af41251edc427a36b5b19c9","636ce4deaf468a503ab20ccb2f7e5bdc98551656ebf53e9c7786b11dd9090be"],["4d5cc5414758ea1be55be779bd7da296c7e11f1564d9e8797ceea347c16f8ea","1a680c4c410cf5ddc74e95ff2897c193edaaecce5b2cde4e96bbae5c0054eff"],["46c375c684b30adf4d51de81e92afee52b1a3847e177403372c82109373edca","1eaadc5783c90a0261306423d52009e991126b3f620e9cb6cffca41ca096f4f"],["2ddfb71f51205888118cbabba8fd07d460a810289bfdeeb7118707e310cb152","1fd905d07b3933be886f2518246bdafa6f33259a174668808223cd7c28183c7"],["386f3879960713d41fdb3b1e41bbebf26b1c0e27a9a75bb1adcc1a0d3e8547b","2b21498c0f34ec6f17c720334dc0f36021c2f87afbbbc8847d0bd536eb265e5"],["407eae62c6c4de3b942195afec3f45efec71ddb5e6edee3d427631bcdbf9b90","436e7f2d78268ef62c4172d2ff1469028bad1f1d0f97ab007064418e61caa8f"],["1b881175e21201d17e095e9b3966b354f47de8c1acee5177f5909e0fd72328f","69954b1a9b8bfccf8ec384d32924518a935758f3d3662ef754bcc88f1f6f3ec"],["7d545a82bff003b8115be32a0c437f7c0a98f776bcf7fddb0392822844f3c5e","34b6e53a9565a7daa010711f5bf72254a4e61da3e6a562210a9abc9e8b66d69"],["299b9fcd4fadfc4b6141457a3036aaa68501c23df579de26df69d4def89b913","b95bf2c2bb303c38bb396382edc798ca6a4847e573ce19b7b08533d1912675"],["551f5a4dae4a341a3e20336a7d2f365ddd45849351ec6dd4fcbedfe4806d5d5","5865c977a0ecf13ce85ae14c5c316872080bd36f0f614f56b6dfc7ece83792e"],["7a1d69c08e68c80ad8b310736e6247a53bcba0183b9b8798833bc696a0fb6e2","3ce803a20ebb3b120d5eaf0ad64bed0522fad1a0f2ce39a5c5cbae98c4438f6"],["28acacc0bc41d84e83663f02b36981a2c8272ecd72d3901164be2affb09c504","7a5aee0b160eaff5b5968ab1a0304ce58c3d5ae0148d9191c39e87668229e5b"],["1f78cfdbcc767b68e69a224a077468cdfcb0afd6952b85bccbdb96d1fb8500b","4772ba173c6b583284eb001cfc2a124104833f464ff9df096443e10ef3e9dd4"],["2774108962ca9897e7f22c064d2ccedac4fef5fc9569331c27cdc336c95774b","9e13d79b68e8dc8091c019618f5b07283a710ddf1733dc674a99fc32c12911"],["770d116415cd2c4ace0d8b721dd77e4a2ef766591f9ec9fa0b61304548994ed","42165d93c82f687635aa2b68492b3adffd516beb4baa94520efa11467a209fd"],["5e6e4ece6621e2275415e1fda1e7c4f496de498b77c0b913073c6a6099394b9","3d92ce044fc77fa227adc31f6fc17ef8b4ec1c5aafc44630c0d9195075bf56d"],["6e69c717b5d98807ff1e404a5187a9ceaf0110b83aa15a84f930928b1171825","1ee7cfc3a9744d7fa380ba28604af9df33ac077724374c04588bd71fa16b177"],["404318f2d2ceb44f549c80f9d7de9879d8f7da4b81e7350c00e974ebf2daef1","3934831b5af70d17a3f1da9d2931bd757e6acf2893236264fc7e0d92ff1a1cb"],["20dcb6f394fea6d549b2e75748f61b7ec03b6e52319cb14163373a9c22bb9dc","106a8c96cfb95a331618b7416d1498554730499e194a58fbf63019890480fc7"],["119000f277ccee013e6bb121194ec1ab5460fb6a96eb702a14079865f4170aa","1737a32f5415e8720a5606ec1dd4756f02e7c6817e3723b453d091f2d192773"],["45d0fb5cd95db76d05dec3faa12e467a308eabaad363a062353db3cd2d9b749","ae08691b5b0cdd19ec499132421638f470f493320e4003d123ab1da761b965"],["1257b3e65cdfb6367c6d0942327e799bc66eb221e70c6573a9862889eb51c38","593309fd45755dd2cc4afd2b9316bc4638b0c5ddb3009694fcb7b250d0c8a2f"],["186dcf9950f72e868014a8accf14aa36e82a7a2a29f86ba37f6632da4189db3","55684c9f7a043fc523ed78f756f834b4db823d5e4161bd79602c17d55a5cd8c"],["58791d5569f282f5c3b01ecdc9388df7ba3ca223a2dc1eed5edaf2a1d302fb9","6298d7dd51561a045bb4089deda9f40b2865589ed433e56d54554f8b45e79f0"],["13fd87144aa5aa4b24d5a7bf907d8280d15937fed262d41084898cb688fc28b","3fa54367770cc4479a857411ddcabe86627b405ce1cd14ad3b2863bde13abe4"],["48118139445415f0c1879224e2dee744ed35280ff00537260402a1741ec3676","4dfa39dadaabecfc54ecb7a25319444f8e952782d863790e42a9887064fc0c1"],["4ad031bb9eda84f2fe5d354c7948d41558ca657a04508654721810ee72ef158","620ebd5d0086b92c6009a42777b946a351c2c7ba852b57d3c9905fc337459ef"],["4a34abb016ad8cb4575ea5bd28385d2348e5bcc0cbba90059f90f9c71f86e8b","4f781829ad83f9ed1e1b6de0e5f4ac60dfdfe7f23cb4411e815817e705e52c8"],["7fc632d7512aab5356b7915dca854c8b12b369ab54f524fbce352f00eb9b9f9","2ce80b944fc9158005f630b34385d50c3ad84450a9e1e529925b3211dd2a1de"],["65ed10347503cbc0216ca03f7536cca16b6abd18d332a9258685907f2e5c23f","3be1a18c6bfa6f2f4898ebefad5a8e844c74626d5baa04a820d407fe28bbca6"],["1a8abba1be2e276cdd1f28c912280833a5ede1ec121738fcca47dc070dcc71d","21b724378bc029a5199799df005922590d4e59cae52976f8e437bf6693eec4a"],["3a99c22dafcfe9004ebb674805736a26aeed7ed5d465ae37226dcbe270a972b","5bf67552af08e1e6e2a24bf562c23225e89869cab9bef8becb3669175a3c94f"],["4a6a5e4b3501f2b7bbdd8da73ea81ffca347170bdfb6776a037cdd74c560fb4","5af167ebb259c2da88740ec559ee04052bb66480b836cadd0e2590c32d7111b"],["6890d95308525f0bac9dc25cc1189eb92d29d4b3fe61bc8aee1c716ac17b1e8","e6f23f78e882026b53ea4fac6950e56e3da461e52339eb43d2fdb2dade7ca9"],["748f4cf4f027efdeaed7c7f91ef3730ff2f2bb0bfc2db8f27aadde947f7d4d5","3a1cbc550699411052c76293b8c41a3a8a1ecf12cbbc029a1b2b6ea986fca93"],["7321f3f581690922cd0dec40c9c352aae412ec2ccdf718f137f7786ab452cd3","5be5130c9277cdb76d7409452438ec15d246b211dd1e276ee58e82a81c98fd4"],["6c4d6cb7e7ae70955224b8a912ff57ca218635a2436b36cee25dce8a5cdf51f","32f8c03c6db3246946e432e4148e69f5628b200c6d7d72449df6eeac0998039"],["1dad5f2e795ea6fa5177f110989516eacf8fb37bd6a091c7c93f1d73a2fe309","56b2298c538180e99dea3e171dbb5c6fba0bd0a9ed40537277c0c2373a8e2c4"],["1610605baacc9bc62c4cc923dc943347cfece7ae241e746fbe6c2c878221dbd","431a82d657e0d109d00dea88cf3fa9b999845221b7b5590a20c40fc71368c1c"],["6a4f5c787fb09a5be2b04d2eafa1e6f3d3c863ee22960eb0b64f6eaf6659162","14dbc3eaea6146ee7eaace5a91ed9430dad3a47e9ca2f68b455171f8fe6a7b3"],["738415b73e55412b0e582e45ff0d7bf4b1bf2922db581783fdcc75559f40e","33825aeb3fd8459999eb418d15102ba5864b069c6ea517f0c6e9eab8d9aca47"],["2603e72ce53985c70782774057a17944f7b4ce224a809be4e2b5af3606aa1d8","92822921809c42318f42dac4d773325f41c43069e990adac7818a45e2554dc"],["181cd967ab4615357cc96c82eae9152ce7598c1a1dfdd91a458bddb016ae9fe","5d562fdaeb0e12647e230e50eaf216bed52fa73c6b7378821a3bfc4cd66d4ff"],["1121726069b9ef5954ba6490100b226e0be53fef3e071b7c58a1286174b789a","4b25594cf4e9eb2d14b3f52f2661a9992234fc222c0a0d44517cb77deb9c16f"],["e543663969b915337f105f80995a77b356f1a51d8b4a4fb12d44364130e873","34b2e3c009fdab4cb7349a580df2e64c0098a123280078e5da6623a9ec6b44f"],["4e2f8909bb62de5ef65600e61bbf969293815296b6e23702875e049b3ce5c45","3cb81f2c21f22a7add26fa38a9ce5d9cce1bb251bd2698f90c34ff0a84f7af"],["37b546e403a1ba970c17b67c2f1361ab9c803f8d2b5cd93803014faa08861ed","37079184ea46272f5809b523d060686633f7995167897a153be1772fd6566f6"],["27bddca77f7bd7f66b3693567a4238f2e6751d95b0bcb409f6b24d08f84798c","6417a85cbfd6fc02df560d3963a241a986baacdfa423f65d7227ce49a96c57d"],["2de71a39aa043057d1bc66e45f804542acddf18f7a6d88c0d7fb0ca240debdf","306c1ce39ab46300f7cca0f3a2fbfa77296a27e24bc66b0b8044968ec0ee413"],["307c877154364c0c03534e7327d5a88e1380ceef6481567ade37a14ee7c1a72","3404bc7dbfb33b95d922d0693aaf9358f77888d7d95e773c38d83dbe2e5f995"],["79f09ff7c60850e5f5ea020722659a1ed27db4c95dca131f99552f785c8afbc","40429528c099349b426ddbf129497176951a64a53db5f9d8bd2be0252cb22b2"],["4027dc6b56d446e5972f35464eeac85c5254ef377c902d9fe37aea841bb5292","7c3ea37689ef679fa2f5c7e031a78e23d484a8317990fd34d44d95cc1db3717"],["645dbf78a3c228c4b7151450b5e65edb58e71f37e1e4bc5f471e0f1abd6d9c2","15cfe7850f327b256e23b00627451560c5c6ab60db78d45b7ab286afb6f13ab"],["1503ca373757677ad1d911a2b599d01c46eb879d1ce21ae171c7e439846a85f","583eb269b7030da6a0c324026919de3f9489d2ff6ae0e6320c36f05469ad66c"],["66e1819ba3ec4ad4ae9f7d7588d23baa004e29d3aad2393d52af204a81626ca","505249980cbe6273b82ad5038fe04a981896f4117345ac1abcc67e2525c0ee4"],["5ec20dbb290254545f9292c0a8e4fbbfb80ad9aab0a0e0e9e9923f784d70ed1","bdb1ca3a859227cf5d00eaae1f22584e826ed83b7ccdb65483ed5213dc4323"],["a5c1a5011f4b81c5c01ef0b07c0fbf0a166de77280f0ae241f2db6cba15194","4444521fb9b33d7dfeb1247d0ee1a2b854ad166cb663d9dd2e686909362a689"],["1f35335de40e00c62642dac2fda8b30f071986ce4f11db849df11bc45ad4e0c","7801a2c761b90fd4477ba0be9a775003d5dfcd959b1ed198b4681f15e7acbf"],["48db4798cf6821c1ffb8178b1d3bb6020e04186c96aaf4670972d367f4ed5f","781019494df95b888f1578f1b4a3f8e125ea60eca47ef9207a10630671217a3"],["17f653d904210148a8e74d8e719a3061683c164aa6d79c902a19f185ab437bd","6780e97985932c3860d810af1e065d454b1cb4be0e7ffe2d8cea7d52526e223"],["5c4d0c7432f9b0070436240f9855adae1467cdc9826952ae01b68cd52a3ad89","1c5747f968ed91261b7ae9bf1023c999da9816e37de602d6a1a50d397752bff"],["6fedd7639fdaa2f7bad4ca0b391710f6f8a7e890250ae8ae4252bb8b39a1e58","436a215f655a3fd3778b2335ffdc9aca6b98474e43d764c1f8362830b084f0e"],["7fbd45a889c5e9d127bb4f8474d6be7cb9796bbfff923b75e42a1ad4cae37d6","484bd12622a6ba81cd53049c550d9ed682a8e765b656b1cbff9bbea637bd1f4"],["17d984d47937263f7966a3e7b1eea04071e678494bd749c9e02b48b3234f06d","7b341ff08722c4e161005d0037204a7a2001fdda7af2cc1a0b04a027f115a0f"],["7f1822045db45ea07e1519c3ee1f7705915f35fe4dd8db1e8921b5d1c740edf","33d41e06b93320ad1b3d9580380ec797a05dac3f1cc8008899110ebefde2f78"],["7b19453ecb74b7d0e2a66b9890ff73bfbbcd61a266abd6d82dbe665bf32f34d","6dba2355420dac582b1f349609ea1c89b89bba2d1a68a0642f1dd12d86e73cb"],["273e82a15f395ddf2489a95685bec8bac62c4b459d1b28987d3cb27e4bc9128","653375b48a4cf5d5b101c9ef533039bedce5dbeef3f59e8f168bdc99b06ca5f"],["3006c9e7fc6a553d8eb4e8a47ce9f10d1a39576ac255ae9e0a4ce3869e76212","65fe9e2ef2aae608be309332d464f57e28f1df5de1a6a519751b056971f932e"],["5e8f384c8a4607fbe9789fcc52d54249d304d698562597d114c1d81452d3dee","3c8bc78066b5d947dc1e405e326ee55ea606c7988f666748d259850fa259a22"],["7841b2102e9aa103fb53a642b3e167b21113ea44751ab38e0b5ef8312654db9","71bf5c8308fcf9c4a7847494cd9bdd946fddf7d3a37e8bb0b201ff2343deb8e"],["40f68027420c11e3ade9aae041978dc18081c4f94943463aac92d887f922a62","499c6062594a6c7e21a3cb91ea451813393bff365a27a08f1a515439b83cf42"],["6ce77a50d038b222634e87948df0590b79d66087b01e42b9b6d8fa30ebb1465","35f5c46bb1be8555a93f155a174d54ec048c2ac8676e7c743054ddc52709d37"],["604f8b9f2dacb13d569262864063c2d4bb2b2cd716db6eeb2b1eeabc57746f6","68c6799e24f3b44eec3049973445174727a66970f1614a782efa2b91ab1e457"],["73d620f3bfe77f672943d448d7dc05327adf64b8e7af50039c469d7f7c994c4","4859deb36eaf0c802f0d1514602368143a33ec6ce8fd55248b59025debc6afb"],["3fd2bcd1c89d706a3647fbd354097f09c76636e93ae504973f944d8fc3bcc1","677ef842cf5eb2444941f527abec567725e469469192354ad509a26ebb3d0e0"],["39222ea924ac17b533c72ffb2c47ffdc11d6a7f7c70fbde3a10fb0b8f35eb2f","20dc4bd1089019bc1d7379b4feb3eae6eb5af59e9f253845da9fd633057e952"],["326f58994e1347f62e4102183215b5db956378d2f61f14aba4dec94577f53c","7a03284c296003bbe05178a1d82efdb7b8125511d63e20e50aed789c2e52e1"],["53aa8939c74d4ee58f03bc88bace5a45c7bfcf27466201da05dc6723a5f5632","2e32535ca7732904a048183247b04b426ecf9b39fc393a9cebe92fb1dc7a7f1"],["6cee1a03145e93b3e826e6067005f09c06099c98198c91c222407ba5c8c132e","beaecad1274e7c6e5476a100c271aa1a6f86ee5a9fa5c2f26124d5886fa63"],["3ec659b8175e1be1bd5a252108714776b813e330393f587814f5f1f32a73332","529a5cf9f8c237ae69a94217d173c8d19c156952041f5c980da557990863fa7"],["3d66ec5963d0c534d4139c8cef2e1ac48b3e7965fafabf58be26f903318af4e","3d3f2de7a95f59b683725ee6283cbaf31f97c4b600df9a4621413223a468740"],["7fb38ace8e0932fac2ea0d3eb676db8d684db1817e2e4d59da7996ce398b4a","68f92bd5768cdd4710249f9d49ef1d5654e497b9a4ba10bd2971366d83fb400"],["1c4a49314d6b4969cdd142c76ceb7682bfb868ace7f7568b0fc8635bda5a9fb","5fc0519f1f4cc10b5771312458748c036313b87707ed0540026ac64a5955aa9"],["3073c95d08d3b97caea5f0be16b2789bee766f76b7e5499f8ce8f96abb0f344","52a8974b4eb9a1f6a0ae2c83cb4715bf18d73f057255fcb3f63b74f7e78f590"],["44485b16d597a5de3604df6f7ed7e00b8aeef9e7e8dea8688255153b8bb16aa","6cccb0ba170123266f24b5d93a744397dc2c44820edc4f8f5b9a0f5c9b3b940"],["7618f77b7b32d512688dd62e0b48231d9574c6361e8be353a7dc04f7c3a115e","78ffcd16d80636381ca231aae70d99c9e20298b4f5388fd823ea9fa2b8ddfd9"],["7dc82fee1ef95cf5b3720fcc07f63246654bfe39762627839da40e51c75654d","4c0ccdd70955da74558de20c88352df8a02aa97e4d5971c500e884740a8cb62"],["7fa5d460dc10cbb418b444d9bde97e92c70a99a222b99f244dccee7e62cc04c","636163901baa5b7576c38c43407af578b8c4607e01e86011ae2dde587a89f84"],["758930d46006623a756c89bd0cc378f6a3c1f43c9a0edbb42274c35e75c16d2","1d74dd9f81c2fec811b8cbd6168a745b0a111932b2a345265ef2853b50b6245"],["7332ee0626b044d664ef228f8cb84df7c643e52f6a2591ae1c9007ad61ec16e","229bd8e630572cbdee54283234cf3e9f060e6382f99943bf234119d47b54470"],["78a16ef803aa20a075bb2f66c61bb2dae5698bebb94a0995fa74c3d53de1614","246d588b68edb6fed96c128349908c42dcd64c46341b205e79f4aed9b5d3675"],["6e1933939bd03b67bba753cc0cbe7d2f25bad68c993887ef8c9e2fcd59b0647","599413f7c204a11a5ce315eab11299ab7326603412bb00bc1c59ff75a37d6b4"],["4a79957a5a1888ad063b51c69565a2b48e8eb917183e220a1c8d3374526d30e","1f092de0e069bba7fc5386e2e9a114c1618f88c4b95e220cd35ffe96f99fcad"],["3148aa3df9ece39aca84f59489f2710522216f14be6055ee0027529d1d55e2d","617e9a52a92975db0ba1977f71116f7058a0d31b869ac7f3ee2fd80b0c5100c"],["5c1188e72384160ae39d07328346cda4f6c12d227448e6236f04dc971625287","1643006eb3a3bc6aafd5f685cf054f2a572e6ca58c0118bcec0b833741f116d"],["3f72efc93c9b71adc4c51d8fc69d3940b20d08733af2b7d05140fdb1d1c1004","7399259987c8f4ebfab46e522380707e58427d3962ee0c2a91760813f76d232"],["3129b34c03c51aa8f611e91d5cfcc9bd3ef108ee66e6d3ee35a0e0e50055bb","563b18b5650085efb4cf179a029e6afff27b1d3091cd28eaa68d24fa1f801c6"],["16eac0f9fb4c67cf89a7fa4ee615bbe731d8edcb709a1b9b50c7d873a530f52","7ff8288b6e199ca8f316192881424a37fb080c29daa76b1f0edaccaf580a80e"],["75f6b6028c43ce832f65d7e8e620d43b16cba215b4b94df5b60fc24e9655ee4","35e9ccfaed2293a8b94b28de03bcb13eb64a26c831e26cc61a39b97969a2ff0"],["3c6152fe093bd6316897917ec56a218640ec1b2148f21db9b14fc7a5ff362e8","6eef2df27ae7d63a28856b07b73e7aad7ca94f317201a1e675ffc6f9a1710dd"],["54e01b5fe4fd96052aad55b3f26b1d254dfc7e2525fffb9ae0a77eb8cc5579","7c3d39232ab333675b219abc766ed9b4782c840e6b046614dedb8a619696eb0"],["d1e63f8ea8a76429cf254a6d3b668761f0dc572d4bfac4fd56d9eaf58fb6c0","2bd0a84d3908a63085824c9329a0983913006ba155b56a58eb3f9becab29c45"],["2d6122f2a702edd4da7385b1580796a71d13bd72be94cfb3fec01149c006c2d","70eb282fae992efa6f5915e578b640653549f23385ef3a29ab29b1b9b8ad63b"],["752fec14beaadb5ddbba6b3a17fcb86579fa588ef407fad0ea07dbb22a640d3","3feb6728eca21a1e84e8f9f23010387a53a96a1cb62d86fb37996150a1299ef"],["63f94a92f27acde8f5ed949b459506f51d70c85bcc61a34d647264ecc53c65e","37e5dce0646ee66f4fdb93b82d54d83a054948fa7d7fa74ab6b36246fc7383e"],["d6aa909287a2f05b9528690c741702c4c5f4d486c19a46c38215f52ef79c7b","5ebe1128dd81093df4aca0df365d58adab848d1be1a94b95eeb649afd66a018"],["12866812b3053e2f7a9572bdaf5ef2b48c6fb62a0eed9ff0356df50e7d05557","6785f7eb2cd1c120e4c7167b46861d10117040a2e9f2ca86a71e9d67df90613"],["46a730d05330b1b13673cb8a1b8f45460035e4a9f1a1751cfba099c4355c1c","76fb0ec6cd16a8141cdcd875c8b2de9fce42d296072643d148ac7e7fa7472df"],["4bd4380a22900bd34835e0a908eacf4b6edb61eda0cf483f9212453b37e7516","5e9551cd20d8d7ddbf4366880b7d5267385afa1966ff30da4baaf273b009d29"],["71f1994ad40baa2922424ae222663a64f93d8b67929e9a10f9e4c1ab19f3833","85320fe68ec0d37cc19fdfd03589d66906ffa4046c80e1b094a85f27676346"],["5a63b1bf5232f28f808765c6be7ce1f81c52145b39f01c879fae0f4303bee61","3bc5d6df68bb6d0577bf9ae2ae59ec0e9b2dc7dd56ea179fb38a41e853db950"],["161ded55ff1087032381e6c1449704f63ad2d88df82dfc44a71890fa09b3941","78a52e0013842037274ea75daaf8eb4afc04ccc4b07bfaf3f5ee47d165e01b"],["1bfce5229c5fbff5c0f452a22317fcfcd9262f23df41840f84fe7d44cfba1a1","66b387872c00e63c73006a955d42cf49c46c5708fc9d1579b9ae38341b24a3d"],["56d47dadc9cbd1dcb2ee3efcd5d4af5e6aea71df10815c68b54a14e81d11b44","47e966ba54df48e9b612a903685e0060a67e4725402e8cb4cf654e54e813a3e"],["4b1c44438afd4ddf20a2cf612df2ee494ce84c7274c5529e857693e73018491","430403bd31d8f0677e06abff7159384560f27b9622943fea1a3192f14bf40d4"],["7f7281728fc2214aa1dbf13176a4624b53814734abd570eb6ef7c7e32379606","312da47be347fb3fa2c9089b38df372560dcace2effeeacab4d96ab11567295"],["16a28884a1be8183e0d3fc0db84a9afbf47126fd3be548c2a584aaafbfa7dfe","7c3f57b3b895564ba562c1cd80b71fda6d2e611665c6ab87744f5390858fe24"],["323339f37b327a731232a9580e79952063c7c232bd1380146d8a83c285f4b8b","4f16be1d983c7232f92cce6b9690695978d42cecc8eeb8c206e125d1098a265"],["624d26cbaa197e104eb83cebf2adeed09a5cdad359993fe5e3529d4d0def21d","261b7da3cfb55c788977e0d8d640e3e93ae5a325d962ce85c816d7d32cfc430"],["f24ecb7ee83a3e28dab54a330dc93d0429a7aea36412e922dce8fbff40d60d","b043e36a258d1df1d21b0cc7be9c4dcae1bd4ed326c110e668ac23d86805a6"],["686cea46b710bde1231483bfdbc700cfa3da6ecd5841c0e0c782f9ea24328ec","7eb7407aa58edd6911c7c7e8d1e03bb52ead4a2415a0c33325872ff3a521dd6"],["3866ee1186264549df3dfcdf8705c0380c9372eef6d4081c2454d3aded1720e","634c6d3e8eb8af652a4be73e3b613452c2213104ca875b66b4b15ee5b1716af"],["484c687cd2969a1d20a58cdfb9a60f280a473284503b1ecff5de514aaf8206b","34d44d26b7427e51a646d1b924084762f5b461685450f21d6a472de565bebd8"],["203561333771fa0fe22c4033349f7b877d15b0542a5598e81e067968768247a","2b6a533aff6e2163a36a2a89cb7415848bef48db40f952ffd380f47676707c2"],["2ffa6cca6233695760251206fc5e34c8d3692498589478cdd3d5b09f0b7c05d","6c57d605478fa9626c4ed769554d075daa53e1a1d0bd4d94174d3bfeeb11ad6"],["5dccf0fa46a5571f204d0b033b45f299cbb3d9f80fded57253ea4f1c64faaef","30a38e131ee8756ee5ea2a3e16618a5dbc28b5b9311308bf037ecc2039dfc7d"],["57b0a2eaebeafd950221facdd24790d7d1ab8883e5c5d55635f0d14a1ee4741","7b41cc478fa6be38417271db8ed12efc0da6982552c1496025d2df0576bf4ad"],["611b5725101f611c387ccaa13889ecf3bb5595071a179ce350029bfca4ad7f1","3129755977abc8995fec7eec1123a1561e429fde37ff36af002d3211831ecf4"],["1c06bbd0c52fdab9fcaf680c7a93fb821e538a2ed79f00f3c34d5afb9ea6b31","3873d3bdfe0be0157bbc141198dc95497823cc222986d24c594b87bd48dc527"],["275cdbabc989c615130d36dabfa55ca9d539ed5f67c187444b0a9a12e5b7234","2b7f723e68e579e551115d56f0ae71a3b787b843cc04a35b9f11084b006521"],["6cc702eb20f8b5940c7da71f8b1801f55c8c2d8e2e4a3c6c983f00bc1ffdd95","5d15b3727bc66f3aba6d589acdd139fae115232eb845abe61fbdfc51341352e"],["44defb418700cee8c9bd696b872adb005490512d8bba081f8f99a9f15cc981c","3b2072cdb1d919b2b65b5cb3557f0a3381d7ca293c267ca4a38f83e77bcc96e"],["fd83ce77b1578b3a9b8c3cbeaddb1504d2fd4a19c901c21ac65961224e4966","110cbe64fc10c6b9c66f15ca406a35f50b723b35d83c5eb9797a57f8395f4f9"],["9dc6ff90e341875e113bbfb507724dc7095a280d2f32cb6ba61a1e0c2d2aef","4aeb622896c852c2747454e8f172c9482955a42ecbe522d6ce07ecde79d0a51"],["71c58b0e47b9dd9107ebd8a8c8fa9f0534e78231bac612c1ddc7a94edf33eb7","7f90edaf4792bf8334adbaa0f4ee7c654312725af188682d75f34874c4eccb9"],["1f6de1f14988778ceb2dfe844f92394f1f1e72fd1581ceb3bf336c95ce50345","4f6007ed4e022d2ee9fe4ca8207c5f6c766c4f3b85260e941fb24ad0dcbf0bc"],["3ddc3ac25ede4a67a97547ed27dc920239b585fb3624177e2e8d59eba678115","a9afd8f8bb759cbd1dff2addc63f47da4ba1291ea34229c09c0637dc5c8d24"],["c56b0269d8431556e471cab9d70edda3a37b391696f107b2dc370631de51d","729c52f6b134f733eb750c14bd9f95c077f0f6f6ff4005701e5bedc6544599d"],["44d32ce19ac6807cb22e4f25fe1486a36a13926f147fbfa054b63ff0446177d","212a21e8c124c9cd37c80d2dd66913ceaa6b6f666522f115c39382b2d5925e8"],["35dfc16f3ae6ccc06a267bf6d931601e52f3e45359ffc513570b65b96adc4f","74311d10f4bece01b5ae65a6affe5c931463aa1b73a3320eeb41bbb7bb1ff62"],["e0acd9d2d907031b319b80121dc90699d003d220ea785d50e5033cdb3b1a03","3911ba78d6e507485d6374b0f7d2e6198f6462a7d6d3cf046404a07af690357"],["3c57918ca254c0cb7dac251ef4e10c7d82327969552eae15d26c4c52660922a","5fd5f5ff3f14e671548074114c72c48409df8a2e71fc8aa3c8acb506e2a88df"],["222ad8b61e219ba2b581f606b7c996516850a46a3db72fe1f72b5a9be6c324c","72015a5e2db648112abd284fd867b59fc5606645177d26cf6e9a655c9912d42"],["3c86d5d774bc614469768ad38f7be9a53e9a233942c5c553b82e49aae684764","480febea8229e130dedffff89c11f3c43e11724e6bd89d5566d78752859d41c"],["adb73bb8352d0c10175df371f7868ef2c9e0c79ac788430c480c0f7d85c187","60b564785248111502e6f39c4994d6293fac22bc25f4d764b2fb1957d3c9bd8"],["3836ab8b46cf4f453a22532c886940b982029b29c42adca90ded5bf77e6bcb9","7b15e91d6355f147b171a90b064a9d8b2d7bf3699bbf4987664c61c950d8996"],["12ed96af1a97c45ec31f1531e96f6fb28a03ba52ab8484545fbe0dddc97bb32","6d1f522b6c6cad0940cff8e23decc72bb8d4164696af031415508b025aa8be1"],["27382994ae5878223ef802e9b4882f481a1b4008f1eec8484483471f7aa742b","c31750d242b3975b0026a0e86ccdd17d0f680a8c6f53f197fc25eb1f777917"],["431677eba3715455bc235557518a74f3b111a88844ef13e159ad44bc16de3e6","30000e1eb6a17d9df776981e65c6e500fded1ac12003adc9446b269812c9197"],["4b563e6f42589671579eabfa2cda5502b361c46a5ac8d45c8ed44741a925b33","627bdb41678443fdd1aa607709e9699b652308615f4bea760a3b79ee0d9ab5c"],["2932fd3f81fc973ca9def6b7f1bb50f980fe589187cfe9e9f52ba4d356cf2c8","1e6bfd00fa976c4770263a227048214c38850fe0f059e7b3d2c7871ef07d68f"],["e44e4f3d96d9dec775b996be57e57fdc28e7c68023109b221c414a244a0dbc","58b1e52fa274812e5184e00e9ad812bec2463140adfb4bea3b2d665867dcc9"],["7fcb89be1f4bec745887bb891e53fefd665c53d00a9e74de16b8a7e1f7adfb5","74af0b06633f779897e199609c71cc5649bbb65bc2c0abd4c678f0480c198d1"],["62a381ffb904ea3ff4d451d4c8459457cdbc3dc2fd2da646a95d8c1e90c0b7b","1ba058658e09db9e319fa73de8ab4a992b71e4efc22c273725bdcab84e2a315"],["1b0fbb7a84c67e668450a54449c7a46261a2d355589f8b84ebfbaf9a77ee938","44f8fffa33dd33a6146c35d196595e22cc4a215f61ee9197cd751400970a1b"],["78fe920bd96a356d4d95ee34adafe8fecf071d3107c36f047b4024ddc4b3eea","6162f29607fdbec10181fbac6e57d5cb41b922c5791fb24bd28bcdd75d16c41"],["5629b849e026e65d119ac11821d7ab7efd9c52226f75c7427505d6818bb0c8d","1539c0f90970ee8b490e45bbe5568170e5708521a0e59f976be680595906feb"],["62bc853f349bac8c6e5921d27ba85dbd9ba20a375d70a7bc008928f3e123b04","6acfeb1de05ba43c3ef1a9110a983a320e77b3ca294abbc04aeca19b194f26f"],["4cf4bed663464418285cbae359b5d84ec76b5997d24f3640984c7663421190f","941f818e3e3e8fb1568da85217d17f9250ebc948379014d900a7b1a848494"],["52ff3d9ffe9a302f6dfaaf74bab57c08027d5cb699a69b30830540c0a2d47a1","987dd8876873778d933fbfed37aab2f7d6f669c37024f926b1edcb2ca55782"],["1109ee32f0bc53de6bfa457060b366e909d7c18061ec9845f46ac715496897f","38f36f172bdfd454b9285f86e6bdece8fdffc95182c7d801b03c671cc55139b"],["4b4482f1d84efe23dadf3bb10df3dcaa251312dcdd604f616f1eb540e1f3232","7c9c149dcae9135f940fb54482f9c3cd8193721643a6e23157b8020410d439c"],["69cb459b9e415b7581ca163611c470d875971d5d7949de732d1f0f200544a73","a7136fa9dd00c0469863b7def3f83a5611ed628810d7e807e7a873da5a9897"],["b66a4e32ac9a4baa8f64780acd94ed3628b2b0ea874ba4dece629af65f9e62","24328ba9996a24389658e3467b8b90dc3927ef8419fe28b3f55b1c1aaa51915"],["5ecc3080062dd451236de0e4eb91c5c75100733364bc5469f5fa76f79021ecb","6da4abb9031a27b5be94529324fad8026e7d871570780081b0f424d4fe543c9"],["1e3146f00880bb22486d5bc73e54367d54251f4002bcf342d0393b05a4b9ce0","23b6fb8e945d3205f633ba724202db5a99305f807137edf942cd60eef867699"],["2e1da8013285598b899f026c6974185db12c97b4c63509769d3d4ad1d18a4e5","1e7e7b668674d1593c39d58bc7bccbf568208732b3519bc2cdf93db34366862"],["d26c3f389d81709506f184b53871497c8d36c5c9eee8e3737358204c1acba3","34649c3d39f3b825947fedbca215ae30c5a5995e93b1c8efca4944cf85a082a"],["91300478a83595d548f32f259033291fc7d083953b0b8bde88c7559660c563","e5d2bff57fc6551e9b80c06ac7314a71907cdcc66ce82f2cce721a670df10a"],["1f7abcb9d462c63ffe92aa56619ae8590089cca4d93ee3e5f34a63882452cc7","7e9f85c7b7ca6e9a4f3a026d1048adbeef69ea9d876c6f647c257b879a81bdd"],["4d2caa1323012e4c83b0ad387308b8aef5637bc35ddd882e7f5e41cf2ca410f","47150e808c81a540b6f8864e9d6636589cacaa516f82caaa96506edfbd6f0e"],["3c10a6083c38351deb3e6d1b386827d0acf48979b66b95249eb8700ec26b069","47e34bfe561d903cffdd1d849b85aa3cbd31cb4a9bbd8cc2e5fd2f95016cabc"],["758bd54868eec045d0b4d3d2bc415d24bce13fee47cefdfda46425c109b657","3392a7c66ea3bd7b044680bbe9f78ae86752097404c067e9d2572f55330df83"],["19e718e0ca1d2d6fadbc6006ee7dda7a385430e29f5e239cdd4bb7c3fdcb2f8","5c68249b7fe03ea2e13481a63b6cd4bf74ce42009a89fee0b3f8f968b3ec709"],["28077f57ea62401806367e6d54fe45d02de5b072db787ffdcc3854e12a3e855","14f3762689072f5fb41d03e94b01808c739f6d42b7b785b0e464100b150efd2"],["3b8a8cefd017363ce867265af3293cec081fa589fe561830f0078778cbd338f","69ccf2383cb7b4f9c806d72535812483e7c5e9a1a5928529d64ca7e085e758d"],["77878f388d22161a2953e5aca6bac1ea480e102f329574b4b201640d44a296b","7eb35706a90a03aff7c2fecca72659136547cee98038746db5aba16fd7178df"],["97332e6da70961f2ef31b7b628f1018d21db8db015922a301fca7d6fc6a8e6","2e37b06f639fc7a82601b744570a2619e543cbfaf60e474107fcaf4686d3223"],["a81518d452d3aac48bf0386c3ff170ef4e684a4def242c964e129c64f4d647","37506e44c85908ec7b7adda9547fbdcc2e3605151fefa77fbf127ce3bc938f2"],["e80336b2220b1d666074f6b0dac85353d0e4c2e8bd0f37055a2236a6a9fadc","1cae76d73eda7a5964c5d9d3ad6748aff51f5543c56441d2fdb7b444a39846a"],["2c01fd8430ecb44e066f352c4f697fc9fda177dbe162f82862d7b9ea8c918de","6e1dfa99640fdf5b30603d34c7c97c1aa6e6b7f3a2c52a21fc64b0fcac7d591"],["744e37b511cd0ddcfe15f3581947014c159de81ed055d15a13c7a2d1fa39f0f","685caa8ff6979a6c63640ac638a3f9c75737f2031bd55322a47384357af164d"],["40e627ff84e1a7a9068b4368770f5956128a4d9e9e33e9cf5e24d9a242149fd","2465bd6cb20bbdf810e2bc5c3c458cecf4f3aa163a7ac99c2579e5f33417f2e"],["5f635af7f554a17bceb6ccb6e637abf89ab6dadd399189b0a0390e87b1896bc","2aa6238a69f89665646c0e3ca2ba5f709cc6e14351cf71e1b00ec45201417a2"],["5edad3063c9fa8305978d7e6a4e037c9fa519b8023c7608dfc3b66e5c1e8985","49f405d07d7d01919da51159ecdad1031a5ac208c026fdfc14d38f633d92183"],["2fdf2e8a45858c12926a1f25a62255fb2d02d0149a15ef669f859806683e649","61cfb686bb31e2524470d4ad2ae09e3cc91b16305a21d748098feb1d8ce3b3d"],["ecdbd7c37f1dffa3943977278da3bb429afdf948b4ea6cdebace3d3be82381","190b67fb34f7f3ad6afd3d6b6427aa327547d8ac0fb4deeb0feeba1f63d6c60"],["233021b483f578dfa5222f8cccba5766ceee0ac65f6d4a3b1673b302a21fb3c","7d4b6d44d175d4b593f06f5a6dcba2cdbc4eaa2097abaf613123546866cf4ef"],["42db4e953c2a7a743de9fe20c5798f2247f51db4eabc6f40e86c13909a310ce","12c1a0764a0b9f3666e431923ce15e7fcd0ded5ab153f0b48d362cca1604e65"],["30d539e2b545fb957e40e2255f6463b52d227c9808472cee6a3d521aa283a44","5f9eccf747fe6313570f99e845db32b40070acee9ce9e34da7f3c29ca53a07a"],["4bd64e5ade3e2733580a6116b4af328751198e7128f9acfe3a3496b545efb5a","4d584768900dabfc0dbaa086632b8051bb3905ef79b84d96c01514441d0cc93"],["62d6e771f02e591557197d13c3e77dfa2d1794ac1808407bd8227c4be31b466","5c6f5607c1808e899ba36a425911fa8566b7ea9cc80de8a80538c0fceb837c0"],["5ce406218cb2852b1d2fe1836b19462f664631785216e87ffbce26030e2101f","5225f107743c255ab50e7be4a090fe39478d1ef4ff558468559d8cfa87bb94"],["670286486e8dda3dc66b0ed3149be7697d3e06c8279844079daa7e42d5af728","26becabe7430380c56e320f5ae3329569cae7b0af06fd5327ee23979d200eb0"],["3ef448df33a4394c43e93e5850cd0c5a6dcb18ae1cd865d00fe8ede9336a9f5","56711f6ab7e0e4f7365ac34e284ac2879f40208c46f6febcc1dcf7146ecf015"],["4b63fc130288e92f2d6ba238caa7a6364804e29829ac037c57df32fbf762bc3","1eb8c80af55278b4113286c038fff2bfad2da62763bb03426506b869139da0e"],["4e7e998557b29a95f805a6e2e26efc1e970108272d4755738c04f28572295c0","97cfcc2f447bde61bde71049d8200a74a3028b21703bc139143d81a3623f09"],["574b67898f02964c408f68e9470e7b615be037e40b824e6617f89cb56c21219","49392d5f8e6740a1b0b7444f56d7a17363f8656c6e4c628678c86223f2e46c8"],["7e8cb50ea5d5c1b09e219e7305bcb601d99b6d7185b1c388aa8e36fe1e56554","47fefa308645455c12ccb5817da338f0c4f423b341aff4a9d158891a4fd69ba"],["67266dea9e71b4ed2bf24a597a823dd048cf31e725db511edceac72998c9ef6","39babd65850befde1f7c28e41dbdbb4caf82bbcf3bcb5b33161f1c2960b2d8"],["63e99c2cb9c74eb9227d48065e27abb8f606df8fc83b2c44e4ea38b046bad2b","60494a53dd13ecf34e08079d343c88fb655d6d810785af81f08d5aa9bcdcf9"],["3cf0600b0f5a2a4eb78c487cd385350e8c7848e3f6983231881d7f1bbe28543","56dee4288528de609976ef6b903b652127c37b0590e91a2fdbebc3f11df2628"],["758f09245fa4b8b23d290ee2b3bfcede199b4fdb11f3cf2502a8ceedd61b129","622d9baadfde781e985d9722e0a04715666769a4cc7a9bea0b96d6386be1746"],["38e1a45b81492aa95d7abea2b08b8c14dc0b8a41108b036871fb737910ae18c","145c611262656385e5ed6243568cd3f9f59dbfed7a01ba11e22bb8bb272e08e"],["206e54ca53a2f155bd4fc45bf2edb77798ae6623defd4cf22f2dd4a7d119dad","6c94e7f0825ad81680e4cdbcaaaf4df806d57a0d1fb2331926c3fe2b79d22e8"],["56e98d2862893caebf66180e84badf19ffc8b53041eaaa313ae7286a8fac3d","526306f9c01afd6e0c1198ea5de17630f5a39c4ecd02d8e6f0d613c355995c6"],["4fa56f376c83db33f9dab2656558f3399099ec1de5e3018b7a6932dba8aa378","3fa0984c931c9e38113e0c0e47e4401562761f92a7a23b45168f4e80ff5b54d"],["450cfaadfecdb8a2fbd4b95c44cb1db723ee5ac9677c9c188b3d7c8eff4ca58","1a552bdfc0c81be734f1f6ca9a6dd3ab4daa61c11fb53ebb7046eee25d617c7"],["6fe20e5c8a8004e33eafc84d16ef770f2f0b7bace19adaaa150f987d295a34d","28a35040a2ebe9a14a162d3208d5eabc6e2f3a8310f926bd80be65aa71775e2"],["1bd65f45a35bf62ae8f9ffcbd7de2976b90518b6820c219f039c50043bb1edf","fb5f0f8659f9b6ed7cb0ddd7999506d0c20b26bbe69d1915a31842cfac41eb"],["4ba4cc166be8dec764910f75b45f74b40c690c74709e90f3aa372f0bd2d6997","40301cf5c1751f4b971e46c4ede85fcac5c59a5ce5ae7c48151f27b24b219c"],["21cfbc678f5a279ebb6ed124273c8df37eaf12a2d04180403ae6b5ec0b1e1ef","4478ed6a346d899ad7b0b10350270aad39ddd5b68529297e4c91a54357f0a7f"],["350bfefbe3d864eaadac9cc1195c14159bb736be743aed7380d2384cadd2046","5e2a4b3ad0e1d7b9b8ef72b10d68a80e5ee691d7db591fcfbaad6240d41da8b"],["529acd569127f73c8d34345f87e96cebfb48ee12a00a3861cda209337ed94e6","3120671a89b705e5bfd99b0e7fd2118b4914a3ac309b3d74527cacb5ad7491"],["55d3d7956a97d10e65a4d8ffeba40deaf0db0b57f8e022cdb3df6df613f5c6d","159e59a6f92f48fcf85aa96c1a03749a4c4e2cf9e2bc94dd36796daebd9b8b9"],["405f019ee8f2e972a005c549b0884b5051f63d1e78480b73208dc07d8c65a1f","4301a3d0c285ad309ff24a12c100ead7f48ba1368143712f32ac141ab4d9e8d"],["376d59b298d982f02dccad0edd5bbd4e5e8fad7898750675ed0856850a7babe","5233b12bbc50564eb61cc098a17d3d97f06ec7a230380e4c5d3b725cc318eba"],["2f55624af6109ef04b2ed035a44a904ace8627f55889f011f768aabf4de9a38","7f64209ce7dfb63337ccf3d8c14f4093295f86996cabfee23b1655549aca089"],["3b8965e942bed2714bc2e685fb103496e1e3595ac6a343d6df45fb5ef6979ed","5b7cac7a165cb69ae103dd9052fb39c00ed0aad47989005aee53972d82d45b5"],["7abfe3accdec1eae1a50049efdd9a8eb7c2921a08e8bf1fe606e9d5a4039ec4","3af178e7e831f8148244d2d2b284a32991852db6212ad0a9d77540ef648a5fe"],["4983196df6ad7d6f0a8d76f86af3863ad8611374a03fc0fd00793181dbde9d","204c1f91b70f975a21d24a8face664e496f00f602daaafa69a3b56098a4cf89"],["79e2b91c1531a3b16dbd53e72d94e16bf265cbec261658151acfaea3718ea72","3d9bdb47e8b148c1c5e9e694ffbc2cf71aac74ae1a85e8d8c3f77e580f962eb"],["297efceec61b3be17565843cae465c52524b4ecd9331a4170f54f7de8c4556c","6ccef1733624cc8b973ac63dd54e7a53604929affe81c3439525ae5ed6af993"],["44f04b1966264a23ccdc870c8563ad2efcd4c8087b5469b90e792287a5581c7","1c417f0e9829fa3d3cbb7c3cf4dc7aac04c5bf66ff3f86b833a42c533aed1fc"],["6ff83f5d8b51db3be0bda80eed2e2adb7037f2f58f705e88f0f98197431ac26","64f59b8428894c2b7afd740866065ded42e716c7d48accd3f117f22768ed9fd"],["14aa8187c9559f77cd1cf96b2dfc949182529936f2b0b4050ea56e134073b24","5f36508c68b1dc586f3fd3f4e2bd29c6d8258491b8a6aa19ede811ce0d3d0a1"],["95e8882a68c5000d1c2be7c0b43e7f2a6f8de906485241f0285a5c73a27a83","1e4cb67207ab73bc1e5d19fa2146fde6d03021393b77a55df4ddda1fd28f5b1"],["2ae0704dacb3da47d564514b4c3543505b403ba09a248c6e74593cba1867ff5","5a4b5818088dc9ef4066b90a8893ae80fc89584f987ec1928ef9d72cea2bd67"],["61a10898a76fb99989e51c0e823cb60b95ec7ccccb917c42b2b28014f5fd94d","23d8ec1de45366d3b86c64c2da05a2ce3d171adf52ca5522e652ffd0eeee795"],["79884133c879cf07734976fd64de220c5a972e04c2a3afb74c362d6c3beecbf","2aaa0e6d4891b792b5643fdf09873343cd0e3fbba3cbd0601b481a4083f32b6"],["45f73d2fa82be6c5ccd0f62d2237efe8727c479967d27cce28e42b9a44bad5b","2fa4932215f72d56d8be5205c5851c9b3e5f2a14468e4a7acace5437c6b27dd"],["37f53f771850f52f9c8f87b53c6bf0c93c2bed76f5fd1d5697356d0b2325007","50f1a052b79b446fbc7b93ffa1a4515f6c3be3a76a2b0bc5eb8ff327549960c"],["71bd6d23e0d2f312d47582efa609101f15b9ccc571fca8ac4fe3457c67fbc9b","3b3fdf86bd4c7fc26d60540a6439b4d179dcbf7b91efb0ddc60dfbff9a148c6"],["78219ba049438385b829c13a4993874a4a326c4143de0dd581c7b9956f99b06","5505f1268dcdd4ee01b77abac3bfdcbf3f0513ab097c69ff777b4a631aaf256"],["b81e924a86536dcf68bc5a2ca2065a61103ba6c9eb0ae4cf8cce9dbe286f15","653a6dfb51acfe8a844fb8362795e5549d424aed88d3a090366a44f840b5b83"],["441c0d7b7aa705046dc0e07ba5f33a7d9df23f694a05192ff8c2d7be2aa3fdc","4c06568c0902bb99d428bfa0a946ed0f0ca0a51fbf07cad88e06e9c78e38a59"],["2569c8c78b6d6b92533f29f767c95720d377fa63ad5a3b9827ee0a74b0488aa","4b59c81d3cfe08834f946d9d57614f5366e0bcd9349475aaaebe01341196fe0"],["3f2fa285a0471647b214eac652bbad9d58a9f2dd2e812aff0210d0d8a6eb32f","4cdb18e1c2848c2b52c1a6557165bd1a8f55c2f7562f5cc0b326f73c25b696c"],["5bb5141ab4fcc5290ae9151b8045a2cd8391547ce7b3b33cbbb10f8fb538092","5a36bfd52acc6a83a9913b937ec086cc27fed030b5fa70dbc5d3c12c9515f56"],["3f3fed272edf91aa7f8ca5d70005d390fbc67830ffc69c5fa3ae17582d2771","459057e0883c44d8776fa217405f443e5954f08c4a5db68e437becaa664a999"],["5237ca6656237a717a739a4509f70db1b9dedbb6cd232f60c9bd8c4563a6b1f","56c7799dd02896dbe7d69dd8bb9718270549592099569d107b7b49c34bf5a49"],["1cf6b8499ac881e0b2fc7def9bc1a28937033b2fc52de99e75909a620c7a281","5769cf4f735366fa386b6858043dc99a100f86fbc77b16d57d77766197ba27a"],["1b74b8a6b86dbf9638cdb0601e1a332b8d880753423d38c3394902c57f15e40","6bb2dc10d2ecbb913219d0ebdc8d3337d644ed8b6c4e70637ef4c7e50887488"],["61e4da415661bba52a4737e2bcde1a837787c4796b2e1854778534f1582c29b","27c43e632cb7652e8508c9c38e3b4ad0d3dd6ba748d42dc84ec2685e64b9aad"],["7c460a204d23f20ce86596dae6ac9b36734e4a9f7c5b43262c97a36c6a41c6e","481a11f9300ab4c4bf6924c5ca884728cc361247377065920966785d043fbbf"],["124ff5e55e4effa40daa5b9618d75c49c8b6fad95cbe8c0bfdd83cb9bed8316","33a2ea15d0f71f58a00de71acd7f22ccf9002115e49dd1f7631faa0d32f9987"],["61c9f8fc86715e95ff43583a865c5a6515f93381839d557ef884a68637eaf4c","5877daaa42bbab9083b571e12648a9d62ced4470d71653092b6546f4a5acceb"],["70a6b9a9e5d1fcc07dd9ebef6d8f5fcf04c6cb34932d0fe2335330ac6dc8d3d","3f0cbd332ac56922e886656bee74f6e9bb4bb88f7af7bba9098678af1f38fc"],["41db8a0f1ea78443a39e08a54323743c8897eed1ddc28f41aec6f2655040d9f","7d4bf32f8f4719c2e4af8b7889f3b65cfdd033dc2f971798a12170f2b26efce"],["62f035e01acdfe841104942d6c8c07f0fbd618cb85998ea24bcc24cfac1f8","1caa886104b7d753fda93645a746989794cd825c62473b526ea34b3d51b5771"],["441c6f016d270e86c19843727b83b864cec060cafc813b23d7e41e5abb1a60a","29fece4e40400f3acae0586f4fc8ed535e805e472123ec38d662d8a0b01c086"],["2c791ba0fb0b66177815c98191fa6188dba9c795e34a7c3c8a19086215e3cee","11123151389d4b330db6a665a560407e7cd8c3807c749e2b0cffd9c3074ba77"],["5292da4ca71ae75ed0554c267747e39c7a129b3b863e1af3ebb3e368439c4ea","63af6a5016deea8cc674c44f16c63c1db31f09af4fb4d2ea7917c28116661fc"],["3367388d5d1b7758dc3d92e244f227bb8a54e3d9909e7b7dd62ab5965e3efc7","7ffb4833071e4b03ea755ccb9938487a478248fe9b1158a08f1ac298801c092"],["95c863314b7f18090f8eee602403be823a367a1b416d54c32e5f914e67d922","159c2824f899171deee23e0ed520d4825bd667983df0a8d45d3a1f7156d91f9"],["621c6e08b3c57404644ad49ac7629832c141273fa1f323781b3395393fe985c","65d1eb0140652958c4371ebec791e03317d6b2e689d90e304666f1b610783dd"],["54313129bf13993952cd2b31ed06013aba85e74c1b8a00e062031f32188a84e","680129efc9eb8ec07fc180e8f6877e5f0f9f44e3000a2c586ed4ce49d12a313"],["21ea57a1c8286bb45872e78617853c47b89091670ba51c124afa3362e7260d","7087e5c1536df233ec9bfe2f983e8d7622892b9bf64c450c9823898e2cc2fc8"],["3793b05b99e7a57d88db4ed0dbc3b771285abcd9052da50f88595354409f3f3","12164105041c056f127e737c7cd63981e05f246bd2b6b65d1f427019c7c3801"],["befd345cef5fcae22ac37dacd6b9128cc58cbba3e3fd774e11b421c2ba392","6209d25f24f88f7876ca604db23d05f78e6b3b67fb033f2f1bee221f352b8c8"],["15fa536045fda4c65ff74f10b4e669ce88b9996c6772288289d3ad725987fa6","30e0c2124a35e265e931ccc66ce5ac3697d982814beb407144ff6762cb691df"],["38b795bd77ac573576dc204857a488cac2cce19809882631ca2069598c577c8","786ba555d55ebef688b068bb9186a34a08cb00bdfef51619bbf911890ae9a13"],["6c66853592196c3eb8d9526dc155205e2c64097adf8684bb0e15eb460ce1c72","1bb4ebf654f4250c8dd1061a4e1b464b31a8a9999ac9960446ef8108a66871a"],["5b08dfbc87ad9c00b88e78816973ad2f9c10c70f2156908892cc7b7a2a1fd30","1151f407a77e2556073173d8f5c9ff561d8a23742121ca15f7d0ac391af50ea"],["309190eba106aa6ead54b5ca5817969aa68b4b4c627700799a49fc6bdd32ba1","505b6a2bc7b0d78ca6ce2abe7dfb7312369918a4599cccf8a615f6701cfd851"],["89cc205966af08acc8910d563af7443d5dfbb5d88dae79c013c678c65dcecc","1f8cf955694b246a423ac725791231257b88936e00347ecaa1e17045c0ab540"],["480086b61a80c36cf1e1a350baf554e58ee8d9333186b70c9c512fb9e9d5a84","511edfe58f8d36a6170df743731da1ff525cfd5108be20e30ac4183d1281570"],["3caf14fb1d2e90a13ad4eb091250fe37133aabf6029633e905e5a93ead41dbb","49122aff6059dfda19e4b973aba5ebe3804c91728936c6381c1ed1ea9380920"],["66d1b8fb2cabc46cd79741ce1cb7326077ad8ea3227a6427244bdd3806bdadd","4a52eb74f4d5371ba3265dffd61c844f9e68d4ff0b44dc4936182f9280bb66b"],["373330c5afd53c31257fcc9050fef873e15ea9f81d9810f30744309b04e02b3","5889806607b3dc97a9c5b0c8a2f16d1792099a22866b879ca480cb89a11ef5c"],["26840d0ec69a22c6818ff64b8b14633b531508c866e21d1dc9239778ae9e8c7","157971f9a6e3a24d3b307be0e7c8cd352e2eb5cad33cf276270c0f309ee63fc"],["ebb84848f1c38c19a754d1b5d9460e39624dadbb30800987c9419c0f933b9f","517b297cf32f4064e6d6c8e761ba8db89809604a701c7b3aa1a9c6beb370ea7"],["25780380bc0795ed0dca727c55240f1d63593e552d224adb40df2d3721c0f66","10215fb5a893e0275e9f1f66b217dde35addee91ed0e8f7d79531a2ff57b8c8"],["243e1581cd1abfbf18c31c19a4c3d1cedfe69a40bb57b607c9af2717eefc742","1296c27929f14535718c3a4ebe045f00afdc60afc74c7d398d8ce1b6609dc0f"],["48babb8649e054bc8e0b902c89e6940c265f48464520649502ef1064eb94562","3235be7852b0526d1a16f6969ec0e5b0e09cedaadc65863dea4e47f4f398264"],["592db7c27e63489ef4bcef2eafce89f40067cd9a1ba48bc3dc76b5fc62ad9ca","48b7711b570cd9ac65910e75e752f4b751fdbfb4091a28f59b8c046d3d9f8bc"],["31d133456222586ae42a9ec7ce8539ee04afbe0b2ed00a2564dab0798d9b55d","a77c52fa1fd718db5c83e7fda6d7d4d9aafef9ad95cad621470f2b753729e5"],["4651668379883521e7983aafcb93811b4a72ef2975b3277773746708ef3e3fc","512507f3f544d80ba5d47f73b571881e8d70d7b1d305b9704bdad036b7abc47"],["26069e359b2e847affaef604f772f36224608b7642245d0e643889ed231bddc","75ae1ec379f074ebc91270077c74b4d34347ce183b676b4dbe100bfff143b9e"],["3196d01d1fa11dc3803b4813c4bbc6326869f61410f2bd14bc0f570d875aebe","20313217cac79875bd2a503db1e86d1e5559911667a02524759344468d9561d"],["483256607f75f06fb126addc60cadddd602154cc4782bcc08351a48745d0b97","2950a7e500ebbe9775f08be37cc2e62ccf9030de18948d1bab07a4a9173f75d"],["65f07b6050a2fc6eebe2c29ffa62f764060f7f9d3c82d2cb5e4e368aaa442c9","562c9654b646cb84a213b41de203c871b3eae0a05c9c105a66a53c319c06373"],["284870f6181c43f3b01d94baa9c5b6ada0deb861145523ad9169580eb7bed35","5e03e6c40c1cfa3cafb01fd0622349871832a9d35499d06408a83edc1b76d02"],["32229810a52137f0e6c3d37595c46f6132822d4b05f42674b48d7a7ac3ad85","7babde959a0cf2c53ee59fc52c77c3adf899453f077f441965629f9aead30cd"],["1ea8b98a6b85e74e0a2fbc18b206e290f3ed94ce99ca665e8e2351dfade990a","478e93c4724115fb1648c8d5347422adbc1a0bbf962b2312e14aec80e1be742"],["270cbaa08c79140c85b864475a0bf569cc03ac785e57f543dc444f37ce746cf","3a9b8d894016680ae9d1bf3deb931d8987d4d8d8bfed45b81ccc595ec79046b"],["6943922708b8ae5b40dd7031ef2e487abc4ac39a3591368285e83d6c9c51f4d","5f157c37d09634e8cbfbef90ea50af59815d011e419a691c67ca3402b5efc33"],["48ac6a80979fab4912cf0cb557d917a0bd68825d8658ec100496eaae6ff62e1","2b6931350ab183402e39476340eb1177b7006f7a552915581e29a79bd7203a0"],["e3adf9517d92ef22d1e2a787740a292ba32d5ca69faa9e8675f63ed816dce5","36bccf69bb12dadd610145a3399213248d193660d8dc90a2e206f23bf2c7997"],["5e6c8ae5afb2fa470f767581f3d578cf6a49547e4b78665edfd45776948bef8","6cbfc11953dd7e195d2ce74e52a60df524767b44c4608bdd755be4bc85eb74c"],["15a576a1242d39300f0db3ad770983825988da0457718ecd596c63a0a0eb4a6","69a42e5f6f5a63349b57683a4609bba90f556a1680fa1ec3b02ee7d3211f903"],["274cd14e4fbf2ed07402e8ad8075b320c5f76b7ea45ea36af523e95ed63ab50","6ca640f9557c5f2d8b27f6ce95b108880ff4e4816b26b70b6506114389ce656"],["4d8284e132e2fe81c5f71be1e3c79ab51b229e2c56c323e207cda179999d123","116cfc00e9fbee1cf16af6282123cdf20eed13021c2037ef4c86f94eb6e6cba"],["4056194fb5643e97991942ef5b63cadd89080bf57a01489c4398aca03f0980a","2e2cddb434fa6f6da7859c3d518f0ced8795eea043a6c9613fb3e020103339f"],["5d119d5c5ce532afc0875e0ee9b026d878c8773d34237f90a0d0670da6f01b3","4a79fc025ce076b6a4742fbcc8cad313d0a8220c58024a41a5a674c0947e64b"],["11800ce4061d99b9d53fd4138802335258f7798c5a935c9979f5a949ce1d483","36745a4741a5c7290eaa8f2a3f9ec955ccb7ca323272e5d35d35c2a724ffac8"],["4302525bceb97fa642fd5560a4a39fba3d2c06f68e6aff3332ff1854439ebb3","e31edfd081ce82f8177b2d7d96e69851d09e908c2517114ffb37ee12c0ac64"],["2f5fcbb96f0a66fd3bdfbcc78bda361cb812570f50e7c476533d56eee01c0e3","527428a34855b5695c479d8fb7e831a299f7897f36682a74169cc60d160df2d"],["52167df045ad0dc999b98de3d035aced9da4434211149b8cf4bf20e774580cf","19051d2a1ad3fab190c5dfaf45188b49b4e90cca22aae54f0a785562d3d3f41"],["541b5332491dbdb2b6f6bccceb7634970c046963891fae936dd950f4432b961","78fa54da996a51e3a9c06091d58c2405a806649da2bb1f323807c4eec50eda2"],["5f11e973da659b7738f87ca5bd4f3bd02207dd3c8d978f0d3e83fe81030febd","137aba7027069f62d25caed416e13537687bb1428e71e5f0a0c52d52f2e65bc"],["15ec941ee6c2110b819b5541be52981c09d83484c9dc735c43f39f5778718b4","4561826142dc5b56acfcf605a78a4090472bb61235bcd605a765e05d0a7e549"],["68ba398736d659522f484406110b43c68158bf4992094acf797a38979c587a4","7c1d9e1702e28afddf22fed7a7a79df4315c174d0c6c4f4c75bc77d9b56777f"],["67889cea31c81a429fbae643a4fce0ecd690a5c32b99397e39ed6d7a08702df","7ea277c80b671146c9e455b98f42f45b941ac95ca2d15c8fa9ea82ee9b45e01"],["596f2c68390ac26505d3c2eca5c77d46f8f3acbed192a2649d8c525a58d2334","49f3bd8c62c610d5c19c52d970bde24b270c4ff7ae900453b909e72483974a0"],["567779fb8b0afe592cea284629e3621ccfae3c4d7d3dc559c9fed750591a395","6010bdc33f1cdb374facefff537e7910b72a1120502f312a7ce41df0d552ddd"],["cebed0233e810aa6a29a8b0829d28f1c92f303d14dd73d6b12da98117dfc7","4bdd51e1192a00df23aa8d0673e4915877ca41ddb8c9eaf21d39dd167fde7b7"],["4c7085f066adeb6781596771972b188177e63f2e2b3788d03e033cdd5af1f06","2929ee89f525862b0cedb3ab9b5166e1680cb77fb4668f10a6a3d76b5434566"],["760e341bd836899c226176f47685f69438270c150c6fe7744cd723cd1e72359","1bf09f2f1aac1a10ce8bdf20d5d178db747f01a4aa0aa8a5e4bfeef562cd94e"],["6016b94c00b54920027ef64902c61478244b1936337d2ad41d9a8d43dd6a4b2","3bf3dd9bce7f6d6f120de87fcbce6219340b59c2c1d75ee0d45105d33aab1cd"],["4929e44ff692eb944d1045bee96e750219cda3bda0500029f0df49a1db30b5b","2e138dcbd092242699004b4ce98764ffe4e892841f56830af298581cd1e523f"],["5972d0e526311bacb70a04e88969b6c63c7399b578f0dc28bbd00d65ef01da7","76b22bca9ac12d26530e7b0757e646beb3bbc5680d0f3f82fb8ee57ed4b5e39"],["2ca0a42a26e26934ca2d48db960b4719113d87c5e57fb437d557c5eb4e03ac7","62778c02561d4ec5d83a132afd7763a8349207c6b5d01fba70b56ba660cba2e"],["5137ee53f076e21a2c23da09f63c0d275408c31e4634a6b6373be5cf13e6c00","14fb446c077beb78e04de3282a63bfde12f9af85caaca4ddfab506cee31c0c1"],["7d944853d1627b63f560aeda33acf640d35a4ee4d23a744957a2dae9d5b7c6c","bcb411a210710acbcb9ea12680d89e3e4e652228b6786d3886e95f4d9e6970"],["37d412c2ffb173a728477446b60b2b702d07a5243cb5fc8963e623a5ee75843","672c79968908f92cd0cb0b4c65ba86e8f359b015623a89441e1bf859bba84cb"],["5b37f472aa80398bff12cc74c8ee784c4fc89757292580d3a498bff17e9f114","7d79da1aab9cfef58a5f3d1c9ec466956a45f8d2af0c1da6dd4c93f720fae6e"],["25c09b3f1188c562571536202eb0f5fc4b9a7590417b8ea58b4343685d88a63","3d5b817c73b37e9a1d24ca923351359b42ced2f3cafbcac8c2d6322dc767bb"],["32e60904e73f9756f71e0a918d302aeca17cad4acacc81bab15702ab5ff78f0","bcf4c0204f8275072f98a65b09ac58b87cdc9c70c4edfe99fe18870a3a5459"],["49c35575996c1517d2daed90d2fe4a58e674d6b4aaa7288d0642c8bf59e562f","57eeee00adea4ca80eeabab57852cbf03f1a57e21872cd44221e0550b9193b8"],["10e1776b4c2a867bf1b028c6edec224cc6616c747e272f49e69b67b02a893dd","8d45d62ec8e627b56950f2f7622a0438647f9e9f28e723e4a37cebc039a1b0"],["79a93a75ecbe943acc964fd39ecfc971dc6555b2bc335e7b53f52f4eb16cd36","146132a68ce2ca8b48363612226771ac547eb3cf52b6eb7981718faac08aa3c"],["6b22d32e0590e169504e7f19864fd646d0994e7ed3e578a5b88f6e095913439","68c3b22d859fb85e5c8fa0a8aea932285945b230957e603394333e9ad5acd82"],["71ce5ec8286eb8c93b8481c6d19cf0a288ef4da4397e9c80f65023e516bc097","54470babc742780cd8a05499026e738ccbf81d4170d1731734de68a8e5b402c"],["27beb13a43bc6a1f6ce046da438b0beac5899ff4d57962dcfb6476b563f74b","14074e9e93ee45394dfbe833998b9d1691961f8ba3166224b36404448c61bb3"],["6b1de6c8f161aa6509a1dcacf2c0aa1bcf6ee9d9b40e032a9d72f77a6fa298c","5e9312eb5b59d6cbadd7d3dcbc39f1b5bd9a8346fdcfdf1107bada6f9cc048"],["32670fc3fa43bf39974ba72ea51f0d045d92d084a81fe5282dfc8309aa900b9","518fee521bf1af62356aac3b7e53fdbf57121e030c6e9572b3de69912ca4eb4"],["4b9ca363eabed9c66091a347375f7065cd28f49f914447de7cc1461f1375f1e","3a1a3a2e5e7e72476befe2571ece708052d740d02cbe6fed58740968ae609c4"],["4cc6da42863a3deca62fa218b7a3b50e034eb4bafd393eccba3f4cbe192ef10","20bfa683c884f203713953b26d2821287ecd305fa2cb70570474533fc07f918"],["87705353c44a5ccec8de65cf5433be6b3d9bd21eea49b60e6c907cf1a67a6a","112804b13eee56e3b01aff75fa08fa8374c44fc461aed8a30ad54acd09c24eb"],["6cf6eeeb9d339c0a05f72fd5af73fc7588e6d957100ee8999109437bc126cae","54fa257cea22032eac272fcd034dadf2e00d602ef9e519cf7072023c130aad1"],["19b32925048c5519d929650c833661b452ef7be7963fab0b6b328ab7dd7a28a","1bd0c14a10bf9b88ea61011c0b2e64d07da151c6203800d5a5d12063838a510"],["12a5fc5559428bc3b4eff97b21b63668b866e0722807f1db1f19696bacd9b0d","4c2eb07f0c24047a3d73b560144f3fd32c99d6dbd9fc7cd2fd2a72a6e4b24c7"],["13662b7a7d390aa76eb86a7c3bff6d9913eb28db6bd1a7c42de5cdad2e35ce2","40626aded7f56f82cc431ae30527b096f57fbfbc04d3e12a5abae3edf301cf1"],["255825bd49b8a2cce114360bd9c8fe8c641af64c8e7710107213cfcb006f43d","3619cce4482335232f9e76a1460be9d296f2d468d26e4f95a78c71524fe59cc"],["7f83009eeed4f12f54d341bbf06066480cfcdf51dda103ac54d4bcecf6b3b31","4269519d28faafd7fd68bebfd8404d71ba05d62c4bb6d65d24aa6802fb84ab6"],["2f325650eb316646b4eec903fe44828fcb11054f1bd42ca3a77f7e734110b35","44f976082271016f9048e22c507d97d628722bb431f8d5cc1890524e6c386bf"],["750b166bb6edc0ee80fae39c7c106879036738df2d79fb2294e1c21e9a24d6b","54f8aa297a1afafe2a17a3254f45861167414327e918d17003c6aad01d0b24c"],["3aedb10db9cf3285cdeee375879396fac1fb50dd259e1716f8c01e66f67ca72","7feb9400f621f58c21601f23b7ec7c94a9b6b193c1cd74a8a60846aedadd359"],["4ab7151702de76faa493e7a0b1ac20ee4d10c33b83fec9477547cb1236973eb","63f1f122e3ef3acc46b0915ac69c3f5772879799cad889a817f55f5853d1235"],["1675ead0d20e5bc3a7a7331999a87ac4c916ae29669e54197bb02aa6364520f","4d1122da90d49e491922d9b533a6a668e2f65a2737ebb391ebb29fb7c1f8a9d"],["2f7148111ef53c613157aeec12e16a20f13481da4390b6ce18a85d1d8547087","2eeda779ab395597651d2a0b833ccf53b10280750139916ae2baf4ec57c633d"],["4439c7810e7b2ba772b701ec3acdca0b80c9df23047710b87f7dc3f13b337d3","5029cfe704c602a8a4662af0a5860ec03fb88f046d0e3400f2ce7638014c621"],["2248eec40b5732a6a488b681f093643af7937071bc73118acae295a32b51b05","1577e4aec30a97b648de4d0b19cf8891151b4eb11f8de9c6d7312f091552e19"],["4738424e558d4e0d87a3124ca02ea24f0adc6b7a9768b0d3945ed2a6104857c","33576f92aca3f0c8ae689c3c274c2de6b918940d86a6852e02fc99e35d1614"],["7829edd8b866ebf7baaf604ed13d19a9797578f44bbc51b1cd67ca53803e96b","5559040a6083f2af1f9133ccaf5bc2ce06e56ddfc7dd410e9635c0116b62722"],["7f927b881f2cdc05e1a69e40bb714af47b630d1425f08ab5d574ee698f33d51","26a465288e96572de303203bd38f4a03031e8158da0591cb037c0a5111d1056"],["36a65598552f8753580d1655417d645a140966e10a1e1663015f9fdfae44881","33d5bbfaebf59eae72b89b1aea12ab2ba3c9617f8c3baed1ec16bdf668381b5"],["403becfa545c826782026ff409cc16c9d4fe428f1b5b6e630c92439d2fa5fd","47bd6f2bf5d74f710ecb479c79b01fb774fbdad590e683a415cdedf33f71dc5"],["3a747826d241b877d3d56b16e0b810cf088eda4fd6048da174c9991a942a5eb","2c7ba19b0a3486a2cdb84d4a388d34beb077a0e467ba44590166f93f6a09d2e"],["3d60cd375842714b37bda89dd1f13a7e0f3ff133b522209617d031bce05a537","f77f216451ab01ad5226844d2162a7f32744688bcb4325445539e2ce5cec4"],["235bf66f67c9100e7f0e22bb299cdfaa603644b240e0770aec7e7fd163e2a65","37110b3fa83ece3990afca2bea8d5ebb3c7aace60a0147f8e6ab733e2f2b4d5"],["3b796d4eb69a55471fa86108f787b3604874e92b6887a7667a6c2bfbbd9a42b","4912d6dc0419732ef82cb3278415851d4e2d7ca89e0f4d7128cc9de51b810fe"],["48d53516dd51e49faa7ab46c8c10db1befd10f23c6a9d9bc3640a2f0da44518","73a2fb3d064adadf21aa1362c04affc660598f38a9e069b3afb74d0a99ae9ee"],["48c32cff161ed145da0d5b73084897647abb777adf65738559ceab6939cf3e0","3d99308978e828f857c382df32b472bda81e8ec8e30c8844077ba6d6d2ba903"],["2947ff091a8ec9684affbc9a62e09e598841c4a6dc638088492aa47dea57097","19a2cc97975e547f97a4d02e42f89e6ced6f5a953cfccdec347867d26926541"],["1960d85f30475615f82484eba0bdafb7ea7cac3809f0518a757d66f02b01676","36c8f77baabf0cc8805d993bbe62041fcf4e3239cf9d53278a4fbd91e75eeb7"],["2765f28074d21d5a055340b6d40092d2bbef807e02009fabfa08ec0b9bdf38b","7fb189e0553d5df52b6843661814824b3f3cbebbd54988f042fb256c6bf30b"],["348836cb2aaa00212f4b1a4e2d7fc5417f246bf2fe5c9a16ebabda449e2e08a","3f7276fd7d69e0d55ce5ee1d2d830534a27227fe0b6d8a36c93f9a78b872969"],["7afb9d34b6a42ea8c6d870e4b8191c274201dc1f93a1a2219a2392b7e345a31","42bbc20dc7115e0758b364a110227b16b64ec58fc535ce5ff1a9ad8b8a09fdd"],["2cae0c2afee1767fd4c66f52e1f176d217e92e89cc19eb36d5a6c1715f641a","5335efe2d9bc3667d25ea88bf76438a4d6ab9ba5c512f9da7d0529b79b62d83"],["1cc5fde334707723c3a06f00c106db88664284a2df47bb6b144d9f960aea3e2","dbbf610d100316938bcd8bcd078513512ecb50d4579690dbefaa419c05980d"],["54e90cb8f3a2998d2675c5780679e06c0556b1e618f8fdf07f9a4b2466fbf1e","16248676b6f06ec5e34994bc3115f85c8147b54f34d8500928f2fdc051e2089"],["525c70a2ba0dbdd68d75640f47f13d0d415ea595f7030f533f4625c2a46523b","58292c8675e5e1a438f49e0c05648d9a7aa997f2f1fd77d5de1944afe5d7eea"],["54726d78d099007393348787a03107ab492e59690a46c87fb02ec554f2353bd","53b54b77184ba75a3391e0ebfa6d6974db028f3f8e34bbd5460759a5848dd76"],["4ac81a66903537769d3aac6c483ccc08535cb767b6b5e1ec8017a7393ab70ae","2cb22b77a8a05d26f11a4dec80eff292633aa05553a889c5ab16b6ac6e2ab17"],["21d0175349e21114988a2930b9a607d43245783cb4a0c984ce27f4c4206708","59f1f49342cc5496213d3329bf4ca7fb0044337449c579bf53147a1dac9e67c"],["167f821b381f4c8adcc39789475fb55ba639e5124fe75f26dd61be396dd5e66","22002c87d4cafb47ac9d27286d5cf5ff7a6715d69814118269b0729be9e4b3a"],["31010666c6db83a9f9e4db4c48173afd405783ac53852a6e38a8ff925528843","1f466dc9b5d9094107c741dbf380f9fd98d8549cd50f67169901516f8cce74c"],["1ad3875769a5053388a86edc85dd80fdffbbda6a456aea497ff81a0f1f6707b","2de7cdec5e2bad56a71bd2f33a4ae4c874e1ad4210a6ac32b443cfa34e85b1b"],["c489650fb7f459ce09cd05a456fc5a46b849b38a671298ed645bcdaab168b0","45610d092b8af1c43ceed474cd17f7bbee65120aa6fa4d37f949e7e41f25327"],["394256a5ef4d7af5459587a0bd2edb8acaf5ecfef2563c9a04daf34a4abe4c6","1ebee390dae1403c0c53994e1d064fa64e20fcb45392e209b2b99486a559ffd"],["410a1511fead6151e9bedb089b9832d0fe01fab76d3f8459929f767525aeb27","361f0a5ffe09fcc3ad4eff3f5e89508ac247af80267100b69de3c59df561cfa"],["38cd437c9f659e110a869605c182ee9fdc26de36baf559d9229e258267bb734","624b1128ea7739bf1cbd0e423af92a4884323c868d2ba0ee9d362946edee2d1"],["78b126e50b7042d2a019f95cb87a3213c664ca1bafe345999b1e9e2dac1e608","19e398196b22f4488cbe854c614ad8c353839abc5ab3a4f3f5c03c16ba8a198"],["6d3a5ce91132f385a91823c5c8046c4b638f5fe63357424410d901457cdb867","7b80bae16d2d487e122495174f7a70992bc5dafbed72bf84127ead7c57302bb"],["32d053a904dc4d88fbe7d0b96e0cbeca22a00aa5c79c753d52b0b60abf31602","3af6a02e5cae6d6490354ae51185149e3fdb6d0d9caab90e95ff58aa0c40377"],["49b1fbff5bdb0aa6938b066dde0ed772c0d81f9eff52e7fe038b0ccbd78adb5","1c6e57834eb14d507eed8b36c81ddf92fa91c242467061927a742fafa82b43d"],["2f28b8994ca6f234d9293d26196b43b9d1d5306844348c4a638102c05de85f5","759cfb172eab065d477248b3569f4ff5791055f01e95fe71b94b8e615d73c96"],["3c2ee954ff534f856f59188fa0f29ed8a022aee0cac52d634f6dc58cd514d70","22bd162e74925f0a876bd8a206b8767dfdd7c898576a73a490f138d9a7f99c6"],["5763a7cab001e1aaeabf9ab5b9b2fffe6cc2b299ab04ec4933da74d960e1ab","715ee4f8ee93ab5a1dba00f0a6abc4eec47d49b61254cc27fc36a031e32f0f8"],["19976ad8d7b7f47c785408243a227401996b36e47c7a78a7bc7d4256233ba9a","896b713c5d7777b0703821a73c1d9a4c3755501042120534ff13990975e1f5"],["61674b992c29827186cab5ff454758dbbed8e89bc23d0bd33193afccc3a04bc","38e1020744c13903809ea30a0662fdb5226ae760cdcf10800faabec452e00f8"],["2ea2d48bcb83c0c9cda4efe11f07165cfcbc9ccd26526e5fb12556316d4b1df","1d2d68b74ad384c5c4a9c85453104216357bfcdf635680b40215f0f800974cb"],["7881212050264c40c336ed3a15dd2cd868ec9a558f5b728869eab66e8b8ed54","21aaefcc8ad8a161b8971d6880321781dbd939570c540da4c330922b8c81e9b"],["b6be88ce0461d20f59c5199573cda0170b61decf6e8e69a6d32f1695adc4ed","5536e4808370716f2bb3423a9a49a38ddbfe91faf3b7a35eb53d3519238b6cf"],["e5972af1655eb6dde2e8c77cc58044299922441b5ee41ceaf5cafedc765bcc","550282f37a4783dd60801c237045992d6fbe82a5902e7d837ea25f6f98c7b3a"],["7efc1aad1f580d8f50274f1c114c40056be19a8c96fa8c4cb5bf85e1e7f3e4","2689f1c3898b114d668be6413643ee9f879913d40c262541fd0316264c60a4f"],["7939db98037f59b0113e9d60051f75ac9c3cfd1a3eb535c73e2d945068c6c5c","410914ca8bbf3c65cdf3e9772ca790c19131c50068d34b7346c10260a578a8e"],["225b77ad00a2b83d26690190b74867326eca4f55bfbc3a13be036225ca3b1b5","411faafef89042ce6beb64309fdaff70fa53e9d32d79a21e7f82f80e79ff05e"],["1501e64c99c8b6658b0479f2c05c9142d246eaabfccf2fcec8dc4399539d8e1","3bab1e3339e42c9ee66c65b0b20236fdd9362d3ce786ad3a9779ab578af50a8"],["59b907b941f24fb8ea2458153e55f07534b388e835af7b69f3c9f54392a335","1d5438c4f2f68a417f3d56f916d899a6ffe910f5f2989ca31687f1b10f60db8"],["2887d08a26f484546f360e33abbf7a998b7170a5b30070938b84f072c676bf3","62a78e8d00e5d3a59e2fc424ffa08961567ba1ef24c8531cd7bceee6074a535"],["6e3cc8076b3d45377929033af35aab0c6d19ae4fd47c0daf844079ca04c46eb","7b90f338e4d848aa8f19d0b5c3bca916a2a9024acbf14bddb278bca2aa39e5f"],["34844dacdd3ec54a3af328bb9d67715ab33425e194ac9977ca02ef22e8f7a88","3c1affc6372f32a1634748124f9e1a03c4f0c993971da0dc28888b0801279d"],["436b192e03a49796cf9bc5e93c88268b71c9c24f9c3a85322bba634ebea309d","67a8091ef69d62abcb28ce5df4dc7d53f8dc2b9690344f75ecd03a6d9386044"],["592d25b68baff87a6d7fd41ff0dadbddc1bd1316683de3b2d677501c0eb14e4","27ad1e1099683f54589010faeefb19e38569ace43653be8787a42b0591e7bc5"],["89a5111ae911512ba62e87b97f643c0219702f235c70f62c6678a129302009","557fa3d98e9ce7b83b47545013a4498f3de43787fb66b1a54521222242f7c1b"],["1c9b5e53377e72da5066cb08566bbf9ec31ec1877f455d932cd9b1aa375d34e","72f79555a8bc207863f32d482fca54692825449fd8963fcea3de3a8183a739a"],["574a6e05eb14591729515be239ea8c1fa9e12d4049d42876f76c8ff37bca03","5f99b3af43ca68c1c73e8190d5f73c8de162ba643d7d5f0cd73cfa8135db6d3"],["513fc5c2e16505b2b25a2f284e167d5401194bcac0dc3ecf8b7c9acb560daa1","687ee7a1a8954d08d3856e1a16ded808e419e789736d3f55f79f7693bad69f5"],["53d48bd1205274b1c2b0a0ceb3d21c5fcd7c8892a784931603240b288a598b9","35387abd7ea59c9b956de44d36533cad1f6668c438d666651695ff3862159be"],["213eb1ea99e08825110dd61094eb6e8145119dc1c507636f068730b1e086d44","744f6853f4f02f4f042468d0739e0c9f64df720b87ed77d1979547084ef7a89"],["735ef017d091ca23264ad0aa7bb9b2be3309b4539605e79ed4a652ccb2fbe3c","7f0ccc7a5747c4e921fff97d431169f690763427e2cfd1ad74d7a0308d7faa9"],["3f36babc5a30070b610ed97db44997e6d9115c9c0579ad8f75d295a17130001","79047908a2474e32d5c712a07bf5c4ad522590bb5d6cefda410d30528e12ca8"],["51c04907ae88a5926b242fb2862cb1f2c651a94e6caad5bff8601c079fded74","10a585a269f460aed43f54c7de13cdf623fc8de5957526997278be939ef32ad"],["c1e1bd626a735aa2c065831317217ecce68e377eb1f67e54ce2e97bc2ef2dc","53c5af23a9b482f420be6dfd37b6886154cfd130794098e1f51c1885ac2556a"],["5aff3b30775ae4758e604a4a6262803a545f5ef4e7855fa245ac6a6431a9ece","39a4799e5519047f29333bee9c86c99bfa8056d4aa381c396c4a44331fe795f"],["3d753e9723701a8e9d99b91bb93dee2eda7ffa5072fb2cd5c5fd99aebcdb299","15798bf5c17d6d5880fed1553af32dd8d8baf2888c715a886575448a24c7975"],["6593e5078466b07a4222d2e544da826d2c583c9cc5f2eaea148b129b00d4aa0","11b352b08a0a61d3cd67d1dc08069dec3bde907b3da0f56de5011b956bf8744"],["7a6eb353c5be9ff03fe4a06c01fb71aad2b38144179a291ebcbb2c2417cca65","3de3ecb12f2fa699b46a9d399abf77ca17bebc3e491bfb2542dd0fba991e2bb"],["2c7ead583d6c32162091034a9eddfa775b4e84b8bdbea939edb2a80dcf64f6","461790ce40d9c276d962b2a1e9a74d66e9d7335962e234e8a2fc6963d31722d"],["34285af023d9b4c2c2b88e8704bf2c05a9b553b00b2e70ff05f8c2970cb134f","33fe678e7671760a83836107428dbade68c3593fbe568f3f8f1b2c568099c44"],["6222f720a24466263db6a11842f117fc4bb78da6705f140e48869db3e087441","6eff5b9bf3aeedc962bc5a24b66e7bdad2153450ed53a058bf2c8dbf2907693"],["17c6ec5ea206eb97cbf53851e37ce391080e0d2bf1e5395610f79ab0503f7ce","3adb71ca3523d88ceb1e365f12dfb24895453c14daf0046b2626cddadfdf5f7"],["70859f9771a713e54974ce11cdaf44b0dcc3e9befa0c0834908d877eeaafd27","d18f794bf0cc0623b711e7450030424e52326c45ba9b03341883ae4828a5f8"],["2a820cfd0fd4ab0871e7b303cd545a3086caf8fa818c087a4017197da74efbf","5f992683ff37f6c041b84bfc01503d333ac9763505cc8f69473da01812969d1"],["5b0526de2c07fe7cd73e3884f642d57a0ac5e13c68590ed03a14e530616e8c1","eec69d0cbd92c9fca31ec967dba848bec368e792d6678797946a5e34fe3487"],["6cf6b3efee707210cb3a72f1e885c3d0953aefb43e5e148c740aa1641725c61","911cb630b898e2c1a9115f9e45bafe3b819edfb1eab6e15612d14289939984"],["74e913de55f1e46143cb2ecfc580f8d3d3908f200281322b84e21c989cda293","761d2736c9ac7670ba905bc2629c6c0dbe988820a4454ff415ba68710f7df92"],["44084305e0c911a40b7cbefe5f13cffe9a99375d1a584c4a2200958050af7a9","249c83877371564708ea525b64b1e7e12785460d83364446531c9adcacba5f0"],["2bf71ad4d1bee1a67fb300477029f54bdb0e09f78bf2ac2e8afc7465a7adbcc","6244dd6cad282539049be57487bfd9900bb0d5da805d02b535096368fcb4cd5"],["3a62d8f763b62def36e4089458046a49c5ecb91b861549530773e0548ff2bb","6a10a03ba61e6ac657270465c09aa9526cf1ebe96bdecdf0e7000476a47b9eb"],["284eed3a17c51e0677d4fe897f056abe9def8af07a4630e6ca5723e2aa6677","516a06ac1d5626ed03d2eee9de6f60f0311eca703a99b0fb31b9c66b01c27c7"],["2a2c63b16cccd685f731d06fe93ce2cffb358d34d03dda9a7368185c1eb0c32","7180baca0ba81284809f92eca1654cd76b925a9242e5d5e0f18d0a55d13c6ec"],["5f9466017ec09769611389ea5370ad68dda936d3f5816c9e928ff9574abf9a7","6619b5b145bb5f4f29deb7a4cd68ef4da3995312fa6537f0d01684da4267ece"],["74f229babe01b4962b3307589c1a13019134b1db6822698388bebb55d21c30f","156ae857ab3279f754facba0db36398dffec8c31e5e160473198f2f891b7531"],["334b9fe3a5fd99bc966ddd1309698fd32afd1f235062f2c275b6616a185de45","221a60053583cc0607f6f2e6966b62fc9dac00538bb7eb1148e007a92116d2"],["7ad710ba002a67c731efbaba2149d16fec5d2f7aa3d126fd9886172e9f4ea30","3a10f8e902a7a13aec94d66415347e1314f9bac83a7db176096b809b25ffb86"],["4306dd0a184a3283c3097ff8f7434cec80912e9dc04b7df21ba73fda9f8e6d8","6d42bd3d1a8dbddafd09e872e2aa3891ae79ec939dc1b382196bc21c4ab749"],["1c3f2124e1135c32a426d1d14e471edd9e0f2c7bd703ee123cbbd608e8c4be7","3cc607a3c3f1ab68dd5fa56c65996002721b8ad8ad4b0dd9e5b1467d316583"],["294af33272ffcee0b56a436de1b73759cbddebef4c07888b42c2f92b0b68e1","d837164311d5dca8d37b99ef9eb22708643c83d1cbdfe852f63ea07b06fbad"],["753bdb5439a19bbffdfa02b1dc24e8368f22d0a8276b109c11e6feb26f56f39","6ed396231af93647633eab467f1a034f38e76823eb85baf97cae56e2dcd9f75"],["5674f0cb892b733fc0b50e121d8679afed0a925c32594cc65ffe83bebe7748e","7fbf0325dd38dd94905adab2c52758552292a6a103d9edfcb11938828e828c8"],["4a8f053573a0a74251059d0229d89b6660407ba0b491779fd10f87a5117c81f","21b70112485398bf67ec9d733df24a1df30dea718a93b786f41ed04e3ae3c5e"],["726c01ec4a08df8fc8de173311f50d4f3b97c5a9cf68c1536146f827db95ae8","15013cafadefa7f1c4e4dfdd70bd4d3979dd18bd7f0332572ce2a3fd8773d12"],["38ac0fbfa98937257460db7e6645d7e5112b6fce7234813fc8a704e8ade8da2","73c0109f86048aad08c443f781ae60ad13b99f7b9cfdf3128fe6d6eeb799a7b"],["6f6d3a38621582ace092eb50ecfe9eff265df141ebdcab8653299116fcea291","4a1bf3f39bc919c8f1b720a0b1ce952cad17f2ba98308ee6b76dd9b6f3d7b75"],["6a307fc28e1df8d9ad01766419e097797d65cb674436fa1c8f012d3de2c2a1f","26911a635ba824db004875d79dd84834a97ac12643e42829015bf88c1fd6f05"],["2a74860e3336d6db916555894cc8028f41508812925db1925457afe40257155","5f8da573f4c39816ce2dba8a20224223a7cfec53117ec78973930c0e9b60244"],["4d2b49e1ed0799f719b8269f092cb489a466a645bc0ccabafdc678864c176d7","5410083df7d256f18cbf5697ae5e52c31e075d8a3b27e21d6f5177ca882f6c1"],["110ecb9fbf6c333d168cee473cc5ad98809b6cb9eb5d1f6cd28ab5fab504fd3","7e3c54d7533d9f8c3310f219dab0cc3ea4d39b418a748eeffd6bae2b8637a43"],["5be4d711b80da70e6d3ac493250bbfd16f20b25f31919b3a91cf14ffbac1096","7f55a0919f082e8885f1515e83c5b39b6022404503507498e1b4422d79c43e2"],["2605125b95ca4ba93a21cbbba5762898a7cf9e988f07ab9e64cb3868e3b139d","62f0ccf55b9fc0eaf9736fc8ee484e2acdbe259813af9803cf815829a5e9d3b"],["1092bbbf206f2a3068167c3dd99a72de31e206f6c504c071c8214d105ff814d","309f489f68a62089f53b96df5d4fbc3ecc5a1a42eb7ece0e49bad17ad490ff4"],["2abdee9409d9c92559ca3f4e6bddd649c31aa09b90bfcb4a612af491241e18d","3ffa8eac180a29de3f8a69efca84bac046f921f5725e96a6ff0530be1436aaf"],["376313f27d00bb1aae7ec991745efe6ee28c6b50de0c6cd9845cc4bb4f83543","6a8e0a9389ba528b156fa94ac090a895d7b795818d4941c29415d9e2984c547"],["a80380c71bd466a696b3f0fbf02817c9459d9798f4f3899cf32edf647fe066","6a09805e814e7cdfc76eba4b79f1df5ae559e0f0aba9f728d3cba4ea5c57471"],["223694b921d247d989a79b9b2b2f07496036c40cb043eab074a9d6a2cd2ffed","c247217f1b1df35e30d9e15fdaadf42d6fb0edd3a5a7e265d4cdc426c120aa"],["102333620df278c6714bbc880fc087db58c1b9b4d77ed4d61b32a74bfc7c3e2","6a77d37727ccf71c2caeb151faf4404d4b94e9047f9f0a7c3966367f3b53c65"],["891626f466536929ee7eadcd18b41925706dedab7528ed5f0f7abf039eb9d2","5f73d11c141c933a35b2d0d06e5cbae614a20d17dc3b439f8bcdc3413c5ea37"],["215c23fd3f073f870e5e80303967391bf173f8adcdbeec72d131c557babc203","10634332e9d9439a321597dc5b0fac9ff478834c3d6e281735f21a4a5e13266"],["21ea0bdc1332bc36e6aeb43be9071651c27e4ea2eadec636c8d818d4af72a36","3a523d9643dccc6bb9c7c58413312caa3e60ba9c7c7f0177e0f3f469a3241e3"],["60deaed1bffb6190beed40caaf2bfab5e43d3707aff7ad3f278d571aa247eae","e41f71ff254c1418e6a66992af307789fe04d6606fb2670900bb1a089fd879"],["1e1fac4a1646253fb1332fadc21fbdd3e3a24a840d129400f520ae4116a4cf5","69c406f9f46576afad68808de0ab7e8922b6226af748e721d9097e21f1800f3"],["5db0ddcdf79ffe74d6454c12d2bc60b06776db03c75dc413f5be42ea9a91b5e","134c3d6c699841f17306835bb193785228ffe7ab212a01a861c56b086a18cec"],["626814e320fb5bea505b248fd1c1389ad586c1cfe04923fe2f83173e915f4f8","7ae407a926e887206a8b85cf485f1f327c9bb8ccbb6897024e2d122877d8ee0"],["23186237dc7d3b570cea645282ad4c359731bbfa54e7f036426bf6493812cd","7d1fbab7e61a22d3b00993290d9f4cd5d820061573e787f66c2cff9a18e1eaf"],["54302dcb0e6cc1c6e44cca8f61a63bb2ca65048d53fb325d36ff12c49a58202","1b77b3e37d13504b348046268d8ae25ce98ad783c25561a879dcc77e99c2426"],["13961b56b9fc0e412e468c385c22bd0680a25624ec211ffbb6bc877b2a6926c","62f7f7792c77cd981fad13cb6863fe099c4d971c1374109185eae99943f16e9"],["47abd7308c70659af3f00fafe6837298af3cb530b6c2ba710ffd07a6bc1ae98","75d0c8a7377aa9f0663d0c124a5659750847afabc29e39893fd27534a4a03cb"],["2c6276b764fb398fa555857dbe0ce0ec18fab7a233bf23851295739801f0585","5d8f4897ce44007ec5bfcb9aeb78b8f6e1d40a514f72d213c9300d2770d2b8c"]],N=new l.default("800000000000011000000000000000000000000000000000000000000000001",16),j=new l.default("08000000 00000010 ffffffff ffffffff b781126d cae7b232 1e66a241 adc64d2f",16),B=new v.default.ec(new v.default.curves.PresetCurve({type:"short",prime:null,p:N,a:"00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000001",b:"06f21413 efbe40de 150e596d 72f7a8c5 609ad26c 15c915c1 f4cdfcb9 9cee9e89",n:j,hash:g.default.sha256,gRed:!1,g:O[1]}));O.map(e=>B.curve.point(new l.default(e[0],16),new l.default(e[1],16)))[0],new l.default("0"),new l.default("1"),new l.default("3"),new l.default("4"),new l.default("1000"),new l.default("1001"),new l.default("1002"),new l.default("1003"),new l.default("0"),new l.default("1"),new l.default("400000",16),new l.default("80000000",16),new l.default("8000000000000000",16),new l.default("800000000000011000000000000000000000000000000000000000000000001",16),new l.default("800000000000000000000000000000000000000000000000000000000000000",16);let L=new l.default("08000000 00000010 ffffffff ffffffff b781126d cae7b232 1e66a241 adc64d2f",16),D=new l.default("FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFE BAAEDCE6 AF48A03B BFD25E8C D0364141",16);function U(e,t,r){let n=h.hexToBinary(e),i=n.slice(t,r),a=h.binaryToNumber(i);return a}function F(e,t){return new l.default((0,g.default).sha256().update(h.hexToBuffer(h.removeHexPrefix(e)+h.sanitizeBytes(h.numberToHex(t),2))).digest("hex"),16)}function q(e){let t=0,r=F(e,0);for(;!r.lt(D.sub(D.mod(L)));)r=F(r.toString(16),t),t=t++;return r.mod(L).toString("hex")}(n||(n={})).StarkCurveInvalidMessageLength="invalid message length";class z{privateKey;keyPair;constructor(e){this.privateKey=e,this.keyPair=B.keyFromPrivate(e,"hex")}getAddress(){let e=this.keyPair.getPublic().getX().toString("hex");return h.sanitizeHex(e)}async signMessage(e){return this.serialize(this.keyPair.sign(this.fixMsgHashLen(e)))}serialize(e){return h.addHexPrefix(h.padLeft(e.r.toString("hex"),64)+h.padLeft(e.s.toString("hex"),64))}getYCoordinate(){let e=h.sanitizeBytes(this.keyPair.getPublic().getY().toString(16),2);return Promise.resolve(e)}fixMsgHashLen(e){if(e=h.removeHexPrefix(e),(e=new(0,l.default)(e,"hex").toString("hex")).length<=62)return e;if(63!==e.length)throw Error(n.StarkCurveInvalidMessageLength);return`${e}0`}}function K(e){return new z(e)}async function H(e){try{if(e){let t=await (0,c.default).get(`https://api.x.immutable.com/v1/users/${e}`),r=t.data;if(r?.accounts&&r.accounts.length>0)return{starkPublicKey:r.accounts[0],accountNotFound:!1}}}catch(e){if((0,c.default).isAxiosError(e)&&e.response?.data.code==="account_not_found")return{starkPublicKey:"",accountNotFound:!0}}}let{curves:V,ec:W}=v.default,G=new l.default("08000000 00000010 ffffffff ffffffff b781126d cae7b232 1e66a241 adc64d2f",16);new W(new V.PresetCurve({type:"short",prime:null,p:"08000000 00000011 00000000 00000000 00000000 00000000 00000000 00000001",a:"00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000001",b:"06f21413 efbe40de 150e596d 72f7a8c5 609ad26c 15c915c1 f4cdfcb9 9cee9e89",n:G.toString("hex"),hash:g.default.sha256,gRed:!1,g:["1ef15c18599971b7beced415a40f0c7deacfd9b0d1819e03d723d8bc943cfca","5668060aa49730b7be4801df46ec62de53ecd11abe43a32873000c36e8dc1f"]}));let J=()=>{let e=new l.default("1 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000",16);return e.sub(e.mod(G))};function Z(e,t){return new l.default((0,g.default).sha256().update(h.hexToBuffer(h.removeHexPrefix(e)+h.sanitizeBytes(h.numberToHex(t),2))).digest("hex"),16)}async function $(e,t,r){let n=function(e,t){let r=w.hdkey.fromMasterSeed(E.from(e.slice(2),"hex")).derivePath(t).getWallet().getPrivateKey();return new l.default(r)}(e,t),i=function(e){let t=J(),r=Z(e.toString("hex",64),0);for(let e=1;r.gte(t);e++)r=Z(r.toString("hex"),e);return r.umod(G).toString("hex")}(n);if(!function(e){let t=J(),r=Z(e.toString("hex",64),0);return r.gte(t)}(n))return i;let a=await H(r);if(void 0===a)throw Error("Error fetching stark public key from IMX");if(a.accountNotFound)return i;let s=new l.default(h.removeHexPrefix(a.starkPublicKey),16),o=await K(i).getAddress();if(s.eq(new l.default(h.removeHexPrefix(o),16)))return i;let c=function(e){let t=J(),r=Z(e.toString("hex",64),0);for(let e=0;r.gte(t);e++)r=Z(r.toString("hex"),e);return r.umod(G).toString("hex")}(n);if(o=await K(c).getAddress(),s.eq(new l.default(h.removeHexPrefix(o),16)))return c;let f=w.hdkey.fromMasterSeed(E.from(e.slice(2),"hex")).derivePath(t).getWallet().getPrivateKeyString(),u=q(f);if(o=await K(u).getAddress(),s.eq(new l.default(h.removeHexPrefix(o),16)))return u;throw Error("Can not deterministically generate stark private key - please contact support")}function X(){let e=B.genKeyPair();return q(e.getPrivate("hex"))}async function Y(e){let t=(await e.getAddress()).toLowerCase(),r=await e.signMessage("Only sign this request if you’ve initiated an action with Immutable X."),n=(0,m.splitSignature)(r).s,i=function(e,t,r,n){let i=(0,g.default).sha256().update(e).digest("hex"),a=(0,g.default).sha256().update(t).digest("hex"),s=U(i,-31),o=U(a,-31),c=U(r,-31),f=U(r,-62,-31);return`m/2645'/${s}'/${o}'/${c}'/${f}'/1`}("starkex","immutablex",t,0),a=await $(n,i,t);return a.padStart(64,"0")}function Q(e,t=64){var r;return e=h.removeHexPrefix(e),{r:new l.default(e.substring(0,t),"hex"),s:new l.default(e.substring(t,2*t),"hex"),recoveryParam:(r=e.substring(2*t,2*t+2)).trim()?-1!==new(0,l.default)(r,16).cmp(new l.default(27))?new(0,l.default)(r,16).sub(new l.default(27)).toNumber():new(0,l.default)(r,16).toNumber():void 0}}async function ee(e,t){let r=Q(await t.signMessage(e));return h.addHexPrefix(h.padLeft(r.r.toString(16),64)+h.padLeft(r.s.toString(16),64)+h.padLeft(r.recoveryParam?.toString(16)||"",2))}async function et(e){let t=Math.floor(Date.now()/1e3).toString(),r=await ee(t,e);return{timestamp:t,signature:r}}function er(e,t){return h.sanitizeHex(h.padLeft(e.r.toString(16),64)+h.padLeft(e.s.toString(16),64,"0")+h.padLeft(new(0,l.default)(h.removeHexPrefix(t),"hex").toString(16),64,"0"))}async function en(e,t,r){let n=(0,p.utils).solidityKeccak256(["string","address","uint256"],["UserRegistration:",t,r]),i=new l.default(h.removeHexPrefix(n),16),a=i.mod(G),s=await e.signMessage(a.toString(16)),o=Q(s),c=h.sanitizeHex(await e.getYCoordinate());return er(o,c)}async function ei(e,t,r){let n=t.users.map(e=>({ether_key:e.user,tokens:e.tokens.map(e=>({id:e.id,blueprint:e.blueprint,...e.royalties&&e.royalties.length>0&&{royalties:e.royalties.map(e=>({recipient:e.recipient,percentage:e.percentage}))}}))})),{royalties:i}=t,a={contract_address:t.contract_address,...i&&i.length>0&&{royalties:i.map(e=>({recipient:e.recipient,percentage:e.percentage}))},users:n,auth_signature:""},s=(0,f.keccak256)((0,u.toUtf8Bytes)(JSON.stringify(a))),o=await ee(s,e),c={users:a.users.map(e=>({user:e.ether_key,tokens:e.tokens})),...i&&i.length>0&&{royalties:i},contract_address:t.contract_address,auth_signature:o},d=await r.mintTokens({mintTokensRequestV2:[c]});return d.data}async function ea({ethSigner:e,starkSigner:t,request:r,exchangesApi:n}){let i=await e.getAddress(),a=r.amount,s=await n.getExchangeSignableTransfer({id:r.transactionID,getSignableTransferRequest:{sender:i,token:function(e){switch(e.type){case"ERC721":return{type:"ERC721",data:{token_id:e.tokenId,token_address:e.tokenAddress}};case"ERC20":return{type:"ERC20",data:{token_address:e.tokenAddress}};default:return{type:"ETH",data:{decimals:18}}}}(r),amount:a,receiver:r.receiver}}),{signable_message:o,payload_hash:c}=s.data,f=await ee(o,e),u=await t.signMessage(c),d={sender_stark_key:s.data.sender_stark_key,sender_vault_id:s.data.sender_vault_id,receiver_stark_key:s.data.receiver_stark_key,receiver_vault_id:s.data.receiver_vault_id,asset_id:s.data.asset_id,amount:s.data.amount,nonce:s.data.nonce,expiration_timestamp:s.data.expiration_timestamp,stark_signature:u},l=await n.createExchangeTransfer({id:r.transactionID,createTransferRequest:d,xImxEthAddress:i,xImxEthSignature:f});return{sent_signature:l?.data.sent_signature,status:l?.data.status?.toString(),time:l?.data.time,transfer_id:l?.data.transfer_id}}async function es({ethSigner:e,starkSigner:t,request:r,primarySalesApi:n}){let i=await e.getAddress(),a=await n.signableCreatePrimarySale(r),{signable_message:s,payload_hash:o}=a.data,c=await ee(s,e),f=await t.signMessage(o),u=a.data,d={body:{buyer_ether_key:u.buyer_ether_key,buyer_stark_key:u.buyer_stark_key,buyer_vault_id:u.buyer_vault_id,studio_ether_key:u.studio_ether_key,studio_data:u.studio_data,payment_amount:u.payment_amount,payment_asset_id:u.payment_asset_id,payment_recipient_ether_key:u.payment_recipient_ether_key,payment_recipient_stark_key:u.payment_recipient_stark_key,payment_recipient_vault_id:u.payment_recipient_vault_id,items_recipient_ether_key:u.items_recipient_ether_key,expiration_timestamp:u.expiration_timestamp,fees:u.fees,nonce:u.nonce,stark_signature:f}},l=await n.createPrimarySale(d,{headers:{"x-imx-eth-address":i,"x-imx-eth-signature":c}});return{...l.data}}async function eo({ethSigner:e,primarySalesApi:t,primarySaleId:r}){let n=await t.signableAcceptPrimarySale({id:r}),i=n.data.signable_message,a=await ee(i,e),s=await t.acceptPrimarySale({id:r},{headers:{"x-imx-eth-address":await e.getAddress(),"x-imx-eth-signature":a}});return{...s.data}}async function ec({ethSigner:e,primarySalesApi:t,primarySaleId:r}){let n=await t.signableRejectPrimarySale({id:r}),i=n.data.signable_message,a=await ee(i,e),s=await t.rejectPrimarySale({id:r},{headers:{"x-imx-eth-address":await e.getAddress(),"x-imx-eth-signature":a}});return{...s.data}}class ef{config;mintsApi;projectsApi;collectionsApi;metadataApi;metadataRefreshesApi;exchangesApi;primarySalesApi;isChainValid(e){return e===this.config.ethConfiguration.chainID}constructor(e,t,r,n,i,a,s,o){this.config=e,this.config=e,this.collectionsApi=t,this.exchangesApi=r,this.metadataApi=n,this.metadataRefreshesApi=i,this.mintsApi=a,this.primarySalesApi=s,this.projectsApi=o}async validateChain(e){let t=await e.getChainId();if(!this.isChainValid(t))throw Error("The wallet used for this operation is not from the correct network.")}async getStarkExContractVersion(){let e={baseURL:`${this.config.apiConfiguration.basePath}/v1`};return(0,c.default).get("/starkex-contract-version",e)}async mint(e,t){return await this.validateChain(e),ei(e,t,this.mintsApi)}async exchangeTransfer(e,t){return await this.validateChain(e.ethSigner),ea({...e,request:t,exchangesApi:this.exchangesApi})}async getProject(e,t){let r=await et(e);return this.projectsApi.getProject({id:t,iMXSignature:r.signature,iMXTimestamp:r.timestamp})}async createCollection(e,t){let r=await et(e);return this.collectionsApi.createCollection({iMXSignature:r.signature,iMXTimestamp:r.timestamp,createCollectionRequest:t})}async updateCollection(e,t,r){let n=await et(e);return this.collectionsApi.updateCollection({iMXSignature:n.signature,iMXTimestamp:n.timestamp,address:t,updateCollectionRequest:r})}async addMetadataSchemaToCollection(e,t,r){let n=await et(e);return this.metadataApi.addMetadataSchemaToCollection({iMXSignature:n.signature,iMXTimestamp:n.timestamp,addMetadataSchemaToCollectionRequest:r,address:t})}async updateMetadataSchemaByName(e,t,r,n){let i=await et(e);return this.metadataApi.updateMetadataSchemaByName({iMXSignature:i.signature,iMXTimestamp:i.timestamp,address:t,name:r,metadataSchemaRequest:n})}async listMetadataRefreshes(e,t,r,n){let i=await et(e),a=await e.getAddress();return this.metadataRefreshesApi.getAListOfMetadataRefreshes({xImxEthSignature:i.signature,xImxEthTimestamp:i.timestamp,xImxEthAddress:a,collectionAddress:t,pageSize:r,cursor:n})}async getMetadataRefreshErrors(e,t,r,n){let i=await et(e),a=await e.getAddress();return this.metadataRefreshesApi.getMetadataRefreshErrors({xImxEthSignature:i.signature,xImxEthTimestamp:i.timestamp,xImxEthAddress:a,refreshId:t,pageSize:r,cursor:n})}async getMetadataRefreshResults(e,t){let r=await et(e),n=await e.getAddress();return this.metadataRefreshesApi.getMetadataRefreshResults({xImxEthSignature:r.signature,xImxEthTimestamp:r.timestamp,xImxEthAddress:n,refreshId:t})}async createMetadataRefresh(e,t){let r=await et(e),n=await e.getAddress();return this.metadataRefreshesApi.requestAMetadataRefresh({xImxEthSignature:r.signature,xImxEthTimestamp:r.timestamp,xImxEthAddress:n,createMetadataRefreshRequest:t})}async createPrimarySale(e,t){return await this.validateChain(e.ethSigner),es({...e,request:t,primarySalesApi:this.primarySalesApi})}async acceptPrimarySale(e,t){return eo({ethSigner:e,primarySaleId:t,primarySalesApi:this.primarySalesApi})}async rejectPrimarySale(e,t){return ec({ethSigner:e,primarySaleId:t,primarySalesApi:this.primarySalesApi})}}class eu{immutableX;imxConfig;assetApi;balanceApi;collectionApi;depositsApi;encodingApi;exchangeApi;metadataApi;metadataRefreshesApi;mintsApi;nftCheckoutPrimaryApi;ordersApi;primarySalesApi;projectsApi;tokensApi;tradesApi;transfersApi;usersApi;withdrawalsApi;workflows;constructor(e){this.imxConfig=new R(e),this.immutableX=new a.ImxApiClients(this.imxConfig.immutableXConfig.apiConfiguration),this.assetApi=this.immutableX.assetApi,this.balanceApi=this.immutableX.balanceApi,this.collectionApi=this.immutableX.collectionApi,this.depositsApi=this.immutableX.depositsApi,this.encodingApi=this.immutableX.encodingApi,this.exchangeApi=this.immutableX.exchangeApi,this.metadataApi=this.immutableX.metadataApi,this.metadataRefreshesApi=this.immutableX.metadataRefreshesApi,this.mintsApi=this.immutableX.mintsApi,this.nftCheckoutPrimaryApi=this.immutableX.nftCheckoutPrimaryApi,this.ordersApi=this.immutableX.ordersApi,this.primarySalesApi=this.immutableX.primarySalesApi,this.projectsApi=this.immutableX.projectsApi,this.tokensApi=this.immutableX.tokensApi,this.tradesApi=this.immutableX.tradesApi,this.transfersApi=this.immutableX.transfersApi,this.usersApi=this.immutableX.usersApi,this.withdrawalsApi=this.immutableX.withdrawalsApi,this.workflows=new ef(this.imxConfig.immutableXConfig,this.immutableX.collectionApi,this.immutableX.exchangeApi,this.immutableX.metadataApi,this.immutableX.metadataRefreshesApi,this.immutableX.mintsApi,this.immutableX.primarySalesApi,this.immutableX.projectsApi)}getDeposit(e){return this.depositsApi.getDeposit(e).then(e=>e.data).catch(e=>{throw P(e)})}listDeposits(e){return this.depositsApi.listDeposits(e).then(e=>e.data).catch(e=>{throw P(e)})}getUser(e){return this.usersApi.getUsers({user:e}).then(e=>e.data).catch(e=>{throw P(e)})}getAsset(e){return this.assetApi.getAsset(e).then(e=>e.data).catch(e=>{throw P(e)})}listAssets(e){return this.assetApi.listAssets(e).then(e=>e.data).catch(e=>{throw P(e)})}createCollection(e,t){return this.workflows.createCollection(e,t).then(e=>e.data).catch(e=>{throw P(e)})}getCollection(e){return this.collectionApi.getCollection(e).then(e=>e.data).catch(e=>{throw P(e)})}listCollectionFilters(e){return this.collectionApi.listCollectionFilters(e).then(e=>e.data).catch(e=>{throw P(e)})}listCollections(e){return this.collectionApi.listCollections(e).then(e=>e.data).catch(e=>{throw P(e)})}updateCollection(e,t,r){return this.workflows.updateCollection(e,t,r).then(e=>e.data).catch(e=>{throw P(e)})}addMetadataSchemaToCollection(e,t,r){return this.workflows.addMetadataSchemaToCollection(e,t,r).then(e=>e.data).catch(e=>{throw P(e)})}getMetadataSchema(e){return this.metadataApi.getMetadataSchema(e).then(e=>e.data).catch(e=>{throw P(e)})}updateMetadataSchemaByName(e,t,r,n){return this.workflows.updateMetadataSchemaByName(e,t,r,n).then(e=>e.data).catch(e=>{throw P(e)})}listMetadataRefreshes(e,t,r,n){return this.workflows.listMetadataRefreshes(e,t,r,n).then(e=>e.data).catch(e=>{throw P(e)})}getMetadataRefreshErrors(e,t,r,n){return this.workflows.getMetadataRefreshErrors(e,t,r,n).then(e=>e.data).catch(e=>{throw P(e)})}getMetadataRefreshResults(e,t){return this.workflows.getMetadataRefreshResults(e,t).then(e=>e.data).catch(e=>{throw P(e)})}createMetadataRefresh(e,t){return this.workflows.createMetadataRefresh(e,t).then(e=>e.data).catch(e=>{throw P(e)})}async getProject(e,t){return this.workflows.getProject(e,t).then(e=>e.data).catch(e=>{throw P(e)})}getBalance(e){return this.balanceApi.getBalance(e).then(e=>e.data).catch(e=>{throw P(e)})}listBalances(e){return this.balanceApi.listBalances(e).then(e=>e.data).catch(e=>{throw P(e)})}getMint(e){return this.mintsApi.getMint(e).then(e=>e.data).catch(e=>{throw P(e)})}listMints(e){return this.mintsApi.listMints(e).then(e=>e.data).catch(e=>{throw P(e)})}mint(e,t){return this.workflows.mint(e,t)}listWithdrawals(e){return this.withdrawalsApi.listWithdrawals(e).then(e=>e.data).catch(e=>{throw P(e)})}getWithdrawal(e){return this.withdrawalsApi.getWithdrawal(e).then(e=>e.data).catch(e=>{throw P(e)})}getOrder(e){return this.ordersApi.getOrderV3(e).then(e=>e.data).catch(e=>{throw P(e)})}listOrders(e){return this.ordersApi.listOrdersV3(e).then(e=>e.data).catch(e=>{throw P(e)})}getTrade(e){return this.tradesApi.getTradeV3(e).then(e=>e.data).catch(e=>{throw P(e)})}listTrades(e){return this.tradesApi.listTradesV3(e).then(e=>e.data).catch(e=>{throw P(e)})}getToken(e){return this.tokensApi.getToken(e).then(e=>e.data).catch(e=>{throw P(e)})}listTokens(e){return this.tokensApi.listTokens(e).then(e=>e.data).catch(e=>{throw P(e)})}getTransfer(e){return this.transfersApi.getTransfer(e).then(e=>e.data).catch(e=>{throw P(e)})}listTransfers(e){return this.transfersApi.listTransfers(e).then(e=>e.data).catch(e=>{throw P(e)})}createExchange(e){return this.exchangeApi.createExchange(e).then(e=>e.data).catch(e=>{throw P(e)})}getExchange(e){return this.exchangeApi.getExchange(e).then(e=>e.data).catch(e=>{throw P(e)})}getExchanges(e){return this.exchangeApi.getExchanges(e).then(e=>e.data).catch(e=>{throw P(e)})}exchangeTransfer(e,t){return this.workflows.exchangeTransfer(e,t)}createNftPrimary(e){return this.nftCheckoutPrimaryApi.createNftPrimary(e).then(e=>e.data).catch(e=>{throw P(e)})}getCurrenciesNFTCheckoutPrimary(e){return this.nftCheckoutPrimaryApi.getCurrenciesNFTCheckoutPrimary(e).then(e=>e.data).catch(e=>{throw P(e)})}getNftPrimaryTransaction(e){return this.nftCheckoutPrimaryApi.getNftPrimaryTransaction(e).then(e=>e.data).catch(e=>{throw P(e)})}getNftPrimaryTransactions(e){return this.nftCheckoutPrimaryApi.getNftPrimaryTransactions(e).then(e=>e.data).catch(e=>{throw P(e)})}createPrimarySale(e,t){return this.workflows.createPrimarySale(e,t).catch(e=>{throw P(e)})}acceptPrimarySale(e,t){return this.workflows.acceptPrimarySale(e,t).catch(e=>{throw P(e)})}rejectPrimarySale(e,t){return this.workflows.rejectPrimarySale(e,t).catch(e=>{throw P(e)})}}class ed extends eu{}let el=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}],eh=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"operator",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"owner",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"_approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"}],ep=[{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"depositorEthKey",type:"address"},{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogDeposit",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogDepositCancel",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogDepositCancelReclaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogDepositNftCancelReclaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"}],name:"LogFullWithdrawalRequest",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogMintWithdrawalPerformed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogMintableWithdrawalAllowed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"depositorEthKey",type:"address"},{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogNftDeposit",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogNftWithdrawalAllowed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"},{indexed:!1,internalType:"address",name:"recipient",type:"address"}],name:"LogNftWithdrawalPerformed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"sequenceNumber",type:"uint256"},{indexed:!1,internalType:"uint256",name:"batchId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultRoot",type:"uint256"},{indexed:!1,internalType:"uint256",name:"orderRoot",type:"uint256"}],name:"LogRootUpdate",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"stateTransitionFact",type:"bytes32"}],name:"LogStateTransitionFact",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"ethKey",type:"address"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"int256",name:"quantizedAmountChange",type:"int256"}],name:"LogVaultBalanceChangeApplied",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogWithdrawalAllowed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"},{indexed:!1,internalType:"address",name:"recipient",type:"address"}],name:"LogWithdrawalPerformed",type:"event"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"announceAvailabilityVerifierRemovalIntent",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"announceVerifierRemovalIntent",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"deposit",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"deposit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"depositCancel",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"depositERC20",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"depositEth",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"depositNft",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"depositNftReclaim",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"depositReclaim",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"escape",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"freezeRequest",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"fullWithdrawalRequest",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"assetType",type:"uint256"}],name:"getAssetInfo",outputs:[{internalType:"bytes",name:"assetInfo",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getCancellationRequest",outputs:[{internalType:"uint256",name:"request",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getDepositBalance",outputs:[{internalType:"uint256",name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"}],name:"getEthKey",outputs:[{internalType:"address",name:"ethKey",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getFullWithdrawalRequest",outputs:[{internalType:"uint256",name:"res",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getLastBatchId",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOrderRoot",outputs:[{internalType:"uint256",name:"root",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOrderTreeHeight",outputs:[{internalType:"uint256",name:"height",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getQuantizedDepositBalance",outputs:[{internalType:"uint256",name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"presumedAssetType",type:"uint256"}],name:"getQuantum",outputs:[{internalType:"uint256",name:"quantum",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getRegisteredAvailabilityVerifiers",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getRegisteredVerifiers",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getSequenceNumber",outputs:[{internalType:"uint256",name:"seq",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getVaultRoot",outputs:[{internalType:"uint256",name:"root",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getVaultTreeHeight",outputs:[{internalType:"uint256",name:"height",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"ownerKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"}],name:"getWithdrawalBalance",outputs:[{internalType:"uint256",name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"isAvailabilityVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"isFrozen",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"isOperator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"isTokenAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"isUserAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"isVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"mainAcceptGovernance",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"mainCancelNomination",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"mainIsGovernor",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"mainNominateNewGovernor",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"mainRemoveGovernor",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"registerAndDepositERC20",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"registerAndDepositEth",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"string",name:"",type:"string"}],name:"registerAvailabilityVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"registerOperator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"registerToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"registerTokenAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"registerUser",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"registerUserAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"string",name:"",type:"string"}],name:"registerVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"removeAvailabilityVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"removeVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unFreeze",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"unregisterOperator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"unregisterTokenAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"unregisterUserAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256[]",name:"publicInput",type:"uint256[]"},{internalType:"uint256[]",name:"applicationData",type:"uint256[]"}],name:"updateState",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"ownerKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"}],name:"withdraw",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"ownerKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"bytes",name:"mintingBlob",type:"bytes"}],name:"withdrawAndMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"ownerKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"withdrawNft",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"address",name:"",type:"address"}],name:"withdrawNftTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"address",name:"",type:"address"}],name:"withdrawTo",outputs:[],stateMutability:"nonpayable",type:"function"}],em=[{inputs:[{internalType:"contract Core",name:"_imx",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"imx",outputs:[{internalType:"contract Core",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"}],name:"isRegistered",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"registerAndDepositNft",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"}],name:"registerAndWithdraw",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"registerAndWithdrawNft",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"address",name:"recipient",type:"address"}],name:"registerAndWithdrawNftTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"address",name:"recipient",type:"address"}],name:"registerAndWithdrawTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"bytes",name:"mintingBlob",type:"bytes"}],name:"regsiterAndWithdrawAndMint",outputs:[],stateMutability:"nonpayable",type:"function"}],eb="0x60806040523480156200001157600080fd5b5060405162001313380380620013138339818101604052810190620000379190620000fc565b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506200012e565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620000b08262000083565b9050919050565b6000620000c482620000a3565b9050919050565b620000d681620000b7565b8114620000e257600080fd5b50565b600081519050620000f681620000cb565b92915050565b6000602082840312156200011557620001146200007e565b5b60006200012584828501620000e5565b91505092915050565b6111d5806200013e6000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c80634280d50a1161005b5780634280d50a146100ff5780634627d5981461011b578063579a698814610137578063ea864adf1461016757610088565b80630a9c3beb1461008d5780630f08025f146100a95780631259cc6c146100c7578063352eb84c146100e3575b600080fd5b6100a760048036038101906100a29190610a72565b610183565b005b6100b16102ae565b6040516100be9190610b8d565b60405180910390f35b6100e160048036038101906100dc9190610ba8565b6102d2565b005b6100fd60048036038101906100f89190610c57565b6103fd565b005b61011960048036038101906101149190610cf1565b610525565b005b61013560048036038101906101309190610da0565b610650565b005b610151600480360381019061014c9190610e3a565b610778565b60405161015e9190610e82565b60405180910390f35b610181600480360381019061017c9190610e9d565b61084a565b005b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd2414d4888888886040518563ffffffff1660e01b81526004016101e29493929190610fa1565b600060405180830381600087803b1580156101fc57600080fd5b505af1158015610210573d6000803e3d6000fd5b5050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d91443b7878585856040518563ffffffff1660e01b81526004016102739493929190610fe1565b600060405180830381600087803b15801561028d57600080fd5b505af11580156102a1573d6000803e3d6000fd5b5050505050505050505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd2414d4888888886040518563ffffffff1660e01b81526004016103319493929190610fa1565b600060405180830381600087803b15801561034b57600080fd5b505af115801561035f573d6000803e3d6000fd5b5050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ebef0fd0878585856040518563ffffffff1660e01b81526004016103c29493929190611021565b600060405180830381600087803b1580156103dc57600080fd5b505af11580156103f0573d6000803e3d6000fd5b5050505050505050505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd2414d4878787876040518563ffffffff1660e01b815260040161045c9493929190610fa1565b600060405180830381600087803b15801561047657600080fd5b505af115801561048a573d6000803e3d6000fd5b5050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663019b417a8684846040518463ffffffff1660e01b81526004016104eb93929190611066565b600060405180830381600087803b15801561050557600080fd5b505af1158015610519573d6000803e3d6000fd5b50505050505050505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd2414d4888888886040518563ffffffff1660e01b81526004016105849493929190610fa1565b600060405180830381600087803b15801561059e57600080fd5b505af11580156105b2573d6000803e3d6000fd5b5050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ae1cdde6878585856040518563ffffffff1660e01b8152600401610615949392919061109d565b600060405180830381600087803b15801561062f57600080fd5b505af1158015610643573d6000803e3d6000fd5b5050505050505050505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd2414d4878787876040518563ffffffff1660e01b81526004016106af9493929190610fa1565b600060405180830381600087803b1580156106c957600080fd5b505af11580156106dd573d6000803e3d6000fd5b5050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166314cd70e48684846040518463ffffffff1660e01b815260040161073e939291906110e2565b600060405180830381600087803b15801561075857600080fd5b505af115801561076c573d6000803e3d6000fd5b50505050505050505050565b60008073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631dbd1da7846040518263ffffffff1660e01b81526004016107ea9190611119565b602060405180830381865afa158015610807573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082b9190611149565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd2414d4868686866040518563ffffffff1660e01b81526004016108a99493929190610fa1565b600060405180830381600087803b1580156108c357600080fd5b505af11580156108d7573d6000803e3d6000fd5b5050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663441a3e7085836040518363ffffffff1660e01b8152600401610936929190611176565b600060405180830381600087803b15801561095057600080fd5b505af1158015610964573d6000803e3d6000fd5b505050505050505050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006109a482610979565b9050919050565b6109b481610999565b81146109bf57600080fd5b50565b6000813590506109d1816109ab565b92915050565b6000819050919050565b6109ea816109d7565b81146109f557600080fd5b50565b600081359050610a07816109e1565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112610a3257610a31610a0d565b5b8235905067ffffffffffffffff811115610a4f57610a4e610a12565b5b602083019150836001820283011115610a6b57610a6a610a17565b5b9250929050565b600080600080600080600060a0888a031215610a9157610a9061096f565b5b6000610a9f8a828b016109c2565b9750506020610ab08a828b016109f8565b965050604088013567ffffffffffffffff811115610ad157610ad0610974565b5b610add8a828b01610a1c565b95509550506060610af08a828b016109f8565b935050608088013567ffffffffffffffff811115610b1157610b10610974565b5b610b1d8a828b01610a1c565b925092505092959891949750929550565b6000819050919050565b6000610b53610b4e610b4984610979565b610b2e565b610979565b9050919050565b6000610b6582610b38565b9050919050565b6000610b7782610b5a565b9050919050565b610b8781610b6c565b82525050565b6000602082019050610ba26000830184610b7e565b92915050565b600080600080600080600060c0888a031215610bc757610bc661096f565b5b6000610bd58a828b016109c2565b9750506020610be68a828b016109f8565b965050604088013567ffffffffffffffff811115610c0757610c06610974565b5b610c138a828b01610a1c565b95509550506060610c268a828b016109f8565b9350506080610c378a828b016109f8565b92505060a0610c488a828b016109c2565b91505092959891949750929550565b60008060008060008060a08789031215610c7457610c7361096f565b5b6000610c8289828a016109c2565b9650506020610c9389828a016109f8565b955050604087013567ffffffffffffffff811115610cb457610cb3610974565b5b610cc089828a01610a1c565b94509450506060610cd389828a016109f8565b9250506080610ce489828a016109f8565b9150509295509295509295565b600080600080600080600060c0888a031215610d1057610d0f61096f565b5b6000610d1e8a828b016109c2565b9750506020610d2f8a828b016109f8565b965050604088013567ffffffffffffffff811115610d5057610d4f610974565b5b610d5c8a828b01610a1c565b95509550506060610d6f8a828b016109f8565b9350506080610d808a828b016109f8565b92505060a0610d918a828b016109f8565b91505092959891949750929550565b60008060008060008060a08789031215610dbd57610dbc61096f565b5b6000610dcb89828a016109c2565b9650506020610ddc89828a016109f8565b955050604087013567ffffffffffffffff811115610dfd57610dfc610974565b5b610e0989828a01610a1c565b94509450506060610e1c89828a016109f8565b9250506080610e2d89828a016109c2565b9150509295509295509295565b600060208284031215610e5057610e4f61096f565b5b6000610e5e848285016109f8565b91505092915050565b60008115159050919050565b610e7c81610e67565b82525050565b6000602082019050610e976000830184610e73565b92915050565b600080600080600060808688031215610eb957610eb861096f565b5b6000610ec7888289016109c2565b9550506020610ed8888289016109f8565b945050604086013567ffffffffffffffff811115610ef957610ef8610974565b5b610f0588828901610a1c565b93509350506060610f18888289016109f8565b9150509295509295909350565b610f2e81610999565b82525050565b610f3d816109d7565b82525050565b600082825260208201905092915050565b82818337600083830152505050565b6000601f19601f8301169050919050565b6000610f808385610f43565b9350610f8d838584610f54565b610f9683610f63565b840190509392505050565b6000606082019050610fb66000830187610f25565b610fc36020830186610f34565b8181036040830152610fd6818486610f74565b905095945050505050565b6000606082019050610ff66000830187610f34565b6110036020830186610f34565b8181036040830152611016818486610f74565b905095945050505050565b60006080820190506110366000830187610f34565b6110436020830186610f34565b6110506040830185610f34565b61105d6060830184610f25565b95945050505050565b600060608201905061107b6000830186610f34565b6110886020830185610f34565b6110956040830184610f34565b949350505050565b60006080820190506110b26000830187610f34565b6110bf6020830186610f34565b6110cc6040830185610f34565b6110d96060830184610f34565b95945050505050565b60006060820190506110f76000830186610f34565b6111046020830185610f34565b6111116040830184610f25565b949350505050565b600060208201905061112e6000830184610f34565b92915050565b600081519050611143816109ab565b92915050565b60006020828403121561115f5761115e61096f565b5b600061116d84828501611134565b91505092915050565b600060408201905061118b6000830185610f34565b6111986020830184610f34565b939250505056fea2646970667358221220ec3495278afe78566e74b538d48e94b094c110ca38b03493e90e5e382cc99d0264736f6c63430008130033",eg=e=>e.length>1;class ey extends p.ContractFactory{constructor(...e){eg(e)?super(...e):super(em,eb,e[0])}deploy(e,t){return super.deploy(e,t||{})}getDeployTransaction(e,t){return super.getDeployTransaction(e,t||{})}attach(e){return super.attach(e)}connect(e){return super.connect(e)}static bytecode=eb;static abi=em;static createInterface(){return new p.utils.Interface(em)}static connect(e,t){return new p.Contract(e,em,t)}}let ev=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"implementation",type:"address"},{indexed:!1,internalType:"uint256",name:"updatedActivationTime",type:"uint256"}],name:"ImplementationActivationRescheduled",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"newDefaultLockTime",type:"uint256"}],name:"LogDefaultVaultWithdrawalLockSet",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"depositorEthKey",type:"address"},{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogDeposit",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogDepositCancel",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogDepositCancelReclaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogDepositNftCancelReclaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"ethKey",type:"address"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogDepositToVault",type:"event"},{anonymous:!1,inputs:[],name:"LogFrozen",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"}],name:"LogFullWithdrawalRequest",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogMintWithdrawalPerformed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogMintableWithdrawalAllowed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"acceptedGovernor",type:"address"}],name:"LogNewGovernorAccepted",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"depositorEthKey",type:"address"},{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogNftDeposit",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogNftWithdrawalAllowed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"},{indexed:!1,internalType:"address",name:"recipient",type:"address"}],name:"LogNftWithdrawalPerformed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"nominatedGovernor",type:"address"}],name:"LogNominatedGovernor",type:"event"},{anonymous:!1,inputs:[],name:"LogNominationCancelled",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"operator",type:"address"}],name:"LogOperatorAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"operator",type:"address"}],name:"LogOperatorRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"entry",type:"address"},{indexed:!1,internalType:"string",name:"entryId",type:"string"}],name:"LogRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"entry",type:"address"},{indexed:!1,internalType:"string",name:"entryId",type:"string"}],name:"LogRemovalIntent",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"entry",type:"address"},{indexed:!1,internalType:"string",name:"entryId",type:"string"}],name:"LogRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"removedGovernor",type:"address"}],name:"LogRemovedGovernor",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"sequenceNumber",type:"uint256"},{indexed:!1,internalType:"uint256",name:"batchId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultRoot",type:"uint256"},{indexed:!1,internalType:"uint256",name:"orderRoot",type:"uint256"}],name:"LogRootUpdate",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"stateTransitionFact",type:"bytes32"}],name:"LogStateTransitionFact",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"tokenAdmin",type:"address"}],name:"LogTokenAdminAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"tokenAdmin",type:"address"}],name:"LogTokenAdminRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"bytes",name:"assetInfo",type:"bytes"},{indexed:!1,internalType:"uint256",name:"quantum",type:"uint256"}],name:"LogTokenRegistered",type:"event"},{anonymous:!1,inputs:[],name:"LogUnFrozen",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"ethKey",type:"address"},{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"address",name:"sender",type:"address"}],name:"LogUserRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"ethKey",type:"address"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"int256",name:"quantizedAmountChange",type:"int256"}],name:"LogVaultBalanceChangeApplied",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"ethKey",type:"address"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"timeRelease",type:"uint256"}],name:"LogVaultWithdrawalLockSet",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogWithdrawalAllowed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"ethKey",type:"address"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogWithdrawalFromVault",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"},{indexed:!1,internalType:"address",name:"recipient",type:"address"}],name:"LogWithdrawalPerformed",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"DEPOSIT_CANCEL_DELAY",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"FREEZE_GRACE_PERIOD",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"MAIN_GOVERNANCE_INFO_TAG",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"MAX_FORCED_ACTIONS_REQS_PER_BLOCK",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"MAX_VERIFIER_COUNT",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"STARKEX_MAX_DEFAULT_VAULT_LOCK",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"UNFREEZE_DELAY",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"VERIFIER_REMOVAL_DELAY",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"verifier",type:"address"}],name:"announceAvailabilityVerifierRemovalIntent",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"verifier",type:"address"}],name:"announceVerifierRemovalIntent",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"defaultVaultWithdrawalLock",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"deposit",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"deposit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"depositCancel",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"depositERC20",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"depositERC20ToVault",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"depositEth",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"depositEthToVault",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"depositNft",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"depositNftReclaim",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"depositReclaim",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"escape",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"freezeRequest",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"fullWithdrawalRequest",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getActionCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"actionIndex",type:"uint256"}],name:"getActionHashByIndex",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"assetType",type:"uint256"}],name:"getAssetInfo",outputs:[{internalType:"bytes",name:"assetInfo",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getCancellationRequest",outputs:[{internalType:"uint256",name:"request",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getDepositBalance",outputs:[{internalType:"uint256",name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"ownerKey",type:"uint256"}],name:"getEthKey",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getFullWithdrawalRequest",outputs:[{internalType:"uint256",name:"res",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getLastBatchId",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOrderRoot",outputs:[{internalType:"uint256",name:"root",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOrderTreeHeight",outputs:[{internalType:"uint256",name:"height",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getQuantizedDepositBalance",outputs:[{internalType:"uint256",name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getQuantizedVaultBalance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"presumedAssetType",type:"uint256"}],name:"getQuantum",outputs:[{internalType:"uint256",name:"quantum",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getRegisteredAvailabilityVerifiers",outputs:[{internalType:"address[]",name:"_verifers",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getRegisteredVerifiers",outputs:[{internalType:"address[]",name:"_verifers",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getSequenceNumber",outputs:[{internalType:"uint256",name:"seq",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getVaultBalance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getVaultRoot",outputs:[{internalType:"uint256",name:"root",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getVaultTreeHeight",outputs:[{internalType:"uint256",name:"height",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getVaultWithdrawalLock",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"ownerKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"}],name:"getWithdrawalBalance",outputs:[{internalType:"uint256",name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"assetType",type:"uint256"}],name:"isAssetRegistered",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"verifierAddress",type:"address"}],name:"isAvailabilityVerifier",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"isFrozen",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"testedOperator",type:"address"}],name:"isOperator",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"isStrictVaultBalancePolicy",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"testedAdmin",type:"address"}],name:"isTokenAdmin",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"isVaultLocked",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"verifierAddress",type:"address"}],name:"isVerifier",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"lockTime",type:"uint256"}],name:"lockVault",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"mainAcceptGovernance",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"mainCancelNomination",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"testGovernor",type:"address"}],name:"mainIsGovernor",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"newGovernor",type:"address"}],name:"mainNominateNewGovernor",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"governorForRemoval",type:"address"}],name:"mainRemoveGovernor",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"orderRegistryAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"registerAndDepositERC20",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"registerAndDepositEth",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"verifier",type:"address"},{internalType:"string",name:"identifier",type:"string"}],name:"registerAvailabilityVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"starkSignature",type:"bytes"}],name:"registerEthAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOperator",type:"address"}],name:"registerOperator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"starkSignature",type:"bytes"}],name:"registerSender",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"bytes",name:"assetInfo",type:"bytes"}],name:"registerToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"bytes",name:"assetInfo",type:"bytes"},{internalType:"uint256",name:"quantum",type:"uint256"}],name:"registerToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newAdmin",type:"address"}],name:"registerTokenAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"verifier",type:"address"},{internalType:"string",name:"identifier",type:"string"}],name:"registerVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"verifier",type:"address"}],name:"removeAvailabilityVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"verifier",type:"address"}],name:"removeVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"newDefaultTime",type:"uint256"}],name:"setDefaultVaultWithdrawalLock",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unFreeze",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"removedOperator",type:"address"}],name:"unregisterOperator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"oldAdmin",type:"address"}],name:"unregisterTokenAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"implementation",type:"address"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bool",name:"finalize",type:"bool"}],name:"updateImplementationActivationTime",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256[]",name:"publicInput",type:"uint256[]"},{internalType:"uint256[]",name:"applicationData",type:"uint256[]"}],name:"updateState",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"ownerKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"}],name:"withdraw",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"ownerKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"bytes",name:"mintingBlob",type:"bytes"}],name:"withdrawAndMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"withdrawFromVault",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"ownerKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"withdrawNft",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],ew=[{inputs:[{internalType:"address payable",name:"_imx",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"uint256",name:"ethKey",type:"uint256"},{internalType:"uint256",name:"starkKey",type:"uint256"}],name:"NoFundsToWithdraw",type:"error"},{inputs:[],name:"getVersion",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"imx",outputs:[{internalType:"contract CoreV4",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"}],name:"isRegistered",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"}],name:"registerAndWithdrawAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"registerAndWithdrawNft",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"bytes",name:"mintingBlob",type:"bytes"}],name:"registerWithdrawAndMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"ethKey",type:"uint256"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"}],name:"withdrawAll",outputs:[],stateMutability:"nonpayable",type:"function"}],e_="0x60a06040523480156200001157600080fd5b50604051620012bc380380620012bc8339818101604052810190620000379190620000dc565b8073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1681525050506200010e565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620000a48262000077565b9050919050565b620000b68162000097565b8114620000c257600080fd5b50565b600081519050620000d681620000ab565b92915050565b600060208284031215620000f557620000f462000072565b5b60006200010584828501620000c5565b91505092915050565b608051611145620001776000396000818161016d01528181610229015281816102c2015281816102f30152818161038501528181610429015281816104bb0152818161056e01528181610629015281816106c9015281816107c4015261085b01526111456000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c8063352eb84c1161005b578063352eb84c146100da57806343fa186d146100f6578063579a698814610112578063d2fc99b5146101425761007d565b8063022cabbc146100825780630d8e6e2c1461009e5780630f08025f146100bc575b600080fd5b61009c600480360381019061009791906109fb565b61015e565b005b6100a6610225565b6040516100b39190610b13565b60405180910390f35b6100c46102c0565b6040516100d19190610b94565b60405180910390f35b6100f460048036038101906100ef9190610baf565b6102e4565b005b610110600480360381019061010b9190610c49565b61041a565b005b61012c60048036038101906101279190610d05565b610553565b6040516101399190610d4d565b60405180910390f35b61015c60048036038101906101579190610d68565b610625565b005b61016784610553565b6101fd577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663bea84187868686866040518563ffffffff1660e01b81526004016101ca9493929190610e26565b600060405180830381600087803b1580156101e457600080fd5b505af11580156101f8573d6000803e3d6000fd5b505050505b61021e8573ffffffffffffffffffffffffffffffffffffffff168583610625565b5050505050565b60607f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663ffa1ad746040518163ffffffff1660e01b8152600401600060405180830381865afa158015610292573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906102bb9190610f87565b905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b6102ed85610553565b610383577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663bea84187878787876040518563ffffffff1660e01b81526004016103509493929190610e26565b600060405180830381600087803b15801561036a57600080fd5b505af115801561037e573d6000803e3d6000fd5b505050505b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663019b417a8684846040518463ffffffff1660e01b81526004016103e093929190610fd0565b600060405180830381600087803b1580156103fa57600080fd5b505af115801561040e573d6000803e3d6000fd5b50505050505050505050565b61042386610553565b6104b9577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663bea84187888888886040518563ffffffff1660e01b81526004016104869493929190610e26565b600060405180830381600087803b1580156104a057600080fd5b505af11580156104b4573d6000803e3d6000fd5b505050505b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d91443b7878585856040518563ffffffff1660e01b81526004016105189493929190611007565b600060405180830381600087803b15801561053257600080fd5b505af1158015610546573d6000803e3d6000fd5b5050505050505050505050565b60008073ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16631dbd1da7846040518263ffffffff1660e01b81526004016105c59190611047565b602060405180830381865afa1580156105e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106069190611077565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663ec3161b085846040518363ffffffff1660e01b81526004016106829291906110a4565b602060405180830381865afa15801561069f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106c391906110e2565b905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663ec3161b085856040518363ffffffff1660e01b81526004016107229291906110a4565b602060405180830381865afa15801561073f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076391906110e2565b90506000821480156107755750600081145b156107b95784846040517f1362cdf20000000000000000000000000000000000000000000000000000000081526004016107b09291906110a4565b60405180910390fd5b6000821115610850577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663441a3e7086856040518363ffffffff1660e01b815260040161081d9291906110a4565b600060405180830381600087803b15801561083757600080fd5b505af115801561084b573d6000803e3d6000fd5b505050505b60008111156108e7577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663441a3e7085856040518363ffffffff1660e01b81526004016108b49291906110a4565b600060405180830381600087803b1580156108ce57600080fd5b505af11580156108e2573d6000803e3d6000fd5b505050505b5050505050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061092d82610902565b9050919050565b61093d81610922565b811461094857600080fd5b50565b60008135905061095a81610934565b92915050565b6000819050919050565b61097381610960565b811461097e57600080fd5b50565b6000813590506109908161096a565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126109bb576109ba610996565b5b8235905067ffffffffffffffff8111156109d8576109d761099b565b5b6020830191508360018202830111156109f4576109f36109a0565b5b9250929050565b600080600080600060808688031215610a1757610a166108f8565b5b6000610a258882890161094b565b9550506020610a3688828901610981565b945050604086013567ffffffffffffffff811115610a5757610a566108fd565b5b610a63888289016109a5565b93509350506060610a7688828901610981565b9150509295509295909350565b600081519050919050565b600082825260208201905092915050565b60005b83811015610abd578082015181840152602081019050610aa2565b60008484015250505050565b6000601f19601f8301169050919050565b6000610ae582610a83565b610aef8185610a8e565b9350610aff818560208601610a9f565b610b0881610ac9565b840191505092915050565b60006020820190508181036000830152610b2d8184610ada565b905092915050565b6000819050919050565b6000610b5a610b55610b5084610902565b610b35565b610902565b9050919050565b6000610b6c82610b3f565b9050919050565b6000610b7e82610b61565b9050919050565b610b8e81610b73565b82525050565b6000602082019050610ba96000830184610b85565b92915050565b60008060008060008060a08789031215610bcc57610bcb6108f8565b5b6000610bda89828a0161094b565b9650506020610beb89828a01610981565b955050604087013567ffffffffffffffff811115610c0c57610c0b6108fd565b5b610c1889828a016109a5565b94509450506060610c2b89828a01610981565b9250506080610c3c89828a01610981565b9150509295509295509295565b600080600080600080600060a0888a031215610c6857610c676108f8565b5b6000610c768a828b0161094b565b9750506020610c878a828b01610981565b965050604088013567ffffffffffffffff811115610ca857610ca76108fd565b5b610cb48a828b016109a5565b95509550506060610cc78a828b01610981565b935050608088013567ffffffffffffffff811115610ce857610ce76108fd565b5b610cf48a828b016109a5565b925092505092959891949750929550565b600060208284031215610d1b57610d1a6108f8565b5b6000610d2984828501610981565b91505092915050565b60008115159050919050565b610d4781610d32565b82525050565b6000602082019050610d626000830184610d3e565b92915050565b600080600060608486031215610d8157610d806108f8565b5b6000610d8f86828701610981565b9350506020610da086828701610981565b9250506040610db186828701610981565b9150509250925092565b610dc481610922565b82525050565b610dd381610960565b82525050565b600082825260208201905092915050565b82818337600083830152505050565b6000610e058385610dd9565b9350610e12838584610dea565b610e1b83610ac9565b840190509392505050565b6000606082019050610e3b6000830187610dbb565b610e486020830186610dca565b8181036040830152610e5b818486610df9565b905095945050505050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b610ea382610ac9565b810181811067ffffffffffffffff82111715610ec257610ec1610e6b565b5b80604052505050565b6000610ed56108ee565b9050610ee18282610e9a565b919050565b600067ffffffffffffffff821115610f0157610f00610e6b565b5b610f0a82610ac9565b9050602081019050919050565b6000610f2a610f2584610ee6565b610ecb565b905082815260208101848484011115610f4657610f45610e66565b5b610f51848285610a9f565b509392505050565b600082601f830112610f6e57610f6d610996565b5b8151610f7e848260208601610f17565b91505092915050565b600060208284031215610f9d57610f9c6108f8565b5b600082015167ffffffffffffffff811115610fbb57610fba6108fd565b5b610fc784828501610f59565b91505092915050565b6000606082019050610fe56000830186610dca565b610ff26020830185610dca565b610fff6040830184610dca565b949350505050565b600060608201905061101c6000830187610dca565b6110296020830186610dca565b818103604083015261103c818486610df9565b905095945050505050565b600060208201905061105c6000830184610dca565b92915050565b60008151905061107181610934565b92915050565b60006020828403121561108d5761108c6108f8565b5b600061109b84828501611062565b91505092915050565b60006040820190506110b96000830185610dca565b6110c66020830184610dca565b9392505050565b6000815190506110dc8161096a565b92915050565b6000602082840312156110f8576110f76108f8565b5b6000611106848285016110cd565b9150509291505056fea2646970667358221220c33e1830b470bf1e012ac831ec80242d6268e5e6e990b7e1574a230f71533ebd64736f6c63430008130033",eE=e=>e.length>1;class eA extends p.ContractFactory{constructor(...e){eE(e)?super(...e):super(ew,e_,e[0])}deploy(e,t){return super.deploy(e,t||{})}getDeployTransaction(e,t){return super.getDeployTransaction(e,t||{})}attach(e){return super.attach(e)}connect(e){return super.connect(e)}static bytecode=e_;static abi=ew;static createInterface(){return new p.utils.Interface(ew)}static connect(e,t){return new p.Contract(e,ew,t)}}var eM=Object.freeze({__proto__:null,Core:class{static abi=ep;static createInterface(){return new p.utils.Interface(ep)}static connect(e,t){return new p.Contract(e,ep,t)}},CoreV4:class{static abi=ev;static createInterface(){return new p.utils.Interface(ev)}static connect(e,t){return new p.Contract(e,ev,t)}},IERC20:class{static abi=el;static createInterface(){return new p.utils.Interface(el)}static connect(e,t){return new p.Contract(e,el,t)}},IERC721:class{static abi=eh;static createInterface(){return new p.utils.Interface(eh)}static connect(e,t){return new p.Contract(e,eh,t)}},Registration:ey,RegistrationV4:eA});class eS extends a.imx.AssetsApi{}class ex extends a.imx.BalancesApi{}class eT extends a.imx.CollectionsApi{}class ek extends a.imx.DepositsApi{}class eR extends a.imx.EncodingApi{}class eI extends a.imx.ExchangesApi{}class eC extends a.imx.MintsApi{}class eP extends a.imx.MetadataApi{}class eO extends a.imx.MetadataRefreshesApi{}class eN extends a.imx.NftCheckoutPrimaryApi{}class ej extends a.imx.OrdersApi{}class eB extends a.imx.PrimarySalesApi{}class eL extends a.imx.ProjectsApi{}class eD extends a.imx.TokensApi{}class eU extends a.imx.TradesApi{}class eF extends a.imx.TransfersApi{}class eq extends a.imx.UsersApi{}class ez extends a.imx.WithdrawalsApi{}let{MetadataSchemaRequestTypeEnum:eK}=a.imx},{c745b84b96ec5443:"2MMCE","@imtbl/generated-clients":"2eu25","@imtbl/config":"ed8SG",axios:"jhAcT","@ethersproject/keccak256":"eWtzg","@ethersproject/strings":"edSy2","bn.js":"lXPno","enc-utils":"hJwty",ethers:"8wpcu","@ethersproject/bytes":"19SwW","hash.js":"2Tlxk",elliptic:"gHKeo","ethereumjs-wallet":"3EQrb",assert:"aeMhE","@ethersproject/abstract-signer":!1,"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],ed8SG:[function(e,t,r){var n,i,a,s,o=e("@parcel/transformer-js/src/esmodule-helpers.js");o.defineInteropFlag(r),o.export(r,"Environment",()=>a),o.export(r,"ImmutableConfiguration",()=>f),o.export(r,"KeyHeaders",()=>s),o.export(r,"addKeysToHeadersOverride",()=>u);var c=e("@imtbl/metrics");(n=a||(a={})).PRODUCTION="production",n.SANDBOX="sandbox",(i=s||(s={})).API_KEY="x-immutable-api-key",i.PUBLISHABLE_KEY="x-immutable-publishable-key",i.RATE_LIMITING_KEY="x-api-key";class f{environment;rateLimitingKey;apiKey;publishableKey;constructor(e){this.environment=e.environment,this.publishableKey=e.publishableKey,this.apiKey=e.apiKey,this.rateLimitingKey=e.rateLimitingKey,(0,c.setEnvironment)(e.environment),(0,c.track)("config","created_imtbl_config")}}let u=(e,t)=>{if(!e||!e.apiKey&&!e.publishableKey&&!e.rateLimitingKey)return t;let r={};return(e.apiKey&&(r[s.API_KEY]=e.apiKey),e.publishableKey&&(r[s.PUBLISHABLE_KEY]=e.publishableKey,(0,c.setPublishableApiKey)(e.publishableKey)),e.rateLimitingKey&&(r[s.RATE_LIMITING_KEY]=e.rateLimitingKey),t&&t.headers)?{...t,headers:{...r,...t.headers}}:{...t,headers:r}}},{"@imtbl/metrics":"dO0KB","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],eWtzg:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"keccak256",()=>o);"use strict";var i=e("js-sha3"),a=n.interopDefault(i),s=e("@ethersproject/bytes");function o(e){return"0x"+(0,a.default).keccak_256((0,s.arrayify)(e))}},{"js-sha3":"l9ad0","@ethersproject/bytes":"19SwW","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],l9ad0:[function(e,t,r){var n=e("5defb539e98cbde3"),i=arguments[3];!function(){"use strict";var e="input is invalid type",r="object"==typeof window,a=r?window:{};a.JS_SHA3_NO_WINDOW&&(r=!1);var s=!r&&"object"==typeof self;!a.JS_SHA3_NO_NODE_JS&&"object"==typeof n&&n.versions&&n.versions.node?a=i:s&&(a=self);var o=!a.JS_SHA3_NO_COMMON_JS&&t.exports,c="function"==typeof define&&define.amd,f=!a.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,u="0123456789abcdef".split(""),d=[4,1024,262144,67108864],l=[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],p=[224,256,384,512],m=[128,256],b=["hex","buffer","arrayBuffer","array","digest"],g={128:168,256:136};(a.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),f&&(a.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 y=function(e,t,r){return function(n){return new O(e,t,e).update(n)[r]()}},v=function(e,t,r){return function(n,i){return new O(e,t,i).update(n)[r]()}},w=function(e,t,r){return function(t,n,i,a){return S["cshake"+e].update(t,n,i,a)[r]()}},_=function(e,t,r){return function(t,n,i,a){return S["kmac"+e].update(t,n,i,a)[r]()}},E=function(e,t,r,n){for(var i=0;i>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){O.call(this,e,t,r)}O.prototype.update=function(t){if(this.finalized)throw Error("finalize already called");var r,n=typeof t;if("string"!==n){if("object"===n){if(null===t)throw Error(e);if(f&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!f||!ArrayBuffer.isView(t)))throw Error(e)}else throw Error(e);r=!0}for(var i,a,s=this.blocks,o=this.byteCount,c=t.length,u=this.blockCount,d=0,h=this.s;d>2]|=t[d]<>2]|=a<>2]|=(192|a>>6)<=57344?s[i>>2]|=(224|a>>12)<>2]|=(240|a>>18)<>2]|=(128|a>>12&63)<>2]|=(128|a>>6&63)<>2]|=(128|63&a)<=o){for(this.start=i-o,this.block=s[u],i=0;i>=8,r=255&e;r>0;)i.unshift(r),e>>=8,r=255&e,++n;return t?i.push(n):i.unshift(n),this.update(i),i.length},O.prototype.encodeString=function(t){var r,n=typeof t;if("string"!==n){if("object"===n){if(null===t)throw Error(e);if(f&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!f||!ArrayBuffer.isView(t)))throw Error(e)}else throw Error(e);r=!0}var i=0,a=t.length;if(r)i=a;else for(var s=0;s=57344?i+=3:(o=65536+((1023&o)<<10|1023&t.charCodeAt(++s)),i+=4)}return i+=this.encode(8*i),this.update(t),i},O.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(t=1,e[0]=e[r];t>4&15]+u[15&e]+u[e>>12&15]+u[e>>8&15]+u[e>>20&15]+u[e>>16&15]+u[e>>28&15]+u[e>>24&15];s%t==0&&(j(r),a=0)}return i&&(o+=u[(e=r[a])>>4&15]+u[15&e],i>1&&(o+=u[e>>12&15]+u[e>>8&15]),i>2&&(o+=u[e>>20&15]+u[e>>16&15])),o},O.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,a=0,s=0,o=this.outputBits>>3;e=new ArrayBuffer(i?n+1<<2:o);for(var c=new Uint32Array(e);s>8&255,c[e+2]=t>>16&255,c[e+3]=t>>24&255;o%r==0&&j(n)}return a&&(e=o<<2,t=n[s],c[e]=255&t,a>1&&(c[e+1]=t>>8&255),a>2&&(c[e+2]=t>>16&255)),c},N.prototype=new O,N.prototype.finalize=function(){return this.encode(this.outputBits,!0),O.prototype.finalize.call(this)};var j=function(e){var t,r,n,i,a,s,o,c,f,u,d,l,p,m,b,g,y,v,w,_,E,A,M,S,x,T,k,R,I,C,P,O,N,j,B,L,D,U,F,q,z,K,H,V,W,G,J,Z,$,X,Y,Q,ee,et,er,en,ei,ea,es,eo,ec,ef,eu;for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],a=e[1]^e[11]^e[21]^e[31]^e[41],s=e[2]^e[12]^e[22]^e[32]^e[42],o=e[3]^e[13]^e[23]^e[33]^e[43],c=e[4]^e[14]^e[24]^e[34]^e[44],f=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],l=e[8]^e[18]^e[28]^e[38]^e[48],p=e[9]^e[19]^e[29]^e[39]^e[49],t=l^(s<<1|o>>>31),r=p^(o<<1|s>>>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=i^(c<<1|f>>>31),r=a^(f<<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=s^(u<<1|d>>>31),r=o^(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^(l<<1|p>>>31),r=f^(p<<1|l>>>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^(i<<1|a>>>31),r=d^(a<<1|i>>>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,m=e[0],b=e[1],G=e[11]<<4|e[10]>>>28,J=e[10]<<4|e[11]>>>28,R=e[20]<<3|e[21]>>>29,I=e[21]<<3|e[20]>>>29,eo=e[31]<<9|e[30]>>>23,ec=e[30]<<9|e[31]>>>23,K=e[40]<<18|e[41]>>>14,H=e[41]<<18|e[40]>>>14,j=e[2]<<1|e[3]>>>31,B=e[3]<<1|e[2]>>>31,g=e[13]<<12|e[12]>>>20,y=e[12]<<12|e[13]>>>20,Z=e[22]<<10|e[23]>>>22,$=e[23]<<10|e[22]>>>22,C=e[33]<<13|e[32]>>>19,P=e[32]<<13|e[33]>>>19,ef=e[42]<<2|e[43]>>>30,eu=e[43]<<2|e[42]>>>30,et=e[5]<<30|e[4]>>>2,er=e[4]<<30|e[5]>>>2,L=e[14]<<6|e[15]>>>26,D=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,X=e[34]<<15|e[35]>>>17,Y=e[35]<<15|e[34]>>>17,O=e[45]<<29|e[44]>>>3,N=e[44]<<29|e[45]>>>3,S=e[6]<<28|e[7]>>>4,x=e[7]<<28|e[6]>>>4,en=e[17]<<23|e[16]>>>9,ei=e[16]<<23|e[17]>>>9,U=e[26]<<25|e[27]>>>7,F=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,E=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,T=e[18]<<20|e[19]>>>12,k=e[19]<<20|e[18]>>>12,ea=e[29]<<7|e[28]>>>25,es=e[28]<<7|e[29]>>>25,q=e[38]<<8|e[39]>>>24,z=e[39]<<8|e[38]>>>24,A=e[48]<<14|e[49]>>>18,M=e[49]<<14|e[48]>>>18,e[0]=m^~g&v,e[1]=b^~y&w,e[10]=S^~T&R,e[11]=x^~k&I,e[20]=j^~L&U,e[21]=B^~D&F,e[30]=V^~G&Z,e[31]=W^~J&$,e[40]=et^~en&ea,e[41]=er^~ei&es,e[2]=g^~v&_,e[3]=y^~w&E,e[12]=T^~R&C,e[13]=k^~I&P,e[22]=L^~U&q,e[23]=D^~F&z,e[32]=G^~Z&X,e[33]=J^~$&Y,e[42]=en^~ea&eo,e[43]=ei^~es&ec,e[4]=v^~_&A,e[5]=w^~E&M,e[14]=R^~C&O,e[15]=I^~P&N,e[24]=U^~q&K,e[25]=F^~z&H,e[34]=Z^~X&Q,e[35]=$^~Y&ee,e[44]=ea^~eo&ef,e[45]=es^~ec&eu,e[6]=_^~A&m,e[7]=E^~M&b,e[16]=C^~O&S,e[17]=P^~N&x,e[26]=q^~K&j,e[27]=z^~H&B,e[36]=X^~Q&V,e[37]=Y^~ee&W,e[46]=eo^~ef&et,e[47]=ec^~eu&er,e[8]=A^~m&g,e[9]=M^~b&y,e[18]=O^~S&T,e[19]=N^~x&k,e[28]=K^~j&L,e[29]=H^~B&D,e[38]=Q^~V&G,e[39]=ee^~W&J,e[48]=ef^~et&en,e[49]=eu^~er&ei,e[0]^=h[n],e[1]^=h[n+1]};if(o)t.exports=S;else{for(T=0;Tf),n.export(r,"isBytes",()=>d),n.export(r,"arrayify",()=>l),n.export(r,"concat",()=>h),n.export(r,"stripZeros",()=>p),n.export(r,"zeroPad",()=>m),n.export(r,"isHexString",()=>b),n.export(r,"hexlify",()=>y),n.export(r,"hexDataLength",()=>v),n.export(r,"hexDataSlice",()=>w),n.export(r,"hexConcat",()=>_),n.export(r,"hexValue",()=>E),n.export(r,"hexStripZeros",()=>A),n.export(r,"hexZeroPad",()=>M),n.export(r,"splitSignature",()=>S),n.export(r,"joinSignature",()=>x);"use strict";var i=e("@ethersproject/logger"),a=e("./_version");let s=new i.Logger(a.version);function o(e){return!!e.toHexString}function c(e){return e.slice||(e.slice=function(){let t=Array.prototype.slice.call(arguments);return c(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function f(e){return b(e)&&!(e.length%2)||d(e)}function u(e){return"number"==typeof e&&e==e&&e%1==0}function d(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e||!u(e.length)||e.length<0)return!1;for(let t=0;t=256)return!1}return!0}function l(e,t){if(t||(t={}),"number"==typeof e){s.checkSafeUint53(e,"invalid arrayify value");let t=[];for(;e;)t.unshift(255&e),e=parseInt(String(e/256));return 0===t.length&&t.push(0),c(new Uint8Array(t))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),o(e)&&(e=e.toHexString()),b(e)){let r=e.substring(2);r.length%2&&("left"===t.hexPad?r="0"+r:"right"===t.hexPad?r+="0":s.throwArgumentError("hex data is odd-length","value",e));let n=[];for(let e=0;el(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),c(n)}function p(e){let t=l(e);if(0===t.length)return t;let r=0;for(;rt&&s.throwArgumentError("value out of range","value",arguments[0]);let r=new Uint8Array(t);return r.set(e,t-e.length),c(r)}function b(e,t){return"string"==typeof e&&!!e.match(/^0x[0-9A-Fa-f]*$/)&&(!t||e.length===2+2*t)}let g="0123456789abcdef";function y(e,t){if(t||(t={}),"number"==typeof e){s.checkSafeUint53(e,"invalid hexlify value");let t="";for(;e;)t=g[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),o(e))return e.toHexString();if(b(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":s.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(d(e)){let t="0x";for(let r=0;r>4]+g[15&n]}return t}return s.throwArgumentError("invalid hexlify value","value",e)}function v(e){if("string"!=typeof e)e=y(e);else if(!b(e)||e.length%2)return null;return(e.length-2)/2}function w(e,t,r){return("string"!=typeof e?e=y(e):(!b(e)||e.length%2)&&s.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=r)?"0x"+e.substring(t,2+2*r):"0x"+e.substring(t)}function _(e){let t="0x";return e.forEach(e=>{t+=y(e).substring(2)}),t}function E(e){let t=A(y(e,{hexPad:"left"}));return"0x"===t?"0x0":t}function A(e){"string"!=typeof e&&(e=y(e)),b(e)||s.throwArgumentError("invalid hex string","value",e),e=e.substring(2);let t=0;for(;t2*t+2&&s.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function S(e){let t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(f(e)){let r=l(e);64===r.length?(t.v=27+(r[32]>>7),r[32]&=127,t.r=y(r.slice(0,32)),t.s=y(r.slice(32,64))):65===r.length?(t.r=y(r.slice(0,32)),t.s=y(r.slice(32,64)),t.v=r[64]):s.throwArgumentError("invalid signature string","signature",e),t.v<27&&(0===t.v||1===t.v?t.v+=27:s.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(r[32]|=128),t._vs=y(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){let r=m(l(t._vs),32);t._vs=y(r);let n=r[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=n:t.recoveryParam!==n&&s.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),r[0]&=127;let i=y(r);null==t.s?t.s=i:t.s!==i&&s.throwArgumentError("signature v mismatch _vs","signature",e)}if(null==t.recoveryParam)null==t.v?s.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{let r=0===t.v||1===t.v?t.v:1-t.v%2;t.recoveryParam!==r&&s.throwArgumentError("signature recoveryParam mismatch v","signature",e)}null!=t.r&&b(t.r)?t.r=M(t.r,32):s.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&b(t.s)?t.s=M(t.s,32):s.throwArgumentError("signature missing or invalid s","signature",e);let r=l(t.s);r[0]>=128&&s.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(r[0]|=128);let n=y(r);t._vs&&(b(t._vs)||s.throwArgumentError("signature invalid _vs","signature",e),t._vs=M(t._vs,32)),null==t._vs?t._vs=n:t._vs!==n&&s.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}function x(e){return y(h([(e=S(e)).r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}},{"@ethersproject/logger":"6NWvR","./_version":"gnsK7","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"6NWvR":[function(e,t,r){var n,i,a,s,o=e("@parcel/transformer-js/src/esmodule-helpers.js");o.defineInteropFlag(r),o.export(r,"LogLevel",()=>a),o.export(r,"ErrorCode",()=>s),o.export(r,"Logger",()=>b);"use strict";var c=e("./_version");let f=!1,u=!1,d={debug:1,default:2,info:2,warning:3,error:4,off:5},l=2,h=null,p=function(){try{let e=[];if(["NFD","NFC","NFKD","NFKC"].forEach(t=>{try{if("test"!=="test".normalize(t))throw Error("bad normalize")}catch(r){e.push(t)}}),e.length)throw Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(e){return e.message}return null}();(n=a||(a={})).DEBUG="DEBUG",n.INFO="INFO",n.WARNING="WARNING",n.ERROR="ERROR",n.OFF="OFF",(i=s||(s={})).UNKNOWN_ERROR="UNKNOWN_ERROR",i.NOT_IMPLEMENTED="NOT_IMPLEMENTED",i.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",i.NETWORK_ERROR="NETWORK_ERROR",i.SERVER_ERROR="SERVER_ERROR",i.TIMEOUT="TIMEOUT",i.BUFFER_OVERRUN="BUFFER_OVERRUN",i.NUMERIC_FAULT="NUMERIC_FAULT",i.MISSING_NEW="MISSING_NEW",i.INVALID_ARGUMENT="INVALID_ARGUMENT",i.MISSING_ARGUMENT="MISSING_ARGUMENT",i.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",i.CALL_EXCEPTION="CALL_EXCEPTION",i.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",i.NONCE_EXPIRED="NONCE_EXPIRED",i.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",i.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",i.TRANSACTION_REPLACED="TRANSACTION_REPLACED",i.ACTION_REJECTED="ACTION_REJECTED";let m="0123456789abcdef";class b{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){let r=e.toLowerCase();null==d[r]&&this.throwArgumentError("invalid log level name","logLevel",e),l>d[r]||console.log.apply(console,t)}debug(...e){this._log(b.levels.DEBUG,e)}info(...e){this._log(b.levels.INFO,e)}warn(...e){this._log(b.levels.WARNING,e)}makeError(e,t,r){if(u)return this.makeError("censored error",t,{});t||(t=b.errors.UNKNOWN_ERROR),r||(r={});let n=[];Object.keys(r).forEach(e=>{let t=r[e];try{if(t instanceof Uint8Array){let r="";for(let e=0;e>4]+m[15&t[e]];n.push(e+"=Uint8Array(0x"+r+")")}else n.push(e+"="+JSON.stringify(t))}catch(t){n.push(e+"="+JSON.stringify(r[e].toString()))}}),n.push(`code=${t}`),n.push(`version=${this.version}`);let i=e,a="";switch(t){case s.NUMERIC_FAULT:{a="NUMERIC_FAULT";let t=e;switch(t){case"overflow":case"underflow":case"division-by-zero":a+="-"+t;break;case"negative-power":case"negative-width":a+="-unsupported";break;case"unbound-bitwise-result":a+="-unbound-result"}break}case s.CALL_EXCEPTION:case s.INSUFFICIENT_FUNDS:case s.MISSING_NEW:case s.NONCE_EXPIRED:case s.REPLACEMENT_UNDERPRICED:case s.TRANSACTION_REPLACED:case s.UNPREDICTABLE_GAS_LIMIT:a=t}a&&(e+=" [ See: https://links.ethers.org/v5-errors-"+a+" ]"),n.length&&(e+=" ("+n.join(", ")+")");let o=Error(e);return o.reason=i,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,b.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"),p&&this.throwError("platform missing String.prototype.normalize",b.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:p})}checkSafeUint53(e,t){"number"==typeof e&&(null==t&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,b.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,b.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,r){r=r?": "+r:"",et&&this.throwError("too many arguments"+r,b.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){(e===Object||null==e)&&this.throwError("missing new",b.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",b.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||null==e)&&this.throwError("missing new",b.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return h||(h=new b(c.version)),h}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",b.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),f){if(!e)return;this.globalLogger().throwError("error censorship permanent",b.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}u=!!e,f=!!t}static setLogLevel(e){let t=d[e.toLowerCase()];if(null==t){b.globalLogger().warn("invalid log level - "+e);return}l=t}static from(e){return new b(e)}}b.errors=s,b.levels=a},{"./_version":"aDnFn","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],aDnFn:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="logger/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gnsK7:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="bytes/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],edSy2:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"_toEscapedUtf8String",()=>s._toEscapedUtf8String),n.export(r,"toUtf8Bytes",()=>s.toUtf8Bytes),n.export(r,"toUtf8CodePoints",()=>s.toUtf8CodePoints),n.export(r,"toUtf8String",()=>s.toUtf8String),n.export(r,"Utf8ErrorFuncs",()=>s.Utf8ErrorFuncs),n.export(r,"Utf8ErrorReason",()=>s.Utf8ErrorReason),n.export(r,"UnicodeNormalizationForm",()=>s.UnicodeNormalizationForm),n.export(r,"formatBytes32String",()=>i.formatBytes32String),n.export(r,"parseBytes32String",()=>i.parseBytes32String),n.export(r,"nameprep",()=>a.nameprep);"use strict";var i=e("./bytes32"),a=e("./idna"),s=e("./utf8")},{"./bytes32":"5F91f","./idna":"kkxaO","./utf8":"4E82p","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"5F91f":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"formatBytes32String",()=>o),n.export(r,"parseBytes32String",()=>c);"use strict";var i=e("@ethersproject/constants"),a=e("@ethersproject/bytes"),s=e("./utf8");function o(e){let t=(0,s.toUtf8Bytes)(e);if(t.length>31)throw Error("bytes32 string must be less than 32 bytes");return(0,a.hexlify)((0,a.concat)([t,i.HashZero]).slice(0,32))}function c(e){let t=(0,a.arrayify)(e);if(32!==t.length)throw Error("invalid bytes32 - not 32 bytes long");if(0!==t[31])throw Error("invalid bytes32 string - no null terminator");let r=31;for(;0===t[r-1];)r--;return(0,s.toUtf8String)(t.slice(0,r))}},{"@ethersproject/constants":"cSsuf","@ethersproject/bytes":"19SwW","./utf8":"4E82p","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],cSsuf:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"AddressZero",()=>i.AddressZero),n.export(r,"NegativeOne",()=>a.NegativeOne),n.export(r,"Zero",()=>a.Zero),n.export(r,"One",()=>a.One),n.export(r,"Two",()=>a.Two),n.export(r,"WeiPerEther",()=>a.WeiPerEther),n.export(r,"MaxUint256",()=>a.MaxUint256),n.export(r,"MinInt256",()=>a.MinInt256),n.export(r,"MaxInt256",()=>a.MaxInt256),n.export(r,"HashZero",()=>s.HashZero),n.export(r,"EtherSymbol",()=>o.EtherSymbol);"use strict";var i=e("./addresses"),a=e("./bignumbers"),s=e("./hashes"),o=e("./strings")},{"./addresses":"3I8he","./bignumbers":"4GaKw","./hashes":"iRbHe","./strings":"ex5EG","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"3I8he":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"AddressZero",()=>i);let i="0x0000000000000000000000000000000000000000"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"4GaKw":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"NegativeOne",()=>a),n.export(r,"Zero",()=>s),n.export(r,"One",()=>o),n.export(r,"Two",()=>c),n.export(r,"WeiPerEther",()=>f),n.export(r,"MaxUint256",()=>u),n.export(r,"MinInt256",()=>d),n.export(r,"MaxInt256",()=>l);var i=e("@ethersproject/bignumber");let a=(0,i.BigNumber).from(-1),s=(0,i.BigNumber).from(0),o=(0,i.BigNumber).from(1),c=(0,i.BigNumber).from(2),f=(0,i.BigNumber).from("1000000000000000000"),u=(0,i.BigNumber).from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),d=(0,i.BigNumber).from("-0x8000000000000000000000000000000000000000000000000000000000000000"),l=(0,i.BigNumber).from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")},{"@ethersproject/bignumber":"hIcBX","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],hIcBX:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"BigNumber",()=>i.BigNumber),n.export(r,"formatFixed",()=>a.formatFixed),n.export(r,"FixedFormat",()=>a.FixedFormat),n.export(r,"FixedNumber",()=>a.FixedNumber),n.export(r,"parseFixed",()=>a.parseFixed),n.export(r,"_base16To36",()=>i._base16To36),n.export(r,"_base36To16",()=>i._base36To16);var i=e("./bignumber"),a=e("./fixednumber")},{"./bignumber":"ha6R2","./fixednumber":"7GQTq","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],ha6R2:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"isBigNumberish",()=>l),n.export(r,"BigNumber",()=>p),n.export(r,"_base36To16",()=>v),n.export(r,"_base16To36",()=>w);"use strict";var i=e("bn.js"),a=n.interopDefault(i),s=e("@ethersproject/bytes"),o=e("@ethersproject/logger"),c=e("./_version"),f=a.default.BN;let u=new o.Logger(c.version),d={};function l(e){return null!=e&&(p.isBigNumber(e)||"number"==typeof e&&e%1==0||"string"==typeof e&&!!e.match(/^-?[0-9]+$/)||(0,s.isHexString)(e)||"bigint"==typeof e||(0,s.isBytes)(e))}let h=!1;class p{constructor(e,t){e!==d&&u.throwError("cannot call constructor directly; use BigNumber.from",o.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return b(g(this).fromTwos(e))}toTwos(e){return b(g(this).toTwos(e))}abs(){return"-"===this._hex[0]?p.from(this._hex.substring(1)):this}add(e){return b(g(this).add(g(e)))}sub(e){return b(g(this).sub(g(e)))}div(e){let t=p.from(e);return t.isZero()&&y("division-by-zero","div"),b(g(this).div(g(e)))}mul(e){return b(g(this).mul(g(e)))}mod(e){let t=g(e);return t.isNeg()&&y("division-by-zero","mod"),b(g(this).umod(t))}pow(e){let t=g(e);return t.isNeg()&&y("negative-power","pow"),b(g(this).pow(t))}and(e){let t=g(e);return(this.isNegative()||t.isNeg())&&y("unbound-bitwise-result","and"),b(g(this).and(t))}or(e){let t=g(e);return(this.isNegative()||t.isNeg())&&y("unbound-bitwise-result","or"),b(g(this).or(t))}xor(e){let t=g(e);return(this.isNegative()||t.isNeg())&&y("unbound-bitwise-result","xor"),b(g(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&y("negative-width","mask"),b(g(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&y("negative-width","shl"),b(g(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&y("negative-width","shr"),b(g(this).shrn(e))}eq(e){return g(this).eq(g(e))}lt(e){return g(this).lt(g(e))}lte(e){return g(this).lte(g(e))}gt(e){return g(this).gt(g(e))}gte(e){return g(this).gte(g(e))}isNegative(){return"-"===this._hex[0]}isZero(){return g(this).isZero()}toNumber(){try{return g(this).toNumber()}catch(e){y("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(e){}return u.throwError("this platform does not support BigInt",o.Logger.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?h||(h=!0,u.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?u.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",o.Logger.errors.UNEXPECTED_ARGUMENT,{}):u.throwError("BigNumber.toString does not accept parameters",o.Logger.errors.UNEXPECTED_ARGUMENT,{})),g(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof p)return e;if("string"==typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new p(d,m(e)):e.match(/^-?[0-9]+$/)?new p(d,m(new f(e))):u.throwArgumentError("invalid BigNumber string","value",e);if("number"==typeof e)return e%1&&y("underflow","BigNumber.from",e),(e>=9007199254740991||e<=-9007199254740991)&&y("overflow","BigNumber.from",e),p.from(String(e));if("bigint"==typeof e)return p.from(e.toString());if((0,s.isBytes)(e))return p.from((0,s.hexlify)(e));if(e){if(e.toHexString){let t=e.toHexString();if("string"==typeof t)return p.from(t)}else{let t=e._hex;if(null==t&&"BigNumber"===e.type&&(t=e.hex),"string"==typeof t&&((0,s.isHexString)(t)||"-"===t[0]&&(0,s.isHexString)(t.substring(1))))return p.from(t)}}return u.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!!(e&&e._isBigNumber)}}function m(e){if("string"!=typeof e)return m(e.toString(16));if("-"===e[0])return("-"===(e=e.substring(1))[0]&&u.throwArgumentError("invalid hex","value",e),"0x00"===(e=m(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 b(e){return p.from(m(e))}function g(e){let t=p.from(e).toHexString();return"-"===t[0]?new f("-"+t.substring(3),16):new f(t.substring(2),16)}function y(e,t,r){let n={fault:e,operation:t};return null!=r&&(n.value=r),u.throwError(e,o.Logger.errors.NUMERIC_FAULT,n)}function v(e){return new f(e,36).toString(16)}function w(e){return new f(e,16).toString(36)}},{"bn.js":"lXPno","@ethersproject/bytes":"19SwW","@ethersproject/logger":"6NWvR","./_version":"FsnUp","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lXPno:[function(e,t,r){!function(t,r){"use strict";function n(e,t){if(!e)throw Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.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"))}"object"==typeof t?t.exports=a:r.BN=a,a.BN=a,a.wordSize=26;try{d="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("bd440367abe2ded7").Buffer}catch(e){}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 o(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function c(e,t,r,i){for(var a=0,s=0,o=Math.min(e.length,r),c=t;c=49?f-49+10:f>=17?f-17+10:f,n(f>=0&&s0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;s-=3)a=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[i]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,i++);else if("le"===r)for(s=0,i=0;s>>26-o&67108863,(o+=24)>=26&&(o-=26,i++);return this._strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n,i=0;i=t;i-=2)n=o(e,t,i)<=18?(a-=18,s+=1,this.words[s]|=n>>>26):a+=8;else for(i=(e.length-t)%2==0?t+1:t;i=18?(a-=18,s+=1,this.words[s]|=n>>>26):a+=8;this._strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var a=e.length-r,s=a%n,o=Math.min(a,a-s)+r,f=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch(e){a.prototype.inspect=u}else a.prototype.inspect=u;function u(){return(this.red?""}var d,l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function m(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],a=0|t.words[0],s=i*a,o=67108863&s,c=s/67108864|0;r.words[0]=o;for(var f=1;f>>26,d=67108863&c,l=Math.min(f,t.length-1),h=Math.max(0,f-e.length+1);h<=l;h++){var p=f-h|0;u+=(s=(i=0|e.words[p])*(a=0|t.words[h])+d)/67108864|0,d=67108863&s}r.words[f]=0|d,c=0|u}return 0!==c?r.words[f]=0|c:r.length--,r._strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,i=0,a=0,s=0;s>>24-i&16777215,(i+=2)>=26&&(i-=26,s--),r=0!==a||s!==this.length-1?l[6-c.length]+c+r:c+r}for(0!==a&&(r=a.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 f=h[e],u=p[e];r="";var d=this.clone();for(d.negative=0;!d.isZero();){var m=d.modrn(u).toString(e);r=(d=d.idivn(u)).isZero()?m+r:l[f-m.length]+m+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")},a.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},a.prototype.toJSON=function(){return this.toString(16,2)},d&&(a.prototype.toBuffer=function(e,t){return this.toArrayLike(d,e,t)}),a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),a=r||Math.max(1,i);n(i<=a,"byte array longer than desired length"),n(a>0,"Requested array length <= 0");var s=e.allocUnsafe?e.allocUnsafe(a):new e(a);return this["_toArrayLike"+("le"===t?"LE":"BE")](s,i),s},a.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,a=0;i>8&255),r>16&255),6===a?(r>24&255),n=0,a=0):(n=s>>>24,a+=2)}if(r=0&&(e[r--]=s>>8&255),r>=0&&(e[r--]=s>>16&255),6===a?(r>=0&&(e[r--]=s>>24&255),n=0,a=0):(n=s>>>24,a+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.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},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.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)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,a=0;a>>26;for(;0!==i&&a>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var a=0,s=0;s>26,this.words[s]=67108863&n;for(;0!==a&&s>26,this.words[s]=67108863&n;if(0===a&&s>>13,h=0|s[1],p=8191&h,m=h>>>13,b=0|s[2],g=8191&b,y=b>>>13,v=0|s[3],w=8191&v,_=v>>>13,E=0|s[4],A=8191&E,M=E>>>13,S=0|s[5],x=8191&S,T=S>>>13,k=0|s[6],R=8191&k,I=k>>>13,C=0|s[7],P=8191&C,O=C>>>13,N=0|s[8],j=8191&N,B=N>>>13,L=0|s[9],D=8191&L,U=L>>>13,F=0|o[0],q=8191&F,z=F>>>13,K=0|o[1],H=8191&K,V=K>>>13,W=0|o[2],G=8191&W,J=W>>>13,Z=0|o[3],$=8191&Z,X=Z>>>13,Y=0|o[4],Q=8191&Y,ee=Y>>>13,et=0|o[5],er=8191&et,en=et>>>13,ei=0|o[6],ea=8191&ei,es=ei>>>13,eo=0|o[7],ec=8191&eo,ef=eo>>>13,eu=0|o[8],ed=8191&eu,el=eu>>>13,eh=0|o[9],ep=8191&eh,em=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var eb=(f+(n=Math.imul(d,q))|0)+((8191&(i=(i=Math.imul(d,z))+Math.imul(l,q)|0))<<13)|0;f=((a=Math.imul(l,z))+(i>>>13)|0)+(eb>>>26)|0,eb&=67108863,n=Math.imul(p,q),i=(i=Math.imul(p,z))+Math.imul(m,q)|0,a=Math.imul(m,z);var eg=(f+(n=n+Math.imul(d,H)|0)|0)+((8191&(i=(i=i+Math.imul(d,V)|0)+Math.imul(l,H)|0))<<13)|0;f=((a=a+Math.imul(l,V)|0)+(i>>>13)|0)+(eg>>>26)|0,eg&=67108863,n=Math.imul(g,q),i=(i=Math.imul(g,z))+Math.imul(y,q)|0,a=Math.imul(y,z),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,H)|0,a=a+Math.imul(m,V)|0;var ey=(f+(n=n+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,J)|0)+Math.imul(l,G)|0))<<13)|0;f=((a=a+Math.imul(l,J)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=67108863,n=Math.imul(w,q),i=(i=Math.imul(w,z))+Math.imul(_,q)|0,a=Math.imul(_,z),n=n+Math.imul(g,H)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,V)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,G)|0,a=a+Math.imul(m,J)|0;var ev=(f+(n=n+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(l,$)|0))<<13)|0;f=((a=a+Math.imul(l,X)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=67108863,n=Math.imul(A,q),i=(i=Math.imul(A,z))+Math.imul(M,q)|0,a=Math.imul(M,z),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,V)|0,n=n+Math.imul(g,G)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,J)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,$)|0,a=a+Math.imul(m,X)|0;var ew=(f+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(l,Q)|0))<<13)|0;f=((a=a+Math.imul(l,ee)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=67108863,n=Math.imul(x,q),i=(i=Math.imul(x,z))+Math.imul(T,q)|0,a=Math.imul(T,z),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(M,H)|0,a=a+Math.imul(M,V)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,G)|0,a=a+Math.imul(_,J)|0,n=n+Math.imul(g,$)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(y,$)|0,a=a+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,a=a+Math.imul(m,ee)|0;var e_=(f+(n=n+Math.imul(d,er)|0)|0)+((8191&(i=(i=i+Math.imul(d,en)|0)+Math.imul(l,er)|0))<<13)|0;f=((a=a+Math.imul(l,en)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,z))+Math.imul(I,q)|0,a=Math.imul(I,z),n=n+Math.imul(x,H)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(T,H)|0,a=a+Math.imul(T,V)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(M,G)|0,a=a+Math.imul(M,J)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(_,$)|0,a=a+Math.imul(_,X)|0,n=n+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(y,Q)|0,a=a+Math.imul(y,ee)|0,n=n+Math.imul(p,er)|0,i=(i=i+Math.imul(p,en)|0)+Math.imul(m,er)|0,a=a+Math.imul(m,en)|0;var eE=(f+(n=n+Math.imul(d,ea)|0)|0)+((8191&(i=(i=i+Math.imul(d,es)|0)+Math.imul(l,ea)|0))<<13)|0;f=((a=a+Math.imul(l,es)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=67108863,n=Math.imul(P,q),i=(i=Math.imul(P,z))+Math.imul(O,q)|0,a=Math.imul(O,z),n=n+Math.imul(R,H)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,V)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(T,G)|0,a=a+Math.imul(T,J)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(M,$)|0,a=a+Math.imul(M,X)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,ee)|0,n=n+Math.imul(g,er)|0,i=(i=i+Math.imul(g,en)|0)+Math.imul(y,er)|0,a=a+Math.imul(y,en)|0,n=n+Math.imul(p,ea)|0,i=(i=i+Math.imul(p,es)|0)+Math.imul(m,ea)|0,a=a+Math.imul(m,es)|0;var eA=(f+(n=n+Math.imul(d,ec)|0)|0)+((8191&(i=(i=i+Math.imul(d,ef)|0)+Math.imul(l,ec)|0))<<13)|0;f=((a=a+Math.imul(l,ef)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=67108863,n=Math.imul(j,q),i=(i=Math.imul(j,z))+Math.imul(B,q)|0,a=Math.imul(B,z),n=n+Math.imul(P,H)|0,i=(i=i+Math.imul(P,V)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,V)|0,n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(I,G)|0,a=a+Math.imul(I,J)|0,n=n+Math.imul(x,$)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(T,$)|0,a=a+Math.imul(T,X)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(M,Q)|0,a=a+Math.imul(M,ee)|0,n=n+Math.imul(w,er)|0,i=(i=i+Math.imul(w,en)|0)+Math.imul(_,er)|0,a=a+Math.imul(_,en)|0,n=n+Math.imul(g,ea)|0,i=(i=i+Math.imul(g,es)|0)+Math.imul(y,ea)|0,a=a+Math.imul(y,es)|0,n=n+Math.imul(p,ec)|0,i=(i=i+Math.imul(p,ef)|0)+Math.imul(m,ec)|0,a=a+Math.imul(m,ef)|0;var eM=(f+(n=n+Math.imul(d,ed)|0)|0)+((8191&(i=(i=i+Math.imul(d,el)|0)+Math.imul(l,ed)|0))<<13)|0;f=((a=a+Math.imul(l,el)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,z))+Math.imul(U,q)|0,a=Math.imul(U,z),n=n+Math.imul(j,H)|0,i=(i=i+Math.imul(j,V)|0)+Math.imul(B,H)|0,a=a+Math.imul(B,V)|0,n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(O,G)|0,a=a+Math.imul(O,J)|0,n=n+Math.imul(R,$)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(I,$)|0,a=a+Math.imul(I,X)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(T,Q)|0,a=a+Math.imul(T,ee)|0,n=n+Math.imul(A,er)|0,i=(i=i+Math.imul(A,en)|0)+Math.imul(M,er)|0,a=a+Math.imul(M,en)|0,n=n+Math.imul(w,ea)|0,i=(i=i+Math.imul(w,es)|0)+Math.imul(_,ea)|0,a=a+Math.imul(_,es)|0,n=n+Math.imul(g,ec)|0,i=(i=i+Math.imul(g,ef)|0)+Math.imul(y,ec)|0,a=a+Math.imul(y,ef)|0,n=n+Math.imul(p,ed)|0,i=(i=i+Math.imul(p,el)|0)+Math.imul(m,ed)|0,a=a+Math.imul(m,el)|0;var eS=(f+(n=n+Math.imul(d,ep)|0)|0)+((8191&(i=(i=i+Math.imul(d,em)|0)+Math.imul(l,ep)|0))<<13)|0;f=((a=a+Math.imul(l,em)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=67108863,n=Math.imul(D,H),i=(i=Math.imul(D,V))+Math.imul(U,H)|0,a=Math.imul(U,V),n=n+Math.imul(j,G)|0,i=(i=i+Math.imul(j,J)|0)+Math.imul(B,G)|0,a=a+Math.imul(B,J)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(O,$)|0,a=a+Math.imul(O,X)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(I,Q)|0,a=a+Math.imul(I,ee)|0,n=n+Math.imul(x,er)|0,i=(i=i+Math.imul(x,en)|0)+Math.imul(T,er)|0,a=a+Math.imul(T,en)|0,n=n+Math.imul(A,ea)|0,i=(i=i+Math.imul(A,es)|0)+Math.imul(M,ea)|0,a=a+Math.imul(M,es)|0,n=n+Math.imul(w,ec)|0,i=(i=i+Math.imul(w,ef)|0)+Math.imul(_,ec)|0,a=a+Math.imul(_,ef)|0,n=n+Math.imul(g,ed)|0,i=(i=i+Math.imul(g,el)|0)+Math.imul(y,ed)|0,a=a+Math.imul(y,el)|0;var ex=(f+(n=n+Math.imul(p,ep)|0)|0)+((8191&(i=(i=i+Math.imul(p,em)|0)+Math.imul(m,ep)|0))<<13)|0;f=((a=a+Math.imul(m,em)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=67108863,n=Math.imul(D,G),i=(i=Math.imul(D,J))+Math.imul(U,G)|0,a=Math.imul(U,J),n=n+Math.imul(j,$)|0,i=(i=i+Math.imul(j,X)|0)+Math.imul(B,$)|0,a=a+Math.imul(B,X)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,n=n+Math.imul(R,er)|0,i=(i=i+Math.imul(R,en)|0)+Math.imul(I,er)|0,a=a+Math.imul(I,en)|0,n=n+Math.imul(x,ea)|0,i=(i=i+Math.imul(x,es)|0)+Math.imul(T,ea)|0,a=a+Math.imul(T,es)|0,n=n+Math.imul(A,ec)|0,i=(i=i+Math.imul(A,ef)|0)+Math.imul(M,ec)|0,a=a+Math.imul(M,ef)|0,n=n+Math.imul(w,ed)|0,i=(i=i+Math.imul(w,el)|0)+Math.imul(_,ed)|0,a=a+Math.imul(_,el)|0;var eT=(f+(n=n+Math.imul(g,ep)|0)|0)+((8191&(i=(i=i+Math.imul(g,em)|0)+Math.imul(y,ep)|0))<<13)|0;f=((a=a+Math.imul(y,em)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,X))+Math.imul(U,$)|0,a=Math.imul(U,X),n=n+Math.imul(j,Q)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(B,Q)|0,a=a+Math.imul(B,ee)|0,n=n+Math.imul(P,er)|0,i=(i=i+Math.imul(P,en)|0)+Math.imul(O,er)|0,a=a+Math.imul(O,en)|0,n=n+Math.imul(R,ea)|0,i=(i=i+Math.imul(R,es)|0)+Math.imul(I,ea)|0,a=a+Math.imul(I,es)|0,n=n+Math.imul(x,ec)|0,i=(i=i+Math.imul(x,ef)|0)+Math.imul(T,ec)|0,a=a+Math.imul(T,ef)|0,n=n+Math.imul(A,ed)|0,i=(i=i+Math.imul(A,el)|0)+Math.imul(M,ed)|0,a=a+Math.imul(M,el)|0;var ek=(f+(n=n+Math.imul(w,ep)|0)|0)+((8191&(i=(i=i+Math.imul(w,em)|0)+Math.imul(_,ep)|0))<<13)|0;f=((a=a+Math.imul(_,em)|0)+(i>>>13)|0)+(ek>>>26)|0,ek&=67108863,n=Math.imul(D,Q),i=(i=Math.imul(D,ee))+Math.imul(U,Q)|0,a=Math.imul(U,ee),n=n+Math.imul(j,er)|0,i=(i=i+Math.imul(j,en)|0)+Math.imul(B,er)|0,a=a+Math.imul(B,en)|0,n=n+Math.imul(P,ea)|0,i=(i=i+Math.imul(P,es)|0)+Math.imul(O,ea)|0,a=a+Math.imul(O,es)|0,n=n+Math.imul(R,ec)|0,i=(i=i+Math.imul(R,ef)|0)+Math.imul(I,ec)|0,a=a+Math.imul(I,ef)|0,n=n+Math.imul(x,ed)|0,i=(i=i+Math.imul(x,el)|0)+Math.imul(T,ed)|0,a=a+Math.imul(T,el)|0;var eR=(f+(n=n+Math.imul(A,ep)|0)|0)+((8191&(i=(i=i+Math.imul(A,em)|0)+Math.imul(M,ep)|0))<<13)|0;f=((a=a+Math.imul(M,em)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=67108863,n=Math.imul(D,er),i=(i=Math.imul(D,en))+Math.imul(U,er)|0,a=Math.imul(U,en),n=n+Math.imul(j,ea)|0,i=(i=i+Math.imul(j,es)|0)+Math.imul(B,ea)|0,a=a+Math.imul(B,es)|0,n=n+Math.imul(P,ec)|0,i=(i=i+Math.imul(P,ef)|0)+Math.imul(O,ec)|0,a=a+Math.imul(O,ef)|0,n=n+Math.imul(R,ed)|0,i=(i=i+Math.imul(R,el)|0)+Math.imul(I,ed)|0,a=a+Math.imul(I,el)|0;var eI=(f+(n=n+Math.imul(x,ep)|0)|0)+((8191&(i=(i=i+Math.imul(x,em)|0)+Math.imul(T,ep)|0))<<13)|0;f=((a=a+Math.imul(T,em)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=67108863,n=Math.imul(D,ea),i=(i=Math.imul(D,es))+Math.imul(U,ea)|0,a=Math.imul(U,es),n=n+Math.imul(j,ec)|0,i=(i=i+Math.imul(j,ef)|0)+Math.imul(B,ec)|0,a=a+Math.imul(B,ef)|0,n=n+Math.imul(P,ed)|0,i=(i=i+Math.imul(P,el)|0)+Math.imul(O,ed)|0,a=a+Math.imul(O,el)|0;var eC=(f+(n=n+Math.imul(R,ep)|0)|0)+((8191&(i=(i=i+Math.imul(R,em)|0)+Math.imul(I,ep)|0))<<13)|0;f=((a=a+Math.imul(I,em)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=67108863,n=Math.imul(D,ec),i=(i=Math.imul(D,ef))+Math.imul(U,ec)|0,a=Math.imul(U,ef),n=n+Math.imul(j,ed)|0,i=(i=i+Math.imul(j,el)|0)+Math.imul(B,ed)|0,a=a+Math.imul(B,el)|0;var eP=(f+(n=n+Math.imul(P,ep)|0)|0)+((8191&(i=(i=i+Math.imul(P,em)|0)+Math.imul(O,ep)|0))<<13)|0;f=((a=a+Math.imul(O,em)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=67108863,n=Math.imul(D,ed),i=(i=Math.imul(D,el))+Math.imul(U,ed)|0,a=Math.imul(U,el);var eO=(f+(n=n+Math.imul(j,ep)|0)|0)+((8191&(i=(i=i+Math.imul(j,em)|0)+Math.imul(B,ep)|0))<<13)|0;f=((a=a+Math.imul(B,em)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=67108863;var eN=(f+(n=Math.imul(D,ep))|0)+((8191&(i=(i=Math.imul(D,em))+Math.imul(U,ep)|0))<<13)|0;return f=((a=Math.imul(U,em))+(i>>>13)|0)+(eN>>>26)|0,eN&=67108863,c[0]=eb,c[1]=eg,c[2]=ey,c[3]=ev,c[4]=ew,c[5]=e_,c[6]=eE,c[7]=eA,c[8]=eM,c[9]=eS,c[10]=ex,c[11]=eT,c[12]=ek,c[13]=eR,c[14]=eI,c[15]=eC,c[16]=eP,c[17]=eO,c[18]=eN,0!==f&&(c[19]=f,r.length++),r};function g(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,a=0;a>>26)|0)>>>26,s&=67108863}r.words[a]=o,n=s,s=i}return 0!==n?r.words[a]=n:r.length--,r._strip()}function y(e,t){this.x=e,this.y=t}Math.imul||(b=m),a.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return 10===this.length&&10===e.length?b(this,e,t):n<63?m(this,e,t):g(this,e,t)},y.prototype.makeRBT=function(e){for(var t=Array(e),r=a.prototype._countBits(e)-1,n=0;n>=1;return n},y.prototype.permute=function(e,t,r,n,i,a){for(var s=0;s>>=1)i++;return 1<>>=13,r[2*s+1]=8191&a,a>>>=13;for(s=2*t;s>=26,r+=(a/67108864|0)+(s>>>26),this.words[i]=67108863&s}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>i&1}return t}(e);if(0===t.length)return new a(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,a=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var i,a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<s)for(this.length-=s,c=0;c=0&&(0!==f||c>=i);c--){var u=0|this.words[c];this.words[c]=f<<26-a|u>>>a,f=u&o}return r&&0!==f&&(r.words[r.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return!(this.length<=r)&&!!(this.words[r]&1<=0);var t=e%26,r=(e-t)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==t&&r++,this.length=Math.min(r,this.length),0!==t&&(this.words[this.length-1]&=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},a.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[i+r]=67108863&a}for(;i>26,this.words[i+r]=67108863&a;if(0===o)return this._strip();for(n(-1===o),o=0,i=0;i>26,this.words[i]=67108863&a;return this.negative=1,this._strip()},a.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),s=e,o=0|s.words[s.length-1];0!=(n=26-this._countBits(o))&&(s=s.ushln(n),i.iushln(n),o=0|s.words[s.length-1]);var c=i.length-s.length;if("mod"!==t){(r=new a(null)).length=c+1,r.words=Array(r.length);for(var f=0;f=0;d--){var l=(0|i.words[s.length+d])*67108864+(0|i.words[s.length+d-1]);for(l=Math.min(l/o|0,67108863),i._ishlnsubmul(s,l,d);0!==i.negative;)l--,i.negative=0,i._ishlnsubmul(s,1,d),i.isZero()||(i.negative^=1);r&&(r.words[d]=l)}return r&&r._strip(),i._strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},a.prototype.divmod=function(e,t,r){var i,s,o;return(n(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(i=o.div.neg()),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:i,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(i=o.div.neg()),{div:i,mod:o.mod}):(this.negative&e.negative)!=0?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:o.div,mod:s}):e.length>this.length||0>this.cmp(e)?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modrn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.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),i=e.andln(1),a=r.cmp(n);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=67108864%e,i=0,a=this.length-1;a>=0;a--)i=(r*i+(0|this.words[a]))%e;return t?-i:i},a.prototype.modn=function(e){return this.modrn(e)},a.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var a=(0|this.words[i])+67108864*r;this.words[i]=a/e|0,r=a%e}return this._strip(),t?this.ineg():this},a.prototype.divn=function(e){return this.clone().idivn(e)},a.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 i=new a(1),s=new a(0),o=new a(0),c=new a(1),f=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++f;for(var u=r.clone(),d=t.clone();!t.isZero();){for(var l=0,h=1;(t.words[0]&h)==0&&l<26;++l,h<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(u),s.isub(d)),i.iushrn(1),s.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(o.isOdd()||c.isOdd())&&(o.iadd(u),c.isub(d)),o.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(o),s.isub(c)):(r.isub(t),o.isub(i),c.isub(s))}return{a:o,b:c,gcd:r.iushln(f)}},a.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new a(1),o=new a(0),c=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var f=0,u=1;(r.words[0]&u)==0&&f<26;++f,u<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var d=0,l=1;(i.words[0]&l)==0&&d<26;++d,l<<=1);if(d>0)for(i.iushrn(d);d-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);r.cmp(i)>=0?(r.isub(i),s.isub(o)):(i.isub(r),o.isub(s))}return 0>(t=0===r.cmpn(1)?s:o).cmpn(0)&&t.iadd(e),t},a.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 i=t.cmp(r);if(i<0){var a=t;t=r,r=a}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new S(e)},a.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)},a.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function E(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=a._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 x(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var e=new a(null);return e.words=Array(Math.ceil(this.n/13)),e},w.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},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},i(_,w),_.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,i=a}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},_.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]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(v[e])return v[e];if("k256"===e)t=new _;else if("p224"===e)t=new E;else if("p192"===e)t=new A;else if("p25519"===e)t=new M;else throw Error("Unknown prime "+e);return v[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(f(e,e.umod(this.m)._forceRed(this)),e)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.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)},S.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},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.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 a(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);n(!i.isZero());var o=new a(1).toRed(this),c=o.redNeg(),f=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,f).cmp(c);)u.redIAdd(c);for(var d=this.pow(u,i),l=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=s;0!==h.cmp(o);){for(var m=h,b=0;0!==m.cmp(o);b++)m=m.redSqr();n(b=0;n--){for(var f=t.words[n],u=c-1;u>=0;u--){var d=f>>u&1;if(i!==r[0]&&(i=this.sqr(i)),0===d&&0===s){o=0;continue}s<<=1,s|=d,(4==++o||0===n&&0===u)&&(i=this.mul(i,r[s]),o=0,s=0)}c=26}return i},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new x(e)},i(x,S),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.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),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):0>i.cmpn(0)&&(s=i.iadd(this.m)),s._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)},{bd440367abe2ded7:"3eno3"}],"3eno3":[function(e,t,r){},{}],FsnUp:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="bignumber/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"7GQTq":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"formatFixed",()=>m),n.export(r,"parseFixed",()=>b),n.export(r,"FixedFormat",()=>g),n.export(r,"FixedNumber",()=>y);"use strict";var i=e("@ethersproject/bytes"),a=e("@ethersproject/logger"),s=e("./_version"),o=e("./bignumber");let c=new a.Logger(s.version),f={},u=(0,o.BigNumber).from(0),d=(0,o.BigNumber).from(-1);function l(e,t,r,n){let i={fault:t,operation:r};return void 0!==n&&(i.value=n),c.throwError(e,a.Logger.errors.NUMERIC_FAULT,i)}let h="0";for(;h.length<256;)h+=h;function p(e){if("number"!=typeof e)try{e=(0,o.BigNumber).from(e).toNumber()}catch(e){}return"number"==typeof e&&e>=0&&e<=256&&!(e%1)?"1"+h.substring(0,e):c.throwArgumentError("invalid decimal size","decimals",e)}function m(e,t){null==t&&(t=0);let r=p(t);e=(0,o.BigNumber).from(e);let n=e.lt(u);n&&(e=e.mul(d));let i=e.mod(r).toString();for(;i.length2&&c.throwArgumentError("too many decimal points","value",e);let a=i[0],s=i[1];for(a||(a="0"),s||(s="0");"0"===s[s.length-1];)s=s.substring(0,s.length-1);for(s.length>r.length-1&&l("fractional component exceeds decimals","underflow","parseFixed"),""===s&&(s="0");s.lengthnull==e[t]?n:(typeof e[t]!==r&&c.throwArgumentError("invalid fixed format ("+t+" not "+r+")","format."+t,e[t]),e[t]);t=i("signed","boolean",t),r=i("width","number",r),n=i("decimals","number",n)}return r%8&&c.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",r),n>80&&c.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",n),new g(f,t,r,n)}}class y{constructor(e,t,r,n){e!==f&&c.throwError("cannot use FixedNumber constructor; use FixedNumber.from",a.Logger.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&&c.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);let t=b(this._value,this.format.decimals),r=b(e._value,e.format.decimals);return y.fromValue(t.add(r),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);let t=b(this._value,this.format.decimals),r=b(e._value,e.format.decimals);return y.fromValue(t.sub(r),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);let t=b(this._value,this.format.decimals),r=b(e._value,e.format.decimals);return y.fromValue(t.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);let t=b(this._value,this.format.decimals),r=b(e._value,e.format.decimals);return y.fromValue(t.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}floor(){let e=this.toString().split(".");1===e.length&&e.push("0");let t=y.from(e[0],this.format),r=!e[1].match(/^(0*)$/);return this.isNegative()&&r&&(t=t.subUnsafe(v.toFormat(t.format))),t}ceiling(){let e=this.toString().split(".");1===e.length&&e.push("0");let t=y.from(e[0],this.format),r=!e[1].match(/^(0*)$/);return!this.isNegative()&&r&&(t=t.addUnsafe(v.toFormat(t.format))),t}round(e){null==e&&(e=0);let t=this.toString().split(".");if(1===t.length&&t.push("0"),(e<0||e>80||e%1)&&c.throwArgumentError("invalid decimal count","decimals",e),t[1].length<=e)return this;let r=y.from("1"+h.substring(0,e),this.format),n=w.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&&c.throwArgumentError("invalid byte width","width",e);let t=(0,o.BigNumber).from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return(0,i.hexZeroPad)(t,e/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return y.fromString(this._value,e)}static fromValue(e,t,r){return null!=r||null==t||(0,o.isBigNumberish)(t)||(r=t,t=null),null==t&&(t=0),null==r&&(r="fixed"),y.fromString(m(e,t),g.from(r))}static fromString(e,t){null==t&&(t="fixed");let r=g.from(t),n=b(e,r.decimals);!r.signed&&n.lt(u)&&l("unsigned value cannot be negative","overflow","value",e);let a=null;r.signed?a=n.toTwos(r.width).toHexString():(a=n.toHexString(),a=(0,i.hexZeroPad)(a,r.width/8));let s=m(n,r.decimals);return new y(f,a,s,r)}static fromBytes(e,t){null==t&&(t="fixed");let r=g.from(t);if((0,i.arrayify)(e).length>r.width/8)throw Error("overflow");let n=(0,o.BigNumber).from(e);r.signed&&(n=n.fromTwos(r.width));let a=n.toTwos((r.signed?0:1)+r.width).toHexString(),s=m(n,r.decimals);return new y(f,a,s,r)}static from(e,t){if("string"==typeof e)return y.fromString(e,t);if((0,i.isBytes)(e))return y.fromBytes(e,t);try{return y.fromValue(e,0,t)}catch(e){if(e.code!==a.Logger.errors.INVALID_ARGUMENT)throw e}return c.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!!(e&&e._isFixedNumber)}}let v=y.from(1),w=y.from("0.5")},{"@ethersproject/bytes":"19SwW","@ethersproject/logger":"6NWvR","./_version":"FsnUp","./bignumber":"ha6R2","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],iRbHe:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"HashZero",()=>i);let i="0x0000000000000000000000000000000000000000000000000000000000000000"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],ex5EG:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"EtherSymbol",()=>i);let i="Ξ"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"4E82p":[function(e,t,r){var n,i,a,s,o=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";o.defineInteropFlag(r),o.export(r,"UnicodeNormalizationForm",()=>a),o.export(r,"Utf8ErrorReason",()=>s),o.export(r,"Utf8ErrorFuncs",()=>h),o.export(r,"toUtf8Bytes",()=>m),o.export(r,"_toEscapedUtf8String",()=>g),o.export(r,"_toUtf8String",()=>y),o.export(r,"toUtf8String",()=>v),o.export(r,"toUtf8CodePoints",()=>w);var c=e("@ethersproject/bytes"),f=e("@ethersproject/logger"),u=e("./_version");let d=new f.Logger(u.version);function l(e,t,r,n,i){if(e===s.BAD_PREFIX||e===s.UNEXPECTED_CONTINUE){let e=0;for(let n=t+1;n>6==2;n++)e++;return e}return e===s.OVERRUN?r.length-t-1:0}(n=a||(a={})).current="",n.NFC="NFC",n.NFD="NFD",n.NFKC="NFKC",n.NFKD="NFKD",(i=s||(s={})).UNEXPECTED_CONTINUE="unexpected continuation byte",i.BAD_PREFIX="bad codepoint prefix",i.OVERRUN="string overrun",i.MISSING_CONTINUE="missing continuation byte",i.OUT_OF_RANGE="out of UTF-8 range",i.UTF16_SURROGATE="UTF-16 surrogate",i.OVERLONG="overlong representation";let h=Object.freeze({error:function(e,t,r,n,i){return d.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,"bytes",r)},ignore:l,replace:function(e,t,r,n,i){return e===s.OVERLONG?(n.push(i),0):(n.push(65533),l(e,t,r,n,i))}});function p(e,t){null==t&&(t=h.error),e=(0,c.arrayify)(e);let r=[],n=0;for(;n>7==0){r.push(i);continue}let a=null,o=null;if((224&i)==192)a=1,o=127;else if((240&i)==224)a=2,o=2047;else if((248&i)==240)a=3,o=65535;else{(192&i)==128?n+=t(s.UNEXPECTED_CONTINUE,n-1,e,r):n+=t(s.BAD_PREFIX,n-1,e,r);continue}if(n-1+a>=e.length){n+=t(s.OVERRUN,n-1,e,r);continue}let c=i&(1<<8-a-1)-1;for(let i=0;i1114111){n+=t(s.OUT_OF_RANGE,n-1-a,e,r,c);continue}if(c>=55296&&c<=57343){n+=t(s.UTF16_SURROGATE,n-1-a,e,r,c);continue}if(c<=o){n+=t(s.OVERLONG,n-1-a,e,r,c);continue}r.push(c)}}return r}function m(e,t=a.current){t!=a.current&&(d.checkNormalize(),e=e.normalize(t));let r=[];for(let t=0;t>6|192),r.push(63&n|128);else if((64512&n)==55296){t++;let i=e.charCodeAt(t);if(t>=e.length||(64512&i)!=56320)throw Error("invalid utf-8 string");let a=65536+((1023&n)<<10)+(1023&i);r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(63&a|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(63&n|128)}return(0,c.arrayify)(r)}function b(e){let t="0000"+e.toString(16);return"\\u"+t.substring(t.length-4)}function g(e,t){return'"'+p(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?b(e):b(((e-=65536)>>10&1023)+55296)+b((1023&e)+56320)}).join("")+'"'}function y(e){return e.map(e=>e<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10&1023)+55296,(1023&e)+56320)).join("")}function v(e,t){return y(p(e,t))}function w(e,t=a.current){return p(m(e,t))}},{"@ethersproject/bytes":"19SwW","@ethersproject/logger":"6NWvR","./_version":"mEQno","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],mEQno:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="strings/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],kkxaO:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"_nameprepTableA1",()=>m),n.export(r,"_nameprepTableB2",()=>b),n.export(r,"_nameprepTableC",()=>g),n.export(r,"nameprep",()=>y);"use strict";var i=e("./utf8");function a(e,t){t||(t=function(e){return[parseInt(e,16)]});let r=0,n={};return e.split(",").forEach(e=>{let i=e.split(":");n[r+=parseInt(i[0],16)]=t(i[1])}),n}function s(e){let t=0;return e.split(",").map(e=>{let r=e.split("-");return 1===r.length?r[1]="0":""===r[1]&&(r[1]="1"),{l:t+parseInt(r[0],16),h:t=parseInt(r[1],16)}})}function o(e,t){let r=0;for(let n=0;n=(r+=i.l)&&e<=r+i.h&&(e-r)%(i.d||1)==0){if(i.e&&-1!==i.e.indexOf(e-r))continue;return i}}return null}let c=s("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"),f="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(e=>parseInt(e,16)),u=[{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}],d=a("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"),l=a("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"),h=a("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 Error("bad data");let t=[];for(let r=0;rf.indexOf(e)>=0||e>=65024&&e<=65039?[]:b(e)||[e]).reduce((e,t)=>(t.forEach(t=>{e.push(t)}),e),[]),(t=(0,i.toUtf8CodePoints)((0,i._toUtf8String)(t),i.UnicodeNormalizationForm.NFKC)).forEach(e=>{if(g(e))throw Error("STRINGPREP_CONTAINS_PROHIBITED")}),t.forEach(e=>{if(m(e))throw Error("STRINGPREP_CONTAINS_UNASSIGNED")});let r=(0,i._toUtf8String)(t);if("-"===r.substring(0,1)||"--"===r.substring(2,4)||"-"===r.substring(r.length-1))throw Error("invalid hyphen");return r}},{"./utf8":"4E82p","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],hJwty:[function(e,t,r){"use strict";var n=e("37da3353fb0fa7ff").Buffer,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});let a=i(e("d4e65179c0f8f385")),s=i(e("532aa29a5036ee04")),o="utf8";function c(e){return new Uint8Array(e)}function f(e,t=!1){let r=e.toString("hex");return t?L(r):r}function u(e){return e.toString(o)}function d(e){return e.readUIntBE(0,e.length)}function l(e){return s.default(e)}function h(e,t=!1){return f(l(e),t)}function p(e){return u(l(e))}function m(e){return d(l(e))}function b(e){return Array.from(e).map(E).join("")}function g(e){return n.from(B(e),"hex")}function y(e){return c(g(e))}function v(e){return b(y(e))}function w(e){return n.from(e,o)}function _(e){return c(w(e))}function E(e){let t=(e>>>0).toString(2);return N(t)}function A(e){return l(M(e))}function M(e){return new Uint8Array(P(e).map(e=>parseInt(e,2)))}function S(e,t){return h(M(e),t)}function x(e){return!!("string"==typeof e&&new RegExp(/^[01]+$/).test(e))&&e.length%8==0}function T(e,t){return"string"==typeof e&&!!e.match(/^0x[0-9A-Fa-f]*$/)&&(!t||e.length===2+2*t)}function k(e){return n.isBuffer(e)}function R(e){return a.default.strict(e)&&!k(e)}function I(e){return!R(e)&&!k(e)&&void 0!==e.byteLength}function C(e,t=8){let r=e%t;return r?(e-r)/t*t+t:e}function P(e,t=8){let r=N(e).match(RegExp(`.{${t}}`,"gi"));return Array.from(r||[])}function O(e){return P(e).map(D).join("")}function N(e,t=8,r="0"){return j(e,C(e.length,t),r)}function j(e,t,r="0"){return U(e,t,!0,r)}function B(e){return e.replace(/^0x/,"")}function L(e){return e.startsWith("0x")?e:`0x${e}`}function D(e){return e.split("").reverse().join("")}function U(e,t,r,n="0"){let i=t-e.length,a=e;if(i>0){let t=n.repeat(i);a=r?t+e:e+t}return a}r.bufferToArray=c,r.bufferToHex=f,r.bufferToUtf8=u,r.bufferToNumber=d,r.bufferToBinary=function(e){return b(c(e))},r.arrayToBuffer=l,r.arrayToHex=h,r.arrayToUtf8=p,r.arrayToNumber=m,r.arrayToBinary=b,r.hexToBuffer=g,r.hexToArray=y,r.hexToUtf8=function(e){return u(g(e))},r.hexToNumber=function(e){return m(y(e))},r.hexToBinary=v,r.utf8ToBuffer=w,r.utf8ToArray=_,r.utf8ToHex=function(e,t=!1){return f(w(e),t)},r.utf8ToNumber=function(e){let t=parseInt(e,10);return function(e,t){if(!e)throw Error(t)}(void 0!==t,"Number can only safely store up to 53 bits"),t},r.utf8ToBinary=function(e){return b(_(e))},r.numberToBuffer=function(e){return A(E(e))},r.numberToArray=function(e){return M(E(e))},r.numberToHex=function(e,t){return S(E(e),t)},r.numberToUtf8=function(e){return`${e}`},r.numberToBinary=E,r.binaryToBuffer=A,r.binaryToArray=M,r.binaryToHex=S,r.binaryToUtf8=function(e){return p(M(e))},r.binaryToNumber=function(e){return m(M(e))},r.isBinaryString=x,r.isHexString=T,r.isBuffer=k,r.isTypedArray=R,r.isArrayBuffer=I,r.getType=function(e){return k(e)?"buffer":R(e)?"typed-array":I(e)?"array-buffer":Array.isArray(e)?"array":typeof e},r.getEncoding=function(e){return x(e)?"binary":T(e)?"hex":o},r.concatBuffers=function(...e){let t=n.concat(e);return t},r.concatArrays=function(...e){let t=[];return e.forEach(e=>t=t.concat(Array.from(e))),new Uint8Array([...t])},r.trimLeft=function(e,t){let r=e.length-t;return r>0&&(e=e.slice(r)),e},r.trimRight=function(e,t){return e.slice(0,t)},r.calcByteLength=C,r.splitBytes=P,r.swapBytes=O,r.swapHex=function(e){return S(O(v(e)))},r.sanitizeBytes=N,r.padLeft=j,r.padRight=function(e,t,r="0"){return U(e,t,!1,r)},r.removeHexPrefix=B,r.addHexPrefix=L,r.sanitizeHex=function(e){return(e=N(e=B(e),2))&&(e=L(e)),e},r.removeHexLeadingZeros=function(e){let t=e.startsWith("0x");return e=(e=B(e)).startsWith("0")?e.substring(1):e,t?L(e):e}},{"37da3353fb0fa7ff":"2MMCE",d4e65179c0f8f385:"69hwL","532aa29a5036ee04":"4JDy2"}],"69hwL":[function(e,t,r){t.exports=a,a.strict=s,a.loose=o;var n=Object.prototype.toString,i={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function a(e){return s(e)||o(e)}function s(e){return e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array}function o(e){return i[n.call(e)]}},{}],"4JDy2":[function(e,t,r){var n=e("1a78dd7d8c10fe5c").Buffer,i=e("dfcbed822b77bad7").strict;t.exports=function(e){if(!i(e))return n.from(e);var t=n.from(e.buffer);return e.byteLength!==e.buffer.byteLength&&(t=t.slice(e.byteOffset,e.byteOffset+e.byteLength)),t}},{"1a78dd7d8c10fe5c":"2MMCE",dfcbed822b77bad7:"69hwL"}],"8wpcu":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Signer",()=>i.Signer),n.export(r,"Wallet",()=>i.Wallet),n.export(r,"VoidSigner",()=>i.VoidSigner),n.export(r,"getDefaultProvider",()=>i.getDefaultProvider),n.export(r,"providers",()=>i.providers),n.export(r,"BaseContract",()=>i.BaseContract),n.export(r,"Contract",()=>i.Contract),n.export(r,"ContractFactory",()=>i.ContractFactory),n.export(r,"BigNumber",()=>i.BigNumber),n.export(r,"FixedNumber",()=>i.FixedNumber),n.export(r,"constants",()=>i.constants),n.export(r,"errors",()=>i.errors),n.export(r,"logger",()=>i.logger),n.export(r,"utils",()=>i.utils),n.export(r,"wordlists",()=>i.wordlists),n.export(r,"version",()=>i.version),n.export(r,"Wordlist",()=>i.Wordlist),n.export(r,"ethers",()=>i);var i=e("./ethers");"use strict";try{let e=window;null==e._ethers&&(e._ethers=i)}catch(e){}},{"./ethers":"gFgxE","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gFgxE:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Signer",()=>s.Signer),n.export(r,"Wallet",()=>o.Wallet),n.export(r,"VoidSigner",()=>s.VoidSigner),n.export(r,"getDefaultProvider",()=>f.getDefaultProvider),n.export(r,"providers",()=>f),n.export(r,"BaseContract",()=>i.BaseContract),n.export(r,"Contract",()=>i.Contract),n.export(r,"ContractFactory",()=>i.ContractFactory),n.export(r,"BigNumber",()=>a.BigNumber),n.export(r,"FixedNumber",()=>a.FixedNumber),n.export(r,"constants",()=>c),n.export(r,"errors",()=>l.ErrorCode),n.export(r,"logger",()=>p),n.export(r,"utils",()=>d),n.export(r,"wordlists",()=>u.wordlists),n.export(r,"version",()=>h.version),n.export(r,"Wordlist",()=>u.Wordlist);"use strict";var i=e("@ethersproject/contracts"),a=e("@ethersproject/bignumber"),s=e("@ethersproject/abstract-signer"),o=e("@ethersproject/wallet"),c=e("@ethersproject/constants"),f=e("@ethersproject/providers"),u=e("@ethersproject/wordlists"),d=e("./utils"),l=e("@ethersproject/logger"),h=e("./_version");let p=new l.Logger(h.version)},{"@ethersproject/contracts":"bmZzW","@ethersproject/bignumber":"hIcBX","@ethersproject/abstract-signer":"j6EbC","@ethersproject/wallet":"euBMB","@ethersproject/constants":"cSsuf","@ethersproject/providers":"lpm2Y","@ethersproject/wordlists":"a2daz","./utils":"7jy5m","@ethersproject/logger":"6NWvR","./_version":"lHxZw","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],bmZzW:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"BaseContract",()=>k),n.export(r,"Contract",()=>R),n.export(r,"ContractFactory",()=>I);"use strict";var i=e("@ethersproject/abi"),a=e("@ethersproject/abstract-provider"),s=e("@ethersproject/abstract-signer"),o=e("@ethersproject/address"),c=e("@ethersproject/bignumber"),f=e("@ethersproject/bytes"),u=e("@ethersproject/properties"),d=e("@ethersproject/transactions"),l=e("@ethersproject/logger"),h=e("./_version"),p=function(e,t,r,n){return new(r||(r=Promise))(function(i,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function o(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}c((n=n.apply(e,t||[])).next())})};let m=new l.Logger(h.version),b={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 g(e,t){return p(this,void 0,void 0,function*(){let r=yield t;"string"!=typeof r&&m.throwArgumentError("invalid address or ENS name","name",r);try{return(0,o.getAddress)(r)}catch(e){}e||m.throwError("a provider or signer is needed to resolve ENS names",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});let n=yield e.resolveName(r);return null==n&&m.throwArgumentError("resolver or addr is not configured for ENS name","name",r),n})}function y(e,t,r){return p(this,void 0,void 0,function*(){return Array.isArray(r)?yield Promise.all(r.map((r,n)=>y(e,Array.isArray(t)?t[n]:t[r.name],r))):"address"===r.type?yield g(e,t):"tuple"===r.type?yield y(e,t,r.components):"array"===r.baseType?Array.isArray(t)?yield Promise.all(t.map(t=>y(e,t,r.arrayChildren))):Promise.reject(m.makeError("invalid value for array",l.Logger.errors.INVALID_ARGUMENT,{argument:"value",value:t})):t})}function v(e,t,r){return p(this,void 0,void 0,function*(){let n={};r.length===t.inputs.length+1&&"object"==typeof r[r.length-1]&&(n=(0,u.shallowCopy)(r.pop())),m.checkArgumentCount(r.length,t.inputs.length,"passed to contract"),e.signer?n.from?n.from=(0,u.resolveProperties)({override:g(e.signer,n.from),signer:e.signer.getAddress()}).then(e=>p(this,void 0,void 0,function*(){return(0,o.getAddress)(e.signer)!==e.override&&m.throwError("Contract with a Signer cannot override from",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),e.override})):n.from=e.signer.getAddress():n.from&&(n.from=g(e.provider,n.from));let i=yield(0,u.resolveProperties)({args:y(e.signer||e.provider,r,t.inputs),address:e.resolvedAddress,overrides:(0,u.resolveProperties)(n)||{}}),a=e.interface.encodeFunctionData(t,i.args),s={data:a,to:i.address},h=i.overrides;if(null!=h.nonce&&(s.nonce=(0,c.BigNumber).from(h.nonce).toNumber()),null!=h.gasLimit&&(s.gasLimit=(0,c.BigNumber).from(h.gasLimit)),null!=h.gasPrice&&(s.gasPrice=(0,c.BigNumber).from(h.gasPrice)),null!=h.maxFeePerGas&&(s.maxFeePerGas=(0,c.BigNumber).from(h.maxFeePerGas)),null!=h.maxPriorityFeePerGas&&(s.maxPriorityFeePerGas=(0,c.BigNumber).from(h.maxPriorityFeePerGas)),null!=h.from&&(s.from=h.from),null!=h.type&&(s.type=h.type),null!=h.accessList&&(s.accessList=(0,d.accessListify)(h.accessList)),null==s.gasLimit&&null!=t.gas){let e=21e3,r=(0,f.arrayify)(a);for(let t=0;tnull!=n[e]);return b.length&&m.throwError(`cannot override ${b.map(e=>JSON.stringify(e)).join(",")}`,l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:b}),s})}function w(e,t){let r=t.wait.bind(t);t.wait=t=>r(t).then(t=>(t.events=t.logs.map(r=>{let n=(0,u.deepCopy)(r),i=null;try{i=e.interface.parseLog(r)}catch(e){}return i&&(n.args=i.args,n.decode=(t,r)=>e.interface.decodeEventLog(i.eventFragment,t,r),n.event=i.name,n.eventSignature=i.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 _(e,t,r){let n=e.signer||e.provider;return function(...i){return p(this,void 0,void 0,function*(){let a;if(i.length===t.inputs.length+1&&"object"==typeof i[i.length-1]){let e=(0,u.shallowCopy)(i.pop());null!=e.blockTag&&(a=yield e.blockTag),delete e.blockTag,i.push(e)}null!=e.deployTransaction&&(yield e._deployed(a));let s=yield v(e,t,i),o=yield n.call(s,a);try{let n=e.interface.decodeFunctionResult(t,o);return r&&1===t.outputs.length&&(n=n[0]),n}catch(t){throw t.code===l.Logger.errors.CALL_EXCEPTION&&(t.address=e.address,t.args=i,t.transaction=s),t}})}}function E(e,t,r){return t.constant?_(e,t,r):function(...r){return p(this,void 0,void 0,function*(){e.signer||m.throwError("sending a transaction requires a signer",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null!=e.deployTransaction&&(yield e._deployed());let n=yield v(e,t,r),i=yield e.signer.sendTransaction(n);return w(e,i),i})}}function A(e){return e.address&&(null==e.topics||0===e.topics.length)?"*":(e.address||"*")+"@"+(e.topics?e.topics.map(e=>Array.isArray(e)?e.join("|"):e).join(":"):"")}class M{constructor(e,t){(0,u.defineReadOnly)(this,"tag",e),(0,u.defineReadOnly)(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){let t=this.listenerCount();return this._listeners=this._listeners.filter(t=>{let r=e.slice();return setTimeout(()=>{t.listener.apply(this,r)},0),!t.once}),t}prepareEvent(e){}getEmit(e){return[e]}}class S extends M{constructor(){super("error",null)}}class x extends M{constructor(e,t,r,n){let i={address:e},a=t.getEventTopic(r);n?(a!==n[0]&&m.throwArgumentError("topic mismatch","topics",n),i.topics=n.slice()):i.topics=[a],super(A(i),i),(0,u.defineReadOnly)(this,"address",e),(0,u.defineReadOnly)(this,"interface",t),(0,u.defineReadOnly)(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){let t=(0,i.checkResultErrors)(e.args);if(t.length)throw t[0].error;let r=(e.args||[]).slice();return r.push(e),r}}class T extends M{constructor(e,t){super("*",{address:e}),(0,u.defineReadOnly)(this,"address",e),(0,u.defineReadOnly)(this,"interface",t)}prepareEvent(e){super.prepareEvent(e);try{let 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(e){}}}class k{constructor(e,t,r){(0,u.defineReadOnly)(this,"interface",(0,u.getStatic)(new.target,"getInterface")(t)),null==r?((0,u.defineReadOnly)(this,"provider",null),(0,u.defineReadOnly)(this,"signer",null)):(0,s.Signer).isSigner(r)?((0,u.defineReadOnly)(this,"provider",r.provider||null),(0,u.defineReadOnly)(this,"signer",r)):(0,a.Provider).isProvider(r)?((0,u.defineReadOnly)(this,"provider",r),(0,u.defineReadOnly)(this,"signer",null)):m.throwArgumentError("invalid signer or provider","signerOrProvider",r),(0,u.defineReadOnly)(this,"callStatic",{}),(0,u.defineReadOnly)(this,"estimateGas",{}),(0,u.defineReadOnly)(this,"functions",{}),(0,u.defineReadOnly)(this,"populateTransaction",{}),(0,u.defineReadOnly)(this,"filters",{});{let e={};Object.keys(this.interface.events).forEach(t=>{let r=this.interface.events[t];(0,u.defineReadOnly)(this.filters,t,(...e)=>({address:this.address,topics:this.interface.encodeFilterTopics(r,e)})),e[r.name]||(e[r.name]=[]),e[r.name].push(t)}),Object.keys(e).forEach(t=>{let r=e[t];1===r.length?(0,u.defineReadOnly)(this.filters,t,this.filters[r[0]]):m.warn(`Duplicate definition of ${t} (${r.join(", ")})`)})}if((0,u.defineReadOnly)(this,"_runningEvents",{}),(0,u.defineReadOnly)(this,"_wrappedEmits",{}),null==e&&m.throwArgumentError("invalid contract address or ENS name","addressOrName",e),(0,u.defineReadOnly)(this,"address",e),this.provider)(0,u.defineReadOnly)(this,"resolvedAddress",g(this.provider,e));else try{(0,u.defineReadOnly)(this,"resolvedAddress",Promise.resolve((0,o.getAddress)(e)))}catch(e){m.throwError("provider is required to use ENS name as contract address",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch(e=>{});let n={},i={};Object.keys(this.interface.functions).forEach(e=>{let t=this.interface.functions[e];if(i[e]){m.warn(`Duplicate ABI entry for ${JSON.stringify(e)}`);return}i[e]=!0;{let r=t.name;n[`%${r}`]||(n[`%${r}`]=[]),n[`%${r}`].push(e)}if(null==this[e]&&(0,u.defineReadOnly)(this,e,E(this,t,!0)),null==this.functions[e]&&(0,u.defineReadOnly)(this.functions,e,E(this,t,!1)),null==this.callStatic[e]&&(0,u.defineReadOnly)(this.callStatic,e,_(this,t,!0)),null==this.populateTransaction[e]){var r;(0,u.defineReadOnly)(this.populateTransaction,e,(r=this,function(...e){return v(r,t,e)}))}null==this.estimateGas[e]&&(0,u.defineReadOnly)(this.estimateGas,e,function(e,t){let r=e.signer||e.provider;return function(...n){return p(this,void 0,void 0,function*(){r||m.throwError("estimate require a provider or signer",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});let i=yield v(e,t,n);return yield r.estimateGas(i)})}}(this,t))}),Object.keys(n).forEach(e=>{let t=n[e];if(t.length>1)return;e=e.substring(1);let r=t[0];try{null==this[e]&&(0,u.defineReadOnly)(this,e,this[r])}catch(e){}null==this.functions[e]&&(0,u.defineReadOnly)(this.functions,e,this.functions[r]),null==this.callStatic[e]&&(0,u.defineReadOnly)(this.callStatic,e,this.callStatic[r]),null==this.populateTransaction[e]&&(0,u.defineReadOnly)(this.populateTransaction,e,this.populateTransaction[r]),null==this.estimateGas[e]&&(0,u.defineReadOnly)(this.estimateGas,e,this.estimateGas[r])})}static getContractAddress(e){return(0,o.getContractAddress)(e)}static getInterface(e){return(0,i.Interface).isInterface(e)?e:new i.Interface(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&&m.throwError("contract not deployed",l.Logger.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this))),this._deployedPromise}fallback(e){this.signer||m.throwError("sending a transactions require a signer",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});let t=(0,u.shallowCopy)(e||{});return["from","to"].forEach(function(e){null!=t[e]&&m.throwError("cannot override "+e,l.Logger.errors.UNSUPPORTED_OPERATION,{operation:e})}),t.to=this.resolvedAddress,this.deployed().then(()=>this.signer.sendTransaction(t))}connect(e){"string"==typeof e&&(e=new s.VoidSigner(e,this.provider));let t=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&(0,u.defineReadOnly)(t,"deployTransaction",this.deployTransaction),t}attach(e){return new this.constructor(e,this.interface,this.signer||this.provider)}static isIndexed(e){return(0,i.Indexed).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 S);if("event"===e)return this._normalizeRunningEvent(new M("event",null));if("*"===e)return this._normalizeRunningEvent(new T(this.address,this.interface));let t=this.interface.getEvent(e);return this._normalizeRunningEvent(new x(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{let t=e.topics[0];if("string"!=typeof t)throw Error("invalid topic");let r=this.interface.getEvent(t);return this._normalizeRunningEvent(new x(this.address,this.interface,r,e.topics))}catch(e){}let t={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new M(A(t),t))}return this._normalizeRunningEvent(new T(this.address,this.interface))}_checkRunningEvents(e){if(0===e.listenerCount()){delete this._runningEvents[e.tag];let t=this._wrappedEmits[e.tag];t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}}_wrapEvent(e,t,r){let n=(0,u.deepCopy)(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||m.throwError("events require a provider or a signer with a provider",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,r),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){let r=r=>{let n=this._wrapEvent(e,r,t);if(null==n.decodeError)try{let t=e.getEmit(n);this.emit(e.filter,...t)}catch(e){n.decodeError=e.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){let n=this._getRunningEvent(e),i=(0,u.shallowCopy)(n.filter);return"string"==typeof t&&(0,f.isHexString)(t,32)?(null!=r&&m.throwArgumentError("cannot specify toBlock with blockhash","toBlock",r),i.blockHash=t):(i.fromBlock=null!=t?t:0,i.toBlock=null!=r?r:"latest"),this.provider.getLogs(i).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,...t){if(!this.provider)return!1;let r=this._getRunningEvent(e),n=r.run(t)>0;return this._checkRunningEvents(r),n}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){let 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(let e in this._runningEvents){let t=this._runningEvents[e];t.removeAllListeners(),this._checkRunningEvents(t)}return this}let t=this._getRunningEvent(e);return t.removeAllListeners(),this._checkRunningEvents(t),this}off(e,t){if(!this.provider)return this;let r=this._getRunningEvent(e);return r.removeListener(t),this._checkRunningEvents(r),this}removeListener(e,t){return this.off(e,t)}}class R extends k{}class I{constructor(e,t,r){let n=null;"0x"!==(n="string"==typeof t?t:(0,f.isBytes)(t)?(0,f.hexlify)(t):t&&"string"==typeof t.object?t.object:"!").substring(0,2)&&(n="0x"+n),(!(0,f.isHexString)(n)||n.length%2)&&m.throwArgumentError("invalid bytecode","bytecode",t),r&&!(0,s.Signer).isSigner(r)&&m.throwArgumentError("invalid signer","signer",r),(0,u.defineReadOnly)(this,"bytecode",n),(0,u.defineReadOnly)(this,"interface",(0,u.getStatic)(new.target,"getInterface")(e)),(0,u.defineReadOnly)(this,"signer",r||null)}getDeployTransaction(...e){let t={};if(e.length===this.interface.deploy.inputs.length+1&&"object"==typeof e[e.length-1]){for(let r in t=(0,u.shallowCopy)(e.pop()))if(!b[r])throw Error("unknown transaction override "+r)}if(["data","from","to"].forEach(e=>{null!=t[e]&&m.throwError("cannot override "+e,l.Logger.errors.UNSUPPORTED_OPERATION,{operation:e})}),t.value){let e=(0,c.BigNumber).from(t.value);e.isZero()||this.interface.deploy.payable||m.throwError("non-payable constructor cannot override value",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:t.value})}return m.checkArgumentCount(e.length,this.interface.deploy.inputs.length," in Contract constructor"),t.data=(0,f.hexlify)((0,f.concat)([this.bytecode,this.interface.encodeDeploy(e)])),t}deploy(...e){return p(this,void 0,void 0,function*(){let t={};e.length===this.interface.deploy.inputs.length+1&&(t=e.pop()),m.checkArgumentCount(e.length,this.interface.deploy.inputs.length," in Contract constructor");let r=yield y(this.signer,e,this.interface.deploy.inputs);r.push(t);let n=this.getDeployTransaction(...r),i=yield this.signer.sendTransaction(n),a=(0,u.getStatic)(this.constructor,"getContractAddress")(i),s=(0,u.getStatic)(this.constructor,"getContract")(a,this.interface,this.signer);return w(s,i),(0,u.defineReadOnly)(s,"deployTransaction",i),s})}attach(e){return this.constructor.getContract(e,this.interface,this.signer)}connect(e){return new this.constructor(this.interface,this.bytecode,e)}static fromSolidity(e,t){null==e&&m.throwError("missing compiler output",l.Logger.errors.MISSING_ARGUMENT,{argument:"compilerOutput"}),"string"==typeof e&&(e=JSON.parse(e));let r=e.abi,n=null;return e.bytecode?n=e.bytecode:e.evm&&e.evm.bytecode&&(n=e.evm.bytecode),new this(r,n,t)}static getInterface(e){return R.getInterface(e)}static getContractAddress(e){return(0,o.getContractAddress)(e)}static getContract(e,t,r){return new R(e,t,r)}}},{"@ethersproject/abi":"gbtNr","@ethersproject/abstract-provider":"imf57","@ethersproject/abstract-signer":"j6EbC","@ethersproject/address":"7BZuS","@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/properties":"dmdV5","@ethersproject/transactions":"ctBdV","@ethersproject/logger":"6NWvR","./_version":"liyH3","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gbtNr:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ConstructorFragment",()=>i.ConstructorFragment),n.export(r,"ErrorFragment",()=>i.ErrorFragment),n.export(r,"EventFragment",()=>i.EventFragment),n.export(r,"Fragment",()=>i.Fragment),n.export(r,"FunctionFragment",()=>i.FunctionFragment),n.export(r,"ParamType",()=>i.ParamType),n.export(r,"FormatTypes",()=>i.FormatTypes),n.export(r,"AbiCoder",()=>a.AbiCoder),n.export(r,"defaultAbiCoder",()=>a.defaultAbiCoder),n.export(r,"Interface",()=>s.Interface),n.export(r,"Indexed",()=>s.Indexed),n.export(r,"checkResultErrors",()=>s.checkResultErrors),n.export(r,"LogDescription",()=>s.LogDescription),n.export(r,"TransactionDescription",()=>s.TransactionDescription);"use strict";var i=e("./fragments"),a=e("./abi-coder"),s=e("./interface")},{"./fragments":"2aRQ2","./abi-coder":"eiswb","./interface":"gOFir","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2aRQ2":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"FormatTypes",()=>p),n.export(r,"ParamType",()=>b),n.export(r,"Fragment",()=>y),n.export(r,"EventFragment",()=>v),n.export(r,"ConstructorFragment",()=>A),n.export(r,"FunctionFragment",()=>M),n.export(r,"ErrorFragment",()=>x);"use strict";var i=e("@ethersproject/bignumber"),a=e("@ethersproject/properties"),s=e("@ethersproject/logger"),o=e("./_version");let c=new s.Logger(o.version),f={},u={calldata:!0,memory:!0,storage:!0},d={calldata:!0,memory:!0};function l(e,t){if("bytes"===e||"string"===e){if(u[t])return!0}else if("address"===e){if("payable"===t)return!0}else if((e.indexOf("[")>=0||"tuple"===e)&&d[t])return!0;return(u[t]||"payable"===t)&&c.throwArgumentError("invalid modifier","name",t),!1}function h(e,t){for(let r in t)(0,a.defineReadOnly)(e,r,t[r])}let p=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),m=new RegExp(/^(.*)\[([0-9]*)\]$/);class b{constructor(e,t){e!==f&&c.throwError("use fromString",s.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),h(this,t);let r=this.type.match(m);r?h(this,{arrayLength:parseInt(r[2]||"-1"),arrayChildren:b.fromObject({type:r[1],components:this.components}),baseType:"array"}):h(this,{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(e){if(e||(e=p.sighash),p[e]||c.throwArgumentError("invalid format type","format",e),e===p.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)+"["+(this.arrayLength<0?"":String(this.arrayLength))+"]":"tuple"===this.baseType?(e!==p.sighash&&(t+=this.type),t+="("+this.components.map(t=>t.format(e)).join(e===p.full?", ":",")+")"):t+=this.type,e!==p.sighash&&(!0===this.indexed&&(t+=" indexed"),e===p.full&&this.name&&(t+=" "+this.name)),t}static from(e,t){return"string"==typeof e?b.fromString(e,t):b.fromObject(e)}static fromObject(e){return b.isParamType(e)?e:new b(f,{name:e.name||null,type:T(e.type),indexed:null==e.indexed?null:!!e.indexed,components:e.components?e.components.map(b.fromObject):null})}static fromString(e,t){var r;return r=function(e,t){let r=e;function n(t){c.throwArgumentError(`unexpected character at position ${t}`,"param",e)}function i(e){let r={type:"",name:"",parent:e,state:{allowType:!0}};return t&&(r.indexed=!1),r}e=e.replace(/\s/g," ");let a={type:"",name:"",state:{allowType:!0}},s=a;for(let r=0;rb.fromString(e,t))}class y{constructor(e,t){e!==f&&c.throwError("use a static from method",s.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),h(this,t),this._isFragment=!0,Object.freeze(this)}static from(e){return y.isFragment(e)?e:"string"==typeof e?y.fromString(e):y.fromObject(e)}static fromObject(e){if(y.isFragment(e))return e;switch(e.type){case"function":return M.fromObject(e);case"event":return v.fromObject(e);case"constructor":return A.fromObject(e);case"error":return x.fromObject(e);case"fallback":case"receive":return null}return c.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]?v.fromString(e.substring(5).trim()):"function"===e.split(" ")[0]?M.fromString(e.substring(8).trim()):"constructor"===e.split("(")[0].trim()?A.fromString(e.trim()):"error"===e.split(" ")[0]?x.fromString(e.substring(5).trim()):c.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!!(e&&e._isFragment)}}class v extends y{format(e){if(e||(e=p.sighash),p[e]||c.throwArgumentError("invalid format type","format",e),e===p.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!==p.sighash&&(t+="event "),t+=this.name+"("+this.inputs.map(t=>t.format(e)).join(e===p.full?", ":",")+") ",e!==p.sighash&&this.anonymous&&(t+="anonymous "),t.trim()}static from(e){return"string"==typeof e?v.fromString(e):v.fromObject(e)}static fromObject(e){if(v.isEventFragment(e))return e;"event"!==e.type&&c.throwArgumentError("invalid event object","value",e);let t={name:R(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(b.fromObject):[],type:"event"};return new v(f,t)}static fromString(e){let t=e.match(I);t||c.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:c.warn("unknown modifier: "+e)}}),v.fromObject({name:t[1].trim(),anonymous:r,inputs:g(t[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&"event"===e.type}}function w(e,t){t.gas=null;let r=e.split("@");return 1!==r.length?(r.length>2&&c.throwArgumentError("invalid human-readable ABI signature","value",e),r[1].match(/^[0-9]+$/)||c.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=(0,i.BigNumber).from(r[1]),r[0]):e}function _(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 E(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&&c.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&c.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||c.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&&c.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&&c.throwArgumentError("unable to determine stateMutability","value",e),t}class A extends y{format(e){if(e||(e=p.sighash),p[e]||c.throwArgumentError("invalid format type","format",e),e===p.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===p.sighash&&c.throwError("cannot format a constructor for sighash",s.Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let t="constructor("+this.inputs.map(t=>t.format(e)).join(e===p.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}static from(e){return"string"==typeof e?A.fromString(e):A.fromObject(e)}static fromObject(e){if(A.isConstructorFragment(e))return e;"constructor"!==e.type&&c.throwArgumentError("invalid constructor object","value",e);let t=E(e);t.constant&&c.throwArgumentError("constructor cannot be constant","value",e);let r={name:null,type:e.type,inputs:e.inputs?e.inputs.map(b.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?(0,i.BigNumber).from(e.gas):null};return new A(f,r)}static fromString(e){let t={type:"constructor"},r=(e=w(e,t)).match(I);return r&&"constructor"===r[1].trim()||c.throwArgumentError("invalid constructor string","value",e),t.inputs=g(r[2].trim(),!1),_(r[3].trim(),t),A.fromObject(t)}static isConstructorFragment(e){return e&&e._isFragment&&"constructor"===e.type}}class M extends A{format(e){if(e||(e=p.sighash),p[e]||c.throwArgumentError("invalid format type","format",e),e===p.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!==p.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map(t=>t.format(e)).join(e===p.full?", ":",")+") ",e!==p.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?M.fromString(e):M.fromObject(e)}static fromObject(e){if(M.isFunctionFragment(e))return e;"function"!==e.type&&c.throwArgumentError("invalid function object","value",e);let t=E(e),r={type:e.type,name:R(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(b.fromObject):[],outputs:e.outputs?e.outputs.map(b.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?(0,i.BigNumber).from(e.gas):null};return new M(f,r)}static fromString(e){let t={type:"function"},r=(e=w(e,t)).split(" returns ");r.length>2&&c.throwArgumentError("invalid function string","value",e);let n=r[0].match(I);if(n||c.throwArgumentError("invalid function signature","value",e),t.name=n[1].trim(),t.name&&R(t.name),t.inputs=g(n[2],!1),_(n[3].trim(),t),r.length>1){let n=r[1].match(I);(""!=n[1].trim()||""!=n[3].trim())&&c.throwArgumentError("unexpected tokens","value",e),t.outputs=g(n[2],!1)}else t.outputs=[];return M.fromObject(t)}static isFunctionFragment(e){return e&&e._isFragment&&"function"===e.type}}function S(e){let t=e.format();return("Error(string)"===t||"Panic(uint256)"===t)&&c.throwArgumentError(`cannot specify user defined ${t} error`,"fragment",e),e}class x extends y{format(e){if(e||(e=p.sighash),p[e]||c.throwArgumentError("invalid format type","format",e),e===p.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t="";return e!==p.sighash&&(t+="error "),(t+=this.name+"("+this.inputs.map(t=>t.format(e)).join(e===p.full?", ":",")+") ").trim()}static from(e){return"string"==typeof e?x.fromString(e):x.fromObject(e)}static fromObject(e){if(x.isErrorFragment(e))return e;"error"!==e.type&&c.throwArgumentError("invalid error object","value",e);let t={type:e.type,name:R(e.name),inputs:e.inputs?e.inputs.map(b.fromObject):[]};return S(new x(f,t))}static fromString(e){let t={type:"error"},r=e.match(I);return r||c.throwArgumentError("invalid error signature","value",e),t.name=r[1].trim(),t.name&&R(t.name),t.inputs=g(r[2],!1),S(x.fromObject(t))}static isErrorFragment(e){return e&&e._isFragment&&"error"===e.type}}function T(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}let k=RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function R(e){return e&&e.match(k)||c.throwArgumentError(`invalid identifier "${e}"`,"value",e),e}let I=RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$")},{"@ethersproject/bignumber":"hIcBX","@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","./_version":"6avgg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dmdV5:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"defineReadOnly",()=>o),n.export(r,"getStatic",()=>c),n.export(r,"resolveProperties",()=>f),n.export(r,"checkProperties",()=>u),n.export(r,"shallowCopy",()=>d),n.export(r,"deepCopy",()=>h),n.export(r,"Description",()=>p);"use strict";var i=e("@ethersproject/logger"),a=e("./_version");let s=new i.Logger(a.version);function o(e,t,r){Object.defineProperty(e,t,{enumerable:!0,value:r,writable:!1})}function c(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 f(e){var t,r,n,i;return t=this,r=void 0,n=void 0,i=function*(){let t=Object.keys(e).map(t=>{let r=e[t];return Promise.resolve(r).then(e=>({key:t,value:e}))}),r=yield Promise.all(t);return r.reduce((e,t)=>(e[t.key]=t.value,e),{})},new(n||(n=Promise))(function(e,a){function s(e){try{c(i.next(e))}catch(e){a(e)}}function o(e){try{c(i.throw(e))}catch(e){a(e)}}function c(t){var r;t.done?e(t.value):((r=t.value)instanceof n?r:new n(function(e){e(r)})).then(s,o)}c((i=i.apply(t,r||[])).next())})}function u(e,t){e&&"object"==typeof e||s.throwArgumentError("invalid object","object",e),Object.keys(e).forEach(r=>{t[r]||s.throwArgumentError("invalid object key - "+r,"transaction:"+r,e)})}function d(e){let t={};for(let r in e)t[r]=e[r];return t}let l={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function h(e){return function(e){if(function e(t){if(null==t||l[typeof t])return!0;if(Array.isArray(t)||"object"==typeof t){if(!Object.isFrozen(t))return!1;let r=Object.keys(t);for(let n=0;nh(e)));if("object"==typeof e){let t={};for(let r in e){let n=e[r];void 0!==n&&o(t,r,h(n))}return t}return s.throwArgumentError(`Cannot deepCopy ${typeof e}`,"object",e)}(e)}class p{constructor(e){for(let t in e)this[t]=h(e[t])}}},{"@ethersproject/logger":"6NWvR","./_version":"bVRqv","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],bVRqv:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="properties/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"6avgg":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="abi/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],eiswb:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"AbiCoder",()=>E),n.export(r,"defaultAbiCoder",()=>A);"use strict";var i=e("@ethersproject/bytes"),a=e("@ethersproject/properties"),s=e("@ethersproject/logger"),o=e("./_version"),c=e("./coders/abstract-coder"),f=e("./coders/address"),u=e("./coders/array"),d=e("./coders/boolean"),l=e("./coders/bytes"),h=e("./coders/fixed-bytes"),p=e("./coders/null"),m=e("./coders/number"),b=e("./coders/string"),g=e("./coders/tuple"),y=e("./fragments");let v=new s.Logger(o.version),w=new RegExp(/^bytes([0-9]*)$/),_=new RegExp(/^(u?int)([0-9]*)$/);class E{constructor(e){(0,a.defineReadOnly)(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new f.AddressCoder(e.name);case"bool":return new d.BooleanCoder(e.name);case"string":return new b.StringCoder(e.name);case"bytes":return new l.BytesCoder(e.name);case"array":return new u.ArrayCoder(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new g.TupleCoder((e.components||[]).map(e=>this._getCoder(e)),e.name);case"":return new p.NullCoder(e.name)}let t=e.type.match(_);if(t){let r=parseInt(t[2]||"256");return(0===r||r>256||r%8!=0)&&v.throwArgumentError("invalid "+t[1]+" bit length","param",e),new m.NumberCoder(r/8,"int"===t[1],e.name)}if(t=e.type.match(w)){let r=parseInt(t[1]);return(0===r||r>32)&&v.throwArgumentError("invalid bytes length","param",e),new h.FixedBytesCoder(r,e.name)}return v.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,t){return new c.Reader(e,this._getWordSize(),this.coerceFunc,t)}_getWriter(){return new c.Writer(this._getWordSize())}getDefaultValue(e){let t=e.map(e=>this._getCoder((0,y.ParamType).from(e))),r=new g.TupleCoder(t,"_");return r.defaultValue()}encode(e,t){e.length!==t.length&&v.throwError("types/values length mismatch",s.Logger.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});let r=e.map(e=>this._getCoder((0,y.ParamType).from(e))),n=new g.TupleCoder(r,"_"),i=this._getWriter();return n.encode(i,t),i.data}decode(e,t,r){let n=e.map(e=>this._getCoder((0,y.ParamType).from(e))),a=new g.TupleCoder(n,"_");return a.decode(this._getReader((0,i.arrayify)(t),r))}}let A=new E},{"@ethersproject/bytes":"19SwW","@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","./_version":"6avgg","./coders/abstract-coder":"9TMyg","./coders/address":"gmOQs","./coders/array":"2wlJw","./coders/boolean":"euYzQ","./coders/bytes":"kOE2A","./coders/fixed-bytes":"dNFj2","./coders/null":"2639x","./coders/number":"lHQpm","./coders/string":"44r1i","./coders/tuple":"90ORK","./fragments":"2aRQ2","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"9TMyg":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"checkResultErrors",()=>u),n.export(r,"Coder",()=>d),n.export(r,"Writer",()=>l),n.export(r,"Reader",()=>h);"use strict";var i=e("@ethersproject/bytes"),a=e("@ethersproject/bignumber"),s=e("@ethersproject/properties"),o=e("@ethersproject/logger"),c=e("../_version");let f=new o.Logger(c.version);function u(e){let t=[],r=function(e,n){if(Array.isArray(n))for(let i in n){let a=e.slice();a.push(i);try{r(a,n[i])}catch(e){t.push({path:a,error:e})}}};return r([],e),t}class d{constructor(e,t,r,n){this.name=e,this.type=t,this.localName=r,this.dynamic=n}_throwError(e,t){f.throwArgumentError(e,this.localName,t)}}class l{constructor(e){(0,s.defineReadOnly)(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}get data(){return(0,i.hexConcat)(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((0,i.concat)(e._data))}writeBytes(e){let t=(0,i.arrayify)(e),r=t.length%this.wordSize;return r&&(t=(0,i.concat)([t,this._padding.slice(r)])),this._writeData(t)}_getValue(e){let t=(0,i.arrayify)((0,a.BigNumber).from(e));return t.length>this.wordSize&&f.throwError("value out-of-bounds",o.Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=(0,i.concat)([this._padding.slice(t.length%this.wordSize),t])),t}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){let e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,t=>{this._data[e]=this._getValue(t)}}}class h{constructor(e,t,r,n){(0,s.defineReadOnly)(this,"_data",(0,i.arrayify)(e)),(0,s.defineReadOnly)(this,"wordSize",t||32),(0,s.defineReadOnly)(this,"_coerceFunc",r),(0,s.defineReadOnly)(this,"allowLoose",n),this._offset=0}get data(){return(0,i.hexlify)(this._data)}get consumed(){return this._offset}static coerce(e,t){let r=e.match("^u?int([0-9]+)$");return r&&48>=parseInt(r[1])&&(t=t.toNumber()),t}coerce(e,t){return this._coerceFunc?this._coerceFunc(e,t):h.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:f.throwError("data out-of-bounds",o.Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+n})),this._data.slice(this._offset,this._offset+n)}subReader(e){return new h(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(0,a.BigNumber).from(this.readBytes(this.wordSize))}}},{"@ethersproject/bytes":"19SwW","@ethersproject/bignumber":"hIcBX","@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","../_version":"6avgg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gmOQs:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"AddressCoder",()=>o);"use strict";var i=e("@ethersproject/address"),a=e("@ethersproject/bytes"),s=e("./abstract-coder");class o extends s.Coder{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){try{t=(0,i.getAddress)(t)}catch(e){this._throwError(e.message,t)}return e.writeValue(t)}decode(e){return(0,i.getAddress)((0,a.hexZeroPad)(e.readValue().toHexString(),20))}}},{"@ethersproject/address":"7BZuS","@ethersproject/bytes":"19SwW","./abstract-coder":"9TMyg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"7BZuS":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"getAddress",()=>m),n.export(r,"isAddress",()=>b),n.export(r,"getIcapAddress",()=>g),n.export(r,"getContractAddress",()=>y),n.export(r,"getCreate2Address",()=>v);"use strict";var i=e("@ethersproject/bytes"),a=e("@ethersproject/bignumber"),s=e("@ethersproject/keccak256"),o=e("@ethersproject/rlp"),c=e("@ethersproject/logger"),f=e("./_version");let u=new c.Logger(f.version);function d(e){(0,i.isHexString)(e,20)||u.throwArgumentError("invalid address","address",e),e=e.toLowerCase();let t=e.substring(2).split(""),r=new Uint8Array(40);for(let e=0;e<40;e++)r[e]=t[e].charCodeAt(0);let n=(0,i.arrayify)((0,s.keccak256)(r));for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&(t[e]=t[e].toUpperCase()),(15&n[e>>1])>=8&&(t[e+1]=t[e+1].toUpperCase());return"0x"+t.join("")}let l={};for(let e=0;e<10;e++)l[String(e)]=String(e);for(let e=0;e<26;e++)l[String.fromCharCode(65+e)]=String(10+e);let h=Math.floor(Math.log10?Math.log10(9007199254740991):Math.log(9007199254740991)/Math.LN10);function p(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map(e=>l[e]).join("");for(;t.length>=h;){let e=t.substring(0,h);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 m(e){let t=null;if("string"!=typeof e&&u.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=d(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&u.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)!==p(e)&&u.throwArgumentError("bad icap checksum","address",e),t=(0,a._base36To16)(e.substring(4));t.length<40;)t="0"+t;t=d("0x"+t)}else u.throwArgumentError("invalid address","address",e);return t}function b(e){try{return m(e),!0}catch(e){}return!1}function g(e){let t=(0,a._base16To36)(m(e).substring(2)).toUpperCase();for(;t.length<30;)t="0"+t;return"XE"+p("XE00"+t)+t}function y(e){let t=null;try{t=m(e.from)}catch(t){u.throwArgumentError("missing from address","transaction",e)}let r=(0,i.stripZeros)((0,i.arrayify)((0,a.BigNumber).from(e.nonce).toHexString()));return m((0,i.hexDataSlice)((0,s.keccak256)((0,o.encode)([t,r])),12))}function v(e,t,r){return 32!==(0,i.hexDataLength)(t)&&u.throwArgumentError("salt must be 32 bytes","salt",t),32!==(0,i.hexDataLength)(r)&&u.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",r),m((0,i.hexDataSlice)((0,s.keccak256)((0,i.concat)(["0xff",m(e),t,r])),12))}},{"@ethersproject/bytes":"19SwW","@ethersproject/bignumber":"hIcBX","@ethersproject/keccak256":"eWtzg","@ethersproject/rlp":"1wlks","@ethersproject/logger":"6NWvR","./_version":"cclNm","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"1wlks":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"encode",()=>u),n.export(r,"decode",()=>h);"use strict";var i=e("@ethersproject/bytes"),a=e("@ethersproject/logger"),s=e("./_version");let o=new a.Logger(s.version);function c(e){let t=[];for(;e;)t.unshift(255&e),e>>=8;return t}function f(e,t,r){let n=0;for(let i=0;it+1+n&&o.throwError("child data too short",a.Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:i}}function l(e,t){if(0===e.length&&o.throwError("data too short",a.Logger.errors.BUFFER_OVERRUN,{}),e[t]>=248){let r=e[t]-247;t+1+r>e.length&&o.throwError("data short segment too short",a.Logger.errors.BUFFER_OVERRUN,{});let n=f(e,t+1,r);return t+1+r+n>e.length&&o.throwError("data long segment too short",a.Logger.errors.BUFFER_OVERRUN,{}),d(e,t,t+1+r,r+n)}if(e[t]>=192){let r=e[t]-192;return t+1+r>e.length&&o.throwError("data array too short",a.Logger.errors.BUFFER_OVERRUN,{}),d(e,t,t+1,r)}if(e[t]>=184){let r=e[t]-183;t+1+r>e.length&&o.throwError("data array too short",a.Logger.errors.BUFFER_OVERRUN,{});let n=f(e,t+1,r);t+1+r+n>e.length&&o.throwError("data array too short",a.Logger.errors.BUFFER_OVERRUN,{});let s=(0,i.hexlify)(e.slice(t+1+r,t+1+r+n));return{consumed:1+r+n,result:s}}if(e[t]>=128){let r=e[t]-128;t+1+r>e.length&&o.throwError("data too short",a.Logger.errors.BUFFER_OVERRUN,{});let n=(0,i.hexlify)(e.slice(t+1,t+1+r));return{consumed:1+r,result:n}}return{consumed:1,result:(0,i.hexlify)(e[t])}}function h(e){let t=(0,i.arrayify)(e),r=l(t,0);return r.consumed!==t.length&&o.throwArgumentError("invalid rlp data","data",e),r.result}},{"@ethersproject/bytes":"19SwW","@ethersproject/logger":"6NWvR","./_version":"AiPnh","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],AiPnh:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="rlp/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],cclNm:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="address/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2wlJw":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"pack",()=>f),n.export(r,"unpack",()=>u),n.export(r,"ArrayCoder",()=>d);"use strict";var i=e("@ethersproject/logger"),a=e("../_version"),s=e("./abstract-coder"),o=e("./anonymous");let c=new i.Logger(a.version);function f(e,t,r){let n=null;if(Array.isArray(r))n=r;else if(r&&"object"==typeof r){let e={};n=t.map(t=>{let n=t.localName;return n||c.throwError("cannot encode object for signature with missing names",i.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),e[n]&&c.throwError("cannot encode object for signature with duplicate names",i.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),e[n]=!0,r[n]})}else c.throwArgumentError("invalid tuple value","tuple",r);t.length!==n.length&&c.throwArgumentError("types/value length mismatch","tuple",r);let a=new s.Writer(e.wordSize),o=new s.Writer(e.wordSize),f=[];return t.forEach((e,t)=>{let r=n[t];if(e.dynamic){let t=o.length;e.encode(o,r);let n=a.writeUpdatableValue();f.push(e=>{n(e+t)})}else e.encode(a,r)}),f.forEach(e=>{e(a.length)}),e.appendWriter(a)+e.appendWriter(o)}function u(e,t){let r=[],n=e.subReader(0);t.forEach(t=>{let a=null;if(t.dynamic){let r=e.readValue(),s=n.subReader(r.toNumber());try{a=t.decode(s)}catch(e){if(e.code===i.Logger.errors.BUFFER_OVERRUN)throw e;(a=e).baseType=t.name,a.name=t.localName,a.type=t.type}}else try{a=t.decode(e)}catch(e){if(e.code===i.Logger.errors.BUFFER_OVERRUN)throw e;(a=e).baseType=t.name,a.name=t.localName,a.type=t.type}void 0!=a&&r.push(a)});let a=t.reduce((e,t)=>{let 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]||("length"===n&&(n="_length"),null!=r[n]))return;let i=r[t];i instanceof Error?Object.defineProperty(r,n,{enumerable:!0,get:()=>{throw i}}):r[n]=i});for(let e=0;e{throw t}})}return Object.freeze(r)}class d extends s.Coder{constructor(e,t,r){let n=e.type+"["+(t>=0?t:"")+"]",i=-1===t||e.dynamic;super("array",n,r,i),this.coder=e,this.length=t}defaultValue(){let e=this.coder.defaultValue(),t=[];for(let r=0;re._data.length&&c.throwError("insufficient data length",i.Logger.errors.BUFFER_OVERRUN,{length:e._data.length,count:t});let r=[];for(let e=0;ea);var i=e("./abstract-coder");"use strict";class a extends i.Coder{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)}}},{"./abstract-coder":"9TMyg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],euYzQ:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"BooleanCoder",()=>a);var i=e("./abstract-coder");"use strict";class a extends i.Coder{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,t){return e.writeValue(t?1:0)}decode(e){return e.coerce(this.type,!e.readValue().isZero())}}},{"./abstract-coder":"9TMyg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],kOE2A:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"DynamicBytesCoder",()=>s),n.export(r,"BytesCoder",()=>o);"use strict";var i=e("@ethersproject/bytes"),a=e("./abstract-coder");class s extends a.Coder{constructor(e,t){super(e,e,t,!0)}defaultValue(){return"0x"}encode(e,t){return t=(0,i.arrayify)(t),e.writeValue(t.length)+e.writeBytes(t)}decode(e){return e.readBytes(e.readValue().toNumber(),!0)}}class o extends s{constructor(e){super("bytes",e)}decode(e){return e.coerce(this.name,(0,i.hexlify)(super.decode(e)))}}},{"@ethersproject/bytes":"19SwW","./abstract-coder":"9TMyg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dNFj2:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"FixedBytesCoder",()=>s);"use strict";var i=e("@ethersproject/bytes"),a=e("./abstract-coder");class s extends a.Coder{constructor(e,t){let r="bytes"+String(e);super(r,r,t,!1),this.size=e}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(e,t){let r=(0,i.arrayify)(t);return r.length!==this.size&&this._throwError("incorrect data length",t),e.writeBytes(r)}decode(e){return e.coerce(this.name,(0,i.hexlify)(e.readBytes(this.size)))}}},{"@ethersproject/bytes":"19SwW","./abstract-coder":"9TMyg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2639x":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"NullCoder",()=>a);var i=e("./abstract-coder");"use strict";class a extends i.Coder{constructor(e){super("null","",e,!1)}defaultValue(){return null}encode(e,t){return null!=t&&this._throwError("not null",t),e.writeBytes([])}decode(e){return e.readBytes(0),e.coerce(this.name,null)}}},{"./abstract-coder":"9TMyg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lHQpm:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"NumberCoder",()=>o);"use strict";var i=e("@ethersproject/bignumber"),a=e("@ethersproject/constants"),s=e("./abstract-coder");class o extends s.Coder{constructor(e,t,r){let n=(t?"int":"uint")+8*e;super(n,n,r,!1),this.size=e,this.signed=t}defaultValue(){return 0}encode(e,t){let r=(0,i.BigNumber).from(t),n=(0,a.MaxUint256).mask(8*e.wordSize);if(this.signed){let e=n.mask(8*this.size-1);(r.gt(e)||r.lt(e.add(a.One).mul(a.NegativeOne)))&&this._throwError("value out-of-bounds",t)}else(r.lt(a.Zero)||r.gt(n.mask(8*this.size)))&&this._throwError("value out-of-bounds",t);return r=r.toTwos(8*this.size).mask(8*this.size),this.signed&&(r=r.fromTwos(8*this.size).toTwos(8*e.wordSize)),e.writeValue(r)}decode(e){let t=e.readValue().mask(8*this.size);return this.signed&&(t=t.fromTwos(8*this.size)),e.coerce(this.name,t)}}},{"@ethersproject/bignumber":"hIcBX","@ethersproject/constants":"cSsuf","./abstract-coder":"9TMyg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"44r1i":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"StringCoder",()=>s);"use strict";var i=e("@ethersproject/strings"),a=e("./bytes");class s extends a.DynamicBytesCoder{constructor(e){super("string",e)}defaultValue(){return""}encode(e,t){return super.encode(e,(0,i.toUtf8Bytes)(t))}decode(e){return(0,i.toUtf8String)(super.decode(e))}}},{"@ethersproject/strings":"edSy2","./bytes":"kOE2A","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"90ORK":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"TupleCoder",()=>s);"use strict";var i=e("./abstract-coder"),a=e("./array");class s extends i.Coder{constructor(e,t){let r=!1,n=[];e.forEach(e=>{e.dynamic&&(r=!0),n.push(e.type)});let i="tuple("+n.join(",")+")";super("tuple",i,t,r),this.coders=e}defaultValue(){let e=[];this.coders.forEach(t=>{e.push(t.defaultValue())});let t=this.coders.reduce((e,t)=>{let r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e},{});return this.coders.forEach((r,n)=>{let i=r.localName;i&&1===t[i]&&("length"===i&&(i="_length"),null==e[i]&&(e[i]=e[n]))}),Object.freeze(e)}encode(e,t){return(0,a.pack)(e,this.coders,t)}decode(e){return e.coerce(this.name,(0,a.unpack)(e,this.coders))}}},{"./abstract-coder":"9TMyg","./array":"2wlJw","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gOFir:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"checkResultErrors",()=>d.checkResultErrors),n.export(r,"LogDescription",()=>b),n.export(r,"TransactionDescription",()=>g),n.export(r,"ErrorDescription",()=>y),n.export(r,"Indexed",()=>v),n.export(r,"Interface",()=>E);"use strict";var i=e("@ethersproject/address"),a=e("@ethersproject/bignumber"),s=e("@ethersproject/bytes"),o=e("@ethersproject/hash"),c=e("@ethersproject/keccak256"),f=e("@ethersproject/properties"),u=e("./abi-coder"),d=e("./coders/abstract-coder"),l=e("./fragments"),h=e("@ethersproject/logger"),p=e("./_version");let m=new h.Logger(p.version);class b extends f.Description{}class g extends f.Description{}class y extends f.Description{}class v extends f.Description{static isIndexed(e){return!!(e&&e._isIndexed)}}let w={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function _(e,t){let r=Error(`deferred error during ABI decoding triggered accessing ${e}`);return r.error=t,r}class E{constructor(e){let t=[];t="string"==typeof e?JSON.parse(e):e,(0,f.defineReadOnly)(this,"fragments",t.map(e=>(0,l.Fragment).from(e)).filter(e=>null!=e)),(0,f.defineReadOnly)(this,"_abiCoder",(0,f.getStatic)(new.target,"getAbiCoder")()),(0,f.defineReadOnly)(this,"functions",{}),(0,f.defineReadOnly)(this,"errors",{}),(0,f.defineReadOnly)(this,"events",{}),(0,f.defineReadOnly)(this,"structs",{}),this.fragments.forEach(e=>{let t=null;switch(e.type){case"constructor":if(this.deploy){m.warn("duplicate definition - constructor");return}(0,f.defineReadOnly)(this,"deploy",e);return;case"function":t=this.functions;break;case"event":t=this.events;break;case"error":t=this.errors;break;default:return}let r=e.format();if(t[r]){m.warn("duplicate definition - "+r);return}t[r]=e}),this.deploy||(0,f.defineReadOnly)(this,"deploy",(0,l.ConstructorFragment).from({payable:!1,type:"constructor"})),(0,f.defineReadOnly)(this,"_isInterface",!0)}format(e){e||(e=l.FormatTypes.full),e===l.FormatTypes.sighash&&m.throwArgumentError("interface does not support formatting sighash","format",e);let t=this.fragments.map(t=>t.format(e));return e===l.FormatTypes.json?JSON.stringify(t.map(e=>JSON.parse(e))):t}static getAbiCoder(){return u.defaultAbiCoder}static getAddress(e){return(0,i.getAddress)(e)}static getSighash(e){return(0,s.hexDataSlice)((0,o.id)(e.format()),0,4)}static getEventTopic(e){return(0,o.id)(e.format())}getFunction(e){if((0,s.isHexString)(e)){for(let t in this.functions)if(e===this.getSighash(t))return this.functions[t];m.throwArgumentError("no matching function","sighash",e)}if(-1===e.indexOf("(")){let t=e.trim(),r=Object.keys(this.functions).filter(e=>e.split("(")[0]===t);return 0===r.length?m.throwArgumentError("no matching function","name",t):r.length>1&&m.throwArgumentError("multiple matching functions","name",t),this.functions[r[0]]}let t=this.functions[(0,l.FunctionFragment).fromString(e).format()];return t||m.throwArgumentError("no matching function","signature",e),t}getEvent(e){if((0,s.isHexString)(e)){let t=e.toLowerCase();for(let e in this.events)if(t===this.getEventTopic(e))return this.events[e];m.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){let t=e.trim(),r=Object.keys(this.events).filter(e=>e.split("(")[0]===t);return 0===r.length?m.throwArgumentError("no matching event","name",t):r.length>1&&m.throwArgumentError("multiple matching events","name",t),this.events[r[0]]}let t=this.events[(0,l.EventFragment).fromString(e).format()];return t||m.throwArgumentError("no matching event","signature",e),t}getError(e){if((0,s.isHexString)(e)){let t=(0,f.getStatic)(this.constructor,"getSighash");for(let r in this.errors){let n=this.errors[r];if(e===t(n))return this.errors[r]}m.throwArgumentError("no matching error","sighash",e)}if(-1===e.indexOf("(")){let t=e.trim(),r=Object.keys(this.errors).filter(e=>e.split("(")[0]===t);return 0===r.length?m.throwArgumentError("no matching error","name",t):r.length>1&&m.throwArgumentError("multiple matching errors","name",t),this.errors[r[0]]}let t=this.errors[(0,l.FunctionFragment).fromString(e).format()];return t||m.throwArgumentError("no matching error","signature",e),t}getSighash(e){if("string"==typeof e)try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch(e){throw t}}return(0,f.getStatic)(this.constructor,"getSighash")(e)}getEventTopic(e){return"string"==typeof e&&(e=this.getEvent(e)),(0,f.getStatic)(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));let r=(0,s.arrayify)(t);return(0,s.hexlify)(r.slice(0,4))!==this.getSighash(e)&&m.throwArgumentError(`data signature does not match error ${e.name}.`,"data",(0,s.hexlify)(r)),this._decodeParams(e.inputs,r.slice(4))}encodeErrorResult(e,t){return"string"==typeof e&&(e=this.getError(e)),(0,s.hexlify)((0,s.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionData(e,t){"string"==typeof e&&(e=this.getFunction(e));let r=(0,s.arrayify)(t);return(0,s.hexlify)(r.slice(0,4))!==this.getSighash(e)&&m.throwArgumentError(`data signature does not match function ${e.name}.`,"data",(0,s.hexlify)(r)),this._decodeParams(e.inputs,r.slice(4))}encodeFunctionData(e,t){return"string"==typeof e&&(e=this.getFunction(e)),(0,s.hexlify)((0,s.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionResult(e,t){"string"==typeof e&&(e=this.getFunction(e));let r=(0,s.arrayify)(t),n=null,i="",a=null,o=null,c=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,r)}catch(e){}break;case 4:{let e=(0,s.hexlify)(r.slice(0,4)),t=w[e];if(t)a=this._abiCoder.decode(t.inputs,r.slice(4)),o=t.name,c=t.signature,t.reason&&(n=a[0]),"Error"===o?i=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(a[0])}`:"Panic"===o&&(i=`; VM Exception while processing transaction: reverted with panic code ${a[0]}`);else try{let t=this.getError(e);a=this._abiCoder.decode(t.inputs,r.slice(4)),o=t.name,c=t.format()}catch(e){}}}return m.throwError("call revert exception"+i,h.Logger.errors.CALL_EXCEPTION,{method:e.format(),data:(0,s.hexlify)(t),errorArgs:a,errorName:o,errorSignature:c,reason:n})}encodeFunctionResult(e,t){return"string"==typeof e&&(e=this.getFunction(e)),(0,s.hexlify)(this._abiCoder.encode(e.outputs,t||[]))}encodeFilterTopics(e,t){"string"==typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&m.throwError("too many arguments for "+e.format(),h.Logger.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});let r=[];e.anonymous||r.push(this.getEventTopic(e));let n=(e,t)=>"string"===e.type?(0,o.id)(t):"bytes"===e.type?(0,c.keccak256)((0,s.hexlify)(t)):("bool"===e.type&&"boolean"==typeof t&&(t=t?"0x01":"0x00"),e.type.match(/^u?int/)&&(t=(0,a.BigNumber).from(t).toHexString()),"address"===e.type&&this._abiCoder.encode(["address"],[t]),(0,s.hexZeroPad)((0,s.hexlify)(t),32));for(t.forEach((t,i)=>{let a=e.inputs[i];if(!a.indexed){null!=t&&m.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+a.name,t);return}null==t?r.push(null):"array"===a.baseType||"tuple"===a.baseType?m.throwArgumentError("filtering with tuples or arrays not supported","contract."+a.name,t):Array.isArray(t)?r.push(t.map(e=>n(a,e))):r.push(n(a,t))});r.length&&null===r[r.length-1];)r.pop();return r}encodeEventLog(e,t){"string"==typeof e&&(e=this.getEvent(e));let r=[],n=[],i=[];return e.anonymous||r.push(this.getEventTopic(e)),t.length!==e.inputs.length&&m.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach((e,a)=>{let s=t[a];if(e.indexed){if("string"===e.type)r.push((0,o.id)(s));else if("bytes"===e.type)r.push((0,c.keccak256)(s));else if("tuple"===e.baseType||"array"===e.baseType)throw Error("not implemented");else r.push(this._abiCoder.encode([e.type],[s]))}else n.push(e),i.push(s)}),{data:this._abiCoder.encode(n,i),topics:r}}decodeEventLog(e,t,r){if("string"==typeof e&&(e=this.getEvent(e)),null!=r&&!e.anonymous){let t=this.getEventTopic(e);(0,s.isHexString)(r[0],32)&&r[0].toLowerCase()===t||m.throwError("fragment/topic mismatch",h.Logger.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:t,value:r[0]}),r=r.slice(1)}let n=[],i=[],a=[];e.inputs.forEach((e,t)=>{e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(n.push((0,l.ParamType).fromObject({type:"bytes32",name:e.name})),a.push(!0)):(n.push(e),a.push(!1)):(i.push(e),a.push(!1))});let o=null!=r?this._abiCoder.decode(n,(0,s.concat)(r)):null,c=this._abiCoder.decode(i,t,!0),f=[],u=0,d=0;e.inputs.forEach((e,t)=>{if(e.indexed){if(null==o)f[t]=new v({_isIndexed:!0,hash:null});else if(a[t])f[t]=new v({_isIndexed:!0,hash:o[d++]});else try{f[t]=o[d++]}catch(e){f[t]=e}}else try{f[t]=c[u++]}catch(e){f[t]=e}if(e.name&&null==f[e.name]){let r=f[t];r instanceof Error?Object.defineProperty(f,e.name,{enumerable:!0,get:()=>{throw _(`property ${JSON.stringify(e.name)}`,r)}}):f[e.name]=r}});for(let e=0;e{throw _(`index ${e}`,t)}})}return Object.freeze(f)}parseTransaction(e){let t=this.getFunction(e.data.substring(0,10).toLowerCase());return t?new g({args:this._abiCoder.decode(t.inputs,"0x"+e.data.substring(10)),functionFragment:t,name:t.name,signature:t.format(),sighash:this.getSighash(t),value:(0,a.BigNumber).from(e.value||"0")}):null}parseLog(e){let t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new b({eventFragment:t,name:t.name,signature:t.format(),topic:this.getEventTopic(t),args:this.decodeEventLog(t,e.data,e.topics)})}parseError(e){let t=(0,s.hexlify)(e),r=this.getError(t.substring(0,10).toLowerCase());return r?new y({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)}}},{"@ethersproject/address":"7BZuS","@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/hash":"jLDfB","@ethersproject/keccak256":"eWtzg","@ethersproject/properties":"dmdV5","./abi-coder":"eiswb","./coders/abstract-coder":"9TMyg","./fragments":"2aRQ2","@ethersproject/logger":"6NWvR","./_version":"6avgg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],jLDfB:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"id",()=>i.id),n.export(r,"dnsEncode",()=>a.dnsEncode),n.export(r,"namehash",()=>a.namehash),n.export(r,"isValidName",()=>a.isValidName),n.export(r,"ensNormalize",()=>a.ensNormalize),n.export(r,"messagePrefix",()=>s.messagePrefix),n.export(r,"hashMessage",()=>s.hashMessage),n.export(r,"_TypedDataEncoder",()=>o.TypedDataEncoder);"use strict";var i=e("./id"),a=e("./namehash"),s=e("./message"),o=e("./typed-data")},{"./id":"h8d98","./namehash":"85tDg","./message":"dncJF","./typed-data":"keHK9","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],h8d98:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"id",()=>s);var i=e("@ethersproject/keccak256"),a=e("@ethersproject/strings");function s(e){return(0,i.keccak256)((0,a.toUtf8Bytes)(e))}},{"@ethersproject/keccak256":"eWtzg","@ethersproject/strings":"edSy2","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"85tDg":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ensNormalize",()=>p),n.export(r,"isValidName",()=>m),n.export(r,"namehash",()=>b),n.export(r,"dnsEncode",()=>g);var i=e("@ethersproject/bytes"),a=e("@ethersproject/strings"),s=e("@ethersproject/keccak256"),o=e("@ethersproject/logger"),c=e("./_version"),f=e("./ens-normalize/lib");let u=new o.Logger(c.version),d=new Uint8Array(32);function l(e){if(0===e.length)throw Error("invalid ENS name; empty component");return e}function h(e){let t=(0,a.toUtf8Bytes)((0,f.ens_normalize)(e)),r=[];if(0===e.length)return r;let n=0;for(let e=0;e=t.length)throw Error("invalid ENS name; empty component");return r.push(l(t.slice(n))),r}function p(e){return h(e).map(e=>(0,a.toUtf8String)(e)).join(".")}function m(e){try{return 0!==h(e).length}catch(e){}return!1}function b(e){"string"!=typeof e&&u.throwArgumentError("invalid ENS name; not a string","name",e);let t=d,r=h(e);for(;r.length;)t=(0,s.keccak256)((0,i.concat)([t,(0,s.keccak256)(r.pop())]));return(0,i.hexlify)(t)}function g(e){return(0,i.hexlify)((0,i.concat)(h(e).map(e=>{if(e.length>63)throw Error("invalid DNS encoded entry; length exceeds 63 bytes");let t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t})))+"00"}d.fill(0)},{"@ethersproject/bytes":"19SwW","@ethersproject/strings":"edSy2","@ethersproject/keccak256":"eWtzg","@ethersproject/logger":"6NWvR","./_version":"kPmfv","./ens-normalize/lib":"gBi5u","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],kPmfv:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="hash/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gBi5u:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ens_normalize_post_check",()=>p),n.export(r,"ens_normalize",()=>m);var i=e("@ethersproject/strings"),a=e("./include.js"),s=e("./decoder.js");let o=(0,a.getData)(),c=new Set((0,s.read_member_array)(o)),f=new Set((0,s.read_member_array)(o)),u=(0,s.read_mapped_map)(o),d=(0,s.read_emoji_trie)(o);function l(e){return(0,i.toUtf8CodePoints)(e)}function h(e){return e.filter(e=>65039!=e)}function p(e){for(let t of e.split(".")){let e=l(t);try{for(let t=e.lastIndexOf(95)-1;t>=0;t--)if(95!==e[t])throw Error("underscore only allowed at start");if(e.length>=4&&e.every(e=>e<128)&&45===e[2]&&45===e[3])throw Error("invalid label extension")}catch(e){throw Error(`Invalid label "${t}": ${e.message}`)}}return e}function m(e){return p(function(e,t){let r=l(e).reverse(),n=[];for(;r.length;){let e=function(e,t){var r;let n,i;let a=d,s=[],o=e.length;for(t&&(t.length=0);o;){let c=e[--o];if(!(a=null===(r=a.branches.find(e=>e.set.has(c)))||void 0===r?void 0:r.node))break;if(a.save)i=c;else if(a.check&&c===i)break;s.push(c),a.fe0f&&(s.push(65039),o>0&&65039==e[o-1]&&o--),a.valid&&(n=s.slice(),2==a.valid&&n.splice(1,1),t&&t.push(...e.slice(o).reverse()),e.length=o)}return n}(r);if(e){n.push(...t(e));continue}let i=r.pop();if(c.has(i)){n.push(i);continue}if(f.has(i))continue;let a=u[i];if(a){n.push(...a);continue}throw Error(`Disallowed codepoint: 0x${i.toString(16).toUpperCase()}`)}return p(String.fromCodePoint(...n).normalize("NFC"))}(e,h))}},{"@ethersproject/strings":"edSy2","./include.js":"1Wgfv","./decoder.js":"akoWw","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"1Wgfv":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"getData",()=>s);var i=e("@ethersproject/base64"),a=e("./decoder.js");function s(){return(0,a.read_compressed_payload)((0,i.decode)("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=="))}},{"@ethersproject/base64":"dIiCi","./decoder.js":"akoWw","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dIiCi:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"decode",()=>i.decode),n.export(r,"encode",()=>i.encode);var i=e("./base64");"use strict"},{"./base64":"14I0X","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"14I0X":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"decode",()=>a),n.export(r,"encode",()=>s);var i=e("@ethersproject/bytes");"use strict";function a(e){e=atob(e);let t=[];for(let r=0;r0&&Array.isArray(e)?i(e,t-1):r.push(e)})};return i(e,t),r}function a(e){let t=0;function r(){return e[t++]<<8|e[t++]}let n=r(),i=1,a=[0,1];for(let e=1;e>--c&1}let d=0;for(let e=0;e<31;e++)d=d<<1|u();let l=[],h=0,p=2147483648;for(;;){let e=Math.floor(((d-h+1)*i-1)/p),t=0,r=n;for(;r-t>1;){let n=t+r>>>1;e{switch(t-m){case 3:return m+65792+(e[o++]<<16|e[o++]<<8|e[o++]);case 2:return m+256+(e[o++]<<8|e[o++]);case 1:return m+e[o++];default:return t-1}})}function s(e){let t=0;return()=>e[t++]}function o(e){return s(a(e))}function c(e){return 1&e?~e>>1:e>>1}function f(e,t){let r=Array(e);for(let n=0,i=-1;nt[e]):r}function d(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(function(e,t){let r=1+t(),n=t(),a=l(t);return i(h(a.length,1+e,t).map((e,t)=>{let i=e[0],s=e.slice(1);return Array(a[t]).fill(void 0).map((e,t)=>{let a=t*n;return[i+t*r,s.map(e=>e+a)]})}))}(r,e))}for(;;){let r=e()-1;if(r<0)break;t.push(h(1+e(),1+r,e).map(e=>[e[0],e.slice(1)]))}return function(e){let t={};for(let r=0;r[]);for(let i=0;in[t].push(e));return n}function p(e){let t=u(e).sort((e,t)=>e-t);return function r(){let n=[];for(;;){let i=u(e,t);if(0==i.length)break;n.push({set:new Set(i),node:r()})}n.sort((e,t)=>t.set.size-e.set.size);let i=e();return{branches:n,valid:i%3,fe0f:!!(1&(i=i/3|0)),save:1==(i>>=1),check:2==i}}()}n.defineInteropFlag(r),n.export(r,"decode_arithmetic",()=>a),n.export(r,"read_payload",()=>s),n.export(r,"read_compressed_payload",()=>o),n.export(r,"signed",()=>c),n.export(r,"read_member_array",()=>u),n.export(r,"read_mapped_map",()=>d),n.export(r,"read_zero_terminated_array",()=>l),n.export(r,"read_emoji_trie",()=>p)},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dncJF:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"messagePrefix",()=>o),n.export(r,"hashMessage",()=>c);var i=e("@ethersproject/bytes"),a=e("@ethersproject/keccak256"),s=e("@ethersproject/strings");let o="\x19Ethereum Signed Message:\n";function c(e){return"string"==typeof e&&(e=(0,s.toUtf8Bytes)(e)),(0,a.keccak256)((0,i.concat)([(0,s.toUtf8Bytes)(o),(0,s.toUtf8Bytes)(String(e.length)),e]))}},{"@ethersproject/bytes":"19SwW","@ethersproject/keccak256":"eWtzg","@ethersproject/strings":"edSy2","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],keHK9:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"TypedDataEncoder",()=>x);var i=e("@ethersproject/address"),a=e("@ethersproject/bignumber"),s=e("@ethersproject/bytes"),o=e("@ethersproject/keccak256"),c=e("@ethersproject/properties"),f=e("@ethersproject/logger"),u=e("./_version"),d=e("./id");let l=new f.Logger(u.version),h=new Uint8Array(32);h.fill(0);let p=(0,a.BigNumber).from(-1),m=(0,a.BigNumber).from(0),b=(0,a.BigNumber).from(1),g=(0,a.BigNumber).from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),y=(0,s.hexZeroPad)(b.toHexString(),32),v=(0,s.hexZeroPad)(m.toHexString(),32),w={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},_=["name","version","chainId","verifyingContract","salt"];function E(e){return function(t){return"string"!=typeof t&&l.throwArgumentError(`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}let A={name:E("name"),version:E("version"),chainId:function(e){try{return(0,a.BigNumber).from(e).toString()}catch(e){}return l.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",e)},verifyingContract:function(e){try{return(0,i.getAddress)(e).toLowerCase()}catch(e){}return l.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){try{let t=(0,s.arrayify)(e);if(32!==t.length)throw Error("bad length");return(0,s.hexlify)(t)}catch(e){}return l.throwArgumentError('invalid domain value "salt"',"domain.salt",e)}};function M(e){{let t=e.match(/^(u?)int(\d*)$/);if(t){let r=""===t[1],n=parseInt(t[2]||"256");(n%8!=0||n>256||t[2]&&t[2]!==String(n))&&l.throwArgumentError("invalid numeric width","type",e);let i=g.mask(r?n-1:n),o=r?i.add(b).mul(p):m;return function(t){let r=(0,a.BigNumber).from(t);return(r.lt(o)||r.gt(i))&&l.throwArgumentError(`value out-of-bounds for ${e}`,"value",t),(0,s.hexZeroPad)(r.toTwos(256).toHexString(),32)}}}{let t=e.match(/^bytes(\d+)$/);if(t){let r=parseInt(t[1]);return(0===r||r>32||t[1]!==String(r))&&l.throwArgumentError("invalid bytes width","type",e),function(t){let n=(0,s.arrayify)(t);return n.length!==r&&l.throwArgumentError(`invalid length for ${e}`,"value",t),function(e){let t=(0,s.arrayify)(e),r=t.length%32;return r?(0,s.hexConcat)([t,h.slice(r)]):(0,s.hexlify)(t)}(t)}}}switch(e){case"address":return function(e){return(0,s.hexZeroPad)((0,i.getAddress)(e),32)};case"bool":return function(e){return e?y:v};case"bytes":return function(e){return(0,o.keccak256)(e)};case"string":return function(e){return(0,d.id)(e)}}return null}function S(e,t){return`${e}(${t.map(({name:e,type:t})=>t+" "+e).join(",")})`}class x{constructor(e){(0,c.defineReadOnly)(this,"types",Object.freeze((0,c.deepCopy)(e))),(0,c.defineReadOnly)(this,"_encoderCache",{}),(0,c.defineReadOnly)(this,"_types",{});let t={},r={},n={};for(let i in Object.keys(e).forEach(e=>{t[e]={},r[e]=[],n[e]={}}),e){let n={};e[i].forEach(a=>{n[a.name]&&l.throwArgumentError(`duplicate variable name ${JSON.stringify(a.name)} in ${JSON.stringify(i)}`,"types",e),n[a.name]=!0;let s=a.type.match(/^([^\x5b]*)(\x5b|$)/)[1];s===i&&l.throwArgumentError(`circular type reference to ${JSON.stringify(s)}`,"types",e);let o=M(s);o||(r[s]||l.throwArgumentError(`unknown type ${JSON.stringify(s)}`,"types",e),r[s].push(i),t[i][s]=!0)})}let i=Object.keys(r).filter(e=>0===r[e].length);for(let a in 0===i.length?l.throwArgumentError("missing primary type","types",e):i.length>1&&l.throwArgumentError(`ambiguous primary types or unused types: ${i.map(e=>JSON.stringify(e)).join(", ")}`,"types",e),(0,c.defineReadOnly)(this,"primaryType",i[0]),!function i(a,s){s[a]&&l.throwArgumentError(`circular type reference to ${JSON.stringify(a)}`,"types",e),s[a]=!0,Object.keys(t[a]).forEach(e=>{r[e]&&(i(e,s),Object.keys(s).forEach(t=>{n[t][e]=!0}))}),delete s[a]}(this.primaryType,{}),n){let t=Object.keys(n[a]);t.sort(),this._types[a]=S(a,e[a])+t.map(t=>S(t,e[t])).join("")}}getEncoder(e){let t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t}_getEncoder(e){{let t=M(e);if(t)return t}let t=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(t){let e=t[1],r=this.getEncoder(e),n=parseInt(t[3]);return t=>{n>=0&&t.length!==n&&l.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t);let i=t.map(r);return this._types[e]&&(i=i.map(o.keccak256)),(0,o.keccak256)((0,s.hexConcat)(i))}}let r=this.types[e];if(r){let t=(0,d.id)(this._types[e]);return e=>{let n=r.map(({name:t,type:r})=>{let n=this.getEncoder(r)(e[t]);return this._types[r]?(0,o.keccak256)(n):n});return n.unshift(t),(0,s.hexConcat)(n)}}return l.throwArgumentError(`unknown type: ${e}`,"type",e)}encodeType(e){let t=this._types[e];return t||l.throwArgumentError(`unknown type: ${JSON.stringify(e)}`,"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return(0,o.keccak256)(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,r){{let n=M(e);if(n)return r(e,t)}let n=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){let e=n[1],i=parseInt(n[3]);return i>=0&&t.length!==i&&l.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map(t=>this._visit(e,t,r))}let i=this.types[e];return i?i.reduce((e,{name:n,type:i})=>(e[n]=this._visit(i,t[n],r),e),{}):l.throwArgumentError(`unknown type: ${e}`,"type",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new x(e)}static getPrimaryType(e){return x.from(e).primaryType}static hashStruct(e,t,r){return x.from(t).hashStruct(e,r)}static hashDomain(e){let t=[];for(let r in e){let n=w[r];n||l.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",e),t.push({name:r,type:n})}return t.sort((e,t)=>_.indexOf(e.name)-_.indexOf(t.name)),x.hashStruct("EIP712Domain",{EIP712Domain:t},e)}static encode(e,t,r){return(0,s.hexConcat)(["0x1901",x.hashDomain(e),x.from(t).hash(r)])}static hash(e,t,r){return(0,o.keccak256)(x.encode(e,t,r))}static resolveNames(e,t,r,n){var i,a,o,f;return i=this,a=void 0,o=void 0,f=function*(){e=(0,c.shallowCopy)(e);let i={};e.verifyingContract&&!(0,s.isHexString)(e.verifyingContract,20)&&(i[e.verifyingContract]="0x");let a=x.from(t);for(let e in a.visit(r,(e,t)=>("address"!==e||(0,s.isHexString)(t,20)||(i[t]="0x"),t)),i)i[e]=yield n(e);return e.verifyingContract&&i[e.verifyingContract]&&(e.verifyingContract=i[e.verifyingContract]),{domain:e,value:r=a.visit(r,(e,t)=>"address"===e&&i[t]?i[t]:t)}},new(o||(o=Promise))(function(e,t){function r(e){try{s(f.next(e))}catch(e){t(e)}}function n(e){try{s(f.throw(e))}catch(e){t(e)}}function s(t){var i;t.done?e(t.value):((i=t.value)instanceof o?i:new o(function(e){e(i)})).then(r,n)}s((f=f.apply(i,a||[])).next())})}static getPayload(e,t,r){x.hashDomain(e);let n={},i=[];_.forEach(t=>{let r=e[t];null!=r&&(n[t]=A[t](r),i.push({name:t,type:w[t]}))});let o=x.from(t),f=(0,c.shallowCopy)(t);return f.EIP712Domain?l.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",t):f.EIP712Domain=i,o.encode(r),{types:f,domain:n,primaryType:o.primaryType,message:o.visit(r,(e,t)=>{if(e.match(/^bytes(\d*)/))return(0,s.hexlify)((0,s.arrayify)(t));if(e.match(/^u?int/))return(0,a.BigNumber).from(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return"string"!=typeof t&&l.throwArgumentError("invalid string","value",t),t}return l.throwArgumentError("unsupported type","type",e)})}}}},{"@ethersproject/address":"7BZuS","@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/keccak256":"eWtzg","@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","./_version":"kPmfv","./id":"h8d98","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],imf57:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ForkEvent",()=>u),n.export(r,"BlockForkEvent",()=>d),n.export(r,"TransactionForkEvent",()=>l),n.export(r,"TransactionOrderForkEvent",()=>h),n.export(r,"Provider",()=>p);"use strict";var i=e("@ethersproject/bignumber"),a=e("@ethersproject/bytes"),s=e("@ethersproject/properties"),o=e("@ethersproject/logger"),c=e("./_version");let f=new o.Logger(c.version);class u extends s.Description{static isForkEvent(e){return!!(e&&e._isForkEvent)}}class d extends u{constructor(e,t){(0,a.isHexString)(e,32)||f.throwArgumentError("invalid blockHash","blockHash",e),super({_isForkEvent:!0,_isBlockForkEvent:!0,expiry:t||0,blockHash:e})}}class l extends u{constructor(e,t){(0,a.isHexString)(e,32)||f.throwArgumentError("invalid transaction hash","hash",e),super({_isForkEvent:!0,_isTransactionForkEvent:!0,expiry:t||0,hash:e})}}class h extends u{constructor(e,t,r){(0,a.isHexString)(e,32)||f.throwArgumentError("invalid transaction hash","beforeHash",e),(0,a.isHexString)(t,32)||f.throwArgumentError("invalid transaction hash","afterHash",t),super({_isForkEvent:!0,_isTransactionOrderForkEvent:!0,expiry:r||0,beforeHash:e,afterHash:t})}}class p{constructor(){f.checkAbstract(new.target,p),(0,s.defineReadOnly)(this,"_isProvider",!0)}getFeeData(){var e,t,r,n;return e=this,t=void 0,r=void 0,n=function*(){let{block:e,gasPrice:t}=yield(0,s.resolveProperties)({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(e=>null)}),r=null,n=null,a=null;return e&&e.baseFeePerGas&&(r=e.baseFeePerGas,a=(0,i.BigNumber).from("1500000000"),n=e.baseFeePerGas.mul(2).add(a)),{lastBaseFeePerGas:r,maxFeePerGas:n,maxPriorityFeePerGas:a,gasPrice:t}},new(r||(r=Promise))(function(i,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function o(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}c((n=n.apply(e,t||[])).next())})}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}static isProvider(e){return!!(e&&e._isProvider)}}},{"@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","./_version":"4ztCP","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"4ztCP":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="abstract-provider/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],j6EbC:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Signer",()=>d),n.export(r,"VoidSigner",()=>l);"use strict";var i=e("@ethersproject/properties"),a=e("@ethersproject/logger"),s=e("./_version"),o=function(e,t,r,n){return new(r||(r=Promise))(function(i,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function o(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}c((n=n.apply(e,t||[])).next())})};let c=new a.Logger(s.version),f=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],u=[a.Logger.errors.INSUFFICIENT_FUNDS,a.Logger.errors.NONCE_EXPIRED,a.Logger.errors.REPLACEMENT_UNDERPRICED];class d{constructor(){c.checkAbstract(new.target,d),(0,i.defineReadOnly)(this,"_isSigner",!0)}getBalance(e){return o(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)})}getTransactionCount(e){return o(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)})}estimateGas(e){return o(this,void 0,void 0,function*(){this._checkProvider("estimateGas");let t=yield(0,i.resolveProperties)(this.checkTransaction(e));return yield this.provider.estimateGas(t)})}call(e,t){return o(this,void 0,void 0,function*(){this._checkProvider("call");let r=yield(0,i.resolveProperties)(this.checkTransaction(e));return yield this.provider.call(r,t)})}sendTransaction(e){return o(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");let t=yield this.populateTransaction(e),r=yield this.signTransaction(t);return yield this.provider.sendTransaction(r)})}getChainId(){return o(this,void 0,void 0,function*(){this._checkProvider("getChainId");let e=yield this.provider.getNetwork();return e.chainId})}getGasPrice(){return o(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return o(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(e){return o(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)})}checkTransaction(e){for(let t in e)-1===f.indexOf(t)&&c.throwArgumentError("invalid transaction key: "+t,"transaction",e);let t=(0,i.shallowCopy)(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()&&c.throwArgumentError("from address mismatch","transaction",e),t[0])),t}populateTransaction(e){return o(this,void 0,void 0,function*(){let t=yield(0,i.resolveProperties)(this.checkTransaction(e));null!=t.to&&(t.to=Promise.resolve(t.to).then(e=>o(this,void 0,void 0,function*(){if(null==e)return null;let t=yield this.resolveName(e);return null==t&&c.throwArgumentError("provided ENS name resolves to null","tx.to",e),t})),t.to.catch(e=>{}));let r=null!=t.maxFeePerGas||null!=t.maxPriorityFeePerGas;if(null!=t.gasPrice&&(2===t.type||r)?c.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e):(0===t.type||1===t.type)&&r&&c.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e),(2===t.type||null==t.type)&&null!=t.maxFeePerGas&&null!=t.maxPriorityFeePerGas)t.type=2;else if(0===t.type||1===t.type)null==t.gasPrice&&(t.gasPrice=this.getGasPrice());else{let e=yield this.getFeeData();if(null==t.type){if(null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas){if(t.type=2,null!=t.gasPrice){let 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&&c.throwError("network does not support EIP-1559",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==t.gasPrice&&(t.gasPrice=e.gasPrice),t.type=0):c.throwError("failed to get consistent fee data",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"})}else 2===t.type&&(null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas))}return null==t.nonce&&(t.nonce=this.getTransactionCount("pending")),null==t.gasLimit&&(t.gasLimit=this.estimateGas(t).catch(e=>{if(u.indexOf(e.code)>=0)throw e;return c.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",a.Logger.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]&&c.throwArgumentError("chainId address mismatch","transaction",e),t[0])),yield(0,i.resolveProperties)(t)})}_checkProvider(e){this.provider||c.throwError("missing provider",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!!(e&&e._isSigner)}}class l extends d{constructor(e,t){super(),(0,i.defineReadOnly)(this,"address",e),(0,i.defineReadOnly)(this,"provider",t||null)}getAddress(){return Promise.resolve(this.address)}_fail(e,t){return Promise.resolve().then(()=>{c.throwError(e,a.Logger.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 l(this.address,e)}}},{"@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","./_version":"9OQFK","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"9OQFK":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="abstract-signer/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],ctBdV:[function(e,t,r){var n,i,a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(r),a.export(r,"TransactionTypes",()=>i),a.export(r,"computeAddress",()=>_),a.export(r,"recoverAddress",()=>E),a.export(r,"accessListify",()=>S),a.export(r,"serialize",()=>R),a.export(r,"parse",()=>C);"use strict";var s=e("@ethersproject/address"),o=e("@ethersproject/bignumber"),c=e("@ethersproject/bytes"),f=e("@ethersproject/constants"),u=e("@ethersproject/keccak256"),d=e("@ethersproject/properties"),l=e("@ethersproject/rlp"),h=e("@ethersproject/signing-key"),p=e("@ethersproject/logger"),m=e("./_version");let b=new p.Logger(m.version);function g(e){return"0x"===e?null:(0,s.getAddress)(e)}function y(e){return"0x"===e?f.Zero:(0,o.BigNumber).from(e)}(n=i||(i={}))[n.legacy=0]="legacy",n[n.eip2930=1]="eip2930",n[n.eip1559=2]="eip1559";let v=[{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"}],w={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function _(e){let t=(0,h.computePublicKey)(e);return(0,s.getAddress)((0,c.hexDataSlice)((0,u.keccak256)((0,c.hexDataSlice)(t,1)),12))}function E(e,t){return _((0,h.recoverPublicKey)((0,c.arrayify)(e),t))}function A(e,t){let r=(0,c.stripZeros)((0,o.BigNumber).from(e).toHexString());return r.length>32&&b.throwArgumentError("invalid length for "+t,"transaction:"+t,e),r}function M(e,t){return{address:(0,s.getAddress)(e),storageKeys:(t||[]).map((t,r)=>(32!==(0,c.hexDataLength)(t)&&b.throwArgumentError("invalid access list storageKey",`accessList[${e}:${r}]`,t),t.toLowerCase()))}}function S(e){if(Array.isArray(e))return e.map((e,t)=>Array.isArray(e)?(e.length>2&&b.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${t}]`,e),M(e[0],e[1])):M(e.address,e.storageKeys));let t=Object.keys(e).map(t=>{let r=e[t].reduce((e,t)=>(e[t]=!0,e),{});return M(t,Object.keys(r).sort())});return t.sort((e,t)=>e.address.localeCompare(t.address)),t}function x(e){return S(e).map(e=>[e.address,e.storageKeys])}function T(e,t){if(null!=e.gasPrice){let t=(0,o.BigNumber).from(e.gasPrice),r=(0,o.BigNumber).from(e.maxFeePerGas||0);t.eq(r)||b.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:t,maxFeePerGas:r})}let r=[A(e.chainId||0,"chainId"),A(e.nonce||0,"nonce"),A(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),A(e.maxFeePerGas||0,"maxFeePerGas"),A(e.gasLimit||0,"gasLimit"),null!=e.to?(0,s.getAddress)(e.to):"0x",A(e.value||0,"value"),e.data||"0x",x(e.accessList||[])];if(t){let e=(0,c.splitSignature)(t);r.push(A(e.recoveryParam,"recoveryParam")),r.push((0,c.stripZeros)(e.r)),r.push((0,c.stripZeros)(e.s))}return(0,c.hexConcat)(["0x02",l.encode(r)])}function k(e,t){let r=[A(e.chainId||0,"chainId"),A(e.nonce||0,"nonce"),A(e.gasPrice||0,"gasPrice"),A(e.gasLimit||0,"gasLimit"),null!=e.to?(0,s.getAddress)(e.to):"0x",A(e.value||0,"value"),e.data||"0x",x(e.accessList||[])];if(t){let e=(0,c.splitSignature)(t);r.push(A(e.recoveryParam,"recoveryParam")),r.push((0,c.stripZeros)(e.r)),r.push((0,c.stripZeros)(e.s))}return(0,c.hexConcat)(["0x01",l.encode(r)])}function R(e,t){if(null==e.type||0===e.type)return null!=e.accessList&&b.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",e),function(e,t){(0,d.checkProperties)(e,w);let r=[];v.forEach(function(t){let n=e[t.name]||[],i={};t.numeric&&(i.hexPad="left"),n=(0,c.arrayify)((0,c.hexlify)(n,i)),t.length&&n.length!==t.length&&n.length>0&&b.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,n),t.maxLength&&(n=(0,c.stripZeros)(n)).length>t.maxLength&&b.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,n),r.push((0,c.hexlify)(n))});let n=0;if(null!=e.chainId?"number"!=typeof(n=e.chainId)&&b.throwArgumentError("invalid transaction.chainId","transaction",e):t&&!(0,c.isBytesLike)(t)&&t.v>28&&(n=Math.floor((t.v-35)/2)),0!==n&&(r.push((0,c.hexlify)(n)),r.push("0x"),r.push("0x")),!t)return l.encode(r);let i=(0,c.splitSignature)(t),a=27+i.recoveryParam;return 0!==n?(r.pop(),r.pop(),r.pop(),a+=2*n+8,i.v>28&&i.v!==a&&b.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t)):i.v!==a&&b.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t),r.push((0,c.hexlify)(a)),r.push((0,c.stripZeros)((0,c.arrayify)(i.r))),r.push((0,c.stripZeros)((0,c.arrayify)(i.s))),l.encode(r)}(e,t);switch(e.type){case 1:return k(e,t);case 2:return T(e,t)}return b.throwError(`unsupported transaction type: ${e.type}`,p.Logger.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:e.type})}function I(e,t,r){try{let r=y(t[0]).toNumber();if(0!==r&&1!==r)throw Error("bad recid");e.v=r}catch(e){b.throwArgumentError("invalid v for transaction type: 1","v",t[0])}e.r=(0,c.hexZeroPad)(t[1],32),e.s=(0,c.hexZeroPad)(t[2],32);try{let t=(0,u.keccak256)(r(e));e.from=E(t,{r:e.r,s:e.s,recoveryParam:e.v})}catch(e){}}function C(e){let t=(0,c.arrayify)(e);if(t[0]>127)return function(e){let t=l.decode(e);9!==t.length&&6!==t.length&&b.throwArgumentError("invalid raw transaction","rawTransaction",e);let r={nonce:y(t[0]).toNumber(),gasPrice:y(t[1]),gasLimit:y(t[2]),to:g(t[3]),value:y(t[4]),data:t[5],chainId:0};if(6===t.length)return r;try{r.v=(0,o.BigNumber).from(t[6]).toNumber()}catch(e){return r}if(r.r=(0,c.hexZeroPad)(t[7],32),r.s=(0,c.hexZeroPad)(t[8],32),(0,o.BigNumber).from(r.r).isZero()&&(0,o.BigNumber).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 n=r.v-27,i=t.slice(0,6);0!==r.chainId&&(i.push((0,c.hexlify)(r.chainId)),i.push("0x"),i.push("0x"),n-=2*r.chainId+8);let a=(0,u.keccak256)(l.encode(i));try{r.from=E(a,{r:(0,c.hexlify)(r.r),s:(0,c.hexlify)(r.s),recoveryParam:n})}catch(e){}r.hash=(0,u.keccak256)(e)}return r.type=null,r}(t);switch(t[0]){case 1:return function(e){let t=l.decode(e.slice(1));8!==t.length&&11!==t.length&&b.throwArgumentError("invalid component count for transaction type: 1","payload",(0,c.hexlify)(e));let r={type:1,chainId:y(t[0]).toNumber(),nonce:y(t[1]).toNumber(),gasPrice:y(t[2]),gasLimit:y(t[3]),to:g(t[4]),value:y(t[5]),data:t[6],accessList:S(t[7])};return 8===t.length||(r.hash=(0,u.keccak256)(e),I(r,t.slice(8),k)),r}(t);case 2:return function(e){let t=l.decode(e.slice(1));9!==t.length&&12!==t.length&&b.throwArgumentError("invalid component count for transaction type: 2","payload",(0,c.hexlify)(e));let r=y(t[2]),n=y(t[3]),i={type:2,chainId:y(t[0]).toNumber(),nonce:y(t[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:y(t[4]),to:g(t[5]),value:y(t[6]),data:t[7],accessList:S(t[8])};return 9===t.length||(i.hash=(0,u.keccak256)(e),I(i,t.slice(9),T)),i}(t)}return b.throwError(`unsupported transaction type: ${t[0]}`,p.Logger.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}},{"@ethersproject/address":"7BZuS","@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/constants":"cSsuf","@ethersproject/keccak256":"eWtzg","@ethersproject/properties":"dmdV5","@ethersproject/rlp":"1wlks","@ethersproject/signing-key":"a8JOx","@ethersproject/logger":"6NWvR","./_version":"iFVyl","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],a8JOx:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"SigningKey",()=>l),n.export(r,"recoverPublicKey",()=>h),n.export(r,"computePublicKey",()=>p);"use strict";var i=e("./elliptic"),a=e("@ethersproject/bytes"),s=e("@ethersproject/properties"),o=e("@ethersproject/logger"),c=e("./_version");let f=new o.Logger(c.version),u=null;function d(){return u||(u=new i.EC("secp256k1")),u}class l{constructor(e){(0,s.defineReadOnly)(this,"curve","secp256k1"),(0,s.defineReadOnly)(this,"privateKey",(0,a.hexlify)(e)),32!==(0,a.hexDataLength)(this.privateKey)&&f.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");let t=d().keyFromPrivate((0,a.arrayify)(this.privateKey));(0,s.defineReadOnly)(this,"publicKey","0x"+t.getPublic(!1,"hex")),(0,s.defineReadOnly)(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),(0,s.defineReadOnly)(this,"_isSigningKey",!0)}_addPoint(e){let t=d().keyFromPublic((0,a.arrayify)(this.publicKey)),r=d().keyFromPublic((0,a.arrayify)(e));return"0x"+t.pub.add(r.pub).encodeCompressed("hex")}signDigest(e){let t=d().keyFromPrivate((0,a.arrayify)(this.privateKey)),r=(0,a.arrayify)(e);32!==r.length&&f.throwArgumentError("bad digest length","digest",e);let n=t.sign(r,{canonical:!0});return(0,a.splitSignature)({recoveryParam:n.recoveryParam,r:(0,a.hexZeroPad)("0x"+n.r.toString(16),32),s:(0,a.hexZeroPad)("0x"+n.s.toString(16),32)})}computeSharedSecret(e){let t=d().keyFromPrivate((0,a.arrayify)(this.privateKey)),r=d().keyFromPublic((0,a.arrayify)(p(e)));return(0,a.hexZeroPad)("0x"+t.derive(r.getPublic()).toString(16),32)}static isSigningKey(e){return!!(e&&e._isSigningKey)}}function h(e,t){let r=(0,a.splitSignature)(t),n={r:(0,a.arrayify)(r.r),s:(0,a.arrayify)(r.s)};return"0x"+d().recoverPubKey((0,a.arrayify)(e),n,r.recoveryParam).encode("hex",!1)}function p(e,t){let r=(0,a.arrayify)(e);if(32===r.length){let e=new l(r);return t?"0x"+d().keyFromPrivate(r).getPublic(!0,"hex"):e.publicKey}return 33===r.length?t?(0,a.hexlify)(r):"0x"+d().keyFromPublic(r).getPublic(!1,"hex"):65===r.length?t?"0x"+d().keyFromPublic(r).getPublic(!0,"hex"):(0,a.hexlify)(r):f.throwArgumentError("invalid public or private key","key","[REDACTED]")}},{"./elliptic":"aoN5l","@ethersproject/bytes":"19SwW","@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","./_version":"eg49z","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],aoN5l:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"EC",()=>D);var i=e("bn.js"),a=n.interopDefault(i),s=e("hash.js"),o=n.interopDefault(s),c=arguments[3];function f(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(e,null==t?r.path:t)}},r.exports),r.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==c||"undefined"!=typeof self&&self;var u=d;function d(e,t){if(!e)throw Error(t||"Assertion failed")}"use strict";d.equal=function(e,t,r){if(e!=t)throw Error(r||"Assertion failed: "+e+" != "+t)};var l=f(function(e,t){"use strict";function r(e){return 1===e.length?"0"+e:e}function n(e){for(var t="",n=0;n>8,s=255&i;a?r.push(a,s):r.push(s)}return r},t.zero2=r,t.toHex=n,t.encode=function(e,t){return"hex"===t?n(e):e}}),h=f(function(e,t){"use strict";t.assert=u,t.toArray=l.toArray,t.zero2=l.zero2,t.toHex=l.toHex,t.encode=l.encode,t.getNAF=function(e,t,r){var n=Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var i=1<(i>>1)-1?(i>>1)-c:c,a.isubn(o)):o=0,n[s]=o,a.iushrn(1)}return n},t.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,i=0;e.cmpn(-n)>0||t.cmpn(-i)>0;){var a,s,o,c=e.andln(3)+n&3,f=t.andln(3)+i&3;3===c&&(c=-1),3===f&&(f=-1),s=(1&c)==0?0:(3==(a=e.andln(7)+n&7)||5===a)&&2===f?-c:c,r[0].push(s),o=(1&f)==0?0:(3==(a=t.andln(7)+i&7)||5===a)&&2===c?-f:f,r[1].push(o),2*n===s+1&&(n=1-n),2*i===o+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},t.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},t.parseBytes=function(e){return"string"==typeof e?t.toArray(e,"hex"):e},t.intFromLE=function(e){return new a.default(e,"hex","le")}}),p=h.getNAF,m=h.getJSF,b=h.assert;function g(e,t){this.type=e,this.p=new a.default(t.p,16),this.red=t.prime?(0,a.default).red(t.prime):(0,a.default).mont(this.p),this.zero=new(0,a.default)(0).toRed(this.red),this.one=new(0,a.default)(1).toRed(this.red),this.two=new(0,a.default)(2).toRed(this.red),this.n=t.n&&new a.default(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],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))}function y(e,t){this.curve=e,this.type=t,this.precomputed=null}"use strict";g.prototype.point=function(){throw Error("Not implemented")},g.prototype.validate=function(){throw Error("Not implemented")},g.prototype._fixedNafMul=function(e,t){b(e.precomputed);var r,n,i=e._getDoubles(),a=p(t,1,this._bitLength),s=(1<=r;c--)n=(n<<1)+a[c];o.push(n)}for(var f=this.jpoint(null,null,null),u=this.jpoint(null,null,null),d=s;d>0;d--){for(r=0;r=0;o--){for(var c=0;o>=0&&0===a[o];o--)c++;if(o>=0&&c++,s=s.dblp(c),o<0)break;var f=a[o];b(0!==f),s="affine"===e.type?f>0?s.mixedAdd(i[f-1>>1]):s.mixedAdd(i[-f-1>>1].neg()):f>0?s.add(i[f-1>>1]):s.add(i[-f-1>>1].neg())}return"affine"===e.type?s.toP():s},g.prototype._wnafMulAdd=function(e,t,r,n,i){var a,s,o,c=this._wnafT1,f=this._wnafT2,u=this._wnafT3,d=0;for(a=0;a=1;a-=2){var h=a-1,b=a;if(1!==c[h]||1!==c[b]){u[h]=p(r[h],c[h],this._bitLength),u[b]=p(r[b],c[b],this._bitLength),d=Math.max(u[h].length,d),d=Math.max(u[b].length,d);continue}var g=[t[h],null,null,t[b]];0===t[h].y.cmp(t[b].y)?(g[1]=t[h].add(t[b]),g[2]=t[h].toJ().mixedAdd(t[b].neg())):0===t[h].y.cmp(t[b].y.redNeg())?(g[1]=t[h].toJ().mixedAdd(t[b]),g[2]=t[h].add(t[b].neg())):(g[1]=t[h].toJ().mixedAdd(t[b]),g[2]=t[h].toJ().mixedAdd(t[b].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],v=m(r[h],r[b]);for(s=0,d=Math.max(v[0].length,d),u[h]=Array(d),u[b]=Array(d);s=0;a--){for(var M=0;a>=0;){var S=!0;for(s=0;s=0&&M++,E=E.dblp(M),a<0)break;for(s=0;s0?o=f[s][x-1>>1]:x<0&&(o=f[s][-x-1>>1].neg()),E="affine"===o.type?E.mixedAdd(o):E.add(o))}}for(a=0;a=Math.ceil((e.bitLength()+1)/t.step)},y.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;ii[0].cmp(i[1])?i[0]:i[1]).toRed(this.red)}if(e.lambda)r=new a.default(e.lambda,16);else{var s=this._getEndoRoots(this.n);0===this.g.mul(s[0]).x.cmp(this.g.x.redMul(t))?r=s[0]:(r=s[1],w(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return n=e.basis?e.basis.map(function(e){return{a:new a.default(e.a,16),b:new a.default(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:n}}},_.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:(0,a.default).mont(e),r=new(0,a.default)(2).toRed(t).redInvm(),n=r.redNeg(),i=new(0,a.default)(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},_.prototype._getEndoBasis=function(e){for(var t,r,n,i,s,o,c,f,u,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=e,h=this.n.clone(),p=new a.default(1),m=new a.default(0),b=new a.default(0),g=new a.default(1),y=0;0!==l.cmpn(0);){var v=h.div(l);f=h.sub(v.mul(l)),u=b.sub(v.mul(p));var w=g.sub(v.mul(m));if(!n&&0>f.cmp(d))t=c.neg(),r=p,n=f.neg(),i=u;else if(n&&2==++y)break;c=f,h=l,l=f,b=p,p=u,g=m,m=w}s=f.neg(),o=u;var _=n.sqr().add(i.sqr());return s.sqr().add(o.sqr()).cmp(_)>=0&&(s=t,o=r),n.negative&&(n=n.neg(),i=i.neg()),s.negative&&(s=s.neg(),o=o.neg()),[{a:n,b:i},{a:s,b:o}]},_.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),a=r.b.neg().mul(e).divRound(this.n),s=i.mul(r.a),o=a.mul(n.a),c=i.mul(r.b),f=a.mul(n.b);return{k1:e.sub(s).sub(o),k2:c.add(f).neg()}},_.prototype.pointFromX=function(e,t){(e=new a.default(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 Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},_.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},_.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,a=0;a":""},E.prototype.isInfinity=function(){return this.inf},E.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)||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)},E.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(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),a=i.redSqr().redISub(this.x.redAdd(this.x)),s=i.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,s)},E.prototype.getX=function(){return this.x.fromRed()},E.prototype.getY=function(){return this.y.fromRed()},E.prototype.mul=function(e){return(e=new a.default(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)},E.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},E.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},E.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))},E.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},E.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},v(A,g.BasePoint),_.prototype.jpoint=function(e,t,r){return new A(this,e,t,r)},A.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)},A.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},A.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),i=e.x.redMul(r),a=this.y.redMul(t.redMul(e.z)),s=e.y.redMul(r.redMul(this.z)),o=n.redSub(i),c=a.redSub(s);if(0===o.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=o.redSqr(),u=f.redMul(o),d=n.redMul(f),l=c.redSqr().redIAdd(u).redISub(d).redISub(d),h=c.redMul(d.redISub(l)).redISub(a.redMul(u)),p=this.z.redMul(e.z).redMul(o);return this.curve.jpoint(l,h,p)},A.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),i=this.y,a=e.y.redMul(t).redMul(this.z),s=r.redSub(n),o=i.redSub(a);if(0===s.cmpn(0))return 0!==o.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),f=c.redMul(s),u=r.redMul(c),d=o.redSqr().redIAdd(f).redISub(u).redISub(u),l=o.redMul(u.redISub(d)).redISub(i.redMul(f)),h=this.z.redMul(s);return this.curve.jpoint(d,l,h)},A.prototype.dblp=function(e){if(0===e||this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var t,r=this;for(t=0;t=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},A.prototype.inspect=function(){return this.isInfinity()?"":""},A.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var M=f(function(e,t){"use strict";t.base=g,t.short=_,t.mont=null,t.edwards=null}),S=f(function(e,t){"use strict";var r,n=h.assert;function i(e){"short"===e.type?this.curve=new M.short(e):"edwards"===e.type?this.curve=new M.edwards(e):this.curve=new M.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function a(e,r){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var n=new i(r);return Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:n}),n}})}t.PresetCurve=i,a("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.default.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),a("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.default.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),a("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.default.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),a("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.default.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),a("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.default.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),a("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.default.sha256,gRed:!1,g:["9"]}),a("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.default.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch(e){r=void 0}a("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.default.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})});function x(e){if(!(this instanceof x))return new x(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=l.toArray(e.entropy,e.entropyEnc||"hex"),r=l.toArray(e.nonce,e.nonceEnc||"hex"),n=l.toArray(e.pers,e.persEnc||"hex");u(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}"use strict";x.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},x.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=l.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length"};var R=h.assert;function I(e,t){if(e instanceof I)return e;this._importDER(e,t)||(R(e.r&&e.s,"Signature without r or s"),this.r=new a.default(e.r,16),this.s=new a.default(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function C(){this.place=0}function P(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 i=0,a=0,s=t.place;a>>=0;return!(i<=127)&&(t.place=s,i)}function O(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)}"use strict";I.prototype._importDER=function(e,t){e=h.toArray(e,t);var r=new C;if(48!==e[r.place++])return!1;var n=P(e,r);if(!1===n||n+r.place!==e.length||2!==e[r.place++])return!1;var i=P(e,r);if(!1===i)return!1;var s=e.slice(r.place,i+r.place);if(r.place+=i,2!==e[r.place++])return!1;var o=P(e,r);if(!1===o||e.length!==o+r.place)return!1;var c=e.slice(r.place,o+r.place);if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}return this.r=new a.default(s),this.s=new a.default(c),this.recoveryParam=null,!0},I.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=O(t),r=O(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];N(n,t.length),(n=n.concat(t)).push(2),N(n,r.length);var i=n.concat(r),a=[48];return N(a,i.length),a=a.concat(i),h.encode(a,e)};var j=function(){throw Error("unsupported")},B=h.assert;function L(e){if(!(this instanceof L))return new L(e);"string"==typeof e&&(B(Object.prototype.hasOwnProperty.call(S,e),"Unknown curve "+e),e=S[e]),e instanceof S.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}L.prototype.keyPair=function(e){return new k(this,e)},L.prototype.keyFromPrivate=function(e,t){return k.fromPrivate(this,e,t)},L.prototype.keyFromPublic=function(e,t){return k.fromPublic(this,e,t)},L.prototype.genKeyPair=function(e){e||(e={});for(var t=new x({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||j(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new a.default(2));;){var i=new a.default(t.generate(r));if(!(i.cmp(n)>0))return i.iaddn(1),this.keyFromPrivate(i)}},L.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},L.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 a.default(e,16));for(var i=this.n.byteLength(),s=t.getPrivate().toArray("be",i),o=e.toArray("be",i),c=new x({hash:this.hash,entropy:s,nonce:o,pers:n.pers,persEnc:n.persEnc||"utf8"}),f=this.n.sub(new a.default(1)),u=0;;u++){var d=n.k?n.k(u):new a.default(c.generate(this.n.byteLength()));if(!(0>=(d=this._truncateToN(d,!0)).cmpn(1)||d.cmp(f)>=0)){var l=this.g.mul(d);if(!l.isInfinity()){var h=l.getX(),p=h.umod(this.n);if(0!==p.cmpn(0)){var m=d.invm(this.n).mul(p.mul(t.getPrivate()).iadd(e));if(0!==(m=m.umod(this.n)).cmpn(0)){var b=(l.getY().isOdd()?1:0)|(0!==h.cmp(p)?2:0);return n.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),b^=1),new I({r:p,s:m,recoveryParam:b})}}}}}},L.prototype.verify=function(e,t,r,n){e=this._truncateToN(new a.default(e,16)),r=this.keyFromPublic(r,n);var i,s=(t=new I(t,"hex")).r,o=t.s;if(0>s.cmpn(1)||s.cmp(this.n)>=0||0>o.cmpn(1)||o.cmp(this.n)>=0)return!1;var c=o.invm(this.n),f=c.mul(e).umod(this.n),u=c.mul(s).umod(this.n);return this.curve._maxwellTrick?!(i=this.g.jmulAdd(f,r.getPublic(),u)).isInfinity()&&i.eqXToP(s):!(i=this.g.mulAdd(f,r.getPublic(),u)).isInfinity()&&0===i.getX().umod(this.n).cmp(s)},L.prototype.recoverPubKey=function(e,t,r,n){B((3&r)===r,"The recovery param is more than two bits"),t=new I(t,n);var i=this.n,s=new a.default(e),o=t.r,c=t.s,f=1&r,u=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&u)throw Error("Unable to find sencond key candinate");o=u?this.curve.pointFromX(o.add(this.curve.n),f):this.curve.pointFromX(o,f);var d=t.r.invm(i),l=i.sub(s).mul(d).umod(i),h=c.mul(d).umod(i);return this.g.mulAdd(l,o,h)},L.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new I(t,n)).recoveryParam)return t.recoveryParam;for(var i,a=0;a<4;a++){try{i=this.recoverPubKey(e,t,a)}catch(e){continue}if(i.eq(r))return a}throw Error("Unable to find valid recovery factor")};var D=f(function(e,t){"use strict";t.version="6.5.4",t.utils=h,t.rand=function(){throw Error("unsupported")},t.curve=M,t.curves=S,t.ec=L,t.eddsa=null}).ec},{"bn.js":"lXPno","hash.js":"2Tlxk","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2Tlxk":[function(e,t,r){r.utils=e("38593959f18bd562"),r.common=e("31a457752237e8ad"),r.sha=e("3e37816d2a2fd68d"),r.ripemd=e("ce5a13b5bd10f171"),r.hmac=e("c32fbac97a361580"),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},{"38593959f18bd562":"aKzpJ","31a457752237e8ad":"gjeCy","3e37816d2a2fd68d":"gVBgh",ce5a13b5bd10f171:"1GX8J",c32fbac97a361580:"3Q7qa"}],aKzpJ:[function(e,t,r){"use strict";var n=e("6002b0feade022a4"),i=e("d4826c9d0ff1b1f");function a(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 o(e){if(7===e.length)return"0"+e;if(6===e.length)return"00"+e;if(5===e.length)return"000"+e;if(4===e.length)return"0000"+e;if(3===e.length)return"00000"+e;if(2===e.length)return"000000"+e;if(1===e.length)return"0000000"+e;else return e}r.inherits=i,r.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]+/ig,"")).length%2!=0&&(e="0"+e),i=0;i>6|192:((a=e,s=i,(64512&a.charCodeAt(s))!=55296||s<0||s+1>=a.length?1:(64512&a.charCodeAt(s+1))!=56320)?r[n++]=o>>12|224:(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++i)),r[n++]=o>>18|240,r[n++]=o>>12&63|128),r[n++]=o>>6&63|128),r[n++]=63&o|128)}}else for(i=0;i>>0;return o},r.split32=function(e,t){for(var r=Array(4*e.length),n=0,i=0;n>>24,r[i+1]=a>>>16&255,r[i+2]=a>>>8&255,r[i+3]=255&a):(r[i+3]=a>>>24,r[i+2]=a>>>16&255,r[i+1]=a>>>8&255,r[i]=255&a)}return r},r.rotr32=function(e,t){return e>>>t|e<<32-t},r.rotl32=function(e,t){return e<>>32-t},r.sum32=function(e,t){return e+t>>>0},r.sum32_3=function(e,t,r){return e+t+r>>>0},r.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},r.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},r.sum64=function(e,t,r,n){var i=e[t],a=n+e[t+1]>>>0;e[t]=(a>>0,e[t+1]=a},r.sum64_hi=function(e,t,r,n){return(t+n>>>0>>0},r.sum64_lo=function(e,t,r,n){return t+n>>>0},r.sum64_4_hi=function(e,t,r,n,i,a,s,o){var c,f=t;return e+r+i+s+(0+((f=f+n>>>0)>>0)>>0)>>0},r.sum64_4_lo=function(e,t,r,n,i,a,s,o){return t+n+a+o>>>0},r.sum64_5_hi=function(e,t,r,n,i,a,s,o,c,f){var u,d=t;return e+r+i+s+c+(0+((d=d+n>>>0)>>0)>>0)>>0)>>0},r.sum64_5_lo=function(e,t,r,n,i,a,s,o,c,f){return t+n+a+o+f>>>0},r.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},r.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},r.shr64_hi=function(e,t,r){return e>>>r},r.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},{"6002b0feade022a4":"h59lk",d4826c9d0ff1b1f:"cJ2FP"}],h59lk:[function(e,t,r){function n(e,t){if(!e)throw Error(t||"Assertion failed")}t.exports=n,n.equal=function(e,t,r){if(e!=t)throw Error(r||"Assertion failed: "+e+" != "+t)}},{}],cJ2FP:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},{}],gjeCy:[function(e,t,r){"use strict";var n=e("e9291abdfb47ee4f"),i=e("ea8841b701712638");function a(){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}r.BlockHash=a,a.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 i=0;i>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(a=8,n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0;a>>3},r.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},{f0fb61f828bacd0f:"aKzpJ"}],d8IVH:[function(e,t,r){"use strict";var n=e("fe5acd040463c159"),i=e("fa3503eda3738d05");function a(){if(!(this instanceof a))return new a;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(a,i),t.exports=a,a.blockSize=512,a.outSize=224,a.hmacStrength=192,a.padLength=64,a.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},{fe5acd040463c159:"aKzpJ",fa3503eda3738d05:"27b3b"}],"27b3b":[function(e,t,r){"use strict";var n=e("32ad3e510bd41f2a"),i=e("469ad88ad505772a"),a=e("fffa7d1ddf1f0b43"),s=e("126369f57b5225ed"),o=n.sum32,c=n.sum32_4,f=n.sum32_5,u=a.ch32,d=a.maj32,l=a.s0_256,h=a.s1_256,p=a.g0_256,m=a.g1_256,b=i.BlockHash,g=[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;b.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=Array(64)}n.inherits(y,b),t.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(;nthis.blockSize&&(e=new this.Hash().update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;ti);let i="signing-key/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],iFVyl:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="transactions/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],liyH3:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="contracts/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],euBMB:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Wallet",()=>w),n.export(r,"verifyMessage",()=>_),n.export(r,"verifyTypedData",()=>E);"use strict";var i=e("@ethersproject/address"),a=e("@ethersproject/abstract-provider"),s=e("@ethersproject/abstract-signer"),o=e("@ethersproject/bytes"),c=e("@ethersproject/hash"),f=e("@ethersproject/hdnode"),u=e("@ethersproject/keccak256"),d=e("@ethersproject/properties"),l=e("@ethersproject/random"),h=e("@ethersproject/signing-key"),p=e("@ethersproject/json-wallets"),m=e("@ethersproject/transactions"),b=e("@ethersproject/logger"),g=e("./_version"),y=function(e,t,r,n){return new(r||(r=Promise))(function(i,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function o(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}c((n=n.apply(e,t||[])).next())})};let v=new b.Logger(g.version);class w extends s.Signer{constructor(e,t){var r;if(super(),null!=(r=e)&&(0,o.isHexString)(r.privateKey,32)&&null!=r.address){let t=new h.SigningKey(e.privateKey);if((0,d.defineReadOnly)(this,"_signingKey",()=>t),(0,d.defineReadOnly)(this,"address",(0,m.computeAddress)(this.publicKey)),this.address!==(0,i.getAddress)(e.address)&&v.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),function(e){let t=e.mnemonic;return t&&t.phrase}(e)){let t=e.mnemonic;(0,d.defineReadOnly)(this,"_mnemonic",()=>({phrase:t.phrase,path:t.path||f.defaultPath,locale:t.locale||"en"}));let r=this.mnemonic,n=(0,f.HDNode).fromMnemonic(r.phrase,null,r.locale).derivePath(r.path);(0,m.computeAddress)(n.privateKey)!==this.address&&v.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else(0,d.defineReadOnly)(this,"_mnemonic",()=>null)}else{if((0,h.SigningKey).isSigningKey(e))"secp256k1"!==e.curve&&v.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),(0,d.defineReadOnly)(this,"_signingKey",()=>e);else{"string"==typeof e&&e.match(/^[0-9a-f]*$/i)&&64===e.length&&(e="0x"+e);let t=new h.SigningKey(e);(0,d.defineReadOnly)(this,"_signingKey",()=>t)}(0,d.defineReadOnly)(this,"_mnemonic",()=>null),(0,d.defineReadOnly)(this,"address",(0,m.computeAddress)(this.publicKey))}t&&!(0,a.Provider).isProvider(t)&&v.throwArgumentError("invalid provider","provider",t),(0,d.defineReadOnly)(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 w(this,e)}signTransaction(e){return(0,d.resolveProperties)(e).then(t=>{null!=t.from&&((0,i.getAddress)(t.from)!==this.address&&v.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete t.from);let r=this._signingKey().signDigest((0,u.keccak256)((0,m.serialize)(t)));return(0,m.serialize)(t,r)})}signMessage(e){return y(this,void 0,void 0,function*(){return(0,o.joinSignature)(this._signingKey().signDigest((0,c.hashMessage)(e)))})}_signTypedData(e,t,r){return y(this,void 0,void 0,function*(){let n=yield(0,c._TypedDataEncoder).resolveNames(e,t,r,e=>(null==this.provider&&v.throwError("cannot resolve ENS names without a provider",b.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:e}),this.provider.resolveName(e)));return(0,o.joinSignature)(this._signingKey().signDigest((0,c._TypedDataEncoder).hash(n.domain,t,n.value)))})}encrypt(e,t,r){if("function"!=typeof t||r||(r=t,t={}),r&&"function"!=typeof r)throw Error("invalid callback");return t||(t={}),(0,p.encryptKeystore)(this,e,t,r)}static createRandom(e){let t=(0,l.randomBytes)(16);e||(e={}),e.extraEntropy&&(t=(0,o.arrayify)((0,o.hexDataSlice)((0,u.keccak256)((0,o.concat)([t,e.extraEntropy])),0,16)));let r=(0,f.entropyToMnemonic)(t,e.locale);return w.fromMnemonic(r,e.path,e.locale)}static fromEncryptedJson(e,t,r){return(0,p.decryptJsonWallet)(e,t,r).then(e=>new w(e))}static fromEncryptedJsonSync(e,t){return new w((0,p.decryptJsonWalletSync)(e,t))}static fromMnemonic(e,t,r){return t||(t=f.defaultPath),new w((0,f.HDNode).fromMnemonic(e,null,r).derivePath(t))}}function _(e,t){return(0,m.recoverAddress)((0,c.hashMessage)(e),t)}function E(e,t,r,n){return(0,m.recoverAddress)((0,c._TypedDataEncoder).hash(e,t,r),n)}},{"@ethersproject/address":"7BZuS","@ethersproject/abstract-provider":"imf57","@ethersproject/abstract-signer":"j6EbC","@ethersproject/bytes":"19SwW","@ethersproject/hash":"jLDfB","@ethersproject/hdnode":"2zCqF","@ethersproject/keccak256":"eWtzg","@ethersproject/properties":"dmdV5","@ethersproject/random":"5x4el","@ethersproject/signing-key":"a8JOx","@ethersproject/json-wallets":"7BEU7","@ethersproject/transactions":"ctBdV","@ethersproject/logger":"6NWvR","./_version":"2nczW","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2zCqF":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"defaultPath",()=>M),n.export(r,"HDNode",()=>S),n.export(r,"mnemonicToSeed",()=>x),n.export(r,"mnemonicToEntropy",()=>T),n.export(r,"entropyToMnemonic",()=>k),n.export(r,"isValidMnemonic",()=>R),n.export(r,"getAccountPath",()=>I);"use strict";var i=e("@ethersproject/basex"),a=e("@ethersproject/bytes"),s=e("@ethersproject/bignumber"),o=e("@ethersproject/strings"),c=e("@ethersproject/pbkdf2"),f=e("@ethersproject/properties"),u=e("@ethersproject/signing-key"),d=e("@ethersproject/sha2"),l=e("@ethersproject/transactions"),h=e("@ethersproject/wordlists"),p=e("@ethersproject/logger"),m=e("./_version");let b=new p.Logger(m.version),g=(0,s.BigNumber).from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),y=(0,o.toUtf8Bytes)("Bitcoin seed");function v(e){return(1<=256)throw Error("Depth too large!");return _((0,a.concat)([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",(0,a.hexlify)(this.depth),this.parentFingerprint,(0,a.hexZeroPad)((0,a.hexlify)(this.index),4),this.chainCode,null!=this.privateKey?(0,a.concat)(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new S(A,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(e){if(e>4294967295)throw Error("invalid index - "+String(e));let t=this.path;t&&(t+="/"+(2147483647&e));let r=new Uint8Array(37);if(2147483648&e){if(!this.privateKey)throw Error("cannot derive child of neutered node");r.set((0,a.arrayify)(this.privateKey),1),t&&(t+="'")}else r.set((0,a.arrayify)(this.publicKey));for(let t=24;t>=0;t-=8)r[33+(t>>3)]=e>>24-t&255;let n=(0,a.arrayify)((0,d.computeHmac)(d.SupportedAlgorithm.sha512,this.chainCode,r)),i=n.slice(0,32),o=n.slice(32),c=null,f=null;if(this.privateKey)c=w((0,s.BigNumber).from(i).add(this.privateKey).mod(g));else{let e=new u.SigningKey((0,a.hexlify)(i));f=e._addPoint(this.publicKey)}let l=t,h=this.mnemonic;return h&&(l=Object.freeze({phrase:h.phrase,path:t,locale:h.locale||"en"})),new S(A,c,f,this.fingerprint,w(o),e,this.depth+1,l)}derivePath(e){let t=e.split("/");if(0===t.length||"m"===t[0]&&0!==this.depth)throw Error("invalid path - "+e);"m"===t[0]&&t.shift();let r=this;for(let e=0;e=2147483648)throw Error("invalid path index - "+n);r=r._derive(2147483648+e)}else if(n.match(/^[0-9]+$/)){let e=parseInt(n);if(e>=2147483648)throw Error("invalid path index - "+n);r=r._derive(e)}else throw Error("invalid path component - "+n)}return r}static _fromSeed(e,t){let r=(0,a.arrayify)(e);if(r.length<16||r.length>64)throw Error("invalid seed");let n=(0,a.arrayify)((0,d.computeHmac)(d.SupportedAlgorithm.sha512,y,r));return new S(A,w(n.slice(0,32)),null,"0x00000000",w(n.slice(32)),0,0,t)}static fromMnemonic(e,t,r){return e=k(T(e,r=E(r)),r),S._fromSeed(x(e,t),{phrase:e,path:"m",locale:r.locale})}static fromSeed(e){return S._fromSeed(e,null)}static fromExtendedKey(e){let t=(0,i.Base58).decode(e);(82!==t.length||_(t.slice(0,78))!==e)&&b.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");let r=t[4],n=(0,a.hexlify)(t.slice(5,9)),s=parseInt((0,a.hexlify)(t.slice(9,13)).substring(2),16),o=(0,a.hexlify)(t.slice(13,45)),c=t.slice(45,78);switch((0,a.hexlify)(t.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new S(A,null,(0,a.hexlify)(c),n,o,s,r,null);case"0x0488ade4":case"0x04358394 ":if(0!==c[0])break;return new S(A,(0,a.hexlify)(c.slice(1)),null,n,o,s,r,null)}return b.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function x(e,t){t||(t="");let r=(0,o.toUtf8Bytes)("mnemonic"+t,o.UnicodeNormalizationForm.NFKD);return(0,c.pbkdf2)((0,o.toUtf8Bytes)(e,o.UnicodeNormalizationForm.NFKD),r,2048,64,"sha512")}function T(e,t){t=E(t),b.checkNormalize();let r=t.split(e);if(r.length%3!=0)throw Error("invalid mnemonic");let n=(0,a.arrayify)(new Uint8Array(Math.ceil(11*r.length/8))),i=0;for(let e=0;e>3]|=1<<7-i%8),i++}let s=32*r.length/3,o=r.length/3,c=v(o),f=(0,a.arrayify)((0,d.sha256)(n.slice(0,s/8)))[0]&c;if(f!==(n[n.length-1]&c))throw Error("invalid checksum");return(0,a.hexlify)(n.slice(0,s/8))}function k(e,t){if(t=E(t),(e=(0,a.arrayify)(e)).length%4!=0||e.length<16||e.length>32)throw Error("invalid entropy");let r=[0],n=11;for(let t=0;t8?(r[r.length-1]<<=8,r[r.length-1]|=e[t],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=e[t]>>8-n,r.push(e[t]&(1<<8-n)-1),n+=3);let i=e.length/4,s=(0,a.arrayify)((0,d.sha256)(e))[0]&v(i);return r[r.length-1]<<=i,r[r.length-1]|=s>>8-i,t.join(r.map(e=>t.getWord(e)))}function R(e,t){try{return T(e,t),!0}catch(e){}return!1}function I(e){return("number"!=typeof e||e<0||e>=2147483648||e%1)&&b.throwArgumentError("invalid account index","index",e),`m/44'/60'/${e}'/0/0`}},{"@ethersproject/basex":"Pygpe","@ethersproject/bytes":"19SwW","@ethersproject/bignumber":"hIcBX","@ethersproject/strings":"edSy2","@ethersproject/pbkdf2":"53AfG","@ethersproject/properties":"dmdV5","@ethersproject/signing-key":"a8JOx","@ethersproject/sha2":"bznen","@ethersproject/transactions":"ctBdV","@ethersproject/wordlists":"a2daz","@ethersproject/logger":"6NWvR","./_version":"iqxFg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],Pygpe:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"BaseX",()=>s),n.export(r,"Base32",()=>o),n.export(r,"Base58",()=>c);var i=e("@ethersproject/bytes"),a=e("@ethersproject/properties");class s{constructor(e){(0,a.defineReadOnly)(this,"alphabet",e),(0,a.defineReadOnly)(this,"base",e.length),(0,a.defineReadOnly)(this,"_alphabetMap",{}),(0,a.defineReadOnly)(this,"_leader",e.charAt(0));for(let t=0;t0;)r.push(n%this.base),n=n/this.base|0}let n="";for(let e=0;0===t[e]&&e=0;--e)n+=this.alphabet[r[e]];return n}decode(e){if("string"!=typeof e)throw TypeError("Expected String");let t=[];if(0===e.length)return new Uint8Array(t);t.push(0);for(let r=0;r>=8;for(;i>0;)t.push(255&i),i>>=8}for(let r=0;e[r]===this._leader&&ri.pbkdf2);var i=e("./pbkdf2")},{"./pbkdf2":"iSJTG","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],iSJTG:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"pbkdf2",()=>s);"use strict";var i=e("@ethersproject/bytes"),a=e("@ethersproject/sha2");function s(e,t,r,n,s){let o,c,f;e=(0,i.arrayify)(e),t=(0,i.arrayify)(t);let u=1,d=new Uint8Array(n),l=new Uint8Array(t.length+4);l.set(t);for(let h=1;h<=u;h++){l[t.length]=h>>24&255,l[t.length+1]=h>>16&255,l[t.length+2]=h>>8&255,l[t.length+3]=255&h;let p=(0,i.arrayify)((0,a.computeHmac)(s,e,l));o||(o=p.length,f=new Uint8Array(o),u=Math.ceil(n/o),c=n-(u-1)*o),f.set(p);for(let t=1;ti.computeHmac),n.export(r,"ripemd160",()=>i.ripemd160),n.export(r,"sha256",()=>i.sha256),n.export(r,"sha512",()=>i.sha512),n.export(r,"SupportedAlgorithm",()=>a.SupportedAlgorithm);var i=e("./sha2"),a=e("./types")},{"./sha2":"fjz4b","./types":"cObmA","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],fjz4b:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ripemd160",()=>d),n.export(r,"sha256",()=>l),n.export(r,"sha512",()=>h),n.export(r,"computeHmac",()=>p);"use strict";var i=e("hash.js"),a=n.interopDefault(i),s=e("@ethersproject/bytes"),o=e("./types"),c=e("@ethersproject/logger"),f=e("./_version");let u=new c.Logger(f.version);function d(e){return"0x"+(0,a.default).ripemd160().update((0,s.arrayify)(e)).digest("hex")}function l(e){return"0x"+(0,a.default).sha256().update((0,s.arrayify)(e)).digest("hex")}function h(e){return"0x"+(0,a.default).sha512().update((0,s.arrayify)(e)).digest("hex")}function p(e,t,r){return o.SupportedAlgorithm[e]||u.throwError("unsupported algorithm "+e,c.Logger.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:e}),"0x"+(0,a.default).hmac(a.default[e],(0,s.arrayify)(t)).update((0,s.arrayify)(r)).digest("hex")}},{"hash.js":"2Tlxk","@ethersproject/bytes":"19SwW","./types":"cObmA","@ethersproject/logger":"6NWvR","./_version":"3pnD5","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],cObmA:[function(e,t,r){var n,i,a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(r),a.export(r,"SupportedAlgorithm",()=>i),(n=i||(i={})).sha256="sha256",n.sha512="sha512"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"3pnD5":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="sha2/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],a2daz:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"logger",()=>i.logger),n.export(r,"Wordlist",()=>i.Wordlist),n.export(r,"wordlists",()=>a.wordlists);"use strict";var i=e("./wordlist"),a=e("./wordlists")},{"./wordlist":"kQd0Q","./wordlists":"bk3n1","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],kQd0Q:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"logger",()=>c),n.export(r,"Wordlist",()=>f);"use strict";var i=e("@ethersproject/hash"),a=e("@ethersproject/properties"),s=e("@ethersproject/logger"),o=e("./_version");let c=new s.Logger(o.version);class f{constructor(e){c.checkAbstract(new.target,f),(0,a.defineReadOnly)(this,"locale",e)}split(e){return e.toLowerCase().split(/ +/g)}join(e){return e.join(" ")}static check(e){let t=[];for(let r=0;r<2048;r++){let n=e.getWord(r);if(r!==e.getWordIndex(n))return"0x";t.push(n)}return(0,i.id)(t.join("\n")+"\n")}static register(e,t){t||(t=e.locale)}}},{"@ethersproject/hash":"jLDfB","@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","./_version":"V1tr9","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],V1tr9:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="wordlists/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],bk3n1:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"wordlists",()=>a);var i=e("./lang-en");"use strict";let a={en:i.langEn}},{"./lang-en":"3iB3I","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"3iB3I":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"langEn",()=>c);var i=e("./wordlist");"use strict";let a=null;function s(e){if(null==a&&(a="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"!==(0,i.Wordlist).check(e)))throw a=null,Error("BIP39 Wordlist for en (English) FAILED")}class o extends i.Wordlist{constructor(){super("en")}getWord(e){return s(this),a[e]}getWordIndex(e){return s(this),a.indexOf(e)}}let c=new o;(0,i.Wordlist).register(c)},{"./wordlist":"kQd0Q","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],iqxFg:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="hdnode/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"5x4el":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"randomBytes",()=>i.randomBytes),n.export(r,"shuffled",()=>a.shuffled);"use strict";var i=e("./random"),a=e("./shuffle")},{"./random":"7eRII","./shuffle":"9bV5K","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"7eRII":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"randomBytes",()=>d);"use strict";var i=e("@ethersproject/bytes"),a=e("@ethersproject/logger"),s=e("./_version"),o=arguments[3];let c=new a.Logger(s.version),f=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==o)return o;throw Error("unable to locate global object")}(),u=f.crypto||f.msCrypto;function d(e){(e<=0||e>1024||e%1||e!=e)&&c.throwArgumentError("invalid length","length",e);let t=new Uint8Array(e);return u.getRandomValues(t),(0,i.arrayify)(t)}u&&u.getRandomValues||(c.warn("WARNING: Missing strong random number source"),u={getRandomValues:function(e){return c.throwError("no secure random source avaialble",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}})},{"@ethersproject/bytes":"19SwW","@ethersproject/logger":"6NWvR","./_version":"4vVYi","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"4vVYi":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="random/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"9bV5K":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";function i(e){e=e.slice();for(let t=e.length-1;t>0;t--){let r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e}n.defineInteropFlag(r),n.export(r,"shuffled",()=>i)},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"7BEU7":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"decryptCrowdsale",()=>i.decrypt),n.export(r,"decryptKeystore",()=>s.decrypt),n.export(r,"decryptKeystoreSync",()=>s.decryptSync),n.export(r,"encryptKeystore",()=>s.encrypt),n.export(r,"isCrowdsaleWallet",()=>a.isCrowdsaleWallet),n.export(r,"isKeystoreWallet",()=>a.isKeystoreWallet),n.export(r,"getJsonWalletAddress",()=>a.getJsonWalletAddress),n.export(r,"decryptJsonWallet",()=>o),n.export(r,"decryptJsonWalletSync",()=>c);"use strict";var i=e("./crowdsale"),a=e("./inspect"),s=e("./keystore");function o(e,t,r){if((0,a.isCrowdsaleWallet)(e)){r&&r(0);let n=(0,i.decrypt)(e,t);return r&&r(1),Promise.resolve(n)}return(0,a.isKeystoreWallet)(e)?(0,s.decrypt)(e,t,r):Promise.reject(Error("invalid JSON wallet"))}function c(e,t){if((0,a.isCrowdsaleWallet)(e))return(0,i.decrypt)(e,t);if((0,a.isKeystoreWallet)(e))return(0,s.decryptSync)(e,t);throw Error("invalid JSON wallet")}},{"./crowdsale":"jecLC","./inspect":"f0RP9","./keystore":"lvmQF","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],jecLC:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"CrowdsaleAccount",()=>b),n.export(r,"decrypt",()=>g);"use strict";var i=e("aes-js"),a=n.interopDefault(i),s=e("@ethersproject/address"),o=e("@ethersproject/bytes"),c=e("@ethersproject/keccak256"),f=e("@ethersproject/pbkdf2"),u=e("@ethersproject/strings"),d=e("@ethersproject/properties"),l=e("@ethersproject/logger"),h=e("./_version"),p=e("./utils");let m=new l.Logger(h.version);class b extends d.Description{isCrowdsaleAccount(e){return!!(e&&e._isCrowdsaleAccount)}}function g(e,t){let r=JSON.parse(e);t=(0,p.getPassword)(t);let n=(0,s.getAddress)((0,p.searchPath)(r,"ethaddr")),i=(0,p.looseArrayify)((0,p.searchPath)(r,"encseed"));i&&i.length%16==0||m.throwArgumentError("invalid encseed","json",e);let d=(0,o.arrayify)((0,f.pbkdf2)(t,t,2e3,32,"sha256")).slice(0,16),l=i.slice(0,16),h=i.slice(16),g=new a.default.ModeOfOperation.cbc(d,l),y=(0,a.default).padding.pkcs7.strip((0,o.arrayify)(g.decrypt(h))),v="";for(let e=0;e255)return!1;return!0}function i(e,t){if(e.buffer&&ArrayBuffer.isView(e)&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!n(e))throw Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(r(e.length)&&n(e))return new Uint8Array(e);throw Error("unsupported array-like object")}function a(e){return new Uint8Array(e)}function s(e,t,r,n,i){(null!=n||null!=i)&&(e=e.slice?e.slice(n,i):Array.prototype.slice.call(e,n,i)),t.set(e,r)}var o,c=(o="0123456789abcdef",{toBytes:function(e){for(var t=[],r=0;r>4]+o[15&n])}return t.join("")}}),f={16:10,24:12,32:14},u=[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],d=[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],l=[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],h=[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],p=[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],m=[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],b=[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],g=[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],y=[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],v=[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],w=[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],_=[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],E=[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],A=[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],M=[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 S(e){for(var t=[],r=0;r>2,this._Ke[a][t%4]=i[t],this._Kd[e-a][t%4]=i[t];for(var a,s,o=0,c=n;c>16&255]<<24^d[s>>8&255]<<16^d[255&s]<<8^d[s>>24&255]^u[o]<<24,o+=1,8!=n)for(var t=1;t>8&255]<<8^d[s>>16&255]<<16^d[s>>24&255]<<24;for(var t=n/2+1;t>2,h=c%4,this._Ke[l][h]=i[t],this._Kd[e-l][h]=i[t++],c++}for(var l=1;l>24&255]^E[s>>16&255]^A[s>>8&255]^M[255&s]},x.prototype.encrypt=function(e){if(16!=e.length)throw Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,r=[0,0,0,0],n=S(e),i=0;i<4;i++)n[i]^=this._Ke[0][i];for(var s=1;s>24&255]^p[n[(i+1)%4]>>16&255]^m[n[(i+2)%4]>>8&255]^b[255&n[(i+3)%4]]^this._Ke[s][i];n=r.slice()}for(var o,c=a(16),i=0;i<4;i++)o=this._Ke[t][i],c[4*i]=(d[n[i]>>24&255]^o>>24)&255,c[4*i+1]=(d[n[(i+1)%4]>>16&255]^o>>16)&255,c[4*i+2]=(d[n[(i+2)%4]>>8&255]^o>>8)&255,c[4*i+3]=(d[255&n[(i+3)%4]]^o)&255;return c},x.prototype.decrypt=function(e){if(16!=e.length)throw Error("invalid ciphertext size (must be 16 bytes)");for(var t=this._Kd.length-1,r=[0,0,0,0],n=S(e),i=0;i<4;i++)n[i]^=this._Kd[0][i];for(var s=1;s>24&255]^y[n[(i+3)%4]>>16&255]^v[n[(i+2)%4]>>8&255]^w[255&n[(i+1)%4]]^this._Kd[s][i];n=r.slice()}for(var o,c=a(16),i=0;i<4;i++)o=this._Kd[t][i],c[4*i]=(l[n[i]>>24&255]^o>>24)&255,c[4*i+1]=(l[n[(i+3)%4]>>16&255]^o>>16)&255,c[4*i+2]=(l[n[(i+2)%4]>>8&255]^o>>8)&255,c[4*i+3]=(l[255&n[(i+1)%4]]^o)&255;return c};var T=function(e){if(!(this instanceof T))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new x(e)};T.prototype.encrypt=function(e){if((e=i(e)).length%16!=0)throw Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=a(e.length),r=a(16),n=0;n=0;--t)this._counter[t]=e%256,e>>=8},C.prototype.setBytes=function(e){if(16!=(e=i(e,!0)).length)throw Error("invalid counter bytes size (must be 16 bytes)");this._counter=e},C.prototype.increment=function(){for(var e=15;e>=0;e--)if(255===this._counter[e])this._counter[e]=0;else{this._counter[e]++;break}};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 C||(t=new C(t)),this._counter=t,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new x(e)};P.prototype.encrypt=function(e){for(var t=i(e,!0),r=0;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("")}}},padding:{pkcs7:{pad:function(e){var t=16-(e=i(e,!0)).length%16,r=a(e.length+t);s(e,r);for(var n=e.length;n16)throw Error("PKCS#7 padding byte out of range");for(var r=e.length-t,n=0;ni);let i="json-wallets/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],fbe9v:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"looseArrayify",()=>s),n.export(r,"zpad",()=>o),n.export(r,"getPassword",()=>c),n.export(r,"searchPath",()=>f),n.export(r,"uuidV4",()=>u);"use strict";var i=e("@ethersproject/bytes"),a=e("@ethersproject/strings");function s(e){return"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),(0,i.arrayify)(e)}function o(e,t){for(e=String(e);e.lengtha),n.export(r,"isKeystoreWallet",()=>s),n.export(r,"getJsonWalletAddress",()=>o);var i=e("@ethersproject/address");"use strict";function a(e){let t=null;try{t=JSON.parse(e)}catch(e){return!1}return t.encseed&&t.ethaddr}function s(e){let t=null;try{t=JSON.parse(e)}catch(e){return!1}return!!t.version&&parseInt(t.version)===t.version&&3===parseInt(t.version)}function o(e){if(a(e))try{return(0,i.getAddress)(JSON.parse(e).ethaddr)}catch(e){return null}if(s(e))try{return(0,i.getAddress)(JSON.parse(e).address)}catch(e){}return null}},{"@ethersproject/address":"7BZuS","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lvmQF:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"KeystoreAccount",()=>_),n.export(r,"decryptSync",()=>x),n.export(r,"decrypt",()=>T),n.export(r,"encrypt",()=>k);"use strict";var i=e("aes-js"),a=n.interopDefault(i),s=e("scrypt-js"),o=n.interopDefault(s),c=e("@ethersproject/address"),f=e("@ethersproject/bytes"),u=e("@ethersproject/hdnode"),d=e("@ethersproject/keccak256"),l=e("@ethersproject/pbkdf2"),h=e("@ethersproject/random"),p=e("@ethersproject/properties"),m=e("@ethersproject/transactions"),b=e("./utils"),g=e("@ethersproject/logger"),y=e("./_version");let v=new g.Logger(y.version);function w(e){return null!=e&&e.mnemonic&&e.mnemonic.phrase}class _ extends p.Description{isKeystoreAccount(e){return!!(e&&e._isKeystoreAccount)}}function E(e,t){let r=(0,b.looseArrayify)((0,b.searchPath)(e,"crypto/ciphertext")),n=(0,f.hexlify)((0,d.keccak256)((0,f.concat)([t.slice(16,32),r]))).substring(2);if(n!==(0,b.searchPath)(e,"crypto/mac").toLowerCase())throw Error("invalid password");let i=function(e,t,r){let n=(0,b.searchPath)(e,"crypto/cipher");if("aes-128-ctr"===n){let n=(0,b.looseArrayify)((0,b.searchPath)(e,"crypto/cipherparams/iv")),i=new a.default.Counter(n),s=new a.default.ModeOfOperation.ctr(t,i);return(0,f.arrayify)(s.decrypt(r))}return null}(e,t.slice(0,16),r);i||v.throwError("unsupported cipher",g.Logger.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});let s=t.slice(32,64),o=(0,m.computeAddress)(i);if(e.address){let t=e.address.toLowerCase();if("0x"!==t.substring(0,2)&&(t="0x"+t),(0,c.getAddress)(t)!==o)throw Error("address mismatch")}let l={_isKeystoreAccount:!0,address:o,privateKey:(0,f.hexlify)(i)};if("0.1"===(0,b.searchPath)(e,"x-ethers/version")){let t=(0,b.looseArrayify)((0,b.searchPath)(e,"x-ethers/mnemonicCiphertext")),r=(0,b.looseArrayify)((0,b.searchPath)(e,"x-ethers/mnemonicCounter")),n=new a.default.Counter(r),i=new a.default.ModeOfOperation.ctr(s,n),o=(0,b.searchPath)(e,"x-ethers/path")||u.defaultPath,c=(0,b.searchPath)(e,"x-ethers/locale")||"en",d=(0,f.arrayify)(i.decrypt(t));try{let e=(0,u.entropyToMnemonic)(d,c),t=(0,u.HDNode).fromMnemonic(e,null,c).derivePath(o);if(t.privateKey!=l.privateKey)throw Error("mnemonic mismatch");l.mnemonic=t.mnemonic}catch(e){if(e.code!==g.Logger.errors.INVALID_ARGUMENT||"wordlist"!==e.argument)throw e}}return new _(l)}function A(e,t,r,n,i){return(0,f.arrayify)((0,l.pbkdf2)(e,t,r,n,i))}function M(e,t,r,n,i){return Promise.resolve(A(e,t,r,n,i))}function S(e,t,r,n,i){let a=(0,b.getPassword)(t),s=(0,b.searchPath)(e,"crypto/kdf");if(s&&"string"==typeof s){let t=function(e,t){return v.throwArgumentError("invalid key-derivation function parameters",e,t)};if("scrypt"===s.toLowerCase()){let r=(0,b.looseArrayify)((0,b.searchPath)(e,"crypto/kdfparams/salt")),o=parseInt((0,b.searchPath)(e,"crypto/kdfparams/n")),c=parseInt((0,b.searchPath)(e,"crypto/kdfparams/r")),f=parseInt((0,b.searchPath)(e,"crypto/kdfparams/p"));o&&c&&f||t("kdf",s),(o&o-1)!=0&&t("N",o);let u=parseInt((0,b.searchPath)(e,"crypto/kdfparams/dklen"));return 32!==u&&t("dklen",u),n(a,r,o,c,f,64,i)}if("pbkdf2"===s.toLowerCase()){let n=(0,b.looseArrayify)((0,b.searchPath)(e,"crypto/kdfparams/salt")),i=null,s=(0,b.searchPath)(e,"crypto/kdfparams/prf");"hmac-sha256"===s?i="sha256":"hmac-sha512"===s?i="sha512":t("prf",s);let o=parseInt((0,b.searchPath)(e,"crypto/kdfparams/c")),c=parseInt((0,b.searchPath)(e,"crypto/kdfparams/dklen"));return 32!==c&&t("dklen",c),r(a,n,o,c,i)}}return v.throwArgumentError("unsupported key-derivation function","kdf",s)}function x(e,t){let r=JSON.parse(e),n=S(r,t,A,o.default.syncScrypt);return E(r,n)}function T(e,t,r){var n,i,a,s;return n=this,i=void 0,a=void 0,s=function*(){let n=JSON.parse(e),i=yield S(n,t,M,o.default.scrypt,r);return E(n,i)},new(a||(a=Promise))(function(e,t){function r(e){try{c(s.next(e))}catch(e){t(e)}}function o(e){try{c(s.throw(e))}catch(e){t(e)}}function c(t){var n;t.done?e(t.value):((n=t.value)instanceof a?n:new a(function(e){e(n)})).then(r,o)}c((s=s.apply(n,i||[])).next())})}function k(e,t,r,n){try{if((0,c.getAddress)(e.address)!==(0,m.computeAddress)(e.privateKey))throw Error("address/privateKey mismatch");if(w(e)){let t=e.mnemonic,r=(0,u.HDNode).fromMnemonic(t.phrase,null,t.locale).derivePath(t.path||u.defaultPath);if(r.privateKey!=e.privateKey)throw Error("mnemonic mismatch")}}catch(e){return Promise.reject(e)}"function"!=typeof r||n||(n=r,r={}),r||(r={});let i=(0,f.arrayify)(e.privateKey),s=(0,b.getPassword)(t),l=null,p=null,g=null;if(w(e)){let t=e.mnemonic;l=(0,f.arrayify)((0,u.mnemonicToEntropy)(t.phrase,t.locale||"en")),p=t.path||u.defaultPath,g=t.locale||"en"}let y=r.client;y||(y="ethers.js");let v=null;v=r.salt?(0,f.arrayify)(r.salt):(0,h.randomBytes)(32);let _=null;if(r.iv){if(16!==(_=(0,f.arrayify)(r.iv)).length)throw Error("invalid iv")}else _=(0,h.randomBytes)(16);let E=null;if(r.uuid){if(16!==(E=(0,f.arrayify)(r.uuid)).length)throw Error("invalid uuid")}else E=(0,h.randomBytes)(16);let A=131072,M=8,S=1;return r.scrypt&&(r.scrypt.N&&(A=r.scrypt.N),r.scrypt.r&&(M=r.scrypt.r),r.scrypt.p&&(S=r.scrypt.p)),(0,o.default).scrypt(s,v,A,M,S,64,n).then(t=>{t=(0,f.arrayify)(t);let r=t.slice(0,16),n=t.slice(16,32),s=t.slice(32,64),o=new a.default.Counter(_),c=new a.default.ModeOfOperation.ctr(r,o),u=(0,f.arrayify)(c.encrypt(i)),m=(0,d.keccak256)((0,f.concat)([n,u])),w={address:e.address.substring(2).toLowerCase(),id:(0,b.uuidV4)(E),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:(0,f.hexlify)(_).substring(2)},ciphertext:(0,f.hexlify)(u).substring(2),kdf:"scrypt",kdfparams:{salt:(0,f.hexlify)(v).substring(2),n:A,dklen:32,p:S,r:M},mac:m.substring(2)}};if(l){let e=(0,h.randomBytes)(16),t=new a.default.Counter(e),r=new a.default.ModeOfOperation.ctr(s,t),n=(0,f.arrayify)(r.encrypt(l)),i=new Date,o=i.getUTCFullYear()+"-"+(0,b.zpad)(i.getUTCMonth()+1,2)+"-"+(0,b.zpad)(i.getUTCDate(),2)+"T"+(0,b.zpad)(i.getUTCHours(),2)+"-"+(0,b.zpad)(i.getUTCMinutes(),2)+"-"+(0,b.zpad)(i.getUTCSeconds(),2)+".0Z";w["x-ethers"]={client:y,gethFilename:"UTC--"+o+"--"+w.address,mnemonicCounter:(0,f.hexlify)(e).substring(2),mnemonicCiphertext:(0,f.hexlify)(n).substring(2),path:p,locale:g,version:"0.1"}}return JSON.stringify(w)})}},{"aes-js":"1XnEw","scrypt-js":"81Ky2","@ethersproject/address":"7BZuS","@ethersproject/bytes":"19SwW","@ethersproject/hdnode":"2zCqF","@ethersproject/keccak256":"eWtzg","@ethersproject/pbkdf2":"53AfG","@ethersproject/random":"5x4el","@ethersproject/properties":"dmdV5","@ethersproject/transactions":"ctBdV","./utils":"fbe9v","@ethersproject/logger":"6NWvR","./_version":"giv5t","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"81Ky2":[function(e,t,r){"use strict";!function(e){function n(e){let t=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]),r=1779033703,n=3144134277,i=1013904242,a=2773480762,s=1359893119,o=2600822924,c=528734635,f=1541459225,u=new Uint32Array(64);function d(e){let d=0,l=e.length;for(;l>=64;){let h=r,p=n,m=i,b=a,g=s,y=o,v=c,w=f,_,E,A,M,S;for(E=0;E<16;E++)A=d+4*E,u[E]=(255&e[A])<<24|(255&e[A+1])<<16|(255&e[A+2])<<8|255&e[A+3];for(E=16;E<64;E++)M=((_=u[E-2])>>>17|_<<15)^(_>>>19|_<<13)^_>>>10,S=((_=u[E-15])>>>7|_<<25)^(_>>>18|_<<14)^_>>>3,u[E]=(M+u[E-7]|0)+(S+u[E-16]|0)|0;for(E=0;E<64;E++)M=(((g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&y^~g&v)|0)+(w+(t[E]+u[E]|0)|0)|0,S=((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+(h&p^h&m^p&m)|0,w=v,v=y,y=g,g=b+M|0,b=m,m=p,p=h,h=M+S|0;r=r+h|0,n=n+p|0,i=i+m|0,a=a+b|0,s=s+g|0,o=o+y|0,c=c+v|0,f=f+w|0,d+=64,l-=64}}d(e);let l,h=e.length%64,p=e.length/536870912|0,m=e.length<<3,b=h<56?56:120,g=e.slice(e.length-h,e.length);for(g.push(128),l=h+1;l>>24&255),g.push(p>>>16&255),g.push(p>>>8&255),g.push(p>>>0&255),g.push(m>>>24&255),g.push(m>>>16&255),g.push(m>>>8&255),g.push(m>>>0&255),d(g),[r>>>24&255,r>>>16&255,r>>>8&255,r>>>0&255,n>>>24&255,n>>>16&255,n>>>8&255,n>>>0&255,i>>>24&255,i>>>16&255,i>>>8&255,i>>>0&255,a>>>24&255,a>>>16&255,a>>>8&255,a>>>0&255,s>>>24&255,s>>>16&255,s>>>8&255,s>>>0&255,o>>>24&255,o>>>16&255,o>>>8&255,o>>>0&255,c>>>24&255,c>>>16&255,c>>>8&255,c>>>0&255,f>>>24&255,f>>>16&255,f>>>8&255,f>>>0&255]}function i(e,t,r){let i;e=e.length<=64?e:n(e);let a=64+t.length+4,s=Array(a),o=Array(64),c=[];for(i=0;i<64;i++)s[i]=54;for(i=0;i=a-4;e--){if(s[e]++,s[e]<=255)return;s[e]=0}}for(;r>=32;)f(),c=c.concat(n(o.concat(n(s)))),r-=32;return r>0&&(f(),c=c.concat(n(o.concat(n(s))).slice(0,r))),c}function a(e,t,r,n,i){let a;for(c(e,(2*r-1)*16,i,0,16),a=0;a<2*r;a++)o(e,16*a,i,16),function(e,t){c(e,0,t,0,16);for(let e=8;e>0;e-=2)t[4]^=s(t[0]+t[12],7),t[8]^=s(t[4]+t[0],9),t[12]^=s(t[8]+t[4],13),t[0]^=s(t[12]+t[8],18),t[9]^=s(t[5]+t[1],7),t[13]^=s(t[9]+t[5],9),t[1]^=s(t[13]+t[9],13),t[5]^=s(t[1]+t[13],18),t[14]^=s(t[10]+t[6],7),t[2]^=s(t[14]+t[10],9),t[6]^=s(t[2]+t[14],13),t[10]^=s(t[6]+t[2],18),t[3]^=s(t[15]+t[11],7),t[7]^=s(t[3]+t[15],9),t[11]^=s(t[7]+t[3],13),t[15]^=s(t[11]+t[7],18),t[1]^=s(t[0]+t[3],7),t[2]^=s(t[1]+t[0],9),t[3]^=s(t[2]+t[1],13),t[0]^=s(t[3]+t[2],18),t[6]^=s(t[5]+t[4],7),t[7]^=s(t[6]+t[5],9),t[4]^=s(t[7]+t[6],13),t[5]^=s(t[4]+t[7],18),t[11]^=s(t[10]+t[9],7),t[8]^=s(t[11]+t[10],9),t[9]^=s(t[8]+t[11],13),t[10]^=s(t[9]+t[8],18),t[12]^=s(t[15]+t[14],7),t[13]^=s(t[12]+t[15],9),t[14]^=s(t[13]+t[12],13),t[15]^=s(t[14]+t[13],18);for(let r=0;r<16;++r)e[r]+=t[r]}(i,n),c(i,0,e,t+16*a,16);for(a=0;a>>32-t}function o(e,t,r,n){for(let i=0;i=256)return!1}return!0}function u(e,t){if("number"!=typeof e||e%1)throw Error("invalid "+t);return e}function d(e,t,r,n,s,d,l){let h;if(r=u(r,"N"),n=u(n,"r"),s=u(s,"p"),d=u(d,"dkLen"),0===r||(r&r-1)!=0)throw Error("N must be power of 2");if(r>2147483647/128/n)throw Error("N too large");if(n>2147483647/128/s)throw Error("r too large");if(!f(e))throw Error("password must be an array or buffer");if(e=Array.prototype.slice.call(e),!f(t))throw Error("salt must be an array or buffer");let p=i(e,t=Array.prototype.slice.call(t),128*s*n),m=new Uint32Array(32*s*n);for(let e=0;ek&&(t=k);for(let e=0;ek&&(t=k);for(let e=0;e>0&255),p.push(m[e]>>8&255),p.push(m[e]>>16&255),p.push(m[e]>>24&255);let f=i(e,p,d);return l&&l(null,1,f),f}l&&R(I)};if(!l)for(;;){let e=I();if(void 0!=e)return e}I()}let l={scrypt:function(e,t,r,n,i,a,s){return new Promise(function(o,c){let f=0;s&&s(0),d(e,t,r,n,i,a,function(e,t,r){if(e)c(e);else if(r)s&&1!==f&&s(1),o(new Uint8Array(r));else if(s&&t!==f)return f=t,s(t)})})},syncScrypt:function(e,t,r,n,i,a){return new Uint8Array(d(e,t,r,n,i,a))}};void 0!==r?t.exports=l:"function"==typeof define&&define.amd?define(l):e&&(e.scrypt&&(e._scrypt=e.scrypt),e.scrypt=l)}(this)},{}],"2nczW":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="wallet/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lpm2Y:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Provider",()=>i.Provider),n.export(r,"BaseProvider",()=>s.BaseProvider),n.export(r,"Resolver",()=>s.Resolver),n.export(r,"UrlJsonRpcProvider",()=>y.UrlJsonRpcProvider),n.export(r,"FallbackProvider",()=>d.FallbackProvider),n.export(r,"AlchemyProvider",()=>o.AlchemyProvider),n.export(r,"AlchemyWebSocketProvider",()=>o.AlchemyWebSocketProvider),n.export(r,"AnkrProvider",()=>c.AnkrProvider),n.export(r,"CloudflareProvider",()=>f.CloudflareProvider),n.export(r,"EtherscanProvider",()=>u.EtherscanProvider),n.export(r,"InfuraProvider",()=>h.InfuraProvider),n.export(r,"InfuraWebSocketProvider",()=>h.InfuraWebSocketProvider),n.export(r,"JsonRpcProvider",()=>p.JsonRpcProvider),n.export(r,"JsonRpcBatchProvider",()=>m.JsonRpcBatchProvider),n.export(r,"NodesmithProvider",()=>b.NodesmithProvider),n.export(r,"PocketProvider",()=>g.PocketProvider),n.export(r,"StaticJsonRpcProvider",()=>y.StaticJsonRpcProvider),n.export(r,"Web3Provider",()=>v.Web3Provider),n.export(r,"WebSocketProvider",()=>w.WebSocketProvider),n.export(r,"IpcProvider",()=>l.IpcProvider),n.export(r,"JsonRpcSigner",()=>p.JsonRpcSigner),n.export(r,"getDefaultProvider",()=>S),n.export(r,"getNetwork",()=>a.getNetwork),n.export(r,"isCommunityResource",()=>_.isCommunityResource),n.export(r,"isCommunityResourcable",()=>_.isCommunityResourcable),n.export(r,"showThrottleMessage",()=>_.showThrottleMessage),n.export(r,"Formatter",()=>_.Formatter);"use strict";var i=e("@ethersproject/abstract-provider"),a=e("@ethersproject/networks"),s=e("./base-provider"),o=e("./alchemy-provider"),c=e("./ankr-provider"),f=e("./cloudflare-provider"),u=e("./etherscan-provider"),d=e("./fallback-provider"),l=e("./ipc-provider"),h=e("./infura-provider"),p=e("./json-rpc-provider"),m=e("./json-rpc-batch-provider"),b=e("./nodesmith-provider"),g=e("./pocket-provider"),y=e("./url-json-rpc-provider"),v=e("./web3-provider"),w=e("./websocket-provider"),_=e("./formatter"),E=e("@ethersproject/logger"),A=e("./_version");let M=new E.Logger(A.version);function S(e,t){if(null==e&&(e="homestead"),"string"==typeof e){let t=e.match(/^(ws|http)s?:/i);if(t)switch(t[1].toLowerCase()){case"http":case"https":return new p.JsonRpcProvider(e);case"ws":case"wss":return new w.WebSocketProvider(e);default:M.throwArgumentError("unsupported URL scheme","network",e)}}let r=(0,a.getNetwork)(e);return r&&r._defaultProvider||M.throwError("unsupported getDefaultProvider network",E.Logger.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:e}),r._defaultProvider({FallbackProvider:d.FallbackProvider,AlchemyProvider:o.AlchemyProvider,AnkrProvider:c.AnkrProvider,CloudflareProvider:f.CloudflareProvider,EtherscanProvider:u.EtherscanProvider,InfuraProvider:h.InfuraProvider,JsonRpcProvider:p.JsonRpcProvider,NodesmithProvider:b.NodesmithProvider,PocketProvider:g.PocketProvider,Web3Provider:v.Web3Provider,IpcProvider:l.IpcProvider},t)}},{"@ethersproject/abstract-provider":"imf57","@ethersproject/networks":"acQbn","./base-provider":"lEHz5","./alchemy-provider":"dBSgv","./ankr-provider":"afy2f","./cloudflare-provider":"1qhut","./etherscan-provider":"fduCf","./fallback-provider":"LdkdG","./ipc-provider":"8DeRN","./infura-provider":"8Bo5e","./json-rpc-provider":"7x7oZ","./json-rpc-batch-provider":"aCNcD","./nodesmith-provider":"19g4w","./pocket-provider":"dwl0t","./url-json-rpc-provider":"bwHu3","./web3-provider":"2aAfb","./websocket-provider":"83spj","./formatter":"7RPp2","@ethersproject/logger":"6NWvR","./_version":"1LO7N","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],acQbn:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"getNetwork",()=>h);"use strict";var i=e("@ethersproject/logger"),a=e("./_version");let s=new i.Logger(a.version);function o(e){let t=function(t,r){null==r&&(r={});let n=[];if(t.InfuraProvider&&"-"!==r.infura)try{n.push(new t.InfuraProvider(e,r.infura))}catch(e){}if(t.EtherscanProvider&&"-"!==r.etherscan)try{n.push(new t.EtherscanProvider(e,r.etherscan))}catch(e){}if(t.AlchemyProvider&&"-"!==r.alchemy)try{n.push(new t.AlchemyProvider(e,r.alchemy))}catch(e){}if(t.PocketProvider&&"-"!==r.pocket)try{let i=new t.PocketProvider(e,r.pocket);i.network&&-1===["goerli","ropsten","rinkeby","sepolia"].indexOf(i.network.name)&&n.push(i)}catch(e){}if(t.CloudflareProvider&&"-"!==r.cloudflare)try{n.push(new t.CloudflareProvider(e))}catch(e){}if(t.AnkrProvider&&"-"!==r.ankr)try{let i=new t.AnkrProvider(e,r.ankr);i.network&&-1===["ropsten"].indexOf(i.network.name)&&n.push(i)}catch(e){}if(0===n.length)return null;if(t.FallbackProvider){let i=1;return null!=r.quorum?i=r.quorum:"homestead"===e&&(i=2),new t.FallbackProvider(n,i)}return n[0]};return t.renetwork=function(e){return o(e)},t}function c(e,t){let r=function(r,n){return r.JsonRpcProvider?new r.JsonRpcProvider(e,t):null};return r.renetwork=function(t){return c(e,t)},r}let f={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:o("homestead")},u={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:o("ropsten")},d={chainId:63,name:"classicMordor",_defaultProvider:c("https://www.ethercluster.com/mordor","classicMordor")},l={unspecified:{chainId:0,name:"unspecified"},homestead:f,mainnet:f,morden:{chainId:2,name:"morden"},ropsten:u,testnet:u,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:o("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:o("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:o("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:o("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:c("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:d,classicTestnet:d,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:c("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:o("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:o("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 h(e){if(null==e)return null;if("number"==typeof e){for(let t in l){let r=l[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){let t=l[e];return null==t?null:{name:t.name,chainId:t.chainId,ensAddress:t.ensAddress,_defaultProvider:t._defaultProvider||null}}let t=l[e.name];if(!t)return"number"!=typeof e.chainId&&s.throwArgumentError("invalid network chainId","network",e),e;0!==e.chainId&&e.chainId!==t.chainId&&s.throwArgumentError("network chainId mismatch","network",e);let r=e._defaultProvider||null;if(null==r&&t._defaultProvider){var n;r=(n=t._defaultProvider)&&"function"==typeof n.renetwork?t._defaultProvider.renetwork(e):t._defaultProvider}return{name:e.name,chainId:t.chainId,ensAddress:e.ensAddress||t.ensAddress||null,_defaultProvider:r}}},{"@ethersproject/logger":"6NWvR","./_version":"jSIn2","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],jSIn2:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="networks/5.7.1"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lEHz5:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Event",()=>R),n.export(r,"Resolver",()=>F),n.export(r,"BaseProvider",()=>K);"use strict";var i=e("@ethersproject/abstract-provider"),a=e("@ethersproject/base64"),s=e("@ethersproject/basex"),o=e("@ethersproject/bignumber"),c=e("@ethersproject/bytes"),f=e("@ethersproject/constants"),u=e("@ethersproject/hash"),d=e("@ethersproject/networks"),l=e("@ethersproject/properties"),h=e("@ethersproject/sha2"),p=e("@ethersproject/strings"),m=e("@ethersproject/web"),b=e("bech32"),g=n.interopDefault(b),y=e("@ethersproject/logger"),v=e("./_version"),w=e("./formatter"),_=function(e,t,r,n){return new(r||(r=Promise))(function(i,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function o(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}c((n=n.apply(e,t||[])).next())})};let E=new y.Logger(v.version);function A(e){return null==e?"null":(32!==(0,c.hexDataLength)(e)&&E.throwArgumentError("invalid topic","topic",e),e.toLowerCase())}function M(e){for(e=e.slice();e.length>0&&null==e[e.length-1];)e.pop();return e.map(e=>{if(!Array.isArray(e))return A(e);{let t={};e.forEach(e=>{t[A(e)]=!0});let r=Object.keys(t);return r.sort(),r.join("|")}}).join("&")}function S(e){if("string"==typeof e){if(e=e.toLowerCase(),32===(0,c.hexDataLength)(e))return"tx:"+e;if(-1===e.indexOf(":"))return e}else if(Array.isArray(e))return"filter:*:"+M(e);else if((0,i.ForkEvent).isForkEvent(e))throw E.warn("not implemented"),Error("not implemented");else if(e&&"object"==typeof e)return"filter:"+(e.address||"*")+":"+M(e.topics||[]);throw Error("invalid event - "+e)}function x(){return new Date().getTime()}function T(e){return new Promise(t=>{setTimeout(t,e)})}let k=["block","network","pending","poll"];class R{constructor(e,t,r){(0,l.defineReadOnly)(this,"tag",e),(0,l.defineReadOnly)(this,"listener",t),(0,l.defineReadOnly)(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(){let e=this.tag.split(":");return"tx"!==e[0]?null:e[1]}get filter(){var e;let t=this.tag.split(":");if("filter"!==t[0])return null;let r=t[1],n=""===(e=t[2])?[]:e.split(/&/g).map(e=>{if(""===e)return[];let t=e.split("|").map(e=>"null"===e?null:e);return 1===t.length?t[0]:t}),i={};return n.length>0&&(i.topics=n),r&&"*"!==r&&(i.address=r),i}pollable(){return this.tag.indexOf(":")>=0||k.indexOf(this.tag)>=0}}let I={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 C(e){return(0,c.hexZeroPad)((0,o.BigNumber).from(e).toHexString(),32)}function P(e){return(0,s.Base58).encode((0,c.concat)([e,(0,c.hexDataSlice)((0,h.sha256)((0,h.sha256)(e)),0,4)]))}let O=RegExp("^(ipfs)://(.*)$","i"),N=[RegExp("^(https)://(.*)$","i"),RegExp("^(data):(.*)$","i"),O,RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function j(e,t){try{return(0,p.toUtf8String)(B(e,t))}catch(e){}return null}function B(e,t){if("0x"===e)return null;let r=(0,o.BigNumber).from((0,c.hexDataSlice)(e,t,t+32)).toNumber(),n=(0,o.BigNumber).from((0,c.hexDataSlice)(e,r,r+32)).toNumber();return(0,c.hexDataSlice)(e,r+32,r+32+n)}function L(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):E.throwArgumentError("unsupported IPFS format","link",e),`https://gateway.ipfs.io/ipfs/${e}`}function D(e){let t=(0,c.arrayify)(e);if(t.length>32)throw Error("internal; should not happen");let r=new Uint8Array(32);return r.set(t,32-t.length),r}function U(e){let t=[],r=0;for(let n=0;n(0,o.BigNumber).from(e).eq(1)).catch(e=>{if(e.code===y.Logger.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,e})),this._supportsEip2544}_fetch(e,t){return _(this,void 0,void 0,function*(){let r={to:this.address,ccipReadEnabled:!0,data:(0,c.hexConcat)([e,(0,u.namehash)(this.name),t||"0x"])},n=!1;(yield this.supportsWildcard())&&(n=!0,r.data=(0,c.hexConcat)(["0x9061b923",U([(0,u.dnsEncode)(this.name),r.data])]));try{let e=yield this.provider.call(r);return(0,c.arrayify)(e).length%32==4&&E.throwError("resolver threw error",y.Logger.errors.CALL_EXCEPTION,{transaction:r,data:e}),n&&(e=B(e,0)),e}catch(e){if(e.code===y.Logger.errors.CALL_EXCEPTION)return null;throw e}})}_fetchBytes(e,t){return _(this,void 0,void 0,function*(){let r=yield this._fetch(e,t);return null!=r?B(r,0):null})}_getAddress(e,t){let r=I[String(e)];if(null==r&&E.throwError(`unsupported coin type: ${e}`,y.Logger.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`}),"eth"===r.ilk)return this.provider.formatter.address(t);let n=(0,c.arrayify)(t);if(null!=r.p2pkh){let e=t.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(e){let t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return P((0,c.concat)([[r.p2pkh],"0x"+e[2]]))}}if(null!=r.p2sh){let e=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(e){let t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return P((0,c.concat)([[r.p2sh],"0x"+e[2]]))}}if(null!=r.prefix){let e=n[1],t=n[0];if(0===t?20!==e&&32!==e&&(t=-1):t=-1,t>=0&&n.length===2+e&&e>=1&&e<=75){let e=(0,g.default).toWords(n.slice(2));return e.unshift(t),(0,g.default).encode(r.prefix,e)}}return null}getAddress(e){return _(this,void 0,void 0,function*(){if(null==e&&(e=60),60===e)try{let e=yield this._fetch("0x3b3b57de");if("0x"===e||e===f.HashZero)return null;return this.provider.formatter.callAddress(e)}catch(e){if(e.code===y.Logger.errors.CALL_EXCEPTION)return null;throw e}let t=yield this._fetchBytes("0xf1cb7e06",C(e));if(null==t||"0x"===t)return null;let r=this._getAddress(e,t);return null==r&&E.throwError("invalid or unsupported coin data",y.Logger.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`,coinType:e,data:t}),r})}getAvatar(){return _(this,void 0,void 0,function*(){let e=[{type:"name",content:this.name}];try{let t=yield this.getText("avatar");if(null==t)return null;for(let r=0;re[t]);return"sia://"+t}return E.throwError("invalid or unsupported content hash data",y.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})})}getText(e){return _(this,void 0,void 0,function*(){let t=(0,p.toUtf8Bytes)(e);(t=(0,c.concat)([C(64),C(t.length),t])).length%32!=0&&(t=(0,c.concat)([t,(0,c.hexZeroPad)("0x",32-e.length%32)]));let r=yield this._fetchBytes("0x59d1d43c",(0,c.hexlify)(t));return null==r||"0x"===r?null:(0,p.toUtf8String)(r)})}}let q=null,z=1;class K extends i.Provider{constructor(e){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),(0,l.defineReadOnly)(this,"anyNetwork","any"===e),this.anyNetwork&&(e=this.detectNetwork()),e instanceof Promise)this._networkPromise=e,e.catch(e=>{}),this._ready().catch(e=>{});else{let t=(0,l.getStatic)(new.target,"getNetwork")(e);t?((0,l.defineReadOnly)(this,"_network",t),this.emit("network",t,null)):E.throwArgumentError("invalid network","network",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return _(this,void 0,void 0,function*(){if(null==this._network){let e=null;if(this._networkPromise)try{e=yield this._networkPromise}catch(e){}null==e&&(e=yield this.detectNetwork()),e||E.throwError("no network detected",y.Logger.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=e:(0,l.defineReadOnly)(this,"_network",e),this.emit("network",e,null))}return this._network})}get ready(){return(0,m.poll)(()=>this._ready().then(e=>e,e=>{if(e.code!==y.Logger.errors.NETWORK_ERROR||"noNetwork"!==e.event)throw e}))}static getFormatter(){return null==q&&(q=new w.Formatter),q}static getNetwork(e){return(0,d.getNetwork)(null==e?"homestead":e)}ccipReadFetch(e,t,r){return _(this,void 0,void 0,function*(){if(this.disableCcipRead||0===r.length)return null;let n=e.to.toLowerCase(),i=t.toLowerCase(),a=[];for(let e=0;e=0?null:JSON.stringify({data:i,sender:n}),c=yield(0,m.fetchJson)({url:s,errorPassThrough:!0},o,(e,t)=>(e.status=t.statusCode,e));if(c.data)return c.data;let f=c.message||"unknown error";if(c.status>=400&&c.status<500)return E.throwError(`response not found during CCIP fetch: ${f}`,y.Logger.errors.SERVER_ERROR,{url:t,errorMessage:f});a.push(f)}return E.throwError(`error encountered during CCIP fetch: ${a.map(e=>JSON.stringify(e)).join(", ")}`,y.Logger.errors.SERVER_ERROR,{urls:r,errorMessages:a})})}_getInternalBlockNumber(e){return _(this,void 0,void 0,function*(){if(yield this._ready(),e>0)for(;this._internalBlockNumber;){let t=this._internalBlockNumber;try{let r=yield t;if(x()-r.respTime<=e)return r.blockNumber;break}catch(e){if(this._internalBlockNumber===t)break}}let t=x(),r=(0,l.resolveProperties)({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(e=>null,e=>e)}).then(({blockNumber:e,networkError:n})=>{if(n)throw this._internalBlockNumber===r&&(this._internalBlockNumber=null),n;let i=x();return(e=(0,o.BigNumber).from(e).toNumber()){this._internalBlockNumber===r&&(this._internalBlockNumber=null)}),(yield r).blockNumber})}poll(){return _(this,void 0,void 0,function*(){let e=z++,t=[],r=null;try{r=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(e){this.emit("error",e);return}if(this._setFastBlockNumber(r),this.emit("poll",e,r),r===this._lastBlockNumber){this.emit("didPoll",e);return}if(-2===this._emitted.block&&(this._emitted.block=r-1),Math.abs(this._emitted.block-r)>1e3)E.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${r})`),this.emit("error",E.makeError("network block skew detected",y.Logger.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;let 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":{let r=e.hash,n=this.getTransactionReceipt(r).then(e=>(e&&null!=e.blockNumber&&(this._emitted["t:"+r]=e.blockNumber,this.emit(r,e)),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);let n=e.filter;n.fromBlock=e._lastBlockNumber+1,n.toBlock=r;let i=n.toBlock-this._maxFilterBlockRange;i>n.fromBlock&&(n.fromBlock=i),n.fromBlock<0&&(n.fromBlock=0);let a=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(a)}}}),this._lastBlockNumber=r,Promise.all(t).then(()=>{this.emit("didPoll",e)}).catch(e=>{this.emit("error",e)})})}resetEventsBlock(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return _(this,void 0,void 0,function*(){return E.throwError("provider does not support network detection",y.Logger.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})})}getNetwork(){return _(this,void 0,void 0,function*(){let 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 T(0),this._network;let r=E.makeError("underlying network changed",y.Logger.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 Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval(()=>{this.poll()},this._pollingInterval))}_getFastBlockNumber(){let e=x();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 _(this,void 0,void 0,function*(){return this._waitForTransaction(e,null==t?1:t,r||0,null)})}_waitForTransaction(e,t,r,n){return _(this,void 0,void 0,function*(){let i=yield this.getTransactionReceipt(e);return(i?i.confirmations:0)>=t?i:new Promise((i,a)=>{let s=[],o=!1,c=function(){return!!o||(o=!0,s.forEach(e=>{e()}),!1)},f=e=>{!(e.confirmations{this.removeListener(e,f)}),n){let r=n.startBlock,i=null,f=s=>_(this,void 0,void 0,function*(){o||(yield T(1e3),this.getTransactionCount(n.from).then(u=>_(this,void 0,void 0,function*(){if(!o){if(u<=n.nonce)r=s;else{{let t=yield this.getTransaction(e);if(t&&null!=t.blockNumber)return}for(null==i&&(i=r-3){o||this.once("block",f)}))});if(o)return;this.once("block",f),s.push(()=>{this.removeListener("block",f)})}if("number"==typeof r&&r>0){let e=setTimeout(()=>{c()||a(E.makeError("timeout exceeded",y.Logger.errors.TIMEOUT,{timeout:r}))},r);e.unref&&e.unref(),s.push(()=>{clearTimeout(e)})}})})}getBlockNumber(){return _(this,void 0,void 0,function*(){return this._getInternalBlockNumber(0)})}getGasPrice(){return _(this,void 0,void 0,function*(){yield this.getNetwork();let e=yield this.perform("getGasPrice",{});try{return(0,o.BigNumber).from(e)}catch(t){return E.throwError("bad result from backend",y.Logger.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:t})}})}getBalance(e,t){return _(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield(0,l.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getBalance",r);try{return(0,o.BigNumber).from(n)}catch(e){return E.throwError("bad result from backend",y.Logger.errors.SERVER_ERROR,{method:"getBalance",params:r,result:n,error:e})}})}getTransactionCount(e,t){return _(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield(0,l.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getTransactionCount",r);try{return(0,o.BigNumber).from(n).toNumber()}catch(e){return E.throwError("bad result from backend",y.Logger.errors.SERVER_ERROR,{method:"getTransactionCount",params:r,result:n,error:e})}})}getCode(e,t){return _(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield(0,l.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getCode",r);try{return(0,c.hexlify)(n)}catch(e){return E.throwError("bad result from backend",y.Logger.errors.SERVER_ERROR,{method:"getCode",params:r,result:n,error:e})}})}getStorageAt(e,t,r){return _(this,void 0,void 0,function*(){yield this.getNetwork();let n=yield(0,l.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(r),position:Promise.resolve(t).then(e=>(0,c.hexValue)(e))}),i=yield this.perform("getStorageAt",n);try{return(0,c.hexlify)(i)}catch(e){return E.throwError("bad result from backend",y.Logger.errors.SERVER_ERROR,{method:"getStorageAt",params:n,result:i,error:e})}})}_wrapTransaction(e,t,r){if(null!=t&&32!==(0,c.hexDataLength)(t))throw Error("invalid response - sendTransaction");return null!=t&&e.hash!==t&&E.throwError("Transaction hash mismatch from Provider.sendTransaction.",y.Logger.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),e.wait=(t,n)=>_(this,void 0,void 0,function*(){let i;null==t&&(t=1),null==n&&(n=0),0!==t&&null!=r&&(i={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:r});let a=yield this._waitForTransaction(e.hash,t,n,i);return null==a&&0===t?null:(this._emitted["t:"+e.hash]=a.blockNumber,0===a.status&&E.throwError("transaction failed",y.Logger.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:a}),a)}),e}sendTransaction(e){return _(this,void 0,void 0,function*(){yield this.getNetwork();let t=yield Promise.resolve(e).then(e=>(0,c.hexlify)(e)),r=this.formatter.transaction(e);null==r.confirmations&&(r.confirmations=0);let n=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{let e=yield this.perform("sendTransaction",{signedTransaction:t});return this._wrapTransaction(r,e,n)}catch(e){throw e.transaction=r,e.transactionHash=r.hash,e}})}_getTransactionRequest(e){return _(this,void 0,void 0,function*(){let 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?(0,o.BigNumber).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?(0,c.hexlify)(e):null))}),this.formatter.transactionRequest((yield(0,l.resolveProperties)(r)))})}_getFilter(e){return _(this,void 0,void 0,function*(){e=yield e;let 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(0,l.resolveProperties)(t)))})}_call(e,t,r){return _(this,void 0,void 0,function*(){r>=10&&E.throwError("CCIP read exceeded maximum redirections",y.Logger.errors.SERVER_ERROR,{redirects:r,transaction:e});let n=e.to,i=yield this.perform("call",{transaction:e,blockTag:t});if(r>=0&&"latest"===t&&null!=n&&"0x556f1830"===i.substring(0,10)&&(0,c.hexDataLength)(i)%32==4)try{let a=(0,c.hexDataSlice)(i,4),s=(0,c.hexDataSlice)(a,0,32);(0,o.BigNumber).from(s).eq(n)||E.throwError("CCIP Read sender did not match",y.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:i});let f=[],u=(0,o.BigNumber).from((0,c.hexDataSlice)(a,32,64)).toNumber(),d=(0,o.BigNumber).from((0,c.hexDataSlice)(a,u,u+32)).toNumber(),l=(0,c.hexDataSlice)(a,u+32);for(let t=0;t_(this,void 0,void 0,function*(){let 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 r=0;rthis._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 _(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;let t={transactionHash:this.formatter.hash(e,!0)};return(0,m.poll)(()=>_(this,void 0,void 0,function*(){let r=yield this.perform("getTransaction",t);if(null==r)return null==this._emitted["t:"+e]?null:void 0;let 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),t=e-n.blockNumber+1;t<=0&&(t=1),n.confirmations=t}return this._wrapTransaction(n)}),{oncePoll:this})})}getTransactionReceipt(e){return _(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;let t={transactionHash:this.formatter.hash(e,!0)};return(0,m.poll)(()=>_(this,void 0,void 0,function*(){let r=yield this.perform("getTransactionReceipt",t);if(null==r)return null==this._emitted["t:"+e]?null:void 0;if(null==r.blockHash)return;let 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),t=e-n.blockNumber+1;t<=0&&(t=1),n.confirmations=t}return n}),{oncePoll:this})})}getLogs(e){return _(this,void 0,void 0,function*(){yield this.getNetwork();let t=yield(0,l.resolveProperties)({filter:this._getFilter(e)}),r=yield this.perform("getLogs",t);return r.forEach(e=>{null==e.removed&&(e.removed=!1)}),(0,w.Formatter).arrayOf(this.formatter.filterLog.bind(this.formatter))(r)})}getEtherPrice(){return _(this,void 0,void 0,function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})})}_getBlockTag(e){return _(this,void 0,void 0,function*(){if("number"==typeof(e=yield e)&&e<0){e%1&&E.throwArgumentError("invalid BlockTag","blockTag",e);let t=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return(t+=e)<0&&(t=0),this.formatter.blockTag(t)}return this.formatter.blockTag(e)})}getResolver(e){return _(this,void 0,void 0,function*(){let t=e;for(;;){if(""===t||"."===t||"eth"!==e&&"eth"===t)return null;let r=yield this._getResolver(t,"getResolver");if(null!=r){let n=new F(this,r,e);if(t!==e&&!(yield n.supportsWildcard()))return null;return n}t=t.split(".").slice(1).join(".")}})}_getResolver(e,t){return _(this,void 0,void 0,function*(){null==t&&(t="ENS");let r=yield this.getNetwork();r.ensAddress||E.throwError("network does not support ENS",y.Logger.errors.UNSUPPORTED_OPERATION,{operation:t,network:r.name});try{let t=yield this.call({to:r.ensAddress,data:"0x0178b8bf"+(0,u.namehash)(e).substring(2)});return this.formatter.callAddress(t)}catch(e){}return null})}resolveName(e){return _(this,void 0,void 0,function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(t){if((0,c.isHexString)(e))throw t}"string"!=typeof e&&E.throwArgumentError("invalid ENS name","name",e);let t=yield this.getResolver(e);return t?yield t.getAddress():null})}lookupAddress(e){return _(this,void 0,void 0,function*(){e=yield e,e=this.formatter.address(e);let t=e.substring(2).toLowerCase()+".addr.reverse",r=yield this._getResolver(t,"lookupAddress");if(null==r)return null;let n=j((yield this.call({to:r,data:"0x691f3431"+(0,u.namehash)(t).substring(2)})),0),i=yield this.resolveName(n);return i!=e?null:n})}getAvatar(e){return _(this,void 0,void 0,function*(){let t=null;if((0,c.isHexString)(e)){let r=this.formatter.address(e),n=r.substring(2).toLowerCase()+".addr.reverse",i=yield this._getResolver(n,"getAvatar");if(!i)return null;t=new F(this,i,n);try{let e=yield t.getAvatar();if(e)return e.url}catch(e){if(e.code!==y.Logger.errors.CALL_EXCEPTION)throw e}try{let e=j((yield this.call({to:i,data:"0x691f3431"+(0,u.namehash)(n).substring(2)})),0);t=yield this.getResolver(e)}catch(e){if(e.code!==y.Logger.errors.CALL_EXCEPTION)throw e;return null}}else if(!(t=yield this.getResolver(e)))return null;let r=yield t.getAvatar();return null==r?null:r.url})}perform(e,t){return E.throwError(e+" not implemented",y.Logger.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){let n=new R(S(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,...t){let r=!1,n=[],i=S(e);return this._events=this._events.filter(e=>e.tag!==i||(setTimeout(()=>{e.listener.apply(this,t)},0),r=!0,!e.once||(n.push(e),!1))),n.forEach(e=>{this._stopEvent(e)}),r}listenerCount(e){if(!e)return this._events.length;let t=S(e);return this._events.filter(e=>e.tag===t).length}listeners(e){if(null==e)return this._events.map(e=>e.listener);let t=S(e);return this._events.filter(e=>e.tag===t).map(e=>e.listener)}off(e,t){if(null==t)return this.removeAllListeners(e);let r=[],n=!1,i=S(e);return this._events=this._events.filter(e=>e.tag!==i||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{let r=S(e);this._events=this._events.filter(e=>e.tag!==r||(t.push(e),!1))}return t.forEach(e=>{this._stopEvent(e)}),this}}},{"@ethersproject/abstract-provider":"imf57","@ethersproject/base64":"dIiCi","@ethersproject/basex":"Pygpe","@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/constants":"cSsuf","@ethersproject/hash":"jLDfB","@ethersproject/networks":"acQbn","@ethersproject/properties":"dmdV5","@ethersproject/sha2":"bznen","@ethersproject/strings":"edSy2","@ethersproject/web":"5uH8k",bech32:"jLLEl","@ethersproject/logger":"6NWvR","./_version":"1LO7N","./formatter":"7RPp2","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"5uH8k":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"_fetchData",()=>p),n.export(r,"fetchJson",()=>m),n.export(r,"poll",()=>b);"use strict";var i=e("@ethersproject/base64"),a=e("@ethersproject/bytes"),s=e("@ethersproject/properties"),o=e("@ethersproject/strings"),c=e("@ethersproject/logger"),f=e("./_version"),u=e("./geturl");let d=new c.Logger(f.version);function l(e){return new Promise(t=>{setTimeout(t,e)})}function h(e,t){if(null==e)return null;if("string"==typeof e)return e;if((0,a.isBytesLike)(e)){if(t&&("text"===t.split("/")[0]||"application/json"===t.split(";")[0].trim()))try{return(0,o.toUtf8String)(e)}catch(e){}return(0,a.hexlify)(e)}return e}function p(e,t,r){let n="object"==typeof e&&null!=e.throttleLimit?e.throttleLimit:12;d.assertArgument(n>0&&n%1==0,"invalid connection throttle limit","connection.throttleLimit",n);let a="object"==typeof e?e.throttleCallback:null,f="object"==typeof e&&"number"==typeof e.throttleSlotInterval?e.throttleSlotInterval:100;d.assertArgument(f>0&&f%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",f);let p="object"==typeof e&&!!e.errorPassThrough,m={},b=null,g={method:"GET"},y=!1,v=12e4;if("string"==typeof e)b=e;else if("object"==typeof e){if((null==e||null==e.url)&&d.throwArgumentError("missing URL","connection.url",e),b=e.url,"number"==typeof e.timeout&&e.timeout>0&&(v=e.timeout),e.headers)for(let t in e.headers)m[t.toLowerCase()]={key:t,value:String(e.headers[t])},["if-none-match","if-modified-since"].indexOf(t.toLowerCase())>=0&&(y=!0);if(g.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==b.substring(0,6)&&!0!==e.allowInsecureAuthentication&&d.throwError("basic authentication requires a secure https url",c.Logger.errors.INVALID_ARGUMENT,{argument:"url",url:b,user:e.user,password:"[REDACTED]"});let t=e.user+":"+e.password;m.authorization={key:"Authorization",value:"Basic "+(0,i.encode)((0,o.toUtf8Bytes)(t))}}null!=e.skipFetchSetup&&(g.skipFetchSetup=!!e.skipFetchSetup),null!=e.fetchOptions&&(g.fetchOptions=(0,s.shallowCopy)(e.fetchOptions))}let w=RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),_=b?b.match(w):null;if(_)try{var E;let e={statusCode:200,statusMessage:"OK",headers:{"content-type":_[1]||"text/plain"},body:_[2]?(0,i.decode)(_[3]):(E=_[3],(0,o.toUtf8Bytes)(E.replace(/%([0-9a-f][0-9a-f])/gi,(e,t)=>String.fromCharCode(parseInt(t,16)))))},t=e.body;return r&&(t=r(e.body,e)),Promise.resolve(t)}catch(e){d.throwError("processing response error",c.Logger.errors.SERVER_ERROR,{body:h(_[1],_[2]),error:e,requestBody:null,requestMethod:"GET",url:b})}t&&(g.method="POST",g.body=t,null==m["content-type"]&&(m["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==m["content-length"]&&(m["content-length"]={key:"Content-Length",value:String(t.length)}));let A={};Object.keys(m).forEach(e=>{let t=m[e];A[t.key]=t.value}),g.headers=A;let M=function(){let e=null,t=new Promise(function(t,r){v&&(e=setTimeout(()=>{null!=e&&(e=null,r(d.makeError("timeout",c.Logger.errors.TIMEOUT,{requestBody:h(g.body,A["content-type"]),requestMethod:g.method,timeout:v,url:b})))},v))});return{promise:t,cancel:function(){null!=e&&(clearTimeout(e),e=null)}}}(),S=function(){var e,t,i,s;return e=this,t=void 0,i=void 0,s=function*(){for(let e=0;e=300)&&(M.cancel(),d.throwError("bad response",c.Logger.errors.SERVER_ERROR,{status:t.statusCode,headers:t.headers,body:h(i,t.headers?t.headers["content-type"]:null),requestBody:h(g.body,A["content-type"]),requestMethod:g.method,url:b})),r)try{let e=yield r(i,t);return M.cancel(),e}catch(r){if(r.throttleRetry&&e"content-type"===e.toLowerCase()).length;e||(r.headers=(0,s.shallowCopy)(r.headers),r.headers["content-type"]="application/json")}else r.headers={"content-type":"application/json"};e=r}return p(e,n,(e,t)=>{let n=null;if(null!=e)try{n=JSON.parse((0,o.toUtf8String)(e))}catch(t){d.throwError("invalid JSON",c.Logger.errors.SERVER_ERROR,{body:e,error:t})}return r&&(n=r(n,t)),n})}function b(e,t){return t||(t={}),null==(t=(0,s.shallowCopy)(t)).floor&&(t.floor=0),null==t.ceiling&&(t.ceiling=1e4),null==t.interval&&(t.interval=250),new Promise(function(r,n){let i=null,a=!1,s=()=>!a&&(a=!0,i&&clearTimeout(i),!0);t.timeout&&(i=setTimeout(()=>{s()&&n(Error("timeout"))},t.timeout));let o=t.retryLimit,c=0;!function i(){return e().then(function(e){if(void 0!==e)s()&&r(e);else if(t.oncePoll)t.oncePoll.once("poll",i);else if(t.onceBlock)t.onceBlock.once("block",i);else if(!a){if(++c>o){s()&&n(Error("retry limit reached"));return}let e=t.interval*parseInt(String(Math.random()*Math.pow(2,c)));et.ceiling&&(e=t.ceiling),setTimeout(i,e)}return null},function(e){s()&&n(e)})}()})}},{"@ethersproject/base64":"dIiCi","@ethersproject/bytes":"19SwW","@ethersproject/properties":"dmdV5","@ethersproject/strings":"edSy2","@ethersproject/logger":"6NWvR","./_version":"bPRgl","./geturl":"aerdi","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],bPRgl:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="web/5.7.1"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],aerdi:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"getUrl",()=>a);var i=e("@ethersproject/bytes");"use strict";function a(e,t){var r,n,a,s;return r=this,n=void 0,a=void 0,s=function*(){null==t&&(t={});let 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){let 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)}let n=yield fetch(e,r),a=yield n.arrayBuffer(),s={};return n.headers.forEach?n.headers.forEach((e,t)=>{s[t.toLowerCase()]=e}):n.headers.keys().forEach(e=>{s[e.toLowerCase()]=n.headers.get(e)}),{headers:s,statusCode:n.status,statusMessage:n.statusText,body:(0,i.arrayify)(new Uint8Array(a))}},new(a||(a=Promise))(function(e,t){function i(e){try{c(s.next(e))}catch(e){t(e)}}function o(e){try{c(s.throw(e))}catch(e){t(e)}}function c(t){var r;t.done?e(t.value):((r=t.value)instanceof a?r:new a(function(e){e(r)})).then(i,o)}c((s=s.apply(r,n||[])).next())})}},{"@ethersproject/bytes":"19SwW","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],jLLEl:[function(e,t,r){"use strict";for(var n="qpzry9x8gf2tvdw0s3jn54khce6mua7l",i={},a=0;a>25;return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function c(e){for(var t=1,r=0;r126)return"Invalid prefix ("+e+")";t=o(t)^n>>5}for(r=0,t=o(t);rt)return"Exceeds length limit";var r=e.toLowerCase(),n=e.toUpperCase();if(e!==r&&e!==n)return"Mixed-case string "+e;var a=(e=r).lastIndexOf("1");if(-1===a)return"No separator character for "+e;if(0===a)return"Missing prefix for "+e;var s=e.slice(0,a),f=e.slice(a+1);if(f.length<6)return"Data too short";var u=c(s);if("string"==typeof u)return u;for(var d=[],l=0;l=f.length||d.push(p)}return 1!==u?"Invalid checksum for "+e:{prefix:s,words:d}}function u(e,t,r,n){for(var i=0,a=0,s=(1<=r;)o.push(i>>(a-=r)&s);if(n)a>0&&o.push(i<=t)return"Excess padding";if(i<r)throw TypeError("Exceeds length limit");var i=c(e=e.toLowerCase());if("string"==typeof i)throw Error(i);for(var a=e+"1",s=0;s>5!=0)throw Error("Non 5-bit word");i=o(i)^f,a+=n.charAt(f)}for(s=0;s<6;++s)i=o(i);for(i^=1,s=0;s<6;++s){var u=i>>(5-s)*5&31;a+=n.charAt(u)}return a},toWordsUnsafe:function(e){var t=u(e,8,5,!0);if(Array.isArray(t))return t},toWords:function(e){var t=u(e,8,5,!0);if(Array.isArray(t))return t;throw Error(t)},fromWordsUnsafe:function(e){var t=u(e,5,8,!1);if(Array.isArray(t))return t},fromWords:function(e){var t=u(e,5,8,!1);if(Array.isArray(t))return t;throw Error(t)}}},{}],"1LO7N":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="providers/5.7.2"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"7RPp2":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Formatter",()=>h),n.export(r,"isCommunityResourcable",()=>p),n.export(r,"isCommunityResource",()=>m),n.export(r,"showThrottleMessage",()=>g);"use strict";var i=e("@ethersproject/address"),a=e("@ethersproject/bignumber"),s=e("@ethersproject/bytes"),o=e("@ethersproject/constants"),c=e("@ethersproject/properties"),f=e("@ethersproject/transactions"),u=e("@ethersproject/logger"),d=e("./_version");let l=new u.Logger(d.version);class h{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){let e={},t=this.address.bind(this),r=this.bigNumber.bind(this),n=this.blockTag.bind(this),i=this.data.bind(this),a=this.hash.bind(this),s=this.hex.bind(this),o=this.number.bind(this),f=this.type.bind(this);return e.transaction={hash:a,type:f,accessList:h.allowNull(this.accessList.bind(this),null),blockHash:h.allowNull(a,null),blockNumber:h.allowNull(o,null),transactionIndex:h.allowNull(o,null),confirmations:h.allowNull(o,null),from:t,gasPrice:h.allowNull(r),maxPriorityFeePerGas:h.allowNull(r),maxFeePerGas:h.allowNull(r),gasLimit:r,to:h.allowNull(t,null),value:r,nonce:o,data:i,r:h.allowNull(this.uint256),s:h.allowNull(this.uint256),v:h.allowNull(o),creates:h.allowNull(t,null),raw:h.allowNull(i)},e.transactionRequest={from:h.allowNull(t),nonce:h.allowNull(o),gasLimit:h.allowNull(r),gasPrice:h.allowNull(r),maxPriorityFeePerGas:h.allowNull(r),maxFeePerGas:h.allowNull(r),to:h.allowNull(t),value:h.allowNull(r),data:h.allowNull(e=>this.data(e,!0)),type:h.allowNull(o),accessList:h.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:o,blockNumber:o,transactionHash:a,address:t,topics:h.arrayOf(a),data:i,logIndex:o,blockHash:a},e.receipt={to:h.allowNull(this.address,null),from:h.allowNull(this.address,null),contractAddress:h.allowNull(t,null),transactionIndex:o,root:h.allowNull(s),gasUsed:r,logsBloom:h.allowNull(i),blockHash:a,transactionHash:a,logs:h.arrayOf(this.receiptLog.bind(this)),blockNumber:o,confirmations:h.allowNull(o,null),cumulativeGasUsed:r,effectiveGasPrice:h.allowNull(r),status:h.allowNull(o),type:f},e.block={hash:h.allowNull(a),parentHash:a,number:o,timestamp:o,nonce:h.allowNull(s),difficulty:this.difficulty.bind(this),gasLimit:r,gasUsed:r,miner:h.allowNull(t),extraData:i,transactions:h.allowNull(h.arrayOf(a)),baseFeePerGas:h.allowNull(r)},e.blockWithTransactions=(0,c.shallowCopy)(e.block),e.blockWithTransactions.transactions=h.allowNull(h.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:h.allowNull(n,void 0),toBlock:h.allowNull(n,void 0),blockHash:h.allowNull(a,void 0),address:h.allowNull(t,void 0),topics:h.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:h.allowNull(o),blockHash:h.allowNull(a),transactionIndex:o,removed:h.allowNull(this.boolean.bind(this)),address:t,data:h.allowFalsish(i,"0x"),topics:h.arrayOf(a),transactionHash:a,logIndex:o},e}accessList(e){return(0,f.accessListify)(e||[])}number(e){return"0x"===e?0:(0,a.BigNumber).from(e).toNumber()}type(e){return"0x"===e||null==e?0:(0,a.BigNumber).from(e).toNumber()}bigNumber(e){return(0,a.BigNumber).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 Error("invalid boolean - "+e)}hex(e,t){return"string"==typeof e&&(t||"0x"===e.substring(0,2)||(e="0x"+e),(0,s.isHexString)(e))?e.toLowerCase():l.throwArgumentError("invalid hash","value",e)}data(e,t){let r=this.hex(e,t);if(r.length%2!=0)throw Error("invalid data; odd-length - "+e);return r}address(e){return(0,i.getAddress)(e)}callAddress(e){if(!(0,s.isHexString)(e,32))return null;let t=(0,i.getAddress)((0,s.hexDataSlice)(e,12));return t===o.AddressZero?null:t}contractAddress(e){return(0,i.getContractAddress)(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||(0,s.isHexString)(e))return(0,s.hexValue)(e);throw Error("invalid blockTag")}hash(e,t){let r=this.hex(e,t);return 32!==(0,s.hexDataLength)(r)?l.throwArgumentError("invalid hash","value",e):r}difficulty(e){if(null==e)return null;let t=(0,a.BigNumber).from(e);try{return t.toNumber()}catch(e){}return null}uint256(e){if(!(0,s.isHexString)(e))throw Error("invalid uint256");return(0,s.hexZeroPad)(e,32)}_block(e,t){null!=e.author&&null==e.miner&&(e.miner=e.author);let r=null!=e._difficulty?e._difficulty:e.difficulty,n=h.check(t,e);return n._difficulty=null==r?null:(0,a.BigNumber).from(r),n}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return h.check(this.formats.transactionRequest,e)}transactionResponse(e){null!=e.gas&&null==e.gasLimit&&(e.gasLimit=e.gas),e.to&&(0,a.BigNumber).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=[]);let t=h.check(this.formats.transaction,e);if(null!=e.chainId){let r=e.chainId;(0,s.isHexString)(r)&&(r=(0,a.BigNumber).from(r).toNumber()),t.chainId=r}else{let r=e.networkId;null==r&&null==t.v&&(r=e.chainId),(0,s.isHexString)(r)&&(r=(0,a.BigNumber).from(r).toNumber()),"number"!=typeof r&&null!=t.v&&((r=(t.v-35)/2)<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(0,f.parse)(e)}receiptLog(e){return h.check(this.formats.receiptLog,e)}receipt(e){let t=h.check(this.formats.receipt,e);if(null!=t.root){if(t.root.length<=4){let e=(0,a.BigNumber).from(t.root).toNumber();0===e||1===e?(null!=t.status&&t.status!==e&&l.throwArgumentError("alt-root-status/status mismatch","value",{root:t.root,status:t.status}),t.status=e,delete t.root):l.throwArgumentError("invalid alt-root-status","value.root",t.root)}else 66!==t.root.length&&l.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 h.check(this.formats.filter,e)}filterLog(e){return h.check(this.formats.filterLog,e)}static check(e,t){let r={};for(let n in e)try{let i=e[n](t[n]);void 0!==i&&(r[n]=i)}catch(e){throw e.checkKey=n,e.checkValue=t[n],e}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 Error("not an array");let r=[];return t.forEach(function(t){r.push(e(t))}),r}}}function p(e){return e&&"function"==typeof e.isCommunityResource}function m(e){return p(e)&&e.isCommunityResource()}let b=!1;function g(){b||(b=!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("=========================="))}},{"@ethersproject/address":"7BZuS","@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/constants":"cSsuf","@ethersproject/properties":"dmdV5","@ethersproject/transactions":"ctBdV","@ethersproject/logger":"6NWvR","./_version":"1LO7N","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dBSgv:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"AlchemyWebSocketProvider",()=>l),n.export(r,"AlchemyProvider",()=>h);"use strict";var i=e("@ethersproject/properties"),a=e("./formatter"),s=e("./websocket-provider"),o=e("@ethersproject/logger"),c=e("./_version"),f=e("./url-json-rpc-provider");let u=new o.Logger(c.version),d="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";class l extends s.WebSocketProvider{constructor(e,t){let r=new h(e,t),n=r.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi.");super(n,r.network),(0,i.defineReadOnly)(this,"apiKey",r.apiKey)}isCommunityResource(){return this.apiKey===d}}class h extends f.UrlJsonRpcProvider{static getWebSocketProvider(e,t){return new l(e,t)}static getApiKey(e){return null==e?d:(e&&"string"!=typeof e&&u.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:u.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+r+t,throttleCallback:(e,r)=>(t===d&&(0,a.showThrottleMessage)(),Promise.resolve(!0))}}isCommunityResource(){return this.apiKey===d}}},{"@ethersproject/properties":"dmdV5","./formatter":"7RPp2","./websocket-provider":"83spj","@ethersproject/logger":"6NWvR","./_version":"1LO7N","./url-json-rpc-provider":"bwHu3","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"83spj":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"WebSocketProvider",()=>h);"use strict";var i=e("@ethersproject/bignumber"),a=e("@ethersproject/properties"),s=e("./json-rpc-provider"),o=e("./ws"),c=e("@ethersproject/logger"),f=e("./_version"),u=function(e,t,r,n){return new(r||(r=Promise))(function(i,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function o(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}c((n=n.apply(e,t||[])).next())})};let d=new c.Logger(f.version),l=1;class h extends s.JsonRpcProvider{constructor(e,t){"any"===t&&d.throwError("WebSocketProvider does not support 'any' network yet",c.Logger.errors.UNSUPPORTED_OPERATION,{operation:"network:any"}),"string"==typeof e?super(e,t):super("_websocket",t),this._pollingInterval=-1,this._wsReady=!1,"string"==typeof e?(0,a.defineReadOnly)(this,"_websocket",new o.WebSocket(this.connection.url)):(0,a.defineReadOnly)(this,"_websocket",e),(0,a.defineReadOnly)(this,"_requests",{}),(0,a.defineReadOnly)(this,"_subs",{}),(0,a.defineReadOnly)(this,"_subIds",{}),(0,a.defineReadOnly)(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=>{let t=e.data,r=JSON.parse(t);if(null!=r.id){let 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=Error(r.error.message||"unknown error"),(0,a.defineReadOnly)(e,"code",r.error.code||null),(0,a.defineReadOnly)(e,"response",t)):e=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){let e=this._subs[r.params.subscription];e&&e.processFunc(r.params.result)}else console.warn("this should not happen")};let 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){d.throwError("cannot reset events block on WebSocketProvider",c.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resetEventBlock"})}set pollingInterval(e){d.throwError("cannot set polling interval on WebSocketProvider",c.Logger.errors.UNSUPPORTED_OPERATION,{operation:"setPollingInterval"})}poll(){return u(this,void 0,void 0,function*(){return null})}set polling(e){e&&d.throwError("cannot set polling on WebSocketProvider",c.Logger.errors.UNSUPPORTED_OPERATION,{operation:"setPolling"})}send(e,t){let r=l++;return new Promise((n,i)=>{let a=JSON.stringify({method:e,params:t,id:r,jsonrpc:"2.0"});this.emit("debug",{action:"request",request:JSON.parse(a),provider:this}),this._requests[String(r)]={callback:function(e,t){return e?i(e):n(t)},payload:a},this._wsReady&&this.websocket.send(a)})}static defaultUrl(){return"ws://localhost:8546"}_subscribe(e,t,r){return u(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);let i=yield n;this._subs[i]={tag:e,processFunc:r}})}_startEvent(e){switch(e.type){case"block":this._subscribe("block",["newHeads"],e=>{let t=(0,i.BigNumber).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":{let t=e=>{let 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;let 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 u(this,void 0,void 0,function*(){this.websocket.readyState===o.WebSocket.CONNECTING&&(yield new Promise(e=>{this.websocket.onopen=function(){e(!0)},this.websocket.onerror=function(){e(!1)}})),this.websocket.close(1e3)})}}},{"@ethersproject/bignumber":"hIcBX","@ethersproject/properties":"dmdV5","./json-rpc-provider":"7x7oZ","./ws":"7S9K4","@ethersproject/logger":"6NWvR","./_version":"1LO7N","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"7x7oZ":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"JsonRpcSigner",()=>M),n.export(r,"JsonRpcProvider",()=>T);"use strict";var i=e("@ethersproject/abstract-signer"),a=e("@ethersproject/bignumber"),s=e("@ethersproject/bytes"),o=e("@ethersproject/hash"),c=e("@ethersproject/properties"),f=e("@ethersproject/strings"),u=e("@ethersproject/transactions"),d=e("@ethersproject/web"),l=e("@ethersproject/logger"),h=e("./_version"),p=e("./base-provider"),m=function(e,t,r,n){return new(r||(r=Promise))(function(i,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function o(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}c((n=n.apply(e,t||[])).next())})};let b=new l.Logger(h.version),g=["call","estimateGas"];function y(e,t){if(null==e)return null;if("string"==typeof e.message&&e.message.match("reverted")){let r=(0,s.isHexString)(e.data)?e.data:null;if(!t||r)return{message:e.message,data:r}}if("object"==typeof e){for(let r in e){let n=y(e[r],t);if(n)return n}return null}if("string"==typeof e)try{return y(JSON.parse(e),t)}catch(e){}return null}function v(e,t,r){let n=r.transaction||r.signedTransaction;if("call"===e){let e=y(t,!0);if(e)return e.data;b.throwError("missing revert data in call exception; Transaction reverted without a reason string",l.Logger.errors.CALL_EXCEPTION,{data:"0x",transaction:n,error:t})}if("estimateGas"===e){let r=y(t.body,!1);null==r&&(r=y(t,!1)),r&&b.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",l.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{reason:r.message,method:e,transaction:n,error:t})}let i=t.message;throw t.code===l.Logger.errors.SERVER_ERROR&&t.error&&"string"==typeof t.error.message?i=t.error.message:"string"==typeof t.body?i=t.body:"string"==typeof t.responseText&&(i=t.responseText),(i=(i||"").toLowerCase()).match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&b.throwError("insufficient funds for intrinsic transaction cost",l.Logger.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:n}),i.match(/nonce (is )?too low/i)&&b.throwError("nonce has already been used",l.Logger.errors.NONCE_EXPIRED,{error:t,method:e,transaction:n}),i.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&b.throwError("replacement fee too low",l.Logger.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:n}),i.match(/only replay-protected/i)&&b.throwError("legacy pre-eip-155 transactions not supported",l.Logger.errors.UNSUPPORTED_OPERATION,{error:t,method:e,transaction:n}),g.indexOf(e)>=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&b.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",l.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:n}),t}function w(e){return new Promise(function(t){setTimeout(t,e)})}function _(e){if(e.error){let t=Error(e.error.message);throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function E(e){return e?e.toLowerCase():e}let A={};class M extends i.Signer{constructor(e,t,r){if(super(),e!==A)throw Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");(0,c.defineReadOnly)(this,"provider",t),null==r&&(r=0),"string"==typeof r?((0,c.defineReadOnly)(this,"_address",this.provider.formatter.address(r)),(0,c.defineReadOnly)(this,"_index",null)):"number"==typeof r?((0,c.defineReadOnly)(this,"_index",r),(0,c.defineReadOnly)(this,"_address",null)):b.throwArgumentError("invalid address or index","addressOrIndex",r)}connect(e){return b.throwError("cannot alter JSON-RPC Signer connection",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new S(A,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&&b.throwError("unknown account #"+this._index,l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(e[this._index])))}sendUncheckedTransaction(e){e=(0,c.shallowCopy)(e);let t=this.getAddress().then(e=>(e&&(e=e.toLowerCase()),e));if(null==e.gasLimit){let r=(0,c.shallowCopy)(e);r.from=t,e.gasLimit=this.provider.estimateGas(r)}return null!=e.to&&(e.to=Promise.resolve(e.to).then(e=>m(this,void 0,void 0,function*(){if(null==e)return null;let t=yield this.provider.resolveName(e);return null==t&&b.throwArgumentError("provided ENS name resolves to null","tx.to",e),t}))),(0,c.resolveProperties)({tx:(0,c.resolveProperties)(e),sender:t}).then(({tx:t,sender:r})=>{null!=t.from?t.from.toLowerCase()!==r&&b.throwArgumentError("from address mismatch","transaction",e):t.from=r;let n=this.provider.constructor.hexlifyTransaction(t,{from:!0});return this.provider.send("eth_sendTransaction",[n]).then(e=>e,e=>("string"==typeof e.message&&e.message.match(/user denied/i)&&b.throwError("user rejected transaction",l.Logger.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:t}),v("sendTransaction",e,n)))})}signTransaction(e){return b.throwError("signing transactions is unsupported",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(e){return m(this,void 0,void 0,function*(){let t=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),r=yield this.sendUncheckedTransaction(e);try{return yield(0,d.poll)(()=>m(this,void 0,void 0,function*(){let e=yield this.provider.getTransaction(r);if(null!==e)return this.provider._wrapTransaction(e,r,t)}),{oncePoll:this.provider})}catch(e){throw e.transactionHash=r,e}})}signMessage(e){return m(this,void 0,void 0,function*(){let t="string"==typeof e?(0,f.toUtf8Bytes)(e):e,r=yield this.getAddress();try{return yield this.provider.send("personal_sign",[(0,s.hexlify)(t),r.toLowerCase()])}catch(t){throw"string"==typeof t.message&&t.message.match(/user denied/i)&&b.throwError("user rejected signing",l.Logger.errors.ACTION_REJECTED,{action:"signMessage",from:r,messageData:e}),t}})}_legacySignMessage(e){return m(this,void 0,void 0,function*(){let t="string"==typeof e?(0,f.toUtf8Bytes)(e):e,r=yield this.getAddress();try{return yield this.provider.send("eth_sign",[r.toLowerCase(),(0,s.hexlify)(t)])}catch(t){throw"string"==typeof t.message&&t.message.match(/user denied/i)&&b.throwError("user rejected signing",l.Logger.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:r,messageData:e}),t}})}_signTypedData(e,t,r){return m(this,void 0,void 0,function*(){let n=yield(0,o._TypedDataEncoder).resolveNames(e,t,r,e=>this.provider.resolveName(e)),i=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[i.toLowerCase(),JSON.stringify((0,o._TypedDataEncoder).getPayload(n.domain,t,n.value))])}catch(e){throw"string"==typeof e.message&&e.message.match(/user denied/i)&&b.throwError("user rejected signing",l.Logger.errors.ACTION_REJECTED,{action:"_signTypedData",from:i,messageData:{domain:n.domain,types:t,value:n.value}}),e}})}unlock(e){return m(this,void 0,void 0,function*(){let t=this.provider,r=yield this.getAddress();return t.send("personal_unlockAccount",[r.toLowerCase(),e,null])})}}class S extends M{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)}))}}let x={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class T extends p.BaseProvider{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=(0,c.getStatic)(this.constructor,"defaultUrl")()),"string"==typeof e?(0,c.defineReadOnly)(this,"connection",Object.freeze({url:e})):(0,c.defineReadOnly)(this,"connection",Object.freeze((0,c.shallowCopy)(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 m(this,void 0,void 0,function*(){yield w(0);let e=null;try{e=yield this.send("eth_chainId",[])}catch(t){try{e=yield this.send("net_version",[])}catch(e){}}if(null!=e){let t=(0,c.getStatic)(this.constructor,"getNetwork");try{return t((0,a.BigNumber).from(e).toNumber())}catch(t){return b.throwError("could not detect network",l.Logger.errors.NETWORK_ERROR,{chainId:e,event:"invalidNetwork",serverError:t})}}return b.throwError("could not detect network",l.Logger.errors.NETWORK_ERROR,{event:"noNetwork"})})}getSigner(e){return new M(A,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){let r={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:(0,c.deepCopy)(r),provider:this});let n=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(n&&this._cache[e])return this._cache[e];let i=(0,d.fetchJson)(this.connection,JSON.stringify(r),_).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]=i,setTimeout(()=>{this._cache[e]=null},0)),i}prepareRequest(e,t){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[E(t.address),t.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[E(t.address),t.blockTag]];case"getCode":return["eth_getCode",[E(t.address),t.blockTag]];case"getStorageAt":return["eth_getStorageAt",[E(t.address),(0,s.hexZeroPad)(t.position,32),t.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[t.signedTransaction]];case"getBlock":if(t.blockTag)return["eth_getBlockByNumber",[t.blockTag,!!t.includeTransactions]];if(t.blockHash)return["eth_getBlockByHash",[t.blockHash,!!t.includeTransactions]];break;case"getTransaction":return["eth_getTransactionByHash",[t.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[t.transactionHash]];case"call":{let e=(0,c.getStatic)(this.constructor,"hexlifyTransaction");return["eth_call",[e(t.transaction,{from:!0}),t.blockTag]]}case"estimateGas":{let e=(0,c.getStatic)(this.constructor,"hexlifyTransaction");return["eth_estimateGas",[e(t.transaction,{from:!0})]]}case"getLogs":return t.filter&&null!=t.filter.address&&(t.filter.address=E(t.filter.address)),["eth_getLogs",[t.filter]]}return null}perform(e,t){return m(this,void 0,void 0,function*(){if("call"===e||"estimateGas"===e){let e=t.transaction;if(e&&null!=e.type&&(0,a.BigNumber).from(e.type).isZero()&&null==e.maxFeePerGas&&null==e.maxPriorityFeePerGas){let r=yield this.getFeeData();null==r.maxFeePerGas&&null==r.maxPriorityFeePerGas&&((t=(0,c.shallowCopy)(t)).transaction=(0,c.shallowCopy)(e),delete t.transaction.type)}}let r=this.prepareRequest(e,t);null==r&&b.throwError(e+" not implemented",l.Logger.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(r[0],r[1])}catch(r){return v(e,r,t)}})}_startEvent(e){"pending"===e.tag&&this._startPending(),super._startEvent(e)}_startPending(){if(null!=this._pendingFilter)return;let 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 w(1e3)})}).then(function(){if(e._pendingFilter!=t){e.send("eth_uninstallFilter",[r]);return}return setTimeout(function(){n()},0),null}).catch(e=>{})}(),r}).catch(e=>{})}_stopEvent(e){"pending"===e.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),super._stopEvent(e)}static hexlifyTransaction(e,t){let r=(0,c.shallowCopy)(x);if(t)for(let e in t)t[e]&&(r[e]=!0);(0,c.checkProperties)(e,r);let n={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(t){if(null==e[t])return;let r=(0,s.hexValue)((0,a.BigNumber).from(e[t]));"gasLimit"===t&&(t="gas"),n[t]=r}),["from","to","data"].forEach(function(t){null!=e[t]&&(n[t]=(0,s.hexlify)(e[t]))}),e.accessList&&(n.accessList=(0,u.accessListify)(e.accessList)),n}}},{"@ethersproject/abstract-signer":"j6EbC","@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/hash":"jLDfB","@ethersproject/properties":"dmdV5","@ethersproject/strings":"edSy2","@ethersproject/transactions":"ctBdV","@ethersproject/web":"5uH8k","@ethersproject/logger":"6NWvR","./_version":"1LO7N","./base-provider":"lEHz5","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"7S9K4":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"WebSocket",()=>s);"use strict";var i=e("@ethersproject/logger"),a=e("./_version");let s=null;try{if(s=WebSocket,null==s)throw Error("inject please")}catch(t){let e=new i.Logger(a.version);s=function(){e.throwError("WebSockets not supported in this environment",i.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}},{"@ethersproject/logger":"6NWvR","./_version":"1LO7N","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],bwHu3:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"StaticJsonRpcProvider",()=>f),n.export(r,"UrlJsonRpcProvider",()=>u);"use strict";var i=e("@ethersproject/properties"),a=e("@ethersproject/logger"),s=e("./_version"),o=e("./json-rpc-provider");let c=new a.Logger(s.version);class f extends o.JsonRpcProvider{detectNetwork(){var e,t,r,n;let s=Object.create(null,{detectNetwork:{get:()=>super.detectNetwork}});return e=this,t=void 0,r=void 0,n=function*(){let e=this.network;return null==e&&((e=yield s.detectNetwork.call(this))||c.throwError("no network detected",a.Logger.errors.UNKNOWN_ERROR,{}),null==this._network&&((0,i.defineReadOnly)(this,"_network",e),this.emit("network",e,null))),e},new(r||(r=Promise))(function(i,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function o(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}c((n=n.apply(e,t||[])).next())})}}class u extends f{constructor(e,t){c.checkAbstract(new.target,u),e=(0,i.getStatic)(new.target,"getNetwork")(e),t=(0,i.getStatic)(new.target,"getApiKey")(t);let r=(0,i.getStatic)(new.target,"getUrl")(e,t);super(r,e),"string"==typeof t?(0,i.defineReadOnly)(this,"apiKey",t):null!=t&&Object.keys(t).forEach(e=>{(0,i.defineReadOnly)(this,e,t[e])})}_startPending(){c.warn("WARNING: API provider does not support pending filters")}isCommunityResource(){return!1}getSigner(e){return c.throwError("API provider does not support signing",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getSigner"})}listAccounts(){return Promise.resolve([])}static getApiKey(e){return e}static getUrl(e,t){return c.throwError("not implemented; sub-classes must override getUrl",a.Logger.errors.NOT_IMPLEMENTED,{operation:"getUrl"})}}},{"@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","./_version":"1LO7N","./json-rpc-provider":"7x7oZ","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],afy2f:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"AnkrProvider",()=>u);var i=e("./formatter"),a=e("./url-json-rpc-provider"),s=e("@ethersproject/logger"),o=e("./_version");let c=new s.Logger(o.version),f="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";class u extends a.UrlJsonRpcProvider{isCommunityResource(){return this.apiKey===f}static getApiKey(e){return null==e?f:e}static getUrl(e,t){null==t&&(t=f);let r={allowGzip:!0,url:"https://"+function(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 c.throwArgumentError("unsupported network","name",e)}(e.name)+t,throttleCallback:(e,r)=>(t.apiKey===f&&(0,i.showThrottleMessage)(),Promise.resolve(!0))};return null!=t.projectSecret&&(r.user="",r.password=t.projectSecret),r}}},{"./formatter":"7RPp2","./url-json-rpc-provider":"bwHu3","@ethersproject/logger":"6NWvR","./_version":"1LO7N","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"1qhut":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"CloudflareProvider",()=>c);"use strict";var i=e("./url-json-rpc-provider"),a=e("@ethersproject/logger"),s=e("./_version");let o=new a.Logger(s.version);class c extends i.UrlJsonRpcProvider{static getApiKey(e){return null!=e&&o.throwArgumentError("apiKey not supported for cloudflare","apiKey",e),null}static getUrl(e,t){let r=null;return"homestead"===e.name?r="https://cloudflare-eth.com/":o.throwArgumentError("unsupported network","network",arguments[0]),r}perform(e,t){var r,n,i,a;let s=Object.create(null,{perform:{get:()=>super.perform}});return r=this,n=void 0,i=void 0,a=function*(){if("getBlockNumber"===e){let e=yield s.perform.call(this,"getBlock",{blockTag:"latest"});return e.number}return s.perform.call(this,e,t)},new(i||(i=Promise))(function(e,t){function s(e){try{c(a.next(e))}catch(e){t(e)}}function o(e){try{c(a.throw(e))}catch(e){t(e)}}function c(t){var r;t.done?e(t.value):((r=t.value)instanceof i?r:new i(function(e){e(r)})).then(s,o)}c((a=a.apply(r,n||[])).next())})}}},{"./url-json-rpc-provider":"bwHu3","@ethersproject/logger":"6NWvR","./_version":"1LO7N","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],fduCf:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"EtherscanProvider",()=>v);"use strict";var i=e("@ethersproject/bytes"),a=e("@ethersproject/properties"),s=e("@ethersproject/transactions"),o=e("@ethersproject/web"),c=e("./formatter"),f=e("@ethersproject/logger"),u=e("./_version"),d=e("./base-provider"),l=function(e,t,r,n){return new(r||(r=Promise))(function(i,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function o(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}c((n=n.apply(e,t||[])).next())})};let h=new f.Logger(u.version);function p(e){let 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]?(0,i.hexValue)((0,i.hexlify)(n)):"accessList"===r?"["+(0,s.accessListify)(n).map(e=>`{address:"${e.address}",storageKeys:["${e.storageKeys.join('","')}"]}`).join(",")+"]":(0,i.hexlify)(n),t[r]=n)}return t}function m(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/)){let t=Error("invalid response");throw t.result=JSON.stringify(e),(e.result||"").toLowerCase().indexOf("rate limit")>=0&&(t.throttleRetry=!0),t}return e.result}function b(e){if(e&&0==e.status&&"NOTOK"==e.message&&(e.result||"").toLowerCase().indexOf("rate limit")>=0){let t=Error("throttled response");throw t.result=JSON.stringify(e),t.throttleRetry=!0,t}if("2.0"!=e.jsonrpc){let t=Error("invalid response");throw t.result=JSON.stringify(e),t}if(e.error){let t=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 g(e){if("pending"===e)throw Error("pending not supported");return"latest"===e?e:parseInt(e.substring(2),16)}function y(e,t,r){if("call"===e&&t.code===f.Logger.errors.SERVER_ERROR){let 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,"")),(0,i.isHexString)(r))return r;h.throwError("missing revert data in call exception",f.Logger.errors.CALL_EXCEPTION,{error:t,data:"0x"})}}let n=t.message;throw t.code===f.Logger.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()).match(/insufficient funds/)&&h.throwError("insufficient funds for intrinsic transaction cost",f.Logger.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:r}),n.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&h.throwError("nonce has already been used",f.Logger.errors.NONCE_EXPIRED,{error:t,method:e,transaction:r}),n.match(/another transaction with same nonce/)&&h.throwError("replacement fee too low",f.Logger.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:r}),n.match(/execution failed due to an exception|execution reverted/)&&h.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",f.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:r}),t}class v extends d.BaseProvider{constructor(e,t){super(e),(0,a.defineReadOnly)(this,"baseUrl",this.getBaseUrl()),(0,a.defineReadOnly)(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 h.throwArgumentError("unsupported network","network",this.network.name)}getUrl(e,t){let r=Object.keys(t).reduce((e,r)=>{let 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 l(this,void 0,void 0,function*(){let n=r?this.getPostUrl():this.getUrl(e,t),i=r?this.getPostData(e,t):null,s="proxy"===e?b:m;this.emit("debug",{action:"request",request:n,provider:this});let f={url:n,throttleSlotInterval:1e3,throttleCallback:(e,t)=>(this.isCommunityResource()&&(0,c.showThrottleMessage)(),Promise.resolve(!0))},u=null;i&&(f.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},u=Object.keys(i).map(e=>`${e}=${i[e]}`).join("&"));let d=yield(0,o.fetchJson)(f,u,s||b);return this.emit("debug",{action:"response",request:n,response:(0,a.deepCopy)(d),provider:this}),d})}detectNetwork(){return l(this,void 0,void 0,function*(){return this.network})}perform(e,t){let r=Object.create(null,{perform:{get:()=>super.perform}});return l(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=>y("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 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 Error("EtherscanProvider does not support blockTag for call");let e=p(t.transaction);e.module="proxy",e.action="eth_call";try{return yield this.fetch("proxy",e,!0)}catch(e){return y("call",e,t.transaction)}}case"estimateGas":{let e=p(t.transaction);e.module="proxy",e.action="eth_estimateGas";try{return yield this.fetch("proxy",e,!0)}catch(e){return y("estimateGas",e,t.transaction)}}case"getLogs":{let e={action:"getLogs"};if(t.filter.fromBlock&&(e.fromBlock=g(t.filter.fromBlock)),t.filter.toBlock&&(e.toBlock=g(t.filter.toBlock)),t.filter.address&&(e.address=t.filter.address),t.filter.topics&&t.filter.topics.length>0&&(t.filter.topics.length>1&&h.throwError("unsupported topic count",f.Logger.errors.UNSUPPORTED_OPERATION,{topics:t.filter.topics}),1===t.filter.topics.length)){let r=t.filter.topics[0];("string"!=typeof r||66!==r.length)&&h.throwError("unsupported topic format",f.Logger.errors.UNSUPPORTED_OPERATION,{topic0:r}),e.topic0=r}let r=yield this.fetch("logs",e),n={};for(let e=0;e{["contractAddress","to"].forEach(function(t){""==e[t]&&delete e[t]}),null==e.creates&&null!=e.contractAddress&&(e.creates=e.contractAddress);let t=this.formatter.transactionResponse(e);return e.timeStamp&&(t.timestamp=parseInt(e.timeStamp)),t})})}isCommunityResource(){return null==this.apiKey}}},{"@ethersproject/bytes":"19SwW","@ethersproject/properties":"dmdV5","@ethersproject/transactions":"ctBdV","@ethersproject/web":"5uH8k","./formatter":"7RPp2","@ethersproject/logger":"6NWvR","./_version":"1LO7N","./base-provider":"lEHz5","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],LdkdG:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"FallbackProvider",()=>x);"use strict";var i=e("@ethersproject/abstract-provider"),a=e("@ethersproject/bignumber"),s=e("@ethersproject/bytes"),o=e("@ethersproject/properties"),c=e("@ethersproject/random"),f=e("@ethersproject/web"),u=e("./base-provider"),d=e("./formatter"),l=e("@ethersproject/logger"),h=e("./_version"),p=function(e,t,r,n){return new(r||(r=Promise))(function(i,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function o(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}c((n=n.apply(e,t||[])).next())})};let m=new l.Logger(h.version);function b(){return new Date().getTime()}function g(e){let t=null;for(let r=0;rt?null:(n+i)/2}function v(e){if(null===e)return"null";if("number"==typeof e||"boolean"==typeof e)return JSON.stringify(e);if("string"==typeof e)return e;if((0,a.BigNumber).isBigNumber(e))return e.toString();if(Array.isArray(e))return JSON.stringify(e.map(e=>v(e)));if("object"==typeof e){let t=Object.keys(e);return t.sort(),"{"+t.map(t=>{let r=e[t];return r="function"==typeof r?"[function]":v(r),JSON.stringify(t)+":"+r}).join(",")+"}"}throw Error("unknown value type: "+typeof e)}let w=1;function _(e){let t=null,r=null,n=new Promise(n=>{r=setTimeout(t=function(){r&&(clearTimeout(r),r=null),n()},e)});return{cancel:t,getPromise:function(){return n},wait:e=>n=n.then(e)}}let E=[l.Logger.errors.CALL_EXCEPTION,l.Logger.errors.INSUFFICIENT_FUNDS,l.Logger.errors.NONCE_EXPIRED,l.Logger.errors.REPLACEMENT_UNDERPRICED,l.Logger.errors.UNPREDICTABLE_GAS_LIMIT],A=["address","args","errorArgs","errorSignature","method","transaction"];function M(e,t){let 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 S(e,t){return p(this,void 0,void 0,function*(){let r=e.provider;return null!=r.blockNumber&&r.blockNumber>=t||-1===t?r:(0,f.poll)(()=>new Promise((n,i)=>{setTimeout(function(){return r.blockNumber>=t?n(r):e.cancelled?n(null):n(void 0)},0)}),{oncePoll:r})})}class x extends u.BaseProvider{constructor(e,t){0===e.length&&m.throwArgumentError("missing providers","providers",e);let r=e.map((e,t)=>{if((0,i.Provider).isProvider(e)){let t=(0,d.isCommunityResource)(e)?2e3:750;return Object.freeze({provider:e,weight:1,stallTimeout:t,priority:1})}let r=(0,o.shallowCopy)(e);null==r.priority&&(r.priority=1),null==r.stallTimeout&&(r.stallTimeout=(0,d.isCommunityResource)(e)?2e3:750),null==r.weight&&(r.weight=1);let n=r.weight;return(n%1||n>512||n<1)&&m.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&&m.throwArgumentError("quorum will always fail; larger than total weight","quorum",t);let a=g(r.map(e=>e.provider.network));null==a&&(a=new Promise((e,t)=>{setTimeout(()=>{this.detectNetwork().then(e,t)},0)})),super(a),(0,o.defineReadOnly)(this,"providerConfigs",Object.freeze(r)),(0,o.defineReadOnly)(this,"quorum",t),this._highestBlockNumber=-1}detectNetwork(){return p(this,void 0,void 0,function*(){let e=yield Promise.all(this.providerConfigs.map(e=>e.provider.getNetwork()));return g(e)})}perform(e,t){return p(this,void 0,void 0,function*(){if("sendTransaction"===e){let e=yield Promise.all(this.providerConfigs.map(e=>e.provider.sendTransaction(t.signedTransaction).then(e=>e.hash,e=>e)));for(let t=0;te.result),n=y(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){let t=e.map(e=>e.result);return t.sort(),t[Math.floor(t.length/2)]};case"getEtherPrice":return function(e){return y(e.map(e=>e.result))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":a=function(e){return null==e?null:((e=(0,o.shallowCopy)(e)).confirmations=-1,v(e))};break;case"getBlock":a=r.includeTransactions?function(e){return null==e?null:((e=(0,o.shallowCopy)(e)).transactions=e.transactions.map(e=>((e=(0,o.shallowCopy)(e)).confirmations=-1,e)),v(e))}:function(e){return null==e?null:v(e)};break;default:throw Error("unknown method: "+t)}return n=a,i=e.quorum,function(e){let t={};e.forEach(e=>{let r=n(e.result);t[r]||(t[r]={count:0,result:e.result}),t[r].count++});let r=Object.keys(t);for(let e=0;e=i)return n.result}}}(this,e,t),n=(0,c.shuffled)(this.providerConfigs.map(o.shallowCopy));n.sort((e,t)=>e.priority-t.priority);let i=this._highestBlockNumber,a=0,f=!0;for(;;){let c=b(),u=n.filter(e=>e.runner&&c-e.starte+t.weight,0);for(;u{r.staller=null}),r.runner=(function(e,t,r,n){return p(this,void 0,void 0,function*(){let i=e.provider;switch(r){case"getBlockNumber":case"getGasPrice":return i[r]();case"getEtherPrice":if(i.getEtherPrice)return i.getEtherPrice();break;case"getBalance":case"getTransactionCount":case"getCode":return n.blockTag&&(0,s.isHexString)(n.blockTag)&&(i=yield S(e,t)),i[r](n.address,n.blockTag||"latest");case"getStorageAt":return n.blockTag&&(0,s.isHexString)(n.blockTag)&&(i=yield S(e,t)),i.getStorageAt(n.address,n.position,n.blockTag||"latest");case"getBlock":return n.blockTag&&(0,s.isHexString)(n.blockTag)&&(i=yield S(e,t)),i[n.includeTransactions?"getBlockWithTransactions":"getBlock"](n.blockTag||n.blockHash);case"call":case"estimateGas":if(n.blockTag&&(0,s.isHexString)(n.blockTag)&&(i=yield S(e,t)),"call"===r&&n.blockTag)return i[r](n.transaction,n.blockTag);return i[r](n.transaction);case"getTransaction":case"getTransactionReceipt":return i[r](n.transactionHash);case"getLogs":{let r=n.filter;return(r.fromBlock&&(0,s.isHexString)(r.fromBlock)||r.toBlock&&(0,s.isHexString)(r.toBlock))&&(i=yield S(e,t)),i.getLogs(r)}}return m.throwError("unknown method error",l.Logger.errors.UNKNOWN_ERROR,{method:r,params:n})})})(r,i,e,t).then(n=>{r.done=!0,r.result=n,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:c,backend:M(r,b()),request:{method:e,params:(0,o.deepCopy)(t)},provider:this})},n=>{r.done=!0,r.error=n,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:c,backend:M(r,b()),request:{method:e,params:(0,o.deepCopy)(t)},provider:this})}),this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:c,backend:M(r,null),request:{method:e,params:(0,o.deepCopy)(t)},provider:this}),u+=r.weight}let d=[];n.forEach(e=>{!e.done&&e.runner&&(d.push(e.runner),e.staller&&d.push(e.staller.getPromise()))}),d.length&&(yield Promise.race(d));let h=n.filter(e=>e.done&&null==e.error);if(h.length>=this.quorum){let e=r(h);if(void 0!==e)return n.forEach(e=>{e.staller&&e.staller.cancel(),e.cancelled=!0}),e;f||(yield _(100).getPromise()),f=!1}let g=n.reduce((e,t)=>{if(!t.done||null==t.error)return e;let r=t.error.code;return E.indexOf(r)>=0&&(e[r]||(e[r]={error:t.error,weight:0}),e[r].weight+=t.weight),e},{});if(Object.keys(g).forEach(e=>{let t=g[e];if(t.weight{e.staller&&e.staller.cancel(),e.cancelled=!0});let r=t.error,i={};A.forEach(e=>{null!=r[e]&&(i[e]=r[e])}),m.throwError(r.reason||r.message,e,i)}),0===n.filter(e=>!e.done).length)break}return n.forEach(e=>{e.staller&&e.staller.cancel(),e.cancelled=!0}),m.throwError("failed to meet quorum",l.Logger.errors.SERVER_ERROR,{method:e,params:t,results:n.map(e=>M(e)),provider:this})})}}},{"@ethersproject/abstract-provider":"imf57","@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/properties":"dmdV5","@ethersproject/random":"5x4el","@ethersproject/web":"5uH8k","./base-provider":"lEHz5","./formatter":"7RPp2","@ethersproject/logger":"6NWvR","./_version":"1LO7N","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"8DeRN":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";n.defineInteropFlag(r),n.export(r,"IpcProvider",()=>i);let i=null},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"8Bo5e":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"InfuraWebSocketProvider",()=>l),n.export(r,"InfuraProvider",()=>h);"use strict";var i=e("@ethersproject/properties"),a=e("./websocket-provider"),s=e("./formatter"),o=e("@ethersproject/logger"),c=e("./_version"),f=e("./url-json-rpc-provider");let u=new o.Logger(c.version),d="84842078b09946638c03157f83405213";class l extends a.WebSocketProvider{constructor(e,t){let r=new h(e,t),n=r.connection;n.password&&u.throwError("INFURA WebSocket project secrets unsupported",o.Logger.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"});let a=n.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");super(a,e),(0,i.defineReadOnly)(this,"apiKey",r.projectId),(0,i.defineReadOnly)(this,"projectId",r.projectId),(0,i.defineReadOnly)(this,"projectSecret",r.projectSecret)}isCommunityResource(){return this.projectId===d}}class h extends f.UrlJsonRpcProvider{static getWebSocketProvider(e,t){return new l(e,t)}static getApiKey(e){let t={apiKey:d,projectId:d,projectSecret:null};return null==e||("string"==typeof e?t.projectId=e:null!=e.projectSecret?(u.assertArgument("string"==typeof e.projectId,"projectSecret requires a projectId","projectId",e.projectId),u.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:u.throwError("unsupported network",o.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:e})}let n={allowGzip:!0,url:"https://"+r+"/v3/"+t.projectId,throttleCallback:(e,r)=>(t.projectId===d&&(0,s.showThrottleMessage)(),Promise.resolve(!0))};return null!=t.projectSecret&&(n.user="",n.password=t.projectSecret),n}isCommunityResource(){return this.projectId===d}}},{"@ethersproject/properties":"dmdV5","./websocket-provider":"83spj","./formatter":"7RPp2","@ethersproject/logger":"6NWvR","./_version":"1LO7N","./url-json-rpc-provider":"bwHu3","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],aCNcD:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"JsonRpcBatchProvider",()=>o);var i=e("@ethersproject/properties"),a=e("@ethersproject/web"),s=e("./json-rpc-provider");class o extends s.JsonRpcProvider{send(e,t){let r={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};null==this._pendingBatch&&(this._pendingBatch=[]);let n={request:r,resolve:null,reject:null},s=new Promise((e,t)=>{n.resolve=e,n.reject=t});return this._pendingBatch.push(n),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(()=>{let e=this._pendingBatch;this._pendingBatch=null,this._pendingBatchAggregator=null;let t=e.map(e=>e.request);return this.emit("debug",{action:"requestBatch",request:(0,i.deepCopy)(t),provider:this}),(0,a.fetchJson)(this.connection,JSON.stringify(t)).then(r=>{this.emit("debug",{action:"response",request:t,response:r,provider:this}),e.forEach((e,t)=>{let n=r[t];if(n.error){let t=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)),s}}},{"@ethersproject/properties":"dmdV5","@ethersproject/web":"5uH8k","./json-rpc-provider":"7x7oZ","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"19g4w":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"NodesmithProvider",()=>c);"use strict";var i=e("./url-json-rpc-provider"),a=e("@ethersproject/logger"),s=e("./_version");let o=new a.Logger(s.version);class c extends i.UrlJsonRpcProvider{static getApiKey(e){return e&&"string"!=typeof e&&o.throwArgumentError("invalid apiKey","apiKey",e),e||"ETHERS_JS_SHARED"}static getUrl(e,t){o.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:o.throwArgumentError("unsupported network","network",arguments[0])}return r+"?apiKey="+t}}},{"./url-json-rpc-provider":"bwHu3","@ethersproject/logger":"6NWvR","./_version":"1LO7N","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dwl0t:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"PocketProvider",()=>f);"use strict";var i=e("@ethersproject/logger"),a=e("./_version"),s=e("./url-json-rpc-provider");let o=new i.Logger(a.version),c="62e1ad51b37b8e00394bda3b";class f extends s.UrlJsonRpcProvider{static getApiKey(e){let t={applicationId:null,loadBalancer:!0,applicationSecretKey:null};return null==e?t.applicationId=c:"string"==typeof e?t.applicationId=e:null!=e.applicationSecretKey?(t.applicationId=e.applicationId,t.applicationSecretKey=e.applicationSecretKey):e.applicationId?t.applicationId=e.applicationId:o.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:o.throwError("unsupported network",i.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:e})}let n=`https://${r}/v1/lb/${t.applicationId}`,a={headers:{},url:n};return null!=t.applicationSecretKey&&(a.user="",a.password=t.applicationSecretKey),a}isCommunityResource(){return this.applicationId===c}}},{"@ethersproject/logger":"6NWvR","./_version":"1LO7N","./url-json-rpc-provider":"bwHu3","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2aAfb":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Web3Provider",()=>d);"use strict";var i=e("@ethersproject/properties"),a=e("@ethersproject/logger"),s=e("./_version"),o=e("./json-rpc-provider");let c=new a.Logger(s.version),f=1;function u(e,t){let r="Web3LegacyFetcher";return function(e,n){let a={method:e,params:n,id:f++,jsonrpc:"2.0"};return new Promise((e,n)=>{this.emit("debug",{action:"request",fetcher:r,request:(0,i.deepCopy)(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){let e=Error(i.error.message);return e.code=i.error.code,e.data=i.error.data,n(e)}e(i.result)})})}}class d extends o.JsonRpcProvider{constructor(e,t){null==e&&c.throwArgumentError("missing provider","provider",e);let r=null,n=null,a=null;"function"==typeof e?(r="unknown:",n=e):(((r=e.host||e.path||"")||!e.isMetaMask||(r="metamask"),a=e,e.request)?(""===r&&(r="eip-1193:"),n=function(t,r){null==r&&(r=[]);let n={method:t,params:r};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:(0,i.deepCopy)(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.sendAsync?n=u(e,e.sendAsync.bind(e)):e.send?n=u(e,e.send.bind(e)):c.throwArgumentError("unsupported provider","provider",e),r||(r="unknown:")),super(r,t),(0,i.defineReadOnly)(this,"jsonRpcFetchFunc",n),(0,i.defineReadOnly)(this,"provider",a)}send(e,t){return this.jsonRpcFetchFunc(e,t)}}},{"@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","./_version":"1LO7N","./json-rpc-provider":"7x7oZ","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"7jy5m":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"AbiCoder",()=>i.AbiCoder),n.export(r,"defaultAbiCoder",()=>i.defaultAbiCoder),n.export(r,"Fragment",()=>i.Fragment),n.export(r,"ConstructorFragment",()=>i.ConstructorFragment),n.export(r,"ErrorFragment",()=>i.ErrorFragment),n.export(r,"EventFragment",()=>i.EventFragment),n.export(r,"FunctionFragment",()=>i.FunctionFragment),n.export(r,"ParamType",()=>i.ParamType),n.export(r,"FormatTypes",()=>i.FormatTypes),n.export(r,"checkResultErrors",()=>i.checkResultErrors),n.export(r,"Logger",()=>h.Logger),n.export(r,"RLP",()=>y),n.export(r,"_fetchData",()=>M._fetchData),n.export(r,"fetchJson",()=>M.fetchJson),n.export(r,"poll",()=>M.poll),n.export(r,"checkProperties",()=>g.checkProperties),n.export(r,"deepCopy",()=>g.deepCopy),n.export(r,"defineReadOnly",()=>g.defineReadOnly),n.export(r,"getStatic",()=>g.getStatic),n.export(r,"resolveProperties",()=>g.resolveProperties),n.export(r,"shallowCopy",()=>g.shallowCopy),n.export(r,"arrayify",()=>c.arrayify),n.export(r,"concat",()=>c.concat),n.export(r,"stripZeros",()=>c.stripZeros),n.export(r,"zeroPad",()=>c.zeroPad),n.export(r,"isBytes",()=>c.isBytes),n.export(r,"isBytesLike",()=>c.isBytesLike),n.export(r,"defaultPath",()=>u.defaultPath),n.export(r,"HDNode",()=>u.HDNode),n.export(r,"SigningKey",()=>v.SigningKey),n.export(r,"Interface",()=>i.Interface),n.export(r,"LogDescription",()=>i.LogDescription),n.export(r,"TransactionDescription",()=>i.TransactionDescription),n.export(r,"base58",()=>o.Base58),n.export(r,"base64",()=>s),n.export(r,"hexlify",()=>c.hexlify),n.export(r,"isHexString",()=>c.isHexString),n.export(r,"hexConcat",()=>c.hexConcat),n.export(r,"hexStripZeros",()=>c.hexStripZeros),n.export(r,"hexValue",()=>c.hexValue),n.export(r,"hexZeroPad",()=>c.hexZeroPad),n.export(r,"hexDataLength",()=>c.hexDataLength),n.export(r,"hexDataSlice",()=>c.hexDataSlice),n.export(r,"nameprep",()=>w.nameprep),n.export(r,"_toEscapedUtf8String",()=>w._toEscapedUtf8String),n.export(r,"toUtf8Bytes",()=>w.toUtf8Bytes),n.export(r,"toUtf8CodePoints",()=>w.toUtf8CodePoints),n.export(r,"toUtf8String",()=>w.toUtf8String),n.export(r,"Utf8ErrorFuncs",()=>w.Utf8ErrorFuncs),n.export(r,"formatBytes32String",()=>w.formatBytes32String),n.export(r,"parseBytes32String",()=>w.parseBytes32String),n.export(r,"dnsEncode",()=>f.dnsEncode),n.export(r,"hashMessage",()=>f.hashMessage),n.export(r,"namehash",()=>f.namehash),n.export(r,"isValidName",()=>f.isValidName),n.export(r,"id",()=>f.id),n.export(r,"_TypedDataEncoder",()=>f._TypedDataEncoder),n.export(r,"getAddress",()=>a.getAddress),n.export(r,"getIcapAddress",()=>a.getIcapAddress),n.export(r,"getContractAddress",()=>a.getContractAddress),n.export(r,"getCreate2Address",()=>a.getCreate2Address),n.export(r,"isAddress",()=>a.isAddress),n.export(r,"formatEther",()=>E.formatEther),n.export(r,"parseEther",()=>E.parseEther),n.export(r,"formatUnits",()=>E.formatUnits),n.export(r,"parseUnits",()=>E.parseUnits),n.export(r,"commify",()=>E.commify),n.export(r,"computeHmac",()=>p.computeHmac),n.export(r,"keccak256",()=>l.keccak256),n.export(r,"ripemd160",()=>p.ripemd160),n.export(r,"sha256",()=>p.sha256),n.export(r,"sha512",()=>p.sha512),n.export(r,"randomBytes",()=>b.randomBytes),n.export(r,"shuffled",()=>b.shuffled),n.export(r,"solidityPack",()=>m.pack),n.export(r,"solidityKeccak256",()=>m.keccak256),n.export(r,"soliditySha256",()=>m.sha256),n.export(r,"splitSignature",()=>c.splitSignature),n.export(r,"joinSignature",()=>c.joinSignature),n.export(r,"accessListify",()=>_.accessListify),n.export(r,"parseTransaction",()=>_.parse),n.export(r,"serializeTransaction",()=>_.serialize),n.export(r,"TransactionTypes",()=>_.TransactionTypes),n.export(r,"getJsonWalletAddress",()=>d.getJsonWalletAddress),n.export(r,"computeAddress",()=>_.computeAddress),n.export(r,"recoverAddress",()=>_.recoverAddress),n.export(r,"computePublicKey",()=>v.computePublicKey),n.export(r,"recoverPublicKey",()=>v.recoverPublicKey),n.export(r,"verifyMessage",()=>A.verifyMessage),n.export(r,"verifyTypedData",()=>A.verifyTypedData),n.export(r,"getAccountPath",()=>u.getAccountPath),n.export(r,"mnemonicToEntropy",()=>u.mnemonicToEntropy),n.export(r,"entropyToMnemonic",()=>u.entropyToMnemonic),n.export(r,"isValidMnemonic",()=>u.isValidMnemonic),n.export(r,"mnemonicToSeed",()=>u.mnemonicToSeed),n.export(r,"SupportedAlgorithm",()=>p.SupportedAlgorithm),n.export(r,"UnicodeNormalizationForm",()=>w.UnicodeNormalizationForm),n.export(r,"Utf8ErrorReason",()=>w.Utf8ErrorReason),n.export(r,"Indexed",()=>i.Indexed);"use strict";var i=e("@ethersproject/abi"),a=e("@ethersproject/address"),s=e("@ethersproject/base64"),o=e("@ethersproject/basex"),c=e("@ethersproject/bytes"),f=e("@ethersproject/hash"),u=e("@ethersproject/hdnode"),d=e("@ethersproject/json-wallets"),l=e("@ethersproject/keccak256"),h=e("@ethersproject/logger"),p=e("@ethersproject/sha2"),m=e("@ethersproject/solidity"),b=e("@ethersproject/random"),g=e("@ethersproject/properties"),y=e("@ethersproject/rlp"),v=e("@ethersproject/signing-key"),w=e("@ethersproject/strings"),_=e("@ethersproject/transactions"),E=e("@ethersproject/units"),A=e("@ethersproject/wallet"),M=e("@ethersproject/web")},{"@ethersproject/abi":"gbtNr","@ethersproject/address":"7BZuS","@ethersproject/base64":"dIiCi","@ethersproject/basex":"Pygpe","@ethersproject/bytes":"19SwW","@ethersproject/hash":"jLDfB","@ethersproject/hdnode":"2zCqF","@ethersproject/json-wallets":"7BEU7","@ethersproject/keccak256":"eWtzg","@ethersproject/logger":"6NWvR","@ethersproject/sha2":"bznen","@ethersproject/solidity":"fUvC2","@ethersproject/random":"5x4el","@ethersproject/properties":"dmdV5","@ethersproject/rlp":"1wlks","@ethersproject/signing-key":"a8JOx","@ethersproject/strings":"edSy2","@ethersproject/transactions":"ctBdV","@ethersproject/units":"atzpk","@ethersproject/wallet":"euBMB","@ethersproject/web":"5uH8k","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],fUvC2:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"pack",()=>m),n.export(r,"keccak256",()=>b),n.export(r,"sha256",()=>g);"use strict";var i=e("@ethersproject/bignumber"),a=e("@ethersproject/bytes"),s=e("@ethersproject/keccak256"),o=e("@ethersproject/sha2"),c=e("@ethersproject/strings"),f=e("@ethersproject/logger"),u=e("./_version");let d=RegExp("^bytes([0-9]+)$"),l=RegExp("^(u?int)([0-9]*)$"),h=RegExp("^(.*)\\[([0-9]*)\\]$"),p=new f.Logger(u.version);function m(e,t){e.length!=t.length&&p.throwArgumentError("wrong number of values; expected ${ types.length }","values",t);let r=[];return e.forEach(function(e,n){r.push(function e(t,r,n){switch(t){case"address":if(n)return(0,a.zeroPad)(r,32);return(0,a.arrayify)(r);case"string":return(0,c.toUtf8Bytes)(r);case"bytes":return(0,a.arrayify)(r);case"bool":if(r=r?"0x01":"0x00",n)return(0,a.zeroPad)(r,32);return(0,a.arrayify)(r)}let s=t.match(l);if(s){let e=parseInt(s[2]||"256");return(s[2]&&String(e)!==s[2]||e%8!=0||0===e||e>256)&&p.throwArgumentError("invalid number type","type",t),n&&(e=256),r=(0,i.BigNumber).from(r).toTwos(e),(0,a.zeroPad)(r,e/8)}if(s=t.match(d)){let e=parseInt(s[1]);return((String(e)!==s[1]||0===e||e>32)&&p.throwArgumentError("invalid bytes type","type",t),(0,a.arrayify)(r).byteLength!==e&&p.throwArgumentError(`invalid value for ${t}`,"value",r),n)?(0,a.arrayify)((r+"0000000000000000000000000000000000000000000000000000000000000000").substring(0,66)):r}if((s=t.match(h))&&Array.isArray(r)){let n=s[1],i=parseInt(s[2]||String(r.length));i!=r.length&&p.throwArgumentError(`invalid array length for ${t}`,"value",r);let o=[];return r.forEach(function(t){o.push(e(n,t,!0))}),(0,a.concat)(o)}return p.throwArgumentError("invalid type","type",t)}(e,t[n]))}),(0,a.hexlify)((0,a.concat)(r))}function b(e,t){return(0,s.keccak256)(m(e,t))}function g(e,t){return(0,o.sha256)(m(e,t))}},{"@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/keccak256":"eWtzg","@ethersproject/sha2":"bznen","@ethersproject/strings":"edSy2","@ethersproject/logger":"6NWvR","./_version":"csbL3","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],csbL3:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="solidity/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],atzpk:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"commify",()=>f),n.export(r,"formatUnits",()=>u),n.export(r,"parseUnits",()=>d),n.export(r,"formatEther",()=>l),n.export(r,"parseEther",()=>h);"use strict";var i=e("@ethersproject/bignumber"),a=e("@ethersproject/logger"),s=e("./_version");let o=new a.Logger(s.version),c=["wei","kwei","mwei","gwei","szabo","finney","ether"];function f(e){let t=String(e).split(".");(t.length>2||!t[0].match(/^-?[0-9]*$/)||t[1]&&!t[1].match(/^[0-9]*$/)||"."===e||"-."===e)&&o.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 i="";for(2===t.length&&(i="."+(t[1]||"0"));i.length>2&&"0"===i[i.length-1];)i=i.substring(0,i.length-1);let a=[];for(;r.length;)if(r.length<=3){a.unshift(r);break}else{let e=r.length-3;a.unshift(r.substring(e)),r=r.substring(0,e)}return n+a.join(",")+i}function u(e,t){if("string"==typeof t){let e=c.indexOf(t);-1!==e&&(t=3*e)}return(0,i.formatFixed)(e,null!=t?t:18)}function d(e,t){if("string"!=typeof e&&o.throwArgumentError("value must be a string","value",e),"string"==typeof t){let e=c.indexOf(t);-1!==e&&(t=3*e)}return(0,i.parseFixed)(e,null!=t?t:18)}function l(e){return u(e,18)}function h(e){return d(e,18)}},{"@ethersproject/bignumber":"hIcBX","@ethersproject/logger":"6NWvR","./_version":"fmwkF","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],fmwkF:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="units/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lHxZw:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="ethers/5.7.2"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gHKeo:[function(e,t,r){"use strict";r.version=e("e6672bc3ba1c9961").version,r.utils=e("5bc72f89931ad0f5"),r.rand=e("7f90d752a36f35cf"),r.curve=e("d11da69c91421223"),r.curves=e("6845bad4ed92c3e4"),r.ec=e("b5f2e1f615acc4b"),r.eddsa=e("79ae761761517980")},{e6672bc3ba1c9961:"3Zkz7","5bc72f89931ad0f5":"3rt5D","7f90d752a36f35cf":"dpC9B",d11da69c91421223:"2kHkA","6845bad4ed92c3e4":"kwPzC",b5f2e1f615acc4b:"eyBGo","79ae761761517980":"axOwW"}],"3Zkz7":[function(e,t,r){t.exports=JSON.parse('{"name":"elliptic","version":"6.5.4","description":"EC cryptography","main":"lib/elliptic.js","files":["lib"],"scripts":{"lint":"eslint lib test","lint:fix":"npm run lint -- --fix","unit":"istanbul test _mocha --reporter=spec test/index.js","test":"npm run lint && npm run unit","version":"grunt dist && git add dist/"},"repository":{"type":"git","url":"git@github.com:indutny/elliptic"},"keywords":["EC","Elliptic","curve","Cryptography"],"author":"Fedor Indutny ","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}')},{}],"3rt5D":[function(e,t,r){"use strict";var n=e("f4cbcf6f6eb25ca0"),i=e("d8ee30463f95a0fd"),a=e("997429d6bbd82d59");r.assert=i,r.toArray=a.toArray,r.zero2=a.zero2,r.toHex=a.toHex,r.encode=a.encode,r.getNAF=function(e,t,r){var n=Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var i=1<(i>>1)-1?(i>>1)-c:c,a.isubn(o)):o=0,n[s]=o,a.iushrn(1)}return n},r.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,i=0;e.cmpn(-n)>0||t.cmpn(-i)>0;){var a,s,o,c=e.andln(3)+n&3,f=t.andln(3)+i&3;3===c&&(c=-1),3===f&&(f=-1),s=(1&c)==0?0:(3==(a=e.andln(7)+n&7)||5===a)&&2===f?-c:c,r[0].push(s),o=(1&f)==0?0:(3==(a=t.andln(7)+i&7)||5===a)&&2===c?-f:f,r[1].push(o),2*n===s+1&&(n=1-n),2*i===o+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 n(e,"hex","le")}},{f4cbcf6f6eb25ca0:"2gemu",d8ee30463f95a0fd:"h59lk","997429d6bbd82d59":"6lUA8"}],"2gemu":[function(e,t,r){!function(t,r){"use strict";function n(e,t){if(!e)throw Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.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"))}"object"==typeof t?t.exports=a:r.BN=a,a.BN=a,a.wordSize=26;try{f="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("1cf9b8cfa268aab5").Buffer}catch(e){}function s(e,t){var r=e.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function o(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function c(e,t,r,n){for(var i=0,a=Math.min(e.length,r),s=t;s=49?i+=o-49+10:o>=17?i+=o-17+10:i+=o}return i}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;s-=3)a=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[i]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,i++);else if("le"===r)for(s=0,i=0;s>>26-o&67108863,(o+=24)>=26&&(o-=26,i++);return this.strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n,i=0;i=t;i-=2)n=o(e,t,i)<=18?(a-=18,s+=1,this.words[s]|=n>>>26):a+=8;else for(i=(e.length-t)%2==0?t+1:t;i=18?(a-=18,s+=1,this.words[s]|=n>>>26):a+=8;this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var a=e.length-r,s=a%n,o=Math.min(a,a-s)+r,f=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var f,u=["","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"],d=[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],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],a=0|t.words[0],s=i*a,o=67108863&s,c=s/67108864|0;r.words[0]=o;for(var f=1;f>>26,d=67108863&c,l=Math.min(f,t.length-1),h=Math.max(0,f-e.length+1);h<=l;h++){var p=f-h|0;u+=(s=(i=0|e.words[p])*(a=0|t.words[h])+d)/67108864|0,d=67108863&s}r.words[f]=0|d,c=0|u}return 0!==c?r.words[f]=0|c:r.length--,r.strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,i=0,a=0,s=0;s>>24-i&16777215)||s!==this.length-1?u[6-c.length]+c+r:c+r,(i+=2)>=26&&(i-=26,s--)}for(0!==a&&(r=a.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 f=d[e],h=l[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?m+r:u[f-m.length]+m+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")},a.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},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return n(void 0!==f),this.toArrayLike(f,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var i,a,s=this.byteLength(),o=r||Math.max(1,s);n(s<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var c=new e(o),f=this.clone();if("le"===t){for(a=0;!f.isZero();a++)i=f.andln(255),f.iushrn(8),c[a]=i;for(;a=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},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.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)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,a=0;a>>26;for(;0!==i&&a>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var a=0,s=0;s>26,this.words[s]=67108863&n;for(;0!==a&&s>26,this.words[s]=67108863&n;if(0===a&&s>>13,h=0|s[1],p=8191&h,m=h>>>13,b=0|s[2],g=8191&b,y=b>>>13,v=0|s[3],w=8191&v,_=v>>>13,E=0|s[4],A=8191&E,M=E>>>13,S=0|s[5],x=8191&S,T=S>>>13,k=0|s[6],R=8191&k,I=k>>>13,C=0|s[7],P=8191&C,O=C>>>13,N=0|s[8],j=8191&N,B=N>>>13,L=0|s[9],D=8191&L,U=L>>>13,F=0|o[0],q=8191&F,z=F>>>13,K=0|o[1],H=8191&K,V=K>>>13,W=0|o[2],G=8191&W,J=W>>>13,Z=0|o[3],$=8191&Z,X=Z>>>13,Y=0|o[4],Q=8191&Y,ee=Y>>>13,et=0|o[5],er=8191&et,en=et>>>13,ei=0|o[6],ea=8191&ei,es=ei>>>13,eo=0|o[7],ec=8191&eo,ef=eo>>>13,eu=0|o[8],ed=8191&eu,el=eu>>>13,eh=0|o[9],ep=8191&eh,em=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var eb=(f+(n=Math.imul(d,q))|0)+((8191&(i=(i=Math.imul(d,z))+Math.imul(l,q)|0))<<13)|0;f=((a=Math.imul(l,z))+(i>>>13)|0)+(eb>>>26)|0,eb&=67108863,n=Math.imul(p,q),i=(i=Math.imul(p,z))+Math.imul(m,q)|0,a=Math.imul(m,z);var eg=(f+(n=n+Math.imul(d,H)|0)|0)+((8191&(i=(i=i+Math.imul(d,V)|0)+Math.imul(l,H)|0))<<13)|0;f=((a=a+Math.imul(l,V)|0)+(i>>>13)|0)+(eg>>>26)|0,eg&=67108863,n=Math.imul(g,q),i=(i=Math.imul(g,z))+Math.imul(y,q)|0,a=Math.imul(y,z),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,H)|0,a=a+Math.imul(m,V)|0;var ey=(f+(n=n+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,J)|0)+Math.imul(l,G)|0))<<13)|0;f=((a=a+Math.imul(l,J)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=67108863,n=Math.imul(w,q),i=(i=Math.imul(w,z))+Math.imul(_,q)|0,a=Math.imul(_,z),n=n+Math.imul(g,H)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,V)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,G)|0,a=a+Math.imul(m,J)|0;var ev=(f+(n=n+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(l,$)|0))<<13)|0;f=((a=a+Math.imul(l,X)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=67108863,n=Math.imul(A,q),i=(i=Math.imul(A,z))+Math.imul(M,q)|0,a=Math.imul(M,z),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,V)|0,n=n+Math.imul(g,G)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,J)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,$)|0,a=a+Math.imul(m,X)|0;var ew=(f+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(l,Q)|0))<<13)|0;f=((a=a+Math.imul(l,ee)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=67108863,n=Math.imul(x,q),i=(i=Math.imul(x,z))+Math.imul(T,q)|0,a=Math.imul(T,z),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(M,H)|0,a=a+Math.imul(M,V)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,G)|0,a=a+Math.imul(_,J)|0,n=n+Math.imul(g,$)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(y,$)|0,a=a+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,a=a+Math.imul(m,ee)|0;var e_=(f+(n=n+Math.imul(d,er)|0)|0)+((8191&(i=(i=i+Math.imul(d,en)|0)+Math.imul(l,er)|0))<<13)|0;f=((a=a+Math.imul(l,en)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,z))+Math.imul(I,q)|0,a=Math.imul(I,z),n=n+Math.imul(x,H)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(T,H)|0,a=a+Math.imul(T,V)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(M,G)|0,a=a+Math.imul(M,J)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(_,$)|0,a=a+Math.imul(_,X)|0,n=n+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(y,Q)|0,a=a+Math.imul(y,ee)|0,n=n+Math.imul(p,er)|0,i=(i=i+Math.imul(p,en)|0)+Math.imul(m,er)|0,a=a+Math.imul(m,en)|0;var eE=(f+(n=n+Math.imul(d,ea)|0)|0)+((8191&(i=(i=i+Math.imul(d,es)|0)+Math.imul(l,ea)|0))<<13)|0;f=((a=a+Math.imul(l,es)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=67108863,n=Math.imul(P,q),i=(i=Math.imul(P,z))+Math.imul(O,q)|0,a=Math.imul(O,z),n=n+Math.imul(R,H)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,V)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(T,G)|0,a=a+Math.imul(T,J)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(M,$)|0,a=a+Math.imul(M,X)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,ee)|0,n=n+Math.imul(g,er)|0,i=(i=i+Math.imul(g,en)|0)+Math.imul(y,er)|0,a=a+Math.imul(y,en)|0,n=n+Math.imul(p,ea)|0,i=(i=i+Math.imul(p,es)|0)+Math.imul(m,ea)|0,a=a+Math.imul(m,es)|0;var eA=(f+(n=n+Math.imul(d,ec)|0)|0)+((8191&(i=(i=i+Math.imul(d,ef)|0)+Math.imul(l,ec)|0))<<13)|0;f=((a=a+Math.imul(l,ef)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=67108863,n=Math.imul(j,q),i=(i=Math.imul(j,z))+Math.imul(B,q)|0,a=Math.imul(B,z),n=n+Math.imul(P,H)|0,i=(i=i+Math.imul(P,V)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,V)|0,n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(I,G)|0,a=a+Math.imul(I,J)|0,n=n+Math.imul(x,$)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(T,$)|0,a=a+Math.imul(T,X)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(M,Q)|0,a=a+Math.imul(M,ee)|0,n=n+Math.imul(w,er)|0,i=(i=i+Math.imul(w,en)|0)+Math.imul(_,er)|0,a=a+Math.imul(_,en)|0,n=n+Math.imul(g,ea)|0,i=(i=i+Math.imul(g,es)|0)+Math.imul(y,ea)|0,a=a+Math.imul(y,es)|0,n=n+Math.imul(p,ec)|0,i=(i=i+Math.imul(p,ef)|0)+Math.imul(m,ec)|0,a=a+Math.imul(m,ef)|0;var eM=(f+(n=n+Math.imul(d,ed)|0)|0)+((8191&(i=(i=i+Math.imul(d,el)|0)+Math.imul(l,ed)|0))<<13)|0;f=((a=a+Math.imul(l,el)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,z))+Math.imul(U,q)|0,a=Math.imul(U,z),n=n+Math.imul(j,H)|0,i=(i=i+Math.imul(j,V)|0)+Math.imul(B,H)|0,a=a+Math.imul(B,V)|0,n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(O,G)|0,a=a+Math.imul(O,J)|0,n=n+Math.imul(R,$)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(I,$)|0,a=a+Math.imul(I,X)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(T,Q)|0,a=a+Math.imul(T,ee)|0,n=n+Math.imul(A,er)|0,i=(i=i+Math.imul(A,en)|0)+Math.imul(M,er)|0,a=a+Math.imul(M,en)|0,n=n+Math.imul(w,ea)|0,i=(i=i+Math.imul(w,es)|0)+Math.imul(_,ea)|0,a=a+Math.imul(_,es)|0,n=n+Math.imul(g,ec)|0,i=(i=i+Math.imul(g,ef)|0)+Math.imul(y,ec)|0,a=a+Math.imul(y,ef)|0,n=n+Math.imul(p,ed)|0,i=(i=i+Math.imul(p,el)|0)+Math.imul(m,ed)|0,a=a+Math.imul(m,el)|0;var eS=(f+(n=n+Math.imul(d,ep)|0)|0)+((8191&(i=(i=i+Math.imul(d,em)|0)+Math.imul(l,ep)|0))<<13)|0;f=((a=a+Math.imul(l,em)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=67108863,n=Math.imul(D,H),i=(i=Math.imul(D,V))+Math.imul(U,H)|0,a=Math.imul(U,V),n=n+Math.imul(j,G)|0,i=(i=i+Math.imul(j,J)|0)+Math.imul(B,G)|0,a=a+Math.imul(B,J)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(O,$)|0,a=a+Math.imul(O,X)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(I,Q)|0,a=a+Math.imul(I,ee)|0,n=n+Math.imul(x,er)|0,i=(i=i+Math.imul(x,en)|0)+Math.imul(T,er)|0,a=a+Math.imul(T,en)|0,n=n+Math.imul(A,ea)|0,i=(i=i+Math.imul(A,es)|0)+Math.imul(M,ea)|0,a=a+Math.imul(M,es)|0,n=n+Math.imul(w,ec)|0,i=(i=i+Math.imul(w,ef)|0)+Math.imul(_,ec)|0,a=a+Math.imul(_,ef)|0,n=n+Math.imul(g,ed)|0,i=(i=i+Math.imul(g,el)|0)+Math.imul(y,ed)|0,a=a+Math.imul(y,el)|0;var ex=(f+(n=n+Math.imul(p,ep)|0)|0)+((8191&(i=(i=i+Math.imul(p,em)|0)+Math.imul(m,ep)|0))<<13)|0;f=((a=a+Math.imul(m,em)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=67108863,n=Math.imul(D,G),i=(i=Math.imul(D,J))+Math.imul(U,G)|0,a=Math.imul(U,J),n=n+Math.imul(j,$)|0,i=(i=i+Math.imul(j,X)|0)+Math.imul(B,$)|0,a=a+Math.imul(B,X)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,n=n+Math.imul(R,er)|0,i=(i=i+Math.imul(R,en)|0)+Math.imul(I,er)|0,a=a+Math.imul(I,en)|0,n=n+Math.imul(x,ea)|0,i=(i=i+Math.imul(x,es)|0)+Math.imul(T,ea)|0,a=a+Math.imul(T,es)|0,n=n+Math.imul(A,ec)|0,i=(i=i+Math.imul(A,ef)|0)+Math.imul(M,ec)|0,a=a+Math.imul(M,ef)|0,n=n+Math.imul(w,ed)|0,i=(i=i+Math.imul(w,el)|0)+Math.imul(_,ed)|0,a=a+Math.imul(_,el)|0;var eT=(f+(n=n+Math.imul(g,ep)|0)|0)+((8191&(i=(i=i+Math.imul(g,em)|0)+Math.imul(y,ep)|0))<<13)|0;f=((a=a+Math.imul(y,em)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,X))+Math.imul(U,$)|0,a=Math.imul(U,X),n=n+Math.imul(j,Q)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(B,Q)|0,a=a+Math.imul(B,ee)|0,n=n+Math.imul(P,er)|0,i=(i=i+Math.imul(P,en)|0)+Math.imul(O,er)|0,a=a+Math.imul(O,en)|0,n=n+Math.imul(R,ea)|0,i=(i=i+Math.imul(R,es)|0)+Math.imul(I,ea)|0,a=a+Math.imul(I,es)|0,n=n+Math.imul(x,ec)|0,i=(i=i+Math.imul(x,ef)|0)+Math.imul(T,ec)|0,a=a+Math.imul(T,ef)|0,n=n+Math.imul(A,ed)|0,i=(i=i+Math.imul(A,el)|0)+Math.imul(M,ed)|0,a=a+Math.imul(M,el)|0;var ek=(f+(n=n+Math.imul(w,ep)|0)|0)+((8191&(i=(i=i+Math.imul(w,em)|0)+Math.imul(_,ep)|0))<<13)|0;f=((a=a+Math.imul(_,em)|0)+(i>>>13)|0)+(ek>>>26)|0,ek&=67108863,n=Math.imul(D,Q),i=(i=Math.imul(D,ee))+Math.imul(U,Q)|0,a=Math.imul(U,ee),n=n+Math.imul(j,er)|0,i=(i=i+Math.imul(j,en)|0)+Math.imul(B,er)|0,a=a+Math.imul(B,en)|0,n=n+Math.imul(P,ea)|0,i=(i=i+Math.imul(P,es)|0)+Math.imul(O,ea)|0,a=a+Math.imul(O,es)|0,n=n+Math.imul(R,ec)|0,i=(i=i+Math.imul(R,ef)|0)+Math.imul(I,ec)|0,a=a+Math.imul(I,ef)|0,n=n+Math.imul(x,ed)|0,i=(i=i+Math.imul(x,el)|0)+Math.imul(T,ed)|0,a=a+Math.imul(T,el)|0;var eR=(f+(n=n+Math.imul(A,ep)|0)|0)+((8191&(i=(i=i+Math.imul(A,em)|0)+Math.imul(M,ep)|0))<<13)|0;f=((a=a+Math.imul(M,em)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=67108863,n=Math.imul(D,er),i=(i=Math.imul(D,en))+Math.imul(U,er)|0,a=Math.imul(U,en),n=n+Math.imul(j,ea)|0,i=(i=i+Math.imul(j,es)|0)+Math.imul(B,ea)|0,a=a+Math.imul(B,es)|0,n=n+Math.imul(P,ec)|0,i=(i=i+Math.imul(P,ef)|0)+Math.imul(O,ec)|0,a=a+Math.imul(O,ef)|0,n=n+Math.imul(R,ed)|0,i=(i=i+Math.imul(R,el)|0)+Math.imul(I,ed)|0,a=a+Math.imul(I,el)|0;var eI=(f+(n=n+Math.imul(x,ep)|0)|0)+((8191&(i=(i=i+Math.imul(x,em)|0)+Math.imul(T,ep)|0))<<13)|0;f=((a=a+Math.imul(T,em)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=67108863,n=Math.imul(D,ea),i=(i=Math.imul(D,es))+Math.imul(U,ea)|0,a=Math.imul(U,es),n=n+Math.imul(j,ec)|0,i=(i=i+Math.imul(j,ef)|0)+Math.imul(B,ec)|0,a=a+Math.imul(B,ef)|0,n=n+Math.imul(P,ed)|0,i=(i=i+Math.imul(P,el)|0)+Math.imul(O,ed)|0,a=a+Math.imul(O,el)|0;var eC=(f+(n=n+Math.imul(R,ep)|0)|0)+((8191&(i=(i=i+Math.imul(R,em)|0)+Math.imul(I,ep)|0))<<13)|0;f=((a=a+Math.imul(I,em)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=67108863,n=Math.imul(D,ec),i=(i=Math.imul(D,ef))+Math.imul(U,ec)|0,a=Math.imul(U,ef),n=n+Math.imul(j,ed)|0,i=(i=i+Math.imul(j,el)|0)+Math.imul(B,ed)|0,a=a+Math.imul(B,el)|0;var eP=(f+(n=n+Math.imul(P,ep)|0)|0)+((8191&(i=(i=i+Math.imul(P,em)|0)+Math.imul(O,ep)|0))<<13)|0;f=((a=a+Math.imul(O,em)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=67108863,n=Math.imul(D,ed),i=(i=Math.imul(D,el))+Math.imul(U,ed)|0,a=Math.imul(U,el);var eO=(f+(n=n+Math.imul(j,ep)|0)|0)+((8191&(i=(i=i+Math.imul(j,em)|0)+Math.imul(B,ep)|0))<<13)|0;f=((a=a+Math.imul(B,em)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=67108863;var eN=(f+(n=Math.imul(D,ep))|0)+((8191&(i=(i=Math.imul(D,em))+Math.imul(U,ep)|0))<<13)|0;return f=((a=Math.imul(U,em))+(i>>>13)|0)+(eN>>>26)|0,eN&=67108863,c[0]=eb,c[1]=eg,c[2]=ey,c[3]=ev,c[4]=ew,c[5]=e_,c[6]=eE,c[7]=eA,c[8]=eM,c[9]=eS,c[10]=ex,c[11]=eT,c[12]=ek,c[13]=eR,c[14]=eI,c[15]=eC,c[16]=eP,c[17]=eO,c[18]=eN,0!==f&&(c[19]=f,r.length++),r};function m(e,t,r){return new b().mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(p=h),a.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):r<63?h(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,a=0;a>>26)|0)>>>26,s&=67108863}r.words[a]=o,n=s,s=i}return 0!==n?r.words[a]=n:r.length--,r.strip()}(this,e,t):m(this,e,t)},b.prototype.makeRBT=function(e){for(var t=Array(e),r=a.prototype._countBits(e)-1,n=0;n>=1;return n},b.prototype.permute=function(e,t,r,n,i,a){for(var s=0;s>>=1)i++;return 1<>>=13,r[2*s+1]=8191&a,a>>>=13;for(s=2*t;s>=26,t+=(i/67108864|0)+(a>>>26),this.words[r]=67108863&a}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>i}return t}(e);if(0===t.length)return new a(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,a=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var i,a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<s)for(this.length-=s,c=0;c=0&&(0!==f||c>=i);c--){var u=0|this.words[c];this.words[c]=f<<26-a|u>>>a,f=u&o}return r&&0!==f&&(r.words[r.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return!(this.length<=r)&&!!(this.words[r]&1<=0);var t=e%26,r=(e-t)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==t&&r++,this.length=Math.min(r,this.length),0!==t&&(this.words[this.length-1]&=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},a.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[i+r]=67108863&a}for(;i>26,this.words[i+r]=67108863&a;if(0===o)return this.strip();for(n(-1===o),o=0,i=0;i>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),s=e,o=0|s.words[s.length-1];0!=(n=26-this._countBits(o))&&(s=s.ushln(n),i.iushln(n),o=0|s.words[s.length-1]);var c=i.length-s.length;if("mod"!==t){(r=new a(null)).length=c+1,r.words=Array(r.length);for(var f=0;f=0;d--){var l=(0|i.words[s.length+d])*67108864+(0|i.words[s.length+d-1]);for(l=Math.min(l/o|0,67108863),i._ishlnsubmul(s,l,d);0!==i.negative;)l--,i.negative=0,i._ishlnsubmul(s,1,d),i.isZero()||(i.negative^=1);r&&(r.words[d]=l)}return r&&r.strip(),i.strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},a.prototype.divmod=function(e,t,r){var i,s,o;return(n(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(i=o.div.neg()),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:i,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(i=o.div.neg()),{div:i,mod:o.mod}):(this.negative&e.negative)!=0?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:o.div,mod:s}):e.length>this.length||0>this.cmp(e)?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.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),i=e.andln(1),a=r.cmp(n);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){n(e<=67108863);for(var t=67108864%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},a.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.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 i=new a(1),s=new a(0),o=new a(0),c=new a(1),f=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++f;for(var u=r.clone(),d=t.clone();!t.isZero();){for(var l=0,h=1;(t.words[0]&h)==0&&l<26;++l,h<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(u),s.isub(d)),i.iushrn(1),s.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(o.isOdd()||c.isOdd())&&(o.iadd(u),c.isub(d)),o.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(o),s.isub(c)):(r.isub(t),o.isub(i),c.isub(s))}return{a:o,b:c,gcd:r.iushln(f)}},a.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new a(1),o=new a(0),c=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var f=0,u=1;(r.words[0]&u)==0&&f<26;++f,u<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var d=0,l=1;(i.words[0]&l)==0&&d<26;++d,l<<=1);if(d>0)for(i.iushrn(d);d-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);r.cmp(i)>=0?(r.isub(i),s.isub(o)):(i.isub(r),o.isub(s))}return 0>(t=0===r.cmpn(1)?s:o).cmpn(0)&&t.iadd(e),t},a.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 i=t.cmp(r);if(i<0){var a=t;t=r,r=a}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new A(e)},a.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)},a.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"==typeof e){var t=a._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 M(e){A.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(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)}y.prototype._tmp=function(){var e=new a(null);return e.words=Array(Math.ceil(this.n/13)),e},y.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},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},i(v,y),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,i=a}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(g[e])return g[e];if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new _;else if("p25519"===e)t=new E;else throw Error("Unknown prime "+e);return g[e]=t,t},A.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},A.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},A.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);n(!i.isZero());var o=new a(1).toRed(this),c=o.redNeg(),f=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,f).cmp(c);)u.redIAdd(c);for(var d=this.pow(u,i),l=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=s;0!==h.cmp(o);){for(var m=h,b=0;0!==m.cmp(o);b++)m=m.redSqr();n(b=0;n--){for(var f=t.words[n],u=c-1;u>=0;u--){var d=f>>u&1;if(i!==r[0]&&(i=this.sqr(i)),0===d&&0===s){o=0;continue}s<<=1,s|=d,(4==++o||0===n&&0===u)&&(i=this.mul(i,r[s]),o=0,s=0)}c=26}return i},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new M(e)},i(M,A),M.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},M.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},M.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),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},M.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):0>i.cmpn(0)&&(s=i.iadd(this.m)),s._forceRed(this)},M.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)},{"1cf9b8cfa268aab5":"3eno3"}],"6lUA8":[function(e,t,r){"use strict";function n(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",r=0;r>8,s=255&i;a?r.push(a,s):r.push(s)}return r},r.zero2=n,r.toHex=i,r.encode=function(e,t){return"hex"===t?i(e):e}},{}],dpC9B:[function(e,t,r){var n;function i(e){this.rand=e}if(t.exports=function(e){return n||(n=new i(null)),n.generate(e)},t.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function f(e,t){this.curve=e,this.type=t,this.precomputed=null}t.exports=c,c.prototype.point=function(){throw Error("Not implemented")},c.prototype.validate=function(){throw Error("Not implemented")},c.prototype._fixedNafMul=function(e,t){o(e.precomputed);var r,n,i=e._getDoubles(),s=a(t,1,this._bitLength),c=(1<=r;u--)n=(n<<1)+s[u];f.push(n)}for(var d=this.jpoint(null,null,null),l=this.jpoint(null,null,null),h=c;h>0;h--){for(r=0;r=0;f--){for(var u=0;f>=0&&0===s[f];f--)u++;if(f>=0&&u++,c=c.dblp(u),f<0)break;var d=s[f];o(0!==d),c="affine"===e.type?d>0?c.mixedAdd(i[d-1>>1]):c.mixedAdd(i[-d-1>>1].neg()):d>0?c.add(i[d-1>>1]):c.add(i[-d-1>>1].neg())}return"affine"===e.type?c.toP():c},c.prototype._wnafMulAdd=function(e,t,r,n,i){var o,c,f,u=this._wnafT1,d=this._wnafT2,l=this._wnafT3,h=0;for(o=0;o=1;o-=2){var m=o-1,b=o;if(1!==u[m]||1!==u[b]){l[m]=a(r[m],u[m],this._bitLength),l[b]=a(r[b],u[b],this._bitLength),h=Math.max(l[m].length,h),h=Math.max(l[b].length,h);continue}var g=[t[m],null,null,t[b]];0===t[m].y.cmp(t[b].y)?(g[1]=t[m].add(t[b]),g[2]=t[m].toJ().mixedAdd(t[b].neg())):0===t[m].y.cmp(t[b].y.redNeg())?(g[1]=t[m].toJ().mixedAdd(t[b]),g[2]=t[m].add(t[b].neg())):(g[1]=t[m].toJ().mixedAdd(t[b]),g[2]=t[m].toJ().mixedAdd(t[b].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],v=s(r[m],r[b]);for(c=0,h=Math.max(v[0].length,h),l[m]=Array(h),l[b]=Array(h);c=0;o--){for(var M=0;o>=0;){var S=!0;for(c=0;c=0&&M++,E=E.dblp(M),o<0)break;for(c=0;c0?f=d[c][x-1>>1]:x<0&&(f=d[c][-x-1>>1].neg()),E="affine"===f.type?E.mixedAdd(f):E.add(f))}}for(o=0;o=Math.ceil((e.bitLength()+1)/t.step)},f.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;ia[0].cmp(a[1])?a[0]:a[1]).toRed(this.red)}if(e.lambda)r=new i(e.lambda,16);else{var s=this._getEndoRoots(this.n);0===this.g.mul(s[0]).x.cmp(this.g.x.redMul(t))?r=s[0]:(r=s[1],o(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return n=e.basis?e.basis.map(function(e){return{a:new i(e.a,16),b:new i(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:n}}},c.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),r=new i(2).toRed(t).redInvm(),n=r.redNeg(),a=new i(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(a).fromRed(),n.redSub(a).fromRed()]},c.prototype._getEndoBasis=function(e){for(var t,r,n,a,s,o,c,f,u,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=e,h=this.n.clone(),p=new i(1),m=new i(0),b=new i(0),g=new i(1),y=0;0!==l.cmpn(0);){var v=h.div(l);f=h.sub(v.mul(l)),u=b.sub(v.mul(p));var w=g.sub(v.mul(m));if(!n&&0>f.cmp(d))t=c.neg(),r=p,n=f.neg(),a=u;else if(n&&2==++y)break;c=f,h=l,l=f,b=p,p=u,g=m,m=w}s=f.neg(),o=u;var _=n.sqr().add(a.sqr());return s.sqr().add(o.sqr()).cmp(_)>=0&&(s=t,o=r),n.negative&&(n=n.neg(),a=a.neg()),s.negative&&(s=s.neg(),o=o.neg()),[{a:n,b:a},{a:s,b:o}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),a=r.b.neg().mul(e).divRound(this.n),s=i.mul(r.a),o=a.mul(n.a),c=i.mul(r.b),f=a.mul(n.b);return{k1:e.sub(s).sub(o),k2:c.add(f).neg()}},c.prototype.pointFromX=function(e,t){(e=new i(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 Error("invalid point");var a=n.fromRed().isOdd();return(t&&!a||!t&&a)&&(n=n.redNeg()),this.point(e,n)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,a=0;a":""},f.prototype.isInfinity=function(){return this.inf},f.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)||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)},f.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(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),a=i.redSqr().redISub(this.x.redAdd(this.x)),s=i.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,s)},f.prototype.getX=function(){return this.x.fromRed()},f.prototype.getY=function(){return this.y.fromRed()},f.prototype.mul=function(e){return(e=new i(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)},f.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},f.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},f.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))},f.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},f.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(u,s.BasePoint),c.prototype.jpoint=function(e,t,r){return new u(this,e,t,r)},u.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)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.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),i=e.x.redMul(r),a=this.y.redMul(t.redMul(e.z)),s=e.y.redMul(r.redMul(this.z)),o=n.redSub(i),c=a.redSub(s);if(0===o.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=o.redSqr(),u=f.redMul(o),d=n.redMul(f),l=c.redSqr().redIAdd(u).redISub(d).redISub(d),h=c.redMul(d.redISub(l)).redISub(a.redMul(u)),p=this.z.redMul(e.z).redMul(o);return this.curve.jpoint(l,h,p)},u.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),i=this.y,a=e.y.redMul(t).redMul(this.z),s=r.redSub(n),o=i.redSub(a);if(0===s.cmpn(0))return 0!==o.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),f=c.redMul(s),u=r.redMul(c),d=o.redSqr().redIAdd(f).redISub(u).redISub(u),l=o.redMul(u.redISub(d)).redISub(i.redMul(f)),h=this.z.redMul(s);return this.curve.jpoint(d,l,h)},u.prototype.dblp=function(e){if(0===e||this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var t,r=this;for(t=0;t=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"89f794ef417dc31c":"3rt5D",c314b0ac30b69c4a:"2gemu","6ac4d7c73f24ab9c":"cJ2FP","6e622edb7498c94":"8aa6K"}],"8aBJF":[function(e,t,r){"use strict";var n=e("ebdf19f04f3ed250"),i=e("cb5bb4841a749f68"),a=e("51280941230b3f98"),s=e("ea7949a80be00261");function o(e){a.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(o,a),t.exports=o,o.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},i(c,a.BasePoint),o.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},o.prototype.point=function(e,t){return new c(this,e,t)},o.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.one)},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},c.prototype.add=function(){throw Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),a=e.x.redSub(e.z).redMul(r),s=i.redMul(n),o=t.z.redMul(a.redAdd(s).redSqr()),c=t.x.redMul(a.redISub(s).redSqr());return this.curve.point(o,c)},c.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var a=i.length-1;a>=0;a--)0===i[a]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},c.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},c.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{ebdf19f04f3ed250:"2gemu",cb5bb4841a749f68:"cJ2FP","51280941230b3f98":"8aa6K",ea7949a80be00261:"3rt5D"}],g6imV:[function(e,t,r){"use strict";var n=e("7bd66a4710450b08"),i=e("ccef46dcf03d45c6"),a=e("19937272cbe23c92"),s=e("108c8ead5f54502b"),o=n.assert;function c(e){this.twisted=(0|e.a)!=1,this.mOneA=this.twisted&&(0|e.a)==-1,this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),o(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=(0|e.c)==1}function f(e,t,r,n,a){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=a&&new i(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,!this.curve.extended||this.t||(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(c,s),t.exports=c,c.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},c.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},c.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),a=this.one.redSub(this.c2.redMul(this.d).redMul(r)),s=n.redMul(a.redInvm()),o=s.redSqrt();if(0!==o.redSqr().redSub(s).cmp(this.zero))throw Error("invalid point");var c=o.fromRed().isOdd();return(t&&!c||!t&&c)&&(o=o.redNeg()),this.point(e,o)},c.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),a=r.redMul(this.d).redMul(this.c2).redSub(this.a),s=n.redMul(a.redInvm());if(0===s.cmp(this.zero)){if(!t)return this.point(this.zero,e);throw Error("invalid point")}var o=s.redSqrt();if(0!==o.redSqr().redSub(s).cmp(this.zero))throw Error("invalid point");return o.fromRed().isOdd()!==t&&(o=o.redNeg()),this.point(o,e)},c.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},a(f,s.BasePoint),c.prototype.pointFromJSON=function(e){return f.fromJSON(this,e)},c.prototype.point=function(e,t,r,n){return new f(this,e,t,r,n)},f.fromJSON=function(e,t){return new f(e,t[0],t[1],t[2])},f.prototype.inspect=function(){return this.isInfinity()?"":""},f.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},f.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),a=n.redAdd(t),s=a.redSub(r),o=n.redSub(t),c=i.redMul(s),f=a.redMul(o),u=i.redMul(o),d=s.redMul(a);return this.curve.point(c,f,d,u)},f.prototype._projDbl=function(){var e,t,r,n,i,a,s=this.x.redAdd(this.y).redSqr(),o=this.x.redSqr(),c=this.y.redSqr();if(this.curve.twisted){var f=(n=this.curve._mulA(o)).redAdd(c);this.zOne?(e=s.redSub(o).redSub(c).redMul(f.redSub(this.curve.two)),t=f.redMul(n.redSub(c)),r=f.redSqr().redSub(f).redSub(f)):(i=this.z.redSqr(),a=f.redSub(i).redISub(i),e=s.redSub(o).redISub(c).redMul(a),t=f.redMul(n.redSub(c)),r=f.redMul(a))}else n=o.redAdd(c),i=this.curve._mulC(this.z).redSqr(),a=n.redSub(i).redSub(i),e=this.curve._mulC(s.redISub(n)).redMul(a),t=this.curve._mulC(n).redMul(o.redISub(c)),r=n.redMul(a);return this.curve.point(e,t,r)},f.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},f.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),a=r.redSub(t),s=i.redSub(n),o=i.redAdd(n),c=r.redAdd(t),f=a.redMul(s),u=o.redMul(c),d=a.redMul(c),l=s.redMul(o);return this.curve.point(f,u,l,d)},f.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),a=this.x.redMul(e.x),s=this.y.redMul(e.y),o=this.curve.d.redMul(a).redMul(s),c=i.redSub(o),f=i.redAdd(o),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(s),d=n.redMul(c).redMul(u);return this.curve.twisted?(t=n.redMul(f).redMul(s.redSub(this.curve._mulA(a))),r=c.redMul(f)):(t=n.redMul(f).redMul(s.redSub(a)),r=this.curve._mulC(c).redMul(f)),this.curve.point(d,t,r)},f.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},f.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},f.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},f.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},f.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},f.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()},f.prototype.getY=function(){return this.normalize(),this.y.fromRed()},f.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},f.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},f.prototype.toP=f.prototype.normalize,f.prototype.mixedAdd=f.prototype.add},{"7bd66a4710450b08":"3rt5D",ccef46dcf03d45c6:"2gemu","19937272cbe23c92":"cJ2FP","108c8ead5f54502b":"8aa6K"}],kwPzC:[function(e,t,r){"use strict";var n,i=e("1c9db357c0845afa"),a=e("47ec78745540f875"),s=e("e30b16e4a47a5405").assert;function o(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:function(){var n=new o(t);return Object.defineProperty(r,e,{configurable:!0,enumerable:!0,value:n}),n}})}r.PresetCurve=o,c("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:i.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("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:i.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("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:i.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("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:i.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"]}),c("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:i.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"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["9"]}),c("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:i.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=e("9eada5f7049e7dfd")}catch(e){n=void 0}c("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:i.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},{"1c9db357c0845afa":"2Tlxk","47ec78745540f875":"2kHkA",e30b16e4a47a5405:"3rt5D","9eada5f7049e7dfd":"i8FLx"}],i8FLx:[function(e,t,r){t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},{}],eyBGo:[function(e,t,r){"use strict";var n=e("2e69183faf5285a1"),i=e("b0cb641292e4911d"),a=e("eab3e45147b180ba"),s=e("a5ce61d26ce01c4c"),o=e("f6342f89ac472937"),c=a.assert,f=e("eb5ba559e423f6e9"),u=e("7c5e2c76c574ce41");function d(e){if(!(this instanceof d))return new d(e);"string"==typeof e&&(c(Object.prototype.hasOwnProperty.call(s,e),"Unknown curve "+e),e=s[e]),e instanceof s.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}t.exports=d,d.prototype.keyPair=function(e){return new f(this,e)},d.prototype.keyFromPrivate=function(e,t){return f.fromPrivate(this,e,t)},d.prototype.keyFromPublic=function(e,t){return f.fromPublic(this,e,t)},d.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||o(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),a=this.n.sub(new n(2));;){var s=new n(t.generate(r));if(!(s.cmp(a)>0))return s.iaddn(1),this.keyFromPrivate(s)}},d.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},d.prototype.sign=function(e,t,r,a){"object"==typeof r&&(a=r,r=null),a||(a={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var s=this.n.byteLength(),o=t.getPrivate().toArray("be",s),c=e.toArray("be",s),f=new i({hash:this.hash,entropy:o,nonce:c,pers:a.pers,persEnc:a.persEnc||"utf8"}),d=this.n.sub(new n(1)),l=0;;l++){var h=a.k?a.k(l):new n(f.generate(this.n.byteLength()));if(!(0>=(h=this._truncateToN(h,!0)).cmpn(1)||h.cmp(d)>=0)){var p=this.g.mul(h);if(!p.isInfinity()){var m=p.getX(),b=m.umod(this.n);if(0!==b.cmpn(0)){var g=h.invm(this.n).mul(b.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==m.cmp(b)?2:0);return a.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),y^=1),new u({r:b,s:g,recoveryParam:y})}}}}}},d.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var a,s=(t=new u(t,"hex")).r,o=t.s;if(0>s.cmpn(1)||s.cmp(this.n)>=0||0>o.cmpn(1)||o.cmp(this.n)>=0)return!1;var c=o.invm(this.n),f=c.mul(e).umod(this.n),d=c.mul(s).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(f,r.getPublic(),d)).isInfinity()&&a.eqXToP(s):!(a=this.g.mulAdd(f,r.getPublic(),d)).isInfinity()&&0===a.getX().umod(this.n).cmp(s)},d.prototype.recoverPubKey=function(e,t,r,i){c((3&r)===r,"The recovery param is more than two bits"),t=new u(t,i);var a=this.n,s=new n(e),o=t.r,f=t.s,d=1&r,l=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw Error("Unable to find sencond key candinate");o=l?this.curve.pointFromX(o.add(this.curve.n),d):this.curve.pointFromX(o,d);var h=t.r.invm(a),p=a.sub(s).mul(h).umod(a),m=f.mul(h).umod(a);return this.g.mulAdd(p,o,m)},d.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new u(t,n)).recoveryParam)return t.recoveryParam;for(var i,a=0;a<4;a++){try{i=this.recoverPubKey(e,t,a)}catch(e){continue}if(i.eq(r))return a}throw Error("Unable to find valid recovery factor")}},{"2e69183faf5285a1":"2gemu",b0cb641292e4911d:"eo8Xm",eab3e45147b180ba:"3rt5D",a5ce61d26ce01c4c:"kwPzC",f6342f89ac472937:"dpC9B",eb5ba559e423f6e9:"4fq9t","7c5e2c76c574ce41":"5Epmh"}],eo8Xm:[function(e,t,r){"use strict";var n=e("629972fec592198f"),i=e("c20531edfb274a2c"),a=e("43ff1863ab3fce20");function s(e){if(!(this instanceof s))return new s(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=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");a(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}t.exports=s,s.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},s.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var a=[];a.length"}},{"55cc33a33cda153d":"2gemu",bda8b1ff480a7f3:"3rt5D"}],"5Epmh":[function(e,t,r){"use strict";var n=e("a7ae8f0fe39990e7"),i=e("5df7da4811374387"),a=i.assert;function s(e,t){if(e instanceof s)return e;this._importDER(e,t)||(a(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function o(){this.place=0}function c(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 i=0,a=0,s=t.place;a>>=0;return!(i<=127)&&(t.place=s,i)}function f(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)}t.exports=s,s.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new o;if(48!==e[r.place++])return!1;var a=c(e,r);if(!1===a||a+r.place!==e.length||2!==e[r.place++])return!1;var s=c(e,r);if(!1===s)return!1;var f=e.slice(r.place,s+r.place);if(r.place+=s,2!==e[r.place++])return!1;var u=c(e,r);if(!1===u||e.length!==u+r.place)return!1;var d=e.slice(r.place,u+r.place);if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}return this.r=new n(f),this.s=new n(d),this.recoveryParam=null,!0},s.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=f(t),r=f(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];u(n,t.length),(n=n.concat(t)).push(2),u(n,r.length);var a=n.concat(r),s=[48];return u(s,a.length),s=s.concat(a),i.encode(s,e)}},{a7ae8f0fe39990e7:"2gemu","5df7da4811374387":"3rt5D"}],axOwW:[function(e,t,r){"use strict";var n=e("50f9bfa8a484d5d8"),i=e("68956d27442d6321"),a=e("99ec52641eff141d"),s=a.assert,o=a.parseBytes,c=e("2ad2982d76b37f15"),f=e("76c25a1d63d10c1b");function u(e){if(s("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof u))return new u(e);e=i[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}t.exports=u,u.prototype.sign=function(e,t){e=o(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),a=this.encodePoint(i),s=this.hashInt(a,r.pubBytes(),e).mul(r.priv()),c=n.add(s).umod(this.curve.n);return this.makeSignature({R:i,S:c,Rencoded:a})},u.prototype.verify=function(e,t,r){e=o(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),a=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(a)},u.prototype.hashInt=function(){for(var e=this.hash(),t=0;t0&&i[i.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]4294967295)throw RangeError("requested too many random bytes");var r=a.allocUnsafe(e);if(e>0){if(e>65536)for(var n=0;n>>32-t}function f(e,t,r,n,i,a,s){return c(e+(t&r|~t&n)+i+a|0,s)+t|0}function u(e,t,r,n,i,a,s){return c(e+(t&n|r&~n)+i+a|0,s)+t|0}function d(e,t,r,n,i,a,s){return c(e+(t^r^n)+i+a|0,s)+t|0}function l(e,t,r,n,i,a,s){return c(e+(r^(t|~n))+i+a|0,s)+t|0}n(o,i),o.prototype._update=function(){for(var e=0;e<16;++e)s[e]=this._block.readInt32LE(4*e);var t=this._a,r=this._b,n=this._c,i=this._d;t=f(t,r,n,i,s[0],3614090360,7),i=f(i,t,r,n,s[1],3905402710,12),n=f(n,i,t,r,s[2],606105819,17),r=f(r,n,i,t,s[3],3250441966,22),t=f(t,r,n,i,s[4],4118548399,7),i=f(i,t,r,n,s[5],1200080426,12),n=f(n,i,t,r,s[6],2821735955,17),r=f(r,n,i,t,s[7],4249261313,22),t=f(t,r,n,i,s[8],1770035416,7),i=f(i,t,r,n,s[9],2336552879,12),n=f(n,i,t,r,s[10],4294925233,17),r=f(r,n,i,t,s[11],2304563134,22),t=f(t,r,n,i,s[12],1804603682,7),i=f(i,t,r,n,s[13],4254626195,12),n=f(n,i,t,r,s[14],2792965006,17),r=f(r,n,i,t,s[15],1236535329,22),t=u(t,r,n,i,s[1],4129170786,5),i=u(i,t,r,n,s[6],3225465664,9),n=u(n,i,t,r,s[11],643717713,14),r=u(r,n,i,t,s[0],3921069994,20),t=u(t,r,n,i,s[5],3593408605,5),i=u(i,t,r,n,s[10],38016083,9),n=u(n,i,t,r,s[15],3634488961,14),r=u(r,n,i,t,s[4],3889429448,20),t=u(t,r,n,i,s[9],568446438,5),i=u(i,t,r,n,s[14],3275163606,9),n=u(n,i,t,r,s[3],4107603335,14),r=u(r,n,i,t,s[8],1163531501,20),t=u(t,r,n,i,s[13],2850285829,5),i=u(i,t,r,n,s[2],4243563512,9),n=u(n,i,t,r,s[7],1735328473,14),r=u(r,n,i,t,s[12],2368359562,20),t=d(t,r,n,i,s[5],4294588738,4),i=d(i,t,r,n,s[8],2272392833,11),n=d(n,i,t,r,s[11],1839030562,16),r=d(r,n,i,t,s[14],4259657740,23),t=d(t,r,n,i,s[1],2763975236,4),i=d(i,t,r,n,s[4],1272893353,11),n=d(n,i,t,r,s[7],4139469664,16),r=d(r,n,i,t,s[10],3200236656,23),t=d(t,r,n,i,s[13],681279174,4),i=d(i,t,r,n,s[0],3936430074,11),n=d(n,i,t,r,s[3],3572445317,16),r=d(r,n,i,t,s[6],76029189,23),t=d(t,r,n,i,s[9],3654602809,4),i=d(i,t,r,n,s[12],3873151461,11),n=d(n,i,t,r,s[15],530742520,16),r=d(r,n,i,t,s[2],3299628645,23),t=l(t,r,n,i,s[0],4096336452,6),i=l(i,t,r,n,s[7],1126891415,10),n=l(n,i,t,r,s[14],2878612391,15),r=l(r,n,i,t,s[5],4237533241,21),t=l(t,r,n,i,s[12],1700485571,6),i=l(i,t,r,n,s[3],2399980690,10),n=l(n,i,t,r,s[10],4293915773,15),r=l(r,n,i,t,s[1],2240044497,21),t=l(t,r,n,i,s[8],1873313359,6),i=l(i,t,r,n,s[15],4264355552,10),n=l(n,i,t,r,s[6],2734768916,15),r=l(r,n,i,t,s[13],1309151649,21),t=l(t,r,n,i,s[4],4149444226,6),i=l(i,t,r,n,s[11],3174756917,10),n=l(n,i,t,r,s[2],718787259,15),r=l(r,n,i,t,s[9],3951481745,21),this._a=this._a+t|0,this._b=this._b+r|0,this._c=this._c+n|0,this._d=this._d+i|0},o.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=a.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},t.exports=o},{"634114d48656c754":"cJ2FP","4b170874b4cb8d4e":"6UiEZ","72d4e45c6a42a2da":"6CY3D"}],"6UiEZ":[function(e,t,r){"use strict";var n=e("27eaec8a721206a5").Buffer,i=e("c5aab47d8f1d340a").Transform;function a(e){i.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}e("91e9fa68d440541e")(a,i),a.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},a.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},a.prototype.update=function(e,t){if(function(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw Error("Digest already called");n.isBuffer(e)||(e=n.from(e,t));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var a=this._blockOffset;a0;++s)this._length[s]+=o,(o=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*o);return this},a.prototype._update=function(){throw Error("_update is not implemented")},a.prototype.digest=function(e){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},a.prototype._digest=function(){throw Error("_digest is not implemented")},t.exports=a},{"27eaec8a721206a5":"6CY3D",c5aab47d8f1d340a:"1mxOP","91e9fa68d440541e":"cJ2FP"}],"1mxOP":[function(e,t,r){(r=t.exports=e("68bb3bdae87803ec")).Stream=r,r.Readable=r,r.Writable=e("74167f79b688eaf7"),r.Duplex=e("84600f6783428a47"),r.Transform=e("23bee5f697448a0"),r.PassThrough=e("e0ec4b8e438dbbd"),r.finished=e("6cc0f9af7147cdbc"),r.pipeline=e("f90db22d01d3c3d1")},{"68bb3bdae87803ec":"5GpgS","74167f79b688eaf7":"7gwGj","84600f6783428a47":"3r5YV","23bee5f697448a0":"fVIBO",e0ec4b8e438dbbd:"kVosf","6cc0f9af7147cdbc":"10aVq",f90db22d01d3c3d1:"i7EMx"}],"5GpgS":[function(e,t,r){"use strict";var n,i,a,s,o,c=arguments[3],f=e("896ff8d56553f7a");t.exports=x,x.ReadableState=S,e("16782d660ac22e0c").EventEmitter;var u=function(e,t){return e.listeners(t).length},d=e("9a34f23fa53f83f7"),l=e("fb95ecaa88342eae").Buffer,h=(void 0!==c?c:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},p=e("a4a723b7297c7152");i=p&&p.debuglog?p.debuglog("stream"):function(){};var m=e("7a14cc1689b8c63e"),b=e("efa8155386cc4283"),g=e("994c984d08c7bbf2").getHighWaterMark,y=e("8de60461b822641b").codes,v=y.ERR_INVALID_ARG_TYPE,w=y.ERR_STREAM_PUSH_AFTER_EOF,_=y.ERR_METHOD_NOT_IMPLEMENTED,E=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;e("19affa8ce41f090d")(x,d);var A=b.errorOrDestroy,M=["error","close","destroy","pause","resume"];function S(t,r,i){n=n||e("f1c95f846e94e4eb"),t=t||{},"boolean"!=typeof i&&(i=r instanceof n),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=g(this,t,"readableHighWaterMark",i),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(a||(a=e("6392acd10886f115").StringDecoder),this.decoder=new a(t.encoding),this.encoding=t.encoding)}function x(t){if(n=n||e("f1c95f846e94e4eb"),!(this instanceof x))return new x(t);var r=this instanceof n;this._readableState=new S(t,this,r),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),d.call(this)}function T(e,t,r,n,a){i("readableAddChunk",t);var s,o,c,f,u,d=e._readableState;if(null===t)d.reading=!1,function(e,t){if(i("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?I(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,C(e)))}}(e,d);else{if(a||(s=d,o=t,l.isBuffer(o)||o instanceof h||"string"==typeof o||void 0===o||s.objectMode||(c=new v("chunk",["string","Buffer","Uint8Array"],o)),u=c),u)A(e,u);else if(d.objectMode||t&&t.length>0){if("string"==typeof t||d.objectMode||Object.getPrototypeOf(t)===l.prototype||(f=t,t=l.from(f)),n)d.endEmitted?A(e,new E):k(e,d,t,!0);else if(d.ended)A(e,new w);else{if(d.destroyed)return!1;d.reading=!1,d.decoder&&!r?(t=d.decoder.write(t),d.objectMode||0!==t.length?k(e,d,t,!1):P(e,d)):k(e,d,t,!1)}}else n||(d.reading=!1,P(e,d))}return!d.ended&&(d.lengtht.highWaterMark){var r;t.highWaterMark=((r=e)>=1073741824?r=1073741824:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)}return e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)}function I(e){var t=e._readableState;i("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(i("emitReadable",t.flowing),t.emittedReadable=!0,f.nextTick(C,e))}function C(e){var t=e._readableState;i("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,L(e)}function P(e,t){t.readingMore||(t.readingMore=!0,f.nextTick(O,e,t))}function O(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function j(e){i("readable nexttick read 0"),e.read(0)}function B(e,t){i("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),L(e),t.flowing&&!t.reading&&e.read(0)}function L(e){var t=e._readableState;for(i("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function U(e){var t=e._readableState;i("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,f.nextTick(F,t,e))}function F(e,t){if(i("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function q(e,t){for(var r=0,n=e.length;r=r.highWaterMark:r.length>0)||r.ended))return i("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?U(this):I(this),null;if(0===(e=R(e,r))&&r.ended)return 0===r.length&&U(this),null;var a=r.needReadable;return i("need readable",a),(0===r.length||r.length-e0?D(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&U(this)),null!==t&&this.emit("data",t),t},x.prototype._read=function(e){A(this,new _("_read()"))},x.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,i("pipe count=%d opts=%j",n.pipesCount,t);var a=t&&!1===t.end||e===f.stdout||e===f.stderr?m:s;function s(){i("onend"),e.end()}n.endEmitted?f.nextTick(a):r.once("end",a),e.on("unpipe",function t(a,f){i("onunpipe"),a===r&&f&&!1===f.hasUnpiped&&(f.hasUnpiped=!0,i("cleanup"),e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("drain",o),e.removeListener("error",l),e.removeListener("unpipe",t),r.removeListener("end",s),r.removeListener("end",m),r.removeListener("data",d),c=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&o())});var o=function(){var e=r._readableState;i("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&u(r,"data")&&(e.flowing=!0,L(r))};e.on("drain",o);var c=!1;function d(t){i("ondata");var a=e.write(t);i("dest.write",a),!1===a&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==q(n.pipes,e))&&!c&&(i("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function l(t){i("onerror",t),m(),e.removeListener("error",l),0===u(e,"error")&&A(e,t)}function h(){e.removeListener("finish",p),m()}function p(){i("onfinish"),e.removeListener("close",h),m()}function m(){i("unpipe"),r.unpipe(e)}return r.on("data",d),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",l),e.once("close",h),e.once("finish",p),e.emit("pipe",r),n.flowing||(i("pipe resume"),r.resume()),e},x.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,i("on readable",n.length,n.reading),n.length?I(this):n.reading||f.nextTick(j,this)),r},x.prototype.addListener=x.prototype.on,x.prototype.removeListener=function(e,t){var r=d.prototype.removeListener.call(this,e,t);return"readable"===e&&f.nextTick(N,this),r},x.prototype.removeAllListeners=function(e){var t=d.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&f.nextTick(N,this),t},x.prototype.resume=function(){var e=this._readableState;return e.flowing||(i("resume"),e.flowing=!e.readableListening,e.resumeScheduled||(e.resumeScheduled=!0,f.nextTick(B,this,e))),e.paused=!1,this},x.prototype.pause=function(){return i("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(i("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},x.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var a in e.on("end",function(){if(i("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(a){i("wrapped data"),r.decoder&&(a=r.decoder.write(a)),(!r.objectMode||null!=a)&&(r.objectMode||a&&a.length)&&(t.push(a)||(n=!0,e.pause()))}),e)void 0===this[a]&&"function"==typeof e[a]&&(this[a]=function(t){return function(){return e[t].apply(e,arguments)}}(a));for(var s=0;s0&&s.length>i&&!s.warned){s.warned=!0;var i,a,s,o=Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=e,o.type=t,o.count=s.length,console&&console.warn&&console.warn(o)}return e}function l(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=l.bind(n);return i.listener=r,n.wrapFn=i,i}function p(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=Array(e.length),r=0;r0&&(s=t[0]),s instanceof Error)throw s;var s,o=Error("Unhandled error."+(s?" ("+s.message+")":""));throw o.context=s,o}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)a(c,this,t);else for(var f=c.length,u=b(c,f),r=0;r=0;a--)if(r[a]===t||r[a].listener===t){s=r[a].listener,i=a;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return p(this,e,!0)},o.prototype.rawListeners=function(e){return p(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},o.prototype.listenerCount=m,o.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},{}],"8Ppiy":[function(e,t,r){t.exports=e("ed88fc9aa73f911").EventEmitter},{ed88fc9aa73f911:"ikfQ0"}],hhdWi:[function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t,r,n=o.allocUnsafe(e>>>0),i=this.head,a=0;i;)t=i.data,r=a,o.prototype.copy.call(t,n,r),a+=i.data.length,i=i.next;return n}},{key:"consume",value:function(e,t){var r;return ei.length?i.length:e;if(a===i.length?n+=i:n+=i.slice(0,e),0==(e-=a)){a===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),0==(e-=a)){a===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(a));break}++n}return this.length-=n,t}},{key:f,value:function(e,t){return c(this,i(i({},t),{},{depth:0,customInspect:!1}))}}],a(r.prototype,e),t&&a(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}()},{"59f5d0111b7fa075":"2MMCE",eef6a677577349b8:"3eno3"}],cAa69:[function(e,t,r){var n=e("4284522496af5dfb");"use strict";function i(e,t){s(e,t),a(e)}function a(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function s(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var r=this,o=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return o||c?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(s,this,e)):n.nextTick(s,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?r._writableState?r._writableState.errorEmitted?n.nextTick(a,r):(r._writableState.errorEmitted=!0,n.nextTick(i,r,e)):n.nextTick(i,r,e):t?(n.nextTick(a,r),t(e)):n.nextTick(a,r)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},{"4284522496af5dfb":"fg0b3"}],"5eEoF":[function(e,t,r){"use strict";var n=e("4e508d569e2117ef").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,r,i){var a=null!=t.highWaterMark?t.highWaterMark:i?t[r]:null;if(null!=a){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var s=i?r:"highWaterMark";throw new n(s,a)}return Math.floor(a)}return e.objectMode?16:16384}}},{"4e508d569e2117ef":"kdXiL"}],kdXiL:[function(e,t,r){"use strict";var n={};function i(e,t,r){r||(r=Error);var i=function(e){function r(r,n,i){return e.call(this,"string"==typeof t?t:t(r,n,i))||this}return r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e,r}(r);i.prototype.name=r.name,i.prototype.code=e,n[e]=i}function a(e,t){if(!Array.isArray(e))return"of ".concat(t," ").concat(String(e));var r=e.length;return(e=e.map(function(e){return String(e)}),r>2)?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}i("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(e,t,r){if("string"==typeof t&&(n="not ",t.substr(!i||i<0?0:+i,n.length)===n)?(f="must not be",t=t.replace(/^not /,"")):f="must be",s=" argument",(void 0===o||o>e.length)&&(o=e.length),e.substring(o-s.length,o)===s)u="The ".concat(e," ").concat(f," ").concat(a(t,"type"));else{var n,i,s,o,c,f,u,d=("number"!=typeof c&&(c=0),c+1>e.length||-1===e.indexOf(".",c))?"argument":"property";u='The "'.concat(e,'" ').concat(d," ").concat(f," ").concat(a(t,"type"))}return u+". Received type ".concat(typeof r)},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=n},{}],"3r5YV":[function(e,t,r){"use strict";var n=e("2ab1115635c50a9f"),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=u;var a=e("68a7582259cd5865"),s=e("93d042f8bb80078e");e("aa7b11ba5bf4defc")(u,a);for(var o=i(s.prototype),c=0;c-1))throw new E(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(x.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(e,t,r){r(new b("_write()"))},x.prototype._writev=null,x.prototype.end=function(e,t,r){var n,i=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||(n=r,i.ending=!0,P(this,i),n&&(i.finished?s.nextTick(n):this.once("finish",n)),i.ended=!0,this.writable=!1),this},Object.defineProperty(x.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),x.prototype.destroy=l.destroy,x.prototype._undestroy=l.undestroy,x.prototype._destroy=function(e,t){t(e)}},{f05a2a5a09d4d8b0:"fg0b3",dc51171b07b54af1:"eje3w","44a3cc22ec64fcd3":"8Ppiy",de8f7fb7ccda8086:"2MMCE",acf48fb5d9dc6204:"cAa69","9d146cd974da0f53":"5eEoF","3c574b8881abcf86":"kdXiL","10dad555ffe77dde":"cJ2FP",c5e7171d6f58d3c0:"3r5YV"}],eje3w:[function(e,t,r){var n=arguments[3];function i(e){try{if(!n.localStorage)return!1}catch(e){return!1}var t=n.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}t.exports=function(e,t){if(i("noDeprecation"))return e;var r=!1;return function(){if(!r){if(i("throwDeprecation"))throw Error(t);i("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}},{}],"2c7F5":[function(e,t,r){"use strict";var n=e("2a29807c689a070a").Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;switch(this.encoding=function(e){var t=function(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=f,t=4;break;case"utf8":this.fillLast=o,t=4;break;case"base64":this.text=u,this.end=d,t=3;break;default:this.write=l,this.end=h;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function o(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}(this,e,0);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function c(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function f(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function u(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function l(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}r.StringDecoder=a,a.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"2a29807c689a070a":"6CY3D"}],"58qfu":[function(e,t,r){"use strict";var n,i=e("96b869862a96261a");function a(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s=e("745a3cd8f6469ed5"),o=Symbol("lastResolve"),c=Symbol("lastReject"),f=Symbol("error"),u=Symbol("ended"),d=Symbol("lastPromise"),l=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function m(e){var t=e[o];if(null!==t){var r=e[h].read();null!==r&&(e[d]=null,e[o]=null,e[c]=null,t(p(r,!1)))}}function b(e){i.nextTick(m,e)}var g=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((a(n={get stream(){return this[h]},next:function(){var e,t,r=this,n=this[f];if(null!==n)return Promise.reject(n);if(this[u])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise(function(e,t){i.nextTick(function(){r[f]?t(r[f]):e(p(void 0,!0))})});var a=this[d];if(a)t=new Promise((e=this,function(t,r){a.then(function(){if(e[u]){t(p(void 0,!0));return}e[l](t,r)},r)}));else{var s=this[h].read();if(null!==s)return Promise.resolve(p(s,!1));t=new Promise(this[l])}return this[d]=t,t}},Symbol.asyncIterator,function(){return this}),a(n,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){if(e){r(e);return}t(p(void 0,!0))})})}),n),g);t.exports=function(e){var t,r=Object.create(y,(a(t={},h,{value:e,writable:!0}),a(t,o,{value:null,writable:!0}),a(t,c,{value:null,writable:!0}),a(t,f,{value:null,writable:!0}),a(t,u,{value:e._readableState.endEmitted,writable:!0}),a(t,l,{value:function(e,t){var n=r[h].read();n?(r[d]=null,r[o]=null,r[c]=null,e(p(n,!1))):(r[o]=e,r[c]=t)},writable:!0}),t));return r[d]=null,s(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[c];null!==t&&(r[d]=null,r[o]=null,r[c]=null,t(e)),r[f]=e;return}var n=r[o];null!==n&&(r[d]=null,r[o]=null,r[c]=null,n(p(void 0,!0))),r[u]=!0}),e.on("readable",b.bind(null,r)),r}},{"96b869862a96261a":"fg0b3","745a3cd8f6469ed5":"10aVq"}],"10aVq":[function(e,t,r){"use strict";var n=e("d35458f585bdd360").codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function e(t,r,a){if("function"==typeof r)return e(t,null,r);r||(r={}),s=a||i,o=!1,a=function(){if(!o){o=!0;for(var e=arguments.length,t=Array(e),r=0;r0},function(e){if(e)return a(e);d=!0,a()}),p=!1,function(e){if(!d&&!p){if(p=!0,t.setHeader&&"function"==typeof t.abort)return t.abort();if("function"==typeof t.destroy)return t.destroy();a(e||new s("pipe"))}}});return u.reduce(f)}},{"6ba21bd580ac7d57":"kdXiL",dd7fd89dd81b8674:"10aVq"}],f4Xy3:[function(e,t,r){"use strict";var n=e("c813c8075bcf823e").Buffer,i=e("84928993e7c3934b"),a=e("4b3519823770a56d"),s=Array(16),o=[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],c=[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],f=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],u=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];function d(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function l(e,t){return e<>>32-t}i(d,a),d.prototype._update=function(){for(var e,t,r,n,i,a,d,h,p,m,b,g,y,v,w,_,E,A,M,S,x,T,k,R,I,C,P,O,N,j,B,L,D,U,F,q,z,K,H,V,W,G,J,Z,$,X,Y,Q,ee,et,er,en,ei,ea,es,eo,ec,ef,eu,ed,el,eh,ep,em,eb,eg,ey,ev,ew,e_,eE,eA,eM=0;eM<16;++eM)s[eM]=this._block.readInt32LE(4*eM);for(var eS=0|this._a,ex=0|this._b,eT=0|this._c,ek=0|this._d,eR=0|this._e,eI=0|this._a,eC=0|this._b,eP=0|this._c,eO=0|this._d,eN=0|this._e,ej=0;ej<80;ej+=1)ej<16?(e=eS,t=ex,r=eT,n=ek,i=eR,eE=l(e+(t^r^n)+s[o[ej]]+0|0,f[ej])+i|0,h=eI,p=eC,m=eP,b=eO,g=eN,eA=l(h+(p^(m|~b))+s[c[ej]]+1352829926|0,u[ej])+g|0):ej<32?(w=eS,_=ex,E=eT,A=ek,M=eR,eE=l(w+(_&E|~_&A)+s[o[ej]]+1518500249|0,f[ej])+M|0,T=eI,k=eC,R=eP,I=eO,C=eN,eA=l(T+(k&I|R&~I)+s[c[ej]]+1548603684|0,u[ej])+C|0):ej<48?(N=eS,j=ex,B=eT,L=ek,D=eR,eE=l(N+((j|~B)^L)+s[o[ej]]+1859775393|0,f[ej])+D|0,q=eI,z=eC,K=eP,H=eO,V=eN,eA=l(q+((z|~K)^H)+s[c[ej]]+1836072691|0,u[ej])+V|0):ej<64?(J=eS,Z=ex,$=eT,X=ek,Y=eR,eE=l(J+(Z&X|$&~X)+s[o[ej]]+2400959708|0,f[ej])+Y|0,et=eI,er=eC,en=eP,ei=eO,ea=eN,eA=l(et+(er&en|~er&ei)+s[c[ej]]+2053994217|0,u[ej])+ea|0):(ec=eS,ef=ex,eu=eT,ed=ek,el=eR,eE=l(ec+(ef^(eu|~ed))+s[o[ej]]+2840853838|0,f[ej])+el|0,em=eI,eb=eC,eg=eP,ey=eO,ev=eN,eA=l(em+(eb^eg^ey)+s[c[ej]]+0|0,u[ej])+ev|0),eS=eR,eR=ek,ek=l(eT,10),eT=ex,ex=eE,eI=eN,eN=eO,eO=l(eP,10),eP=eC,eC=eA;var eB=this._b+eT+eO|0;this._b=this._c+ek+eN|0,this._c=this._d+eR+eI|0,this._d=this._e+eS+eC|0,this._e=this._a+ex+eP|0,this._a=eB},d.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},t.exports=d},{c813c8075bcf823e:"2MMCE","84928993e7c3934b":"cJ2FP","4b3519823770a56d":"6UiEZ"}],iSJqK:[function(e,t,r){var r=t.exports=function(e){var t=r[e=e.toLowerCase()];if(!t)throw Error(e+" is not supported (we accept pull requests)");return new t};r.sha=e("54c9313943368ce2"),r.sha1=e("6e6f42e0b6fe29ef"),r.sha224=e("cefe70c6f9f68940"),r.sha256=e("3b4e2aa73bc3fef5"),r.sha384=e("be7da8b8e5a0fd78"),r.sha512=e("25610a4ba83316a4")},{"54c9313943368ce2":"2PzCn","6e6f42e0b6fe29ef":"2txF6",cefe70c6f9f68940:"6cViI","3b4e2aa73bc3fef5":"4sfnu",be7da8b8e5a0fd78:"dDC3d","25610a4ba83316a4":"6zg8a"}],"2PzCn":[function(e,t,r){var n=e("55404b425acd1c6f"),i=e("457bc9c7737d761f"),a=e("44759e57eb2992a").Buffer,s=[1518500249,1859775393,-1894007588,-899497514],o=Array(80);function c(){this.init(),this._w=o,i.call(this,64,56)}n(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,a=0|this._d,o=0|this._e,c=0;c<16;++c)t[c]=e.readInt32BE(4*c);for(;c<80;++c)t[c]=t[c-3]^t[c-8]^t[c-14]^t[c-16];for(var f=0;f<80;++f){var u,d,l,h,p,m=~~(f/20),b=((u=r)<<5|u>>>27)+(d=n,l=i,h=a,0===m?d&l|~d&h:2===m?d&l|d&h|l&h:d^l^h)+o+t[f]+s[m]|0;o=a,a=i,i=(p=n)<<30|p>>>2,n=r,r=b}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0},c.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=c},{"55404b425acd1c6f":"cJ2FP","457bc9c7737d761f":"iI2Xg","44759e57eb2992a":"6CY3D"}],iI2Xg:[function(e,t,r){var n=e("fe67468afd3c1b91").Buffer;function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=n.from(e,t));for(var r=this._block,i=this._blockSize,a=e.length,s=this._len,o=0;o=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a},i.prototype._update=function(){throw Error("_update must be implemented by subclass")},t.exports=i},{fe67468afd3c1b91:"6CY3D"}],"2txF6":[function(e,t,r){var n=e("bf0dcaa2121c06d3"),i=e("788f05b1f9753762"),a=e("ee7c2a3e649d259f").Buffer,s=[1518500249,1859775393,-1894007588,-899497514],o=Array(80);function c(){this.init(),this._w=o,i.call(this,64,56)}n(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,a=0|this._d,o=0|this._e,c=0;c<16;++c)t[c]=e.readInt32BE(4*c);for(;c<80;++c)t[c]=(u=t[c-3]^t[c-8]^t[c-14]^t[c-16])<<1|u>>>31;for(var f=0;f<80;++f){var u,d,l,h,p,m,b=~~(f/20),g=((d=r)<<5|d>>>27)+(l=n,h=i,p=a,0===b?l&h|~l&p:2===b?l&h|l&p|h&p:l^h^p)+o+t[f]+s[b]|0;o=a,a=i,i=(m=n)<<30|m>>>2,n=r,r=g}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0},c.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=c},{bf0dcaa2121c06d3:"cJ2FP","788f05b1f9753762":"iI2Xg",ee7c2a3e649d259f:"6CY3D"}],"6cViI":[function(e,t,r){var n=e("1759318dd61b32af"),i=e("5a24a8ff4dc414f6"),a=e("377596dd27739a66"),s=e("381289f917f16a20").Buffer,o=Array(64);function c(){this.init(),this._w=o,a.call(this,64,56)}n(c,i),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var e=s.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},t.exports=c},{"1759318dd61b32af":"cJ2FP","5a24a8ff4dc414f6":"4sfnu","377596dd27739a66":"iI2Xg","381289f917f16a20":"6CY3D"}],"4sfnu":[function(e,t,r){var n=e("682a6716eeab42dd"),i=e("f062bd789841a9ce"),a=e("1d47643a8adb8c1b").Buffer,s=[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=Array(64);function c(){this.init(),this._w=o,i.call(this,64,56)}n(c,i),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,a=0|this._d,o=0|this._e,c=0|this._f,f=0|this._g,u=0|this._h,d=0;d<16;++d)t[d]=e.readInt32BE(4*d);for(;d<64;++d)t[d]=(((h=t[d-2])>>>17|h<<15)^(h>>>19|h<<13)^h>>>10)+t[d-7]+(((p=t[d-15])>>>7|p<<25)^(p>>>18|p<<14)^p>>>3)+t[d-16]|0;for(var l=0;l<64;++l){var h,p,m,b,g,y,v,w,_,E=u+(((m=o)>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(b=o,g=c,(y=f)^b&(g^y))+s[l]+t[l]|0,A=(((v=r)>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10))+((w=r)&(_=n)|i&(w|_))|0;u=f,f=c,c=o,o=a+E|0,a=i,i=n,n=r,r=E+A|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0,this._f=c+this._f|0,this._g=f+this._g|0,this._h=u+this._h|0},c.prototype._hash=function(){var e=a.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},t.exports=c},{"682a6716eeab42dd":"cJ2FP",f062bd789841a9ce:"iI2Xg","1d47643a8adb8c1b":"6CY3D"}],dDC3d:[function(e,t,r){var n=e("2a5cbb73fedd61b"),i=e("fdb4d0946b31cdb5"),a=e("50aa04d4bd2df0e1"),s=e("3d3bcc84ec383b74").Buffer,o=Array(160);function c(){this.init(),this._w=o,a.call(this,128,112)}n(c,i),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var e=s.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},t.exports=c},{"2a5cbb73fedd61b":"cJ2FP",fdb4d0946b31cdb5:"6zg8a","50aa04d4bd2df0e1":"iI2Xg","3d3bcc84ec383b74":"6CY3D"}],"6zg8a":[function(e,t,r){var n=e("8d87c82d5ce5743"),i=e("27d0146c4419ba93"),a=e("602d9c7256ca6bf7").Buffer,s=[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],o=Array(160);function c(){this.init(),this._w=o,i.call(this,128,112)}function f(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function u(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function d(e,t){return e>>>0>>0?1:0}n(c,i),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,a=0|this._dh,o=0|this._eh,c=0|this._fh,l=0|this._gh,h=0|this._hh,p=0|this._al,m=0|this._bl,b=0|this._cl,g=0|this._dl,y=0|this._el,v=0|this._fl,w=0|this._gl,_=0|this._hl,E=0;E<32;E+=2)t[E]=e.readInt32BE(4*E),t[E+1]=e.readInt32BE(4*E+4);for(;E<160;E+=2){var A,M,S,x,T,k,R,I,C=t[E-30],P=t[E-30+1],O=((A=C)>>>1|(M=P)<<31)^(A>>>8|M<<24)^A>>>7,N=((S=P)>>>1|(x=C)<<31)^(S>>>8|x<<24)^(S>>>7|x<<25);C=t[E-4],P=t[E-4+1];var j=((T=C)>>>19|(k=P)<<13)^(k>>>29|T<<3)^T>>>6,B=((R=P)>>>19|(I=C)<<13)^(I>>>29|R<<3)^(R>>>6|I<<26),L=t[E-14],D=t[E-14+1],U=t[E-32],F=t[E-32+1],q=N+D|0,z=O+L+d(q,N)|0;z=(z=z+j+d(q=q+B|0,B)|0)+U+d(q=q+F|0,F)|0,t[E]=z,t[E+1]=q}for(var K=0;K<160;K+=2){z=t[K],q=t[K+1];var H,V,W,G,J,Z,$,X,Y,Q,ee=(H=r)&(V=n)|i&(H|V),et=(W=p)&(G=m)|b&(W|G),er=f(r,p),en=f(p,r),ei=u(o,y),ea=u(y,o),es=s[K],eo=s[K+1],ec=(J=o,Z=c,($=l)^J&(Z^$)),ef=(X=y,Y=v,(Q=w)^X&(Y^Q)),eu=_+ea|0,ed=h+ei+d(eu,_)|0;ed=(ed=(ed=ed+ec+d(eu=eu+ef|0,ef)|0)+es+d(eu=eu+eo|0,eo)|0)+z+d(eu=eu+q|0,q)|0;var el=en+et|0,eh=er+ee+d(el,en)|0;h=l,_=w,l=c,w=v,c=o,v=y,o=a+ed+d(y=g+eu|0,g)|0,a=i,g=b,i=n,b=m,n=r,m=p,r=ed+eh+d(p=eu+el|0,eu)|0}this._al=this._al+p|0,this._bl=this._bl+m|0,this._cl=this._cl+b|0,this._dl=this._dl+g|0,this._el=this._el+y|0,this._fl=this._fl+v|0,this._gl=this._gl+w|0,this._hl=this._hl+_|0,this._ah=this._ah+r+d(this._al,p)|0,this._bh=this._bh+n+d(this._bl,m)|0,this._ch=this._ch+i+d(this._cl,b)|0,this._dh=this._dh+a+d(this._dl,g)|0,this._eh=this._eh+o+d(this._el,y)|0,this._fh=this._fh+c+d(this._fl,v)|0,this._gh=this._gh+l+d(this._gl,w)|0,this._hh=this._hh+h+d(this._hl,_)|0},c.prototype._hash=function(){var e=a.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},t.exports=c},{"8d87c82d5ce5743":"cJ2FP","27d0146c4419ba93":"iI2Xg","602d9c7256ca6bf7":"6CY3D"}],"2sGTM":[function(e,t,r){var n=e("631f7eb12d35b579").Buffer,i=e("5b378a2a05398c5").Transform,a=e("d42da7de127e1c4b").StringDecoder;function s(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}e("7a0f2f27fe0a389b")(s,i),s.prototype.update=function(e,t,r){"string"==typeof e&&(e=n.from(e,t));var i=this._update(e);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw Error("trying to set aad in unsupported state")},s.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},s.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},s.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},s.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new a(t),this._encoding=t),this._encoding!==t)throw Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},t.exports=s},{"631f7eb12d35b579":"6CY3D","5b378a2a05398c5":"8ILAD",d42da7de127e1c4b:"2c7F5","7a0f2f27fe0a389b":"cJ2FP"}],"8ILAD":[function(e,t,r){t.exports=i;var n=e("96b62835346f84f0").EventEmitter;function i(){n.call(this)}e("4a6ee9586f51c38d")(i,n),i.Readable=e("e6206e1f4d20abc7"),i.Writable=e("a3f1405f37e1dfb1"),i.Duplex=e("6691a72c5fc222fd"),i.Transform=e("43a905ce7ec6ac9e"),i.PassThrough=e("dd715550d7783885"),i.finished=e("d90a3520974ec96e"),i.pipeline=e("eb2779cfd287c5c9"),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function a(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",a),e._isStdio||t&&!1===t.end||(r.on("end",o),r.on("close",c));var s=!1;function o(){s||(s=!0,e.end())}function c(){s||(s=!0,"function"==typeof e.destroy&&e.destroy())}function f(e){if(u(),0===n.listenerCount(this,"error"))throw e}function u(){r.removeListener("data",i),e.removeListener("drain",a),r.removeListener("end",o),r.removeListener("close",c),r.removeListener("error",f),e.removeListener("error",f),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("error",f),e.on("error",f),r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e}},{"96b62835346f84f0":"ikfQ0","4a6ee9586f51c38d":"cJ2FP",e6206e1f4d20abc7:"5GpgS",a3f1405f37e1dfb1:"7gwGj","6691a72c5fc222fd":"3r5YV","43a905ce7ec6ac9e":"fVIBO",dd715550d7783885:"kVosf",d90a3520974ec96e:"10aVq",eb2779cfd287c5c9:"i7EMx"}],gCyFN:[function(e,t,r){"use strict";var n=e("6a73c7c8ca6b61fa"),i=e("e1b443c27c833bc0"),a=e("7571755cc57fd60e"),s=e("b8ba1339feab1938").Buffer,o=e("c00fb3fd28cadeb2"),c=e("b7f8eae556813ec1"),f=e("40c5a912778271f7"),u=s.alloc(128);function d(e,t){a.call(this,"digest"),"string"==typeof t&&(t=s.from(t));var r="sha512"===e||"sha384"===e?128:64;this._alg=e,this._key=t,t.length>r?t=("rmd160"===e?new c:f(e)).update(t).digest():t.length64?t=e(t):t.length<64&&(t=i.concat([t,s],64));for(var r=this._ipad=i.allocUnsafe(64),n=this._opad=i.allocUnsafe(64),o=0;o<64;o++)r[o]=54^t[o],n[o]=92^t[o];this._hash=[r]}n(o,a),o.prototype._update=function(e){this._hash.push(e)},o.prototype._final=function(){var e=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,e]))},t.exports=o},{"2baf2864ece10f11":"cJ2FP",c7fb5e22d675c53c:"6CY3D","8fdec7d6b96329ea":"2sGTM"}],kJcWJ:[function(e,t,r){var n=e("f07cc93582c49804");t.exports=function(e){return new n().update(e).digest()}},{f07cc93582c49804:"itRd4"}],c6IbM:[function(e,t,r){t.exports=e("b6a65ebe2480cb5a")},{b6a65ebe2480cb5a:"6fwWv"}],"6fwWv":[function(e,t,r){t.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},{}],lsc2y:[function(e,t,r){r.pbkdf2=e("50310b85983e4f32"),r.pbkdf2Sync=e("5f7b0df9c2ef196d")},{"50310b85983e4f32":"lNDNg","5f7b0df9c2ef196d":"8Fput"}],lNDNg:[function(e,t,r){var n,i,a=arguments[3],s=e("a1f6b66eddae53e0").Buffer,o=e("a915fb954a5b62ac"),c=e("76b8747fb257c65c"),f=e("f6f43e3eaadd9ae9"),u=e("d12cab846fc3f945"),d=a.crypto&&a.crypto.subtle,l={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},h=[];function p(){return i||(i=a.process&&a.process.nextTick?a.process.nextTick:a.queueMicrotask?a.queueMicrotask:a.setImmediate?a.setImmediate:a.setTimeout)}function m(e,t,r,n,i){return d.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return d.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:i}},e,n<<3)}).then(function(e){return s.from(e)})}t.exports=function(e,t,r,i,b,g){"function"==typeof b&&(g=b,b=void 0);var y=l[(b=b||"sha1").toLowerCase()];if(!y||"function"!=typeof a.Promise){p()(function(){var n;try{n=f(e,t,r,i,b)}catch(e){return g(e)}g(null,n)});return}if(o(r,i),e=u(e,c,"Password"),t=u(t,c,"Salt"),"function"!=typeof g)throw Error("No callback provided to pbkdf2");!function(e,t){e.then(function(e){p()(function(){t(null,e)})},function(e){p()(function(){t(e)})})}((function(e){if(a.process&&!a.process.browser||!d||!d.importKey||!d.deriveBits)return Promise.resolve(!1);if(void 0!==h[e])return h[e];var t=m(n=n||s.alloc(8),n,10,128,e).then(function(){return!0}).catch(function(){return!1});return h[e]=t,t})(y).then(function(n){return n?m(e,t,r,i,y):f(e,t,r,i,b)}),g)}},{a1f6b66eddae53e0:"6CY3D",a915fb954a5b62ac:"iRtZ5","76b8747fb257c65c":"4na3y",f6f43e3eaadd9ae9:"8Fput",d12cab846fc3f945:"hObHx"}],iRtZ5:[function(e,t,r){t.exports=function(e,t){if("number"!=typeof e)throw TypeError("Iterations not a number");if(e<0)throw TypeError("Bad iterations");if("number"!=typeof t)throw TypeError("Key length not a number");if(t<0||t>1073741823||t!=t)throw TypeError("Bad key length")}},{}],"4na3y":[function(e,t,r){var n,i=arguments[3],a=e("6b9fe6b7a0bbf941");n=i.process&&i.process.browser?"utf-8":i.process&&i.process.version?parseInt(a.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",t.exports=n},{"6b9fe6b7a0bbf941":"fg0b3"}],"8Fput":[function(e,t,r){var n=e("1e04e1c2d51cd13d"),i=e("42015ac33af139f8"),a=e("a7eb8e83614997ca"),s=e("290c92d9373f664d").Buffer,o=e("1b04775c4713da3d"),c=e("b290a762e8475e9f"),f=e("82c0eccfe5526b2c"),u=s.alloc(128),d={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function l(e,t,r){var o="rmd160"===e||"ripemd160"===e?function(e){return new i().update(e).digest()}:"md5"===e?n:function(t){return a(e).update(t).digest()},c="sha512"===e||"sha384"===e?128:64;t.length>c?t=o(t):t.length>>0},r.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},r.ip=function(e,t,r,n){for(var i=0,a=0,s=6;s>=0;s-=2){for(var o=0;o<=24;o+=8)i<<=1,i|=t>>>o+s&1;for(var o=0;o<=24;o+=8)i<<=1,i|=e>>>o+s&1}for(var s=6;s>=0;s-=2){for(var o=1;o<=25;o+=8)a<<=1,a|=t>>>o+s&1;for(var o=1;o<=25;o+=8)a<<=1,a|=e>>>o+s&1}r[n+0]=i>>>0,r[n+1]=a>>>0},r.rip=function(e,t,r,n){for(var i=0,a=0,s=0;s<4;s++)for(var o=24;o>=0;o-=8)i<<=1,i|=t>>>o+s&1,i<<=1,i|=e>>>o+s&1;for(var s=4;s<8;s++)for(var o=24;o>=0;o-=8)a<<=1,a|=t>>>o+s&1,a<<=1,a|=e>>>o+s&1;r[n+0]=i>>>0,r[n+1]=a>>>0},r.pc1=function(e,t,r,n){for(var i=0,a=0,s=7;s>=5;s--){for(var o=0;o<=24;o+=8)i<<=1,i|=t>>o+s&1;for(var o=0;o<=24;o+=8)i<<=1,i|=e>>o+s&1}for(var o=0;o<=24;o+=8)i<<=1,i|=t>>o+s&1;for(var s=1;s<=3;s++){for(var o=0;o<=24;o+=8)a<<=1,a|=t>>o+s&1;for(var o=0;o<=24;o+=8)a<<=1,a|=e>>o+s&1}for(var o=0;o<=24;o+=8)a<<=1,a|=e>>o+s&1;r[n+0]=i>>>0,r[n+1]=a>>>0},r.r28shl=function(e,t){return e<>>28-t};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];r.pc2=function(e,t,r,i){for(var a=0,s=0,o=n.length>>>1,c=0;c>>n[c]&1;for(var c=o;c>>n[c]&1;r[i+0]=a>>>0,r[i+1]=s>>>0},r.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var a=23;a>=15;a-=4)n<<=6,n|=e>>>a&63;for(var a=11;a>=3;a-=4)i|=e>>>a&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];r.substitute=function(e,t){for(var r=0,n=0;n<4;n++){var a=e>>>18-6*n&63,s=i[64*n+a];r<<=4,r|=s}for(var n=0;n<4;n++){var a=t>>>18-6*n&63,s=i[256+64*n+a];r<<=4,r|=s}return r>>>0};var a=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];r.permute=function(e){for(var t=0,r=0;r>>a[r]&1;return t>>>0},r.padSplit=function(e,t,r){for(var n=e.toString(2);n.length0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,r;return(e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t)?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t>>1];r=a.r28shl(r,o),i=a.r28shl(i,o),a.pc2(r,i,e.keys,s)}},c.prototype._update=function(e,t,r,n){var i=this._desState,s=a.readUInt32BE(e,t),o=a.readUInt32BE(e,t+4);a.ip(s,o,i.tmp,0),s=i.tmp[0],o=i.tmp[1],"encrypt"===this.type?this._encrypt(i,s,o,i.tmp,0):this._decrypt(i,s,o,i.tmp,0),s=i.tmp[0],o=i.tmp[1],a.writeUInt32BE(r,s,n),a.writeUInt32BE(r,o,n+4)},c.prototype._pad=function(e,t){if(!1===this.padding)return!1;for(var r=e.length-t,n=t;n>>0,s=h}a.rip(o,s,n,i)},c.prototype._decrypt=function(e,t,r,n,i){for(var s=r,o=t,c=e.keys.length-2;c>=0;c-=2){var f=e.keys[c],u=e.keys[c+1];a.expand(s,e.tmp,0),f^=e.tmp[0],u^=e.tmp[1];var d=a.substitute(f,u),l=a.permute(d),h=s;s=(o^l)>>>0,o=h}a.rip(s,o,n,i)}},{"2e43e10aa2de50ed":"h59lk","551480b8aa09d318":"cJ2FP",b6dc5b7926f5a82f:"jAhm7","38547d2f1967e2cd":"5eHfG"}],esso5:[function(e,t,r){"use strict";var n=e("63ac301527fc117b"),i=e("7d48f4d3d39d3b86"),a={};function s(e){n.equal(e.length,8,"Invalid IV length"),this.iv=Array(8);for(var t=0;t15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},l.prototype.flush=function(){for(var e=16-this.cache.length,t=a.allocUnsafe(e),r=-1;++r>o%8,e._prev=function(e,t){var r=e.length,i=-1,a=n.allocUnsafe(e.length);for(e=n.concat([e,n.from([t])]);++i>7;return a}(e._prev,r?a:s);return c}(e,t[s],r);return a}},{"5eb46e1eefd15734":"6CY3D"}],"5U0Aq":[function(e,t,r){var n=e("b3ff65e516d49ef1").Buffer,i=e("7f0c2ff10cf58835");r.encrypt=function(e,t){for(;e._cache.length>>24]^u[p>>>16&255]^d[m>>>8&255]^l[255&b]^t[g++],s=f[p>>>24]^u[m>>>16&255]^d[b>>>8&255]^l[255&h]^t[g++],o=f[m>>>24]^u[b>>>16&255]^d[h>>>8&255]^l[255&p]^t[g++],c=f[b>>>24]^u[h>>>16&255]^d[p>>>8&255]^l[255&m]^t[g++],h=a,p=s,m=o,b=c;return a=(n[h>>>24]<<24|n[p>>>16&255]<<16|n[m>>>8&255]<<8|n[255&b])^t[g++],s=(n[p>>>24]<<24|n[m>>>16&255]<<16|n[b>>>8&255]<<8|n[255&h])^t[g++],[a>>>=0,s>>>=0,o=((n[m>>>24]<<24|n[b>>>16&255]<<16|n[h>>>8&255]<<8|n[255&p])^t[g++])>>>0,c=((n[b>>>24]<<24|n[h>>>16&255]<<16|n[p>>>8&255]<<8|n[255&m])^t[g++])>>>0]}var o=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var e=Array(256),t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],a=[[],[],[],[]],s=0,o=0,c=0;c<256;++c){var f=o^o<<1^o<<2^o<<3^o<<4;f=f>>>8^255&f^99,r[s]=f,n[f]=s;var u=e[s],d=e[u],l=e[d],h=257*e[f]^16843008*f;i[0][s]=h<<24|h>>>8,i[1][s]=h<<16|h>>>16,i[2][s]=h<<8|h>>>24,i[3][s]=h,h=16843009*l^65537*d^257*u^16843008*s,a[0][f]=h<<24|h>>>8,a[1][f]=h<<16|h>>>16,a[2][f]=h<<8|h>>>24,a[3][f]=h,0===s?s=o=1:(s=u^e[e[e[l^u]]],o^=e[e[o]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:a}}();function f(e){this._key=i(e),this._reset()}f.blockSize=16,f.keySize=32,f.prototype.blockSize=f.blockSize,f.prototype.keySize=f.keySize,f.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=(r+1)*4,i=[],a=0;a>>24,s=(c.SBOX[s>>>24]<<24|c.SBOX[s>>>16&255]<<16|c.SBOX[s>>>8&255]<<8|c.SBOX[255&s])^o[a/t|0]<<24):t>6&&a%t==4&&(s=c.SBOX[s>>>24]<<24|c.SBOX[s>>>16&255]<<16|c.SBOX[s>>>8&255]<<8|c.SBOX[255&s]),i[a]=i[a-t]^s}for(var f=[],u=0;u>>24]]^c.INV_SUB_MIX[1][c.SBOX[l>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[l>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&l]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=f},f.prototype.encryptBlockRaw=function(e){return s(e=i(e),this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},f.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},f.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var r=s(e,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),a=n.allocUnsafe(16);return a.writeUInt32BE(r[0],0),a.writeUInt32BE(r[3],4),a.writeUInt32BE(r[2],8),a.writeUInt32BE(r[1],12),a},f.prototype.scrub=function(){a(this._keySchedule),a(this._invKeySchedule),a(this._key)},t.exports.AES=f},{"9c4f04f75f375be":"6CY3D"}],kfA0b:[function(e,t,r){var n=e("815beeecbe039d1a").Buffer,i=n.alloc(16,0);function a(e){var t=n.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function s(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}s.prototype.ghash=function(e){for(var t=-1;++t0;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=-520093696^n[0])}this.state=a(i)},s.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},s.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(a([0,e,0,t])),this.state},t.exports=s},{"815beeecbe039d1a":"6CY3D"}],"3gyL0":[function(e,t,r){var n=e("499d62308d7dac40"),i=e("bc4a1f7113303d58").Buffer,a=e("e701745abb80bc49");function s(e,t,r,s){a.call(this),this._cipher=new n.AES(t),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=s,this._mode=e}e("3765f10ec3d7a831")(s,a),s.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},s.prototype._final=function(){this._cipher.scrub()},t.exports=s},{"499d62308d7dac40":"f9w0b",bc4a1f7113303d58:"6CY3D",e701745abb80bc49:"2sGTM","3765f10ec3d7a831":"cJ2FP"}],hNNhz:[function(e,t,r){var n=e("adb33291e0f9c65a").Buffer,i=e("15f984dc9e3797d9");t.exports=function(e,t,r,a){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw RangeError("salt should be Buffer with 8 byte length");for(var s=r/8,o=n.alloc(s),c=n.alloc(a||0),f=n.alloc(0);s>0||a>0;){var u=new i;u.update(f),u.update(e),t&&u.update(t),f=u.digest();var d=0;if(s>0){var l=o.length-s;d=Math.min(s,f.length),f.copy(o,l,0,d),s-=d}if(d0){var h=c.length-a,p=Math.min(a,f.length-d);f.copy(c,h,d,d+p),a-=p}}return f.fill(0),{key:o,iv:c}}},{adb33291e0f9c65a:"6CY3D","15f984dc9e3797d9":"itRd4"}],aeVam:[function(e,t,r){var n=e("2f5914bdcee0aab2"),i=e("2eedc5cbfd1eafeb").Buffer,a=e("2b861a45e2a2d1fe"),s=e("54b6d333d74ae9c8"),o=e("4b438dd1327af64e"),c=e("928aea47daff81dc"),f=e("25542df8da1646fe");function u(e,t,r){o.call(this),this._cache=new d,this._last=void 0,this._cipher=new c.AES(t),this._prev=i.from(r),this._mode=e,this._autopadding=!0}function d(){this.cache=i.allocUnsafe(0)}function l(e,t,r){var o=a[e.toLowerCase()];if(!o)throw TypeError("invalid suite type");if("string"==typeof r&&(r=i.from(r)),"GCM"!==o.mode&&r.length!==o.iv)throw TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=i.from(t)),t.length!==o.key/8)throw TypeError("invalid key length "+t.length);return"stream"===o.type?new s(o.module,t,r,!0):"auth"===o.type?new n(o.module,t,r,!0):new u(o.module,t,r)}e("153b885d89d2089e")(u,o),u.prototype._update=function(e){this._cache.add(e);for(var t,r,n=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),n.push(r);return i.concat(n)},u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw Error("unable to decrypt data");for(var r=-1;++r16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},d.prototype.flush=function(){if(this.cache.length)return this.cache},r.createDecipher=function(e,t){var r=a[e.toLowerCase()];if(!r)throw TypeError("invalid suite type");var n=f(t,!1,r.key,r.iv);return l(e,n.key,n.iv)},r.createDecipheriv=l},{"2f5914bdcee0aab2":"5L2GD","2eedc5cbfd1eafeb":"6CY3D","2b861a45e2a2d1fe":"XLBUv","54b6d333d74ae9c8":"3gyL0","4b438dd1327af64e":"2sGTM","928aea47daff81dc":"f9w0b","25542df8da1646fe":"hNNhz","153b885d89d2089e":"cJ2FP"}],PVMme:[function(e,t,r){r["des-ecb"]={key:8,iv:0},r["des-cbc"]=r.des={key:8,iv:8},r["des-ede3-cbc"]=r.des3={key:24,iv:8},r["des-ede3"]={key:24,iv:0},r["des-ede-cbc"]={key:16,iv:8},r["des-ede"]={key:16,iv:0}},{}],CQhDB:[function(e,t,r){var n=e("55a084ce1a29baa3").Buffer,i=e("5ed99cf028c947ad"),a=e("8da23ed5d7edf952"),s=e("981b8db942febaf3"),o={binary:!0,hex:!0,base64:!0};r.DiffieHellmanGroup=r.createDiffieHellmanGroup=r.getDiffieHellman=function(e){var t=new n(a[e].prime,"hex"),r=new n(a[e].gen,"hex");return new s(t,r)},r.createDiffieHellman=r.DiffieHellman=function e(t,r,a,c){return n.isBuffer(r)||void 0===o[r]?e(t,"binary",r,a):(r=r||"binary",c=c||"binary",a=a||new n([2]),n.isBuffer(a)||(a=new n(a,c)),"number"==typeof t)?new s(i(t,a),a,!0):(n.isBuffer(t)||(t=new n(t,r)),new s(t,a,!0))}},{"55a084ce1a29baa3":"2MMCE","5ed99cf028c947ad":"jJXBy","8da23ed5d7edf952":"4r6A7","981b8db942febaf3":"jpk3A"}],jJXBy:[function(e,t,r){var n=e("e11b752ebf414e01");t.exports=g,g.simpleSieve=m,g.fermatTest=b;var i=e("6139735ee181267b"),a=new i(24),s=new(e("7b3f73f9ab7b2b6a")),o=new i(1),c=new i(2),f=new i(5);new i(16),new i(8);var u=new i(10),d=new i(3);new i(7);var l=new i(11),h=new i(4);new i(12);var p=null;function m(e){for(var t=function(){if(null!==p)return p;var e=[];e[0]=2;for(var t=1,r=3;r<1048576;r+=2){for(var n=Math.ceil(Math.sqrt(r)),i=0;ie;)r.ishrn(1);if(r.isEven()&&r.iadd(o),r.testn(1)||r.iadd(c),t.cmp(c)){if(!t.cmp(f))for(;r.mod(u).cmp(d);)r.iadd(h)}else for(;r.mod(a).cmp(l);)r.iadd(h);if(m(p=r.shrn(1))&&m(r)&&b(p)&&b(r)&&s.test(p)&&s.test(r))return r}}},{e11b752ebf414e01:"6xAZm","6139735ee181267b":"daGd1","7b3f73f9ab7b2b6a":"9C6Ip"}],daGd1:[function(e,t,r){!function(t,r){"use strict";function n(e,t){if(!e)throw Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.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"))}"object"==typeof t?t.exports=a:r.BN=a,a.BN=a,a.wordSize=26;try{f="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("a4b3a214327293bc").Buffer}catch(e){}function s(e,t){var r=e.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function o(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function c(e,t,r,n){for(var i=0,a=Math.min(e.length,r),s=t;s=49?i+=o-49+10:o>=17?i+=o-17+10:i+=o}return i}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;s-=3)a=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[i]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,i++);else if("le"===r)for(s=0,i=0;s>>26-o&67108863,(o+=24)>=26&&(o-=26,i++);return this.strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n,i=0;i=t;i-=2)n=o(e,t,i)<=18?(a-=18,s+=1,this.words[s]|=n>>>26):a+=8;else for(i=(e.length-t)%2==0?t+1:t;i=18?(a-=18,s+=1,this.words[s]|=n>>>26):a+=8;this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var a=e.length-r,s=a%n,o=Math.min(a,a-s)+r,f=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var f,u=["","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"],d=[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],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],a=0|t.words[0],s=i*a,o=67108863&s,c=s/67108864|0;r.words[0]=o;for(var f=1;f>>26,d=67108863&c,l=Math.min(f,t.length-1),h=Math.max(0,f-e.length+1);h<=l;h++){var p=f-h|0;u+=(s=(i=0|e.words[p])*(a=0|t.words[h])+d)/67108864|0,d=67108863&s}r.words[f]=0|d,c=0|u}return 0!==c?r.words[f]=0|c:r.length--,r.strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,i=0,a=0,s=0;s>>24-i&16777215)||s!==this.length-1?u[6-c.length]+c+r:c+r,(i+=2)>=26&&(i-=26,s--)}for(0!==a&&(r=a.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 f=d[e],h=l[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?m+r:u[f-m.length]+m+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")},a.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},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return n(void 0!==f),this.toArrayLike(f,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var i,a,s=this.byteLength(),o=r||Math.max(1,s);n(s<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var c=new e(o),f=this.clone();if("le"===t){for(a=0;!f.isZero();a++)i=f.andln(255),f.iushrn(8),c[a]=i;for(;a=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},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.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)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,a=0;a>>26;for(;0!==i&&a>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var a=0,s=0;s>26,this.words[s]=67108863&n;for(;0!==a&&s>26,this.words[s]=67108863&n;if(0===a&&s>>13,h=0|s[1],p=8191&h,m=h>>>13,b=0|s[2],g=8191&b,y=b>>>13,v=0|s[3],w=8191&v,_=v>>>13,E=0|s[4],A=8191&E,M=E>>>13,S=0|s[5],x=8191&S,T=S>>>13,k=0|s[6],R=8191&k,I=k>>>13,C=0|s[7],P=8191&C,O=C>>>13,N=0|s[8],j=8191&N,B=N>>>13,L=0|s[9],D=8191&L,U=L>>>13,F=0|o[0],q=8191&F,z=F>>>13,K=0|o[1],H=8191&K,V=K>>>13,W=0|o[2],G=8191&W,J=W>>>13,Z=0|o[3],$=8191&Z,X=Z>>>13,Y=0|o[4],Q=8191&Y,ee=Y>>>13,et=0|o[5],er=8191&et,en=et>>>13,ei=0|o[6],ea=8191&ei,es=ei>>>13,eo=0|o[7],ec=8191&eo,ef=eo>>>13,eu=0|o[8],ed=8191&eu,el=eu>>>13,eh=0|o[9],ep=8191&eh,em=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var eb=(f+(n=Math.imul(d,q))|0)+((8191&(i=(i=Math.imul(d,z))+Math.imul(l,q)|0))<<13)|0;f=((a=Math.imul(l,z))+(i>>>13)|0)+(eb>>>26)|0,eb&=67108863,n=Math.imul(p,q),i=(i=Math.imul(p,z))+Math.imul(m,q)|0,a=Math.imul(m,z);var eg=(f+(n=n+Math.imul(d,H)|0)|0)+((8191&(i=(i=i+Math.imul(d,V)|0)+Math.imul(l,H)|0))<<13)|0;f=((a=a+Math.imul(l,V)|0)+(i>>>13)|0)+(eg>>>26)|0,eg&=67108863,n=Math.imul(g,q),i=(i=Math.imul(g,z))+Math.imul(y,q)|0,a=Math.imul(y,z),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,H)|0,a=a+Math.imul(m,V)|0;var ey=(f+(n=n+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,J)|0)+Math.imul(l,G)|0))<<13)|0;f=((a=a+Math.imul(l,J)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=67108863,n=Math.imul(w,q),i=(i=Math.imul(w,z))+Math.imul(_,q)|0,a=Math.imul(_,z),n=n+Math.imul(g,H)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,V)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,G)|0,a=a+Math.imul(m,J)|0;var ev=(f+(n=n+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(l,$)|0))<<13)|0;f=((a=a+Math.imul(l,X)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=67108863,n=Math.imul(A,q),i=(i=Math.imul(A,z))+Math.imul(M,q)|0,a=Math.imul(M,z),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,V)|0,n=n+Math.imul(g,G)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,J)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,$)|0,a=a+Math.imul(m,X)|0;var ew=(f+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(l,Q)|0))<<13)|0;f=((a=a+Math.imul(l,ee)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=67108863,n=Math.imul(x,q),i=(i=Math.imul(x,z))+Math.imul(T,q)|0,a=Math.imul(T,z),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(M,H)|0,a=a+Math.imul(M,V)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,G)|0,a=a+Math.imul(_,J)|0,n=n+Math.imul(g,$)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(y,$)|0,a=a+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,a=a+Math.imul(m,ee)|0;var e_=(f+(n=n+Math.imul(d,er)|0)|0)+((8191&(i=(i=i+Math.imul(d,en)|0)+Math.imul(l,er)|0))<<13)|0;f=((a=a+Math.imul(l,en)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,z))+Math.imul(I,q)|0,a=Math.imul(I,z),n=n+Math.imul(x,H)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(T,H)|0,a=a+Math.imul(T,V)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(M,G)|0,a=a+Math.imul(M,J)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(_,$)|0,a=a+Math.imul(_,X)|0,n=n+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(y,Q)|0,a=a+Math.imul(y,ee)|0,n=n+Math.imul(p,er)|0,i=(i=i+Math.imul(p,en)|0)+Math.imul(m,er)|0,a=a+Math.imul(m,en)|0;var eE=(f+(n=n+Math.imul(d,ea)|0)|0)+((8191&(i=(i=i+Math.imul(d,es)|0)+Math.imul(l,ea)|0))<<13)|0;f=((a=a+Math.imul(l,es)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=67108863,n=Math.imul(P,q),i=(i=Math.imul(P,z))+Math.imul(O,q)|0,a=Math.imul(O,z),n=n+Math.imul(R,H)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,V)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(T,G)|0,a=a+Math.imul(T,J)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(M,$)|0,a=a+Math.imul(M,X)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,ee)|0,n=n+Math.imul(g,er)|0,i=(i=i+Math.imul(g,en)|0)+Math.imul(y,er)|0,a=a+Math.imul(y,en)|0,n=n+Math.imul(p,ea)|0,i=(i=i+Math.imul(p,es)|0)+Math.imul(m,ea)|0,a=a+Math.imul(m,es)|0;var eA=(f+(n=n+Math.imul(d,ec)|0)|0)+((8191&(i=(i=i+Math.imul(d,ef)|0)+Math.imul(l,ec)|0))<<13)|0;f=((a=a+Math.imul(l,ef)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=67108863,n=Math.imul(j,q),i=(i=Math.imul(j,z))+Math.imul(B,q)|0,a=Math.imul(B,z),n=n+Math.imul(P,H)|0,i=(i=i+Math.imul(P,V)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,V)|0,n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(I,G)|0,a=a+Math.imul(I,J)|0,n=n+Math.imul(x,$)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(T,$)|0,a=a+Math.imul(T,X)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(M,Q)|0,a=a+Math.imul(M,ee)|0,n=n+Math.imul(w,er)|0,i=(i=i+Math.imul(w,en)|0)+Math.imul(_,er)|0,a=a+Math.imul(_,en)|0,n=n+Math.imul(g,ea)|0,i=(i=i+Math.imul(g,es)|0)+Math.imul(y,ea)|0,a=a+Math.imul(y,es)|0,n=n+Math.imul(p,ec)|0,i=(i=i+Math.imul(p,ef)|0)+Math.imul(m,ec)|0,a=a+Math.imul(m,ef)|0;var eM=(f+(n=n+Math.imul(d,ed)|0)|0)+((8191&(i=(i=i+Math.imul(d,el)|0)+Math.imul(l,ed)|0))<<13)|0;f=((a=a+Math.imul(l,el)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,z))+Math.imul(U,q)|0,a=Math.imul(U,z),n=n+Math.imul(j,H)|0,i=(i=i+Math.imul(j,V)|0)+Math.imul(B,H)|0,a=a+Math.imul(B,V)|0,n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(O,G)|0,a=a+Math.imul(O,J)|0,n=n+Math.imul(R,$)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(I,$)|0,a=a+Math.imul(I,X)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(T,Q)|0,a=a+Math.imul(T,ee)|0,n=n+Math.imul(A,er)|0,i=(i=i+Math.imul(A,en)|0)+Math.imul(M,er)|0,a=a+Math.imul(M,en)|0,n=n+Math.imul(w,ea)|0,i=(i=i+Math.imul(w,es)|0)+Math.imul(_,ea)|0,a=a+Math.imul(_,es)|0,n=n+Math.imul(g,ec)|0,i=(i=i+Math.imul(g,ef)|0)+Math.imul(y,ec)|0,a=a+Math.imul(y,ef)|0,n=n+Math.imul(p,ed)|0,i=(i=i+Math.imul(p,el)|0)+Math.imul(m,ed)|0,a=a+Math.imul(m,el)|0;var eS=(f+(n=n+Math.imul(d,ep)|0)|0)+((8191&(i=(i=i+Math.imul(d,em)|0)+Math.imul(l,ep)|0))<<13)|0;f=((a=a+Math.imul(l,em)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=67108863,n=Math.imul(D,H),i=(i=Math.imul(D,V))+Math.imul(U,H)|0,a=Math.imul(U,V),n=n+Math.imul(j,G)|0,i=(i=i+Math.imul(j,J)|0)+Math.imul(B,G)|0,a=a+Math.imul(B,J)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(O,$)|0,a=a+Math.imul(O,X)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(I,Q)|0,a=a+Math.imul(I,ee)|0,n=n+Math.imul(x,er)|0,i=(i=i+Math.imul(x,en)|0)+Math.imul(T,er)|0,a=a+Math.imul(T,en)|0,n=n+Math.imul(A,ea)|0,i=(i=i+Math.imul(A,es)|0)+Math.imul(M,ea)|0,a=a+Math.imul(M,es)|0,n=n+Math.imul(w,ec)|0,i=(i=i+Math.imul(w,ef)|0)+Math.imul(_,ec)|0,a=a+Math.imul(_,ef)|0,n=n+Math.imul(g,ed)|0,i=(i=i+Math.imul(g,el)|0)+Math.imul(y,ed)|0,a=a+Math.imul(y,el)|0;var ex=(f+(n=n+Math.imul(p,ep)|0)|0)+((8191&(i=(i=i+Math.imul(p,em)|0)+Math.imul(m,ep)|0))<<13)|0;f=((a=a+Math.imul(m,em)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=67108863,n=Math.imul(D,G),i=(i=Math.imul(D,J))+Math.imul(U,G)|0,a=Math.imul(U,J),n=n+Math.imul(j,$)|0,i=(i=i+Math.imul(j,X)|0)+Math.imul(B,$)|0,a=a+Math.imul(B,X)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,n=n+Math.imul(R,er)|0,i=(i=i+Math.imul(R,en)|0)+Math.imul(I,er)|0,a=a+Math.imul(I,en)|0,n=n+Math.imul(x,ea)|0,i=(i=i+Math.imul(x,es)|0)+Math.imul(T,ea)|0,a=a+Math.imul(T,es)|0,n=n+Math.imul(A,ec)|0,i=(i=i+Math.imul(A,ef)|0)+Math.imul(M,ec)|0,a=a+Math.imul(M,ef)|0,n=n+Math.imul(w,ed)|0,i=(i=i+Math.imul(w,el)|0)+Math.imul(_,ed)|0,a=a+Math.imul(_,el)|0;var eT=(f+(n=n+Math.imul(g,ep)|0)|0)+((8191&(i=(i=i+Math.imul(g,em)|0)+Math.imul(y,ep)|0))<<13)|0;f=((a=a+Math.imul(y,em)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,X))+Math.imul(U,$)|0,a=Math.imul(U,X),n=n+Math.imul(j,Q)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(B,Q)|0,a=a+Math.imul(B,ee)|0,n=n+Math.imul(P,er)|0,i=(i=i+Math.imul(P,en)|0)+Math.imul(O,er)|0,a=a+Math.imul(O,en)|0,n=n+Math.imul(R,ea)|0,i=(i=i+Math.imul(R,es)|0)+Math.imul(I,ea)|0,a=a+Math.imul(I,es)|0,n=n+Math.imul(x,ec)|0,i=(i=i+Math.imul(x,ef)|0)+Math.imul(T,ec)|0,a=a+Math.imul(T,ef)|0,n=n+Math.imul(A,ed)|0,i=(i=i+Math.imul(A,el)|0)+Math.imul(M,ed)|0,a=a+Math.imul(M,el)|0;var ek=(f+(n=n+Math.imul(w,ep)|0)|0)+((8191&(i=(i=i+Math.imul(w,em)|0)+Math.imul(_,ep)|0))<<13)|0;f=((a=a+Math.imul(_,em)|0)+(i>>>13)|0)+(ek>>>26)|0,ek&=67108863,n=Math.imul(D,Q),i=(i=Math.imul(D,ee))+Math.imul(U,Q)|0,a=Math.imul(U,ee),n=n+Math.imul(j,er)|0,i=(i=i+Math.imul(j,en)|0)+Math.imul(B,er)|0,a=a+Math.imul(B,en)|0,n=n+Math.imul(P,ea)|0,i=(i=i+Math.imul(P,es)|0)+Math.imul(O,ea)|0,a=a+Math.imul(O,es)|0,n=n+Math.imul(R,ec)|0,i=(i=i+Math.imul(R,ef)|0)+Math.imul(I,ec)|0,a=a+Math.imul(I,ef)|0,n=n+Math.imul(x,ed)|0,i=(i=i+Math.imul(x,el)|0)+Math.imul(T,ed)|0,a=a+Math.imul(T,el)|0;var eR=(f+(n=n+Math.imul(A,ep)|0)|0)+((8191&(i=(i=i+Math.imul(A,em)|0)+Math.imul(M,ep)|0))<<13)|0;f=((a=a+Math.imul(M,em)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=67108863,n=Math.imul(D,er),i=(i=Math.imul(D,en))+Math.imul(U,er)|0,a=Math.imul(U,en),n=n+Math.imul(j,ea)|0,i=(i=i+Math.imul(j,es)|0)+Math.imul(B,ea)|0,a=a+Math.imul(B,es)|0,n=n+Math.imul(P,ec)|0,i=(i=i+Math.imul(P,ef)|0)+Math.imul(O,ec)|0,a=a+Math.imul(O,ef)|0,n=n+Math.imul(R,ed)|0,i=(i=i+Math.imul(R,el)|0)+Math.imul(I,ed)|0,a=a+Math.imul(I,el)|0;var eI=(f+(n=n+Math.imul(x,ep)|0)|0)+((8191&(i=(i=i+Math.imul(x,em)|0)+Math.imul(T,ep)|0))<<13)|0;f=((a=a+Math.imul(T,em)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=67108863,n=Math.imul(D,ea),i=(i=Math.imul(D,es))+Math.imul(U,ea)|0,a=Math.imul(U,es),n=n+Math.imul(j,ec)|0,i=(i=i+Math.imul(j,ef)|0)+Math.imul(B,ec)|0,a=a+Math.imul(B,ef)|0,n=n+Math.imul(P,ed)|0,i=(i=i+Math.imul(P,el)|0)+Math.imul(O,ed)|0,a=a+Math.imul(O,el)|0;var eC=(f+(n=n+Math.imul(R,ep)|0)|0)+((8191&(i=(i=i+Math.imul(R,em)|0)+Math.imul(I,ep)|0))<<13)|0;f=((a=a+Math.imul(I,em)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=67108863,n=Math.imul(D,ec),i=(i=Math.imul(D,ef))+Math.imul(U,ec)|0,a=Math.imul(U,ef),n=n+Math.imul(j,ed)|0,i=(i=i+Math.imul(j,el)|0)+Math.imul(B,ed)|0,a=a+Math.imul(B,el)|0;var eP=(f+(n=n+Math.imul(P,ep)|0)|0)+((8191&(i=(i=i+Math.imul(P,em)|0)+Math.imul(O,ep)|0))<<13)|0;f=((a=a+Math.imul(O,em)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=67108863,n=Math.imul(D,ed),i=(i=Math.imul(D,el))+Math.imul(U,ed)|0,a=Math.imul(U,el);var eO=(f+(n=n+Math.imul(j,ep)|0)|0)+((8191&(i=(i=i+Math.imul(j,em)|0)+Math.imul(B,ep)|0))<<13)|0;f=((a=a+Math.imul(B,em)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=67108863;var eN=(f+(n=Math.imul(D,ep))|0)+((8191&(i=(i=Math.imul(D,em))+Math.imul(U,ep)|0))<<13)|0;return f=((a=Math.imul(U,em))+(i>>>13)|0)+(eN>>>26)|0,eN&=67108863,c[0]=eb,c[1]=eg,c[2]=ey,c[3]=ev,c[4]=ew,c[5]=e_,c[6]=eE,c[7]=eA,c[8]=eM,c[9]=eS,c[10]=ex,c[11]=eT,c[12]=ek,c[13]=eR,c[14]=eI,c[15]=eC,c[16]=eP,c[17]=eO,c[18]=eN,0!==f&&(c[19]=f,r.length++),r};function m(e,t,r){return new b().mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(p=h),a.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):r<63?h(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,a=0;a>>26)|0)>>>26,s&=67108863}r.words[a]=o,n=s,s=i}return 0!==n?r.words[a]=n:r.length--,r.strip()}(this,e,t):m(this,e,t)},b.prototype.makeRBT=function(e){for(var t=Array(e),r=a.prototype._countBits(e)-1,n=0;n>=1;return n},b.prototype.permute=function(e,t,r,n,i,a){for(var s=0;s>>=1)i++;return 1<>>=13,r[2*s+1]=8191&a,a>>>=13;for(s=2*t;s>=26,t+=(i/67108864|0)+(a>>>26),this.words[r]=67108863&a}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>i}return t}(e);if(0===t.length)return new a(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,a=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var i,a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<s)for(this.length-=s,c=0;c=0&&(0!==f||c>=i);c--){var u=0|this.words[c];this.words[c]=f<<26-a|u>>>a,f=u&o}return r&&0!==f&&(r.words[r.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return!(this.length<=r)&&!!(this.words[r]&1<=0);var t=e%26,r=(e-t)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==t&&r++,this.length=Math.min(r,this.length),0!==t&&(this.words[this.length-1]&=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},a.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[i+r]=67108863&a}for(;i>26,this.words[i+r]=67108863&a;if(0===o)return this.strip();for(n(-1===o),o=0,i=0;i>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),s=e,o=0|s.words[s.length-1];0!=(n=26-this._countBits(o))&&(s=s.ushln(n),i.iushln(n),o=0|s.words[s.length-1]);var c=i.length-s.length;if("mod"!==t){(r=new a(null)).length=c+1,r.words=Array(r.length);for(var f=0;f=0;d--){var l=(0|i.words[s.length+d])*67108864+(0|i.words[s.length+d-1]);for(l=Math.min(l/o|0,67108863),i._ishlnsubmul(s,l,d);0!==i.negative;)l--,i.negative=0,i._ishlnsubmul(s,1,d),i.isZero()||(i.negative^=1);r&&(r.words[d]=l)}return r&&r.strip(),i.strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},a.prototype.divmod=function(e,t,r){var i,s,o;return(n(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(i=o.div.neg()),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:i,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(i=o.div.neg()),{div:i,mod:o.mod}):(this.negative&e.negative)!=0?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:o.div,mod:s}):e.length>this.length||0>this.cmp(e)?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.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),i=e.andln(1),a=r.cmp(n);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){n(e<=67108863);for(var t=67108864%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},a.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.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 i=new a(1),s=new a(0),o=new a(0),c=new a(1),f=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++f;for(var u=r.clone(),d=t.clone();!t.isZero();){for(var l=0,h=1;(t.words[0]&h)==0&&l<26;++l,h<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(u),s.isub(d)),i.iushrn(1),s.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(o.isOdd()||c.isOdd())&&(o.iadd(u),c.isub(d)),o.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(o),s.isub(c)):(r.isub(t),o.isub(i),c.isub(s))}return{a:o,b:c,gcd:r.iushln(f)}},a.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new a(1),o=new a(0),c=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var f=0,u=1;(r.words[0]&u)==0&&f<26;++f,u<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var d=0,l=1;(i.words[0]&l)==0&&d<26;++d,l<<=1);if(d>0)for(i.iushrn(d);d-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);r.cmp(i)>=0?(r.isub(i),s.isub(o)):(i.isub(r),o.isub(s))}return 0>(t=0===r.cmpn(1)?s:o).cmpn(0)&&t.iadd(e),t},a.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 i=t.cmp(r);if(i<0){var a=t;t=r,r=a}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new A(e)},a.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)},a.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"==typeof e){var t=a._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 M(e){A.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(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)}y.prototype._tmp=function(){var e=new a(null);return e.words=Array(Math.ceil(this.n/13)),e},y.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},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},i(v,y),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,i=a}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(g[e])return g[e];if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new _;else if("p25519"===e)t=new E;else throw Error("Unknown prime "+e);return g[e]=t,t},A.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},A.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},A.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);n(!i.isZero());var o=new a(1).toRed(this),c=o.redNeg(),f=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,f).cmp(c);)u.redIAdd(c);for(var d=this.pow(u,i),l=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=s;0!==h.cmp(o);){for(var m=h,b=0;0!==m.cmp(o);b++)m=m.redSqr();n(b=0;n--){for(var f=t.words[n],u=c-1;u>=0;u--){var d=f>>u&1;if(i!==r[0]&&(i=this.sqr(i)),0===d&&0===s){o=0;continue}s<<=1,s|=d,(4==++o||0===n&&0===u)&&(i=this.mul(i,r[s]),o=0,s=0)}c=26}return i},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new M(e)},i(M,A),M.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},M.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},M.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),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},M.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):0>i.cmpn(0)&&(s=i.iadd(this.m)),s._forceRed(this)},M.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)},{a4b3a214327293bc:"3eno3"}],"9C6Ip":[function(e,t,r){var n=e("31d279a7646d17e9"),i=e("1ed277e13aa258c6");function a(e){this.rand=e||new i.Rand}t.exports=a,a.create=function(e){return new a(e)},a.prototype._randbelow=function(e){var t=Math.ceil(e.bitLength()/8);do var r=new n(this.rand.generate(t));while(r.cmp(e)>=0)return r},a.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},a.prototype.test=function(e,t,r){var i=e.bitLength(),a=n.mont(e),s=new n(1).toRed(a);t||(t=Math.max(1,i/48|0));for(var o=e.subn(1),c=0;!o.testn(c);c++);for(var f=e.shrn(c),u=o.toRed(a);t>0;t--){var d=this._randrange(new n(2),o);r&&r(d);var l=d.toRed(a).redPow(f);if(0!==l.cmp(s)&&0!==l.cmp(u)){for(var h=1;h0;t--){var u=this._randrange(new n(2),s),d=e.gcd(u);if(0!==d.cmpn(1))return d;var l=u.toRed(i).redPow(c);if(0!==l.cmp(a)&&0!==l.cmp(f)){for(var h=1;h=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function o(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function c(e,t,r,n){for(var i=0,a=Math.min(e.length,r),s=t;s=49?i+=o-49+10:o>=17?i+=o-17+10:i+=o}return i}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;s-=3)a=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[i]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,i++);else if("le"===r)for(s=0,i=0;s>>26-o&67108863,(o+=24)>=26&&(o-=26,i++);return this.strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n,i=0;i=t;i-=2)n=o(e,t,i)<=18?(a-=18,s+=1,this.words[s]|=n>>>26):a+=8;else for(i=(e.length-t)%2==0?t+1:t;i=18?(a-=18,s+=1,this.words[s]|=n>>>26):a+=8;this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var a=e.length-r,s=a%n,o=Math.min(a,a-s)+r,f=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var f,u=["","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"],d=[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],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],a=0|t.words[0],s=i*a,o=67108863&s,c=s/67108864|0;r.words[0]=o;for(var f=1;f>>26,d=67108863&c,l=Math.min(f,t.length-1),h=Math.max(0,f-e.length+1);h<=l;h++){var p=f-h|0;u+=(s=(i=0|e.words[p])*(a=0|t.words[h])+d)/67108864|0,d=67108863&s}r.words[f]=0|d,c=0|u}return 0!==c?r.words[f]=0|c:r.length--,r.strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,i=0,a=0,s=0;s>>24-i&16777215)||s!==this.length-1?u[6-c.length]+c+r:c+r,(i+=2)>=26&&(i-=26,s--)}for(0!==a&&(r=a.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 f=d[e],h=l[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?m+r:u[f-m.length]+m+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")},a.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},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return n(void 0!==f),this.toArrayLike(f,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var i,a,s=this.byteLength(),o=r||Math.max(1,s);n(s<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var c=new e(o),f=this.clone();if("le"===t){for(a=0;!f.isZero();a++)i=f.andln(255),f.iushrn(8),c[a]=i;for(;a=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},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.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)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,a=0;a>>26;for(;0!==i&&a>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var a=0,s=0;s>26,this.words[s]=67108863&n;for(;0!==a&&s>26,this.words[s]=67108863&n;if(0===a&&s>>13,h=0|s[1],p=8191&h,m=h>>>13,b=0|s[2],g=8191&b,y=b>>>13,v=0|s[3],w=8191&v,_=v>>>13,E=0|s[4],A=8191&E,M=E>>>13,S=0|s[5],x=8191&S,T=S>>>13,k=0|s[6],R=8191&k,I=k>>>13,C=0|s[7],P=8191&C,O=C>>>13,N=0|s[8],j=8191&N,B=N>>>13,L=0|s[9],D=8191&L,U=L>>>13,F=0|o[0],q=8191&F,z=F>>>13,K=0|o[1],H=8191&K,V=K>>>13,W=0|o[2],G=8191&W,J=W>>>13,Z=0|o[3],$=8191&Z,X=Z>>>13,Y=0|o[4],Q=8191&Y,ee=Y>>>13,et=0|o[5],er=8191&et,en=et>>>13,ei=0|o[6],ea=8191&ei,es=ei>>>13,eo=0|o[7],ec=8191&eo,ef=eo>>>13,eu=0|o[8],ed=8191&eu,el=eu>>>13,eh=0|o[9],ep=8191&eh,em=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var eb=(f+(n=Math.imul(d,q))|0)+((8191&(i=(i=Math.imul(d,z))+Math.imul(l,q)|0))<<13)|0;f=((a=Math.imul(l,z))+(i>>>13)|0)+(eb>>>26)|0,eb&=67108863,n=Math.imul(p,q),i=(i=Math.imul(p,z))+Math.imul(m,q)|0,a=Math.imul(m,z);var eg=(f+(n=n+Math.imul(d,H)|0)|0)+((8191&(i=(i=i+Math.imul(d,V)|0)+Math.imul(l,H)|0))<<13)|0;f=((a=a+Math.imul(l,V)|0)+(i>>>13)|0)+(eg>>>26)|0,eg&=67108863,n=Math.imul(g,q),i=(i=Math.imul(g,z))+Math.imul(y,q)|0,a=Math.imul(y,z),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,H)|0,a=a+Math.imul(m,V)|0;var ey=(f+(n=n+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,J)|0)+Math.imul(l,G)|0))<<13)|0;f=((a=a+Math.imul(l,J)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=67108863,n=Math.imul(w,q),i=(i=Math.imul(w,z))+Math.imul(_,q)|0,a=Math.imul(_,z),n=n+Math.imul(g,H)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,V)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,G)|0,a=a+Math.imul(m,J)|0;var ev=(f+(n=n+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(l,$)|0))<<13)|0;f=((a=a+Math.imul(l,X)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=67108863,n=Math.imul(A,q),i=(i=Math.imul(A,z))+Math.imul(M,q)|0,a=Math.imul(M,z),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,V)|0,n=n+Math.imul(g,G)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,J)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,$)|0,a=a+Math.imul(m,X)|0;var ew=(f+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(l,Q)|0))<<13)|0;f=((a=a+Math.imul(l,ee)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=67108863,n=Math.imul(x,q),i=(i=Math.imul(x,z))+Math.imul(T,q)|0,a=Math.imul(T,z),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(M,H)|0,a=a+Math.imul(M,V)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,G)|0,a=a+Math.imul(_,J)|0,n=n+Math.imul(g,$)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(y,$)|0,a=a+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,a=a+Math.imul(m,ee)|0;var e_=(f+(n=n+Math.imul(d,er)|0)|0)+((8191&(i=(i=i+Math.imul(d,en)|0)+Math.imul(l,er)|0))<<13)|0;f=((a=a+Math.imul(l,en)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,z))+Math.imul(I,q)|0,a=Math.imul(I,z),n=n+Math.imul(x,H)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(T,H)|0,a=a+Math.imul(T,V)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(M,G)|0,a=a+Math.imul(M,J)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(_,$)|0,a=a+Math.imul(_,X)|0,n=n+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(y,Q)|0,a=a+Math.imul(y,ee)|0,n=n+Math.imul(p,er)|0,i=(i=i+Math.imul(p,en)|0)+Math.imul(m,er)|0,a=a+Math.imul(m,en)|0;var eE=(f+(n=n+Math.imul(d,ea)|0)|0)+((8191&(i=(i=i+Math.imul(d,es)|0)+Math.imul(l,ea)|0))<<13)|0;f=((a=a+Math.imul(l,es)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=67108863,n=Math.imul(P,q),i=(i=Math.imul(P,z))+Math.imul(O,q)|0,a=Math.imul(O,z),n=n+Math.imul(R,H)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,V)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(T,G)|0,a=a+Math.imul(T,J)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(M,$)|0,a=a+Math.imul(M,X)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,ee)|0,n=n+Math.imul(g,er)|0,i=(i=i+Math.imul(g,en)|0)+Math.imul(y,er)|0,a=a+Math.imul(y,en)|0,n=n+Math.imul(p,ea)|0,i=(i=i+Math.imul(p,es)|0)+Math.imul(m,ea)|0,a=a+Math.imul(m,es)|0;var eA=(f+(n=n+Math.imul(d,ec)|0)|0)+((8191&(i=(i=i+Math.imul(d,ef)|0)+Math.imul(l,ec)|0))<<13)|0;f=((a=a+Math.imul(l,ef)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=67108863,n=Math.imul(j,q),i=(i=Math.imul(j,z))+Math.imul(B,q)|0,a=Math.imul(B,z),n=n+Math.imul(P,H)|0,i=(i=i+Math.imul(P,V)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,V)|0,n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(I,G)|0,a=a+Math.imul(I,J)|0,n=n+Math.imul(x,$)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(T,$)|0,a=a+Math.imul(T,X)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(M,Q)|0,a=a+Math.imul(M,ee)|0,n=n+Math.imul(w,er)|0,i=(i=i+Math.imul(w,en)|0)+Math.imul(_,er)|0,a=a+Math.imul(_,en)|0,n=n+Math.imul(g,ea)|0,i=(i=i+Math.imul(g,es)|0)+Math.imul(y,ea)|0,a=a+Math.imul(y,es)|0,n=n+Math.imul(p,ec)|0,i=(i=i+Math.imul(p,ef)|0)+Math.imul(m,ec)|0,a=a+Math.imul(m,ef)|0;var eM=(f+(n=n+Math.imul(d,ed)|0)|0)+((8191&(i=(i=i+Math.imul(d,el)|0)+Math.imul(l,ed)|0))<<13)|0;f=((a=a+Math.imul(l,el)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,z))+Math.imul(U,q)|0,a=Math.imul(U,z),n=n+Math.imul(j,H)|0,i=(i=i+Math.imul(j,V)|0)+Math.imul(B,H)|0,a=a+Math.imul(B,V)|0,n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(O,G)|0,a=a+Math.imul(O,J)|0,n=n+Math.imul(R,$)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(I,$)|0,a=a+Math.imul(I,X)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(T,Q)|0,a=a+Math.imul(T,ee)|0,n=n+Math.imul(A,er)|0,i=(i=i+Math.imul(A,en)|0)+Math.imul(M,er)|0,a=a+Math.imul(M,en)|0,n=n+Math.imul(w,ea)|0,i=(i=i+Math.imul(w,es)|0)+Math.imul(_,ea)|0,a=a+Math.imul(_,es)|0,n=n+Math.imul(g,ec)|0,i=(i=i+Math.imul(g,ef)|0)+Math.imul(y,ec)|0,a=a+Math.imul(y,ef)|0,n=n+Math.imul(p,ed)|0,i=(i=i+Math.imul(p,el)|0)+Math.imul(m,ed)|0,a=a+Math.imul(m,el)|0;var eS=(f+(n=n+Math.imul(d,ep)|0)|0)+((8191&(i=(i=i+Math.imul(d,em)|0)+Math.imul(l,ep)|0))<<13)|0;f=((a=a+Math.imul(l,em)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=67108863,n=Math.imul(D,H),i=(i=Math.imul(D,V))+Math.imul(U,H)|0,a=Math.imul(U,V),n=n+Math.imul(j,G)|0,i=(i=i+Math.imul(j,J)|0)+Math.imul(B,G)|0,a=a+Math.imul(B,J)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(O,$)|0,a=a+Math.imul(O,X)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(I,Q)|0,a=a+Math.imul(I,ee)|0,n=n+Math.imul(x,er)|0,i=(i=i+Math.imul(x,en)|0)+Math.imul(T,er)|0,a=a+Math.imul(T,en)|0,n=n+Math.imul(A,ea)|0,i=(i=i+Math.imul(A,es)|0)+Math.imul(M,ea)|0,a=a+Math.imul(M,es)|0,n=n+Math.imul(w,ec)|0,i=(i=i+Math.imul(w,ef)|0)+Math.imul(_,ec)|0,a=a+Math.imul(_,ef)|0,n=n+Math.imul(g,ed)|0,i=(i=i+Math.imul(g,el)|0)+Math.imul(y,ed)|0,a=a+Math.imul(y,el)|0;var ex=(f+(n=n+Math.imul(p,ep)|0)|0)+((8191&(i=(i=i+Math.imul(p,em)|0)+Math.imul(m,ep)|0))<<13)|0;f=((a=a+Math.imul(m,em)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=67108863,n=Math.imul(D,G),i=(i=Math.imul(D,J))+Math.imul(U,G)|0,a=Math.imul(U,J),n=n+Math.imul(j,$)|0,i=(i=i+Math.imul(j,X)|0)+Math.imul(B,$)|0,a=a+Math.imul(B,X)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,n=n+Math.imul(R,er)|0,i=(i=i+Math.imul(R,en)|0)+Math.imul(I,er)|0,a=a+Math.imul(I,en)|0,n=n+Math.imul(x,ea)|0,i=(i=i+Math.imul(x,es)|0)+Math.imul(T,ea)|0,a=a+Math.imul(T,es)|0,n=n+Math.imul(A,ec)|0,i=(i=i+Math.imul(A,ef)|0)+Math.imul(M,ec)|0,a=a+Math.imul(M,ef)|0,n=n+Math.imul(w,ed)|0,i=(i=i+Math.imul(w,el)|0)+Math.imul(_,ed)|0,a=a+Math.imul(_,el)|0;var eT=(f+(n=n+Math.imul(g,ep)|0)|0)+((8191&(i=(i=i+Math.imul(g,em)|0)+Math.imul(y,ep)|0))<<13)|0;f=((a=a+Math.imul(y,em)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,X))+Math.imul(U,$)|0,a=Math.imul(U,X),n=n+Math.imul(j,Q)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(B,Q)|0,a=a+Math.imul(B,ee)|0,n=n+Math.imul(P,er)|0,i=(i=i+Math.imul(P,en)|0)+Math.imul(O,er)|0,a=a+Math.imul(O,en)|0,n=n+Math.imul(R,ea)|0,i=(i=i+Math.imul(R,es)|0)+Math.imul(I,ea)|0,a=a+Math.imul(I,es)|0,n=n+Math.imul(x,ec)|0,i=(i=i+Math.imul(x,ef)|0)+Math.imul(T,ec)|0,a=a+Math.imul(T,ef)|0,n=n+Math.imul(A,ed)|0,i=(i=i+Math.imul(A,el)|0)+Math.imul(M,ed)|0,a=a+Math.imul(M,el)|0;var ek=(f+(n=n+Math.imul(w,ep)|0)|0)+((8191&(i=(i=i+Math.imul(w,em)|0)+Math.imul(_,ep)|0))<<13)|0;f=((a=a+Math.imul(_,em)|0)+(i>>>13)|0)+(ek>>>26)|0,ek&=67108863,n=Math.imul(D,Q),i=(i=Math.imul(D,ee))+Math.imul(U,Q)|0,a=Math.imul(U,ee),n=n+Math.imul(j,er)|0,i=(i=i+Math.imul(j,en)|0)+Math.imul(B,er)|0,a=a+Math.imul(B,en)|0,n=n+Math.imul(P,ea)|0,i=(i=i+Math.imul(P,es)|0)+Math.imul(O,ea)|0,a=a+Math.imul(O,es)|0,n=n+Math.imul(R,ec)|0,i=(i=i+Math.imul(R,ef)|0)+Math.imul(I,ec)|0,a=a+Math.imul(I,ef)|0,n=n+Math.imul(x,ed)|0,i=(i=i+Math.imul(x,el)|0)+Math.imul(T,ed)|0,a=a+Math.imul(T,el)|0;var eR=(f+(n=n+Math.imul(A,ep)|0)|0)+((8191&(i=(i=i+Math.imul(A,em)|0)+Math.imul(M,ep)|0))<<13)|0;f=((a=a+Math.imul(M,em)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=67108863,n=Math.imul(D,er),i=(i=Math.imul(D,en))+Math.imul(U,er)|0,a=Math.imul(U,en),n=n+Math.imul(j,ea)|0,i=(i=i+Math.imul(j,es)|0)+Math.imul(B,ea)|0,a=a+Math.imul(B,es)|0,n=n+Math.imul(P,ec)|0,i=(i=i+Math.imul(P,ef)|0)+Math.imul(O,ec)|0,a=a+Math.imul(O,ef)|0,n=n+Math.imul(R,ed)|0,i=(i=i+Math.imul(R,el)|0)+Math.imul(I,ed)|0,a=a+Math.imul(I,el)|0;var eI=(f+(n=n+Math.imul(x,ep)|0)|0)+((8191&(i=(i=i+Math.imul(x,em)|0)+Math.imul(T,ep)|0))<<13)|0;f=((a=a+Math.imul(T,em)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=67108863,n=Math.imul(D,ea),i=(i=Math.imul(D,es))+Math.imul(U,ea)|0,a=Math.imul(U,es),n=n+Math.imul(j,ec)|0,i=(i=i+Math.imul(j,ef)|0)+Math.imul(B,ec)|0,a=a+Math.imul(B,ef)|0,n=n+Math.imul(P,ed)|0,i=(i=i+Math.imul(P,el)|0)+Math.imul(O,ed)|0,a=a+Math.imul(O,el)|0;var eC=(f+(n=n+Math.imul(R,ep)|0)|0)+((8191&(i=(i=i+Math.imul(R,em)|0)+Math.imul(I,ep)|0))<<13)|0;f=((a=a+Math.imul(I,em)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=67108863,n=Math.imul(D,ec),i=(i=Math.imul(D,ef))+Math.imul(U,ec)|0,a=Math.imul(U,ef),n=n+Math.imul(j,ed)|0,i=(i=i+Math.imul(j,el)|0)+Math.imul(B,ed)|0,a=a+Math.imul(B,el)|0;var eP=(f+(n=n+Math.imul(P,ep)|0)|0)+((8191&(i=(i=i+Math.imul(P,em)|0)+Math.imul(O,ep)|0))<<13)|0;f=((a=a+Math.imul(O,em)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=67108863,n=Math.imul(D,ed),i=(i=Math.imul(D,el))+Math.imul(U,ed)|0,a=Math.imul(U,el);var eO=(f+(n=n+Math.imul(j,ep)|0)|0)+((8191&(i=(i=i+Math.imul(j,em)|0)+Math.imul(B,ep)|0))<<13)|0;f=((a=a+Math.imul(B,em)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=67108863;var eN=(f+(n=Math.imul(D,ep))|0)+((8191&(i=(i=Math.imul(D,em))+Math.imul(U,ep)|0))<<13)|0;return f=((a=Math.imul(U,em))+(i>>>13)|0)+(eN>>>26)|0,eN&=67108863,c[0]=eb,c[1]=eg,c[2]=ey,c[3]=ev,c[4]=ew,c[5]=e_,c[6]=eE,c[7]=eA,c[8]=eM,c[9]=eS,c[10]=ex,c[11]=eT,c[12]=ek,c[13]=eR,c[14]=eI,c[15]=eC,c[16]=eP,c[17]=eO,c[18]=eN,0!==f&&(c[19]=f,r.length++),r};function m(e,t,r){return new b().mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(p=h),a.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):r<63?h(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,a=0;a>>26)|0)>>>26,s&=67108863}r.words[a]=o,n=s,s=i}return 0!==n?r.words[a]=n:r.length--,r.strip()}(this,e,t):m(this,e,t)},b.prototype.makeRBT=function(e){for(var t=Array(e),r=a.prototype._countBits(e)-1,n=0;n>=1;return n},b.prototype.permute=function(e,t,r,n,i,a){for(var s=0;s>>=1)i++;return 1<>>=13,r[2*s+1]=8191&a,a>>>=13;for(s=2*t;s>=26,t+=(i/67108864|0)+(a>>>26),this.words[r]=67108863&a}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>i}return t}(e);if(0===t.length)return new a(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,a=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var i,a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<s)for(this.length-=s,c=0;c=0&&(0!==f||c>=i);c--){var u=0|this.words[c];this.words[c]=f<<26-a|u>>>a,f=u&o}return r&&0!==f&&(r.words[r.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return!(this.length<=r)&&!!(this.words[r]&1<=0);var t=e%26,r=(e-t)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==t&&r++,this.length=Math.min(r,this.length),0!==t&&(this.words[this.length-1]&=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},a.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[i+r]=67108863&a}for(;i>26,this.words[i+r]=67108863&a;if(0===o)return this.strip();for(n(-1===o),o=0,i=0;i>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),s=e,o=0|s.words[s.length-1];0!=(n=26-this._countBits(o))&&(s=s.ushln(n),i.iushln(n),o=0|s.words[s.length-1]);var c=i.length-s.length;if("mod"!==t){(r=new a(null)).length=c+1,r.words=Array(r.length);for(var f=0;f=0;d--){var l=(0|i.words[s.length+d])*67108864+(0|i.words[s.length+d-1]);for(l=Math.min(l/o|0,67108863),i._ishlnsubmul(s,l,d);0!==i.negative;)l--,i.negative=0,i._ishlnsubmul(s,1,d),i.isZero()||(i.negative^=1);r&&(r.words[d]=l)}return r&&r.strip(),i.strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},a.prototype.divmod=function(e,t,r){var i,s,o;return(n(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(i=o.div.neg()),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:i,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(i=o.div.neg()),{div:i,mod:o.mod}):(this.negative&e.negative)!=0?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:o.div,mod:s}):e.length>this.length||0>this.cmp(e)?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.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),i=e.andln(1),a=r.cmp(n);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){n(e<=67108863);for(var t=67108864%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},a.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.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 i=new a(1),s=new a(0),o=new a(0),c=new a(1),f=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++f;for(var u=r.clone(),d=t.clone();!t.isZero();){for(var l=0,h=1;(t.words[0]&h)==0&&l<26;++l,h<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(u),s.isub(d)),i.iushrn(1),s.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(o.isOdd()||c.isOdd())&&(o.iadd(u),c.isub(d)),o.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(o),s.isub(c)):(r.isub(t),o.isub(i),c.isub(s))}return{a:o,b:c,gcd:r.iushln(f)}},a.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new a(1),o=new a(0),c=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var f=0,u=1;(r.words[0]&u)==0&&f<26;++f,u<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var d=0,l=1;(i.words[0]&l)==0&&d<26;++d,l<<=1);if(d>0)for(i.iushrn(d);d-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);r.cmp(i)>=0?(r.isub(i),s.isub(o)):(i.isub(r),o.isub(s))}return 0>(t=0===r.cmpn(1)?s:o).cmpn(0)&&t.iadd(e),t},a.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 i=t.cmp(r);if(i<0){var a=t;t=r,r=a}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new A(e)},a.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)},a.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"==typeof e){var t=a._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 M(e){A.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(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)}y.prototype._tmp=function(){var e=new a(null);return e.words=Array(Math.ceil(this.n/13)),e},y.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},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},i(v,y),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,i=a}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(g[e])return g[e];if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new _;else if("p25519"===e)t=new E;else throw Error("Unknown prime "+e);return g[e]=t,t},A.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},A.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},A.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);n(!i.isZero());var o=new a(1).toRed(this),c=o.redNeg(),f=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,f).cmp(c);)u.redIAdd(c);for(var d=this.pow(u,i),l=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=s;0!==h.cmp(o);){for(var m=h,b=0;0!==m.cmp(o);b++)m=m.redSqr();n(b=0;n--){for(var f=t.words[n],u=c-1;u>=0;u--){var d=f>>u&1;if(i!==r[0]&&(i=this.sqr(i)),0===d&&0===s){o=0;continue}s<<=1,s|=d,(4==++o||0===n&&0===u)&&(i=this.mul(i,r[s]),o=0,s=0)}c=26}return i},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new M(e)},i(M,A),M.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},M.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},M.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),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},M.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):0>i.cmpn(0)&&(s=i.iadd(this.m)),s._forceRed(this)},M.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)},{"1a01f12e7676c433":"3eno3"}],"4r6A7":[function(e,t,r){t.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},{}],jpk3A:[function(e,t,r){var n=e("18c258c24cda4205").Buffer,i=e("6cfaed55db270425"),a=new(e("8bc0d9823ee74460")),s=new i(24),o=new i(11),c=new i(10),f=new i(3),u=new i(7),d=e("dd39d03f4b3404fc"),l=e("e2757e55299a3ebc");function h(e,t){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this._pub=new i(e),this}function p(e,t){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this._priv=new i(e),this}t.exports=b;var m={};function b(e,t,r){this.setGenerator(t),this.__prime=new i(e),this._prime=i.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=h,this.setPrivateKey=p):this._primeCode=8}function g(e,t){var r=new n(e.toArray());return t?r.toString(t):r}Object.defineProperty(b.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r,n=t.toString("hex"),i=[n,e.toString(16)].join("_");if(i in m)return m[i];var l=0;if(e.isEven()||!d.simpleSieve||!d.fermatTest(e)||!a.test(e))return l+=1,"02"===n||"05"===n?l+=8:l+=4,m[i]=l,l;switch(a.test(e.shrn(1))||(l+=2),n){case"02":e.mod(s).cmp(o)&&(l+=8);break;case"05":(r=e.mod(c)).cmp(f)&&r.cmp(u)&&(l+=8);break;default:l+=4}return m[i]=l,l}(this.__prime,this.__gen)),this._primeCode}}),b.prototype.generateKeys=function(){return this._priv||(this._priv=new i(l(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},b.prototype.computeSecret=function(e){var t=(e=(e=new i(e)).toRed(this._prime)).redPow(this._priv).fromRed(),r=new n(t.toArray()),a=this.getPrime();if(r.length0&&r.ishrn(n),r}function l(e,t,r){var a,s;do{for(a=n.alloc(0);8*a.length=0||!t.umod(e.prime1)||!t.umod(e.prime2))return t}function o(e,t){var r,a={blinder:(r=s(t)).toRed(i.mont(t.modulus)).redPow(new i(t.publicExponent)).fromRed(),unblinder:r.invm(t.modulus)},o=t.modulus.byteLength(),c=new i(e).mul(a.blinder).umod(t.modulus),f=c.toRed(i.mont(t.prime1)),u=c.toRed(i.mont(t.prime2)),d=t.coefficient,l=t.prime1,h=t.prime2,p=f.redPow(t.exponent1).fromRed(),m=u.redPow(t.exponent2).fromRed(),b=p.isub(m).imul(d).umod(l).imul(h);return m.iadd(b).imul(a.unblinder).umod(t.modulus).toArrayLike(n,"be",o)}o.getr=s,t.exports=o},{a54d4e6dcf549cd6:"2MMCE","5d911a7c773081c":"lXPno",cfe4d67488897360:"6xAZm"}],"6XduM":[function(e,t,r){var n=e("a33d2f68b0ffe26d"),i=e("c39bbd52d12adb70"),a=e("7247fe0465255c67"),s=e("ea725b5eadc96106"),o=e("aa2a622927353f9f"),c=e("11d61e4bc73f5fdc").Buffer;function f(e){"object"!=typeof e||c.isBuffer(e)||(y=e.passphrase,e=e.key),"string"==typeof e&&(e=c.from(e));var t,r,f,u,d,l,h,p,m,b,g,y,v,w,_=a(e,y),E=_.tag,A=_.data;switch(E){case"CERTIFICATE":w=n.certificate.decode(A,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(w||(w=n.PublicKey.decode(A,"der")),v=w.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(w.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return w.subjectPrivateKey=w.subjectPublicKey,{type:"ec",data:w};case"1.2.840.10040.4.1":return w.algorithm.params.pub_key=n.DSAparam.decode(w.subjectPublicKey.data,"der"),{type:"dsa",data:w.algorithm.params};default:throw Error("unknown key id "+v)}case"ENCRYPTED PRIVATE KEY":t=A=n.EncryptedPrivateKey.decode(A,"der"),r=y,f=t.algorithm.decrypt.kde.kdeparams.salt,u=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10),d=i[t.algorithm.decrypt.cipher.algo.join(".")],l=t.algorithm.decrypt.cipher.iv,h=t.subjectPrivateKey,p=parseInt(d.split("-")[1],10)/8,m=o.pbkdf2Sync(r,f,u,p,"sha1"),b=s.createDecipheriv(d,m,l),(g=[]).push(b.update(h)),g.push(b.final()),A=c.concat(g);case"PRIVATE KEY":switch(v=(w=n.PrivateKey.decode(A,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(w.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:w.algorithm.curve,privateKey:n.ECPrivateKey.decode(w.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return w.algorithm.params.priv_key=n.DSAparam.decode(w.subjectPrivateKey,"der"),{type:"dsa",params:w.algorithm.params};default:throw Error("unknown key id "+v)}case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(A,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(A,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(A,"der")};case"EC PRIVATE KEY":return{curve:(A=n.ECPrivateKey.decode(A,"der")).parameters.value,privateKey:A.privateKey};default:throw Error("unknown key type "+E)}}t.exports=f,f.signature=n.signature},{a33d2f68b0ffe26d:"9szzD",c39bbd52d12adb70:"iAv61","7247fe0465255c67":"1YWr8",ea725b5eadc96106:"jwWGn",aa2a622927353f9f:"lsc2y","11d61e4bc73f5fdc":"6CY3D"}],"9szzD":[function(e,t,r){"use strict";var n=e("821e6411e0aeb10a");r.certificate=e("6bb4fbbd6e2d2384");var i=n.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});r.RSAPrivateKey=i;var a=n.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});r.RSAPublicKey=a;var s=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())});r.PublicKey=s;var o=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),c=n.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(o),this.key("subjectPrivateKey").octstr())});r.PrivateKey=c;var f=n.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});r.EncryptedPrivateKey=f;var u=n.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});r.DSAPrivateKey=u,r.DSAparam=n.define("DSAparam",function(){this.int()});var d=n.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(l),this.key("publicKey").optional().explicit(1).bitstr())});r.ECPrivateKey=d;var l=n.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});r.signature=n.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},{"821e6411e0aeb10a":"cjdy0","6bb4fbbd6e2d2384":"ebnNE"}],cjdy0:[function(e,t,r){"use strict";r.bignum=e("b4f67f473458f037"),r.define=e("3a96ab8454f69498").define,r.base=e("82a96f1d67e1a13d"),r.constants=e("f666a445bd64a777"),r.decoders=e("e200f1dc591d286b"),r.encoders=e("5ea4ddb7d1e6fcb9")},{b4f67f473458f037:"e7UCH","3a96ab8454f69498":"3aRbo","82a96f1d67e1a13d":"fa95D",f666a445bd64a777:"5Ywf9",e200f1dc591d286b:"WaCMa","5ea4ddb7d1e6fcb9":"lGnKL"}],e7UCH:[function(e,t,r){!function(t,r){"use strict";function n(e,t){if(!e)throw Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.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"))}"object"==typeof t?t.exports=a:r.BN=a,a.BN=a,a.wordSize=26;try{f="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("7f1ee543ef73731a").Buffer}catch(e){}function s(e,t){var r=e.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function o(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function c(e,t,r,n){for(var i=0,a=Math.min(e.length,r),s=t;s=49?i+=o-49+10:o>=17?i+=o-17+10:i+=o}return i}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;s-=3)a=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[i]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,i++);else if("le"===r)for(s=0,i=0;s>>26-o&67108863,(o+=24)>=26&&(o-=26,i++);return this.strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n,i=0;i=t;i-=2)n=o(e,t,i)<=18?(a-=18,s+=1,this.words[s]|=n>>>26):a+=8;else for(i=(e.length-t)%2==0?t+1:t;i=18?(a-=18,s+=1,this.words[s]|=n>>>26):a+=8;this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var a=e.length-r,s=a%n,o=Math.min(a,a-s)+r,f=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var f,u=["","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"],d=[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],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],a=0|t.words[0],s=i*a,o=67108863&s,c=s/67108864|0;r.words[0]=o;for(var f=1;f>>26,d=67108863&c,l=Math.min(f,t.length-1),h=Math.max(0,f-e.length+1);h<=l;h++){var p=f-h|0;u+=(s=(i=0|e.words[p])*(a=0|t.words[h])+d)/67108864|0,d=67108863&s}r.words[f]=0|d,c=0|u}return 0!==c?r.words[f]=0|c:r.length--,r.strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,i=0,a=0,s=0;s>>24-i&16777215)||s!==this.length-1?u[6-c.length]+c+r:c+r,(i+=2)>=26&&(i-=26,s--)}for(0!==a&&(r=a.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 f=d[e],h=l[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?m+r:u[f-m.length]+m+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")},a.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},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return n(void 0!==f),this.toArrayLike(f,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var i,a,s=this.byteLength(),o=r||Math.max(1,s);n(s<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var c=new e(o),f=this.clone();if("le"===t){for(a=0;!f.isZero();a++)i=f.andln(255),f.iushrn(8),c[a]=i;for(;a=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},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.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)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,a=0;a>>26;for(;0!==i&&a>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var a=0,s=0;s>26,this.words[s]=67108863&n;for(;0!==a&&s>26,this.words[s]=67108863&n;if(0===a&&s>>13,h=0|s[1],p=8191&h,m=h>>>13,b=0|s[2],g=8191&b,y=b>>>13,v=0|s[3],w=8191&v,_=v>>>13,E=0|s[4],A=8191&E,M=E>>>13,S=0|s[5],x=8191&S,T=S>>>13,k=0|s[6],R=8191&k,I=k>>>13,C=0|s[7],P=8191&C,O=C>>>13,N=0|s[8],j=8191&N,B=N>>>13,L=0|s[9],D=8191&L,U=L>>>13,F=0|o[0],q=8191&F,z=F>>>13,K=0|o[1],H=8191&K,V=K>>>13,W=0|o[2],G=8191&W,J=W>>>13,Z=0|o[3],$=8191&Z,X=Z>>>13,Y=0|o[4],Q=8191&Y,ee=Y>>>13,et=0|o[5],er=8191&et,en=et>>>13,ei=0|o[6],ea=8191&ei,es=ei>>>13,eo=0|o[7],ec=8191&eo,ef=eo>>>13,eu=0|o[8],ed=8191&eu,el=eu>>>13,eh=0|o[9],ep=8191&eh,em=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var eb=(f+(n=Math.imul(d,q))|0)+((8191&(i=(i=Math.imul(d,z))+Math.imul(l,q)|0))<<13)|0;f=((a=Math.imul(l,z))+(i>>>13)|0)+(eb>>>26)|0,eb&=67108863,n=Math.imul(p,q),i=(i=Math.imul(p,z))+Math.imul(m,q)|0,a=Math.imul(m,z);var eg=(f+(n=n+Math.imul(d,H)|0)|0)+((8191&(i=(i=i+Math.imul(d,V)|0)+Math.imul(l,H)|0))<<13)|0;f=((a=a+Math.imul(l,V)|0)+(i>>>13)|0)+(eg>>>26)|0,eg&=67108863,n=Math.imul(g,q),i=(i=Math.imul(g,z))+Math.imul(y,q)|0,a=Math.imul(y,z),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,H)|0,a=a+Math.imul(m,V)|0;var ey=(f+(n=n+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,J)|0)+Math.imul(l,G)|0))<<13)|0;f=((a=a+Math.imul(l,J)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=67108863,n=Math.imul(w,q),i=(i=Math.imul(w,z))+Math.imul(_,q)|0,a=Math.imul(_,z),n=n+Math.imul(g,H)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,V)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,G)|0,a=a+Math.imul(m,J)|0;var ev=(f+(n=n+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(l,$)|0))<<13)|0;f=((a=a+Math.imul(l,X)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=67108863,n=Math.imul(A,q),i=(i=Math.imul(A,z))+Math.imul(M,q)|0,a=Math.imul(M,z),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,V)|0,n=n+Math.imul(g,G)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,J)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,$)|0,a=a+Math.imul(m,X)|0;var ew=(f+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(l,Q)|0))<<13)|0;f=((a=a+Math.imul(l,ee)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=67108863,n=Math.imul(x,q),i=(i=Math.imul(x,z))+Math.imul(T,q)|0,a=Math.imul(T,z),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(M,H)|0,a=a+Math.imul(M,V)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,G)|0,a=a+Math.imul(_,J)|0,n=n+Math.imul(g,$)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(y,$)|0,a=a+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,a=a+Math.imul(m,ee)|0;var e_=(f+(n=n+Math.imul(d,er)|0)|0)+((8191&(i=(i=i+Math.imul(d,en)|0)+Math.imul(l,er)|0))<<13)|0;f=((a=a+Math.imul(l,en)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,z))+Math.imul(I,q)|0,a=Math.imul(I,z),n=n+Math.imul(x,H)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(T,H)|0,a=a+Math.imul(T,V)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(M,G)|0,a=a+Math.imul(M,J)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(_,$)|0,a=a+Math.imul(_,X)|0,n=n+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(y,Q)|0,a=a+Math.imul(y,ee)|0,n=n+Math.imul(p,er)|0,i=(i=i+Math.imul(p,en)|0)+Math.imul(m,er)|0,a=a+Math.imul(m,en)|0;var eE=(f+(n=n+Math.imul(d,ea)|0)|0)+((8191&(i=(i=i+Math.imul(d,es)|0)+Math.imul(l,ea)|0))<<13)|0;f=((a=a+Math.imul(l,es)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=67108863,n=Math.imul(P,q),i=(i=Math.imul(P,z))+Math.imul(O,q)|0,a=Math.imul(O,z),n=n+Math.imul(R,H)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,V)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(T,G)|0,a=a+Math.imul(T,J)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(M,$)|0,a=a+Math.imul(M,X)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,ee)|0,n=n+Math.imul(g,er)|0,i=(i=i+Math.imul(g,en)|0)+Math.imul(y,er)|0,a=a+Math.imul(y,en)|0,n=n+Math.imul(p,ea)|0,i=(i=i+Math.imul(p,es)|0)+Math.imul(m,ea)|0,a=a+Math.imul(m,es)|0;var eA=(f+(n=n+Math.imul(d,ec)|0)|0)+((8191&(i=(i=i+Math.imul(d,ef)|0)+Math.imul(l,ec)|0))<<13)|0;f=((a=a+Math.imul(l,ef)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=67108863,n=Math.imul(j,q),i=(i=Math.imul(j,z))+Math.imul(B,q)|0,a=Math.imul(B,z),n=n+Math.imul(P,H)|0,i=(i=i+Math.imul(P,V)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,V)|0,n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(I,G)|0,a=a+Math.imul(I,J)|0,n=n+Math.imul(x,$)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(T,$)|0,a=a+Math.imul(T,X)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(M,Q)|0,a=a+Math.imul(M,ee)|0,n=n+Math.imul(w,er)|0,i=(i=i+Math.imul(w,en)|0)+Math.imul(_,er)|0,a=a+Math.imul(_,en)|0,n=n+Math.imul(g,ea)|0,i=(i=i+Math.imul(g,es)|0)+Math.imul(y,ea)|0,a=a+Math.imul(y,es)|0,n=n+Math.imul(p,ec)|0,i=(i=i+Math.imul(p,ef)|0)+Math.imul(m,ec)|0,a=a+Math.imul(m,ef)|0;var eM=(f+(n=n+Math.imul(d,ed)|0)|0)+((8191&(i=(i=i+Math.imul(d,el)|0)+Math.imul(l,ed)|0))<<13)|0;f=((a=a+Math.imul(l,el)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,z))+Math.imul(U,q)|0,a=Math.imul(U,z),n=n+Math.imul(j,H)|0,i=(i=i+Math.imul(j,V)|0)+Math.imul(B,H)|0,a=a+Math.imul(B,V)|0,n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(O,G)|0,a=a+Math.imul(O,J)|0,n=n+Math.imul(R,$)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(I,$)|0,a=a+Math.imul(I,X)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(T,Q)|0,a=a+Math.imul(T,ee)|0,n=n+Math.imul(A,er)|0,i=(i=i+Math.imul(A,en)|0)+Math.imul(M,er)|0,a=a+Math.imul(M,en)|0,n=n+Math.imul(w,ea)|0,i=(i=i+Math.imul(w,es)|0)+Math.imul(_,ea)|0,a=a+Math.imul(_,es)|0,n=n+Math.imul(g,ec)|0,i=(i=i+Math.imul(g,ef)|0)+Math.imul(y,ec)|0,a=a+Math.imul(y,ef)|0,n=n+Math.imul(p,ed)|0,i=(i=i+Math.imul(p,el)|0)+Math.imul(m,ed)|0,a=a+Math.imul(m,el)|0;var eS=(f+(n=n+Math.imul(d,ep)|0)|0)+((8191&(i=(i=i+Math.imul(d,em)|0)+Math.imul(l,ep)|0))<<13)|0;f=((a=a+Math.imul(l,em)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=67108863,n=Math.imul(D,H),i=(i=Math.imul(D,V))+Math.imul(U,H)|0,a=Math.imul(U,V),n=n+Math.imul(j,G)|0,i=(i=i+Math.imul(j,J)|0)+Math.imul(B,G)|0,a=a+Math.imul(B,J)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(O,$)|0,a=a+Math.imul(O,X)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(I,Q)|0,a=a+Math.imul(I,ee)|0,n=n+Math.imul(x,er)|0,i=(i=i+Math.imul(x,en)|0)+Math.imul(T,er)|0,a=a+Math.imul(T,en)|0,n=n+Math.imul(A,ea)|0,i=(i=i+Math.imul(A,es)|0)+Math.imul(M,ea)|0,a=a+Math.imul(M,es)|0,n=n+Math.imul(w,ec)|0,i=(i=i+Math.imul(w,ef)|0)+Math.imul(_,ec)|0,a=a+Math.imul(_,ef)|0,n=n+Math.imul(g,ed)|0,i=(i=i+Math.imul(g,el)|0)+Math.imul(y,ed)|0,a=a+Math.imul(y,el)|0;var ex=(f+(n=n+Math.imul(p,ep)|0)|0)+((8191&(i=(i=i+Math.imul(p,em)|0)+Math.imul(m,ep)|0))<<13)|0;f=((a=a+Math.imul(m,em)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=67108863,n=Math.imul(D,G),i=(i=Math.imul(D,J))+Math.imul(U,G)|0,a=Math.imul(U,J),n=n+Math.imul(j,$)|0,i=(i=i+Math.imul(j,X)|0)+Math.imul(B,$)|0,a=a+Math.imul(B,X)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,n=n+Math.imul(R,er)|0,i=(i=i+Math.imul(R,en)|0)+Math.imul(I,er)|0,a=a+Math.imul(I,en)|0,n=n+Math.imul(x,ea)|0,i=(i=i+Math.imul(x,es)|0)+Math.imul(T,ea)|0,a=a+Math.imul(T,es)|0,n=n+Math.imul(A,ec)|0,i=(i=i+Math.imul(A,ef)|0)+Math.imul(M,ec)|0,a=a+Math.imul(M,ef)|0,n=n+Math.imul(w,ed)|0,i=(i=i+Math.imul(w,el)|0)+Math.imul(_,ed)|0,a=a+Math.imul(_,el)|0;var eT=(f+(n=n+Math.imul(g,ep)|0)|0)+((8191&(i=(i=i+Math.imul(g,em)|0)+Math.imul(y,ep)|0))<<13)|0;f=((a=a+Math.imul(y,em)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,X))+Math.imul(U,$)|0,a=Math.imul(U,X),n=n+Math.imul(j,Q)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(B,Q)|0,a=a+Math.imul(B,ee)|0,n=n+Math.imul(P,er)|0,i=(i=i+Math.imul(P,en)|0)+Math.imul(O,er)|0,a=a+Math.imul(O,en)|0,n=n+Math.imul(R,ea)|0,i=(i=i+Math.imul(R,es)|0)+Math.imul(I,ea)|0,a=a+Math.imul(I,es)|0,n=n+Math.imul(x,ec)|0,i=(i=i+Math.imul(x,ef)|0)+Math.imul(T,ec)|0,a=a+Math.imul(T,ef)|0,n=n+Math.imul(A,ed)|0,i=(i=i+Math.imul(A,el)|0)+Math.imul(M,ed)|0,a=a+Math.imul(M,el)|0;var ek=(f+(n=n+Math.imul(w,ep)|0)|0)+((8191&(i=(i=i+Math.imul(w,em)|0)+Math.imul(_,ep)|0))<<13)|0;f=((a=a+Math.imul(_,em)|0)+(i>>>13)|0)+(ek>>>26)|0,ek&=67108863,n=Math.imul(D,Q),i=(i=Math.imul(D,ee))+Math.imul(U,Q)|0,a=Math.imul(U,ee),n=n+Math.imul(j,er)|0,i=(i=i+Math.imul(j,en)|0)+Math.imul(B,er)|0,a=a+Math.imul(B,en)|0,n=n+Math.imul(P,ea)|0,i=(i=i+Math.imul(P,es)|0)+Math.imul(O,ea)|0,a=a+Math.imul(O,es)|0,n=n+Math.imul(R,ec)|0,i=(i=i+Math.imul(R,ef)|0)+Math.imul(I,ec)|0,a=a+Math.imul(I,ef)|0,n=n+Math.imul(x,ed)|0,i=(i=i+Math.imul(x,el)|0)+Math.imul(T,ed)|0,a=a+Math.imul(T,el)|0;var eR=(f+(n=n+Math.imul(A,ep)|0)|0)+((8191&(i=(i=i+Math.imul(A,em)|0)+Math.imul(M,ep)|0))<<13)|0;f=((a=a+Math.imul(M,em)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=67108863,n=Math.imul(D,er),i=(i=Math.imul(D,en))+Math.imul(U,er)|0,a=Math.imul(U,en),n=n+Math.imul(j,ea)|0,i=(i=i+Math.imul(j,es)|0)+Math.imul(B,ea)|0,a=a+Math.imul(B,es)|0,n=n+Math.imul(P,ec)|0,i=(i=i+Math.imul(P,ef)|0)+Math.imul(O,ec)|0,a=a+Math.imul(O,ef)|0,n=n+Math.imul(R,ed)|0,i=(i=i+Math.imul(R,el)|0)+Math.imul(I,ed)|0,a=a+Math.imul(I,el)|0;var eI=(f+(n=n+Math.imul(x,ep)|0)|0)+((8191&(i=(i=i+Math.imul(x,em)|0)+Math.imul(T,ep)|0))<<13)|0;f=((a=a+Math.imul(T,em)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=67108863,n=Math.imul(D,ea),i=(i=Math.imul(D,es))+Math.imul(U,ea)|0,a=Math.imul(U,es),n=n+Math.imul(j,ec)|0,i=(i=i+Math.imul(j,ef)|0)+Math.imul(B,ec)|0,a=a+Math.imul(B,ef)|0,n=n+Math.imul(P,ed)|0,i=(i=i+Math.imul(P,el)|0)+Math.imul(O,ed)|0,a=a+Math.imul(O,el)|0;var eC=(f+(n=n+Math.imul(R,ep)|0)|0)+((8191&(i=(i=i+Math.imul(R,em)|0)+Math.imul(I,ep)|0))<<13)|0;f=((a=a+Math.imul(I,em)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=67108863,n=Math.imul(D,ec),i=(i=Math.imul(D,ef))+Math.imul(U,ec)|0,a=Math.imul(U,ef),n=n+Math.imul(j,ed)|0,i=(i=i+Math.imul(j,el)|0)+Math.imul(B,ed)|0,a=a+Math.imul(B,el)|0;var eP=(f+(n=n+Math.imul(P,ep)|0)|0)+((8191&(i=(i=i+Math.imul(P,em)|0)+Math.imul(O,ep)|0))<<13)|0;f=((a=a+Math.imul(O,em)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=67108863,n=Math.imul(D,ed),i=(i=Math.imul(D,el))+Math.imul(U,ed)|0,a=Math.imul(U,el);var eO=(f+(n=n+Math.imul(j,ep)|0)|0)+((8191&(i=(i=i+Math.imul(j,em)|0)+Math.imul(B,ep)|0))<<13)|0;f=((a=a+Math.imul(B,em)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=67108863;var eN=(f+(n=Math.imul(D,ep))|0)+((8191&(i=(i=Math.imul(D,em))+Math.imul(U,ep)|0))<<13)|0;return f=((a=Math.imul(U,em))+(i>>>13)|0)+(eN>>>26)|0,eN&=67108863,c[0]=eb,c[1]=eg,c[2]=ey,c[3]=ev,c[4]=ew,c[5]=e_,c[6]=eE,c[7]=eA,c[8]=eM,c[9]=eS,c[10]=ex,c[11]=eT,c[12]=ek,c[13]=eR,c[14]=eI,c[15]=eC,c[16]=eP,c[17]=eO,c[18]=eN,0!==f&&(c[19]=f,r.length++),r};function m(e,t,r){return new b().mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(p=h),a.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):r<63?h(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,a=0;a>>26)|0)>>>26,s&=67108863}r.words[a]=o,n=s,s=i}return 0!==n?r.words[a]=n:r.length--,r.strip()}(this,e,t):m(this,e,t)},b.prototype.makeRBT=function(e){for(var t=Array(e),r=a.prototype._countBits(e)-1,n=0;n>=1;return n},b.prototype.permute=function(e,t,r,n,i,a){for(var s=0;s>>=1)i++;return 1<>>=13,r[2*s+1]=8191&a,a>>>=13;for(s=2*t;s>=26,t+=(i/67108864|0)+(a>>>26),this.words[r]=67108863&a}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>i}return t}(e);if(0===t.length)return new a(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,a=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var i,a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<s)for(this.length-=s,c=0;c=0&&(0!==f||c>=i);c--){var u=0|this.words[c];this.words[c]=f<<26-a|u>>>a,f=u&o}return r&&0!==f&&(r.words[r.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return!(this.length<=r)&&!!(this.words[r]&1<=0);var t=e%26,r=(e-t)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==t&&r++,this.length=Math.min(r,this.length),0!==t&&(this.words[this.length-1]&=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},a.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[i+r]=67108863&a}for(;i>26,this.words[i+r]=67108863&a;if(0===o)return this.strip();for(n(-1===o),o=0,i=0;i>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),s=e,o=0|s.words[s.length-1];0!=(n=26-this._countBits(o))&&(s=s.ushln(n),i.iushln(n),o=0|s.words[s.length-1]);var c=i.length-s.length;if("mod"!==t){(r=new a(null)).length=c+1,r.words=Array(r.length);for(var f=0;f=0;d--){var l=(0|i.words[s.length+d])*67108864+(0|i.words[s.length+d-1]);for(l=Math.min(l/o|0,67108863),i._ishlnsubmul(s,l,d);0!==i.negative;)l--,i.negative=0,i._ishlnsubmul(s,1,d),i.isZero()||(i.negative^=1);r&&(r.words[d]=l)}return r&&r.strip(),i.strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},a.prototype.divmod=function(e,t,r){var i,s,o;return(n(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(i=o.div.neg()),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:i,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(i=o.div.neg()),{div:i,mod:o.mod}):(this.negative&e.negative)!=0?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:o.div,mod:s}):e.length>this.length||0>this.cmp(e)?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.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),i=e.andln(1),a=r.cmp(n);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){n(e<=67108863);for(var t=67108864%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},a.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.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 i=new a(1),s=new a(0),o=new a(0),c=new a(1),f=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++f;for(var u=r.clone(),d=t.clone();!t.isZero();){for(var l=0,h=1;(t.words[0]&h)==0&&l<26;++l,h<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(u),s.isub(d)),i.iushrn(1),s.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(o.isOdd()||c.isOdd())&&(o.iadd(u),c.isub(d)),o.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(o),s.isub(c)):(r.isub(t),o.isub(i),c.isub(s))}return{a:o,b:c,gcd:r.iushln(f)}},a.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new a(1),o=new a(0),c=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var f=0,u=1;(r.words[0]&u)==0&&f<26;++f,u<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var d=0,l=1;(i.words[0]&l)==0&&d<26;++d,l<<=1);if(d>0)for(i.iushrn(d);d-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);r.cmp(i)>=0?(r.isub(i),s.isub(o)):(i.isub(r),o.isub(s))}return 0>(t=0===r.cmpn(1)?s:o).cmpn(0)&&t.iadd(e),t},a.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 i=t.cmp(r);if(i<0){var a=t;t=r,r=a}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new A(e)},a.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)},a.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"==typeof e){var t=a._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 M(e){A.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(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)}y.prototype._tmp=function(){var e=new a(null);return e.words=Array(Math.ceil(this.n/13)),e},y.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},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},i(v,y),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,i=a}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(g[e])return g[e];if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new _;else if("p25519"===e)t=new E;else throw Error("Unknown prime "+e);return g[e]=t,t},A.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},A.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},A.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);n(!i.isZero());var o=new a(1).toRed(this),c=o.redNeg(),f=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,f).cmp(c);)u.redIAdd(c);for(var d=this.pow(u,i),l=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=s;0!==h.cmp(o);){for(var m=h,b=0;0!==m.cmp(o);b++)m=m.redSqr();n(b=0;n--){for(var f=t.words[n],u=c-1;u>=0;u--){var d=f>>u&1;if(i!==r[0]&&(i=this.sqr(i)),0===d&&0===s){o=0;continue}s<<=1,s|=d,(4==++o||0===n&&0===u)&&(i=this.mul(i,r[s]),o=0,s=0)}c=26}return i},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new M(e)},i(M,A),M.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},M.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},M.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),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},M.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):0>i.cmpn(0)&&(s=i.iadd(this.m)),s._forceRed(this)},M.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)},{"7f1ee543ef73731a":"3eno3"}],"3aRbo":[function(e,t,r){"use strict";let n=e("f26403796e11865b"),i=e("a00827f0f69fbce"),a=e("64c493c8ea32f1a7");function s(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}r.define=function(e,t){return new s(e,t)},s.prototype._createNamed=function(e){let t=this.name;function r(e){this._initNamed(e,t)}return a(r,e),r.prototype._initNamed=function(t,r){e.call(this,t,r)},new r(this)},s.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(i[e])),this.decoders[e]},s.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},s.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n[e])),this.encoders[e]},s.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},{f26403796e11865b:"lGnKL",a00827f0f69fbce:"WaCMa","64c493c8ea32f1a7":"cJ2FP"}],lGnKL:[function(e,t,r){"use strict";r.der=e("6153180e09514e51"),r.pem=e("babaf0c4b3d9210a")},{"6153180e09514e51":"e161A",babaf0c4b3d9210a:"f6svv"}],e161A:[function(e,t,r){"use strict";let n=e("94789e1422bf21a1"),i=e("9dd3df095b47dfb").Buffer,a=e("ee66f238a776dfa1"),s=e("e0096fa50301b4fb");function o(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){a.call(this,"der",e)}function f(e){return e<10?"0"+e:e}t.exports=o,o.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(c,a),c.prototype._encodeComposite=function(e,t,r,n){let a=function(e,t,r,n){let i;if("seqof"===e?e="seq":"setof"===e&&(e="set"),s.tagByName.hasOwnProperty(e))i=s.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);i=e}return i>=31?n.error("Multi-octet tag encoding unsupported"):(t||(i|=32),i|=s.tagClassByName[r||"universal"]<<6)}(e,t,r,this.reporter);if(n.length<128){let e=i.alloc(2);return e[0]=a,e[1]=n.length,this._createEncoderBuffer([e,n])}let o=1;for(let e=n.length;e>=256;e>>=8)o++;let c=i.alloc(2+o);c[0]=a,c[1]=128|o;for(let e=1+o,t=n.length;t>0;e--,t>>=8)c[e]=255&t;return this._createEncoderBuffer([c,n])},c.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){let t=i.alloc(2*e.length);for(let r=0;r=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}let n=0;for(let t=0;t=128;r>>=7)n++}let a=i.alloc(n),s=a.length-1;for(let t=e.length-1;t>=0;t--){let r=e[t];for(a[s--]=127&r;(r>>=7)>0;)a[s--]=128|127&r}return this._createEncoderBuffer(a)},c.prototype._encodeTime=function(e,t){let r;let n=new Date(e);return"gentime"===t?r=[f(n.getUTCFullYear()),f(n.getUTCMonth()+1),f(n.getUTCDate()),f(n.getUTCHours()),f(n.getUTCMinutes()),f(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[f(n.getUTCFullYear()%100),f(n.getUTCMonth()+1),f(n.getUTCDate()),f(n.getUTCHours()),f(n.getUTCMinutes()),f(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},c.prototype._encodeNull=function(){return this._createEncoderBuffer("")},c.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){let t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=i.from(t)}if(i.isBuffer(e)){let t=e.length;0===e.length&&t++;let r=i.alloc(t);return e.copy(r),0===e.length&&(r[0]=0),this._createEncoderBuffer(r)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let r=1;for(let t=e;t>=256;t>>=8)r++;let n=Array(r);for(let t=n.length-1;t>=0;t--)n[t]=255&e,e>>=8;return 128&n[0]&&n.unshift(0),this._createEncoderBuffer(i.from(n))},c.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},c.prototype._skipDefault=function(e,t,r){let n;let i=this._baseState;if(null===i.default)return!1;let a=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),a.length!==i.defaultBuffer.length)return!1;for(n=0;n=2147483648)throw RangeError('The value "'+e+'" is invalid for option "size"');var n=s(e);return t&&0!==t.length?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n}),!o.kStringMaxLength)try{o.kStringMaxLength=i.binding("buffer").kStringMaxLength}catch(e){}!o.constants&&(o.constants={MAX_LENGTH:o.kMaxLength},o.kStringMaxLength&&(o.constants.MAX_STRING_LENGTH=o.kStringMaxLength)),t.exports=o},{e7af3484edf6bee9:"fg0b3","9b1fd4bf3515d7a6":"2MMCE"}],"4XjV6":[function(e,t,r){"use strict";let n=e("3f60e59b9a23b489").Reporter,i=e("485fe0fa4bfbbbca").EncoderBuffer,a=e("485fe0fa4bfbbbca").DecoderBuffer,s=e("1bf7ce79b1c01d8b"),o=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],c=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o);function f(e,t,r){let n={};this._baseState=n,n.name=r,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}t.exports=f;let u=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];f.prototype.clone=function(){let e=this._baseState,t={};u.forEach(function(r){t[r]=e[r]});let r=new this.constructor(t.parent);return r._baseState=t,r},f.prototype._wrap=function(){let e=this._baseState;c.forEach(function(t){this[t]=function(){let r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}},this)},f.prototype._init=function(e){let t=this._baseState;s(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),s.equal(t.children.length,1,"Root node can have only one child")},f.prototype._useArgs=function(e){let t=this._baseState,r=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==r.length&&(s(null===t.children),t.children=r,r.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(s(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!=typeof e||e.constructor!==Object)return e;let t={};return Object.keys(e).forEach(function(r){r==(0|r)&&(r|=0);let n=e[r];t[n]=r}),t}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(e){f.prototype[e]=function(){let t=this._baseState;throw Error(e+" not implemented for encoding: "+t.enc)}}),o.forEach(function(e){f.prototype[e]=function(){let t=this._baseState,r=Array.prototype.slice.call(arguments);return s(null===t.tag),t.tag=e,this._useArgs(r),this}}),f.prototype.use=function(e){s(e);let t=this._baseState;return s(null===t.use),t.use=e,this},f.prototype.optional=function(){let e=this._baseState;return e.optional=!0,this},f.prototype.def=function(e){let t=this._baseState;return s(null===t.default),t.default=e,t.optional=!0,this},f.prototype.explicit=function(e){let t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.explicit=e,this},f.prototype.implicit=function(e){let t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.implicit=e,this},f.prototype.obj=function(){let e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},f.prototype.key=function(e){let t=this._baseState;return s(null===t.key),t.key=e,this},f.prototype.any=function(){let e=this._baseState;return e.any=!0,this},f.prototype.choice=function(e){let t=this._baseState;return s(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},f.prototype.contains=function(e){let t=this._baseState;return s(null===t.use),t.contains=e,this},f.prototype._decode=function(e,t){let r;let n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));let i=n.default,s=!0,o=null;if(null!==n.key&&(o=e.enterKey(n.key)),n.optional){let r=null;if(null!==n.explicit?r=n.explicit:null!==n.implicit?r=n.implicit:null!==n.tag&&(r=n.tag),null!==r||n.any){if(s=this._peekTag(e,r,n.any),e.isError(s))return s}else{let r=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),s=!0}catch(e){s=!1}e.restore(r)}}if(n.obj&&s&&(r=e.enterObject()),s){if(null!==n.explicit){let t=this._decodeTag(e,n.explicit);if(e.isError(t))return t;e=t}let r=e.offset;if(null===n.use&&null===n.choice){let t;n.any&&(t=e.save());let r=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(r))return r;n.any?i=e.raw(t):e=r}if(t&&t.track&&null!==n.tag&&t.track(e.path(),r,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),n.any||(i=null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach(function(r){r._decode(e,t)}),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){let r=new a(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(r,t)}}return n.obj&&s&&(i=e.leaveObject(r)),null!==n.key&&(null!==i||!0===s)?e.leaveKey(o,n.key,i):null!==o&&e.exitKey(o),i},f.prototype._decodeGeneric=function(e,t,r){let n=this._baseState;if("seq"===e||"set"===e)return null;if("seqof"===e||"setof"===e)return this._decodeList(t,e,n.args[0],r);if(/str$/.test(e))return this._decodeStr(t,e,r);if("objid"===e&&n.args)return this._decodeObjid(t,n.args[0],n.args[1],r);if("objid"===e)return this._decodeObjid(t,null,null,r);if("gentime"===e||"utctime"===e)return this._decodeTime(t,e,r);if("null_"===e)return this._decodeNull(t,r);if("bool"===e)return this._decodeBool(t,r);else if("objDesc"===e)return this._decodeStr(t,e,r);else if("int"===e||"enum"===e)return this._decodeInt(t,n.args&&n.args[0],r);return null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},f.prototype._getUse=function(e,t){let r=this._baseState;return r.useDecoder=this._use(e,t),s(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},f.prototype._decodeChoice=function(e,t){let r=this._baseState,n=null,i=!1;return(Object.keys(r.choice).some(function(a){let s=e.save(),o=r.choice[a];try{let r=o._decode(e,t);if(e.isError(r))return!1;n={type:a,value:r},i=!0}catch(t){return e.restore(s),!1}return!0},this),i)?n:e.error("Choice not matched")},f.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},f.prototype._encode=function(e,t,r){let n=this._baseState;if(null!==n.default&&n.default===e)return;let i=this._encodeValue(e,t,r);if(void 0!==i&&!this._skipDefault(i,t,r))return i},f.prototype._encodeValue=function(e,t,r){let i=this._baseState;if(null===i.parent)return i.children[0]._encode(e,t||new n);let a=null;if(this.reporter=t,i.optional&&void 0===e){if(null===i.default)return;e=i.default}let s=null,o=!1;if(i.any)a=this._createEncoderBuffer(e);else if(i.choice)a=this._encodeChoice(e,t);else if(i.contains)s=this._getUse(i.contains,r)._encode(e,t),o=!0;else if(i.children)s=i.children.map(function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");let n=t.enterKey(r._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");let i=r._encode(e[r._baseState.key],t,e);return t.leaveKey(n),i},this).filter(function(e){return e}),s=this._createEncoderBuffer(s);else if("seqof"===i.tag||"setof"===i.tag){if(!(i.args&&1===i.args.length))return t.error("Too many args for : "+i.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");let r=this.clone();r._baseState.implicit=null,s=this._createEncoderBuffer(e.map(function(r){let n=this._baseState;return this._getUse(n.args[0],e)._encode(r,t)},r))}else null!==i.use?a=this._getUse(i.use,r)._encode(e,t):(s=this._encodePrimitive(i.tag,e),o=!0);if(!i.any&&null===i.choice){let e=null!==i.implicit?i.implicit:i.tag,r=null===i.implicit?"universal":"context";null===e?null===i.use&&t.error("Tag could be omitted only for .use()"):null===i.use&&(a=this._encodeComposite(e,o,r,s))}return null!==i.explicit&&(a=this._encodeComposite(i.explicit,!1,"context",a)),a},f.prototype._encodeChoice=function(e,t){let r=this._baseState,n=r.choice[e.type];return n||s(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},f.prototype._encodePrimitive=function(e,t){let r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);else if("objDesc"===e)return this._encodeStr(t,e);else throw Error("Unsupported tag: "+e)},f.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},f.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},{"3f60e59b9a23b489":"dVro5","485fe0fa4bfbbbca":"lGrvr","1bf7ce79b1c01d8b":"h59lk"}],dVro5:[function(e,t,r){"use strict";let n=e("cca99c6acf69321b");function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function a(e,t){this.path=e,this.rethrow(t)}r.Reporter=i,i.prototype.isError=function(e){return e instanceof a},i.prototype.save=function(){let e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){let t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){let t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,r){let n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){let e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){let t=this._reporterState,r=t.obj;return t.obj=e,r},i.prototype.error=function(e){let t;let r=this._reporterState,n=e instanceof a;if(t=n?e:new a(r.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},i.prototype.wrapResult=function(e){let t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(a,Error),a.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,a),!this.stack)try{throw Error(this.message)}catch(e){this.stack=e.stack}return this}},{cca99c6acf69321b:"cJ2FP"}],lGrvr:[function(e,t,r){"use strict";let n=e("ff35534ecc380ed3"),i=e("caca6de43dc40469").Reporter,a=e("c3dd8e06b6bddac8").Buffer;function s(e,t){if(i.call(this,t),!a.isBuffer(e)){this.error("Input not Buffer");return}this.base=e,this.offset=0,this.length=e.length}function o(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return o.isEncoderBuffer(e)||(e=new o(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=a.byteLength(e);else{if(!a.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}n(s,i),r.DecoderBuffer=s,s.isDecoderBuffer=function(e){if(e instanceof s)return!0;let t="object"==typeof e&&a.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"==typeof e.offset&&"number"==typeof e.length&&"function"==typeof e.save&&"function"==typeof e.restore&&"function"==typeof e.isEmpty&&"function"==typeof e.readUInt8&&"function"==typeof e.skip&&"function"==typeof e.raw;return t},s.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},s.prototype.restore=function(e){let t=new s(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},s.prototype.isEmpty=function(){return this.offset===this.length},s.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},s.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");let r=new s(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},s.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},r.EncoderBuffer=o,o.isEncoderBuffer=function(e){if(e instanceof o)return!0;let t="object"==typeof e&&"EncoderBuffer"===e.constructor.name&&"number"==typeof e.length&&"function"==typeof e.join;return t},o.prototype.join=function(e,t){return e||(e=a.alloc(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(r){r.join(e,t),t+=r.length}):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):a.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},{ff35534ecc380ed3:"cJ2FP",caca6de43dc40469:"dVro5",c3dd8e06b6bddac8:"c6yfp"}],"6PHFJ":[function(e,t,r){"use strict";function n(e){let t={};return Object.keys(e).forEach(function(r){(0|r)==r&&(r|=0);let n=e[r];t[n]=r}),t}r.tagClass={0:"universal",1:"application",2:"context",3:"private"},r.tagClassByName=n(r.tagClass),r.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},r.tagByName=n(r.tag)},{}],f6svv:[function(e,t,r){"use strict";let n=e("bc3c7930ded74eee"),i=e("cf885a4234262436");function a(e){i.call(this,e),this.enc="pem"}n(a,i),t.exports=a,a.prototype.encode=function(e,t){let r=i.prototype.encode.call(this,e),n=r.toString("base64"),a=["-----BEGIN "+t.label+"-----"];for(let e=0;e>6],i=(32&r)==0;if((31&r)==31){let n=r;for(r=0;(128&n)==128;){if(n=e.readUInt8(t),e.isError(n))return n;r<<=7,r|=127&n}}else r&=31;let a=o.tag[r];return{cls:n,primitive:i,tag:r,tagStr:a}}function d(e,t,r){let n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if((128&n)==0)return n;let i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(let t=0;t=e.cmpn(0)||e.cmp(t)>=t)throw Error("invalid sig")}t.exports=function(e,t,r,f,u){var d,l,h,p,m,b,g,y,v,w,_,E=s(r);if("ec"===E.type){if("ecdsa"!==f&&"ecdsa/rsa"!==f)throw Error("wrong public key type");return function(e,t,r){var n=o[r.data.algorithm.curve.join(".")];if(!n)throw Error("unknown curve "+r.data.algorithm.curve.join("."));var i=new a(n),s=r.data.subjectPrivateKey.data;return i.verify(t,e,s)}(e,t,E)}if("dsa"===E.type){if("dsa"!==f)throw Error("wrong public key type");return d=e,l=t,h=E.data.p,p=E.data.q,m=E.data.g,b=E.data.pub_key,y=(g=s.signature.decode(d,"der")).s,v=g.r,c(y,p),c(v,p),w=i.mont(h),_=y.invm(p),0===m.toRed(w).redPow(new i(l).mul(_).mod(p)).fromRed().mul(b.toRed(w).redPow(v.mul(_).mod(p)).fromRed()).mod(h).mod(p).cmp(v)}if("rsa"!==f&&"ecdsa/rsa"!==f)throw Error("wrong public key type");t=n.concat([u,t]);for(var A=E.modulus.byteLength(),M=[1],S=0;t.length+M.length+2=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function o(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function c(e,t,r,n){for(var i=0,a=Math.min(e.length,r),s=t;s=49?i+=o-49+10:o>=17?i+=o-17+10:i+=o}return i}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;s-=3)a=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[i]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,i++);else if("le"===r)for(s=0,i=0;s>>26-o&67108863,(o+=24)>=26&&(o-=26,i++);return this.strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n,i=0;i=t;i-=2)n=o(e,t,i)<=18?(a-=18,s+=1,this.words[s]|=n>>>26):a+=8;else for(i=(e.length-t)%2==0?t+1:t;i=18?(a-=18,s+=1,this.words[s]|=n>>>26):a+=8;this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var a=e.length-r,s=a%n,o=Math.min(a,a-s)+r,f=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var f,u=["","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"],d=[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],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],a=0|t.words[0],s=i*a,o=67108863&s,c=s/67108864|0;r.words[0]=o;for(var f=1;f>>26,d=67108863&c,l=Math.min(f,t.length-1),h=Math.max(0,f-e.length+1);h<=l;h++){var p=f-h|0;u+=(s=(i=0|e.words[p])*(a=0|t.words[h])+d)/67108864|0,d=67108863&s}r.words[f]=0|d,c=0|u}return 0!==c?r.words[f]=0|c:r.length--,r.strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,i=0,a=0,s=0;s>>24-i&16777215)||s!==this.length-1?u[6-c.length]+c+r:c+r,(i+=2)>=26&&(i-=26,s--)}for(0!==a&&(r=a.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 f=d[e],h=l[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?m+r:u[f-m.length]+m+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")},a.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},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return n(void 0!==f),this.toArrayLike(f,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var i,a,s=this.byteLength(),o=r||Math.max(1,s);n(s<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var c=new e(o),f=this.clone();if("le"===t){for(a=0;!f.isZero();a++)i=f.andln(255),f.iushrn(8),c[a]=i;for(;a=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},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.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)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,a=0;a>>26;for(;0!==i&&a>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var a=0,s=0;s>26,this.words[s]=67108863&n;for(;0!==a&&s>26,this.words[s]=67108863&n;if(0===a&&s>>13,h=0|s[1],p=8191&h,m=h>>>13,b=0|s[2],g=8191&b,y=b>>>13,v=0|s[3],w=8191&v,_=v>>>13,E=0|s[4],A=8191&E,M=E>>>13,S=0|s[5],x=8191&S,T=S>>>13,k=0|s[6],R=8191&k,I=k>>>13,C=0|s[7],P=8191&C,O=C>>>13,N=0|s[8],j=8191&N,B=N>>>13,L=0|s[9],D=8191&L,U=L>>>13,F=0|o[0],q=8191&F,z=F>>>13,K=0|o[1],H=8191&K,V=K>>>13,W=0|o[2],G=8191&W,J=W>>>13,Z=0|o[3],$=8191&Z,X=Z>>>13,Y=0|o[4],Q=8191&Y,ee=Y>>>13,et=0|o[5],er=8191&et,en=et>>>13,ei=0|o[6],ea=8191&ei,es=ei>>>13,eo=0|o[7],ec=8191&eo,ef=eo>>>13,eu=0|o[8],ed=8191&eu,el=eu>>>13,eh=0|o[9],ep=8191&eh,em=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var eb=(f+(n=Math.imul(d,q))|0)+((8191&(i=(i=Math.imul(d,z))+Math.imul(l,q)|0))<<13)|0;f=((a=Math.imul(l,z))+(i>>>13)|0)+(eb>>>26)|0,eb&=67108863,n=Math.imul(p,q),i=(i=Math.imul(p,z))+Math.imul(m,q)|0,a=Math.imul(m,z);var eg=(f+(n=n+Math.imul(d,H)|0)|0)+((8191&(i=(i=i+Math.imul(d,V)|0)+Math.imul(l,H)|0))<<13)|0;f=((a=a+Math.imul(l,V)|0)+(i>>>13)|0)+(eg>>>26)|0,eg&=67108863,n=Math.imul(g,q),i=(i=Math.imul(g,z))+Math.imul(y,q)|0,a=Math.imul(y,z),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,H)|0,a=a+Math.imul(m,V)|0;var ey=(f+(n=n+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,J)|0)+Math.imul(l,G)|0))<<13)|0;f=((a=a+Math.imul(l,J)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=67108863,n=Math.imul(w,q),i=(i=Math.imul(w,z))+Math.imul(_,q)|0,a=Math.imul(_,z),n=n+Math.imul(g,H)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,V)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,G)|0,a=a+Math.imul(m,J)|0;var ev=(f+(n=n+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(l,$)|0))<<13)|0;f=((a=a+Math.imul(l,X)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=67108863,n=Math.imul(A,q),i=(i=Math.imul(A,z))+Math.imul(M,q)|0,a=Math.imul(M,z),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,V)|0,n=n+Math.imul(g,G)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,J)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,$)|0,a=a+Math.imul(m,X)|0;var ew=(f+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(l,Q)|0))<<13)|0;f=((a=a+Math.imul(l,ee)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=67108863,n=Math.imul(x,q),i=(i=Math.imul(x,z))+Math.imul(T,q)|0,a=Math.imul(T,z),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(M,H)|0,a=a+Math.imul(M,V)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,G)|0,a=a+Math.imul(_,J)|0,n=n+Math.imul(g,$)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(y,$)|0,a=a+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,a=a+Math.imul(m,ee)|0;var e_=(f+(n=n+Math.imul(d,er)|0)|0)+((8191&(i=(i=i+Math.imul(d,en)|0)+Math.imul(l,er)|0))<<13)|0;f=((a=a+Math.imul(l,en)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,z))+Math.imul(I,q)|0,a=Math.imul(I,z),n=n+Math.imul(x,H)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(T,H)|0,a=a+Math.imul(T,V)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(M,G)|0,a=a+Math.imul(M,J)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(_,$)|0,a=a+Math.imul(_,X)|0,n=n+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(y,Q)|0,a=a+Math.imul(y,ee)|0,n=n+Math.imul(p,er)|0,i=(i=i+Math.imul(p,en)|0)+Math.imul(m,er)|0,a=a+Math.imul(m,en)|0;var eE=(f+(n=n+Math.imul(d,ea)|0)|0)+((8191&(i=(i=i+Math.imul(d,es)|0)+Math.imul(l,ea)|0))<<13)|0;f=((a=a+Math.imul(l,es)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=67108863,n=Math.imul(P,q),i=(i=Math.imul(P,z))+Math.imul(O,q)|0,a=Math.imul(O,z),n=n+Math.imul(R,H)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,V)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(T,G)|0,a=a+Math.imul(T,J)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(M,$)|0,a=a+Math.imul(M,X)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,ee)|0,n=n+Math.imul(g,er)|0,i=(i=i+Math.imul(g,en)|0)+Math.imul(y,er)|0,a=a+Math.imul(y,en)|0,n=n+Math.imul(p,ea)|0,i=(i=i+Math.imul(p,es)|0)+Math.imul(m,ea)|0,a=a+Math.imul(m,es)|0;var eA=(f+(n=n+Math.imul(d,ec)|0)|0)+((8191&(i=(i=i+Math.imul(d,ef)|0)+Math.imul(l,ec)|0))<<13)|0;f=((a=a+Math.imul(l,ef)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=67108863,n=Math.imul(j,q),i=(i=Math.imul(j,z))+Math.imul(B,q)|0,a=Math.imul(B,z),n=n+Math.imul(P,H)|0,i=(i=i+Math.imul(P,V)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,V)|0,n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(I,G)|0,a=a+Math.imul(I,J)|0,n=n+Math.imul(x,$)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(T,$)|0,a=a+Math.imul(T,X)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(M,Q)|0,a=a+Math.imul(M,ee)|0,n=n+Math.imul(w,er)|0,i=(i=i+Math.imul(w,en)|0)+Math.imul(_,er)|0,a=a+Math.imul(_,en)|0,n=n+Math.imul(g,ea)|0,i=(i=i+Math.imul(g,es)|0)+Math.imul(y,ea)|0,a=a+Math.imul(y,es)|0,n=n+Math.imul(p,ec)|0,i=(i=i+Math.imul(p,ef)|0)+Math.imul(m,ec)|0,a=a+Math.imul(m,ef)|0;var eM=(f+(n=n+Math.imul(d,ed)|0)|0)+((8191&(i=(i=i+Math.imul(d,el)|0)+Math.imul(l,ed)|0))<<13)|0;f=((a=a+Math.imul(l,el)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,z))+Math.imul(U,q)|0,a=Math.imul(U,z),n=n+Math.imul(j,H)|0,i=(i=i+Math.imul(j,V)|0)+Math.imul(B,H)|0,a=a+Math.imul(B,V)|0,n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(O,G)|0,a=a+Math.imul(O,J)|0,n=n+Math.imul(R,$)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(I,$)|0,a=a+Math.imul(I,X)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(T,Q)|0,a=a+Math.imul(T,ee)|0,n=n+Math.imul(A,er)|0,i=(i=i+Math.imul(A,en)|0)+Math.imul(M,er)|0,a=a+Math.imul(M,en)|0,n=n+Math.imul(w,ea)|0,i=(i=i+Math.imul(w,es)|0)+Math.imul(_,ea)|0,a=a+Math.imul(_,es)|0,n=n+Math.imul(g,ec)|0,i=(i=i+Math.imul(g,ef)|0)+Math.imul(y,ec)|0,a=a+Math.imul(y,ef)|0,n=n+Math.imul(p,ed)|0,i=(i=i+Math.imul(p,el)|0)+Math.imul(m,ed)|0,a=a+Math.imul(m,el)|0;var eS=(f+(n=n+Math.imul(d,ep)|0)|0)+((8191&(i=(i=i+Math.imul(d,em)|0)+Math.imul(l,ep)|0))<<13)|0;f=((a=a+Math.imul(l,em)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=67108863,n=Math.imul(D,H),i=(i=Math.imul(D,V))+Math.imul(U,H)|0,a=Math.imul(U,V),n=n+Math.imul(j,G)|0,i=(i=i+Math.imul(j,J)|0)+Math.imul(B,G)|0,a=a+Math.imul(B,J)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(O,$)|0,a=a+Math.imul(O,X)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(I,Q)|0,a=a+Math.imul(I,ee)|0,n=n+Math.imul(x,er)|0,i=(i=i+Math.imul(x,en)|0)+Math.imul(T,er)|0,a=a+Math.imul(T,en)|0,n=n+Math.imul(A,ea)|0,i=(i=i+Math.imul(A,es)|0)+Math.imul(M,ea)|0,a=a+Math.imul(M,es)|0,n=n+Math.imul(w,ec)|0,i=(i=i+Math.imul(w,ef)|0)+Math.imul(_,ec)|0,a=a+Math.imul(_,ef)|0,n=n+Math.imul(g,ed)|0,i=(i=i+Math.imul(g,el)|0)+Math.imul(y,ed)|0,a=a+Math.imul(y,el)|0;var ex=(f+(n=n+Math.imul(p,ep)|0)|0)+((8191&(i=(i=i+Math.imul(p,em)|0)+Math.imul(m,ep)|0))<<13)|0;f=((a=a+Math.imul(m,em)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=67108863,n=Math.imul(D,G),i=(i=Math.imul(D,J))+Math.imul(U,G)|0,a=Math.imul(U,J),n=n+Math.imul(j,$)|0,i=(i=i+Math.imul(j,X)|0)+Math.imul(B,$)|0,a=a+Math.imul(B,X)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,n=n+Math.imul(R,er)|0,i=(i=i+Math.imul(R,en)|0)+Math.imul(I,er)|0,a=a+Math.imul(I,en)|0,n=n+Math.imul(x,ea)|0,i=(i=i+Math.imul(x,es)|0)+Math.imul(T,ea)|0,a=a+Math.imul(T,es)|0,n=n+Math.imul(A,ec)|0,i=(i=i+Math.imul(A,ef)|0)+Math.imul(M,ec)|0,a=a+Math.imul(M,ef)|0,n=n+Math.imul(w,ed)|0,i=(i=i+Math.imul(w,el)|0)+Math.imul(_,ed)|0,a=a+Math.imul(_,el)|0;var eT=(f+(n=n+Math.imul(g,ep)|0)|0)+((8191&(i=(i=i+Math.imul(g,em)|0)+Math.imul(y,ep)|0))<<13)|0;f=((a=a+Math.imul(y,em)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,X))+Math.imul(U,$)|0,a=Math.imul(U,X),n=n+Math.imul(j,Q)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(B,Q)|0,a=a+Math.imul(B,ee)|0,n=n+Math.imul(P,er)|0,i=(i=i+Math.imul(P,en)|0)+Math.imul(O,er)|0,a=a+Math.imul(O,en)|0,n=n+Math.imul(R,ea)|0,i=(i=i+Math.imul(R,es)|0)+Math.imul(I,ea)|0,a=a+Math.imul(I,es)|0,n=n+Math.imul(x,ec)|0,i=(i=i+Math.imul(x,ef)|0)+Math.imul(T,ec)|0,a=a+Math.imul(T,ef)|0,n=n+Math.imul(A,ed)|0,i=(i=i+Math.imul(A,el)|0)+Math.imul(M,ed)|0,a=a+Math.imul(M,el)|0;var ek=(f+(n=n+Math.imul(w,ep)|0)|0)+((8191&(i=(i=i+Math.imul(w,em)|0)+Math.imul(_,ep)|0))<<13)|0;f=((a=a+Math.imul(_,em)|0)+(i>>>13)|0)+(ek>>>26)|0,ek&=67108863,n=Math.imul(D,Q),i=(i=Math.imul(D,ee))+Math.imul(U,Q)|0,a=Math.imul(U,ee),n=n+Math.imul(j,er)|0,i=(i=i+Math.imul(j,en)|0)+Math.imul(B,er)|0,a=a+Math.imul(B,en)|0,n=n+Math.imul(P,ea)|0,i=(i=i+Math.imul(P,es)|0)+Math.imul(O,ea)|0,a=a+Math.imul(O,es)|0,n=n+Math.imul(R,ec)|0,i=(i=i+Math.imul(R,ef)|0)+Math.imul(I,ec)|0,a=a+Math.imul(I,ef)|0,n=n+Math.imul(x,ed)|0,i=(i=i+Math.imul(x,el)|0)+Math.imul(T,ed)|0,a=a+Math.imul(T,el)|0;var eR=(f+(n=n+Math.imul(A,ep)|0)|0)+((8191&(i=(i=i+Math.imul(A,em)|0)+Math.imul(M,ep)|0))<<13)|0;f=((a=a+Math.imul(M,em)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=67108863,n=Math.imul(D,er),i=(i=Math.imul(D,en))+Math.imul(U,er)|0,a=Math.imul(U,en),n=n+Math.imul(j,ea)|0,i=(i=i+Math.imul(j,es)|0)+Math.imul(B,ea)|0,a=a+Math.imul(B,es)|0,n=n+Math.imul(P,ec)|0,i=(i=i+Math.imul(P,ef)|0)+Math.imul(O,ec)|0,a=a+Math.imul(O,ef)|0,n=n+Math.imul(R,ed)|0,i=(i=i+Math.imul(R,el)|0)+Math.imul(I,ed)|0,a=a+Math.imul(I,el)|0;var eI=(f+(n=n+Math.imul(x,ep)|0)|0)+((8191&(i=(i=i+Math.imul(x,em)|0)+Math.imul(T,ep)|0))<<13)|0;f=((a=a+Math.imul(T,em)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=67108863,n=Math.imul(D,ea),i=(i=Math.imul(D,es))+Math.imul(U,ea)|0,a=Math.imul(U,es),n=n+Math.imul(j,ec)|0,i=(i=i+Math.imul(j,ef)|0)+Math.imul(B,ec)|0,a=a+Math.imul(B,ef)|0,n=n+Math.imul(P,ed)|0,i=(i=i+Math.imul(P,el)|0)+Math.imul(O,ed)|0,a=a+Math.imul(O,el)|0;var eC=(f+(n=n+Math.imul(R,ep)|0)|0)+((8191&(i=(i=i+Math.imul(R,em)|0)+Math.imul(I,ep)|0))<<13)|0;f=((a=a+Math.imul(I,em)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=67108863,n=Math.imul(D,ec),i=(i=Math.imul(D,ef))+Math.imul(U,ec)|0,a=Math.imul(U,ef),n=n+Math.imul(j,ed)|0,i=(i=i+Math.imul(j,el)|0)+Math.imul(B,ed)|0,a=a+Math.imul(B,el)|0;var eP=(f+(n=n+Math.imul(P,ep)|0)|0)+((8191&(i=(i=i+Math.imul(P,em)|0)+Math.imul(O,ep)|0))<<13)|0;f=((a=a+Math.imul(O,em)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=67108863,n=Math.imul(D,ed),i=(i=Math.imul(D,el))+Math.imul(U,ed)|0,a=Math.imul(U,el);var eO=(f+(n=n+Math.imul(j,ep)|0)|0)+((8191&(i=(i=i+Math.imul(j,em)|0)+Math.imul(B,ep)|0))<<13)|0;f=((a=a+Math.imul(B,em)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=67108863;var eN=(f+(n=Math.imul(D,ep))|0)+((8191&(i=(i=Math.imul(D,em))+Math.imul(U,ep)|0))<<13)|0;return f=((a=Math.imul(U,em))+(i>>>13)|0)+(eN>>>26)|0,eN&=67108863,c[0]=eb,c[1]=eg,c[2]=ey,c[3]=ev,c[4]=ew,c[5]=e_,c[6]=eE,c[7]=eA,c[8]=eM,c[9]=eS,c[10]=ex,c[11]=eT,c[12]=ek,c[13]=eR,c[14]=eI,c[15]=eC,c[16]=eP,c[17]=eO,c[18]=eN,0!==f&&(c[19]=f,r.length++),r};function m(e,t,r){return new b().mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(p=h),a.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):r<63?h(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,a=0;a>>26)|0)>>>26,s&=67108863}r.words[a]=o,n=s,s=i}return 0!==n?r.words[a]=n:r.length--,r.strip()}(this,e,t):m(this,e,t)},b.prototype.makeRBT=function(e){for(var t=Array(e),r=a.prototype._countBits(e)-1,n=0;n>=1;return n},b.prototype.permute=function(e,t,r,n,i,a){for(var s=0;s>>=1)i++;return 1<>>=13,r[2*s+1]=8191&a,a>>>=13;for(s=2*t;s>=26,t+=(i/67108864|0)+(a>>>26),this.words[r]=67108863&a}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>i}return t}(e);if(0===t.length)return new a(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,a=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var i,a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<s)for(this.length-=s,c=0;c=0&&(0!==f||c>=i);c--){var u=0|this.words[c];this.words[c]=f<<26-a|u>>>a,f=u&o}return r&&0!==f&&(r.words[r.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return!(this.length<=r)&&!!(this.words[r]&1<=0);var t=e%26,r=(e-t)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==t&&r++,this.length=Math.min(r,this.length),0!==t&&(this.words[this.length-1]&=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},a.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[i+r]=67108863&a}for(;i>26,this.words[i+r]=67108863&a;if(0===o)return this.strip();for(n(-1===o),o=0,i=0;i>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),s=e,o=0|s.words[s.length-1];0!=(n=26-this._countBits(o))&&(s=s.ushln(n),i.iushln(n),o=0|s.words[s.length-1]);var c=i.length-s.length;if("mod"!==t){(r=new a(null)).length=c+1,r.words=Array(r.length);for(var f=0;f=0;d--){var l=(0|i.words[s.length+d])*67108864+(0|i.words[s.length+d-1]);for(l=Math.min(l/o|0,67108863),i._ishlnsubmul(s,l,d);0!==i.negative;)l--,i.negative=0,i._ishlnsubmul(s,1,d),i.isZero()||(i.negative^=1);r&&(r.words[d]=l)}return r&&r.strip(),i.strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},a.prototype.divmod=function(e,t,r){var i,s,o;return(n(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(i=o.div.neg()),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:i,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(i=o.div.neg()),{div:i,mod:o.mod}):(this.negative&e.negative)!=0?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:o.div,mod:s}):e.length>this.length||0>this.cmp(e)?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.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),i=e.andln(1),a=r.cmp(n);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){n(e<=67108863);for(var t=67108864%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},a.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.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 i=new a(1),s=new a(0),o=new a(0),c=new a(1),f=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++f;for(var u=r.clone(),d=t.clone();!t.isZero();){for(var l=0,h=1;(t.words[0]&h)==0&&l<26;++l,h<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(u),s.isub(d)),i.iushrn(1),s.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(o.isOdd()||c.isOdd())&&(o.iadd(u),c.isub(d)),o.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(o),s.isub(c)):(r.isub(t),o.isub(i),c.isub(s))}return{a:o,b:c,gcd:r.iushln(f)}},a.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new a(1),o=new a(0),c=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var f=0,u=1;(r.words[0]&u)==0&&f<26;++f,u<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var d=0,l=1;(i.words[0]&l)==0&&d<26;++d,l<<=1);if(d>0)for(i.iushrn(d);d-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);r.cmp(i)>=0?(r.isub(i),s.isub(o)):(i.isub(r),o.isub(s))}return 0>(t=0===r.cmpn(1)?s:o).cmpn(0)&&t.iadd(e),t},a.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 i=t.cmp(r);if(i<0){var a=t;t=r,r=a}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new A(e)},a.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)},a.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"==typeof e){var t=a._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 M(e){A.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(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)}y.prototype._tmp=function(){var e=new a(null);return e.words=Array(Math.ceil(this.n/13)),e},y.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},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},i(v,y),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,i=a}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(g[e])return g[e];if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new _;else if("p25519"===e)t=new E;else throw Error("Unknown prime "+e);return g[e]=t,t},A.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},A.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},A.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);n(!i.isZero());var o=new a(1).toRed(this),c=o.redNeg(),f=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,f).cmp(c);)u.redIAdd(c);for(var d=this.pow(u,i),l=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=s;0!==h.cmp(o);){for(var m=h,b=0;0!==m.cmp(o);b++)m=m.redSqr();n(b=0;n--){for(var f=t.words[n],u=c-1;u>=0;u--){var d=f>>u&1;if(i!==r[0]&&(i=this.sqr(i)),0===d&&0===s){o=0;continue}s<<=1,s|=d,(4==++o||0===n&&0===u)&&(i=this.mul(i,r[s]),o=0,s=0)}c=26}return i},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new M(e)},i(M,A),M.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},M.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},M.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),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},M.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):0>i.cmpn(0)&&(s=i.iadd(this.m)),s._forceRed(this)},M.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)},{"1b9e2dcc2d1e58c5":"3eno3"}],jtpXE:[function(e,t,r){r.publicEncrypt=e("d84cba4f52311cc8"),r.privateDecrypt=e("f9c6d8fbe09b61c"),r.privateEncrypt=function(e,t){return r.publicEncrypt(e,t,!0)},r.publicDecrypt=function(e,t){return r.privateDecrypt(e,t,!0)}},{d84cba4f52311cc8:"5TlHi",f9c6d8fbe09b61c:"kaYjd"}],"5TlHi":[function(e,t,r){var n=e("ca2697dbde558d1"),i=e("4704ad09aa96a56b"),a=e("b8a92fd1d9e43252"),s=e("469be15a31031bba"),o=e("f9f3694c0f7388b6"),c=e("cb7a38ec1a0039d7"),f=e("969e1e2dd90e2fbe"),u=e("9022efe01867a612"),d=e("d610bb618706f42f").Buffer;t.exports=function(e,t,r){l=e.padding?e.padding:r?1:4;var l,h,p=n(e);if(4===l)h=function(e,t){var r=e.modulus.byteLength(),n=t.length,f=a("sha1").update(d.alloc(0)).digest(),u=f.length,l=2*u;if(n>r-l-2)throw Error("message too long");var h=d.alloc(r-n-l-2),p=r-u-1,m=i(u),b=o(d.concat([f,h,d.alloc(1,1),t],p),s(m,p)),g=o(m,s(b,u));return new c(d.concat([d.alloc(1),g,b],r))}(p,t);else if(1===l)h=function(e,t,r){var n,a=t.length,s=e.modulus.byteLength();if(a>s-11)throw Error("message too long");return n=r?d.alloc(s-a-3,255):function(e){for(var t,r=d.allocUnsafe(e),n=0,a=i(2*e),s=0;n=0)throw Error("data too long for modulus")}else throw Error("unknown padding");return r?u(h,p):f(h,p)}},{ca2697dbde558d1:"6XduM","4704ad09aa96a56b":"6xAZm",b8a92fd1d9e43252:"cCtrs","469be15a31031bba":"gJHL1",f9f3694c0f7388b6:"hGH6g",cb7a38ec1a0039d7:"9DpW1","969e1e2dd90e2fbe":"9jyud","9022efe01867a612":"9CU5S",d610bb618706f42f:"6CY3D"}],gJHL1:[function(e,t,r){var n=e("b36bb21196daa39"),i=e("cfa1ea60eac1ebfa").Buffer;t.exports=function(e,t){for(var r,a=i.alloc(0),s=0;a.length=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function o(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function c(e,t,r,n){for(var i=0,a=Math.min(e.length,r),s=t;s=49?i+=o-49+10:o>=17?i+=o-17+10:i+=o}return i}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;s-=3)a=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[i]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,i++);else if("le"===r)for(s=0,i=0;s>>26-o&67108863,(o+=24)>=26&&(o-=26,i++);return this.strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n,i=0;i=t;i-=2)n=o(e,t,i)<=18?(a-=18,s+=1,this.words[s]|=n>>>26):a+=8;else for(i=(e.length-t)%2==0?t+1:t;i=18?(a-=18,s+=1,this.words[s]|=n>>>26):a+=8;this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var a=e.length-r,s=a%n,o=Math.min(a,a-s)+r,f=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var f,u=["","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"],d=[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],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],a=0|t.words[0],s=i*a,o=67108863&s,c=s/67108864|0;r.words[0]=o;for(var f=1;f>>26,d=67108863&c,l=Math.min(f,t.length-1),h=Math.max(0,f-e.length+1);h<=l;h++){var p=f-h|0;u+=(s=(i=0|e.words[p])*(a=0|t.words[h])+d)/67108864|0,d=67108863&s}r.words[f]=0|d,c=0|u}return 0!==c?r.words[f]=0|c:r.length--,r.strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,i=0,a=0,s=0;s>>24-i&16777215)||s!==this.length-1?u[6-c.length]+c+r:c+r,(i+=2)>=26&&(i-=26,s--)}for(0!==a&&(r=a.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 f=d[e],h=l[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?m+r:u[f-m.length]+m+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")},a.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},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return n(void 0!==f),this.toArrayLike(f,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var i,a,s=this.byteLength(),o=r||Math.max(1,s);n(s<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var c=new e(o),f=this.clone();if("le"===t){for(a=0;!f.isZero();a++)i=f.andln(255),f.iushrn(8),c[a]=i;for(;a=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},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.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)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,a=0;a>>26;for(;0!==i&&a>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var a=0,s=0;s>26,this.words[s]=67108863&n;for(;0!==a&&s>26,this.words[s]=67108863&n;if(0===a&&s>>13,h=0|s[1],p=8191&h,m=h>>>13,b=0|s[2],g=8191&b,y=b>>>13,v=0|s[3],w=8191&v,_=v>>>13,E=0|s[4],A=8191&E,M=E>>>13,S=0|s[5],x=8191&S,T=S>>>13,k=0|s[6],R=8191&k,I=k>>>13,C=0|s[7],P=8191&C,O=C>>>13,N=0|s[8],j=8191&N,B=N>>>13,L=0|s[9],D=8191&L,U=L>>>13,F=0|o[0],q=8191&F,z=F>>>13,K=0|o[1],H=8191&K,V=K>>>13,W=0|o[2],G=8191&W,J=W>>>13,Z=0|o[3],$=8191&Z,X=Z>>>13,Y=0|o[4],Q=8191&Y,ee=Y>>>13,et=0|o[5],er=8191&et,en=et>>>13,ei=0|o[6],ea=8191&ei,es=ei>>>13,eo=0|o[7],ec=8191&eo,ef=eo>>>13,eu=0|o[8],ed=8191&eu,el=eu>>>13,eh=0|o[9],ep=8191&eh,em=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var eb=(f+(n=Math.imul(d,q))|0)+((8191&(i=(i=Math.imul(d,z))+Math.imul(l,q)|0))<<13)|0;f=((a=Math.imul(l,z))+(i>>>13)|0)+(eb>>>26)|0,eb&=67108863,n=Math.imul(p,q),i=(i=Math.imul(p,z))+Math.imul(m,q)|0,a=Math.imul(m,z);var eg=(f+(n=n+Math.imul(d,H)|0)|0)+((8191&(i=(i=i+Math.imul(d,V)|0)+Math.imul(l,H)|0))<<13)|0;f=((a=a+Math.imul(l,V)|0)+(i>>>13)|0)+(eg>>>26)|0,eg&=67108863,n=Math.imul(g,q),i=(i=Math.imul(g,z))+Math.imul(y,q)|0,a=Math.imul(y,z),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,H)|0,a=a+Math.imul(m,V)|0;var ey=(f+(n=n+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,J)|0)+Math.imul(l,G)|0))<<13)|0;f=((a=a+Math.imul(l,J)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=67108863,n=Math.imul(w,q),i=(i=Math.imul(w,z))+Math.imul(_,q)|0,a=Math.imul(_,z),n=n+Math.imul(g,H)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,V)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,G)|0,a=a+Math.imul(m,J)|0;var ev=(f+(n=n+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(l,$)|0))<<13)|0;f=((a=a+Math.imul(l,X)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=67108863,n=Math.imul(A,q),i=(i=Math.imul(A,z))+Math.imul(M,q)|0,a=Math.imul(M,z),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,V)|0,n=n+Math.imul(g,G)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,J)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,$)|0,a=a+Math.imul(m,X)|0;var ew=(f+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(l,Q)|0))<<13)|0;f=((a=a+Math.imul(l,ee)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=67108863,n=Math.imul(x,q),i=(i=Math.imul(x,z))+Math.imul(T,q)|0,a=Math.imul(T,z),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(M,H)|0,a=a+Math.imul(M,V)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,G)|0,a=a+Math.imul(_,J)|0,n=n+Math.imul(g,$)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(y,$)|0,a=a+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,a=a+Math.imul(m,ee)|0;var e_=(f+(n=n+Math.imul(d,er)|0)|0)+((8191&(i=(i=i+Math.imul(d,en)|0)+Math.imul(l,er)|0))<<13)|0;f=((a=a+Math.imul(l,en)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,z))+Math.imul(I,q)|0,a=Math.imul(I,z),n=n+Math.imul(x,H)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(T,H)|0,a=a+Math.imul(T,V)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(M,G)|0,a=a+Math.imul(M,J)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(_,$)|0,a=a+Math.imul(_,X)|0,n=n+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(y,Q)|0,a=a+Math.imul(y,ee)|0,n=n+Math.imul(p,er)|0,i=(i=i+Math.imul(p,en)|0)+Math.imul(m,er)|0,a=a+Math.imul(m,en)|0;var eE=(f+(n=n+Math.imul(d,ea)|0)|0)+((8191&(i=(i=i+Math.imul(d,es)|0)+Math.imul(l,ea)|0))<<13)|0;f=((a=a+Math.imul(l,es)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=67108863,n=Math.imul(P,q),i=(i=Math.imul(P,z))+Math.imul(O,q)|0,a=Math.imul(O,z),n=n+Math.imul(R,H)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,V)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(T,G)|0,a=a+Math.imul(T,J)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(M,$)|0,a=a+Math.imul(M,X)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,ee)|0,n=n+Math.imul(g,er)|0,i=(i=i+Math.imul(g,en)|0)+Math.imul(y,er)|0,a=a+Math.imul(y,en)|0,n=n+Math.imul(p,ea)|0,i=(i=i+Math.imul(p,es)|0)+Math.imul(m,ea)|0,a=a+Math.imul(m,es)|0;var eA=(f+(n=n+Math.imul(d,ec)|0)|0)+((8191&(i=(i=i+Math.imul(d,ef)|0)+Math.imul(l,ec)|0))<<13)|0;f=((a=a+Math.imul(l,ef)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=67108863,n=Math.imul(j,q),i=(i=Math.imul(j,z))+Math.imul(B,q)|0,a=Math.imul(B,z),n=n+Math.imul(P,H)|0,i=(i=i+Math.imul(P,V)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,V)|0,n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(I,G)|0,a=a+Math.imul(I,J)|0,n=n+Math.imul(x,$)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(T,$)|0,a=a+Math.imul(T,X)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(M,Q)|0,a=a+Math.imul(M,ee)|0,n=n+Math.imul(w,er)|0,i=(i=i+Math.imul(w,en)|0)+Math.imul(_,er)|0,a=a+Math.imul(_,en)|0,n=n+Math.imul(g,ea)|0,i=(i=i+Math.imul(g,es)|0)+Math.imul(y,ea)|0,a=a+Math.imul(y,es)|0,n=n+Math.imul(p,ec)|0,i=(i=i+Math.imul(p,ef)|0)+Math.imul(m,ec)|0,a=a+Math.imul(m,ef)|0;var eM=(f+(n=n+Math.imul(d,ed)|0)|0)+((8191&(i=(i=i+Math.imul(d,el)|0)+Math.imul(l,ed)|0))<<13)|0;f=((a=a+Math.imul(l,el)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,z))+Math.imul(U,q)|0,a=Math.imul(U,z),n=n+Math.imul(j,H)|0,i=(i=i+Math.imul(j,V)|0)+Math.imul(B,H)|0,a=a+Math.imul(B,V)|0,n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(O,G)|0,a=a+Math.imul(O,J)|0,n=n+Math.imul(R,$)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(I,$)|0,a=a+Math.imul(I,X)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(T,Q)|0,a=a+Math.imul(T,ee)|0,n=n+Math.imul(A,er)|0,i=(i=i+Math.imul(A,en)|0)+Math.imul(M,er)|0,a=a+Math.imul(M,en)|0,n=n+Math.imul(w,ea)|0,i=(i=i+Math.imul(w,es)|0)+Math.imul(_,ea)|0,a=a+Math.imul(_,es)|0,n=n+Math.imul(g,ec)|0,i=(i=i+Math.imul(g,ef)|0)+Math.imul(y,ec)|0,a=a+Math.imul(y,ef)|0,n=n+Math.imul(p,ed)|0,i=(i=i+Math.imul(p,el)|0)+Math.imul(m,ed)|0,a=a+Math.imul(m,el)|0;var eS=(f+(n=n+Math.imul(d,ep)|0)|0)+((8191&(i=(i=i+Math.imul(d,em)|0)+Math.imul(l,ep)|0))<<13)|0;f=((a=a+Math.imul(l,em)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=67108863,n=Math.imul(D,H),i=(i=Math.imul(D,V))+Math.imul(U,H)|0,a=Math.imul(U,V),n=n+Math.imul(j,G)|0,i=(i=i+Math.imul(j,J)|0)+Math.imul(B,G)|0,a=a+Math.imul(B,J)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(O,$)|0,a=a+Math.imul(O,X)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(I,Q)|0,a=a+Math.imul(I,ee)|0,n=n+Math.imul(x,er)|0,i=(i=i+Math.imul(x,en)|0)+Math.imul(T,er)|0,a=a+Math.imul(T,en)|0,n=n+Math.imul(A,ea)|0,i=(i=i+Math.imul(A,es)|0)+Math.imul(M,ea)|0,a=a+Math.imul(M,es)|0,n=n+Math.imul(w,ec)|0,i=(i=i+Math.imul(w,ef)|0)+Math.imul(_,ec)|0,a=a+Math.imul(_,ef)|0,n=n+Math.imul(g,ed)|0,i=(i=i+Math.imul(g,el)|0)+Math.imul(y,ed)|0,a=a+Math.imul(y,el)|0;var ex=(f+(n=n+Math.imul(p,ep)|0)|0)+((8191&(i=(i=i+Math.imul(p,em)|0)+Math.imul(m,ep)|0))<<13)|0;f=((a=a+Math.imul(m,em)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=67108863,n=Math.imul(D,G),i=(i=Math.imul(D,J))+Math.imul(U,G)|0,a=Math.imul(U,J),n=n+Math.imul(j,$)|0,i=(i=i+Math.imul(j,X)|0)+Math.imul(B,$)|0,a=a+Math.imul(B,X)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,n=n+Math.imul(R,er)|0,i=(i=i+Math.imul(R,en)|0)+Math.imul(I,er)|0,a=a+Math.imul(I,en)|0,n=n+Math.imul(x,ea)|0,i=(i=i+Math.imul(x,es)|0)+Math.imul(T,ea)|0,a=a+Math.imul(T,es)|0,n=n+Math.imul(A,ec)|0,i=(i=i+Math.imul(A,ef)|0)+Math.imul(M,ec)|0,a=a+Math.imul(M,ef)|0,n=n+Math.imul(w,ed)|0,i=(i=i+Math.imul(w,el)|0)+Math.imul(_,ed)|0,a=a+Math.imul(_,el)|0;var eT=(f+(n=n+Math.imul(g,ep)|0)|0)+((8191&(i=(i=i+Math.imul(g,em)|0)+Math.imul(y,ep)|0))<<13)|0;f=((a=a+Math.imul(y,em)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,X))+Math.imul(U,$)|0,a=Math.imul(U,X),n=n+Math.imul(j,Q)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(B,Q)|0,a=a+Math.imul(B,ee)|0,n=n+Math.imul(P,er)|0,i=(i=i+Math.imul(P,en)|0)+Math.imul(O,er)|0,a=a+Math.imul(O,en)|0,n=n+Math.imul(R,ea)|0,i=(i=i+Math.imul(R,es)|0)+Math.imul(I,ea)|0,a=a+Math.imul(I,es)|0,n=n+Math.imul(x,ec)|0,i=(i=i+Math.imul(x,ef)|0)+Math.imul(T,ec)|0,a=a+Math.imul(T,ef)|0,n=n+Math.imul(A,ed)|0,i=(i=i+Math.imul(A,el)|0)+Math.imul(M,ed)|0,a=a+Math.imul(M,el)|0;var ek=(f+(n=n+Math.imul(w,ep)|0)|0)+((8191&(i=(i=i+Math.imul(w,em)|0)+Math.imul(_,ep)|0))<<13)|0;f=((a=a+Math.imul(_,em)|0)+(i>>>13)|0)+(ek>>>26)|0,ek&=67108863,n=Math.imul(D,Q),i=(i=Math.imul(D,ee))+Math.imul(U,Q)|0,a=Math.imul(U,ee),n=n+Math.imul(j,er)|0,i=(i=i+Math.imul(j,en)|0)+Math.imul(B,er)|0,a=a+Math.imul(B,en)|0,n=n+Math.imul(P,ea)|0,i=(i=i+Math.imul(P,es)|0)+Math.imul(O,ea)|0,a=a+Math.imul(O,es)|0,n=n+Math.imul(R,ec)|0,i=(i=i+Math.imul(R,ef)|0)+Math.imul(I,ec)|0,a=a+Math.imul(I,ef)|0,n=n+Math.imul(x,ed)|0,i=(i=i+Math.imul(x,el)|0)+Math.imul(T,ed)|0,a=a+Math.imul(T,el)|0;var eR=(f+(n=n+Math.imul(A,ep)|0)|0)+((8191&(i=(i=i+Math.imul(A,em)|0)+Math.imul(M,ep)|0))<<13)|0;f=((a=a+Math.imul(M,em)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=67108863,n=Math.imul(D,er),i=(i=Math.imul(D,en))+Math.imul(U,er)|0,a=Math.imul(U,en),n=n+Math.imul(j,ea)|0,i=(i=i+Math.imul(j,es)|0)+Math.imul(B,ea)|0,a=a+Math.imul(B,es)|0,n=n+Math.imul(P,ec)|0,i=(i=i+Math.imul(P,ef)|0)+Math.imul(O,ec)|0,a=a+Math.imul(O,ef)|0,n=n+Math.imul(R,ed)|0,i=(i=i+Math.imul(R,el)|0)+Math.imul(I,ed)|0,a=a+Math.imul(I,el)|0;var eI=(f+(n=n+Math.imul(x,ep)|0)|0)+((8191&(i=(i=i+Math.imul(x,em)|0)+Math.imul(T,ep)|0))<<13)|0;f=((a=a+Math.imul(T,em)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=67108863,n=Math.imul(D,ea),i=(i=Math.imul(D,es))+Math.imul(U,ea)|0,a=Math.imul(U,es),n=n+Math.imul(j,ec)|0,i=(i=i+Math.imul(j,ef)|0)+Math.imul(B,ec)|0,a=a+Math.imul(B,ef)|0,n=n+Math.imul(P,ed)|0,i=(i=i+Math.imul(P,el)|0)+Math.imul(O,ed)|0,a=a+Math.imul(O,el)|0;var eC=(f+(n=n+Math.imul(R,ep)|0)|0)+((8191&(i=(i=i+Math.imul(R,em)|0)+Math.imul(I,ep)|0))<<13)|0;f=((a=a+Math.imul(I,em)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=67108863,n=Math.imul(D,ec),i=(i=Math.imul(D,ef))+Math.imul(U,ec)|0,a=Math.imul(U,ef),n=n+Math.imul(j,ed)|0,i=(i=i+Math.imul(j,el)|0)+Math.imul(B,ed)|0,a=a+Math.imul(B,el)|0;var eP=(f+(n=n+Math.imul(P,ep)|0)|0)+((8191&(i=(i=i+Math.imul(P,em)|0)+Math.imul(O,ep)|0))<<13)|0;f=((a=a+Math.imul(O,em)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=67108863,n=Math.imul(D,ed),i=(i=Math.imul(D,el))+Math.imul(U,ed)|0,a=Math.imul(U,el);var eO=(f+(n=n+Math.imul(j,ep)|0)|0)+((8191&(i=(i=i+Math.imul(j,em)|0)+Math.imul(B,ep)|0))<<13)|0;f=((a=a+Math.imul(B,em)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=67108863;var eN=(f+(n=Math.imul(D,ep))|0)+((8191&(i=(i=Math.imul(D,em))+Math.imul(U,ep)|0))<<13)|0;return f=((a=Math.imul(U,em))+(i>>>13)|0)+(eN>>>26)|0,eN&=67108863,c[0]=eb,c[1]=eg,c[2]=ey,c[3]=ev,c[4]=ew,c[5]=e_,c[6]=eE,c[7]=eA,c[8]=eM,c[9]=eS,c[10]=ex,c[11]=eT,c[12]=ek,c[13]=eR,c[14]=eI,c[15]=eC,c[16]=eP,c[17]=eO,c[18]=eN,0!==f&&(c[19]=f,r.length++),r};function m(e,t,r){return new b().mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(p=h),a.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):r<63?h(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,a=0;a>>26)|0)>>>26,s&=67108863}r.words[a]=o,n=s,s=i}return 0!==n?r.words[a]=n:r.length--,r.strip()}(this,e,t):m(this,e,t)},b.prototype.makeRBT=function(e){for(var t=Array(e),r=a.prototype._countBits(e)-1,n=0;n>=1;return n},b.prototype.permute=function(e,t,r,n,i,a){for(var s=0;s>>=1)i++;return 1<>>=13,r[2*s+1]=8191&a,a>>>=13;for(s=2*t;s>=26,t+=(i/67108864|0)+(a>>>26),this.words[r]=67108863&a}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>i}return t}(e);if(0===t.length)return new a(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,a=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var i,a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<s)for(this.length-=s,c=0;c=0&&(0!==f||c>=i);c--){var u=0|this.words[c];this.words[c]=f<<26-a|u>>>a,f=u&o}return r&&0!==f&&(r.words[r.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return!(this.length<=r)&&!!(this.words[r]&1<=0);var t=e%26,r=(e-t)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==t&&r++,this.length=Math.min(r,this.length),0!==t&&(this.words[this.length-1]&=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},a.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[i+r]=67108863&a}for(;i>26,this.words[i+r]=67108863&a;if(0===o)return this.strip();for(n(-1===o),o=0,i=0;i>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),s=e,o=0|s.words[s.length-1];0!=(n=26-this._countBits(o))&&(s=s.ushln(n),i.iushln(n),o=0|s.words[s.length-1]);var c=i.length-s.length;if("mod"!==t){(r=new a(null)).length=c+1,r.words=Array(r.length);for(var f=0;f=0;d--){var l=(0|i.words[s.length+d])*67108864+(0|i.words[s.length+d-1]);for(l=Math.min(l/o|0,67108863),i._ishlnsubmul(s,l,d);0!==i.negative;)l--,i.negative=0,i._ishlnsubmul(s,1,d),i.isZero()||(i.negative^=1);r&&(r.words[d]=l)}return r&&r.strip(),i.strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},a.prototype.divmod=function(e,t,r){var i,s,o;return(n(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(i=o.div.neg()),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:i,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(i=o.div.neg()),{div:i,mod:o.mod}):(this.negative&e.negative)!=0?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:o.div,mod:s}):e.length>this.length||0>this.cmp(e)?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.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),i=e.andln(1),a=r.cmp(n);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){n(e<=67108863);for(var t=67108864%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},a.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.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 i=new a(1),s=new a(0),o=new a(0),c=new a(1),f=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++f;for(var u=r.clone(),d=t.clone();!t.isZero();){for(var l=0,h=1;(t.words[0]&h)==0&&l<26;++l,h<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(u),s.isub(d)),i.iushrn(1),s.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(o.isOdd()||c.isOdd())&&(o.iadd(u),c.isub(d)),o.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(o),s.isub(c)):(r.isub(t),o.isub(i),c.isub(s))}return{a:o,b:c,gcd:r.iushln(f)}},a.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new a(1),o=new a(0),c=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var f=0,u=1;(r.words[0]&u)==0&&f<26;++f,u<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var d=0,l=1;(i.words[0]&l)==0&&d<26;++d,l<<=1);if(d>0)for(i.iushrn(d);d-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);r.cmp(i)>=0?(r.isub(i),s.isub(o)):(i.isub(r),o.isub(s))}return 0>(t=0===r.cmpn(1)?s:o).cmpn(0)&&t.iadd(e),t},a.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 i=t.cmp(r);if(i<0){var a=t;t=r,r=a}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new A(e)},a.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)},a.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"==typeof e){var t=a._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 M(e){A.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(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)}y.prototype._tmp=function(){var e=new a(null);return e.words=Array(Math.ceil(this.n/13)),e},y.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},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},i(v,y),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,i=a}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(g[e])return g[e];if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new _;else if("p25519"===e)t=new E;else throw Error("Unknown prime "+e);return g[e]=t,t},A.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},A.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},A.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);n(!i.isZero());var o=new a(1).toRed(this),c=o.redNeg(),f=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,f).cmp(c);)u.redIAdd(c);for(var d=this.pow(u,i),l=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=s;0!==h.cmp(o);){for(var m=h,b=0;0!==m.cmp(o);b++)m=m.redSqr();n(b=0;n--){for(var f=t.words[n],u=c-1;u>=0;u--){var d=f>>u&1;if(i!==r[0]&&(i=this.sqr(i)),0===d&&0===s){o=0;continue}s<<=1,s|=d,(4==++o||0===n&&0===u)&&(i=this.mul(i,r[s]),o=0,s=0)}c=26}return i},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new M(e)},i(M,A),M.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},M.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},M.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),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},M.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):0>i.cmpn(0)&&(s=i.iadd(this.m)),s._forceRed(this)},M.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)},{"64c9d23ade4c9eaa":"3eno3"}],"9jyud":[function(e,t,r){var n=e("94162e508c4195c3"),i=e("1bab2adfd8072b94").Buffer;t.exports=function(e,t){return i.from(e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed().toArray())}},{"94162e508c4195c3":"9DpW1","1bab2adfd8072b94":"6CY3D"}],kaYjd:[function(e,t,r){var n=e("6c46b1d8bb7eae7b"),i=e("9e51003323ea065d"),a=e("637b57d34a8dda25"),s=e("3927561f39566b29"),o=e("521cbc4ce6042d5b"),c=e("95282d7c0e66f364"),f=e("1bc2f92e3c398dbe"),u=e("802d086fb6d63368").Buffer;t.exports=function(e,t,r){d=e.padding?e.padding:r?1:4;var d,l,h=n(e),p=h.modulus.byteLength();if(t.length>p||new s(t).cmp(h.modulus)>=0)throw Error("decryption error");l=r?f(new s(t),h):o(t,h);var m=u.alloc(p-l.length);if(l=u.concat([m,l],p),4===d)return function(e,t){var r=e.modulus.byteLength(),n=c("sha1").update(u.alloc(0)).digest(),s=n.length;if(0!==t[0])throw Error("decryption error");var o=t.slice(1,s+1),f=t.slice(s+1),d=a(o,i(f,s)),l=a(f,i(d,r-s-1));if(function(e,t){e=u.from(e),t=u.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));for(var i=-1;++i=t.length){a++;break}var s=t.slice(2,i-1);if(("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&a++,s.length<8&&a++,a)throw Error("decryption error");return t.slice(i)}(0,l,r);if(3===d)return l;throw Error("unknown padding")}},{"6c46b1d8bb7eae7b":"6XduM","9e51003323ea065d":"gJHL1","637b57d34a8dda25":"hGH6g","3927561f39566b29":"9DpW1","521cbc4ce6042d5b":"9CU5S","95282d7c0e66f364":"cCtrs","1bc2f92e3c398dbe":"9jyud","802d086fb6d63368":"6CY3D"}],"51dpI":[function(e,t,r){"use strict";var n=arguments[3],i=e("e52c82591caff1d7");function a(){throw Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var s=e("954d667c0302f12c");e("7041a0e993c249ef");var o=s.Buffer,c=s.kMaxLength,f=n.crypto||n.msCrypto;function u(e,t){if("number"!=typeof e||e!=e)throw TypeError("offset must be a number");if(e>4294967295||e<0)throw TypeError("offset must be a uint32");if(e>c||e>t)throw RangeError("offset out of range")}function d(e,t,r){if("number"!=typeof e||e!=e)throw TypeError("size must be a number");if(e>4294967295||e<0)throw TypeError("size must be a uint32");if(e+t>r||e>c)throw RangeError("buffer too small")}function l(e,t,r,n){var a=e.buffer,s=new Uint8Array(a,t,r);if(f.getRandomValues(s),n){i.nextTick(function(){n(null,e)});return}return e}f&&f.getRandomValues?(r.randomFill=function(e,t,r,i){if(!o.isBuffer(e)&&!(e instanceof n.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)i=t,t=0,r=e.length;else if("function"==typeof r)i=r,r=e.length-t;else if("function"!=typeof i)throw TypeError('"cb" argument must be a function');return u(t,e.length),d(r,t,e.length),l(e,t,r,i)},r.randomFillSync=function(e,t,r){if(void 0===t&&(t=0),!o.isBuffer(e)&&!(e instanceof n.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');return u(t,e.length),void 0===r&&(r=e.length-t),d(r,t,e.length),l(e,t,r)}):(r.randomFill=a,r.randomFillSync=a)},{e52c82591caff1d7:"fg0b3","954d667c0302f12c":"6CY3D","7041a0e993c249ef":"6xAZm"}],kf6Fl:[function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=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(r,"__esModule",{value:!0}),r.isHexString=r.getKeys=r.fromAscii=r.fromUtf8=r.toAscii=r.arrayContainsArray=r.getBinarySize=r.padToEven=r.stripHexPrefix=r.isHexPrefixed=void 0,i(e("bf50b53e66bd78ae"),r),i(e("dd065c472b0551aa"),r),i(e("b115ace1c5aaed38"),r),i(e("88e46d1ab0420a67"),r),i(e("7f5682ba3d2490bd"),r),i(e("a4db0028d96db3f7"),r),i(e("9acdd69c57d35035"),r),i(e("3d470417433d9941"),r),i(e("5aa2cb509ed6c32d"),r);var a=e("287b1e51e2efbb0c");Object.defineProperty(r,"isHexPrefixed",{enumerable:!0,get:function(){return a.isHexPrefixed}}),Object.defineProperty(r,"stripHexPrefix",{enumerable:!0,get:function(){return a.stripHexPrefix}}),Object.defineProperty(r,"padToEven",{enumerable:!0,get:function(){return a.padToEven}}),Object.defineProperty(r,"getBinarySize",{enumerable:!0,get:function(){return a.getBinarySize}}),Object.defineProperty(r,"arrayContainsArray",{enumerable:!0,get:function(){return a.arrayContainsArray}}),Object.defineProperty(r,"toAscii",{enumerable:!0,get:function(){return a.toAscii}}),Object.defineProperty(r,"fromUtf8",{enumerable:!0,get:function(){return a.fromUtf8}}),Object.defineProperty(r,"fromAscii",{enumerable:!0,get:function(){return a.fromAscii}}),Object.defineProperty(r,"getKeys",{enumerable:!0,get:function(){return a.getKeys}}),Object.defineProperty(r,"isHexString",{enumerable:!0,get:function(){return a.isHexString}})},{bf50b53e66bd78ae:"lkw7f",dd065c472b0551aa:"bzwNx",b115ace1c5aaed38:"h1KCF","88e46d1ab0420a67":"ipL9G","7f5682ba3d2490bd":"bqbjN",a4db0028d96db3f7:"kZa0v","9acdd69c57d35035":"4p8A4","3d470417433d9941":"hx2li","5aa2cb509ed6c32d":"eWBQO","287b1e51e2efbb0c":"1a9Yl"}],lkw7f:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.KECCAK256_RLP=r.KECCAK256_RLP_S=r.KECCAK256_RLP_ARRAY=r.KECCAK256_RLP_ARRAY_S=r.KECCAK256_NULL=r.KECCAK256_NULL_S=r.TWO_POW256=r.MAX_INTEGER=r.MAX_UINT64=void 0;var n=e("4a8a1726ff33f9ec"),i=e("20245c0ea7c8fba9");r.MAX_UINT64=new i.BN("ffffffffffffffff",16),r.MAX_INTEGER=new i.BN("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),r.TWO_POW256=new i.BN("10000000000000000000000000000000000000000000000000000000000000000",16),r.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",r.KECCAK256_NULL=n.Buffer.from(r.KECCAK256_NULL_S,"hex"),r.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",r.KECCAK256_RLP_ARRAY=n.Buffer.from(r.KECCAK256_RLP_ARRAY_S,"hex"),r.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",r.KECCAK256_RLP=n.Buffer.from(r.KECCAK256_RLP_S,"hex")},{"4a8a1726ff33f9ec":"2MMCE","20245c0ea7c8fba9":"hx2li"}],hx2li:[function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=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 i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.rlp=r.BN=void 0;var o=s(e("861b9458cf98e3bd"));r.BN=o.default;var c=a(e("cc920cb59362bdcc"));r.rlp=c},{"861b9458cf98e3bd":"lXPno",cc920cb59362bdcc:"ctmWm"}],ctmWm:[function(e,t,r){var n=e("c4f3522d609e2bb4").Buffer;"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.getLength=r.decode=r.encode=void 0;var a=i(e("f2de64fac014d334"));function s(e,t){if("0"===e[0]&&"0"===e[1])throw Error("invalid RLP: extra zeros");return parseInt(e,t)}function o(e,t){if(e<56)return n.from([e+t]);var r=f(e),i=f(t+55+r.length/2);return n.from(i+r,"hex")}function c(e){return"0x"===e.slice(0,2)}function f(e){if(e<0)throw Error("Invalid integer as argument, must be unsigned!");var t=e.toString(16);return t.length%2?"0"+t:t}function u(e){if(!n.isBuffer(e)){var t,r;if("string"==typeof e)return c(e)?n.from((t="string"!=typeof e?e:c(e)?e.slice(2):e).length%2?"0"+t:t,"hex"):n.from(e);if("number"==typeof e||"bigint"==typeof e)return e?(r=f(e),n.from(r,"hex")):n.from([]);if(null==e)return n.from([]);if(e instanceof Uint8Array)return n.from(e);else if(a.default.isBN(e))return n.from(e.toArray());else throw Error("invalid type")}return e}r.encode=function e(t){if(Array.isArray(t)){for(var r=[],i=0;it.length)throw Error("invalid rlp: total length is larger than the data");if(0===(o=t.slice(i,d)).length)throw Error("invalid rlp, List has a invalid length");for(;o.length;)c=e(o),f.push(c.data),o=c.remainder;return{data:f,remainder:t.slice(d)}}(u(e));if(t)return r;if(0!==r.remainder.length)throw Error("invalid remainder");return r.data},r.getLength=function(e){if(!e||0===e.length)return n.from([]);var t=u(e),r=t[0];if(r<=127)return t.length;if(r<=183)return r-127;if(r<=191)return r-182;if(r<=247)return r-191;var i=r-246,a=s(t.slice(1,i).toString("hex"),16);return i+a}},{c4f3522d609e2bb4:"2MMCE",f2de64fac014d334:"lXPno"}],bzwNx:[function(e,t,r){"use strict";var n=e("239680ae77fd7256").Buffer,i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return s},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.isZeroAddress=r.zeroAddress=r.importPublic=r.privateToAddress=r.privateToPublic=r.publicToAddress=r.pubToAddress=r.isValidPublic=r.isValidPrivate=r.generateAddress2=r.generateAddress=r.isValidChecksumAddress=r.toChecksumAddress=r.isValidAddress=r.Account=void 0;var s=a(e("c625d04718b44934")),o=e("d826c36f7dbc8b6b"),c=e("ad9f6d50db6ac3d9"),f=e("b589310d0858a77a"),u=e("afb5aa690896402c"),d=e("94c371da3aa3838f"),l=e("e0d93e4c6eac12d8"),h=e("947105c4c404cdce"),p=e("aebdc58a1d4e01a9"),m=function(){function e(e,t,r,n){void 0===e&&(e=new o.BN(0)),void 0===t&&(t=new o.BN(0)),void 0===r&&(r=u.KECCAK256_RLP),void 0===n&&(n=u.KECCAK256_NULL),this.nonce=e,this.balance=t,this.stateRoot=r,this.codeHash=n,this._validate()}return e.fromAccountData=function(t){var r=t.nonce,n=t.balance,i=t.stateRoot,a=t.codeHash;return new e(r?new o.BN((0,d.toBuffer)(r)):void 0,n?new o.BN((0,d.toBuffer)(n)):void 0,i?(0,d.toBuffer)(i):void 0,a?(0,d.toBuffer)(a):void 0)},e.fromRlpSerializedAccount=function(e){var t=o.rlp.decode(e);if(!Array.isArray(t))throw Error("Invalid serialized account input. Must be array");return this.fromValuesArray(t)},e.fromValuesArray=function(t){var r=i(t,4),n=r[0],a=r[1],s=r[2],c=r[3];return new e(new o.BN(n),new o.BN(a),s,c)},e.prototype._validate=function(){if(this.nonce.lt(new o.BN(0)))throw Error("nonce must be greater than zero");if(this.balance.lt(new o.BN(0)))throw Error("balance must be greater than zero");if(32!==this.stateRoot.length)throw Error("stateRoot must have a length of 32");if(32!==this.codeHash.length)throw Error("codeHash must have a length of 32")},e.prototype.raw=function(){return[(0,p.bnToUnpaddedBuffer)(this.nonce),(0,p.bnToUnpaddedBuffer)(this.balance),this.stateRoot,this.codeHash]},e.prototype.serialize=function(){return o.rlp.encode(this.raw())},e.prototype.isContract=function(){return!this.codeHash.equals(u.KECCAK256_NULL)},e.prototype.isEmpty=function(){return this.balance.isZero()&&this.nonce.isZero()&&this.codeHash.equals(u.KECCAK256_NULL)},e}();r.Account=m,r.isValidAddress=function(e){try{(0,h.assertIsString)(e)}catch(e){return!1}return/^0x[0-9a-fA-F]{40}$/.test(e)},r.toChecksumAddress=function(e,t){(0,h.assertIsHexString)(e);var r=(0,f.stripHexPrefix)(e).toLowerCase(),n="";t&&(n=(0,p.toType)(t,p.TypeOutput.BN).toString()+"0x");for(var i=(0,l.keccakFromString)(n+r).toString("hex"),a="0x",s=0;s=8?a+=r[s].toUpperCase():a+=r[s];return a},r.isValidChecksumAddress=function(e,t){return(0,r.isValidAddress)(e)&&(0,r.toChecksumAddress)(e,t)===e},r.generateAddress=function(e,t){(0,h.assertIsBuffer)(e),(0,h.assertIsBuffer)(t);var r=new o.BN(t);return r.isZero()?(0,l.rlphash)([e,null]).slice(-20):(0,l.rlphash)([e,n.from(r.toArray())]).slice(-20)},r.generateAddress2=function(e,t,r){return(0,h.assertIsBuffer)(e),(0,h.assertIsBuffer)(t),(0,h.assertIsBuffer)(r),(0,s.default)(20===e.length),(0,s.default)(32===t.length),(0,l.keccak256)(n.concat([n.from("ff","hex"),e,t,(0,l.keccak256)(r)])).slice(-20)},r.isValidPrivate=function(e){return(0,c.privateKeyVerify)(e)},r.isValidPublic=function(e,t){return(void 0===t&&(t=!1),(0,h.assertIsBuffer)(e),64===e.length)?(0,c.publicKeyVerify)(n.concat([n.from([4]),e])):!!t&&(0,c.publicKeyVerify)(e)},r.pubToAddress=function(e,t){return void 0===t&&(t=!1),(0,h.assertIsBuffer)(e),t&&64!==e.length&&(e=n.from((0,c.publicKeyConvert)(e,!1).slice(1))),(0,s.default)(64===e.length),(0,l.keccak)(e).slice(-20)},r.publicToAddress=r.pubToAddress,r.privateToPublic=function(e){return(0,h.assertIsBuffer)(e),n.from((0,c.publicKeyCreate)(e,!1)).slice(1)},r.privateToAddress=function(e){return(0,r.publicToAddress)((0,r.privateToPublic)(e))},r.importPublic=function(e){return(0,h.assertIsBuffer)(e),64!==e.length&&(e=n.from((0,c.publicKeyConvert)(e,!1).slice(1))),e},r.zeroAddress=function(){var e=(0,d.zeros)(20);return(0,d.bufferToHex)(e)},r.isZeroAddress=function(e){try{(0,h.assertIsString)(e)}catch(e){return!1}return(0,r.zeroAddress)()===e}},{"239680ae77fd7256":"2MMCE",c625d04718b44934:"aeMhE",d826c36f7dbc8b6b:"hx2li",ad9f6d50db6ac3d9:"jWaCZ",b589310d0858a77a:"1a9Yl",afb5aa690896402c:"lkw7f","94c371da3aa3838f":"kZa0v",e0d93e4c6eac12d8:"ipL9G","947105c4c404cdce":"70pb8",aebdc58a1d4e01a9:"eWBQO"}],aeMhE:[function(e,t,r){"use strict";var n,i,a=e("17530e9a8e9dd8de");function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=e("67930e3bebc18ea9").codes,c=o.ERR_AMBIGUOUS_ARGUMENT,f=o.ERR_INVALID_ARG_TYPE,u=o.ERR_INVALID_ARG_VALUE,d=o.ERR_INVALID_RETURN_VALUE,l=o.ERR_MISSING_ARGS,h=e("11bdd262fb706a54"),p=e("d61a3396666721b6").inspect,m=e("d61a3396666721b6").types,b=m.isPromise,g=m.isRegExp,y=Object.assign?Object.assign:e("613bbc2cfb4d4558").assign,v=Object.is?Object.is:e("f909244cb7b0ea0c");function w(){var t=e("131e25d2408617a4");n=t.isDeepEqual,i=t.isDeepStrictEqual}var _=!1,E=t.exports=x,A={};function M(e){if(e.message instanceof Error)throw e.message;throw new h(e)}function S(e,t,r,n){if(!r){var i=!1;if(0===t)i=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var a=new h({actual:r,expected:!0,message:n,operator:"==",stackStartFn:e});throw a.generatedMessage=i,a}}function x(){for(var e=arguments.length,t=Array(e),r=0;r1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i2)?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}f("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),f("ERR_INVALID_ARG_TYPE",function(t,r,i){if((void 0===s&&(s=e("f73a3052b95b9ed")),s("string"==typeof t,"'name' must be a string"),"string"==typeof r&&(a="not ",r.substr(!o||o<0?0:+o,a.length)===a))?(l="must not be",r=r.replace(/^not /,"")):l="must be",c=" argument",(void 0===f||f>t.length)&&(f=t.length),t.substring(f-c.length,f)===c)h="The ".concat(t," ").concat(l," ").concat(u(r,"type"));else{var a,o,c,f,d,l,h,p=("number"!=typeof d&&(d=0),d+1>t.length||-1===t.indexOf(".",d))?"argument":"property";h='The "'.concat(t,'" ').concat(p," ").concat(l," ").concat(u(r,"type"))}return h+". Received type ".concat(n(i))},TypeError),f("ERR_INVALID_ARG_VALUE",function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===o&&(o=e("1fd472100fa8826f"));var i=o.inspect(r);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(n,". Received ").concat(i)},TypeError,RangeError),f("ERR_INVALID_RETURN_VALUE",function(e,t,r){var i;return i=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")},TypeError),f("ERR_MISSING_ARGS",function(){for(var t=arguments.length,r=Array(t),n=0;n0,"At least one arg needs to be specified");var i="The ",a=r.length;switch(r=r.map(function(e){return'"'.concat(e,'"')}),a){case 1:i+="".concat(r[0]," argument");break;case 2:i+="".concat(r[0]," and ").concat(r[1]," arguments");break;default:i+=r.slice(0,a-1).join(", ")+", and ".concat(r[a-1]," arguments")}return"".concat(i," must be specified")},TypeError),t.exports.codes=c},{f73a3052b95b9ed:"aeMhE","1fd472100fa8826f":"iQBwz"}],iQBwz:[function(e,t,r){var n=e("bc23a3ea4a141c0b"),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),o=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(t)?n.showHidden=t:t&&r._extend(n,t),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=f),d(n,e,n.depth)}function f(e,t){var r=c.styles[t];return r?"\x1b["+c.colors[r][0]+"m"+e+"\x1b["+c.colors[r][1]+"m":e}function u(e,t){return e}function d(e,t,n){if(e.customInspect&&t&&M(t.inspect)&&t.inspect!==r.inspect&&!(t.constructor&&t.constructor.prototype===t)){var i,a,s,o,c,f=t.inspect(n,e);return y(f)||(f=d(e,f,n)),f}var u=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(y(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return g(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):b(t)?e.stylize("null","null"):void 0}(e,t);if(u)return u;var _=Object.keys(t),S=(o={},_.forEach(function(e,t){o[e]=!0}),o);if(e.showHidden&&(_=Object.getOwnPropertyNames(t)),A(t)&&(_.indexOf("message")>=0||_.indexOf("description")>=0))return l(t);if(0===_.length){if(M(t)){var x=t.name?": "+t.name:"";return e.stylize("[Function"+x+"]","special")}if(w(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(E(t))return e.stylize(Date.prototype.toString.call(t),"date");if(A(t))return l(t)}var T="",R=!1,I=["{","}"];return(p(t)&&(R=!0,I=["[","]"]),M(t)&&(T=" [Function"+(t.name?": "+t.name:"")+"]"),w(t)&&(T=" "+RegExp.prototype.toString.call(t)),E(t)&&(T=" "+Date.prototype.toUTCString.call(t)),A(t)&&(T=" "+l(t)),0!==_.length||R&&0!=t.length)?n<0?w(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=R?function(e,t,r,n,i){for(var a=[],s=0,o=t.length;s=0&&s++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?a[0]+(""===i?"":i+"\n ")+" "+c.join(",\n ")+" "+a[1]:a[0]+i+" "+c.join(", ")+" "+a[1]):I[0]+T+I[1]}function l(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,r,n,i,a){var s,o,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?o=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(o=e.stylize("[Setter]","special")),k(n,i)||(s="["+i+"]"),!o&&(0>e.seen.indexOf(c.value)?(o=b(r)?d(e,c.value,null):d(e,c.value,r-1)).indexOf("\n")>-1&&(o=a?o.split("\n").map(function(e){return" "+e}).join("\n").slice(2):"\n"+o.split("\n").map(function(e){return" "+e}).join("\n")):o=e.stylize("[Circular]","special")),v(s)){if(a&&i.match(/^\d+$/))return o;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+o}function p(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function b(e){return null===e}function g(e){return"number"==typeof e}function y(e){return"string"==typeof e}function v(e){return void 0===e}function w(e){return _(e)&&"[object RegExp]"===S(e)}function _(e){return"object"==typeof e&&null!==e}function E(e){return _(e)&&"[object Date]"===S(e)}function A(e){return _(e)&&("[object Error]"===S(e)||e instanceof Error)}function M(e){return"function"==typeof e}function S(e){return Object.prototype.toString.call(e)}function x(e){return e<10?"0"+e.toString(10):e.toString(10)}r.debuglog=function(e){if(!s[e=e.toUpperCase()]){if(o.test(e)){var t=n.pid;s[e]=function(){var n=r.format.apply(r,arguments);console.error("%s %d: %s",e,t,n)}}else s[e]=function(){}}return s[e]},r.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},r.types=e("6a1c15bae847a134"),r.isArray=p,r.isBoolean=m,r.isNull=b,r.isNullOrUndefined=function(e){return null==e},r.isNumber=g,r.isString=y,r.isSymbol=function(e){return"symbol"==typeof e},r.isUndefined=v,r.isRegExp=w,r.types.isRegExp=w,r.isObject=_,r.isDate=E,r.types.isDate=E,r.isError=A,r.types.isNativeError=A,r.isFunction=M,r.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},r.isBuffer=e("a42137cd7fc8700d");var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function k(e,t){return Object.prototype.hasOwnProperty.call(e,t)}r.log=function(){var e,t;console.log("%s - %s",(t=[x((e=new Date).getHours()),x(e.getMinutes()),x(e.getSeconds())].join(":"),[e.getDate(),T[e.getMonth()],t].join(" ")),r.format.apply(r,arguments))},r.inherits=e("a792e8e3e2aa1973"),r._extend=function(e,t){if(!t||!_(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var R="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function I(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}r.promisify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(R&&e[R]){var t=e[R];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,R,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),i=[],a=0;a=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},o=function(){return a(arguments)}();a.isLegacyArguments=s,t.exports=o?a:s},{e2b01ce809f132fb:"8kCl3","649cbf9949986a39":"dGEhg"}],"8kCl3":[function(e,t,r){"use strict";var n=e("2ef89576d4959bff");t.exports=function(){return n()&&!!Symbol.toStringTag}},{"2ef89576d4959bff":"iaBeb"}],iaBeb:[function(e,t,r){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},{}],dGEhg:[function(e,t,r){"use strict";var n=e("8b08ecb81cf4de17"),i=e("266fc50410cfc4a"),a=i(n("String.prototype.indexOf"));t.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&a(e,".prototype.")>-1?i(r):r}},{"8b08ecb81cf4de17":"i6CEG","266fc50410cfc4a":"kP5zq"}],i6CEG:[function(e,t,r){"use strict";var n,i=SyntaxError,a=Function,s=TypeError,o=function(e){try{return a('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var f=function(){throw new s},u=c?function(){try{return arguments.callee,f}catch(e){try{return c(arguments,"callee").get}catch(e){return f}}}():f,d=e("1f00f712d594ccf")(),l=e("23730654306aa64c")(),h=Object.getPrototypeOf||(l?function(e){return e.__proto__}:null),p={},m="undefined"!=typeof Uint8Array&&h?h(Uint8Array):n,b={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":d&&h?h([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":d&&h?h(h([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&d&&h?h(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&d&&h?h(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d&&h?h(""[Symbol.iterator]()):n,"%Symbol%":d?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":u,"%TypedArray%":m,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(h)try{null.error}catch(e){var g=h(h(e));b["%Error.prototype%"]=g}var y=function e(t){var r;if("%AsyncFunction%"===t)r=o("async function () {}");else if("%GeneratorFunction%"===t)r=o("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=o("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&h&&(r=h(i.prototype))}return b[t]=r,r},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},w=e("7c5e688e48cd07b0"),_=e("b03d0058935d00bf"),E=w.call(Function.call,Array.prototype.concat),A=w.call(Function.apply,Array.prototype.splice),M=w.call(Function.call,String.prototype.replace),S=w.call(Function.call,String.prototype.slice),x=w.call(Function.call,RegExp.prototype.exec),T=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,k=/\\(\\)?/g,R=function(e){var t=S(e,0,1),r=S(e,-1);if("%"===t&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return M(e,T,function(e,t,r,i){n[n.length]=r?M(i,k,"$1"):t||e}),n},I=function(e,t){var r,n=e;if(_(v,n)&&(n="%"+(r=v[n])[0]+"%"),_(b,n)){var a=b[n];if(a===p&&(a=y(n)),void 0===a&&!t)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:a}}throw new i("intrinsic "+e+" does not exist!")};t.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new s('"allowMissing" argument must be a boolean');if(null===x(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=R(e),n=r.length>0?r[0]:"",a=I("%"+n+"%",t),o=a.name,f=a.value,u=!1,d=a.alias;d&&(n=d[0],A(r,E([0,1],d)));for(var l=1,h=!0;l=r.length){var y=c(f,p);f=(h=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:f[p]}else h=_(f,p),f=f[p];h&&!u&&(b[o]=f)}}return f}},{"1f00f712d594ccf":"hqwBR","23730654306aa64c":"2oIP9","7c5e688e48cd07b0":"sXn6L",b03d0058935d00bf:"crIfq"}],hqwBR:[function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=e("3fb25678c62d2fce");t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},{"3fb25678c62d2fce":"iaBeb"}],"2oIP9":[function(e,t,r){"use strict";var n={foo:{}},i=Object;t.exports=function(){return({__proto__:n}).foo===n.foo&&!(({__proto__:null})instanceof i)}},{}],sXn6L:[function(e,t,r){"use strict";var n=e("ebece74382f80db9");t.exports=Function.prototype.bind||n},{ebece74382f80db9:"POx14"}],POx14:[function(e,t,r){"use strict";var n=Array.prototype.slice,i=Object.prototype.toString;t.exports=function(e){var t,r=this;if("function"!=typeof r||"[object Function]"!==i.call(r))throw TypeError("Function.prototype.bind called on incompatible "+r);for(var a=n.call(arguments,1),s=Math.max(0,r.length-a.length),o=[],c=0;c-1?t:"Object"===t&&y(e)}return c?g(e):null}},{"2941d48f36957e3c":"brr8P",beaf5502a5823cce:"2kFgN",e5d203a1b4c809f9:"kP5zq","83f633f9b335db8f":"dGEhg",ce6b45c571ba4e3e:"8Spe5","9e7ef6c88184c56":"8kCl3"}],brr8P:[function(e,t,r){"use strict";var n=e("e50ebc24bbb25feb"),i=Object.prototype.toString,a=Object.prototype.hasOwnProperty,s=function(e,t,r){for(var n=0,i=e.length;n=3&&(a=r),"[object Array]"===i.call(e)?s(e,t,a):"string"==typeof e?o(e,t,a):c(e,t,a)}},{e50ebc24bbb25feb:"3XeZC"}],"3XeZC":[function(e,t,r){"use strict";var n,i,a=Function.prototype.toString,s="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof s&&"function"==typeof Object.defineProperty)try{n=Object.defineProperty({},"length",{get:function(){throw i}}),i={},s(function(){throw 42},null,n)}catch(e){e!==i&&(s=null)}else s=null;var o=/^\s*class\b/,c=function(e){try{var t=a.call(e);return o.test(t)}catch(e){return!1}},f=function(e){try{if(c(e))return!1;return a.call(e),!0}catch(e){return!1}},u=Object.prototype.toString,d="function"==typeof Symbol&&!!Symbol.toStringTag,l=!(0 in[,]),h=function(){return!1};if("object"==typeof document){var p=document.all;u.call(p)===u.call(document.all)&&(h=function(e){if((l||!e)&&(void 0===e||"object"==typeof e))try{var t=u.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}t.exports=s?function(e){if(h(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;try{s(e,null,n)}catch(e){if(e!==i)return!1}return!c(e)&&f(e)}:function(e){if(h(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;if(d)return f(e);if(c(e))return!1;var t=u.call(e);return!!("[object Function]"===t||"[object GeneratorFunction]"===t||/^\[object HTML/.test(t))&&f(e)}},{}],"2kFgN":[function(e,t,r){"use strict";var n=arguments[3],i=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],a="undefined"==typeof globalThis?n:globalThis;t.exports=function(){for(var e=[],t=0;te.length)&&(r=e.length),e.substring(r-t.length,r)===t}var m="",b="",g="",y="",v={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function w(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(t){r[t]=e[t]}),Object.defineProperty(r,"message",{value:e.message}),r}function _(e){return l(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var E=function(e){var t,r;function o(e){if(!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),"object"!==d(e)||null===e)throw new h("options","Object",e);var t,r=e.message,i=e.operator,c=e.stackStartFn,f=e.actual,l=e.expected,E=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=r)t=a(this,u(o).call(this,String(r)));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(m="\x1b[34m",b="\x1b[32m",y="\x1b[39m",g="\x1b[31m"):(m="",b="",y="",g="")),"object"===d(f)&&null!==f&&"object"===d(l)&&null!==l&&"stack"in f&&f instanceof Error&&"stack"in l&&l instanceof Error&&(f=w(f),l=w(l)),"deepStrictEqual"===i||"strictEqual"===i)t=a(this,u(o).call(this,function(e,t,r){var i="",a="",s=0,o="",c=!1,f=_(e),u=f.split("\n"),l=_(t).split("\n"),h=0,w="";if("strictEqual"===r&&"object"===d(e)&&"object"===d(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===u.length&&1===l.length&&u[0]!==l[0]){var E=u[0].length+l[0].length;if(E<=10){if(("object"!==d(e)||null===e)&&("object"!==d(t)||null===t)&&(0!==e||0!==t))return"".concat(v[r],"\n\n")+"".concat(u[0]," !== ").concat(l[0],"\n")}else if("strictEqualObject"!==r&&E<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;u[0][h]===l[0][h];)h++;h>2&&(w="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,r-e.length)}(" ",h),"^"),h=0)}}for(var A=u[u.length-1],M=l[l.length-1];A===M&&(h++<2?o="\n ".concat(A).concat(o):i=A,u.pop(),l.pop(),0!==u.length&&0!==l.length);)A=u[u.length-1],M=l[l.length-1];var S=Math.max(u.length,l.length);if(0===S){var x=f.split("\n");if(x.length>30)for(x[26]="".concat(m,"...").concat(y);x.length>27;)x.pop();return"".concat(v.notIdentical,"\n\n").concat(x.join("\n"),"\n")}h>3&&(o="\n".concat(m,"...").concat(y).concat(o),c=!0),""!==i&&(o="\n ".concat(i).concat(o),i="");var T=0,k=v[r]+"\n".concat(b,"+ actual").concat(y," ").concat(g,"- expected").concat(y),R=" ".concat(m,"...").concat(y," Lines skipped");for(h=0;h1&&h>2&&(I>4?(a+="\n".concat(m,"...").concat(y),c=!0):I>3&&(a+="\n ".concat(l[h-2]),T++),a+="\n ".concat(l[h-1]),T++),s=h,i+="\n".concat(g,"-").concat(y," ").concat(l[h]),T++;else if(l.length1&&h>2&&(I>4?(a+="\n".concat(m,"...").concat(y),c=!0):I>3&&(a+="\n ".concat(u[h-2]),T++),a+="\n ".concat(u[h-1]),T++),s=h,a+="\n".concat(b,"+").concat(y," ").concat(u[h]),T++;else{var C=l[h],P=u[h],O=P!==C&&(!p(P,",")||P.slice(0,-1)!==C);O&&p(C,",")&&C.slice(0,-1)===P&&(O=!1,P+=","),O?(I>1&&h>2&&(I>4?(a+="\n".concat(m,"...").concat(y),c=!0):I>3&&(a+="\n ".concat(u[h-2]),T++),a+="\n ".concat(u[h-1]),T++),s=h,a+="\n".concat(b,"+").concat(y," ").concat(P),i+="\n".concat(g,"-").concat(y," ").concat(C),T+=2):(a+=i,i="",(1===I||0===h)&&(a+="\n ".concat(P),T++))}if(T>20&&h30)for(M[26]="".concat(m,"...").concat(y);M.length>27;)M.pop();t=1===M.length?a(this,u(o).call(this,"".concat(A," ").concat(M[0]))):a(this,u(o).call(this,"".concat(A,"\n\n").concat(M.join("\n"),"\n")))}else{var S=_(f),x="",T=v[i];"notDeepEqual"===i||"notEqual"===i?(S="".concat(v[i],"\n\n").concat(S)).length>1024&&(S="".concat(S.slice(0,1021),"...")):(x="".concat(_(l)),S.length>512&&(S="".concat(S.slice(0,509),"...")),x.length>512&&(x="".concat(x.slice(0,509),"...")),"deepEqual"===i||"equal"===i?S="".concat(T,"\n\n").concat(S,"\n\nshould equal\n\n"):x=" ".concat(i," ").concat(x)),t=a(this,u(o).call(this,"".concat(S).concat(x)))}return Error.stackTraceLimit=E,t.generatedMessage=!r,Object.defineProperty(s(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=f,t.expected=l,t.operator=i,Error.captureStackTrace&&Error.captureStackTrace(s(t),c),t.stack,t.name="AssertionError",a(t)}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(o,e),t=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:l.custom,value:function(e,t){return l(this,function(e){for(var t=1;t2?arguments[2]:{},a=n(t);i&&(a=s.call(a,Object.getOwnPropertySymbols(t)));for(var o=0;o=0&&"[object Function]"===n.call(e.callee)),r}},{}],aNcRl:[function(e,t,r){"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,a=Object.prototype.toString,s=e("b0d8c8b84be91ffd"),o=Object.prototype.propertyIsEnumerable,c=!o.call({toString:null},"toString"),f=o.call(function(){},"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!l["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),p=function(e){if("undefined"==typeof window||!h)return d(e);try{return d(e)}catch(e){return!1}};n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===a.call(e),n=s(e),o=t&&"[object String]"===a.call(e),d=[];if(!t&&!r&&!n)throw TypeError("Object.keys called on a non-object");var l=f&&r;if(o&&e.length>0&&!i.call(e,0))for(var h=0;h0)for(var m=0;m10)return!0;for(var t=0;t57)return!0}return 10===e.length&&e>=4294967296}function P(e){return Object.keys(e).filter(C).concat(f(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function O(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i0&&i[i.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]new Uint8Array(e),t){return"function"==typeof e&&(e=e(t)),a("output",e,t),e}function c(e){return Object.prototype.toString.call(e).slice(8,-1)}t.exports=e=>({contextRandomize(t){if(i(null===t||t instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),null!==t&&a("seed",t,32),1===e.contextRandomize(t))throw Error(n.CONTEXT_RANDOMIZE_UNKNOW)},privateKeyVerify:t=>(a("private key",t,32),0===e.privateKeyVerify(t)),privateKeyNegate(t){switch(a("private key",t,32),e.privateKeyNegate(t)){case 0:return t;case 1:throw Error(n.IMPOSSIBLE_CASE)}},privateKeyTweakAdd(t,r){switch(a("private key",t,32),a("tweak",r,32),e.privateKeyTweakAdd(t,r)){case 0:return t;case 1:throw Error(n.TWEAK_ADD)}},privateKeyTweakMul(t,r){switch(a("private key",t,32),a("tweak",r,32),e.privateKeyTweakMul(t,r)){case 0:return t;case 1:throw Error(n.TWEAK_MUL)}},publicKeyVerify:t=>(a("public key",t,[33,65]),0===e.publicKeyVerify(t)),publicKeyCreate(t,r=!0,i){switch(a("private key",t,32),s(r),i=o(i,r?33:65),e.publicKeyCreate(i,t)){case 0:return i;case 1:throw Error(n.SECKEY_INVALID);case 2:throw Error(n.PUBKEY_SERIALIZE)}},publicKeyConvert(t,r=!0,i){switch(a("public key",t,[33,65]),s(r),i=o(i,r?33:65),e.publicKeyConvert(i,t)){case 0:return i;case 1:throw Error(n.PUBKEY_PARSE);case 2:throw Error(n.PUBKEY_SERIALIZE)}},publicKeyNegate(t,r=!0,i){switch(a("public key",t,[33,65]),s(r),i=o(i,r?33:65),e.publicKeyNegate(i,t)){case 0:return i;case 1:throw Error(n.PUBKEY_PARSE);case 2:throw Error(n.IMPOSSIBLE_CASE);case 3:throw Error(n.PUBKEY_SERIALIZE)}},publicKeyCombine(t,r=!0,c){for(let e of(i(Array.isArray(t),"Expected public keys to be an Array"),i(t.length>0,"Expected public keys array will have more than zero items"),t))a("public key",e,[33,65]);switch(s(r),c=o(c,r?33:65),e.publicKeyCombine(c,t)){case 0:return c;case 1:throw Error(n.PUBKEY_PARSE);case 2:throw Error(n.PUBKEY_COMBINE);case 3:throw Error(n.PUBKEY_SERIALIZE)}},publicKeyTweakAdd(t,r,i=!0,c){switch(a("public key",t,[33,65]),a("tweak",r,32),s(i),c=o(c,i?33:65),e.publicKeyTweakAdd(c,t,r)){case 0:return c;case 1:throw Error(n.PUBKEY_PARSE);case 2:throw Error(n.TWEAK_ADD)}},publicKeyTweakMul(t,r,i=!0,c){switch(a("public key",t,[33,65]),a("tweak",r,32),s(i),c=o(c,i?33:65),e.publicKeyTweakMul(c,t,r)){case 0:return c;case 1:throw Error(n.PUBKEY_PARSE);case 2:throw Error(n.TWEAK_MUL)}},signatureNormalize(t){switch(a("signature",t,64),e.signatureNormalize(t)){case 0:return t;case 1:throw Error(n.SIG_PARSE)}},signatureExport(t,r){a("signature",t,64),r=o(r,72);let i={output:r,outputlen:72};switch(e.signatureExport(i,t)){case 0:return r.slice(0,i.outputlen);case 1:throw Error(n.SIG_PARSE);case 2:throw Error(n.IMPOSSIBLE_CASE)}},signatureImport(t,r){switch(a("signature",t),r=o(r,64),e.signatureImport(r,t)){case 0:return r;case 1:throw Error(n.SIG_PARSE);case 2:throw Error(n.IMPOSSIBLE_CASE)}},ecdsaSign(t,r,s={},f){a("message",t,32),a("private key",r,32),i("Object"===c(s),"Expected options to be an Object"),void 0!==s.data&&a("options.data",s.data),void 0!==s.noncefn&&i("Function"===c(s.noncefn),"Expected options.noncefn to be a Function"),f=o(f,64);let u={signature:f,recid:null};switch(e.ecdsaSign(u,t,r,s.data,s.noncefn)){case 0:return u;case 1:throw Error(n.SIGN);case 2:throw Error(n.IMPOSSIBLE_CASE)}},ecdsaVerify(t,r,i){switch(a("signature",t,64),a("message",r,32),a("public key",i,[33,65]),e.ecdsaVerify(t,r,i)){case 0:return!0;case 3:return!1;case 1:throw Error(n.SIG_PARSE);case 2:throw Error(n.PUBKEY_PARSE)}},ecdsaRecover(t,r,f,u=!0,d){switch(a("signature",t,64),i("Number"===c(r)&&r>=0&&r<=3,"Expected recovery id to be a Number within interval [0, 3]"),a("message",f,32),s(u),d=o(d,u?33:65),e.ecdsaRecover(d,t,r,f)){case 0:return d;case 1:throw Error(n.SIG_PARSE);case 2:throw Error(n.RECOVER);case 3:throw Error(n.IMPOSSIBLE_CASE)}},ecdh(t,r,s={},f){switch(a("public key",t,[33,65]),a("private key",r,32),i("Object"===c(s),"Expected options to be an Object"),void 0!==s.data&&a("options.data",s.data),void 0!==s.hashfn?(i("Function"===c(s.hashfn),"Expected options.hashfn to be a Function"),void 0!==s.xbuf&&a("options.xbuf",s.xbuf,32),void 0!==s.ybuf&&a("options.ybuf",s.ybuf,32),a("output",f)):f=o(f,32),e.ecdh(f,t,r,s.data,s.hashfn,s.xbuf,s.ybuf)){case 0:return f;case 1:throw Error(n.PUBKEY_PARSE);case 2:throw Error(n.ECDH)}}})},{}],"6XZs0":[function(e,t,r){let n=e("3ab9749d2e756678").ec,i=new n("secp256k1"),a=i.curve,s=a.n.constructor;function o(e){let t=e[0];switch(t){case 2:case 3:if(33!==e.length)return null;return function(e,t){let r=new s(t);if(r.cmp(a.p)>=0)return null;let n=(r=r.toRed(a.red)).redSqr().redIMul(r).redIAdd(a.b).redSqrt();return 3===e!==n.isOdd()&&(n=n.redNeg()),i.keyPair({pub:{x:r,y:n}})}(t,e.subarray(1,33));case 4:case 6:case 7:if(65!==e.length)return null;return function(e,t,r){let n=new s(t),o=new s(r);if(n.cmp(a.p)>=0||o.cmp(a.p)>=0||(n=n.toRed(a.red),o=o.toRed(a.red),(6===e||7===e)&&o.isOdd()!==(7===e)))return null;let c=n.redSqr().redIMul(n);return o.redSqr().redISub(c.redIAdd(a.b)).isZero()?i.keyPair({pub:{x:n,y:o}}):null}(t,e.subarray(1,33),e.subarray(33,65));default:return null}}function c(e,t){let r=t.encode(null,33===e.length);for(let t=0;t0,privateKeyVerify(e){let t=new s(e);return 0>t.cmp(a.n)&&!t.isZero()?0:1},privateKeyNegate(e){let t=new s(e),r=a.n.sub(t).umod(a.n).toArrayLike(Uint8Array,"be",32);return e.set(r),0},privateKeyTweakAdd(e,t){let r=new s(t);if(r.cmp(a.n)>=0||(r.iadd(new s(e)),r.cmp(a.n)>=0&&r.isub(a.n),r.isZero()))return 1;let n=r.toArrayLike(Uint8Array,"be",32);return e.set(n),0},privateKeyTweakMul(e,t){let r=new s(t);if(r.cmp(a.n)>=0||r.isZero())return 1;r.imul(new s(e)),r.cmp(a.n)>=0&&(r=r.umod(a.n));let n=r.toArrayLike(Uint8Array,"be",32);return e.set(n),0},publicKeyVerify(e){let t=o(e);return null===t?1:0},publicKeyCreate(e,t){let r=new s(t);if(r.cmp(a.n)>=0||r.isZero())return 1;let n=i.keyFromPrivate(t).getPublic();return c(e,n),0},publicKeyConvert(e,t){let r=o(t);if(null===r)return 1;let n=r.getPublic();return c(e,n),0},publicKeyNegate(e,t){let r=o(t);if(null===r)return 1;let n=r.getPublic();return n.y=n.y.redNeg(),c(e,n),0},publicKeyCombine(e,t){let r=Array(t.length);for(let e=0;e=0)return 2;let i=n.getPublic().add(a.g.mul(r));return i.isInfinity()?2:(c(e,i),0)},publicKeyTweakMul(e,t,r){let n=o(t);if(null===n)return 1;if((r=new s(r)).cmp(a.n)>=0||r.isZero())return 2;let i=n.getPublic().mul(r);return c(e,i),0},signatureNormalize(e){let t=new s(e.subarray(0,32)),r=new s(e.subarray(32,64));return t.cmp(a.n)>=0||r.cmp(a.n)>=0?1:(1===r.cmp(i.nh)&&e.set(a.n.sub(r).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(e,t){let r=t.subarray(0,32),n=t.subarray(32,64);if(new s(r).cmp(a.n)>=0||new s(n).cmp(a.n)>=0)return 1;let{output:i}=e,o=i.subarray(4,37);o[0]=0,o.set(r,1);let c=33,f=0;for(;c>1&&0===o[f]&&!(128&o[f+1]);--c,++f);if(128&(o=o.subarray(f))[0]||c>1&&0===o[0]&&!(128&o[1]))return 1;let u=i.subarray(39,72);u[0]=0,u.set(n,1);let d=33,l=0;for(;d>1&&0===u[l]&&!(128&u[l+1]);--d,++l);return 128&(u=u.subarray(l))[0]||d>1&&0===u[0]&&!(128&u[1])?1:(e.outputlen=6+c+d,i[0]=48,i[1]=e.outputlen-2,i[2]=2,i[3]=o.length,i.set(o,4),i[4+c]=2,i[5+c]=u.length,i.set(u,6+c),0)},signatureImport(e,t){if(t.length<8||t.length>72||48!==t[0]||t[1]!==t.length-2||2!==t[2])return 1;let r=t[3];if(0===r||5+r>=t.length||2!==t[4+r])return 1;let n=t[5+r];if(0===n||6+r+n!==t.length||128&t[4]||r>1&&0===t[4]&&!(128&t[5])||128&t[r+6]||n>1&&0===t[r+6]&&!(128&t[r+7]))return 1;let i=t.subarray(4,4+r);if(33===i.length&&0===i[0]&&(i=i.subarray(1)),i.length>32)return 1;let o=t.subarray(6+r);if(33===o.length&&0===o[0]&&(o=o.slice(1)),o.length>32)throw Error("S length is too long");let c=new s(i);c.cmp(a.n)>=0&&(c=new s(0));let f=new s(t.subarray(6+r));return f.cmp(a.n)>=0&&(f=new s(0)),e.set(c.toArrayLike(Uint8Array,"be",32),0),e.set(f.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(e,t,r,n,o){let c;if(o){let e=o;o=i=>{let a=e(t,r,null,n,i),o=a instanceof Uint8Array&&32===a.length;if(!o)throw Error("This is the way");return new s(a)}}let f=new s(r);if(f.cmp(a.n)>=0||f.isZero())return 1;try{c=i.sign(t,r,{canonical:!0,k:o,pers:n})}catch(e){return 1}return e.signature.set(c.r.toArrayLike(Uint8Array,"be",32),0),e.signature.set(c.s.toArrayLike(Uint8Array,"be",32),32),e.recid=c.recoveryParam,0},ecdsaVerify(e,t,r){let n={r:e.subarray(0,32),s:e.subarray(32,64)},c=new s(n.r),f=new s(n.s);if(c.cmp(a.n)>=0||f.cmp(a.n)>=0)return 1;if(1===f.cmp(i.nh)||c.isZero()||f.isZero())return 3;let u=o(r);if(null===u)return 2;let d=u.getPublic(),l=i.verify(t,n,d);return l?0:3},ecdsaRecover(e,t,r,n){let o;let f={r:t.slice(0,32),s:t.slice(32,64)},u=new s(f.r),d=new s(f.s);if(u.cmp(a.n)>=0||d.cmp(a.n)>=0)return 1;if(u.isZero()||d.isZero())return 2;try{o=i.recoverPubKey(n,f,r)}catch(e){return 2}return c(e,o),0},ecdh(e,t,r,n,c,f,u){let d=o(t);if(null===d)return 1;let l=new s(r);if(l.cmp(a.n)>=0||l.isZero())return 2;let h=d.getPublic().mul(l);if(void 0===c){let t=h.encode(null,!0),r=i.hash().update(t).digest();for(let t=0;t<32;++t)e[t]=r[t]}else{f||(f=new Uint8Array(32));let t=h.getX().toArray("be",32);for(let e=0;e<32;++e)f[e]=t[e];u||(u=new Uint8Array(32));let r=h.getY().toArray("be",32);for(let e=0;e<32;++e)u[e]=r[e];let i=c(f,u,n),a=i instanceof Uint8Array&&i.length===e.length;if(!a)return 2;e.set(i)}return 0}}},{"3ab9749d2e756678":"gHKeo"}],aVJr7:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("cd93974d66bb0f8c");r.getRandomBytes=function(e){return new Promise(function(t,r){n(e,function(e,n){if(e){r(e);return}t(n)})})},r.getRandomBytesSync=function(e){return n(e)}},{cd93974d66bb0f8c:"6xAZm"}],"1a9Yl":[function(e,t,r){var n=e("bacc85b87856ba52").Buffer;"use strict";function i(e){if("string"!=typeof e)throw Error("[isHexPrefixed] input must be type 'string', received type ".concat(typeof e));return"0"===e[0]&&"x"===e[1]}function a(e){var t=e;if("string"!=typeof t)throw Error("[padToEven] value must be type 'string', received ".concat(typeof t));return t.length%2&&(t="0".concat(t)),t}Object.defineProperty(r,"__esModule",{value:!0}),r.isHexString=r.getKeys=r.fromAscii=r.fromUtf8=r.toAscii=r.arrayContainsArray=r.getBinarySize=r.padToEven=r.stripHexPrefix=r.isHexPrefixed=void 0,r.isHexPrefixed=i,r.stripHexPrefix=function(e){if("string"!=typeof e)throw Error("[stripHexPrefix] input must be type 'string', received ".concat(typeof e));return i(e)?e.slice(2):e},r.padToEven=a,r.getBinarySize=function(e){if("string"!=typeof e)throw Error("[getBinarySize] method requires input type 'string', recieved ".concat(typeof e));return n.byteLength(e,"utf8")},r.arrayContainsArray=function(e,t,r){if(!0!==Array.isArray(e))throw Error("[arrayContainsArray] method requires input 'superset' to be an array, got type '".concat(typeof e,"'"));if(!0!==Array.isArray(t))throw Error("[arrayContainsArray] method requires input 'subset' to be an array, got type '".concat(typeof t,"'"));return t[r?"some":"every"](function(t){return e.indexOf(t)>=0})},r.toAscii=function(e){var t="",r=0,n=e.length;for("0x"===e.substring(0,2)&&(r=2);r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return s};Object.defineProperty(r,"__esModule",{value:!0}),r.bufArrToArr=r.arrToBufArr=r.validateNoLeadingZeroes=r.baToJSON=r.toUtf8=r.addHexPrefix=r.toUnsigned=r.fromSigned=r.bufferToHex=r.bufferToInt=r.toBuffer=r.unpadHexString=r.unpadArray=r.unpadBuffer=r.setLengthRight=r.setLengthLeft=r.zeros=r.intToBuffer=r.intToHex=void 0;var s=e("35add0199f01c487"),o=e("bb97aaf37314b94f"),c=e("47bb7444a1458900");r.intToHex=function(e){if(!Number.isSafeInteger(e)||e<0)throw Error("Received an invalid integer type: ".concat(e));return"0x".concat(e.toString(16))},r.intToBuffer=function(e){var t=(0,r.intToHex)(e);return n.from((0,o.padToEven)(t.slice(2)),"hex")},r.zeros=function(e){return n.allocUnsafe(e).fill(0)};var f=function(e,t,n){var i=(0,r.zeros)(t);return n?e.length0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e};r.unpadBuffer=function(e){return(0,c.assertIsBuffer)(e),u(e)},r.unpadArray=function(e){return(0,c.assertIsArray)(e),u(e)},r.unpadHexString=function(e){return(0,c.assertIsHexString)(e),u(e=(0,o.stripHexPrefix)(e))},r.toBuffer=function(e){if(null==e)return n.allocUnsafe(0);if(n.isBuffer(e)||Array.isArray(e)||e instanceof Uint8Array)return n.from(e);if("string"==typeof e){if(!(0,o.isHexString)(e))throw Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ".concat(e));return n.from((0,o.padToEven)((0,o.stripHexPrefix)(e)),"hex")}if("number"==typeof e)return(0,r.intToBuffer)(e);if(s.BN.isBN(e)){if(e.isNeg())throw Error("Cannot convert negative BN to buffer. Given: ".concat(e));return e.toArrayLike(n)}if(e.toArray)return n.from(e.toArray());if(e.toBuffer)return n.from(e.toBuffer());throw Error("invalid type")},r.bufferToInt=function(e){return new s.BN((0,r.toBuffer)(e)).toNumber()},r.bufferToHex=function(e){return"0x"+(e=(0,r.toBuffer)(e)).toString("hex")},r.fromSigned=function(e){return new s.BN(e).fromTwos(256)},r.toUnsigned=function(e){return n.from(e.toTwos(256).toArray())},r.addHexPrefix=function(e){return"string"!=typeof e?e:(0,o.isHexPrefixed)(e)?e:"0x"+e},r.toUtf8=function(e){if((e=(0,o.stripHexPrefix)(e)).length%2!=0)throw Error("Invalid non-even hex string input for toUtf8() provided");return n.from(e.replace(/^(00)+|(00)+$/g,""),"hex").toString("utf8")},r.baToJSON=function(e){if(n.isBuffer(e))return"0x".concat(e.toString("hex"));if(e instanceof Array){for(var t=[],i=0;i0&&0===f[0])throw Error("".concat(c," cannot have leading zeroes, received: ").concat(f.toString("hex")))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}},r.arrToBufArr=function e(t){return Array.isArray(t)?t.map(function(t){return e(t)}):n.from(t)},r.bufArrToArr=function e(t){return Array.isArray(t)?t.map(function(t){return e(t)}):Uint8Array.from(null!=t?t:[])}},{"36e5f935c1ed2136":"2MMCE","35add0199f01c487":"hx2li",bb97aaf37314b94f:"1a9Yl","47bb7444a1458900":"70pb8"}],"70pb8":[function(e,t,r){var n=e("e04fa42c5aa6e5c2").Buffer;"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.assertIsString=r.assertIsArray=r.assertIsBuffer=r.assertIsHexString=void 0;var i=e("ce8a2340e79e9511");r.assertIsHexString=function(e){if(!(0,i.isHexString)(e))throw Error("This method only supports 0x-prefixed hex strings but input was: ".concat(e))},r.assertIsBuffer=function(e){if(!n.isBuffer(e))throw Error("This method only supports Buffer but input was: ".concat(e))},r.assertIsArray=function(e){if(!Array.isArray(e))throw Error("This method only supports number arrays but input was: ".concat(e))},r.assertIsString=function(e){if("string"!=typeof e)throw Error("This method only supports strings but input was: ".concat(e))}},{e04fa42c5aa6e5c2:"2MMCE",ce8a2340e79e9511:"1a9Yl"}],ipL9G:[function(e,t,r){"use strict";var n=e("f44b07e97eb34004").Buffer;Object.defineProperty(r,"__esModule",{value:!0}),r.rlphash=r.ripemd160FromArray=r.ripemd160FromString=r.ripemd160=r.sha256FromArray=r.sha256FromString=r.sha256=r.keccakFromArray=r.keccakFromHexString=r.keccakFromString=r.keccak256=r.keccak=void 0;var i=e("51bfc103b421c9c1"),a=e("88db1135dc7b3dfe"),s=e("49be5227bdf31c4b"),o=e("a6ca487a0eda3ac4"),c=e("f58e8d097a46af28");r.keccak=function(e,t){switch(void 0===t&&(t=256),(0,c.assertIsBuffer)(e),t){case 224:return(0,i.keccak224)(e);case 256:return(0,i.keccak256)(e);case 384:return(0,i.keccak384)(e);case 512:return(0,i.keccak512)(e);default:throw Error("Invald algorithm: keccak".concat(t))}},r.keccak256=function(e){return(0,r.keccak)(e)},r.keccakFromString=function(e,t){void 0===t&&(t=256),(0,c.assertIsString)(e);var i=n.from(e,"utf8");return(0,r.keccak)(i,t)},r.keccakFromHexString=function(e,t){return void 0===t&&(t=256),(0,c.assertIsHexString)(e),(0,r.keccak)((0,o.toBuffer)(e),t)},r.keccakFromArray=function(e,t){return void 0===t&&(t=256),(0,c.assertIsArray)(e),(0,r.keccak)((0,o.toBuffer)(e),t)};var f=function(e){return e=(0,o.toBuffer)(e),a("sha256").update(e).digest()};r.sha256=function(e){return(0,c.assertIsBuffer)(e),f(e)},r.sha256FromString=function(e){return(0,c.assertIsString)(e),f(e)},r.sha256FromArray=function(e){return(0,c.assertIsArray)(e),f(e)};var u=function(e,t){e=(0,o.toBuffer)(e);var r=a("rmd160").update(e).digest();return!0===t?(0,o.setLengthLeft)(r,32):r};r.ripemd160=function(e,t){return(0,c.assertIsBuffer)(e),u(e,t)},r.ripemd160FromString=function(e,t){return(0,c.assertIsString)(e),u(e,t)},r.ripemd160FromArray=function(e,t){return(0,c.assertIsArray)(e),u(e,t)},r.rlphash=function(e){return(0,r.keccak)(s.rlp.encode(e))}},{f44b07e97eb34004:"2MMCE","51bfc103b421c9c1":"fqw6n","88db1135dc7b3dfe":"cCtrs","49be5227bdf31c4b":"hx2li",a6ca487a0eda3ac4:"kZa0v",f58e8d097a46af28:"70pb8"}],fqw6n:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("63a4b06cc622796f"),i=e("cbd437b9a34f8945");r.keccak224=n.createHashFunction(function(){return i("keccak224")}),r.keccak256=n.createHashFunction(function(){return i("keccak256")}),r.keccak384=n.createHashFunction(function(){return i("keccak384")}),r.keccak512=n.createHashFunction(function(){return i("keccak512")})},{"63a4b06cc622796f":"arjap",cbd437b9a34f8945:"oijYY"}],arjap:[function(e,t,r){var n=e("bb9a509956781478").Buffer;"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createHashFunction=function(e){return function(t){var r=e();return r.update(t),n.from(r.digest())}}},{bb9a509956781478:"2MMCE"}],oijYY:[function(e,t,r){t.exports=e("d37e92a016c4e47")(e("fbab9cb41dbf6101"))},{d37e92a016c4e47:"ay8gt",fbab9cb41dbf6101:"5zBRp"}],ay8gt:[function(e,t,r){let n=e("a4880b37ec39f2c0"),i=e("97dde8c69f094771");t.exports=function(e){let t=n(e),r=i(e);return function(e,n){let i="string"==typeof e?e.toLowerCase():e;switch(i){case"keccak224":return new t(1152,448,null,224,n);case"keccak256":return new t(1088,512,null,256,n);case"keccak384":return new t(832,768,null,384,n);case"keccak512":return new t(576,1024,null,512,n);case"sha3-224":return new t(1152,448,6,224,n);case"sha3-256":return new t(1088,512,6,256,n);case"sha3-384":return new t(832,768,6,384,n);case"sha3-512":return new t(576,1024,6,512,n);case"shake128":return new r(1344,256,31,n);case"shake256":return new r(1088,512,31,n);default:throw Error("Invald algorithm: "+e)}}}},{a4880b37ec39f2c0:"3cYls","97dde8c69f094771":"HIobm"}],"3cYls":[function(e,t,r){var n=e("ba3bc042a8c20564").Buffer;let{Transform:i}=e("3d3b37f8d8b4a8d4");t.exports=e=>class t extends i{constructor(t,r,n,i,a){super(a),this._rate=t,this._capacity=r,this._delimitedSuffix=n,this._hashBitLength=i,this._options=a,this._state=new e,this._state.initialize(t,r),this._finalized=!1}_transform(e,t,r){let n=null;try{this.update(e,t)}catch(e){n=e}r(n)}_flush(e){let t=null;try{this.push(this.digest())}catch(e){t=e}e(t)}update(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw TypeError("Data must be a string or a buffer");if(this._finalized)throw Error("Digest already called");return n.isBuffer(e)||(e=n.from(e,t)),this._state.absorb(e),this}digest(e){if(this._finalized)throw Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let t=this._state.squeeze(this._hashBitLength/8);return void 0!==e&&(t=t.toString(e)),this._resetState(),t}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let e=new t(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}},{ba3bc042a8c20564:"2MMCE","3d3b37f8d8b4a8d4":"1mxOP"}],HIobm:[function(e,t,r){var n=e("3ec0db77c00c8eee").Buffer;let{Transform:i}=e("837353deacd2abe9");t.exports=e=>class t extends i{constructor(t,r,n,i){super(i),this._rate=t,this._capacity=r,this._delimitedSuffix=n,this._options=i,this._state=new e,this._state.initialize(t,r),this._finalized=!1}_transform(e,t,r){let n=null;try{this.update(e,t)}catch(e){n=e}r(n)}_flush(){}_read(e){this.push(this.squeeze(e))}update(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw TypeError("Data must be a string or a buffer");if(this._finalized)throw Error("Squeeze already called");return n.isBuffer(e)||(e=n.from(e,t)),this._state.absorb(e),this}squeeze(e,t){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let r=this._state.squeeze(e);return void 0!==t&&(r=r.toString(t)),r}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let e=new t(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}},{"3ec0db77c00c8eee":"2MMCE","837353deacd2abe9":"1mxOP"}],"5zBRp":[function(e,t,r){var n=e("b5f446e7af1f3288").Buffer;let i=e("2132b026a0a927c6");function a(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}a.prototype.initialize=function(e,t){for(let e=0;e<50;++e)this.state[e]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1},a.prototype.absorb=function(e){for(let t=0;t>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(i.p1600(this.state),this.count=0);return t},a.prototype.copy=function(e){for(let t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing},t.exports=a},{b5f446e7af1f3288:"2MMCE","2132b026a0a927c6":"gzyFP"}],gzyFP:[function(e,t,r){let n=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];r.p1600=function(e){for(let t=0;t<24;++t){let r=e[0]^e[10]^e[20]^e[30]^e[40],i=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],o=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],u=e[7]^e[17]^e[27]^e[37]^e[47],d=e[8]^e[18]^e[28]^e[38]^e[48],l=e[9]^e[19]^e[29]^e[39]^e[49],h=d^(a<<1|s>>>31),p=l^(s<<1|a>>>31),m=e[0]^h,b=e[1]^p,g=e[10]^h,y=e[11]^p,v=e[20]^h,w=e[21]^p,_=e[30]^h,E=e[31]^p,A=e[40]^h,M=e[41]^p;h=r^(o<<1|c>>>31),p=i^(c<<1|o>>>31);let S=e[2]^h,x=e[3]^p,T=e[12]^h,k=e[13]^p,R=e[22]^h,I=e[23]^p,C=e[32]^h,P=e[33]^p,O=e[42]^h,N=e[43]^p;h=a^(f<<1|u>>>31),p=s^(u<<1|f>>>31);let j=e[4]^h,B=e[5]^p,L=e[14]^h,D=e[15]^p,U=e[24]^h,F=e[25]^p,q=e[34]^h,z=e[35]^p,K=e[44]^h,H=e[45]^p;h=o^(d<<1|l>>>31),p=c^(l<<1|d>>>31);let V=e[6]^h,W=e[7]^p,G=e[16]^h,J=e[17]^p,Z=e[26]^h,$=e[27]^p,X=e[36]^h,Y=e[37]^p,Q=e[46]^h,ee=e[47]^p;h=f^(r<<1|i>>>31),p=u^(i<<1|r>>>31);let et=e[8]^h,er=e[9]^p,en=e[18]^h,ei=e[19]^p,ea=e[28]^h,es=e[29]^p,eo=e[38]^h,ec=e[39]^p,ef=e[48]^h,eu=e[49]^p,ed=y<<4|g>>>28,el=g<<4|y>>>28,eh=v<<3|w>>>29,ep=w<<3|v>>>29,em=E<<9|_>>>23,eb=_<<9|E>>>23,eg=A<<18|M>>>14,ey=M<<18|A>>>14,ev=S<<1|x>>>31,ew=x<<1|S>>>31,e_=k<<12|T>>>20,eE=T<<12|k>>>20,eA=R<<10|I>>>22,eM=I<<10|R>>>22,eS=P<<13|C>>>19,ex=C<<13|P>>>19,eT=O<<2|N>>>30,ek=N<<2|O>>>30,eR=B<<30|j>>>2,eI=j<<30|B>>>2,eC=L<<6|D>>>26,eP=D<<6|L>>>26,eO=F<<11|U>>>21,eN=U<<11|F>>>21,ej=q<<15|z>>>17,eB=z<<15|q>>>17,eL=H<<29|K>>>3,eD=K<<29|H>>>3,eU=V<<28|W>>>4,eF=W<<28|V>>>4,eq=J<<23|G>>>9,ez=G<<23|J>>>9,eK=Z<<25|$>>>7,eH=$<<25|Z>>>7,eV=X<<21|Y>>>11,eW=Y<<21|X>>>11,eG=ee<<24|Q>>>8,eJ=Q<<24|ee>>>8,eZ=et<<27|er>>>5,e$=er<<27|et>>>5,eX=en<<20|ei>>>12,eY=ei<<20|en>>>12,eQ=es<<7|ea>>>25,e0=ea<<7|es>>>25,e1=eo<<8|ec>>>24,e2=ec<<8|eo>>>24,e6=ef<<14|eu>>>18,e3=eu<<14|ef>>>18;e[0]=m^~e_&eO,e[1]=b^~eE&eN,e[10]=eU^~eX&eh,e[11]=eF^~eY&ep,e[20]=ev^~eC&eK,e[21]=ew^~eP&eH,e[30]=eZ^~ed&eA,e[31]=e$^~el&eM,e[40]=eR^~eq&eQ,e[41]=eI^~ez&e0,e[2]=e_^~eO&eV,e[3]=eE^~eN&eW,e[12]=eX^~eh&eS,e[13]=eY^~ep&ex,e[22]=eC^~eK&e1,e[23]=eP^~eH&e2,e[32]=ed^~eA&ej,e[33]=el^~eM&eB,e[42]=eq^~eQ&em,e[43]=ez^~e0&eb,e[4]=eO^~eV&e6,e[5]=eN^~eW&e3,e[14]=eh^~eS&eL,e[15]=ep^~ex&eD,e[24]=eK^~e1&eg,e[25]=eH^~e2&ey,e[34]=eA^~ej&eG,e[35]=eM^~eB&eJ,e[44]=eQ^~em&eT,e[45]=e0^~eb&ek,e[6]=eV^~e6&m,e[7]=eW^~e3&b,e[16]=eS^~eL&eU,e[17]=ex^~eD&eF,e[26]=e1^~eg&ev,e[27]=e2^~ey&ew,e[36]=ej^~eG&eZ,e[37]=eB^~eJ&e$,e[46]=em^~eT&eR,e[47]=eb^~ek&eI,e[8]=e6^~m&e_,e[9]=e3^~b&eE,e[18]=eL^~eU&eX,e[19]=eD^~eF&eY,e[28]=eg^~ev&eC,e[29]=ey^~ew&eP,e[38]=eG^~eZ&ed,e[39]=eJ^~e$&el,e[48]=eT^~eR&eq,e[49]=ek^~eI&ez,e[0]^=n[2*t],e[1]^=n[2*t+1]}}},{}],eWBQO:[function(e,t,r){"use strict";var n,i,a=e("e5145e19d8682196").Buffer;Object.defineProperty(r,"__esModule",{value:!0}),r.toType=r.TypeOutput=r.bnToRlp=r.bnToUnpaddedBuffer=r.bnToHex=void 0;var s=e("37cfb20de18df397"),o=e("df7311fc0e77ebcf"),c=e("3704eb06b821d2c0");function f(e){return(0,c.unpadBuffer)(e.toArrayLike(a))}r.bnToHex=function(e){return"0x".concat(e.toString(16))},r.bnToUnpaddedBuffer=f,r.bnToRlp=function(e){return f(e)},(n=i=r.TypeOutput||(r.TypeOutput={}))[n.Number=0]="Number",n[n.BN=1]="BN",n[n.Buffer=2]="Buffer",n[n.PrefixedHexString=3]="PrefixedHexString",r.toType=function(e,t){if(null===e)return null;if(void 0!==e){if("string"!=typeof e||(0,o.isHexString)(e)){if("number"==typeof e&&!Number.isSafeInteger(e))throw Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)")}else throw Error("A string must be provided with a 0x-prefix, given: ".concat(e));var r=(0,c.toBuffer)(e);if(t===i.Buffer)return r;if(t===i.BN)return new s.BN(r);if(t!==i.Number)return"0x".concat(r.toString("hex"));var n=new s.BN(r),a=new s.BN(Number.MAX_SAFE_INTEGER.toString());if(n.gt(a))throw Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return n.toNumber()}}},{e5145e19d8682196:"2MMCE","37cfb20de18df397":"hx2li",df7311fc0e77ebcf:"1a9Yl","3704eb06b821d2c0":"kZa0v"}],h1KCF:[function(e,t,r){"use strict";var n=e("65f8b02e2bf3923b").Buffer,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.Address=void 0;var a=i(e("57d48d4c5752d674")),s=e("86f7f635d1296f7a"),o=e("a6cc3d39b2685848"),c=e("a871521595ebeb14"),f=function(){function e(e){(0,a.default)(20===e.length,"Invalid address length"),this.buf=e}return e.zero=function(){return new e((0,o.zeros)(20))},e.fromString=function(t){return(0,a.default)((0,c.isValidAddress)(t),"Invalid address"),new e((0,o.toBuffer)(t))},e.fromPublicKey=function(t){(0,a.default)(n.isBuffer(t),"Public key should be Buffer");var r=(0,c.pubToAddress)(t);return new e(r)},e.fromPrivateKey=function(t){(0,a.default)(n.isBuffer(t),"Private key should be Buffer");var r=(0,c.privateToAddress)(t);return new e(r)},e.generate=function(t,r){return(0,a.default)(s.BN.isBN(r)),new e((0,c.generateAddress)(t.buf,r.toArrayLike(n)))},e.generate2=function(t,r,i){return(0,a.default)(n.isBuffer(r)),(0,a.default)(n.isBuffer(i)),new e((0,c.generateAddress2)(t.buf,r,i))},e.prototype.equals=function(e){return this.buf.equals(e.buf)},e.prototype.isZero=function(){return this.equals(e.zero())},e.prototype.isPrecompileOrSystemAddress=function(){var e=new s.BN(this.buf),t=new s.BN(0),r=new s.BN("ffff","hex");return e.gte(t)&&e.lte(r)},e.prototype.toString=function(){return"0x"+this.buf.toString("hex")},e.prototype.toBuffer=function(){return n.from(this.buf)},e}();r.Address=f},{"65f8b02e2bf3923b":"2MMCE","57d48d4c5752d674":"aeMhE","86f7f635d1296f7a":"hx2li",a6cc3d39b2685848:"kZa0v",a871521595ebeb14:"bzwNx"}],bqbjN:[function(e,t,r){"use strict";var n=e("d200ef6b4d9cba0f").Buffer;Object.defineProperty(r,"__esModule",{value:!0}),r.hashPersonalMessage=r.isValidSignature=r.fromRpcSig=r.toCompactSig=r.toRpcSig=r.ecrecover=r.ecsign=void 0;var i=e("2bf6c2b11a53ce5c"),a=e("ea864e541635c1bc"),s=e("97fd1663e144162a"),o=e("42dea3862174a01b"),c=e("b51792b4dff2fac2"),f=e("98f0d93934074e71");function u(e,t){var r=(0,f.toType)(e,f.TypeOutput.BN);if(r.eqn(0)||r.eqn(1))return(0,f.toType)(e,f.TypeOutput.BN);if(!t)return r.subn(27);var n=(0,f.toType)(t,f.TypeOutput.BN);return r.sub(n.muln(2).addn(35))}function d(e){var t=new a.BN(e);return t.eqn(0)||t.eqn(1)}r.ecsign=function(e,t,r){var a=(0,i.ecdsaSign)(e,t),s=a.signature,o=a.recid,c=n.from(s.slice(0,32)),u=n.from(s.slice(32,64));if(!r||"number"==typeof r){if(r&&!Number.isSafeInteger(r))throw Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");return{r:c,s:u,v:r?o+(2*r+35):o+27}}return{r:c,s:u,v:(0,f.toType)(r,f.TypeOutput.BN).muln(2).addn(35).addn(o).toArrayLike(n)}},r.ecrecover=function(e,t,r,a,o){var c=n.concat([(0,s.setLengthLeft)(r,32),(0,s.setLengthLeft)(a,32)],64),f=u(t,o);if(!d(f))throw Error("Invalid signature v value");var l=(0,i.ecdsaRecover)(c,f.toNumber(),e);return n.from((0,i.publicKeyConvert)(l,!1).slice(1))},r.toRpcSig=function(e,t,r,i){if(!d(u(e,i)))throw Error("Invalid signature v value");return(0,s.bufferToHex)(n.concat([(0,s.setLengthLeft)(t,32),(0,s.setLengthLeft)(r,32),(0,s.toBuffer)(e)]))},r.toCompactSig=function(e,t,r,i){if(!d(u(e,i)))throw Error("Invalid signature v value");var a=(0,f.toType)(e,f.TypeOutput.Number),o=r;return(a>28&&a%2==1||1===a||28===a)&&(o=n.from(r),o[0]|=128),(0,s.bufferToHex)(n.concat([(0,s.setLengthLeft)(t,32),(0,s.setLengthLeft)(o,32)]))},r.fromRpcSig=function(e){var t,r,n,i=(0,s.toBuffer)(e);if(i.length>=65)t=i.slice(0,32),r=i.slice(32,64),n=(0,s.bufferToInt)(i.slice(64));else if(64===i.length)t=i.slice(0,32),r=i.slice(32,64),n=(0,s.bufferToInt)(i.slice(32,33))>>7,r[0]&=127;else throw Error("Invalid signature length");return n<27&&(n+=27),{v:n,r:t,s:r}},r.isValidSignature=function(e,t,r,n,i){void 0===n&&(n=!0);var s=new a.BN("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),o=new a.BN("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(32!==t.length||32!==r.length||!d(u(e,i)))return!1;var c=new a.BN(t),f=new a.BN(r);return!(c.isZero()||c.gt(o)||f.isZero()||f.gt(o))&&(!n||1!==f.cmp(s))},r.hashPersonalMessage=function(e){(0,c.assertIsBuffer)(e);var t=n.from("\x19Ethereum Signed Message:\n".concat(e.length),"utf-8");return(0,o.keccak)(n.concat([t,e]))}},{d200ef6b4d9cba0f:"2MMCE","2bf6c2b11a53ce5c":"jWaCZ",ea864e541635c1bc:"hx2li","97fd1663e144162a":"kZa0v","42dea3862174a01b":"ipL9G",b51792b4dff2fac2:"70pb8","98f0d93934074e71":"eWBQO"}],"4p8A4":[function(e,t,r){"use strict";var n=e("4f19986b48e2644b").Buffer,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.defineProperties=void 0;var a=i(e("475ac5afa7180311")),s=e("1eeed620e8c77a86"),o=e("ed5aa99cf4a3eb47"),c=e("1561679a5d36a4b5");r.defineProperties=function(e,t,r){if(e.raw=[],e._fields=[],e.toJSON=function(t){if(void 0===t&&(t=!1),t){var r={};return e._fields.forEach(function(t){r[t]="0x".concat(e[t].toString("hex"))}),r}return(0,c.baToJSON)(e.raw)},e.serialize=function(){return o.rlp.encode(e.raw)},t.forEach(function(t,r){function i(){return e.raw[r]}function s(i){"00"!==(i=(0,c.toBuffer)(i)).toString("hex")||t.allowZero||(i=n.allocUnsafe(0)),t.allowLess&&t.length?(i=(0,c.unpadBuffer)(i),(0,a.default)(t.length>=i.length,"The field ".concat(t.name," must not have more ").concat(t.length," bytes"))):!(t.allowZero&&0===i.length)&&t.length&&(0,a.default)(t.length===i.length,"The field ".concat(t.name," must have byte length of ").concat(t.length)),e.raw[r]=i}e._fields.push(t.name),Object.defineProperty(e,t.name,{enumerable:!0,configurable:!0,get:i,set:s}),t.default&&(e[t.name]=t.default),t.alias&&Object.defineProperty(e,t.alias,{enumerable:!1,configurable:!0,set:s,get:i})}),r){if("string"==typeof r&&(r=n.from((0,s.stripHexPrefix)(r),"hex")),n.isBuffer(r)&&(r=o.rlp.decode(r)),Array.isArray(r)){if(r.length>e._fields.length)throw Error("wrong number of fields in data");r.forEach(function(t,r){e[e._fields[r]]=(0,c.toBuffer)(t)})}else if("object"==typeof r){var i=Object.keys(r);t.forEach(function(t){-1!==i.indexOf(t.name)&&(e[t.name]=r[t.name]),-1!==i.indexOf(t.alias)&&(e[t.alias]=r[t.alias])})}else throw Error("invalid data")}}},{"4f19986b48e2644b":"2MMCE","475ac5afa7180311":"aeMhE","1eeed620e8c77a86":"1a9Yl",ed5aa99cf4a3eb47:"hx2li","1561679a5d36a4b5":"kZa0v"}],"9HVeA":[function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("2c41d72e2205ba47")),a=e("d4a1dddc3f521d77"),s=function(){function e(e){this._hdkey=e}return e.fromMasterSeed=function(t){return new e(a.HDKey.fromMasterSeed(t))},e.fromExtendedKey=function(t){return new e(a.HDKey.fromExtendedKey(t))},e.prototype.privateExtendedKey=function(){if(!this._hdkey.privateExtendedKey)throw Error("This is a public key only wallet");return this._hdkey.privateExtendedKey},e.prototype.publicExtendedKey=function(){return this._hdkey.publicExtendedKey},e.prototype.derivePath=function(t){return new e(this._hdkey.derive(t))},e.prototype.deriveChild=function(t){return new e(this._hdkey.deriveChild(t))},e.prototype.getWallet=function(){return this._hdkey._privateKey?i.default.fromPrivateKey(this._hdkey._privateKey):i.default.fromPublicKey(this._hdkey._publicKey,!0)},e}();r.default=s},{"2c41d72e2205ba47":"3EQrb",d4a1dddc3f521d77:"e3XsS"}],e3XsS:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("9eadf172e078d2b");r.HDKey=n},{"9eadf172e078d2b":"fvUm3"}],fvUm3:[function(e,t,r){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var i=n(e("542b57e30980266")),a=n(e("b29214719ecb74bc")),s=n(e("2c84caaa37328663")),o=e("dcae1a9808881758"),c=e("1b7911d946b34666"),f=a.Buffer,u=f.from("Bitcoin seed","utf8"),d={private:76066276,public:76067358};function l(e){this.versions=e||d,this.depth=0,this.index=0,this._privateKey=null,this._publicKey=null,this.chainCode=null,this._fingerprint=0,this.parentFingerprint=0}function h(e,t,r){var n=f.allocUnsafe(78);n.writeUInt32BE(t,0),n.writeUInt8(e.depth,4);var i=e.depth?e.parentFingerprint:0;return n.writeUInt32BE(i,5),n.writeUInt32BE(e.index,9),e.chainCode.copy(n,13),r.copy(n,45),n}function p(e){var t=o.createHash("sha256").update(e).digest();return o.createHash("ripemd160").update(t).digest()}Object.defineProperty(l.prototype,"fingerprint",{get:function(){return this._fingerprint}}),Object.defineProperty(l.prototype,"identifier",{get:function(){return this._identifier}}),Object.defineProperty(l.prototype,"pubKeyHash",{get:function(){return this.identifier}}),Object.defineProperty(l.prototype,"privateKey",{get:function(){return this._privateKey},set:function(e){i.equal(e.length,32,"Private key must be 32 bytes."),i(!0===c.privateKeyVerify(e),"Invalid private key"),this._privateKey=e,this._publicKey=c.publicKeyCreate(e,!0),this._identifier=p(this.publicKey),this._fingerprint=this._identifier.slice(0,4).readUInt32BE(0)}}),Object.defineProperty(l.prototype,"publicKey",{get:function(){return this._publicKey},set:function(e){i(33===e.length||65===e.length,"Public key must be 33 or 65 bytes."),i(!0===c.publicKeyVerify(e),"Invalid public key"),this._publicKey=c.publicKeyConvert(e,!0),this._identifier=p(this.publicKey),this._fingerprint=this._identifier.slice(0,4).readUInt32BE(0),this._privateKey=null}}),Object.defineProperty(l.prototype,"privateExtendedKey",{get:function(){return this._privateKey?s.encode(h(this,this.versions.private,f.concat([f.alloc(1,0),this.privateKey]))):null}}),Object.defineProperty(l.prototype,"publicExtendedKey",{get:function(){return s.encode(h(this,this.versions.public,this.publicKey))}}),l.prototype.derive=function(e){if("m"===e||"M"===e||"m'"===e||"M'"===e)return this;var t=e.split("/"),r=this;return t.forEach(function(e,t){if(0===t){i(/^[mM]{1}/.test(e),'Path must start with "m" or "M"');return}var n=e.length>1&&"'"===e[e.length-1],a=parseInt(e,10);i(a<2147483648,"Invalid index"),n&&(a+=2147483648),r=r.deriveChild(a)}),r},l.prototype.deriveChild=function(e){var t,r=e>=2147483648,n=f.allocUnsafe(4);if(n.writeUInt32BE(e,0),r){i(this.privateKey,"Could not derive hardened child key");var a=this.privateKey,s=f.alloc(1,0);a=f.concat([s,a]),t=f.concat([a,n])}else t=f.concat([this.publicKey,n]);var u=o.createHmac("sha512",this.chainCode).update(t).digest(),d=u.slice(0,32),h=u.slice(32),p=new l(this.versions);if(this.privateKey)try{p.privateKey=c.privateKeyTweakAdd(this.privateKey,d)}catch(t){return this.deriveChild(e+1)}else try{p.publicKey=c.publicKeyTweakAdd(this.publicKey,d,!0)}catch(t){return this.deriveChild(e+1)}return p.chainCode=h,p.depth=this.depth+1,p.parentFingerprint=this.fingerprint,p.index=e,p},l.prototype.sign=function(e){return c.sign(e,this.privateKey).signature},l.prototype.verify=function(e,t){return c.verify(e,t,this.publicKey)},l.prototype.wipePrivateData=function(){return this._privateKey&&o.randomBytes(this._privateKey.length).copy(this._privateKey),this._privateKey=null,this},l.prototype.toJSON=function(){return{xpriv:this.privateExtendedKey,xpub:this.publicExtendedKey}},l.fromMasterSeed=function(e,t){var r=o.createHmac("sha512",u).update(e).digest(),n=r.slice(0,32),i=r.slice(32),a=new l(t);return a.chainCode=i,a.privateKey=n,a},l.fromExtendedKey=function(e,t){t=t||d;var r=new l(t),n=s.decode(e),a=n.readUInt32BE(0);i(a===t.private||a===t.public,"Version mismatch: does not match private or public"),r.depth=n.readUInt8(4),r.parentFingerprint=n.readUInt32BE(5),r.index=n.readUInt32BE(9),r.chainCode=n.slice(13,45);var o=n.slice(45);return 0===o.readUInt8(0)?(i(a===t.private,"Version mismatch: version does not match private"),r.privateKey=o.slice(1)):(i(a===t.public,"Version mismatch: version does not match public"),r.publicKey=o),r},l.fromJSON=function(e){return l.fromExtendedKey(e.xpriv)},l.HARDENED_OFFSET=2147483648,t.exports=l},{"542b57e30980266":"aeMhE",b29214719ecb74bc:"6CY3D","2c84caaa37328663":"kDmIw",dcae1a9808881758:"aOafK","1b7911d946b34666":"8atUA"}],kDmIw:[function(e,t,r){"use strict";var n=e("2331ee914eecec1b"),i=e("945e45a6bff39610");t.exports=i(function(e){var t=n("sha256").update(e).digest();return n("sha256").update(t).digest()})},{"2331ee914eecec1b":"cCtrs","945e45a6bff39610":"3oGgF"}],"3oGgF":[function(e,t,r){"use strict";var n=e("caf73c5a4abad99"),i=e("73eb26535ffb490f").Buffer;t.exports=function(e){function t(t){var r=t.slice(0,-4),n=t.slice(-4),i=e(r);if(!(n[0]^i[0]|n[1]^i[1]|n[2]^i[2]|n[3]^i[3]))return r}return{encode:function(t){var r=e(t);return n.encode(i.concat([t,r],t.length+4))},decode:function(r){var i=t(n.decode(r),e);if(!i)throw Error("Invalid checksum");return i},decodeUnsafe:function(e){var r=n.decodeUnsafe(e);if(r)return t(r)}}}},{caf73c5a4abad99:"iMorp","73eb26535ffb490f":"6CY3D"}],iMorp:[function(e,t,r){var n=e("819c30266ae09475");t.exports=n("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},{"819c30266ae09475":"kITEq"}],kITEq:[function(e,t,r){"use strict";var n=e("85b264801a1b57da").Buffer;t.exports=function(e){if(e.length>=255)throw TypeError("Alphabet too long");for(var t=new Uint8Array(256),r=0;r>>0,u=new Uint8Array(s);e[r];){var d=t[e.charCodeAt(r)];if(255===d)return;for(var l=0,h=s-1;(0!==d||l>>0,u[h]=d%256>>>0,d=d/256>>>0;if(0!==d)throw Error("Non-zero carry");a=l,r++}for(var p=s-a;p!==s&&0===u[p];)p++;var m=n.allocUnsafe(i+(s-p));m.fill(0,0,i);for(var b=i;p!==s;)m[b++]=u[p++];return m}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=n.from(t)),!n.isBuffer(t))throw TypeError("Expected Buffer");if(0===t.length)return"";for(var r=0,i=0,a=0,s=t.length;a!==s&&0===t[a];)a++,r++;for(var f=(s-a)*u+1>>>0,d=new Uint8Array(f);a!==s;){for(var l=t[a],h=0,p=f-1;(0!==l||h>>0,d[p]=l%o>>>0,l=l/o>>>0;if(0!==l)throw Error("Non-zero carry");i=h,a++}for(var m=f-i;m!==f&&0===d[m];)m++;for(var b=c.repeat(r);m0&&i[i.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0&&s!==(0,d.sha256)((0,d.sha256)(i)).slice(0,8).toString("hex"))throw Error("Failed to decrypt input - possibly invalid passphrase");return[3,4];case 3:throw Error("Unsupported or invalid entropy type");case 4:return[2,new h.default(i)]}})})}function w(e,t){if(e.length<10)throw Error("Passphrase must be at least 10 characters");if(t.length<10)throw Error("User id must be at least 10 characters");var r=e+t,n=u.pbkdf2Sync(r,r,2e3,32,"sha256");return new h.default(n)}r.fromEtherWallet=g,r.fromEtherCamp=y,r.fromKryptoKit=v,r.fromQuorumWallet=w,r.default={fromEtherWallet:g,fromEtherCamp:y,fromKryptoKit:v,fromQuorumWallet:w}},{ed3042420ccd8af5:"2MMCE","24fb00fb13067926":"32wxM","80b78b95d57afe5f":"kf6Fl","27bf01736bf36ec9":"81Ky2",f2da54b2a853144d:"3EQrb",fd2d3cf5825f9e2d:"lb1LE",ed020d9d4847d7ef:"89KGY"}],lb1LE:[function(e,t,r){!function(e){var t,r,n,i=String.fromCharCode;function a(e){for(var t,r,n=[],i=0,a=e.length;i=55296&&t<=56319&&i=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}function o(e,t){return i(e>>t&63|128)}function c(){if(n>=r)throw Error("Invalid byte index");var e=255&t[n];if(n++,(192&e)==128)return 63&e;throw Error("Invalid continuation byte")}e.version="3.0.0",e.encode=function(e){for(var t=a(e),r=t.length,n=-1,c="";++n>6&31|192):(4294901760&e)==0?(s(e),t=i(e>>12&15|224)+o(e,6)):(4292870144&e)==0&&(t=i(e>>18&7|240)+o(e,12)+o(e,6)),t+=i(63&e|128)}(t[n]);return c},e.decode=function(e){r=(t=a(e)).length,n=0;for(var o,f=[];!1!==(o=function(){var e,i,a,o;if(n>r)throw Error("Invalid byte index");if(n==r)return!1;if(e=255&t[n],n++,(128&e)==0)return e;if((224&e)==192){if((o=(31&e)<<6|(i=c()))>=128)return o;throw Error("Invalid continuation byte")}if((240&e)==224){if((o=(15&e)<<12|(i=c())<<6|c())>=2048)return s(o),o;throw Error("Invalid continuation byte")}if((248&e)==240&&(o=(7&e)<<18|(i=c())<<12|c()<<6|c())>=65536&&o<=1114111)return o;throw Error("Invalid UTF-8 detected")}());)f.push(o);return function(e){for(var t,r=e.length,n=-1,a="";++n65535&&(t-=65536,a+=i(t>>>10&1023|55296),t=56320|1023&t),a+=i(t);return a}(f)}}(r)},{}],"89KGY":[function(e,t,r){!function(e){"use strict";function r(e){return parseInt(e)===e}function n(e){if(!r(e.length))return!1;for(var t=0;t255)return!1;return!0}function i(e,t){if(e.buffer&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!n(e))throw Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(r(e.length)&&n(e))return new Uint8Array(e);throw Error("unsupported array-like object")}function a(e){return new Uint8Array(e)}function s(e,t,r,n,i){(null!=n||null!=i)&&(e=e.slice?e.slice(n,i):Array.prototype.slice.call(e,n,i)),t.set(e,r)}var o,c=(o="0123456789abcdef",{toBytes:function(e){for(var t=[],r=0;r>4]+o[15&n])}return t.join("")}}),f={16:10,24:12,32:14},u=[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],d=[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],l=[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],h=[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],p=[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],m=[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],b=[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],g=[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],y=[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],v=[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],w=[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],_=[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],E=[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],A=[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],M=[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 S(e){for(var t=[],r=0;r>2,this._Ke[a][t%4]=i[t],this._Kd[e-a][t%4]=i[t];for(var a,s,o=0,c=n;c>16&255]<<24^d[s>>8&255]<<16^d[255&s]<<8^d[s>>24&255]^u[o]<<24,o+=1,8!=n)for(var t=1;t>8&255]<<8^d[s>>16&255]<<16^d[s>>24&255]<<24;for(var t=n/2+1;t>2,h=c%4,this._Ke[l][h]=i[t],this._Kd[e-l][h]=i[t++],c++}for(var l=1;l>24&255]^E[s>>16&255]^A[s>>8&255]^M[255&s]},x.prototype.encrypt=function(e){if(16!=e.length)throw Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,r=[0,0,0,0],n=S(e),i=0;i<4;i++)n[i]^=this._Ke[0][i];for(var s=1;s>24&255]^p[n[(i+1)%4]>>16&255]^m[n[(i+2)%4]>>8&255]^b[255&n[(i+3)%4]]^this._Ke[s][i];n=r.slice()}for(var o,c=a(16),i=0;i<4;i++)o=this._Ke[t][i],c[4*i]=(d[n[i]>>24&255]^o>>24)&255,c[4*i+1]=(d[n[(i+1)%4]>>16&255]^o>>16)&255,c[4*i+2]=(d[n[(i+2)%4]>>8&255]^o>>8)&255,c[4*i+3]=(d[255&n[(i+3)%4]]^o)&255;return c},x.prototype.decrypt=function(e){if(16!=e.length)throw Error("invalid ciphertext size (must be 16 bytes)");for(var t=this._Kd.length-1,r=[0,0,0,0],n=S(e),i=0;i<4;i++)n[i]^=this._Kd[0][i];for(var s=1;s>24&255]^y[n[(i+3)%4]>>16&255]^v[n[(i+2)%4]>>8&255]^w[255&n[(i+1)%4]]^this._Kd[s][i];n=r.slice()}for(var o,c=a(16),i=0;i<4;i++)o=this._Kd[t][i],c[4*i]=(l[n[i]>>24&255]^o>>24)&255,c[4*i+1]=(l[n[(i+3)%4]>>16&255]^o>>16)&255,c[4*i+2]=(l[n[(i+2)%4]>>8&255]^o>>8)&255,c[4*i+3]=(l[255&n[(i+1)%4]]^o)&255;return c};var T=function(e){if(!(this instanceof T))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new x(e)};T.prototype.encrypt=function(e){if((e=i(e)).length%16!=0)throw Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=a(e.length),r=a(16),n=0;nNumber.MAX_SAFE_INTEGER)throw Error("integer value out of safe range");for(var t=15;t>=0;--t)this._counter[t]=e%256,e=parseInt(e/256)},C.prototype.setBytes=function(e){if(16!=(e=i(e,!0)).length)throw Error("invalid counter bytes size (must be 16 bytes)");this._counter=e},C.prototype.increment=function(){for(var e=15;e>=0;e--)if(255===this._counter[e])this._counter[e]=0;else{this._counter[e]++;break}};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 C||(t=new C(t)),this._counter=t,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new x(e)};P.prototype.encrypt=function(e){for(var t=i(e,!0),r=0;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("")}}},padding:{pkcs7:{pad:function(e){var t=16-(e=i(e,!0)).length%16,r=a(e.length+t);s(e,r);for(var n=e.length;n16)throw Error("PKCS#7 padding byte out of range");for(var r=e.length-t,n=0;na.default),n.export(r,"v3",()=>o.default),n.export(r,"v4",()=>f.default),n.export(r,"v5",()=>d.default),n.export(r,"NIL",()=>h.default),n.export(r,"version",()=>m.default),n.export(r,"validate",()=>g.default),n.export(r,"stringify",()=>v.default),n.export(r,"parse",()=>_.default);var i=e("./v1.js"),a=n.interopDefault(i),s=e("./v3.js"),o=n.interopDefault(s),c=e("./v4.js"),f=n.interopDefault(c),u=e("./v5.js"),d=n.interopDefault(u),l=e("./nil.js"),h=n.interopDefault(l),p=e("./version.js"),m=n.interopDefault(p),b=e("./validate.js"),g=n.interopDefault(b),y=e("./stringify.js"),v=n.interopDefault(y),w=e("./parse.js"),_=n.interopDefault(w)},{"./v1.js":"gGKC5","./v3.js":"3dgAK","./v4.js":"2pDqf","./v5.js":"3eR7A","./nil.js":"etUG0","./version.js":"8g3rW","./validate.js":"fQ2nF","./stringify.js":"3MQU4","./parse.js":"6wHlw","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gGKC5:[function(e,t,r){var n,i,a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(r);var s=e("./rng.js"),o=a.interopDefault(s),c=e("./stringify.js"),f=a.interopDefault(c),u=0,d=0;r.default=function(e,t,r){var a=t&&r||0,s=t||Array(16),c=(e=e||{}).node||n,l=void 0!==e.clockseq?e.clockseq:i;if(null==c||null==l){var h=e.random||(e.rng||(0,o.default))();null==c&&(c=n=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==l&&(l=i=(h[6]<<8|h[7])&16383)}var p=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:d+1,b=p-u+(m-d)/1e4;if(b<0&&void 0===e.clockseq&&(l=l+1&16383),(b<0||p>u)&&void 0===e.nsecs&&(m=0),m>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");u=p,d=m,i=l;var g=((268435455&(p+=122192928e5))*1e4+m)%4294967296;s[a++]=g>>>24&255,s[a++]=g>>>16&255,s[a++]=g>>>8&255,s[a++]=255&g;var y=p/4294967296*1e4&268435455;s[a++]=y>>>8&255,s[a++]=255&y,s[a++]=y>>>24&15|16,s[a++]=y>>>16&255,s[a++]=l>>>8|128,s[a++]=255&l;for(var v=0;v<6;++v)s[a+v]=c[v];return t||(0,f.default)(s)}},{"./rng.js":"8SQmh","./stringify.js":"3MQU4","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"8SQmh":[function(e,t,r){var n,i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"default",()=>s);var a=new Uint8Array(16);function s(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(a)}},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"3MQU4":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);for(var i=e("./validate.js"),a=n.interopDefault(i),s=[],o=0;o<256;++o)s.push((o+256).toString(16).substr(1));r.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!(0,a.default)(r))throw TypeError("Stringified UUID is invalid");return r}},{"./validate.js":"fQ2nF","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],fQ2nF:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./regex.js"),a=n.interopDefault(i);r.default=function(e){return"string"==typeof e&&(0,a.default).test(e)}},{"./regex.js":"4Dwns","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"4Dwns":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"3dgAK":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./v35.js"),a=n.interopDefault(i),s=e("./md5.js"),o=n.interopDefault(s),c=(0,a.default)("v3",48,o.default);r.default=c},{"./v35.js":"dCOwl","./md5.js":"6YMuO","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dCOwl:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"DNS",()=>c),n.export(r,"URL",()=>f),n.export(r,"default",()=>function(e,t,r){function n(e,n,i,s){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r}},{"./validate.js":"fQ2nF","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"6YMuO":[function(e,t,r){function n(e){return(e+64>>>9<<4)+14+1}function i(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function a(e,t,r,n,a,s){var o;return i((o=i(i(t,e),i(n,s)))<>>32-a,r)}function s(e,t,r,n,i,s,o){return a(t&r|~t&n,e,t,i,s,o)}function o(e,t,r,n,i,s,o){return a(t&n|r&~n,e,t,i,s,o)}function c(e,t,r,n,i,s,o){return a(t^r^n,e,t,i,s,o)}function f(e,t,r,n,i,s,o){return a(r^(t|~n),e,t,i,s,o)}e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r>5]>>>i%32&255,s=parseInt(n.charAt(a>>>4&15)+n.charAt(15&a),16);t.push(s)}return t}(function(e,t){e[t>>5]|=128<>5]|=(255&e[i/8])<>>32-t}e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var i=unescape(encodeURIComponent(e));e=[];for(var a=0;a>>0;v=y,y=g,g=n(b,30)>>>0,b=m,m=E}r[0]=r[0]+m>>>0,r[1]=r[1]+b>>>0,r[2]=r[2]+g>>>0,r[3]=r[3]+y>>>0,r[4]=r[4]+v>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],etUG0:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default="00000000-0000-0000-0000-000000000000"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"8g3rW":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./validate.js"),a=n.interopDefault(i);r.default=function(e){if(!(0,a.default)(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},{"./validate.js":"fQ2nF","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],eOqnc:[function(e,t,r){"use strict";var n,i,a,s,o=Object.create,c=Object.defineProperty,f=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,d=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,h=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of u(t))l.call(e,i)||i===r||c(e,i,{get:()=>t[i],enumerable:!(n=f(t,i))||n.enumerable});return e},p=(e,t,r)=>(r=null!=e?o(d(e)):{},h(!t&&e&&e.__esModule?r:c(r,"default",{value:e,enumerable:!0}),e)),m={};((e,t)=>{for(var r in t)c(e,r,{get:t[r],enumerable:!0})})(m,{AccessTokenEvents:()=>P,CheckSessionIFrame:()=>O,ErrorResponse:()=>I,ErrorTimeout:()=>C,InMemoryWebStorage:()=>N,Log:()=>_,Logger:()=>E,MetadataService:()=>B,OidcClient:()=>X,OidcClientSettingsStore:()=>D,SessionMonitor:()=>Y,SigninResponse:()=>V,SigninState:()=>K,SignoutResponse:()=>G,State:()=>z,User:()=>Q,UserManager:()=>eh,UserManagerSettingsStore:()=>ei,Version:()=>ep,WebStorageStateStore:()=>L}),t.exports=h(c({},"__esModule",{value:!0}),m);var b=p(e("cd65f2846f9a9917")),g=p(e("b081c80cbcca67d0")),y=p(e("69a1441ed613820e")),v=p(e("46685f198d718556")),w={debug:()=>void 0,info:()=>void 0,warn:()=>void 0,error:()=>void 0},_=((n=_||{})[n.NONE=0]="NONE",n[n.ERROR=1]="ERROR",n[n.WARN=2]="WARN",n[n.INFO=3]="INFO",n[n.DEBUG=4]="DEBUG",n);(i=_||(_={})).reset=function(){a=3,s=w},i.setLevel=function(e){if(!(0<=e&&e<=4))throw Error("Invalid log level");a=e},i.setLogger=function(e){s=e};var E=class{constructor(e){this._name=e}debug(...e){a>=4&&s.debug(E._format(this._name,this._method),...e)}info(...e){a>=3&&s.info(E._format(this._name,this._method),...e)}warn(...e){a>=2&&s.warn(E._format(this._name,this._method),...e)}error(...e){a>=1&&s.error(E._format(this._name,this._method),...e)}throw(e){throw this.error(e),e}create(e){let t=Object.create(this);return t._method=e,t.debug("begin"),t}static createStatic(e,t){let r=new E(`${e}.${t}`);return r.debug("begin"),r}static _format(e,t){let r=`[${e}]`;return t?`${r} ${t}:`:r}static debug(e,...t){a>=4&&s.debug(E._format(e),...t)}static info(e,...t){a>=3&&s.info(E._format(e),...t)}static warn(e,...t){a>=2&&s.warn(E._format(e),...t)}static error(e,...t){a>=1&&s.error(E._format(e),...t)}};_.reset();var A=class{static _randomWord(){return b.default.lib.WordArray.random(1).words[0]}static generateUUIDv4(){let e="10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(+e^A._randomWord()&15>>+e/4).toString(16));return e.replace(/-/g,"")}static generateCodeVerifier(){return A.generateUUIDv4()+A.generateUUIDv4()+A.generateUUIDv4()}static generateCodeChallenge(e){try{let t=(0,g.default)(e);return y.default.stringify(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}catch(e){throw E.error("CryptoUtils.generateCodeChallenge",e),e}}static generateBasicAuth(e,t){let r=v.default.parse([e,t].join(":"));return y.default.stringify(r)}},M=class{constructor(e){this._name=e,this._logger=new E(`Event('${this._name}')`),this._callbacks=[]}addHandler(e){return this._callbacks.push(e),()=>this.removeHandler(e)}removeHandler(e){let t=this._callbacks.lastIndexOf(e);t>=0&&this._callbacks.splice(t,1)}raise(...e){for(let t of(this._logger.debug("raise:",...e),this._callbacks))t(...e)}},S=p(e("3455b80cc963b26")),x=class{static decode(e){try{return(0,S.default)(e)}catch(e){throw E.error("JwtUtils.decode",e),e}}},T=class{static center({...e}){var t;return null==e.width&&(e.width=null!=(t=[800,720,600,480].find(e=>e<=window.outerWidth/1.618))?t:360),null!=e.left||(e.left=Math.max(0,Math.round(window.screenX+(window.outerWidth-e.width)/2))),null!=e.height&&(null!=e.top||(e.top=Math.max(0,Math.round(window.screenY+(window.outerHeight-e.height)/2)))),e}static serialize(e){return Object.entries(e).filter(([,e])=>null!=e).map(([e,t])=>`${e}=${"boolean"!=typeof t?t:t?"yes":"no"}`).join(",")}},k=class extends M{constructor(){super(...arguments),this._logger=new E(`Timer('${this._name}')`),this._timerHandle=null,this._expiration=0,this._callback=()=>{let e=this._expiration-k.getEpochTime();this._logger.debug("timer completes in",e),this._expiration<=k.getEpochTime()&&(this.cancel(),super.raise())}}static getEpochTime(){return Math.floor(Date.now()/1e3)}init(e){let t=this._logger.create("init");e=Math.max(Math.floor(e),1);let r=k.getEpochTime()+e;if(this.expiration===r&&this._timerHandle){t.debug("skipping since already initialized for expiration at",this.expiration);return}this.cancel(),t.debug("using duration",e),this._expiration=r;let n=Math.min(e,5);this._timerHandle=setInterval(this._callback,1e3*n)}get expiration(){return this._expiration}cancel(){this._logger.create("cancel"),this._timerHandle&&(clearInterval(this._timerHandle),this._timerHandle=null)}},R=class{static readParams(e,t="query"){if(!e)throw TypeError("Invalid URL");let r=new URL(e,"http://127.0.0.1"),n=r["fragment"===t?"hash":"search"];return new URLSearchParams(n.slice(1))}},I=class extends Error{constructor(e,t){var r,n,i;if(super(e.error_description||e.error||""),this.form=t,this.name="ErrorResponse",!e.error)throw E.error("ErrorResponse","No error passed"),Error("No error passed");this.error=e.error,this.error_description=null!=(r=e.error_description)?r:null,this.error_uri=null!=(n=e.error_uri)?n:null,this.state=e.userState,this.session_state=null!=(i=e.session_state)?i:null,this.url_state=e.url_state}},C=class extends Error{constructor(e){super(e),this.name="ErrorTimeout"}},P=class{constructor(e){this._logger=new E("AccessTokenEvents"),this._expiringTimer=new k("Access token expiring"),this._expiredTimer=new k("Access token expired"),this._expiringNotificationTimeInSeconds=e.expiringNotificationTimeInSeconds}load(e){let t=this._logger.create("load");if(e.access_token&&void 0!==e.expires_in){let r=e.expires_in;if(t.debug("access token present, remaining duration:",r),r>0){let e=r-this._expiringNotificationTimeInSeconds;e<=0&&(e=1),t.debug("registering expiring timer, raising in",e,"seconds"),this._expiringTimer.init(e)}else t.debug("canceling existing expiring timer because we're past expiration."),this._expiringTimer.cancel();let n=r+1;t.debug("registering expired timer, raising in",n,"seconds"),this._expiredTimer.init(n)}else this._expiringTimer.cancel(),this._expiredTimer.cancel()}unload(){this._logger.debug("unload: canceling existing access token timers"),this._expiringTimer.cancel(),this._expiredTimer.cancel()}addAccessTokenExpiring(e){return this._expiringTimer.addHandler(e)}removeAccessTokenExpiring(e){this._expiringTimer.removeHandler(e)}addAccessTokenExpired(e){return this._expiredTimer.addHandler(e)}removeAccessTokenExpired(e){this._expiredTimer.removeHandler(e)}},O=class{constructor(e,t,r,n,i){this._callback=e,this._client_id=t,this._intervalInSeconds=n,this._stopOnError=i,this._logger=new E("CheckSessionIFrame"),this._timer=null,this._session_state=null,this._message=e=>{e.origin===this._frame_origin&&e.source===this._frame.contentWindow&&("error"===e.data?(this._logger.error("error message from check session op iframe"),this._stopOnError&&this.stop()):"changed"===e.data?(this._logger.debug("changed message from check session op iframe"),this.stop(),this._callback()):this._logger.debug(e.data+" message from check session op iframe"))};let a=new URL(r);this._frame_origin=a.origin,this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="fixed",this._frame.style.left="-1000px",this._frame.style.top="0",this._frame.width="0",this._frame.height="0",this._frame.src=a.href}load(){return new Promise(e=>{this._frame.onload=()=>{e()},window.document.body.appendChild(this._frame),window.addEventListener("message",this._message,!1)})}start(e){if(this._session_state===e)return;this._logger.create("start"),this.stop(),this._session_state=e;let t=()=>{this._frame.contentWindow&&this._session_state&&this._frame.contentWindow.postMessage(this._client_id+" "+this._session_state,this._frame_origin)};t(),this._timer=setInterval(t,1e3*this._intervalInSeconds)}stop(){this._logger.create("stop"),this._session_state=null,this._timer&&(clearInterval(this._timer),this._timer=null)}},N=class{constructor(){this._logger=new E("InMemoryWebStorage"),this._data={}}clear(){this._logger.create("clear"),this._data={}}getItem(e){return this._logger.create(`getItem('${e}')`),this._data[e]}setItem(e,t){this._logger.create(`setItem('${e}')`),this._data[e]=t}removeItem(e){this._logger.create(`removeItem('${e}')`),delete this._data[e]}get length(){return Object.getOwnPropertyNames(this._data).length}key(e){return Object.getOwnPropertyNames(this._data)[e]}},j=class{constructor(e=[],t=null,r={}){this._jwtHandler=t,this._extraHeaders=r,this._logger=new E("JsonService"),this._contentTypes=[],this._contentTypes.push(...e,"application/json"),t&&this._contentTypes.push("application/jwt")}async fetchWithTimeout(e,t={}){let{timeoutInSeconds:r,...n}=t;if(!r)return await fetch(e,n);let i=new AbortController,a=setTimeout(()=>i.abort(),1e3*r);try{let r=await fetch(e,{...t,signal:i.signal});return r}catch(e){if(e instanceof DOMException&&"AbortError"===e.name)throw new C("Network timed out");throw e}finally{clearTimeout(a)}}async getJson(e,{token:t,credentials:r}={}){let n,i;let a=this._logger.create("getJson"),s={Accept:this._contentTypes.join(", ")};t&&(a.debug("token passed, setting Authorization header"),s.Authorization="Bearer "+t),this.appendExtraHeaders(s);try{a.debug("url:",e),n=await this.fetchWithTimeout(e,{method:"GET",headers:s,credentials:r})}catch(e){throw a.error("Network Error"),e}a.debug("HTTP response received, status",n.status);let o=n.headers.get("Content-Type");if(o&&!this._contentTypes.find(e=>o.startsWith(e))&&a.throw(Error(`Invalid response Content-Type: ${null!=o?o:"undefined"}, from URL: ${e}`)),n.ok&&this._jwtHandler&&(null==o?void 0:o.startsWith("application/jwt")))return await this._jwtHandler(await n.text());try{i=await n.json()}catch(e){if(a.error("Error parsing JSON response",e),n.ok)throw e;throw Error(`${n.statusText} (${n.status})`)}if(!n.ok){if(a.error("Error from server:",i),i.error)throw new I(i);throw Error(`${n.statusText} (${n.status}): ${JSON.stringify(i)}`)}return i}async postForm(e,{body:t,basicAuth:r,timeoutInSeconds:n,initCredentials:i}){let a;let s=this._logger.create("postForm"),o={Accept:this._contentTypes.join(", "),"Content-Type":"application/x-www-form-urlencoded"};void 0!==r&&(o.Authorization="Basic "+r),this.appendExtraHeaders(o);try{s.debug("url:",e),a=await this.fetchWithTimeout(e,{method:"POST",headers:o,body:t,timeoutInSeconds:n,credentials:i})}catch(e){throw s.error("Network error"),e}s.debug("HTTP response received, status",a.status);let c=a.headers.get("Content-Type");if(c&&!this._contentTypes.find(e=>c.startsWith(e)))throw Error(`Invalid response Content-Type: ${null!=c?c:"undefined"}, from URL: ${e}`);let f=await a.text(),u={};if(f)try{u=JSON.parse(f)}catch(e){if(s.error("Error parsing JSON response",e),a.ok)throw e;throw Error(`${a.statusText} (${a.status})`)}if(!a.ok){if(s.error("Error from server:",u),u.error)throw new I(u,t);throw Error(`${a.statusText} (${a.status}): ${JSON.stringify(u)}`)}return u}appendExtraHeaders(e){let t=this._logger.create("appendExtraHeaders"),r=Object.keys(this._extraHeaders),n=["authorization","accept","content-type"];0!==r.length&&r.forEach(r=>{if(n.includes(r.toLocaleLowerCase())){t.warn("Protected header could not be overridden",r,n);return}let i="function"==typeof this._extraHeaders[r]?this._extraHeaders[r]():this._extraHeaders[r];i&&""!==i&&(e[r]=i)})}},B=class{constructor(e){this._settings=e,this._logger=new E("MetadataService"),this._signingKeys=null,this._metadata=null,this._metadataUrl=this._settings.metadataUrl,this._jsonService=new j(["application/jwk-set+json"],null,this._settings.extraHeaders),this._settings.signingKeys&&(this._logger.debug("using signingKeys from settings"),this._signingKeys=this._settings.signingKeys),this._settings.metadata&&(this._logger.debug("using metadata from settings"),this._metadata=this._settings.metadata),this._settings.fetchRequestCredentials&&(this._logger.debug("using fetchRequestCredentials from settings"),this._fetchRequestCredentials=this._settings.fetchRequestCredentials)}resetSigningKeys(){this._signingKeys=null}async getMetadata(){let e=this._logger.create("getMetadata");if(this._metadata)return e.debug("using cached values"),this._metadata;if(!this._metadataUrl)throw e.throw(Error("No authority or metadataUrl configured on settings")),null;e.debug("getting metadata from",this._metadataUrl);let t=await this._jsonService.getJson(this._metadataUrl,{credentials:this._fetchRequestCredentials});return e.debug("merging remote JSON with seed metadata"),this._metadata=Object.assign({},this._settings.metadataSeed,t),this._metadata}getIssuer(){return this._getMetadataProperty("issuer")}getAuthorizationEndpoint(){return this._getMetadataProperty("authorization_endpoint")}getUserInfoEndpoint(){return this._getMetadataProperty("userinfo_endpoint")}getTokenEndpoint(e=!0){return this._getMetadataProperty("token_endpoint",e)}getCheckSessionIframe(){return this._getMetadataProperty("check_session_iframe",!0)}getEndSessionEndpoint(){return this._getMetadataProperty("end_session_endpoint",!0)}getRevocationEndpoint(e=!0){return this._getMetadataProperty("revocation_endpoint",e)}getKeysEndpoint(e=!0){return this._getMetadataProperty("jwks_uri",e)}async _getMetadataProperty(e,t=!1){let r=this._logger.create(`_getMetadataProperty('${e}')`),n=await this.getMetadata();if(r.debug("resolved"),void 0===n[e]){if(!0===t){r.warn("Metadata does not contain optional property");return}r.throw(Error("Metadata does not contain property "+e))}return n[e]}async getSigningKeys(){let e=this._logger.create("getSigningKeys");if(this._signingKeys)return e.debug("returning signingKeys from cache"),this._signingKeys;let t=await this.getKeysEndpoint(!1);e.debug("got jwks_uri",t);let r=await this._jsonService.getJson(t);if(e.debug("got key set",r),!Array.isArray(r.keys))throw e.throw(Error("Missing keys on keyset")),null;return this._signingKeys=r.keys,this._signingKeys}},L=class{constructor({prefix:e="oidc.",store:t=localStorage}={}){this._logger=new E("WebStorageStateStore"),this._store=t,this._prefix=e}async set(e,t){this._logger.create(`set('${e}')`),e=this._prefix+e,await this._store.setItem(e,t)}async get(e){this._logger.create(`get('${e}')`),e=this._prefix+e;let t=await this._store.getItem(e);return t}async remove(e){this._logger.create(`remove('${e}')`),e=this._prefix+e;let t=await this._store.getItem(e);return await this._store.removeItem(e),t}async getAllKeys(){this._logger.create("getAllKeys");let e=await this._store.length,t=[];for(let r=0;r{let t=this._logger.create("_getClaimsFromJwt");try{let r=x.decode(e);return t.debug("JWT decoding successful"),r}catch(e){throw t.error("Error parsing JWT response"),e}},this._jsonService=new j(void 0,this._getClaimsFromJwt,this._settings.extraHeaders)}async getClaims(e){let t=this._logger.create("getClaims");e||this._logger.throw(Error("No token passed"));let r=await this._metadataService.getUserInfoEndpoint();t.debug("got userinfo url",r);let n=await this._jsonService.getJson(r,{token:e,credentials:this._settings.fetchRequestCredentials});return t.debug("got claims",n),n}},F=class{constructor(e,t){this._settings=e,this._metadataService=t,this._logger=new E("TokenClient"),this._jsonService=new j(this._settings.revokeTokenAdditionalContentTypes,null,this._settings.extraHeaders)}async exchangeCode({grant_type:e="authorization_code",redirect_uri:t=this._settings.redirect_uri,client_id:r=this._settings.client_id,client_secret:n=this._settings.client_secret,...i}){let a;let s=this._logger.create("exchangeCode");r||s.throw(Error("A client_id is required")),t||s.throw(Error("A redirect_uri is required")),i.code||s.throw(Error("A code is required"));let o=new URLSearchParams({grant_type:e,redirect_uri:t});for(let[e,t]of Object.entries(i))null!=t&&o.set(e,t);switch(this._settings.client_authentication){case"client_secret_basic":if(!n)throw s.throw(Error("A client_secret is required")),null;a=A.generateBasicAuth(r,n);break;case"client_secret_post":o.append("client_id",r),n&&o.append("client_secret",n)}let c=await this._metadataService.getTokenEndpoint(!1);s.debug("got token endpoint");let f=await this._jsonService.postForm(c,{body:o,basicAuth:a,initCredentials:this._settings.fetchRequestCredentials});return s.debug("got response"),f}async exchangeCredentials({grant_type:e="password",client_id:t=this._settings.client_id,client_secret:r=this._settings.client_secret,scope:n=this._settings.scope,...i}){let a;let s=this._logger.create("exchangeCredentials");t||s.throw(Error("A client_id is required"));let o=new URLSearchParams({grant_type:e,scope:n});for(let[e,t]of Object.entries(i))null!=t&&o.set(e,t);switch(this._settings.client_authentication){case"client_secret_basic":if(!r)throw s.throw(Error("A client_secret is required")),null;a=A.generateBasicAuth(t,r);break;case"client_secret_post":o.append("client_id",t),r&&o.append("client_secret",r)}let c=await this._metadataService.getTokenEndpoint(!1);s.debug("got token endpoint");let f=await this._jsonService.postForm(c,{body:o,basicAuth:a,initCredentials:this._settings.fetchRequestCredentials});return s.debug("got response"),f}async exchangeRefreshToken({grant_type:e="refresh_token",client_id:t=this._settings.client_id,client_secret:r=this._settings.client_secret,timeoutInSeconds:n,...i}){let a;let s=this._logger.create("exchangeRefreshToken");t||s.throw(Error("A client_id is required")),i.refresh_token||s.throw(Error("A refresh_token is required"));let o=new URLSearchParams({grant_type:e});for(let[e,t]of Object.entries(i))Array.isArray(t)?t.forEach(t=>o.append(e,t)):null!=t&&o.set(e,t);switch(this._settings.client_authentication){case"client_secret_basic":if(!r)throw s.throw(Error("A client_secret is required")),null;a=A.generateBasicAuth(t,r);break;case"client_secret_post":o.append("client_id",t),r&&o.append("client_secret",r)}let c=await this._metadataService.getTokenEndpoint(!1);s.debug("got token endpoint");let f=await this._jsonService.postForm(c,{body:o,basicAuth:a,timeoutInSeconds:n,initCredentials:this._settings.fetchRequestCredentials});return s.debug("got response"),f}async revoke(e){var t;let r=this._logger.create("revoke");e.token||r.throw(Error("A token is required"));let n=await this._metadataService.getRevocationEndpoint(!1);r.debug(`got revocation endpoint, revoking ${null!=(t=e.token_type_hint)?t:"default token type"}`);let i=new URLSearchParams;for(let[t,r]of Object.entries(e))null!=r&&i.set(t,r);i.set("client_id",this._settings.client_id),this._settings.client_secret&&i.set("client_secret",this._settings.client_secret),await this._jsonService.postForm(n,{body:i}),r.debug("got response")}},q=class{constructor(e,t,r){this._settings=e,this._metadataService=t,this._claimsService=r,this._logger=new E("ResponseValidator"),this._userInfoService=new U(this._settings,this._metadataService),this._tokenClient=new F(this._settings,this._metadataService)}async validateSigninResponse(e,t){let r=this._logger.create("validateSigninResponse");this._processSigninState(e,t),r.debug("state processed"),await this._processCode(e,t),r.debug("code processed"),e.isOpenId&&this._validateIdTokenAttributes(e),r.debug("tokens validated"),await this._processClaims(e,null==t?void 0:t.skipUserInfo,e.isOpenId),r.debug("claims processed")}async validateCredentialsResponse(e,t){let r=this._logger.create("validateCredentialsResponse");e.isOpenId&&e.id_token&&this._validateIdTokenAttributes(e),r.debug("tokens validated"),await this._processClaims(e,t,e.isOpenId),r.debug("claims processed")}async validateRefreshResponse(e,t){let r=this._logger.create("validateRefreshResponse");e.userState=t.data,null!=e.session_state||(e.session_state=t.session_state),null!=e.scope||(e.scope=t.scope),e.isOpenId&&e.id_token&&(this._validateIdTokenAttributes(e,t.id_token),r.debug("ID Token validated")),e.id_token||(e.id_token=t.id_token,e.profile=t.profile);let n=e.isOpenId&&!!e.id_token;await this._processClaims(e,!1,n),r.debug("claims processed")}validateSignoutResponse(e,t){let r=this._logger.create("validateSignoutResponse");if(t.id!==e.state&&r.throw(Error("State does not match")),r.debug("state validated"),e.userState=t.data,e.error)throw r.warn("Response was error",e.error),new I(e)}_processSigninState(e,t){let r=this._logger.create("_processSigninState");if(t.id!==e.state&&r.throw(Error("State does not match")),t.client_id||r.throw(Error("No client_id on state")),t.authority||r.throw(Error("No authority on state")),this._settings.authority!==t.authority&&r.throw(Error("authority mismatch on settings vs. signin state")),this._settings.client_id&&this._settings.client_id!==t.client_id&&r.throw(Error("client_id mismatch on settings vs. signin state")),r.debug("state validated"),e.userState=t.data,e.url_state=t.url_state,null!=e.scope||(e.scope=t.scope),e.error)throw r.warn("Response was error",e.error),new I(e);t.code_verifier&&!e.code&&r.throw(Error("Expected code in response"))}async _processClaims(e,t=!1,r=!0){let n=this._logger.create("_processClaims");if(e.profile=this._claimsService.filterProtocolClaims(e.profile),t||!this._settings.loadUserInfo||!e.access_token){n.debug("not loading user info");return}n.debug("loading user info");let i=await this._userInfoService.getClaims(e.access_token);n.debug("user info claims received from user info endpoint"),r&&i.sub!==e.profile.sub&&n.throw(Error("subject from UserInfo response does not match subject in ID Token")),e.profile=this._claimsService.mergeClaims(e.profile,this._claimsService.filterProtocolClaims(i)),n.debug("user info claims received, updated profile:",e.profile)}async _processCode(e,t){let r=this._logger.create("_processCode");if(e.code){r.debug("Validating code");let n=await this._tokenClient.exchangeCode({client_id:t.client_id,client_secret:t.client_secret,code:e.code,redirect_uri:t.redirect_uri,code_verifier:t.code_verifier,...t.extraTokenParams});Object.assign(e,n)}else r.debug("No code to process")}_validateIdTokenAttributes(e,t){var r;let n=this._logger.create("_validateIdTokenAttributes");n.debug("decoding ID Token JWT");let i=x.decode(null!=(r=e.id_token)?r:"");if(i.sub||n.throw(Error("ID Token is missing a subject claim")),t){let e=x.decode(t);i.sub!==e.sub&&n.throw(Error("sub in id_token does not match current sub")),i.auth_time&&i.auth_time!==e.auth_time&&n.throw(Error("auth_time in id_token does not match original auth_time")),i.azp&&i.azp!==e.azp&&n.throw(Error("azp in id_token does not match original azp")),!i.azp&&e.azp&&n.throw(Error("azp not in id_token, but present in original id_token"))}e.profile=i}},z=class{constructor(e){this.id=e.id||A.generateUUIDv4(),this.data=e.data,e.created&&e.created>0?this.created=e.created:this.created=k.getEpochTime(),this.request_type=e.request_type,this.url_state=e.url_state}toStorageString(){return new E("State").create("toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,url_state:this.url_state})}static fromStorageString(e){return E.createStatic("State","fromStorageString"),new z(JSON.parse(e))}static async clearStaleState(e,t){let r=E.createStatic("State","clearStaleState"),n=k.getEpochTime()-t,i=await e.getAllKeys();r.debug("got keys",i);for(let t=0;ty.searchParams.append("resource",e))}for(let[e,t]of Object.entries({response_mode:o,...g,...p}))null!=t&&y.searchParams.append(e,t.toString());this.url=y.href}},V=class{constructor(e){if(this.access_token="",this.token_type="",this.profile={},this.state=e.get("state"),this.session_state=e.get("session_state"),this.state){let e=decodeURIComponent(this.state).split(";");this.state=e[0],e.length>1&&(this.url_state=e.slice(1).join(";"))}this.error=e.get("error"),this.error_description=e.get("error_description"),this.error_uri=e.get("error_uri"),this.code=e.get("code")}get expires_in(){if(void 0!==this.expires_at)return this.expires_at-k.getEpochTime()}set expires_in(e){"string"==typeof e&&(e=Number(e)),void 0!==e&&e>=0&&(this.expires_at=Math.floor(e)+k.getEpochTime())}get isOpenId(){var e;return(null==(e=this.scope)?void 0:e.split(" ").includes("openid"))||!!this.id_token}},W=class{constructor({url:e,state_data:t,id_token_hint:r,post_logout_redirect_uri:n,extraQueryParams:i,request_type:a,client_id:s}){if(this._logger=new E("SignoutRequest"),!e)throw this._logger.error("ctor: No url passed"),Error("url");let o=new URL(e);for(let[e,c]of(r&&o.searchParams.append("id_token_hint",r),s&&o.searchParams.append("client_id",s),n&&(o.searchParams.append("post_logout_redirect_uri",n),t&&(this.state=new z({data:t,request_type:a}),o.searchParams.append("state",this.state.id))),Object.entries({...i})))null!=c&&o.searchParams.append(e,c.toString());this.url=o.href}},G=class{constructor(e){this.state=e.get("state"),this.error=e.get("error"),this.error_description=e.get("error_description"),this.error_uri=e.get("error_uri")}},J=["nbf","jti","auth_time","nonce","acr","amr","azp","at_hash"],Z=["sub","iss","aud","exp","iat"],$=class{constructor(e){this._settings=e,this._logger=new E("ClaimsService")}filterProtocolClaims(e){let t={...e};if(this._settings.filterProtocolClaims)for(let e of Array.isArray(this._settings.filterProtocolClaims)?this._settings.filterProtocolClaims:J)Z.includes(e)||delete t[e];return t}mergeClaims(e,t){let r={...e};for(let[e,n]of Object.entries(t))for(let t of Array.isArray(n)?n:[n]){let n=r[e];void 0===n?r[e]=t:Array.isArray(n)?n.includes(t)||n.push(t):r[e]!==t&&("object"==typeof t&&this._settings.mergeClaims?r[e]=this.mergeClaims(n,t):r[e]=[n,t])}return r}},X=class{constructor(e,t){this._logger=new E("OidcClient"),this.settings=e instanceof D?e:new D(e),this.metadataService=null!=t?t:new B(this.settings),this._claimsService=new $(this.settings),this._validator=new q(this.settings,this.metadataService,this._claimsService),this._tokenClient=new F(this.settings,this.metadataService)}async createSigninRequest({state:e,request:t,request_uri:r,request_type:n,id_token_hint:i,login_hint:a,skipUserInfo:s,nonce:o,url_state:c,response_type:f=this.settings.response_type,scope:u=this.settings.scope,redirect_uri:d=this.settings.redirect_uri,prompt:l=this.settings.prompt,display:h=this.settings.display,max_age:p=this.settings.max_age,ui_locales:m=this.settings.ui_locales,acr_values:b=this.settings.acr_values,resource:g=this.settings.resource,response_mode:y=this.settings.response_mode,extraQueryParams:v=this.settings.extraQueryParams,extraTokenParams:w=this.settings.extraTokenParams}){let _=this._logger.create("createSigninRequest");if("code"!==f)throw Error("Only the Authorization Code flow (with PKCE) is supported");let E=await this.metadataService.getAuthorizationEndpoint();_.debug("Received authorization endpoint",E);let A=new H({url:E,authority:this.settings.authority,client_id:this.settings.client_id,redirect_uri:d,response_type:f,scope:u,state_data:e,url_state:c,prompt:l,display:h,max_age:p,ui_locales:m,id_token_hint:i,login_hint:a,acr_values:b,resource:g,request:t,request_uri:r,extraQueryParams:v,extraTokenParams:w,request_type:n,response_mode:y,client_secret:this.settings.client_secret,skipUserInfo:s,nonce:o,disablePKCE:this.settings.disablePKCE});await this.clearStaleState();let M=A.state;return await this.settings.stateStore.set(M.id,M.toStorageString()),A}async readSigninResponseState(e,t=!1){let r=this._logger.create("readSigninResponseState"),n=new V(R.readParams(e,this.settings.response_mode));if(!n.state)throw r.throw(Error("No state in response")),null;let i=await this.settings.stateStore[t?"remove":"get"](n.state);if(!i)throw r.throw(Error("No matching state found in storage")),null;let a=K.fromStorageString(i);return{state:a,response:n}}async processSigninResponse(e){let t=this._logger.create("processSigninResponse"),{state:r,response:n}=await this.readSigninResponseState(e,!0);return t.debug("received state from storage; validating response"),await this._validator.validateSigninResponse(n,r),n}async processResourceOwnerPasswordCredentials({username:e,password:t,skipUserInfo:r=!1,extraTokenParams:n={}}){let i=await this._tokenClient.exchangeCredentials({username:e,password:t,...n}),a=new V(new URLSearchParams);return Object.assign(a,i),await this._validator.validateCredentialsResponse(a,r),a}async useRefreshToken({state:e,timeoutInSeconds:t}){var r;let n;let i=this._logger.create("useRefreshToken");if(void 0===this.settings.refreshTokenAllowedScope)n=e.scope;else{let t=this.settings.refreshTokenAllowedScope.split(" "),i=(null==(r=e.scope)?void 0:r.split(" "))||[];n=i.filter(e=>t.includes(e)).join(" ")}let a=await this._tokenClient.exchangeRefreshToken({refresh_token:e.refresh_token,resource:e.resource,scope:n,timeoutInSeconds:t}),s=new V(new URLSearchParams);return Object.assign(s,a),i.debug("validating response",s),await this._validator.validateRefreshResponse(s,{...e,scope:n}),s}async createSignoutRequest({state:e,id_token_hint:t,client_id:r,request_type:n,post_logout_redirect_uri:i=this.settings.post_logout_redirect_uri,extraQueryParams:a=this.settings.extraQueryParams}={}){let s=this._logger.create("createSignoutRequest"),o=await this.metadataService.getEndSessionEndpoint();if(!o)throw s.throw(Error("No end session endpoint")),null;s.debug("Received end session endpoint",o),r||!i||t||(r=this.settings.client_id);let c=new W({url:o,id_token_hint:t,client_id:r,post_logout_redirect_uri:i,state_data:e,extraQueryParams:a,request_type:n});await this.clearStaleState();let f=c.state;return f&&(s.debug("Signout request has state to persist"),await this.settings.stateStore.set(f.id,f.toStorageString())),c}async readSignoutResponseState(e,t=!1){let r=this._logger.create("readSignoutResponseState"),n=new G(R.readParams(e,this.settings.response_mode));if(!n.state){if(r.debug("No state in response"),n.error)throw r.warn("Response was error:",n.error),new I(n);return{state:void 0,response:n}}let i=await this.settings.stateStore[t?"remove":"get"](n.state);if(!i)throw r.throw(Error("No matching state found in storage")),null;let a=z.fromStorageString(i);return{state:a,response:n}}async processSignoutResponse(e){let t=this._logger.create("processSignoutResponse"),{state:r,response:n}=await this.readSignoutResponseState(e,!0);return r?(t.debug("Received state from storage; validating response"),this._validator.validateSignoutResponse(n,r)):t.debug("No state from storage; skipping response validation"),n}clearStaleState(){return this._logger.create("clearStaleState"),z.clearStaleState(this.settings.stateStore,this.settings.staleStateAgeInSeconds)}async revokeToken(e,t){return this._logger.create("revokeToken"),await this._tokenClient.revoke({token:e,token_type_hint:t})}},Y=class{constructor(e){this._userManager=e,this._logger=new E("SessionMonitor"),this._start=async e=>{let t=e.session_state;if(!t)return;let r=this._logger.create("_start");if(e.profile?(this._sub=e.profile.sub,this._sid=e.profile.sid,r.debug("session_state",t,", sub",this._sub)):(this._sub=void 0,this._sid=void 0,r.debug("session_state",t,", anonymous user")),this._checkSessionIFrame){this._checkSessionIFrame.start(t);return}try{let e=await this._userManager.metadataService.getCheckSessionIframe();if(e){r.debug("initializing check session iframe");let n=this._userManager.settings.client_id,i=this._userManager.settings.checkSessionIntervalInSeconds,a=this._userManager.settings.stopCheckSessionOnError,s=new O(this._callback,n,e,i,a);await s.load(),this._checkSessionIFrame=s,s.start(t)}else r.warn("no check session iframe found in the metadata")}catch(e){r.error("Error from getCheckSessionIframe:",e instanceof Error?e.message:e)}},this._stop=()=>{let e=this._logger.create("_stop");if(this._sub=void 0,this._sid=void 0,this._checkSessionIFrame&&this._checkSessionIFrame.stop(),this._userManager.settings.monitorAnonymousSession){let t=setInterval(async()=>{clearInterval(t);try{let e=await this._userManager.querySessionStatus();if(e){let t={session_state:e.session_state,profile:e.sub&&e.sid?{sub:e.sub,sid:e.sid}:null};this._start(t)}}catch(t){e.error("error from querySessionStatus",t instanceof Error?t.message:t)}},1e3)}},this._callback=async()=>{let e=this._logger.create("_callback");try{let t=await this._userManager.querySessionStatus(),r=!0;t&&this._checkSessionIFrame?t.sub===this._sub?(r=!1,this._checkSessionIFrame.start(t.session_state),t.sid===this._sid?e.debug("same sub still logged in at OP, restarting check session iframe; session_state",t.session_state):(e.debug("same sub still logged in at OP, session state has changed, restarting check session iframe; session_state",t.session_state),this._userManager.events._raiseUserSessionChanged())):e.debug("different subject signed into OP",t.sub):e.debug("subject no longer signed into OP"),r?this._sub?this._userManager.events._raiseUserSignedOut():this._userManager.events._raiseUserSignedIn():e.debug("no change in session detected, no event to raise")}catch(t){this._sub&&(e.debug("Error calling queryCurrentSigninSession; raising signed out event",t),this._userManager.events._raiseUserSignedOut())}},e||this._logger.throw(Error("No user manager passed")),this._userManager.events.addUserLoaded(this._start),this._userManager.events.addUserUnloaded(this._stop),this._init().catch(e=>{this._logger.error(e)})}async _init(){this._logger.create("_init");let e=await this._userManager.getUser();if(e)this._start(e);else if(this._userManager.settings.monitorAnonymousSession){let e=await this._userManager.querySessionStatus();if(e){let t={session_state:e.session_state,profile:e.sub&&e.sid?{sub:e.sub,sid:e.sid}:null};this._start(t)}}}},Q=class{constructor(e){var t;this.id_token=e.id_token,this.session_state=null!=(t=e.session_state)?t:null,this.access_token=e.access_token,this.refresh_token=e.refresh_token,this.token_type=e.token_type,this.scope=e.scope,this.profile=e.profile,this.expires_at=e.expires_at,this.state=e.userState,this.url_state=e.url_state}get expires_in(){if(void 0!==this.expires_at)return this.expires_at-k.getEpochTime()}set expires_in(e){void 0!==e&&(this.expires_at=Math.floor(e)+k.getEpochTime())}get expired(){let e=this.expires_in;if(void 0!==e)return e<=0}get scopes(){var e,t;return null!=(t=null==(e=this.scope)?void 0:e.split(" "))?t:[]}toStorageString(){return new E("User").create("toStorageString"),JSON.stringify({id_token:this.id_token,session_state:this.session_state,access_token:this.access_token,refresh_token:this.refresh_token,token_type:this.token_type,scope:this.scope,profile:this.profile,expires_at:this.expires_at})}static fromStorageString(e){return E.createStatic("User","fromStorageString"),new Q(JSON.parse(e))}},ee="oidc-client",et=class{constructor(){this._abort=new M("Window navigation aborted"),this._disposeHandlers=new Set,this._window=null}async navigate(e){let t=this._logger.create("navigate");if(!this._window)throw Error("Attempted to navigate on a disposed window");t.debug("setting URL in window"),this._window.location.replace(e.url);let{url:r,keepOpen:n}=await new Promise((r,n)=>{let i=i=>{var a;let s=i.data,o=null!=(a=e.scriptOrigin)?a:window.location.origin;if(i.origin===o&&(null==s?void 0:s.source)===ee){try{let r=R.readParams(s.url,e.response_mode).get("state");if(r||t.warn("no state found in response url"),i.source!==this._window&&r!==e.state)return}catch(e){this._dispose(),n(Error("Invalid response from window"))}r(s)}};window.addEventListener("message",i,!1),this._disposeHandlers.add(()=>window.removeEventListener("message",i,!1)),this._disposeHandlers.add(this._abort.addHandler(e=>{this._dispose(),n(e)}))});return t.debug("got response from window"),this._dispose(),n||this.close(),{url:r}}_dispose(){for(let e of(this._logger.create("_dispose"),this._disposeHandlers))e();this._disposeHandlers.clear()}static _notifyParent(e,t,r=!1,n=window.location.origin){e.postMessage({source:ee,url:t,keepOpen:r},n)}},er={location:!1,toolbar:!1,height:640,closePopupWindowAfterInSeconds:-1},en="_blank",ei=class extends D{constructor(e){let{popup_redirect_uri:t=e.redirect_uri,popup_post_logout_redirect_uri:r=e.post_logout_redirect_uri,popupWindowFeatures:n=er,popupWindowTarget:i=en,redirectMethod:a="assign",redirectTarget:s="self",iframeNotifyParentOrigin:o=e.iframeNotifyParentOrigin,iframeScriptOrigin:c=e.iframeScriptOrigin,silent_redirect_uri:f=e.redirect_uri,silentRequestTimeoutInSeconds:u=10,automaticSilentRenew:d=!0,validateSubOnSilentRenew:l=!0,includeIdTokenInSilentRenew:h=!1,monitorSession:p=!1,monitorAnonymousSession:m=!1,checkSessionIntervalInSeconds:b=2,query_status_response_type:g="code",stopCheckSessionOnError:y=!0,revokeTokenTypes:v=["access_token","refresh_token"],revokeTokensOnSignout:w=!1,includeIdTokenInSilentSignout:_=!1,accessTokenExpiringNotificationTimeInSeconds:E=60,userStore:A}=e;if(super(e),this.popup_redirect_uri=t,this.popup_post_logout_redirect_uri=r,this.popupWindowFeatures=n,this.popupWindowTarget=i,this.redirectMethod=a,this.redirectTarget=s,this.iframeNotifyParentOrigin=o,this.iframeScriptOrigin=c,this.silent_redirect_uri=f,this.silentRequestTimeoutInSeconds=u,this.automaticSilentRenew=d,this.validateSubOnSilentRenew=l,this.includeIdTokenInSilentRenew=h,this.monitorSession=p,this.monitorAnonymousSession=m,this.checkSessionIntervalInSeconds=b,this.stopCheckSessionOnError=y,this.query_status_response_type=g,this.revokeTokenTypes=v,this.revokeTokensOnSignout=w,this.includeIdTokenInSilentSignout=_,this.accessTokenExpiringNotificationTimeInSeconds=E,A)this.userStore=A;else{let e="undefined"!=typeof window?window.sessionStorage:new N;this.userStore=new L({store:e})}}},ea=class extends et{constructor({silentRequestTimeoutInSeconds:e=10}){super(),this._logger=new E("IFrameWindow"),this._timeoutInSeconds=e,this._frame=ea.createHiddenIframe(),this._window=this._frame.contentWindow}static createHiddenIframe(){let e=window.document.createElement("iframe");return e.style.visibility="hidden",e.style.position="fixed",e.style.left="-1000px",e.style.top="0",e.width="0",e.height="0",window.document.body.appendChild(e),e}async navigate(e){this._logger.debug("navigate: Using timeout of:",this._timeoutInSeconds);let t=setTimeout(()=>this._abort.raise(new C("IFrame timed out without a response")),1e3*this._timeoutInSeconds);return this._disposeHandlers.add(()=>clearTimeout(t)),await super.navigate(e)}close(){var e;this._frame&&(this._frame.parentNode&&(this._frame.addEventListener("load",e=>{var t;let r=e.target;null==(t=r.parentNode)||t.removeChild(r),this._abort.raise(Error("IFrame removed from DOM"))},!0),null==(e=this._frame.contentWindow)||e.location.replace("about:blank")),this._frame=null),this._window=null}static notifyParent(e,t){return super._notifyParent(window.parent,e,!1,t)}},es=class{constructor(e){this._settings=e,this._logger=new E("IFrameNavigator")}async prepare({silentRequestTimeoutInSeconds:e=this._settings.silentRequestTimeoutInSeconds}){return new ea({silentRequestTimeoutInSeconds:e})}async callback(e){this._logger.create("callback"),ea.notifyParent(e,this._settings.iframeNotifyParentOrigin)}},eo=class extends et{constructor({popupWindowTarget:e=en,popupWindowFeatures:t={}}){super(),this._logger=new E("PopupWindow");let r=T.center({...er,...t});this._window=window.open(void 0,e,T.serialize(r)),t.closePopupWindowAfterInSeconds&&t.closePopupWindowAfterInSeconds>0&&setTimeout(()=>{if(!this._window||"boolean"!=typeof this._window.closed||this._window.closed){this._abort.raise(Error("Popup blocked by user"));return}this.close()},1e3*t.closePopupWindowAfterInSeconds)}async navigate(e){var t;null==(t=this._window)||t.focus();let r=setInterval(()=>{(!this._window||this._window.closed)&&this._abort.raise(Error("Popup closed by user"))},500);return this._disposeHandlers.add(()=>clearInterval(r)),await super.navigate(e)}close(){this._window&&!this._window.closed&&(this._window.close(),this._abort.raise(Error("Popup closed"))),this._window=null}static notifyOpener(e,t){if(!window.opener)throw Error("No window.opener. Can't complete notification.");return super._notifyParent(window.opener,e,t)}},ec=class{constructor(e){this._settings=e,this._logger=new E("PopupNavigator")}async prepare({popupWindowFeatures:e=this._settings.popupWindowFeatures,popupWindowTarget:t=this._settings.popupWindowTarget}){return new eo({popupWindowFeatures:e,popupWindowTarget:t})}async callback(e,{keepOpen:t=!1}){this._logger.create("callback"),eo.notifyOpener(e,t)}},ef=class{constructor(e){this._settings=e,this._logger=new E("RedirectNavigator")}async prepare({redirectMethod:e=this._settings.redirectMethod,redirectTarget:t=this._settings.redirectTarget}){var r;let n;this._logger.create("prepare");let i=window.self;"top"===t&&(i=null!=(r=window.top)?r:window.self);let a=i.location[e].bind(i.location);return{navigate:async e=>{this._logger.create("navigate");let t=new Promise((e,t)=>{n=t});return a(e.url),await t},close:()=>{this._logger.create("close"),null==n||n(Error("Redirect aborted")),i.stop()}}}async callback(){}},eu=class extends P{constructor(e){super({expiringNotificationTimeInSeconds:e.accessTokenExpiringNotificationTimeInSeconds}),this._logger=new E("UserManagerEvents"),this._userLoaded=new M("User loaded"),this._userUnloaded=new M("User unloaded"),this._silentRenewError=new M("Silent renew error"),this._userSignedIn=new M("User signed in"),this._userSignedOut=new M("User signed out"),this._userSessionChanged=new M("User session changed")}load(e,t=!0){super.load(e),t&&this._userLoaded.raise(e)}unload(){super.unload(),this._userUnloaded.raise()}addUserLoaded(e){return this._userLoaded.addHandler(e)}removeUserLoaded(e){return this._userLoaded.removeHandler(e)}addUserUnloaded(e){return this._userUnloaded.addHandler(e)}removeUserUnloaded(e){return this._userUnloaded.removeHandler(e)}addSilentRenewError(e){return this._silentRenewError.addHandler(e)}removeSilentRenewError(e){return this._silentRenewError.removeHandler(e)}_raiseSilentRenewError(e){this._silentRenewError.raise(e)}addUserSignedIn(e){return this._userSignedIn.addHandler(e)}removeUserSignedIn(e){this._userSignedIn.removeHandler(e)}_raiseUserSignedIn(){this._userSignedIn.raise()}addUserSignedOut(e){return this._userSignedOut.addHandler(e)}removeUserSignedOut(e){this._userSignedOut.removeHandler(e)}_raiseUserSignedOut(){this._userSignedOut.raise()}addUserSessionChanged(e){return this._userSessionChanged.addHandler(e)}removeUserSessionChanged(e){this._userSessionChanged.removeHandler(e)}_raiseUserSessionChanged(){this._userSessionChanged.raise()}},ed=class{constructor(e){this._userManager=e,this._logger=new E("SilentRenewService"),this._isStarted=!1,this._retryTimer=new k("Retry Silent Renew"),this._tokenExpiring=async()=>{let e=this._logger.create("_tokenExpiring");try{await this._userManager.signinSilent(),e.debug("silent token renewal successful")}catch(t){if(t instanceof C){e.warn("ErrorTimeout from signinSilent:",t,"retry in 5s"),this._retryTimer.init(5);return}e.error("Error from signinSilent:",t),this._userManager.events._raiseSilentRenewError(t)}}}async start(){let e=this._logger.create("start");if(!this._isStarted){this._isStarted=!0,this._userManager.events.addAccessTokenExpiring(this._tokenExpiring),this._retryTimer.addHandler(this._tokenExpiring);try{await this._userManager.getUser()}catch(t){e.error("getUser error",t)}}}stop(){this._isStarted&&(this._retryTimer.cancel(),this._retryTimer.removeHandler(this._tokenExpiring),this._userManager.events.removeAccessTokenExpiring(this._tokenExpiring),this._isStarted=!1)}},el=class{constructor(e,t){this.refresh_token=e.refresh_token,this.id_token=e.id_token,this.session_state=e.session_state,this.scope=e.scope,this.profile=e.profile,this.resource=t,this.data=e.state}},eh=class{constructor(e,t,r,n){this._logger=new E("UserManager"),this.settings=new ei(e),this._client=new X(e),this._redirectNavigator=null!=t?t:new ef(this.settings),this._popupNavigator=null!=r?r:new ec(this.settings),this._iframeNavigator=null!=n?n:new es(this.settings),this._events=new eu(this.settings),this._silentRenewService=new ed(this),this.settings.automaticSilentRenew&&this.startSilentRenew(),this._sessionMonitor=null,this.settings.monitorSession&&(this._sessionMonitor=new Y(this))}get events(){return this._events}get metadataService(){return this._client.metadataService}async getUser(){let e=this._logger.create("getUser"),t=await this._loadUser();return t?(e.info("user loaded"),this._events.load(t,!1),t):(e.info("user not found in storage"),null)}async removeUser(){let e=this._logger.create("removeUser");await this.storeUser(null),e.info("user removed from storage"),this._events.unload()}async signinRedirect(e={}){this._logger.create("signinRedirect");let{redirectMethod:t,...r}=e,n=await this._redirectNavigator.prepare({redirectMethod:t});await this._signinStart({request_type:"si:r",...r},n)}async signinRedirectCallback(e=window.location.href){let t=this._logger.create("signinRedirectCallback"),r=await this._signinEnd(e);return r.profile&&r.profile.sub?t.info("success, signed in subject",r.profile.sub):t.info("no subject"),r}async signinResourceOwnerCredentials({username:e,password:t,skipUserInfo:r=!1}){let n=this._logger.create("signinResourceOwnerCredential"),i=await this._client.processResourceOwnerPasswordCredentials({username:e,password:t,skipUserInfo:r,extraTokenParams:this.settings.extraTokenParams});n.debug("got signin response");let a=await this._buildUser(i);return a.profile&&a.profile.sub?n.info("success, signed in subject",a.profile.sub):n.info("no subject"),a}async signinPopup(e={}){let t=this._logger.create("signinPopup"),{popupWindowFeatures:r,popupWindowTarget:n,...i}=e,a=this.settings.popup_redirect_uri;a||t.throw(Error("No popup_redirect_uri configured"));let s=await this._popupNavigator.prepare({popupWindowFeatures:r,popupWindowTarget:n}),o=await this._signin({request_type:"si:p",redirect_uri:a,display:"popup",...i},s);return o&&(o.profile&&o.profile.sub?t.info("success, signed in subject",o.profile.sub):t.info("no subject")),o}async signinPopupCallback(e=window.location.href,t=!1){let r=this._logger.create("signinPopupCallback");await this._popupNavigator.callback(e,{keepOpen:t}),r.info("success")}async signinSilent(e={}){var t;let r;let n=this._logger.create("signinSilent"),{silentRequestTimeoutInSeconds:i,resource:a,...s}=e,o=await this._loadUser();if(null==o?void 0:o.refresh_token){n.debug("using refresh token");let e=new el(o,a);return await this._useRefreshToken(e)}let c=this.settings.silent_redirect_uri;c||n.throw(Error("No silent_redirect_uri configured")),o&&this.settings.validateSubOnSilentRenew&&(n.debug("subject prior to silent renew:",o.profile.sub),r=o.profile.sub);let f=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:i});return(o=await this._signin({request_type:"si:s",redirect_uri:c,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?null==o?void 0:o.id_token:void 0,...s},f,r))&&((null==(t=o.profile)?void 0:t.sub)?n.info("success, signed in subject",o.profile.sub):n.info("no subject")),o}async _useRefreshToken(e){let t=await this._client.useRefreshToken({state:e,timeoutInSeconds:this.settings.silentRequestTimeoutInSeconds}),r=new Q({...e,...t});return await this.storeUser(r),this._events.load(r),r}async signinSilentCallback(e=window.location.href){let t=this._logger.create("signinSilentCallback");await this._iframeNavigator.callback(e),t.info("success")}async signinCallback(e=window.location.href){let{state:t}=await this._client.readSigninResponseState(e);switch(t.request_type){case"si:r":return await this.signinRedirectCallback(e);case"si:p":return await this.signinPopupCallback(e);case"si:s":return await this.signinSilentCallback(e);default:throw Error("invalid response_type in state")}}async signoutCallback(e=window.location.href,t=!1){let{state:r}=await this._client.readSignoutResponseState(e);if(r)switch(r.request_type){case"so:r":await this.signoutRedirectCallback(e);break;case"so:p":await this.signoutPopupCallback(e,t);break;case"so:s":await this.signoutSilentCallback(e);break;default:throw Error("invalid response_type in state")}}async querySessionStatus(e={}){let t=this._logger.create("querySessionStatus"),{silentRequestTimeoutInSeconds:r,...n}=e,i=this.settings.silent_redirect_uri;i||t.throw(Error("No silent_redirect_uri configured"));let a=await this._loadUser(),s=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:r}),o=await this._signinStart({request_type:"si:s",redirect_uri:i,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?null==a?void 0:a.id_token:void 0,response_type:this.settings.query_status_response_type,scope:"openid",skipUserInfo:!0,...n},s);try{let e=await this._client.processSigninResponse(o.url);if(t.debug("got signin response"),e.session_state&&e.profile.sub)return t.info("success for subject",e.profile.sub),{session_state:e.session_state,sub:e.profile.sub,sid:e.profile.sid};return t.info("success, user not authenticated"),null}catch(e){if(this.settings.monitorAnonymousSession&&e instanceof I)switch(e.error){case"login_required":case"consent_required":case"interaction_required":case"account_selection_required":return t.info("success for anonymous user"),{session_state:e.session_state}}throw e}}async _signin(e,t,r){let n=await this._signinStart(e,t);return await this._signinEnd(n.url,r)}async _signinStart(e,t){let r=this._logger.create("_signinStart");try{let n=await this._client.createSigninRequest(e);return r.debug("got signin request"),await t.navigate({url:n.url,state:n.state.id,response_mode:n.state.response_mode,scriptOrigin:this.settings.iframeScriptOrigin})}catch(e){throw r.debug("error after preparing navigator, closing navigator window"),t.close(),e}}async _signinEnd(e,t){let r=this._logger.create("_signinEnd"),n=await this._client.processSigninResponse(e);r.debug("got signin response");let i=await this._buildUser(n,t);return i}async _buildUser(e,t){let r=this._logger.create("_buildUser"),n=new Q(e);if(t){if(t!==n.profile.sub)throw r.debug("current user does not match user returned from signin. sub from signin:",n.profile.sub),new I({...e,error:"login_required"});r.debug("current user matches user returned from signin")}return await this.storeUser(n),r.debug("user stored"),this._events.load(n),n}async signoutRedirect(e={}){let t=this._logger.create("signoutRedirect"),{redirectMethod:r,...n}=e,i=await this._redirectNavigator.prepare({redirectMethod:r});await this._signoutStart({request_type:"so:r",post_logout_redirect_uri:this.settings.post_logout_redirect_uri,...n},i),t.info("success")}async signoutRedirectCallback(e=window.location.href){let t=this._logger.create("signoutRedirectCallback"),r=await this._signoutEnd(e);return t.info("success"),r}async signoutPopup(e={}){let t=this._logger.create("signoutPopup"),{popupWindowFeatures:r,popupWindowTarget:n,...i}=e,a=this.settings.popup_post_logout_redirect_uri,s=await this._popupNavigator.prepare({popupWindowFeatures:r,popupWindowTarget:n});await this._signout({request_type:"so:p",post_logout_redirect_uri:a,state:null==a?void 0:{},...i},s),t.info("success")}async signoutPopupCallback(e=window.location.href,t=!1){let r=this._logger.create("signoutPopupCallback");await this._popupNavigator.callback(e,{keepOpen:t}),r.info("success")}async _signout(e,t){let r=await this._signoutStart(e,t);return await this._signoutEnd(r.url)}async _signoutStart(e={},t){var r;let n=this._logger.create("_signoutStart");try{let i=await this._loadUser();n.debug("loaded current user from storage"),this.settings.revokeTokensOnSignout&&await this._revokeInternal(i);let a=e.id_token_hint||i&&i.id_token;a&&(n.debug("setting id_token_hint in signout request"),e.id_token_hint=a),await this.removeUser(),n.debug("user removed, creating signout request");let s=await this._client.createSignoutRequest(e);return n.debug("got signout request"),await t.navigate({url:s.url,state:null==(r=s.state)?void 0:r.id,scriptOrigin:this.settings.iframeScriptOrigin})}catch(e){throw n.debug("error after preparing navigator, closing navigator window"),t.close(),e}}async _signoutEnd(e){let t=this._logger.create("_signoutEnd"),r=await this._client.processSignoutResponse(e);return t.debug("got signout response"),r}async signoutSilent(e={}){var t;let r=this._logger.create("signoutSilent"),{silentRequestTimeoutInSeconds:n,...i}=e,a=this.settings.includeIdTokenInSilentSignout?null==(t=await this._loadUser())?void 0:t.id_token:void 0,s=this.settings.popup_post_logout_redirect_uri,o=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:n});await this._signout({request_type:"so:s",post_logout_redirect_uri:s,id_token_hint:a,...i},o),r.info("success")}async signoutSilentCallback(e=window.location.href){let t=this._logger.create("signoutSilentCallback");await this._iframeNavigator.callback(e),t.info("success")}async revokeTokens(e){let t=await this._loadUser();await this._revokeInternal(t,e)}async _revokeInternal(e,t=this.settings.revokeTokenTypes){let r=this._logger.create("_revokeInternal");if(!e)return;let n=t.filter(t=>"string"==typeof e[t]);if(!n.length){r.debug("no need to revoke due to no token(s)");return}for(let t of n)await this._client.revokeToken(e[t],t),r.info(`${t} revoked successfully`),"access_token"!==t&&(e[t]=null);await this.storeUser(e),r.debug("user stored"),this._events.load(e)}startSilentRenew(){this._logger.create("startSilentRenew"),this._silentRenewService.start()}stopSilentRenew(){this._silentRenewService.stop()}get _userStoreKey(){return`user:${this.settings.authority}:${this.settings.client_id}`}async _loadUser(){let e=this._logger.create("_loadUser"),t=await this.settings.userStore.get(this._userStoreKey);return t?(e.debug("user storageString loaded"),Q.fromStorageString(t)):(e.debug("no user storageString"),null)}async storeUser(e){let t=this._logger.create("storeUser");if(e){t.debug("storing user");let r=e.toStorageString();await this.settings.userStore.set(this._userStoreKey,r)}else this._logger.debug("removing user"),await this.settings.userStore.remove(this._userStoreKey)}async clearStaleState(){await this._client.clearStaleState()}},ep="2.4.0"},{cd65f2846f9a9917:"8ZzbV",b081c80cbcca67d0:"9sBUz","69a1441ed613820e":"56xS8","46685f198d718556":"7nECe","3455b80cc963b26":"dIfrw"}],"8ZzbV":[function(e,t,r){var n,i=arguments[3];t.exports=n||function(t,r){if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==i&&i.crypto&&(n=i.crypto),!n)try{n=e("b7760e5f0b7216d4")}catch(e){}var n,a=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(e){}}throw Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),o={},c=o.lib={},f=c.Base={extend:function(e){var t=s(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},u=c.WordArray=f.extend({init:function(e,t){e=this.words=e||[],void 0!=t?this.sigBytes=t:this.sigBytes=4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var a=0;a>>2]>>>24-a%4*8&255;t[n+a>>>2]|=s<<24-(n+a)%4*8}else for(var o=0;o>>2]=r[o>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8,e.length=t.ceil(r/4)},clone:function(){var e=f.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r>>2]>>>24-i%4*8&255;n.push((a>>>4).toString(16)),n.push((15&a).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new u.init(r,t/2)}},h=d.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new u.init(r,t)}},p=d.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},m=c.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var r,n=this._data,i=n.words,a=n.sigBytes,s=this.blockSize,o=a/(4*s),c=(o=e?t.ceil(o):t.max((0|o)-this._minBufferSize,0))*s,f=t.min(4*c,a);if(c){for(var d=0;d>>7)^(p<<14|p>>>18)^p>>>3,b=d[h-2],g=(b<<15|b>>>17)^(b<<13|b>>>19)^b>>>10;d[h]=m+d[h-7]+g+d[h-16]}var y=o&c^~o&f,v=n&i^n&a^i&a,w=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),_=l+((o<<26|o>>>6)^(o<<21|o>>>11)^(o<<7|o>>>25))+y+u[h]+d[h],E=w+v;l=f,f=c,c=o,o=s+_|0,s=a,a=i,i=n,n=_+E|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+a|0,r[3]=r[3]+s|0,r[4]=r[4]+o|0,r[5]=r[5]+c|0,r[6]=r[6]+f|0,r[7]=r[7]+l|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[(n+64>>>9<<4)+14]=i.floor(r/4294967296),t[(n+64>>>9<<4)+15]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}}),n.SHA256=o._createHelper(l),n.HmacSHA256=o._createHmacHelper(l),n.SHA256)},{cd9e8447cb14a145:"8ZzbV"}],"56xS8":[function(e,t,r){var n,i;t.exports=(i=(n=e("6c67d43f833ec62e")).lib.WordArray,n.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],a=0;a>>2]>>>24-a%4*8&255)<<16|(t[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|t[a+2>>>2]>>>24-(a+2)%4*8&255,o=0;o<4&&a+.75*o>>6*(3-o)&63));var c=n.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e){var t=e.length,r=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var a=0;a>>6-s%4*2;n[a>>>2]|=o<<24-a%4*8,a++}return i.create(n,a)}(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)},{"6c67d43f833ec62e":"8ZzbV"}],"7nECe":[function(e,t,r){t.exports=e("7286559b12995fed").enc.Utf8},{"7286559b12995fed":"8ZzbV"}],dIfrw:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function i(e){this.message=e}n.defineInteropFlag(r),n.export(r,"InvalidTokenError",()=>s),i.prototype=Error(),i.prototype.name="InvalidCharacterError";var a="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new i("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,n,a=0,s=0,o="";n=t.charAt(s++);~n&&(r=a%4?64*r+n:n,a++%4)&&(o+=String.fromCharCode(255&r>>(-2*a&6))))n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(n);return o};function s(e){this.message=e}s.prototype=Error(),s.prototype.name="InvalidTokenError",r.default=function(e,t){if("string"!=typeof e)throw new s("Invalid token specified");var r=!0===(t=t||{}).header?0:1;try{return JSON.parse(function(e){var t,r=e.replace(/-/g,"+").replace(/_/g,"/");switch(r.length%4){case 0:break;case 2:r+="==";break;case 3:r+="=";break;default:throw"Illegal base64url string!"}try{return t=r,decodeURIComponent(a(t).replace(/(.)/g,function(e,t){var r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}catch(e){return a(r)}}(e.split(".")[r]))}catch(e){throw new s("Invalid token specified: "+e.message)}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"6uh7U":[function(e,t,r){var n=arguments[3];t.exports=(function e(t,r,n){function i(s,o){if(!r[s]){if(!t[s]){var c=void 0;if(!o&&c)return c(s,!0);if(a)return a(s,!0);var f=Error("Cannot find module '"+s+"'");throw f.code="MODULE_NOT_FOUND",f}var u=r[s]={exports:{}};t[s][0].call(u.exports,function(e){return i(t[s][1][e]||e)},u,u.exports,e,t,r,n)}return r[s].exports}for(var a=void 0,s=0;se.db.version;if(n&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),i||r){if(r){var a=e.db.version+1;a>e.version&&(e.version=a)}return!0}return!1}function E(e){return a([function(e){for(var t=e.length,r=new ArrayBuffer(t),n=new Uint8Array(r),i=0;i0&&(!e.db||"InvalidStateError"===i.name||"NotFoundError"===i.name))return s.resolve().then(function(){if(!e.db||"NotFoundError"===i.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),w(e,!0)}).then(function(){return(function(e){g(e);for(var t=h[e.name],r=t.forages,n=0;n=43)}}).catch(function(){return!1}).then(function(e){return l=e})).then(function(e){return e?t:new s(function(e,r){var n=new FileReader;n.onerror=r,n.onloadend=function(r){e({__local_forage_encoded_blob:!0,data:btoa(r.target.result||""),type:t.type})},n.readAsBinaryString(t)})}):t}).then(function(t){S(n._dbInfo,b,function(a,s){if(a)return i(a);try{var o=s.objectStore(n._dbInfo.storeName);null===t&&(t=void 0);var c=o.put(t,e);s.oncomplete=function(){void 0===t&&(t=null),r(t)},s.onabort=s.onerror=function(){var e=c.error?c.error:c.transaction.error;i(e)}}catch(e){i(e)}})}).catch(i)});return o(i,r),i},removeItem:function(e,t){var r=this;e=f(e);var n=new s(function(t,n){r.ready().then(function(){S(r._dbInfo,b,function(i,a){if(i)return n(i);try{var s=a.objectStore(r._dbInfo.storeName).delete(e);a.oncomplete=function(){t()},a.onerror=function(){n(s.error)},a.onabort=function(){var e=s.error?s.error:s.transaction.error;n(e)}}catch(e){n(e)}})}).catch(n)});return o(n,t),n},clear:function(e){var t=this,r=new s(function(e,r){t.ready().then(function(){S(t._dbInfo,b,function(n,i){if(n)return r(n);try{var a=i.objectStore(t._dbInfo.storeName).clear();i.oncomplete=function(){e()},i.onabort=i.onerror=function(){var e=a.error?a.error:a.transaction.error;r(e)}}catch(e){r(e)}})}).catch(r)});return o(r,e),r},length:function(e){var t=this,r=new s(function(e,r){t.ready().then(function(){S(t._dbInfo,m,function(n,i){if(n)return r(n);try{var a=i.objectStore(t._dbInfo.storeName).count();a.onsuccess=function(){e(a.result)},a.onerror=function(){r(a.error)}}catch(e){r(e)}})}).catch(r)});return o(r,e),r},key:function(e,t){var r=this,n=new s(function(t,n){if(e<0){t(null);return}r.ready().then(function(){S(r._dbInfo,m,function(i,a){if(i)return n(i);try{var s=a.objectStore(r._dbInfo.storeName),o=!1,c=s.openKeyCursor();c.onsuccess=function(){var r=c.result;if(!r){t(null);return}0===e?t(r.key):o?t(r.key):(o=!0,r.advance(e))},c.onerror=function(){n(c.error)}}catch(e){n(e)}})}).catch(n)});return o(n,t),n},keys:function(e){var t=this,r=new s(function(e,r){t.ready().then(function(){S(t._dbInfo,m,function(n,i){if(n)return r(n);try{var a=i.objectStore(t._dbInfo.storeName).openKeyCursor(),s=[];a.onsuccess=function(){var t=a.result;if(!t){e(s);return}s.push(t.key),t.continue()},a.onerror=function(){r(a.error)}}catch(e){r(e)}})}).catch(r)});return o(r,e),r},dropInstance:function(e,t){t=u.apply(this,arguments);var r,n=this.config();if((e="function"!=typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName),e.name){var a=e.name===n.name&&this._dbInfo.db?s.resolve(this._dbInfo.db):w(e,!1).then(function(t){var r=h[e.name],n=r.forages;r.db=t;for(var i=0;i>4,u[c++]=(15&n)<<4|i>>2,u[c++]=(3&i)<<6|63&a;return f}function W(e){var t,r=new Uint8Array(e),n="";for(t=0;t>2]+k[(3&r[t])<<4|r[t+1]>>4]+k[(15&r[t+1])<<2|r[t+2]>>6]+k[63&r[t+2]];return r.length%3==2?n=n.substring(0,n.length-1)+"=":r.length%3==1&&(n=n.substring(0,n.length-2)+"=="),n}var G={serialize:function(e,t){var r="";if(e&&(r=H.call(e)),e&&("[object ArrayBuffer]"===r||e.buffer&&"[object ArrayBuffer]"===H.call(e.buffer))){var n,i=I;e instanceof ArrayBuffer?(n=e,i+=P):(n=e.buffer,"[object Int8Array]"===r?i+=N:"[object Uint8Array]"===r?i+=j:"[object Uint8ClampedArray]"===r?i+=B:"[object Int16Array]"===r?i+=L:"[object Uint16Array]"===r?i+=U:"[object Int32Array]"===r?i+=D:"[object Uint32Array]"===r?i+=F:"[object Float32Array]"===r?i+=q:"[object Float64Array]"===r?i+=z:t(Error("Failed to get type for BinaryArray"))),t(i+W(n))}else if("[object Blob]"===r){var a=new FileReader;a.onload=function(){t(I+O+("~~local_forage_type~"+e.type)+"~"+W(this.result))},a.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(r){console.error("Couldn't convert value into a JSON string: ",e),t(null,r)}},deserialize:function(e){if(e.substring(0,C)!==I)return JSON.parse(e);var t,r=e.substring(K),n=e.substring(C,K);if(n===O&&R.test(r)){var i=r.match(R);t=i[1],r=r.substring(i[0].length)}var s=V(r);switch(n){case P:return s;case O:return a([s],{type:t});case N:return new Int8Array(s);case j:return new Uint8Array(s);case B:return new Uint8ClampedArray(s);case L:return new Int16Array(s);case U:return new Uint16Array(s);case D:return new Int32Array(s);case F:return new Uint32Array(s);case q:return new Float32Array(s);case z:return new Float64Array(s);default:throw Error("Unkown type: "+n)}},stringToBuffer:V,bufferToString:W};function J(e,t,r,n){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],r,n)}function Z(e,t,r,n,i,a){e.executeSql(r,n,i,function(e,s){s.code===s.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],function(e,o){o.rows.length?a(e,s):J(e,t,function(){e.executeSql(r,n,i,a)},a)},a):a(e,s)},a)}function $(e,t,r,n){var i=this;e=f(e);var a=new s(function(a,s){i.ready().then(function(){void 0===t&&(t=null);var o=t,c=i._dbInfo;c.serializer.serialize(t,function(t,f){f?s(f):c.db.transaction(function(r){Z(r,c,"INSERT OR REPLACE INTO "+c.storeName+" (key, value) VALUES (?, ?)",[e,t],function(){a(o)},function(e,t){s(t)})},function(t){if(t.code===t.QUOTA_ERR){if(n>0){a($.apply(i,[e,o,r,n-1]));return}s(t)}})})}).catch(s)});return o(a,r),a}var X={_driver:"webSQLStorage",_initStorage:function(e){var t=this,r={db:null};if(e)for(var n in e)r[n]="string"!=typeof e[n]?e[n].toString():e[n];var i=new s(function(e,n){try{r.db=openDatabase(r.name,String(r.version),r.description,r.size)}catch(e){return n(e)}r.db.transaction(function(i){J(i,r,function(){t._dbInfo=r,e()},function(e,t){n(t)})},n)});return r.serializer=G,i},_support:"function"==typeof openDatabase,iterate:function(e,t){var r=this,n=new s(function(t,n){r.ready().then(function(){var i=r._dbInfo;i.db.transaction(function(r){Z(r,i,"SELECT * FROM "+i.storeName,[],function(r,n){for(var a=n.rows,s=a.length,o=0;o '__WebKitDatabaseInfoTable__'",[],function(t,n){for(var i=[],a=0;a0)?(this._dbInfo=t,t.serializer=G,s.resolve()):s.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}(),iterate:function(e,t){var r=this,n=r.ready().then(function(){for(var t=r._dbInfo,n=t.keyPrefix,i=n.length,a=localStorage.length,s=1,o=0;o=0;r--){var n=localStorage.key(r);0===n.indexOf(e)&&localStorage.removeItem(n)}});return o(r,e),r},length:function(e){var t=this.keys().then(function(e){return e.length});return o(t,e),t},key:function(e,t){var r=this,n=r.ready().then(function(){var t,n=r._dbInfo;try{t=localStorage.key(e)}catch(e){t=null}return t&&(t=t.substring(n.keyPrefix.length)),t});return o(n,t),n},keys:function(e){var t=this,r=t.ready().then(function(){for(var e=t._dbInfo,r=localStorage.length,n=[],i=0;i=0;t--){var r=localStorage.key(t);0===r.indexOf(e)&&localStorage.removeItem(r)}}):s.reject("Invalid arguments"),t),r}},ee=function(e,t){for(var r,n=e.length,i=0;iM);var i=e("@magic-sdk/provider"),a=e("@magic-sdk/commons");n.exportAll(a,r);var s=arguments[3],o=Object.create,c=Object.defineProperty,f=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,d=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,h=void 0,p=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),m=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of u(t))l.call(e,i)||i===r||c(e,i,{get:()=>t[i],enumerable:!(n=f(t,i))||n.enumerable});return e},b=(e,t,r)=>(r=null!=e?o(d(e)):{},m(!t&&e&&e.__esModule?r:c(r,"default",{value:e,enumerable:!0}),e)),g=(e,t,r)=>new Promise((n,i)=>{var a=e=>{try{o(r.next(e))}catch(e){i(e)}},s=e=>{try{o(r.throw(e))}catch(e){i(e)}},o=e=>e.done?n(e.value):Promise.resolve(e.value).then(a,s);o((r=r.apply(e,t)).next())}),y=p((e,t)=>{!function(r){"object"==typeof e&&"u">typeof t?t.exports=r():"function"==typeof define&&define.amd?define([],r):("u">typeof window?window:"u">typeof s?s:"u">typeof self?self:this).localforage=r()}(function(){return(function e(t,r,n){function i(s,o){if(!r[s]){if(!t[s]){var c="function"==typeof h&&h;if(!o&&c)return c(s,!0);if(a)return a(s,!0);var f=Error("Cannot find module '"+s+"'");throw f.code="MODULE_NOT_FOUND",f}var u=r[s]={exports:{}};t[s][0].call(u.exports,function(e){return i(t[s][1][e]||e)},u,u.exports,e,t,r,n)}return r[s].exports}for(var a="function"==typeof h&&h,s=0;stypeof e.MessageChannel){var o=new e.MessageChannel;o.port1.onmessage=u,r=function(){o.port2.postMessage(0)}}else r="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};var c,f=[];function u(){c=!0;for(var e,t,r=f.length;r;){for(t=f,f=[],e=-1;++etypeof s?s:"u">typeof self?self:"u">typeof window?window:{})},{}],2:[function(e,t,r){"use strict";var n=e(1);function i(){}var a={},s=["REJECTED"],o=["FULFILLED"],c=["PENDING"];function f(e){if("function"!=typeof e)throw TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,e!==i&&h(this,e)}function u(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function d(e,t,r){n(function(){var n;try{n=t(r)}catch(t){return a.reject(e,t)}n===e?a.reject(e,TypeError("Cannot resolve promise with itself")):a.resolve(e,n)})}function l(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function h(e,t){var r=!1;function n(t){r||(r=!0,a.reject(e,t))}function i(t){r||(r=!0,a.resolve(e,t))}var s=p(function(){t(i,n)});"error"===s.status&&n(s.value)}function p(e,t){var r={};try{r.value=e(t),r.status="success"}catch(e){r.status="error",r.value=e}return r}t.exports=f,f.prototype.catch=function(e){return this.then(null,e)},f.prototype.then=function(e,t){if("function"!=typeof e&&this.state===o||"function"!=typeof t&&this.state===s)return this;var r=new this.constructor(i);return this.state!==c?d(r,this.state===o?e:t,this.outcome):this.queue.push(new u(r,e,t)),r},u.prototype.callFulfilled=function(e){a.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){a.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},a.resolve=function(e,t){var r=p(l,t);if("error"===r.status)return a.reject(e,r.value);var n=r.value;if(n)h(e,n);else{e.state=o,e.outcome=t;for(var i=-1,s=e.queue.length;++itypeof s?s:"u">typeof self?self:"u">typeof window?window:{})},{2:2}],4:[function(e,t,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){try{if("u">typeof indexedDB)return indexedDB;if("u">typeof webkitIndexedDB)return webkitIndexedDB;if("u">typeof mozIndexedDB)return mozIndexedDB;if("u">typeof OIndexedDB)return OIndexedDB;if("u">typeof msIndexedDB)return msIndexedDB}catch{return}}();function a(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(a){if("TypeError"!==a.name)throw a;for(var r="u">typeof BlobBuilder?BlobBuilder:"u">typeof MSBlobBuilder?MSBlobBuilder:"u">typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder,n=new r,i=0;i"u"&&e(3);var s=Promise;function o(e,t){t&&e.then(function(e){t(null,e)},function(e){t(e)})}function c(e,t,r){"function"==typeof t&&e.then(t),"function"==typeof r&&e.catch(r)}function f(e){return"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function u(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var d="local-forage-detect-blob-support",l=void 0,h={},p=Object.prototype.toString,m="readonly",b="readwrite";function g(e){var t=h[e.name],r={};r.promise=new s(function(e,t){r.resolve=e,r.reject=t}),t.deferredOperations.push(r),t.dbReady?t.dbReady=t.dbReady.then(function(){return r.promise}):t.dbReady=r.promise}function y(e){var t=h[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function v(e,t){var r=h[e.name].deferredOperations.pop();if(r)return r.reject(t),r.promise}function w(e,t){return new s(function(r,n){if(h[e.name]=h[e.name]||x(),e.db){if(!t)return r(e.db);g(e),e.db.close()}var a=[e.name];t&&a.push(e.version);var s=i.open.apply(i,a);t&&(s.onupgradeneeded=function(t){var r=s.result;try{r.createObjectStore(e.storeName),t.oldVersion<=1&&r.createObjectStore(d)}catch(r){if("ConstraintError"===r.name)console.warn('The database "'+e.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.');else throw r}}),s.onerror=function(e){e.preventDefault(),n(s.error)},s.onsuccess=function(){var t=s.result;t.onversionchange=function(e){e.target.close()},r(t),y(e)}})}function _(e,t){if(!e.db)return!0;var r=!e.db.objectStoreNames.contains(e.storeName),n=e.versione.db.version;if(n&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),i||r){if(r){var a=e.db.version+1;a>e.version&&(e.version=a)}return!0}return!1}function E(e){return a([function(e){for(var t=e.length,r=new ArrayBuffer(t),n=new Uint8Array(r),i=0;i0&&(!e.db||"InvalidStateError"===i.name||"NotFoundError"===i.name))return s.resolve().then(function(){if(!e.db||"NotFoundError"===i.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),w(e,!0)}).then(function(){return(function(e){g(e);for(var t=h[e.name],r=t.forages,n=0;ntypeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!e||t)&&"u">typeof indexedDB&&"u">typeof IDBKeyRange}catch{return!1}}(),iterate:function(e,t){var r=this,n=new s(function(t,n){r.ready().then(function(){S(r._dbInfo,m,function(i,a){if(i)return n(i);try{var s=a.objectStore(r._dbInfo.storeName).openCursor(),o=1;s.onsuccess=function(){var r=s.result;if(r){var n=r.value;A(n)&&(n=E(n));var i=e(n,r.key,o++);void 0!==i?t(i):r.continue()}else t()},s.onerror=function(){n(s.error)}}catch(e){n(e)}})}).catch(n)});return o(n,t),n},getItem:function(e,t){var r=this;e=f(e);var n=new s(function(t,n){r.ready().then(function(){S(r._dbInfo,m,function(i,a){if(i)return n(i);try{var s=a.objectStore(r._dbInfo.storeName).get(e);s.onsuccess=function(){var e=s.result;void 0===e&&(e=null),A(e)&&(e=E(e)),t(e)},s.onerror=function(){n(s.error)}}catch(e){n(e)}})}).catch(n)});return o(n,t),n},setItem:function(e,t,r){var n=this;e=f(e);var i=new s(function(r,i){var o;n.ready().then(function(){var e;return o=n._dbInfo,"[object Blob]"===p.call(t)?(e=o.db,"boolean"==typeof l?s.resolve(l):new s(function(t){var r=e.transaction(d,b),n=a([""]);r.objectStore(d).put(n,"key"),r.onabort=function(e){e.preventDefault(),e.stopPropagation(),t(!1)},r.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/);t(navigator.userAgent.match(/Edge\//)||!e||parseInt(e[1],10)>=43)}}).catch(function(){return!1}).then(function(e){return l=e})).then(function(e){return e?t:new s(function(e,r){var n=new FileReader;n.onerror=r,n.onloadend=function(r){e({__local_forage_encoded_blob:!0,data:btoa(r.target.result||""),type:t.type})},n.readAsBinaryString(t)})}):t}).then(function(t){S(n._dbInfo,b,function(a,s){if(a)return i(a);try{var o=s.objectStore(n._dbInfo.storeName);null===t&&(t=void 0);var c=o.put(t,e);s.oncomplete=function(){void 0===t&&(t=null),r(t)},s.onabort=s.onerror=function(){var e=c.error?c.error:c.transaction.error;i(e)}}catch(e){i(e)}})}).catch(i)});return o(i,r),i},removeItem:function(e,t){var r=this;e=f(e);var n=new s(function(t,n){r.ready().then(function(){S(r._dbInfo,b,function(i,a){if(i)return n(i);try{var s=a.objectStore(r._dbInfo.storeName).delete(e);a.oncomplete=function(){t()},a.onerror=function(){n(s.error)},a.onabort=function(){var e=s.error?s.error:s.transaction.error;n(e)}}catch(e){n(e)}})}).catch(n)});return o(n,t),n},clear:function(e){var t=this,r=new s(function(e,r){t.ready().then(function(){S(t._dbInfo,b,function(n,i){if(n)return r(n);try{var a=i.objectStore(t._dbInfo.storeName).clear();i.oncomplete=function(){e()},i.onabort=i.onerror=function(){var e=a.error?a.error:a.transaction.error;r(e)}}catch(e){r(e)}})}).catch(r)});return o(r,e),r},length:function(e){var t=this,r=new s(function(e,r){t.ready().then(function(){S(t._dbInfo,m,function(n,i){if(n)return r(n);try{var a=i.objectStore(t._dbInfo.storeName).count();a.onsuccess=function(){e(a.result)},a.onerror=function(){r(a.error)}}catch(e){r(e)}})}).catch(r)});return o(r,e),r},key:function(e,t){var r=this,n=new s(function(t,n){if(e<0){t(null);return}r.ready().then(function(){S(r._dbInfo,m,function(i,a){if(i)return n(i);try{var s=a.objectStore(r._dbInfo.storeName),o=!1,c=s.openKeyCursor();c.onsuccess=function(){var r=c.result;if(!r){t(null);return}0===e||o?t(r.key):(o=!0,r.advance(e))},c.onerror=function(){n(c.error)}}catch(e){n(e)}})}).catch(n)});return o(n,t),n},keys:function(e){var t=this,r=new s(function(e,r){t.ready().then(function(){S(t._dbInfo,m,function(n,i){if(n)return r(n);try{var a=i.objectStore(t._dbInfo.storeName).openKeyCursor(),s=[];a.onsuccess=function(){var t=a.result;if(!t){e(s);return}s.push(t.key),t.continue()},a.onerror=function(){r(a.error)}}catch(e){r(e)}})}).catch(r)});return o(r,e),r},dropInstance:function(e,t){t=u.apply(this,arguments);var r,n=this.config();if((e="function"!=typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName),e.name){var a=e.name===n.name&&this._dbInfo.db?s.resolve(this._dbInfo.db):w(e,!1).then(function(t){var r=h[e.name],n=r.forages;r.db=t;for(var i=0;i>4,u[c++]=(15&n)<<4|i>>2,u[c++]=(3&i)<<6|63&a;return f}function W(e){var t,r=new Uint8Array(e),n="";for(t=0;t>2]+k[(3&r[t])<<4|r[t+1]>>4]+k[(15&r[t+1])<<2|r[t+2]>>6]+k[63&r[t+2]];return r.length%3==2?n=n.substring(0,n.length-1)+"=":r.length%3==1&&(n=n.substring(0,n.length-2)+"=="),n}var G={serialize:function(e,t){var r="";if(e&&(r=H.call(e)),e&&("[object ArrayBuffer]"===r||e.buffer&&"[object ArrayBuffer]"===H.call(e.buffer))){var n,i=I;e instanceof ArrayBuffer?(n=e,i+=P):(n=e.buffer,"[object Int8Array]"===r?i+=N:"[object Uint8Array]"===r?i+=j:"[object Uint8ClampedArray]"===r?i+=B:"[object Int16Array]"===r?i+=L:"[object Uint16Array]"===r?i+=U:"[object Int32Array]"===r?i+=D:"[object Uint32Array]"===r?i+=F:"[object Float32Array]"===r?i+=q:"[object Float64Array]"===r?i+=z:t(Error("Failed to get type for BinaryArray"))),t(i+W(n))}else if("[object Blob]"===r){var a=new FileReader;a.onload=function(){t(I+O+("~~local_forage_type~"+e.type)+"~"+W(this.result))},a.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(r){console.error("Couldn't convert value into a JSON string: ",e),t(null,r)}},deserialize:function(e){if(e.substring(0,C)!==I)return JSON.parse(e);var t,r=e.substring(K),n=e.substring(C,K);if(n===O&&R.test(r)){var i=r.match(R);t=i[1],r=r.substring(i[0].length)}var s=V(r);switch(n){case P:return s;case O:return a([s],{type:t});case N:return new Int8Array(s);case j:return new Uint8Array(s);case B:return new Uint8ClampedArray(s);case L:return new Int16Array(s);case U:return new Uint16Array(s);case D:return new Int32Array(s);case F:return new Uint32Array(s);case q:return new Float32Array(s);case z:return new Float64Array(s);default:throw Error("Unkown type: "+n)}},stringToBuffer:V,bufferToString:W};function J(e,t,r,n){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],r,n)}function Z(e,t,r,n,i,a){e.executeSql(r,n,i,function(e,s){s.code===s.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],function(e,o){o.rows.length?a(e,s):J(e,t,function(){e.executeSql(r,n,i,a)},a)},a):a(e,s)},a)}function $(e,t,r,n){var i=this;e=f(e);var a=new s(function(a,s){i.ready().then(function(){void 0===t&&(t=null);var o=t,c=i._dbInfo;c.serializer.serialize(t,function(t,f){f?s(f):c.db.transaction(function(r){Z(r,c,"INSERT OR REPLACE INTO "+c.storeName+" (key, value) VALUES (?, ?)",[e,t],function(){a(o)},function(e,t){s(t)})},function(t){if(t.code===t.QUOTA_ERR){if(n>0){a($.apply(i,[e,o,r,n-1]));return}s(t)}})})}).catch(s)});return o(a,r),a}var X={_driver:"webSQLStorage",_initStorage:function(e){var t=this,r={db:null};if(e)for(var n in e)r[n]="string"!=typeof e[n]?e[n].toString():e[n];var i=new s(function(e,n){try{r.db=openDatabase(r.name,String(r.version),r.description,r.size)}catch(e){return n(e)}r.db.transaction(function(i){J(i,r,function(){t._dbInfo=r,e()},function(e,t){n(t)})},n)});return r.serializer=G,i},_support:"function"==typeof openDatabase,iterate:function(e,t){var r=this,n=new s(function(t,n){r.ready().then(function(){var i=r._dbInfo;i.db.transaction(function(r){Z(r,i,"SELECT * FROM "+i.storeName,[],function(r,n){for(var a=n.rows,s=a.length,o=0;o '__WebKitDatabaseInfoTable__'",[],function(t,r){for(var i=[],a=0;a0?(this._dbInfo=t,t.serializer=G,s.resolve()):s.reject()},_support:function(){try{return"u">typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}(),iterate:function(e,t){var r=this,n=r.ready().then(function(){for(var t=r._dbInfo,n=t.keyPrefix,i=n.length,a=localStorage.length,s=1,o=0;o=0;r--){var n=localStorage.key(r);0===n.indexOf(e)&&localStorage.removeItem(n)}});return o(r,e),r},length:function(e){var t=this.keys().then(function(e){return e.length});return o(t,e),t},key:function(e,t){var r=this,n=r.ready().then(function(){var t,n=r._dbInfo;try{t=localStorage.key(e)}catch{t=null}return t&&(t=t.substring(n.keyPrefix.length)),t});return o(n,t),n},keys:function(e){var t=this,r=t.ready().then(function(){for(var e=t._dbInfo,r=localStorage.length,n=[],i=0;i=0;t--){var r=localStorage.key(t);0===r.indexOf(e)&&localStorage.removeItem(r)}}):s.reject("Invalid arguments"),t),n}}},ei=[en.INDEXEDDB._driver,en.WEBSQL._driver,en.LOCALSTORAGE._driver],ea=["dropInstance"],es=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(ea),eo={description:"",driver:ei.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function ec(){for(var e=1;e"u"?"undefined":n(e))!=="object")return"string"==typeof e?this._config[e]:this._config;if(this._ready)return Error("Can't call config() after localforage has been used.");for(var t in e){if("storeName"===t&&(e[t]=e[t].replace(/\W/g,"_")),"version"===t&&"number"!=typeof e[t])return Error("Database version must be a number.");this._config[t]=e[t]}return!("driver"in e)||!e.driver||this.setDriver(this._config.driver)},e.prototype.defineDriver=function(e,t,r){var n=new s(function(t,r){try{var n=e._driver,i=Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!e._driver){r(i);return}for(var a=es.concat("_initStorage"),c=0,f=a.length;c{var r,n;r="u">typeof self?self:e,n=function(e){"use strict";var t=/^~~local_forage_type~([^~]+)~/,r=Object.prototype.toString;function n(e){var t=.75*e.length,r=e.length;"="===e[e.length-1]&&(t--,"="===e[e.length-2]&&t--);for(var n=new ArrayBuffer(t),i=new Uint8Array(n),a=0,s=0;a>4,i[s++]=(15&c)<<4|f>>2,i[s++]=(3&f)<<6|63&u}return n}function i(e){for(var t=new Uint8Array(e),r="",n=0;n>2]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(3&t[n])<<4|t[n+1]>>4]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(15&t[n+1])<<2|t[n+2]>>6]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[63&t[n+2]];return t.length%3==2?r=r.substring(0,r.length-1)+"=":t.length%3==1&&(r=r.substring(0,r.length-2)+"=="),r}function a(e,t){return(e.name||t.name)+"/"+(e.storeName||t.storeName)+"/"}function s(e,t){t&&e.then(function(e){t(null,e)},function(e){t(e)})}function o(){for(var e=[],t=0;ttypeof BlobBuilder?BlobBuilder:"u">typeof MSBlobBuilder?MSBlobBuilder:"u">typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder,n=new r,i=0;i=a.length&&(a=void 0),{value:a&&a[o++],done:!a}}}),f=c.next();!f.done;f=c.next()){var u=f.value;Object.prototype.hasOwnProperty.call(t,u)&&(t.isActiveClone=null,i[u]=e(t[u]),delete t.isActiveClone)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}return i}(e):{},r=a(t,this._defaultConfig),n=l.resolve(r);return this._dbInfo=t,this._dbInfo.serializer=u,this._dbInfo.keyPrefix=r,this._dbInfo.mStore=n,Promise.resolve()},e.clear=function(e){var t=this,r=this.ready().then(function(){t._dbInfo.mStore.clear()});return s(r,e),r},e.dropInstance=function(e,t){var r=c.apply(this,arguments),n=r.promise,i=r.callback;return s(n.then(function(e){l.resolve(e).drop()}),i),n},e.getItem=function(e,t){var r=this;e=f(e);var n=this.ready().then(function(){var t=r._dbInfo.mStore.get(e);return null==t?null:r._dbInfo.serializer.deserialize(t)});return s(n,t),n},e.iterate=function(e,t){var r=this,n=this.ready().then(function(){for(var t=r._dbInfo.mStore,n=t.keys(),i=0;itypeof t?n(e):"function"==typeof define&&define.amd?define("localforage-driver-memory",["exports"],n):n(r.LocalforageDriverMemory={})}),w=b(y()),_=b(v()),E={display:"none",position:"fixed",top:"0",right:"0",width:"100%",height:"100%",borderRadius:"0",border:"none",zIndex:"2147483647"},A=class extends i.ViewController{constructor(){super(...arguments),this.activeElement=null}init(){this.test="hello",this.iframe=new Promise(e=>{let t=()=>{var t;if(t=encodeURIComponent(this.parameters),[].slice.call(document.querySelectorAll(".magic-iframe")).find(e=>e.src.includes(t)))(0,i.createDuplicateIframeWarning)().log();else{let t=document.createElement("iframe");t.classList.add("magic-iframe"),t.dataset.magicIframeLabel=(0,i.createURL)(this.endpoint).host,t.title="Secure Modal",t.src=(0,i.createURL)(`/send?params=${encodeURIComponent(this.parameters)}`,this.endpoint).href,function(e){for(let[t,r]of Object.entries(E))e.style[t]=r}(t),document.body.appendChild(t),e(t)}};["loaded","interactive","complete"].includes(document.readyState)?t():window.addEventListener("load",t,!1)}),window.addEventListener("message",e=>{var t;if(e.origin===this.endpoint&&e.data&&e.data.msgType&&this.messageHandlers.size)for(let r of(e.data.response=null!=(t=e.data.response)?t:{},this.messageHandlers.values()))r(e)})}showOverlay(){return g(this,null,function*(){let e=yield this.iframe;e.style.display="block",this.activeElement=document.activeElement,e.focus()})}hideOverlay(){return g(this,null,function*(){var e;(yield this.iframe).style.display="none",null!=(e=this.activeElement)&&e.focus&&this.activeElement.focus(),this.activeElement=null})}_post(e){return g(this,null,function*(){let t=yield this.iframe;if(t&&t.contentWindow)t.contentWindow.postMessage(e,this.endpoint);else throw(0,i.createModalNotReadyError)()})}},M=(0,i.createSDK)(i.SDKBase,{platform:"web",sdkName:"magic-sdk",version:"21.2.0",defaultEndpoint:"https://auth.magic.link/",ViewController:A,configureStorage:()=>g(void 0,null,function*(){let e=w.default.createInstance({name:"MagicAuthLocalStorageDB",storeName:"MagicAuthLocalStorage"});return yield e.defineDriver(_),yield e.setDriver([w.default.INDEXEDDB,w.default.LOCALSTORAGE,_._driver]),e})})},{"@magic-sdk/provider":"kInmz","@magic-sdk/commons":"jZ3vB","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],kInmz:[function(e,t,r){let n;var i,a,s,o,c,f=e("@parcel/transformer-js/src/esmodule-helpers.js");f.defineInteropFlag(r),f.export(r,"Extension",()=>tN),f.export(r,"MagicExtensionError",()=>eF),f.export(r,"MagicExtensionWarning",()=>eq),f.export(r,"MagicRPCError",()=>eD),f.export(r,"MagicSDKError",()=>eL),f.export(r,"MagicSDKWarning",()=>eU),f.export(r,"SDKBase",()=>tU),f.export(r,"STORE_KEY_PRIVATE_KEY",()=>tv),f.export(r,"STORE_KEY_PUBLIC_JWK",()=>tw),f.export(r,"TypedEmitter",()=>e8),f.export(r,"ViewController",()=>tF),f.export(r,"clearKeys",()=>tA),f.export(r,"createDeprecationWarning",()=>eX),f.export(r,"createDuplicateIframeWarning",()=>eJ),f.export(r,"createExtensionNotInitializedError",()=>eV),f.export(r,"createIncompatibleExtensionsError",()=>eW),f.export(r,"createInvalidArgumentError",()=>eG),f.export(r,"createJwt",()=>tM),f.export(r,"createMalformedResponseError",()=>eH),f.export(r,"createMissingApiKeyError",()=>ez),f.export(r,"createModalNotReadyError",()=>eK),f.export(r,"createPromiEvent",()=>te),f.export(r,"createPromise",()=>tt),f.export(r,"createReactNativeEndpointConfigurationWarning",()=>e$),f.export(r,"createSDK",()=>ej),f.export(r,"createSynchronousWeb3MethodWarning",()=>eZ),f.export(r,"createTypedEmitter",()=>e4),f.export(r,"createURL",()=>tg),f.export(r,"decodeJSON",()=>ex),f.export(r,"encodeJSON",()=>eS),f.export(r,"getPayloadId",()=>eQ),f.export(r,"isEmpty",()=>eO),f.export(r,"isJsonRpcErrorCode",()=>eP),f.export(r,"isJsonRpcRequestPayload",()=>eR),f.export(r,"isJsonRpcResponsePayload",()=>eI),f.export(r,"isMagicPayloadMethod",()=>eC),f.export(r,"isMajorVersionAtLeast",()=>tn),f.export(r,"isPromiEvent",()=>e9),f.export(r,"storage",()=>ts),f.export(r,"uuid",()=>ty);var u=e("@magic-sdk/types"),d=e("af855673666531db"),l=Object.create,h=Object.defineProperty,p=Object.defineProperties,m=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyDescriptors,g=Object.getOwnPropertyNames,y=Object.getOwnPropertySymbols,v=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable,E=(e,t,r)=>t in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,A=(e,t)=>{for(var r in t||(t={}))w.call(t,r)&&E(e,r,t[r]);if(y)for(var r of y(t))_.call(t,r)&&E(e,r,t[r]);return e},M=(e,t)=>p(e,b(t)),S=(e,t,r)=>new Promise((n,i)=>{var a=e=>{try{o(r.next(e))}catch(e){i(e)}},s=e=>{try{o(r.throw(e))}catch(e){i(e)}},o=e=>e.done?n(e.value):Promise.resolve(e.value).then(a,s);o((r=r.apply(e,t)).next())}),x=(i=(e,t)=>{"use strict";var r=Object.prototype.hasOwnProperty,n="~";function i(){}function a(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function s(e,t,r,i,s){if("function"!=typeof r)throw TypeError("The listener must be a function");var o=new a(r,i||e,s),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],o]:e._events[c].push(o):(e._events[c]=o,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function c(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(n=!1)),c.prototype.eventNames=function(){var e,t,i=[];if(0===this._eventsCount)return i;for(t in e=this._events)r.call(e,t)&&i.push(n?t.slice(1):t);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},c.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,s=Array(a);itypeof t&&(t.exports=c)},()=>(a||i((a={exports:{}}).exports,a),a.exports)),T={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16},k=("object"==typeof d&&d.env,()=>{}),R=(function(e,t){let{MAX_SAFE_COMPONENT_LENGTH:r}=T,n=(t=e.exports={}).re=[],i=t.src=[],a=t.t={},s=0,o=(e,t,r)=>{let o=s++;k(o,t),a[e]=o,i[o]=t,n[o]=new RegExp(t,r?"g":void 0)};o("NUMERICIDENTIFIER","0|[1-9]\\d*"),o("NUMERICIDENTIFIERLOOSE","[0-9]+"),o("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),o("MAINVERSION",`(${i[a.NUMERICIDENTIFIER]})\\.(${i[a.NUMERICIDENTIFIER]})\\.(${i[a.NUMERICIDENTIFIER]})`),o("MAINVERSIONLOOSE",`(${i[a.NUMERICIDENTIFIERLOOSE]})\\.(${i[a.NUMERICIDENTIFIERLOOSE]})\\.(${i[a.NUMERICIDENTIFIERLOOSE]})`),o("PRERELEASEIDENTIFIER",`(?:${i[a.NUMERICIDENTIFIER]}|${i[a.NONNUMERICIDENTIFIER]})`),o("PRERELEASEIDENTIFIERLOOSE",`(?:${i[a.NUMERICIDENTIFIERLOOSE]}|${i[a.NONNUMERICIDENTIFIER]})`),o("PRERELEASE",`(?:-(${i[a.PRERELEASEIDENTIFIER]}(?:\\.${i[a.PRERELEASEIDENTIFIER]})*))`),o("PRERELEASELOOSE",`(?:-?(${i[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[a.PRERELEASEIDENTIFIERLOOSE]})*))`),o("BUILDIDENTIFIER","[0-9A-Za-z-]+"),o("BUILD",`(?:\\+(${i[a.BUILDIDENTIFIER]}(?:\\.${i[a.BUILDIDENTIFIER]})*))`),o("FULLPLAIN",`v?${i[a.MAINVERSION]}${i[a.PRERELEASE]}?${i[a.BUILD]}?`),o("FULL",`^${i[a.FULLPLAIN]}$`),o("LOOSEPLAIN",`[v=\\s]*${i[a.MAINVERSIONLOOSE]}${i[a.PRERELEASELOOSE]}?${i[a.BUILD]}?`),o("LOOSE",`^${i[a.LOOSEPLAIN]}$`),o("GTLT","((?:<|>)?=?)"),o("XRANGEIDENTIFIERLOOSE",`${i[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),o("XRANGEIDENTIFIER",`${i[a.NUMERICIDENTIFIER]}|x|X|\\*`),o("XRANGEPLAIN",`[v=\\s]*(${i[a.XRANGEIDENTIFIER]})(?:\\.(${i[a.XRANGEIDENTIFIER]})(?:\\.(${i[a.XRANGEIDENTIFIER]})(?:${i[a.PRERELEASE]})?${i[a.BUILD]}?)?)?`),o("XRANGEPLAINLOOSE",`[v=\\s]*(${i[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[a.XRANGEIDENTIFIERLOOSE]})(?:${i[a.PRERELEASELOOSE]})?${i[a.BUILD]}?)?)?`),o("XRANGE",`^${i[a.GTLT]}\\s*${i[a.XRANGEPLAIN]}$`),o("XRANGELOOSE",`^${i[a.GTLT]}\\s*${i[a.XRANGEPLAINLOOSE]}$`),o("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),o("COERCERTL",i[a.COERCE],!0),o("LONETILDE","(?:~>?)"),o("TILDETRIM",`(\\s*)${i[a.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",o("TILDE",`^${i[a.LONETILDE]}${i[a.XRANGEPLAIN]}$`),o("TILDELOOSE",`^${i[a.LONETILDE]}${i[a.XRANGEPLAINLOOSE]}$`),o("LONECARET","(?:\\^)"),o("CARETTRIM",`(\\s*)${i[a.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",o("CARET",`^${i[a.LONECARET]}${i[a.XRANGEPLAIN]}$`),o("CARETLOOSE",`^${i[a.LONECARET]}${i[a.XRANGEPLAINLOOSE]}$`),o("COMPARATORLOOSE",`^${i[a.GTLT]}\\s*(${i[a.LOOSEPLAIN]})$|^$`),o("COMPARATOR",`^${i[a.GTLT]}\\s*(${i[a.FULLPLAIN]})$|^$`),o("COMPARATORTRIM",`(\\s*)${i[a.GTLT]}\\s*(${i[a.LOOSEPLAIN]}|${i[a.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",o("HYPHENRANGE",`^\\s*(${i[a.XRANGEPLAIN]})\\s+-\\s+(${i[a.XRANGEPLAIN]})\\s*$`),o("HYPHENRANGELOOSE",`^\\s*(${i[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[a.XRANGEPLAINLOOSE]})\\s*$`),o("STAR","(<|>)?=?\\s*\\*"),o("GTE0","^\\s*>=\\s*0.0.0\\s*$"),o("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}(n={exports:{}},n.exports),n.exports),I=/^[0-9]+$/,C=(e,t)=>{let r=I.test(e),n=I.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:eC(t,e)},L=class{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof L){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw TypeError(`Invalid Version: ${e}`);if(e.length>P)throw TypeError(`version is longer than ${P} characters`);k("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let r=e.trim().match(t.loose?N[j.LOOSE]:N[j.FULL]);if(!r)throw TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>O||this.major<0)throw TypeError("Invalid major version");if(this.minor>O||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>O||this.patch<0)throw TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}},D=(e,t,r)=>new L(e,r).compare(new L(t,r)),U=(e,t,r)=>0===D(e,t,r),F=(e,t,r)=>0!==D(e,t,r),q=(e,t,r)=>D(e,t,r)>0,z=(e,t,r)=>D(e,t,r)>=0,K=(e,t,r)=>0>D(e,t,r),H=(e,t,r)=>0>=D(e,t,r),V=(e,t,r,n)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return U(e,r,n);case"!=":return F(e,r,n);case">":return q(e,r,n);case">=":return z(e,r,n);case"<":return K(e,r,n);case"<=":return H(e,r,n);default:throw TypeError(`Invalid operator: ${t}`)}},W=Symbol("SemVer ANY"),G=class{static get ANY(){return W}constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof G){if(!!t.loose===e.loose)return e;e=e.value}k("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===W?this.value="":this.value=this.operator+this.semver.version,k("comp",this)}parse(e){let t=this.options.loose?J[Z.COMPARATORLOOSE]:J[Z.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new L(r[2],this.options.loose):this.semver=W}toString(){return this.value}test(e){if(k("Comparator.test",e,this.options.loose),this.semver===W||e===W)return!0;if("string"==typeof e)try{e=new L(e,this.options)}catch(e){return!1}return V(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof G))throw TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new $(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new $(this.value,t).test(e.semver);let r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),n=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=V(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),o=V(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||n||i&&a||s||o}},{re:J,t:Z}=R,$=class{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease?e:new $(e.raw,t);if(e instanceof G)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${e}`);this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){let{loose:t}=this.options;e=e.trim();let r=t?X[Y.HYPHENRANGELOOSE]:X[Y.HYPHENRANGE];k("hyphen replace",e=e.replace(r,eh(this.options.includePrerelease))),k("comparator trim",e=e.replace(X[Y.COMPARATORTRIM],Q),X[Y.COMPARATORTRIM]),e=(e=(e=e.replace(X[Y.TILDETRIM],ee)).replace(X[Y.CARETTRIM],et)).split(/\s+/).join(" ");let n=t?X[Y.COMPARATORLOOSE]:X[Y.COMPARATOR];return e.split(" ").map(e=>en(e,this.options)).join(" ").split(/\s+/).map(e=>el(e,this.options)).filter(this.options.loose?e=>!!e.match(n):()=>!0).map(e=>new G(e,this.options))}intersects(e,t){if(!(e instanceof $))throw TypeError("a Range is required");return this.set.some(r=>er(r,t)&&e.set.some(e=>er(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new L(e,this.options)}catch(e){return!1}for(let t=0;t{let r=!0,n=e.slice(),i=n.pop();for(;r&&n.length;)r=n.every(e=>i.intersects(e,t)),i=n.pop();return r},en=(e,t)=>(k("comp",e,t),e=eo(e,t),k("caret",e),e=ea(e,t),k("tildes",e),e=ef(e,t),k("xrange",e),e=ed(e,t),k("stars",e),e),ei=e=>!e||"x"===e.toLowerCase()||"*"===e,ea=(e,t)=>e.trim().split(/\s+/).map(e=>es(e,t)).join(" "),es=(e,t)=>{let r=t.loose?X[Y.TILDELOOSE]:X[Y.TILDE];return e.replace(r,(t,r,n,i,a)=>{let s;return k("tilde",e,t,r,n,i,a),ei(r)?s="":ei(n)?s=`>=${r}.0.0 <${+r+1}.0.0-0`:ei(i)?s=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:a?(k("replaceTilde pr",a),s=`>=${r}.${n}.${i}-${a} <${r}.${+n+1}.0-0`):s=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,k("tilde return",s),s})},eo=(e,t)=>e.trim().split(/\s+/).map(e=>ec(e,t)).join(" "),ec=(e,t)=>{k("caret",e,t);let r=t.loose?X[Y.CARETLOOSE]:X[Y.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(t,r,i,a,s)=>{let o;return k("caret",e,t,r,i,a,s),ei(r)?o="":ei(i)?o=`>=${r}.0.0${n} <${+r+1}.0.0-0`:ei(a)?o="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:s?(k("replaceCaret pr",s),o="0"===r?"0"===i?`>=${r}.${i}.${a}-${s} <${r}.${i}.${+a+1}-0`:`>=${r}.${i}.${a}-${s} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${a}-${s} <${+r+1}.0.0-0`):(k("no pr"),o="0"===r?"0"===i?`>=${r}.${i}.${a}${n} <${r}.${i}.${+a+1}-0`:`>=${r}.${i}.${a}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${a} <${+r+1}.0.0-0`),k("caret return",o),o})},ef=(e,t)=>(k("replaceXRanges",e,t),e.split(/\s+/).map(e=>eu(e,t)).join(" ")),eu=(e,t)=>{e=e.trim();let r=t.loose?X[Y.XRANGELOOSE]:X[Y.XRANGE];return e.replace(r,(r,n,i,a,s,o)=>{k("xRange",e,r,n,i,a,s,o);let c=ei(i),f=c||ei(a),u=f||ei(s);return"="===n&&u&&(n=""),o=t.includePrerelease?"-0":"",c?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&u?(f&&(a=0),s=0,">"===n?(n=">=",f?(i=+i+1,a=0):a=+a+1,s=0):"<="===n&&(n="<",f?i=+i+1:a=+a+1),"<"===n&&(o="-0"),r=`${n+i}.${a}.${s}${o}`):f?r=`>=${i}.0.0${o} <${+i+1}.0.0-0`:u&&(r=`>=${i}.${a}.0${o} <${i}.${+a+1}.0-0`),k("xRange return",r),r})},ed=(e,t)=>(k("replaceStars",e,t),e.trim().replace(X[Y.STAR],"")),el=(e,t)=>(k("replaceGTE0",e,t),e.trim().replace(X[t.includePrerelease?Y.GTE0PRE:Y.GTE0],"")),eh=e=>(t,r,n,i,a,s,o,c,f,u,d,l,h)=>`${r=ei(n)?"":ei(i)?`>=${n}.0.0${e?"-0":""}`:ei(a)?`>=${n}.${i}.0${e?"-0":""}`:s?`>=${r}`:`>=${r}${e?"-0":""}`} ${c=ei(f)?"":ei(u)?`<${+f+1}.0.0-0`:ei(d)?`<${f}.${+u+1}.0-0`:l?`<=${f}.${u}.${d}-${l}`:e?`<${f}.${u}.${+d+1}-0`:`<=${c}`}`.trim(),ep=(e,t,r)=>{for(let r=0;r0){let n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0},em=(e,t,r)=>{try{t=new $(t,r)}catch(e){return!1}return t.test(e)},{MAX_LENGTH:eb}=T,{re:eg,t:ey}=R,ev=(e,t)=>{if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof L)return e;if("string"!=typeof e||e.length>eb||!(t.loose?eg[ey.LOOSE]:eg[ey.FULL]).test(e))return null;try{return new L(e,t)}catch(e){return null}},{re:ew,t:e_}=R,eE=(e,t)=>{if(e instanceof L)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let t;for(;(t=ew[e_.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),ew[e_.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;ew[e_.COERCERTL].lastIndex=-1}else r=e.match(ew[e_.COERCE]);return null===r?null:ev(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)};function eA(e){return String.fromCharCode(parseInt(e.slice(1),16))}function eM(e){return`%${`00${e.charCodeAt(0).toString(16)}`.slice(-2)}`}function eS(e){return btoa(encodeURIComponent(JSON.stringify(e)).replace(/%[0-9A-F]{2}/g,eA))}function ex(e){return JSON.parse(decodeURIComponent(Array.from(atob(e),eM).join("")))}function eT(e){return void 0===e}function ek(e){return null===e||eT(e)}function eR(e){return!ek(e)&&!eT(e.jsonrpc)&&!eT(e.id)&&!eT(e.method)&&!eT(e.params)}function eI(e){return!ek(e)&&!eT(e.jsonrpc)&&!eT(e.id)&&(!eT(e.result)||!eT(e.error))}function eC(e){return!ek(e)&&"string"==typeof e&&Object.values(u.MagicPayloadMethod).includes(e)}function eP(e){return!ek(e)&&"number"==typeof e&&Object.values(u.RPCErrorCode).includes(e)}function eO(e){if(!e)return!0;for(let t in e)if(Object.hasOwnProperty.call(e,t))return!1;return!0}var eN={};function ej(e,t){return Object.assign(eN,t),e}var eB={"magic-sdk":"magic-sdk","@magic-sdk/react-native":"magic-sdk-rn","@magic-sdk/react-native-bare":"magic-sdk-rn-bare","@magic-sdk/react-native-expo":"magic-sdk-rn-expo"},eL=class extends Error{constructor(e,t){super(`Magic SDK Error: [${e}] ${t}`),this.code=e,this.rawMessage=t,this.__proto__=Error,Object.setPrototypeOf(this,eL.prototype)}},eD=class extends Error{constructor(e){super(),this.__proto__=Error;let t=Number(null==e?void 0:e.code);this.rawMessage=(null==e?void 0:e.message)||"Internal error",this.code=eP(t)?t:u.RPCErrorCode.InternalError,this.message=`Magic RPC Error: [${this.code}] ${this.rawMessage}`,this.data=(null==e?void 0:e.data)||void 0,Object.setPrototypeOf(this,eD.prototype)}},eU=class{constructor(e,t){this.code=e,this.rawMessage=t,this.message=`Magic SDK Warning: [${e}] ${t}`}log(){console.warn(this.message)}},eF=class extends Error{constructor(e,t,r,n){super(`Magic Extension Error (${e.name}): [${t}] ${r}`),this.code=t,this.rawMessage=r,this.data=n,this.__proto__=Error,Object.setPrototypeOf(this,eF.prototype)}},eq=class{constructor(e,t,r){this.code=t,this.rawMessage=r,this.message=`Magic Extension Warning (${e.name}): [${t}] ${r}`}log(){console.warn(this.message)}};function ez(){return new eL(u.SDKErrorCode.MissingApiKey,"Please provide an API key that you acquired from the Magic developer dashboard.")}function eK(){return new eL(u.SDKErrorCode.ModalNotReady,"Modal is not ready.")}function eH(){return new eL(u.SDKErrorCode.MalformedResponse,"Response from the Magic iframe is malformed.")}function eV(e){return new eL(u.SDKErrorCode.ExtensionNotInitialized,`Extensions must be initialized with a Magic SDK instance before \`Extension.${e}\` can be accessed. Do not invoke \`Extension.${e}\` inside an extension constructor.`)}function eW(e){let t=`Some extensions are incompatible with \`${eN.sdkName}@${eN.version}\`:`;return e.filter(e=>void 0!==e.compat&&null!==e.compat).forEach(e=>{let r=e.compat[eN.sdkName];"string"==typeof r?t+=` + ${s.stack}`),W(e,`trackError_${t}`,{...n||{},errorMessage:i,errorStack:a,isTrackError:!0})}),ei=e=>{if(e.passportId){let t=`passport:${e.passportId.toLowerCase()}`;return t}if(e.ethAddress){let t=`ethAddress:${e.ethAddress.toLowerCase()}`;return t}throw Error("invalid_identity")},ea=z(e=>{let t=ei(e);t&&(k(o.IDENTITY,t),W("metrics","identify",e.traits))}),es=z(V("setEnvironment",e=>{k(o.ENVIRONMENT,e)})),eo=z(V("setPassportClientId",e=>{k(o.PASSPORT_CLIENT_ID,e)})),ec=z(V("setPublishableApiKey",e=>{k(o.PUBLISHABLE_API_KEY,e)})),ef=z(V("getDetail",R)),eu={localStorage:A}},{"6a0bfe3548874972":"2MMCE","15cbbe915ba0ee1":"fg0b3",axios:"jhAcT","lru-memorise":"h26r2","global-const":"5eChp","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],h26r2:[function(e,t,r){!function(e){"use strict";class t{constructor(e=0,t=0,r=!1){this.first=null,this.items=Object.create(null),this.last=null,this.max=e,this.resetTtl=r,this.size=0,this.ttl=t}clear(){return this.first=null,this.items=Object.create(null),this.last=null,this.size=0,this}delete(e){if(this.has(e)){let t=this.items[e];delete this.items[e],this.size--,null!==t.prev&&(t.prev.next=t.next),null!==t.next&&(t.next.prev=t.prev),this.first===t&&(this.first=t.next),this.last===t&&(this.last=t.prev)}return this}entries(e=this.keys()){return e.map(e=>[e,this.get(e)])}evict(e=!1){if(e||this.size>0){let e=this.first;delete this.items[e.key],0==--this.size?(this.first=null,this.last=null):(this.first=e.next,this.first.prev=null)}return this}expiresAt(e){let t;return this.has(e)&&(t=this.items[e].expiry),t}get(e){let t;if(this.has(e)){let r=this.items[e];this.ttl>0&&r.expiry<=Date.now()?this.delete(e):(t=r.value,this.set(e,t,!0))}return t}has(e){return e in this.items}keys(){let e=[],t=this.first;for(;null!==t;)e.push(t.key),t=t.next;return e}set(e,t,r=!1,n=this.resetTtl){let i;if(r||this.has(e)){if((i=this.items[e]).value=t,!1===r&&n&&(i.expiry=this.ttl>0?Date.now()+this.ttl:this.ttl),this.last!==i){let e=this.last,t=i.next,r=i.prev;this.first===i&&(this.first=i.next),i.next=null,i.prev=this.last,e.next=i,null!==r&&(r.next=t),null!==t&&(t.prev=r)}}else this.max>0&&this.size===this.max&&this.evict(!0),i=this.items[e]={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:e,prev:this.last,next:null,value:t},1==++this.size?this.first=i:this.last.next=i;return this.last=i,this}values(e=this.keys()){return e.map(e=>this.get(e))}}let r={max:1e3},n=(e,n={})=>{let{cache:a,cacheKeyResolver:s=i,onHit:o,lruOptions:c={}}=n,f={...r,...c},u=a||function(e=1e3,r=0,n=!1){if(isNaN(e)||e<0)throw TypeError("Invalid max value");if(isNaN(r)||r<0)throw TypeError("Invalid ttl value");if("boolean"!=typeof n)throw TypeError("Invalid resetTtl value");return new t(e,r,n)}(f.max,f.ttl);function d(...t){let r=s(...t),n=u.get(r);if(u.has(r))return o&&o(r,n,u),n;let i=e.apply(this,t);return u.set(r,i),i}return d._cache=u,d},i=(...e)=>0===e.length?"no-args":e.map(e=>void 0===e?"undefined":null===e?"null":Array.isArray(e)?`[${i(...e)}]`:"object"==typeof e?`{${i(...a(e))}}`:JSON.stringify(e)).join(","),a=e=>Object.entries(e).sort((e,t)=>e[0]"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:n,a=(e,t)=>{if("string"!=typeof e)throw"Invalid namespace key";if("string"!=typeof t)throw"Invalid item key"},s=e=>`globalise__singleton__${e}`,o=e=>{let t=i(),r=s(e);return t[r]||(t[r]={}),t[r]},c=(e,t)=>{let r=o(e);return r[t]||void 0},f=(e,t,r)=>{let n=o(e);n[t]=r};r.getGlobalisedValue=(e,t,r)=>{a(e,t);let n=c(e,t);return void 0!==n?n:(f(e,t,r),r)},r.clearGlobalNamespace=e=>{let t=i(),r=s(e);void 0!==t[r]&&delete t[r]}},{}],"2eu25":[function(e,t,r){var n,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y,v,w,_,E,A,M,S,x,T,k,R=e("@parcel/transformer-js/src/esmodule-helpers.js");R.defineInteropFlag(r),R.export(r,"BlockchainData",()=>tw),R.export(r,"ImxApiClients",()=>t_),R.export(r,"MultiRollupApiClients",()=>tE),R.export(r,"createConfig",()=>tM),R.export(r,"imx",()=>eK),R.export(r,"imxApiConfig",()=>tS),R.export(r,"mr",()=>tv),R.export(r,"multiRollupConfig",()=>tx);var I=e("axios"),C=R.interopDefault(I);let P="https://api.sandbox.x.immutable.com".replace(/\/+$/,""),O=class{basePath;axios;configuration;constructor(e,t=P,r=C.default){this.basePath=t,this.axios=r,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}},N=class extends Error{field;name="RequiredError";constructor(e,t){super(t),this.field=e}},j="https://example.com",B=function(e,t,r){if(null==r)throw new N(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},L=async function(e,t,r){if(r&&r.apiKey){let n="function"==typeof r.apiKey?await r.apiKey(t):await r.apiKey;e[t]=n}},D=function(e,...t){let r=new URLSearchParams(e.search);!function e(t,r,n=""){"object"==typeof r?Array.isArray(r)?r.forEach(r=>e(t,r,n)):Object.keys(r).forEach(i=>e(t,r[i],`${n}${""!==n?".":""}${i}`)):t.has(n)?t.append(n,r):t.set(n,r)}(r,t),e.search=r.toString()},U=function(e,t,r){let n="string"!=typeof e,i=n&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):n;return i?JSON.stringify(void 0!==e?e:{}):e||""},F=function(e){return e.pathname+e.search+e.hash},q=function(e,t,r,n){return(i=t,a=r)=>{let s={...e.options,url:(n?.basePath||a)+e.url};return i.request(s)}},z=function(e){return{getAsset:async(t,r,n,i={})=>{let a;B("getAsset","tokenAddress",t),B("getAsset","tokenId",r);let s="/v1/assets/{token_address}/{token_id}".replace("{token_address}",encodeURIComponent(String(t))).replace("{token_id}",encodeURIComponent(String(r))),o=new URL(s,j);e&&(a=e.baseOptions);let c={method:"GET",...a,...i},f={};void 0!==n&&(f.include_fees=n),D(o,f);let u=a&&a.headers?a.headers:{};return c.headers={...u,...i.headers},{url:F(o),options:c}},listAssets:async(t,r,n,i,a,s,o,c,f,u,d,l,h,p,m,b,g={})=>{let y;let v=new URL("/v1/assets",j);e&&(y=e.baseOptions);let w={method:"GET",...y,...g},_={};void 0!==t&&(_.page_size=t),void 0!==r&&(_.cursor=r),void 0!==n&&(_.order_by=n),void 0!==i&&(_.direction=i),void 0!==a&&(_.user=a),void 0!==s&&(_.status=s),void 0!==o&&(_.name=o),void 0!==c&&(_.metadata=c),void 0!==f&&(_.sell_orders=f),void 0!==u&&(_.buy_orders=u),void 0!==d&&(_.include_fees=d),void 0!==l&&(_.collection=l),void 0!==h&&(_.updated_min_timestamp=h),void 0!==p&&(_.updated_max_timestamp=p),void 0!==m&&(_.auxiliary_fee_percentages=m),void 0!==b&&(_.auxiliary_fee_recipients=b),D(v,_);let E=y&&y.headers?y.headers:{};return w.headers={...E,...g.headers},{url:F(v),options:w}}}},K=function(e){let t=z(e);return{async getAsset(r,n,i,a){let s=await t.getAsset(r,n,i,a);return q(s,C.default,P,e)},async listAssets(r,n,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y){let v=await t.listAssets(r,n,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y);return q(v,C.default,P,e)}}};class H extends O{getAsset(e,t){return K(this.configuration).getAsset(e.tokenAddress,e.tokenId,e.includeFees,t).then(e=>e(this.axios,this.basePath))}listAssets(e={},t){return K(this.configuration).listAssets(e.pageSize,e.cursor,e.orderBy,e.direction,e.user,e.status,e.name,e.metadata,e.sellOrders,e.buyOrders,e.includeFees,e.collection,e.updatedMinTimestamp,e.updatedMaxTimestamp,e.auxiliaryFeePercentages,e.auxiliaryFeeRecipients,t).then(e=>e(this.axios,this.basePath))}}let V=function(e){return{getBalance:async(t,r,n={})=>{let i;B("getBalance","owner",t),B("getBalance","address",r);let a="/v2/balances/{owner}/{address}".replace("{owner}",encodeURIComponent(String(t))).replace("{address}",encodeURIComponent(String(r))),s=new URL(a,j);e&&(i=e.baseOptions);let o={method:"GET",...i,...n};D(s,{});let c=i&&i.headers?i.headers:{};return o.headers={...c,...n.headers},{url:F(s),options:o}},listBalances:async(t,r,n,i,a,s={})=>{let o;B("listBalances","owner",t);let c="/v2/balances/{owner}".replace("{owner}",encodeURIComponent(String(t))),f=new URL(c,j);e&&(o=e.baseOptions);let u={method:"GET",...o,...s},d={};void 0!==r&&(d.page_size=r),void 0!==n&&(d.cursor=n),void 0!==i&&(d.order_by=i),void 0!==a&&(d.direction=a),D(f,d);let l=o&&o.headers?o.headers:{};return u.headers={...l,...s.headers},{url:F(f),options:u}}}},W=function(e){let t=V(e);return{async getBalance(r,n,i){let a=await t.getBalance(r,n,i);return q(a,C.default,P,e)},async listBalances(r,n,i,a,s,o){let c=await t.listBalances(r,n,i,a,s,o);return q(c,C.default,P,e)}}};class G extends O{getBalance(e,t){return W(this.configuration).getBalance(e.owner,e.address,t).then(e=>e(this.axios,this.basePath))}listBalances(e,t){return W(this.configuration).listBalances(e.owner,e.pageSize,e.cursor,e.orderBy,e.direction,t).then(e=>e(this.axios,this.basePath))}}let J=function(e){return{createCollection:async(t,r,n,i,a={})=>{let s;B("createCollection","iMXSignature",t),B("createCollection","iMXTimestamp",r),B("createCollection","createCollectionRequest",n);let o=new URL("/v1/collections",j);e&&(s=e.baseOptions);let c={method:"POST",...s,...a},f={};null!=t&&(f["IMX-Signature"]=String(t)),null!=r&&(f["IMX-Timestamp"]=String(r)),null!=i&&(f["x-immutable-api-key"]=String(i)),f["Content-Type"]="application/json",D(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...f,...u,...a.headers},c.data=U(n,c,e),{url:F(o),options:c}},getCollection:async(t,r={})=>{let n;B("getCollection","address",t);let i="/v1/collections/{address}".replace("{address}",encodeURIComponent(String(t))),a=new URL(i,j);e&&(n=e.baseOptions);let s={method:"GET",...n,...r};D(a,{});let o=n&&n.headers?n.headers:{};return s.headers={...o,...r.headers},{url:F(a),options:s}},listCollectionFilters:async(t,r,n,i={})=>{let a;B("listCollectionFilters","address",t);let s="/v1/collections/{address}/filters".replace("{address}",encodeURIComponent(String(t))),o=new URL(s,j);e&&(a=e.baseOptions);let c={method:"GET",...a,...i},f={};void 0!==r&&(f.page_size=r),void 0!==n&&(f.next_page_token=n),D(o,f);let u=a&&a.headers?a.headers:{};return c.headers={...u,...i.headers},{url:F(o),options:c}},listCollections:async(t,r,n,i,a,s,o,c={})=>{let f;let u=new URL("/v1/collections",j);e&&(f=e.baseOptions);let d={method:"GET",...f,...c},l={};void 0!==t&&(l.page_size=t),void 0!==r&&(l.cursor=r),void 0!==n&&(l.order_by=n),void 0!==i&&(l.direction=i),void 0!==a&&(l.blacklist=a),void 0!==s&&(l.whitelist=s),void 0!==o&&(l.keyword=o),D(u,l);let h=f&&f.headers?f.headers:{};return d.headers={...h,...c.headers},{url:F(u),options:d}},summarizeCollections:async(t,r={})=>{let n;B("summarizeCollections","user",t);let i=new URL("/v1/collections-summary",j);e&&(n=e.baseOptions);let a={method:"GET",...n,...r},s={};void 0!==t&&(s.user=t),D(i,s);let o=n&&n.headers?n.headers:{};return a.headers={...o,...r.headers},{url:F(i),options:a}},updateCollection:async(t,r,n,i,a={})=>{let s;B("updateCollection","address",t),B("updateCollection","iMXSignature",r),B("updateCollection","iMXTimestamp",n),B("updateCollection","updateCollectionRequest",i);let o="/v1/collections/{address}".replace("{address}",encodeURIComponent(String(t))),c=new URL(o,j);e&&(s=e.baseOptions);let f={method:"PATCH",...s,...a},u={};null!=r&&(u["IMX-Signature"]=String(r)),null!=n&&(u["IMX-Timestamp"]=String(n)),u["Content-Type"]="application/json",D(c,{});let d=s&&s.headers?s.headers:{};return f.headers={...u,...d,...a.headers},f.data=U(i,f,e),{url:F(c),options:f}}}},Z=function(e){let t=J(e);return{async createCollection(r,n,i,a,s){let o=await t.createCollection(r,n,i,a,s);return q(o,C.default,P,e)},async getCollection(r,n){let i=await t.getCollection(r,n);return q(i,C.default,P,e)},async listCollectionFilters(r,n,i,a){let s=await t.listCollectionFilters(r,n,i,a);return q(s,C.default,P,e)},async listCollections(r,n,i,a,s,o,c,f){let u=await t.listCollections(r,n,i,a,s,o,c,f);return q(u,C.default,P,e)},async summarizeCollections(r,n){let i=await t.summarizeCollections(r,n);return q(i,C.default,P,e)},async updateCollection(r,n,i,a,s){let o=await t.updateCollection(r,n,i,a,s);return q(o,C.default,P,e)}}},$=class extends O{createCollection(e,t){return Z(this.configuration).createCollection(e.iMXSignature,e.iMXTimestamp,e.createCollectionRequest,e.xImmutableApiKey,t).then(e=>e(this.axios,this.basePath))}getCollection(e,t){return Z(this.configuration).getCollection(e.address,t).then(e=>e(this.axios,this.basePath))}listCollectionFilters(e,t){return Z(this.configuration).listCollectionFilters(e.address,e.pageSize,e.nextPageToken,t).then(e=>e(this.axios,this.basePath))}listCollections(e={},t){return Z(this.configuration).listCollections(e.pageSize,e.cursor,e.orderBy,e.direction,e.blacklist,e.whitelist,e.keyword,t).then(e=>e(this.axios,this.basePath))}summarizeCollections(e,t){return Z(this.configuration).summarizeCollections(e.user,t).then(e=>e(this.axios,this.basePath))}updateCollection(e,t){return Z(this.configuration).updateCollection(e.address,e.iMXSignature,e.iMXTimestamp,e.updateCollectionRequest,t).then(e=>e(this.axios,this.basePath))}},X=function(e){return{getDeposit:async(t,r={})=>{let n;B("getDeposit","id",t);let i="/v1/deposits/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(i,j);e&&(n=e.baseOptions);let s={method:"GET",...n,...r};D(a,{});let o=n&&n.headers?n.headers:{};return s.headers={...o,...r.headers},{url:F(a),options:s}},getSignableDeposit:async(t,r={})=>{let n;B("getSignableDeposit","getSignableDepositRequest",t);let i=new URL("/v1/signable-deposit-details",j);e&&(n=e.baseOptions);let a={method:"POST",...n,...r},s={};s["Content-Type"]="application/json",D(i,{});let o=n&&n.headers?n.headers:{};return a.headers={...s,...o,...r.headers},a.data=U(t,a,e),{url:F(i),options:a}},listDeposits:async(t,r,n,i,a,s,o,c,f,u,d,l,h,p,m,b,g={})=>{let y;let v=new URL("/v1/deposits",j);e&&(y=e.baseOptions);let w={method:"GET",...y,...g},_={};void 0!==t&&(_.page_size=t),void 0!==r&&(_.cursor=r),void 0!==n&&(_.order_by=n),void 0!==i&&(_.direction=i),void 0!==a&&(_.user=a),void 0!==s&&(_.status=s),void 0!==o&&(_.min_timestamp=o),void 0!==c&&(_.max_timestamp=c),void 0!==f&&(_.token_type=f),void 0!==u&&(_.token_id=u),void 0!==d&&(_.asset_id=d),void 0!==l&&(_.token_address=l),void 0!==h&&(_.token_name=h),void 0!==p&&(_.min_quantity=p),void 0!==m&&(_.max_quantity=m),void 0!==b&&(_.metadata=b),D(v,_);let E=y&&y.headers?y.headers:{};return w.headers={...E,...g.headers},{url:F(v),options:w}}}},Y=function(e){let t=X(e);return{async getDeposit(r,n){let i=await t.getDeposit(r,n);return q(i,C.default,P,e)},async getSignableDeposit(r,n){let i=await t.getSignableDeposit(r,n);return q(i,C.default,P,e)},async listDeposits(r,n,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y){let v=await t.listDeposits(r,n,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y);return q(v,C.default,P,e)}}};class Q extends O{getDeposit(e,t){return Y(this.configuration).getDeposit(e.id,t).then(e=>e(this.axios,this.basePath))}getSignableDeposit(e,t){return Y(this.configuration).getSignableDeposit(e.getSignableDepositRequest,t).then(e=>e(this.axios,this.basePath))}listDeposits(e={},t){return Y(this.configuration).listDeposits(e.pageSize,e.cursor,e.orderBy,e.direction,e.user,e.status,e.minTimestamp,e.maxTimestamp,e.tokenType,e.tokenId,e.assetId,e.tokenAddress,e.tokenName,e.minQuantity,e.maxQuantity,e.metadata,t).then(e=>e(this.axios,this.basePath))}}let ee=function(e){return{encodeAsset:async(t,r,n={})=>{let i;B("encodeAsset","assetType",t),B("encodeAsset","encodeAssetRequest",r);let a="/v1/encode/{assetType}".replace("{assetType}",encodeURIComponent(String(t))),s=new URL(a,j);e&&(i=e.baseOptions);let o={method:"POST",...i,...n},c={};c["Content-Type"]="application/json",D(s,{});let f=i&&i.headers?i.headers:{};return o.headers={...c,...f,...n.headers},o.data=U(r,o,e),{url:F(s),options:o}}}},et=function(e){let t=ee(e);return{async encodeAsset(r,n,i){let a=await t.encodeAsset(r,n,i);return q(a,C.default,P,e)}}};class er extends O{encodeAsset(e,t){return et(this.configuration).encodeAsset(e.assetType,e.encodeAssetRequest,t).then(e=>e(this.axios,this.basePath))}}let en=function(e){return{createExchange:async(t,r={})=>{let n;B("createExchange","createExchangeAPIRequest",t);let i=new URL("/v3/exchanges",j);e&&(n=e.baseOptions);let a={method:"POST",...n,...r},s={};s["Content-Type"]="application/json",D(i,{});let o=n&&n.headers?n.headers:{};return a.headers={...s,...o,...r.headers},a.data=U(t,a,e),{url:F(i),options:a}},createExchangeTransfer:async(t,r,n,i,a,s={})=>{let o;B("createExchangeTransfer","id",t),B("createExchangeTransfer","createTransferRequest",r);let c="/v2/exchanges/{id}/transfers".replace("{id}",encodeURIComponent(String(t))),f=new URL(c,j);e&&(o=e.baseOptions);let u={method:"POST",...o,...s},d={};null!=n&&(d["x-imx-eth-address"]=String(n)),null!=i&&(d["x-imx-eth-signature"]=String(i)),null!=a&&(d.Authorization=String(a)),d["Content-Type"]="application/json",D(f,{});let l=o&&o.headers?o.headers:{};return u.headers={...d,...l,...s.headers},u.data=U(r,u,e),{url:F(f),options:u}},getExchange:async(t,r={})=>{let n;B("getExchange","id",t);let i="/v3/exchanges/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(i,j);e&&(n=e.baseOptions);let s={method:"GET",...n,...r};D(a,{});let o=n&&n.headers?n.headers:{};return s.headers={...o,...r.headers},{url:F(a),options:s}},getExchangeSignableTransfer:async(t,r,n={})=>{let i;B("getExchangeSignableTransfer","id",t),B("getExchangeSignableTransfer","getSignableTransferRequest",r);let a="/v2/exchanges/{id}/signable-transfer-details".replace("{id}",encodeURIComponent(String(t))),s=new URL(a,j);e&&(i=e.baseOptions);let o={method:"POST",...i,...n},c={};c["Content-Type"]="application/json",D(s,{});let f=i&&i.headers?i.headers:{};return o.headers={...c,...f,...n.headers},o.data=U(r,o,e),{url:F(s),options:o}},getExchanges:async(t,r,n,i,a,s,o,c,f,u={})=>{let d;let l=new URL("/v3/exchanges",j);e&&(d=e.baseOptions);let h={method:"GET",...d,...u},p={};void 0!==t&&(p.page_size=t),void 0!==r&&(p.cursor=r),void 0!==n&&(p.order_by=n),void 0!==i&&(p.direction=i),void 0!==a&&(p.id=a),void 0!==s&&(p.wallet_address=s),void 0!==o&&(p.status=o),void 0!==c&&(p.provider=c),void 0!==f&&(p.transfer_id=f),D(l,p);let m=d&&d.headers?d.headers:{};return h.headers={...m,...u.headers},{url:F(l),options:h}}}},ei=function(e){let t=en(e);return{async createExchange(r,n){let i=await t.createExchange(r,n);return q(i,C.default,P,e)},async createExchangeTransfer(r,n,i,a,s,o){let c=await t.createExchangeTransfer(r,n,i,a,s,o);return q(c,C.default,P,e)},async getExchange(r,n){let i=await t.getExchange(r,n);return q(i,C.default,P,e)},async getExchangeSignableTransfer(r,n,i){let a=await t.getExchangeSignableTransfer(r,n,i);return q(a,C.default,P,e)},async getExchanges(r,n,i,a,s,o,c,f,u,d){let l=await t.getExchanges(r,n,i,a,s,o,c,f,u,d);return q(l,C.default,P,e)}}};class ea extends O{createExchange(e,t){return ei(this.configuration).createExchange(e.createExchangeAPIRequest,t).then(e=>e(this.axios,this.basePath))}createExchangeTransfer(e,t){return ei(this.configuration).createExchangeTransfer(e.id,e.createTransferRequest,e.xImxEthAddress,e.xImxEthSignature,e.authorization,t).then(e=>e(this.axios,this.basePath))}getExchange(e,t){return ei(this.configuration).getExchange(e.id,t).then(e=>e(this.axios,this.basePath))}getExchangeSignableTransfer(e,t){return ei(this.configuration).getExchangeSignableTransfer(e.id,e.getSignableTransferRequest,t).then(e=>e(this.axios,this.basePath))}getExchanges(e={},t){return ei(this.configuration).getExchanges(e.pageSize,e.cursor,e.orderBy,e.direction,e.id,e.walletAddress,e.status,e.provider,e.transferId,t).then(e=>e(this.axios,this.basePath))}}let es=function(e){return{addMetadataSchemaToCollection:async(t,r,n,i,a={})=>{let s;B("addMetadataSchemaToCollection","address",t),B("addMetadataSchemaToCollection","iMXSignature",r),B("addMetadataSchemaToCollection","iMXTimestamp",n),B("addMetadataSchemaToCollection","addMetadataSchemaToCollectionRequest",i);let o="/v1/collections/{address}/metadata-schema".replace("{address}",encodeURIComponent(String(t))),c=new URL(o,j);e&&(s=e.baseOptions);let f={method:"POST",...s,...a},u={};null!=r&&(u["IMX-Signature"]=String(r)),null!=n&&(u["IMX-Timestamp"]=String(n)),u["Content-Type"]="application/json",D(c,{});let d=s&&s.headers?s.headers:{};return f.headers={...u,...d,...a.headers},f.data=U(i,f,e),{url:F(c),options:f}},getMetadataSchema:async(t,r={})=>{let n;B("getMetadataSchema","address",t);let i="/v1/collections/{address}/metadata-schema".replace("{address}",encodeURIComponent(String(t))),a=new URL(i,j);e&&(n=e.baseOptions);let s={method:"GET",...n,...r};D(a,{});let o=n&&n.headers?n.headers:{};return s.headers={...o,...r.headers},{url:F(a),options:s}},updateMetadataSchemaByName:async(t,r,n,i,a,s={})=>{let o;B("updateMetadataSchemaByName","address",t),B("updateMetadataSchemaByName","name",r),B("updateMetadataSchemaByName","iMXSignature",n),B("updateMetadataSchemaByName","iMXTimestamp",i),B("updateMetadataSchemaByName","metadataSchemaRequest",a);let c="/v1/collections/{address}/metadata-schema/{name}".replace("{address}",encodeURIComponent(String(t))).replace("{name}",encodeURIComponent(String(r))),f=new URL(c,j);e&&(o=e.baseOptions);let u={method:"PATCH",...o,...s},d={};null!=n&&(d["IMX-Signature"]=String(n)),null!=i&&(d["IMX-Timestamp"]=String(i)),d["Content-Type"]="application/json",D(f,{});let l=o&&o.headers?o.headers:{};return u.headers={...d,...l,...s.headers},u.data=U(a,u,e),{url:F(f),options:u}}}},eo=function(e){let t=es(e);return{async addMetadataSchemaToCollection(r,n,i,a,s){let o=await t.addMetadataSchemaToCollection(r,n,i,a,s);return q(o,C.default,P,e)},async getMetadataSchema(r,n){let i=await t.getMetadataSchema(r,n);return q(i,C.default,P,e)},async updateMetadataSchemaByName(r,n,i,a,s,o){let c=await t.updateMetadataSchemaByName(r,n,i,a,s,o);return q(c,C.default,P,e)}}},ec=class extends O{addMetadataSchemaToCollection(e,t){return eo(this.configuration).addMetadataSchemaToCollection(e.address,e.iMXSignature,e.iMXTimestamp,e.addMetadataSchemaToCollectionRequest,t).then(e=>e(this.axios,this.basePath))}getMetadataSchema(e,t){return eo(this.configuration).getMetadataSchema(e.address,t).then(e=>e(this.axios,this.basePath))}updateMetadataSchemaByName(e,t){return eo(this.configuration).updateMetadataSchemaByName(e.address,e.name,e.iMXSignature,e.iMXTimestamp,e.metadataSchemaRequest,t).then(e=>e(this.axios,this.basePath))}},ef=function(e){return{getAListOfMetadataRefreshes:async(t,r,n,i,a,s,o={})=>{let c;B("getAListOfMetadataRefreshes","xImxEthSignature",t),B("getAListOfMetadataRefreshes","xImxEthTimestamp",r),B("getAListOfMetadataRefreshes","xImxEthAddress",n);let f=new URL("/v1/metadata-refreshes",j);e&&(c=e.baseOptions);let u={method:"GET",...c,...o},d={},l={};void 0!==i&&(l.page_size=i),void 0!==a&&(l.cursor=a),void 0!==s&&(l.collection_address=s),null!=t&&(d["x-imx-eth-signature"]=String(t)),null!=r&&(d["x-imx-eth-timestamp"]=String(r)),null!=n&&(d["x-imx-eth-address"]=String(n)),D(f,l);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...o.headers},{url:F(f),options:u}},getMetadataRefreshErrors:async(t,r,n,i,a,s,o={})=>{let c;B("getMetadataRefreshErrors","refreshId",t),B("getMetadataRefreshErrors","xImxEthSignature",r),B("getMetadataRefreshErrors","xImxEthTimestamp",n),B("getMetadataRefreshErrors","xImxEthAddress",i);let f="/v1/metadata-refreshes/{refresh_id}/errors".replace("{refresh_id}",encodeURIComponent(String(t))),u=new URL(f,j);e&&(c=e.baseOptions);let d={method:"GET",...c,...o},l={},h={};void 0!==a&&(h.page_size=a),void 0!==s&&(h.cursor=s),null!=r&&(l["x-imx-eth-signature"]=String(r)),null!=n&&(l["x-imx-eth-timestamp"]=String(n)),null!=i&&(l["x-imx-eth-address"]=String(i)),D(u,h);let p=c&&c.headers?c.headers:{};return d.headers={...l,...p,...o.headers},{url:F(u),options:d}},getMetadataRefreshResults:async(t,r,n,i,a={})=>{let s;B("getMetadataRefreshResults","refreshId",t),B("getMetadataRefreshResults","xImxEthSignature",r),B("getMetadataRefreshResults","xImxEthTimestamp",n),B("getMetadataRefreshResults","xImxEthAddress",i);let o="/v1/metadata-refreshes/{refresh_id}".replace("{refresh_id}",encodeURIComponent(String(t))),c=new URL(o,j);e&&(s=e.baseOptions);let f={method:"GET",...s,...a},u={};null!=r&&(u["x-imx-eth-signature"]=String(r)),null!=n&&(u["x-imx-eth-timestamp"]=String(n)),null!=i&&(u["x-imx-eth-address"]=String(i)),D(c,{});let d=s&&s.headers?s.headers:{};return f.headers={...u,...d,...a.headers},{url:F(c),options:f}},requestAMetadataRefresh:async(t,r,n,i,a={})=>{let s;B("requestAMetadataRefresh","xImxEthSignature",t),B("requestAMetadataRefresh","xImxEthTimestamp",r),B("requestAMetadataRefresh","xImxEthAddress",n),B("requestAMetadataRefresh","createMetadataRefreshRequest",i);let o=new URL("/v1/metadata-refreshes",j);e&&(s=e.baseOptions);let c={method:"POST",...s,...a},f={};null!=t&&(f["x-imx-eth-signature"]=String(t)),null!=r&&(f["x-imx-eth-timestamp"]=String(r)),null!=n&&(f["x-imx-eth-address"]=String(n)),f["Content-Type"]="application/json",D(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...f,...u,...a.headers},c.data=U(i,c,e),{url:F(o),options:c}}}},eu=function(e){let t=ef(e);return{async getAListOfMetadataRefreshes(r,n,i,a,s,o,c){let f=await t.getAListOfMetadataRefreshes(r,n,i,a,s,o,c);return q(f,C.default,P,e)},async getMetadataRefreshErrors(r,n,i,a,s,o,c){let f=await t.getMetadataRefreshErrors(r,n,i,a,s,o,c);return q(f,C.default,P,e)},async getMetadataRefreshResults(r,n,i,a,s){let o=await t.getMetadataRefreshResults(r,n,i,a,s);return q(o,C.default,P,e)},async requestAMetadataRefresh(r,n,i,a,s){let o=await t.requestAMetadataRefresh(r,n,i,a,s);return q(o,C.default,P,e)}}};class ed extends O{getAListOfMetadataRefreshes(e,t){return eu(this.configuration).getAListOfMetadataRefreshes(e.xImxEthSignature,e.xImxEthTimestamp,e.xImxEthAddress,e.pageSize,e.cursor,e.collectionAddress,t).then(e=>e(this.axios,this.basePath))}getMetadataRefreshErrors(e,t){return eu(this.configuration).getMetadataRefreshErrors(e.refreshId,e.xImxEthSignature,e.xImxEthTimestamp,e.xImxEthAddress,e.pageSize,e.cursor,t).then(e=>e(this.axios,this.basePath))}getMetadataRefreshResults(e,t){return eu(this.configuration).getMetadataRefreshResults(e.refreshId,e.xImxEthSignature,e.xImxEthTimestamp,e.xImxEthAddress,t).then(e=>e(this.axios,this.basePath))}requestAMetadataRefresh(e,t){return eu(this.configuration).requestAMetadataRefresh(e.xImxEthSignature,e.xImxEthTimestamp,e.xImxEthAddress,e.createMetadataRefreshRequest,t).then(e=>e(this.axios,this.basePath))}}let el=function(e){return{getMint:async(t,r={})=>{let n;B("getMint","id",t);let i="/v1/mints/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(i,j);e&&(n=e.baseOptions);let s={method:"GET",...n,...r};D(a,{});let o=n&&n.headers?n.headers:{};return s.headers={...o,...r.headers},{url:F(a),options:s}},getMintableTokenDetailsByClientTokenId:async(t,r,n={})=>{let i;B("getMintableTokenDetailsByClientTokenId","tokenAddress",t),B("getMintableTokenDetailsByClientTokenId","tokenId",r);let a="/v1/mintable-token/{token_address}/{token_id}".replace("{token_address}",encodeURIComponent(String(t))).replace("{token_id}",encodeURIComponent(String(r))),s=new URL(a,j);e&&(i=e.baseOptions);let o={method:"GET",...i,...n};D(s,{});let c=i&&i.headers?i.headers:{};return o.headers={...c,...n.headers},{url:F(s),options:o}},listMints:async(t,r,n,i,a,s,o,c,f,u,d,l,h,p,m,b={})=>{let g;let y=new URL("/v1/mints",j);e&&(g=e.baseOptions);let v={method:"GET",...g,...b},w={};void 0!==t&&(w.page_size=t),void 0!==r&&(w.cursor=r),void 0!==n&&(w.order_by=n),void 0!==i&&(w.direction=i),void 0!==a&&(w.user=a),void 0!==s&&(w.status=s),void 0!==o&&(w.min_timestamp=o),void 0!==c&&(w.max_timestamp=c),void 0!==f&&(w.token_type=f),void 0!==u&&(w.token_id=u),void 0!==d&&(w.token_name=d),void 0!==l&&(w.token_address=l),void 0!==h&&(w.min_quantity=h),void 0!==p&&(w.max_quantity=p),void 0!==m&&(w.metadata=m),D(y,w);let _=g&&g.headers?g.headers:{};return v.headers={..._,...b.headers},{url:F(y),options:v}},mintTokens:async(t,r={})=>{let n;B("mintTokens","mintTokensRequestV2",t);let i=new URL("/v2/mints",j);e&&(n=e.baseOptions);let a={method:"POST",...n,...r},s={};s["Content-Type"]="application/json",D(i,{});let o=n&&n.headers?n.headers:{};return a.headers={...s,...o,...r.headers},a.data=U(t,a,e),{url:F(i),options:a}}}},eh=function(e){let t=el(e);return{async getMint(r,n){let i=await t.getMint(r,n);return q(i,C.default,P,e)},async getMintableTokenDetailsByClientTokenId(r,n,i){let a=await t.getMintableTokenDetailsByClientTokenId(r,n,i);return q(a,C.default,P,e)},async listMints(r,n,i,a,s,o,c,f,u,d,l,h,p,m,b,g){let y=await t.listMints(r,n,i,a,s,o,c,f,u,d,l,h,p,m,b,g);return q(y,C.default,P,e)},async mintTokens(r,n){let i=await t.mintTokens(r,n);return q(i,C.default,P,e)}}};class ep extends O{getMint(e,t){return eh(this.configuration).getMint(e.id,t).then(e=>e(this.axios,this.basePath))}getMintableTokenDetailsByClientTokenId(e,t){return eh(this.configuration).getMintableTokenDetailsByClientTokenId(e.tokenAddress,e.tokenId,t).then(e=>e(this.axios,this.basePath))}listMints(e={},t){return eh(this.configuration).listMints(e.pageSize,e.cursor,e.orderBy,e.direction,e.user,e.status,e.minTimestamp,e.maxTimestamp,e.tokenType,e.tokenId,e.tokenName,e.tokenAddress,e.minQuantity,e.maxQuantity,e.metadata,t).then(e=>e(this.axios,this.basePath))}mintTokens(e,t){return eh(this.configuration).mintTokens(e.mintTokensRequestV2,t).then(e=>e(this.axios,this.basePath))}}let em=function(e){return{createNftPrimary:async(t,r={})=>{let n;B("createNftPrimary","createAPIRequest",t);let i=new URL("/v2/nft/primary",j);e&&(n=e.baseOptions);let a={method:"POST",...n,...r},s={};s["Content-Type"]="application/json",D(i,{});let o=n&&n.headers?n.headers:{};return a.headers={...s,...o,...r.headers},a.data=U(t,a,e),{url:F(i),options:a}},getCurrenciesNFTCheckoutPrimary:async(t,r,n={})=>{let i;let a=new URL("/v2/nft/primary/currencies",j);e&&(i=e.baseOptions);let s={method:"GET",...i,...n},o={};void 0!==t&&(o.provider=t),void 0!==r&&(o.include_limits=r),D(a,o);let c=i&&i.headers?i.headers:{};return s.headers={...c,...n.headers},{url:F(a),options:s}},getNftPrimaryTransaction:async(t,r={})=>{let n;B("getNftPrimaryTransaction","transactionId",t);let i="/v2/nft/primary/{transaction_id}".replace("{transaction_id}",encodeURIComponent(String(t))),a=new URL(i,j);e&&(n=e.baseOptions);let s={method:"GET",...n,...r};D(a,{});let o=n&&n.headers?n.headers:{};return s.headers={...o,...r.headers},{url:F(a),options:s}},getNftPrimaryTransactions:async(t,r,n,i,a,s,o,c,f,u,d,l={})=>{let h;let p=new URL("/v2/nft/primary",j);e&&(h=e.baseOptions);let m={method:"GET",...h,...l},b={};void 0!==t&&(b.page_size=t),void 0!==r&&(b.cursor=r),void 0!==n&&(b.order_by=n),void 0!==i&&(b.direction=i),void 0!==a&&(b.transaction_id=a),void 0!==s&&(b.contract_address=s),void 0!==o&&(b.seller_wallet_address=o),void 0!==c&&(b.user_wallet_address=c),void 0!==f&&(b.status=f),void 0!==u&&(b.provider=u),void 0!==d&&(b.mint_id=d),D(p,b);let g=h&&h.headers?h.headers:{};return m.headers={...g,...l.headers},{url:F(p),options:m}},registerNftPrimarySalesContract:async(t,r={})=>{let n;B("registerNftPrimarySalesContract","createAPIRequest",t);let i=new URL("/v2/nft/primary/register",j);e&&(n=e.baseOptions);let a={method:"POST",...n,...r},s={};s["Content-Type"]="application/json",D(i,{});let o=n&&n.headers?n.headers:{};return a.headers={...s,...o,...r.headers},a.data=U(t,a,e),{url:F(i),options:a}}}},eb=function(e){let t=em(e);return{async createNftPrimary(r,n){let i=await t.createNftPrimary(r,n);return q(i,C.default,P,e)},async getCurrenciesNFTCheckoutPrimary(r,n,i){let a=await t.getCurrenciesNFTCheckoutPrimary(r,n,i);return q(a,C.default,P,e)},async getNftPrimaryTransaction(r,n){let i=await t.getNftPrimaryTransaction(r,n);return q(i,C.default,P,e)},async getNftPrimaryTransactions(r,n,i,a,s,o,c,f,u,d,l,h){let p=await t.getNftPrimaryTransactions(r,n,i,a,s,o,c,f,u,d,l,h);return q(p,C.default,P,e)},async registerNftPrimarySalesContract(r,n){let i=await t.registerNftPrimarySalesContract(r,n);return q(i,C.default,P,e)}}};class eg extends O{createNftPrimary(e,t){return eb(this.configuration).createNftPrimary(e.createAPIRequest,t).then(e=>e(this.axios,this.basePath))}getCurrenciesNFTCheckoutPrimary(e={},t){return eb(this.configuration).getCurrenciesNFTCheckoutPrimary(e.provider,e.includeLimits,t).then(e=>e(this.axios,this.basePath))}getNftPrimaryTransaction(e,t){return eb(this.configuration).getNftPrimaryTransaction(e.transactionId,t).then(e=>e(this.axios,this.basePath))}getNftPrimaryTransactions(e={},t){return eb(this.configuration).getNftPrimaryTransactions(e.pageSize,e.cursor,e.orderBy,e.direction,e.transactionId,e.contractAddress,e.sellerWalletAddress,e.userWalletAddress,e.status,e.provider,e.mintId,t).then(e=>e(this.axios,this.basePath))}registerNftPrimarySalesContract(e,t){return eb(this.configuration).registerNftPrimarySalesContract(e.createAPIRequest,t).then(e=>e(this.axios,this.basePath))}}let ey=function(e){return{cancelOrderV3:async(t,r,n,i,a,s={})=>{let o;B("cancelOrderV3","id",t),B("cancelOrderV3","cancelOrderRequest",r);let c="/v3/orders/{id}".replace("{id}",encodeURIComponent(String(t))),f=new URL(c,j);e&&(o=e.baseOptions);let u={method:"DELETE",...o,...s},d={};null!=n&&(d["x-imx-eth-address"]=String(n)),null!=i&&(d["x-imx-eth-signature"]=String(i)),null!=a&&(d.Authorization=String(a)),d["Content-Type"]="application/json",D(f,{});let l=o&&o.headers?o.headers:{};return u.headers={...d,...l,...s.headers},u.data=U(r,u,e),{url:F(f),options:u}},createOrderV3:async(t,r,n,i,a={})=>{let s;B("createOrderV3","createOrderRequest",t);let o=new URL("/v3/orders",j);e&&(s=e.baseOptions);let c={method:"POST",...s,...a},f={};null!=r&&(f["x-imx-eth-address"]=String(r)),null!=n&&(f["x-imx-eth-signature"]=String(n)),null!=i&&(f.Authorization=String(i)),f["Content-Type"]="application/json",D(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...f,...u,...a.headers},c.data=U(t,c,e),{url:F(o),options:c}},getOrderV3:async(t,r,n,i,a={})=>{let s;B("getOrderV3","id",t);let o="/v3/orders/{id}".replace("{id}",encodeURIComponent(String(t))),c=new URL(o,j);e&&(s=e.baseOptions);let f={method:"GET",...s,...a},u={};void 0!==r&&(u.include_fees=r),void 0!==n&&(u.auxiliary_fee_percentages=n),void 0!==i&&(u.auxiliary_fee_recipients=i),D(c,u);let d=s&&s.headers?s.headers:{};return f.headers={...d,...a.headers},{url:F(c),options:f}},getSignableCancelOrderV3:async(t,r={})=>{let n;B("getSignableCancelOrderV3","getSignableCancelOrderRequest",t);let i=new URL("/v3/signable-cancel-order-details",j);e&&(n=e.baseOptions);let a={method:"POST",...n,...r},s={};s["Content-Type"]="application/json",D(i,{});let o=n&&n.headers?n.headers:{};return a.headers={...s,...o,...r.headers},a.data=U(t,a,e),{url:F(i),options:a}},getSignableOrder:async(t,r={})=>{let n;B("getSignableOrder","getSignableOrderRequestV3",t);let i=new URL("/v3/signable-order-details",j);e&&(n=e.baseOptions);let a={method:"POST",...n,...r},s={};s["Content-Type"]="application/json",D(i,{});let o=n&&n.headers?n.headers:{};return a.headers={...s,...o,...r.headers},a.data=U(t,a,e),{url:F(i),options:a}},listOrdersV3:async(t,r,n,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y,v,w,_,E,A,M,S,x,T,k,R,I={})=>{let C;let P=new URL("/v3/orders",j);e&&(C=e.baseOptions);let O={method:"GET",...C,...I},N={};void 0!==t&&(N.page_size=t),void 0!==r&&(N.cursor=r),void 0!==n&&(N.order_by=n),void 0!==i&&(N.direction=i),void 0!==a&&(N.user=a),void 0!==s&&(N.status=s),void 0!==o&&(N.min_timestamp=o),void 0!==c&&(N.max_timestamp=c),void 0!==f&&(N.updated_min_timestamp=f),void 0!==u&&(N.updated_max_timestamp=u),void 0!==d&&(N.buy_token_type=d),void 0!==l&&(N.buy_token_id=l),void 0!==h&&(N.buy_asset_id=h),void 0!==p&&(N.buy_token_address=p),void 0!==m&&(N.buy_token_name=m),void 0!==b&&(N.buy_min_quantity=b),void 0!==g&&(N.buy_max_quantity=g),void 0!==y&&(N.buy_metadata=y),void 0!==v&&(N.sell_token_type=v),void 0!==w&&(N.sell_token_id=w),void 0!==_&&(N.sell_asset_id=_),void 0!==E&&(N.sell_token_address=E),void 0!==A&&(N.sell_token_name=A),void 0!==M&&(N.sell_min_quantity=M),void 0!==S&&(N.sell_max_quantity=S),void 0!==x&&(N.sell_metadata=x),void 0!==T&&(N.auxiliary_fee_percentages=T),void 0!==k&&(N.auxiliary_fee_recipients=k),void 0!==R&&(N.include_fees=R),D(P,N);let B=C&&C.headers?C.headers:{};return O.headers={...B,...I.headers},{url:F(P),options:O}}}},ev=function(e){let t=ey(e);return{async cancelOrderV3(r,n,i,a,s,o){let c=await t.cancelOrderV3(r,n,i,a,s,o);return q(c,C.default,P,e)},async createOrderV3(r,n,i,a,s){let o=await t.createOrderV3(r,n,i,a,s);return q(o,C.default,P,e)},async getOrderV3(r,n,i,a,s){let o=await t.getOrderV3(r,n,i,a,s);return q(o,C.default,P,e)},async getSignableCancelOrderV3(r,n){let i=await t.getSignableCancelOrderV3(r,n);return q(i,C.default,P,e)},async getSignableOrder(r,n){let i=await t.getSignableOrder(r,n);return q(i,C.default,P,e)},async listOrdersV3(r,n,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y,v,w,_,E,A,M,S,x,T,k,R,I,O){let N=await t.listOrdersV3(r,n,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y,v,w,_,E,A,M,S,x,T,k,R,I,O);return q(N,C.default,P,e)}}},ew=class extends O{cancelOrderV3(e,t){return ev(this.configuration).cancelOrderV3(e.id,e.cancelOrderRequest,e.xImxEthAddress,e.xImxEthSignature,e.authorization,t).then(e=>e(this.axios,this.basePath))}createOrderV3(e,t){return ev(this.configuration).createOrderV3(e.createOrderRequest,e.xImxEthAddress,e.xImxEthSignature,e.authorization,t).then(e=>e(this.axios,this.basePath))}getOrderV3(e,t){return ev(this.configuration).getOrderV3(e.id,e.includeFees,e.auxiliaryFeePercentages,e.auxiliaryFeeRecipients,t).then(e=>e(this.axios,this.basePath))}getSignableCancelOrderV3(e,t){return ev(this.configuration).getSignableCancelOrderV3(e.getSignableCancelOrderRequest,t).then(e=>e(this.axios,this.basePath))}getSignableOrder(e,t){return ev(this.configuration).getSignableOrder(e.getSignableOrderRequestV3,t).then(e=>e(this.axios,this.basePath))}listOrdersV3(e={},t){return ev(this.configuration).listOrdersV3(e.pageSize,e.cursor,e.orderBy,e.direction,e.user,e.status,e.minTimestamp,e.maxTimestamp,e.updatedMinTimestamp,e.updatedMaxTimestamp,e.buyTokenType,e.buyTokenId,e.buyAssetId,e.buyTokenAddress,e.buyTokenName,e.buyMinQuantity,e.buyMaxQuantity,e.buyMetadata,e.sellTokenType,e.sellTokenId,e.sellAssetId,e.sellTokenAddress,e.sellTokenName,e.sellMinQuantity,e.sellMaxQuantity,e.sellMetadata,e.auxiliaryFeePercentages,e.auxiliaryFeeRecipients,e.includeFees,t).then(e=>e(this.axios,this.basePath))}},e_=function(e){return{acceptPrimarySale:async(t,r={})=>{let n;B("acceptPrimarySale","id",t);let i="/v1/primary_sales/{id}/accept".replace("{id}",encodeURIComponent(String(t))),a=new URL(i,j);e&&(n=e.baseOptions);let s={method:"POST",...n,...r},o={};await L(o,"x-imx-eth-address",e),await L(o,"x-imx-eth-signature",e),D(a,{});let c=n&&n.headers?n.headers:{};return s.headers={...o,...c,...r.headers},{url:F(a),options:s}},createPrimarySale:async(t,r={})=>{let n;let i=new URL("/v1/primary_sales",j);e&&(n=e.baseOptions);let a={method:"POST",...n,...r},s={};await L(s,"x-imx-eth-address",e),await L(s,"x-imx-eth-signature",e),s["Content-Type"]="application/json",D(i,{});let o=n&&n.headers?n.headers:{};return a.headers={...s,...o,...r.headers},a.data=U(t,a,e),{url:F(i),options:a}},getPrimarySale:async(t,r={})=>{let n;B("getPrimarySale","id",t);let i="/v1/primary_sales/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(i,j);e&&(n=e.baseOptions);let s={method:"GET",...n,...r};D(a,{});let o=n&&n.headers?n.headers:{};return s.headers={...o,...r.headers},{url:F(a),options:s}},rejectPrimarySale:async(t,r={})=>{let n;B("rejectPrimarySale","id",t);let i="/v1/primary_sales/{id}/reject".replace("{id}",encodeURIComponent(String(t))),a=new URL(i,j);e&&(n=e.baseOptions);let s={method:"POST",...n,...r},o={};await L(o,"x-imx-eth-address",e),await L(o,"x-imx-eth-signature",e),D(a,{});let c=n&&n.headers?n.headers:{};return s.headers={...o,...c,...r.headers},{url:F(a),options:s}},signableAcceptPrimarySale:async(t,r={})=>{let n;B("signableAcceptPrimarySale","id",t);let i="/v1/primary_sales/{id}/signable-accept-details".replace("{id}",encodeURIComponent(String(t))),a=new URL(i,j);e&&(n=e.baseOptions);let s={method:"POST",...n,...r};D(a,{});let o=n&&n.headers?n.headers:{};return s.headers={...o,...r.headers},{url:F(a),options:s}},signableCreatePrimarySale:async(t,r={})=>{let n;let i=new URL("/v1/primary_sales/signable-primary-sale-details",j);e&&(n=e.baseOptions);let a={method:"POST",...n,...r},s={};s["Content-Type"]="application/json",D(i,{});let o=n&&n.headers?n.headers:{};return a.headers={...s,...o,...r.headers},a.data=U(t,a,e),{url:F(i),options:a}},signableRejectPrimarySale:async(t,r={})=>{let n;B("signableRejectPrimarySale","id",t);let i="/v1/primary_sales/{id}/signable-reject-details".replace("{id}",encodeURIComponent(String(t))),a=new URL(i,j);e&&(n=e.baseOptions);let s={method:"POST",...n,...r};D(a,{});let o=n&&n.headers?n.headers:{};return s.headers={...o,...r.headers},{url:F(a),options:s}}}},eE=function(e){let t=e_(e);return{async acceptPrimarySale(r,n){let i=await t.acceptPrimarySale(r,n);return q(i,C.default,P,e)},async createPrimarySale(r,n){let i=await t.createPrimarySale(r,n);return q(i,C.default,P,e)},async getPrimarySale(r,n){let i=await t.getPrimarySale(r,n);return q(i,C.default,P,e)},async rejectPrimarySale(r,n){let i=await t.rejectPrimarySale(r,n);return q(i,C.default,P,e)},async signableAcceptPrimarySale(r,n){let i=await t.signableAcceptPrimarySale(r,n);return q(i,C.default,P,e)},async signableCreatePrimarySale(r,n){let i=await t.signableCreatePrimarySale(r,n);return q(i,C.default,P,e)},async signableRejectPrimarySale(r,n){let i=await t.signableRejectPrimarySale(r,n);return q(i,C.default,P,e)}}};class eA extends O{acceptPrimarySale(e,t){return eE(this.configuration).acceptPrimarySale(e.id,t).then(e=>e(this.axios,this.basePath))}createPrimarySale(e={},t){return eE(this.configuration).createPrimarySale(e.body,t).then(e=>e(this.axios,this.basePath))}getPrimarySale(e,t){return eE(this.configuration).getPrimarySale(e.id,t).then(e=>e(this.axios,this.basePath))}rejectPrimarySale(e,t){return eE(this.configuration).rejectPrimarySale(e.id,t).then(e=>e(this.axios,this.basePath))}signableAcceptPrimarySale(e,t){return eE(this.configuration).signableAcceptPrimarySale(e.id,t).then(e=>e(this.axios,this.basePath))}signableCreatePrimarySale(e={},t){return eE(this.configuration).signableCreatePrimarySale(e.body,t).then(e=>e(this.axios,this.basePath))}signableRejectPrimarySale(e,t){return eE(this.configuration).signableRejectPrimarySale(e.id,t).then(e=>e(this.axios,this.basePath))}}let eM=function(e){return{getProject:async(t,r,n,i={})=>{let a;B("getProject","id",t),B("getProject","iMXSignature",r),B("getProject","iMXTimestamp",n);let s="/v1/projects/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(s,j);e&&(a=e.baseOptions);let c={method:"GET",...a,...i},f={};null!=r&&(f["IMX-Signature"]=String(r)),null!=n&&(f["IMX-Timestamp"]=String(n)),D(o,{});let u=a&&a.headers?a.headers:{};return c.headers={...f,...u,...i.headers},{url:F(o),options:c}}}},eS=function(e){let t=eM(e);return{async getProject(r,n,i,a){let s=await t.getProject(r,n,i,a);return q(s,C.default,P,e)}}};class ex extends O{getProject(e,t){return eS(this.configuration).getProject(e.id,e.iMXSignature,e.iMXTimestamp,t).then(e=>e(this.axios,this.basePath))}}let eT=function(e){return{getToken:async(t,r={})=>{let n;B("getToken","address",t);let i="/v1/tokens/{address}".replace("{address}",encodeURIComponent(String(t))),a=new URL(i,j);e&&(n=e.baseOptions);let s={method:"GET",...n,...r};D(a,{});let o=n&&n.headers?n.headers:{};return s.headers={...o,...r.headers},{url:F(a),options:s}},listTokens:async(t,r,n,i,a,s,o={})=>{let c;let f=new URL("/v1/tokens",j);e&&(c=e.baseOptions);let u={method:"GET",...c,...o},d={};void 0!==t&&(d.page_size=t),void 0!==r&&(d.cursor=r),void 0!==n&&(d.order_by=n),void 0!==i&&(d.direction=i),void 0!==a&&(d.address=a),void 0!==s&&(d.symbols=s),D(f,d);let l=c&&c.headers?c.headers:{};return u.headers={...l,...o.headers},{url:F(f),options:u}}}},ek=function(e){let t=eT(e);return{async getToken(r,n){let i=await t.getToken(r,n);return q(i,C.default,P,e)},async listTokens(r,n,i,a,s,o,c){let f=await t.listTokens(r,n,i,a,s,o,c);return q(f,C.default,P,e)}}},eR=class extends O{getToken(e,t){return ek(this.configuration).getToken(e.address,t).then(e=>e(this.axios,this.basePath))}listTokens(e={},t){return ek(this.configuration).listTokens(e.pageSize,e.cursor,e.orderBy,e.direction,e.address,e.symbols,t).then(e=>e(this.axios,this.basePath))}},eI=function(e){return{createTradeV3:async(t,r,n,i,a={})=>{let s;B("createTradeV3","createTradeRequest",t);let o=new URL("/v3/trades",j);e&&(s=e.baseOptions);let c={method:"POST",...s,...a},f={};null!=r&&(f["x-imx-eth-address"]=String(r)),null!=n&&(f["x-imx-eth-signature"]=String(n)),null!=i&&(f.Authorization=String(i)),f["Content-Type"]="application/json",D(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...f,...u,...a.headers},c.data=U(t,c,e),{url:F(o),options:c}},getSignableTrade:async(t,r={})=>{let n;B("getSignableTrade","getSignableTradeRequest",t);let i=new URL("/v3/signable-trade-details",j);e&&(n=e.baseOptions);let a={method:"POST",...n,...r},s={};s["Content-Type"]="application/json",D(i,{});let o=n&&n.headers?n.headers:{};return a.headers={...s,...o,...r.headers},a.data=U(t,a,e),{url:F(i),options:a}},getTradeV3:async(t,r={})=>{let n;B("getTradeV3","id",t);let i="/v3/trades/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(i,j);e&&(n=e.baseOptions);let s={method:"GET",...n,...r};D(a,{});let o=n&&n.headers?n.headers:{};return s.headers={...o,...r.headers},{url:F(a),options:s}},listTradesV3:async(t,r,n,i,a,s,o,c,f,u,d,l={})=>{let h;let p=new URL("/v3/trades",j);e&&(h=e.baseOptions);let m={method:"GET",...h,...l},b={};void 0!==t&&(b.party_a_token_type=t),void 0!==r&&(b.party_a_token_address=r),void 0!==n&&(b.party_b_token_type=n),void 0!==i&&(b.party_b_token_address=i),void 0!==a&&(b.party_b_token_id=a),void 0!==s&&(b.page_size=s),void 0!==o&&(b.cursor=o),void 0!==c&&(b.order_by=c),void 0!==f&&(b.direction=f),void 0!==u&&(b.min_timestamp=u),void 0!==d&&(b.max_timestamp=d),D(p,b);let g=h&&h.headers?h.headers:{};return m.headers={...g,...l.headers},{url:F(p),options:m}}}},eC=function(e){let t=eI(e);return{async createTradeV3(r,n,i,a,s){let o=await t.createTradeV3(r,n,i,a,s);return q(o,C.default,P,e)},async getSignableTrade(r,n){let i=await t.getSignableTrade(r,n);return q(i,C.default,P,e)},async getTradeV3(r,n){let i=await t.getTradeV3(r,n);return q(i,C.default,P,e)},async listTradesV3(r,n,i,a,s,o,c,f,u,d,l,h){let p=await t.listTradesV3(r,n,i,a,s,o,c,f,u,d,l,h);return q(p,C.default,P,e)}}};class eP extends O{createTradeV3(e,t){return eC(this.configuration).createTradeV3(e.createTradeRequest,e.xImxEthAddress,e.xImxEthSignature,e.authorization,t).then(e=>e(this.axios,this.basePath))}getSignableTrade(e,t){return eC(this.configuration).getSignableTrade(e.getSignableTradeRequest,t).then(e=>e(this.axios,this.basePath))}getTradeV3(e,t){return eC(this.configuration).getTradeV3(e.id,t).then(e=>e(this.axios,this.basePath))}listTradesV3(e={},t){return eC(this.configuration).listTradesV3(e.partyATokenType,e.partyATokenAddress,e.partyBTokenType,e.partyBTokenAddress,e.partyBTokenId,e.pageSize,e.cursor,e.orderBy,e.direction,e.minTimestamp,e.maxTimestamp,t).then(e=>e(this.axios,this.basePath))}}let eO=function(e){return{createTransfer:async(t,r,n,i,a={})=>{let s;B("createTransfer","createTransferRequestV2",t);let o=new URL("/v2/transfers",j);e&&(s=e.baseOptions);let c={method:"POST",...s,...a},f={};null!=r&&(f["x-imx-eth-address"]=String(r)),null!=n&&(f["x-imx-eth-signature"]=String(n)),null!=i&&(f.Authorization=String(i)),f["Content-Type"]="application/json",D(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...f,...u,...a.headers},c.data=U(t,c,e),{url:F(o),options:c}},createTransferV1:async(t,r,n,i,a={})=>{let s;B("createTransferV1","createTransferRequest",t);let o=new URL("/v1/transfers",j);e&&(s=e.baseOptions);let c={method:"POST",...s,...a},f={};null!=r&&(f["x-imx-eth-address"]=String(r)),null!=n&&(f["x-imx-eth-signature"]=String(n)),null!=i&&(f.Authorization=String(i)),f["Content-Type"]="application/json",D(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...f,...u,...a.headers},c.data=U(t,c,e),{url:F(o),options:c}},getSignableTransfer:async(t,r={})=>{let n;B("getSignableTransfer","getSignableTransferRequestV2",t);let i=new URL("/v2/signable-transfer-details",j);e&&(n=e.baseOptions);let a={method:"POST",...n,...r},s={};s["Content-Type"]="application/json",D(i,{});let o=n&&n.headers?n.headers:{};return a.headers={...s,...o,...r.headers},a.data=U(t,a,e),{url:F(i),options:a}},getSignableTransferV1:async(t,r={})=>{let n;B("getSignableTransferV1","getSignableTransferRequest",t);let i=new URL("/v1/signable-transfer-details",j);e&&(n=e.baseOptions);let a={method:"POST",...n,...r},s={};s["Content-Type"]="application/json",D(i,{});let o=n&&n.headers?n.headers:{};return a.headers={...s,...o,...r.headers},a.data=U(t,a,e),{url:F(i),options:a}},getTransfer:async(t,r={})=>{let n;B("getTransfer","id",t);let i="/v1/transfers/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(i,j);e&&(n=e.baseOptions);let s={method:"GET",...n,...r};D(a,{});let o=n&&n.headers?n.headers:{};return s.headers={...o,...r.headers},{url:F(a),options:s}},listTransfers:async(t,r,n,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y={})=>{let v;let w=new URL("/v1/transfers",j);e&&(v=e.baseOptions);let _={method:"GET",...v,...y},E={};void 0!==t&&(E.page_size=t),void 0!==r&&(E.cursor=r),void 0!==n&&(E.order_by=n),void 0!==i&&(E.direction=i),void 0!==a&&(E.user=a),void 0!==s&&(E.receiver=s),void 0!==o&&(E.status=o),void 0!==c&&(E.min_timestamp=c),void 0!==f&&(E.max_timestamp=f),void 0!==u&&(E.token_type=u),void 0!==d&&(E.token_id=d),void 0!==l&&(E.asset_id=l),void 0!==h&&(E.token_address=h),void 0!==p&&(E.token_name=p),void 0!==m&&(E.min_quantity=m),void 0!==b&&(E.max_quantity=b),void 0!==g&&(E.metadata=g),D(w,E);let A=v&&v.headers?v.headers:{};return _.headers={...A,...y.headers},{url:F(w),options:_}}}},eN=function(e){let t=eO(e);return{async createTransfer(r,n,i,a,s){let o=await t.createTransfer(r,n,i,a,s);return q(o,C.default,P,e)},async createTransferV1(r,n,i,a,s){let o=await t.createTransferV1(r,n,i,a,s);return q(o,C.default,P,e)},async getSignableTransfer(r,n){let i=await t.getSignableTransfer(r,n);return q(i,C.default,P,e)},async getSignableTransferV1(r,n){let i=await t.getSignableTransferV1(r,n);return q(i,C.default,P,e)},async getTransfer(r,n){let i=await t.getTransfer(r,n);return q(i,C.default,P,e)},async listTransfers(r,n,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y,v){let w=await t.listTransfers(r,n,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y,v);return q(w,C.default,P,e)}}};class ej extends O{createTransfer(e,t){return eN(this.configuration).createTransfer(e.createTransferRequestV2,e.xImxEthAddress,e.xImxEthSignature,e.authorization,t).then(e=>e(this.axios,this.basePath))}createTransferV1(e,t){return eN(this.configuration).createTransferV1(e.createTransferRequest,e.xImxEthAddress,e.xImxEthSignature,e.authorization,t).then(e=>e(this.axios,this.basePath))}getSignableTransfer(e,t){return eN(this.configuration).getSignableTransfer(e.getSignableTransferRequestV2,t).then(e=>e(this.axios,this.basePath))}getSignableTransferV1(e,t){return eN(this.configuration).getSignableTransferV1(e.getSignableTransferRequest,t).then(e=>e(this.axios,this.basePath))}getTransfer(e,t){return eN(this.configuration).getTransfer(e.id,t).then(e=>e(this.axios,this.basePath))}listTransfers(e={},t){return eN(this.configuration).listTransfers(e.pageSize,e.cursor,e.orderBy,e.direction,e.user,e.receiver,e.status,e.minTimestamp,e.maxTimestamp,e.tokenType,e.tokenId,e.assetId,e.tokenAddress,e.tokenName,e.minQuantity,e.maxQuantity,e.metadata,t).then(e=>e(this.axios,this.basePath))}}let eB=function(e){return{getSignableRegistration:async(t,r={})=>{let n;B("getSignableRegistration","getSignableRegistrationRequest",t);let i=new URL("/v1/signable-registration",j);e&&(n=e.baseOptions);let a={method:"POST",...n,...r},s={};s["Content-Type"]="application/json",D(i,{});let o=n&&n.headers?n.headers:{};return a.headers={...s,...o,...r.headers},a.data=U(t,a,e),{url:F(i),options:a}},getSignableRegistrationOffchain:async(t,r={})=>{let n;B("getSignableRegistrationOffchain","getSignableRegistrationRequest",t);let i=new URL("/v1/signable-registration-offchain",j);e&&(n=e.baseOptions);let a={method:"POST",...n,...r},s={};s["Content-Type"]="application/json",D(i,{});let o=n&&n.headers?n.headers:{};return a.headers={...s,...o,...r.headers},a.data=U(t,a,e),{url:F(i),options:a}},getUsers:async(t,r={})=>{let n;B("getUsers","user",t);let i="/v1/users/{user}".replace("{user}",encodeURIComponent(String(t))),a=new URL(i,j);e&&(n=e.baseOptions);let s={method:"GET",...n,...r};D(a,{});let o=n&&n.headers?n.headers:{};return s.headers={...o,...r.headers},{url:F(a),options:s}},registerPassportUser:async(t,r,n={})=>{let i;B("registerPassportUser","authorization",t),B("registerPassportUser","registerPassportUserRequest",r);let a=new URL("/v1/passport/users",j);e&&(i=e.baseOptions);let s={method:"POST",...i,...n},o={};null!=t&&(o.Authorization=String(t)),o["Content-Type"]="application/json",D(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...o,...c,...n.headers},s.data=U(r,s,e),{url:F(a),options:s}},registerPassportUserV2:async(t,r,n={})=>{let i;B("registerPassportUserV2","authorization",t),B("registerPassportUserV2","registerPassportUserRequest",r);let a=new URL("/v2/passport/users",j);e&&(i=e.baseOptions);let s={method:"POST",...i,...n},o={};null!=t&&(o.Authorization=String(t)),o["Content-Type"]="application/json",D(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...o,...c,...n.headers},s.data=U(r,s,e),{url:F(a),options:s}},registerUser:async(t,r={})=>{let n;B("registerUser","registerUserRequest",t);let i=new URL("/v1/users",j);e&&(n=e.baseOptions);let a={method:"POST",...n,...r},s={};s["Content-Type"]="application/json",D(i,{});let o=n&&n.headers?n.headers:{};return a.headers={...s,...o,...r.headers},a.data=U(t,a,e),{url:F(i),options:a}}}},eL=function(e){let t=eB(e);return{async getSignableRegistration(r,n){let i=await t.getSignableRegistration(r,n);return q(i,C.default,P,e)},async getSignableRegistrationOffchain(r,n){let i=await t.getSignableRegistrationOffchain(r,n);return q(i,C.default,P,e)},async getUsers(r,n){let i=await t.getUsers(r,n);return q(i,C.default,P,e)},async registerPassportUser(r,n,i){let a=await t.registerPassportUser(r,n,i);return q(a,C.default,P,e)},async registerPassportUserV2(r,n,i){let a=await t.registerPassportUserV2(r,n,i);return q(a,C.default,P,e)},async registerUser(r,n){let i=await t.registerUser(r,n);return q(i,C.default,P,e)}}};class eD extends O{getSignableRegistration(e,t){return eL(this.configuration).getSignableRegistration(e.getSignableRegistrationRequest,t).then(e=>e(this.axios,this.basePath))}getSignableRegistrationOffchain(e,t){return eL(this.configuration).getSignableRegistrationOffchain(e.getSignableRegistrationRequest,t).then(e=>e(this.axios,this.basePath))}getUsers(e,t){return eL(this.configuration).getUsers(e.user,t).then(e=>e(this.axios,this.basePath))}registerPassportUser(e,t){return eL(this.configuration).registerPassportUser(e.authorization,e.registerPassportUserRequest,t).then(e=>e(this.axios,this.basePath))}registerPassportUserV2(e,t){return eL(this.configuration).registerPassportUserV2(e.authorization,e.registerPassportUserRequest,t).then(e=>e(this.axios,this.basePath))}registerUser(e,t){return eL(this.configuration).registerUser(e.registerUserRequest,t).then(e=>e(this.axios,this.basePath))}}let eU=function(e){return{createWithdrawal:async(t,r,n,i={})=>{let a;B("createWithdrawal","xImxEthAddress",t),B("createWithdrawal","xImxEthSignature",r),B("createWithdrawal","createWithdrawalRequest",n);let s=new URL("/v1/withdrawals",j);e&&(a=e.baseOptions);let o={method:"POST",...a,...i},c={};null!=t&&(c["x-imx-eth-address"]=String(t)),null!=r&&(c["x-imx-eth-signature"]=String(r)),c["Content-Type"]="application/json",D(s,{});let f=a&&a.headers?a.headers:{};return o.headers={...c,...f,...i.headers},o.data=U(n,o,e),{url:F(s),options:o}},createWithdrawalV2:async(t,r,n,i={})=>{let a;B("createWithdrawalV2","xImxEthAddress",t),B("createWithdrawalV2","xImxEthSignature",r),B("createWithdrawalV2","createWithdrawalRequestV2",n);let s=new URL("/v2/withdrawals",j);e&&(a=e.baseOptions);let o={method:"POST",...a,...i},c={};null!=t&&(c["x-imx-eth-address"]=String(t)),null!=r&&(c["x-imx-eth-signature"]=String(r)),c["Content-Type"]="application/json",D(s,{});let f=a&&a.headers?a.headers:{};return o.headers={...c,...f,...i.headers},o.data=U(n,o,e),{url:F(s),options:o}},getSignableWithdrawal:async(t,r={})=>{let n;B("getSignableWithdrawal","getSignableWithdrawalRequest",t);let i=new URL("/v1/signable-withdrawal-details",j);e&&(n=e.baseOptions);let a={method:"POST",...n,...r},s={};s["Content-Type"]="application/json",D(i,{});let o=n&&n.headers?n.headers:{};return a.headers={...s,...o,...r.headers},a.data=U(t,a,e),{url:F(i),options:a}},getSignableWithdrawalV2:async(t,r={})=>{let n;B("getSignableWithdrawalV2","getSignableWithdrawalRequest",t);let i=new URL("/v2/signable-withdrawal-details",j);e&&(n=e.baseOptions);let a={method:"POST",...n,...r},s={};s["Content-Type"]="application/json",D(i,{});let o=n&&n.headers?n.headers:{};return a.headers={...s,...o,...r.headers},a.data=U(t,a,e),{url:F(i),options:a}},getWithdrawal:async(t,r={})=>{let n;B("getWithdrawal","id",t);let i="/v1/withdrawals/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(i,j);e&&(n=e.baseOptions);let s={method:"GET",...n,...r};D(a,{});let o=n&&n.headers?n.headers:{};return s.headers={...o,...r.headers},{url:F(a),options:s}},listWithdrawals:async(t,r,n,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y,v={})=>{let w;let _=new URL("/v1/withdrawals",j);e&&(w=e.baseOptions);let E={method:"GET",...w,...v},A={};void 0!==t&&(A.withdrawn_to_wallet=t),void 0!==r&&(A.rollup_status=r),void 0!==n&&(A.page_size=n),void 0!==i&&(A.cursor=i),void 0!==a&&(A.order_by=a),void 0!==s&&(A.direction=s),void 0!==o&&(A.user=o),void 0!==c&&(A.status=c),void 0!==f&&(A.min_timestamp=f),void 0!==u&&(A.max_timestamp=u),void 0!==d&&(A.token_type=d),void 0!==l&&(A.token_id=l),void 0!==h&&(A.asset_id=h),void 0!==p&&(A.token_address=p),void 0!==m&&(A.token_name=m),void 0!==b&&(A.min_quantity=b),void 0!==g&&(A.max_quantity=g),void 0!==y&&(A.metadata=y),D(_,A);let M=w&&w.headers?w.headers:{};return E.headers={...M,...v.headers},{url:F(_),options:E}}}},eF=function(e){let t=eU(e);return{async createWithdrawal(r,n,i,a){let s=await t.createWithdrawal(r,n,i,a);return q(s,C.default,P,e)},async createWithdrawalV2(r,n,i,a){let s=await t.createWithdrawalV2(r,n,i,a);return q(s,C.default,P,e)},async getSignableWithdrawal(r,n){let i=await t.getSignableWithdrawal(r,n);return q(i,C.default,P,e)},async getSignableWithdrawalV2(r,n){let i=await t.getSignableWithdrawalV2(r,n);return q(i,C.default,P,e)},async getWithdrawal(r,n){let i=await t.getWithdrawal(r,n);return q(i,C.default,P,e)},async listWithdrawals(r,n,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y,v,w){let _=await t.listWithdrawals(r,n,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y,v,w);return q(_,C.default,P,e)}}};class eq extends O{createWithdrawal(e,t){return eF(this.configuration).createWithdrawal(e.xImxEthAddress,e.xImxEthSignature,e.createWithdrawalRequest,t).then(e=>e(this.axios,this.basePath))}createWithdrawalV2(e,t){return eF(this.configuration).createWithdrawalV2(e.xImxEthAddress,e.xImxEthSignature,e.createWithdrawalRequestV2,t).then(e=>e(this.axios,this.basePath))}getSignableWithdrawal(e,t){return eF(this.configuration).getSignableWithdrawal(e.getSignableWithdrawalRequest,t).then(e=>e(this.axios,this.basePath))}getSignableWithdrawalV2(e,t){return eF(this.configuration).getSignableWithdrawalV2(e.getSignableWithdrawalRequest,t).then(e=>e(this.axios,this.basePath))}getWithdrawal(e,t){return eF(this.configuration).getWithdrawal(e.id,t).then(e=>e(this.axios,this.basePath))}listWithdrawals(e={},t){return eF(this.configuration).listWithdrawals(e.withdrawnToWallet,e.rollupStatus,e.pageSize,e.cursor,e.orderBy,e.direction,e.user,e.status,e.minTimestamp,e.maxTimestamp,e.tokenType,e.tokenId,e.assetId,e.tokenAddress,e.tokenName,e.minQuantity,e.maxQuantity,e.metadata,t).then(e=>e(this.axios,this.basePath))}}let ez=class{apiKey;username;password;accessToken;basePath;baseOptions;formDataCtor;constructor(e={}){this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=e.baseOptions,this.formDataCtor=e.formDataCtor}isJsonMime(e){let t=RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}};var eK=Object.freeze({__proto__:null,AcceptPrimarySaleBadRequestBodyAllOf1CodeEnum:{ValidationError:"VALIDATION_ERROR"},AcceptPrimarySaleForbiddenBodyAllOf1CodeEnum:{AuthenticationError:"AUTHENTICATION_ERROR"},AcceptPrimarySaleInternalServerErrorBodyAllOf1CodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},AcceptPrimarySaleNotFoundBodyAllOf1CodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},AcceptPrimarySaleNotImplementedBodyAllOf1CodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},AcceptPrimarySaleOKBodyResultFeesItemsTypeEnum:{Ecosystem:"ECOSYSTEM",Protocol:"PROTOCOL"},AcceptPrimarySaleOKBodyResultStatusEnum:{Pending:"PENDING",Active:"ACTIVE",Invalid:"INVALID",InProgress:"IN_PROGRESS",Accepted:"ACCEPTED",Failed:"FAILED",Rejected:"REJECTED",Expired:"EXPIRED"},AcceptPrimarySaleUnauthorizedBodyAllOf1CodeEnum:{UnauthorisedRequest:"UNAUTHORISED_REQUEST"},AcceptPrimarySaleUnprocessableEntityBodyAllOf1CodeEnum:{UnprocessableEntityError:"UNPROCESSABLE_ENTITY_ERROR"},AssetsApi:H,AssetsApiAxiosParamCreator:z,AssetsApiFactory:function(e,t,r){let n=K(e);return{getAsset:(e,i,a,s)=>n.getAsset(e,i,a,s).then(e=>e(r,t)),listAssets:(e,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y,v)=>n.listAssets(e,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y,v).then(e=>e(r,t))}},AssetsApiFp:K,BalancesApi:G,BalancesApiAxiosParamCreator:V,BalancesApiFactory:function(e,t,r){let n=W(e);return{getBalance:(e,i,a)=>n.getBalance(e,i,a).then(e=>e(r,t)),listBalances:(e,i,a,s,o,c)=>n.listBalances(e,i,a,s,o,c).then(e=>e(r,t))}},BalancesApiFp:W,CollectionsApi:$,CollectionsApiAxiosParamCreator:J,CollectionsApiFactory:function(e,t,r){let n=Z(e);return{createCollection:(e,i,a,s,o)=>n.createCollection(e,i,a,s,o).then(e=>e(r,t)),getCollection:(e,i)=>n.getCollection(e,i).then(e=>e(r,t)),listCollectionFilters:(e,i,a,s)=>n.listCollectionFilters(e,i,a,s).then(e=>e(r,t)),listCollections:(e,i,a,s,o,c,f,u)=>n.listCollections(e,i,a,s,o,c,f,u).then(e=>e(r,t)),summarizeCollections:(e,i)=>n.summarizeCollections(e,i).then(e=>e(r,t)),updateCollection:(e,i,a,s,o)=>n.updateCollection(e,i,a,s,o).then(e=>e(r,t))}},CollectionsApiFp:Z,Configuration:ez,CreateExchangeAndURLAPIRequestProviderEnum:{Moonpay:"moonpay",Layerswap:"layerswap"},CreateExchangeAndURLAPIRequestTypeEnum:{Onramp:"onramp",Offramp:"offramp"},CreatePrimarySaleBadRequestBodyAllOf1CodeEnum:{ValidationError:"VALIDATION_ERROR"},CreatePrimarySaleCreatedBodyResultFeesItemsTypeEnum:{Ecosystem:"ECOSYSTEM",Protocol:"PROTOCOL"},CreatePrimarySaleCreatedBodyResultStatusEnum:{Pending:"PENDING",Active:"ACTIVE",Invalid:"INVALID",InProgress:"IN_PROGRESS",Accepted:"ACCEPTED",Failed:"FAILED",Rejected:"REJECTED",Expired:"EXPIRED"},CreatePrimarySaleForbiddenBodyAllOf1CodeEnum:{AuthenticationError:"AUTHENTICATION_ERROR"},CreatePrimarySaleInternalServerErrorBodyAllOf1CodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},CreatePrimarySaleNotFoundBodyAllOf1CodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},CreatePrimarySaleNotImplementedBodyAllOf1CodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},CreatePrimarySaleParamsBodyFeesItemsTypeEnum:{Ecosystem:"ECOSYSTEM",Protocol:"PROTOCOL"},CreatePrimarySaleUnauthorizedBodyAllOf1CodeEnum:{UnauthorisedRequest:"UNAUTHORISED_REQUEST"},CreateProjectGroupRequestChainTypeEnum:{Starkex:"starkex",Zkevm:"zkevm"},DepositsApi:Q,DepositsApiAxiosParamCreator:X,DepositsApiFactory:function(e,t,r){let n=Y(e);return{getDeposit:(e,i)=>n.getDeposit(e,i).then(e=>e(r,t)),getSignableDeposit:(e,i)=>n.getSignableDeposit(e,i).then(e=>e(r,t)),listDeposits:(e,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y,v)=>n.listDeposits(e,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y,v).then(e=>e(r,t))}},DepositsApiFp:Y,EncodeAssetRequestTokenTypeEnum:{Eth:"ETH",Erc20:"ERC20",Erc721:"ERC721"},EncodingApi:er,EncodingApiAxiosParamCreator:ee,EncodingApiFactory:function(e,t,r){let n=et(e);return{encodeAsset:(e,i,a)=>n.encodeAsset(e,i,a).then(e=>e(r,t))}},EncodingApiFp:et,ExchangesApi:ea,ExchangesApiAxiosParamCreator:en,ExchangesApiFactory:function(e,t,r){let n=ei(e);return{createExchange:(e,i)=>n.createExchange(e,i).then(e=>e(r,t)),createExchangeTransfer:(e,i,a,s,o,c)=>n.createExchangeTransfer(e,i,a,s,o,c).then(e=>e(r,t)),getExchange:(e,i)=>n.getExchange(e,i).then(e=>e(r,t)),getExchangeSignableTransfer:(e,i,a)=>n.getExchangeSignableTransfer(e,i,a).then(e=>e(r,t)),getExchanges:(e,i,a,s,o,c,f,u,d,l)=>n.getExchanges(e,i,a,s,o,c,f,u,d,l).then(e=>e(r,t))}},ExchangesApiFp:ei,ExperimentalCreatePrimarySaleBadRequestBodyAllOf1CodeEnum:{ValidationError:"VALIDATION_ERROR"},ExperimentalCreatePrimarySaleCreatedBodyResultFeesItemsTypeEnum:{Ecosystem:"ECOSYSTEM",Protocol:"PROTOCOL"},ExperimentalCreatePrimarySaleCreatedBodyResultStatusEnum:{Pending:"PENDING",Active:"ACTIVE",Invalid:"INVALID",InProgress:"IN_PROGRESS",Accepted:"ACCEPTED",Rejected:"REJECTED",Expired:"EXPIRED"},ExperimentalCreatePrimarySaleForbiddenBodyAllOf1CodeEnum:{AuthenticationError:"AUTHENTICATION_ERROR"},ExperimentalCreatePrimarySaleInternalServerErrorBodyAllOf1CodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},ExperimentalCreatePrimarySaleNotFoundBodyAllOf1CodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},ExperimentalCreatePrimarySaleNotImplementedBodyAllOf1CodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},ExperimentalCreatePrimarySaleParamsBodyFeesItemsTypeEnum:{Ecosystem:"ECOSYSTEM",Protocol:"PROTOCOL"},ExperimentalCreatePrimarySaleUnauthorizedBodyAllOf1CodeEnum:{UnauthorisedRequest:"UNAUTHORISED_REQUEST"},ExperimentalGetPrimarySaleBadRequestBodyAllOf1CodeEnum:{ValidationError:"VALIDATION_ERROR"},ExperimentalGetPrimarySaleInternalServerErrorBodyAllOf1CodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},ExperimentalGetPrimarySaleNotFoundBodyAllOf1CodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},ExperimentalGetPrimarySaleNotImplementedBodyAllOf1CodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},ExperimentalGetPrimarySaleOKBodyResultFeesItemsTypeEnum:{Ecosystem:"ECOSYSTEM",Protocol:"PROTOCOL"},ExperimentalGetPrimarySaleOKBodyResultStatusEnum:{Pending:"PENDING",Active:"ACTIVE",Invalid:"INVALID",InProgress:"IN_PROGRESS",Accepted:"ACCEPTED",Rejected:"REJECTED",Expired:"EXPIRED"},FeeTokenTypeEnum:{Eth:"ETH",Erc20:"ERC20"},GetMetadataRefreshResponseStatusEnum:{Queued:"queued",InProgress:"in_progress",Completed:"completed"},GetPrimarySaleBadRequestBodyAllOf1CodeEnum:{ValidationError:"VALIDATION_ERROR"},GetPrimarySaleInternalServerErrorBodyAllOf1CodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},GetPrimarySaleNotFoundBodyAllOf1CodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},GetPrimarySaleNotImplementedBodyAllOf1CodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},GetPrimarySaleOKBodyResultFeesItemsTypeEnum:{Ecosystem:"ECOSYSTEM",Protocol:"PROTOCOL"},GetPrimarySaleOKBodyResultStatusEnum:{Pending:"PENDING",Active:"ACTIVE",Invalid:"INVALID",InProgress:"IN_PROGRESS",Accepted:"ACCEPTED",Failed:"FAILED",Rejected:"REJECTED",Expired:"EXPIRED"},MetadataApi:ec,MetadataApiAxiosParamCreator:es,MetadataApiFactory:function(e,t,r){let n=eo(e);return{addMetadataSchemaToCollection:(e,i,a,s,o)=>n.addMetadataSchemaToCollection(e,i,a,s,o).then(e=>e(r,t)),getMetadataSchema:(e,i)=>n.getMetadataSchema(e,i).then(e=>e(r,t)),updateMetadataSchemaByName:(e,i,a,s,o,c)=>n.updateMetadataSchemaByName(e,i,a,s,o,c).then(e=>e(r,t))}},MetadataApiFp:eo,MetadataRefreshExcludingSummaryStatusEnum:{Queued:"queued",InProgress:"in_progress",Completed:"completed"},MetadataRefreshesApi:ed,MetadataRefreshesApiAxiosParamCreator:ef,MetadataRefreshesApiFactory:function(e,t,r){let n=eu(e);return{getAListOfMetadataRefreshes:(e,i,a,s,o,c,f)=>n.getAListOfMetadataRefreshes(e,i,a,s,o,c,f).then(e=>e(r,t)),getMetadataRefreshErrors:(e,i,a,s,o,c,f)=>n.getMetadataRefreshErrors(e,i,a,s,o,c,f).then(e=>e(r,t)),getMetadataRefreshResults:(e,i,a,s,o)=>n.getMetadataRefreshResults(e,i,a,s,o).then(e=>e(r,t)),requestAMetadataRefresh:(e,i,a,s,o)=>n.requestAMetadataRefresh(e,i,a,s,o).then(e=>e(r,t))}},MetadataRefreshesApiFp:eu,MetadataSchemaRequestTypeEnum:{Enum:"enum",Text:"text",Boolean:"boolean",Continuous:"continuous",Discrete:"discrete"},MintsApi:ep,MintsApiAxiosParamCreator:el,MintsApiFactory:function(e,t,r){let n=eh(e);return{getMint:(e,i)=>n.getMint(e,i).then(e=>e(r,t)),getMintableTokenDetailsByClientTokenId:(e,i,a)=>n.getMintableTokenDetailsByClientTokenId(e,i,a).then(e=>e(r,t)),listMints:(e,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y)=>n.listMints(e,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y).then(e=>e(r,t)),mintTokens:(e,i)=>n.mintTokens(e,i).then(e=>e(r,t))}},MintsApiFp:eh,NftCheckoutPrimaryApi:eg,NftCheckoutPrimaryApiAxiosParamCreator:em,NftCheckoutPrimaryApiFactory:function(e,t,r){let n=eb(e);return{createNftPrimary:(e,i)=>n.createNftPrimary(e,i).then(e=>e(r,t)),getCurrenciesNFTCheckoutPrimary:(e,i,a)=>n.getCurrenciesNFTCheckoutPrimary(e,i,a).then(e=>e(r,t)),getNftPrimaryTransaction:(e,i)=>n.getNftPrimaryTransaction(e,i).then(e=>e(r,t)),getNftPrimaryTransactions:(e,i,a,s,o,c,f,u,d,l,h,p)=>n.getNftPrimaryTransactions(e,i,a,s,o,c,f,u,d,l,h,p).then(e=>e(r,t)),registerNftPrimarySalesContract:(e,i)=>n.registerNftPrimarySalesContract(e,i).then(e=>e(r,t))}},NftCheckoutPrimaryApiFp:eb,OrdersApi:ew,OrdersApiAxiosParamCreator:ey,OrdersApiFactory:function(e,t,r){let n=ev(e);return{cancelOrderV3:(e,i,a,s,o,c)=>n.cancelOrderV3(e,i,a,s,o,c).then(e=>e(r,t)),createOrderV3:(e,i,a,s,o)=>n.createOrderV3(e,i,a,s,o).then(e=>e(r,t)),getOrderV3:(e,i,a,s,o)=>n.getOrderV3(e,i,a,s,o).then(e=>e(r,t)),getSignableCancelOrderV3:(e,i)=>n.getSignableCancelOrderV3(e,i).then(e=>e(r,t)),getSignableOrder:(e,i)=>n.getSignableOrder(e,i).then(e=>e(r,t)),listOrdersV3:(e,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y,v,w,_,E,A,M,S,x,T,k,R,I,C,P)=>n.listOrdersV3(e,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y,v,w,_,E,A,M,S,x,T,k,R,I,C,P).then(e=>e(r,t))}},OrdersApiFp:ev,PrimarySalesApi:eA,PrimarySalesApiAxiosParamCreator:e_,PrimarySalesApiFactory:function(e,t,r){let n=eE(e);return{acceptPrimarySale:(e,i)=>n.acceptPrimarySale(e,i).then(e=>e(r,t)),createPrimarySale:(e,i)=>n.createPrimarySale(e,i).then(e=>e(r,t)),getPrimarySale:(e,i)=>n.getPrimarySale(e,i).then(e=>e(r,t)),rejectPrimarySale:(e,i)=>n.rejectPrimarySale(e,i).then(e=>e(r,t)),signableAcceptPrimarySale:(e,i)=>n.signableAcceptPrimarySale(e,i).then(e=>e(r,t)),signableCreatePrimarySale:(e,i)=>n.signableCreatePrimarySale(e,i).then(e=>e(r,t)),signableRejectPrimarySale:(e,i)=>n.signableRejectPrimarySale(e,i).then(e=>e(r,t))}},PrimarySalesApiFp:eE,ProjectsApi:ex,ProjectsApiAxiosParamCreator:eM,ProjectsApiFactory:function(e,t,r){let n=eS(e);return{getProject:(e,i,a,s)=>n.getProject(e,i,a,s).then(e=>e(r,t))}},ProjectsApiFp:eS,RejectPrimarySaleBadRequestBodyAllOf1CodeEnum:{ValidationError:"VALIDATION_ERROR"},RejectPrimarySaleForbiddenBodyAllOf1CodeEnum:{AuthenticationError:"AUTHENTICATION_ERROR"},RejectPrimarySaleInternalServerErrorBodyAllOf1CodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},RejectPrimarySaleNotFoundBodyAllOf1CodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},RejectPrimarySaleNotImplementedBodyAllOf1CodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},RejectPrimarySaleOKBodyResultFeesItemsTypeEnum:{Ecosystem:"ECOSYSTEM",Protocol:"PROTOCOL"},RejectPrimarySaleOKBodyResultStatusEnum:{Pending:"PENDING",Active:"ACTIVE",Invalid:"INVALID",InProgress:"IN_PROGRESS",Accepted:"ACCEPTED",Failed:"FAILED",Rejected:"REJECTED",Expired:"EXPIRED"},RejectPrimarySaleUnauthorizedBodyAllOf1CodeEnum:{UnauthorisedRequest:"UNAUTHORISED_REQUEST"},RejectPrimarySaleUnprocessableEntityBodyAllOf1CodeEnum:{UnprocessableEntityError:"UNPROCESSABLE_ENTITY_ERROR"},SignableAcceptPrimarySaleBadRequestBodyAllOf1CodeEnum:{ValidationError:"VALIDATION_ERROR"},SignableAcceptPrimarySaleInternalServerErrorBodyAllOf1CodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},SignableAcceptPrimarySaleNotFoundBodyAllOf1CodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},SignableAcceptPrimarySaleNotImplementedBodyAllOf1CodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},SignableAcceptPrimarySaleUnprocessableEntityBodyAllOf1CodeEnum:{UnprocessableEntityError:"UNPROCESSABLE_ENTITY_ERROR"},SignableCreatePrimarySaleBadRequestBodyAllOf1CodeEnum:{ValidationError:"VALIDATION_ERROR"},SignableCreatePrimarySaleInternalServerErrorBodyAllOf1CodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},SignableCreatePrimarySaleNotFoundBodyAllOf1CodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},SignableCreatePrimarySaleNotImplementedBodyAllOf1CodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},SignableCreatePrimarySaleOKBodyFeesItemsTypeEnum:{Ecosystem:"ECOSYSTEM",Protocol:"PROTOCOL"},SignableRejectPrimarySaleBadRequestBodyAllOf1CodeEnum:{ValidationError:"VALIDATION_ERROR"},SignableRejectPrimarySaleInternalServerErrorBodyAllOf1CodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},SignableRejectPrimarySaleNotFoundBodyAllOf1CodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},SignableRejectPrimarySaleNotImplementedBodyAllOf1CodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},SignableRejectPrimarySaleUnprocessableEntityBodyAllOf1CodeEnum:{UnprocessableEntityError:"UNPROCESSABLE_ENTITY_ERROR"},TokensApi:eR,TokensApiAxiosParamCreator:eT,TokensApiFactory:function(e,t,r){let n=ek(e);return{getToken:(e,i)=>n.getToken(e,i).then(e=>e(r,t)),listTokens:(e,i,a,s,o,c,f)=>n.listTokens(e,i,a,s,o,c,f).then(e=>e(r,t))}},TokensApiFp:ek,TradesApi:eP,TradesApiAxiosParamCreator:eI,TradesApiFactory:function(e,t,r){let n=eC(e);return{createTradeV3:(e,i,a,s,o)=>n.createTradeV3(e,i,a,s,o).then(e=>e(r,t)),getSignableTrade:(e,i)=>n.getSignableTrade(e,i).then(e=>e(r,t)),getTradeV3:(e,i)=>n.getTradeV3(e,i).then(e=>e(r,t)),listTradesV3:(e,i,a,s,o,c,f,u,d,l,h,p)=>n.listTradesV3(e,i,a,s,o,c,f,u,d,l,h,p).then(e=>e(r,t))}},TradesApiFp:eC,TransfersApi:ej,TransfersApiAxiosParamCreator:eO,TransfersApiFactory:function(e,t,r){let n=eN(e);return{createTransfer:(e,i,a,s,o)=>n.createTransfer(e,i,a,s,o).then(e=>e(r,t)),createTransferV1:(e,i,a,s,o)=>n.createTransferV1(e,i,a,s,o).then(e=>e(r,t)),getSignableTransfer:(e,i)=>n.getSignableTransfer(e,i).then(e=>e(r,t)),getSignableTransferV1:(e,i)=>n.getSignableTransferV1(e,i).then(e=>e(r,t)),getTransfer:(e,i)=>n.getTransfer(e,i).then(e=>e(r,t)),listTransfers:(e,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y,v,w)=>n.listTransfers(e,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y,v,w).then(e=>e(r,t))}},TransfersApiFp:eN,UsersApi:eD,UsersApiAxiosParamCreator:eB,UsersApiFactory:function(e,t,r){let n=eL(e);return{getSignableRegistration:(e,i)=>n.getSignableRegistration(e,i).then(e=>e(r,t)),getSignableRegistrationOffchain:(e,i)=>n.getSignableRegistrationOffchain(e,i).then(e=>e(r,t)),getUsers:(e,i)=>n.getUsers(e,i).then(e=>e(r,t)),registerPassportUser:(e,i,a)=>n.registerPassportUser(e,i,a).then(e=>e(r,t)),registerPassportUserV2:(e,i,a)=>n.registerPassportUserV2(e,i,a).then(e=>e(r,t)),registerUser:(e,i)=>n.registerUser(e,i).then(e=>e(r,t))}},UsersApiFp:eL,WithdrawalsApi:eq,WithdrawalsApiAxiosParamCreator:eU,WithdrawalsApiFactory:function(e,t,r){let n=eF(e);return{createWithdrawal:(e,i,a,s)=>n.createWithdrawal(e,i,a,s).then(e=>e(r,t)),createWithdrawalV2:(e,i,a,s)=>n.createWithdrawalV2(e,i,a,s).then(e=>e(r,t)),getSignableWithdrawal:(e,i)=>n.getSignableWithdrawal(e,i).then(e=>e(r,t)),getSignableWithdrawalV2:(e,i)=>n.getSignableWithdrawalV2(e,i).then(e=>e(r,t)),getWithdrawal:(e,i)=>n.getWithdrawal(e,i).then(e=>e(r,t)),listWithdrawals:(e,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y,v,w,_)=>n.listWithdrawals(e,i,a,s,o,c,f,u,d,l,h,p,m,b,g,y,v,w,_).then(e=>e(r,t))}},WithdrawalsApiFp:eF});let eH="https://api.sandbox.immutable.com".replace(/\/+$/,"");class eV{basePath;axios;configuration;constructor(e,t=eH,r=C.default){this.basePath=t,this.axios=r,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}class eW extends Error{field;constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}let eG="https://example.com",eJ=function(e,t,r){if(null==r)throw new eW(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},eZ=async function(e,t,r){if(r&&r.apiKey){let n="function"==typeof r.apiKey?await r.apiKey(t):await r.apiKey;e[t]=n}},e$=async function(e,t){if(t&&t.accessToken){let r="function"==typeof t.accessToken?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+r}},eX=function(e,...t){let r=new URLSearchParams(e.search);!function e(t,r,n=""){null!=r&&("object"==typeof r?Array.isArray(r)?r.forEach(r=>e(t,r,n)):Object.keys(r).forEach(i=>e(t,r[i],`${n}${""!==n?".":""}${i}`)):t.has(n)?t.append(n,r):t.set(n,r))}(r,t),e.search=r.toString()},eY=function(e,t,r){let n="string"!=typeof e,i=n&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):n;return i?JSON.stringify(void 0!==e?e:{}):e||""},eQ=function(e){return e.pathname+e.search+e.hash},e0=function(e,t,r,n){return(i=t,a=r)=>{let s={...e.options,url:(n?.basePath||i.defaults.baseURL||a)+e.url};return i.request(s)}},e1=function(e){return{getActivity:async(t,r,n={})=>{let i;eJ("getActivity","chainName",t),eJ("getActivity","activityId",r);let a="/v1/chains/{chain_name}/activities/{activity_id}".replace("{chain_name}",encodeURIComponent(String(t))).replace("{activity_id}",encodeURIComponent(String(r))),s=new URL(a,eG);e&&(i=e.baseOptions);let o={method:"GET",...i,...n};eX(s,{});let c=i&&i.headers?i.headers:{};return o.headers={...c,...n.headers},{url:eQ(s),options:o}},listActivities:async(t,r,n,i,a,s,o,c,f={})=>{let u;eJ("listActivities","chainName",t);let d="/v1/chains/{chain_name}/activities".replace("{chain_name}",encodeURIComponent(String(t))),l=new URL(d,eG);e&&(u=e.baseOptions);let h={method:"GET",...u,...f},p={};void 0!==r&&(p.contract_address=r),void 0!==n&&(p.token_id=n),void 0!==i&&(p.account_address=i),void 0!==a&&(p.activity_type=a),void 0!==s&&(p.transaction_hash=s),void 0!==o&&(p.page_cursor=o),void 0!==c&&(p.page_size=c),eX(l,p);let m=u&&u.headers?u.headers:{};return h.headers={...m,...f.headers},{url:eQ(l),options:h}},listActivityHistory:async(t,r,n,i,a,s,o,c={})=>{let f;eJ("listActivityHistory","chainName",t),eJ("listActivityHistory","fromUpdatedAt",r);let u="/v1/chains/{chain_name}/activity-history".replace("{chain_name}",encodeURIComponent(String(t))),d=new URL(u,eG);e&&(f=e.baseOptions);let l={method:"GET",...f,...c},h={};void 0!==r&&(h.from_updated_at=r instanceof Date?r.toISOString():r),void 0!==n&&(h.to_updated_at=n instanceof Date?n.toISOString():n),void 0!==i&&(h.contract_address=i),void 0!==a&&(h.activity_type=a),void 0!==s&&(h.page_cursor=s),void 0!==o&&(h.page_size=o),eX(d,h);let p=f&&f.headers?f.headers:{};return l.headers={...p,...c.headers},{url:eQ(d),options:l}}}},e2=function(e){let t=e1(e);return{async getActivity(r,n,i){let a=await t.getActivity(r,n,i);return e0(a,C.default,eH,e)},async listActivities(r,n,i,a,s,o,c,f,u){let d=await t.listActivities(r,n,i,a,s,o,c,f,u);return e0(d,C.default,eH,e)},async listActivityHistory(r,n,i,a,s,o,c,f){let u=await t.listActivityHistory(r,n,i,a,s,o,c,f);return e0(u,C.default,eH,e)}}};class e6 extends eV{getActivity(e,t){return e2(this.configuration).getActivity(e.chainName,e.activityId,t).then(e=>e(this.axios,this.basePath))}listActivities(e,t){return e2(this.configuration).listActivities(e.chainName,e.contractAddress,e.tokenId,e.accountAddress,e.activityType,e.transactionHash,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}listActivityHistory(e,t){return e2(this.configuration).listActivityHistory(e.chainName,e.fromUpdatedAt,e.toUpdatedAt,e.contractAddress,e.activityType,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}}let e3=function(e){return{listChains:async(t,r,n={})=>{let i;let a=new URL("/v1/chains",eG);e&&(i=e.baseOptions);let s={method:"GET",...i,...n},o={};void 0!==t&&(o.page_cursor=t),void 0!==r&&(o.page_size=r),eX(a,o);let c=i&&i.headers?i.headers:{};return s.headers={...c,...n.headers},{url:eQ(a),options:s}}}},e5=function(e){let t=e3(e);return{async listChains(r,n,i){let a=await t.listChains(r,n,i);return e0(a,C.default,eH,e)}}};class e8 extends eV{listChains(e={},t){return e5(this.configuration).listChains(e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}}let e4=function(e){return{getCollection:async(t,r,n={})=>{let i;eJ("getCollection","contractAddress",t),eJ("getCollection","chainName",r);let a="/v1/chains/{chain_name}/collections/{contract_address}".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),s=new URL(a,eG);e&&(i=e.baseOptions);let o={method:"GET",...i,...n};eX(s,{});let c=i&&i.headers?i.headers:{};return o.headers={...c,...n.headers},{url:eQ(s),options:o}},listCollections:async(t,r,n,i,a,s,o={})=>{let c;eJ("listCollections","chainName",t);let f="/v1/chains/{chain_name}/collections".replace("{chain_name}",encodeURIComponent(String(t))),u=new URL(f,eG);e&&(c=e.baseOptions);let d={method:"GET",...c,...o},l={};r&&(l.contract_address=r),n&&(l.verification_status=n),void 0!==i&&(l.from_updated_at=i instanceof Date?i.toISOString():i),void 0!==a&&(l.page_cursor=a),void 0!==s&&(l.page_size=s),eX(u,l);let h=c&&c.headers?c.headers:{};return d.headers={...h,...o.headers},{url:eQ(u),options:d}},listCollectionsByNFTOwner:async(t,r,n,i,a={})=>{let s;eJ("listCollectionsByNFTOwner","accountAddress",t),eJ("listCollectionsByNFTOwner","chainName",r);let o="/v1/chains/{chain_name}/accounts/{account_address}/collections".replace("{account_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),c=new URL(o,eG);e&&(s=e.baseOptions);let f={method:"GET",...s,...a},u={};void 0!==n&&(u.page_cursor=n),void 0!==i&&(u.page_size=i),eX(c,u);let d=s&&s.headers?s.headers:{};return f.headers={...d,...a.headers},{url:eQ(c),options:f}},refreshCollectionMetadata:async(t,r,n,i={})=>{let a;eJ("refreshCollectionMetadata","contractAddress",t),eJ("refreshCollectionMetadata","chainName",r),eJ("refreshCollectionMetadata","refreshCollectionMetadataRequest",n);let s="/v1/chains/{chain_name}/collections/{contract_address}/refresh-metadata".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),o=new URL(s,eG);e&&(a=e.baseOptions);let c={method:"POST",...a,...i},f={};await eZ(f,"x-immutable-api-key",e),await e$(f,e),f["Content-Type"]="application/json",eX(o,{});let u=a&&a.headers?a.headers:{};return c.headers={...f,...u,...i.headers},c.data=eY(n,c,e),{url:eQ(o),options:c}}}},e7=function(e){let t=e4(e);return{async getCollection(r,n,i){let a=await t.getCollection(r,n,i);return e0(a,C.default,eH,e)},async listCollections(r,n,i,a,s,o,c){let f=await t.listCollections(r,n,i,a,s,o,c);return e0(f,C.default,eH,e)},async listCollectionsByNFTOwner(r,n,i,a,s){let o=await t.listCollectionsByNFTOwner(r,n,i,a,s);return e0(o,C.default,eH,e)},async refreshCollectionMetadata(r,n,i,a){let s=await t.refreshCollectionMetadata(r,n,i,a);return e0(s,C.default,eH,e)}}};class e9 extends eV{getCollection(e,t){return e7(this.configuration).getCollection(e.contractAddress,e.chainName,t).then(e=>e(this.axios,this.basePath))}listCollections(e,t){return e7(this.configuration).listCollections(e.chainName,e.contractAddress,e.verificationStatus,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}listCollectionsByNFTOwner(e,t){return e7(this.configuration).listCollectionsByNFTOwner(e.accountAddress,e.chainName,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}refreshCollectionMetadata(e,t){return e7(this.configuration).refreshCollectionMetadata(e.contractAddress,e.chainName,e.refreshCollectionMetadataRequest,t).then(e=>e(this.axios,this.basePath))}}let te=function(e){return{getMetadata:async(t,r,n,i={})=>{let a;eJ("getMetadata","chainName",t),eJ("getMetadata","contractAddress",r),eJ("getMetadata","metadataId",n);let s="/v1/chains/{chain_name}/collections/{contract_address}/metadata/{metadata_id}".replace("{chain_name}",encodeURIComponent(String(t))).replace("{contract_address}",encodeURIComponent(String(r))).replace("{metadata_id}",encodeURIComponent(String(n))),o=new URL(s,eG);e&&(a=e.baseOptions);let c={method:"GET",...a,...i};eX(o,{});let f=a&&a.headers?a.headers:{};return c.headers={...f,...i.headers},{url:eQ(o),options:c}},listMetadata:async(t,r,n,i,a,s={})=>{let o;eJ("listMetadata","chainName",t),eJ("listMetadata","contractAddress",r);let c="/v1/chains/{chain_name}/collections/{contract_address}/metadata".replace("{chain_name}",encodeURIComponent(String(t))).replace("{contract_address}",encodeURIComponent(String(r))),f=new URL(c,eG);e&&(o=e.baseOptions);let u={method:"GET",...o,...s},d={};void 0!==n&&(d.from_updated_at=n instanceof Date?n.toISOString():n),void 0!==i&&(d.page_cursor=i),void 0!==a&&(d.page_size=a),eX(f,d);let l=o&&o.headers?o.headers:{};return u.headers={...l,...s.headers},{url:eQ(f),options:u}},listMetadataForChain:async(t,r,n,i,a={})=>{let s;eJ("listMetadataForChain","chainName",t);let o="/v1/chains/{chain_name}/metadata".replace("{chain_name}",encodeURIComponent(String(t))),c=new URL(o,eG);e&&(s=e.baseOptions);let f={method:"GET",...s,...a},u={};void 0!==r&&(u.from_updated_at=r instanceof Date?r.toISOString():r),void 0!==n&&(u.page_cursor=n),void 0!==i&&(u.page_size=i),eX(c,u);let d=s&&s.headers?s.headers:{};return f.headers={...d,...a.headers},{url:eQ(c),options:f}},refreshMetadataByID:async(t,r,n,i={})=>{let a;eJ("refreshMetadataByID","chainName",t),eJ("refreshMetadataByID","contractAddress",r),eJ("refreshMetadataByID","refreshMetadataByIDRequest",n);let s="/v1/chains/{chain_name}/collections/{contract_address}/metadata/refresh-metadata".replace("{chain_name}",encodeURIComponent(String(t))).replace("{contract_address}",encodeURIComponent(String(r))),o=new URL(s,eG);e&&(a=e.baseOptions);let c={method:"POST",...a,...i},f={};await eZ(f,"x-immutable-api-key",e),f["Content-Type"]="application/json",eX(o,{});let u=a&&a.headers?a.headers:{};return c.headers={...f,...u,...i.headers},c.data=eY(n,c,e),{url:eQ(o),options:c}},refreshNFTMetadataByTokenID:async(t,r,n,i={})=>{let a;eJ("refreshNFTMetadataByTokenID","contractAddress",t),eJ("refreshNFTMetadataByTokenID","chainName",r),eJ("refreshNFTMetadataByTokenID","refreshNFTMetadataByTokenIDRequest",n);let s="/v1/chains/{chain_name}/collections/{contract_address}/nfts/refresh-metadata".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),o=new URL(s,eG);e&&(a=e.baseOptions);let c={method:"POST",...a,...i},f={};await eZ(f,"x-immutable-api-key",e),f["Content-Type"]="application/json",eX(o,{});let u=a&&a.headers?a.headers:{};return c.headers={...f,...u,...i.headers},c.data=eY(n,c,e),{url:eQ(o),options:c}}}},tt=function(e){let t=te(e);return{async getMetadata(r,n,i,a){let s=await t.getMetadata(r,n,i,a);return e0(s,C.default,eH,e)},async listMetadata(r,n,i,a,s,o){let c=await t.listMetadata(r,n,i,a,s,o);return e0(c,C.default,eH,e)},async listMetadataForChain(r,n,i,a,s){let o=await t.listMetadataForChain(r,n,i,a,s);return e0(o,C.default,eH,e)},async refreshMetadataByID(r,n,i,a){let s=await t.refreshMetadataByID(r,n,i,a);return e0(s,C.default,eH,e)},async refreshNFTMetadataByTokenID(r,n,i,a){let s=await t.refreshNFTMetadataByTokenID(r,n,i,a);return e0(s,C.default,eH,e)}}},tr=function(e){return{listAllNFTOwners:async(t,r,n,i,a={})=>{let s;eJ("listAllNFTOwners","chainName",t);let o="/v1/chains/{chain_name}/nft-owners".replace("{chain_name}",encodeURIComponent(String(t))),c=new URL(o,eG);e&&(s=e.baseOptions);let f={method:"GET",...s,...a},u={};void 0!==r&&(u.from_updated_at=r instanceof Date?r.toISOString():r),void 0!==n&&(u.page_cursor=n),void 0!==i&&(u.page_size=i),eX(c,u);let d=s&&s.headers?s.headers:{};return f.headers={...d,...a.headers},{url:eQ(c),options:f}},listNFTOwners:async(t,r,n,i,a,s={})=>{let o;eJ("listNFTOwners","contractAddress",t),eJ("listNFTOwners","tokenId",r),eJ("listNFTOwners","chainName",n);let c="/v1/chains/{chain_name}/collections/{contract_address}/nfts/{token_id}/owners".replace("{contract_address}",encodeURIComponent(String(t))).replace("{token_id}",encodeURIComponent(String(r))).replace("{chain_name}",encodeURIComponent(String(n))),f=new URL(c,eG);e&&(o=e.baseOptions);let u={method:"GET",...o,...s},d={};void 0!==i&&(d.page_cursor=i),void 0!==a&&(d.page_size=a),eX(f,d);let l=o&&o.headers?o.headers:{};return u.headers={...l,...s.headers},{url:eQ(f),options:u}},listOwnersByContractAddress:async(t,r,n,i,a,s,o={})=>{let c;eJ("listOwnersByContractAddress","contractAddress",t),eJ("listOwnersByContractAddress","chainName",r);let f="/v1/chains/{chain_name}/collections/{contract_address}/owners".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),u=new URL(f,eG);e&&(c=e.baseOptions);let d={method:"GET",...c,...o},l={};n&&(l.account_address=n),void 0!==i&&(l.from_updated_at=i instanceof Date?i.toISOString():i),void 0!==a&&(l.page_cursor=a),void 0!==s&&(l.page_size=s),eX(u,l);let h=c&&c.headers?c.headers:{};return d.headers={...h,...o.headers},{url:eQ(u),options:d}}}},tn=function(e){let t=tr(e);return{async listAllNFTOwners(r,n,i,a,s){let o=await t.listAllNFTOwners(r,n,i,a,s);return e0(o,C.default,eH,e)},async listNFTOwners(r,n,i,a,s,o){let c=await t.listNFTOwners(r,n,i,a,s,o);return e0(c,C.default,eH,e)},async listOwnersByContractAddress(r,n,i,a,s,o,c){let f=await t.listOwnersByContractAddress(r,n,i,a,s,o,c);return e0(f,C.default,eH,e)}}};class ti extends eV{listAllNFTOwners(e,t){return tn(this.configuration).listAllNFTOwners(e.chainName,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}listNFTOwners(e,t){return tn(this.configuration).listNFTOwners(e.contractAddress,e.tokenId,e.chainName,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}listOwnersByContractAddress(e,t){return tn(this.configuration).listOwnersByContractAddress(e.contractAddress,e.chainName,e.accountAddress,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}}let ta=function(e){return{createMintRequest:async(t,r,n,i={})=>{let a;eJ("createMintRequest","contractAddress",t),eJ("createMintRequest","chainName",r),eJ("createMintRequest","createMintRequestRequest",n);let s="/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),o=new URL(s,eG);e&&(a=e.baseOptions);let c={method:"POST",...a,...i},f={};await eZ(f,"x-immutable-api-key",e),f["Content-Type"]="application/json",eX(o,{});let u=a&&a.headers?a.headers:{};return c.headers={...f,...u,...i.headers},c.data=eY(n,c,e),{url:eQ(o),options:c}},getMintRequest:async(t,r,n,i={})=>{let a;eJ("getMintRequest","contractAddress",t),eJ("getMintRequest","chainName",r),eJ("getMintRequest","referenceId",n);let s="/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests/{reference_id}".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))).replace("{reference_id}",encodeURIComponent(String(n))),o=new URL(s,eG);e&&(a=e.baseOptions);let c={method:"GET",...a,...i},f={};await eZ(f,"x-immutable-api-key",e),eX(o,{});let u=a&&a.headers?a.headers:{};return c.headers={...f,...u,...i.headers},{url:eQ(o),options:c}},getNFT:async(t,r,n,i={})=>{let a;eJ("getNFT","contractAddress",t),eJ("getNFT","tokenId",r),eJ("getNFT","chainName",n);let s="/v1/chains/{chain_name}/collections/{contract_address}/nfts/{token_id}".replace("{contract_address}",encodeURIComponent(String(t))).replace("{token_id}",encodeURIComponent(String(r))).replace("{chain_name}",encodeURIComponent(String(n))),o=new URL(s,eG);e&&(a=e.baseOptions);let c={method:"GET",...a,...i};eX(o,{});let f=a&&a.headers?a.headers:{};return c.headers={...f,...i.headers},{url:eQ(o),options:c}},listAllNFTs:async(t,r,n,i,a={})=>{let s;eJ("listAllNFTs","chainName",t);let o="/v1/chains/{chain_name}/nfts".replace("{chain_name}",encodeURIComponent(String(t))),c=new URL(o,eG);e&&(s=e.baseOptions);let f={method:"GET",...s,...a},u={};void 0!==r&&(u.from_updated_at=r instanceof Date?r.toISOString():r),void 0!==n&&(u.page_cursor=n),void 0!==i&&(u.page_size=i),eX(c,u);let d=s&&s.headers?s.headers:{};return f.headers={...d,...a.headers},{url:eQ(c),options:f}},listMintRequests:async(t,r,n,i,a,s={})=>{let o;eJ("listMintRequests","contractAddress",t),eJ("listMintRequests","chainName",r);let c="/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),f=new URL(c,eG);e&&(o=e.baseOptions);let u={method:"GET",...o,...s},d={},l={};await eZ(d,"x-immutable-api-key",e),void 0!==n&&(l.page_cursor=n),void 0!==i&&(l.page_size=i),void 0!==a&&(l.status=a),eX(f,l);let h=o&&o.headers?o.headers:{};return u.headers={...d,...h,...s.headers},{url:eQ(f),options:u}},listNFTs:async(t,r,n,i,a,s,o={})=>{let c;eJ("listNFTs","contractAddress",t),eJ("listNFTs","chainName",r);let f="/v1/chains/{chain_name}/collections/{contract_address}/nfts".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),u=new URL(f,eG);e&&(c=e.baseOptions);let d={method:"GET",...c,...o},l={};n&&(l.token_id=n),void 0!==i&&(l.from_updated_at=i instanceof Date?i.toISOString():i),void 0!==a&&(l.page_cursor=a),void 0!==s&&(l.page_size=s),eX(u,l);let h=c&&c.headers?c.headers:{};return d.headers={...h,...o.headers},{url:eQ(u),options:d}},listNFTsByAccountAddress:async(t,r,n,i,a,s,o,c={})=>{let f;eJ("listNFTsByAccountAddress","accountAddress",t),eJ("listNFTsByAccountAddress","chainName",r);let u="/v1/chains/{chain_name}/accounts/{account_address}/nfts".replace("{account_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),d=new URL(u,eG);e&&(f=e.baseOptions);let l={method:"GET",...f,...c},h={};void 0!==n&&(h.contract_address=n),i&&(h.token_id=i),void 0!==a&&(h.from_updated_at=a instanceof Date?a.toISOString():a),void 0!==s&&(h.page_cursor=s),void 0!==o&&(h.page_size=o),eX(d,h);let p=f&&f.headers?f.headers:{};return l.headers={...p,...c.headers},{url:eQ(d),options:l}}}},ts=function(e){let t=ta(e);return{async createMintRequest(r,n,i,a){let s=await t.createMintRequest(r,n,i,a);return e0(s,C.default,eH,e)},async getMintRequest(r,n,i,a){let s=await t.getMintRequest(r,n,i,a);return e0(s,C.default,eH,e)},async getNFT(r,n,i,a){let s=await t.getNFT(r,n,i,a);return e0(s,C.default,eH,e)},async listAllNFTs(r,n,i,a,s){let o=await t.listAllNFTs(r,n,i,a,s);return e0(o,C.default,eH,e)},async listMintRequests(r,n,i,a,s,o){let c=await t.listMintRequests(r,n,i,a,s,o);return e0(c,C.default,eH,e)},async listNFTs(r,n,i,a,s,o,c){let f=await t.listNFTs(r,n,i,a,s,o,c);return e0(f,C.default,eH,e)},async listNFTsByAccountAddress(r,n,i,a,s,o,c,f){let u=await t.listNFTsByAccountAddress(r,n,i,a,s,o,c,f);return e0(u,C.default,eH,e)}}};class to extends eV{createMintRequest(e,t){return ts(this.configuration).createMintRequest(e.contractAddress,e.chainName,e.createMintRequestRequest,t).then(e=>e(this.axios,this.basePath))}getMintRequest(e,t){return ts(this.configuration).getMintRequest(e.contractAddress,e.chainName,e.referenceId,t).then(e=>e(this.axios,this.basePath))}getNFT(e,t){return ts(this.configuration).getNFT(e.contractAddress,e.tokenId,e.chainName,t).then(e=>e(this.axios,this.basePath))}listAllNFTs(e,t){return ts(this.configuration).listAllNFTs(e.chainName,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}listMintRequests(e,t){return ts(this.configuration).listMintRequests(e.contractAddress,e.chainName,e.pageCursor,e.pageSize,e.status,t).then(e=>e(this.axios,this.basePath))}listNFTs(e,t){return ts(this.configuration).listNFTs(e.contractAddress,e.chainName,e.tokenId,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}listNFTsByAccountAddress(e,t){return ts(this.configuration).listNFTsByAccountAddress(e.accountAddress,e.chainName,e.contractAddress,e.tokenId,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}}let tc=function(e){return{cancelOrders:async(t,r,n={})=>{let i;eJ("cancelOrders","chainName",t),eJ("cancelOrders","cancelOrdersRequestBody",r);let a="/v1/chains/{chain_name}/orders/cancel".replace("{chain_name}",encodeURIComponent(String(t))),s=new URL(a,eG);e&&(i=e.baseOptions);let o={method:"POST",...i,...n},c={};c["Content-Type"]="application/json",eX(s,{});let f=i&&i.headers?i.headers:{};return o.headers={...c,...f,...n.headers},o.data=eY(r,o,e),{url:eQ(s),options:o}},createListing:async(t,r,n={})=>{let i;eJ("createListing","chainName",t),eJ("createListing","createListingRequestBody",r);let a="/v1/chains/{chain_name}/orders/listings".replace("{chain_name}",encodeURIComponent(String(t))),s=new URL(a,eG);e&&(i=e.baseOptions);let o={method:"POST",...i,...n},c={};c["Content-Type"]="application/json",eX(s,{});let f=i&&i.headers?i.headers:{};return o.headers={...c,...f,...n.headers},o.data=eY(r,o,e),{url:eQ(s),options:o}},fulfillmentData:async(t,r,n={})=>{let i;eJ("fulfillmentData","chainName",t),eJ("fulfillmentData","fulfillmentDataRequest",r);let a="/v1/chains/{chain_name}/orders/fulfillment-data".replace("{chain_name}",encodeURIComponent(String(t))),s=new URL(a,eG);e&&(i=e.baseOptions);let o={method:"POST",...i,...n},c={};c["Content-Type"]="application/json",eX(s,{});let f=i&&i.headers?i.headers:{};return o.headers={...c,...f,...n.headers},o.data=eY(r,o,e),{url:eQ(s),options:o}},getListing:async(t,r,n={})=>{let i;eJ("getListing","chainName",t),eJ("getListing","listingId",r);let a="/v1/chains/{chain_name}/orders/listings/{listing_id}".replace("{chain_name}",encodeURIComponent(String(t))).replace("{listing_id}",encodeURIComponent(String(r))),s=new URL(a,eG);e&&(i=e.baseOptions);let o={method:"GET",...i,...n};eX(s,{});let c=i&&i.headers?i.headers:{};return o.headers={...c,...n.headers},{url:eQ(s),options:o}},getTrade:async(t,r,n={})=>{let i;eJ("getTrade","chainName",t),eJ("getTrade","tradeId",r);let a="/v1/chains/{chain_name}/trades/{trade_id}".replace("{chain_name}",encodeURIComponent(String(t))).replace("{trade_id}",encodeURIComponent(String(r))),s=new URL(a,eG);e&&(i=e.baseOptions);let o={method:"GET",...i,...n};eX(s,{});let c=i&&i.headers?i.headers:{};return o.headers={...c,...n.headers},{url:eQ(s),options:o}},listListings:async(t,r,n,i,a,s,o,c,f,u,d,l,h,p={})=>{let m;eJ("listListings","chainName",t);let b="/v1/chains/{chain_name}/orders/listings".replace("{chain_name}",encodeURIComponent(String(t))),g=new URL(b,eG);e&&(m=e.baseOptions);let y={method:"GET",...m,...p},v={};void 0!==r&&(v.status=r),void 0!==n&&(v.sell_item_contract_address=n),void 0!==i&&(v.buy_item_type=i),void 0!==a&&(v.buy_item_contract_address=a),void 0!==s&&(v.account_address=s),void 0!==o&&(v.sell_item_metadata_id=o),void 0!==c&&(v.sell_item_token_id=c),void 0!==f&&(v.from_updated_at=f instanceof Date?f.toISOString():f),void 0!==u&&(v.page_size=u),void 0!==d&&(v.sort_by=d),void 0!==l&&(v.sort_direction=l),void 0!==h&&(v.page_cursor=h),eX(g,v);let w=m&&m.headers?m.headers:{};return y.headers={...w,...p.headers},{url:eQ(g),options:y}},listTrades:async(t,r,n,i,a,s,o,c,f={})=>{let u;eJ("listTrades","chainName",t);let d="/v1/chains/{chain_name}/trades".replace("{chain_name}",encodeURIComponent(String(t))),l=new URL(d,eG);e&&(u=e.baseOptions);let h={method:"GET",...u,...f},p={};void 0!==r&&(p.account_address=r),void 0!==n&&(p.sell_item_contract_address=n),void 0!==i&&(p.from_indexed_at=i instanceof Date?i.toISOString():i),void 0!==a&&(p.page_size=a),void 0!==s&&(p.sort_by=s),void 0!==o&&(p.sort_direction=o),void 0!==c&&(p.page_cursor=c),eX(l,p);let m=u&&u.headers?u.headers:{};return h.headers={...m,...f.headers},{url:eQ(l),options:h}}}},tf=function(e){let t=tc(e);return{async cancelOrders(r,n,i){let a=await t.cancelOrders(r,n,i);return e0(a,C.default,eH,e)},async createListing(r,n,i){let a=await t.createListing(r,n,i);return e0(a,C.default,eH,e)},async fulfillmentData(r,n,i){let a=await t.fulfillmentData(r,n,i);return e0(a,C.default,eH,e)},async getListing(r,n,i){let a=await t.getListing(r,n,i);return e0(a,C.default,eH,e)},async getTrade(r,n,i){let a=await t.getTrade(r,n,i);return e0(a,C.default,eH,e)},async listListings(r,n,i,a,s,o,c,f,u,d,l,h,p,m){let b=await t.listListings(r,n,i,a,s,o,c,f,u,d,l,h,p,m);return e0(b,C.default,eH,e)},async listTrades(r,n,i,a,s,o,c,f,u){let d=await t.listTrades(r,n,i,a,s,o,c,f,u);return e0(d,C.default,eH,e)}}};class tu extends eV{cancelOrders(e,t){return tf(this.configuration).cancelOrders(e.chainName,e.cancelOrdersRequestBody,t).then(e=>e(this.axios,this.basePath))}createListing(e,t){return tf(this.configuration).createListing(e.chainName,e.createListingRequestBody,t).then(e=>e(this.axios,this.basePath))}fulfillmentData(e,t){return tf(this.configuration).fulfillmentData(e.chainName,e.fulfillmentDataRequest,t).then(e=>e(this.axios,this.basePath))}getListing(e,t){return tf(this.configuration).getListing(e.chainName,e.listingId,t).then(e=>e(this.axios,this.basePath))}getTrade(e,t){return tf(this.configuration).getTrade(e.chainName,e.tradeId,t).then(e=>e(this.axios,this.basePath))}listListings(e,t){return tf(this.configuration).listListings(e.chainName,e.status,e.sellItemContractAddress,e.buyItemType,e.buyItemContractAddress,e.accountAddress,e.sellItemMetadataId,e.sellItemTokenId,e.fromUpdatedAt,e.pageSize,e.sortBy,e.sortDirection,e.pageCursor,t).then(e=>e(this.axios,this.basePath))}listTrades(e,t){return tf(this.configuration).listTrades(e.chainName,e.accountAddress,e.sellItemContractAddress,e.fromIndexedAt,e.pageSize,e.sortBy,e.sortDirection,e.pageCursor,t).then(e=>e(this.axios,this.basePath))}}let td=function(e){return{createCounterfactualAddressV2:async(t,r,n={})=>{let i;eJ("createCounterfactualAddressV2","chainName",t),eJ("createCounterfactualAddressV2","createCounterfactualAddressRequest",r);let a="/v2/chains/{chain_name}/passport/counterfactual-address".replace("{chain_name}",encodeURIComponent(String(t))),s=new URL(a,eG);e&&(i=e.baseOptions);let o={method:"POST",...i,...n},c={};await e$(c,e),c["Content-Type"]="application/json",eX(s,{});let f=i&&i.headers?i.headers:{};return o.headers={...c,...f,...n.headers},o.data=eY(r,o,e),{url:eQ(s),options:o}},getLinkedAddresses:async(t,r,n={})=>{let i;eJ("getLinkedAddresses","userId",t),eJ("getLinkedAddresses","chainName",r);let a="/v1/chains/{chain_name}/passport/users/{user_id}/linked-addresses".replace("{user_id}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),s=new URL(a,eG);e&&(i=e.baseOptions);let o={method:"GET",...i,...n},c={};await e$(c,e),eX(s,{});let f=i&&i.headers?i.headers:{};return o.headers={...c,...f,...n.headers},{url:eQ(s),options:o}},getLinkedAddressesDeprecated:async(t,r={})=>{let n;eJ("getLinkedAddressesDeprecated","userId",t);let i="/passport-mr/v1/users/{userId}/linked-addresses".replace("{userId}",encodeURIComponent(String(t))),a=new URL(i,eG);e&&(n=e.baseOptions);let s={method:"GET",...n,...r},o={};await e$(o,e),eX(a,{});let c=n&&n.headers?n.headers:{};return s.headers={...o,...c,...r.headers},{url:eQ(a),options:s}},getTransactionMetadata:async(t,r,n={})=>{let i;eJ("getTransactionMetadata","chainName",t),eJ("getTransactionMetadata","getTransactionMetadataRequest",r);let a="/v1/chains/{chain_name}/passport/transaction-metadata".replace("{chain_name}",encodeURIComponent(String(t))),s=new URL(a,eG);e&&(i=e.baseOptions);let o={method:"POST",...i,...n},c={};await e$(c,e),c["Content-Type"]="application/json",eX(s,{});let f=i&&i.headers?i.headers:{};return o.headers={...c,...f,...n.headers},o.data=eY(r,o,e),{url:eQ(s),options:o}},getTypedDataMetadata:async(t,r,n={})=>{let i;eJ("getTypedDataMetadata","chainName",t),eJ("getTypedDataMetadata","getTypedDataMetadataRequest",r);let a="/v1/chains/{chain_name}/passport/typeddata-metadata".replace("{chain_name}",encodeURIComponent(String(t))),s=new URL(a,eG);e&&(i=e.baseOptions);let o={method:"POST",...i,...n},c={};await e$(c,e),c["Content-Type"]="application/json",eX(s,{});let f=i&&i.headers?i.headers:{};return o.headers={...c,...f,...n.headers},o.data=eY(r,o,e),{url:eQ(s),options:o}}}},tl=function(e){let t=td(e);return{async createCounterfactualAddressV2(r,n,i){let a=await t.createCounterfactualAddressV2(r,n,i);return e0(a,C.default,eH,e)},async getLinkedAddresses(r,n,i){let a=await t.getLinkedAddresses(r,n,i);return e0(a,C.default,eH,e)},async getLinkedAddressesDeprecated(r,n){let i=await t.getLinkedAddressesDeprecated(r,n);return e0(i,C.default,eH,e)},async getTransactionMetadata(r,n,i){let a=await t.getTransactionMetadata(r,n,i);return e0(a,C.default,eH,e)},async getTypedDataMetadata(r,n,i){let a=await t.getTypedDataMetadata(r,n,i);return e0(a,C.default,eH,e)}}};class th extends eV{createCounterfactualAddressV2(e,t){return tl(this.configuration).createCounterfactualAddressV2(e.chainName,e.createCounterfactualAddressRequest,t).then(e=>e(this.axios,this.basePath))}getLinkedAddresses(e,t){return tl(this.configuration).getLinkedAddresses(e.userId,e.chainName,t).then(e=>e(this.axios,this.basePath))}getLinkedAddressesDeprecated(e,t){return tl(this.configuration).getLinkedAddressesDeprecated(e.userId,t).then(e=>e(this.axios,this.basePath))}getTransactionMetadata(e,t){return tl(this.configuration).getTransactionMetadata(e.chainName,e.getTransactionMetadataRequest,t).then(e=>e(this.axios,this.basePath))}getTypedDataMetadata(e,t){return tl(this.configuration).getTypedDataMetadata(e.chainName,e.getTypedDataMetadataRequest,t).then(e=>e(this.axios,this.basePath))}}let tp=function(e){return{getUserInfo:async(t={})=>{let r;let n=new URL("/passport-profile/v1/user/info",eG);e&&(r=e.baseOptions);let i={method:"GET",...r,...t},a={};await e$(a,e),eX(n,{});let s=r&&r.headers?r.headers:{};return i.headers={...a,...s,...t.headers},{url:eQ(n),options:i}},linkWalletV2:async(t,r={})=>{let n;let i=new URL("/passport-profile/v2/linked-wallets",eG);e&&(n=e.baseOptions);let a={method:"POST",...n,...r},s={};await e$(s,e),s["Content-Type"]="application/json",eX(i,{});let o=n&&n.headers?n.headers:{};return a.headers={...s,...o,...r.headers},a.data=eY(t,a,e),{url:eQ(i),options:a}}}},tm=function(e){let t=tp(e);return{async getUserInfo(r){let n=await t.getUserInfo(r);return e0(n,C.default,eH,e)},async linkWalletV2(r,n){let i=await t.linkWalletV2(r,n);return e0(i,C.default,eH,e)}}};class tb extends eV{getUserInfo(e){return tm(this.configuration).getUserInfo(e).then(e=>e(this.axios,this.basePath))}linkWalletV2(e={},t){return tm(this.configuration).linkWalletV2(e.linkWalletV2Request,t).then(e=>e(this.axios,this.basePath))}}let tg=function(e){return{getERC20Token:async(t,r,n={})=>{let i;eJ("getERC20Token","contractAddress",t),eJ("getERC20Token","chainName",r);let a="/v1/chains/{chain_name}/tokens/{contract_address}".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),s=new URL(a,eG);e&&(i=e.baseOptions);let o={method:"GET",...i,...n};eX(s,{});let c=i&&i.headers?i.headers:{};return o.headers={...c,...n.headers},{url:eQ(s),options:o}},listERC20Tokens:async(t,r,n,i,a,s={})=>{let o;eJ("listERC20Tokens","chainName",t);let c="/v1/chains/{chain_name}/tokens".replace("{chain_name}",encodeURIComponent(String(t))),f=new URL(c,eG);e&&(o=e.baseOptions);let u={method:"GET",...o,...s},d={};void 0!==r&&(d.from_updated_at=r instanceof Date?r.toISOString():r),n&&(d.verification_status=n),void 0!==i&&(d.page_cursor=i),void 0!==a&&(d.page_size=a),eX(f,d);let l=o&&o.headers?o.headers:{};return u.headers={...l,...s.headers},{url:eQ(f),options:u}}}},ty=function(e){let t=tg(e);return{async getERC20Token(r,n,i){let a=await t.getERC20Token(r,n,i);return e0(a,C.default,eH,e)},async listERC20Tokens(r,n,i,a,s,o){let c=await t.listERC20Tokens(r,n,i,a,s,o);return e0(c,C.default,eH,e)}}};var tv=Object.freeze({__proto__:null,APIError400AllOfCodeEnum:{ValidationError:"VALIDATION_ERROR"},APIError401AllOfCodeEnum:{UnauthorisedRequest:"UNAUTHORISED_REQUEST"},APIError403AllOfCodeEnum:{AuthenticationError:"AUTHENTICATION_ERROR"},APIError404AllOfCodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},APIError409AllOfCodeEnum:{ConflictError:"CONFLICT_ERROR"},APIError429AllOfCodeEnum:{TooManyRequestsError:"TOO_MANY_REQUESTS_ERROR"},APIError500AllOfCodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},APIError501AllOfCodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},ActiveOrderStatusNameEnum:{Active:"ACTIVE"},ActivitiesApi:e6,ActivitiesApiAxiosParamCreator:e1,ActivitiesApiFactory:function(e,t,r){let n=e2(e);return{getActivity:(e,i)=>n.getActivity(e.chainName,e.activityId,i).then(e=>e(r,t)),listActivities:(e,i)=>n.listActivities(e.chainName,e.contractAddress,e.tokenId,e.accountAddress,e.activityType,e.transactionHash,e.pageCursor,e.pageSize,i).then(e=>e(r,t)),listActivityHistory:(e,i)=>n.listActivityHistory(e.chainName,e.fromUpdatedAt,e.toUpdatedAt,e.contractAddress,e.activityType,e.pageCursor,e.pageSize,i).then(e=>e(r,t))}},ActivitiesApiFp:e2,ActivityType:{Mint:"mint",Burn:"burn",Transfer:"transfer",Sale:"sale",Deposit:"deposit",Withdrawal:"withdrawal"},AssetVerificationStatus:{Verified:"verified",Unverified:"unverified",Spam:"spam",Inactive:"inactive"},CancelledOrderStatusCancellationTypeEnum:{OnChain:"ON_CHAIN",OffChain:"OFF_CHAIN",Underfunded:"UNDERFUNDED"},CancelledOrderStatusNameEnum:{Cancelled:"CANCELLED"},ChainsApi:e8,ChainsApiAxiosParamCreator:e3,ChainsApiFactory:function(e,t,r){let n=e5(e);return{listChains:(e={},i)=>n.listChains(e.pageCursor,e.pageSize,i).then(e=>e(r,t))}},ChainsApiFp:e5,CollectionContractType:{Erc721:"ERC721",Erc1155:"ERC1155"},CollectionsApi:e9,CollectionsApiAxiosParamCreator:e4,CollectionsApiFactory:function(e,t,r){let n=e7(e);return{getCollection:(e,i)=>n.getCollection(e.contractAddress,e.chainName,i).then(e=>e(r,t)),listCollections:(e,i)=>n.listCollections(e.chainName,e.contractAddress,e.verificationStatus,e.fromUpdatedAt,e.pageCursor,e.pageSize,i).then(e=>e(r,t)),listCollectionsByNFTOwner:(e,i)=>n.listCollectionsByNFTOwner(e.accountAddress,e.chainName,e.pageCursor,e.pageSize,i).then(e=>e(r,t)),refreshCollectionMetadata:(e,i)=>n.refreshCollectionMetadata(e.contractAddress,e.chainName,e.refreshCollectionMetadataRequest,i).then(e=>e(r,t))}},CollectionsApiFp:e7,Configuration:class{apiKey;username;password;accessToken;basePath;baseOptions;formDataCtor;constructor(e={}){this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=e.baseOptions,this.formDataCtor=e.formDataCtor}isJsonMime(e){let t=RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}},ERC1155ItemTypeEnum:{Erc1155:"ERC1155"},ERC20ApproveMetadataTransactionTypeEnum:{Erc20Approve:"ERC20_APPROVE"},ERC20ItemTypeEnum:{Erc20:"ERC20"},ERC20TransferFromMetadataTransactionTypeEnum:{Erc20TransferFrom:"ERC20_TRANSFER_FROM"},ERC20TransferMetadataTransactionTypeEnum:{Erc20Transfer:"ERC20_TRANSFER"},ERC721ApproveMetadataTransactionTypeEnum:{Erc721Approve:"ERC721_APPROVE"},ERC721ItemTypeEnum:{Erc721:"ERC721"},ERC721SafeTransferFromBatchMetadataTransactionTypeEnum:{Erc721SafeTransferFromBatch:"ERC721_SAFE_TRANSFER_FROM_BATCH"},ERC721TransferFromMetadataTransactionTypeEnum:{Erc721TransferFrom:"ERC721_TRANSFER_FROM"},ExpiredOrderStatusNameEnum:{Expired:"EXPIRED"},FailedOrderCancellationReasonCodeEnum:{Filled:"FILLED"},FeeTypeEnum:{Royalty:"ROYALTY",MakerEcosystem:"MAKER_ECOSYSTEM",TakerEcosystem:"TAKER_ECOSYSTEM",Protocol:"PROTOCOL"},FilledOrderStatusNameEnum:{Filled:"FILLED"},ImmutableVerificationStatusEnum:{Verified:"verified",Unverified:"unverified",Spam:"spam",Inactive:"inactive"},InactiveOrderStatusNameEnum:{Inactive:"INACTIVE"},ListListingsBuyItemTypeEnum:{Native:"NATIVE",Erc20:"ERC20"},ListListingsSortByEnum:{CreatedAt:"created_at",UpdatedAt:"updated_at",BuyItemAmount:"buy_item_amount"},ListListingsSortDirectionEnum:{Asc:"asc",Desc:"desc"},ListTradesSortByEnum:{IndexedAt:"indexed_at"},ListTradesSortDirectionEnum:{Asc:"asc",Desc:"desc"},MetadataApi:class extends eV{getMetadata(e,t){return tt(this.configuration).getMetadata(e.chainName,e.contractAddress,e.metadataId,t).then(e=>e(this.axios,this.basePath))}listMetadata(e,t){return tt(this.configuration).listMetadata(e.chainName,e.contractAddress,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}listMetadataForChain(e,t){return tt(this.configuration).listMetadataForChain(e.chainName,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}refreshMetadataByID(e,t){return tt(this.configuration).refreshMetadataByID(e.chainName,e.contractAddress,e.refreshMetadataByIDRequest,t).then(e=>e(this.axios,this.basePath))}refreshNFTMetadataByTokenID(e,t){return tt(this.configuration).refreshNFTMetadataByTokenID(e.contractAddress,e.chainName,e.refreshNFTMetadataByTokenIDRequest,t).then(e=>e(this.axios,this.basePath))}},MetadataApiAxiosParamCreator:te,MetadataApiFactory:function(e,t,r){let n=tt(e);return{getMetadata:(e,i)=>n.getMetadata(e.chainName,e.contractAddress,e.metadataId,i).then(e=>e(r,t)),listMetadata:(e,i)=>n.listMetadata(e.chainName,e.contractAddress,e.fromUpdatedAt,e.pageCursor,e.pageSize,i).then(e=>e(r,t)),listMetadataForChain:(e,i)=>n.listMetadataForChain(e.chainName,e.fromUpdatedAt,e.pageCursor,e.pageSize,i).then(e=>e(r,t)),refreshMetadataByID:(e,i)=>n.refreshMetadataByID(e.chainName,e.contractAddress,e.refreshMetadataByIDRequest,i).then(e=>e(r,t)),refreshNFTMetadataByTokenID:(e,i)=>n.refreshNFTMetadataByTokenID(e.contractAddress,e.chainName,e.refreshNFTMetadataByTokenIDRequest,i).then(e=>e(r,t))}},MetadataApiFp:tt,MintRequestStatus:{Pending:"pending",Succeeded:"succeeded",Failed:"failed"},NFTContractType:{Erc721:"ERC721",Erc1155:"ERC1155"},NFTSetApprovalForAllMetadataTransactionTypeEnum:{Erc721SetApprovalForAll:"ERC721_SET_APPROVAL_FOR_ALL",Erc1155SetApprovalForAll:"ERC1155_SET_APPROVAL_FOR_ALL"},NativeItemTypeEnum:{Native:"NATIVE",Erc20:"ERC20",Erc721:"ERC721",Erc1155:"ERC1155"},Network:{StarkEx:"starkEx",ZkEvm:"zkEvm"},NftOwnersApi:ti,NftOwnersApiAxiosParamCreator:tr,NftOwnersApiFactory:function(e,t,r){let n=tn(e);return{listAllNFTOwners:(e,i)=>n.listAllNFTOwners(e.chainName,e.fromUpdatedAt,e.pageCursor,e.pageSize,i).then(e=>e(r,t)),listNFTOwners:(e,i)=>n.listNFTOwners(e.contractAddress,e.tokenId,e.chainName,e.pageCursor,e.pageSize,i).then(e=>e(r,t)),listOwnersByContractAddress:(e,i)=>n.listOwnersByContractAddress(e.contractAddress,e.chainName,e.accountAddress,e.fromUpdatedAt,e.pageCursor,e.pageSize,i).then(e=>e(r,t))}},NftOwnersApiFp:tn,NftsApi:to,NftsApiAxiosParamCreator:ta,NftsApiFactory:function(e,t,r){let n=ts(e);return{createMintRequest:(e,i)=>n.createMintRequest(e.contractAddress,e.chainName,e.createMintRequestRequest,i).then(e=>e(r,t)),getMintRequest:(e,i)=>n.getMintRequest(e.contractAddress,e.chainName,e.referenceId,i).then(e=>e(r,t)),getNFT:(e,i)=>n.getNFT(e.contractAddress,e.tokenId,e.chainName,i).then(e=>e(r,t)),listAllNFTs:(e,i)=>n.listAllNFTs(e.chainName,e.fromUpdatedAt,e.pageCursor,e.pageSize,i).then(e=>e(r,t)),listMintRequests:(e,i)=>n.listMintRequests(e.contractAddress,e.chainName,e.pageCursor,e.pageSize,e.status,i).then(e=>e(r,t)),listNFTs:(e,i)=>n.listNFTs(e.contractAddress,e.chainName,e.tokenId,e.fromUpdatedAt,e.pageCursor,e.pageSize,i).then(e=>e(r,t)),listNFTsByAccountAddress:(e,i)=>n.listNFTsByAccountAddress(e.accountAddress,e.chainName,e.contractAddress,e.tokenId,e.fromUpdatedAt,e.pageCursor,e.pageSize,i).then(e=>e(r,t))}},NftsApiFp:ts,OperatorAllowlistAdminAction:{Approve:"approve",Reject:"reject"},OperatorAllowlistStatus:{Requested:"requested",Approved:"approved",Rejected:"rejected",Removed:"removed",Added:"added"},OrderStatusName:{Pending:"PENDING",Active:"ACTIVE",Inactive:"INACTIVE",Filled:"FILLED",Expired:"EXPIRED",Cancelled:"CANCELLED"},OrderTypeEnum:{Listing:"LISTING"},OrdersApi:tu,OrdersApiAxiosParamCreator:tc,OrdersApiFactory:function(e,t,r){let n=tf(e);return{cancelOrders:(e,i)=>n.cancelOrders(e.chainName,e.cancelOrdersRequestBody,i).then(e=>e(r,t)),createListing:(e,i)=>n.createListing(e.chainName,e.createListingRequestBody,i).then(e=>e(r,t)),fulfillmentData:(e,i)=>n.fulfillmentData(e.chainName,e.fulfillmentDataRequest,i).then(e=>e(r,t)),getListing:(e,i)=>n.getListing(e.chainName,e.listingId,i).then(e=>e(r,t)),getTrade:(e,i)=>n.getTrade(e.chainName,e.tradeId,i).then(e=>e(r,t)),listListings:(e,i)=>n.listListings(e.chainName,e.status,e.sellItemContractAddress,e.buyItemType,e.buyItemContractAddress,e.accountAddress,e.sellItemMetadataId,e.sellItemTokenId,e.fromUpdatedAt,e.pageSize,e.sortBy,e.sortDirection,e.pageCursor,i).then(e=>e(r,t)),listTrades:(e,i)=>n.listTrades(e.chainName,e.accountAddress,e.sellItemContractAddress,e.fromIndexedAt,e.pageSize,e.sortBy,e.sortDirection,e.pageCursor,i).then(e=>e(r,t))}},OrdersApiFp:tf,OrganisationTier:{Common:"common",Uncommon:"uncommon",Rare:"rare",Epic:"epic",Legendary:"legendary"},PassportApi:th,PassportApiAxiosParamCreator:td,PassportApiFactory:function(e,t,r){let n=tl(e);return{createCounterfactualAddressV2:(e,i)=>n.createCounterfactualAddressV2(e.chainName,e.createCounterfactualAddressRequest,i).then(e=>e(r,t)),getLinkedAddresses:(e,i)=>n.getLinkedAddresses(e.userId,e.chainName,i).then(e=>e(r,t)),getLinkedAddressesDeprecated:(e,i)=>n.getLinkedAddressesDeprecated(e.userId,i).then(e=>e(r,t)),getTransactionMetadata:(e,i)=>n.getTransactionMetadata(e.chainName,e.getTransactionMetadataRequest,i).then(e=>e(r,t)),getTypedDataMetadata:(e,i)=>n.getTypedDataMetadata(e.chainName,e.getTypedDataMetadataRequest,i).then(e=>e(r,t))}},PassportApiFp:tl,PassportProfileApi:tb,PassportProfileApiAxiosParamCreator:tp,PassportProfileApiFactory:function(e,t,r){let n=tm(e);return{getUserInfo:e=>n.getUserInfo(e).then(e=>e(r,t)),linkWalletV2:(e={},i)=>n.linkWalletV2(e.linkWalletV2Request,i).then(e=>e(r,t))}},PassportProfileApiFp:tm,PendingOrderStatusNameEnum:{Pending:"PENDING"},ProtocolDataOrderTypeEnum:{FullRestricted:"FULL_RESTRICTED",PartialRestricted:"PARTIAL_RESTRICTED"},SaleFeeTypeEnum:{Royalty:"ROYALTY"},SeaportCreateListingMetadataTypedDataTypeEnum:{SeaportCreateListingMetadata:"SEAPORT_CREATE_LISTING_METADATA"},SeaportERC1155ItemTypeEnum:{Erc1155:"ERC1155"},SeaportERC20ItemTypeEnum:{Erc20:"ERC20"},SeaportERC721ItemTypeEnum:{Erc721:"ERC721"},SeaportFeeTypeEnum:{Erc20:"ERC20",Native:"NATIVE"},SeaportFulfillAvailableAdvancedOrdersMetadataTransactionTypeEnum:{SeaportFulfillAvailableAdvancedOrders:"SEAPORT_FULFILL_AVAILABLE_ADVANCED_ORDERS"},SeaportNativeItemTypeEnum:{Native:"NATIVE"},TokenContractType:{Erc20:"ERC20"},TokenType:{Erc721:"ERC721",Erc1155:"ERC1155"},TokensApi:class extends eV{getERC20Token(e,t){return ty(this.configuration).getERC20Token(e.contractAddress,e.chainName,t).then(e=>e(this.axios,this.basePath))}listERC20Tokens(e,t){return ty(this.configuration).listERC20Tokens(e.chainName,e.fromUpdatedAt,e.verificationStatus,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}},TokensApiAxiosParamCreator:tg,TokensApiFactory:function(e,t,r){let n=ty(e);return{getERC20Token:(e,i)=>n.getERC20Token(e.contractAddress,e.chainName,i).then(e=>e(r,t)),listERC20Tokens:(e,i)=>n.listERC20Tokens(e.chainName,e.fromUpdatedAt,e.verificationStatus,e.pageCursor,e.pageSize,i).then(e=>e(r,t))}},TokensApiFp:ty,UnknownMetadataTransactionTypeEnum:{Unknown:"UNKNOWN"},UnknownTypedDataMetadataTypedDataTypeEnum:{Unknown:"UNKNOWN"},VerificationRequestContractType:{Erc20:"ERC20",Erc721:"ERC721",Erc1155:"ERC1155"},VerificationRequestStatus:{Completed:"completed",Pending:"pending"}});(f||(f={})).ValidationError="VALIDATION_ERROR",(u||(u={})).UnauthorisedRequest="UNAUTHORISED_REQUEST",(d||(d={})).AuthenticationError="AUTHENTICATION_ERROR",(l||(l={})).ResourceNotFound="RESOURCE_NOT_FOUND",(h||(h={})).ConflictError="CONFLICT_ERROR",(p||(p={})).TooManyRequestsError="TOO_MANY_REQUESTS_ERROR",(m||(m={})).InternalServerError="INTERNAL_SERVER_ERROR",(b||(b={})).NotImplementedError="NOT_IMPLEMENTED_ERROR",(g||(g={})).Active="ACTIVE",(n=y||(y={})).Mint="mint",n.Burn="burn",n.Transfer="transfer",n.Sale="sale",n.Deposit="deposit",n.Withdrawal="withdrawal",(i=v||(v={})).Pending="pending",i.Verified="verified",i.Unverified="unverified",i.Spam="spam",i.Inactive="inactive",(a=w||(w={})).Erc721="ERC721",a.Erc1155="ERC1155",(_||(_={})).Erc1155="ERC1155",(E||(E={})).Erc20="ERC20",(A||(A={})).Erc721="ERC721",(s=M||(M={})).Pending="pending",s.Succeeded="succeeded",s.Failed="failed",(o=S||(S={})).Erc721="ERC721",o.Erc1155="ERC1155",(c=x||(x={})).Native="NATIVE",c.Erc20="ERC20",c.Erc721="ERC721",c.Erc1155="ERC1155",(T||(T={})).Royalty="ROYALTY",(k||(k={})).Erc20="ERC20";var tw=Object.freeze({__proto__:null,get APIError400AllOfCodeEnum(){return f},get APIError401AllOfCodeEnum(){return u},get APIError403AllOfCodeEnum(){return d},get APIError404AllOfCodeEnum(){return l},get APIError409AllOfCodeEnum(){return h},get APIError429AllOfCodeEnum(){return p},get APIError500AllOfCodeEnum(){return m},get APIError501AllOfCodeEnum(){return b},get ActiveOrderStatusNameEnum(){return g},get ActivityType(){return y},get AssetVerificationStatus(){return v},get CollectionContractType(){return w},get ERC1155ItemTypeEnum(){return _},get ERC20ItemTypeEnum(){return E},get ERC721ItemTypeEnum(){return A},get MintRequestStatus(){return M},get NFTContractType(){return S},get NativeItemTypeEnum(){return x},get SaleFeeTypeEnum(){return T},get TokenContractType(){return k}});class t_{config;assetApi;balanceApi;collectionApi;depositsApi;encodingApi;exchangeApi;metadataApi;metadataRefreshesApi;mintsApi;nftCheckoutPrimaryApi;ordersApi;primarySalesApi;projectsApi;tokensApi;tradesApi;transfersApi;usersApi;withdrawalsApi;constructor(e){this.config=e,this.assetApi=new H(e),this.balanceApi=new G(e),this.collectionApi=new $(e),this.depositsApi=new Q(e),this.encodingApi=new er(e),this.exchangeApi=new ea(e),this.metadataApi=new ec(e),this.metadataRefreshesApi=new ed(e),this.mintsApi=new ep(e),this.nftCheckoutPrimaryApi=new eg(e),this.ordersApi=new ew(e),this.primarySalesApi=new eA(e),this.projectsApi=new ex(e),this.tokensApi=new eR(e),this.tradesApi=new eP(e),this.transfersApi=new ej(e),this.usersApi=new eD(e),this.withdrawalsApi=new eq(e)}}class tE{config;activitiesApi;chainsApi;collectionApi;nftOwnersApi;nftsApi;ordersApi;passportApi;passportProfileApi;constructor(e){this.config=e,this.activitiesApi=new e6(e.indexer),this.chainsApi=new e8(e.indexer),this.collectionApi=new e9(e.indexer),this.nftOwnersApi=new ti(e.indexer),this.nftsApi=new to(e.indexer),this.ordersApi=new tu(e.orderBook),this.passportApi=new th(e.passport),this.passportProfileApi=new tb(e.passport)}}let tA={"x-sdk-version":"ts-immutable-sdk-1.46.10"},tM=({basePath:e,headers:t})=>{if(!e.trim())throw Error("basePath can not be empty");let r={...tA,...t||{}};return new ez({basePath:e,baseOptions:{headers:r}})},tS={getProduction:()=>tM({basePath:"https://api.x.immutable.com"}),getSandbox:()=>tM({basePath:"https://api.sandbox.x.immutable.com"})},tx={getProduction:()=>({indexer:tM({basePath:"https://api.immutable.com"}),orderBook:tM({basePath:"https://api.immutable.com"}),passport:tM({basePath:"https://api.immutable.com"})}),getSandbox:()=>({indexer:tM({basePath:"https://api.sandbox.immutable.com"}),orderBook:tM({basePath:"https://api.sandbox.immutable.com"}),passport:tM({basePath:"https://api.sandbox.immutable.com"})})}},{axios:"jhAcT","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],hV3j7:[function(e,t,r){var n,i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"Environment",()=>s.Environment),i.export(r,"ImmutableConfiguration",()=>s.ImmutableConfiguration),i.export(r,"EthSigner",()=>_.Signer),i.export(r,"ApiConfiguration",()=>A),i.export(r,"AssetsApi",()=>eS),i.export(r,"BalancesApi",()=>ex),i.export(r,"CollectionsApi",()=>eT),i.export(r,"Contracts",()=>eM),i.export(r,"DepositsApi",()=>ek),i.export(r,"EncodingApi",()=>eR),i.export(r,"ExchangesApi",()=>eI),i.export(r,"IMXClient",()=>eu),i.export(r,"IMXError",()=>C),i.export(r,"ImmutableX",()=>ed),i.export(r,"ImxConfiguration",()=>R),i.export(r,"MetadataApi",()=>eP),i.export(r,"MetadataRefreshesApi",()=>eO),i.export(r,"MetadataSchemaRequestTypeEnum",()=>eK),i.export(r,"MintsApi",()=>eC),i.export(r,"NftCheckoutPrimaryApi",()=>eN),i.export(r,"OrdersApi",()=>ej),i.export(r,"PrimarySalesApi",()=>eB),i.export(r,"ProjectsApi",()=>eL),i.export(r,"TokensApi",()=>eD),i.export(r,"TradesApi",()=>eU),i.export(r,"TransfersApi",()=>eF),i.export(r,"UsersApi",()=>eq),i.export(r,"WithdrawalsApi",()=>ez),i.export(r,"createConfig",()=>S),i.export(r,"createImmutableXConfiguration",()=>x),i.export(r,"createStarkSigner",()=>K),i.export(r,"generateLegacyStarkPrivateKey",()=>Y),i.export(r,"generateStarkPrivateKey",()=>X),i.export(r,"imxClientConfig",()=>I),i.export(r,"imxClientCreateStarkSigner",()=>K),i.export(r,"imxClientGenerateLegacyStarkPrivateKey",()=>Y),i.export(r,"production",()=>T),i.export(r,"sandbox",()=>k),i.export(r,"serializePackedSignature",()=>er),i.export(r,"signRegisterEthAddress",()=>en),i.export(r,"starkEcOrder",()=>G);var a=e("@imtbl/generated-clients"),s=e("@imtbl/config"),o=e("axios"),c=i.interopDefault(o),f=e("@ethersproject/keccak256"),u=e("@ethersproject/strings"),d=e("bn.js"),l=i.interopDefault(d),h=e("enc-utils"),p=e("ethers"),m=e("@ethersproject/bytes"),b=e("hash.js"),g=i.interopDefault(b),y=e("elliptic"),v=i.interopDefault(y),w=e("ethereumjs-wallet");e("assert");var _=e("@ethersproject/abstract-signer"),E=e("c745b84b96ec5443").Buffer;class A extends a.imx.Configuration{}let M={"x-sdk-version":"ts-immutable-sdk-1.46.10"},S=({coreContractAddress:e,registrationContractAddress:t,registrationV4ContractAddress:r,chainID:n,basePath:i,headers:a,sdkVersion:o,baseConfig:c})=>{if(!i.trim())throw Error("basePath can not be empty");o&&(M["x-sdk-version"]=o),a={...a||{},...s.addKeysToHeadersOverride(c,{headers:a})?.headers||{},...M};let f={basePath:i,baseOptions:{headers:a}};return{apiConfiguration:new A(f),ethConfiguration:{coreContractAddress:e,registrationContractAddress:t,registrationV4ContractAddress:r,chainID:n}}},x=({basePath:e,chainID:t,coreContractAddress:r,registrationContractAddress:n,registrationV4ContractAddress:i,baseConfig:a})=>S({basePath:e,chainID:t,coreContractAddress:r,registrationContractAddress:n,registrationV4ContractAddress:i,sdkVersion:"ts-immutable-sdk-1.46.10",baseConfig:a}),T=({baseConfig:e})=>x({basePath:"https://api.x.immutable.com",chainID:1,coreContractAddress:"0x5FDCCA53617f4d2b9134B29090C87D01058e27e9",registrationContractAddress:"0x72a06bf2a1CE5e39cBA06c0CAb824960B587d64c",registrationV4ContractAddress:"0xac88a57943b5BBa1ecd931F8494cAd0B7F717590",baseConfig:e}),k=({baseConfig:e})=>x({basePath:"https://api.sandbox.x.immutable.com",chainID:11155111,coreContractAddress:"0x2d5C349fD8464DA06a3f90b4B0E9195F3d1b7F98",registrationContractAddress:"0xDbA6129C02E69405622fAdc3d5A7f8d23eac3b97",registrationV4ContractAddress:"0xd1527c65c6287ec5ab816d328eb83bb4cb690e92",baseConfig:e});class R{immutableXConfig;baseConfig;constructor({baseConfig:e,overrides:t}){if(this.baseConfig=e,t)this.immutableXConfig=t.immutableXConfig;else switch(e.environment){case s.Environment.SANDBOX:this.immutableXConfig=k({baseConfig:e});break;case s.Environment.PRODUCTION:this.immutableXConfig=T({baseConfig:e});break;default:this.immutableXConfig=k({baseConfig:e})}}}let I=e=>{if(!e)throw Error("configOptions is required");if(-1===Object.values(s.Environment).indexOf(e.environment))throw Error(`Invalid environment: ${e.environment}`);let t={baseConfig:new s.ImmutableConfiguration(e)};return t};class C extends Error{code;details;constructor({code:e,details:t,message:r}){super(r),this.code=e,this.details=t}}function P(e){if((0,c.default).isAxiosError(e)&&e.response){let t=e.response.data;return new C(t.code&&t.message?{code:t.code,details:t.details,message:t.message}:{code:e.code??e.response?.status.toString()??"unknown_error_code",message:String(e)})}return new C({code:"unknown_error_code",message:String(e)})}let O=[["49ee3eba8c1600700ee1b87eb599f16716b0b1022947733551fde4050ca6804","3ca0cfe4b3bc6ddf346d49d06ea0ed34e621062c0e056c1d0405d266e10268a"],["1ef15c18599971b7beced415a40f0c7deacfd9b0d1819e03d723d8bc943cfca","5668060aa49730b7be4801df46ec62de53ecd11abe43a32873000c36e8dc1f"],["234287dcbaffe7f969c748655fca9e58fa8120b6d56eb0c1080d17957ebe47b","3b056f100f96fb21e889527d41f4e39940135dd7a6c94cc6ed0268ee89e5615"],["3909690e1123c80678a7ba0fde0e8447f6f02b3f6b960034d1e93524f8b476","7122e9063d239d89d4e336753845b76f2b33ca0d7f0c1acd4b9fe974994cc19"],["40fd002e38ea01a01b2702eb7c643e9decc2894cbf31765922e281939ab542c","109f720a79e2a41471f054ca885efd90c8cfbbec37991d1b6343991e0a3e740"],["2f52066635c139fc2f64eb0bd5e3fd7a705f576854ec4f00aa60361fddb981b","6d78a24d8a5f97fc600318ce16b3c840315979c3273078ec1a285f217ee6a26"],["6a0767a1fd60d5b9027a35af1b68e57a1c366ebcde2006cdd07af27043ef674","606b72c0ca0498b8c1817ed7922d550894c324f5efdfc85a19a1ae382411ca2"],["7fa463ee2a2d6a585d5c3358918270f6c28c66df1f86803374d1edf3819cc62","a996edf01598832e644e1cae9a37288865ad80e2787f9bf958aceccc99afae"],["3d4da70d1540da597dbae1651d28487604a4e66a4a1823b97e8e9639393dbec","45cdef70c35d3b6f0a2273a9886ccb6306d813e8204bdfd30b4efee63c8a3f9"],["1e448fdbcd9896c6fbf5f36cb7e7fcb77a751ff2d942593cae023363cc7750e","30c81da0f3a8cb64468eaa491c7ae7b4842b62cb4148820da211afc4caffb3a"],["6531acf1a7cb90a4eb27de0b7f915e387a3b0fd063ba6e1289b91f48411be26","31330f5daa091889981a3ea782ae997f5f171336ed0487a03f051551a2cafa2"],["54be016394d5662d67d7e82f5e889ed2f97ccf95d911f57dd2362c4040ed4f4","c6cb184053f054d6a59c1bf0986d17090d25089b3fdcdaf185edc87ef113e5"],["35b9ecd0499ca1d5d42dcbb0c6b4042b3733c64b607ca711e706e786ef2afc6","5624b476a5b21c3a544f0712d4817b06ad380a5a6529d323bf64da8ef862d8d"],["4ce0378e3ee8f77ed58f2ddbd8bb7676c8a38bfb1d3694c275254bd8ca38e23","5a16fcbff0769c9cf2b02c31621878ec819fff4b8231bff82c6183db2746820"],["648d5c6f98680a1b926bfeb01c00224c56fdcf751b251c4449c8a94f425cfcf","72c05ac793cd1620a833fbe2214d36900ebe446e095c62fcb740937f98cca8c"],["bd09be3e4e1af8a14189977e334f097c18e4a8bf42577ef5aafa0f807bd89b","6e0e72ed7eb65c86cee29c411fb4761122558ee81013344ba8509c49de9f9b6"],["35ea4e339b44ae7724419bdfbe07022253137a4afb7cbaffad341ea61249357","3665d676a026a174f367bb4417780e53a7803cb02d0db32eb4545c267c42f14"],["36457bc744f42e697b825c2d1afd8f4029d696a4514710f81da52d88e178643","7c93715896735492a68c7969a024b3a8fd538bffc1521538107de1a5f13ce9c"],["5b3a08ebcf9c109cc9082f70d9df2b9c11b5428ee23917b4e790c4c10f6e661","9d7b42ab0c20f5510df7ea5e196eec99342739077e9a168198c89da859753"],["21883ef8580fc06e59481955d52ece3aca6e82c8c9fc58e216dcf46f96990c6","51a6423543e6e8a43e71da34cd90f5b520b8d33b67c4bf857573ab9e301aa4c"],["19e86b77f9b581e81092b305c852faf53940a8f15f0a6990c414f04c0fa7ef9","515630e35d4398c9c79fc4ee08e1023fa47d8e03c6e7819c6d2ccef45398fa"],["888ab8eb4c31bb2ac5b54aa320dbe1a69c96b864e8a5f54d89c1d1a6b86c24","730e148467f6a55ce22c5296f5380df88f38de76ef0b2de844cd3094aaaf3ea"],["75e79ff13a894e7120dac17b7429c0c32ce7828f726c9973728c0977a5f5977","4960526e59c1c736561a201bc56f7d762641b39f609d273cc996f5d9197cfb8"],["640fe009249115d7254f72ecafb3006139e4bed7e9041af51458c737282d1d5","3cc6c978a575246e2ce4f7ef1fcc7f63085db9ff98a1b1f3fe374087c0332c"],["6d6fd09ccab7c26de9b3906191235deb5c34685580c488275356a05e209ca96","7157f81a34213dd8f91dea4f6df1bcfabc4ee091a3049eeeb3b7923d39b8645"],["5531ca1d00f151d71da820918f74caf2985b24dca20e124721fff507b5a5876","518529643d3f25e47f72c322223ba60a63d6bfe78cf3f612215d9c19bf29200"],["6192d454e4f8fe212bdfccd5b15dd5056d7622ffe456c6c67e5a7265aea49c4","2377a45dc630017ae863cb968ddb38333a70c7946d8684e6d7a6213f634b7bc"],["542fb44b4ef3640a64fdb22a2560fb26668065c069cf31d1df424819a39ff18","5dbae9b0948e0361aea443503840341c322aa1a1366ce5390e71bf161f78f8c"],["299ff3e3412a7eb4cb4a3051b07b1be2e7b1c4b789f39ffb52cba3d048b71de","1951d3175c02761b291d86b6c0a08387ad5e2a2130ccc33c852530572cb3958"],["628ce3f5367dadc1411133e55eb25e2e3c2880d6e28754a5cb1c5d109627e73","ae3e9b7d50964e28bd15380400b7659b87affdef5d2586cbefcd9be7d67c0d"],["6ea54aff064895eccf9db2283225d62044ae67621192b3346338948382f5933","6431507e51aadacfaf39f102a8ff387756e9b5e1bc8323d44acae55130d93db"],["28097d50d175a6235320fe8cfe138dd9e46895d189582e472c38ad7a67d923a","7f9eab4133d7d09a7ff63368d6135c26262b62336eca1b5ca33f2096ce388ba"],["619fd09cdd6ff4323973f256c2cbdcb224f7f25b8aef623af2d4a0105e62e02","2c95f0ae11d47eeae1bc7f1350f75f9185c5bc840382ceb38a797cae9c40308"],["641c18982ced304512a3f2395942a38add0d6a7156229c2a7c8b8dfbe9beb96","6f6288c9c659b6af5ac975f4180deffe53d516399b2cc62f31732e9d4ba9837"],["58ab546e51fe49fc5a382e4064a2bd6cfc268904412f86c26de14f28a71d0f2","124b7217943e7e328408e8afdfa7da00dcbc94a2bb85fd8e01fb162d2c2c0a9"],["a82c2fdedbb26c3c762a12f7e86b0e01e65320e0a25a8399d665f6e266bf74","1a1de28e253f3e10f44d0111e8074f882d7f42e5900780ccbdc31da372d3fd8"],["744c725a7455a992e3cf5bd007bc234dd4668dba285f553f38350ad94c1615b","7f721a87f48798bdc4a9c0eb88559e2ad7a74112fd901e70ea159e67a9c33f"],["434df142ddaa60f7881b6348d91687de40457de7ccfb07f0304b9e820705d0c","7fae425e3b53f97dd1f5b20e49ed9fe24ff1efc341ba5e017ac89cf8df0cc39"],["7a1e2b809dff46277021cbc376f79c37e1b683bbd6bca5317014f0dc0e1ae73","56790278a231912c334eff05281e08af1558e85516b4411ef64647c13bea431"],["4931b7990348d41cf8907be79f45bb7991fd18f8a57868351c92fa7a34cbcd7","ca35091815cdf0837d396e25aad6052ad32d497a33b123256cffdc008bc50e"],["250b815d352fd89f8210b624b147ea7d0a4f47bcac49f3ac9b777840da93ebe","1173f10e9691948b7da7632f328520455aadcba46e017f891e0a1d7da2bef04"],["2223b85032fa67292f6e1f822628e6756e5c3cc08fc252ab88d63d624e4dfb2","55619ba96a7dcec77832fcb22cd5c21c7dcebc0280d730cba0002b67e0a8c63"],["249b131e04de73af9820d3e22492d9ec51bdc0c4c4f34d95352fa44dd61f245","7576d3b5d136368ff01170a77d8286d0d1c7c40688862fb40813b4af3c6065e"],["6777915d9b4769027eb7e04733f8a2d669c84fe06080f55e8a55674dfbf9efb","640d0ff384c9635e1af364760f104e058e3c86209fa9d2320aeac887b2e02d8"],["2abe3f237681052f002414399111cf07f8421535af41251edc427a36b5b19c9","636ce4deaf468a503ab20ccb2f7e5bdc98551656ebf53e9c7786b11dd9090be"],["4d5cc5414758ea1be55be779bd7da296c7e11f1564d9e8797ceea347c16f8ea","1a680c4c410cf5ddc74e95ff2897c193edaaecce5b2cde4e96bbae5c0054eff"],["46c375c684b30adf4d51de81e92afee52b1a3847e177403372c82109373edca","1eaadc5783c90a0261306423d52009e991126b3f620e9cb6cffca41ca096f4f"],["2ddfb71f51205888118cbabba8fd07d460a810289bfdeeb7118707e310cb152","1fd905d07b3933be886f2518246bdafa6f33259a174668808223cd7c28183c7"],["386f3879960713d41fdb3b1e41bbebf26b1c0e27a9a75bb1adcc1a0d3e8547b","2b21498c0f34ec6f17c720334dc0f36021c2f87afbbbc8847d0bd536eb265e5"],["407eae62c6c4de3b942195afec3f45efec71ddb5e6edee3d427631bcdbf9b90","436e7f2d78268ef62c4172d2ff1469028bad1f1d0f97ab007064418e61caa8f"],["1b881175e21201d17e095e9b3966b354f47de8c1acee5177f5909e0fd72328f","69954b1a9b8bfccf8ec384d32924518a935758f3d3662ef754bcc88f1f6f3ec"],["7d545a82bff003b8115be32a0c437f7c0a98f776bcf7fddb0392822844f3c5e","34b6e53a9565a7daa010711f5bf72254a4e61da3e6a562210a9abc9e8b66d69"],["299b9fcd4fadfc4b6141457a3036aaa68501c23df579de26df69d4def89b913","b95bf2c2bb303c38bb396382edc798ca6a4847e573ce19b7b08533d1912675"],["551f5a4dae4a341a3e20336a7d2f365ddd45849351ec6dd4fcbedfe4806d5d5","5865c977a0ecf13ce85ae14c5c316872080bd36f0f614f56b6dfc7ece83792e"],["7a1d69c08e68c80ad8b310736e6247a53bcba0183b9b8798833bc696a0fb6e2","3ce803a20ebb3b120d5eaf0ad64bed0522fad1a0f2ce39a5c5cbae98c4438f6"],["28acacc0bc41d84e83663f02b36981a2c8272ecd72d3901164be2affb09c504","7a5aee0b160eaff5b5968ab1a0304ce58c3d5ae0148d9191c39e87668229e5b"],["1f78cfdbcc767b68e69a224a077468cdfcb0afd6952b85bccbdb96d1fb8500b","4772ba173c6b583284eb001cfc2a124104833f464ff9df096443e10ef3e9dd4"],["2774108962ca9897e7f22c064d2ccedac4fef5fc9569331c27cdc336c95774b","9e13d79b68e8dc8091c019618f5b07283a710ddf1733dc674a99fc32c12911"],["770d116415cd2c4ace0d8b721dd77e4a2ef766591f9ec9fa0b61304548994ed","42165d93c82f687635aa2b68492b3adffd516beb4baa94520efa11467a209fd"],["5e6e4ece6621e2275415e1fda1e7c4f496de498b77c0b913073c6a6099394b9","3d92ce044fc77fa227adc31f6fc17ef8b4ec1c5aafc44630c0d9195075bf56d"],["6e69c717b5d98807ff1e404a5187a9ceaf0110b83aa15a84f930928b1171825","1ee7cfc3a9744d7fa380ba28604af9df33ac077724374c04588bd71fa16b177"],["404318f2d2ceb44f549c80f9d7de9879d8f7da4b81e7350c00e974ebf2daef1","3934831b5af70d17a3f1da9d2931bd757e6acf2893236264fc7e0d92ff1a1cb"],["20dcb6f394fea6d549b2e75748f61b7ec03b6e52319cb14163373a9c22bb9dc","106a8c96cfb95a331618b7416d1498554730499e194a58fbf63019890480fc7"],["119000f277ccee013e6bb121194ec1ab5460fb6a96eb702a14079865f4170aa","1737a32f5415e8720a5606ec1dd4756f02e7c6817e3723b453d091f2d192773"],["45d0fb5cd95db76d05dec3faa12e467a308eabaad363a062353db3cd2d9b749","ae08691b5b0cdd19ec499132421638f470f493320e4003d123ab1da761b965"],["1257b3e65cdfb6367c6d0942327e799bc66eb221e70c6573a9862889eb51c38","593309fd45755dd2cc4afd2b9316bc4638b0c5ddb3009694fcb7b250d0c8a2f"],["186dcf9950f72e868014a8accf14aa36e82a7a2a29f86ba37f6632da4189db3","55684c9f7a043fc523ed78f756f834b4db823d5e4161bd79602c17d55a5cd8c"],["58791d5569f282f5c3b01ecdc9388df7ba3ca223a2dc1eed5edaf2a1d302fb9","6298d7dd51561a045bb4089deda9f40b2865589ed433e56d54554f8b45e79f0"],["13fd87144aa5aa4b24d5a7bf907d8280d15937fed262d41084898cb688fc28b","3fa54367770cc4479a857411ddcabe86627b405ce1cd14ad3b2863bde13abe4"],["48118139445415f0c1879224e2dee744ed35280ff00537260402a1741ec3676","4dfa39dadaabecfc54ecb7a25319444f8e952782d863790e42a9887064fc0c1"],["4ad031bb9eda84f2fe5d354c7948d41558ca657a04508654721810ee72ef158","620ebd5d0086b92c6009a42777b946a351c2c7ba852b57d3c9905fc337459ef"],["4a34abb016ad8cb4575ea5bd28385d2348e5bcc0cbba90059f90f9c71f86e8b","4f781829ad83f9ed1e1b6de0e5f4ac60dfdfe7f23cb4411e815817e705e52c8"],["7fc632d7512aab5356b7915dca854c8b12b369ab54f524fbce352f00eb9b9f9","2ce80b944fc9158005f630b34385d50c3ad84450a9e1e529925b3211dd2a1de"],["65ed10347503cbc0216ca03f7536cca16b6abd18d332a9258685907f2e5c23f","3be1a18c6bfa6f2f4898ebefad5a8e844c74626d5baa04a820d407fe28bbca6"],["1a8abba1be2e276cdd1f28c912280833a5ede1ec121738fcca47dc070dcc71d","21b724378bc029a5199799df005922590d4e59cae52976f8e437bf6693eec4a"],["3a99c22dafcfe9004ebb674805736a26aeed7ed5d465ae37226dcbe270a972b","5bf67552af08e1e6e2a24bf562c23225e89869cab9bef8becb3669175a3c94f"],["4a6a5e4b3501f2b7bbdd8da73ea81ffca347170bdfb6776a037cdd74c560fb4","5af167ebb259c2da88740ec559ee04052bb66480b836cadd0e2590c32d7111b"],["6890d95308525f0bac9dc25cc1189eb92d29d4b3fe61bc8aee1c716ac17b1e8","e6f23f78e882026b53ea4fac6950e56e3da461e52339eb43d2fdb2dade7ca9"],["748f4cf4f027efdeaed7c7f91ef3730ff2f2bb0bfc2db8f27aadde947f7d4d5","3a1cbc550699411052c76293b8c41a3a8a1ecf12cbbc029a1b2b6ea986fca93"],["7321f3f581690922cd0dec40c9c352aae412ec2ccdf718f137f7786ab452cd3","5be5130c9277cdb76d7409452438ec15d246b211dd1e276ee58e82a81c98fd4"],["6c4d6cb7e7ae70955224b8a912ff57ca218635a2436b36cee25dce8a5cdf51f","32f8c03c6db3246946e432e4148e69f5628b200c6d7d72449df6eeac0998039"],["1dad5f2e795ea6fa5177f110989516eacf8fb37bd6a091c7c93f1d73a2fe309","56b2298c538180e99dea3e171dbb5c6fba0bd0a9ed40537277c0c2373a8e2c4"],["1610605baacc9bc62c4cc923dc943347cfece7ae241e746fbe6c2c878221dbd","431a82d657e0d109d00dea88cf3fa9b999845221b7b5590a20c40fc71368c1c"],["6a4f5c787fb09a5be2b04d2eafa1e6f3d3c863ee22960eb0b64f6eaf6659162","14dbc3eaea6146ee7eaace5a91ed9430dad3a47e9ca2f68b455171f8fe6a7b3"],["738415b73e55412b0e582e45ff0d7bf4b1bf2922db581783fdcc75559f40e","33825aeb3fd8459999eb418d15102ba5864b069c6ea517f0c6e9eab8d9aca47"],["2603e72ce53985c70782774057a17944f7b4ce224a809be4e2b5af3606aa1d8","92822921809c42318f42dac4d773325f41c43069e990adac7818a45e2554dc"],["181cd967ab4615357cc96c82eae9152ce7598c1a1dfdd91a458bddb016ae9fe","5d562fdaeb0e12647e230e50eaf216bed52fa73c6b7378821a3bfc4cd66d4ff"],["1121726069b9ef5954ba6490100b226e0be53fef3e071b7c58a1286174b789a","4b25594cf4e9eb2d14b3f52f2661a9992234fc222c0a0d44517cb77deb9c16f"],["e543663969b915337f105f80995a77b356f1a51d8b4a4fb12d44364130e873","34b2e3c009fdab4cb7349a580df2e64c0098a123280078e5da6623a9ec6b44f"],["4e2f8909bb62de5ef65600e61bbf969293815296b6e23702875e049b3ce5c45","3cb81f2c21f22a7add26fa38a9ce5d9cce1bb251bd2698f90c34ff0a84f7af"],["37b546e403a1ba970c17b67c2f1361ab9c803f8d2b5cd93803014faa08861ed","37079184ea46272f5809b523d060686633f7995167897a153be1772fd6566f6"],["27bddca77f7bd7f66b3693567a4238f2e6751d95b0bcb409f6b24d08f84798c","6417a85cbfd6fc02df560d3963a241a986baacdfa423f65d7227ce49a96c57d"],["2de71a39aa043057d1bc66e45f804542acddf18f7a6d88c0d7fb0ca240debdf","306c1ce39ab46300f7cca0f3a2fbfa77296a27e24bc66b0b8044968ec0ee413"],["307c877154364c0c03534e7327d5a88e1380ceef6481567ade37a14ee7c1a72","3404bc7dbfb33b95d922d0693aaf9358f77888d7d95e773c38d83dbe2e5f995"],["79f09ff7c60850e5f5ea020722659a1ed27db4c95dca131f99552f785c8afbc","40429528c099349b426ddbf129497176951a64a53db5f9d8bd2be0252cb22b2"],["4027dc6b56d446e5972f35464eeac85c5254ef377c902d9fe37aea841bb5292","7c3ea37689ef679fa2f5c7e031a78e23d484a8317990fd34d44d95cc1db3717"],["645dbf78a3c228c4b7151450b5e65edb58e71f37e1e4bc5f471e0f1abd6d9c2","15cfe7850f327b256e23b00627451560c5c6ab60db78d45b7ab286afb6f13ab"],["1503ca373757677ad1d911a2b599d01c46eb879d1ce21ae171c7e439846a85f","583eb269b7030da6a0c324026919de3f9489d2ff6ae0e6320c36f05469ad66c"],["66e1819ba3ec4ad4ae9f7d7588d23baa004e29d3aad2393d52af204a81626ca","505249980cbe6273b82ad5038fe04a981896f4117345ac1abcc67e2525c0ee4"],["5ec20dbb290254545f9292c0a8e4fbbfb80ad9aab0a0e0e9e9923f784d70ed1","bdb1ca3a859227cf5d00eaae1f22584e826ed83b7ccdb65483ed5213dc4323"],["a5c1a5011f4b81c5c01ef0b07c0fbf0a166de77280f0ae241f2db6cba15194","4444521fb9b33d7dfeb1247d0ee1a2b854ad166cb663d9dd2e686909362a689"],["1f35335de40e00c62642dac2fda8b30f071986ce4f11db849df11bc45ad4e0c","7801a2c761b90fd4477ba0be9a775003d5dfcd959b1ed198b4681f15e7acbf"],["48db4798cf6821c1ffb8178b1d3bb6020e04186c96aaf4670972d367f4ed5f","781019494df95b888f1578f1b4a3f8e125ea60eca47ef9207a10630671217a3"],["17f653d904210148a8e74d8e719a3061683c164aa6d79c902a19f185ab437bd","6780e97985932c3860d810af1e065d454b1cb4be0e7ffe2d8cea7d52526e223"],["5c4d0c7432f9b0070436240f9855adae1467cdc9826952ae01b68cd52a3ad89","1c5747f968ed91261b7ae9bf1023c999da9816e37de602d6a1a50d397752bff"],["6fedd7639fdaa2f7bad4ca0b391710f6f8a7e890250ae8ae4252bb8b39a1e58","436a215f655a3fd3778b2335ffdc9aca6b98474e43d764c1f8362830b084f0e"],["7fbd45a889c5e9d127bb4f8474d6be7cb9796bbfff923b75e42a1ad4cae37d6","484bd12622a6ba81cd53049c550d9ed682a8e765b656b1cbff9bbea637bd1f4"],["17d984d47937263f7966a3e7b1eea04071e678494bd749c9e02b48b3234f06d","7b341ff08722c4e161005d0037204a7a2001fdda7af2cc1a0b04a027f115a0f"],["7f1822045db45ea07e1519c3ee1f7705915f35fe4dd8db1e8921b5d1c740edf","33d41e06b93320ad1b3d9580380ec797a05dac3f1cc8008899110ebefde2f78"],["7b19453ecb74b7d0e2a66b9890ff73bfbbcd61a266abd6d82dbe665bf32f34d","6dba2355420dac582b1f349609ea1c89b89bba2d1a68a0642f1dd12d86e73cb"],["273e82a15f395ddf2489a95685bec8bac62c4b459d1b28987d3cb27e4bc9128","653375b48a4cf5d5b101c9ef533039bedce5dbeef3f59e8f168bdc99b06ca5f"],["3006c9e7fc6a553d8eb4e8a47ce9f10d1a39576ac255ae9e0a4ce3869e76212","65fe9e2ef2aae608be309332d464f57e28f1df5de1a6a519751b056971f932e"],["5e8f384c8a4607fbe9789fcc52d54249d304d698562597d114c1d81452d3dee","3c8bc78066b5d947dc1e405e326ee55ea606c7988f666748d259850fa259a22"],["7841b2102e9aa103fb53a642b3e167b21113ea44751ab38e0b5ef8312654db9","71bf5c8308fcf9c4a7847494cd9bdd946fddf7d3a37e8bb0b201ff2343deb8e"],["40f68027420c11e3ade9aae041978dc18081c4f94943463aac92d887f922a62","499c6062594a6c7e21a3cb91ea451813393bff365a27a08f1a515439b83cf42"],["6ce77a50d038b222634e87948df0590b79d66087b01e42b9b6d8fa30ebb1465","35f5c46bb1be8555a93f155a174d54ec048c2ac8676e7c743054ddc52709d37"],["604f8b9f2dacb13d569262864063c2d4bb2b2cd716db6eeb2b1eeabc57746f6","68c6799e24f3b44eec3049973445174727a66970f1614a782efa2b91ab1e457"],["73d620f3bfe77f672943d448d7dc05327adf64b8e7af50039c469d7f7c994c4","4859deb36eaf0c802f0d1514602368143a33ec6ce8fd55248b59025debc6afb"],["3fd2bcd1c89d706a3647fbd354097f09c76636e93ae504973f944d8fc3bcc1","677ef842cf5eb2444941f527abec567725e469469192354ad509a26ebb3d0e0"],["39222ea924ac17b533c72ffb2c47ffdc11d6a7f7c70fbde3a10fb0b8f35eb2f","20dc4bd1089019bc1d7379b4feb3eae6eb5af59e9f253845da9fd633057e952"],["326f58994e1347f62e4102183215b5db956378d2f61f14aba4dec94577f53c","7a03284c296003bbe05178a1d82efdb7b8125511d63e20e50aed789c2e52e1"],["53aa8939c74d4ee58f03bc88bace5a45c7bfcf27466201da05dc6723a5f5632","2e32535ca7732904a048183247b04b426ecf9b39fc393a9cebe92fb1dc7a7f1"],["6cee1a03145e93b3e826e6067005f09c06099c98198c91c222407ba5c8c132e","beaecad1274e7c6e5476a100c271aa1a6f86ee5a9fa5c2f26124d5886fa63"],["3ec659b8175e1be1bd5a252108714776b813e330393f587814f5f1f32a73332","529a5cf9f8c237ae69a94217d173c8d19c156952041f5c980da557990863fa7"],["3d66ec5963d0c534d4139c8cef2e1ac48b3e7965fafabf58be26f903318af4e","3d3f2de7a95f59b683725ee6283cbaf31f97c4b600df9a4621413223a468740"],["7fb38ace8e0932fac2ea0d3eb676db8d684db1817e2e4d59da7996ce398b4a","68f92bd5768cdd4710249f9d49ef1d5654e497b9a4ba10bd2971366d83fb400"],["1c4a49314d6b4969cdd142c76ceb7682bfb868ace7f7568b0fc8635bda5a9fb","5fc0519f1f4cc10b5771312458748c036313b87707ed0540026ac64a5955aa9"],["3073c95d08d3b97caea5f0be16b2789bee766f76b7e5499f8ce8f96abb0f344","52a8974b4eb9a1f6a0ae2c83cb4715bf18d73f057255fcb3f63b74f7e78f590"],["44485b16d597a5de3604df6f7ed7e00b8aeef9e7e8dea8688255153b8bb16aa","6cccb0ba170123266f24b5d93a744397dc2c44820edc4f8f5b9a0f5c9b3b940"],["7618f77b7b32d512688dd62e0b48231d9574c6361e8be353a7dc04f7c3a115e","78ffcd16d80636381ca231aae70d99c9e20298b4f5388fd823ea9fa2b8ddfd9"],["7dc82fee1ef95cf5b3720fcc07f63246654bfe39762627839da40e51c75654d","4c0ccdd70955da74558de20c88352df8a02aa97e4d5971c500e884740a8cb62"],["7fa5d460dc10cbb418b444d9bde97e92c70a99a222b99f244dccee7e62cc04c","636163901baa5b7576c38c43407af578b8c4607e01e86011ae2dde587a89f84"],["758930d46006623a756c89bd0cc378f6a3c1f43c9a0edbb42274c35e75c16d2","1d74dd9f81c2fec811b8cbd6168a745b0a111932b2a345265ef2853b50b6245"],["7332ee0626b044d664ef228f8cb84df7c643e52f6a2591ae1c9007ad61ec16e","229bd8e630572cbdee54283234cf3e9f060e6382f99943bf234119d47b54470"],["78a16ef803aa20a075bb2f66c61bb2dae5698bebb94a0995fa74c3d53de1614","246d588b68edb6fed96c128349908c42dcd64c46341b205e79f4aed9b5d3675"],["6e1933939bd03b67bba753cc0cbe7d2f25bad68c993887ef8c9e2fcd59b0647","599413f7c204a11a5ce315eab11299ab7326603412bb00bc1c59ff75a37d6b4"],["4a79957a5a1888ad063b51c69565a2b48e8eb917183e220a1c8d3374526d30e","1f092de0e069bba7fc5386e2e9a114c1618f88c4b95e220cd35ffe96f99fcad"],["3148aa3df9ece39aca84f59489f2710522216f14be6055ee0027529d1d55e2d","617e9a52a92975db0ba1977f71116f7058a0d31b869ac7f3ee2fd80b0c5100c"],["5c1188e72384160ae39d07328346cda4f6c12d227448e6236f04dc971625287","1643006eb3a3bc6aafd5f685cf054f2a572e6ca58c0118bcec0b833741f116d"],["3f72efc93c9b71adc4c51d8fc69d3940b20d08733af2b7d05140fdb1d1c1004","7399259987c8f4ebfab46e522380707e58427d3962ee0c2a91760813f76d232"],["3129b34c03c51aa8f611e91d5cfcc9bd3ef108ee66e6d3ee35a0e0e50055bb","563b18b5650085efb4cf179a029e6afff27b1d3091cd28eaa68d24fa1f801c6"],["16eac0f9fb4c67cf89a7fa4ee615bbe731d8edcb709a1b9b50c7d873a530f52","7ff8288b6e199ca8f316192881424a37fb080c29daa76b1f0edaccaf580a80e"],["75f6b6028c43ce832f65d7e8e620d43b16cba215b4b94df5b60fc24e9655ee4","35e9ccfaed2293a8b94b28de03bcb13eb64a26c831e26cc61a39b97969a2ff0"],["3c6152fe093bd6316897917ec56a218640ec1b2148f21db9b14fc7a5ff362e8","6eef2df27ae7d63a28856b07b73e7aad7ca94f317201a1e675ffc6f9a1710dd"],["54e01b5fe4fd96052aad55b3f26b1d254dfc7e2525fffb9ae0a77eb8cc5579","7c3d39232ab333675b219abc766ed9b4782c840e6b046614dedb8a619696eb0"],["d1e63f8ea8a76429cf254a6d3b668761f0dc572d4bfac4fd56d9eaf58fb6c0","2bd0a84d3908a63085824c9329a0983913006ba155b56a58eb3f9becab29c45"],["2d6122f2a702edd4da7385b1580796a71d13bd72be94cfb3fec01149c006c2d","70eb282fae992efa6f5915e578b640653549f23385ef3a29ab29b1b9b8ad63b"],["752fec14beaadb5ddbba6b3a17fcb86579fa588ef407fad0ea07dbb22a640d3","3feb6728eca21a1e84e8f9f23010387a53a96a1cb62d86fb37996150a1299ef"],["63f94a92f27acde8f5ed949b459506f51d70c85bcc61a34d647264ecc53c65e","37e5dce0646ee66f4fdb93b82d54d83a054948fa7d7fa74ab6b36246fc7383e"],["d6aa909287a2f05b9528690c741702c4c5f4d486c19a46c38215f52ef79c7b","5ebe1128dd81093df4aca0df365d58adab848d1be1a94b95eeb649afd66a018"],["12866812b3053e2f7a9572bdaf5ef2b48c6fb62a0eed9ff0356df50e7d05557","6785f7eb2cd1c120e4c7167b46861d10117040a2e9f2ca86a71e9d67df90613"],["46a730d05330b1b13673cb8a1b8f45460035e4a9f1a1751cfba099c4355c1c","76fb0ec6cd16a8141cdcd875c8b2de9fce42d296072643d148ac7e7fa7472df"],["4bd4380a22900bd34835e0a908eacf4b6edb61eda0cf483f9212453b37e7516","5e9551cd20d8d7ddbf4366880b7d5267385afa1966ff30da4baaf273b009d29"],["71f1994ad40baa2922424ae222663a64f93d8b67929e9a10f9e4c1ab19f3833","85320fe68ec0d37cc19fdfd03589d66906ffa4046c80e1b094a85f27676346"],["5a63b1bf5232f28f808765c6be7ce1f81c52145b39f01c879fae0f4303bee61","3bc5d6df68bb6d0577bf9ae2ae59ec0e9b2dc7dd56ea179fb38a41e853db950"],["161ded55ff1087032381e6c1449704f63ad2d88df82dfc44a71890fa09b3941","78a52e0013842037274ea75daaf8eb4afc04ccc4b07bfaf3f5ee47d165e01b"],["1bfce5229c5fbff5c0f452a22317fcfcd9262f23df41840f84fe7d44cfba1a1","66b387872c00e63c73006a955d42cf49c46c5708fc9d1579b9ae38341b24a3d"],["56d47dadc9cbd1dcb2ee3efcd5d4af5e6aea71df10815c68b54a14e81d11b44","47e966ba54df48e9b612a903685e0060a67e4725402e8cb4cf654e54e813a3e"],["4b1c44438afd4ddf20a2cf612df2ee494ce84c7274c5529e857693e73018491","430403bd31d8f0677e06abff7159384560f27b9622943fea1a3192f14bf40d4"],["7f7281728fc2214aa1dbf13176a4624b53814734abd570eb6ef7c7e32379606","312da47be347fb3fa2c9089b38df372560dcace2effeeacab4d96ab11567295"],["16a28884a1be8183e0d3fc0db84a9afbf47126fd3be548c2a584aaafbfa7dfe","7c3f57b3b895564ba562c1cd80b71fda6d2e611665c6ab87744f5390858fe24"],["323339f37b327a731232a9580e79952063c7c232bd1380146d8a83c285f4b8b","4f16be1d983c7232f92cce6b9690695978d42cecc8eeb8c206e125d1098a265"],["624d26cbaa197e104eb83cebf2adeed09a5cdad359993fe5e3529d4d0def21d","261b7da3cfb55c788977e0d8d640e3e93ae5a325d962ce85c816d7d32cfc430"],["f24ecb7ee83a3e28dab54a330dc93d0429a7aea36412e922dce8fbff40d60d","b043e36a258d1df1d21b0cc7be9c4dcae1bd4ed326c110e668ac23d86805a6"],["686cea46b710bde1231483bfdbc700cfa3da6ecd5841c0e0c782f9ea24328ec","7eb7407aa58edd6911c7c7e8d1e03bb52ead4a2415a0c33325872ff3a521dd6"],["3866ee1186264549df3dfcdf8705c0380c9372eef6d4081c2454d3aded1720e","634c6d3e8eb8af652a4be73e3b613452c2213104ca875b66b4b15ee5b1716af"],["484c687cd2969a1d20a58cdfb9a60f280a473284503b1ecff5de514aaf8206b","34d44d26b7427e51a646d1b924084762f5b461685450f21d6a472de565bebd8"],["203561333771fa0fe22c4033349f7b877d15b0542a5598e81e067968768247a","2b6a533aff6e2163a36a2a89cb7415848bef48db40f952ffd380f47676707c2"],["2ffa6cca6233695760251206fc5e34c8d3692498589478cdd3d5b09f0b7c05d","6c57d605478fa9626c4ed769554d075daa53e1a1d0bd4d94174d3bfeeb11ad6"],["5dccf0fa46a5571f204d0b033b45f299cbb3d9f80fded57253ea4f1c64faaef","30a38e131ee8756ee5ea2a3e16618a5dbc28b5b9311308bf037ecc2039dfc7d"],["57b0a2eaebeafd950221facdd24790d7d1ab8883e5c5d55635f0d14a1ee4741","7b41cc478fa6be38417271db8ed12efc0da6982552c1496025d2df0576bf4ad"],["611b5725101f611c387ccaa13889ecf3bb5595071a179ce350029bfca4ad7f1","3129755977abc8995fec7eec1123a1561e429fde37ff36af002d3211831ecf4"],["1c06bbd0c52fdab9fcaf680c7a93fb821e538a2ed79f00f3c34d5afb9ea6b31","3873d3bdfe0be0157bbc141198dc95497823cc222986d24c594b87bd48dc527"],["275cdbabc989c615130d36dabfa55ca9d539ed5f67c187444b0a9a12e5b7234","2b7f723e68e579e551115d56f0ae71a3b787b843cc04a35b9f11084b006521"],["6cc702eb20f8b5940c7da71f8b1801f55c8c2d8e2e4a3c6c983f00bc1ffdd95","5d15b3727bc66f3aba6d589acdd139fae115232eb845abe61fbdfc51341352e"],["44defb418700cee8c9bd696b872adb005490512d8bba081f8f99a9f15cc981c","3b2072cdb1d919b2b65b5cb3557f0a3381d7ca293c267ca4a38f83e77bcc96e"],["fd83ce77b1578b3a9b8c3cbeaddb1504d2fd4a19c901c21ac65961224e4966","110cbe64fc10c6b9c66f15ca406a35f50b723b35d83c5eb9797a57f8395f4f9"],["9dc6ff90e341875e113bbfb507724dc7095a280d2f32cb6ba61a1e0c2d2aef","4aeb622896c852c2747454e8f172c9482955a42ecbe522d6ce07ecde79d0a51"],["71c58b0e47b9dd9107ebd8a8c8fa9f0534e78231bac612c1ddc7a94edf33eb7","7f90edaf4792bf8334adbaa0f4ee7c654312725af188682d75f34874c4eccb9"],["1f6de1f14988778ceb2dfe844f92394f1f1e72fd1581ceb3bf336c95ce50345","4f6007ed4e022d2ee9fe4ca8207c5f6c766c4f3b85260e941fb24ad0dcbf0bc"],["3ddc3ac25ede4a67a97547ed27dc920239b585fb3624177e2e8d59eba678115","a9afd8f8bb759cbd1dff2addc63f47da4ba1291ea34229c09c0637dc5c8d24"],["c56b0269d8431556e471cab9d70edda3a37b391696f107b2dc370631de51d","729c52f6b134f733eb750c14bd9f95c077f0f6f6ff4005701e5bedc6544599d"],["44d32ce19ac6807cb22e4f25fe1486a36a13926f147fbfa054b63ff0446177d","212a21e8c124c9cd37c80d2dd66913ceaa6b6f666522f115c39382b2d5925e8"],["35dfc16f3ae6ccc06a267bf6d931601e52f3e45359ffc513570b65b96adc4f","74311d10f4bece01b5ae65a6affe5c931463aa1b73a3320eeb41bbb7bb1ff62"],["e0acd9d2d907031b319b80121dc90699d003d220ea785d50e5033cdb3b1a03","3911ba78d6e507485d6374b0f7d2e6198f6462a7d6d3cf046404a07af690357"],["3c57918ca254c0cb7dac251ef4e10c7d82327969552eae15d26c4c52660922a","5fd5f5ff3f14e671548074114c72c48409df8a2e71fc8aa3c8acb506e2a88df"],["222ad8b61e219ba2b581f606b7c996516850a46a3db72fe1f72b5a9be6c324c","72015a5e2db648112abd284fd867b59fc5606645177d26cf6e9a655c9912d42"],["3c86d5d774bc614469768ad38f7be9a53e9a233942c5c553b82e49aae684764","480febea8229e130dedffff89c11f3c43e11724e6bd89d5566d78752859d41c"],["adb73bb8352d0c10175df371f7868ef2c9e0c79ac788430c480c0f7d85c187","60b564785248111502e6f39c4994d6293fac22bc25f4d764b2fb1957d3c9bd8"],["3836ab8b46cf4f453a22532c886940b982029b29c42adca90ded5bf77e6bcb9","7b15e91d6355f147b171a90b064a9d8b2d7bf3699bbf4987664c61c950d8996"],["12ed96af1a97c45ec31f1531e96f6fb28a03ba52ab8484545fbe0dddc97bb32","6d1f522b6c6cad0940cff8e23decc72bb8d4164696af031415508b025aa8be1"],["27382994ae5878223ef802e9b4882f481a1b4008f1eec8484483471f7aa742b","c31750d242b3975b0026a0e86ccdd17d0f680a8c6f53f197fc25eb1f777917"],["431677eba3715455bc235557518a74f3b111a88844ef13e159ad44bc16de3e6","30000e1eb6a17d9df776981e65c6e500fded1ac12003adc9446b269812c9197"],["4b563e6f42589671579eabfa2cda5502b361c46a5ac8d45c8ed44741a925b33","627bdb41678443fdd1aa607709e9699b652308615f4bea760a3b79ee0d9ab5c"],["2932fd3f81fc973ca9def6b7f1bb50f980fe589187cfe9e9f52ba4d356cf2c8","1e6bfd00fa976c4770263a227048214c38850fe0f059e7b3d2c7871ef07d68f"],["e44e4f3d96d9dec775b996be57e57fdc28e7c68023109b221c414a244a0dbc","58b1e52fa274812e5184e00e9ad812bec2463140adfb4bea3b2d665867dcc9"],["7fcb89be1f4bec745887bb891e53fefd665c53d00a9e74de16b8a7e1f7adfb5","74af0b06633f779897e199609c71cc5649bbb65bc2c0abd4c678f0480c198d1"],["62a381ffb904ea3ff4d451d4c8459457cdbc3dc2fd2da646a95d8c1e90c0b7b","1ba058658e09db9e319fa73de8ab4a992b71e4efc22c273725bdcab84e2a315"],["1b0fbb7a84c67e668450a54449c7a46261a2d355589f8b84ebfbaf9a77ee938","44f8fffa33dd33a6146c35d196595e22cc4a215f61ee9197cd751400970a1b"],["78fe920bd96a356d4d95ee34adafe8fecf071d3107c36f047b4024ddc4b3eea","6162f29607fdbec10181fbac6e57d5cb41b922c5791fb24bd28bcdd75d16c41"],["5629b849e026e65d119ac11821d7ab7efd9c52226f75c7427505d6818bb0c8d","1539c0f90970ee8b490e45bbe5568170e5708521a0e59f976be680595906feb"],["62bc853f349bac8c6e5921d27ba85dbd9ba20a375d70a7bc008928f3e123b04","6acfeb1de05ba43c3ef1a9110a983a320e77b3ca294abbc04aeca19b194f26f"],["4cf4bed663464418285cbae359b5d84ec76b5997d24f3640984c7663421190f","941f818e3e3e8fb1568da85217d17f9250ebc948379014d900a7b1a848494"],["52ff3d9ffe9a302f6dfaaf74bab57c08027d5cb699a69b30830540c0a2d47a1","987dd8876873778d933fbfed37aab2f7d6f669c37024f926b1edcb2ca55782"],["1109ee32f0bc53de6bfa457060b366e909d7c18061ec9845f46ac715496897f","38f36f172bdfd454b9285f86e6bdece8fdffc95182c7d801b03c671cc55139b"],["4b4482f1d84efe23dadf3bb10df3dcaa251312dcdd604f616f1eb540e1f3232","7c9c149dcae9135f940fb54482f9c3cd8193721643a6e23157b8020410d439c"],["69cb459b9e415b7581ca163611c470d875971d5d7949de732d1f0f200544a73","a7136fa9dd00c0469863b7def3f83a5611ed628810d7e807e7a873da5a9897"],["b66a4e32ac9a4baa8f64780acd94ed3628b2b0ea874ba4dece629af65f9e62","24328ba9996a24389658e3467b8b90dc3927ef8419fe28b3f55b1c1aaa51915"],["5ecc3080062dd451236de0e4eb91c5c75100733364bc5469f5fa76f79021ecb","6da4abb9031a27b5be94529324fad8026e7d871570780081b0f424d4fe543c9"],["1e3146f00880bb22486d5bc73e54367d54251f4002bcf342d0393b05a4b9ce0","23b6fb8e945d3205f633ba724202db5a99305f807137edf942cd60eef867699"],["2e1da8013285598b899f026c6974185db12c97b4c63509769d3d4ad1d18a4e5","1e7e7b668674d1593c39d58bc7bccbf568208732b3519bc2cdf93db34366862"],["d26c3f389d81709506f184b53871497c8d36c5c9eee8e3737358204c1acba3","34649c3d39f3b825947fedbca215ae30c5a5995e93b1c8efca4944cf85a082a"],["91300478a83595d548f32f259033291fc7d083953b0b8bde88c7559660c563","e5d2bff57fc6551e9b80c06ac7314a71907cdcc66ce82f2cce721a670df10a"],["1f7abcb9d462c63ffe92aa56619ae8590089cca4d93ee3e5f34a63882452cc7","7e9f85c7b7ca6e9a4f3a026d1048adbeef69ea9d876c6f647c257b879a81bdd"],["4d2caa1323012e4c83b0ad387308b8aef5637bc35ddd882e7f5e41cf2ca410f","47150e808c81a540b6f8864e9d6636589cacaa516f82caaa96506edfbd6f0e"],["3c10a6083c38351deb3e6d1b386827d0acf48979b66b95249eb8700ec26b069","47e34bfe561d903cffdd1d849b85aa3cbd31cb4a9bbd8cc2e5fd2f95016cabc"],["758bd54868eec045d0b4d3d2bc415d24bce13fee47cefdfda46425c109b657","3392a7c66ea3bd7b044680bbe9f78ae86752097404c067e9d2572f55330df83"],["19e718e0ca1d2d6fadbc6006ee7dda7a385430e29f5e239cdd4bb7c3fdcb2f8","5c68249b7fe03ea2e13481a63b6cd4bf74ce42009a89fee0b3f8f968b3ec709"],["28077f57ea62401806367e6d54fe45d02de5b072db787ffdcc3854e12a3e855","14f3762689072f5fb41d03e94b01808c739f6d42b7b785b0e464100b150efd2"],["3b8a8cefd017363ce867265af3293cec081fa589fe561830f0078778cbd338f","69ccf2383cb7b4f9c806d72535812483e7c5e9a1a5928529d64ca7e085e758d"],["77878f388d22161a2953e5aca6bac1ea480e102f329574b4b201640d44a296b","7eb35706a90a03aff7c2fecca72659136547cee98038746db5aba16fd7178df"],["97332e6da70961f2ef31b7b628f1018d21db8db015922a301fca7d6fc6a8e6","2e37b06f639fc7a82601b744570a2619e543cbfaf60e474107fcaf4686d3223"],["a81518d452d3aac48bf0386c3ff170ef4e684a4def242c964e129c64f4d647","37506e44c85908ec7b7adda9547fbdcc2e3605151fefa77fbf127ce3bc938f2"],["e80336b2220b1d666074f6b0dac85353d0e4c2e8bd0f37055a2236a6a9fadc","1cae76d73eda7a5964c5d9d3ad6748aff51f5543c56441d2fdb7b444a39846a"],["2c01fd8430ecb44e066f352c4f697fc9fda177dbe162f82862d7b9ea8c918de","6e1dfa99640fdf5b30603d34c7c97c1aa6e6b7f3a2c52a21fc64b0fcac7d591"],["744e37b511cd0ddcfe15f3581947014c159de81ed055d15a13c7a2d1fa39f0f","685caa8ff6979a6c63640ac638a3f9c75737f2031bd55322a47384357af164d"],["40e627ff84e1a7a9068b4368770f5956128a4d9e9e33e9cf5e24d9a242149fd","2465bd6cb20bbdf810e2bc5c3c458cecf4f3aa163a7ac99c2579e5f33417f2e"],["5f635af7f554a17bceb6ccb6e637abf89ab6dadd399189b0a0390e87b1896bc","2aa6238a69f89665646c0e3ca2ba5f709cc6e14351cf71e1b00ec45201417a2"],["5edad3063c9fa8305978d7e6a4e037c9fa519b8023c7608dfc3b66e5c1e8985","49f405d07d7d01919da51159ecdad1031a5ac208c026fdfc14d38f633d92183"],["2fdf2e8a45858c12926a1f25a62255fb2d02d0149a15ef669f859806683e649","61cfb686bb31e2524470d4ad2ae09e3cc91b16305a21d748098feb1d8ce3b3d"],["ecdbd7c37f1dffa3943977278da3bb429afdf948b4ea6cdebace3d3be82381","190b67fb34f7f3ad6afd3d6b6427aa327547d8ac0fb4deeb0feeba1f63d6c60"],["233021b483f578dfa5222f8cccba5766ceee0ac65f6d4a3b1673b302a21fb3c","7d4b6d44d175d4b593f06f5a6dcba2cdbc4eaa2097abaf613123546866cf4ef"],["42db4e953c2a7a743de9fe20c5798f2247f51db4eabc6f40e86c13909a310ce","12c1a0764a0b9f3666e431923ce15e7fcd0ded5ab153f0b48d362cca1604e65"],["30d539e2b545fb957e40e2255f6463b52d227c9808472cee6a3d521aa283a44","5f9eccf747fe6313570f99e845db32b40070acee9ce9e34da7f3c29ca53a07a"],["4bd64e5ade3e2733580a6116b4af328751198e7128f9acfe3a3496b545efb5a","4d584768900dabfc0dbaa086632b8051bb3905ef79b84d96c01514441d0cc93"],["62d6e771f02e591557197d13c3e77dfa2d1794ac1808407bd8227c4be31b466","5c6f5607c1808e899ba36a425911fa8566b7ea9cc80de8a80538c0fceb837c0"],["5ce406218cb2852b1d2fe1836b19462f664631785216e87ffbce26030e2101f","5225f107743c255ab50e7be4a090fe39478d1ef4ff558468559d8cfa87bb94"],["670286486e8dda3dc66b0ed3149be7697d3e06c8279844079daa7e42d5af728","26becabe7430380c56e320f5ae3329569cae7b0af06fd5327ee23979d200eb0"],["3ef448df33a4394c43e93e5850cd0c5a6dcb18ae1cd865d00fe8ede9336a9f5","56711f6ab7e0e4f7365ac34e284ac2879f40208c46f6febcc1dcf7146ecf015"],["4b63fc130288e92f2d6ba238caa7a6364804e29829ac037c57df32fbf762bc3","1eb8c80af55278b4113286c038fff2bfad2da62763bb03426506b869139da0e"],["4e7e998557b29a95f805a6e2e26efc1e970108272d4755738c04f28572295c0","97cfcc2f447bde61bde71049d8200a74a3028b21703bc139143d81a3623f09"],["574b67898f02964c408f68e9470e7b615be037e40b824e6617f89cb56c21219","49392d5f8e6740a1b0b7444f56d7a17363f8656c6e4c628678c86223f2e46c8"],["7e8cb50ea5d5c1b09e219e7305bcb601d99b6d7185b1c388aa8e36fe1e56554","47fefa308645455c12ccb5817da338f0c4f423b341aff4a9d158891a4fd69ba"],["67266dea9e71b4ed2bf24a597a823dd048cf31e725db511edceac72998c9ef6","39babd65850befde1f7c28e41dbdbb4caf82bbcf3bcb5b33161f1c2960b2d8"],["63e99c2cb9c74eb9227d48065e27abb8f606df8fc83b2c44e4ea38b046bad2b","60494a53dd13ecf34e08079d343c88fb655d6d810785af81f08d5aa9bcdcf9"],["3cf0600b0f5a2a4eb78c487cd385350e8c7848e3f6983231881d7f1bbe28543","56dee4288528de609976ef6b903b652127c37b0590e91a2fdbebc3f11df2628"],["758f09245fa4b8b23d290ee2b3bfcede199b4fdb11f3cf2502a8ceedd61b129","622d9baadfde781e985d9722e0a04715666769a4cc7a9bea0b96d6386be1746"],["38e1a45b81492aa95d7abea2b08b8c14dc0b8a41108b036871fb737910ae18c","145c611262656385e5ed6243568cd3f9f59dbfed7a01ba11e22bb8bb272e08e"],["206e54ca53a2f155bd4fc45bf2edb77798ae6623defd4cf22f2dd4a7d119dad","6c94e7f0825ad81680e4cdbcaaaf4df806d57a0d1fb2331926c3fe2b79d22e8"],["56e98d2862893caebf66180e84badf19ffc8b53041eaaa313ae7286a8fac3d","526306f9c01afd6e0c1198ea5de17630f5a39c4ecd02d8e6f0d613c355995c6"],["4fa56f376c83db33f9dab2656558f3399099ec1de5e3018b7a6932dba8aa378","3fa0984c931c9e38113e0c0e47e4401562761f92a7a23b45168f4e80ff5b54d"],["450cfaadfecdb8a2fbd4b95c44cb1db723ee5ac9677c9c188b3d7c8eff4ca58","1a552bdfc0c81be734f1f6ca9a6dd3ab4daa61c11fb53ebb7046eee25d617c7"],["6fe20e5c8a8004e33eafc84d16ef770f2f0b7bace19adaaa150f987d295a34d","28a35040a2ebe9a14a162d3208d5eabc6e2f3a8310f926bd80be65aa71775e2"],["1bd65f45a35bf62ae8f9ffcbd7de2976b90518b6820c219f039c50043bb1edf","fb5f0f8659f9b6ed7cb0ddd7999506d0c20b26bbe69d1915a31842cfac41eb"],["4ba4cc166be8dec764910f75b45f74b40c690c74709e90f3aa372f0bd2d6997","40301cf5c1751f4b971e46c4ede85fcac5c59a5ce5ae7c48151f27b24b219c"],["21cfbc678f5a279ebb6ed124273c8df37eaf12a2d04180403ae6b5ec0b1e1ef","4478ed6a346d899ad7b0b10350270aad39ddd5b68529297e4c91a54357f0a7f"],["350bfefbe3d864eaadac9cc1195c14159bb736be743aed7380d2384cadd2046","5e2a4b3ad0e1d7b9b8ef72b10d68a80e5ee691d7db591fcfbaad6240d41da8b"],["529acd569127f73c8d34345f87e96cebfb48ee12a00a3861cda209337ed94e6","3120671a89b705e5bfd99b0e7fd2118b4914a3ac309b3d74527cacb5ad7491"],["55d3d7956a97d10e65a4d8ffeba40deaf0db0b57f8e022cdb3df6df613f5c6d","159e59a6f92f48fcf85aa96c1a03749a4c4e2cf9e2bc94dd36796daebd9b8b9"],["405f019ee8f2e972a005c549b0884b5051f63d1e78480b73208dc07d8c65a1f","4301a3d0c285ad309ff24a12c100ead7f48ba1368143712f32ac141ab4d9e8d"],["376d59b298d982f02dccad0edd5bbd4e5e8fad7898750675ed0856850a7babe","5233b12bbc50564eb61cc098a17d3d97f06ec7a230380e4c5d3b725cc318eba"],["2f55624af6109ef04b2ed035a44a904ace8627f55889f011f768aabf4de9a38","7f64209ce7dfb63337ccf3d8c14f4093295f86996cabfee23b1655549aca089"],["3b8965e942bed2714bc2e685fb103496e1e3595ac6a343d6df45fb5ef6979ed","5b7cac7a165cb69ae103dd9052fb39c00ed0aad47989005aee53972d82d45b5"],["7abfe3accdec1eae1a50049efdd9a8eb7c2921a08e8bf1fe606e9d5a4039ec4","3af178e7e831f8148244d2d2b284a32991852db6212ad0a9d77540ef648a5fe"],["4983196df6ad7d6f0a8d76f86af3863ad8611374a03fc0fd00793181dbde9d","204c1f91b70f975a21d24a8face664e496f00f602daaafa69a3b56098a4cf89"],["79e2b91c1531a3b16dbd53e72d94e16bf265cbec261658151acfaea3718ea72","3d9bdb47e8b148c1c5e9e694ffbc2cf71aac74ae1a85e8d8c3f77e580f962eb"],["297efceec61b3be17565843cae465c52524b4ecd9331a4170f54f7de8c4556c","6ccef1733624cc8b973ac63dd54e7a53604929affe81c3439525ae5ed6af993"],["44f04b1966264a23ccdc870c8563ad2efcd4c8087b5469b90e792287a5581c7","1c417f0e9829fa3d3cbb7c3cf4dc7aac04c5bf66ff3f86b833a42c533aed1fc"],["6ff83f5d8b51db3be0bda80eed2e2adb7037f2f58f705e88f0f98197431ac26","64f59b8428894c2b7afd740866065ded42e716c7d48accd3f117f22768ed9fd"],["14aa8187c9559f77cd1cf96b2dfc949182529936f2b0b4050ea56e134073b24","5f36508c68b1dc586f3fd3f4e2bd29c6d8258491b8a6aa19ede811ce0d3d0a1"],["95e8882a68c5000d1c2be7c0b43e7f2a6f8de906485241f0285a5c73a27a83","1e4cb67207ab73bc1e5d19fa2146fde6d03021393b77a55df4ddda1fd28f5b1"],["2ae0704dacb3da47d564514b4c3543505b403ba09a248c6e74593cba1867ff5","5a4b5818088dc9ef4066b90a8893ae80fc89584f987ec1928ef9d72cea2bd67"],["61a10898a76fb99989e51c0e823cb60b95ec7ccccb917c42b2b28014f5fd94d","23d8ec1de45366d3b86c64c2da05a2ce3d171adf52ca5522e652ffd0eeee795"],["79884133c879cf07734976fd64de220c5a972e04c2a3afb74c362d6c3beecbf","2aaa0e6d4891b792b5643fdf09873343cd0e3fbba3cbd0601b481a4083f32b6"],["45f73d2fa82be6c5ccd0f62d2237efe8727c479967d27cce28e42b9a44bad5b","2fa4932215f72d56d8be5205c5851c9b3e5f2a14468e4a7acace5437c6b27dd"],["37f53f771850f52f9c8f87b53c6bf0c93c2bed76f5fd1d5697356d0b2325007","50f1a052b79b446fbc7b93ffa1a4515f6c3be3a76a2b0bc5eb8ff327549960c"],["71bd6d23e0d2f312d47582efa609101f15b9ccc571fca8ac4fe3457c67fbc9b","3b3fdf86bd4c7fc26d60540a6439b4d179dcbf7b91efb0ddc60dfbff9a148c6"],["78219ba049438385b829c13a4993874a4a326c4143de0dd581c7b9956f99b06","5505f1268dcdd4ee01b77abac3bfdcbf3f0513ab097c69ff777b4a631aaf256"],["b81e924a86536dcf68bc5a2ca2065a61103ba6c9eb0ae4cf8cce9dbe286f15","653a6dfb51acfe8a844fb8362795e5549d424aed88d3a090366a44f840b5b83"],["441c0d7b7aa705046dc0e07ba5f33a7d9df23f694a05192ff8c2d7be2aa3fdc","4c06568c0902bb99d428bfa0a946ed0f0ca0a51fbf07cad88e06e9c78e38a59"],["2569c8c78b6d6b92533f29f767c95720d377fa63ad5a3b9827ee0a74b0488aa","4b59c81d3cfe08834f946d9d57614f5366e0bcd9349475aaaebe01341196fe0"],["3f2fa285a0471647b214eac652bbad9d58a9f2dd2e812aff0210d0d8a6eb32f","4cdb18e1c2848c2b52c1a6557165bd1a8f55c2f7562f5cc0b326f73c25b696c"],["5bb5141ab4fcc5290ae9151b8045a2cd8391547ce7b3b33cbbb10f8fb538092","5a36bfd52acc6a83a9913b937ec086cc27fed030b5fa70dbc5d3c12c9515f56"],["3f3fed272edf91aa7f8ca5d70005d390fbc67830ffc69c5fa3ae17582d2771","459057e0883c44d8776fa217405f443e5954f08c4a5db68e437becaa664a999"],["5237ca6656237a717a739a4509f70db1b9dedbb6cd232f60c9bd8c4563a6b1f","56c7799dd02896dbe7d69dd8bb9718270549592099569d107b7b49c34bf5a49"],["1cf6b8499ac881e0b2fc7def9bc1a28937033b2fc52de99e75909a620c7a281","5769cf4f735366fa386b6858043dc99a100f86fbc77b16d57d77766197ba27a"],["1b74b8a6b86dbf9638cdb0601e1a332b8d880753423d38c3394902c57f15e40","6bb2dc10d2ecbb913219d0ebdc8d3337d644ed8b6c4e70637ef4c7e50887488"],["61e4da415661bba52a4737e2bcde1a837787c4796b2e1854778534f1582c29b","27c43e632cb7652e8508c9c38e3b4ad0d3dd6ba748d42dc84ec2685e64b9aad"],["7c460a204d23f20ce86596dae6ac9b36734e4a9f7c5b43262c97a36c6a41c6e","481a11f9300ab4c4bf6924c5ca884728cc361247377065920966785d043fbbf"],["124ff5e55e4effa40daa5b9618d75c49c8b6fad95cbe8c0bfdd83cb9bed8316","33a2ea15d0f71f58a00de71acd7f22ccf9002115e49dd1f7631faa0d32f9987"],["61c9f8fc86715e95ff43583a865c5a6515f93381839d557ef884a68637eaf4c","5877daaa42bbab9083b571e12648a9d62ced4470d71653092b6546f4a5acceb"],["70a6b9a9e5d1fcc07dd9ebef6d8f5fcf04c6cb34932d0fe2335330ac6dc8d3d","3f0cbd332ac56922e886656bee74f6e9bb4bb88f7af7bba9098678af1f38fc"],["41db8a0f1ea78443a39e08a54323743c8897eed1ddc28f41aec6f2655040d9f","7d4bf32f8f4719c2e4af8b7889f3b65cfdd033dc2f971798a12170f2b26efce"],["62f035e01acdfe841104942d6c8c07f0fbd618cb85998ea24bcc24cfac1f8","1caa886104b7d753fda93645a746989794cd825c62473b526ea34b3d51b5771"],["441c6f016d270e86c19843727b83b864cec060cafc813b23d7e41e5abb1a60a","29fece4e40400f3acae0586f4fc8ed535e805e472123ec38d662d8a0b01c086"],["2c791ba0fb0b66177815c98191fa6188dba9c795e34a7c3c8a19086215e3cee","11123151389d4b330db6a665a560407e7cd8c3807c749e2b0cffd9c3074ba77"],["5292da4ca71ae75ed0554c267747e39c7a129b3b863e1af3ebb3e368439c4ea","63af6a5016deea8cc674c44f16c63c1db31f09af4fb4d2ea7917c28116661fc"],["3367388d5d1b7758dc3d92e244f227bb8a54e3d9909e7b7dd62ab5965e3efc7","7ffb4833071e4b03ea755ccb9938487a478248fe9b1158a08f1ac298801c092"],["95c863314b7f18090f8eee602403be823a367a1b416d54c32e5f914e67d922","159c2824f899171deee23e0ed520d4825bd667983df0a8d45d3a1f7156d91f9"],["621c6e08b3c57404644ad49ac7629832c141273fa1f323781b3395393fe985c","65d1eb0140652958c4371ebec791e03317d6b2e689d90e304666f1b610783dd"],["54313129bf13993952cd2b31ed06013aba85e74c1b8a00e062031f32188a84e","680129efc9eb8ec07fc180e8f6877e5f0f9f44e3000a2c586ed4ce49d12a313"],["21ea57a1c8286bb45872e78617853c47b89091670ba51c124afa3362e7260d","7087e5c1536df233ec9bfe2f983e8d7622892b9bf64c450c9823898e2cc2fc8"],["3793b05b99e7a57d88db4ed0dbc3b771285abcd9052da50f88595354409f3f3","12164105041c056f127e737c7cd63981e05f246bd2b6b65d1f427019c7c3801"],["befd345cef5fcae22ac37dacd6b9128cc58cbba3e3fd774e11b421c2ba392","6209d25f24f88f7876ca604db23d05f78e6b3b67fb033f2f1bee221f352b8c8"],["15fa536045fda4c65ff74f10b4e669ce88b9996c6772288289d3ad725987fa6","30e0c2124a35e265e931ccc66ce5ac3697d982814beb407144ff6762cb691df"],["38b795bd77ac573576dc204857a488cac2cce19809882631ca2069598c577c8","786ba555d55ebef688b068bb9186a34a08cb00bdfef51619bbf911890ae9a13"],["6c66853592196c3eb8d9526dc155205e2c64097adf8684bb0e15eb460ce1c72","1bb4ebf654f4250c8dd1061a4e1b464b31a8a9999ac9960446ef8108a66871a"],["5b08dfbc87ad9c00b88e78816973ad2f9c10c70f2156908892cc7b7a2a1fd30","1151f407a77e2556073173d8f5c9ff561d8a23742121ca15f7d0ac391af50ea"],["309190eba106aa6ead54b5ca5817969aa68b4b4c627700799a49fc6bdd32ba1","505b6a2bc7b0d78ca6ce2abe7dfb7312369918a4599cccf8a615f6701cfd851"],["89cc205966af08acc8910d563af7443d5dfbb5d88dae79c013c678c65dcecc","1f8cf955694b246a423ac725791231257b88936e00347ecaa1e17045c0ab540"],["480086b61a80c36cf1e1a350baf554e58ee8d9333186b70c9c512fb9e9d5a84","511edfe58f8d36a6170df743731da1ff525cfd5108be20e30ac4183d1281570"],["3caf14fb1d2e90a13ad4eb091250fe37133aabf6029633e905e5a93ead41dbb","49122aff6059dfda19e4b973aba5ebe3804c91728936c6381c1ed1ea9380920"],["66d1b8fb2cabc46cd79741ce1cb7326077ad8ea3227a6427244bdd3806bdadd","4a52eb74f4d5371ba3265dffd61c844f9e68d4ff0b44dc4936182f9280bb66b"],["373330c5afd53c31257fcc9050fef873e15ea9f81d9810f30744309b04e02b3","5889806607b3dc97a9c5b0c8a2f16d1792099a22866b879ca480cb89a11ef5c"],["26840d0ec69a22c6818ff64b8b14633b531508c866e21d1dc9239778ae9e8c7","157971f9a6e3a24d3b307be0e7c8cd352e2eb5cad33cf276270c0f309ee63fc"],["ebb84848f1c38c19a754d1b5d9460e39624dadbb30800987c9419c0f933b9f","517b297cf32f4064e6d6c8e761ba8db89809604a701c7b3aa1a9c6beb370ea7"],["25780380bc0795ed0dca727c55240f1d63593e552d224adb40df2d3721c0f66","10215fb5a893e0275e9f1f66b217dde35addee91ed0e8f7d79531a2ff57b8c8"],["243e1581cd1abfbf18c31c19a4c3d1cedfe69a40bb57b607c9af2717eefc742","1296c27929f14535718c3a4ebe045f00afdc60afc74c7d398d8ce1b6609dc0f"],["48babb8649e054bc8e0b902c89e6940c265f48464520649502ef1064eb94562","3235be7852b0526d1a16f6969ec0e5b0e09cedaadc65863dea4e47f4f398264"],["592db7c27e63489ef4bcef2eafce89f40067cd9a1ba48bc3dc76b5fc62ad9ca","48b7711b570cd9ac65910e75e752f4b751fdbfb4091a28f59b8c046d3d9f8bc"],["31d133456222586ae42a9ec7ce8539ee04afbe0b2ed00a2564dab0798d9b55d","a77c52fa1fd718db5c83e7fda6d7d4d9aafef9ad95cad621470f2b753729e5"],["4651668379883521e7983aafcb93811b4a72ef2975b3277773746708ef3e3fc","512507f3f544d80ba5d47f73b571881e8d70d7b1d305b9704bdad036b7abc47"],["26069e359b2e847affaef604f772f36224608b7642245d0e643889ed231bddc","75ae1ec379f074ebc91270077c74b4d34347ce183b676b4dbe100bfff143b9e"],["3196d01d1fa11dc3803b4813c4bbc6326869f61410f2bd14bc0f570d875aebe","20313217cac79875bd2a503db1e86d1e5559911667a02524759344468d9561d"],["483256607f75f06fb126addc60cadddd602154cc4782bcc08351a48745d0b97","2950a7e500ebbe9775f08be37cc2e62ccf9030de18948d1bab07a4a9173f75d"],["65f07b6050a2fc6eebe2c29ffa62f764060f7f9d3c82d2cb5e4e368aaa442c9","562c9654b646cb84a213b41de203c871b3eae0a05c9c105a66a53c319c06373"],["284870f6181c43f3b01d94baa9c5b6ada0deb861145523ad9169580eb7bed35","5e03e6c40c1cfa3cafb01fd0622349871832a9d35499d06408a83edc1b76d02"],["32229810a52137f0e6c3d37595c46f6132822d4b05f42674b48d7a7ac3ad85","7babde959a0cf2c53ee59fc52c77c3adf899453f077f441965629f9aead30cd"],["1ea8b98a6b85e74e0a2fbc18b206e290f3ed94ce99ca665e8e2351dfade990a","478e93c4724115fb1648c8d5347422adbc1a0bbf962b2312e14aec80e1be742"],["270cbaa08c79140c85b864475a0bf569cc03ac785e57f543dc444f37ce746cf","3a9b8d894016680ae9d1bf3deb931d8987d4d8d8bfed45b81ccc595ec79046b"],["6943922708b8ae5b40dd7031ef2e487abc4ac39a3591368285e83d6c9c51f4d","5f157c37d09634e8cbfbef90ea50af59815d011e419a691c67ca3402b5efc33"],["48ac6a80979fab4912cf0cb557d917a0bd68825d8658ec100496eaae6ff62e1","2b6931350ab183402e39476340eb1177b7006f7a552915581e29a79bd7203a0"],["e3adf9517d92ef22d1e2a787740a292ba32d5ca69faa9e8675f63ed816dce5","36bccf69bb12dadd610145a3399213248d193660d8dc90a2e206f23bf2c7997"],["5e6c8ae5afb2fa470f767581f3d578cf6a49547e4b78665edfd45776948bef8","6cbfc11953dd7e195d2ce74e52a60df524767b44c4608bdd755be4bc85eb74c"],["15a576a1242d39300f0db3ad770983825988da0457718ecd596c63a0a0eb4a6","69a42e5f6f5a63349b57683a4609bba90f556a1680fa1ec3b02ee7d3211f903"],["274cd14e4fbf2ed07402e8ad8075b320c5f76b7ea45ea36af523e95ed63ab50","6ca640f9557c5f2d8b27f6ce95b108880ff4e4816b26b70b6506114389ce656"],["4d8284e132e2fe81c5f71be1e3c79ab51b229e2c56c323e207cda179999d123","116cfc00e9fbee1cf16af6282123cdf20eed13021c2037ef4c86f94eb6e6cba"],["4056194fb5643e97991942ef5b63cadd89080bf57a01489c4398aca03f0980a","2e2cddb434fa6f6da7859c3d518f0ced8795eea043a6c9613fb3e020103339f"],["5d119d5c5ce532afc0875e0ee9b026d878c8773d34237f90a0d0670da6f01b3","4a79fc025ce076b6a4742fbcc8cad313d0a8220c58024a41a5a674c0947e64b"],["11800ce4061d99b9d53fd4138802335258f7798c5a935c9979f5a949ce1d483","36745a4741a5c7290eaa8f2a3f9ec955ccb7ca323272e5d35d35c2a724ffac8"],["4302525bceb97fa642fd5560a4a39fba3d2c06f68e6aff3332ff1854439ebb3","e31edfd081ce82f8177b2d7d96e69851d09e908c2517114ffb37ee12c0ac64"],["2f5fcbb96f0a66fd3bdfbcc78bda361cb812570f50e7c476533d56eee01c0e3","527428a34855b5695c479d8fb7e831a299f7897f36682a74169cc60d160df2d"],["52167df045ad0dc999b98de3d035aced9da4434211149b8cf4bf20e774580cf","19051d2a1ad3fab190c5dfaf45188b49b4e90cca22aae54f0a785562d3d3f41"],["541b5332491dbdb2b6f6bccceb7634970c046963891fae936dd950f4432b961","78fa54da996a51e3a9c06091d58c2405a806649da2bb1f323807c4eec50eda2"],["5f11e973da659b7738f87ca5bd4f3bd02207dd3c8d978f0d3e83fe81030febd","137aba7027069f62d25caed416e13537687bb1428e71e5f0a0c52d52f2e65bc"],["15ec941ee6c2110b819b5541be52981c09d83484c9dc735c43f39f5778718b4","4561826142dc5b56acfcf605a78a4090472bb61235bcd605a765e05d0a7e549"],["68ba398736d659522f484406110b43c68158bf4992094acf797a38979c587a4","7c1d9e1702e28afddf22fed7a7a79df4315c174d0c6c4f4c75bc77d9b56777f"],["67889cea31c81a429fbae643a4fce0ecd690a5c32b99397e39ed6d7a08702df","7ea277c80b671146c9e455b98f42f45b941ac95ca2d15c8fa9ea82ee9b45e01"],["596f2c68390ac26505d3c2eca5c77d46f8f3acbed192a2649d8c525a58d2334","49f3bd8c62c610d5c19c52d970bde24b270c4ff7ae900453b909e72483974a0"],["567779fb8b0afe592cea284629e3621ccfae3c4d7d3dc559c9fed750591a395","6010bdc33f1cdb374facefff537e7910b72a1120502f312a7ce41df0d552ddd"],["cebed0233e810aa6a29a8b0829d28f1c92f303d14dd73d6b12da98117dfc7","4bdd51e1192a00df23aa8d0673e4915877ca41ddb8c9eaf21d39dd167fde7b7"],["4c7085f066adeb6781596771972b188177e63f2e2b3788d03e033cdd5af1f06","2929ee89f525862b0cedb3ab9b5166e1680cb77fb4668f10a6a3d76b5434566"],["760e341bd836899c226176f47685f69438270c150c6fe7744cd723cd1e72359","1bf09f2f1aac1a10ce8bdf20d5d178db747f01a4aa0aa8a5e4bfeef562cd94e"],["6016b94c00b54920027ef64902c61478244b1936337d2ad41d9a8d43dd6a4b2","3bf3dd9bce7f6d6f120de87fcbce6219340b59c2c1d75ee0d45105d33aab1cd"],["4929e44ff692eb944d1045bee96e750219cda3bda0500029f0df49a1db30b5b","2e138dcbd092242699004b4ce98764ffe4e892841f56830af298581cd1e523f"],["5972d0e526311bacb70a04e88969b6c63c7399b578f0dc28bbd00d65ef01da7","76b22bca9ac12d26530e7b0757e646beb3bbc5680d0f3f82fb8ee57ed4b5e39"],["2ca0a42a26e26934ca2d48db960b4719113d87c5e57fb437d557c5eb4e03ac7","62778c02561d4ec5d83a132afd7763a8349207c6b5d01fba70b56ba660cba2e"],["5137ee53f076e21a2c23da09f63c0d275408c31e4634a6b6373be5cf13e6c00","14fb446c077beb78e04de3282a63bfde12f9af85caaca4ddfab506cee31c0c1"],["7d944853d1627b63f560aeda33acf640d35a4ee4d23a744957a2dae9d5b7c6c","bcb411a210710acbcb9ea12680d89e3e4e652228b6786d3886e95f4d9e6970"],["37d412c2ffb173a728477446b60b2b702d07a5243cb5fc8963e623a5ee75843","672c79968908f92cd0cb0b4c65ba86e8f359b015623a89441e1bf859bba84cb"],["5b37f472aa80398bff12cc74c8ee784c4fc89757292580d3a498bff17e9f114","7d79da1aab9cfef58a5f3d1c9ec466956a45f8d2af0c1da6dd4c93f720fae6e"],["25c09b3f1188c562571536202eb0f5fc4b9a7590417b8ea58b4343685d88a63","3d5b817c73b37e9a1d24ca923351359b42ced2f3cafbcac8c2d6322dc767bb"],["32e60904e73f9756f71e0a918d302aeca17cad4acacc81bab15702ab5ff78f0","bcf4c0204f8275072f98a65b09ac58b87cdc9c70c4edfe99fe18870a3a5459"],["49c35575996c1517d2daed90d2fe4a58e674d6b4aaa7288d0642c8bf59e562f","57eeee00adea4ca80eeabab57852cbf03f1a57e21872cd44221e0550b9193b8"],["10e1776b4c2a867bf1b028c6edec224cc6616c747e272f49e69b67b02a893dd","8d45d62ec8e627b56950f2f7622a0438647f9e9f28e723e4a37cebc039a1b0"],["79a93a75ecbe943acc964fd39ecfc971dc6555b2bc335e7b53f52f4eb16cd36","146132a68ce2ca8b48363612226771ac547eb3cf52b6eb7981718faac08aa3c"],["6b22d32e0590e169504e7f19864fd646d0994e7ed3e578a5b88f6e095913439","68c3b22d859fb85e5c8fa0a8aea932285945b230957e603394333e9ad5acd82"],["71ce5ec8286eb8c93b8481c6d19cf0a288ef4da4397e9c80f65023e516bc097","54470babc742780cd8a05499026e738ccbf81d4170d1731734de68a8e5b402c"],["27beb13a43bc6a1f6ce046da438b0beac5899ff4d57962dcfb6476b563f74b","14074e9e93ee45394dfbe833998b9d1691961f8ba3166224b36404448c61bb3"],["6b1de6c8f161aa6509a1dcacf2c0aa1bcf6ee9d9b40e032a9d72f77a6fa298c","5e9312eb5b59d6cbadd7d3dcbc39f1b5bd9a8346fdcfdf1107bada6f9cc048"],["32670fc3fa43bf39974ba72ea51f0d045d92d084a81fe5282dfc8309aa900b9","518fee521bf1af62356aac3b7e53fdbf57121e030c6e9572b3de69912ca4eb4"],["4b9ca363eabed9c66091a347375f7065cd28f49f914447de7cc1461f1375f1e","3a1a3a2e5e7e72476befe2571ece708052d740d02cbe6fed58740968ae609c4"],["4cc6da42863a3deca62fa218b7a3b50e034eb4bafd393eccba3f4cbe192ef10","20bfa683c884f203713953b26d2821287ecd305fa2cb70570474533fc07f918"],["87705353c44a5ccec8de65cf5433be6b3d9bd21eea49b60e6c907cf1a67a6a","112804b13eee56e3b01aff75fa08fa8374c44fc461aed8a30ad54acd09c24eb"],["6cf6eeeb9d339c0a05f72fd5af73fc7588e6d957100ee8999109437bc126cae","54fa257cea22032eac272fcd034dadf2e00d602ef9e519cf7072023c130aad1"],["19b32925048c5519d929650c833661b452ef7be7963fab0b6b328ab7dd7a28a","1bd0c14a10bf9b88ea61011c0b2e64d07da151c6203800d5a5d12063838a510"],["12a5fc5559428bc3b4eff97b21b63668b866e0722807f1db1f19696bacd9b0d","4c2eb07f0c24047a3d73b560144f3fd32c99d6dbd9fc7cd2fd2a72a6e4b24c7"],["13662b7a7d390aa76eb86a7c3bff6d9913eb28db6bd1a7c42de5cdad2e35ce2","40626aded7f56f82cc431ae30527b096f57fbfbc04d3e12a5abae3edf301cf1"],["255825bd49b8a2cce114360bd9c8fe8c641af64c8e7710107213cfcb006f43d","3619cce4482335232f9e76a1460be9d296f2d468d26e4f95a78c71524fe59cc"],["7f83009eeed4f12f54d341bbf06066480cfcdf51dda103ac54d4bcecf6b3b31","4269519d28faafd7fd68bebfd8404d71ba05d62c4bb6d65d24aa6802fb84ab6"],["2f325650eb316646b4eec903fe44828fcb11054f1bd42ca3a77f7e734110b35","44f976082271016f9048e22c507d97d628722bb431f8d5cc1890524e6c386bf"],["750b166bb6edc0ee80fae39c7c106879036738df2d79fb2294e1c21e9a24d6b","54f8aa297a1afafe2a17a3254f45861167414327e918d17003c6aad01d0b24c"],["3aedb10db9cf3285cdeee375879396fac1fb50dd259e1716f8c01e66f67ca72","7feb9400f621f58c21601f23b7ec7c94a9b6b193c1cd74a8a60846aedadd359"],["4ab7151702de76faa493e7a0b1ac20ee4d10c33b83fec9477547cb1236973eb","63f1f122e3ef3acc46b0915ac69c3f5772879799cad889a817f55f5853d1235"],["1675ead0d20e5bc3a7a7331999a87ac4c916ae29669e54197bb02aa6364520f","4d1122da90d49e491922d9b533a6a668e2f65a2737ebb391ebb29fb7c1f8a9d"],["2f7148111ef53c613157aeec12e16a20f13481da4390b6ce18a85d1d8547087","2eeda779ab395597651d2a0b833ccf53b10280750139916ae2baf4ec57c633d"],["4439c7810e7b2ba772b701ec3acdca0b80c9df23047710b87f7dc3f13b337d3","5029cfe704c602a8a4662af0a5860ec03fb88f046d0e3400f2ce7638014c621"],["2248eec40b5732a6a488b681f093643af7937071bc73118acae295a32b51b05","1577e4aec30a97b648de4d0b19cf8891151b4eb11f8de9c6d7312f091552e19"],["4738424e558d4e0d87a3124ca02ea24f0adc6b7a9768b0d3945ed2a6104857c","33576f92aca3f0c8ae689c3c274c2de6b918940d86a6852e02fc99e35d1614"],["7829edd8b866ebf7baaf604ed13d19a9797578f44bbc51b1cd67ca53803e96b","5559040a6083f2af1f9133ccaf5bc2ce06e56ddfc7dd410e9635c0116b62722"],["7f927b881f2cdc05e1a69e40bb714af47b630d1425f08ab5d574ee698f33d51","26a465288e96572de303203bd38f4a03031e8158da0591cb037c0a5111d1056"],["36a65598552f8753580d1655417d645a140966e10a1e1663015f9fdfae44881","33d5bbfaebf59eae72b89b1aea12ab2ba3c9617f8c3baed1ec16bdf668381b5"],["403becfa545c826782026ff409cc16c9d4fe428f1b5b6e630c92439d2fa5fd","47bd6f2bf5d74f710ecb479c79b01fb774fbdad590e683a415cdedf33f71dc5"],["3a747826d241b877d3d56b16e0b810cf088eda4fd6048da174c9991a942a5eb","2c7ba19b0a3486a2cdb84d4a388d34beb077a0e467ba44590166f93f6a09d2e"],["3d60cd375842714b37bda89dd1f13a7e0f3ff133b522209617d031bce05a537","f77f216451ab01ad5226844d2162a7f32744688bcb4325445539e2ce5cec4"],["235bf66f67c9100e7f0e22bb299cdfaa603644b240e0770aec7e7fd163e2a65","37110b3fa83ece3990afca2bea8d5ebb3c7aace60a0147f8e6ab733e2f2b4d5"],["3b796d4eb69a55471fa86108f787b3604874e92b6887a7667a6c2bfbbd9a42b","4912d6dc0419732ef82cb3278415851d4e2d7ca89e0f4d7128cc9de51b810fe"],["48d53516dd51e49faa7ab46c8c10db1befd10f23c6a9d9bc3640a2f0da44518","73a2fb3d064adadf21aa1362c04affc660598f38a9e069b3afb74d0a99ae9ee"],["48c32cff161ed145da0d5b73084897647abb777adf65738559ceab6939cf3e0","3d99308978e828f857c382df32b472bda81e8ec8e30c8844077ba6d6d2ba903"],["2947ff091a8ec9684affbc9a62e09e598841c4a6dc638088492aa47dea57097","19a2cc97975e547f97a4d02e42f89e6ced6f5a953cfccdec347867d26926541"],["1960d85f30475615f82484eba0bdafb7ea7cac3809f0518a757d66f02b01676","36c8f77baabf0cc8805d993bbe62041fcf4e3239cf9d53278a4fbd91e75eeb7"],["2765f28074d21d5a055340b6d40092d2bbef807e02009fabfa08ec0b9bdf38b","7fb189e0553d5df52b6843661814824b3f3cbebbd54988f042fb256c6bf30b"],["348836cb2aaa00212f4b1a4e2d7fc5417f246bf2fe5c9a16ebabda449e2e08a","3f7276fd7d69e0d55ce5ee1d2d830534a27227fe0b6d8a36c93f9a78b872969"],["7afb9d34b6a42ea8c6d870e4b8191c274201dc1f93a1a2219a2392b7e345a31","42bbc20dc7115e0758b364a110227b16b64ec58fc535ce5ff1a9ad8b8a09fdd"],["2cae0c2afee1767fd4c66f52e1f176d217e92e89cc19eb36d5a6c1715f641a","5335efe2d9bc3667d25ea88bf76438a4d6ab9ba5c512f9da7d0529b79b62d83"],["1cc5fde334707723c3a06f00c106db88664284a2df47bb6b144d9f960aea3e2","dbbf610d100316938bcd8bcd078513512ecb50d4579690dbefaa419c05980d"],["54e90cb8f3a2998d2675c5780679e06c0556b1e618f8fdf07f9a4b2466fbf1e","16248676b6f06ec5e34994bc3115f85c8147b54f34d8500928f2fdc051e2089"],["525c70a2ba0dbdd68d75640f47f13d0d415ea595f7030f533f4625c2a46523b","58292c8675e5e1a438f49e0c05648d9a7aa997f2f1fd77d5de1944afe5d7eea"],["54726d78d099007393348787a03107ab492e59690a46c87fb02ec554f2353bd","53b54b77184ba75a3391e0ebfa6d6974db028f3f8e34bbd5460759a5848dd76"],["4ac81a66903537769d3aac6c483ccc08535cb767b6b5e1ec8017a7393ab70ae","2cb22b77a8a05d26f11a4dec80eff292633aa05553a889c5ab16b6ac6e2ab17"],["21d0175349e21114988a2930b9a607d43245783cb4a0c984ce27f4c4206708","59f1f49342cc5496213d3329bf4ca7fb0044337449c579bf53147a1dac9e67c"],["167f821b381f4c8adcc39789475fb55ba639e5124fe75f26dd61be396dd5e66","22002c87d4cafb47ac9d27286d5cf5ff7a6715d69814118269b0729be9e4b3a"],["31010666c6db83a9f9e4db4c48173afd405783ac53852a6e38a8ff925528843","1f466dc9b5d9094107c741dbf380f9fd98d8549cd50f67169901516f8cce74c"],["1ad3875769a5053388a86edc85dd80fdffbbda6a456aea497ff81a0f1f6707b","2de7cdec5e2bad56a71bd2f33a4ae4c874e1ad4210a6ac32b443cfa34e85b1b"],["c489650fb7f459ce09cd05a456fc5a46b849b38a671298ed645bcdaab168b0","45610d092b8af1c43ceed474cd17f7bbee65120aa6fa4d37f949e7e41f25327"],["394256a5ef4d7af5459587a0bd2edb8acaf5ecfef2563c9a04daf34a4abe4c6","1ebee390dae1403c0c53994e1d064fa64e20fcb45392e209b2b99486a559ffd"],["410a1511fead6151e9bedb089b9832d0fe01fab76d3f8459929f767525aeb27","361f0a5ffe09fcc3ad4eff3f5e89508ac247af80267100b69de3c59df561cfa"],["38cd437c9f659e110a869605c182ee9fdc26de36baf559d9229e258267bb734","624b1128ea7739bf1cbd0e423af92a4884323c868d2ba0ee9d362946edee2d1"],["78b126e50b7042d2a019f95cb87a3213c664ca1bafe345999b1e9e2dac1e608","19e398196b22f4488cbe854c614ad8c353839abc5ab3a4f3f5c03c16ba8a198"],["6d3a5ce91132f385a91823c5c8046c4b638f5fe63357424410d901457cdb867","7b80bae16d2d487e122495174f7a70992bc5dafbed72bf84127ead7c57302bb"],["32d053a904dc4d88fbe7d0b96e0cbeca22a00aa5c79c753d52b0b60abf31602","3af6a02e5cae6d6490354ae51185149e3fdb6d0d9caab90e95ff58aa0c40377"],["49b1fbff5bdb0aa6938b066dde0ed772c0d81f9eff52e7fe038b0ccbd78adb5","1c6e57834eb14d507eed8b36c81ddf92fa91c242467061927a742fafa82b43d"],["2f28b8994ca6f234d9293d26196b43b9d1d5306844348c4a638102c05de85f5","759cfb172eab065d477248b3569f4ff5791055f01e95fe71b94b8e615d73c96"],["3c2ee954ff534f856f59188fa0f29ed8a022aee0cac52d634f6dc58cd514d70","22bd162e74925f0a876bd8a206b8767dfdd7c898576a73a490f138d9a7f99c6"],["5763a7cab001e1aaeabf9ab5b9b2fffe6cc2b299ab04ec4933da74d960e1ab","715ee4f8ee93ab5a1dba00f0a6abc4eec47d49b61254cc27fc36a031e32f0f8"],["19976ad8d7b7f47c785408243a227401996b36e47c7a78a7bc7d4256233ba9a","896b713c5d7777b0703821a73c1d9a4c3755501042120534ff13990975e1f5"],["61674b992c29827186cab5ff454758dbbed8e89bc23d0bd33193afccc3a04bc","38e1020744c13903809ea30a0662fdb5226ae760cdcf10800faabec452e00f8"],["2ea2d48bcb83c0c9cda4efe11f07165cfcbc9ccd26526e5fb12556316d4b1df","1d2d68b74ad384c5c4a9c85453104216357bfcdf635680b40215f0f800974cb"],["7881212050264c40c336ed3a15dd2cd868ec9a558f5b728869eab66e8b8ed54","21aaefcc8ad8a161b8971d6880321781dbd939570c540da4c330922b8c81e9b"],["b6be88ce0461d20f59c5199573cda0170b61decf6e8e69a6d32f1695adc4ed","5536e4808370716f2bb3423a9a49a38ddbfe91faf3b7a35eb53d3519238b6cf"],["e5972af1655eb6dde2e8c77cc58044299922441b5ee41ceaf5cafedc765bcc","550282f37a4783dd60801c237045992d6fbe82a5902e7d837ea25f6f98c7b3a"],["7efc1aad1f580d8f50274f1c114c40056be19a8c96fa8c4cb5bf85e1e7f3e4","2689f1c3898b114d668be6413643ee9f879913d40c262541fd0316264c60a4f"],["7939db98037f59b0113e9d60051f75ac9c3cfd1a3eb535c73e2d945068c6c5c","410914ca8bbf3c65cdf3e9772ca790c19131c50068d34b7346c10260a578a8e"],["225b77ad00a2b83d26690190b74867326eca4f55bfbc3a13be036225ca3b1b5","411faafef89042ce6beb64309fdaff70fa53e9d32d79a21e7f82f80e79ff05e"],["1501e64c99c8b6658b0479f2c05c9142d246eaabfccf2fcec8dc4399539d8e1","3bab1e3339e42c9ee66c65b0b20236fdd9362d3ce786ad3a9779ab578af50a8"],["59b907b941f24fb8ea2458153e55f07534b388e835af7b69f3c9f54392a335","1d5438c4f2f68a417f3d56f916d899a6ffe910f5f2989ca31687f1b10f60db8"],["2887d08a26f484546f360e33abbf7a998b7170a5b30070938b84f072c676bf3","62a78e8d00e5d3a59e2fc424ffa08961567ba1ef24c8531cd7bceee6074a535"],["6e3cc8076b3d45377929033af35aab0c6d19ae4fd47c0daf844079ca04c46eb","7b90f338e4d848aa8f19d0b5c3bca916a2a9024acbf14bddb278bca2aa39e5f"],["34844dacdd3ec54a3af328bb9d67715ab33425e194ac9977ca02ef22e8f7a88","3c1affc6372f32a1634748124f9e1a03c4f0c993971da0dc28888b0801279d"],["436b192e03a49796cf9bc5e93c88268b71c9c24f9c3a85322bba634ebea309d","67a8091ef69d62abcb28ce5df4dc7d53f8dc2b9690344f75ecd03a6d9386044"],["592d25b68baff87a6d7fd41ff0dadbddc1bd1316683de3b2d677501c0eb14e4","27ad1e1099683f54589010faeefb19e38569ace43653be8787a42b0591e7bc5"],["89a5111ae911512ba62e87b97f643c0219702f235c70f62c6678a129302009","557fa3d98e9ce7b83b47545013a4498f3de43787fb66b1a54521222242f7c1b"],["1c9b5e53377e72da5066cb08566bbf9ec31ec1877f455d932cd9b1aa375d34e","72f79555a8bc207863f32d482fca54692825449fd8963fcea3de3a8183a739a"],["574a6e05eb14591729515be239ea8c1fa9e12d4049d42876f76c8ff37bca03","5f99b3af43ca68c1c73e8190d5f73c8de162ba643d7d5f0cd73cfa8135db6d3"],["513fc5c2e16505b2b25a2f284e167d5401194bcac0dc3ecf8b7c9acb560daa1","687ee7a1a8954d08d3856e1a16ded808e419e789736d3f55f79f7693bad69f5"],["53d48bd1205274b1c2b0a0ceb3d21c5fcd7c8892a784931603240b288a598b9","35387abd7ea59c9b956de44d36533cad1f6668c438d666651695ff3862159be"],["213eb1ea99e08825110dd61094eb6e8145119dc1c507636f068730b1e086d44","744f6853f4f02f4f042468d0739e0c9f64df720b87ed77d1979547084ef7a89"],["735ef017d091ca23264ad0aa7bb9b2be3309b4539605e79ed4a652ccb2fbe3c","7f0ccc7a5747c4e921fff97d431169f690763427e2cfd1ad74d7a0308d7faa9"],["3f36babc5a30070b610ed97db44997e6d9115c9c0579ad8f75d295a17130001","79047908a2474e32d5c712a07bf5c4ad522590bb5d6cefda410d30528e12ca8"],["51c04907ae88a5926b242fb2862cb1f2c651a94e6caad5bff8601c079fded74","10a585a269f460aed43f54c7de13cdf623fc8de5957526997278be939ef32ad"],["c1e1bd626a735aa2c065831317217ecce68e377eb1f67e54ce2e97bc2ef2dc","53c5af23a9b482f420be6dfd37b6886154cfd130794098e1f51c1885ac2556a"],["5aff3b30775ae4758e604a4a6262803a545f5ef4e7855fa245ac6a6431a9ece","39a4799e5519047f29333bee9c86c99bfa8056d4aa381c396c4a44331fe795f"],["3d753e9723701a8e9d99b91bb93dee2eda7ffa5072fb2cd5c5fd99aebcdb299","15798bf5c17d6d5880fed1553af32dd8d8baf2888c715a886575448a24c7975"],["6593e5078466b07a4222d2e544da826d2c583c9cc5f2eaea148b129b00d4aa0","11b352b08a0a61d3cd67d1dc08069dec3bde907b3da0f56de5011b956bf8744"],["7a6eb353c5be9ff03fe4a06c01fb71aad2b38144179a291ebcbb2c2417cca65","3de3ecb12f2fa699b46a9d399abf77ca17bebc3e491bfb2542dd0fba991e2bb"],["2c7ead583d6c32162091034a9eddfa775b4e84b8bdbea939edb2a80dcf64f6","461790ce40d9c276d962b2a1e9a74d66e9d7335962e234e8a2fc6963d31722d"],["34285af023d9b4c2c2b88e8704bf2c05a9b553b00b2e70ff05f8c2970cb134f","33fe678e7671760a83836107428dbade68c3593fbe568f3f8f1b2c568099c44"],["6222f720a24466263db6a11842f117fc4bb78da6705f140e48869db3e087441","6eff5b9bf3aeedc962bc5a24b66e7bdad2153450ed53a058bf2c8dbf2907693"],["17c6ec5ea206eb97cbf53851e37ce391080e0d2bf1e5395610f79ab0503f7ce","3adb71ca3523d88ceb1e365f12dfb24895453c14daf0046b2626cddadfdf5f7"],["70859f9771a713e54974ce11cdaf44b0dcc3e9befa0c0834908d877eeaafd27","d18f794bf0cc0623b711e7450030424e52326c45ba9b03341883ae4828a5f8"],["2a820cfd0fd4ab0871e7b303cd545a3086caf8fa818c087a4017197da74efbf","5f992683ff37f6c041b84bfc01503d333ac9763505cc8f69473da01812969d1"],["5b0526de2c07fe7cd73e3884f642d57a0ac5e13c68590ed03a14e530616e8c1","eec69d0cbd92c9fca31ec967dba848bec368e792d6678797946a5e34fe3487"],["6cf6b3efee707210cb3a72f1e885c3d0953aefb43e5e148c740aa1641725c61","911cb630b898e2c1a9115f9e45bafe3b819edfb1eab6e15612d14289939984"],["74e913de55f1e46143cb2ecfc580f8d3d3908f200281322b84e21c989cda293","761d2736c9ac7670ba905bc2629c6c0dbe988820a4454ff415ba68710f7df92"],["44084305e0c911a40b7cbefe5f13cffe9a99375d1a584c4a2200958050af7a9","249c83877371564708ea525b64b1e7e12785460d83364446531c9adcacba5f0"],["2bf71ad4d1bee1a67fb300477029f54bdb0e09f78bf2ac2e8afc7465a7adbcc","6244dd6cad282539049be57487bfd9900bb0d5da805d02b535096368fcb4cd5"],["3a62d8f763b62def36e4089458046a49c5ecb91b861549530773e0548ff2bb","6a10a03ba61e6ac657270465c09aa9526cf1ebe96bdecdf0e7000476a47b9eb"],["284eed3a17c51e0677d4fe897f056abe9def8af07a4630e6ca5723e2aa6677","516a06ac1d5626ed03d2eee9de6f60f0311eca703a99b0fb31b9c66b01c27c7"],["2a2c63b16cccd685f731d06fe93ce2cffb358d34d03dda9a7368185c1eb0c32","7180baca0ba81284809f92eca1654cd76b925a9242e5d5e0f18d0a55d13c6ec"],["5f9466017ec09769611389ea5370ad68dda936d3f5816c9e928ff9574abf9a7","6619b5b145bb5f4f29deb7a4cd68ef4da3995312fa6537f0d01684da4267ece"],["74f229babe01b4962b3307589c1a13019134b1db6822698388bebb55d21c30f","156ae857ab3279f754facba0db36398dffec8c31e5e160473198f2f891b7531"],["334b9fe3a5fd99bc966ddd1309698fd32afd1f235062f2c275b6616a185de45","221a60053583cc0607f6f2e6966b62fc9dac00538bb7eb1148e007a92116d2"],["7ad710ba002a67c731efbaba2149d16fec5d2f7aa3d126fd9886172e9f4ea30","3a10f8e902a7a13aec94d66415347e1314f9bac83a7db176096b809b25ffb86"],["4306dd0a184a3283c3097ff8f7434cec80912e9dc04b7df21ba73fda9f8e6d8","6d42bd3d1a8dbddafd09e872e2aa3891ae79ec939dc1b382196bc21c4ab749"],["1c3f2124e1135c32a426d1d14e471edd9e0f2c7bd703ee123cbbd608e8c4be7","3cc607a3c3f1ab68dd5fa56c65996002721b8ad8ad4b0dd9e5b1467d316583"],["294af33272ffcee0b56a436de1b73759cbddebef4c07888b42c2f92b0b68e1","d837164311d5dca8d37b99ef9eb22708643c83d1cbdfe852f63ea07b06fbad"],["753bdb5439a19bbffdfa02b1dc24e8368f22d0a8276b109c11e6feb26f56f39","6ed396231af93647633eab467f1a034f38e76823eb85baf97cae56e2dcd9f75"],["5674f0cb892b733fc0b50e121d8679afed0a925c32594cc65ffe83bebe7748e","7fbf0325dd38dd94905adab2c52758552292a6a103d9edfcb11938828e828c8"],["4a8f053573a0a74251059d0229d89b6660407ba0b491779fd10f87a5117c81f","21b70112485398bf67ec9d733df24a1df30dea718a93b786f41ed04e3ae3c5e"],["726c01ec4a08df8fc8de173311f50d4f3b97c5a9cf68c1536146f827db95ae8","15013cafadefa7f1c4e4dfdd70bd4d3979dd18bd7f0332572ce2a3fd8773d12"],["38ac0fbfa98937257460db7e6645d7e5112b6fce7234813fc8a704e8ade8da2","73c0109f86048aad08c443f781ae60ad13b99f7b9cfdf3128fe6d6eeb799a7b"],["6f6d3a38621582ace092eb50ecfe9eff265df141ebdcab8653299116fcea291","4a1bf3f39bc919c8f1b720a0b1ce952cad17f2ba98308ee6b76dd9b6f3d7b75"],["6a307fc28e1df8d9ad01766419e097797d65cb674436fa1c8f012d3de2c2a1f","26911a635ba824db004875d79dd84834a97ac12643e42829015bf88c1fd6f05"],["2a74860e3336d6db916555894cc8028f41508812925db1925457afe40257155","5f8da573f4c39816ce2dba8a20224223a7cfec53117ec78973930c0e9b60244"],["4d2b49e1ed0799f719b8269f092cb489a466a645bc0ccabafdc678864c176d7","5410083df7d256f18cbf5697ae5e52c31e075d8a3b27e21d6f5177ca882f6c1"],["110ecb9fbf6c333d168cee473cc5ad98809b6cb9eb5d1f6cd28ab5fab504fd3","7e3c54d7533d9f8c3310f219dab0cc3ea4d39b418a748eeffd6bae2b8637a43"],["5be4d711b80da70e6d3ac493250bbfd16f20b25f31919b3a91cf14ffbac1096","7f55a0919f082e8885f1515e83c5b39b6022404503507498e1b4422d79c43e2"],["2605125b95ca4ba93a21cbbba5762898a7cf9e988f07ab9e64cb3868e3b139d","62f0ccf55b9fc0eaf9736fc8ee484e2acdbe259813af9803cf815829a5e9d3b"],["1092bbbf206f2a3068167c3dd99a72de31e206f6c504c071c8214d105ff814d","309f489f68a62089f53b96df5d4fbc3ecc5a1a42eb7ece0e49bad17ad490ff4"],["2abdee9409d9c92559ca3f4e6bddd649c31aa09b90bfcb4a612af491241e18d","3ffa8eac180a29de3f8a69efca84bac046f921f5725e96a6ff0530be1436aaf"],["376313f27d00bb1aae7ec991745efe6ee28c6b50de0c6cd9845cc4bb4f83543","6a8e0a9389ba528b156fa94ac090a895d7b795818d4941c29415d9e2984c547"],["a80380c71bd466a696b3f0fbf02817c9459d9798f4f3899cf32edf647fe066","6a09805e814e7cdfc76eba4b79f1df5ae559e0f0aba9f728d3cba4ea5c57471"],["223694b921d247d989a79b9b2b2f07496036c40cb043eab074a9d6a2cd2ffed","c247217f1b1df35e30d9e15fdaadf42d6fb0edd3a5a7e265d4cdc426c120aa"],["102333620df278c6714bbc880fc087db58c1b9b4d77ed4d61b32a74bfc7c3e2","6a77d37727ccf71c2caeb151faf4404d4b94e9047f9f0a7c3966367f3b53c65"],["891626f466536929ee7eadcd18b41925706dedab7528ed5f0f7abf039eb9d2","5f73d11c141c933a35b2d0d06e5cbae614a20d17dc3b439f8bcdc3413c5ea37"],["215c23fd3f073f870e5e80303967391bf173f8adcdbeec72d131c557babc203","10634332e9d9439a321597dc5b0fac9ff478834c3d6e281735f21a4a5e13266"],["21ea0bdc1332bc36e6aeb43be9071651c27e4ea2eadec636c8d818d4af72a36","3a523d9643dccc6bb9c7c58413312caa3e60ba9c7c7f0177e0f3f469a3241e3"],["60deaed1bffb6190beed40caaf2bfab5e43d3707aff7ad3f278d571aa247eae","e41f71ff254c1418e6a66992af307789fe04d6606fb2670900bb1a089fd879"],["1e1fac4a1646253fb1332fadc21fbdd3e3a24a840d129400f520ae4116a4cf5","69c406f9f46576afad68808de0ab7e8922b6226af748e721d9097e21f1800f3"],["5db0ddcdf79ffe74d6454c12d2bc60b06776db03c75dc413f5be42ea9a91b5e","134c3d6c699841f17306835bb193785228ffe7ab212a01a861c56b086a18cec"],["626814e320fb5bea505b248fd1c1389ad586c1cfe04923fe2f83173e915f4f8","7ae407a926e887206a8b85cf485f1f327c9bb8ccbb6897024e2d122877d8ee0"],["23186237dc7d3b570cea645282ad4c359731bbfa54e7f036426bf6493812cd","7d1fbab7e61a22d3b00993290d9f4cd5d820061573e787f66c2cff9a18e1eaf"],["54302dcb0e6cc1c6e44cca8f61a63bb2ca65048d53fb325d36ff12c49a58202","1b77b3e37d13504b348046268d8ae25ce98ad783c25561a879dcc77e99c2426"],["13961b56b9fc0e412e468c385c22bd0680a25624ec211ffbb6bc877b2a6926c","62f7f7792c77cd981fad13cb6863fe099c4d971c1374109185eae99943f16e9"],["47abd7308c70659af3f00fafe6837298af3cb530b6c2ba710ffd07a6bc1ae98","75d0c8a7377aa9f0663d0c124a5659750847afabc29e39893fd27534a4a03cb"],["2c6276b764fb398fa555857dbe0ce0ec18fab7a233bf23851295739801f0585","5d8f4897ce44007ec5bfcb9aeb78b8f6e1d40a514f72d213c9300d2770d2b8c"]],N=new l.default("800000000000011000000000000000000000000000000000000000000000001",16),j=new l.default("08000000 00000010 ffffffff ffffffff b781126d cae7b232 1e66a241 adc64d2f",16),B=new v.default.ec(new v.default.curves.PresetCurve({type:"short",prime:null,p:N,a:"00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000001",b:"06f21413 efbe40de 150e596d 72f7a8c5 609ad26c 15c915c1 f4cdfcb9 9cee9e89",n:j,hash:g.default.sha256,gRed:!1,g:O[1]}));O.map(e=>B.curve.point(new l.default(e[0],16),new l.default(e[1],16)))[0],new l.default("0"),new l.default("1"),new l.default("3"),new l.default("4"),new l.default("1000"),new l.default("1001"),new l.default("1002"),new l.default("1003"),new l.default("0"),new l.default("1"),new l.default("400000",16),new l.default("80000000",16),new l.default("8000000000000000",16),new l.default("800000000000011000000000000000000000000000000000000000000000001",16),new l.default("800000000000000000000000000000000000000000000000000000000000000",16);let L=new l.default("08000000 00000010 ffffffff ffffffff b781126d cae7b232 1e66a241 adc64d2f",16),D=new l.default("FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFE BAAEDCE6 AF48A03B BFD25E8C D0364141",16);function U(e,t,r){let n=h.hexToBinary(e),i=n.slice(t,r),a=h.binaryToNumber(i);return a}function F(e,t){return new l.default((0,g.default).sha256().update(h.hexToBuffer(h.removeHexPrefix(e)+h.sanitizeBytes(h.numberToHex(t),2))).digest("hex"),16)}function q(e){let t=0,r=F(e,0);for(;!r.lt(D.sub(D.mod(L)));)r=F(r.toString(16),t),t=t++;return r.mod(L).toString("hex")}(n||(n={})).StarkCurveInvalidMessageLength="invalid message length";class z{privateKey;keyPair;constructor(e){this.privateKey=e,this.keyPair=B.keyFromPrivate(e,"hex")}getAddress(){let e=this.keyPair.getPublic().getX().toString("hex");return h.sanitizeHex(e)}async signMessage(e){return this.serialize(this.keyPair.sign(this.fixMsgHashLen(e)))}serialize(e){return h.addHexPrefix(h.padLeft(e.r.toString("hex"),64)+h.padLeft(e.s.toString("hex"),64))}getYCoordinate(){let e=h.sanitizeBytes(this.keyPair.getPublic().getY().toString(16),2);return Promise.resolve(e)}fixMsgHashLen(e){if(e=h.removeHexPrefix(e),(e=new(0,l.default)(e,"hex").toString("hex")).length<=62)return e;if(63!==e.length)throw Error(n.StarkCurveInvalidMessageLength);return`${e}0`}}function K(e){return new z(e)}async function H(e){try{if(e){let t=await (0,c.default).get(`https://api.x.immutable.com/v1/users/${e}`),r=t.data;if(r?.accounts&&r.accounts.length>0)return{starkPublicKey:r.accounts[0],accountNotFound:!1}}}catch(e){if((0,c.default).isAxiosError(e)&&e.response?.data.code==="account_not_found")return{starkPublicKey:"",accountNotFound:!0}}}let{curves:V,ec:W}=v.default,G=new l.default("08000000 00000010 ffffffff ffffffff b781126d cae7b232 1e66a241 adc64d2f",16);new W(new V.PresetCurve({type:"short",prime:null,p:"08000000 00000011 00000000 00000000 00000000 00000000 00000000 00000001",a:"00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000001",b:"06f21413 efbe40de 150e596d 72f7a8c5 609ad26c 15c915c1 f4cdfcb9 9cee9e89",n:G.toString("hex"),hash:g.default.sha256,gRed:!1,g:["1ef15c18599971b7beced415a40f0c7deacfd9b0d1819e03d723d8bc943cfca","5668060aa49730b7be4801df46ec62de53ecd11abe43a32873000c36e8dc1f"]}));let J=()=>{let e=new l.default("1 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000",16);return e.sub(e.mod(G))};function Z(e,t){return new l.default((0,g.default).sha256().update(h.hexToBuffer(h.removeHexPrefix(e)+h.sanitizeBytes(h.numberToHex(t),2))).digest("hex"),16)}async function $(e,t,r){let n=function(e,t){let r=w.hdkey.fromMasterSeed(E.from(e.slice(2),"hex")).derivePath(t).getWallet().getPrivateKey();return new l.default(r)}(e,t),i=function(e){let t=J(),r=Z(e.toString("hex",64),0);for(let e=1;r.gte(t);e++)r=Z(r.toString("hex"),e);return r.umod(G).toString("hex")}(n);if(!function(e){let t=J(),r=Z(e.toString("hex",64),0);return r.gte(t)}(n))return i;let a=await H(r);if(void 0===a)throw Error("Error fetching stark public key from IMX");if(a.accountNotFound)return i;let s=new l.default(h.removeHexPrefix(a.starkPublicKey),16),o=await K(i).getAddress();if(s.eq(new l.default(h.removeHexPrefix(o),16)))return i;let c=function(e){let t=J(),r=Z(e.toString("hex",64),0);for(let e=0;r.gte(t);e++)r=Z(r.toString("hex"),e);return r.umod(G).toString("hex")}(n);if(o=await K(c).getAddress(),s.eq(new l.default(h.removeHexPrefix(o),16)))return c;let f=w.hdkey.fromMasterSeed(E.from(e.slice(2),"hex")).derivePath(t).getWallet().getPrivateKeyString(),u=q(f);if(o=await K(u).getAddress(),s.eq(new l.default(h.removeHexPrefix(o),16)))return u;throw Error("Can not deterministically generate stark private key - please contact support")}function X(){let e=B.genKeyPair();return q(e.getPrivate("hex"))}async function Y(e){let t=(await e.getAddress()).toLowerCase(),r=await e.signMessage("Only sign this request if you’ve initiated an action with Immutable X."),n=(0,m.splitSignature)(r).s,i=function(e,t,r,n){let i=(0,g.default).sha256().update(e).digest("hex"),a=(0,g.default).sha256().update(t).digest("hex"),s=U(i,-31),o=U(a,-31),c=U(r,-31),f=U(r,-62,-31);return`m/2645'/${s}'/${o}'/${c}'/${f}'/1`}("starkex","immutablex",t,0),a=await $(n,i,t);return a.padStart(64,"0")}function Q(e,t=64){var r;return e=h.removeHexPrefix(e),{r:new l.default(e.substring(0,t),"hex"),s:new l.default(e.substring(t,2*t),"hex"),recoveryParam:(r=e.substring(2*t,2*t+2)).trim()?-1!==new(0,l.default)(r,16).cmp(new l.default(27))?new(0,l.default)(r,16).sub(new l.default(27)).toNumber():new(0,l.default)(r,16).toNumber():void 0}}async function ee(e,t){let r=Q(await t.signMessage(e));return h.addHexPrefix(h.padLeft(r.r.toString(16),64)+h.padLeft(r.s.toString(16),64)+h.padLeft(r.recoveryParam?.toString(16)||"",2))}async function et(e){let t=Math.floor(Date.now()/1e3).toString(),r=await ee(t,e);return{timestamp:t,signature:r}}function er(e,t){return h.sanitizeHex(h.padLeft(e.r.toString(16),64)+h.padLeft(e.s.toString(16),64,"0")+h.padLeft(new(0,l.default)(h.removeHexPrefix(t),"hex").toString(16),64,"0"))}async function en(e,t,r){let n=(0,p.utils).solidityKeccak256(["string","address","uint256"],["UserRegistration:",t,r]),i=new l.default(h.removeHexPrefix(n),16),a=i.mod(G),s=await e.signMessage(a.toString(16)),o=Q(s),c=h.sanitizeHex(await e.getYCoordinate());return er(o,c)}async function ei(e,t,r){let n=t.users.map(e=>({ether_key:e.user,tokens:e.tokens.map(e=>({id:e.id,blueprint:e.blueprint,...e.royalties&&e.royalties.length>0&&{royalties:e.royalties.map(e=>({recipient:e.recipient,percentage:e.percentage}))}}))})),{royalties:i}=t,a={contract_address:t.contract_address,...i&&i.length>0&&{royalties:i.map(e=>({recipient:e.recipient,percentage:e.percentage}))},users:n,auth_signature:""},s=(0,f.keccak256)((0,u.toUtf8Bytes)(JSON.stringify(a))),o=await ee(s,e),c={users:a.users.map(e=>({user:e.ether_key,tokens:e.tokens})),...i&&i.length>0&&{royalties:i},contract_address:t.contract_address,auth_signature:o},d=await r.mintTokens({mintTokensRequestV2:[c]});return d.data}async function ea({ethSigner:e,starkSigner:t,request:r,exchangesApi:n}){let i=await e.getAddress(),a=r.amount,s=await n.getExchangeSignableTransfer({id:r.transactionID,getSignableTransferRequest:{sender:i,token:function(e){switch(e.type){case"ERC721":return{type:"ERC721",data:{token_id:e.tokenId,token_address:e.tokenAddress}};case"ERC20":return{type:"ERC20",data:{token_address:e.tokenAddress}};default:return{type:"ETH",data:{decimals:18}}}}(r),amount:a,receiver:r.receiver}}),{signable_message:o,payload_hash:c}=s.data,f=await ee(o,e),u=await t.signMessage(c),d={sender_stark_key:s.data.sender_stark_key,sender_vault_id:s.data.sender_vault_id,receiver_stark_key:s.data.receiver_stark_key,receiver_vault_id:s.data.receiver_vault_id,asset_id:s.data.asset_id,amount:s.data.amount,nonce:s.data.nonce,expiration_timestamp:s.data.expiration_timestamp,stark_signature:u},l=await n.createExchangeTransfer({id:r.transactionID,createTransferRequest:d,xImxEthAddress:i,xImxEthSignature:f});return{sent_signature:l?.data.sent_signature,status:l?.data.status?.toString(),time:l?.data.time,transfer_id:l?.data.transfer_id}}async function es({ethSigner:e,starkSigner:t,request:r,primarySalesApi:n}){let i=await e.getAddress(),a=await n.signableCreatePrimarySale(r),{signable_message:s,payload_hash:o}=a.data,c=await ee(s,e),f=await t.signMessage(o),u=a.data,d={body:{buyer_ether_key:u.buyer_ether_key,buyer_stark_key:u.buyer_stark_key,buyer_vault_id:u.buyer_vault_id,studio_ether_key:u.studio_ether_key,studio_data:u.studio_data,payment_amount:u.payment_amount,payment_asset_id:u.payment_asset_id,payment_recipient_ether_key:u.payment_recipient_ether_key,payment_recipient_stark_key:u.payment_recipient_stark_key,payment_recipient_vault_id:u.payment_recipient_vault_id,items_recipient_ether_key:u.items_recipient_ether_key,expiration_timestamp:u.expiration_timestamp,fees:u.fees,nonce:u.nonce,stark_signature:f}},l=await n.createPrimarySale(d,{headers:{"x-imx-eth-address":i,"x-imx-eth-signature":c}});return{...l.data}}async function eo({ethSigner:e,primarySalesApi:t,primarySaleId:r}){let n=await t.signableAcceptPrimarySale({id:r}),i=n.data.signable_message,a=await ee(i,e),s=await t.acceptPrimarySale({id:r},{headers:{"x-imx-eth-address":await e.getAddress(),"x-imx-eth-signature":a}});return{...s.data}}async function ec({ethSigner:e,primarySalesApi:t,primarySaleId:r}){let n=await t.signableRejectPrimarySale({id:r}),i=n.data.signable_message,a=await ee(i,e),s=await t.rejectPrimarySale({id:r},{headers:{"x-imx-eth-address":await e.getAddress(),"x-imx-eth-signature":a}});return{...s.data}}class ef{config;mintsApi;projectsApi;collectionsApi;metadataApi;metadataRefreshesApi;exchangesApi;primarySalesApi;isChainValid(e){return e===this.config.ethConfiguration.chainID}constructor(e,t,r,n,i,a,s,o){this.config=e,this.config=e,this.collectionsApi=t,this.exchangesApi=r,this.metadataApi=n,this.metadataRefreshesApi=i,this.mintsApi=a,this.primarySalesApi=s,this.projectsApi=o}async validateChain(e){let t=await e.getChainId();if(!this.isChainValid(t))throw Error("The wallet used for this operation is not from the correct network.")}async getStarkExContractVersion(){let e={baseURL:`${this.config.apiConfiguration.basePath}/v1`};return(0,c.default).get("/starkex-contract-version",e)}async mint(e,t){return await this.validateChain(e),ei(e,t,this.mintsApi)}async exchangeTransfer(e,t){return await this.validateChain(e.ethSigner),ea({...e,request:t,exchangesApi:this.exchangesApi})}async getProject(e,t){let r=await et(e);return this.projectsApi.getProject({id:t,iMXSignature:r.signature,iMXTimestamp:r.timestamp})}async createCollection(e,t){let r=await et(e);return this.collectionsApi.createCollection({iMXSignature:r.signature,iMXTimestamp:r.timestamp,createCollectionRequest:t})}async updateCollection(e,t,r){let n=await et(e);return this.collectionsApi.updateCollection({iMXSignature:n.signature,iMXTimestamp:n.timestamp,address:t,updateCollectionRequest:r})}async addMetadataSchemaToCollection(e,t,r){let n=await et(e);return this.metadataApi.addMetadataSchemaToCollection({iMXSignature:n.signature,iMXTimestamp:n.timestamp,addMetadataSchemaToCollectionRequest:r,address:t})}async updateMetadataSchemaByName(e,t,r,n){let i=await et(e);return this.metadataApi.updateMetadataSchemaByName({iMXSignature:i.signature,iMXTimestamp:i.timestamp,address:t,name:r,metadataSchemaRequest:n})}async listMetadataRefreshes(e,t,r,n){let i=await et(e),a=await e.getAddress();return this.metadataRefreshesApi.getAListOfMetadataRefreshes({xImxEthSignature:i.signature,xImxEthTimestamp:i.timestamp,xImxEthAddress:a,collectionAddress:t,pageSize:r,cursor:n})}async getMetadataRefreshErrors(e,t,r,n){let i=await et(e),a=await e.getAddress();return this.metadataRefreshesApi.getMetadataRefreshErrors({xImxEthSignature:i.signature,xImxEthTimestamp:i.timestamp,xImxEthAddress:a,refreshId:t,pageSize:r,cursor:n})}async getMetadataRefreshResults(e,t){let r=await et(e),n=await e.getAddress();return this.metadataRefreshesApi.getMetadataRefreshResults({xImxEthSignature:r.signature,xImxEthTimestamp:r.timestamp,xImxEthAddress:n,refreshId:t})}async createMetadataRefresh(e,t){let r=await et(e),n=await e.getAddress();return this.metadataRefreshesApi.requestAMetadataRefresh({xImxEthSignature:r.signature,xImxEthTimestamp:r.timestamp,xImxEthAddress:n,createMetadataRefreshRequest:t})}async createPrimarySale(e,t){return await this.validateChain(e.ethSigner),es({...e,request:t,primarySalesApi:this.primarySalesApi})}async acceptPrimarySale(e,t){return eo({ethSigner:e,primarySaleId:t,primarySalesApi:this.primarySalesApi})}async rejectPrimarySale(e,t){return ec({ethSigner:e,primarySaleId:t,primarySalesApi:this.primarySalesApi})}}class eu{immutableX;imxConfig;assetApi;balanceApi;collectionApi;depositsApi;encodingApi;exchangeApi;metadataApi;metadataRefreshesApi;mintsApi;nftCheckoutPrimaryApi;ordersApi;primarySalesApi;projectsApi;tokensApi;tradesApi;transfersApi;usersApi;withdrawalsApi;workflows;constructor(e){this.imxConfig=new R(e),this.immutableX=new a.ImxApiClients(this.imxConfig.immutableXConfig.apiConfiguration),this.assetApi=this.immutableX.assetApi,this.balanceApi=this.immutableX.balanceApi,this.collectionApi=this.immutableX.collectionApi,this.depositsApi=this.immutableX.depositsApi,this.encodingApi=this.immutableX.encodingApi,this.exchangeApi=this.immutableX.exchangeApi,this.metadataApi=this.immutableX.metadataApi,this.metadataRefreshesApi=this.immutableX.metadataRefreshesApi,this.mintsApi=this.immutableX.mintsApi,this.nftCheckoutPrimaryApi=this.immutableX.nftCheckoutPrimaryApi,this.ordersApi=this.immutableX.ordersApi,this.primarySalesApi=this.immutableX.primarySalesApi,this.projectsApi=this.immutableX.projectsApi,this.tokensApi=this.immutableX.tokensApi,this.tradesApi=this.immutableX.tradesApi,this.transfersApi=this.immutableX.transfersApi,this.usersApi=this.immutableX.usersApi,this.withdrawalsApi=this.immutableX.withdrawalsApi,this.workflows=new ef(this.imxConfig.immutableXConfig,this.immutableX.collectionApi,this.immutableX.exchangeApi,this.immutableX.metadataApi,this.immutableX.metadataRefreshesApi,this.immutableX.mintsApi,this.immutableX.primarySalesApi,this.immutableX.projectsApi)}getDeposit(e){return this.depositsApi.getDeposit(e).then(e=>e.data).catch(e=>{throw P(e)})}listDeposits(e){return this.depositsApi.listDeposits(e).then(e=>e.data).catch(e=>{throw P(e)})}getUser(e){return this.usersApi.getUsers({user:e}).then(e=>e.data).catch(e=>{throw P(e)})}getAsset(e){return this.assetApi.getAsset(e).then(e=>e.data).catch(e=>{throw P(e)})}listAssets(e){return this.assetApi.listAssets(e).then(e=>e.data).catch(e=>{throw P(e)})}createCollection(e,t){return this.workflows.createCollection(e,t).then(e=>e.data).catch(e=>{throw P(e)})}getCollection(e){return this.collectionApi.getCollection(e).then(e=>e.data).catch(e=>{throw P(e)})}listCollectionFilters(e){return this.collectionApi.listCollectionFilters(e).then(e=>e.data).catch(e=>{throw P(e)})}listCollections(e){return this.collectionApi.listCollections(e).then(e=>e.data).catch(e=>{throw P(e)})}updateCollection(e,t,r){return this.workflows.updateCollection(e,t,r).then(e=>e.data).catch(e=>{throw P(e)})}addMetadataSchemaToCollection(e,t,r){return this.workflows.addMetadataSchemaToCollection(e,t,r).then(e=>e.data).catch(e=>{throw P(e)})}getMetadataSchema(e){return this.metadataApi.getMetadataSchema(e).then(e=>e.data).catch(e=>{throw P(e)})}updateMetadataSchemaByName(e,t,r,n){return this.workflows.updateMetadataSchemaByName(e,t,r,n).then(e=>e.data).catch(e=>{throw P(e)})}listMetadataRefreshes(e,t,r,n){return this.workflows.listMetadataRefreshes(e,t,r,n).then(e=>e.data).catch(e=>{throw P(e)})}getMetadataRefreshErrors(e,t,r,n){return this.workflows.getMetadataRefreshErrors(e,t,r,n).then(e=>e.data).catch(e=>{throw P(e)})}getMetadataRefreshResults(e,t){return this.workflows.getMetadataRefreshResults(e,t).then(e=>e.data).catch(e=>{throw P(e)})}createMetadataRefresh(e,t){return this.workflows.createMetadataRefresh(e,t).then(e=>e.data).catch(e=>{throw P(e)})}async getProject(e,t){return this.workflows.getProject(e,t).then(e=>e.data).catch(e=>{throw P(e)})}getBalance(e){return this.balanceApi.getBalance(e).then(e=>e.data).catch(e=>{throw P(e)})}listBalances(e){return this.balanceApi.listBalances(e).then(e=>e.data).catch(e=>{throw P(e)})}getMint(e){return this.mintsApi.getMint(e).then(e=>e.data).catch(e=>{throw P(e)})}listMints(e){return this.mintsApi.listMints(e).then(e=>e.data).catch(e=>{throw P(e)})}mint(e,t){return this.workflows.mint(e,t)}listWithdrawals(e){return this.withdrawalsApi.listWithdrawals(e).then(e=>e.data).catch(e=>{throw P(e)})}getWithdrawal(e){return this.withdrawalsApi.getWithdrawal(e).then(e=>e.data).catch(e=>{throw P(e)})}getOrder(e){return this.ordersApi.getOrderV3(e).then(e=>e.data).catch(e=>{throw P(e)})}listOrders(e){return this.ordersApi.listOrdersV3(e).then(e=>e.data).catch(e=>{throw P(e)})}getTrade(e){return this.tradesApi.getTradeV3(e).then(e=>e.data).catch(e=>{throw P(e)})}listTrades(e){return this.tradesApi.listTradesV3(e).then(e=>e.data).catch(e=>{throw P(e)})}getToken(e){return this.tokensApi.getToken(e).then(e=>e.data).catch(e=>{throw P(e)})}listTokens(e){return this.tokensApi.listTokens(e).then(e=>e.data).catch(e=>{throw P(e)})}getTransfer(e){return this.transfersApi.getTransfer(e).then(e=>e.data).catch(e=>{throw P(e)})}listTransfers(e){return this.transfersApi.listTransfers(e).then(e=>e.data).catch(e=>{throw P(e)})}createExchange(e){return this.exchangeApi.createExchange(e).then(e=>e.data).catch(e=>{throw P(e)})}getExchange(e){return this.exchangeApi.getExchange(e).then(e=>e.data).catch(e=>{throw P(e)})}getExchanges(e){return this.exchangeApi.getExchanges(e).then(e=>e.data).catch(e=>{throw P(e)})}exchangeTransfer(e,t){return this.workflows.exchangeTransfer(e,t)}createNftPrimary(e){return this.nftCheckoutPrimaryApi.createNftPrimary(e).then(e=>e.data).catch(e=>{throw P(e)})}getCurrenciesNFTCheckoutPrimary(e){return this.nftCheckoutPrimaryApi.getCurrenciesNFTCheckoutPrimary(e).then(e=>e.data).catch(e=>{throw P(e)})}getNftPrimaryTransaction(e){return this.nftCheckoutPrimaryApi.getNftPrimaryTransaction(e).then(e=>e.data).catch(e=>{throw P(e)})}getNftPrimaryTransactions(e){return this.nftCheckoutPrimaryApi.getNftPrimaryTransactions(e).then(e=>e.data).catch(e=>{throw P(e)})}createPrimarySale(e,t){return this.workflows.createPrimarySale(e,t).catch(e=>{throw P(e)})}acceptPrimarySale(e,t){return this.workflows.acceptPrimarySale(e,t).catch(e=>{throw P(e)})}rejectPrimarySale(e,t){return this.workflows.rejectPrimarySale(e,t).catch(e=>{throw P(e)})}}class ed extends eu{}let el=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}],eh=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"operator",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"owner",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"_approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"}],ep=[{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"depositorEthKey",type:"address"},{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogDeposit",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogDepositCancel",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogDepositCancelReclaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogDepositNftCancelReclaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"}],name:"LogFullWithdrawalRequest",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogMintWithdrawalPerformed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogMintableWithdrawalAllowed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"depositorEthKey",type:"address"},{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogNftDeposit",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogNftWithdrawalAllowed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"},{indexed:!1,internalType:"address",name:"recipient",type:"address"}],name:"LogNftWithdrawalPerformed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"sequenceNumber",type:"uint256"},{indexed:!1,internalType:"uint256",name:"batchId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultRoot",type:"uint256"},{indexed:!1,internalType:"uint256",name:"orderRoot",type:"uint256"}],name:"LogRootUpdate",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"stateTransitionFact",type:"bytes32"}],name:"LogStateTransitionFact",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"ethKey",type:"address"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"int256",name:"quantizedAmountChange",type:"int256"}],name:"LogVaultBalanceChangeApplied",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogWithdrawalAllowed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"},{indexed:!1,internalType:"address",name:"recipient",type:"address"}],name:"LogWithdrawalPerformed",type:"event"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"announceAvailabilityVerifierRemovalIntent",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"announceVerifierRemovalIntent",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"deposit",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"deposit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"depositCancel",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"depositERC20",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"depositEth",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"depositNft",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"depositNftReclaim",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"depositReclaim",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"escape",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"freezeRequest",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"fullWithdrawalRequest",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"assetType",type:"uint256"}],name:"getAssetInfo",outputs:[{internalType:"bytes",name:"assetInfo",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getCancellationRequest",outputs:[{internalType:"uint256",name:"request",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getDepositBalance",outputs:[{internalType:"uint256",name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"}],name:"getEthKey",outputs:[{internalType:"address",name:"ethKey",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getFullWithdrawalRequest",outputs:[{internalType:"uint256",name:"res",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getLastBatchId",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOrderRoot",outputs:[{internalType:"uint256",name:"root",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOrderTreeHeight",outputs:[{internalType:"uint256",name:"height",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getQuantizedDepositBalance",outputs:[{internalType:"uint256",name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"presumedAssetType",type:"uint256"}],name:"getQuantum",outputs:[{internalType:"uint256",name:"quantum",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getRegisteredAvailabilityVerifiers",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getRegisteredVerifiers",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getSequenceNumber",outputs:[{internalType:"uint256",name:"seq",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getVaultRoot",outputs:[{internalType:"uint256",name:"root",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getVaultTreeHeight",outputs:[{internalType:"uint256",name:"height",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"ownerKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"}],name:"getWithdrawalBalance",outputs:[{internalType:"uint256",name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"isAvailabilityVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"isFrozen",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"isOperator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"isTokenAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"isUserAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"isVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"mainAcceptGovernance",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"mainCancelNomination",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"mainIsGovernor",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"mainNominateNewGovernor",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"mainRemoveGovernor",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"registerAndDepositERC20",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"registerAndDepositEth",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"string",name:"",type:"string"}],name:"registerAvailabilityVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"registerOperator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"registerToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"registerTokenAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"registerUser",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"registerUserAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"string",name:"",type:"string"}],name:"registerVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"removeAvailabilityVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"removeVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unFreeze",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"unregisterOperator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"unregisterTokenAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"unregisterUserAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256[]",name:"publicInput",type:"uint256[]"},{internalType:"uint256[]",name:"applicationData",type:"uint256[]"}],name:"updateState",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"ownerKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"}],name:"withdraw",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"ownerKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"bytes",name:"mintingBlob",type:"bytes"}],name:"withdrawAndMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"ownerKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"withdrawNft",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"address",name:"",type:"address"}],name:"withdrawNftTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"address",name:"",type:"address"}],name:"withdrawTo",outputs:[],stateMutability:"nonpayable",type:"function"}],em=[{inputs:[{internalType:"contract Core",name:"_imx",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"imx",outputs:[{internalType:"contract Core",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"}],name:"isRegistered",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"registerAndDepositNft",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"}],name:"registerAndWithdraw",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"registerAndWithdrawNft",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"address",name:"recipient",type:"address"}],name:"registerAndWithdrawNftTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"address",name:"recipient",type:"address"}],name:"registerAndWithdrawTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"bytes",name:"mintingBlob",type:"bytes"}],name:"regsiterAndWithdrawAndMint",outputs:[],stateMutability:"nonpayable",type:"function"}],eb="0x60806040523480156200001157600080fd5b5060405162001313380380620013138339818101604052810190620000379190620000fc565b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506200012e565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620000b08262000083565b9050919050565b6000620000c482620000a3565b9050919050565b620000d681620000b7565b8114620000e257600080fd5b50565b600081519050620000f681620000cb565b92915050565b6000602082840312156200011557620001146200007e565b5b60006200012584828501620000e5565b91505092915050565b6111d5806200013e6000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c80634280d50a1161005b5780634280d50a146100ff5780634627d5981461011b578063579a698814610137578063ea864adf1461016757610088565b80630a9c3beb1461008d5780630f08025f146100a95780631259cc6c146100c7578063352eb84c146100e3575b600080fd5b6100a760048036038101906100a29190610a72565b610183565b005b6100b16102ae565b6040516100be9190610b8d565b60405180910390f35b6100e160048036038101906100dc9190610ba8565b6102d2565b005b6100fd60048036038101906100f89190610c57565b6103fd565b005b61011960048036038101906101149190610cf1565b610525565b005b61013560048036038101906101309190610da0565b610650565b005b610151600480360381019061014c9190610e3a565b610778565b60405161015e9190610e82565b60405180910390f35b610181600480360381019061017c9190610e9d565b61084a565b005b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd2414d4888888886040518563ffffffff1660e01b81526004016101e29493929190610fa1565b600060405180830381600087803b1580156101fc57600080fd5b505af1158015610210573d6000803e3d6000fd5b5050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d91443b7878585856040518563ffffffff1660e01b81526004016102739493929190610fe1565b600060405180830381600087803b15801561028d57600080fd5b505af11580156102a1573d6000803e3d6000fd5b5050505050505050505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd2414d4888888886040518563ffffffff1660e01b81526004016103319493929190610fa1565b600060405180830381600087803b15801561034b57600080fd5b505af115801561035f573d6000803e3d6000fd5b5050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ebef0fd0878585856040518563ffffffff1660e01b81526004016103c29493929190611021565b600060405180830381600087803b1580156103dc57600080fd5b505af11580156103f0573d6000803e3d6000fd5b5050505050505050505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd2414d4878787876040518563ffffffff1660e01b815260040161045c9493929190610fa1565b600060405180830381600087803b15801561047657600080fd5b505af115801561048a573d6000803e3d6000fd5b5050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663019b417a8684846040518463ffffffff1660e01b81526004016104eb93929190611066565b600060405180830381600087803b15801561050557600080fd5b505af1158015610519573d6000803e3d6000fd5b50505050505050505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd2414d4888888886040518563ffffffff1660e01b81526004016105849493929190610fa1565b600060405180830381600087803b15801561059e57600080fd5b505af11580156105b2573d6000803e3d6000fd5b5050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ae1cdde6878585856040518563ffffffff1660e01b8152600401610615949392919061109d565b600060405180830381600087803b15801561062f57600080fd5b505af1158015610643573d6000803e3d6000fd5b5050505050505050505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd2414d4878787876040518563ffffffff1660e01b81526004016106af9493929190610fa1565b600060405180830381600087803b1580156106c957600080fd5b505af11580156106dd573d6000803e3d6000fd5b5050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166314cd70e48684846040518463ffffffff1660e01b815260040161073e939291906110e2565b600060405180830381600087803b15801561075857600080fd5b505af115801561076c573d6000803e3d6000fd5b50505050505050505050565b60008073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631dbd1da7846040518263ffffffff1660e01b81526004016107ea9190611119565b602060405180830381865afa158015610807573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082b9190611149565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd2414d4868686866040518563ffffffff1660e01b81526004016108a99493929190610fa1565b600060405180830381600087803b1580156108c357600080fd5b505af11580156108d7573d6000803e3d6000fd5b5050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663441a3e7085836040518363ffffffff1660e01b8152600401610936929190611176565b600060405180830381600087803b15801561095057600080fd5b505af1158015610964573d6000803e3d6000fd5b505050505050505050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006109a482610979565b9050919050565b6109b481610999565b81146109bf57600080fd5b50565b6000813590506109d1816109ab565b92915050565b6000819050919050565b6109ea816109d7565b81146109f557600080fd5b50565b600081359050610a07816109e1565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112610a3257610a31610a0d565b5b8235905067ffffffffffffffff811115610a4f57610a4e610a12565b5b602083019150836001820283011115610a6b57610a6a610a17565b5b9250929050565b600080600080600080600060a0888a031215610a9157610a9061096f565b5b6000610a9f8a828b016109c2565b9750506020610ab08a828b016109f8565b965050604088013567ffffffffffffffff811115610ad157610ad0610974565b5b610add8a828b01610a1c565b95509550506060610af08a828b016109f8565b935050608088013567ffffffffffffffff811115610b1157610b10610974565b5b610b1d8a828b01610a1c565b925092505092959891949750929550565b6000819050919050565b6000610b53610b4e610b4984610979565b610b2e565b610979565b9050919050565b6000610b6582610b38565b9050919050565b6000610b7782610b5a565b9050919050565b610b8781610b6c565b82525050565b6000602082019050610ba26000830184610b7e565b92915050565b600080600080600080600060c0888a031215610bc757610bc661096f565b5b6000610bd58a828b016109c2565b9750506020610be68a828b016109f8565b965050604088013567ffffffffffffffff811115610c0757610c06610974565b5b610c138a828b01610a1c565b95509550506060610c268a828b016109f8565b9350506080610c378a828b016109f8565b92505060a0610c488a828b016109c2565b91505092959891949750929550565b60008060008060008060a08789031215610c7457610c7361096f565b5b6000610c8289828a016109c2565b9650506020610c9389828a016109f8565b955050604087013567ffffffffffffffff811115610cb457610cb3610974565b5b610cc089828a01610a1c565b94509450506060610cd389828a016109f8565b9250506080610ce489828a016109f8565b9150509295509295509295565b600080600080600080600060c0888a031215610d1057610d0f61096f565b5b6000610d1e8a828b016109c2565b9750506020610d2f8a828b016109f8565b965050604088013567ffffffffffffffff811115610d5057610d4f610974565b5b610d5c8a828b01610a1c565b95509550506060610d6f8a828b016109f8565b9350506080610d808a828b016109f8565b92505060a0610d918a828b016109f8565b91505092959891949750929550565b60008060008060008060a08789031215610dbd57610dbc61096f565b5b6000610dcb89828a016109c2565b9650506020610ddc89828a016109f8565b955050604087013567ffffffffffffffff811115610dfd57610dfc610974565b5b610e0989828a01610a1c565b94509450506060610e1c89828a016109f8565b9250506080610e2d89828a016109c2565b9150509295509295509295565b600060208284031215610e5057610e4f61096f565b5b6000610e5e848285016109f8565b91505092915050565b60008115159050919050565b610e7c81610e67565b82525050565b6000602082019050610e976000830184610e73565b92915050565b600080600080600060808688031215610eb957610eb861096f565b5b6000610ec7888289016109c2565b9550506020610ed8888289016109f8565b945050604086013567ffffffffffffffff811115610ef957610ef8610974565b5b610f0588828901610a1c565b93509350506060610f18888289016109f8565b9150509295509295909350565b610f2e81610999565b82525050565b610f3d816109d7565b82525050565b600082825260208201905092915050565b82818337600083830152505050565b6000601f19601f8301169050919050565b6000610f808385610f43565b9350610f8d838584610f54565b610f9683610f63565b840190509392505050565b6000606082019050610fb66000830187610f25565b610fc36020830186610f34565b8181036040830152610fd6818486610f74565b905095945050505050565b6000606082019050610ff66000830187610f34565b6110036020830186610f34565b8181036040830152611016818486610f74565b905095945050505050565b60006080820190506110366000830187610f34565b6110436020830186610f34565b6110506040830185610f34565b61105d6060830184610f25565b95945050505050565b600060608201905061107b6000830186610f34565b6110886020830185610f34565b6110956040830184610f34565b949350505050565b60006080820190506110b26000830187610f34565b6110bf6020830186610f34565b6110cc6040830185610f34565b6110d96060830184610f34565b95945050505050565b60006060820190506110f76000830186610f34565b6111046020830185610f34565b6111116040830184610f25565b949350505050565b600060208201905061112e6000830184610f34565b92915050565b600081519050611143816109ab565b92915050565b60006020828403121561115f5761115e61096f565b5b600061116d84828501611134565b91505092915050565b600060408201905061118b6000830185610f34565b6111986020830184610f34565b939250505056fea2646970667358221220ec3495278afe78566e74b538d48e94b094c110ca38b03493e90e5e382cc99d0264736f6c63430008130033",eg=e=>e.length>1;class ey extends p.ContractFactory{constructor(...e){eg(e)?super(...e):super(em,eb,e[0])}deploy(e,t){return super.deploy(e,t||{})}getDeployTransaction(e,t){return super.getDeployTransaction(e,t||{})}attach(e){return super.attach(e)}connect(e){return super.connect(e)}static bytecode=eb;static abi=em;static createInterface(){return new p.utils.Interface(em)}static connect(e,t){return new p.Contract(e,em,t)}}let ev=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"implementation",type:"address"},{indexed:!1,internalType:"uint256",name:"updatedActivationTime",type:"uint256"}],name:"ImplementationActivationRescheduled",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"newDefaultLockTime",type:"uint256"}],name:"LogDefaultVaultWithdrawalLockSet",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"depositorEthKey",type:"address"},{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogDeposit",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogDepositCancel",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogDepositCancelReclaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogDepositNftCancelReclaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"ethKey",type:"address"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogDepositToVault",type:"event"},{anonymous:!1,inputs:[],name:"LogFrozen",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"}],name:"LogFullWithdrawalRequest",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogMintWithdrawalPerformed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogMintableWithdrawalAllowed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"acceptedGovernor",type:"address"}],name:"LogNewGovernorAccepted",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"depositorEthKey",type:"address"},{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogNftDeposit",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogNftWithdrawalAllowed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"},{indexed:!1,internalType:"address",name:"recipient",type:"address"}],name:"LogNftWithdrawalPerformed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"nominatedGovernor",type:"address"}],name:"LogNominatedGovernor",type:"event"},{anonymous:!1,inputs:[],name:"LogNominationCancelled",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"operator",type:"address"}],name:"LogOperatorAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"operator",type:"address"}],name:"LogOperatorRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"entry",type:"address"},{indexed:!1,internalType:"string",name:"entryId",type:"string"}],name:"LogRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"entry",type:"address"},{indexed:!1,internalType:"string",name:"entryId",type:"string"}],name:"LogRemovalIntent",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"entry",type:"address"},{indexed:!1,internalType:"string",name:"entryId",type:"string"}],name:"LogRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"removedGovernor",type:"address"}],name:"LogRemovedGovernor",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"sequenceNumber",type:"uint256"},{indexed:!1,internalType:"uint256",name:"batchId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultRoot",type:"uint256"},{indexed:!1,internalType:"uint256",name:"orderRoot",type:"uint256"}],name:"LogRootUpdate",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"stateTransitionFact",type:"bytes32"}],name:"LogStateTransitionFact",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"tokenAdmin",type:"address"}],name:"LogTokenAdminAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"tokenAdmin",type:"address"}],name:"LogTokenAdminRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"bytes",name:"assetInfo",type:"bytes"},{indexed:!1,internalType:"uint256",name:"quantum",type:"uint256"}],name:"LogTokenRegistered",type:"event"},{anonymous:!1,inputs:[],name:"LogUnFrozen",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"ethKey",type:"address"},{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"address",name:"sender",type:"address"}],name:"LogUserRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"ethKey",type:"address"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"int256",name:"quantizedAmountChange",type:"int256"}],name:"LogVaultBalanceChangeApplied",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"ethKey",type:"address"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"timeRelease",type:"uint256"}],name:"LogVaultWithdrawalLockSet",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogWithdrawalAllowed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"ethKey",type:"address"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogWithdrawalFromVault",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"},{indexed:!1,internalType:"address",name:"recipient",type:"address"}],name:"LogWithdrawalPerformed",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"DEPOSIT_CANCEL_DELAY",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"FREEZE_GRACE_PERIOD",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"MAIN_GOVERNANCE_INFO_TAG",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"MAX_FORCED_ACTIONS_REQS_PER_BLOCK",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"MAX_VERIFIER_COUNT",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"STARKEX_MAX_DEFAULT_VAULT_LOCK",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"UNFREEZE_DELAY",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"VERIFIER_REMOVAL_DELAY",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"verifier",type:"address"}],name:"announceAvailabilityVerifierRemovalIntent",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"verifier",type:"address"}],name:"announceVerifierRemovalIntent",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"defaultVaultWithdrawalLock",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"deposit",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"deposit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"depositCancel",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"depositERC20",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"depositERC20ToVault",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"depositEth",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"depositEthToVault",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"depositNft",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"depositNftReclaim",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"depositReclaim",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"escape",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"freezeRequest",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"fullWithdrawalRequest",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getActionCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"actionIndex",type:"uint256"}],name:"getActionHashByIndex",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"assetType",type:"uint256"}],name:"getAssetInfo",outputs:[{internalType:"bytes",name:"assetInfo",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getCancellationRequest",outputs:[{internalType:"uint256",name:"request",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getDepositBalance",outputs:[{internalType:"uint256",name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"ownerKey",type:"uint256"}],name:"getEthKey",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getFullWithdrawalRequest",outputs:[{internalType:"uint256",name:"res",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getLastBatchId",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOrderRoot",outputs:[{internalType:"uint256",name:"root",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOrderTreeHeight",outputs:[{internalType:"uint256",name:"height",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getQuantizedDepositBalance",outputs:[{internalType:"uint256",name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getQuantizedVaultBalance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"presumedAssetType",type:"uint256"}],name:"getQuantum",outputs:[{internalType:"uint256",name:"quantum",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getRegisteredAvailabilityVerifiers",outputs:[{internalType:"address[]",name:"_verifers",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getRegisteredVerifiers",outputs:[{internalType:"address[]",name:"_verifers",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getSequenceNumber",outputs:[{internalType:"uint256",name:"seq",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getVaultBalance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getVaultRoot",outputs:[{internalType:"uint256",name:"root",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getVaultTreeHeight",outputs:[{internalType:"uint256",name:"height",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getVaultWithdrawalLock",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"ownerKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"}],name:"getWithdrawalBalance",outputs:[{internalType:"uint256",name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"assetType",type:"uint256"}],name:"isAssetRegistered",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"verifierAddress",type:"address"}],name:"isAvailabilityVerifier",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"isFrozen",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"testedOperator",type:"address"}],name:"isOperator",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"isStrictVaultBalancePolicy",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"testedAdmin",type:"address"}],name:"isTokenAdmin",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"isVaultLocked",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"verifierAddress",type:"address"}],name:"isVerifier",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"lockTime",type:"uint256"}],name:"lockVault",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"mainAcceptGovernance",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"mainCancelNomination",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"testGovernor",type:"address"}],name:"mainIsGovernor",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"newGovernor",type:"address"}],name:"mainNominateNewGovernor",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"governorForRemoval",type:"address"}],name:"mainRemoveGovernor",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"orderRegistryAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"registerAndDepositERC20",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"registerAndDepositEth",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"verifier",type:"address"},{internalType:"string",name:"identifier",type:"string"}],name:"registerAvailabilityVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"starkSignature",type:"bytes"}],name:"registerEthAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOperator",type:"address"}],name:"registerOperator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"starkSignature",type:"bytes"}],name:"registerSender",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"bytes",name:"assetInfo",type:"bytes"}],name:"registerToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"bytes",name:"assetInfo",type:"bytes"},{internalType:"uint256",name:"quantum",type:"uint256"}],name:"registerToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newAdmin",type:"address"}],name:"registerTokenAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"verifier",type:"address"},{internalType:"string",name:"identifier",type:"string"}],name:"registerVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"verifier",type:"address"}],name:"removeAvailabilityVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"verifier",type:"address"}],name:"removeVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"newDefaultTime",type:"uint256"}],name:"setDefaultVaultWithdrawalLock",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unFreeze",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"removedOperator",type:"address"}],name:"unregisterOperator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"oldAdmin",type:"address"}],name:"unregisterTokenAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"implementation",type:"address"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bool",name:"finalize",type:"bool"}],name:"updateImplementationActivationTime",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256[]",name:"publicInput",type:"uint256[]"},{internalType:"uint256[]",name:"applicationData",type:"uint256[]"}],name:"updateState",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"ownerKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"}],name:"withdraw",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"ownerKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"bytes",name:"mintingBlob",type:"bytes"}],name:"withdrawAndMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"withdrawFromVault",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"ownerKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"withdrawNft",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],ew=[{inputs:[{internalType:"address payable",name:"_imx",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"uint256",name:"ethKey",type:"uint256"},{internalType:"uint256",name:"starkKey",type:"uint256"}],name:"NoFundsToWithdraw",type:"error"},{inputs:[],name:"getVersion",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"imx",outputs:[{internalType:"contract CoreV4",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"}],name:"isRegistered",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"}],name:"registerAndWithdrawAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"registerAndWithdrawNft",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"bytes",name:"mintingBlob",type:"bytes"}],name:"registerWithdrawAndMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"ethKey",type:"uint256"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"}],name:"withdrawAll",outputs:[],stateMutability:"nonpayable",type:"function"}],e_="0x60a06040523480156200001157600080fd5b50604051620012bc380380620012bc8339818101604052810190620000379190620000dc565b8073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1681525050506200010e565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620000a48262000077565b9050919050565b620000b68162000097565b8114620000c257600080fd5b50565b600081519050620000d681620000ab565b92915050565b600060208284031215620000f557620000f462000072565b5b60006200010584828501620000c5565b91505092915050565b608051611145620001776000396000818161016d01528181610229015281816102c2015281816102f30152818161038501528181610429015281816104bb0152818161056e01528181610629015281816106c9015281816107c4015261085b01526111456000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c8063352eb84c1161005b578063352eb84c146100da57806343fa186d146100f6578063579a698814610112578063d2fc99b5146101425761007d565b8063022cabbc146100825780630d8e6e2c1461009e5780630f08025f146100bc575b600080fd5b61009c600480360381019061009791906109fb565b61015e565b005b6100a6610225565b6040516100b39190610b13565b60405180910390f35b6100c46102c0565b6040516100d19190610b94565b60405180910390f35b6100f460048036038101906100ef9190610baf565b6102e4565b005b610110600480360381019061010b9190610c49565b61041a565b005b61012c60048036038101906101279190610d05565b610553565b6040516101399190610d4d565b60405180910390f35b61015c60048036038101906101579190610d68565b610625565b005b61016784610553565b6101fd577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663bea84187868686866040518563ffffffff1660e01b81526004016101ca9493929190610e26565b600060405180830381600087803b1580156101e457600080fd5b505af11580156101f8573d6000803e3d6000fd5b505050505b61021e8573ffffffffffffffffffffffffffffffffffffffff168583610625565b5050505050565b60607f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663ffa1ad746040518163ffffffff1660e01b8152600401600060405180830381865afa158015610292573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906102bb9190610f87565b905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b6102ed85610553565b610383577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663bea84187878787876040518563ffffffff1660e01b81526004016103509493929190610e26565b600060405180830381600087803b15801561036a57600080fd5b505af115801561037e573d6000803e3d6000fd5b505050505b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663019b417a8684846040518463ffffffff1660e01b81526004016103e093929190610fd0565b600060405180830381600087803b1580156103fa57600080fd5b505af115801561040e573d6000803e3d6000fd5b50505050505050505050565b61042386610553565b6104b9577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663bea84187888888886040518563ffffffff1660e01b81526004016104869493929190610e26565b600060405180830381600087803b1580156104a057600080fd5b505af11580156104b4573d6000803e3d6000fd5b505050505b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d91443b7878585856040518563ffffffff1660e01b81526004016105189493929190611007565b600060405180830381600087803b15801561053257600080fd5b505af1158015610546573d6000803e3d6000fd5b5050505050505050505050565b60008073ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16631dbd1da7846040518263ffffffff1660e01b81526004016105c59190611047565b602060405180830381865afa1580156105e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106069190611077565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663ec3161b085846040518363ffffffff1660e01b81526004016106829291906110a4565b602060405180830381865afa15801561069f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106c391906110e2565b905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663ec3161b085856040518363ffffffff1660e01b81526004016107229291906110a4565b602060405180830381865afa15801561073f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076391906110e2565b90506000821480156107755750600081145b156107b95784846040517f1362cdf20000000000000000000000000000000000000000000000000000000081526004016107b09291906110a4565b60405180910390fd5b6000821115610850577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663441a3e7086856040518363ffffffff1660e01b815260040161081d9291906110a4565b600060405180830381600087803b15801561083757600080fd5b505af115801561084b573d6000803e3d6000fd5b505050505b60008111156108e7577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663441a3e7085856040518363ffffffff1660e01b81526004016108b49291906110a4565b600060405180830381600087803b1580156108ce57600080fd5b505af11580156108e2573d6000803e3d6000fd5b505050505b5050505050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061092d82610902565b9050919050565b61093d81610922565b811461094857600080fd5b50565b60008135905061095a81610934565b92915050565b6000819050919050565b61097381610960565b811461097e57600080fd5b50565b6000813590506109908161096a565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126109bb576109ba610996565b5b8235905067ffffffffffffffff8111156109d8576109d761099b565b5b6020830191508360018202830111156109f4576109f36109a0565b5b9250929050565b600080600080600060808688031215610a1757610a166108f8565b5b6000610a258882890161094b565b9550506020610a3688828901610981565b945050604086013567ffffffffffffffff811115610a5757610a566108fd565b5b610a63888289016109a5565b93509350506060610a7688828901610981565b9150509295509295909350565b600081519050919050565b600082825260208201905092915050565b60005b83811015610abd578082015181840152602081019050610aa2565b60008484015250505050565b6000601f19601f8301169050919050565b6000610ae582610a83565b610aef8185610a8e565b9350610aff818560208601610a9f565b610b0881610ac9565b840191505092915050565b60006020820190508181036000830152610b2d8184610ada565b905092915050565b6000819050919050565b6000610b5a610b55610b5084610902565b610b35565b610902565b9050919050565b6000610b6c82610b3f565b9050919050565b6000610b7e82610b61565b9050919050565b610b8e81610b73565b82525050565b6000602082019050610ba96000830184610b85565b92915050565b60008060008060008060a08789031215610bcc57610bcb6108f8565b5b6000610bda89828a0161094b565b9650506020610beb89828a01610981565b955050604087013567ffffffffffffffff811115610c0c57610c0b6108fd565b5b610c1889828a016109a5565b94509450506060610c2b89828a01610981565b9250506080610c3c89828a01610981565b9150509295509295509295565b600080600080600080600060a0888a031215610c6857610c676108f8565b5b6000610c768a828b0161094b565b9750506020610c878a828b01610981565b965050604088013567ffffffffffffffff811115610ca857610ca76108fd565b5b610cb48a828b016109a5565b95509550506060610cc78a828b01610981565b935050608088013567ffffffffffffffff811115610ce857610ce76108fd565b5b610cf48a828b016109a5565b925092505092959891949750929550565b600060208284031215610d1b57610d1a6108f8565b5b6000610d2984828501610981565b91505092915050565b60008115159050919050565b610d4781610d32565b82525050565b6000602082019050610d626000830184610d3e565b92915050565b600080600060608486031215610d8157610d806108f8565b5b6000610d8f86828701610981565b9350506020610da086828701610981565b9250506040610db186828701610981565b9150509250925092565b610dc481610922565b82525050565b610dd381610960565b82525050565b600082825260208201905092915050565b82818337600083830152505050565b6000610e058385610dd9565b9350610e12838584610dea565b610e1b83610ac9565b840190509392505050565b6000606082019050610e3b6000830187610dbb565b610e486020830186610dca565b8181036040830152610e5b818486610df9565b905095945050505050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b610ea382610ac9565b810181811067ffffffffffffffff82111715610ec257610ec1610e6b565b5b80604052505050565b6000610ed56108ee565b9050610ee18282610e9a565b919050565b600067ffffffffffffffff821115610f0157610f00610e6b565b5b610f0a82610ac9565b9050602081019050919050565b6000610f2a610f2584610ee6565b610ecb565b905082815260208101848484011115610f4657610f45610e66565b5b610f51848285610a9f565b509392505050565b600082601f830112610f6e57610f6d610996565b5b8151610f7e848260208601610f17565b91505092915050565b600060208284031215610f9d57610f9c6108f8565b5b600082015167ffffffffffffffff811115610fbb57610fba6108fd565b5b610fc784828501610f59565b91505092915050565b6000606082019050610fe56000830186610dca565b610ff26020830185610dca565b610fff6040830184610dca565b949350505050565b600060608201905061101c6000830187610dca565b6110296020830186610dca565b818103604083015261103c818486610df9565b905095945050505050565b600060208201905061105c6000830184610dca565b92915050565b60008151905061107181610934565b92915050565b60006020828403121561108d5761108c6108f8565b5b600061109b84828501611062565b91505092915050565b60006040820190506110b96000830185610dca565b6110c66020830184610dca565b9392505050565b6000815190506110dc8161096a565b92915050565b6000602082840312156110f8576110f76108f8565b5b6000611106848285016110cd565b9150509291505056fea2646970667358221220c33e1830b470bf1e012ac831ec80242d6268e5e6e990b7e1574a230f71533ebd64736f6c63430008130033",eE=e=>e.length>1;class eA extends p.ContractFactory{constructor(...e){eE(e)?super(...e):super(ew,e_,e[0])}deploy(e,t){return super.deploy(e,t||{})}getDeployTransaction(e,t){return super.getDeployTransaction(e,t||{})}attach(e){return super.attach(e)}connect(e){return super.connect(e)}static bytecode=e_;static abi=ew;static createInterface(){return new p.utils.Interface(ew)}static connect(e,t){return new p.Contract(e,ew,t)}}var eM=Object.freeze({__proto__:null,Core:class{static abi=ep;static createInterface(){return new p.utils.Interface(ep)}static connect(e,t){return new p.Contract(e,ep,t)}},CoreV4:class{static abi=ev;static createInterface(){return new p.utils.Interface(ev)}static connect(e,t){return new p.Contract(e,ev,t)}},IERC20:class{static abi=el;static createInterface(){return new p.utils.Interface(el)}static connect(e,t){return new p.Contract(e,el,t)}},IERC721:class{static abi=eh;static createInterface(){return new p.utils.Interface(eh)}static connect(e,t){return new p.Contract(e,eh,t)}},Registration:ey,RegistrationV4:eA});class eS extends a.imx.AssetsApi{}class ex extends a.imx.BalancesApi{}class eT extends a.imx.CollectionsApi{}class ek extends a.imx.DepositsApi{}class eR extends a.imx.EncodingApi{}class eI extends a.imx.ExchangesApi{}class eC extends a.imx.MintsApi{}class eP extends a.imx.MetadataApi{}class eO extends a.imx.MetadataRefreshesApi{}class eN extends a.imx.NftCheckoutPrimaryApi{}class ej extends a.imx.OrdersApi{}class eB extends a.imx.PrimarySalesApi{}class eL extends a.imx.ProjectsApi{}class eD extends a.imx.TokensApi{}class eU extends a.imx.TradesApi{}class eF extends a.imx.TransfersApi{}class eq extends a.imx.UsersApi{}class ez extends a.imx.WithdrawalsApi{}let{MetadataSchemaRequestTypeEnum:eK}=a.imx},{c745b84b96ec5443:"2MMCE","@imtbl/generated-clients":"2eu25","@imtbl/config":"ed8SG",axios:"jhAcT","@ethersproject/keccak256":"eWtzg","@ethersproject/strings":"edSy2","bn.js":"lXPno","enc-utils":"hJwty",ethers:"8wpcu","@ethersproject/bytes":"19SwW","hash.js":"2Tlxk",elliptic:"gHKeo","ethereumjs-wallet":"3EQrb",assert:"aeMhE","@ethersproject/abstract-signer":!1,"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],ed8SG:[function(e,t,r){var n,i,a,s,o=e("@parcel/transformer-js/src/esmodule-helpers.js");o.defineInteropFlag(r),o.export(r,"Environment",()=>a),o.export(r,"ImmutableConfiguration",()=>f),o.export(r,"KeyHeaders",()=>s),o.export(r,"addKeysToHeadersOverride",()=>u);var c=e("@imtbl/metrics");(n=a||(a={})).PRODUCTION="production",n.SANDBOX="sandbox",(i=s||(s={})).API_KEY="x-immutable-api-key",i.PUBLISHABLE_KEY="x-immutable-publishable-key",i.RATE_LIMITING_KEY="x-api-key";class f{environment;rateLimitingKey;apiKey;publishableKey;constructor(e){this.environment=e.environment,this.publishableKey=e.publishableKey,this.apiKey=e.apiKey,this.rateLimitingKey=e.rateLimitingKey,(0,c.setEnvironment)(e.environment),(0,c.track)("config","created_imtbl_config")}}let u=(e,t)=>{if(!e||!e.apiKey&&!e.publishableKey&&!e.rateLimitingKey)return t;let r={};return(e.apiKey&&(r[s.API_KEY]=e.apiKey),e.publishableKey&&(r[s.PUBLISHABLE_KEY]=e.publishableKey,(0,c.setPublishableApiKey)(e.publishableKey)),e.rateLimitingKey&&(r[s.RATE_LIMITING_KEY]=e.rateLimitingKey),t&&t.headers)?{...t,headers:{...r,...t.headers}}:{...t,headers:r}}},{"@imtbl/metrics":"dO0KB","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],eWtzg:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"keccak256",()=>o);"use strict";var i=e("js-sha3"),a=n.interopDefault(i),s=e("@ethersproject/bytes");function o(e){return"0x"+(0,a.default).keccak_256((0,s.arrayify)(e))}},{"js-sha3":"l9ad0","@ethersproject/bytes":"19SwW","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],l9ad0:[function(e,t,r){var n=e("5defb539e98cbde3"),i=arguments[3];!function(){"use strict";var e="input is invalid type",r="object"==typeof window,a=r?window:{};a.JS_SHA3_NO_WINDOW&&(r=!1);var s=!r&&"object"==typeof self;!a.JS_SHA3_NO_NODE_JS&&"object"==typeof n&&n.versions&&n.versions.node?a=i:s&&(a=self);var o=!a.JS_SHA3_NO_COMMON_JS&&t.exports,c="function"==typeof define&&define.amd,f=!a.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,u="0123456789abcdef".split(""),d=[4,1024,262144,67108864],l=[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],p=[224,256,384,512],m=[128,256],b=["hex","buffer","arrayBuffer","array","digest"],g={128:168,256:136};(a.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),f&&(a.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 y=function(e,t,r){return function(n){return new O(e,t,e).update(n)[r]()}},v=function(e,t,r){return function(n,i){return new O(e,t,i).update(n)[r]()}},w=function(e,t,r){return function(t,n,i,a){return S["cshake"+e].update(t,n,i,a)[r]()}},_=function(e,t,r){return function(t,n,i,a){return S["kmac"+e].update(t,n,i,a)[r]()}},E=function(e,t,r,n){for(var i=0;i>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){O.call(this,e,t,r)}O.prototype.update=function(t){if(this.finalized)throw Error("finalize already called");var r,n=typeof t;if("string"!==n){if("object"===n){if(null===t)throw Error(e);if(f&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!f||!ArrayBuffer.isView(t)))throw Error(e)}else throw Error(e);r=!0}for(var i,a,s=this.blocks,o=this.byteCount,c=t.length,u=this.blockCount,d=0,h=this.s;d>2]|=t[d]<>2]|=a<>2]|=(192|a>>6)<=57344?s[i>>2]|=(224|a>>12)<>2]|=(240|a>>18)<>2]|=(128|a>>12&63)<>2]|=(128|a>>6&63)<>2]|=(128|63&a)<=o){for(this.start=i-o,this.block=s[u],i=0;i>=8,r=255&e;r>0;)i.unshift(r),e>>=8,r=255&e,++n;return t?i.push(n):i.unshift(n),this.update(i),i.length},O.prototype.encodeString=function(t){var r,n=typeof t;if("string"!==n){if("object"===n){if(null===t)throw Error(e);if(f&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!f||!ArrayBuffer.isView(t)))throw Error(e)}else throw Error(e);r=!0}var i=0,a=t.length;if(r)i=a;else for(var s=0;s=57344?i+=3:(o=65536+((1023&o)<<10|1023&t.charCodeAt(++s)),i+=4)}return i+=this.encode(8*i),this.update(t),i},O.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(t=1,e[0]=e[r];t>4&15]+u[15&e]+u[e>>12&15]+u[e>>8&15]+u[e>>20&15]+u[e>>16&15]+u[e>>28&15]+u[e>>24&15];s%t==0&&(j(r),a=0)}return i&&(o+=u[(e=r[a])>>4&15]+u[15&e],i>1&&(o+=u[e>>12&15]+u[e>>8&15]),i>2&&(o+=u[e>>20&15]+u[e>>16&15])),o},O.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,a=0,s=0,o=this.outputBits>>3;e=new ArrayBuffer(i?n+1<<2:o);for(var c=new Uint32Array(e);s>8&255,c[e+2]=t>>16&255,c[e+3]=t>>24&255;o%r==0&&j(n)}return a&&(e=o<<2,t=n[s],c[e]=255&t,a>1&&(c[e+1]=t>>8&255),a>2&&(c[e+2]=t>>16&255)),c},N.prototype=new O,N.prototype.finalize=function(){return this.encode(this.outputBits,!0),O.prototype.finalize.call(this)};var j=function(e){var t,r,n,i,a,s,o,c,f,u,d,l,p,m,b,g,y,v,w,_,E,A,M,S,x,T,k,R,I,C,P,O,N,j,B,L,D,U,F,q,z,K,H,V,W,G,J,Z,$,X,Y,Q,ee,et,er,en,ei,ea,es,eo,ec,ef,eu;for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],a=e[1]^e[11]^e[21]^e[31]^e[41],s=e[2]^e[12]^e[22]^e[32]^e[42],o=e[3]^e[13]^e[23]^e[33]^e[43],c=e[4]^e[14]^e[24]^e[34]^e[44],f=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],l=e[8]^e[18]^e[28]^e[38]^e[48],p=e[9]^e[19]^e[29]^e[39]^e[49],t=l^(s<<1|o>>>31),r=p^(o<<1|s>>>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=i^(c<<1|f>>>31),r=a^(f<<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=s^(u<<1|d>>>31),r=o^(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^(l<<1|p>>>31),r=f^(p<<1|l>>>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^(i<<1|a>>>31),r=d^(a<<1|i>>>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,m=e[0],b=e[1],G=e[11]<<4|e[10]>>>28,J=e[10]<<4|e[11]>>>28,R=e[20]<<3|e[21]>>>29,I=e[21]<<3|e[20]>>>29,eo=e[31]<<9|e[30]>>>23,ec=e[30]<<9|e[31]>>>23,K=e[40]<<18|e[41]>>>14,H=e[41]<<18|e[40]>>>14,j=e[2]<<1|e[3]>>>31,B=e[3]<<1|e[2]>>>31,g=e[13]<<12|e[12]>>>20,y=e[12]<<12|e[13]>>>20,Z=e[22]<<10|e[23]>>>22,$=e[23]<<10|e[22]>>>22,C=e[33]<<13|e[32]>>>19,P=e[32]<<13|e[33]>>>19,ef=e[42]<<2|e[43]>>>30,eu=e[43]<<2|e[42]>>>30,et=e[5]<<30|e[4]>>>2,er=e[4]<<30|e[5]>>>2,L=e[14]<<6|e[15]>>>26,D=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,X=e[34]<<15|e[35]>>>17,Y=e[35]<<15|e[34]>>>17,O=e[45]<<29|e[44]>>>3,N=e[44]<<29|e[45]>>>3,S=e[6]<<28|e[7]>>>4,x=e[7]<<28|e[6]>>>4,en=e[17]<<23|e[16]>>>9,ei=e[16]<<23|e[17]>>>9,U=e[26]<<25|e[27]>>>7,F=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,E=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,T=e[18]<<20|e[19]>>>12,k=e[19]<<20|e[18]>>>12,ea=e[29]<<7|e[28]>>>25,es=e[28]<<7|e[29]>>>25,q=e[38]<<8|e[39]>>>24,z=e[39]<<8|e[38]>>>24,A=e[48]<<14|e[49]>>>18,M=e[49]<<14|e[48]>>>18,e[0]=m^~g&v,e[1]=b^~y&w,e[10]=S^~T&R,e[11]=x^~k&I,e[20]=j^~L&U,e[21]=B^~D&F,e[30]=V^~G&Z,e[31]=W^~J&$,e[40]=et^~en&ea,e[41]=er^~ei&es,e[2]=g^~v&_,e[3]=y^~w&E,e[12]=T^~R&C,e[13]=k^~I&P,e[22]=L^~U&q,e[23]=D^~F&z,e[32]=G^~Z&X,e[33]=J^~$&Y,e[42]=en^~ea&eo,e[43]=ei^~es&ec,e[4]=v^~_&A,e[5]=w^~E&M,e[14]=R^~C&O,e[15]=I^~P&N,e[24]=U^~q&K,e[25]=F^~z&H,e[34]=Z^~X&Q,e[35]=$^~Y&ee,e[44]=ea^~eo&ef,e[45]=es^~ec&eu,e[6]=_^~A&m,e[7]=E^~M&b,e[16]=C^~O&S,e[17]=P^~N&x,e[26]=q^~K&j,e[27]=z^~H&B,e[36]=X^~Q&V,e[37]=Y^~ee&W,e[46]=eo^~ef&et,e[47]=ec^~eu&er,e[8]=A^~m&g,e[9]=M^~b&y,e[18]=O^~S&T,e[19]=N^~x&k,e[28]=K^~j&L,e[29]=H^~B&D,e[38]=Q^~V&G,e[39]=ee^~W&J,e[48]=ef^~et&en,e[49]=eu^~er&ei,e[0]^=h[n],e[1]^=h[n+1]};if(o)t.exports=S;else{for(T=0;Tf),n.export(r,"isBytes",()=>d),n.export(r,"arrayify",()=>l),n.export(r,"concat",()=>h),n.export(r,"stripZeros",()=>p),n.export(r,"zeroPad",()=>m),n.export(r,"isHexString",()=>b),n.export(r,"hexlify",()=>y),n.export(r,"hexDataLength",()=>v),n.export(r,"hexDataSlice",()=>w),n.export(r,"hexConcat",()=>_),n.export(r,"hexValue",()=>E),n.export(r,"hexStripZeros",()=>A),n.export(r,"hexZeroPad",()=>M),n.export(r,"splitSignature",()=>S),n.export(r,"joinSignature",()=>x);"use strict";var i=e("@ethersproject/logger"),a=e("./_version");let s=new i.Logger(a.version);function o(e){return!!e.toHexString}function c(e){return e.slice||(e.slice=function(){let t=Array.prototype.slice.call(arguments);return c(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function f(e){return b(e)&&!(e.length%2)||d(e)}function u(e){return"number"==typeof e&&e==e&&e%1==0}function d(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e||!u(e.length)||e.length<0)return!1;for(let t=0;t=256)return!1}return!0}function l(e,t){if(t||(t={}),"number"==typeof e){s.checkSafeUint53(e,"invalid arrayify value");let t=[];for(;e;)t.unshift(255&e),e=parseInt(String(e/256));return 0===t.length&&t.push(0),c(new Uint8Array(t))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),o(e)&&(e=e.toHexString()),b(e)){let r=e.substring(2);r.length%2&&("left"===t.hexPad?r="0"+r:"right"===t.hexPad?r+="0":s.throwArgumentError("hex data is odd-length","value",e));let n=[];for(let e=0;el(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),c(n)}function p(e){let t=l(e);if(0===t.length)return t;let r=0;for(;rt&&s.throwArgumentError("value out of range","value",arguments[0]);let r=new Uint8Array(t);return r.set(e,t-e.length),c(r)}function b(e,t){return"string"==typeof e&&!!e.match(/^0x[0-9A-Fa-f]*$/)&&(!t||e.length===2+2*t)}let g="0123456789abcdef";function y(e,t){if(t||(t={}),"number"==typeof e){s.checkSafeUint53(e,"invalid hexlify value");let t="";for(;e;)t=g[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),o(e))return e.toHexString();if(b(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":s.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(d(e)){let t="0x";for(let r=0;r>4]+g[15&n]}return t}return s.throwArgumentError("invalid hexlify value","value",e)}function v(e){if("string"!=typeof e)e=y(e);else if(!b(e)||e.length%2)return null;return(e.length-2)/2}function w(e,t,r){return("string"!=typeof e?e=y(e):(!b(e)||e.length%2)&&s.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=r)?"0x"+e.substring(t,2+2*r):"0x"+e.substring(t)}function _(e){let t="0x";return e.forEach(e=>{t+=y(e).substring(2)}),t}function E(e){let t=A(y(e,{hexPad:"left"}));return"0x"===t?"0x0":t}function A(e){"string"!=typeof e&&(e=y(e)),b(e)||s.throwArgumentError("invalid hex string","value",e),e=e.substring(2);let t=0;for(;t2*t+2&&s.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function S(e){let t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(f(e)){let r=l(e);64===r.length?(t.v=27+(r[32]>>7),r[32]&=127,t.r=y(r.slice(0,32)),t.s=y(r.slice(32,64))):65===r.length?(t.r=y(r.slice(0,32)),t.s=y(r.slice(32,64)),t.v=r[64]):s.throwArgumentError("invalid signature string","signature",e),t.v<27&&(0===t.v||1===t.v?t.v+=27:s.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(r[32]|=128),t._vs=y(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){let r=m(l(t._vs),32);t._vs=y(r);let n=r[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=n:t.recoveryParam!==n&&s.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),r[0]&=127;let i=y(r);null==t.s?t.s=i:t.s!==i&&s.throwArgumentError("signature v mismatch _vs","signature",e)}if(null==t.recoveryParam)null==t.v?s.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{let r=0===t.v||1===t.v?t.v:1-t.v%2;t.recoveryParam!==r&&s.throwArgumentError("signature recoveryParam mismatch v","signature",e)}null!=t.r&&b(t.r)?t.r=M(t.r,32):s.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&b(t.s)?t.s=M(t.s,32):s.throwArgumentError("signature missing or invalid s","signature",e);let r=l(t.s);r[0]>=128&&s.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(r[0]|=128);let n=y(r);t._vs&&(b(t._vs)||s.throwArgumentError("signature invalid _vs","signature",e),t._vs=M(t._vs,32)),null==t._vs?t._vs=n:t._vs!==n&&s.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}function x(e){return y(h([(e=S(e)).r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}},{"@ethersproject/logger":"6NWvR","./_version":"gnsK7","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"6NWvR":[function(e,t,r){var n,i,a,s,o=e("@parcel/transformer-js/src/esmodule-helpers.js");o.defineInteropFlag(r),o.export(r,"LogLevel",()=>a),o.export(r,"ErrorCode",()=>s),o.export(r,"Logger",()=>b);"use strict";var c=e("./_version");let f=!1,u=!1,d={debug:1,default:2,info:2,warning:3,error:4,off:5},l=2,h=null,p=function(){try{let e=[];if(["NFD","NFC","NFKD","NFKC"].forEach(t=>{try{if("test"!=="test".normalize(t))throw Error("bad normalize")}catch(r){e.push(t)}}),e.length)throw Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(e){return e.message}return null}();(n=a||(a={})).DEBUG="DEBUG",n.INFO="INFO",n.WARNING="WARNING",n.ERROR="ERROR",n.OFF="OFF",(i=s||(s={})).UNKNOWN_ERROR="UNKNOWN_ERROR",i.NOT_IMPLEMENTED="NOT_IMPLEMENTED",i.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",i.NETWORK_ERROR="NETWORK_ERROR",i.SERVER_ERROR="SERVER_ERROR",i.TIMEOUT="TIMEOUT",i.BUFFER_OVERRUN="BUFFER_OVERRUN",i.NUMERIC_FAULT="NUMERIC_FAULT",i.MISSING_NEW="MISSING_NEW",i.INVALID_ARGUMENT="INVALID_ARGUMENT",i.MISSING_ARGUMENT="MISSING_ARGUMENT",i.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",i.CALL_EXCEPTION="CALL_EXCEPTION",i.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",i.NONCE_EXPIRED="NONCE_EXPIRED",i.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",i.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",i.TRANSACTION_REPLACED="TRANSACTION_REPLACED",i.ACTION_REJECTED="ACTION_REJECTED";let m="0123456789abcdef";class b{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){let r=e.toLowerCase();null==d[r]&&this.throwArgumentError("invalid log level name","logLevel",e),l>d[r]||console.log.apply(console,t)}debug(...e){this._log(b.levels.DEBUG,e)}info(...e){this._log(b.levels.INFO,e)}warn(...e){this._log(b.levels.WARNING,e)}makeError(e,t,r){if(u)return this.makeError("censored error",t,{});t||(t=b.errors.UNKNOWN_ERROR),r||(r={});let n=[];Object.keys(r).forEach(e=>{let t=r[e];try{if(t instanceof Uint8Array){let r="";for(let e=0;e>4]+m[15&t[e]];n.push(e+"=Uint8Array(0x"+r+")")}else n.push(e+"="+JSON.stringify(t))}catch(t){n.push(e+"="+JSON.stringify(r[e].toString()))}}),n.push(`code=${t}`),n.push(`version=${this.version}`);let i=e,a="";switch(t){case s.NUMERIC_FAULT:{a="NUMERIC_FAULT";let t=e;switch(t){case"overflow":case"underflow":case"division-by-zero":a+="-"+t;break;case"negative-power":case"negative-width":a+="-unsupported";break;case"unbound-bitwise-result":a+="-unbound-result"}break}case s.CALL_EXCEPTION:case s.INSUFFICIENT_FUNDS:case s.MISSING_NEW:case s.NONCE_EXPIRED:case s.REPLACEMENT_UNDERPRICED:case s.TRANSACTION_REPLACED:case s.UNPREDICTABLE_GAS_LIMIT:a=t}a&&(e+=" [ See: https://links.ethers.org/v5-errors-"+a+" ]"),n.length&&(e+=" ("+n.join(", ")+")");let o=Error(e);return o.reason=i,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,b.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"),p&&this.throwError("platform missing String.prototype.normalize",b.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:p})}checkSafeUint53(e,t){"number"==typeof e&&(null==t&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,b.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,b.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,r){r=r?": "+r:"",et&&this.throwError("too many arguments"+r,b.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){(e===Object||null==e)&&this.throwError("missing new",b.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",b.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||null==e)&&this.throwError("missing new",b.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return h||(h=new b(c.version)),h}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",b.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),f){if(!e)return;this.globalLogger().throwError("error censorship permanent",b.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}u=!!e,f=!!t}static setLogLevel(e){let t=d[e.toLowerCase()];if(null==t){b.globalLogger().warn("invalid log level - "+e);return}l=t}static from(e){return new b(e)}}b.errors=s,b.levels=a},{"./_version":"aDnFn","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],aDnFn:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="logger/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gnsK7:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="bytes/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],edSy2:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"_toEscapedUtf8String",()=>s._toEscapedUtf8String),n.export(r,"toUtf8Bytes",()=>s.toUtf8Bytes),n.export(r,"toUtf8CodePoints",()=>s.toUtf8CodePoints),n.export(r,"toUtf8String",()=>s.toUtf8String),n.export(r,"Utf8ErrorFuncs",()=>s.Utf8ErrorFuncs),n.export(r,"Utf8ErrorReason",()=>s.Utf8ErrorReason),n.export(r,"UnicodeNormalizationForm",()=>s.UnicodeNormalizationForm),n.export(r,"formatBytes32String",()=>i.formatBytes32String),n.export(r,"parseBytes32String",()=>i.parseBytes32String),n.export(r,"nameprep",()=>a.nameprep);"use strict";var i=e("./bytes32"),a=e("./idna"),s=e("./utf8")},{"./bytes32":"5F91f","./idna":"kkxaO","./utf8":"4E82p","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"5F91f":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"formatBytes32String",()=>o),n.export(r,"parseBytes32String",()=>c);"use strict";var i=e("@ethersproject/constants"),a=e("@ethersproject/bytes"),s=e("./utf8");function o(e){let t=(0,s.toUtf8Bytes)(e);if(t.length>31)throw Error("bytes32 string must be less than 32 bytes");return(0,a.hexlify)((0,a.concat)([t,i.HashZero]).slice(0,32))}function c(e){let t=(0,a.arrayify)(e);if(32!==t.length)throw Error("invalid bytes32 - not 32 bytes long");if(0!==t[31])throw Error("invalid bytes32 string - no null terminator");let r=31;for(;0===t[r-1];)r--;return(0,s.toUtf8String)(t.slice(0,r))}},{"@ethersproject/constants":"cSsuf","@ethersproject/bytes":"19SwW","./utf8":"4E82p","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],cSsuf:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"AddressZero",()=>i.AddressZero),n.export(r,"NegativeOne",()=>a.NegativeOne),n.export(r,"Zero",()=>a.Zero),n.export(r,"One",()=>a.One),n.export(r,"Two",()=>a.Two),n.export(r,"WeiPerEther",()=>a.WeiPerEther),n.export(r,"MaxUint256",()=>a.MaxUint256),n.export(r,"MinInt256",()=>a.MinInt256),n.export(r,"MaxInt256",()=>a.MaxInt256),n.export(r,"HashZero",()=>s.HashZero),n.export(r,"EtherSymbol",()=>o.EtherSymbol);"use strict";var i=e("./addresses"),a=e("./bignumbers"),s=e("./hashes"),o=e("./strings")},{"./addresses":"3I8he","./bignumbers":"4GaKw","./hashes":"iRbHe","./strings":"ex5EG","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"3I8he":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"AddressZero",()=>i);let i="0x0000000000000000000000000000000000000000"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"4GaKw":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"NegativeOne",()=>a),n.export(r,"Zero",()=>s),n.export(r,"One",()=>o),n.export(r,"Two",()=>c),n.export(r,"WeiPerEther",()=>f),n.export(r,"MaxUint256",()=>u),n.export(r,"MinInt256",()=>d),n.export(r,"MaxInt256",()=>l);var i=e("@ethersproject/bignumber");let a=(0,i.BigNumber).from(-1),s=(0,i.BigNumber).from(0),o=(0,i.BigNumber).from(1),c=(0,i.BigNumber).from(2),f=(0,i.BigNumber).from("1000000000000000000"),u=(0,i.BigNumber).from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),d=(0,i.BigNumber).from("-0x8000000000000000000000000000000000000000000000000000000000000000"),l=(0,i.BigNumber).from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")},{"@ethersproject/bignumber":"hIcBX","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],hIcBX:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"BigNumber",()=>i.BigNumber),n.export(r,"formatFixed",()=>a.formatFixed),n.export(r,"FixedFormat",()=>a.FixedFormat),n.export(r,"FixedNumber",()=>a.FixedNumber),n.export(r,"parseFixed",()=>a.parseFixed),n.export(r,"_base16To36",()=>i._base16To36),n.export(r,"_base36To16",()=>i._base36To16);var i=e("./bignumber"),a=e("./fixednumber")},{"./bignumber":"ha6R2","./fixednumber":"7GQTq","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],ha6R2:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"isBigNumberish",()=>l),n.export(r,"BigNumber",()=>p),n.export(r,"_base36To16",()=>v),n.export(r,"_base16To36",()=>w);"use strict";var i=e("bn.js"),a=n.interopDefault(i),s=e("@ethersproject/bytes"),o=e("@ethersproject/logger"),c=e("./_version"),f=a.default.BN;let u=new o.Logger(c.version),d={};function l(e){return null!=e&&(p.isBigNumber(e)||"number"==typeof e&&e%1==0||"string"==typeof e&&!!e.match(/^-?[0-9]+$/)||(0,s.isHexString)(e)||"bigint"==typeof e||(0,s.isBytes)(e))}let h=!1;class p{constructor(e,t){e!==d&&u.throwError("cannot call constructor directly; use BigNumber.from",o.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return b(g(this).fromTwos(e))}toTwos(e){return b(g(this).toTwos(e))}abs(){return"-"===this._hex[0]?p.from(this._hex.substring(1)):this}add(e){return b(g(this).add(g(e)))}sub(e){return b(g(this).sub(g(e)))}div(e){let t=p.from(e);return t.isZero()&&y("division-by-zero","div"),b(g(this).div(g(e)))}mul(e){return b(g(this).mul(g(e)))}mod(e){let t=g(e);return t.isNeg()&&y("division-by-zero","mod"),b(g(this).umod(t))}pow(e){let t=g(e);return t.isNeg()&&y("negative-power","pow"),b(g(this).pow(t))}and(e){let t=g(e);return(this.isNegative()||t.isNeg())&&y("unbound-bitwise-result","and"),b(g(this).and(t))}or(e){let t=g(e);return(this.isNegative()||t.isNeg())&&y("unbound-bitwise-result","or"),b(g(this).or(t))}xor(e){let t=g(e);return(this.isNegative()||t.isNeg())&&y("unbound-bitwise-result","xor"),b(g(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&y("negative-width","mask"),b(g(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&y("negative-width","shl"),b(g(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&y("negative-width","shr"),b(g(this).shrn(e))}eq(e){return g(this).eq(g(e))}lt(e){return g(this).lt(g(e))}lte(e){return g(this).lte(g(e))}gt(e){return g(this).gt(g(e))}gte(e){return g(this).gte(g(e))}isNegative(){return"-"===this._hex[0]}isZero(){return g(this).isZero()}toNumber(){try{return g(this).toNumber()}catch(e){y("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(e){}return u.throwError("this platform does not support BigInt",o.Logger.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?h||(h=!0,u.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?u.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",o.Logger.errors.UNEXPECTED_ARGUMENT,{}):u.throwError("BigNumber.toString does not accept parameters",o.Logger.errors.UNEXPECTED_ARGUMENT,{})),g(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof p)return e;if("string"==typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new p(d,m(e)):e.match(/^-?[0-9]+$/)?new p(d,m(new f(e))):u.throwArgumentError("invalid BigNumber string","value",e);if("number"==typeof e)return e%1&&y("underflow","BigNumber.from",e),(e>=9007199254740991||e<=-9007199254740991)&&y("overflow","BigNumber.from",e),p.from(String(e));if("bigint"==typeof e)return p.from(e.toString());if((0,s.isBytes)(e))return p.from((0,s.hexlify)(e));if(e){if(e.toHexString){let t=e.toHexString();if("string"==typeof t)return p.from(t)}else{let t=e._hex;if(null==t&&"BigNumber"===e.type&&(t=e.hex),"string"==typeof t&&((0,s.isHexString)(t)||"-"===t[0]&&(0,s.isHexString)(t.substring(1))))return p.from(t)}}return u.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!!(e&&e._isBigNumber)}}function m(e){if("string"!=typeof e)return m(e.toString(16));if("-"===e[0])return("-"===(e=e.substring(1))[0]&&u.throwArgumentError("invalid hex","value",e),"0x00"===(e=m(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 b(e){return p.from(m(e))}function g(e){let t=p.from(e).toHexString();return"-"===t[0]?new f("-"+t.substring(3),16):new f(t.substring(2),16)}function y(e,t,r){let n={fault:e,operation:t};return null!=r&&(n.value=r),u.throwError(e,o.Logger.errors.NUMERIC_FAULT,n)}function v(e){return new f(e,36).toString(16)}function w(e){return new f(e,16).toString(36)}},{"bn.js":"lXPno","@ethersproject/bytes":"19SwW","@ethersproject/logger":"6NWvR","./_version":"FsnUp","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lXPno:[function(e,t,r){!function(t,r){"use strict";function n(e,t){if(!e)throw Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.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"))}"object"==typeof t?t.exports=a:r.BN=a,a.BN=a,a.wordSize=26;try{d="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("bd440367abe2ded7").Buffer}catch(e){}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 o(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function c(e,t,r,i){for(var a=0,s=0,o=Math.min(e.length,r),c=t;c=49?f-49+10:f>=17?f-17+10:f,n(f>=0&&s0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;s-=3)a=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[i]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,i++);else if("le"===r)for(s=0,i=0;s>>26-o&67108863,(o+=24)>=26&&(o-=26,i++);return this._strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n,i=0;i=t;i-=2)n=o(e,t,i)<=18?(a-=18,s+=1,this.words[s]|=n>>>26):a+=8;else for(i=(e.length-t)%2==0?t+1:t;i=18?(a-=18,s+=1,this.words[s]|=n>>>26):a+=8;this._strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var a=e.length-r,s=a%n,o=Math.min(a,a-s)+r,f=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch(e){a.prototype.inspect=u}else a.prototype.inspect=u;function u(){return(this.red?""}var d,l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function m(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],a=0|t.words[0],s=i*a,o=67108863&s,c=s/67108864|0;r.words[0]=o;for(var f=1;f>>26,d=67108863&c,l=Math.min(f,t.length-1),h=Math.max(0,f-e.length+1);h<=l;h++){var p=f-h|0;u+=(s=(i=0|e.words[p])*(a=0|t.words[h])+d)/67108864|0,d=67108863&s}r.words[f]=0|d,c=0|u}return 0!==c?r.words[f]=0|c:r.length--,r._strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,i=0,a=0,s=0;s>>24-i&16777215,(i+=2)>=26&&(i-=26,s--),r=0!==a||s!==this.length-1?l[6-c.length]+c+r:c+r}for(0!==a&&(r=a.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 f=h[e],u=p[e];r="";var d=this.clone();for(d.negative=0;!d.isZero();){var m=d.modrn(u).toString(e);r=(d=d.idivn(u)).isZero()?m+r:l[f-m.length]+m+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")},a.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},a.prototype.toJSON=function(){return this.toString(16,2)},d&&(a.prototype.toBuffer=function(e,t){return this.toArrayLike(d,e,t)}),a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),a=r||Math.max(1,i);n(i<=a,"byte array longer than desired length"),n(a>0,"Requested array length <= 0");var s=e.allocUnsafe?e.allocUnsafe(a):new e(a);return this["_toArrayLike"+("le"===t?"LE":"BE")](s,i),s},a.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,a=0;i>8&255),r>16&255),6===a?(r>24&255),n=0,a=0):(n=s>>>24,a+=2)}if(r=0&&(e[r--]=s>>8&255),r>=0&&(e[r--]=s>>16&255),6===a?(r>=0&&(e[r--]=s>>24&255),n=0,a=0):(n=s>>>24,a+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.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},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.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)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,a=0;a>>26;for(;0!==i&&a>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var a=0,s=0;s>26,this.words[s]=67108863&n;for(;0!==a&&s>26,this.words[s]=67108863&n;if(0===a&&s>>13,h=0|s[1],p=8191&h,m=h>>>13,b=0|s[2],g=8191&b,y=b>>>13,v=0|s[3],w=8191&v,_=v>>>13,E=0|s[4],A=8191&E,M=E>>>13,S=0|s[5],x=8191&S,T=S>>>13,k=0|s[6],R=8191&k,I=k>>>13,C=0|s[7],P=8191&C,O=C>>>13,N=0|s[8],j=8191&N,B=N>>>13,L=0|s[9],D=8191&L,U=L>>>13,F=0|o[0],q=8191&F,z=F>>>13,K=0|o[1],H=8191&K,V=K>>>13,W=0|o[2],G=8191&W,J=W>>>13,Z=0|o[3],$=8191&Z,X=Z>>>13,Y=0|o[4],Q=8191&Y,ee=Y>>>13,et=0|o[5],er=8191&et,en=et>>>13,ei=0|o[6],ea=8191&ei,es=ei>>>13,eo=0|o[7],ec=8191&eo,ef=eo>>>13,eu=0|o[8],ed=8191&eu,el=eu>>>13,eh=0|o[9],ep=8191&eh,em=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var eb=(f+(n=Math.imul(d,q))|0)+((8191&(i=(i=Math.imul(d,z))+Math.imul(l,q)|0))<<13)|0;f=((a=Math.imul(l,z))+(i>>>13)|0)+(eb>>>26)|0,eb&=67108863,n=Math.imul(p,q),i=(i=Math.imul(p,z))+Math.imul(m,q)|0,a=Math.imul(m,z);var eg=(f+(n=n+Math.imul(d,H)|0)|0)+((8191&(i=(i=i+Math.imul(d,V)|0)+Math.imul(l,H)|0))<<13)|0;f=((a=a+Math.imul(l,V)|0)+(i>>>13)|0)+(eg>>>26)|0,eg&=67108863,n=Math.imul(g,q),i=(i=Math.imul(g,z))+Math.imul(y,q)|0,a=Math.imul(y,z),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,H)|0,a=a+Math.imul(m,V)|0;var ey=(f+(n=n+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,J)|0)+Math.imul(l,G)|0))<<13)|0;f=((a=a+Math.imul(l,J)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=67108863,n=Math.imul(w,q),i=(i=Math.imul(w,z))+Math.imul(_,q)|0,a=Math.imul(_,z),n=n+Math.imul(g,H)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,V)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,G)|0,a=a+Math.imul(m,J)|0;var ev=(f+(n=n+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(l,$)|0))<<13)|0;f=((a=a+Math.imul(l,X)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=67108863,n=Math.imul(A,q),i=(i=Math.imul(A,z))+Math.imul(M,q)|0,a=Math.imul(M,z),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,V)|0,n=n+Math.imul(g,G)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,J)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,$)|0,a=a+Math.imul(m,X)|0;var ew=(f+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(l,Q)|0))<<13)|0;f=((a=a+Math.imul(l,ee)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=67108863,n=Math.imul(x,q),i=(i=Math.imul(x,z))+Math.imul(T,q)|0,a=Math.imul(T,z),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(M,H)|0,a=a+Math.imul(M,V)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,G)|0,a=a+Math.imul(_,J)|0,n=n+Math.imul(g,$)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(y,$)|0,a=a+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,a=a+Math.imul(m,ee)|0;var e_=(f+(n=n+Math.imul(d,er)|0)|0)+((8191&(i=(i=i+Math.imul(d,en)|0)+Math.imul(l,er)|0))<<13)|0;f=((a=a+Math.imul(l,en)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,z))+Math.imul(I,q)|0,a=Math.imul(I,z),n=n+Math.imul(x,H)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(T,H)|0,a=a+Math.imul(T,V)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(M,G)|0,a=a+Math.imul(M,J)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(_,$)|0,a=a+Math.imul(_,X)|0,n=n+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(y,Q)|0,a=a+Math.imul(y,ee)|0,n=n+Math.imul(p,er)|0,i=(i=i+Math.imul(p,en)|0)+Math.imul(m,er)|0,a=a+Math.imul(m,en)|0;var eE=(f+(n=n+Math.imul(d,ea)|0)|0)+((8191&(i=(i=i+Math.imul(d,es)|0)+Math.imul(l,ea)|0))<<13)|0;f=((a=a+Math.imul(l,es)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=67108863,n=Math.imul(P,q),i=(i=Math.imul(P,z))+Math.imul(O,q)|0,a=Math.imul(O,z),n=n+Math.imul(R,H)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,V)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(T,G)|0,a=a+Math.imul(T,J)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(M,$)|0,a=a+Math.imul(M,X)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,ee)|0,n=n+Math.imul(g,er)|0,i=(i=i+Math.imul(g,en)|0)+Math.imul(y,er)|0,a=a+Math.imul(y,en)|0,n=n+Math.imul(p,ea)|0,i=(i=i+Math.imul(p,es)|0)+Math.imul(m,ea)|0,a=a+Math.imul(m,es)|0;var eA=(f+(n=n+Math.imul(d,ec)|0)|0)+((8191&(i=(i=i+Math.imul(d,ef)|0)+Math.imul(l,ec)|0))<<13)|0;f=((a=a+Math.imul(l,ef)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=67108863,n=Math.imul(j,q),i=(i=Math.imul(j,z))+Math.imul(B,q)|0,a=Math.imul(B,z),n=n+Math.imul(P,H)|0,i=(i=i+Math.imul(P,V)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,V)|0,n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(I,G)|0,a=a+Math.imul(I,J)|0,n=n+Math.imul(x,$)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(T,$)|0,a=a+Math.imul(T,X)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(M,Q)|0,a=a+Math.imul(M,ee)|0,n=n+Math.imul(w,er)|0,i=(i=i+Math.imul(w,en)|0)+Math.imul(_,er)|0,a=a+Math.imul(_,en)|0,n=n+Math.imul(g,ea)|0,i=(i=i+Math.imul(g,es)|0)+Math.imul(y,ea)|0,a=a+Math.imul(y,es)|0,n=n+Math.imul(p,ec)|0,i=(i=i+Math.imul(p,ef)|0)+Math.imul(m,ec)|0,a=a+Math.imul(m,ef)|0;var eM=(f+(n=n+Math.imul(d,ed)|0)|0)+((8191&(i=(i=i+Math.imul(d,el)|0)+Math.imul(l,ed)|0))<<13)|0;f=((a=a+Math.imul(l,el)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,z))+Math.imul(U,q)|0,a=Math.imul(U,z),n=n+Math.imul(j,H)|0,i=(i=i+Math.imul(j,V)|0)+Math.imul(B,H)|0,a=a+Math.imul(B,V)|0,n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(O,G)|0,a=a+Math.imul(O,J)|0,n=n+Math.imul(R,$)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(I,$)|0,a=a+Math.imul(I,X)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(T,Q)|0,a=a+Math.imul(T,ee)|0,n=n+Math.imul(A,er)|0,i=(i=i+Math.imul(A,en)|0)+Math.imul(M,er)|0,a=a+Math.imul(M,en)|0,n=n+Math.imul(w,ea)|0,i=(i=i+Math.imul(w,es)|0)+Math.imul(_,ea)|0,a=a+Math.imul(_,es)|0,n=n+Math.imul(g,ec)|0,i=(i=i+Math.imul(g,ef)|0)+Math.imul(y,ec)|0,a=a+Math.imul(y,ef)|0,n=n+Math.imul(p,ed)|0,i=(i=i+Math.imul(p,el)|0)+Math.imul(m,ed)|0,a=a+Math.imul(m,el)|0;var eS=(f+(n=n+Math.imul(d,ep)|0)|0)+((8191&(i=(i=i+Math.imul(d,em)|0)+Math.imul(l,ep)|0))<<13)|0;f=((a=a+Math.imul(l,em)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=67108863,n=Math.imul(D,H),i=(i=Math.imul(D,V))+Math.imul(U,H)|0,a=Math.imul(U,V),n=n+Math.imul(j,G)|0,i=(i=i+Math.imul(j,J)|0)+Math.imul(B,G)|0,a=a+Math.imul(B,J)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(O,$)|0,a=a+Math.imul(O,X)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(I,Q)|0,a=a+Math.imul(I,ee)|0,n=n+Math.imul(x,er)|0,i=(i=i+Math.imul(x,en)|0)+Math.imul(T,er)|0,a=a+Math.imul(T,en)|0,n=n+Math.imul(A,ea)|0,i=(i=i+Math.imul(A,es)|0)+Math.imul(M,ea)|0,a=a+Math.imul(M,es)|0,n=n+Math.imul(w,ec)|0,i=(i=i+Math.imul(w,ef)|0)+Math.imul(_,ec)|0,a=a+Math.imul(_,ef)|0,n=n+Math.imul(g,ed)|0,i=(i=i+Math.imul(g,el)|0)+Math.imul(y,ed)|0,a=a+Math.imul(y,el)|0;var ex=(f+(n=n+Math.imul(p,ep)|0)|0)+((8191&(i=(i=i+Math.imul(p,em)|0)+Math.imul(m,ep)|0))<<13)|0;f=((a=a+Math.imul(m,em)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=67108863,n=Math.imul(D,G),i=(i=Math.imul(D,J))+Math.imul(U,G)|0,a=Math.imul(U,J),n=n+Math.imul(j,$)|0,i=(i=i+Math.imul(j,X)|0)+Math.imul(B,$)|0,a=a+Math.imul(B,X)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,n=n+Math.imul(R,er)|0,i=(i=i+Math.imul(R,en)|0)+Math.imul(I,er)|0,a=a+Math.imul(I,en)|0,n=n+Math.imul(x,ea)|0,i=(i=i+Math.imul(x,es)|0)+Math.imul(T,ea)|0,a=a+Math.imul(T,es)|0,n=n+Math.imul(A,ec)|0,i=(i=i+Math.imul(A,ef)|0)+Math.imul(M,ec)|0,a=a+Math.imul(M,ef)|0,n=n+Math.imul(w,ed)|0,i=(i=i+Math.imul(w,el)|0)+Math.imul(_,ed)|0,a=a+Math.imul(_,el)|0;var eT=(f+(n=n+Math.imul(g,ep)|0)|0)+((8191&(i=(i=i+Math.imul(g,em)|0)+Math.imul(y,ep)|0))<<13)|0;f=((a=a+Math.imul(y,em)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,X))+Math.imul(U,$)|0,a=Math.imul(U,X),n=n+Math.imul(j,Q)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(B,Q)|0,a=a+Math.imul(B,ee)|0,n=n+Math.imul(P,er)|0,i=(i=i+Math.imul(P,en)|0)+Math.imul(O,er)|0,a=a+Math.imul(O,en)|0,n=n+Math.imul(R,ea)|0,i=(i=i+Math.imul(R,es)|0)+Math.imul(I,ea)|0,a=a+Math.imul(I,es)|0,n=n+Math.imul(x,ec)|0,i=(i=i+Math.imul(x,ef)|0)+Math.imul(T,ec)|0,a=a+Math.imul(T,ef)|0,n=n+Math.imul(A,ed)|0,i=(i=i+Math.imul(A,el)|0)+Math.imul(M,ed)|0,a=a+Math.imul(M,el)|0;var ek=(f+(n=n+Math.imul(w,ep)|0)|0)+((8191&(i=(i=i+Math.imul(w,em)|0)+Math.imul(_,ep)|0))<<13)|0;f=((a=a+Math.imul(_,em)|0)+(i>>>13)|0)+(ek>>>26)|0,ek&=67108863,n=Math.imul(D,Q),i=(i=Math.imul(D,ee))+Math.imul(U,Q)|0,a=Math.imul(U,ee),n=n+Math.imul(j,er)|0,i=(i=i+Math.imul(j,en)|0)+Math.imul(B,er)|0,a=a+Math.imul(B,en)|0,n=n+Math.imul(P,ea)|0,i=(i=i+Math.imul(P,es)|0)+Math.imul(O,ea)|0,a=a+Math.imul(O,es)|0,n=n+Math.imul(R,ec)|0,i=(i=i+Math.imul(R,ef)|0)+Math.imul(I,ec)|0,a=a+Math.imul(I,ef)|0,n=n+Math.imul(x,ed)|0,i=(i=i+Math.imul(x,el)|0)+Math.imul(T,ed)|0,a=a+Math.imul(T,el)|0;var eR=(f+(n=n+Math.imul(A,ep)|0)|0)+((8191&(i=(i=i+Math.imul(A,em)|0)+Math.imul(M,ep)|0))<<13)|0;f=((a=a+Math.imul(M,em)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=67108863,n=Math.imul(D,er),i=(i=Math.imul(D,en))+Math.imul(U,er)|0,a=Math.imul(U,en),n=n+Math.imul(j,ea)|0,i=(i=i+Math.imul(j,es)|0)+Math.imul(B,ea)|0,a=a+Math.imul(B,es)|0,n=n+Math.imul(P,ec)|0,i=(i=i+Math.imul(P,ef)|0)+Math.imul(O,ec)|0,a=a+Math.imul(O,ef)|0,n=n+Math.imul(R,ed)|0,i=(i=i+Math.imul(R,el)|0)+Math.imul(I,ed)|0,a=a+Math.imul(I,el)|0;var eI=(f+(n=n+Math.imul(x,ep)|0)|0)+((8191&(i=(i=i+Math.imul(x,em)|0)+Math.imul(T,ep)|0))<<13)|0;f=((a=a+Math.imul(T,em)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=67108863,n=Math.imul(D,ea),i=(i=Math.imul(D,es))+Math.imul(U,ea)|0,a=Math.imul(U,es),n=n+Math.imul(j,ec)|0,i=(i=i+Math.imul(j,ef)|0)+Math.imul(B,ec)|0,a=a+Math.imul(B,ef)|0,n=n+Math.imul(P,ed)|0,i=(i=i+Math.imul(P,el)|0)+Math.imul(O,ed)|0,a=a+Math.imul(O,el)|0;var eC=(f+(n=n+Math.imul(R,ep)|0)|0)+((8191&(i=(i=i+Math.imul(R,em)|0)+Math.imul(I,ep)|0))<<13)|0;f=((a=a+Math.imul(I,em)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=67108863,n=Math.imul(D,ec),i=(i=Math.imul(D,ef))+Math.imul(U,ec)|0,a=Math.imul(U,ef),n=n+Math.imul(j,ed)|0,i=(i=i+Math.imul(j,el)|0)+Math.imul(B,ed)|0,a=a+Math.imul(B,el)|0;var eP=(f+(n=n+Math.imul(P,ep)|0)|0)+((8191&(i=(i=i+Math.imul(P,em)|0)+Math.imul(O,ep)|0))<<13)|0;f=((a=a+Math.imul(O,em)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=67108863,n=Math.imul(D,ed),i=(i=Math.imul(D,el))+Math.imul(U,ed)|0,a=Math.imul(U,el);var eO=(f+(n=n+Math.imul(j,ep)|0)|0)+((8191&(i=(i=i+Math.imul(j,em)|0)+Math.imul(B,ep)|0))<<13)|0;f=((a=a+Math.imul(B,em)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=67108863;var eN=(f+(n=Math.imul(D,ep))|0)+((8191&(i=(i=Math.imul(D,em))+Math.imul(U,ep)|0))<<13)|0;return f=((a=Math.imul(U,em))+(i>>>13)|0)+(eN>>>26)|0,eN&=67108863,c[0]=eb,c[1]=eg,c[2]=ey,c[3]=ev,c[4]=ew,c[5]=e_,c[6]=eE,c[7]=eA,c[8]=eM,c[9]=eS,c[10]=ex,c[11]=eT,c[12]=ek,c[13]=eR,c[14]=eI,c[15]=eC,c[16]=eP,c[17]=eO,c[18]=eN,0!==f&&(c[19]=f,r.length++),r};function g(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,a=0;a>>26)|0)>>>26,s&=67108863}r.words[a]=o,n=s,s=i}return 0!==n?r.words[a]=n:r.length--,r._strip()}function y(e,t){this.x=e,this.y=t}Math.imul||(b=m),a.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return 10===this.length&&10===e.length?b(this,e,t):n<63?m(this,e,t):g(this,e,t)},y.prototype.makeRBT=function(e){for(var t=Array(e),r=a.prototype._countBits(e)-1,n=0;n>=1;return n},y.prototype.permute=function(e,t,r,n,i,a){for(var s=0;s>>=1)i++;return 1<>>=13,r[2*s+1]=8191&a,a>>>=13;for(s=2*t;s>=26,r+=(a/67108864|0)+(s>>>26),this.words[i]=67108863&s}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>i&1}return t}(e);if(0===t.length)return new a(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,a=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var i,a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<s)for(this.length-=s,c=0;c=0&&(0!==f||c>=i);c--){var u=0|this.words[c];this.words[c]=f<<26-a|u>>>a,f=u&o}return r&&0!==f&&(r.words[r.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return!(this.length<=r)&&!!(this.words[r]&1<=0);var t=e%26,r=(e-t)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==t&&r++,this.length=Math.min(r,this.length),0!==t&&(this.words[this.length-1]&=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},a.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[i+r]=67108863&a}for(;i>26,this.words[i+r]=67108863&a;if(0===o)return this._strip();for(n(-1===o),o=0,i=0;i>26,this.words[i]=67108863&a;return this.negative=1,this._strip()},a.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),s=e,o=0|s.words[s.length-1];0!=(n=26-this._countBits(o))&&(s=s.ushln(n),i.iushln(n),o=0|s.words[s.length-1]);var c=i.length-s.length;if("mod"!==t){(r=new a(null)).length=c+1,r.words=Array(r.length);for(var f=0;f=0;d--){var l=(0|i.words[s.length+d])*67108864+(0|i.words[s.length+d-1]);for(l=Math.min(l/o|0,67108863),i._ishlnsubmul(s,l,d);0!==i.negative;)l--,i.negative=0,i._ishlnsubmul(s,1,d),i.isZero()||(i.negative^=1);r&&(r.words[d]=l)}return r&&r._strip(),i._strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},a.prototype.divmod=function(e,t,r){var i,s,o;return(n(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(i=o.div.neg()),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:i,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(i=o.div.neg()),{div:i,mod:o.mod}):(this.negative&e.negative)!=0?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:o.div,mod:s}):e.length>this.length||0>this.cmp(e)?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modrn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.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),i=e.andln(1),a=r.cmp(n);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=67108864%e,i=0,a=this.length-1;a>=0;a--)i=(r*i+(0|this.words[a]))%e;return t?-i:i},a.prototype.modn=function(e){return this.modrn(e)},a.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var a=(0|this.words[i])+67108864*r;this.words[i]=a/e|0,r=a%e}return this._strip(),t?this.ineg():this},a.prototype.divn=function(e){return this.clone().idivn(e)},a.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 i=new a(1),s=new a(0),o=new a(0),c=new a(1),f=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++f;for(var u=r.clone(),d=t.clone();!t.isZero();){for(var l=0,h=1;(t.words[0]&h)==0&&l<26;++l,h<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(u),s.isub(d)),i.iushrn(1),s.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(o.isOdd()||c.isOdd())&&(o.iadd(u),c.isub(d)),o.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(o),s.isub(c)):(r.isub(t),o.isub(i),c.isub(s))}return{a:o,b:c,gcd:r.iushln(f)}},a.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new a(1),o=new a(0),c=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var f=0,u=1;(r.words[0]&u)==0&&f<26;++f,u<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var d=0,l=1;(i.words[0]&l)==0&&d<26;++d,l<<=1);if(d>0)for(i.iushrn(d);d-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);r.cmp(i)>=0?(r.isub(i),s.isub(o)):(i.isub(r),o.isub(s))}return 0>(t=0===r.cmpn(1)?s:o).cmpn(0)&&t.iadd(e),t},a.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 i=t.cmp(r);if(i<0){var a=t;t=r,r=a}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new S(e)},a.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)},a.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function E(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=a._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 x(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var e=new a(null);return e.words=Array(Math.ceil(this.n/13)),e},w.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},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},i(_,w),_.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,i=a}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},_.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]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(v[e])return v[e];if("k256"===e)t=new _;else if("p224"===e)t=new E;else if("p192"===e)t=new A;else if("p25519"===e)t=new M;else throw Error("Unknown prime "+e);return v[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(f(e,e.umod(this.m)._forceRed(this)),e)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.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)},S.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},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.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 a(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);n(!i.isZero());var o=new a(1).toRed(this),c=o.redNeg(),f=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,f).cmp(c);)u.redIAdd(c);for(var d=this.pow(u,i),l=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=s;0!==h.cmp(o);){for(var m=h,b=0;0!==m.cmp(o);b++)m=m.redSqr();n(b=0;n--){for(var f=t.words[n],u=c-1;u>=0;u--){var d=f>>u&1;if(i!==r[0]&&(i=this.sqr(i)),0===d&&0===s){o=0;continue}s<<=1,s|=d,(4==++o||0===n&&0===u)&&(i=this.mul(i,r[s]),o=0,s=0)}c=26}return i},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new x(e)},i(x,S),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.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),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):0>i.cmpn(0)&&(s=i.iadd(this.m)),s._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)},{bd440367abe2ded7:"3eno3"}],"3eno3":[function(e,t,r){},{}],FsnUp:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="bignumber/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"7GQTq":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"formatFixed",()=>m),n.export(r,"parseFixed",()=>b),n.export(r,"FixedFormat",()=>g),n.export(r,"FixedNumber",()=>y);"use strict";var i=e("@ethersproject/bytes"),a=e("@ethersproject/logger"),s=e("./_version"),o=e("./bignumber");let c=new a.Logger(s.version),f={},u=(0,o.BigNumber).from(0),d=(0,o.BigNumber).from(-1);function l(e,t,r,n){let i={fault:t,operation:r};return void 0!==n&&(i.value=n),c.throwError(e,a.Logger.errors.NUMERIC_FAULT,i)}let h="0";for(;h.length<256;)h+=h;function p(e){if("number"!=typeof e)try{e=(0,o.BigNumber).from(e).toNumber()}catch(e){}return"number"==typeof e&&e>=0&&e<=256&&!(e%1)?"1"+h.substring(0,e):c.throwArgumentError("invalid decimal size","decimals",e)}function m(e,t){null==t&&(t=0);let r=p(t);e=(0,o.BigNumber).from(e);let n=e.lt(u);n&&(e=e.mul(d));let i=e.mod(r).toString();for(;i.length2&&c.throwArgumentError("too many decimal points","value",e);let a=i[0],s=i[1];for(a||(a="0"),s||(s="0");"0"===s[s.length-1];)s=s.substring(0,s.length-1);for(s.length>r.length-1&&l("fractional component exceeds decimals","underflow","parseFixed"),""===s&&(s="0");s.lengthnull==e[t]?n:(typeof e[t]!==r&&c.throwArgumentError("invalid fixed format ("+t+" not "+r+")","format."+t,e[t]),e[t]);t=i("signed","boolean",t),r=i("width","number",r),n=i("decimals","number",n)}return r%8&&c.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",r),n>80&&c.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",n),new g(f,t,r,n)}}class y{constructor(e,t,r,n){e!==f&&c.throwError("cannot use FixedNumber constructor; use FixedNumber.from",a.Logger.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&&c.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);let t=b(this._value,this.format.decimals),r=b(e._value,e.format.decimals);return y.fromValue(t.add(r),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);let t=b(this._value,this.format.decimals),r=b(e._value,e.format.decimals);return y.fromValue(t.sub(r),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);let t=b(this._value,this.format.decimals),r=b(e._value,e.format.decimals);return y.fromValue(t.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);let t=b(this._value,this.format.decimals),r=b(e._value,e.format.decimals);return y.fromValue(t.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}floor(){let e=this.toString().split(".");1===e.length&&e.push("0");let t=y.from(e[0],this.format),r=!e[1].match(/^(0*)$/);return this.isNegative()&&r&&(t=t.subUnsafe(v.toFormat(t.format))),t}ceiling(){let e=this.toString().split(".");1===e.length&&e.push("0");let t=y.from(e[0],this.format),r=!e[1].match(/^(0*)$/);return!this.isNegative()&&r&&(t=t.addUnsafe(v.toFormat(t.format))),t}round(e){null==e&&(e=0);let t=this.toString().split(".");if(1===t.length&&t.push("0"),(e<0||e>80||e%1)&&c.throwArgumentError("invalid decimal count","decimals",e),t[1].length<=e)return this;let r=y.from("1"+h.substring(0,e),this.format),n=w.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&&c.throwArgumentError("invalid byte width","width",e);let t=(0,o.BigNumber).from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return(0,i.hexZeroPad)(t,e/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return y.fromString(this._value,e)}static fromValue(e,t,r){return null!=r||null==t||(0,o.isBigNumberish)(t)||(r=t,t=null),null==t&&(t=0),null==r&&(r="fixed"),y.fromString(m(e,t),g.from(r))}static fromString(e,t){null==t&&(t="fixed");let r=g.from(t),n=b(e,r.decimals);!r.signed&&n.lt(u)&&l("unsigned value cannot be negative","overflow","value",e);let a=null;r.signed?a=n.toTwos(r.width).toHexString():(a=n.toHexString(),a=(0,i.hexZeroPad)(a,r.width/8));let s=m(n,r.decimals);return new y(f,a,s,r)}static fromBytes(e,t){null==t&&(t="fixed");let r=g.from(t);if((0,i.arrayify)(e).length>r.width/8)throw Error("overflow");let n=(0,o.BigNumber).from(e);r.signed&&(n=n.fromTwos(r.width));let a=n.toTwos((r.signed?0:1)+r.width).toHexString(),s=m(n,r.decimals);return new y(f,a,s,r)}static from(e,t){if("string"==typeof e)return y.fromString(e,t);if((0,i.isBytes)(e))return y.fromBytes(e,t);try{return y.fromValue(e,0,t)}catch(e){if(e.code!==a.Logger.errors.INVALID_ARGUMENT)throw e}return c.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!!(e&&e._isFixedNumber)}}let v=y.from(1),w=y.from("0.5")},{"@ethersproject/bytes":"19SwW","@ethersproject/logger":"6NWvR","./_version":"FsnUp","./bignumber":"ha6R2","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],iRbHe:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"HashZero",()=>i);let i="0x0000000000000000000000000000000000000000000000000000000000000000"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],ex5EG:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"EtherSymbol",()=>i);let i="Ξ"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"4E82p":[function(e,t,r){var n,i,a,s,o=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";o.defineInteropFlag(r),o.export(r,"UnicodeNormalizationForm",()=>a),o.export(r,"Utf8ErrorReason",()=>s),o.export(r,"Utf8ErrorFuncs",()=>h),o.export(r,"toUtf8Bytes",()=>m),o.export(r,"_toEscapedUtf8String",()=>g),o.export(r,"_toUtf8String",()=>y),o.export(r,"toUtf8String",()=>v),o.export(r,"toUtf8CodePoints",()=>w);var c=e("@ethersproject/bytes"),f=e("@ethersproject/logger"),u=e("./_version");let d=new f.Logger(u.version);function l(e,t,r,n,i){if(e===s.BAD_PREFIX||e===s.UNEXPECTED_CONTINUE){let e=0;for(let n=t+1;n>6==2;n++)e++;return e}return e===s.OVERRUN?r.length-t-1:0}(n=a||(a={})).current="",n.NFC="NFC",n.NFD="NFD",n.NFKC="NFKC",n.NFKD="NFKD",(i=s||(s={})).UNEXPECTED_CONTINUE="unexpected continuation byte",i.BAD_PREFIX="bad codepoint prefix",i.OVERRUN="string overrun",i.MISSING_CONTINUE="missing continuation byte",i.OUT_OF_RANGE="out of UTF-8 range",i.UTF16_SURROGATE="UTF-16 surrogate",i.OVERLONG="overlong representation";let h=Object.freeze({error:function(e,t,r,n,i){return d.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,"bytes",r)},ignore:l,replace:function(e,t,r,n,i){return e===s.OVERLONG?(n.push(i),0):(n.push(65533),l(e,t,r,n,i))}});function p(e,t){null==t&&(t=h.error),e=(0,c.arrayify)(e);let r=[],n=0;for(;n>7==0){r.push(i);continue}let a=null,o=null;if((224&i)==192)a=1,o=127;else if((240&i)==224)a=2,o=2047;else if((248&i)==240)a=3,o=65535;else{(192&i)==128?n+=t(s.UNEXPECTED_CONTINUE,n-1,e,r):n+=t(s.BAD_PREFIX,n-1,e,r);continue}if(n-1+a>=e.length){n+=t(s.OVERRUN,n-1,e,r);continue}let c=i&(1<<8-a-1)-1;for(let i=0;i1114111){n+=t(s.OUT_OF_RANGE,n-1-a,e,r,c);continue}if(c>=55296&&c<=57343){n+=t(s.UTF16_SURROGATE,n-1-a,e,r,c);continue}if(c<=o){n+=t(s.OVERLONG,n-1-a,e,r,c);continue}r.push(c)}}return r}function m(e,t=a.current){t!=a.current&&(d.checkNormalize(),e=e.normalize(t));let r=[];for(let t=0;t>6|192),r.push(63&n|128);else if((64512&n)==55296){t++;let i=e.charCodeAt(t);if(t>=e.length||(64512&i)!=56320)throw Error("invalid utf-8 string");let a=65536+((1023&n)<<10)+(1023&i);r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(63&a|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(63&n|128)}return(0,c.arrayify)(r)}function b(e){let t="0000"+e.toString(16);return"\\u"+t.substring(t.length-4)}function g(e,t){return'"'+p(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?b(e):b(((e-=65536)>>10&1023)+55296)+b((1023&e)+56320)}).join("")+'"'}function y(e){return e.map(e=>e<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10&1023)+55296,(1023&e)+56320)).join("")}function v(e,t){return y(p(e,t))}function w(e,t=a.current){return p(m(e,t))}},{"@ethersproject/bytes":"19SwW","@ethersproject/logger":"6NWvR","./_version":"mEQno","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],mEQno:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="strings/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],kkxaO:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"_nameprepTableA1",()=>m),n.export(r,"_nameprepTableB2",()=>b),n.export(r,"_nameprepTableC",()=>g),n.export(r,"nameprep",()=>y);"use strict";var i=e("./utf8");function a(e,t){t||(t=function(e){return[parseInt(e,16)]});let r=0,n={};return e.split(",").forEach(e=>{let i=e.split(":");n[r+=parseInt(i[0],16)]=t(i[1])}),n}function s(e){let t=0;return e.split(",").map(e=>{let r=e.split("-");return 1===r.length?r[1]="0":""===r[1]&&(r[1]="1"),{l:t+parseInt(r[0],16),h:t=parseInt(r[1],16)}})}function o(e,t){let r=0;for(let n=0;n=(r+=i.l)&&e<=r+i.h&&(e-r)%(i.d||1)==0){if(i.e&&-1!==i.e.indexOf(e-r))continue;return i}}return null}let c=s("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"),f="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(e=>parseInt(e,16)),u=[{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}],d=a("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"),l=a("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"),h=a("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 Error("bad data");let t=[];for(let r=0;rf.indexOf(e)>=0||e>=65024&&e<=65039?[]:b(e)||[e]).reduce((e,t)=>(t.forEach(t=>{e.push(t)}),e),[]),(t=(0,i.toUtf8CodePoints)((0,i._toUtf8String)(t),i.UnicodeNormalizationForm.NFKC)).forEach(e=>{if(g(e))throw Error("STRINGPREP_CONTAINS_PROHIBITED")}),t.forEach(e=>{if(m(e))throw Error("STRINGPREP_CONTAINS_UNASSIGNED")});let r=(0,i._toUtf8String)(t);if("-"===r.substring(0,1)||"--"===r.substring(2,4)||"-"===r.substring(r.length-1))throw Error("invalid hyphen");return r}},{"./utf8":"4E82p","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],hJwty:[function(e,t,r){"use strict";var n=e("37da3353fb0fa7ff").Buffer,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});let a=i(e("d4e65179c0f8f385")),s=i(e("532aa29a5036ee04")),o="utf8";function c(e){return new Uint8Array(e)}function f(e,t=!1){let r=e.toString("hex");return t?L(r):r}function u(e){return e.toString(o)}function d(e){return e.readUIntBE(0,e.length)}function l(e){return s.default(e)}function h(e,t=!1){return f(l(e),t)}function p(e){return u(l(e))}function m(e){return d(l(e))}function b(e){return Array.from(e).map(E).join("")}function g(e){return n.from(B(e),"hex")}function y(e){return c(g(e))}function v(e){return b(y(e))}function w(e){return n.from(e,o)}function _(e){return c(w(e))}function E(e){let t=(e>>>0).toString(2);return N(t)}function A(e){return l(M(e))}function M(e){return new Uint8Array(P(e).map(e=>parseInt(e,2)))}function S(e,t){return h(M(e),t)}function x(e){return!!("string"==typeof e&&new RegExp(/^[01]+$/).test(e))&&e.length%8==0}function T(e,t){return"string"==typeof e&&!!e.match(/^0x[0-9A-Fa-f]*$/)&&(!t||e.length===2+2*t)}function k(e){return n.isBuffer(e)}function R(e){return a.default.strict(e)&&!k(e)}function I(e){return!R(e)&&!k(e)&&void 0!==e.byteLength}function C(e,t=8){let r=e%t;return r?(e-r)/t*t+t:e}function P(e,t=8){let r=N(e).match(RegExp(`.{${t}}`,"gi"));return Array.from(r||[])}function O(e){return P(e).map(D).join("")}function N(e,t=8,r="0"){return j(e,C(e.length,t),r)}function j(e,t,r="0"){return U(e,t,!0,r)}function B(e){return e.replace(/^0x/,"")}function L(e){return e.startsWith("0x")?e:`0x${e}`}function D(e){return e.split("").reverse().join("")}function U(e,t,r,n="0"){let i=t-e.length,a=e;if(i>0){let t=n.repeat(i);a=r?t+e:e+t}return a}r.bufferToArray=c,r.bufferToHex=f,r.bufferToUtf8=u,r.bufferToNumber=d,r.bufferToBinary=function(e){return b(c(e))},r.arrayToBuffer=l,r.arrayToHex=h,r.arrayToUtf8=p,r.arrayToNumber=m,r.arrayToBinary=b,r.hexToBuffer=g,r.hexToArray=y,r.hexToUtf8=function(e){return u(g(e))},r.hexToNumber=function(e){return m(y(e))},r.hexToBinary=v,r.utf8ToBuffer=w,r.utf8ToArray=_,r.utf8ToHex=function(e,t=!1){return f(w(e),t)},r.utf8ToNumber=function(e){let t=parseInt(e,10);return function(e,t){if(!e)throw Error(t)}(void 0!==t,"Number can only safely store up to 53 bits"),t},r.utf8ToBinary=function(e){return b(_(e))},r.numberToBuffer=function(e){return A(E(e))},r.numberToArray=function(e){return M(E(e))},r.numberToHex=function(e,t){return S(E(e),t)},r.numberToUtf8=function(e){return`${e}`},r.numberToBinary=E,r.binaryToBuffer=A,r.binaryToArray=M,r.binaryToHex=S,r.binaryToUtf8=function(e){return p(M(e))},r.binaryToNumber=function(e){return m(M(e))},r.isBinaryString=x,r.isHexString=T,r.isBuffer=k,r.isTypedArray=R,r.isArrayBuffer=I,r.getType=function(e){return k(e)?"buffer":R(e)?"typed-array":I(e)?"array-buffer":Array.isArray(e)?"array":typeof e},r.getEncoding=function(e){return x(e)?"binary":T(e)?"hex":o},r.concatBuffers=function(...e){let t=n.concat(e);return t},r.concatArrays=function(...e){let t=[];return e.forEach(e=>t=t.concat(Array.from(e))),new Uint8Array([...t])},r.trimLeft=function(e,t){let r=e.length-t;return r>0&&(e=e.slice(r)),e},r.trimRight=function(e,t){return e.slice(0,t)},r.calcByteLength=C,r.splitBytes=P,r.swapBytes=O,r.swapHex=function(e){return S(O(v(e)))},r.sanitizeBytes=N,r.padLeft=j,r.padRight=function(e,t,r="0"){return U(e,t,!1,r)},r.removeHexPrefix=B,r.addHexPrefix=L,r.sanitizeHex=function(e){return(e=N(e=B(e),2))&&(e=L(e)),e},r.removeHexLeadingZeros=function(e){let t=e.startsWith("0x");return e=(e=B(e)).startsWith("0")?e.substring(1):e,t?L(e):e}},{"37da3353fb0fa7ff":"2MMCE",d4e65179c0f8f385:"69hwL","532aa29a5036ee04":"4JDy2"}],"69hwL":[function(e,t,r){t.exports=a,a.strict=s,a.loose=o;var n=Object.prototype.toString,i={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function a(e){return s(e)||o(e)}function s(e){return e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array}function o(e){return i[n.call(e)]}},{}],"4JDy2":[function(e,t,r){var n=e("1a78dd7d8c10fe5c").Buffer,i=e("dfcbed822b77bad7").strict;t.exports=function(e){if(!i(e))return n.from(e);var t=n.from(e.buffer);return e.byteLength!==e.buffer.byteLength&&(t=t.slice(e.byteOffset,e.byteOffset+e.byteLength)),t}},{"1a78dd7d8c10fe5c":"2MMCE",dfcbed822b77bad7:"69hwL"}],"8wpcu":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Signer",()=>i.Signer),n.export(r,"Wallet",()=>i.Wallet),n.export(r,"VoidSigner",()=>i.VoidSigner),n.export(r,"getDefaultProvider",()=>i.getDefaultProvider),n.export(r,"providers",()=>i.providers),n.export(r,"BaseContract",()=>i.BaseContract),n.export(r,"Contract",()=>i.Contract),n.export(r,"ContractFactory",()=>i.ContractFactory),n.export(r,"BigNumber",()=>i.BigNumber),n.export(r,"FixedNumber",()=>i.FixedNumber),n.export(r,"constants",()=>i.constants),n.export(r,"errors",()=>i.errors),n.export(r,"logger",()=>i.logger),n.export(r,"utils",()=>i.utils),n.export(r,"wordlists",()=>i.wordlists),n.export(r,"version",()=>i.version),n.export(r,"Wordlist",()=>i.Wordlist),n.export(r,"ethers",()=>i);var i=e("./ethers");"use strict";try{let e=window;null==e._ethers&&(e._ethers=i)}catch(e){}},{"./ethers":"gFgxE","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gFgxE:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Signer",()=>s.Signer),n.export(r,"Wallet",()=>o.Wallet),n.export(r,"VoidSigner",()=>s.VoidSigner),n.export(r,"getDefaultProvider",()=>f.getDefaultProvider),n.export(r,"providers",()=>f),n.export(r,"BaseContract",()=>i.BaseContract),n.export(r,"Contract",()=>i.Contract),n.export(r,"ContractFactory",()=>i.ContractFactory),n.export(r,"BigNumber",()=>a.BigNumber),n.export(r,"FixedNumber",()=>a.FixedNumber),n.export(r,"constants",()=>c),n.export(r,"errors",()=>l.ErrorCode),n.export(r,"logger",()=>p),n.export(r,"utils",()=>d),n.export(r,"wordlists",()=>u.wordlists),n.export(r,"version",()=>h.version),n.export(r,"Wordlist",()=>u.Wordlist);"use strict";var i=e("@ethersproject/contracts"),a=e("@ethersproject/bignumber"),s=e("@ethersproject/abstract-signer"),o=e("@ethersproject/wallet"),c=e("@ethersproject/constants"),f=e("@ethersproject/providers"),u=e("@ethersproject/wordlists"),d=e("./utils"),l=e("@ethersproject/logger"),h=e("./_version");let p=new l.Logger(h.version)},{"@ethersproject/contracts":"bmZzW","@ethersproject/bignumber":"hIcBX","@ethersproject/abstract-signer":"j6EbC","@ethersproject/wallet":"euBMB","@ethersproject/constants":"cSsuf","@ethersproject/providers":"lpm2Y","@ethersproject/wordlists":"a2daz","./utils":"7jy5m","@ethersproject/logger":"6NWvR","./_version":"lHxZw","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],bmZzW:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"BaseContract",()=>k),n.export(r,"Contract",()=>R),n.export(r,"ContractFactory",()=>I);"use strict";var i=e("@ethersproject/abi"),a=e("@ethersproject/abstract-provider"),s=e("@ethersproject/abstract-signer"),o=e("@ethersproject/address"),c=e("@ethersproject/bignumber"),f=e("@ethersproject/bytes"),u=e("@ethersproject/properties"),d=e("@ethersproject/transactions"),l=e("@ethersproject/logger"),h=e("./_version"),p=function(e,t,r,n){return new(r||(r=Promise))(function(i,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function o(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}c((n=n.apply(e,t||[])).next())})};let m=new l.Logger(h.version),b={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 g(e,t){return p(this,void 0,void 0,function*(){let r=yield t;"string"!=typeof r&&m.throwArgumentError("invalid address or ENS name","name",r);try{return(0,o.getAddress)(r)}catch(e){}e||m.throwError("a provider or signer is needed to resolve ENS names",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});let n=yield e.resolveName(r);return null==n&&m.throwArgumentError("resolver or addr is not configured for ENS name","name",r),n})}function y(e,t,r){return p(this,void 0,void 0,function*(){return Array.isArray(r)?yield Promise.all(r.map((r,n)=>y(e,Array.isArray(t)?t[n]:t[r.name],r))):"address"===r.type?yield g(e,t):"tuple"===r.type?yield y(e,t,r.components):"array"===r.baseType?Array.isArray(t)?yield Promise.all(t.map(t=>y(e,t,r.arrayChildren))):Promise.reject(m.makeError("invalid value for array",l.Logger.errors.INVALID_ARGUMENT,{argument:"value",value:t})):t})}function v(e,t,r){return p(this,void 0,void 0,function*(){let n={};r.length===t.inputs.length+1&&"object"==typeof r[r.length-1]&&(n=(0,u.shallowCopy)(r.pop())),m.checkArgumentCount(r.length,t.inputs.length,"passed to contract"),e.signer?n.from?n.from=(0,u.resolveProperties)({override:g(e.signer,n.from),signer:e.signer.getAddress()}).then(e=>p(this,void 0,void 0,function*(){return(0,o.getAddress)(e.signer)!==e.override&&m.throwError("Contract with a Signer cannot override from",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),e.override})):n.from=e.signer.getAddress():n.from&&(n.from=g(e.provider,n.from));let i=yield(0,u.resolveProperties)({args:y(e.signer||e.provider,r,t.inputs),address:e.resolvedAddress,overrides:(0,u.resolveProperties)(n)||{}}),a=e.interface.encodeFunctionData(t,i.args),s={data:a,to:i.address},h=i.overrides;if(null!=h.nonce&&(s.nonce=(0,c.BigNumber).from(h.nonce).toNumber()),null!=h.gasLimit&&(s.gasLimit=(0,c.BigNumber).from(h.gasLimit)),null!=h.gasPrice&&(s.gasPrice=(0,c.BigNumber).from(h.gasPrice)),null!=h.maxFeePerGas&&(s.maxFeePerGas=(0,c.BigNumber).from(h.maxFeePerGas)),null!=h.maxPriorityFeePerGas&&(s.maxPriorityFeePerGas=(0,c.BigNumber).from(h.maxPriorityFeePerGas)),null!=h.from&&(s.from=h.from),null!=h.type&&(s.type=h.type),null!=h.accessList&&(s.accessList=(0,d.accessListify)(h.accessList)),null==s.gasLimit&&null!=t.gas){let e=21e3,r=(0,f.arrayify)(a);for(let t=0;tnull!=n[e]);return b.length&&m.throwError(`cannot override ${b.map(e=>JSON.stringify(e)).join(",")}`,l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:b}),s})}function w(e,t){let r=t.wait.bind(t);t.wait=t=>r(t).then(t=>(t.events=t.logs.map(r=>{let n=(0,u.deepCopy)(r),i=null;try{i=e.interface.parseLog(r)}catch(e){}return i&&(n.args=i.args,n.decode=(t,r)=>e.interface.decodeEventLog(i.eventFragment,t,r),n.event=i.name,n.eventSignature=i.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 _(e,t,r){let n=e.signer||e.provider;return function(...i){return p(this,void 0,void 0,function*(){let a;if(i.length===t.inputs.length+1&&"object"==typeof i[i.length-1]){let e=(0,u.shallowCopy)(i.pop());null!=e.blockTag&&(a=yield e.blockTag),delete e.blockTag,i.push(e)}null!=e.deployTransaction&&(yield e._deployed(a));let s=yield v(e,t,i),o=yield n.call(s,a);try{let n=e.interface.decodeFunctionResult(t,o);return r&&1===t.outputs.length&&(n=n[0]),n}catch(t){throw t.code===l.Logger.errors.CALL_EXCEPTION&&(t.address=e.address,t.args=i,t.transaction=s),t}})}}function E(e,t,r){return t.constant?_(e,t,r):function(...r){return p(this,void 0,void 0,function*(){e.signer||m.throwError("sending a transaction requires a signer",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null!=e.deployTransaction&&(yield e._deployed());let n=yield v(e,t,r),i=yield e.signer.sendTransaction(n);return w(e,i),i})}}function A(e){return e.address&&(null==e.topics||0===e.topics.length)?"*":(e.address||"*")+"@"+(e.topics?e.topics.map(e=>Array.isArray(e)?e.join("|"):e).join(":"):"")}class M{constructor(e,t){(0,u.defineReadOnly)(this,"tag",e),(0,u.defineReadOnly)(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){let t=this.listenerCount();return this._listeners=this._listeners.filter(t=>{let r=e.slice();return setTimeout(()=>{t.listener.apply(this,r)},0),!t.once}),t}prepareEvent(e){}getEmit(e){return[e]}}class S extends M{constructor(){super("error",null)}}class x extends M{constructor(e,t,r,n){let i={address:e},a=t.getEventTopic(r);n?(a!==n[0]&&m.throwArgumentError("topic mismatch","topics",n),i.topics=n.slice()):i.topics=[a],super(A(i),i),(0,u.defineReadOnly)(this,"address",e),(0,u.defineReadOnly)(this,"interface",t),(0,u.defineReadOnly)(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){let t=(0,i.checkResultErrors)(e.args);if(t.length)throw t[0].error;let r=(e.args||[]).slice();return r.push(e),r}}class T extends M{constructor(e,t){super("*",{address:e}),(0,u.defineReadOnly)(this,"address",e),(0,u.defineReadOnly)(this,"interface",t)}prepareEvent(e){super.prepareEvent(e);try{let 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(e){}}}class k{constructor(e,t,r){(0,u.defineReadOnly)(this,"interface",(0,u.getStatic)(new.target,"getInterface")(t)),null==r?((0,u.defineReadOnly)(this,"provider",null),(0,u.defineReadOnly)(this,"signer",null)):(0,s.Signer).isSigner(r)?((0,u.defineReadOnly)(this,"provider",r.provider||null),(0,u.defineReadOnly)(this,"signer",r)):(0,a.Provider).isProvider(r)?((0,u.defineReadOnly)(this,"provider",r),(0,u.defineReadOnly)(this,"signer",null)):m.throwArgumentError("invalid signer or provider","signerOrProvider",r),(0,u.defineReadOnly)(this,"callStatic",{}),(0,u.defineReadOnly)(this,"estimateGas",{}),(0,u.defineReadOnly)(this,"functions",{}),(0,u.defineReadOnly)(this,"populateTransaction",{}),(0,u.defineReadOnly)(this,"filters",{});{let e={};Object.keys(this.interface.events).forEach(t=>{let r=this.interface.events[t];(0,u.defineReadOnly)(this.filters,t,(...e)=>({address:this.address,topics:this.interface.encodeFilterTopics(r,e)})),e[r.name]||(e[r.name]=[]),e[r.name].push(t)}),Object.keys(e).forEach(t=>{let r=e[t];1===r.length?(0,u.defineReadOnly)(this.filters,t,this.filters[r[0]]):m.warn(`Duplicate definition of ${t} (${r.join(", ")})`)})}if((0,u.defineReadOnly)(this,"_runningEvents",{}),(0,u.defineReadOnly)(this,"_wrappedEmits",{}),null==e&&m.throwArgumentError("invalid contract address or ENS name","addressOrName",e),(0,u.defineReadOnly)(this,"address",e),this.provider)(0,u.defineReadOnly)(this,"resolvedAddress",g(this.provider,e));else try{(0,u.defineReadOnly)(this,"resolvedAddress",Promise.resolve((0,o.getAddress)(e)))}catch(e){m.throwError("provider is required to use ENS name as contract address",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch(e=>{});let n={},i={};Object.keys(this.interface.functions).forEach(e=>{let t=this.interface.functions[e];if(i[e]){m.warn(`Duplicate ABI entry for ${JSON.stringify(e)}`);return}i[e]=!0;{let r=t.name;n[`%${r}`]||(n[`%${r}`]=[]),n[`%${r}`].push(e)}if(null==this[e]&&(0,u.defineReadOnly)(this,e,E(this,t,!0)),null==this.functions[e]&&(0,u.defineReadOnly)(this.functions,e,E(this,t,!1)),null==this.callStatic[e]&&(0,u.defineReadOnly)(this.callStatic,e,_(this,t,!0)),null==this.populateTransaction[e]){var r;(0,u.defineReadOnly)(this.populateTransaction,e,(r=this,function(...e){return v(r,t,e)}))}null==this.estimateGas[e]&&(0,u.defineReadOnly)(this.estimateGas,e,function(e,t){let r=e.signer||e.provider;return function(...n){return p(this,void 0,void 0,function*(){r||m.throwError("estimate require a provider or signer",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});let i=yield v(e,t,n);return yield r.estimateGas(i)})}}(this,t))}),Object.keys(n).forEach(e=>{let t=n[e];if(t.length>1)return;e=e.substring(1);let r=t[0];try{null==this[e]&&(0,u.defineReadOnly)(this,e,this[r])}catch(e){}null==this.functions[e]&&(0,u.defineReadOnly)(this.functions,e,this.functions[r]),null==this.callStatic[e]&&(0,u.defineReadOnly)(this.callStatic,e,this.callStatic[r]),null==this.populateTransaction[e]&&(0,u.defineReadOnly)(this.populateTransaction,e,this.populateTransaction[r]),null==this.estimateGas[e]&&(0,u.defineReadOnly)(this.estimateGas,e,this.estimateGas[r])})}static getContractAddress(e){return(0,o.getContractAddress)(e)}static getInterface(e){return(0,i.Interface).isInterface(e)?e:new i.Interface(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&&m.throwError("contract not deployed",l.Logger.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this))),this._deployedPromise}fallback(e){this.signer||m.throwError("sending a transactions require a signer",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});let t=(0,u.shallowCopy)(e||{});return["from","to"].forEach(function(e){null!=t[e]&&m.throwError("cannot override "+e,l.Logger.errors.UNSUPPORTED_OPERATION,{operation:e})}),t.to=this.resolvedAddress,this.deployed().then(()=>this.signer.sendTransaction(t))}connect(e){"string"==typeof e&&(e=new s.VoidSigner(e,this.provider));let t=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&(0,u.defineReadOnly)(t,"deployTransaction",this.deployTransaction),t}attach(e){return new this.constructor(e,this.interface,this.signer||this.provider)}static isIndexed(e){return(0,i.Indexed).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 S);if("event"===e)return this._normalizeRunningEvent(new M("event",null));if("*"===e)return this._normalizeRunningEvent(new T(this.address,this.interface));let t=this.interface.getEvent(e);return this._normalizeRunningEvent(new x(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{let t=e.topics[0];if("string"!=typeof t)throw Error("invalid topic");let r=this.interface.getEvent(t);return this._normalizeRunningEvent(new x(this.address,this.interface,r,e.topics))}catch(e){}let t={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new M(A(t),t))}return this._normalizeRunningEvent(new T(this.address,this.interface))}_checkRunningEvents(e){if(0===e.listenerCount()){delete this._runningEvents[e.tag];let t=this._wrappedEmits[e.tag];t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}}_wrapEvent(e,t,r){let n=(0,u.deepCopy)(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||m.throwError("events require a provider or a signer with a provider",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,r),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){let r=r=>{let n=this._wrapEvent(e,r,t);if(null==n.decodeError)try{let t=e.getEmit(n);this.emit(e.filter,...t)}catch(e){n.decodeError=e.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){let n=this._getRunningEvent(e),i=(0,u.shallowCopy)(n.filter);return"string"==typeof t&&(0,f.isHexString)(t,32)?(null!=r&&m.throwArgumentError("cannot specify toBlock with blockhash","toBlock",r),i.blockHash=t):(i.fromBlock=null!=t?t:0,i.toBlock=null!=r?r:"latest"),this.provider.getLogs(i).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,...t){if(!this.provider)return!1;let r=this._getRunningEvent(e),n=r.run(t)>0;return this._checkRunningEvents(r),n}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){let 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(let e in this._runningEvents){let t=this._runningEvents[e];t.removeAllListeners(),this._checkRunningEvents(t)}return this}let t=this._getRunningEvent(e);return t.removeAllListeners(),this._checkRunningEvents(t),this}off(e,t){if(!this.provider)return this;let r=this._getRunningEvent(e);return r.removeListener(t),this._checkRunningEvents(r),this}removeListener(e,t){return this.off(e,t)}}class R extends k{}class I{constructor(e,t,r){let n=null;"0x"!==(n="string"==typeof t?t:(0,f.isBytes)(t)?(0,f.hexlify)(t):t&&"string"==typeof t.object?t.object:"!").substring(0,2)&&(n="0x"+n),(!(0,f.isHexString)(n)||n.length%2)&&m.throwArgumentError("invalid bytecode","bytecode",t),r&&!(0,s.Signer).isSigner(r)&&m.throwArgumentError("invalid signer","signer",r),(0,u.defineReadOnly)(this,"bytecode",n),(0,u.defineReadOnly)(this,"interface",(0,u.getStatic)(new.target,"getInterface")(e)),(0,u.defineReadOnly)(this,"signer",r||null)}getDeployTransaction(...e){let t={};if(e.length===this.interface.deploy.inputs.length+1&&"object"==typeof e[e.length-1]){for(let r in t=(0,u.shallowCopy)(e.pop()))if(!b[r])throw Error("unknown transaction override "+r)}if(["data","from","to"].forEach(e=>{null!=t[e]&&m.throwError("cannot override "+e,l.Logger.errors.UNSUPPORTED_OPERATION,{operation:e})}),t.value){let e=(0,c.BigNumber).from(t.value);e.isZero()||this.interface.deploy.payable||m.throwError("non-payable constructor cannot override value",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:t.value})}return m.checkArgumentCount(e.length,this.interface.deploy.inputs.length," in Contract constructor"),t.data=(0,f.hexlify)((0,f.concat)([this.bytecode,this.interface.encodeDeploy(e)])),t}deploy(...e){return p(this,void 0,void 0,function*(){let t={};e.length===this.interface.deploy.inputs.length+1&&(t=e.pop()),m.checkArgumentCount(e.length,this.interface.deploy.inputs.length," in Contract constructor");let r=yield y(this.signer,e,this.interface.deploy.inputs);r.push(t);let n=this.getDeployTransaction(...r),i=yield this.signer.sendTransaction(n),a=(0,u.getStatic)(this.constructor,"getContractAddress")(i),s=(0,u.getStatic)(this.constructor,"getContract")(a,this.interface,this.signer);return w(s,i),(0,u.defineReadOnly)(s,"deployTransaction",i),s})}attach(e){return this.constructor.getContract(e,this.interface,this.signer)}connect(e){return new this.constructor(this.interface,this.bytecode,e)}static fromSolidity(e,t){null==e&&m.throwError("missing compiler output",l.Logger.errors.MISSING_ARGUMENT,{argument:"compilerOutput"}),"string"==typeof e&&(e=JSON.parse(e));let r=e.abi,n=null;return e.bytecode?n=e.bytecode:e.evm&&e.evm.bytecode&&(n=e.evm.bytecode),new this(r,n,t)}static getInterface(e){return R.getInterface(e)}static getContractAddress(e){return(0,o.getContractAddress)(e)}static getContract(e,t,r){return new R(e,t,r)}}},{"@ethersproject/abi":"gbtNr","@ethersproject/abstract-provider":"imf57","@ethersproject/abstract-signer":"j6EbC","@ethersproject/address":"7BZuS","@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/properties":"dmdV5","@ethersproject/transactions":"ctBdV","@ethersproject/logger":"6NWvR","./_version":"liyH3","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gbtNr:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ConstructorFragment",()=>i.ConstructorFragment),n.export(r,"ErrorFragment",()=>i.ErrorFragment),n.export(r,"EventFragment",()=>i.EventFragment),n.export(r,"Fragment",()=>i.Fragment),n.export(r,"FunctionFragment",()=>i.FunctionFragment),n.export(r,"ParamType",()=>i.ParamType),n.export(r,"FormatTypes",()=>i.FormatTypes),n.export(r,"AbiCoder",()=>a.AbiCoder),n.export(r,"defaultAbiCoder",()=>a.defaultAbiCoder),n.export(r,"Interface",()=>s.Interface),n.export(r,"Indexed",()=>s.Indexed),n.export(r,"checkResultErrors",()=>s.checkResultErrors),n.export(r,"LogDescription",()=>s.LogDescription),n.export(r,"TransactionDescription",()=>s.TransactionDescription);"use strict";var i=e("./fragments"),a=e("./abi-coder"),s=e("./interface")},{"./fragments":"2aRQ2","./abi-coder":"eiswb","./interface":"gOFir","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2aRQ2":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"FormatTypes",()=>p),n.export(r,"ParamType",()=>b),n.export(r,"Fragment",()=>y),n.export(r,"EventFragment",()=>v),n.export(r,"ConstructorFragment",()=>A),n.export(r,"FunctionFragment",()=>M),n.export(r,"ErrorFragment",()=>x);"use strict";var i=e("@ethersproject/bignumber"),a=e("@ethersproject/properties"),s=e("@ethersproject/logger"),o=e("./_version");let c=new s.Logger(o.version),f={},u={calldata:!0,memory:!0,storage:!0},d={calldata:!0,memory:!0};function l(e,t){if("bytes"===e||"string"===e){if(u[t])return!0}else if("address"===e){if("payable"===t)return!0}else if((e.indexOf("[")>=0||"tuple"===e)&&d[t])return!0;return(u[t]||"payable"===t)&&c.throwArgumentError("invalid modifier","name",t),!1}function h(e,t){for(let r in t)(0,a.defineReadOnly)(e,r,t[r])}let p=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),m=new RegExp(/^(.*)\[([0-9]*)\]$/);class b{constructor(e,t){e!==f&&c.throwError("use fromString",s.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),h(this,t);let r=this.type.match(m);r?h(this,{arrayLength:parseInt(r[2]||"-1"),arrayChildren:b.fromObject({type:r[1],components:this.components}),baseType:"array"}):h(this,{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(e){if(e||(e=p.sighash),p[e]||c.throwArgumentError("invalid format type","format",e),e===p.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)+"["+(this.arrayLength<0?"":String(this.arrayLength))+"]":"tuple"===this.baseType?(e!==p.sighash&&(t+=this.type),t+="("+this.components.map(t=>t.format(e)).join(e===p.full?", ":",")+")"):t+=this.type,e!==p.sighash&&(!0===this.indexed&&(t+=" indexed"),e===p.full&&this.name&&(t+=" "+this.name)),t}static from(e,t){return"string"==typeof e?b.fromString(e,t):b.fromObject(e)}static fromObject(e){return b.isParamType(e)?e:new b(f,{name:e.name||null,type:T(e.type),indexed:null==e.indexed?null:!!e.indexed,components:e.components?e.components.map(b.fromObject):null})}static fromString(e,t){var r;return r=function(e,t){let r=e;function n(t){c.throwArgumentError(`unexpected character at position ${t}`,"param",e)}function i(e){let r={type:"",name:"",parent:e,state:{allowType:!0}};return t&&(r.indexed=!1),r}e=e.replace(/\s/g," ");let a={type:"",name:"",state:{allowType:!0}},s=a;for(let r=0;rb.fromString(e,t))}class y{constructor(e,t){e!==f&&c.throwError("use a static from method",s.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),h(this,t),this._isFragment=!0,Object.freeze(this)}static from(e){return y.isFragment(e)?e:"string"==typeof e?y.fromString(e):y.fromObject(e)}static fromObject(e){if(y.isFragment(e))return e;switch(e.type){case"function":return M.fromObject(e);case"event":return v.fromObject(e);case"constructor":return A.fromObject(e);case"error":return x.fromObject(e);case"fallback":case"receive":return null}return c.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]?v.fromString(e.substring(5).trim()):"function"===e.split(" ")[0]?M.fromString(e.substring(8).trim()):"constructor"===e.split("(")[0].trim()?A.fromString(e.trim()):"error"===e.split(" ")[0]?x.fromString(e.substring(5).trim()):c.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!!(e&&e._isFragment)}}class v extends y{format(e){if(e||(e=p.sighash),p[e]||c.throwArgumentError("invalid format type","format",e),e===p.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!==p.sighash&&(t+="event "),t+=this.name+"("+this.inputs.map(t=>t.format(e)).join(e===p.full?", ":",")+") ",e!==p.sighash&&this.anonymous&&(t+="anonymous "),t.trim()}static from(e){return"string"==typeof e?v.fromString(e):v.fromObject(e)}static fromObject(e){if(v.isEventFragment(e))return e;"event"!==e.type&&c.throwArgumentError("invalid event object","value",e);let t={name:R(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(b.fromObject):[],type:"event"};return new v(f,t)}static fromString(e){let t=e.match(I);t||c.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:c.warn("unknown modifier: "+e)}}),v.fromObject({name:t[1].trim(),anonymous:r,inputs:g(t[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&"event"===e.type}}function w(e,t){t.gas=null;let r=e.split("@");return 1!==r.length?(r.length>2&&c.throwArgumentError("invalid human-readable ABI signature","value",e),r[1].match(/^[0-9]+$/)||c.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=(0,i.BigNumber).from(r[1]),r[0]):e}function _(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 E(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&&c.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&c.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||c.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&&c.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&&c.throwArgumentError("unable to determine stateMutability","value",e),t}class A extends y{format(e){if(e||(e=p.sighash),p[e]||c.throwArgumentError("invalid format type","format",e),e===p.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===p.sighash&&c.throwError("cannot format a constructor for sighash",s.Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let t="constructor("+this.inputs.map(t=>t.format(e)).join(e===p.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}static from(e){return"string"==typeof e?A.fromString(e):A.fromObject(e)}static fromObject(e){if(A.isConstructorFragment(e))return e;"constructor"!==e.type&&c.throwArgumentError("invalid constructor object","value",e);let t=E(e);t.constant&&c.throwArgumentError("constructor cannot be constant","value",e);let r={name:null,type:e.type,inputs:e.inputs?e.inputs.map(b.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?(0,i.BigNumber).from(e.gas):null};return new A(f,r)}static fromString(e){let t={type:"constructor"},r=(e=w(e,t)).match(I);return r&&"constructor"===r[1].trim()||c.throwArgumentError("invalid constructor string","value",e),t.inputs=g(r[2].trim(),!1),_(r[3].trim(),t),A.fromObject(t)}static isConstructorFragment(e){return e&&e._isFragment&&"constructor"===e.type}}class M extends A{format(e){if(e||(e=p.sighash),p[e]||c.throwArgumentError("invalid format type","format",e),e===p.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!==p.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map(t=>t.format(e)).join(e===p.full?", ":",")+") ",e!==p.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?M.fromString(e):M.fromObject(e)}static fromObject(e){if(M.isFunctionFragment(e))return e;"function"!==e.type&&c.throwArgumentError("invalid function object","value",e);let t=E(e),r={type:e.type,name:R(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(b.fromObject):[],outputs:e.outputs?e.outputs.map(b.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?(0,i.BigNumber).from(e.gas):null};return new M(f,r)}static fromString(e){let t={type:"function"},r=(e=w(e,t)).split(" returns ");r.length>2&&c.throwArgumentError("invalid function string","value",e);let n=r[0].match(I);if(n||c.throwArgumentError("invalid function signature","value",e),t.name=n[1].trim(),t.name&&R(t.name),t.inputs=g(n[2],!1),_(n[3].trim(),t),r.length>1){let n=r[1].match(I);(""!=n[1].trim()||""!=n[3].trim())&&c.throwArgumentError("unexpected tokens","value",e),t.outputs=g(n[2],!1)}else t.outputs=[];return M.fromObject(t)}static isFunctionFragment(e){return e&&e._isFragment&&"function"===e.type}}function S(e){let t=e.format();return("Error(string)"===t||"Panic(uint256)"===t)&&c.throwArgumentError(`cannot specify user defined ${t} error`,"fragment",e),e}class x extends y{format(e){if(e||(e=p.sighash),p[e]||c.throwArgumentError("invalid format type","format",e),e===p.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t="";return e!==p.sighash&&(t+="error "),(t+=this.name+"("+this.inputs.map(t=>t.format(e)).join(e===p.full?", ":",")+") ").trim()}static from(e){return"string"==typeof e?x.fromString(e):x.fromObject(e)}static fromObject(e){if(x.isErrorFragment(e))return e;"error"!==e.type&&c.throwArgumentError("invalid error object","value",e);let t={type:e.type,name:R(e.name),inputs:e.inputs?e.inputs.map(b.fromObject):[]};return S(new x(f,t))}static fromString(e){let t={type:"error"},r=e.match(I);return r||c.throwArgumentError("invalid error signature","value",e),t.name=r[1].trim(),t.name&&R(t.name),t.inputs=g(r[2],!1),S(x.fromObject(t))}static isErrorFragment(e){return e&&e._isFragment&&"error"===e.type}}function T(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}let k=RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function R(e){return e&&e.match(k)||c.throwArgumentError(`invalid identifier "${e}"`,"value",e),e}let I=RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$")},{"@ethersproject/bignumber":"hIcBX","@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","./_version":"6avgg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dmdV5:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"defineReadOnly",()=>o),n.export(r,"getStatic",()=>c),n.export(r,"resolveProperties",()=>f),n.export(r,"checkProperties",()=>u),n.export(r,"shallowCopy",()=>d),n.export(r,"deepCopy",()=>h),n.export(r,"Description",()=>p);"use strict";var i=e("@ethersproject/logger"),a=e("./_version");let s=new i.Logger(a.version);function o(e,t,r){Object.defineProperty(e,t,{enumerable:!0,value:r,writable:!1})}function c(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 f(e){var t,r,n,i;return t=this,r=void 0,n=void 0,i=function*(){let t=Object.keys(e).map(t=>{let r=e[t];return Promise.resolve(r).then(e=>({key:t,value:e}))}),r=yield Promise.all(t);return r.reduce((e,t)=>(e[t.key]=t.value,e),{})},new(n||(n=Promise))(function(e,a){function s(e){try{c(i.next(e))}catch(e){a(e)}}function o(e){try{c(i.throw(e))}catch(e){a(e)}}function c(t){var r;t.done?e(t.value):((r=t.value)instanceof n?r:new n(function(e){e(r)})).then(s,o)}c((i=i.apply(t,r||[])).next())})}function u(e,t){e&&"object"==typeof e||s.throwArgumentError("invalid object","object",e),Object.keys(e).forEach(r=>{t[r]||s.throwArgumentError("invalid object key - "+r,"transaction:"+r,e)})}function d(e){let t={};for(let r in e)t[r]=e[r];return t}let l={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function h(e){return function(e){if(function e(t){if(null==t||l[typeof t])return!0;if(Array.isArray(t)||"object"==typeof t){if(!Object.isFrozen(t))return!1;let r=Object.keys(t);for(let n=0;nh(e)));if("object"==typeof e){let t={};for(let r in e){let n=e[r];void 0!==n&&o(t,r,h(n))}return t}return s.throwArgumentError(`Cannot deepCopy ${typeof e}`,"object",e)}(e)}class p{constructor(e){for(let t in e)this[t]=h(e[t])}}},{"@ethersproject/logger":"6NWvR","./_version":"bVRqv","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],bVRqv:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="properties/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"6avgg":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="abi/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],eiswb:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"AbiCoder",()=>E),n.export(r,"defaultAbiCoder",()=>A);"use strict";var i=e("@ethersproject/bytes"),a=e("@ethersproject/properties"),s=e("@ethersproject/logger"),o=e("./_version"),c=e("./coders/abstract-coder"),f=e("./coders/address"),u=e("./coders/array"),d=e("./coders/boolean"),l=e("./coders/bytes"),h=e("./coders/fixed-bytes"),p=e("./coders/null"),m=e("./coders/number"),b=e("./coders/string"),g=e("./coders/tuple"),y=e("./fragments");let v=new s.Logger(o.version),w=new RegExp(/^bytes([0-9]*)$/),_=new RegExp(/^(u?int)([0-9]*)$/);class E{constructor(e){(0,a.defineReadOnly)(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new f.AddressCoder(e.name);case"bool":return new d.BooleanCoder(e.name);case"string":return new b.StringCoder(e.name);case"bytes":return new l.BytesCoder(e.name);case"array":return new u.ArrayCoder(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new g.TupleCoder((e.components||[]).map(e=>this._getCoder(e)),e.name);case"":return new p.NullCoder(e.name)}let t=e.type.match(_);if(t){let r=parseInt(t[2]||"256");return(0===r||r>256||r%8!=0)&&v.throwArgumentError("invalid "+t[1]+" bit length","param",e),new m.NumberCoder(r/8,"int"===t[1],e.name)}if(t=e.type.match(w)){let r=parseInt(t[1]);return(0===r||r>32)&&v.throwArgumentError("invalid bytes length","param",e),new h.FixedBytesCoder(r,e.name)}return v.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,t){return new c.Reader(e,this._getWordSize(),this.coerceFunc,t)}_getWriter(){return new c.Writer(this._getWordSize())}getDefaultValue(e){let t=e.map(e=>this._getCoder((0,y.ParamType).from(e))),r=new g.TupleCoder(t,"_");return r.defaultValue()}encode(e,t){e.length!==t.length&&v.throwError("types/values length mismatch",s.Logger.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});let r=e.map(e=>this._getCoder((0,y.ParamType).from(e))),n=new g.TupleCoder(r,"_"),i=this._getWriter();return n.encode(i,t),i.data}decode(e,t,r){let n=e.map(e=>this._getCoder((0,y.ParamType).from(e))),a=new g.TupleCoder(n,"_");return a.decode(this._getReader((0,i.arrayify)(t),r))}}let A=new E},{"@ethersproject/bytes":"19SwW","@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","./_version":"6avgg","./coders/abstract-coder":"9TMyg","./coders/address":"gmOQs","./coders/array":"2wlJw","./coders/boolean":"euYzQ","./coders/bytes":"kOE2A","./coders/fixed-bytes":"dNFj2","./coders/null":"2639x","./coders/number":"lHQpm","./coders/string":"44r1i","./coders/tuple":"90ORK","./fragments":"2aRQ2","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"9TMyg":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"checkResultErrors",()=>u),n.export(r,"Coder",()=>d),n.export(r,"Writer",()=>l),n.export(r,"Reader",()=>h);"use strict";var i=e("@ethersproject/bytes"),a=e("@ethersproject/bignumber"),s=e("@ethersproject/properties"),o=e("@ethersproject/logger"),c=e("../_version");let f=new o.Logger(c.version);function u(e){let t=[],r=function(e,n){if(Array.isArray(n))for(let i in n){let a=e.slice();a.push(i);try{r(a,n[i])}catch(e){t.push({path:a,error:e})}}};return r([],e),t}class d{constructor(e,t,r,n){this.name=e,this.type=t,this.localName=r,this.dynamic=n}_throwError(e,t){f.throwArgumentError(e,this.localName,t)}}class l{constructor(e){(0,s.defineReadOnly)(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}get data(){return(0,i.hexConcat)(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((0,i.concat)(e._data))}writeBytes(e){let t=(0,i.arrayify)(e),r=t.length%this.wordSize;return r&&(t=(0,i.concat)([t,this._padding.slice(r)])),this._writeData(t)}_getValue(e){let t=(0,i.arrayify)((0,a.BigNumber).from(e));return t.length>this.wordSize&&f.throwError("value out-of-bounds",o.Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=(0,i.concat)([this._padding.slice(t.length%this.wordSize),t])),t}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){let e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,t=>{this._data[e]=this._getValue(t)}}}class h{constructor(e,t,r,n){(0,s.defineReadOnly)(this,"_data",(0,i.arrayify)(e)),(0,s.defineReadOnly)(this,"wordSize",t||32),(0,s.defineReadOnly)(this,"_coerceFunc",r),(0,s.defineReadOnly)(this,"allowLoose",n),this._offset=0}get data(){return(0,i.hexlify)(this._data)}get consumed(){return this._offset}static coerce(e,t){let r=e.match("^u?int([0-9]+)$");return r&&48>=parseInt(r[1])&&(t=t.toNumber()),t}coerce(e,t){return this._coerceFunc?this._coerceFunc(e,t):h.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:f.throwError("data out-of-bounds",o.Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+n})),this._data.slice(this._offset,this._offset+n)}subReader(e){return new h(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(0,a.BigNumber).from(this.readBytes(this.wordSize))}}},{"@ethersproject/bytes":"19SwW","@ethersproject/bignumber":"hIcBX","@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","../_version":"6avgg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gmOQs:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"AddressCoder",()=>o);"use strict";var i=e("@ethersproject/address"),a=e("@ethersproject/bytes"),s=e("./abstract-coder");class o extends s.Coder{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){try{t=(0,i.getAddress)(t)}catch(e){this._throwError(e.message,t)}return e.writeValue(t)}decode(e){return(0,i.getAddress)((0,a.hexZeroPad)(e.readValue().toHexString(),20))}}},{"@ethersproject/address":"7BZuS","@ethersproject/bytes":"19SwW","./abstract-coder":"9TMyg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"7BZuS":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"getAddress",()=>m),n.export(r,"isAddress",()=>b),n.export(r,"getIcapAddress",()=>g),n.export(r,"getContractAddress",()=>y),n.export(r,"getCreate2Address",()=>v);"use strict";var i=e("@ethersproject/bytes"),a=e("@ethersproject/bignumber"),s=e("@ethersproject/keccak256"),o=e("@ethersproject/rlp"),c=e("@ethersproject/logger"),f=e("./_version");let u=new c.Logger(f.version);function d(e){(0,i.isHexString)(e,20)||u.throwArgumentError("invalid address","address",e),e=e.toLowerCase();let t=e.substring(2).split(""),r=new Uint8Array(40);for(let e=0;e<40;e++)r[e]=t[e].charCodeAt(0);let n=(0,i.arrayify)((0,s.keccak256)(r));for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&(t[e]=t[e].toUpperCase()),(15&n[e>>1])>=8&&(t[e+1]=t[e+1].toUpperCase());return"0x"+t.join("")}let l={};for(let e=0;e<10;e++)l[String(e)]=String(e);for(let e=0;e<26;e++)l[String.fromCharCode(65+e)]=String(10+e);let h=Math.floor(Math.log10?Math.log10(9007199254740991):Math.log(9007199254740991)/Math.LN10);function p(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map(e=>l[e]).join("");for(;t.length>=h;){let e=t.substring(0,h);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 m(e){let t=null;if("string"!=typeof e&&u.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=d(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&u.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)!==p(e)&&u.throwArgumentError("bad icap checksum","address",e),t=(0,a._base36To16)(e.substring(4));t.length<40;)t="0"+t;t=d("0x"+t)}else u.throwArgumentError("invalid address","address",e);return t}function b(e){try{return m(e),!0}catch(e){}return!1}function g(e){let t=(0,a._base16To36)(m(e).substring(2)).toUpperCase();for(;t.length<30;)t="0"+t;return"XE"+p("XE00"+t)+t}function y(e){let t=null;try{t=m(e.from)}catch(t){u.throwArgumentError("missing from address","transaction",e)}let r=(0,i.stripZeros)((0,i.arrayify)((0,a.BigNumber).from(e.nonce).toHexString()));return m((0,i.hexDataSlice)((0,s.keccak256)((0,o.encode)([t,r])),12))}function v(e,t,r){return 32!==(0,i.hexDataLength)(t)&&u.throwArgumentError("salt must be 32 bytes","salt",t),32!==(0,i.hexDataLength)(r)&&u.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",r),m((0,i.hexDataSlice)((0,s.keccak256)((0,i.concat)(["0xff",m(e),t,r])),12))}},{"@ethersproject/bytes":"19SwW","@ethersproject/bignumber":"hIcBX","@ethersproject/keccak256":"eWtzg","@ethersproject/rlp":"1wlks","@ethersproject/logger":"6NWvR","./_version":"cclNm","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"1wlks":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"encode",()=>u),n.export(r,"decode",()=>h);"use strict";var i=e("@ethersproject/bytes"),a=e("@ethersproject/logger"),s=e("./_version");let o=new a.Logger(s.version);function c(e){let t=[];for(;e;)t.unshift(255&e),e>>=8;return t}function f(e,t,r){let n=0;for(let i=0;it+1+n&&o.throwError("child data too short",a.Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:i}}function l(e,t){if(0===e.length&&o.throwError("data too short",a.Logger.errors.BUFFER_OVERRUN,{}),e[t]>=248){let r=e[t]-247;t+1+r>e.length&&o.throwError("data short segment too short",a.Logger.errors.BUFFER_OVERRUN,{});let n=f(e,t+1,r);return t+1+r+n>e.length&&o.throwError("data long segment too short",a.Logger.errors.BUFFER_OVERRUN,{}),d(e,t,t+1+r,r+n)}if(e[t]>=192){let r=e[t]-192;return t+1+r>e.length&&o.throwError("data array too short",a.Logger.errors.BUFFER_OVERRUN,{}),d(e,t,t+1,r)}if(e[t]>=184){let r=e[t]-183;t+1+r>e.length&&o.throwError("data array too short",a.Logger.errors.BUFFER_OVERRUN,{});let n=f(e,t+1,r);t+1+r+n>e.length&&o.throwError("data array too short",a.Logger.errors.BUFFER_OVERRUN,{});let s=(0,i.hexlify)(e.slice(t+1+r,t+1+r+n));return{consumed:1+r+n,result:s}}if(e[t]>=128){let r=e[t]-128;t+1+r>e.length&&o.throwError("data too short",a.Logger.errors.BUFFER_OVERRUN,{});let n=(0,i.hexlify)(e.slice(t+1,t+1+r));return{consumed:1+r,result:n}}return{consumed:1,result:(0,i.hexlify)(e[t])}}function h(e){let t=(0,i.arrayify)(e),r=l(t,0);return r.consumed!==t.length&&o.throwArgumentError("invalid rlp data","data",e),r.result}},{"@ethersproject/bytes":"19SwW","@ethersproject/logger":"6NWvR","./_version":"AiPnh","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],AiPnh:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="rlp/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],cclNm:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="address/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2wlJw":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"pack",()=>f),n.export(r,"unpack",()=>u),n.export(r,"ArrayCoder",()=>d);"use strict";var i=e("@ethersproject/logger"),a=e("../_version"),s=e("./abstract-coder"),o=e("./anonymous");let c=new i.Logger(a.version);function f(e,t,r){let n=null;if(Array.isArray(r))n=r;else if(r&&"object"==typeof r){let e={};n=t.map(t=>{let n=t.localName;return n||c.throwError("cannot encode object for signature with missing names",i.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),e[n]&&c.throwError("cannot encode object for signature with duplicate names",i.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),e[n]=!0,r[n]})}else c.throwArgumentError("invalid tuple value","tuple",r);t.length!==n.length&&c.throwArgumentError("types/value length mismatch","tuple",r);let a=new s.Writer(e.wordSize),o=new s.Writer(e.wordSize),f=[];return t.forEach((e,t)=>{let r=n[t];if(e.dynamic){let t=o.length;e.encode(o,r);let n=a.writeUpdatableValue();f.push(e=>{n(e+t)})}else e.encode(a,r)}),f.forEach(e=>{e(a.length)}),e.appendWriter(a)+e.appendWriter(o)}function u(e,t){let r=[],n=e.subReader(0);t.forEach(t=>{let a=null;if(t.dynamic){let r=e.readValue(),s=n.subReader(r.toNumber());try{a=t.decode(s)}catch(e){if(e.code===i.Logger.errors.BUFFER_OVERRUN)throw e;(a=e).baseType=t.name,a.name=t.localName,a.type=t.type}}else try{a=t.decode(e)}catch(e){if(e.code===i.Logger.errors.BUFFER_OVERRUN)throw e;(a=e).baseType=t.name,a.name=t.localName,a.type=t.type}void 0!=a&&r.push(a)});let a=t.reduce((e,t)=>{let 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]||("length"===n&&(n="_length"),null!=r[n]))return;let i=r[t];i instanceof Error?Object.defineProperty(r,n,{enumerable:!0,get:()=>{throw i}}):r[n]=i});for(let e=0;e{throw t}})}return Object.freeze(r)}class d extends s.Coder{constructor(e,t,r){let n=e.type+"["+(t>=0?t:"")+"]",i=-1===t||e.dynamic;super("array",n,r,i),this.coder=e,this.length=t}defaultValue(){let e=this.coder.defaultValue(),t=[];for(let r=0;re._data.length&&c.throwError("insufficient data length",i.Logger.errors.BUFFER_OVERRUN,{length:e._data.length,count:t});let r=[];for(let e=0;ea);var i=e("./abstract-coder");"use strict";class a extends i.Coder{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)}}},{"./abstract-coder":"9TMyg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],euYzQ:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"BooleanCoder",()=>a);var i=e("./abstract-coder");"use strict";class a extends i.Coder{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,t){return e.writeValue(t?1:0)}decode(e){return e.coerce(this.type,!e.readValue().isZero())}}},{"./abstract-coder":"9TMyg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],kOE2A:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"DynamicBytesCoder",()=>s),n.export(r,"BytesCoder",()=>o);"use strict";var i=e("@ethersproject/bytes"),a=e("./abstract-coder");class s extends a.Coder{constructor(e,t){super(e,e,t,!0)}defaultValue(){return"0x"}encode(e,t){return t=(0,i.arrayify)(t),e.writeValue(t.length)+e.writeBytes(t)}decode(e){return e.readBytes(e.readValue().toNumber(),!0)}}class o extends s{constructor(e){super("bytes",e)}decode(e){return e.coerce(this.name,(0,i.hexlify)(super.decode(e)))}}},{"@ethersproject/bytes":"19SwW","./abstract-coder":"9TMyg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dNFj2:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"FixedBytesCoder",()=>s);"use strict";var i=e("@ethersproject/bytes"),a=e("./abstract-coder");class s extends a.Coder{constructor(e,t){let r="bytes"+String(e);super(r,r,t,!1),this.size=e}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(e,t){let r=(0,i.arrayify)(t);return r.length!==this.size&&this._throwError("incorrect data length",t),e.writeBytes(r)}decode(e){return e.coerce(this.name,(0,i.hexlify)(e.readBytes(this.size)))}}},{"@ethersproject/bytes":"19SwW","./abstract-coder":"9TMyg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2639x":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"NullCoder",()=>a);var i=e("./abstract-coder");"use strict";class a extends i.Coder{constructor(e){super("null","",e,!1)}defaultValue(){return null}encode(e,t){return null!=t&&this._throwError("not null",t),e.writeBytes([])}decode(e){return e.readBytes(0),e.coerce(this.name,null)}}},{"./abstract-coder":"9TMyg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lHQpm:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"NumberCoder",()=>o);"use strict";var i=e("@ethersproject/bignumber"),a=e("@ethersproject/constants"),s=e("./abstract-coder");class o extends s.Coder{constructor(e,t,r){let n=(t?"int":"uint")+8*e;super(n,n,r,!1),this.size=e,this.signed=t}defaultValue(){return 0}encode(e,t){let r=(0,i.BigNumber).from(t),n=(0,a.MaxUint256).mask(8*e.wordSize);if(this.signed){let e=n.mask(8*this.size-1);(r.gt(e)||r.lt(e.add(a.One).mul(a.NegativeOne)))&&this._throwError("value out-of-bounds",t)}else(r.lt(a.Zero)||r.gt(n.mask(8*this.size)))&&this._throwError("value out-of-bounds",t);return r=r.toTwos(8*this.size).mask(8*this.size),this.signed&&(r=r.fromTwos(8*this.size).toTwos(8*e.wordSize)),e.writeValue(r)}decode(e){let t=e.readValue().mask(8*this.size);return this.signed&&(t=t.fromTwos(8*this.size)),e.coerce(this.name,t)}}},{"@ethersproject/bignumber":"hIcBX","@ethersproject/constants":"cSsuf","./abstract-coder":"9TMyg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"44r1i":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"StringCoder",()=>s);"use strict";var i=e("@ethersproject/strings"),a=e("./bytes");class s extends a.DynamicBytesCoder{constructor(e){super("string",e)}defaultValue(){return""}encode(e,t){return super.encode(e,(0,i.toUtf8Bytes)(t))}decode(e){return(0,i.toUtf8String)(super.decode(e))}}},{"@ethersproject/strings":"edSy2","./bytes":"kOE2A","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"90ORK":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"TupleCoder",()=>s);"use strict";var i=e("./abstract-coder"),a=e("./array");class s extends i.Coder{constructor(e,t){let r=!1,n=[];e.forEach(e=>{e.dynamic&&(r=!0),n.push(e.type)});let i="tuple("+n.join(",")+")";super("tuple",i,t,r),this.coders=e}defaultValue(){let e=[];this.coders.forEach(t=>{e.push(t.defaultValue())});let t=this.coders.reduce((e,t)=>{let r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e},{});return this.coders.forEach((r,n)=>{let i=r.localName;i&&1===t[i]&&("length"===i&&(i="_length"),null==e[i]&&(e[i]=e[n]))}),Object.freeze(e)}encode(e,t){return(0,a.pack)(e,this.coders,t)}decode(e){return e.coerce(this.name,(0,a.unpack)(e,this.coders))}}},{"./abstract-coder":"9TMyg","./array":"2wlJw","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gOFir:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"checkResultErrors",()=>d.checkResultErrors),n.export(r,"LogDescription",()=>b),n.export(r,"TransactionDescription",()=>g),n.export(r,"ErrorDescription",()=>y),n.export(r,"Indexed",()=>v),n.export(r,"Interface",()=>E);"use strict";var i=e("@ethersproject/address"),a=e("@ethersproject/bignumber"),s=e("@ethersproject/bytes"),o=e("@ethersproject/hash"),c=e("@ethersproject/keccak256"),f=e("@ethersproject/properties"),u=e("./abi-coder"),d=e("./coders/abstract-coder"),l=e("./fragments"),h=e("@ethersproject/logger"),p=e("./_version");let m=new h.Logger(p.version);class b extends f.Description{}class g extends f.Description{}class y extends f.Description{}class v extends f.Description{static isIndexed(e){return!!(e&&e._isIndexed)}}let w={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function _(e,t){let r=Error(`deferred error during ABI decoding triggered accessing ${e}`);return r.error=t,r}class E{constructor(e){let t=[];t="string"==typeof e?JSON.parse(e):e,(0,f.defineReadOnly)(this,"fragments",t.map(e=>(0,l.Fragment).from(e)).filter(e=>null!=e)),(0,f.defineReadOnly)(this,"_abiCoder",(0,f.getStatic)(new.target,"getAbiCoder")()),(0,f.defineReadOnly)(this,"functions",{}),(0,f.defineReadOnly)(this,"errors",{}),(0,f.defineReadOnly)(this,"events",{}),(0,f.defineReadOnly)(this,"structs",{}),this.fragments.forEach(e=>{let t=null;switch(e.type){case"constructor":if(this.deploy){m.warn("duplicate definition - constructor");return}(0,f.defineReadOnly)(this,"deploy",e);return;case"function":t=this.functions;break;case"event":t=this.events;break;case"error":t=this.errors;break;default:return}let r=e.format();if(t[r]){m.warn("duplicate definition - "+r);return}t[r]=e}),this.deploy||(0,f.defineReadOnly)(this,"deploy",(0,l.ConstructorFragment).from({payable:!1,type:"constructor"})),(0,f.defineReadOnly)(this,"_isInterface",!0)}format(e){e||(e=l.FormatTypes.full),e===l.FormatTypes.sighash&&m.throwArgumentError("interface does not support formatting sighash","format",e);let t=this.fragments.map(t=>t.format(e));return e===l.FormatTypes.json?JSON.stringify(t.map(e=>JSON.parse(e))):t}static getAbiCoder(){return u.defaultAbiCoder}static getAddress(e){return(0,i.getAddress)(e)}static getSighash(e){return(0,s.hexDataSlice)((0,o.id)(e.format()),0,4)}static getEventTopic(e){return(0,o.id)(e.format())}getFunction(e){if((0,s.isHexString)(e)){for(let t in this.functions)if(e===this.getSighash(t))return this.functions[t];m.throwArgumentError("no matching function","sighash",e)}if(-1===e.indexOf("(")){let t=e.trim(),r=Object.keys(this.functions).filter(e=>e.split("(")[0]===t);return 0===r.length?m.throwArgumentError("no matching function","name",t):r.length>1&&m.throwArgumentError("multiple matching functions","name",t),this.functions[r[0]]}let t=this.functions[(0,l.FunctionFragment).fromString(e).format()];return t||m.throwArgumentError("no matching function","signature",e),t}getEvent(e){if((0,s.isHexString)(e)){let t=e.toLowerCase();for(let e in this.events)if(t===this.getEventTopic(e))return this.events[e];m.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){let t=e.trim(),r=Object.keys(this.events).filter(e=>e.split("(")[0]===t);return 0===r.length?m.throwArgumentError("no matching event","name",t):r.length>1&&m.throwArgumentError("multiple matching events","name",t),this.events[r[0]]}let t=this.events[(0,l.EventFragment).fromString(e).format()];return t||m.throwArgumentError("no matching event","signature",e),t}getError(e){if((0,s.isHexString)(e)){let t=(0,f.getStatic)(this.constructor,"getSighash");for(let r in this.errors){let n=this.errors[r];if(e===t(n))return this.errors[r]}m.throwArgumentError("no matching error","sighash",e)}if(-1===e.indexOf("(")){let t=e.trim(),r=Object.keys(this.errors).filter(e=>e.split("(")[0]===t);return 0===r.length?m.throwArgumentError("no matching error","name",t):r.length>1&&m.throwArgumentError("multiple matching errors","name",t),this.errors[r[0]]}let t=this.errors[(0,l.FunctionFragment).fromString(e).format()];return t||m.throwArgumentError("no matching error","signature",e),t}getSighash(e){if("string"==typeof e)try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch(e){throw t}}return(0,f.getStatic)(this.constructor,"getSighash")(e)}getEventTopic(e){return"string"==typeof e&&(e=this.getEvent(e)),(0,f.getStatic)(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));let r=(0,s.arrayify)(t);return(0,s.hexlify)(r.slice(0,4))!==this.getSighash(e)&&m.throwArgumentError(`data signature does not match error ${e.name}.`,"data",(0,s.hexlify)(r)),this._decodeParams(e.inputs,r.slice(4))}encodeErrorResult(e,t){return"string"==typeof e&&(e=this.getError(e)),(0,s.hexlify)((0,s.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionData(e,t){"string"==typeof e&&(e=this.getFunction(e));let r=(0,s.arrayify)(t);return(0,s.hexlify)(r.slice(0,4))!==this.getSighash(e)&&m.throwArgumentError(`data signature does not match function ${e.name}.`,"data",(0,s.hexlify)(r)),this._decodeParams(e.inputs,r.slice(4))}encodeFunctionData(e,t){return"string"==typeof e&&(e=this.getFunction(e)),(0,s.hexlify)((0,s.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionResult(e,t){"string"==typeof e&&(e=this.getFunction(e));let r=(0,s.arrayify)(t),n=null,i="",a=null,o=null,c=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,r)}catch(e){}break;case 4:{let e=(0,s.hexlify)(r.slice(0,4)),t=w[e];if(t)a=this._abiCoder.decode(t.inputs,r.slice(4)),o=t.name,c=t.signature,t.reason&&(n=a[0]),"Error"===o?i=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(a[0])}`:"Panic"===o&&(i=`; VM Exception while processing transaction: reverted with panic code ${a[0]}`);else try{let t=this.getError(e);a=this._abiCoder.decode(t.inputs,r.slice(4)),o=t.name,c=t.format()}catch(e){}}}return m.throwError("call revert exception"+i,h.Logger.errors.CALL_EXCEPTION,{method:e.format(),data:(0,s.hexlify)(t),errorArgs:a,errorName:o,errorSignature:c,reason:n})}encodeFunctionResult(e,t){return"string"==typeof e&&(e=this.getFunction(e)),(0,s.hexlify)(this._abiCoder.encode(e.outputs,t||[]))}encodeFilterTopics(e,t){"string"==typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&m.throwError("too many arguments for "+e.format(),h.Logger.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});let r=[];e.anonymous||r.push(this.getEventTopic(e));let n=(e,t)=>"string"===e.type?(0,o.id)(t):"bytes"===e.type?(0,c.keccak256)((0,s.hexlify)(t)):("bool"===e.type&&"boolean"==typeof t&&(t=t?"0x01":"0x00"),e.type.match(/^u?int/)&&(t=(0,a.BigNumber).from(t).toHexString()),"address"===e.type&&this._abiCoder.encode(["address"],[t]),(0,s.hexZeroPad)((0,s.hexlify)(t),32));for(t.forEach((t,i)=>{let a=e.inputs[i];if(!a.indexed){null!=t&&m.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+a.name,t);return}null==t?r.push(null):"array"===a.baseType||"tuple"===a.baseType?m.throwArgumentError("filtering with tuples or arrays not supported","contract."+a.name,t):Array.isArray(t)?r.push(t.map(e=>n(a,e))):r.push(n(a,t))});r.length&&null===r[r.length-1];)r.pop();return r}encodeEventLog(e,t){"string"==typeof e&&(e=this.getEvent(e));let r=[],n=[],i=[];return e.anonymous||r.push(this.getEventTopic(e)),t.length!==e.inputs.length&&m.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach((e,a)=>{let s=t[a];if(e.indexed){if("string"===e.type)r.push((0,o.id)(s));else if("bytes"===e.type)r.push((0,c.keccak256)(s));else if("tuple"===e.baseType||"array"===e.baseType)throw Error("not implemented");else r.push(this._abiCoder.encode([e.type],[s]))}else n.push(e),i.push(s)}),{data:this._abiCoder.encode(n,i),topics:r}}decodeEventLog(e,t,r){if("string"==typeof e&&(e=this.getEvent(e)),null!=r&&!e.anonymous){let t=this.getEventTopic(e);(0,s.isHexString)(r[0],32)&&r[0].toLowerCase()===t||m.throwError("fragment/topic mismatch",h.Logger.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:t,value:r[0]}),r=r.slice(1)}let n=[],i=[],a=[];e.inputs.forEach((e,t)=>{e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(n.push((0,l.ParamType).fromObject({type:"bytes32",name:e.name})),a.push(!0)):(n.push(e),a.push(!1)):(i.push(e),a.push(!1))});let o=null!=r?this._abiCoder.decode(n,(0,s.concat)(r)):null,c=this._abiCoder.decode(i,t,!0),f=[],u=0,d=0;e.inputs.forEach((e,t)=>{if(e.indexed){if(null==o)f[t]=new v({_isIndexed:!0,hash:null});else if(a[t])f[t]=new v({_isIndexed:!0,hash:o[d++]});else try{f[t]=o[d++]}catch(e){f[t]=e}}else try{f[t]=c[u++]}catch(e){f[t]=e}if(e.name&&null==f[e.name]){let r=f[t];r instanceof Error?Object.defineProperty(f,e.name,{enumerable:!0,get:()=>{throw _(`property ${JSON.stringify(e.name)}`,r)}}):f[e.name]=r}});for(let e=0;e{throw _(`index ${e}`,t)}})}return Object.freeze(f)}parseTransaction(e){let t=this.getFunction(e.data.substring(0,10).toLowerCase());return t?new g({args:this._abiCoder.decode(t.inputs,"0x"+e.data.substring(10)),functionFragment:t,name:t.name,signature:t.format(),sighash:this.getSighash(t),value:(0,a.BigNumber).from(e.value||"0")}):null}parseLog(e){let t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new b({eventFragment:t,name:t.name,signature:t.format(),topic:this.getEventTopic(t),args:this.decodeEventLog(t,e.data,e.topics)})}parseError(e){let t=(0,s.hexlify)(e),r=this.getError(t.substring(0,10).toLowerCase());return r?new y({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)}}},{"@ethersproject/address":"7BZuS","@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/hash":"jLDfB","@ethersproject/keccak256":"eWtzg","@ethersproject/properties":"dmdV5","./abi-coder":"eiswb","./coders/abstract-coder":"9TMyg","./fragments":"2aRQ2","@ethersproject/logger":"6NWvR","./_version":"6avgg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],jLDfB:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"id",()=>i.id),n.export(r,"dnsEncode",()=>a.dnsEncode),n.export(r,"namehash",()=>a.namehash),n.export(r,"isValidName",()=>a.isValidName),n.export(r,"ensNormalize",()=>a.ensNormalize),n.export(r,"messagePrefix",()=>s.messagePrefix),n.export(r,"hashMessage",()=>s.hashMessage),n.export(r,"_TypedDataEncoder",()=>o.TypedDataEncoder);"use strict";var i=e("./id"),a=e("./namehash"),s=e("./message"),o=e("./typed-data")},{"./id":"h8d98","./namehash":"85tDg","./message":"dncJF","./typed-data":"keHK9","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],h8d98:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"id",()=>s);var i=e("@ethersproject/keccak256"),a=e("@ethersproject/strings");function s(e){return(0,i.keccak256)((0,a.toUtf8Bytes)(e))}},{"@ethersproject/keccak256":"eWtzg","@ethersproject/strings":"edSy2","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"85tDg":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ensNormalize",()=>p),n.export(r,"isValidName",()=>m),n.export(r,"namehash",()=>b),n.export(r,"dnsEncode",()=>g);var i=e("@ethersproject/bytes"),a=e("@ethersproject/strings"),s=e("@ethersproject/keccak256"),o=e("@ethersproject/logger"),c=e("./_version"),f=e("./ens-normalize/lib");let u=new o.Logger(c.version),d=new Uint8Array(32);function l(e){if(0===e.length)throw Error("invalid ENS name; empty component");return e}function h(e){let t=(0,a.toUtf8Bytes)((0,f.ens_normalize)(e)),r=[];if(0===e.length)return r;let n=0;for(let e=0;e=t.length)throw Error("invalid ENS name; empty component");return r.push(l(t.slice(n))),r}function p(e){return h(e).map(e=>(0,a.toUtf8String)(e)).join(".")}function m(e){try{return 0!==h(e).length}catch(e){}return!1}function b(e){"string"!=typeof e&&u.throwArgumentError("invalid ENS name; not a string","name",e);let t=d,r=h(e);for(;r.length;)t=(0,s.keccak256)((0,i.concat)([t,(0,s.keccak256)(r.pop())]));return(0,i.hexlify)(t)}function g(e){return(0,i.hexlify)((0,i.concat)(h(e).map(e=>{if(e.length>63)throw Error("invalid DNS encoded entry; length exceeds 63 bytes");let t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t})))+"00"}d.fill(0)},{"@ethersproject/bytes":"19SwW","@ethersproject/strings":"edSy2","@ethersproject/keccak256":"eWtzg","@ethersproject/logger":"6NWvR","./_version":"kPmfv","./ens-normalize/lib":"gBi5u","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],kPmfv:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="hash/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gBi5u:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ens_normalize_post_check",()=>p),n.export(r,"ens_normalize",()=>m);var i=e("@ethersproject/strings"),a=e("./include.js"),s=e("./decoder.js");let o=(0,a.getData)(),c=new Set((0,s.read_member_array)(o)),f=new Set((0,s.read_member_array)(o)),u=(0,s.read_mapped_map)(o),d=(0,s.read_emoji_trie)(o);function l(e){return(0,i.toUtf8CodePoints)(e)}function h(e){return e.filter(e=>65039!=e)}function p(e){for(let t of e.split(".")){let e=l(t);try{for(let t=e.lastIndexOf(95)-1;t>=0;t--)if(95!==e[t])throw Error("underscore only allowed at start");if(e.length>=4&&e.every(e=>e<128)&&45===e[2]&&45===e[3])throw Error("invalid label extension")}catch(e){throw Error(`Invalid label "${t}": ${e.message}`)}}return e}function m(e){return p(function(e,t){let r=l(e).reverse(),n=[];for(;r.length;){let e=function(e,t){var r;let n,i;let a=d,s=[],o=e.length;for(t&&(t.length=0);o;){let c=e[--o];if(!(a=null===(r=a.branches.find(e=>e.set.has(c)))||void 0===r?void 0:r.node))break;if(a.save)i=c;else if(a.check&&c===i)break;s.push(c),a.fe0f&&(s.push(65039),o>0&&65039==e[o-1]&&o--),a.valid&&(n=s.slice(),2==a.valid&&n.splice(1,1),t&&t.push(...e.slice(o).reverse()),e.length=o)}return n}(r);if(e){n.push(...t(e));continue}let i=r.pop();if(c.has(i)){n.push(i);continue}if(f.has(i))continue;let a=u[i];if(a){n.push(...a);continue}throw Error(`Disallowed codepoint: 0x${i.toString(16).toUpperCase()}`)}return p(String.fromCodePoint(...n).normalize("NFC"))}(e,h))}},{"@ethersproject/strings":"edSy2","./include.js":"1Wgfv","./decoder.js":"akoWw","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"1Wgfv":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"getData",()=>s);var i=e("@ethersproject/base64"),a=e("./decoder.js");function s(){return(0,a.read_compressed_payload)((0,i.decode)("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=="))}},{"@ethersproject/base64":"dIiCi","./decoder.js":"akoWw","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dIiCi:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"decode",()=>i.decode),n.export(r,"encode",()=>i.encode);var i=e("./base64");"use strict"},{"./base64":"14I0X","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"14I0X":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"decode",()=>a),n.export(r,"encode",()=>s);var i=e("@ethersproject/bytes");"use strict";function a(e){e=atob(e);let t=[];for(let r=0;r0&&Array.isArray(e)?i(e,t-1):r.push(e)})};return i(e,t),r}function a(e){let t=0;function r(){return e[t++]<<8|e[t++]}let n=r(),i=1,a=[0,1];for(let e=1;e>--c&1}let d=0;for(let e=0;e<31;e++)d=d<<1|u();let l=[],h=0,p=2147483648;for(;;){let e=Math.floor(((d-h+1)*i-1)/p),t=0,r=n;for(;r-t>1;){let n=t+r>>>1;e{switch(t-m){case 3:return m+65792+(e[o++]<<16|e[o++]<<8|e[o++]);case 2:return m+256+(e[o++]<<8|e[o++]);case 1:return m+e[o++];default:return t-1}})}function s(e){let t=0;return()=>e[t++]}function o(e){return s(a(e))}function c(e){return 1&e?~e>>1:e>>1}function f(e,t){let r=Array(e);for(let n=0,i=-1;nt[e]):r}function d(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(function(e,t){let r=1+t(),n=t(),a=l(t);return i(h(a.length,1+e,t).map((e,t)=>{let i=e[0],s=e.slice(1);return Array(a[t]).fill(void 0).map((e,t)=>{let a=t*n;return[i+t*r,s.map(e=>e+a)]})}))}(r,e))}for(;;){let r=e()-1;if(r<0)break;t.push(h(1+e(),1+r,e).map(e=>[e[0],e.slice(1)]))}return function(e){let t={};for(let r=0;r[]);for(let i=0;in[t].push(e));return n}function p(e){let t=u(e).sort((e,t)=>e-t);return function r(){let n=[];for(;;){let i=u(e,t);if(0==i.length)break;n.push({set:new Set(i),node:r()})}n.sort((e,t)=>t.set.size-e.set.size);let i=e();return{branches:n,valid:i%3,fe0f:!!(1&(i=i/3|0)),save:1==(i>>=1),check:2==i}}()}n.defineInteropFlag(r),n.export(r,"decode_arithmetic",()=>a),n.export(r,"read_payload",()=>s),n.export(r,"read_compressed_payload",()=>o),n.export(r,"signed",()=>c),n.export(r,"read_member_array",()=>u),n.export(r,"read_mapped_map",()=>d),n.export(r,"read_zero_terminated_array",()=>l),n.export(r,"read_emoji_trie",()=>p)},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dncJF:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"messagePrefix",()=>o),n.export(r,"hashMessage",()=>c);var i=e("@ethersproject/bytes"),a=e("@ethersproject/keccak256"),s=e("@ethersproject/strings");let o="\x19Ethereum Signed Message:\n";function c(e){return"string"==typeof e&&(e=(0,s.toUtf8Bytes)(e)),(0,a.keccak256)((0,i.concat)([(0,s.toUtf8Bytes)(o),(0,s.toUtf8Bytes)(String(e.length)),e]))}},{"@ethersproject/bytes":"19SwW","@ethersproject/keccak256":"eWtzg","@ethersproject/strings":"edSy2","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],keHK9:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"TypedDataEncoder",()=>x);var i=e("@ethersproject/address"),a=e("@ethersproject/bignumber"),s=e("@ethersproject/bytes"),o=e("@ethersproject/keccak256"),c=e("@ethersproject/properties"),f=e("@ethersproject/logger"),u=e("./_version"),d=e("./id");let l=new f.Logger(u.version),h=new Uint8Array(32);h.fill(0);let p=(0,a.BigNumber).from(-1),m=(0,a.BigNumber).from(0),b=(0,a.BigNumber).from(1),g=(0,a.BigNumber).from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),y=(0,s.hexZeroPad)(b.toHexString(),32),v=(0,s.hexZeroPad)(m.toHexString(),32),w={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},_=["name","version","chainId","verifyingContract","salt"];function E(e){return function(t){return"string"!=typeof t&&l.throwArgumentError(`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}let A={name:E("name"),version:E("version"),chainId:function(e){try{return(0,a.BigNumber).from(e).toString()}catch(e){}return l.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",e)},verifyingContract:function(e){try{return(0,i.getAddress)(e).toLowerCase()}catch(e){}return l.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){try{let t=(0,s.arrayify)(e);if(32!==t.length)throw Error("bad length");return(0,s.hexlify)(t)}catch(e){}return l.throwArgumentError('invalid domain value "salt"',"domain.salt",e)}};function M(e){{let t=e.match(/^(u?)int(\d*)$/);if(t){let r=""===t[1],n=parseInt(t[2]||"256");(n%8!=0||n>256||t[2]&&t[2]!==String(n))&&l.throwArgumentError("invalid numeric width","type",e);let i=g.mask(r?n-1:n),o=r?i.add(b).mul(p):m;return function(t){let r=(0,a.BigNumber).from(t);return(r.lt(o)||r.gt(i))&&l.throwArgumentError(`value out-of-bounds for ${e}`,"value",t),(0,s.hexZeroPad)(r.toTwos(256).toHexString(),32)}}}{let t=e.match(/^bytes(\d+)$/);if(t){let r=parseInt(t[1]);return(0===r||r>32||t[1]!==String(r))&&l.throwArgumentError("invalid bytes width","type",e),function(t){let n=(0,s.arrayify)(t);return n.length!==r&&l.throwArgumentError(`invalid length for ${e}`,"value",t),function(e){let t=(0,s.arrayify)(e),r=t.length%32;return r?(0,s.hexConcat)([t,h.slice(r)]):(0,s.hexlify)(t)}(t)}}}switch(e){case"address":return function(e){return(0,s.hexZeroPad)((0,i.getAddress)(e),32)};case"bool":return function(e){return e?y:v};case"bytes":return function(e){return(0,o.keccak256)(e)};case"string":return function(e){return(0,d.id)(e)}}return null}function S(e,t){return`${e}(${t.map(({name:e,type:t})=>t+" "+e).join(",")})`}class x{constructor(e){(0,c.defineReadOnly)(this,"types",Object.freeze((0,c.deepCopy)(e))),(0,c.defineReadOnly)(this,"_encoderCache",{}),(0,c.defineReadOnly)(this,"_types",{});let t={},r={},n={};for(let i in Object.keys(e).forEach(e=>{t[e]={},r[e]=[],n[e]={}}),e){let n={};e[i].forEach(a=>{n[a.name]&&l.throwArgumentError(`duplicate variable name ${JSON.stringify(a.name)} in ${JSON.stringify(i)}`,"types",e),n[a.name]=!0;let s=a.type.match(/^([^\x5b]*)(\x5b|$)/)[1];s===i&&l.throwArgumentError(`circular type reference to ${JSON.stringify(s)}`,"types",e);let o=M(s);o||(r[s]||l.throwArgumentError(`unknown type ${JSON.stringify(s)}`,"types",e),r[s].push(i),t[i][s]=!0)})}let i=Object.keys(r).filter(e=>0===r[e].length);for(let a in 0===i.length?l.throwArgumentError("missing primary type","types",e):i.length>1&&l.throwArgumentError(`ambiguous primary types or unused types: ${i.map(e=>JSON.stringify(e)).join(", ")}`,"types",e),(0,c.defineReadOnly)(this,"primaryType",i[0]),!function i(a,s){s[a]&&l.throwArgumentError(`circular type reference to ${JSON.stringify(a)}`,"types",e),s[a]=!0,Object.keys(t[a]).forEach(e=>{r[e]&&(i(e,s),Object.keys(s).forEach(t=>{n[t][e]=!0}))}),delete s[a]}(this.primaryType,{}),n){let t=Object.keys(n[a]);t.sort(),this._types[a]=S(a,e[a])+t.map(t=>S(t,e[t])).join("")}}getEncoder(e){let t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t}_getEncoder(e){{let t=M(e);if(t)return t}let t=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(t){let e=t[1],r=this.getEncoder(e),n=parseInt(t[3]);return t=>{n>=0&&t.length!==n&&l.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t);let i=t.map(r);return this._types[e]&&(i=i.map(o.keccak256)),(0,o.keccak256)((0,s.hexConcat)(i))}}let r=this.types[e];if(r){let t=(0,d.id)(this._types[e]);return e=>{let n=r.map(({name:t,type:r})=>{let n=this.getEncoder(r)(e[t]);return this._types[r]?(0,o.keccak256)(n):n});return n.unshift(t),(0,s.hexConcat)(n)}}return l.throwArgumentError(`unknown type: ${e}`,"type",e)}encodeType(e){let t=this._types[e];return t||l.throwArgumentError(`unknown type: ${JSON.stringify(e)}`,"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return(0,o.keccak256)(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,r){{let n=M(e);if(n)return r(e,t)}let n=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){let e=n[1],i=parseInt(n[3]);return i>=0&&t.length!==i&&l.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map(t=>this._visit(e,t,r))}let i=this.types[e];return i?i.reduce((e,{name:n,type:i})=>(e[n]=this._visit(i,t[n],r),e),{}):l.throwArgumentError(`unknown type: ${e}`,"type",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new x(e)}static getPrimaryType(e){return x.from(e).primaryType}static hashStruct(e,t,r){return x.from(t).hashStruct(e,r)}static hashDomain(e){let t=[];for(let r in e){let n=w[r];n||l.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",e),t.push({name:r,type:n})}return t.sort((e,t)=>_.indexOf(e.name)-_.indexOf(t.name)),x.hashStruct("EIP712Domain",{EIP712Domain:t},e)}static encode(e,t,r){return(0,s.hexConcat)(["0x1901",x.hashDomain(e),x.from(t).hash(r)])}static hash(e,t,r){return(0,o.keccak256)(x.encode(e,t,r))}static resolveNames(e,t,r,n){var i,a,o,f;return i=this,a=void 0,o=void 0,f=function*(){e=(0,c.shallowCopy)(e);let i={};e.verifyingContract&&!(0,s.isHexString)(e.verifyingContract,20)&&(i[e.verifyingContract]="0x");let a=x.from(t);for(let e in a.visit(r,(e,t)=>("address"!==e||(0,s.isHexString)(t,20)||(i[t]="0x"),t)),i)i[e]=yield n(e);return e.verifyingContract&&i[e.verifyingContract]&&(e.verifyingContract=i[e.verifyingContract]),{domain:e,value:r=a.visit(r,(e,t)=>"address"===e&&i[t]?i[t]:t)}},new(o||(o=Promise))(function(e,t){function r(e){try{s(f.next(e))}catch(e){t(e)}}function n(e){try{s(f.throw(e))}catch(e){t(e)}}function s(t){var i;t.done?e(t.value):((i=t.value)instanceof o?i:new o(function(e){e(i)})).then(r,n)}s((f=f.apply(i,a||[])).next())})}static getPayload(e,t,r){x.hashDomain(e);let n={},i=[];_.forEach(t=>{let r=e[t];null!=r&&(n[t]=A[t](r),i.push({name:t,type:w[t]}))});let o=x.from(t),f=(0,c.shallowCopy)(t);return f.EIP712Domain?l.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",t):f.EIP712Domain=i,o.encode(r),{types:f,domain:n,primaryType:o.primaryType,message:o.visit(r,(e,t)=>{if(e.match(/^bytes(\d*)/))return(0,s.hexlify)((0,s.arrayify)(t));if(e.match(/^u?int/))return(0,a.BigNumber).from(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return"string"!=typeof t&&l.throwArgumentError("invalid string","value",t),t}return l.throwArgumentError("unsupported type","type",e)})}}}},{"@ethersproject/address":"7BZuS","@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/keccak256":"eWtzg","@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","./_version":"kPmfv","./id":"h8d98","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],imf57:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ForkEvent",()=>u),n.export(r,"BlockForkEvent",()=>d),n.export(r,"TransactionForkEvent",()=>l),n.export(r,"TransactionOrderForkEvent",()=>h),n.export(r,"Provider",()=>p);"use strict";var i=e("@ethersproject/bignumber"),a=e("@ethersproject/bytes"),s=e("@ethersproject/properties"),o=e("@ethersproject/logger"),c=e("./_version");let f=new o.Logger(c.version);class u extends s.Description{static isForkEvent(e){return!!(e&&e._isForkEvent)}}class d extends u{constructor(e,t){(0,a.isHexString)(e,32)||f.throwArgumentError("invalid blockHash","blockHash",e),super({_isForkEvent:!0,_isBlockForkEvent:!0,expiry:t||0,blockHash:e})}}class l extends u{constructor(e,t){(0,a.isHexString)(e,32)||f.throwArgumentError("invalid transaction hash","hash",e),super({_isForkEvent:!0,_isTransactionForkEvent:!0,expiry:t||0,hash:e})}}class h extends u{constructor(e,t,r){(0,a.isHexString)(e,32)||f.throwArgumentError("invalid transaction hash","beforeHash",e),(0,a.isHexString)(t,32)||f.throwArgumentError("invalid transaction hash","afterHash",t),super({_isForkEvent:!0,_isTransactionOrderForkEvent:!0,expiry:r||0,beforeHash:e,afterHash:t})}}class p{constructor(){f.checkAbstract(new.target,p),(0,s.defineReadOnly)(this,"_isProvider",!0)}getFeeData(){var e,t,r,n;return e=this,t=void 0,r=void 0,n=function*(){let{block:e,gasPrice:t}=yield(0,s.resolveProperties)({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(e=>null)}),r=null,n=null,a=null;return e&&e.baseFeePerGas&&(r=e.baseFeePerGas,a=(0,i.BigNumber).from("1500000000"),n=e.baseFeePerGas.mul(2).add(a)),{lastBaseFeePerGas:r,maxFeePerGas:n,maxPriorityFeePerGas:a,gasPrice:t}},new(r||(r=Promise))(function(i,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function o(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}c((n=n.apply(e,t||[])).next())})}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}static isProvider(e){return!!(e&&e._isProvider)}}},{"@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","./_version":"4ztCP","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"4ztCP":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="abstract-provider/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],j6EbC:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Signer",()=>d),n.export(r,"VoidSigner",()=>l);"use strict";var i=e("@ethersproject/properties"),a=e("@ethersproject/logger"),s=e("./_version"),o=function(e,t,r,n){return new(r||(r=Promise))(function(i,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function o(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}c((n=n.apply(e,t||[])).next())})};let c=new a.Logger(s.version),f=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],u=[a.Logger.errors.INSUFFICIENT_FUNDS,a.Logger.errors.NONCE_EXPIRED,a.Logger.errors.REPLACEMENT_UNDERPRICED];class d{constructor(){c.checkAbstract(new.target,d),(0,i.defineReadOnly)(this,"_isSigner",!0)}getBalance(e){return o(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)})}getTransactionCount(e){return o(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)})}estimateGas(e){return o(this,void 0,void 0,function*(){this._checkProvider("estimateGas");let t=yield(0,i.resolveProperties)(this.checkTransaction(e));return yield this.provider.estimateGas(t)})}call(e,t){return o(this,void 0,void 0,function*(){this._checkProvider("call");let r=yield(0,i.resolveProperties)(this.checkTransaction(e));return yield this.provider.call(r,t)})}sendTransaction(e){return o(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");let t=yield this.populateTransaction(e),r=yield this.signTransaction(t);return yield this.provider.sendTransaction(r)})}getChainId(){return o(this,void 0,void 0,function*(){this._checkProvider("getChainId");let e=yield this.provider.getNetwork();return e.chainId})}getGasPrice(){return o(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return o(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(e){return o(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)})}checkTransaction(e){for(let t in e)-1===f.indexOf(t)&&c.throwArgumentError("invalid transaction key: "+t,"transaction",e);let t=(0,i.shallowCopy)(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()&&c.throwArgumentError("from address mismatch","transaction",e),t[0])),t}populateTransaction(e){return o(this,void 0,void 0,function*(){let t=yield(0,i.resolveProperties)(this.checkTransaction(e));null!=t.to&&(t.to=Promise.resolve(t.to).then(e=>o(this,void 0,void 0,function*(){if(null==e)return null;let t=yield this.resolveName(e);return null==t&&c.throwArgumentError("provided ENS name resolves to null","tx.to",e),t})),t.to.catch(e=>{}));let r=null!=t.maxFeePerGas||null!=t.maxPriorityFeePerGas;if(null!=t.gasPrice&&(2===t.type||r)?c.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e):(0===t.type||1===t.type)&&r&&c.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e),(2===t.type||null==t.type)&&null!=t.maxFeePerGas&&null!=t.maxPriorityFeePerGas)t.type=2;else if(0===t.type||1===t.type)null==t.gasPrice&&(t.gasPrice=this.getGasPrice());else{let e=yield this.getFeeData();if(null==t.type){if(null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas){if(t.type=2,null!=t.gasPrice){let 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&&c.throwError("network does not support EIP-1559",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==t.gasPrice&&(t.gasPrice=e.gasPrice),t.type=0):c.throwError("failed to get consistent fee data",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"})}else 2===t.type&&(null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas))}return null==t.nonce&&(t.nonce=this.getTransactionCount("pending")),null==t.gasLimit&&(t.gasLimit=this.estimateGas(t).catch(e=>{if(u.indexOf(e.code)>=0)throw e;return c.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",a.Logger.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]&&c.throwArgumentError("chainId address mismatch","transaction",e),t[0])),yield(0,i.resolveProperties)(t)})}_checkProvider(e){this.provider||c.throwError("missing provider",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!!(e&&e._isSigner)}}class l extends d{constructor(e,t){super(),(0,i.defineReadOnly)(this,"address",e),(0,i.defineReadOnly)(this,"provider",t||null)}getAddress(){return Promise.resolve(this.address)}_fail(e,t){return Promise.resolve().then(()=>{c.throwError(e,a.Logger.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 l(this.address,e)}}},{"@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","./_version":"9OQFK","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"9OQFK":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="abstract-signer/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],ctBdV:[function(e,t,r){var n,i,a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(r),a.export(r,"TransactionTypes",()=>i),a.export(r,"computeAddress",()=>_),a.export(r,"recoverAddress",()=>E),a.export(r,"accessListify",()=>S),a.export(r,"serialize",()=>R),a.export(r,"parse",()=>C);"use strict";var s=e("@ethersproject/address"),o=e("@ethersproject/bignumber"),c=e("@ethersproject/bytes"),f=e("@ethersproject/constants"),u=e("@ethersproject/keccak256"),d=e("@ethersproject/properties"),l=e("@ethersproject/rlp"),h=e("@ethersproject/signing-key"),p=e("@ethersproject/logger"),m=e("./_version");let b=new p.Logger(m.version);function g(e){return"0x"===e?null:(0,s.getAddress)(e)}function y(e){return"0x"===e?f.Zero:(0,o.BigNumber).from(e)}(n=i||(i={}))[n.legacy=0]="legacy",n[n.eip2930=1]="eip2930",n[n.eip1559=2]="eip1559";let v=[{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"}],w={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function _(e){let t=(0,h.computePublicKey)(e);return(0,s.getAddress)((0,c.hexDataSlice)((0,u.keccak256)((0,c.hexDataSlice)(t,1)),12))}function E(e,t){return _((0,h.recoverPublicKey)((0,c.arrayify)(e),t))}function A(e,t){let r=(0,c.stripZeros)((0,o.BigNumber).from(e).toHexString());return r.length>32&&b.throwArgumentError("invalid length for "+t,"transaction:"+t,e),r}function M(e,t){return{address:(0,s.getAddress)(e),storageKeys:(t||[]).map((t,r)=>(32!==(0,c.hexDataLength)(t)&&b.throwArgumentError("invalid access list storageKey",`accessList[${e}:${r}]`,t),t.toLowerCase()))}}function S(e){if(Array.isArray(e))return e.map((e,t)=>Array.isArray(e)?(e.length>2&&b.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${t}]`,e),M(e[0],e[1])):M(e.address,e.storageKeys));let t=Object.keys(e).map(t=>{let r=e[t].reduce((e,t)=>(e[t]=!0,e),{});return M(t,Object.keys(r).sort())});return t.sort((e,t)=>e.address.localeCompare(t.address)),t}function x(e){return S(e).map(e=>[e.address,e.storageKeys])}function T(e,t){if(null!=e.gasPrice){let t=(0,o.BigNumber).from(e.gasPrice),r=(0,o.BigNumber).from(e.maxFeePerGas||0);t.eq(r)||b.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:t,maxFeePerGas:r})}let r=[A(e.chainId||0,"chainId"),A(e.nonce||0,"nonce"),A(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),A(e.maxFeePerGas||0,"maxFeePerGas"),A(e.gasLimit||0,"gasLimit"),null!=e.to?(0,s.getAddress)(e.to):"0x",A(e.value||0,"value"),e.data||"0x",x(e.accessList||[])];if(t){let e=(0,c.splitSignature)(t);r.push(A(e.recoveryParam,"recoveryParam")),r.push((0,c.stripZeros)(e.r)),r.push((0,c.stripZeros)(e.s))}return(0,c.hexConcat)(["0x02",l.encode(r)])}function k(e,t){let r=[A(e.chainId||0,"chainId"),A(e.nonce||0,"nonce"),A(e.gasPrice||0,"gasPrice"),A(e.gasLimit||0,"gasLimit"),null!=e.to?(0,s.getAddress)(e.to):"0x",A(e.value||0,"value"),e.data||"0x",x(e.accessList||[])];if(t){let e=(0,c.splitSignature)(t);r.push(A(e.recoveryParam,"recoveryParam")),r.push((0,c.stripZeros)(e.r)),r.push((0,c.stripZeros)(e.s))}return(0,c.hexConcat)(["0x01",l.encode(r)])}function R(e,t){if(null==e.type||0===e.type)return null!=e.accessList&&b.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",e),function(e,t){(0,d.checkProperties)(e,w);let r=[];v.forEach(function(t){let n=e[t.name]||[],i={};t.numeric&&(i.hexPad="left"),n=(0,c.arrayify)((0,c.hexlify)(n,i)),t.length&&n.length!==t.length&&n.length>0&&b.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,n),t.maxLength&&(n=(0,c.stripZeros)(n)).length>t.maxLength&&b.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,n),r.push((0,c.hexlify)(n))});let n=0;if(null!=e.chainId?"number"!=typeof(n=e.chainId)&&b.throwArgumentError("invalid transaction.chainId","transaction",e):t&&!(0,c.isBytesLike)(t)&&t.v>28&&(n=Math.floor((t.v-35)/2)),0!==n&&(r.push((0,c.hexlify)(n)),r.push("0x"),r.push("0x")),!t)return l.encode(r);let i=(0,c.splitSignature)(t),a=27+i.recoveryParam;return 0!==n?(r.pop(),r.pop(),r.pop(),a+=2*n+8,i.v>28&&i.v!==a&&b.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t)):i.v!==a&&b.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t),r.push((0,c.hexlify)(a)),r.push((0,c.stripZeros)((0,c.arrayify)(i.r))),r.push((0,c.stripZeros)((0,c.arrayify)(i.s))),l.encode(r)}(e,t);switch(e.type){case 1:return k(e,t);case 2:return T(e,t)}return b.throwError(`unsupported transaction type: ${e.type}`,p.Logger.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:e.type})}function I(e,t,r){try{let r=y(t[0]).toNumber();if(0!==r&&1!==r)throw Error("bad recid");e.v=r}catch(e){b.throwArgumentError("invalid v for transaction type: 1","v",t[0])}e.r=(0,c.hexZeroPad)(t[1],32),e.s=(0,c.hexZeroPad)(t[2],32);try{let t=(0,u.keccak256)(r(e));e.from=E(t,{r:e.r,s:e.s,recoveryParam:e.v})}catch(e){}}function C(e){let t=(0,c.arrayify)(e);if(t[0]>127)return function(e){let t=l.decode(e);9!==t.length&&6!==t.length&&b.throwArgumentError("invalid raw transaction","rawTransaction",e);let r={nonce:y(t[0]).toNumber(),gasPrice:y(t[1]),gasLimit:y(t[2]),to:g(t[3]),value:y(t[4]),data:t[5],chainId:0};if(6===t.length)return r;try{r.v=(0,o.BigNumber).from(t[6]).toNumber()}catch(e){return r}if(r.r=(0,c.hexZeroPad)(t[7],32),r.s=(0,c.hexZeroPad)(t[8],32),(0,o.BigNumber).from(r.r).isZero()&&(0,o.BigNumber).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 n=r.v-27,i=t.slice(0,6);0!==r.chainId&&(i.push((0,c.hexlify)(r.chainId)),i.push("0x"),i.push("0x"),n-=2*r.chainId+8);let a=(0,u.keccak256)(l.encode(i));try{r.from=E(a,{r:(0,c.hexlify)(r.r),s:(0,c.hexlify)(r.s),recoveryParam:n})}catch(e){}r.hash=(0,u.keccak256)(e)}return r.type=null,r}(t);switch(t[0]){case 1:return function(e){let t=l.decode(e.slice(1));8!==t.length&&11!==t.length&&b.throwArgumentError("invalid component count for transaction type: 1","payload",(0,c.hexlify)(e));let r={type:1,chainId:y(t[0]).toNumber(),nonce:y(t[1]).toNumber(),gasPrice:y(t[2]),gasLimit:y(t[3]),to:g(t[4]),value:y(t[5]),data:t[6],accessList:S(t[7])};return 8===t.length||(r.hash=(0,u.keccak256)(e),I(r,t.slice(8),k)),r}(t);case 2:return function(e){let t=l.decode(e.slice(1));9!==t.length&&12!==t.length&&b.throwArgumentError("invalid component count for transaction type: 2","payload",(0,c.hexlify)(e));let r=y(t[2]),n=y(t[3]),i={type:2,chainId:y(t[0]).toNumber(),nonce:y(t[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:y(t[4]),to:g(t[5]),value:y(t[6]),data:t[7],accessList:S(t[8])};return 9===t.length||(i.hash=(0,u.keccak256)(e),I(i,t.slice(9),T)),i}(t)}return b.throwError(`unsupported transaction type: ${t[0]}`,p.Logger.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}},{"@ethersproject/address":"7BZuS","@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/constants":"cSsuf","@ethersproject/keccak256":"eWtzg","@ethersproject/properties":"dmdV5","@ethersproject/rlp":"1wlks","@ethersproject/signing-key":"a8JOx","@ethersproject/logger":"6NWvR","./_version":"iFVyl","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],a8JOx:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"SigningKey",()=>l),n.export(r,"recoverPublicKey",()=>h),n.export(r,"computePublicKey",()=>p);"use strict";var i=e("./elliptic"),a=e("@ethersproject/bytes"),s=e("@ethersproject/properties"),o=e("@ethersproject/logger"),c=e("./_version");let f=new o.Logger(c.version),u=null;function d(){return u||(u=new i.EC("secp256k1")),u}class l{constructor(e){(0,s.defineReadOnly)(this,"curve","secp256k1"),(0,s.defineReadOnly)(this,"privateKey",(0,a.hexlify)(e)),32!==(0,a.hexDataLength)(this.privateKey)&&f.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");let t=d().keyFromPrivate((0,a.arrayify)(this.privateKey));(0,s.defineReadOnly)(this,"publicKey","0x"+t.getPublic(!1,"hex")),(0,s.defineReadOnly)(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),(0,s.defineReadOnly)(this,"_isSigningKey",!0)}_addPoint(e){let t=d().keyFromPublic((0,a.arrayify)(this.publicKey)),r=d().keyFromPublic((0,a.arrayify)(e));return"0x"+t.pub.add(r.pub).encodeCompressed("hex")}signDigest(e){let t=d().keyFromPrivate((0,a.arrayify)(this.privateKey)),r=(0,a.arrayify)(e);32!==r.length&&f.throwArgumentError("bad digest length","digest",e);let n=t.sign(r,{canonical:!0});return(0,a.splitSignature)({recoveryParam:n.recoveryParam,r:(0,a.hexZeroPad)("0x"+n.r.toString(16),32),s:(0,a.hexZeroPad)("0x"+n.s.toString(16),32)})}computeSharedSecret(e){let t=d().keyFromPrivate((0,a.arrayify)(this.privateKey)),r=d().keyFromPublic((0,a.arrayify)(p(e)));return(0,a.hexZeroPad)("0x"+t.derive(r.getPublic()).toString(16),32)}static isSigningKey(e){return!!(e&&e._isSigningKey)}}function h(e,t){let r=(0,a.splitSignature)(t),n={r:(0,a.arrayify)(r.r),s:(0,a.arrayify)(r.s)};return"0x"+d().recoverPubKey((0,a.arrayify)(e),n,r.recoveryParam).encode("hex",!1)}function p(e,t){let r=(0,a.arrayify)(e);if(32===r.length){let e=new l(r);return t?"0x"+d().keyFromPrivate(r).getPublic(!0,"hex"):e.publicKey}return 33===r.length?t?(0,a.hexlify)(r):"0x"+d().keyFromPublic(r).getPublic(!1,"hex"):65===r.length?t?"0x"+d().keyFromPublic(r).getPublic(!0,"hex"):(0,a.hexlify)(r):f.throwArgumentError("invalid public or private key","key","[REDACTED]")}},{"./elliptic":"aoN5l","@ethersproject/bytes":"19SwW","@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","./_version":"eg49z","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],aoN5l:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"EC",()=>D);var i=e("bn.js"),a=n.interopDefault(i),s=e("hash.js"),o=n.interopDefault(s),c=arguments[3];function f(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(e,null==t?r.path:t)}},r.exports),r.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==c||"undefined"!=typeof self&&self;var u=d;function d(e,t){if(!e)throw Error(t||"Assertion failed")}"use strict";d.equal=function(e,t,r){if(e!=t)throw Error(r||"Assertion failed: "+e+" != "+t)};var l=f(function(e,t){"use strict";function r(e){return 1===e.length?"0"+e:e}function n(e){for(var t="",n=0;n>8,s=255&i;a?r.push(a,s):r.push(s)}return r},t.zero2=r,t.toHex=n,t.encode=function(e,t){return"hex"===t?n(e):e}}),h=f(function(e,t){"use strict";t.assert=u,t.toArray=l.toArray,t.zero2=l.zero2,t.toHex=l.toHex,t.encode=l.encode,t.getNAF=function(e,t,r){var n=Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var i=1<(i>>1)-1?(i>>1)-c:c,a.isubn(o)):o=0,n[s]=o,a.iushrn(1)}return n},t.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,i=0;e.cmpn(-n)>0||t.cmpn(-i)>0;){var a,s,o,c=e.andln(3)+n&3,f=t.andln(3)+i&3;3===c&&(c=-1),3===f&&(f=-1),s=(1&c)==0?0:(3==(a=e.andln(7)+n&7)||5===a)&&2===f?-c:c,r[0].push(s),o=(1&f)==0?0:(3==(a=t.andln(7)+i&7)||5===a)&&2===c?-f:f,r[1].push(o),2*n===s+1&&(n=1-n),2*i===o+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},t.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},t.parseBytes=function(e){return"string"==typeof e?t.toArray(e,"hex"):e},t.intFromLE=function(e){return new a.default(e,"hex","le")}}),p=h.getNAF,m=h.getJSF,b=h.assert;function g(e,t){this.type=e,this.p=new a.default(t.p,16),this.red=t.prime?(0,a.default).red(t.prime):(0,a.default).mont(this.p),this.zero=new(0,a.default)(0).toRed(this.red),this.one=new(0,a.default)(1).toRed(this.red),this.two=new(0,a.default)(2).toRed(this.red),this.n=t.n&&new a.default(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],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))}function y(e,t){this.curve=e,this.type=t,this.precomputed=null}"use strict";g.prototype.point=function(){throw Error("Not implemented")},g.prototype.validate=function(){throw Error("Not implemented")},g.prototype._fixedNafMul=function(e,t){b(e.precomputed);var r,n,i=e._getDoubles(),a=p(t,1,this._bitLength),s=(1<=r;c--)n=(n<<1)+a[c];o.push(n)}for(var f=this.jpoint(null,null,null),u=this.jpoint(null,null,null),d=s;d>0;d--){for(r=0;r=0;o--){for(var c=0;o>=0&&0===a[o];o--)c++;if(o>=0&&c++,s=s.dblp(c),o<0)break;var f=a[o];b(0!==f),s="affine"===e.type?f>0?s.mixedAdd(i[f-1>>1]):s.mixedAdd(i[-f-1>>1].neg()):f>0?s.add(i[f-1>>1]):s.add(i[-f-1>>1].neg())}return"affine"===e.type?s.toP():s},g.prototype._wnafMulAdd=function(e,t,r,n,i){var a,s,o,c=this._wnafT1,f=this._wnafT2,u=this._wnafT3,d=0;for(a=0;a=1;a-=2){var h=a-1,b=a;if(1!==c[h]||1!==c[b]){u[h]=p(r[h],c[h],this._bitLength),u[b]=p(r[b],c[b],this._bitLength),d=Math.max(u[h].length,d),d=Math.max(u[b].length,d);continue}var g=[t[h],null,null,t[b]];0===t[h].y.cmp(t[b].y)?(g[1]=t[h].add(t[b]),g[2]=t[h].toJ().mixedAdd(t[b].neg())):0===t[h].y.cmp(t[b].y.redNeg())?(g[1]=t[h].toJ().mixedAdd(t[b]),g[2]=t[h].add(t[b].neg())):(g[1]=t[h].toJ().mixedAdd(t[b]),g[2]=t[h].toJ().mixedAdd(t[b].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],v=m(r[h],r[b]);for(s=0,d=Math.max(v[0].length,d),u[h]=Array(d),u[b]=Array(d);s=0;a--){for(var M=0;a>=0;){var S=!0;for(s=0;s=0&&M++,E=E.dblp(M),a<0)break;for(s=0;s0?o=f[s][x-1>>1]:x<0&&(o=f[s][-x-1>>1].neg()),E="affine"===o.type?E.mixedAdd(o):E.add(o))}}for(a=0;a=Math.ceil((e.bitLength()+1)/t.step)},y.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;ii[0].cmp(i[1])?i[0]:i[1]).toRed(this.red)}if(e.lambda)r=new a.default(e.lambda,16);else{var s=this._getEndoRoots(this.n);0===this.g.mul(s[0]).x.cmp(this.g.x.redMul(t))?r=s[0]:(r=s[1],w(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return n=e.basis?e.basis.map(function(e){return{a:new a.default(e.a,16),b:new a.default(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:n}}},_.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:(0,a.default).mont(e),r=new(0,a.default)(2).toRed(t).redInvm(),n=r.redNeg(),i=new(0,a.default)(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},_.prototype._getEndoBasis=function(e){for(var t,r,n,i,s,o,c,f,u,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=e,h=this.n.clone(),p=new a.default(1),m=new a.default(0),b=new a.default(0),g=new a.default(1),y=0;0!==l.cmpn(0);){var v=h.div(l);f=h.sub(v.mul(l)),u=b.sub(v.mul(p));var w=g.sub(v.mul(m));if(!n&&0>f.cmp(d))t=c.neg(),r=p,n=f.neg(),i=u;else if(n&&2==++y)break;c=f,h=l,l=f,b=p,p=u,g=m,m=w}s=f.neg(),o=u;var _=n.sqr().add(i.sqr());return s.sqr().add(o.sqr()).cmp(_)>=0&&(s=t,o=r),n.negative&&(n=n.neg(),i=i.neg()),s.negative&&(s=s.neg(),o=o.neg()),[{a:n,b:i},{a:s,b:o}]},_.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),a=r.b.neg().mul(e).divRound(this.n),s=i.mul(r.a),o=a.mul(n.a),c=i.mul(r.b),f=a.mul(n.b);return{k1:e.sub(s).sub(o),k2:c.add(f).neg()}},_.prototype.pointFromX=function(e,t){(e=new a.default(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 Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},_.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},_.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,a=0;a":""},E.prototype.isInfinity=function(){return this.inf},E.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)||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)},E.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(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),a=i.redSqr().redISub(this.x.redAdd(this.x)),s=i.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,s)},E.prototype.getX=function(){return this.x.fromRed()},E.prototype.getY=function(){return this.y.fromRed()},E.prototype.mul=function(e){return(e=new a.default(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)},E.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},E.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},E.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))},E.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},E.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},v(A,g.BasePoint),_.prototype.jpoint=function(e,t,r){return new A(this,e,t,r)},A.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)},A.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},A.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),i=e.x.redMul(r),a=this.y.redMul(t.redMul(e.z)),s=e.y.redMul(r.redMul(this.z)),o=n.redSub(i),c=a.redSub(s);if(0===o.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=o.redSqr(),u=f.redMul(o),d=n.redMul(f),l=c.redSqr().redIAdd(u).redISub(d).redISub(d),h=c.redMul(d.redISub(l)).redISub(a.redMul(u)),p=this.z.redMul(e.z).redMul(o);return this.curve.jpoint(l,h,p)},A.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),i=this.y,a=e.y.redMul(t).redMul(this.z),s=r.redSub(n),o=i.redSub(a);if(0===s.cmpn(0))return 0!==o.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),f=c.redMul(s),u=r.redMul(c),d=o.redSqr().redIAdd(f).redISub(u).redISub(u),l=o.redMul(u.redISub(d)).redISub(i.redMul(f)),h=this.z.redMul(s);return this.curve.jpoint(d,l,h)},A.prototype.dblp=function(e){if(0===e||this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var t,r=this;for(t=0;t=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},A.prototype.inspect=function(){return this.isInfinity()?"":""},A.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var M=f(function(e,t){"use strict";t.base=g,t.short=_,t.mont=null,t.edwards=null}),S=f(function(e,t){"use strict";var r,n=h.assert;function i(e){"short"===e.type?this.curve=new M.short(e):"edwards"===e.type?this.curve=new M.edwards(e):this.curve=new M.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function a(e,r){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var n=new i(r);return Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:n}),n}})}t.PresetCurve=i,a("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.default.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),a("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.default.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),a("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.default.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),a("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.default.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),a("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.default.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),a("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.default.sha256,gRed:!1,g:["9"]}),a("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.default.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch(e){r=void 0}a("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.default.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})});function x(e){if(!(this instanceof x))return new x(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=l.toArray(e.entropy,e.entropyEnc||"hex"),r=l.toArray(e.nonce,e.nonceEnc||"hex"),n=l.toArray(e.pers,e.persEnc||"hex");u(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}"use strict";x.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},x.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=l.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length"};var R=h.assert;function I(e,t){if(e instanceof I)return e;this._importDER(e,t)||(R(e.r&&e.s,"Signature without r or s"),this.r=new a.default(e.r,16),this.s=new a.default(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function C(){this.place=0}function P(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 i=0,a=0,s=t.place;a>>=0;return!(i<=127)&&(t.place=s,i)}function O(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)}"use strict";I.prototype._importDER=function(e,t){e=h.toArray(e,t);var r=new C;if(48!==e[r.place++])return!1;var n=P(e,r);if(!1===n||n+r.place!==e.length||2!==e[r.place++])return!1;var i=P(e,r);if(!1===i)return!1;var s=e.slice(r.place,i+r.place);if(r.place+=i,2!==e[r.place++])return!1;var o=P(e,r);if(!1===o||e.length!==o+r.place)return!1;var c=e.slice(r.place,o+r.place);if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}return this.r=new a.default(s),this.s=new a.default(c),this.recoveryParam=null,!0},I.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=O(t),r=O(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];N(n,t.length),(n=n.concat(t)).push(2),N(n,r.length);var i=n.concat(r),a=[48];return N(a,i.length),a=a.concat(i),h.encode(a,e)};var j=function(){throw Error("unsupported")},B=h.assert;function L(e){if(!(this instanceof L))return new L(e);"string"==typeof e&&(B(Object.prototype.hasOwnProperty.call(S,e),"Unknown curve "+e),e=S[e]),e instanceof S.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}L.prototype.keyPair=function(e){return new k(this,e)},L.prototype.keyFromPrivate=function(e,t){return k.fromPrivate(this,e,t)},L.prototype.keyFromPublic=function(e,t){return k.fromPublic(this,e,t)},L.prototype.genKeyPair=function(e){e||(e={});for(var t=new x({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||j(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new a.default(2));;){var i=new a.default(t.generate(r));if(!(i.cmp(n)>0))return i.iaddn(1),this.keyFromPrivate(i)}},L.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},L.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 a.default(e,16));for(var i=this.n.byteLength(),s=t.getPrivate().toArray("be",i),o=e.toArray("be",i),c=new x({hash:this.hash,entropy:s,nonce:o,pers:n.pers,persEnc:n.persEnc||"utf8"}),f=this.n.sub(new a.default(1)),u=0;;u++){var d=n.k?n.k(u):new a.default(c.generate(this.n.byteLength()));if(!(0>=(d=this._truncateToN(d,!0)).cmpn(1)||d.cmp(f)>=0)){var l=this.g.mul(d);if(!l.isInfinity()){var h=l.getX(),p=h.umod(this.n);if(0!==p.cmpn(0)){var m=d.invm(this.n).mul(p.mul(t.getPrivate()).iadd(e));if(0!==(m=m.umod(this.n)).cmpn(0)){var b=(l.getY().isOdd()?1:0)|(0!==h.cmp(p)?2:0);return n.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),b^=1),new I({r:p,s:m,recoveryParam:b})}}}}}},L.prototype.verify=function(e,t,r,n){e=this._truncateToN(new a.default(e,16)),r=this.keyFromPublic(r,n);var i,s=(t=new I(t,"hex")).r,o=t.s;if(0>s.cmpn(1)||s.cmp(this.n)>=0||0>o.cmpn(1)||o.cmp(this.n)>=0)return!1;var c=o.invm(this.n),f=c.mul(e).umod(this.n),u=c.mul(s).umod(this.n);return this.curve._maxwellTrick?!(i=this.g.jmulAdd(f,r.getPublic(),u)).isInfinity()&&i.eqXToP(s):!(i=this.g.mulAdd(f,r.getPublic(),u)).isInfinity()&&0===i.getX().umod(this.n).cmp(s)},L.prototype.recoverPubKey=function(e,t,r,n){B((3&r)===r,"The recovery param is more than two bits"),t=new I(t,n);var i=this.n,s=new a.default(e),o=t.r,c=t.s,f=1&r,u=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&u)throw Error("Unable to find sencond key candinate");o=u?this.curve.pointFromX(o.add(this.curve.n),f):this.curve.pointFromX(o,f);var d=t.r.invm(i),l=i.sub(s).mul(d).umod(i),h=c.mul(d).umod(i);return this.g.mulAdd(l,o,h)},L.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new I(t,n)).recoveryParam)return t.recoveryParam;for(var i,a=0;a<4;a++){try{i=this.recoverPubKey(e,t,a)}catch(e){continue}if(i.eq(r))return a}throw Error("Unable to find valid recovery factor")};var D=f(function(e,t){"use strict";t.version="6.5.4",t.utils=h,t.rand=function(){throw Error("unsupported")},t.curve=M,t.curves=S,t.ec=L,t.eddsa=null}).ec},{"bn.js":"lXPno","hash.js":"2Tlxk","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2Tlxk":[function(e,t,r){r.utils=e("38593959f18bd562"),r.common=e("31a457752237e8ad"),r.sha=e("3e37816d2a2fd68d"),r.ripemd=e("ce5a13b5bd10f171"),r.hmac=e("c32fbac97a361580"),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},{"38593959f18bd562":"aKzpJ","31a457752237e8ad":"gjeCy","3e37816d2a2fd68d":"gVBgh",ce5a13b5bd10f171:"1GX8J",c32fbac97a361580:"3Q7qa"}],aKzpJ:[function(e,t,r){"use strict";var n=e("6002b0feade022a4"),i=e("d4826c9d0ff1b1f");function a(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 o(e){if(7===e.length)return"0"+e;if(6===e.length)return"00"+e;if(5===e.length)return"000"+e;if(4===e.length)return"0000"+e;if(3===e.length)return"00000"+e;if(2===e.length)return"000000"+e;if(1===e.length)return"0000000"+e;else return e}r.inherits=i,r.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]+/ig,"")).length%2!=0&&(e="0"+e),i=0;i>6|192:((a=e,s=i,(64512&a.charCodeAt(s))!=55296||s<0||s+1>=a.length?1:(64512&a.charCodeAt(s+1))!=56320)?r[n++]=o>>12|224:(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++i)),r[n++]=o>>18|240,r[n++]=o>>12&63|128),r[n++]=o>>6&63|128),r[n++]=63&o|128)}}else for(i=0;i>>0;return o},r.split32=function(e,t){for(var r=Array(4*e.length),n=0,i=0;n>>24,r[i+1]=a>>>16&255,r[i+2]=a>>>8&255,r[i+3]=255&a):(r[i+3]=a>>>24,r[i+2]=a>>>16&255,r[i+1]=a>>>8&255,r[i]=255&a)}return r},r.rotr32=function(e,t){return e>>>t|e<<32-t},r.rotl32=function(e,t){return e<>>32-t},r.sum32=function(e,t){return e+t>>>0},r.sum32_3=function(e,t,r){return e+t+r>>>0},r.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},r.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},r.sum64=function(e,t,r,n){var i=e[t],a=n+e[t+1]>>>0;e[t]=(a>>0,e[t+1]=a},r.sum64_hi=function(e,t,r,n){return(t+n>>>0>>0},r.sum64_lo=function(e,t,r,n){return t+n>>>0},r.sum64_4_hi=function(e,t,r,n,i,a,s,o){var c,f=t;return e+r+i+s+(0+((f=f+n>>>0)>>0)>>0)>>0},r.sum64_4_lo=function(e,t,r,n,i,a,s,o){return t+n+a+o>>>0},r.sum64_5_hi=function(e,t,r,n,i,a,s,o,c,f){var u,d=t;return e+r+i+s+c+(0+((d=d+n>>>0)>>0)>>0)>>0)>>0},r.sum64_5_lo=function(e,t,r,n,i,a,s,o,c,f){return t+n+a+o+f>>>0},r.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},r.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},r.shr64_hi=function(e,t,r){return e>>>r},r.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},{"6002b0feade022a4":"h59lk",d4826c9d0ff1b1f:"cJ2FP"}],h59lk:[function(e,t,r){function n(e,t){if(!e)throw Error(t||"Assertion failed")}t.exports=n,n.equal=function(e,t,r){if(e!=t)throw Error(r||"Assertion failed: "+e+" != "+t)}},{}],cJ2FP:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},{}],gjeCy:[function(e,t,r){"use strict";var n=e("e9291abdfb47ee4f"),i=e("ea8841b701712638");function a(){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}r.BlockHash=a,a.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 i=0;i>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(a=8,n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0;a>>3},r.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},{f0fb61f828bacd0f:"aKzpJ"}],d8IVH:[function(e,t,r){"use strict";var n=e("fe5acd040463c159"),i=e("fa3503eda3738d05");function a(){if(!(this instanceof a))return new a;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(a,i),t.exports=a,a.blockSize=512,a.outSize=224,a.hmacStrength=192,a.padLength=64,a.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},{fe5acd040463c159:"aKzpJ",fa3503eda3738d05:"27b3b"}],"27b3b":[function(e,t,r){"use strict";var n=e("32ad3e510bd41f2a"),i=e("469ad88ad505772a"),a=e("fffa7d1ddf1f0b43"),s=e("126369f57b5225ed"),o=n.sum32,c=n.sum32_4,f=n.sum32_5,u=a.ch32,d=a.maj32,l=a.s0_256,h=a.s1_256,p=a.g0_256,m=a.g1_256,b=i.BlockHash,g=[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;b.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=Array(64)}n.inherits(y,b),t.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(;nthis.blockSize&&(e=new this.Hash().update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;ti);let i="signing-key/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],iFVyl:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="transactions/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],liyH3:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="contracts/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],euBMB:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Wallet",()=>w),n.export(r,"verifyMessage",()=>_),n.export(r,"verifyTypedData",()=>E);"use strict";var i=e("@ethersproject/address"),a=e("@ethersproject/abstract-provider"),s=e("@ethersproject/abstract-signer"),o=e("@ethersproject/bytes"),c=e("@ethersproject/hash"),f=e("@ethersproject/hdnode"),u=e("@ethersproject/keccak256"),d=e("@ethersproject/properties"),l=e("@ethersproject/random"),h=e("@ethersproject/signing-key"),p=e("@ethersproject/json-wallets"),m=e("@ethersproject/transactions"),b=e("@ethersproject/logger"),g=e("./_version"),y=function(e,t,r,n){return new(r||(r=Promise))(function(i,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function o(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}c((n=n.apply(e,t||[])).next())})};let v=new b.Logger(g.version);class w extends s.Signer{constructor(e,t){var r;if(super(),null!=(r=e)&&(0,o.isHexString)(r.privateKey,32)&&null!=r.address){let t=new h.SigningKey(e.privateKey);if((0,d.defineReadOnly)(this,"_signingKey",()=>t),(0,d.defineReadOnly)(this,"address",(0,m.computeAddress)(this.publicKey)),this.address!==(0,i.getAddress)(e.address)&&v.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),function(e){let t=e.mnemonic;return t&&t.phrase}(e)){let t=e.mnemonic;(0,d.defineReadOnly)(this,"_mnemonic",()=>({phrase:t.phrase,path:t.path||f.defaultPath,locale:t.locale||"en"}));let r=this.mnemonic,n=(0,f.HDNode).fromMnemonic(r.phrase,null,r.locale).derivePath(r.path);(0,m.computeAddress)(n.privateKey)!==this.address&&v.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else(0,d.defineReadOnly)(this,"_mnemonic",()=>null)}else{if((0,h.SigningKey).isSigningKey(e))"secp256k1"!==e.curve&&v.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),(0,d.defineReadOnly)(this,"_signingKey",()=>e);else{"string"==typeof e&&e.match(/^[0-9a-f]*$/i)&&64===e.length&&(e="0x"+e);let t=new h.SigningKey(e);(0,d.defineReadOnly)(this,"_signingKey",()=>t)}(0,d.defineReadOnly)(this,"_mnemonic",()=>null),(0,d.defineReadOnly)(this,"address",(0,m.computeAddress)(this.publicKey))}t&&!(0,a.Provider).isProvider(t)&&v.throwArgumentError("invalid provider","provider",t),(0,d.defineReadOnly)(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 w(this,e)}signTransaction(e){return(0,d.resolveProperties)(e).then(t=>{null!=t.from&&((0,i.getAddress)(t.from)!==this.address&&v.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete t.from);let r=this._signingKey().signDigest((0,u.keccak256)((0,m.serialize)(t)));return(0,m.serialize)(t,r)})}signMessage(e){return y(this,void 0,void 0,function*(){return(0,o.joinSignature)(this._signingKey().signDigest((0,c.hashMessage)(e)))})}_signTypedData(e,t,r){return y(this,void 0,void 0,function*(){let n=yield(0,c._TypedDataEncoder).resolveNames(e,t,r,e=>(null==this.provider&&v.throwError("cannot resolve ENS names without a provider",b.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:e}),this.provider.resolveName(e)));return(0,o.joinSignature)(this._signingKey().signDigest((0,c._TypedDataEncoder).hash(n.domain,t,n.value)))})}encrypt(e,t,r){if("function"!=typeof t||r||(r=t,t={}),r&&"function"!=typeof r)throw Error("invalid callback");return t||(t={}),(0,p.encryptKeystore)(this,e,t,r)}static createRandom(e){let t=(0,l.randomBytes)(16);e||(e={}),e.extraEntropy&&(t=(0,o.arrayify)((0,o.hexDataSlice)((0,u.keccak256)((0,o.concat)([t,e.extraEntropy])),0,16)));let r=(0,f.entropyToMnemonic)(t,e.locale);return w.fromMnemonic(r,e.path,e.locale)}static fromEncryptedJson(e,t,r){return(0,p.decryptJsonWallet)(e,t,r).then(e=>new w(e))}static fromEncryptedJsonSync(e,t){return new w((0,p.decryptJsonWalletSync)(e,t))}static fromMnemonic(e,t,r){return t||(t=f.defaultPath),new w((0,f.HDNode).fromMnemonic(e,null,r).derivePath(t))}}function _(e,t){return(0,m.recoverAddress)((0,c.hashMessage)(e),t)}function E(e,t,r,n){return(0,m.recoverAddress)((0,c._TypedDataEncoder).hash(e,t,r),n)}},{"@ethersproject/address":"7BZuS","@ethersproject/abstract-provider":"imf57","@ethersproject/abstract-signer":"j6EbC","@ethersproject/bytes":"19SwW","@ethersproject/hash":"jLDfB","@ethersproject/hdnode":"2zCqF","@ethersproject/keccak256":"eWtzg","@ethersproject/properties":"dmdV5","@ethersproject/random":"5x4el","@ethersproject/signing-key":"a8JOx","@ethersproject/json-wallets":"7BEU7","@ethersproject/transactions":"ctBdV","@ethersproject/logger":"6NWvR","./_version":"2nczW","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2zCqF":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"defaultPath",()=>M),n.export(r,"HDNode",()=>S),n.export(r,"mnemonicToSeed",()=>x),n.export(r,"mnemonicToEntropy",()=>T),n.export(r,"entropyToMnemonic",()=>k),n.export(r,"isValidMnemonic",()=>R),n.export(r,"getAccountPath",()=>I);"use strict";var i=e("@ethersproject/basex"),a=e("@ethersproject/bytes"),s=e("@ethersproject/bignumber"),o=e("@ethersproject/strings"),c=e("@ethersproject/pbkdf2"),f=e("@ethersproject/properties"),u=e("@ethersproject/signing-key"),d=e("@ethersproject/sha2"),l=e("@ethersproject/transactions"),h=e("@ethersproject/wordlists"),p=e("@ethersproject/logger"),m=e("./_version");let b=new p.Logger(m.version),g=(0,s.BigNumber).from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),y=(0,o.toUtf8Bytes)("Bitcoin seed");function v(e){return(1<=256)throw Error("Depth too large!");return _((0,a.concat)([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",(0,a.hexlify)(this.depth),this.parentFingerprint,(0,a.hexZeroPad)((0,a.hexlify)(this.index),4),this.chainCode,null!=this.privateKey?(0,a.concat)(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new S(A,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(e){if(e>4294967295)throw Error("invalid index - "+String(e));let t=this.path;t&&(t+="/"+(2147483647&e));let r=new Uint8Array(37);if(2147483648&e){if(!this.privateKey)throw Error("cannot derive child of neutered node");r.set((0,a.arrayify)(this.privateKey),1),t&&(t+="'")}else r.set((0,a.arrayify)(this.publicKey));for(let t=24;t>=0;t-=8)r[33+(t>>3)]=e>>24-t&255;let n=(0,a.arrayify)((0,d.computeHmac)(d.SupportedAlgorithm.sha512,this.chainCode,r)),i=n.slice(0,32),o=n.slice(32),c=null,f=null;if(this.privateKey)c=w((0,s.BigNumber).from(i).add(this.privateKey).mod(g));else{let e=new u.SigningKey((0,a.hexlify)(i));f=e._addPoint(this.publicKey)}let l=t,h=this.mnemonic;return h&&(l=Object.freeze({phrase:h.phrase,path:t,locale:h.locale||"en"})),new S(A,c,f,this.fingerprint,w(o),e,this.depth+1,l)}derivePath(e){let t=e.split("/");if(0===t.length||"m"===t[0]&&0!==this.depth)throw Error("invalid path - "+e);"m"===t[0]&&t.shift();let r=this;for(let e=0;e=2147483648)throw Error("invalid path index - "+n);r=r._derive(2147483648+e)}else if(n.match(/^[0-9]+$/)){let e=parseInt(n);if(e>=2147483648)throw Error("invalid path index - "+n);r=r._derive(e)}else throw Error("invalid path component - "+n)}return r}static _fromSeed(e,t){let r=(0,a.arrayify)(e);if(r.length<16||r.length>64)throw Error("invalid seed");let n=(0,a.arrayify)((0,d.computeHmac)(d.SupportedAlgorithm.sha512,y,r));return new S(A,w(n.slice(0,32)),null,"0x00000000",w(n.slice(32)),0,0,t)}static fromMnemonic(e,t,r){return e=k(T(e,r=E(r)),r),S._fromSeed(x(e,t),{phrase:e,path:"m",locale:r.locale})}static fromSeed(e){return S._fromSeed(e,null)}static fromExtendedKey(e){let t=(0,i.Base58).decode(e);(82!==t.length||_(t.slice(0,78))!==e)&&b.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");let r=t[4],n=(0,a.hexlify)(t.slice(5,9)),s=parseInt((0,a.hexlify)(t.slice(9,13)).substring(2),16),o=(0,a.hexlify)(t.slice(13,45)),c=t.slice(45,78);switch((0,a.hexlify)(t.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new S(A,null,(0,a.hexlify)(c),n,o,s,r,null);case"0x0488ade4":case"0x04358394 ":if(0!==c[0])break;return new S(A,(0,a.hexlify)(c.slice(1)),null,n,o,s,r,null)}return b.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function x(e,t){t||(t="");let r=(0,o.toUtf8Bytes)("mnemonic"+t,o.UnicodeNormalizationForm.NFKD);return(0,c.pbkdf2)((0,o.toUtf8Bytes)(e,o.UnicodeNormalizationForm.NFKD),r,2048,64,"sha512")}function T(e,t){t=E(t),b.checkNormalize();let r=t.split(e);if(r.length%3!=0)throw Error("invalid mnemonic");let n=(0,a.arrayify)(new Uint8Array(Math.ceil(11*r.length/8))),i=0;for(let e=0;e>3]|=1<<7-i%8),i++}let s=32*r.length/3,o=r.length/3,c=v(o),f=(0,a.arrayify)((0,d.sha256)(n.slice(0,s/8)))[0]&c;if(f!==(n[n.length-1]&c))throw Error("invalid checksum");return(0,a.hexlify)(n.slice(0,s/8))}function k(e,t){if(t=E(t),(e=(0,a.arrayify)(e)).length%4!=0||e.length<16||e.length>32)throw Error("invalid entropy");let r=[0],n=11;for(let t=0;t8?(r[r.length-1]<<=8,r[r.length-1]|=e[t],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=e[t]>>8-n,r.push(e[t]&(1<<8-n)-1),n+=3);let i=e.length/4,s=(0,a.arrayify)((0,d.sha256)(e))[0]&v(i);return r[r.length-1]<<=i,r[r.length-1]|=s>>8-i,t.join(r.map(e=>t.getWord(e)))}function R(e,t){try{return T(e,t),!0}catch(e){}return!1}function I(e){return("number"!=typeof e||e<0||e>=2147483648||e%1)&&b.throwArgumentError("invalid account index","index",e),`m/44'/60'/${e}'/0/0`}},{"@ethersproject/basex":"Pygpe","@ethersproject/bytes":"19SwW","@ethersproject/bignumber":"hIcBX","@ethersproject/strings":"edSy2","@ethersproject/pbkdf2":"53AfG","@ethersproject/properties":"dmdV5","@ethersproject/signing-key":"a8JOx","@ethersproject/sha2":"bznen","@ethersproject/transactions":"ctBdV","@ethersproject/wordlists":"a2daz","@ethersproject/logger":"6NWvR","./_version":"iqxFg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],Pygpe:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"BaseX",()=>s),n.export(r,"Base32",()=>o),n.export(r,"Base58",()=>c);var i=e("@ethersproject/bytes"),a=e("@ethersproject/properties");class s{constructor(e){(0,a.defineReadOnly)(this,"alphabet",e),(0,a.defineReadOnly)(this,"base",e.length),(0,a.defineReadOnly)(this,"_alphabetMap",{}),(0,a.defineReadOnly)(this,"_leader",e.charAt(0));for(let t=0;t0;)r.push(n%this.base),n=n/this.base|0}let n="";for(let e=0;0===t[e]&&e=0;--e)n+=this.alphabet[r[e]];return n}decode(e){if("string"!=typeof e)throw TypeError("Expected String");let t=[];if(0===e.length)return new Uint8Array(t);t.push(0);for(let r=0;r>=8;for(;i>0;)t.push(255&i),i>>=8}for(let r=0;e[r]===this._leader&&ri.pbkdf2);var i=e("./pbkdf2")},{"./pbkdf2":"iSJTG","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],iSJTG:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"pbkdf2",()=>s);"use strict";var i=e("@ethersproject/bytes"),a=e("@ethersproject/sha2");function s(e,t,r,n,s){let o,c,f;e=(0,i.arrayify)(e),t=(0,i.arrayify)(t);let u=1,d=new Uint8Array(n),l=new Uint8Array(t.length+4);l.set(t);for(let h=1;h<=u;h++){l[t.length]=h>>24&255,l[t.length+1]=h>>16&255,l[t.length+2]=h>>8&255,l[t.length+3]=255&h;let p=(0,i.arrayify)((0,a.computeHmac)(s,e,l));o||(o=p.length,f=new Uint8Array(o),u=Math.ceil(n/o),c=n-(u-1)*o),f.set(p);for(let t=1;ti.computeHmac),n.export(r,"ripemd160",()=>i.ripemd160),n.export(r,"sha256",()=>i.sha256),n.export(r,"sha512",()=>i.sha512),n.export(r,"SupportedAlgorithm",()=>a.SupportedAlgorithm);var i=e("./sha2"),a=e("./types")},{"./sha2":"fjz4b","./types":"cObmA","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],fjz4b:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ripemd160",()=>d),n.export(r,"sha256",()=>l),n.export(r,"sha512",()=>h),n.export(r,"computeHmac",()=>p);"use strict";var i=e("hash.js"),a=n.interopDefault(i),s=e("@ethersproject/bytes"),o=e("./types"),c=e("@ethersproject/logger"),f=e("./_version");let u=new c.Logger(f.version);function d(e){return"0x"+(0,a.default).ripemd160().update((0,s.arrayify)(e)).digest("hex")}function l(e){return"0x"+(0,a.default).sha256().update((0,s.arrayify)(e)).digest("hex")}function h(e){return"0x"+(0,a.default).sha512().update((0,s.arrayify)(e)).digest("hex")}function p(e,t,r){return o.SupportedAlgorithm[e]||u.throwError("unsupported algorithm "+e,c.Logger.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:e}),"0x"+(0,a.default).hmac(a.default[e],(0,s.arrayify)(t)).update((0,s.arrayify)(r)).digest("hex")}},{"hash.js":"2Tlxk","@ethersproject/bytes":"19SwW","./types":"cObmA","@ethersproject/logger":"6NWvR","./_version":"3pnD5","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],cObmA:[function(e,t,r){var n,i,a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(r),a.export(r,"SupportedAlgorithm",()=>i),(n=i||(i={})).sha256="sha256",n.sha512="sha512"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"3pnD5":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="sha2/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],a2daz:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"logger",()=>i.logger),n.export(r,"Wordlist",()=>i.Wordlist),n.export(r,"wordlists",()=>a.wordlists);"use strict";var i=e("./wordlist"),a=e("./wordlists")},{"./wordlist":"kQd0Q","./wordlists":"bk3n1","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],kQd0Q:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"logger",()=>c),n.export(r,"Wordlist",()=>f);"use strict";var i=e("@ethersproject/hash"),a=e("@ethersproject/properties"),s=e("@ethersproject/logger"),o=e("./_version");let c=new s.Logger(o.version);class f{constructor(e){c.checkAbstract(new.target,f),(0,a.defineReadOnly)(this,"locale",e)}split(e){return e.toLowerCase().split(/ +/g)}join(e){return e.join(" ")}static check(e){let t=[];for(let r=0;r<2048;r++){let n=e.getWord(r);if(r!==e.getWordIndex(n))return"0x";t.push(n)}return(0,i.id)(t.join("\n")+"\n")}static register(e,t){t||(t=e.locale)}}},{"@ethersproject/hash":"jLDfB","@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","./_version":"V1tr9","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],V1tr9:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="wordlists/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],bk3n1:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"wordlists",()=>a);var i=e("./lang-en");"use strict";let a={en:i.langEn}},{"./lang-en":"3iB3I","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"3iB3I":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"langEn",()=>c);var i=e("./wordlist");"use strict";let a=null;function s(e){if(null==a&&(a="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"!==(0,i.Wordlist).check(e)))throw a=null,Error("BIP39 Wordlist for en (English) FAILED")}class o extends i.Wordlist{constructor(){super("en")}getWord(e){return s(this),a[e]}getWordIndex(e){return s(this),a.indexOf(e)}}let c=new o;(0,i.Wordlist).register(c)},{"./wordlist":"kQd0Q","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],iqxFg:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="hdnode/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"5x4el":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"randomBytes",()=>i.randomBytes),n.export(r,"shuffled",()=>a.shuffled);"use strict";var i=e("./random"),a=e("./shuffle")},{"./random":"7eRII","./shuffle":"9bV5K","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"7eRII":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"randomBytes",()=>d);"use strict";var i=e("@ethersproject/bytes"),a=e("@ethersproject/logger"),s=e("./_version"),o=arguments[3];let c=new a.Logger(s.version),f=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==o)return o;throw Error("unable to locate global object")}(),u=f.crypto||f.msCrypto;function d(e){(e<=0||e>1024||e%1||e!=e)&&c.throwArgumentError("invalid length","length",e);let t=new Uint8Array(e);return u.getRandomValues(t),(0,i.arrayify)(t)}u&&u.getRandomValues||(c.warn("WARNING: Missing strong random number source"),u={getRandomValues:function(e){return c.throwError("no secure random source avaialble",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}})},{"@ethersproject/bytes":"19SwW","@ethersproject/logger":"6NWvR","./_version":"4vVYi","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"4vVYi":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="random/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"9bV5K":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";function i(e){e=e.slice();for(let t=e.length-1;t>0;t--){let r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e}n.defineInteropFlag(r),n.export(r,"shuffled",()=>i)},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"7BEU7":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"decryptCrowdsale",()=>i.decrypt),n.export(r,"decryptKeystore",()=>s.decrypt),n.export(r,"decryptKeystoreSync",()=>s.decryptSync),n.export(r,"encryptKeystore",()=>s.encrypt),n.export(r,"isCrowdsaleWallet",()=>a.isCrowdsaleWallet),n.export(r,"isKeystoreWallet",()=>a.isKeystoreWallet),n.export(r,"getJsonWalletAddress",()=>a.getJsonWalletAddress),n.export(r,"decryptJsonWallet",()=>o),n.export(r,"decryptJsonWalletSync",()=>c);"use strict";var i=e("./crowdsale"),a=e("./inspect"),s=e("./keystore");function o(e,t,r){if((0,a.isCrowdsaleWallet)(e)){r&&r(0);let n=(0,i.decrypt)(e,t);return r&&r(1),Promise.resolve(n)}return(0,a.isKeystoreWallet)(e)?(0,s.decrypt)(e,t,r):Promise.reject(Error("invalid JSON wallet"))}function c(e,t){if((0,a.isCrowdsaleWallet)(e))return(0,i.decrypt)(e,t);if((0,a.isKeystoreWallet)(e))return(0,s.decryptSync)(e,t);throw Error("invalid JSON wallet")}},{"./crowdsale":"jecLC","./inspect":"f0RP9","./keystore":"lvmQF","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],jecLC:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"CrowdsaleAccount",()=>b),n.export(r,"decrypt",()=>g);"use strict";var i=e("aes-js"),a=n.interopDefault(i),s=e("@ethersproject/address"),o=e("@ethersproject/bytes"),c=e("@ethersproject/keccak256"),f=e("@ethersproject/pbkdf2"),u=e("@ethersproject/strings"),d=e("@ethersproject/properties"),l=e("@ethersproject/logger"),h=e("./_version"),p=e("./utils");let m=new l.Logger(h.version);class b extends d.Description{isCrowdsaleAccount(e){return!!(e&&e._isCrowdsaleAccount)}}function g(e,t){let r=JSON.parse(e);t=(0,p.getPassword)(t);let n=(0,s.getAddress)((0,p.searchPath)(r,"ethaddr")),i=(0,p.looseArrayify)((0,p.searchPath)(r,"encseed"));i&&i.length%16==0||m.throwArgumentError("invalid encseed","json",e);let d=(0,o.arrayify)((0,f.pbkdf2)(t,t,2e3,32,"sha256")).slice(0,16),l=i.slice(0,16),h=i.slice(16),g=new a.default.ModeOfOperation.cbc(d,l),y=(0,a.default).padding.pkcs7.strip((0,o.arrayify)(g.decrypt(h))),v="";for(let e=0;e255)return!1;return!0}function i(e,t){if(e.buffer&&ArrayBuffer.isView(e)&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!n(e))throw Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(r(e.length)&&n(e))return new Uint8Array(e);throw Error("unsupported array-like object")}function a(e){return new Uint8Array(e)}function s(e,t,r,n,i){(null!=n||null!=i)&&(e=e.slice?e.slice(n,i):Array.prototype.slice.call(e,n,i)),t.set(e,r)}var o,c=(o="0123456789abcdef",{toBytes:function(e){for(var t=[],r=0;r>4]+o[15&n])}return t.join("")}}),f={16:10,24:12,32:14},u=[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],d=[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],l=[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],h=[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],p=[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],m=[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],b=[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],g=[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],y=[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],v=[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],w=[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],_=[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],E=[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],A=[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],M=[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 S(e){for(var t=[],r=0;r>2,this._Ke[a][t%4]=i[t],this._Kd[e-a][t%4]=i[t];for(var a,s,o=0,c=n;c>16&255]<<24^d[s>>8&255]<<16^d[255&s]<<8^d[s>>24&255]^u[o]<<24,o+=1,8!=n)for(var t=1;t>8&255]<<8^d[s>>16&255]<<16^d[s>>24&255]<<24;for(var t=n/2+1;t>2,h=c%4,this._Ke[l][h]=i[t],this._Kd[e-l][h]=i[t++],c++}for(var l=1;l>24&255]^E[s>>16&255]^A[s>>8&255]^M[255&s]},x.prototype.encrypt=function(e){if(16!=e.length)throw Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,r=[0,0,0,0],n=S(e),i=0;i<4;i++)n[i]^=this._Ke[0][i];for(var s=1;s>24&255]^p[n[(i+1)%4]>>16&255]^m[n[(i+2)%4]>>8&255]^b[255&n[(i+3)%4]]^this._Ke[s][i];n=r.slice()}for(var o,c=a(16),i=0;i<4;i++)o=this._Ke[t][i],c[4*i]=(d[n[i]>>24&255]^o>>24)&255,c[4*i+1]=(d[n[(i+1)%4]>>16&255]^o>>16)&255,c[4*i+2]=(d[n[(i+2)%4]>>8&255]^o>>8)&255,c[4*i+3]=(d[255&n[(i+3)%4]]^o)&255;return c},x.prototype.decrypt=function(e){if(16!=e.length)throw Error("invalid ciphertext size (must be 16 bytes)");for(var t=this._Kd.length-1,r=[0,0,0,0],n=S(e),i=0;i<4;i++)n[i]^=this._Kd[0][i];for(var s=1;s>24&255]^y[n[(i+3)%4]>>16&255]^v[n[(i+2)%4]>>8&255]^w[255&n[(i+1)%4]]^this._Kd[s][i];n=r.slice()}for(var o,c=a(16),i=0;i<4;i++)o=this._Kd[t][i],c[4*i]=(l[n[i]>>24&255]^o>>24)&255,c[4*i+1]=(l[n[(i+3)%4]>>16&255]^o>>16)&255,c[4*i+2]=(l[n[(i+2)%4]>>8&255]^o>>8)&255,c[4*i+3]=(l[255&n[(i+1)%4]]^o)&255;return c};var T=function(e){if(!(this instanceof T))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new x(e)};T.prototype.encrypt=function(e){if((e=i(e)).length%16!=0)throw Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=a(e.length),r=a(16),n=0;n=0;--t)this._counter[t]=e%256,e>>=8},C.prototype.setBytes=function(e){if(16!=(e=i(e,!0)).length)throw Error("invalid counter bytes size (must be 16 bytes)");this._counter=e},C.prototype.increment=function(){for(var e=15;e>=0;e--)if(255===this._counter[e])this._counter[e]=0;else{this._counter[e]++;break}};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 C||(t=new C(t)),this._counter=t,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new x(e)};P.prototype.encrypt=function(e){for(var t=i(e,!0),r=0;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("")}}},padding:{pkcs7:{pad:function(e){var t=16-(e=i(e,!0)).length%16,r=a(e.length+t);s(e,r);for(var n=e.length;n16)throw Error("PKCS#7 padding byte out of range");for(var r=e.length-t,n=0;ni);let i="json-wallets/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],fbe9v:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"looseArrayify",()=>s),n.export(r,"zpad",()=>o),n.export(r,"getPassword",()=>c),n.export(r,"searchPath",()=>f),n.export(r,"uuidV4",()=>u);"use strict";var i=e("@ethersproject/bytes"),a=e("@ethersproject/strings");function s(e){return"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),(0,i.arrayify)(e)}function o(e,t){for(e=String(e);e.lengtha),n.export(r,"isKeystoreWallet",()=>s),n.export(r,"getJsonWalletAddress",()=>o);var i=e("@ethersproject/address");"use strict";function a(e){let t=null;try{t=JSON.parse(e)}catch(e){return!1}return t.encseed&&t.ethaddr}function s(e){let t=null;try{t=JSON.parse(e)}catch(e){return!1}return!!t.version&&parseInt(t.version)===t.version&&3===parseInt(t.version)}function o(e){if(a(e))try{return(0,i.getAddress)(JSON.parse(e).ethaddr)}catch(e){return null}if(s(e))try{return(0,i.getAddress)(JSON.parse(e).address)}catch(e){}return null}},{"@ethersproject/address":"7BZuS","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lvmQF:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"KeystoreAccount",()=>_),n.export(r,"decryptSync",()=>x),n.export(r,"decrypt",()=>T),n.export(r,"encrypt",()=>k);"use strict";var i=e("aes-js"),a=n.interopDefault(i),s=e("scrypt-js"),o=n.interopDefault(s),c=e("@ethersproject/address"),f=e("@ethersproject/bytes"),u=e("@ethersproject/hdnode"),d=e("@ethersproject/keccak256"),l=e("@ethersproject/pbkdf2"),h=e("@ethersproject/random"),p=e("@ethersproject/properties"),m=e("@ethersproject/transactions"),b=e("./utils"),g=e("@ethersproject/logger"),y=e("./_version");let v=new g.Logger(y.version);function w(e){return null!=e&&e.mnemonic&&e.mnemonic.phrase}class _ extends p.Description{isKeystoreAccount(e){return!!(e&&e._isKeystoreAccount)}}function E(e,t){let r=(0,b.looseArrayify)((0,b.searchPath)(e,"crypto/ciphertext")),n=(0,f.hexlify)((0,d.keccak256)((0,f.concat)([t.slice(16,32),r]))).substring(2);if(n!==(0,b.searchPath)(e,"crypto/mac").toLowerCase())throw Error("invalid password");let i=function(e,t,r){let n=(0,b.searchPath)(e,"crypto/cipher");if("aes-128-ctr"===n){let n=(0,b.looseArrayify)((0,b.searchPath)(e,"crypto/cipherparams/iv")),i=new a.default.Counter(n),s=new a.default.ModeOfOperation.ctr(t,i);return(0,f.arrayify)(s.decrypt(r))}return null}(e,t.slice(0,16),r);i||v.throwError("unsupported cipher",g.Logger.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});let s=t.slice(32,64),o=(0,m.computeAddress)(i);if(e.address){let t=e.address.toLowerCase();if("0x"!==t.substring(0,2)&&(t="0x"+t),(0,c.getAddress)(t)!==o)throw Error("address mismatch")}let l={_isKeystoreAccount:!0,address:o,privateKey:(0,f.hexlify)(i)};if("0.1"===(0,b.searchPath)(e,"x-ethers/version")){let t=(0,b.looseArrayify)((0,b.searchPath)(e,"x-ethers/mnemonicCiphertext")),r=(0,b.looseArrayify)((0,b.searchPath)(e,"x-ethers/mnemonicCounter")),n=new a.default.Counter(r),i=new a.default.ModeOfOperation.ctr(s,n),o=(0,b.searchPath)(e,"x-ethers/path")||u.defaultPath,c=(0,b.searchPath)(e,"x-ethers/locale")||"en",d=(0,f.arrayify)(i.decrypt(t));try{let e=(0,u.entropyToMnemonic)(d,c),t=(0,u.HDNode).fromMnemonic(e,null,c).derivePath(o);if(t.privateKey!=l.privateKey)throw Error("mnemonic mismatch");l.mnemonic=t.mnemonic}catch(e){if(e.code!==g.Logger.errors.INVALID_ARGUMENT||"wordlist"!==e.argument)throw e}}return new _(l)}function A(e,t,r,n,i){return(0,f.arrayify)((0,l.pbkdf2)(e,t,r,n,i))}function M(e,t,r,n,i){return Promise.resolve(A(e,t,r,n,i))}function S(e,t,r,n,i){let a=(0,b.getPassword)(t),s=(0,b.searchPath)(e,"crypto/kdf");if(s&&"string"==typeof s){let t=function(e,t){return v.throwArgumentError("invalid key-derivation function parameters",e,t)};if("scrypt"===s.toLowerCase()){let r=(0,b.looseArrayify)((0,b.searchPath)(e,"crypto/kdfparams/salt")),o=parseInt((0,b.searchPath)(e,"crypto/kdfparams/n")),c=parseInt((0,b.searchPath)(e,"crypto/kdfparams/r")),f=parseInt((0,b.searchPath)(e,"crypto/kdfparams/p"));o&&c&&f||t("kdf",s),(o&o-1)!=0&&t("N",o);let u=parseInt((0,b.searchPath)(e,"crypto/kdfparams/dklen"));return 32!==u&&t("dklen",u),n(a,r,o,c,f,64,i)}if("pbkdf2"===s.toLowerCase()){let n=(0,b.looseArrayify)((0,b.searchPath)(e,"crypto/kdfparams/salt")),i=null,s=(0,b.searchPath)(e,"crypto/kdfparams/prf");"hmac-sha256"===s?i="sha256":"hmac-sha512"===s?i="sha512":t("prf",s);let o=parseInt((0,b.searchPath)(e,"crypto/kdfparams/c")),c=parseInt((0,b.searchPath)(e,"crypto/kdfparams/dklen"));return 32!==c&&t("dklen",c),r(a,n,o,c,i)}}return v.throwArgumentError("unsupported key-derivation function","kdf",s)}function x(e,t){let r=JSON.parse(e),n=S(r,t,A,o.default.syncScrypt);return E(r,n)}function T(e,t,r){var n,i,a,s;return n=this,i=void 0,a=void 0,s=function*(){let n=JSON.parse(e),i=yield S(n,t,M,o.default.scrypt,r);return E(n,i)},new(a||(a=Promise))(function(e,t){function r(e){try{c(s.next(e))}catch(e){t(e)}}function o(e){try{c(s.throw(e))}catch(e){t(e)}}function c(t){var n;t.done?e(t.value):((n=t.value)instanceof a?n:new a(function(e){e(n)})).then(r,o)}c((s=s.apply(n,i||[])).next())})}function k(e,t,r,n){try{if((0,c.getAddress)(e.address)!==(0,m.computeAddress)(e.privateKey))throw Error("address/privateKey mismatch");if(w(e)){let t=e.mnemonic,r=(0,u.HDNode).fromMnemonic(t.phrase,null,t.locale).derivePath(t.path||u.defaultPath);if(r.privateKey!=e.privateKey)throw Error("mnemonic mismatch")}}catch(e){return Promise.reject(e)}"function"!=typeof r||n||(n=r,r={}),r||(r={});let i=(0,f.arrayify)(e.privateKey),s=(0,b.getPassword)(t),l=null,p=null,g=null;if(w(e)){let t=e.mnemonic;l=(0,f.arrayify)((0,u.mnemonicToEntropy)(t.phrase,t.locale||"en")),p=t.path||u.defaultPath,g=t.locale||"en"}let y=r.client;y||(y="ethers.js");let v=null;v=r.salt?(0,f.arrayify)(r.salt):(0,h.randomBytes)(32);let _=null;if(r.iv){if(16!==(_=(0,f.arrayify)(r.iv)).length)throw Error("invalid iv")}else _=(0,h.randomBytes)(16);let E=null;if(r.uuid){if(16!==(E=(0,f.arrayify)(r.uuid)).length)throw Error("invalid uuid")}else E=(0,h.randomBytes)(16);let A=131072,M=8,S=1;return r.scrypt&&(r.scrypt.N&&(A=r.scrypt.N),r.scrypt.r&&(M=r.scrypt.r),r.scrypt.p&&(S=r.scrypt.p)),(0,o.default).scrypt(s,v,A,M,S,64,n).then(t=>{t=(0,f.arrayify)(t);let r=t.slice(0,16),n=t.slice(16,32),s=t.slice(32,64),o=new a.default.Counter(_),c=new a.default.ModeOfOperation.ctr(r,o),u=(0,f.arrayify)(c.encrypt(i)),m=(0,d.keccak256)((0,f.concat)([n,u])),w={address:e.address.substring(2).toLowerCase(),id:(0,b.uuidV4)(E),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:(0,f.hexlify)(_).substring(2)},ciphertext:(0,f.hexlify)(u).substring(2),kdf:"scrypt",kdfparams:{salt:(0,f.hexlify)(v).substring(2),n:A,dklen:32,p:S,r:M},mac:m.substring(2)}};if(l){let e=(0,h.randomBytes)(16),t=new a.default.Counter(e),r=new a.default.ModeOfOperation.ctr(s,t),n=(0,f.arrayify)(r.encrypt(l)),i=new Date,o=i.getUTCFullYear()+"-"+(0,b.zpad)(i.getUTCMonth()+1,2)+"-"+(0,b.zpad)(i.getUTCDate(),2)+"T"+(0,b.zpad)(i.getUTCHours(),2)+"-"+(0,b.zpad)(i.getUTCMinutes(),2)+"-"+(0,b.zpad)(i.getUTCSeconds(),2)+".0Z";w["x-ethers"]={client:y,gethFilename:"UTC--"+o+"--"+w.address,mnemonicCounter:(0,f.hexlify)(e).substring(2),mnemonicCiphertext:(0,f.hexlify)(n).substring(2),path:p,locale:g,version:"0.1"}}return JSON.stringify(w)})}},{"aes-js":"1XnEw","scrypt-js":"81Ky2","@ethersproject/address":"7BZuS","@ethersproject/bytes":"19SwW","@ethersproject/hdnode":"2zCqF","@ethersproject/keccak256":"eWtzg","@ethersproject/pbkdf2":"53AfG","@ethersproject/random":"5x4el","@ethersproject/properties":"dmdV5","@ethersproject/transactions":"ctBdV","./utils":"fbe9v","@ethersproject/logger":"6NWvR","./_version":"giv5t","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"81Ky2":[function(e,t,r){"use strict";!function(e){function n(e){let t=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]),r=1779033703,n=3144134277,i=1013904242,a=2773480762,s=1359893119,o=2600822924,c=528734635,f=1541459225,u=new Uint32Array(64);function d(e){let d=0,l=e.length;for(;l>=64;){let h=r,p=n,m=i,b=a,g=s,y=o,v=c,w=f,_,E,A,M,S;for(E=0;E<16;E++)A=d+4*E,u[E]=(255&e[A])<<24|(255&e[A+1])<<16|(255&e[A+2])<<8|255&e[A+3];for(E=16;E<64;E++)M=((_=u[E-2])>>>17|_<<15)^(_>>>19|_<<13)^_>>>10,S=((_=u[E-15])>>>7|_<<25)^(_>>>18|_<<14)^_>>>3,u[E]=(M+u[E-7]|0)+(S+u[E-16]|0)|0;for(E=0;E<64;E++)M=(((g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&y^~g&v)|0)+(w+(t[E]+u[E]|0)|0)|0,S=((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+(h&p^h&m^p&m)|0,w=v,v=y,y=g,g=b+M|0,b=m,m=p,p=h,h=M+S|0;r=r+h|0,n=n+p|0,i=i+m|0,a=a+b|0,s=s+g|0,o=o+y|0,c=c+v|0,f=f+w|0,d+=64,l-=64}}d(e);let l,h=e.length%64,p=e.length/536870912|0,m=e.length<<3,b=h<56?56:120,g=e.slice(e.length-h,e.length);for(g.push(128),l=h+1;l>>24&255),g.push(p>>>16&255),g.push(p>>>8&255),g.push(p>>>0&255),g.push(m>>>24&255),g.push(m>>>16&255),g.push(m>>>8&255),g.push(m>>>0&255),d(g),[r>>>24&255,r>>>16&255,r>>>8&255,r>>>0&255,n>>>24&255,n>>>16&255,n>>>8&255,n>>>0&255,i>>>24&255,i>>>16&255,i>>>8&255,i>>>0&255,a>>>24&255,a>>>16&255,a>>>8&255,a>>>0&255,s>>>24&255,s>>>16&255,s>>>8&255,s>>>0&255,o>>>24&255,o>>>16&255,o>>>8&255,o>>>0&255,c>>>24&255,c>>>16&255,c>>>8&255,c>>>0&255,f>>>24&255,f>>>16&255,f>>>8&255,f>>>0&255]}function i(e,t,r){let i;e=e.length<=64?e:n(e);let a=64+t.length+4,s=Array(a),o=Array(64),c=[];for(i=0;i<64;i++)s[i]=54;for(i=0;i=a-4;e--){if(s[e]++,s[e]<=255)return;s[e]=0}}for(;r>=32;)f(),c=c.concat(n(o.concat(n(s)))),r-=32;return r>0&&(f(),c=c.concat(n(o.concat(n(s))).slice(0,r))),c}function a(e,t,r,n,i){let a;for(c(e,(2*r-1)*16,i,0,16),a=0;a<2*r;a++)o(e,16*a,i,16),function(e,t){c(e,0,t,0,16);for(let e=8;e>0;e-=2)t[4]^=s(t[0]+t[12],7),t[8]^=s(t[4]+t[0],9),t[12]^=s(t[8]+t[4],13),t[0]^=s(t[12]+t[8],18),t[9]^=s(t[5]+t[1],7),t[13]^=s(t[9]+t[5],9),t[1]^=s(t[13]+t[9],13),t[5]^=s(t[1]+t[13],18),t[14]^=s(t[10]+t[6],7),t[2]^=s(t[14]+t[10],9),t[6]^=s(t[2]+t[14],13),t[10]^=s(t[6]+t[2],18),t[3]^=s(t[15]+t[11],7),t[7]^=s(t[3]+t[15],9),t[11]^=s(t[7]+t[3],13),t[15]^=s(t[11]+t[7],18),t[1]^=s(t[0]+t[3],7),t[2]^=s(t[1]+t[0],9),t[3]^=s(t[2]+t[1],13),t[0]^=s(t[3]+t[2],18),t[6]^=s(t[5]+t[4],7),t[7]^=s(t[6]+t[5],9),t[4]^=s(t[7]+t[6],13),t[5]^=s(t[4]+t[7],18),t[11]^=s(t[10]+t[9],7),t[8]^=s(t[11]+t[10],9),t[9]^=s(t[8]+t[11],13),t[10]^=s(t[9]+t[8],18),t[12]^=s(t[15]+t[14],7),t[13]^=s(t[12]+t[15],9),t[14]^=s(t[13]+t[12],13),t[15]^=s(t[14]+t[13],18);for(let r=0;r<16;++r)e[r]+=t[r]}(i,n),c(i,0,e,t+16*a,16);for(a=0;a>>32-t}function o(e,t,r,n){for(let i=0;i=256)return!1}return!0}function u(e,t){if("number"!=typeof e||e%1)throw Error("invalid "+t);return e}function d(e,t,r,n,s,d,l){let h;if(r=u(r,"N"),n=u(n,"r"),s=u(s,"p"),d=u(d,"dkLen"),0===r||(r&r-1)!=0)throw Error("N must be power of 2");if(r>2147483647/128/n)throw Error("N too large");if(n>2147483647/128/s)throw Error("r too large");if(!f(e))throw Error("password must be an array or buffer");if(e=Array.prototype.slice.call(e),!f(t))throw Error("salt must be an array or buffer");let p=i(e,t=Array.prototype.slice.call(t),128*s*n),m=new Uint32Array(32*s*n);for(let e=0;ek&&(t=k);for(let e=0;ek&&(t=k);for(let e=0;e>0&255),p.push(m[e]>>8&255),p.push(m[e]>>16&255),p.push(m[e]>>24&255);let f=i(e,p,d);return l&&l(null,1,f),f}l&&R(I)};if(!l)for(;;){let e=I();if(void 0!=e)return e}I()}let l={scrypt:function(e,t,r,n,i,a,s){return new Promise(function(o,c){let f=0;s&&s(0),d(e,t,r,n,i,a,function(e,t,r){if(e)c(e);else if(r)s&&1!==f&&s(1),o(new Uint8Array(r));else if(s&&t!==f)return f=t,s(t)})})},syncScrypt:function(e,t,r,n,i,a){return new Uint8Array(d(e,t,r,n,i,a))}};void 0!==r?t.exports=l:"function"==typeof define&&define.amd?define(l):e&&(e.scrypt&&(e._scrypt=e.scrypt),e.scrypt=l)}(this)},{}],"2nczW":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="wallet/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lpm2Y:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Provider",()=>i.Provider),n.export(r,"BaseProvider",()=>s.BaseProvider),n.export(r,"Resolver",()=>s.Resolver),n.export(r,"UrlJsonRpcProvider",()=>y.UrlJsonRpcProvider),n.export(r,"FallbackProvider",()=>d.FallbackProvider),n.export(r,"AlchemyProvider",()=>o.AlchemyProvider),n.export(r,"AlchemyWebSocketProvider",()=>o.AlchemyWebSocketProvider),n.export(r,"AnkrProvider",()=>c.AnkrProvider),n.export(r,"CloudflareProvider",()=>f.CloudflareProvider),n.export(r,"EtherscanProvider",()=>u.EtherscanProvider),n.export(r,"InfuraProvider",()=>h.InfuraProvider),n.export(r,"InfuraWebSocketProvider",()=>h.InfuraWebSocketProvider),n.export(r,"JsonRpcProvider",()=>p.JsonRpcProvider),n.export(r,"JsonRpcBatchProvider",()=>m.JsonRpcBatchProvider),n.export(r,"NodesmithProvider",()=>b.NodesmithProvider),n.export(r,"PocketProvider",()=>g.PocketProvider),n.export(r,"StaticJsonRpcProvider",()=>y.StaticJsonRpcProvider),n.export(r,"Web3Provider",()=>v.Web3Provider),n.export(r,"WebSocketProvider",()=>w.WebSocketProvider),n.export(r,"IpcProvider",()=>l.IpcProvider),n.export(r,"JsonRpcSigner",()=>p.JsonRpcSigner),n.export(r,"getDefaultProvider",()=>S),n.export(r,"getNetwork",()=>a.getNetwork),n.export(r,"isCommunityResource",()=>_.isCommunityResource),n.export(r,"isCommunityResourcable",()=>_.isCommunityResourcable),n.export(r,"showThrottleMessage",()=>_.showThrottleMessage),n.export(r,"Formatter",()=>_.Formatter);"use strict";var i=e("@ethersproject/abstract-provider"),a=e("@ethersproject/networks"),s=e("./base-provider"),o=e("./alchemy-provider"),c=e("./ankr-provider"),f=e("./cloudflare-provider"),u=e("./etherscan-provider"),d=e("./fallback-provider"),l=e("./ipc-provider"),h=e("./infura-provider"),p=e("./json-rpc-provider"),m=e("./json-rpc-batch-provider"),b=e("./nodesmith-provider"),g=e("./pocket-provider"),y=e("./url-json-rpc-provider"),v=e("./web3-provider"),w=e("./websocket-provider"),_=e("./formatter"),E=e("@ethersproject/logger"),A=e("./_version");let M=new E.Logger(A.version);function S(e,t){if(null==e&&(e="homestead"),"string"==typeof e){let t=e.match(/^(ws|http)s?:/i);if(t)switch(t[1].toLowerCase()){case"http":case"https":return new p.JsonRpcProvider(e);case"ws":case"wss":return new w.WebSocketProvider(e);default:M.throwArgumentError("unsupported URL scheme","network",e)}}let r=(0,a.getNetwork)(e);return r&&r._defaultProvider||M.throwError("unsupported getDefaultProvider network",E.Logger.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:e}),r._defaultProvider({FallbackProvider:d.FallbackProvider,AlchemyProvider:o.AlchemyProvider,AnkrProvider:c.AnkrProvider,CloudflareProvider:f.CloudflareProvider,EtherscanProvider:u.EtherscanProvider,InfuraProvider:h.InfuraProvider,JsonRpcProvider:p.JsonRpcProvider,NodesmithProvider:b.NodesmithProvider,PocketProvider:g.PocketProvider,Web3Provider:v.Web3Provider,IpcProvider:l.IpcProvider},t)}},{"@ethersproject/abstract-provider":"imf57","@ethersproject/networks":"acQbn","./base-provider":"lEHz5","./alchemy-provider":"dBSgv","./ankr-provider":"afy2f","./cloudflare-provider":"1qhut","./etherscan-provider":"fduCf","./fallback-provider":"LdkdG","./ipc-provider":"8DeRN","./infura-provider":"8Bo5e","./json-rpc-provider":"7x7oZ","./json-rpc-batch-provider":"aCNcD","./nodesmith-provider":"19g4w","./pocket-provider":"dwl0t","./url-json-rpc-provider":"bwHu3","./web3-provider":"2aAfb","./websocket-provider":"83spj","./formatter":"7RPp2","@ethersproject/logger":"6NWvR","./_version":"1LO7N","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],acQbn:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"getNetwork",()=>h);"use strict";var i=e("@ethersproject/logger"),a=e("./_version");let s=new i.Logger(a.version);function o(e){let t=function(t,r){null==r&&(r={});let n=[];if(t.InfuraProvider&&"-"!==r.infura)try{n.push(new t.InfuraProvider(e,r.infura))}catch(e){}if(t.EtherscanProvider&&"-"!==r.etherscan)try{n.push(new t.EtherscanProvider(e,r.etherscan))}catch(e){}if(t.AlchemyProvider&&"-"!==r.alchemy)try{n.push(new t.AlchemyProvider(e,r.alchemy))}catch(e){}if(t.PocketProvider&&"-"!==r.pocket)try{let i=new t.PocketProvider(e,r.pocket);i.network&&-1===["goerli","ropsten","rinkeby","sepolia"].indexOf(i.network.name)&&n.push(i)}catch(e){}if(t.CloudflareProvider&&"-"!==r.cloudflare)try{n.push(new t.CloudflareProvider(e))}catch(e){}if(t.AnkrProvider&&"-"!==r.ankr)try{let i=new t.AnkrProvider(e,r.ankr);i.network&&-1===["ropsten"].indexOf(i.network.name)&&n.push(i)}catch(e){}if(0===n.length)return null;if(t.FallbackProvider){let i=1;return null!=r.quorum?i=r.quorum:"homestead"===e&&(i=2),new t.FallbackProvider(n,i)}return n[0]};return t.renetwork=function(e){return o(e)},t}function c(e,t){let r=function(r,n){return r.JsonRpcProvider?new r.JsonRpcProvider(e,t):null};return r.renetwork=function(t){return c(e,t)},r}let f={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:o("homestead")},u={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:o("ropsten")},d={chainId:63,name:"classicMordor",_defaultProvider:c("https://www.ethercluster.com/mordor","classicMordor")},l={unspecified:{chainId:0,name:"unspecified"},homestead:f,mainnet:f,morden:{chainId:2,name:"morden"},ropsten:u,testnet:u,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:o("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:o("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:o("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:o("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:c("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:d,classicTestnet:d,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:c("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:o("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:o("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 h(e){if(null==e)return null;if("number"==typeof e){for(let t in l){let r=l[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){let t=l[e];return null==t?null:{name:t.name,chainId:t.chainId,ensAddress:t.ensAddress,_defaultProvider:t._defaultProvider||null}}let t=l[e.name];if(!t)return"number"!=typeof e.chainId&&s.throwArgumentError("invalid network chainId","network",e),e;0!==e.chainId&&e.chainId!==t.chainId&&s.throwArgumentError("network chainId mismatch","network",e);let r=e._defaultProvider||null;if(null==r&&t._defaultProvider){var n;r=(n=t._defaultProvider)&&"function"==typeof n.renetwork?t._defaultProvider.renetwork(e):t._defaultProvider}return{name:e.name,chainId:t.chainId,ensAddress:e.ensAddress||t.ensAddress||null,_defaultProvider:r}}},{"@ethersproject/logger":"6NWvR","./_version":"jSIn2","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],jSIn2:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="networks/5.7.1"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lEHz5:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Event",()=>R),n.export(r,"Resolver",()=>F),n.export(r,"BaseProvider",()=>K);"use strict";var i=e("@ethersproject/abstract-provider"),a=e("@ethersproject/base64"),s=e("@ethersproject/basex"),o=e("@ethersproject/bignumber"),c=e("@ethersproject/bytes"),f=e("@ethersproject/constants"),u=e("@ethersproject/hash"),d=e("@ethersproject/networks"),l=e("@ethersproject/properties"),h=e("@ethersproject/sha2"),p=e("@ethersproject/strings"),m=e("@ethersproject/web"),b=e("bech32"),g=n.interopDefault(b),y=e("@ethersproject/logger"),v=e("./_version"),w=e("./formatter"),_=function(e,t,r,n){return new(r||(r=Promise))(function(i,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function o(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}c((n=n.apply(e,t||[])).next())})};let E=new y.Logger(v.version);function A(e){return null==e?"null":(32!==(0,c.hexDataLength)(e)&&E.throwArgumentError("invalid topic","topic",e),e.toLowerCase())}function M(e){for(e=e.slice();e.length>0&&null==e[e.length-1];)e.pop();return e.map(e=>{if(!Array.isArray(e))return A(e);{let t={};e.forEach(e=>{t[A(e)]=!0});let r=Object.keys(t);return r.sort(),r.join("|")}}).join("&")}function S(e){if("string"==typeof e){if(e=e.toLowerCase(),32===(0,c.hexDataLength)(e))return"tx:"+e;if(-1===e.indexOf(":"))return e}else if(Array.isArray(e))return"filter:*:"+M(e);else if((0,i.ForkEvent).isForkEvent(e))throw E.warn("not implemented"),Error("not implemented");else if(e&&"object"==typeof e)return"filter:"+(e.address||"*")+":"+M(e.topics||[]);throw Error("invalid event - "+e)}function x(){return new Date().getTime()}function T(e){return new Promise(t=>{setTimeout(t,e)})}let k=["block","network","pending","poll"];class R{constructor(e,t,r){(0,l.defineReadOnly)(this,"tag",e),(0,l.defineReadOnly)(this,"listener",t),(0,l.defineReadOnly)(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(){let e=this.tag.split(":");return"tx"!==e[0]?null:e[1]}get filter(){var e;let t=this.tag.split(":");if("filter"!==t[0])return null;let r=t[1],n=""===(e=t[2])?[]:e.split(/&/g).map(e=>{if(""===e)return[];let t=e.split("|").map(e=>"null"===e?null:e);return 1===t.length?t[0]:t}),i={};return n.length>0&&(i.topics=n),r&&"*"!==r&&(i.address=r),i}pollable(){return this.tag.indexOf(":")>=0||k.indexOf(this.tag)>=0}}let I={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 C(e){return(0,c.hexZeroPad)((0,o.BigNumber).from(e).toHexString(),32)}function P(e){return(0,s.Base58).encode((0,c.concat)([e,(0,c.hexDataSlice)((0,h.sha256)((0,h.sha256)(e)),0,4)]))}let O=RegExp("^(ipfs)://(.*)$","i"),N=[RegExp("^(https)://(.*)$","i"),RegExp("^(data):(.*)$","i"),O,RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function j(e,t){try{return(0,p.toUtf8String)(B(e,t))}catch(e){}return null}function B(e,t){if("0x"===e)return null;let r=(0,o.BigNumber).from((0,c.hexDataSlice)(e,t,t+32)).toNumber(),n=(0,o.BigNumber).from((0,c.hexDataSlice)(e,r,r+32)).toNumber();return(0,c.hexDataSlice)(e,r+32,r+32+n)}function L(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):E.throwArgumentError("unsupported IPFS format","link",e),`https://gateway.ipfs.io/ipfs/${e}`}function D(e){let t=(0,c.arrayify)(e);if(t.length>32)throw Error("internal; should not happen");let r=new Uint8Array(32);return r.set(t,32-t.length),r}function U(e){let t=[],r=0;for(let n=0;n(0,o.BigNumber).from(e).eq(1)).catch(e=>{if(e.code===y.Logger.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,e})),this._supportsEip2544}_fetch(e,t){return _(this,void 0,void 0,function*(){let r={to:this.address,ccipReadEnabled:!0,data:(0,c.hexConcat)([e,(0,u.namehash)(this.name),t||"0x"])},n=!1;(yield this.supportsWildcard())&&(n=!0,r.data=(0,c.hexConcat)(["0x9061b923",U([(0,u.dnsEncode)(this.name),r.data])]));try{let e=yield this.provider.call(r);return(0,c.arrayify)(e).length%32==4&&E.throwError("resolver threw error",y.Logger.errors.CALL_EXCEPTION,{transaction:r,data:e}),n&&(e=B(e,0)),e}catch(e){if(e.code===y.Logger.errors.CALL_EXCEPTION)return null;throw e}})}_fetchBytes(e,t){return _(this,void 0,void 0,function*(){let r=yield this._fetch(e,t);return null!=r?B(r,0):null})}_getAddress(e,t){let r=I[String(e)];if(null==r&&E.throwError(`unsupported coin type: ${e}`,y.Logger.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`}),"eth"===r.ilk)return this.provider.formatter.address(t);let n=(0,c.arrayify)(t);if(null!=r.p2pkh){let e=t.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(e){let t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return P((0,c.concat)([[r.p2pkh],"0x"+e[2]]))}}if(null!=r.p2sh){let e=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(e){let t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return P((0,c.concat)([[r.p2sh],"0x"+e[2]]))}}if(null!=r.prefix){let e=n[1],t=n[0];if(0===t?20!==e&&32!==e&&(t=-1):t=-1,t>=0&&n.length===2+e&&e>=1&&e<=75){let e=(0,g.default).toWords(n.slice(2));return e.unshift(t),(0,g.default).encode(r.prefix,e)}}return null}getAddress(e){return _(this,void 0,void 0,function*(){if(null==e&&(e=60),60===e)try{let e=yield this._fetch("0x3b3b57de");if("0x"===e||e===f.HashZero)return null;return this.provider.formatter.callAddress(e)}catch(e){if(e.code===y.Logger.errors.CALL_EXCEPTION)return null;throw e}let t=yield this._fetchBytes("0xf1cb7e06",C(e));if(null==t||"0x"===t)return null;let r=this._getAddress(e,t);return null==r&&E.throwError("invalid or unsupported coin data",y.Logger.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`,coinType:e,data:t}),r})}getAvatar(){return _(this,void 0,void 0,function*(){let e=[{type:"name",content:this.name}];try{let t=yield this.getText("avatar");if(null==t)return null;for(let r=0;re[t]);return"sia://"+t}return E.throwError("invalid or unsupported content hash data",y.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})})}getText(e){return _(this,void 0,void 0,function*(){let t=(0,p.toUtf8Bytes)(e);(t=(0,c.concat)([C(64),C(t.length),t])).length%32!=0&&(t=(0,c.concat)([t,(0,c.hexZeroPad)("0x",32-e.length%32)]));let r=yield this._fetchBytes("0x59d1d43c",(0,c.hexlify)(t));return null==r||"0x"===r?null:(0,p.toUtf8String)(r)})}}let q=null,z=1;class K extends i.Provider{constructor(e){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),(0,l.defineReadOnly)(this,"anyNetwork","any"===e),this.anyNetwork&&(e=this.detectNetwork()),e instanceof Promise)this._networkPromise=e,e.catch(e=>{}),this._ready().catch(e=>{});else{let t=(0,l.getStatic)(new.target,"getNetwork")(e);t?((0,l.defineReadOnly)(this,"_network",t),this.emit("network",t,null)):E.throwArgumentError("invalid network","network",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return _(this,void 0,void 0,function*(){if(null==this._network){let e=null;if(this._networkPromise)try{e=yield this._networkPromise}catch(e){}null==e&&(e=yield this.detectNetwork()),e||E.throwError("no network detected",y.Logger.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=e:(0,l.defineReadOnly)(this,"_network",e),this.emit("network",e,null))}return this._network})}get ready(){return(0,m.poll)(()=>this._ready().then(e=>e,e=>{if(e.code!==y.Logger.errors.NETWORK_ERROR||"noNetwork"!==e.event)throw e}))}static getFormatter(){return null==q&&(q=new w.Formatter),q}static getNetwork(e){return(0,d.getNetwork)(null==e?"homestead":e)}ccipReadFetch(e,t,r){return _(this,void 0,void 0,function*(){if(this.disableCcipRead||0===r.length)return null;let n=e.to.toLowerCase(),i=t.toLowerCase(),a=[];for(let e=0;e=0?null:JSON.stringify({data:i,sender:n}),c=yield(0,m.fetchJson)({url:s,errorPassThrough:!0},o,(e,t)=>(e.status=t.statusCode,e));if(c.data)return c.data;let f=c.message||"unknown error";if(c.status>=400&&c.status<500)return E.throwError(`response not found during CCIP fetch: ${f}`,y.Logger.errors.SERVER_ERROR,{url:t,errorMessage:f});a.push(f)}return E.throwError(`error encountered during CCIP fetch: ${a.map(e=>JSON.stringify(e)).join(", ")}`,y.Logger.errors.SERVER_ERROR,{urls:r,errorMessages:a})})}_getInternalBlockNumber(e){return _(this,void 0,void 0,function*(){if(yield this._ready(),e>0)for(;this._internalBlockNumber;){let t=this._internalBlockNumber;try{let r=yield t;if(x()-r.respTime<=e)return r.blockNumber;break}catch(e){if(this._internalBlockNumber===t)break}}let t=x(),r=(0,l.resolveProperties)({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(e=>null,e=>e)}).then(({blockNumber:e,networkError:n})=>{if(n)throw this._internalBlockNumber===r&&(this._internalBlockNumber=null),n;let i=x();return(e=(0,o.BigNumber).from(e).toNumber()){this._internalBlockNumber===r&&(this._internalBlockNumber=null)}),(yield r).blockNumber})}poll(){return _(this,void 0,void 0,function*(){let e=z++,t=[],r=null;try{r=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(e){this.emit("error",e);return}if(this._setFastBlockNumber(r),this.emit("poll",e,r),r===this._lastBlockNumber){this.emit("didPoll",e);return}if(-2===this._emitted.block&&(this._emitted.block=r-1),Math.abs(this._emitted.block-r)>1e3)E.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${r})`),this.emit("error",E.makeError("network block skew detected",y.Logger.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;let 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":{let r=e.hash,n=this.getTransactionReceipt(r).then(e=>(e&&null!=e.blockNumber&&(this._emitted["t:"+r]=e.blockNumber,this.emit(r,e)),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);let n=e.filter;n.fromBlock=e._lastBlockNumber+1,n.toBlock=r;let i=n.toBlock-this._maxFilterBlockRange;i>n.fromBlock&&(n.fromBlock=i),n.fromBlock<0&&(n.fromBlock=0);let a=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(a)}}}),this._lastBlockNumber=r,Promise.all(t).then(()=>{this.emit("didPoll",e)}).catch(e=>{this.emit("error",e)})})}resetEventsBlock(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return _(this,void 0,void 0,function*(){return E.throwError("provider does not support network detection",y.Logger.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})})}getNetwork(){return _(this,void 0,void 0,function*(){let 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 T(0),this._network;let r=E.makeError("underlying network changed",y.Logger.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 Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval(()=>{this.poll()},this._pollingInterval))}_getFastBlockNumber(){let e=x();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 _(this,void 0,void 0,function*(){return this._waitForTransaction(e,null==t?1:t,r||0,null)})}_waitForTransaction(e,t,r,n){return _(this,void 0,void 0,function*(){let i=yield this.getTransactionReceipt(e);return(i?i.confirmations:0)>=t?i:new Promise((i,a)=>{let s=[],o=!1,c=function(){return!!o||(o=!0,s.forEach(e=>{e()}),!1)},f=e=>{!(e.confirmations{this.removeListener(e,f)}),n){let r=n.startBlock,i=null,f=s=>_(this,void 0,void 0,function*(){o||(yield T(1e3),this.getTransactionCount(n.from).then(u=>_(this,void 0,void 0,function*(){if(!o){if(u<=n.nonce)r=s;else{{let t=yield this.getTransaction(e);if(t&&null!=t.blockNumber)return}for(null==i&&(i=r-3){o||this.once("block",f)}))});if(o)return;this.once("block",f),s.push(()=>{this.removeListener("block",f)})}if("number"==typeof r&&r>0){let e=setTimeout(()=>{c()||a(E.makeError("timeout exceeded",y.Logger.errors.TIMEOUT,{timeout:r}))},r);e.unref&&e.unref(),s.push(()=>{clearTimeout(e)})}})})}getBlockNumber(){return _(this,void 0,void 0,function*(){return this._getInternalBlockNumber(0)})}getGasPrice(){return _(this,void 0,void 0,function*(){yield this.getNetwork();let e=yield this.perform("getGasPrice",{});try{return(0,o.BigNumber).from(e)}catch(t){return E.throwError("bad result from backend",y.Logger.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:t})}})}getBalance(e,t){return _(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield(0,l.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getBalance",r);try{return(0,o.BigNumber).from(n)}catch(e){return E.throwError("bad result from backend",y.Logger.errors.SERVER_ERROR,{method:"getBalance",params:r,result:n,error:e})}})}getTransactionCount(e,t){return _(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield(0,l.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getTransactionCount",r);try{return(0,o.BigNumber).from(n).toNumber()}catch(e){return E.throwError("bad result from backend",y.Logger.errors.SERVER_ERROR,{method:"getTransactionCount",params:r,result:n,error:e})}})}getCode(e,t){return _(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield(0,l.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getCode",r);try{return(0,c.hexlify)(n)}catch(e){return E.throwError("bad result from backend",y.Logger.errors.SERVER_ERROR,{method:"getCode",params:r,result:n,error:e})}})}getStorageAt(e,t,r){return _(this,void 0,void 0,function*(){yield this.getNetwork();let n=yield(0,l.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(r),position:Promise.resolve(t).then(e=>(0,c.hexValue)(e))}),i=yield this.perform("getStorageAt",n);try{return(0,c.hexlify)(i)}catch(e){return E.throwError("bad result from backend",y.Logger.errors.SERVER_ERROR,{method:"getStorageAt",params:n,result:i,error:e})}})}_wrapTransaction(e,t,r){if(null!=t&&32!==(0,c.hexDataLength)(t))throw Error("invalid response - sendTransaction");return null!=t&&e.hash!==t&&E.throwError("Transaction hash mismatch from Provider.sendTransaction.",y.Logger.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),e.wait=(t,n)=>_(this,void 0,void 0,function*(){let i;null==t&&(t=1),null==n&&(n=0),0!==t&&null!=r&&(i={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:r});let a=yield this._waitForTransaction(e.hash,t,n,i);return null==a&&0===t?null:(this._emitted["t:"+e.hash]=a.blockNumber,0===a.status&&E.throwError("transaction failed",y.Logger.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:a}),a)}),e}sendTransaction(e){return _(this,void 0,void 0,function*(){yield this.getNetwork();let t=yield Promise.resolve(e).then(e=>(0,c.hexlify)(e)),r=this.formatter.transaction(e);null==r.confirmations&&(r.confirmations=0);let n=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{let e=yield this.perform("sendTransaction",{signedTransaction:t});return this._wrapTransaction(r,e,n)}catch(e){throw e.transaction=r,e.transactionHash=r.hash,e}})}_getTransactionRequest(e){return _(this,void 0,void 0,function*(){let 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?(0,o.BigNumber).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?(0,c.hexlify)(e):null))}),this.formatter.transactionRequest((yield(0,l.resolveProperties)(r)))})}_getFilter(e){return _(this,void 0,void 0,function*(){e=yield e;let 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(0,l.resolveProperties)(t)))})}_call(e,t,r){return _(this,void 0,void 0,function*(){r>=10&&E.throwError("CCIP read exceeded maximum redirections",y.Logger.errors.SERVER_ERROR,{redirects:r,transaction:e});let n=e.to,i=yield this.perform("call",{transaction:e,blockTag:t});if(r>=0&&"latest"===t&&null!=n&&"0x556f1830"===i.substring(0,10)&&(0,c.hexDataLength)(i)%32==4)try{let a=(0,c.hexDataSlice)(i,4),s=(0,c.hexDataSlice)(a,0,32);(0,o.BigNumber).from(s).eq(n)||E.throwError("CCIP Read sender did not match",y.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:i});let f=[],u=(0,o.BigNumber).from((0,c.hexDataSlice)(a,32,64)).toNumber(),d=(0,o.BigNumber).from((0,c.hexDataSlice)(a,u,u+32)).toNumber(),l=(0,c.hexDataSlice)(a,u+32);for(let t=0;t_(this,void 0,void 0,function*(){let 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 r=0;rthis._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 _(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;let t={transactionHash:this.formatter.hash(e,!0)};return(0,m.poll)(()=>_(this,void 0,void 0,function*(){let r=yield this.perform("getTransaction",t);if(null==r)return null==this._emitted["t:"+e]?null:void 0;let 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),t=e-n.blockNumber+1;t<=0&&(t=1),n.confirmations=t}return this._wrapTransaction(n)}),{oncePoll:this})})}getTransactionReceipt(e){return _(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;let t={transactionHash:this.formatter.hash(e,!0)};return(0,m.poll)(()=>_(this,void 0,void 0,function*(){let r=yield this.perform("getTransactionReceipt",t);if(null==r)return null==this._emitted["t:"+e]?null:void 0;if(null==r.blockHash)return;let 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),t=e-n.blockNumber+1;t<=0&&(t=1),n.confirmations=t}return n}),{oncePoll:this})})}getLogs(e){return _(this,void 0,void 0,function*(){yield this.getNetwork();let t=yield(0,l.resolveProperties)({filter:this._getFilter(e)}),r=yield this.perform("getLogs",t);return r.forEach(e=>{null==e.removed&&(e.removed=!1)}),(0,w.Formatter).arrayOf(this.formatter.filterLog.bind(this.formatter))(r)})}getEtherPrice(){return _(this,void 0,void 0,function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})})}_getBlockTag(e){return _(this,void 0,void 0,function*(){if("number"==typeof(e=yield e)&&e<0){e%1&&E.throwArgumentError("invalid BlockTag","blockTag",e);let t=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return(t+=e)<0&&(t=0),this.formatter.blockTag(t)}return this.formatter.blockTag(e)})}getResolver(e){return _(this,void 0,void 0,function*(){let t=e;for(;;){if(""===t||"."===t||"eth"!==e&&"eth"===t)return null;let r=yield this._getResolver(t,"getResolver");if(null!=r){let n=new F(this,r,e);if(t!==e&&!(yield n.supportsWildcard()))return null;return n}t=t.split(".").slice(1).join(".")}})}_getResolver(e,t){return _(this,void 0,void 0,function*(){null==t&&(t="ENS");let r=yield this.getNetwork();r.ensAddress||E.throwError("network does not support ENS",y.Logger.errors.UNSUPPORTED_OPERATION,{operation:t,network:r.name});try{let t=yield this.call({to:r.ensAddress,data:"0x0178b8bf"+(0,u.namehash)(e).substring(2)});return this.formatter.callAddress(t)}catch(e){}return null})}resolveName(e){return _(this,void 0,void 0,function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(t){if((0,c.isHexString)(e))throw t}"string"!=typeof e&&E.throwArgumentError("invalid ENS name","name",e);let t=yield this.getResolver(e);return t?yield t.getAddress():null})}lookupAddress(e){return _(this,void 0,void 0,function*(){e=yield e,e=this.formatter.address(e);let t=e.substring(2).toLowerCase()+".addr.reverse",r=yield this._getResolver(t,"lookupAddress");if(null==r)return null;let n=j((yield this.call({to:r,data:"0x691f3431"+(0,u.namehash)(t).substring(2)})),0),i=yield this.resolveName(n);return i!=e?null:n})}getAvatar(e){return _(this,void 0,void 0,function*(){let t=null;if((0,c.isHexString)(e)){let r=this.formatter.address(e),n=r.substring(2).toLowerCase()+".addr.reverse",i=yield this._getResolver(n,"getAvatar");if(!i)return null;t=new F(this,i,n);try{let e=yield t.getAvatar();if(e)return e.url}catch(e){if(e.code!==y.Logger.errors.CALL_EXCEPTION)throw e}try{let e=j((yield this.call({to:i,data:"0x691f3431"+(0,u.namehash)(n).substring(2)})),0);t=yield this.getResolver(e)}catch(e){if(e.code!==y.Logger.errors.CALL_EXCEPTION)throw e;return null}}else if(!(t=yield this.getResolver(e)))return null;let r=yield t.getAvatar();return null==r?null:r.url})}perform(e,t){return E.throwError(e+" not implemented",y.Logger.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){let n=new R(S(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,...t){let r=!1,n=[],i=S(e);return this._events=this._events.filter(e=>e.tag!==i||(setTimeout(()=>{e.listener.apply(this,t)},0),r=!0,!e.once||(n.push(e),!1))),n.forEach(e=>{this._stopEvent(e)}),r}listenerCount(e){if(!e)return this._events.length;let t=S(e);return this._events.filter(e=>e.tag===t).length}listeners(e){if(null==e)return this._events.map(e=>e.listener);let t=S(e);return this._events.filter(e=>e.tag===t).map(e=>e.listener)}off(e,t){if(null==t)return this.removeAllListeners(e);let r=[],n=!1,i=S(e);return this._events=this._events.filter(e=>e.tag!==i||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{let r=S(e);this._events=this._events.filter(e=>e.tag!==r||(t.push(e),!1))}return t.forEach(e=>{this._stopEvent(e)}),this}}},{"@ethersproject/abstract-provider":"imf57","@ethersproject/base64":"dIiCi","@ethersproject/basex":"Pygpe","@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/constants":"cSsuf","@ethersproject/hash":"jLDfB","@ethersproject/networks":"acQbn","@ethersproject/properties":"dmdV5","@ethersproject/sha2":"bznen","@ethersproject/strings":"edSy2","@ethersproject/web":"5uH8k",bech32:"jLLEl","@ethersproject/logger":"6NWvR","./_version":"1LO7N","./formatter":"7RPp2","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"5uH8k":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"_fetchData",()=>p),n.export(r,"fetchJson",()=>m),n.export(r,"poll",()=>b);"use strict";var i=e("@ethersproject/base64"),a=e("@ethersproject/bytes"),s=e("@ethersproject/properties"),o=e("@ethersproject/strings"),c=e("@ethersproject/logger"),f=e("./_version"),u=e("./geturl");let d=new c.Logger(f.version);function l(e){return new Promise(t=>{setTimeout(t,e)})}function h(e,t){if(null==e)return null;if("string"==typeof e)return e;if((0,a.isBytesLike)(e)){if(t&&("text"===t.split("/")[0]||"application/json"===t.split(";")[0].trim()))try{return(0,o.toUtf8String)(e)}catch(e){}return(0,a.hexlify)(e)}return e}function p(e,t,r){let n="object"==typeof e&&null!=e.throttleLimit?e.throttleLimit:12;d.assertArgument(n>0&&n%1==0,"invalid connection throttle limit","connection.throttleLimit",n);let a="object"==typeof e?e.throttleCallback:null,f="object"==typeof e&&"number"==typeof e.throttleSlotInterval?e.throttleSlotInterval:100;d.assertArgument(f>0&&f%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",f);let p="object"==typeof e&&!!e.errorPassThrough,m={},b=null,g={method:"GET"},y=!1,v=12e4;if("string"==typeof e)b=e;else if("object"==typeof e){if((null==e||null==e.url)&&d.throwArgumentError("missing URL","connection.url",e),b=e.url,"number"==typeof e.timeout&&e.timeout>0&&(v=e.timeout),e.headers)for(let t in e.headers)m[t.toLowerCase()]={key:t,value:String(e.headers[t])},["if-none-match","if-modified-since"].indexOf(t.toLowerCase())>=0&&(y=!0);if(g.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==b.substring(0,6)&&!0!==e.allowInsecureAuthentication&&d.throwError("basic authentication requires a secure https url",c.Logger.errors.INVALID_ARGUMENT,{argument:"url",url:b,user:e.user,password:"[REDACTED]"});let t=e.user+":"+e.password;m.authorization={key:"Authorization",value:"Basic "+(0,i.encode)((0,o.toUtf8Bytes)(t))}}null!=e.skipFetchSetup&&(g.skipFetchSetup=!!e.skipFetchSetup),null!=e.fetchOptions&&(g.fetchOptions=(0,s.shallowCopy)(e.fetchOptions))}let w=RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),_=b?b.match(w):null;if(_)try{var E;let e={statusCode:200,statusMessage:"OK",headers:{"content-type":_[1]||"text/plain"},body:_[2]?(0,i.decode)(_[3]):(E=_[3],(0,o.toUtf8Bytes)(E.replace(/%([0-9a-f][0-9a-f])/gi,(e,t)=>String.fromCharCode(parseInt(t,16)))))},t=e.body;return r&&(t=r(e.body,e)),Promise.resolve(t)}catch(e){d.throwError("processing response error",c.Logger.errors.SERVER_ERROR,{body:h(_[1],_[2]),error:e,requestBody:null,requestMethod:"GET",url:b})}t&&(g.method="POST",g.body=t,null==m["content-type"]&&(m["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==m["content-length"]&&(m["content-length"]={key:"Content-Length",value:String(t.length)}));let A={};Object.keys(m).forEach(e=>{let t=m[e];A[t.key]=t.value}),g.headers=A;let M=function(){let e=null,t=new Promise(function(t,r){v&&(e=setTimeout(()=>{null!=e&&(e=null,r(d.makeError("timeout",c.Logger.errors.TIMEOUT,{requestBody:h(g.body,A["content-type"]),requestMethod:g.method,timeout:v,url:b})))},v))});return{promise:t,cancel:function(){null!=e&&(clearTimeout(e),e=null)}}}(),S=function(){var e,t,i,s;return e=this,t=void 0,i=void 0,s=function*(){for(let e=0;e=300)&&(M.cancel(),d.throwError("bad response",c.Logger.errors.SERVER_ERROR,{status:t.statusCode,headers:t.headers,body:h(i,t.headers?t.headers["content-type"]:null),requestBody:h(g.body,A["content-type"]),requestMethod:g.method,url:b})),r)try{let e=yield r(i,t);return M.cancel(),e}catch(r){if(r.throttleRetry&&e"content-type"===e.toLowerCase()).length;e||(r.headers=(0,s.shallowCopy)(r.headers),r.headers["content-type"]="application/json")}else r.headers={"content-type":"application/json"};e=r}return p(e,n,(e,t)=>{let n=null;if(null!=e)try{n=JSON.parse((0,o.toUtf8String)(e))}catch(t){d.throwError("invalid JSON",c.Logger.errors.SERVER_ERROR,{body:e,error:t})}return r&&(n=r(n,t)),n})}function b(e,t){return t||(t={}),null==(t=(0,s.shallowCopy)(t)).floor&&(t.floor=0),null==t.ceiling&&(t.ceiling=1e4),null==t.interval&&(t.interval=250),new Promise(function(r,n){let i=null,a=!1,s=()=>!a&&(a=!0,i&&clearTimeout(i),!0);t.timeout&&(i=setTimeout(()=>{s()&&n(Error("timeout"))},t.timeout));let o=t.retryLimit,c=0;!function i(){return e().then(function(e){if(void 0!==e)s()&&r(e);else if(t.oncePoll)t.oncePoll.once("poll",i);else if(t.onceBlock)t.onceBlock.once("block",i);else if(!a){if(++c>o){s()&&n(Error("retry limit reached"));return}let e=t.interval*parseInt(String(Math.random()*Math.pow(2,c)));et.ceiling&&(e=t.ceiling),setTimeout(i,e)}return null},function(e){s()&&n(e)})}()})}},{"@ethersproject/base64":"dIiCi","@ethersproject/bytes":"19SwW","@ethersproject/properties":"dmdV5","@ethersproject/strings":"edSy2","@ethersproject/logger":"6NWvR","./_version":"bPRgl","./geturl":"aerdi","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],bPRgl:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="web/5.7.1"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],aerdi:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"getUrl",()=>a);var i=e("@ethersproject/bytes");"use strict";function a(e,t){var r,n,a,s;return r=this,n=void 0,a=void 0,s=function*(){null==t&&(t={});let 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){let 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)}let n=yield fetch(e,r),a=yield n.arrayBuffer(),s={};return n.headers.forEach?n.headers.forEach((e,t)=>{s[t.toLowerCase()]=e}):n.headers.keys().forEach(e=>{s[e.toLowerCase()]=n.headers.get(e)}),{headers:s,statusCode:n.status,statusMessage:n.statusText,body:(0,i.arrayify)(new Uint8Array(a))}},new(a||(a=Promise))(function(e,t){function i(e){try{c(s.next(e))}catch(e){t(e)}}function o(e){try{c(s.throw(e))}catch(e){t(e)}}function c(t){var r;t.done?e(t.value):((r=t.value)instanceof a?r:new a(function(e){e(r)})).then(i,o)}c((s=s.apply(r,n||[])).next())})}},{"@ethersproject/bytes":"19SwW","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],jLLEl:[function(e,t,r){"use strict";for(var n="qpzry9x8gf2tvdw0s3jn54khce6mua7l",i={},a=0;a>25;return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function c(e){for(var t=1,r=0;r126)return"Invalid prefix ("+e+")";t=o(t)^n>>5}for(r=0,t=o(t);rt)return"Exceeds length limit";var r=e.toLowerCase(),n=e.toUpperCase();if(e!==r&&e!==n)return"Mixed-case string "+e;var a=(e=r).lastIndexOf("1");if(-1===a)return"No separator character for "+e;if(0===a)return"Missing prefix for "+e;var s=e.slice(0,a),f=e.slice(a+1);if(f.length<6)return"Data too short";var u=c(s);if("string"==typeof u)return u;for(var d=[],l=0;l=f.length||d.push(p)}return 1!==u?"Invalid checksum for "+e:{prefix:s,words:d}}function u(e,t,r,n){for(var i=0,a=0,s=(1<=r;)o.push(i>>(a-=r)&s);if(n)a>0&&o.push(i<=t)return"Excess padding";if(i<r)throw TypeError("Exceeds length limit");var i=c(e=e.toLowerCase());if("string"==typeof i)throw Error(i);for(var a=e+"1",s=0;s>5!=0)throw Error("Non 5-bit word");i=o(i)^f,a+=n.charAt(f)}for(s=0;s<6;++s)i=o(i);for(i^=1,s=0;s<6;++s){var u=i>>(5-s)*5&31;a+=n.charAt(u)}return a},toWordsUnsafe:function(e){var t=u(e,8,5,!0);if(Array.isArray(t))return t},toWords:function(e){var t=u(e,8,5,!0);if(Array.isArray(t))return t;throw Error(t)},fromWordsUnsafe:function(e){var t=u(e,5,8,!1);if(Array.isArray(t))return t},fromWords:function(e){var t=u(e,5,8,!1);if(Array.isArray(t))return t;throw Error(t)}}},{}],"1LO7N":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="providers/5.7.2"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"7RPp2":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Formatter",()=>h),n.export(r,"isCommunityResourcable",()=>p),n.export(r,"isCommunityResource",()=>m),n.export(r,"showThrottleMessage",()=>g);"use strict";var i=e("@ethersproject/address"),a=e("@ethersproject/bignumber"),s=e("@ethersproject/bytes"),o=e("@ethersproject/constants"),c=e("@ethersproject/properties"),f=e("@ethersproject/transactions"),u=e("@ethersproject/logger"),d=e("./_version");let l=new u.Logger(d.version);class h{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){let e={},t=this.address.bind(this),r=this.bigNumber.bind(this),n=this.blockTag.bind(this),i=this.data.bind(this),a=this.hash.bind(this),s=this.hex.bind(this),o=this.number.bind(this),f=this.type.bind(this);return e.transaction={hash:a,type:f,accessList:h.allowNull(this.accessList.bind(this),null),blockHash:h.allowNull(a,null),blockNumber:h.allowNull(o,null),transactionIndex:h.allowNull(o,null),confirmations:h.allowNull(o,null),from:t,gasPrice:h.allowNull(r),maxPriorityFeePerGas:h.allowNull(r),maxFeePerGas:h.allowNull(r),gasLimit:r,to:h.allowNull(t,null),value:r,nonce:o,data:i,r:h.allowNull(this.uint256),s:h.allowNull(this.uint256),v:h.allowNull(o),creates:h.allowNull(t,null),raw:h.allowNull(i)},e.transactionRequest={from:h.allowNull(t),nonce:h.allowNull(o),gasLimit:h.allowNull(r),gasPrice:h.allowNull(r),maxPriorityFeePerGas:h.allowNull(r),maxFeePerGas:h.allowNull(r),to:h.allowNull(t),value:h.allowNull(r),data:h.allowNull(e=>this.data(e,!0)),type:h.allowNull(o),accessList:h.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:o,blockNumber:o,transactionHash:a,address:t,topics:h.arrayOf(a),data:i,logIndex:o,blockHash:a},e.receipt={to:h.allowNull(this.address,null),from:h.allowNull(this.address,null),contractAddress:h.allowNull(t,null),transactionIndex:o,root:h.allowNull(s),gasUsed:r,logsBloom:h.allowNull(i),blockHash:a,transactionHash:a,logs:h.arrayOf(this.receiptLog.bind(this)),blockNumber:o,confirmations:h.allowNull(o,null),cumulativeGasUsed:r,effectiveGasPrice:h.allowNull(r),status:h.allowNull(o),type:f},e.block={hash:h.allowNull(a),parentHash:a,number:o,timestamp:o,nonce:h.allowNull(s),difficulty:this.difficulty.bind(this),gasLimit:r,gasUsed:r,miner:h.allowNull(t),extraData:i,transactions:h.allowNull(h.arrayOf(a)),baseFeePerGas:h.allowNull(r)},e.blockWithTransactions=(0,c.shallowCopy)(e.block),e.blockWithTransactions.transactions=h.allowNull(h.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:h.allowNull(n,void 0),toBlock:h.allowNull(n,void 0),blockHash:h.allowNull(a,void 0),address:h.allowNull(t,void 0),topics:h.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:h.allowNull(o),blockHash:h.allowNull(a),transactionIndex:o,removed:h.allowNull(this.boolean.bind(this)),address:t,data:h.allowFalsish(i,"0x"),topics:h.arrayOf(a),transactionHash:a,logIndex:o},e}accessList(e){return(0,f.accessListify)(e||[])}number(e){return"0x"===e?0:(0,a.BigNumber).from(e).toNumber()}type(e){return"0x"===e||null==e?0:(0,a.BigNumber).from(e).toNumber()}bigNumber(e){return(0,a.BigNumber).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 Error("invalid boolean - "+e)}hex(e,t){return"string"==typeof e&&(t||"0x"===e.substring(0,2)||(e="0x"+e),(0,s.isHexString)(e))?e.toLowerCase():l.throwArgumentError("invalid hash","value",e)}data(e,t){let r=this.hex(e,t);if(r.length%2!=0)throw Error("invalid data; odd-length - "+e);return r}address(e){return(0,i.getAddress)(e)}callAddress(e){if(!(0,s.isHexString)(e,32))return null;let t=(0,i.getAddress)((0,s.hexDataSlice)(e,12));return t===o.AddressZero?null:t}contractAddress(e){return(0,i.getContractAddress)(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||(0,s.isHexString)(e))return(0,s.hexValue)(e);throw Error("invalid blockTag")}hash(e,t){let r=this.hex(e,t);return 32!==(0,s.hexDataLength)(r)?l.throwArgumentError("invalid hash","value",e):r}difficulty(e){if(null==e)return null;let t=(0,a.BigNumber).from(e);try{return t.toNumber()}catch(e){}return null}uint256(e){if(!(0,s.isHexString)(e))throw Error("invalid uint256");return(0,s.hexZeroPad)(e,32)}_block(e,t){null!=e.author&&null==e.miner&&(e.miner=e.author);let r=null!=e._difficulty?e._difficulty:e.difficulty,n=h.check(t,e);return n._difficulty=null==r?null:(0,a.BigNumber).from(r),n}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return h.check(this.formats.transactionRequest,e)}transactionResponse(e){null!=e.gas&&null==e.gasLimit&&(e.gasLimit=e.gas),e.to&&(0,a.BigNumber).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=[]);let t=h.check(this.formats.transaction,e);if(null!=e.chainId){let r=e.chainId;(0,s.isHexString)(r)&&(r=(0,a.BigNumber).from(r).toNumber()),t.chainId=r}else{let r=e.networkId;null==r&&null==t.v&&(r=e.chainId),(0,s.isHexString)(r)&&(r=(0,a.BigNumber).from(r).toNumber()),"number"!=typeof r&&null!=t.v&&((r=(t.v-35)/2)<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(0,f.parse)(e)}receiptLog(e){return h.check(this.formats.receiptLog,e)}receipt(e){let t=h.check(this.formats.receipt,e);if(null!=t.root){if(t.root.length<=4){let e=(0,a.BigNumber).from(t.root).toNumber();0===e||1===e?(null!=t.status&&t.status!==e&&l.throwArgumentError("alt-root-status/status mismatch","value",{root:t.root,status:t.status}),t.status=e,delete t.root):l.throwArgumentError("invalid alt-root-status","value.root",t.root)}else 66!==t.root.length&&l.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 h.check(this.formats.filter,e)}filterLog(e){return h.check(this.formats.filterLog,e)}static check(e,t){let r={};for(let n in e)try{let i=e[n](t[n]);void 0!==i&&(r[n]=i)}catch(e){throw e.checkKey=n,e.checkValue=t[n],e}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 Error("not an array");let r=[];return t.forEach(function(t){r.push(e(t))}),r}}}function p(e){return e&&"function"==typeof e.isCommunityResource}function m(e){return p(e)&&e.isCommunityResource()}let b=!1;function g(){b||(b=!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("=========================="))}},{"@ethersproject/address":"7BZuS","@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/constants":"cSsuf","@ethersproject/properties":"dmdV5","@ethersproject/transactions":"ctBdV","@ethersproject/logger":"6NWvR","./_version":"1LO7N","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dBSgv:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"AlchemyWebSocketProvider",()=>l),n.export(r,"AlchemyProvider",()=>h);"use strict";var i=e("@ethersproject/properties"),a=e("./formatter"),s=e("./websocket-provider"),o=e("@ethersproject/logger"),c=e("./_version"),f=e("./url-json-rpc-provider");let u=new o.Logger(c.version),d="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";class l extends s.WebSocketProvider{constructor(e,t){let r=new h(e,t),n=r.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi.");super(n,r.network),(0,i.defineReadOnly)(this,"apiKey",r.apiKey)}isCommunityResource(){return this.apiKey===d}}class h extends f.UrlJsonRpcProvider{static getWebSocketProvider(e,t){return new l(e,t)}static getApiKey(e){return null==e?d:(e&&"string"!=typeof e&&u.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:u.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+r+t,throttleCallback:(e,r)=>(t===d&&(0,a.showThrottleMessage)(),Promise.resolve(!0))}}isCommunityResource(){return this.apiKey===d}}},{"@ethersproject/properties":"dmdV5","./formatter":"7RPp2","./websocket-provider":"83spj","@ethersproject/logger":"6NWvR","./_version":"1LO7N","./url-json-rpc-provider":"bwHu3","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"83spj":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"WebSocketProvider",()=>h);"use strict";var i=e("@ethersproject/bignumber"),a=e("@ethersproject/properties"),s=e("./json-rpc-provider"),o=e("./ws"),c=e("@ethersproject/logger"),f=e("./_version"),u=function(e,t,r,n){return new(r||(r=Promise))(function(i,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function o(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}c((n=n.apply(e,t||[])).next())})};let d=new c.Logger(f.version),l=1;class h extends s.JsonRpcProvider{constructor(e,t){"any"===t&&d.throwError("WebSocketProvider does not support 'any' network yet",c.Logger.errors.UNSUPPORTED_OPERATION,{operation:"network:any"}),"string"==typeof e?super(e,t):super("_websocket",t),this._pollingInterval=-1,this._wsReady=!1,"string"==typeof e?(0,a.defineReadOnly)(this,"_websocket",new o.WebSocket(this.connection.url)):(0,a.defineReadOnly)(this,"_websocket",e),(0,a.defineReadOnly)(this,"_requests",{}),(0,a.defineReadOnly)(this,"_subs",{}),(0,a.defineReadOnly)(this,"_subIds",{}),(0,a.defineReadOnly)(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=>{let t=e.data,r=JSON.parse(t);if(null!=r.id){let 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=Error(r.error.message||"unknown error"),(0,a.defineReadOnly)(e,"code",r.error.code||null),(0,a.defineReadOnly)(e,"response",t)):e=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){let e=this._subs[r.params.subscription];e&&e.processFunc(r.params.result)}else console.warn("this should not happen")};let 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){d.throwError("cannot reset events block on WebSocketProvider",c.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resetEventBlock"})}set pollingInterval(e){d.throwError("cannot set polling interval on WebSocketProvider",c.Logger.errors.UNSUPPORTED_OPERATION,{operation:"setPollingInterval"})}poll(){return u(this,void 0,void 0,function*(){return null})}set polling(e){e&&d.throwError("cannot set polling on WebSocketProvider",c.Logger.errors.UNSUPPORTED_OPERATION,{operation:"setPolling"})}send(e,t){let r=l++;return new Promise((n,i)=>{let a=JSON.stringify({method:e,params:t,id:r,jsonrpc:"2.0"});this.emit("debug",{action:"request",request:JSON.parse(a),provider:this}),this._requests[String(r)]={callback:function(e,t){return e?i(e):n(t)},payload:a},this._wsReady&&this.websocket.send(a)})}static defaultUrl(){return"ws://localhost:8546"}_subscribe(e,t,r){return u(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);let i=yield n;this._subs[i]={tag:e,processFunc:r}})}_startEvent(e){switch(e.type){case"block":this._subscribe("block",["newHeads"],e=>{let t=(0,i.BigNumber).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":{let t=e=>{let 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;let 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 u(this,void 0,void 0,function*(){this.websocket.readyState===o.WebSocket.CONNECTING&&(yield new Promise(e=>{this.websocket.onopen=function(){e(!0)},this.websocket.onerror=function(){e(!1)}})),this.websocket.close(1e3)})}}},{"@ethersproject/bignumber":"hIcBX","@ethersproject/properties":"dmdV5","./json-rpc-provider":"7x7oZ","./ws":"7S9K4","@ethersproject/logger":"6NWvR","./_version":"1LO7N","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"7x7oZ":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"JsonRpcSigner",()=>M),n.export(r,"JsonRpcProvider",()=>T);"use strict";var i=e("@ethersproject/abstract-signer"),a=e("@ethersproject/bignumber"),s=e("@ethersproject/bytes"),o=e("@ethersproject/hash"),c=e("@ethersproject/properties"),f=e("@ethersproject/strings"),u=e("@ethersproject/transactions"),d=e("@ethersproject/web"),l=e("@ethersproject/logger"),h=e("./_version"),p=e("./base-provider"),m=function(e,t,r,n){return new(r||(r=Promise))(function(i,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function o(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}c((n=n.apply(e,t||[])).next())})};let b=new l.Logger(h.version),g=["call","estimateGas"];function y(e,t){if(null==e)return null;if("string"==typeof e.message&&e.message.match("reverted")){let r=(0,s.isHexString)(e.data)?e.data:null;if(!t||r)return{message:e.message,data:r}}if("object"==typeof e){for(let r in e){let n=y(e[r],t);if(n)return n}return null}if("string"==typeof e)try{return y(JSON.parse(e),t)}catch(e){}return null}function v(e,t,r){let n=r.transaction||r.signedTransaction;if("call"===e){let e=y(t,!0);if(e)return e.data;b.throwError("missing revert data in call exception; Transaction reverted without a reason string",l.Logger.errors.CALL_EXCEPTION,{data:"0x",transaction:n,error:t})}if("estimateGas"===e){let r=y(t.body,!1);null==r&&(r=y(t,!1)),r&&b.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",l.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{reason:r.message,method:e,transaction:n,error:t})}let i=t.message;throw t.code===l.Logger.errors.SERVER_ERROR&&t.error&&"string"==typeof t.error.message?i=t.error.message:"string"==typeof t.body?i=t.body:"string"==typeof t.responseText&&(i=t.responseText),(i=(i||"").toLowerCase()).match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&b.throwError("insufficient funds for intrinsic transaction cost",l.Logger.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:n}),i.match(/nonce (is )?too low/i)&&b.throwError("nonce has already been used",l.Logger.errors.NONCE_EXPIRED,{error:t,method:e,transaction:n}),i.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&b.throwError("replacement fee too low",l.Logger.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:n}),i.match(/only replay-protected/i)&&b.throwError("legacy pre-eip-155 transactions not supported",l.Logger.errors.UNSUPPORTED_OPERATION,{error:t,method:e,transaction:n}),g.indexOf(e)>=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&b.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",l.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:n}),t}function w(e){return new Promise(function(t){setTimeout(t,e)})}function _(e){if(e.error){let t=Error(e.error.message);throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function E(e){return e?e.toLowerCase():e}let A={};class M extends i.Signer{constructor(e,t,r){if(super(),e!==A)throw Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");(0,c.defineReadOnly)(this,"provider",t),null==r&&(r=0),"string"==typeof r?((0,c.defineReadOnly)(this,"_address",this.provider.formatter.address(r)),(0,c.defineReadOnly)(this,"_index",null)):"number"==typeof r?((0,c.defineReadOnly)(this,"_index",r),(0,c.defineReadOnly)(this,"_address",null)):b.throwArgumentError("invalid address or index","addressOrIndex",r)}connect(e){return b.throwError("cannot alter JSON-RPC Signer connection",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new S(A,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&&b.throwError("unknown account #"+this._index,l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(e[this._index])))}sendUncheckedTransaction(e){e=(0,c.shallowCopy)(e);let t=this.getAddress().then(e=>(e&&(e=e.toLowerCase()),e));if(null==e.gasLimit){let r=(0,c.shallowCopy)(e);r.from=t,e.gasLimit=this.provider.estimateGas(r)}return null!=e.to&&(e.to=Promise.resolve(e.to).then(e=>m(this,void 0,void 0,function*(){if(null==e)return null;let t=yield this.provider.resolveName(e);return null==t&&b.throwArgumentError("provided ENS name resolves to null","tx.to",e),t}))),(0,c.resolveProperties)({tx:(0,c.resolveProperties)(e),sender:t}).then(({tx:t,sender:r})=>{null!=t.from?t.from.toLowerCase()!==r&&b.throwArgumentError("from address mismatch","transaction",e):t.from=r;let n=this.provider.constructor.hexlifyTransaction(t,{from:!0});return this.provider.send("eth_sendTransaction",[n]).then(e=>e,e=>("string"==typeof e.message&&e.message.match(/user denied/i)&&b.throwError("user rejected transaction",l.Logger.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:t}),v("sendTransaction",e,n)))})}signTransaction(e){return b.throwError("signing transactions is unsupported",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(e){return m(this,void 0,void 0,function*(){let t=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),r=yield this.sendUncheckedTransaction(e);try{return yield(0,d.poll)(()=>m(this,void 0,void 0,function*(){let e=yield this.provider.getTransaction(r);if(null!==e)return this.provider._wrapTransaction(e,r,t)}),{oncePoll:this.provider})}catch(e){throw e.transactionHash=r,e}})}signMessage(e){return m(this,void 0,void 0,function*(){let t="string"==typeof e?(0,f.toUtf8Bytes)(e):e,r=yield this.getAddress();try{return yield this.provider.send("personal_sign",[(0,s.hexlify)(t),r.toLowerCase()])}catch(t){throw"string"==typeof t.message&&t.message.match(/user denied/i)&&b.throwError("user rejected signing",l.Logger.errors.ACTION_REJECTED,{action:"signMessage",from:r,messageData:e}),t}})}_legacySignMessage(e){return m(this,void 0,void 0,function*(){let t="string"==typeof e?(0,f.toUtf8Bytes)(e):e,r=yield this.getAddress();try{return yield this.provider.send("eth_sign",[r.toLowerCase(),(0,s.hexlify)(t)])}catch(t){throw"string"==typeof t.message&&t.message.match(/user denied/i)&&b.throwError("user rejected signing",l.Logger.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:r,messageData:e}),t}})}_signTypedData(e,t,r){return m(this,void 0,void 0,function*(){let n=yield(0,o._TypedDataEncoder).resolveNames(e,t,r,e=>this.provider.resolveName(e)),i=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[i.toLowerCase(),JSON.stringify((0,o._TypedDataEncoder).getPayload(n.domain,t,n.value))])}catch(e){throw"string"==typeof e.message&&e.message.match(/user denied/i)&&b.throwError("user rejected signing",l.Logger.errors.ACTION_REJECTED,{action:"_signTypedData",from:i,messageData:{domain:n.domain,types:t,value:n.value}}),e}})}unlock(e){return m(this,void 0,void 0,function*(){let t=this.provider,r=yield this.getAddress();return t.send("personal_unlockAccount",[r.toLowerCase(),e,null])})}}class S extends M{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)}))}}let x={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class T extends p.BaseProvider{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=(0,c.getStatic)(this.constructor,"defaultUrl")()),"string"==typeof e?(0,c.defineReadOnly)(this,"connection",Object.freeze({url:e})):(0,c.defineReadOnly)(this,"connection",Object.freeze((0,c.shallowCopy)(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 m(this,void 0,void 0,function*(){yield w(0);let e=null;try{e=yield this.send("eth_chainId",[])}catch(t){try{e=yield this.send("net_version",[])}catch(e){}}if(null!=e){let t=(0,c.getStatic)(this.constructor,"getNetwork");try{return t((0,a.BigNumber).from(e).toNumber())}catch(t){return b.throwError("could not detect network",l.Logger.errors.NETWORK_ERROR,{chainId:e,event:"invalidNetwork",serverError:t})}}return b.throwError("could not detect network",l.Logger.errors.NETWORK_ERROR,{event:"noNetwork"})})}getSigner(e){return new M(A,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){let r={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:(0,c.deepCopy)(r),provider:this});let n=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(n&&this._cache[e])return this._cache[e];let i=(0,d.fetchJson)(this.connection,JSON.stringify(r),_).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]=i,setTimeout(()=>{this._cache[e]=null},0)),i}prepareRequest(e,t){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[E(t.address),t.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[E(t.address),t.blockTag]];case"getCode":return["eth_getCode",[E(t.address),t.blockTag]];case"getStorageAt":return["eth_getStorageAt",[E(t.address),(0,s.hexZeroPad)(t.position,32),t.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[t.signedTransaction]];case"getBlock":if(t.blockTag)return["eth_getBlockByNumber",[t.blockTag,!!t.includeTransactions]];if(t.blockHash)return["eth_getBlockByHash",[t.blockHash,!!t.includeTransactions]];break;case"getTransaction":return["eth_getTransactionByHash",[t.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[t.transactionHash]];case"call":{let e=(0,c.getStatic)(this.constructor,"hexlifyTransaction");return["eth_call",[e(t.transaction,{from:!0}),t.blockTag]]}case"estimateGas":{let e=(0,c.getStatic)(this.constructor,"hexlifyTransaction");return["eth_estimateGas",[e(t.transaction,{from:!0})]]}case"getLogs":return t.filter&&null!=t.filter.address&&(t.filter.address=E(t.filter.address)),["eth_getLogs",[t.filter]]}return null}perform(e,t){return m(this,void 0,void 0,function*(){if("call"===e||"estimateGas"===e){let e=t.transaction;if(e&&null!=e.type&&(0,a.BigNumber).from(e.type).isZero()&&null==e.maxFeePerGas&&null==e.maxPriorityFeePerGas){let r=yield this.getFeeData();null==r.maxFeePerGas&&null==r.maxPriorityFeePerGas&&((t=(0,c.shallowCopy)(t)).transaction=(0,c.shallowCopy)(e),delete t.transaction.type)}}let r=this.prepareRequest(e,t);null==r&&b.throwError(e+" not implemented",l.Logger.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(r[0],r[1])}catch(r){return v(e,r,t)}})}_startEvent(e){"pending"===e.tag&&this._startPending(),super._startEvent(e)}_startPending(){if(null!=this._pendingFilter)return;let 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 w(1e3)})}).then(function(){if(e._pendingFilter!=t){e.send("eth_uninstallFilter",[r]);return}return setTimeout(function(){n()},0),null}).catch(e=>{})}(),r}).catch(e=>{})}_stopEvent(e){"pending"===e.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),super._stopEvent(e)}static hexlifyTransaction(e,t){let r=(0,c.shallowCopy)(x);if(t)for(let e in t)t[e]&&(r[e]=!0);(0,c.checkProperties)(e,r);let n={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(t){if(null==e[t])return;let r=(0,s.hexValue)((0,a.BigNumber).from(e[t]));"gasLimit"===t&&(t="gas"),n[t]=r}),["from","to","data"].forEach(function(t){null!=e[t]&&(n[t]=(0,s.hexlify)(e[t]))}),e.accessList&&(n.accessList=(0,u.accessListify)(e.accessList)),n}}},{"@ethersproject/abstract-signer":"j6EbC","@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/hash":"jLDfB","@ethersproject/properties":"dmdV5","@ethersproject/strings":"edSy2","@ethersproject/transactions":"ctBdV","@ethersproject/web":"5uH8k","@ethersproject/logger":"6NWvR","./_version":"1LO7N","./base-provider":"lEHz5","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"7S9K4":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"WebSocket",()=>s);"use strict";var i=e("@ethersproject/logger"),a=e("./_version");let s=null;try{if(s=WebSocket,null==s)throw Error("inject please")}catch(t){let e=new i.Logger(a.version);s=function(){e.throwError("WebSockets not supported in this environment",i.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}},{"@ethersproject/logger":"6NWvR","./_version":"1LO7N","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],bwHu3:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"StaticJsonRpcProvider",()=>f),n.export(r,"UrlJsonRpcProvider",()=>u);"use strict";var i=e("@ethersproject/properties"),a=e("@ethersproject/logger"),s=e("./_version"),o=e("./json-rpc-provider");let c=new a.Logger(s.version);class f extends o.JsonRpcProvider{detectNetwork(){var e,t,r,n;let s=Object.create(null,{detectNetwork:{get:()=>super.detectNetwork}});return e=this,t=void 0,r=void 0,n=function*(){let e=this.network;return null==e&&((e=yield s.detectNetwork.call(this))||c.throwError("no network detected",a.Logger.errors.UNKNOWN_ERROR,{}),null==this._network&&((0,i.defineReadOnly)(this,"_network",e),this.emit("network",e,null))),e},new(r||(r=Promise))(function(i,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function o(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}c((n=n.apply(e,t||[])).next())})}}class u extends f{constructor(e,t){c.checkAbstract(new.target,u),e=(0,i.getStatic)(new.target,"getNetwork")(e),t=(0,i.getStatic)(new.target,"getApiKey")(t);let r=(0,i.getStatic)(new.target,"getUrl")(e,t);super(r,e),"string"==typeof t?(0,i.defineReadOnly)(this,"apiKey",t):null!=t&&Object.keys(t).forEach(e=>{(0,i.defineReadOnly)(this,e,t[e])})}_startPending(){c.warn("WARNING: API provider does not support pending filters")}isCommunityResource(){return!1}getSigner(e){return c.throwError("API provider does not support signing",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getSigner"})}listAccounts(){return Promise.resolve([])}static getApiKey(e){return e}static getUrl(e,t){return c.throwError("not implemented; sub-classes must override getUrl",a.Logger.errors.NOT_IMPLEMENTED,{operation:"getUrl"})}}},{"@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","./_version":"1LO7N","./json-rpc-provider":"7x7oZ","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],afy2f:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"AnkrProvider",()=>u);var i=e("./formatter"),a=e("./url-json-rpc-provider"),s=e("@ethersproject/logger"),o=e("./_version");let c=new s.Logger(o.version),f="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";class u extends a.UrlJsonRpcProvider{isCommunityResource(){return this.apiKey===f}static getApiKey(e){return null==e?f:e}static getUrl(e,t){null==t&&(t=f);let r={allowGzip:!0,url:"https://"+function(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 c.throwArgumentError("unsupported network","name",e)}(e.name)+t,throttleCallback:(e,r)=>(t.apiKey===f&&(0,i.showThrottleMessage)(),Promise.resolve(!0))};return null!=t.projectSecret&&(r.user="",r.password=t.projectSecret),r}}},{"./formatter":"7RPp2","./url-json-rpc-provider":"bwHu3","@ethersproject/logger":"6NWvR","./_version":"1LO7N","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"1qhut":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"CloudflareProvider",()=>c);"use strict";var i=e("./url-json-rpc-provider"),a=e("@ethersproject/logger"),s=e("./_version");let o=new a.Logger(s.version);class c extends i.UrlJsonRpcProvider{static getApiKey(e){return null!=e&&o.throwArgumentError("apiKey not supported for cloudflare","apiKey",e),null}static getUrl(e,t){let r=null;return"homestead"===e.name?r="https://cloudflare-eth.com/":o.throwArgumentError("unsupported network","network",arguments[0]),r}perform(e,t){var r,n,i,a;let s=Object.create(null,{perform:{get:()=>super.perform}});return r=this,n=void 0,i=void 0,a=function*(){if("getBlockNumber"===e){let e=yield s.perform.call(this,"getBlock",{blockTag:"latest"});return e.number}return s.perform.call(this,e,t)},new(i||(i=Promise))(function(e,t){function s(e){try{c(a.next(e))}catch(e){t(e)}}function o(e){try{c(a.throw(e))}catch(e){t(e)}}function c(t){var r;t.done?e(t.value):((r=t.value)instanceof i?r:new i(function(e){e(r)})).then(s,o)}c((a=a.apply(r,n||[])).next())})}}},{"./url-json-rpc-provider":"bwHu3","@ethersproject/logger":"6NWvR","./_version":"1LO7N","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],fduCf:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"EtherscanProvider",()=>v);"use strict";var i=e("@ethersproject/bytes"),a=e("@ethersproject/properties"),s=e("@ethersproject/transactions"),o=e("@ethersproject/web"),c=e("./formatter"),f=e("@ethersproject/logger"),u=e("./_version"),d=e("./base-provider"),l=function(e,t,r,n){return new(r||(r=Promise))(function(i,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function o(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}c((n=n.apply(e,t||[])).next())})};let h=new f.Logger(u.version);function p(e){let 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]?(0,i.hexValue)((0,i.hexlify)(n)):"accessList"===r?"["+(0,s.accessListify)(n).map(e=>`{address:"${e.address}",storageKeys:["${e.storageKeys.join('","')}"]}`).join(",")+"]":(0,i.hexlify)(n),t[r]=n)}return t}function m(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/)){let t=Error("invalid response");throw t.result=JSON.stringify(e),(e.result||"").toLowerCase().indexOf("rate limit")>=0&&(t.throttleRetry=!0),t}return e.result}function b(e){if(e&&0==e.status&&"NOTOK"==e.message&&(e.result||"").toLowerCase().indexOf("rate limit")>=0){let t=Error("throttled response");throw t.result=JSON.stringify(e),t.throttleRetry=!0,t}if("2.0"!=e.jsonrpc){let t=Error("invalid response");throw t.result=JSON.stringify(e),t}if(e.error){let t=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 g(e){if("pending"===e)throw Error("pending not supported");return"latest"===e?e:parseInt(e.substring(2),16)}function y(e,t,r){if("call"===e&&t.code===f.Logger.errors.SERVER_ERROR){let 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,"")),(0,i.isHexString)(r))return r;h.throwError("missing revert data in call exception",f.Logger.errors.CALL_EXCEPTION,{error:t,data:"0x"})}}let n=t.message;throw t.code===f.Logger.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()).match(/insufficient funds/)&&h.throwError("insufficient funds for intrinsic transaction cost",f.Logger.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:r}),n.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&h.throwError("nonce has already been used",f.Logger.errors.NONCE_EXPIRED,{error:t,method:e,transaction:r}),n.match(/another transaction with same nonce/)&&h.throwError("replacement fee too low",f.Logger.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:r}),n.match(/execution failed due to an exception|execution reverted/)&&h.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",f.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:r}),t}class v extends d.BaseProvider{constructor(e,t){super(e),(0,a.defineReadOnly)(this,"baseUrl",this.getBaseUrl()),(0,a.defineReadOnly)(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 h.throwArgumentError("unsupported network","network",this.network.name)}getUrl(e,t){let r=Object.keys(t).reduce((e,r)=>{let 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 l(this,void 0,void 0,function*(){let n=r?this.getPostUrl():this.getUrl(e,t),i=r?this.getPostData(e,t):null,s="proxy"===e?b:m;this.emit("debug",{action:"request",request:n,provider:this});let f={url:n,throttleSlotInterval:1e3,throttleCallback:(e,t)=>(this.isCommunityResource()&&(0,c.showThrottleMessage)(),Promise.resolve(!0))},u=null;i&&(f.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},u=Object.keys(i).map(e=>`${e}=${i[e]}`).join("&"));let d=yield(0,o.fetchJson)(f,u,s||b);return this.emit("debug",{action:"response",request:n,response:(0,a.deepCopy)(d),provider:this}),d})}detectNetwork(){return l(this,void 0,void 0,function*(){return this.network})}perform(e,t){let r=Object.create(null,{perform:{get:()=>super.perform}});return l(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=>y("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 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 Error("EtherscanProvider does not support blockTag for call");let e=p(t.transaction);e.module="proxy",e.action="eth_call";try{return yield this.fetch("proxy",e,!0)}catch(e){return y("call",e,t.transaction)}}case"estimateGas":{let e=p(t.transaction);e.module="proxy",e.action="eth_estimateGas";try{return yield this.fetch("proxy",e,!0)}catch(e){return y("estimateGas",e,t.transaction)}}case"getLogs":{let e={action:"getLogs"};if(t.filter.fromBlock&&(e.fromBlock=g(t.filter.fromBlock)),t.filter.toBlock&&(e.toBlock=g(t.filter.toBlock)),t.filter.address&&(e.address=t.filter.address),t.filter.topics&&t.filter.topics.length>0&&(t.filter.topics.length>1&&h.throwError("unsupported topic count",f.Logger.errors.UNSUPPORTED_OPERATION,{topics:t.filter.topics}),1===t.filter.topics.length)){let r=t.filter.topics[0];("string"!=typeof r||66!==r.length)&&h.throwError("unsupported topic format",f.Logger.errors.UNSUPPORTED_OPERATION,{topic0:r}),e.topic0=r}let r=yield this.fetch("logs",e),n={};for(let e=0;e{["contractAddress","to"].forEach(function(t){""==e[t]&&delete e[t]}),null==e.creates&&null!=e.contractAddress&&(e.creates=e.contractAddress);let t=this.formatter.transactionResponse(e);return e.timeStamp&&(t.timestamp=parseInt(e.timeStamp)),t})})}isCommunityResource(){return null==this.apiKey}}},{"@ethersproject/bytes":"19SwW","@ethersproject/properties":"dmdV5","@ethersproject/transactions":"ctBdV","@ethersproject/web":"5uH8k","./formatter":"7RPp2","@ethersproject/logger":"6NWvR","./_version":"1LO7N","./base-provider":"lEHz5","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],LdkdG:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"FallbackProvider",()=>x);"use strict";var i=e("@ethersproject/abstract-provider"),a=e("@ethersproject/bignumber"),s=e("@ethersproject/bytes"),o=e("@ethersproject/properties"),c=e("@ethersproject/random"),f=e("@ethersproject/web"),u=e("./base-provider"),d=e("./formatter"),l=e("@ethersproject/logger"),h=e("./_version"),p=function(e,t,r,n){return new(r||(r=Promise))(function(i,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function o(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}c((n=n.apply(e,t||[])).next())})};let m=new l.Logger(h.version);function b(){return new Date().getTime()}function g(e){let t=null;for(let r=0;rt?null:(n+i)/2}function v(e){if(null===e)return"null";if("number"==typeof e||"boolean"==typeof e)return JSON.stringify(e);if("string"==typeof e)return e;if((0,a.BigNumber).isBigNumber(e))return e.toString();if(Array.isArray(e))return JSON.stringify(e.map(e=>v(e)));if("object"==typeof e){let t=Object.keys(e);return t.sort(),"{"+t.map(t=>{let r=e[t];return r="function"==typeof r?"[function]":v(r),JSON.stringify(t)+":"+r}).join(",")+"}"}throw Error("unknown value type: "+typeof e)}let w=1;function _(e){let t=null,r=null,n=new Promise(n=>{r=setTimeout(t=function(){r&&(clearTimeout(r),r=null),n()},e)});return{cancel:t,getPromise:function(){return n},wait:e=>n=n.then(e)}}let E=[l.Logger.errors.CALL_EXCEPTION,l.Logger.errors.INSUFFICIENT_FUNDS,l.Logger.errors.NONCE_EXPIRED,l.Logger.errors.REPLACEMENT_UNDERPRICED,l.Logger.errors.UNPREDICTABLE_GAS_LIMIT],A=["address","args","errorArgs","errorSignature","method","transaction"];function M(e,t){let 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 S(e,t){return p(this,void 0,void 0,function*(){let r=e.provider;return null!=r.blockNumber&&r.blockNumber>=t||-1===t?r:(0,f.poll)(()=>new Promise((n,i)=>{setTimeout(function(){return r.blockNumber>=t?n(r):e.cancelled?n(null):n(void 0)},0)}),{oncePoll:r})})}class x extends u.BaseProvider{constructor(e,t){0===e.length&&m.throwArgumentError("missing providers","providers",e);let r=e.map((e,t)=>{if((0,i.Provider).isProvider(e)){let t=(0,d.isCommunityResource)(e)?2e3:750;return Object.freeze({provider:e,weight:1,stallTimeout:t,priority:1})}let r=(0,o.shallowCopy)(e);null==r.priority&&(r.priority=1),null==r.stallTimeout&&(r.stallTimeout=(0,d.isCommunityResource)(e)?2e3:750),null==r.weight&&(r.weight=1);let n=r.weight;return(n%1||n>512||n<1)&&m.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&&m.throwArgumentError("quorum will always fail; larger than total weight","quorum",t);let a=g(r.map(e=>e.provider.network));null==a&&(a=new Promise((e,t)=>{setTimeout(()=>{this.detectNetwork().then(e,t)},0)})),super(a),(0,o.defineReadOnly)(this,"providerConfigs",Object.freeze(r)),(0,o.defineReadOnly)(this,"quorum",t),this._highestBlockNumber=-1}detectNetwork(){return p(this,void 0,void 0,function*(){let e=yield Promise.all(this.providerConfigs.map(e=>e.provider.getNetwork()));return g(e)})}perform(e,t){return p(this,void 0,void 0,function*(){if("sendTransaction"===e){let e=yield Promise.all(this.providerConfigs.map(e=>e.provider.sendTransaction(t.signedTransaction).then(e=>e.hash,e=>e)));for(let t=0;te.result),n=y(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){let t=e.map(e=>e.result);return t.sort(),t[Math.floor(t.length/2)]};case"getEtherPrice":return function(e){return y(e.map(e=>e.result))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":a=function(e){return null==e?null:((e=(0,o.shallowCopy)(e)).confirmations=-1,v(e))};break;case"getBlock":a=r.includeTransactions?function(e){return null==e?null:((e=(0,o.shallowCopy)(e)).transactions=e.transactions.map(e=>((e=(0,o.shallowCopy)(e)).confirmations=-1,e)),v(e))}:function(e){return null==e?null:v(e)};break;default:throw Error("unknown method: "+t)}return n=a,i=e.quorum,function(e){let t={};e.forEach(e=>{let r=n(e.result);t[r]||(t[r]={count:0,result:e.result}),t[r].count++});let r=Object.keys(t);for(let e=0;e=i)return n.result}}}(this,e,t),n=(0,c.shuffled)(this.providerConfigs.map(o.shallowCopy));n.sort((e,t)=>e.priority-t.priority);let i=this._highestBlockNumber,a=0,f=!0;for(;;){let c=b(),u=n.filter(e=>e.runner&&c-e.starte+t.weight,0);for(;u{r.staller=null}),r.runner=(function(e,t,r,n){return p(this,void 0,void 0,function*(){let i=e.provider;switch(r){case"getBlockNumber":case"getGasPrice":return i[r]();case"getEtherPrice":if(i.getEtherPrice)return i.getEtherPrice();break;case"getBalance":case"getTransactionCount":case"getCode":return n.blockTag&&(0,s.isHexString)(n.blockTag)&&(i=yield S(e,t)),i[r](n.address,n.blockTag||"latest");case"getStorageAt":return n.blockTag&&(0,s.isHexString)(n.blockTag)&&(i=yield S(e,t)),i.getStorageAt(n.address,n.position,n.blockTag||"latest");case"getBlock":return n.blockTag&&(0,s.isHexString)(n.blockTag)&&(i=yield S(e,t)),i[n.includeTransactions?"getBlockWithTransactions":"getBlock"](n.blockTag||n.blockHash);case"call":case"estimateGas":if(n.blockTag&&(0,s.isHexString)(n.blockTag)&&(i=yield S(e,t)),"call"===r&&n.blockTag)return i[r](n.transaction,n.blockTag);return i[r](n.transaction);case"getTransaction":case"getTransactionReceipt":return i[r](n.transactionHash);case"getLogs":{let r=n.filter;return(r.fromBlock&&(0,s.isHexString)(r.fromBlock)||r.toBlock&&(0,s.isHexString)(r.toBlock))&&(i=yield S(e,t)),i.getLogs(r)}}return m.throwError("unknown method error",l.Logger.errors.UNKNOWN_ERROR,{method:r,params:n})})})(r,i,e,t).then(n=>{r.done=!0,r.result=n,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:c,backend:M(r,b()),request:{method:e,params:(0,o.deepCopy)(t)},provider:this})},n=>{r.done=!0,r.error=n,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:c,backend:M(r,b()),request:{method:e,params:(0,o.deepCopy)(t)},provider:this})}),this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:c,backend:M(r,null),request:{method:e,params:(0,o.deepCopy)(t)},provider:this}),u+=r.weight}let d=[];n.forEach(e=>{!e.done&&e.runner&&(d.push(e.runner),e.staller&&d.push(e.staller.getPromise()))}),d.length&&(yield Promise.race(d));let h=n.filter(e=>e.done&&null==e.error);if(h.length>=this.quorum){let e=r(h);if(void 0!==e)return n.forEach(e=>{e.staller&&e.staller.cancel(),e.cancelled=!0}),e;f||(yield _(100).getPromise()),f=!1}let g=n.reduce((e,t)=>{if(!t.done||null==t.error)return e;let r=t.error.code;return E.indexOf(r)>=0&&(e[r]||(e[r]={error:t.error,weight:0}),e[r].weight+=t.weight),e},{});if(Object.keys(g).forEach(e=>{let t=g[e];if(t.weight{e.staller&&e.staller.cancel(),e.cancelled=!0});let r=t.error,i={};A.forEach(e=>{null!=r[e]&&(i[e]=r[e])}),m.throwError(r.reason||r.message,e,i)}),0===n.filter(e=>!e.done).length)break}return n.forEach(e=>{e.staller&&e.staller.cancel(),e.cancelled=!0}),m.throwError("failed to meet quorum",l.Logger.errors.SERVER_ERROR,{method:e,params:t,results:n.map(e=>M(e)),provider:this})})}}},{"@ethersproject/abstract-provider":"imf57","@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/properties":"dmdV5","@ethersproject/random":"5x4el","@ethersproject/web":"5uH8k","./base-provider":"lEHz5","./formatter":"7RPp2","@ethersproject/logger":"6NWvR","./_version":"1LO7N","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"8DeRN":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";n.defineInteropFlag(r),n.export(r,"IpcProvider",()=>i);let i=null},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"8Bo5e":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"InfuraWebSocketProvider",()=>l),n.export(r,"InfuraProvider",()=>h);"use strict";var i=e("@ethersproject/properties"),a=e("./websocket-provider"),s=e("./formatter"),o=e("@ethersproject/logger"),c=e("./_version"),f=e("./url-json-rpc-provider");let u=new o.Logger(c.version),d="84842078b09946638c03157f83405213";class l extends a.WebSocketProvider{constructor(e,t){let r=new h(e,t),n=r.connection;n.password&&u.throwError("INFURA WebSocket project secrets unsupported",o.Logger.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"});let a=n.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");super(a,e),(0,i.defineReadOnly)(this,"apiKey",r.projectId),(0,i.defineReadOnly)(this,"projectId",r.projectId),(0,i.defineReadOnly)(this,"projectSecret",r.projectSecret)}isCommunityResource(){return this.projectId===d}}class h extends f.UrlJsonRpcProvider{static getWebSocketProvider(e,t){return new l(e,t)}static getApiKey(e){let t={apiKey:d,projectId:d,projectSecret:null};return null==e||("string"==typeof e?t.projectId=e:null!=e.projectSecret?(u.assertArgument("string"==typeof e.projectId,"projectSecret requires a projectId","projectId",e.projectId),u.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:u.throwError("unsupported network",o.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:e})}let n={allowGzip:!0,url:"https://"+r+"/v3/"+t.projectId,throttleCallback:(e,r)=>(t.projectId===d&&(0,s.showThrottleMessage)(),Promise.resolve(!0))};return null!=t.projectSecret&&(n.user="",n.password=t.projectSecret),n}isCommunityResource(){return this.projectId===d}}},{"@ethersproject/properties":"dmdV5","./websocket-provider":"83spj","./formatter":"7RPp2","@ethersproject/logger":"6NWvR","./_version":"1LO7N","./url-json-rpc-provider":"bwHu3","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],aCNcD:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"JsonRpcBatchProvider",()=>o);var i=e("@ethersproject/properties"),a=e("@ethersproject/web"),s=e("./json-rpc-provider");class o extends s.JsonRpcProvider{send(e,t){let r={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};null==this._pendingBatch&&(this._pendingBatch=[]);let n={request:r,resolve:null,reject:null},s=new Promise((e,t)=>{n.resolve=e,n.reject=t});return this._pendingBatch.push(n),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(()=>{let e=this._pendingBatch;this._pendingBatch=null,this._pendingBatchAggregator=null;let t=e.map(e=>e.request);return this.emit("debug",{action:"requestBatch",request:(0,i.deepCopy)(t),provider:this}),(0,a.fetchJson)(this.connection,JSON.stringify(t)).then(r=>{this.emit("debug",{action:"response",request:t,response:r,provider:this}),e.forEach((e,t)=>{let n=r[t];if(n.error){let t=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)),s}}},{"@ethersproject/properties":"dmdV5","@ethersproject/web":"5uH8k","./json-rpc-provider":"7x7oZ","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"19g4w":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"NodesmithProvider",()=>c);"use strict";var i=e("./url-json-rpc-provider"),a=e("@ethersproject/logger"),s=e("./_version");let o=new a.Logger(s.version);class c extends i.UrlJsonRpcProvider{static getApiKey(e){return e&&"string"!=typeof e&&o.throwArgumentError("invalid apiKey","apiKey",e),e||"ETHERS_JS_SHARED"}static getUrl(e,t){o.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:o.throwArgumentError("unsupported network","network",arguments[0])}return r+"?apiKey="+t}}},{"./url-json-rpc-provider":"bwHu3","@ethersproject/logger":"6NWvR","./_version":"1LO7N","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dwl0t:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"PocketProvider",()=>f);"use strict";var i=e("@ethersproject/logger"),a=e("./_version"),s=e("./url-json-rpc-provider");let o=new i.Logger(a.version),c="62e1ad51b37b8e00394bda3b";class f extends s.UrlJsonRpcProvider{static getApiKey(e){let t={applicationId:null,loadBalancer:!0,applicationSecretKey:null};return null==e?t.applicationId=c:"string"==typeof e?t.applicationId=e:null!=e.applicationSecretKey?(t.applicationId=e.applicationId,t.applicationSecretKey=e.applicationSecretKey):e.applicationId?t.applicationId=e.applicationId:o.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:o.throwError("unsupported network",i.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:e})}let n=`https://${r}/v1/lb/${t.applicationId}`,a={headers:{},url:n};return null!=t.applicationSecretKey&&(a.user="",a.password=t.applicationSecretKey),a}isCommunityResource(){return this.applicationId===c}}},{"@ethersproject/logger":"6NWvR","./_version":"1LO7N","./url-json-rpc-provider":"bwHu3","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2aAfb":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Web3Provider",()=>d);"use strict";var i=e("@ethersproject/properties"),a=e("@ethersproject/logger"),s=e("./_version"),o=e("./json-rpc-provider");let c=new a.Logger(s.version),f=1;function u(e,t){let r="Web3LegacyFetcher";return function(e,n){let a={method:e,params:n,id:f++,jsonrpc:"2.0"};return new Promise((e,n)=>{this.emit("debug",{action:"request",fetcher:r,request:(0,i.deepCopy)(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){let e=Error(i.error.message);return e.code=i.error.code,e.data=i.error.data,n(e)}e(i.result)})})}}class d extends o.JsonRpcProvider{constructor(e,t){null==e&&c.throwArgumentError("missing provider","provider",e);let r=null,n=null,a=null;"function"==typeof e?(r="unknown:",n=e):(((r=e.host||e.path||"")||!e.isMetaMask||(r="metamask"),a=e,e.request)?(""===r&&(r="eip-1193:"),n=function(t,r){null==r&&(r=[]);let n={method:t,params:r};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:(0,i.deepCopy)(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.sendAsync?n=u(e,e.sendAsync.bind(e)):e.send?n=u(e,e.send.bind(e)):c.throwArgumentError("unsupported provider","provider",e),r||(r="unknown:")),super(r,t),(0,i.defineReadOnly)(this,"jsonRpcFetchFunc",n),(0,i.defineReadOnly)(this,"provider",a)}send(e,t){return this.jsonRpcFetchFunc(e,t)}}},{"@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","./_version":"1LO7N","./json-rpc-provider":"7x7oZ","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"7jy5m":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"AbiCoder",()=>i.AbiCoder),n.export(r,"defaultAbiCoder",()=>i.defaultAbiCoder),n.export(r,"Fragment",()=>i.Fragment),n.export(r,"ConstructorFragment",()=>i.ConstructorFragment),n.export(r,"ErrorFragment",()=>i.ErrorFragment),n.export(r,"EventFragment",()=>i.EventFragment),n.export(r,"FunctionFragment",()=>i.FunctionFragment),n.export(r,"ParamType",()=>i.ParamType),n.export(r,"FormatTypes",()=>i.FormatTypes),n.export(r,"checkResultErrors",()=>i.checkResultErrors),n.export(r,"Logger",()=>h.Logger),n.export(r,"RLP",()=>y),n.export(r,"_fetchData",()=>M._fetchData),n.export(r,"fetchJson",()=>M.fetchJson),n.export(r,"poll",()=>M.poll),n.export(r,"checkProperties",()=>g.checkProperties),n.export(r,"deepCopy",()=>g.deepCopy),n.export(r,"defineReadOnly",()=>g.defineReadOnly),n.export(r,"getStatic",()=>g.getStatic),n.export(r,"resolveProperties",()=>g.resolveProperties),n.export(r,"shallowCopy",()=>g.shallowCopy),n.export(r,"arrayify",()=>c.arrayify),n.export(r,"concat",()=>c.concat),n.export(r,"stripZeros",()=>c.stripZeros),n.export(r,"zeroPad",()=>c.zeroPad),n.export(r,"isBytes",()=>c.isBytes),n.export(r,"isBytesLike",()=>c.isBytesLike),n.export(r,"defaultPath",()=>u.defaultPath),n.export(r,"HDNode",()=>u.HDNode),n.export(r,"SigningKey",()=>v.SigningKey),n.export(r,"Interface",()=>i.Interface),n.export(r,"LogDescription",()=>i.LogDescription),n.export(r,"TransactionDescription",()=>i.TransactionDescription),n.export(r,"base58",()=>o.Base58),n.export(r,"base64",()=>s),n.export(r,"hexlify",()=>c.hexlify),n.export(r,"isHexString",()=>c.isHexString),n.export(r,"hexConcat",()=>c.hexConcat),n.export(r,"hexStripZeros",()=>c.hexStripZeros),n.export(r,"hexValue",()=>c.hexValue),n.export(r,"hexZeroPad",()=>c.hexZeroPad),n.export(r,"hexDataLength",()=>c.hexDataLength),n.export(r,"hexDataSlice",()=>c.hexDataSlice),n.export(r,"nameprep",()=>w.nameprep),n.export(r,"_toEscapedUtf8String",()=>w._toEscapedUtf8String),n.export(r,"toUtf8Bytes",()=>w.toUtf8Bytes),n.export(r,"toUtf8CodePoints",()=>w.toUtf8CodePoints),n.export(r,"toUtf8String",()=>w.toUtf8String),n.export(r,"Utf8ErrorFuncs",()=>w.Utf8ErrorFuncs),n.export(r,"formatBytes32String",()=>w.formatBytes32String),n.export(r,"parseBytes32String",()=>w.parseBytes32String),n.export(r,"dnsEncode",()=>f.dnsEncode),n.export(r,"hashMessage",()=>f.hashMessage),n.export(r,"namehash",()=>f.namehash),n.export(r,"isValidName",()=>f.isValidName),n.export(r,"id",()=>f.id),n.export(r,"_TypedDataEncoder",()=>f._TypedDataEncoder),n.export(r,"getAddress",()=>a.getAddress),n.export(r,"getIcapAddress",()=>a.getIcapAddress),n.export(r,"getContractAddress",()=>a.getContractAddress),n.export(r,"getCreate2Address",()=>a.getCreate2Address),n.export(r,"isAddress",()=>a.isAddress),n.export(r,"formatEther",()=>E.formatEther),n.export(r,"parseEther",()=>E.parseEther),n.export(r,"formatUnits",()=>E.formatUnits),n.export(r,"parseUnits",()=>E.parseUnits),n.export(r,"commify",()=>E.commify),n.export(r,"computeHmac",()=>p.computeHmac),n.export(r,"keccak256",()=>l.keccak256),n.export(r,"ripemd160",()=>p.ripemd160),n.export(r,"sha256",()=>p.sha256),n.export(r,"sha512",()=>p.sha512),n.export(r,"randomBytes",()=>b.randomBytes),n.export(r,"shuffled",()=>b.shuffled),n.export(r,"solidityPack",()=>m.pack),n.export(r,"solidityKeccak256",()=>m.keccak256),n.export(r,"soliditySha256",()=>m.sha256),n.export(r,"splitSignature",()=>c.splitSignature),n.export(r,"joinSignature",()=>c.joinSignature),n.export(r,"accessListify",()=>_.accessListify),n.export(r,"parseTransaction",()=>_.parse),n.export(r,"serializeTransaction",()=>_.serialize),n.export(r,"TransactionTypes",()=>_.TransactionTypes),n.export(r,"getJsonWalletAddress",()=>d.getJsonWalletAddress),n.export(r,"computeAddress",()=>_.computeAddress),n.export(r,"recoverAddress",()=>_.recoverAddress),n.export(r,"computePublicKey",()=>v.computePublicKey),n.export(r,"recoverPublicKey",()=>v.recoverPublicKey),n.export(r,"verifyMessage",()=>A.verifyMessage),n.export(r,"verifyTypedData",()=>A.verifyTypedData),n.export(r,"getAccountPath",()=>u.getAccountPath),n.export(r,"mnemonicToEntropy",()=>u.mnemonicToEntropy),n.export(r,"entropyToMnemonic",()=>u.entropyToMnemonic),n.export(r,"isValidMnemonic",()=>u.isValidMnemonic),n.export(r,"mnemonicToSeed",()=>u.mnemonicToSeed),n.export(r,"SupportedAlgorithm",()=>p.SupportedAlgorithm),n.export(r,"UnicodeNormalizationForm",()=>w.UnicodeNormalizationForm),n.export(r,"Utf8ErrorReason",()=>w.Utf8ErrorReason),n.export(r,"Indexed",()=>i.Indexed);"use strict";var i=e("@ethersproject/abi"),a=e("@ethersproject/address"),s=e("@ethersproject/base64"),o=e("@ethersproject/basex"),c=e("@ethersproject/bytes"),f=e("@ethersproject/hash"),u=e("@ethersproject/hdnode"),d=e("@ethersproject/json-wallets"),l=e("@ethersproject/keccak256"),h=e("@ethersproject/logger"),p=e("@ethersproject/sha2"),m=e("@ethersproject/solidity"),b=e("@ethersproject/random"),g=e("@ethersproject/properties"),y=e("@ethersproject/rlp"),v=e("@ethersproject/signing-key"),w=e("@ethersproject/strings"),_=e("@ethersproject/transactions"),E=e("@ethersproject/units"),A=e("@ethersproject/wallet"),M=e("@ethersproject/web")},{"@ethersproject/abi":"gbtNr","@ethersproject/address":"7BZuS","@ethersproject/base64":"dIiCi","@ethersproject/basex":"Pygpe","@ethersproject/bytes":"19SwW","@ethersproject/hash":"jLDfB","@ethersproject/hdnode":"2zCqF","@ethersproject/json-wallets":"7BEU7","@ethersproject/keccak256":"eWtzg","@ethersproject/logger":"6NWvR","@ethersproject/sha2":"bznen","@ethersproject/solidity":"fUvC2","@ethersproject/random":"5x4el","@ethersproject/properties":"dmdV5","@ethersproject/rlp":"1wlks","@ethersproject/signing-key":"a8JOx","@ethersproject/strings":"edSy2","@ethersproject/transactions":"ctBdV","@ethersproject/units":"atzpk","@ethersproject/wallet":"euBMB","@ethersproject/web":"5uH8k","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],fUvC2:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"pack",()=>m),n.export(r,"keccak256",()=>b),n.export(r,"sha256",()=>g);"use strict";var i=e("@ethersproject/bignumber"),a=e("@ethersproject/bytes"),s=e("@ethersproject/keccak256"),o=e("@ethersproject/sha2"),c=e("@ethersproject/strings"),f=e("@ethersproject/logger"),u=e("./_version");let d=RegExp("^bytes([0-9]+)$"),l=RegExp("^(u?int)([0-9]*)$"),h=RegExp("^(.*)\\[([0-9]*)\\]$"),p=new f.Logger(u.version);function m(e,t){e.length!=t.length&&p.throwArgumentError("wrong number of values; expected ${ types.length }","values",t);let r=[];return e.forEach(function(e,n){r.push(function e(t,r,n){switch(t){case"address":if(n)return(0,a.zeroPad)(r,32);return(0,a.arrayify)(r);case"string":return(0,c.toUtf8Bytes)(r);case"bytes":return(0,a.arrayify)(r);case"bool":if(r=r?"0x01":"0x00",n)return(0,a.zeroPad)(r,32);return(0,a.arrayify)(r)}let s=t.match(l);if(s){let e=parseInt(s[2]||"256");return(s[2]&&String(e)!==s[2]||e%8!=0||0===e||e>256)&&p.throwArgumentError("invalid number type","type",t),n&&(e=256),r=(0,i.BigNumber).from(r).toTwos(e),(0,a.zeroPad)(r,e/8)}if(s=t.match(d)){let e=parseInt(s[1]);return((String(e)!==s[1]||0===e||e>32)&&p.throwArgumentError("invalid bytes type","type",t),(0,a.arrayify)(r).byteLength!==e&&p.throwArgumentError(`invalid value for ${t}`,"value",r),n)?(0,a.arrayify)((r+"0000000000000000000000000000000000000000000000000000000000000000").substring(0,66)):r}if((s=t.match(h))&&Array.isArray(r)){let n=s[1],i=parseInt(s[2]||String(r.length));i!=r.length&&p.throwArgumentError(`invalid array length for ${t}`,"value",r);let o=[];return r.forEach(function(t){o.push(e(n,t,!0))}),(0,a.concat)(o)}return p.throwArgumentError("invalid type","type",t)}(e,t[n]))}),(0,a.hexlify)((0,a.concat)(r))}function b(e,t){return(0,s.keccak256)(m(e,t))}function g(e,t){return(0,o.sha256)(m(e,t))}},{"@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/keccak256":"eWtzg","@ethersproject/sha2":"bznen","@ethersproject/strings":"edSy2","@ethersproject/logger":"6NWvR","./_version":"csbL3","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],csbL3:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="solidity/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],atzpk:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"commify",()=>f),n.export(r,"formatUnits",()=>u),n.export(r,"parseUnits",()=>d),n.export(r,"formatEther",()=>l),n.export(r,"parseEther",()=>h);"use strict";var i=e("@ethersproject/bignumber"),a=e("@ethersproject/logger"),s=e("./_version");let o=new a.Logger(s.version),c=["wei","kwei","mwei","gwei","szabo","finney","ether"];function f(e){let t=String(e).split(".");(t.length>2||!t[0].match(/^-?[0-9]*$/)||t[1]&&!t[1].match(/^[0-9]*$/)||"."===e||"-."===e)&&o.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 i="";for(2===t.length&&(i="."+(t[1]||"0"));i.length>2&&"0"===i[i.length-1];)i=i.substring(0,i.length-1);let a=[];for(;r.length;)if(r.length<=3){a.unshift(r);break}else{let e=r.length-3;a.unshift(r.substring(e)),r=r.substring(0,e)}return n+a.join(",")+i}function u(e,t){if("string"==typeof t){let e=c.indexOf(t);-1!==e&&(t=3*e)}return(0,i.formatFixed)(e,null!=t?t:18)}function d(e,t){if("string"!=typeof e&&o.throwArgumentError("value must be a string","value",e),"string"==typeof t){let e=c.indexOf(t);-1!==e&&(t=3*e)}return(0,i.parseFixed)(e,null!=t?t:18)}function l(e){return u(e,18)}function h(e){return d(e,18)}},{"@ethersproject/bignumber":"hIcBX","@ethersproject/logger":"6NWvR","./_version":"fmwkF","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],fmwkF:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="units/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lHxZw:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>i);let i="ethers/5.7.2"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gHKeo:[function(e,t,r){"use strict";r.version=e("e6672bc3ba1c9961").version,r.utils=e("5bc72f89931ad0f5"),r.rand=e("7f90d752a36f35cf"),r.curve=e("d11da69c91421223"),r.curves=e("6845bad4ed92c3e4"),r.ec=e("b5f2e1f615acc4b"),r.eddsa=e("79ae761761517980")},{e6672bc3ba1c9961:"3Zkz7","5bc72f89931ad0f5":"3rt5D","7f90d752a36f35cf":"dpC9B",d11da69c91421223:"2kHkA","6845bad4ed92c3e4":"kwPzC",b5f2e1f615acc4b:"eyBGo","79ae761761517980":"axOwW"}],"3Zkz7":[function(e,t,r){t.exports=JSON.parse('{"name":"elliptic","version":"6.5.4","description":"EC cryptography","main":"lib/elliptic.js","files":["lib"],"scripts":{"lint":"eslint lib test","lint:fix":"npm run lint -- --fix","unit":"istanbul test _mocha --reporter=spec test/index.js","test":"npm run lint && npm run unit","version":"grunt dist && git add dist/"},"repository":{"type":"git","url":"git@github.com:indutny/elliptic"},"keywords":["EC","Elliptic","curve","Cryptography"],"author":"Fedor Indutny ","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}')},{}],"3rt5D":[function(e,t,r){"use strict";var n=e("f4cbcf6f6eb25ca0"),i=e("d8ee30463f95a0fd"),a=e("997429d6bbd82d59");r.assert=i,r.toArray=a.toArray,r.zero2=a.zero2,r.toHex=a.toHex,r.encode=a.encode,r.getNAF=function(e,t,r){var n=Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var i=1<(i>>1)-1?(i>>1)-c:c,a.isubn(o)):o=0,n[s]=o,a.iushrn(1)}return n},r.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,i=0;e.cmpn(-n)>0||t.cmpn(-i)>0;){var a,s,o,c=e.andln(3)+n&3,f=t.andln(3)+i&3;3===c&&(c=-1),3===f&&(f=-1),s=(1&c)==0?0:(3==(a=e.andln(7)+n&7)||5===a)&&2===f?-c:c,r[0].push(s),o=(1&f)==0?0:(3==(a=t.andln(7)+i&7)||5===a)&&2===c?-f:f,r[1].push(o),2*n===s+1&&(n=1-n),2*i===o+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 n(e,"hex","le")}},{f4cbcf6f6eb25ca0:"2gemu",d8ee30463f95a0fd:"h59lk","997429d6bbd82d59":"6lUA8"}],"2gemu":[function(e,t,r){!function(t,r){"use strict";function n(e,t){if(!e)throw Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.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"))}"object"==typeof t?t.exports=a:r.BN=a,a.BN=a,a.wordSize=26;try{f="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("1cf9b8cfa268aab5").Buffer}catch(e){}function s(e,t){var r=e.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function o(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function c(e,t,r,n){for(var i=0,a=Math.min(e.length,r),s=t;s=49?i+=o-49+10:o>=17?i+=o-17+10:i+=o}return i}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;s-=3)a=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[i]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,i++);else if("le"===r)for(s=0,i=0;s>>26-o&67108863,(o+=24)>=26&&(o-=26,i++);return this.strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n,i=0;i=t;i-=2)n=o(e,t,i)<=18?(a-=18,s+=1,this.words[s]|=n>>>26):a+=8;else for(i=(e.length-t)%2==0?t+1:t;i=18?(a-=18,s+=1,this.words[s]|=n>>>26):a+=8;this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var a=e.length-r,s=a%n,o=Math.min(a,a-s)+r,f=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var f,u=["","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"],d=[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],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],a=0|t.words[0],s=i*a,o=67108863&s,c=s/67108864|0;r.words[0]=o;for(var f=1;f>>26,d=67108863&c,l=Math.min(f,t.length-1),h=Math.max(0,f-e.length+1);h<=l;h++){var p=f-h|0;u+=(s=(i=0|e.words[p])*(a=0|t.words[h])+d)/67108864|0,d=67108863&s}r.words[f]=0|d,c=0|u}return 0!==c?r.words[f]=0|c:r.length--,r.strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,i=0,a=0,s=0;s>>24-i&16777215)||s!==this.length-1?u[6-c.length]+c+r:c+r,(i+=2)>=26&&(i-=26,s--)}for(0!==a&&(r=a.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 f=d[e],h=l[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?m+r:u[f-m.length]+m+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")},a.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},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return n(void 0!==f),this.toArrayLike(f,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var i,a,s=this.byteLength(),o=r||Math.max(1,s);n(s<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var c=new e(o),f=this.clone();if("le"===t){for(a=0;!f.isZero();a++)i=f.andln(255),f.iushrn(8),c[a]=i;for(;a=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},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.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)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,a=0;a>>26;for(;0!==i&&a>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var a=0,s=0;s>26,this.words[s]=67108863&n;for(;0!==a&&s>26,this.words[s]=67108863&n;if(0===a&&s>>13,h=0|s[1],p=8191&h,m=h>>>13,b=0|s[2],g=8191&b,y=b>>>13,v=0|s[3],w=8191&v,_=v>>>13,E=0|s[4],A=8191&E,M=E>>>13,S=0|s[5],x=8191&S,T=S>>>13,k=0|s[6],R=8191&k,I=k>>>13,C=0|s[7],P=8191&C,O=C>>>13,N=0|s[8],j=8191&N,B=N>>>13,L=0|s[9],D=8191&L,U=L>>>13,F=0|o[0],q=8191&F,z=F>>>13,K=0|o[1],H=8191&K,V=K>>>13,W=0|o[2],G=8191&W,J=W>>>13,Z=0|o[3],$=8191&Z,X=Z>>>13,Y=0|o[4],Q=8191&Y,ee=Y>>>13,et=0|o[5],er=8191&et,en=et>>>13,ei=0|o[6],ea=8191&ei,es=ei>>>13,eo=0|o[7],ec=8191&eo,ef=eo>>>13,eu=0|o[8],ed=8191&eu,el=eu>>>13,eh=0|o[9],ep=8191&eh,em=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var eb=(f+(n=Math.imul(d,q))|0)+((8191&(i=(i=Math.imul(d,z))+Math.imul(l,q)|0))<<13)|0;f=((a=Math.imul(l,z))+(i>>>13)|0)+(eb>>>26)|0,eb&=67108863,n=Math.imul(p,q),i=(i=Math.imul(p,z))+Math.imul(m,q)|0,a=Math.imul(m,z);var eg=(f+(n=n+Math.imul(d,H)|0)|0)+((8191&(i=(i=i+Math.imul(d,V)|0)+Math.imul(l,H)|0))<<13)|0;f=((a=a+Math.imul(l,V)|0)+(i>>>13)|0)+(eg>>>26)|0,eg&=67108863,n=Math.imul(g,q),i=(i=Math.imul(g,z))+Math.imul(y,q)|0,a=Math.imul(y,z),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,H)|0,a=a+Math.imul(m,V)|0;var ey=(f+(n=n+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,J)|0)+Math.imul(l,G)|0))<<13)|0;f=((a=a+Math.imul(l,J)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=67108863,n=Math.imul(w,q),i=(i=Math.imul(w,z))+Math.imul(_,q)|0,a=Math.imul(_,z),n=n+Math.imul(g,H)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,V)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,G)|0,a=a+Math.imul(m,J)|0;var ev=(f+(n=n+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(l,$)|0))<<13)|0;f=((a=a+Math.imul(l,X)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=67108863,n=Math.imul(A,q),i=(i=Math.imul(A,z))+Math.imul(M,q)|0,a=Math.imul(M,z),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,V)|0,n=n+Math.imul(g,G)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,J)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,$)|0,a=a+Math.imul(m,X)|0;var ew=(f+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(l,Q)|0))<<13)|0;f=((a=a+Math.imul(l,ee)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=67108863,n=Math.imul(x,q),i=(i=Math.imul(x,z))+Math.imul(T,q)|0,a=Math.imul(T,z),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(M,H)|0,a=a+Math.imul(M,V)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,G)|0,a=a+Math.imul(_,J)|0,n=n+Math.imul(g,$)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(y,$)|0,a=a+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,a=a+Math.imul(m,ee)|0;var e_=(f+(n=n+Math.imul(d,er)|0)|0)+((8191&(i=(i=i+Math.imul(d,en)|0)+Math.imul(l,er)|0))<<13)|0;f=((a=a+Math.imul(l,en)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,z))+Math.imul(I,q)|0,a=Math.imul(I,z),n=n+Math.imul(x,H)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(T,H)|0,a=a+Math.imul(T,V)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(M,G)|0,a=a+Math.imul(M,J)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(_,$)|0,a=a+Math.imul(_,X)|0,n=n+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(y,Q)|0,a=a+Math.imul(y,ee)|0,n=n+Math.imul(p,er)|0,i=(i=i+Math.imul(p,en)|0)+Math.imul(m,er)|0,a=a+Math.imul(m,en)|0;var eE=(f+(n=n+Math.imul(d,ea)|0)|0)+((8191&(i=(i=i+Math.imul(d,es)|0)+Math.imul(l,ea)|0))<<13)|0;f=((a=a+Math.imul(l,es)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=67108863,n=Math.imul(P,q),i=(i=Math.imul(P,z))+Math.imul(O,q)|0,a=Math.imul(O,z),n=n+Math.imul(R,H)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,V)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(T,G)|0,a=a+Math.imul(T,J)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(M,$)|0,a=a+Math.imul(M,X)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,ee)|0,n=n+Math.imul(g,er)|0,i=(i=i+Math.imul(g,en)|0)+Math.imul(y,er)|0,a=a+Math.imul(y,en)|0,n=n+Math.imul(p,ea)|0,i=(i=i+Math.imul(p,es)|0)+Math.imul(m,ea)|0,a=a+Math.imul(m,es)|0;var eA=(f+(n=n+Math.imul(d,ec)|0)|0)+((8191&(i=(i=i+Math.imul(d,ef)|0)+Math.imul(l,ec)|0))<<13)|0;f=((a=a+Math.imul(l,ef)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=67108863,n=Math.imul(j,q),i=(i=Math.imul(j,z))+Math.imul(B,q)|0,a=Math.imul(B,z),n=n+Math.imul(P,H)|0,i=(i=i+Math.imul(P,V)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,V)|0,n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(I,G)|0,a=a+Math.imul(I,J)|0,n=n+Math.imul(x,$)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(T,$)|0,a=a+Math.imul(T,X)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(M,Q)|0,a=a+Math.imul(M,ee)|0,n=n+Math.imul(w,er)|0,i=(i=i+Math.imul(w,en)|0)+Math.imul(_,er)|0,a=a+Math.imul(_,en)|0,n=n+Math.imul(g,ea)|0,i=(i=i+Math.imul(g,es)|0)+Math.imul(y,ea)|0,a=a+Math.imul(y,es)|0,n=n+Math.imul(p,ec)|0,i=(i=i+Math.imul(p,ef)|0)+Math.imul(m,ec)|0,a=a+Math.imul(m,ef)|0;var eM=(f+(n=n+Math.imul(d,ed)|0)|0)+((8191&(i=(i=i+Math.imul(d,el)|0)+Math.imul(l,ed)|0))<<13)|0;f=((a=a+Math.imul(l,el)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,z))+Math.imul(U,q)|0,a=Math.imul(U,z),n=n+Math.imul(j,H)|0,i=(i=i+Math.imul(j,V)|0)+Math.imul(B,H)|0,a=a+Math.imul(B,V)|0,n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(O,G)|0,a=a+Math.imul(O,J)|0,n=n+Math.imul(R,$)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(I,$)|0,a=a+Math.imul(I,X)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(T,Q)|0,a=a+Math.imul(T,ee)|0,n=n+Math.imul(A,er)|0,i=(i=i+Math.imul(A,en)|0)+Math.imul(M,er)|0,a=a+Math.imul(M,en)|0,n=n+Math.imul(w,ea)|0,i=(i=i+Math.imul(w,es)|0)+Math.imul(_,ea)|0,a=a+Math.imul(_,es)|0,n=n+Math.imul(g,ec)|0,i=(i=i+Math.imul(g,ef)|0)+Math.imul(y,ec)|0,a=a+Math.imul(y,ef)|0,n=n+Math.imul(p,ed)|0,i=(i=i+Math.imul(p,el)|0)+Math.imul(m,ed)|0,a=a+Math.imul(m,el)|0;var eS=(f+(n=n+Math.imul(d,ep)|0)|0)+((8191&(i=(i=i+Math.imul(d,em)|0)+Math.imul(l,ep)|0))<<13)|0;f=((a=a+Math.imul(l,em)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=67108863,n=Math.imul(D,H),i=(i=Math.imul(D,V))+Math.imul(U,H)|0,a=Math.imul(U,V),n=n+Math.imul(j,G)|0,i=(i=i+Math.imul(j,J)|0)+Math.imul(B,G)|0,a=a+Math.imul(B,J)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(O,$)|0,a=a+Math.imul(O,X)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(I,Q)|0,a=a+Math.imul(I,ee)|0,n=n+Math.imul(x,er)|0,i=(i=i+Math.imul(x,en)|0)+Math.imul(T,er)|0,a=a+Math.imul(T,en)|0,n=n+Math.imul(A,ea)|0,i=(i=i+Math.imul(A,es)|0)+Math.imul(M,ea)|0,a=a+Math.imul(M,es)|0,n=n+Math.imul(w,ec)|0,i=(i=i+Math.imul(w,ef)|0)+Math.imul(_,ec)|0,a=a+Math.imul(_,ef)|0,n=n+Math.imul(g,ed)|0,i=(i=i+Math.imul(g,el)|0)+Math.imul(y,ed)|0,a=a+Math.imul(y,el)|0;var ex=(f+(n=n+Math.imul(p,ep)|0)|0)+((8191&(i=(i=i+Math.imul(p,em)|0)+Math.imul(m,ep)|0))<<13)|0;f=((a=a+Math.imul(m,em)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=67108863,n=Math.imul(D,G),i=(i=Math.imul(D,J))+Math.imul(U,G)|0,a=Math.imul(U,J),n=n+Math.imul(j,$)|0,i=(i=i+Math.imul(j,X)|0)+Math.imul(B,$)|0,a=a+Math.imul(B,X)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,n=n+Math.imul(R,er)|0,i=(i=i+Math.imul(R,en)|0)+Math.imul(I,er)|0,a=a+Math.imul(I,en)|0,n=n+Math.imul(x,ea)|0,i=(i=i+Math.imul(x,es)|0)+Math.imul(T,ea)|0,a=a+Math.imul(T,es)|0,n=n+Math.imul(A,ec)|0,i=(i=i+Math.imul(A,ef)|0)+Math.imul(M,ec)|0,a=a+Math.imul(M,ef)|0,n=n+Math.imul(w,ed)|0,i=(i=i+Math.imul(w,el)|0)+Math.imul(_,ed)|0,a=a+Math.imul(_,el)|0;var eT=(f+(n=n+Math.imul(g,ep)|0)|0)+((8191&(i=(i=i+Math.imul(g,em)|0)+Math.imul(y,ep)|0))<<13)|0;f=((a=a+Math.imul(y,em)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,X))+Math.imul(U,$)|0,a=Math.imul(U,X),n=n+Math.imul(j,Q)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(B,Q)|0,a=a+Math.imul(B,ee)|0,n=n+Math.imul(P,er)|0,i=(i=i+Math.imul(P,en)|0)+Math.imul(O,er)|0,a=a+Math.imul(O,en)|0,n=n+Math.imul(R,ea)|0,i=(i=i+Math.imul(R,es)|0)+Math.imul(I,ea)|0,a=a+Math.imul(I,es)|0,n=n+Math.imul(x,ec)|0,i=(i=i+Math.imul(x,ef)|0)+Math.imul(T,ec)|0,a=a+Math.imul(T,ef)|0,n=n+Math.imul(A,ed)|0,i=(i=i+Math.imul(A,el)|0)+Math.imul(M,ed)|0,a=a+Math.imul(M,el)|0;var ek=(f+(n=n+Math.imul(w,ep)|0)|0)+((8191&(i=(i=i+Math.imul(w,em)|0)+Math.imul(_,ep)|0))<<13)|0;f=((a=a+Math.imul(_,em)|0)+(i>>>13)|0)+(ek>>>26)|0,ek&=67108863,n=Math.imul(D,Q),i=(i=Math.imul(D,ee))+Math.imul(U,Q)|0,a=Math.imul(U,ee),n=n+Math.imul(j,er)|0,i=(i=i+Math.imul(j,en)|0)+Math.imul(B,er)|0,a=a+Math.imul(B,en)|0,n=n+Math.imul(P,ea)|0,i=(i=i+Math.imul(P,es)|0)+Math.imul(O,ea)|0,a=a+Math.imul(O,es)|0,n=n+Math.imul(R,ec)|0,i=(i=i+Math.imul(R,ef)|0)+Math.imul(I,ec)|0,a=a+Math.imul(I,ef)|0,n=n+Math.imul(x,ed)|0,i=(i=i+Math.imul(x,el)|0)+Math.imul(T,ed)|0,a=a+Math.imul(T,el)|0;var eR=(f+(n=n+Math.imul(A,ep)|0)|0)+((8191&(i=(i=i+Math.imul(A,em)|0)+Math.imul(M,ep)|0))<<13)|0;f=((a=a+Math.imul(M,em)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=67108863,n=Math.imul(D,er),i=(i=Math.imul(D,en))+Math.imul(U,er)|0,a=Math.imul(U,en),n=n+Math.imul(j,ea)|0,i=(i=i+Math.imul(j,es)|0)+Math.imul(B,ea)|0,a=a+Math.imul(B,es)|0,n=n+Math.imul(P,ec)|0,i=(i=i+Math.imul(P,ef)|0)+Math.imul(O,ec)|0,a=a+Math.imul(O,ef)|0,n=n+Math.imul(R,ed)|0,i=(i=i+Math.imul(R,el)|0)+Math.imul(I,ed)|0,a=a+Math.imul(I,el)|0;var eI=(f+(n=n+Math.imul(x,ep)|0)|0)+((8191&(i=(i=i+Math.imul(x,em)|0)+Math.imul(T,ep)|0))<<13)|0;f=((a=a+Math.imul(T,em)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=67108863,n=Math.imul(D,ea),i=(i=Math.imul(D,es))+Math.imul(U,ea)|0,a=Math.imul(U,es),n=n+Math.imul(j,ec)|0,i=(i=i+Math.imul(j,ef)|0)+Math.imul(B,ec)|0,a=a+Math.imul(B,ef)|0,n=n+Math.imul(P,ed)|0,i=(i=i+Math.imul(P,el)|0)+Math.imul(O,ed)|0,a=a+Math.imul(O,el)|0;var eC=(f+(n=n+Math.imul(R,ep)|0)|0)+((8191&(i=(i=i+Math.imul(R,em)|0)+Math.imul(I,ep)|0))<<13)|0;f=((a=a+Math.imul(I,em)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=67108863,n=Math.imul(D,ec),i=(i=Math.imul(D,ef))+Math.imul(U,ec)|0,a=Math.imul(U,ef),n=n+Math.imul(j,ed)|0,i=(i=i+Math.imul(j,el)|0)+Math.imul(B,ed)|0,a=a+Math.imul(B,el)|0;var eP=(f+(n=n+Math.imul(P,ep)|0)|0)+((8191&(i=(i=i+Math.imul(P,em)|0)+Math.imul(O,ep)|0))<<13)|0;f=((a=a+Math.imul(O,em)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=67108863,n=Math.imul(D,ed),i=(i=Math.imul(D,el))+Math.imul(U,ed)|0,a=Math.imul(U,el);var eO=(f+(n=n+Math.imul(j,ep)|0)|0)+((8191&(i=(i=i+Math.imul(j,em)|0)+Math.imul(B,ep)|0))<<13)|0;f=((a=a+Math.imul(B,em)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=67108863;var eN=(f+(n=Math.imul(D,ep))|0)+((8191&(i=(i=Math.imul(D,em))+Math.imul(U,ep)|0))<<13)|0;return f=((a=Math.imul(U,em))+(i>>>13)|0)+(eN>>>26)|0,eN&=67108863,c[0]=eb,c[1]=eg,c[2]=ey,c[3]=ev,c[4]=ew,c[5]=e_,c[6]=eE,c[7]=eA,c[8]=eM,c[9]=eS,c[10]=ex,c[11]=eT,c[12]=ek,c[13]=eR,c[14]=eI,c[15]=eC,c[16]=eP,c[17]=eO,c[18]=eN,0!==f&&(c[19]=f,r.length++),r};function m(e,t,r){return new b().mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(p=h),a.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):r<63?h(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,a=0;a>>26)|0)>>>26,s&=67108863}r.words[a]=o,n=s,s=i}return 0!==n?r.words[a]=n:r.length--,r.strip()}(this,e,t):m(this,e,t)},b.prototype.makeRBT=function(e){for(var t=Array(e),r=a.prototype._countBits(e)-1,n=0;n>=1;return n},b.prototype.permute=function(e,t,r,n,i,a){for(var s=0;s>>=1)i++;return 1<>>=13,r[2*s+1]=8191&a,a>>>=13;for(s=2*t;s>=26,t+=(i/67108864|0)+(a>>>26),this.words[r]=67108863&a}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>i}return t}(e);if(0===t.length)return new a(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,a=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var i,a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<s)for(this.length-=s,c=0;c=0&&(0!==f||c>=i);c--){var u=0|this.words[c];this.words[c]=f<<26-a|u>>>a,f=u&o}return r&&0!==f&&(r.words[r.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return!(this.length<=r)&&!!(this.words[r]&1<=0);var t=e%26,r=(e-t)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==t&&r++,this.length=Math.min(r,this.length),0!==t&&(this.words[this.length-1]&=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},a.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[i+r]=67108863&a}for(;i>26,this.words[i+r]=67108863&a;if(0===o)return this.strip();for(n(-1===o),o=0,i=0;i>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),s=e,o=0|s.words[s.length-1];0!=(n=26-this._countBits(o))&&(s=s.ushln(n),i.iushln(n),o=0|s.words[s.length-1]);var c=i.length-s.length;if("mod"!==t){(r=new a(null)).length=c+1,r.words=Array(r.length);for(var f=0;f=0;d--){var l=(0|i.words[s.length+d])*67108864+(0|i.words[s.length+d-1]);for(l=Math.min(l/o|0,67108863),i._ishlnsubmul(s,l,d);0!==i.negative;)l--,i.negative=0,i._ishlnsubmul(s,1,d),i.isZero()||(i.negative^=1);r&&(r.words[d]=l)}return r&&r.strip(),i.strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},a.prototype.divmod=function(e,t,r){var i,s,o;return(n(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(i=o.div.neg()),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:i,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(i=o.div.neg()),{div:i,mod:o.mod}):(this.negative&e.negative)!=0?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:o.div,mod:s}):e.length>this.length||0>this.cmp(e)?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.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),i=e.andln(1),a=r.cmp(n);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){n(e<=67108863);for(var t=67108864%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},a.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.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 i=new a(1),s=new a(0),o=new a(0),c=new a(1),f=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++f;for(var u=r.clone(),d=t.clone();!t.isZero();){for(var l=0,h=1;(t.words[0]&h)==0&&l<26;++l,h<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(u),s.isub(d)),i.iushrn(1),s.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(o.isOdd()||c.isOdd())&&(o.iadd(u),c.isub(d)),o.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(o),s.isub(c)):(r.isub(t),o.isub(i),c.isub(s))}return{a:o,b:c,gcd:r.iushln(f)}},a.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new a(1),o=new a(0),c=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var f=0,u=1;(r.words[0]&u)==0&&f<26;++f,u<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var d=0,l=1;(i.words[0]&l)==0&&d<26;++d,l<<=1);if(d>0)for(i.iushrn(d);d-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);r.cmp(i)>=0?(r.isub(i),s.isub(o)):(i.isub(r),o.isub(s))}return 0>(t=0===r.cmpn(1)?s:o).cmpn(0)&&t.iadd(e),t},a.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 i=t.cmp(r);if(i<0){var a=t;t=r,r=a}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new A(e)},a.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)},a.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"==typeof e){var t=a._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 M(e){A.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(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)}y.prototype._tmp=function(){var e=new a(null);return e.words=Array(Math.ceil(this.n/13)),e},y.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},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},i(v,y),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,i=a}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(g[e])return g[e];if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new _;else if("p25519"===e)t=new E;else throw Error("Unknown prime "+e);return g[e]=t,t},A.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},A.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},A.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);n(!i.isZero());var o=new a(1).toRed(this),c=o.redNeg(),f=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,f).cmp(c);)u.redIAdd(c);for(var d=this.pow(u,i),l=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=s;0!==h.cmp(o);){for(var m=h,b=0;0!==m.cmp(o);b++)m=m.redSqr();n(b=0;n--){for(var f=t.words[n],u=c-1;u>=0;u--){var d=f>>u&1;if(i!==r[0]&&(i=this.sqr(i)),0===d&&0===s){o=0;continue}s<<=1,s|=d,(4==++o||0===n&&0===u)&&(i=this.mul(i,r[s]),o=0,s=0)}c=26}return i},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new M(e)},i(M,A),M.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},M.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},M.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),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},M.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):0>i.cmpn(0)&&(s=i.iadd(this.m)),s._forceRed(this)},M.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)},{"1cf9b8cfa268aab5":"3eno3"}],"6lUA8":[function(e,t,r){"use strict";function n(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",r=0;r>8,s=255&i;a?r.push(a,s):r.push(s)}return r},r.zero2=n,r.toHex=i,r.encode=function(e,t){return"hex"===t?i(e):e}},{}],dpC9B:[function(e,t,r){var n;function i(e){this.rand=e}if(t.exports=function(e){return n||(n=new i(null)),n.generate(e)},t.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function f(e,t){this.curve=e,this.type=t,this.precomputed=null}t.exports=c,c.prototype.point=function(){throw Error("Not implemented")},c.prototype.validate=function(){throw Error("Not implemented")},c.prototype._fixedNafMul=function(e,t){o(e.precomputed);var r,n,i=e._getDoubles(),s=a(t,1,this._bitLength),c=(1<=r;u--)n=(n<<1)+s[u];f.push(n)}for(var d=this.jpoint(null,null,null),l=this.jpoint(null,null,null),h=c;h>0;h--){for(r=0;r=0;f--){for(var u=0;f>=0&&0===s[f];f--)u++;if(f>=0&&u++,c=c.dblp(u),f<0)break;var d=s[f];o(0!==d),c="affine"===e.type?d>0?c.mixedAdd(i[d-1>>1]):c.mixedAdd(i[-d-1>>1].neg()):d>0?c.add(i[d-1>>1]):c.add(i[-d-1>>1].neg())}return"affine"===e.type?c.toP():c},c.prototype._wnafMulAdd=function(e,t,r,n,i){var o,c,f,u=this._wnafT1,d=this._wnafT2,l=this._wnafT3,h=0;for(o=0;o=1;o-=2){var m=o-1,b=o;if(1!==u[m]||1!==u[b]){l[m]=a(r[m],u[m],this._bitLength),l[b]=a(r[b],u[b],this._bitLength),h=Math.max(l[m].length,h),h=Math.max(l[b].length,h);continue}var g=[t[m],null,null,t[b]];0===t[m].y.cmp(t[b].y)?(g[1]=t[m].add(t[b]),g[2]=t[m].toJ().mixedAdd(t[b].neg())):0===t[m].y.cmp(t[b].y.redNeg())?(g[1]=t[m].toJ().mixedAdd(t[b]),g[2]=t[m].add(t[b].neg())):(g[1]=t[m].toJ().mixedAdd(t[b]),g[2]=t[m].toJ().mixedAdd(t[b].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],v=s(r[m],r[b]);for(c=0,h=Math.max(v[0].length,h),l[m]=Array(h),l[b]=Array(h);c=0;o--){for(var M=0;o>=0;){var S=!0;for(c=0;c=0&&M++,E=E.dblp(M),o<0)break;for(c=0;c0?f=d[c][x-1>>1]:x<0&&(f=d[c][-x-1>>1].neg()),E="affine"===f.type?E.mixedAdd(f):E.add(f))}}for(o=0;o=Math.ceil((e.bitLength()+1)/t.step)},f.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;ia[0].cmp(a[1])?a[0]:a[1]).toRed(this.red)}if(e.lambda)r=new i(e.lambda,16);else{var s=this._getEndoRoots(this.n);0===this.g.mul(s[0]).x.cmp(this.g.x.redMul(t))?r=s[0]:(r=s[1],o(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return n=e.basis?e.basis.map(function(e){return{a:new i(e.a,16),b:new i(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:n}}},c.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),r=new i(2).toRed(t).redInvm(),n=r.redNeg(),a=new i(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(a).fromRed(),n.redSub(a).fromRed()]},c.prototype._getEndoBasis=function(e){for(var t,r,n,a,s,o,c,f,u,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=e,h=this.n.clone(),p=new i(1),m=new i(0),b=new i(0),g=new i(1),y=0;0!==l.cmpn(0);){var v=h.div(l);f=h.sub(v.mul(l)),u=b.sub(v.mul(p));var w=g.sub(v.mul(m));if(!n&&0>f.cmp(d))t=c.neg(),r=p,n=f.neg(),a=u;else if(n&&2==++y)break;c=f,h=l,l=f,b=p,p=u,g=m,m=w}s=f.neg(),o=u;var _=n.sqr().add(a.sqr());return s.sqr().add(o.sqr()).cmp(_)>=0&&(s=t,o=r),n.negative&&(n=n.neg(),a=a.neg()),s.negative&&(s=s.neg(),o=o.neg()),[{a:n,b:a},{a:s,b:o}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),a=r.b.neg().mul(e).divRound(this.n),s=i.mul(r.a),o=a.mul(n.a),c=i.mul(r.b),f=a.mul(n.b);return{k1:e.sub(s).sub(o),k2:c.add(f).neg()}},c.prototype.pointFromX=function(e,t){(e=new i(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 Error("invalid point");var a=n.fromRed().isOdd();return(t&&!a||!t&&a)&&(n=n.redNeg()),this.point(e,n)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,a=0;a":""},f.prototype.isInfinity=function(){return this.inf},f.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)||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)},f.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(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),a=i.redSqr().redISub(this.x.redAdd(this.x)),s=i.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,s)},f.prototype.getX=function(){return this.x.fromRed()},f.prototype.getY=function(){return this.y.fromRed()},f.prototype.mul=function(e){return(e=new i(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)},f.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},f.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},f.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))},f.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},f.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(u,s.BasePoint),c.prototype.jpoint=function(e,t,r){return new u(this,e,t,r)},u.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)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.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),i=e.x.redMul(r),a=this.y.redMul(t.redMul(e.z)),s=e.y.redMul(r.redMul(this.z)),o=n.redSub(i),c=a.redSub(s);if(0===o.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=o.redSqr(),u=f.redMul(o),d=n.redMul(f),l=c.redSqr().redIAdd(u).redISub(d).redISub(d),h=c.redMul(d.redISub(l)).redISub(a.redMul(u)),p=this.z.redMul(e.z).redMul(o);return this.curve.jpoint(l,h,p)},u.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),i=this.y,a=e.y.redMul(t).redMul(this.z),s=r.redSub(n),o=i.redSub(a);if(0===s.cmpn(0))return 0!==o.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),f=c.redMul(s),u=r.redMul(c),d=o.redSqr().redIAdd(f).redISub(u).redISub(u),l=o.redMul(u.redISub(d)).redISub(i.redMul(f)),h=this.z.redMul(s);return this.curve.jpoint(d,l,h)},u.prototype.dblp=function(e){if(0===e||this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var t,r=this;for(t=0;t=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"89f794ef417dc31c":"3rt5D",c314b0ac30b69c4a:"2gemu","6ac4d7c73f24ab9c":"cJ2FP","6e622edb7498c94":"8aa6K"}],"8aBJF":[function(e,t,r){"use strict";var n=e("ebdf19f04f3ed250"),i=e("cb5bb4841a749f68"),a=e("51280941230b3f98"),s=e("ea7949a80be00261");function o(e){a.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(o,a),t.exports=o,o.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},i(c,a.BasePoint),o.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},o.prototype.point=function(e,t){return new c(this,e,t)},o.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.one)},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},c.prototype.add=function(){throw Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),a=e.x.redSub(e.z).redMul(r),s=i.redMul(n),o=t.z.redMul(a.redAdd(s).redSqr()),c=t.x.redMul(a.redISub(s).redSqr());return this.curve.point(o,c)},c.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var a=i.length-1;a>=0;a--)0===i[a]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},c.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},c.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{ebdf19f04f3ed250:"2gemu",cb5bb4841a749f68:"cJ2FP","51280941230b3f98":"8aa6K",ea7949a80be00261:"3rt5D"}],g6imV:[function(e,t,r){"use strict";var n=e("7bd66a4710450b08"),i=e("ccef46dcf03d45c6"),a=e("19937272cbe23c92"),s=e("108c8ead5f54502b"),o=n.assert;function c(e){this.twisted=(0|e.a)!=1,this.mOneA=this.twisted&&(0|e.a)==-1,this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),o(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=(0|e.c)==1}function f(e,t,r,n,a){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=a&&new i(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,!this.curve.extended||this.t||(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(c,s),t.exports=c,c.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},c.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},c.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),a=this.one.redSub(this.c2.redMul(this.d).redMul(r)),s=n.redMul(a.redInvm()),o=s.redSqrt();if(0!==o.redSqr().redSub(s).cmp(this.zero))throw Error("invalid point");var c=o.fromRed().isOdd();return(t&&!c||!t&&c)&&(o=o.redNeg()),this.point(e,o)},c.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),a=r.redMul(this.d).redMul(this.c2).redSub(this.a),s=n.redMul(a.redInvm());if(0===s.cmp(this.zero)){if(!t)return this.point(this.zero,e);throw Error("invalid point")}var o=s.redSqrt();if(0!==o.redSqr().redSub(s).cmp(this.zero))throw Error("invalid point");return o.fromRed().isOdd()!==t&&(o=o.redNeg()),this.point(o,e)},c.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},a(f,s.BasePoint),c.prototype.pointFromJSON=function(e){return f.fromJSON(this,e)},c.prototype.point=function(e,t,r,n){return new f(this,e,t,r,n)},f.fromJSON=function(e,t){return new f(e,t[0],t[1],t[2])},f.prototype.inspect=function(){return this.isInfinity()?"":""},f.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},f.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),a=n.redAdd(t),s=a.redSub(r),o=n.redSub(t),c=i.redMul(s),f=a.redMul(o),u=i.redMul(o),d=s.redMul(a);return this.curve.point(c,f,d,u)},f.prototype._projDbl=function(){var e,t,r,n,i,a,s=this.x.redAdd(this.y).redSqr(),o=this.x.redSqr(),c=this.y.redSqr();if(this.curve.twisted){var f=(n=this.curve._mulA(o)).redAdd(c);this.zOne?(e=s.redSub(o).redSub(c).redMul(f.redSub(this.curve.two)),t=f.redMul(n.redSub(c)),r=f.redSqr().redSub(f).redSub(f)):(i=this.z.redSqr(),a=f.redSub(i).redISub(i),e=s.redSub(o).redISub(c).redMul(a),t=f.redMul(n.redSub(c)),r=f.redMul(a))}else n=o.redAdd(c),i=this.curve._mulC(this.z).redSqr(),a=n.redSub(i).redSub(i),e=this.curve._mulC(s.redISub(n)).redMul(a),t=this.curve._mulC(n).redMul(o.redISub(c)),r=n.redMul(a);return this.curve.point(e,t,r)},f.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},f.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),a=r.redSub(t),s=i.redSub(n),o=i.redAdd(n),c=r.redAdd(t),f=a.redMul(s),u=o.redMul(c),d=a.redMul(c),l=s.redMul(o);return this.curve.point(f,u,l,d)},f.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),a=this.x.redMul(e.x),s=this.y.redMul(e.y),o=this.curve.d.redMul(a).redMul(s),c=i.redSub(o),f=i.redAdd(o),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(s),d=n.redMul(c).redMul(u);return this.curve.twisted?(t=n.redMul(f).redMul(s.redSub(this.curve._mulA(a))),r=c.redMul(f)):(t=n.redMul(f).redMul(s.redSub(a)),r=this.curve._mulC(c).redMul(f)),this.curve.point(d,t,r)},f.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},f.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},f.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},f.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},f.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},f.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()},f.prototype.getY=function(){return this.normalize(),this.y.fromRed()},f.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},f.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},f.prototype.toP=f.prototype.normalize,f.prototype.mixedAdd=f.prototype.add},{"7bd66a4710450b08":"3rt5D",ccef46dcf03d45c6:"2gemu","19937272cbe23c92":"cJ2FP","108c8ead5f54502b":"8aa6K"}],kwPzC:[function(e,t,r){"use strict";var n,i=e("1c9db357c0845afa"),a=e("47ec78745540f875"),s=e("e30b16e4a47a5405").assert;function o(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:function(){var n=new o(t);return Object.defineProperty(r,e,{configurable:!0,enumerable:!0,value:n}),n}})}r.PresetCurve=o,c("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:i.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("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:i.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("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:i.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("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:i.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"]}),c("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:i.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"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["9"]}),c("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:i.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=e("9eada5f7049e7dfd")}catch(e){n=void 0}c("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:i.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},{"1c9db357c0845afa":"2Tlxk","47ec78745540f875":"2kHkA",e30b16e4a47a5405:"3rt5D","9eada5f7049e7dfd":"i8FLx"}],i8FLx:[function(e,t,r){t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},{}],eyBGo:[function(e,t,r){"use strict";var n=e("2e69183faf5285a1"),i=e("b0cb641292e4911d"),a=e("eab3e45147b180ba"),s=e("a5ce61d26ce01c4c"),o=e("f6342f89ac472937"),c=a.assert,f=e("eb5ba559e423f6e9"),u=e("7c5e2c76c574ce41");function d(e){if(!(this instanceof d))return new d(e);"string"==typeof e&&(c(Object.prototype.hasOwnProperty.call(s,e),"Unknown curve "+e),e=s[e]),e instanceof s.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}t.exports=d,d.prototype.keyPair=function(e){return new f(this,e)},d.prototype.keyFromPrivate=function(e,t){return f.fromPrivate(this,e,t)},d.prototype.keyFromPublic=function(e,t){return f.fromPublic(this,e,t)},d.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||o(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),a=this.n.sub(new n(2));;){var s=new n(t.generate(r));if(!(s.cmp(a)>0))return s.iaddn(1),this.keyFromPrivate(s)}},d.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},d.prototype.sign=function(e,t,r,a){"object"==typeof r&&(a=r,r=null),a||(a={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var s=this.n.byteLength(),o=t.getPrivate().toArray("be",s),c=e.toArray("be",s),f=new i({hash:this.hash,entropy:o,nonce:c,pers:a.pers,persEnc:a.persEnc||"utf8"}),d=this.n.sub(new n(1)),l=0;;l++){var h=a.k?a.k(l):new n(f.generate(this.n.byteLength()));if(!(0>=(h=this._truncateToN(h,!0)).cmpn(1)||h.cmp(d)>=0)){var p=this.g.mul(h);if(!p.isInfinity()){var m=p.getX(),b=m.umod(this.n);if(0!==b.cmpn(0)){var g=h.invm(this.n).mul(b.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==m.cmp(b)?2:0);return a.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),y^=1),new u({r:b,s:g,recoveryParam:y})}}}}}},d.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var a,s=(t=new u(t,"hex")).r,o=t.s;if(0>s.cmpn(1)||s.cmp(this.n)>=0||0>o.cmpn(1)||o.cmp(this.n)>=0)return!1;var c=o.invm(this.n),f=c.mul(e).umod(this.n),d=c.mul(s).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(f,r.getPublic(),d)).isInfinity()&&a.eqXToP(s):!(a=this.g.mulAdd(f,r.getPublic(),d)).isInfinity()&&0===a.getX().umod(this.n).cmp(s)},d.prototype.recoverPubKey=function(e,t,r,i){c((3&r)===r,"The recovery param is more than two bits"),t=new u(t,i);var a=this.n,s=new n(e),o=t.r,f=t.s,d=1&r,l=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw Error("Unable to find sencond key candinate");o=l?this.curve.pointFromX(o.add(this.curve.n),d):this.curve.pointFromX(o,d);var h=t.r.invm(a),p=a.sub(s).mul(h).umod(a),m=f.mul(h).umod(a);return this.g.mulAdd(p,o,m)},d.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new u(t,n)).recoveryParam)return t.recoveryParam;for(var i,a=0;a<4;a++){try{i=this.recoverPubKey(e,t,a)}catch(e){continue}if(i.eq(r))return a}throw Error("Unable to find valid recovery factor")}},{"2e69183faf5285a1":"2gemu",b0cb641292e4911d:"eo8Xm",eab3e45147b180ba:"3rt5D",a5ce61d26ce01c4c:"kwPzC",f6342f89ac472937:"dpC9B",eb5ba559e423f6e9:"4fq9t","7c5e2c76c574ce41":"5Epmh"}],eo8Xm:[function(e,t,r){"use strict";var n=e("629972fec592198f"),i=e("c20531edfb274a2c"),a=e("43ff1863ab3fce20");function s(e){if(!(this instanceof s))return new s(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=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");a(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}t.exports=s,s.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},s.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var a=[];a.length"}},{"55cc33a33cda153d":"2gemu",bda8b1ff480a7f3:"3rt5D"}],"5Epmh":[function(e,t,r){"use strict";var n=e("a7ae8f0fe39990e7"),i=e("5df7da4811374387"),a=i.assert;function s(e,t){if(e instanceof s)return e;this._importDER(e,t)||(a(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function o(){this.place=0}function c(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 i=0,a=0,s=t.place;a>>=0;return!(i<=127)&&(t.place=s,i)}function f(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)}t.exports=s,s.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new o;if(48!==e[r.place++])return!1;var a=c(e,r);if(!1===a||a+r.place!==e.length||2!==e[r.place++])return!1;var s=c(e,r);if(!1===s)return!1;var f=e.slice(r.place,s+r.place);if(r.place+=s,2!==e[r.place++])return!1;var u=c(e,r);if(!1===u||e.length!==u+r.place)return!1;var d=e.slice(r.place,u+r.place);if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}return this.r=new n(f),this.s=new n(d),this.recoveryParam=null,!0},s.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=f(t),r=f(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];u(n,t.length),(n=n.concat(t)).push(2),u(n,r.length);var a=n.concat(r),s=[48];return u(s,a.length),s=s.concat(a),i.encode(s,e)}},{a7ae8f0fe39990e7:"2gemu","5df7da4811374387":"3rt5D"}],axOwW:[function(e,t,r){"use strict";var n=e("50f9bfa8a484d5d8"),i=e("68956d27442d6321"),a=e("99ec52641eff141d"),s=a.assert,o=a.parseBytes,c=e("2ad2982d76b37f15"),f=e("76c25a1d63d10c1b");function u(e){if(s("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof u))return new u(e);e=i[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}t.exports=u,u.prototype.sign=function(e,t){e=o(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),a=this.encodePoint(i),s=this.hashInt(a,r.pubBytes(),e).mul(r.priv()),c=n.add(s).umod(this.curve.n);return this.makeSignature({R:i,S:c,Rencoded:a})},u.prototype.verify=function(e,t,r){e=o(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),a=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(a)},u.prototype.hashInt=function(){for(var e=this.hash(),t=0;t0&&i[i.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]4294967295)throw RangeError("requested too many random bytes");var r=a.allocUnsafe(e);if(e>0){if(e>65536)for(var n=0;n>>32-t}function f(e,t,r,n,i,a,s){return c(e+(t&r|~t&n)+i+a|0,s)+t|0}function u(e,t,r,n,i,a,s){return c(e+(t&n|r&~n)+i+a|0,s)+t|0}function d(e,t,r,n,i,a,s){return c(e+(t^r^n)+i+a|0,s)+t|0}function l(e,t,r,n,i,a,s){return c(e+(r^(t|~n))+i+a|0,s)+t|0}n(o,i),o.prototype._update=function(){for(var e=0;e<16;++e)s[e]=this._block.readInt32LE(4*e);var t=this._a,r=this._b,n=this._c,i=this._d;t=f(t,r,n,i,s[0],3614090360,7),i=f(i,t,r,n,s[1],3905402710,12),n=f(n,i,t,r,s[2],606105819,17),r=f(r,n,i,t,s[3],3250441966,22),t=f(t,r,n,i,s[4],4118548399,7),i=f(i,t,r,n,s[5],1200080426,12),n=f(n,i,t,r,s[6],2821735955,17),r=f(r,n,i,t,s[7],4249261313,22),t=f(t,r,n,i,s[8],1770035416,7),i=f(i,t,r,n,s[9],2336552879,12),n=f(n,i,t,r,s[10],4294925233,17),r=f(r,n,i,t,s[11],2304563134,22),t=f(t,r,n,i,s[12],1804603682,7),i=f(i,t,r,n,s[13],4254626195,12),n=f(n,i,t,r,s[14],2792965006,17),r=f(r,n,i,t,s[15],1236535329,22),t=u(t,r,n,i,s[1],4129170786,5),i=u(i,t,r,n,s[6],3225465664,9),n=u(n,i,t,r,s[11],643717713,14),r=u(r,n,i,t,s[0],3921069994,20),t=u(t,r,n,i,s[5],3593408605,5),i=u(i,t,r,n,s[10],38016083,9),n=u(n,i,t,r,s[15],3634488961,14),r=u(r,n,i,t,s[4],3889429448,20),t=u(t,r,n,i,s[9],568446438,5),i=u(i,t,r,n,s[14],3275163606,9),n=u(n,i,t,r,s[3],4107603335,14),r=u(r,n,i,t,s[8],1163531501,20),t=u(t,r,n,i,s[13],2850285829,5),i=u(i,t,r,n,s[2],4243563512,9),n=u(n,i,t,r,s[7],1735328473,14),r=u(r,n,i,t,s[12],2368359562,20),t=d(t,r,n,i,s[5],4294588738,4),i=d(i,t,r,n,s[8],2272392833,11),n=d(n,i,t,r,s[11],1839030562,16),r=d(r,n,i,t,s[14],4259657740,23),t=d(t,r,n,i,s[1],2763975236,4),i=d(i,t,r,n,s[4],1272893353,11),n=d(n,i,t,r,s[7],4139469664,16),r=d(r,n,i,t,s[10],3200236656,23),t=d(t,r,n,i,s[13],681279174,4),i=d(i,t,r,n,s[0],3936430074,11),n=d(n,i,t,r,s[3],3572445317,16),r=d(r,n,i,t,s[6],76029189,23),t=d(t,r,n,i,s[9],3654602809,4),i=d(i,t,r,n,s[12],3873151461,11),n=d(n,i,t,r,s[15],530742520,16),r=d(r,n,i,t,s[2],3299628645,23),t=l(t,r,n,i,s[0],4096336452,6),i=l(i,t,r,n,s[7],1126891415,10),n=l(n,i,t,r,s[14],2878612391,15),r=l(r,n,i,t,s[5],4237533241,21),t=l(t,r,n,i,s[12],1700485571,6),i=l(i,t,r,n,s[3],2399980690,10),n=l(n,i,t,r,s[10],4293915773,15),r=l(r,n,i,t,s[1],2240044497,21),t=l(t,r,n,i,s[8],1873313359,6),i=l(i,t,r,n,s[15],4264355552,10),n=l(n,i,t,r,s[6],2734768916,15),r=l(r,n,i,t,s[13],1309151649,21),t=l(t,r,n,i,s[4],4149444226,6),i=l(i,t,r,n,s[11],3174756917,10),n=l(n,i,t,r,s[2],718787259,15),r=l(r,n,i,t,s[9],3951481745,21),this._a=this._a+t|0,this._b=this._b+r|0,this._c=this._c+n|0,this._d=this._d+i|0},o.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=a.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},t.exports=o},{"634114d48656c754":"cJ2FP","4b170874b4cb8d4e":"6UiEZ","72d4e45c6a42a2da":"6CY3D"}],"6UiEZ":[function(e,t,r){"use strict";var n=e("27eaec8a721206a5").Buffer,i=e("c5aab47d8f1d340a").Transform;function a(e){i.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}e("91e9fa68d440541e")(a,i),a.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},a.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},a.prototype.update=function(e,t){if(function(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw Error("Digest already called");n.isBuffer(e)||(e=n.from(e,t));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var a=this._blockOffset;a0;++s)this._length[s]+=o,(o=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*o);return this},a.prototype._update=function(){throw Error("_update is not implemented")},a.prototype.digest=function(e){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},a.prototype._digest=function(){throw Error("_digest is not implemented")},t.exports=a},{"27eaec8a721206a5":"6CY3D",c5aab47d8f1d340a:"1mxOP","91e9fa68d440541e":"cJ2FP"}],"1mxOP":[function(e,t,r){(r=t.exports=e("68bb3bdae87803ec")).Stream=r,r.Readable=r,r.Writable=e("74167f79b688eaf7"),r.Duplex=e("84600f6783428a47"),r.Transform=e("23bee5f697448a0"),r.PassThrough=e("e0ec4b8e438dbbd"),r.finished=e("6cc0f9af7147cdbc"),r.pipeline=e("f90db22d01d3c3d1")},{"68bb3bdae87803ec":"5GpgS","74167f79b688eaf7":"7gwGj","84600f6783428a47":"3r5YV","23bee5f697448a0":"fVIBO",e0ec4b8e438dbbd:"kVosf","6cc0f9af7147cdbc":"10aVq",f90db22d01d3c3d1:"i7EMx"}],"5GpgS":[function(e,t,r){"use strict";var n,i,a,s,o,c=arguments[3],f=e("896ff8d56553f7a");t.exports=x,x.ReadableState=S,e("16782d660ac22e0c").EventEmitter;var u=function(e,t){return e.listeners(t).length},d=e("9a34f23fa53f83f7"),l=e("fb95ecaa88342eae").Buffer,h=(void 0!==c?c:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},p=e("a4a723b7297c7152");i=p&&p.debuglog?p.debuglog("stream"):function(){};var m=e("7a14cc1689b8c63e"),b=e("efa8155386cc4283"),g=e("994c984d08c7bbf2").getHighWaterMark,y=e("8de60461b822641b").codes,v=y.ERR_INVALID_ARG_TYPE,w=y.ERR_STREAM_PUSH_AFTER_EOF,_=y.ERR_METHOD_NOT_IMPLEMENTED,E=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;e("19affa8ce41f090d")(x,d);var A=b.errorOrDestroy,M=["error","close","destroy","pause","resume"];function S(t,r,i){n=n||e("f1c95f846e94e4eb"),t=t||{},"boolean"!=typeof i&&(i=r instanceof n),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=g(this,t,"readableHighWaterMark",i),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(a||(a=e("6392acd10886f115").StringDecoder),this.decoder=new a(t.encoding),this.encoding=t.encoding)}function x(t){if(n=n||e("f1c95f846e94e4eb"),!(this instanceof x))return new x(t);var r=this instanceof n;this._readableState=new S(t,this,r),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),d.call(this)}function T(e,t,r,n,a){i("readableAddChunk",t);var s,o,c,f,u,d=e._readableState;if(null===t)d.reading=!1,function(e,t){if(i("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?I(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,C(e)))}}(e,d);else{if(a||(s=d,o=t,l.isBuffer(o)||o instanceof h||"string"==typeof o||void 0===o||s.objectMode||(c=new v("chunk",["string","Buffer","Uint8Array"],o)),u=c),u)A(e,u);else if(d.objectMode||t&&t.length>0){if("string"==typeof t||d.objectMode||Object.getPrototypeOf(t)===l.prototype||(f=t,t=l.from(f)),n)d.endEmitted?A(e,new E):k(e,d,t,!0);else if(d.ended)A(e,new w);else{if(d.destroyed)return!1;d.reading=!1,d.decoder&&!r?(t=d.decoder.write(t),d.objectMode||0!==t.length?k(e,d,t,!1):P(e,d)):k(e,d,t,!1)}}else n||(d.reading=!1,P(e,d))}return!d.ended&&(d.lengtht.highWaterMark){var r;t.highWaterMark=((r=e)>=1073741824?r=1073741824:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)}return e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)}function I(e){var t=e._readableState;i("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(i("emitReadable",t.flowing),t.emittedReadable=!0,f.nextTick(C,e))}function C(e){var t=e._readableState;i("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,L(e)}function P(e,t){t.readingMore||(t.readingMore=!0,f.nextTick(O,e,t))}function O(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function j(e){i("readable nexttick read 0"),e.read(0)}function B(e,t){i("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),L(e),t.flowing&&!t.reading&&e.read(0)}function L(e){var t=e._readableState;for(i("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function U(e){var t=e._readableState;i("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,f.nextTick(F,t,e))}function F(e,t){if(i("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function q(e,t){for(var r=0,n=e.length;r=r.highWaterMark:r.length>0)||r.ended))return i("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?U(this):I(this),null;if(0===(e=R(e,r))&&r.ended)return 0===r.length&&U(this),null;var a=r.needReadable;return i("need readable",a),(0===r.length||r.length-e0?D(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&U(this)),null!==t&&this.emit("data",t),t},x.prototype._read=function(e){A(this,new _("_read()"))},x.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,i("pipe count=%d opts=%j",n.pipesCount,t);var a=t&&!1===t.end||e===f.stdout||e===f.stderr?m:s;function s(){i("onend"),e.end()}n.endEmitted?f.nextTick(a):r.once("end",a),e.on("unpipe",function t(a,f){i("onunpipe"),a===r&&f&&!1===f.hasUnpiped&&(f.hasUnpiped=!0,i("cleanup"),e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("drain",o),e.removeListener("error",l),e.removeListener("unpipe",t),r.removeListener("end",s),r.removeListener("end",m),r.removeListener("data",d),c=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&o())});var o=function(){var e=r._readableState;i("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&u(r,"data")&&(e.flowing=!0,L(r))};e.on("drain",o);var c=!1;function d(t){i("ondata");var a=e.write(t);i("dest.write",a),!1===a&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==q(n.pipes,e))&&!c&&(i("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function l(t){i("onerror",t),m(),e.removeListener("error",l),0===u(e,"error")&&A(e,t)}function h(){e.removeListener("finish",p),m()}function p(){i("onfinish"),e.removeListener("close",h),m()}function m(){i("unpipe"),r.unpipe(e)}return r.on("data",d),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",l),e.once("close",h),e.once("finish",p),e.emit("pipe",r),n.flowing||(i("pipe resume"),r.resume()),e},x.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,i("on readable",n.length,n.reading),n.length?I(this):n.reading||f.nextTick(j,this)),r},x.prototype.addListener=x.prototype.on,x.prototype.removeListener=function(e,t){var r=d.prototype.removeListener.call(this,e,t);return"readable"===e&&f.nextTick(N,this),r},x.prototype.removeAllListeners=function(e){var t=d.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&f.nextTick(N,this),t},x.prototype.resume=function(){var e=this._readableState;return e.flowing||(i("resume"),e.flowing=!e.readableListening,e.resumeScheduled||(e.resumeScheduled=!0,f.nextTick(B,this,e))),e.paused=!1,this},x.prototype.pause=function(){return i("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(i("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},x.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var a in e.on("end",function(){if(i("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(a){i("wrapped data"),r.decoder&&(a=r.decoder.write(a)),(!r.objectMode||null!=a)&&(r.objectMode||a&&a.length)&&(t.push(a)||(n=!0,e.pause()))}),e)void 0===this[a]&&"function"==typeof e[a]&&(this[a]=function(t){return function(){return e[t].apply(e,arguments)}}(a));for(var s=0;s0&&s.length>i&&!s.warned){s.warned=!0;var i,a,s,o=Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=e,o.type=t,o.count=s.length,console&&console.warn&&console.warn(o)}return e}function l(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=l.bind(n);return i.listener=r,n.wrapFn=i,i}function p(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=Array(e.length),r=0;r0&&(s=t[0]),s instanceof Error)throw s;var s,o=Error("Unhandled error."+(s?" ("+s.message+")":""));throw o.context=s,o}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)a(c,this,t);else for(var f=c.length,u=b(c,f),r=0;r=0;a--)if(r[a]===t||r[a].listener===t){s=r[a].listener,i=a;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return p(this,e,!0)},o.prototype.rawListeners=function(e){return p(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},o.prototype.listenerCount=m,o.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},{}],"8Ppiy":[function(e,t,r){t.exports=e("ed88fc9aa73f911").EventEmitter},{ed88fc9aa73f911:"ikfQ0"}],hhdWi:[function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t,r,n=o.allocUnsafe(e>>>0),i=this.head,a=0;i;)t=i.data,r=a,o.prototype.copy.call(t,n,r),a+=i.data.length,i=i.next;return n}},{key:"consume",value:function(e,t){var r;return ei.length?i.length:e;if(a===i.length?n+=i:n+=i.slice(0,e),0==(e-=a)){a===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),0==(e-=a)){a===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(a));break}++n}return this.length-=n,t}},{key:f,value:function(e,t){return c(this,i(i({},t),{},{depth:0,customInspect:!1}))}}],a(r.prototype,e),t&&a(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}()},{"59f5d0111b7fa075":"2MMCE",eef6a677577349b8:"3eno3"}],cAa69:[function(e,t,r){var n=e("4284522496af5dfb");"use strict";function i(e,t){s(e,t),a(e)}function a(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function s(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var r=this,o=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return o||c?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(s,this,e)):n.nextTick(s,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?r._writableState?r._writableState.errorEmitted?n.nextTick(a,r):(r._writableState.errorEmitted=!0,n.nextTick(i,r,e)):n.nextTick(i,r,e):t?(n.nextTick(a,r),t(e)):n.nextTick(a,r)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},{"4284522496af5dfb":"fg0b3"}],"5eEoF":[function(e,t,r){"use strict";var n=e("4e508d569e2117ef").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,r,i){var a=null!=t.highWaterMark?t.highWaterMark:i?t[r]:null;if(null!=a){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var s=i?r:"highWaterMark";throw new n(s,a)}return Math.floor(a)}return e.objectMode?16:16384}}},{"4e508d569e2117ef":"kdXiL"}],kdXiL:[function(e,t,r){"use strict";var n={};function i(e,t,r){r||(r=Error);var i=function(e){function r(r,n,i){return e.call(this,"string"==typeof t?t:t(r,n,i))||this}return r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e,r}(r);i.prototype.name=r.name,i.prototype.code=e,n[e]=i}function a(e,t){if(!Array.isArray(e))return"of ".concat(t," ").concat(String(e));var r=e.length;return(e=e.map(function(e){return String(e)}),r>2)?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}i("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(e,t,r){if("string"==typeof t&&(n="not ",t.substr(!i||i<0?0:+i,n.length)===n)?(f="must not be",t=t.replace(/^not /,"")):f="must be",s=" argument",(void 0===o||o>e.length)&&(o=e.length),e.substring(o-s.length,o)===s)u="The ".concat(e," ").concat(f," ").concat(a(t,"type"));else{var n,i,s,o,c,f,u,d=("number"!=typeof c&&(c=0),c+1>e.length||-1===e.indexOf(".",c))?"argument":"property";u='The "'.concat(e,'" ').concat(d," ").concat(f," ").concat(a(t,"type"))}return u+". Received type ".concat(typeof r)},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=n},{}],"3r5YV":[function(e,t,r){"use strict";var n=e("2ab1115635c50a9f"),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=u;var a=e("68a7582259cd5865"),s=e("93d042f8bb80078e");e("aa7b11ba5bf4defc")(u,a);for(var o=i(s.prototype),c=0;c-1))throw new E(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(x.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(e,t,r){r(new b("_write()"))},x.prototype._writev=null,x.prototype.end=function(e,t,r){var n,i=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||(n=r,i.ending=!0,P(this,i),n&&(i.finished?s.nextTick(n):this.once("finish",n)),i.ended=!0,this.writable=!1),this},Object.defineProperty(x.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),x.prototype.destroy=l.destroy,x.prototype._undestroy=l.undestroy,x.prototype._destroy=function(e,t){t(e)}},{f05a2a5a09d4d8b0:"fg0b3",dc51171b07b54af1:"eje3w","44a3cc22ec64fcd3":"8Ppiy",de8f7fb7ccda8086:"2MMCE",acf48fb5d9dc6204:"cAa69","9d146cd974da0f53":"5eEoF","3c574b8881abcf86":"kdXiL","10dad555ffe77dde":"cJ2FP",c5e7171d6f58d3c0:"3r5YV"}],eje3w:[function(e,t,r){var n=arguments[3];function i(e){try{if(!n.localStorage)return!1}catch(e){return!1}var t=n.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}t.exports=function(e,t){if(i("noDeprecation"))return e;var r=!1;return function(){if(!r){if(i("throwDeprecation"))throw Error(t);i("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}},{}],"2c7F5":[function(e,t,r){"use strict";var n=e("2a29807c689a070a").Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;switch(this.encoding=function(e){var t=function(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=f,t=4;break;case"utf8":this.fillLast=o,t=4;break;case"base64":this.text=u,this.end=d,t=3;break;default:this.write=l,this.end=h;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function o(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}(this,e,0);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function c(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function f(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function u(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function l(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}r.StringDecoder=a,a.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"2a29807c689a070a":"6CY3D"}],"58qfu":[function(e,t,r){"use strict";var n,i=e("96b869862a96261a");function a(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s=e("745a3cd8f6469ed5"),o=Symbol("lastResolve"),c=Symbol("lastReject"),f=Symbol("error"),u=Symbol("ended"),d=Symbol("lastPromise"),l=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function m(e){var t=e[o];if(null!==t){var r=e[h].read();null!==r&&(e[d]=null,e[o]=null,e[c]=null,t(p(r,!1)))}}function b(e){i.nextTick(m,e)}var g=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((a(n={get stream(){return this[h]},next:function(){var e,t,r=this,n=this[f];if(null!==n)return Promise.reject(n);if(this[u])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise(function(e,t){i.nextTick(function(){r[f]?t(r[f]):e(p(void 0,!0))})});var a=this[d];if(a)t=new Promise((e=this,function(t,r){a.then(function(){if(e[u]){t(p(void 0,!0));return}e[l](t,r)},r)}));else{var s=this[h].read();if(null!==s)return Promise.resolve(p(s,!1));t=new Promise(this[l])}return this[d]=t,t}},Symbol.asyncIterator,function(){return this}),a(n,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){if(e){r(e);return}t(p(void 0,!0))})})}),n),g);t.exports=function(e){var t,r=Object.create(y,(a(t={},h,{value:e,writable:!0}),a(t,o,{value:null,writable:!0}),a(t,c,{value:null,writable:!0}),a(t,f,{value:null,writable:!0}),a(t,u,{value:e._readableState.endEmitted,writable:!0}),a(t,l,{value:function(e,t){var n=r[h].read();n?(r[d]=null,r[o]=null,r[c]=null,e(p(n,!1))):(r[o]=e,r[c]=t)},writable:!0}),t));return r[d]=null,s(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[c];null!==t&&(r[d]=null,r[o]=null,r[c]=null,t(e)),r[f]=e;return}var n=r[o];null!==n&&(r[d]=null,r[o]=null,r[c]=null,n(p(void 0,!0))),r[u]=!0}),e.on("readable",b.bind(null,r)),r}},{"96b869862a96261a":"fg0b3","745a3cd8f6469ed5":"10aVq"}],"10aVq":[function(e,t,r){"use strict";var n=e("d35458f585bdd360").codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function e(t,r,a){if("function"==typeof r)return e(t,null,r);r||(r={}),s=a||i,o=!1,a=function(){if(!o){o=!0;for(var e=arguments.length,t=Array(e),r=0;r0},function(e){if(e)return a(e);d=!0,a()}),p=!1,function(e){if(!d&&!p){if(p=!0,t.setHeader&&"function"==typeof t.abort)return t.abort();if("function"==typeof t.destroy)return t.destroy();a(e||new s("pipe"))}}});return u.reduce(f)}},{"6ba21bd580ac7d57":"kdXiL",dd7fd89dd81b8674:"10aVq"}],f4Xy3:[function(e,t,r){"use strict";var n=e("c813c8075bcf823e").Buffer,i=e("84928993e7c3934b"),a=e("4b3519823770a56d"),s=Array(16),o=[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],c=[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],f=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],u=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];function d(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function l(e,t){return e<>>32-t}i(d,a),d.prototype._update=function(){for(var e,t,r,n,i,a,d,h,p,m,b,g,y,v,w,_,E,A,M,S,x,T,k,R,I,C,P,O,N,j,B,L,D,U,F,q,z,K,H,V,W,G,J,Z,$,X,Y,Q,ee,et,er,en,ei,ea,es,eo,ec,ef,eu,ed,el,eh,ep,em,eb,eg,ey,ev,ew,e_,eE,eA,eM=0;eM<16;++eM)s[eM]=this._block.readInt32LE(4*eM);for(var eS=0|this._a,ex=0|this._b,eT=0|this._c,ek=0|this._d,eR=0|this._e,eI=0|this._a,eC=0|this._b,eP=0|this._c,eO=0|this._d,eN=0|this._e,ej=0;ej<80;ej+=1)ej<16?(e=eS,t=ex,r=eT,n=ek,i=eR,eE=l(e+(t^r^n)+s[o[ej]]+0|0,f[ej])+i|0,h=eI,p=eC,m=eP,b=eO,g=eN,eA=l(h+(p^(m|~b))+s[c[ej]]+1352829926|0,u[ej])+g|0):ej<32?(w=eS,_=ex,E=eT,A=ek,M=eR,eE=l(w+(_&E|~_&A)+s[o[ej]]+1518500249|0,f[ej])+M|0,T=eI,k=eC,R=eP,I=eO,C=eN,eA=l(T+(k&I|R&~I)+s[c[ej]]+1548603684|0,u[ej])+C|0):ej<48?(N=eS,j=ex,B=eT,L=ek,D=eR,eE=l(N+((j|~B)^L)+s[o[ej]]+1859775393|0,f[ej])+D|0,q=eI,z=eC,K=eP,H=eO,V=eN,eA=l(q+((z|~K)^H)+s[c[ej]]+1836072691|0,u[ej])+V|0):ej<64?(J=eS,Z=ex,$=eT,X=ek,Y=eR,eE=l(J+(Z&X|$&~X)+s[o[ej]]+2400959708|0,f[ej])+Y|0,et=eI,er=eC,en=eP,ei=eO,ea=eN,eA=l(et+(er&en|~er&ei)+s[c[ej]]+2053994217|0,u[ej])+ea|0):(ec=eS,ef=ex,eu=eT,ed=ek,el=eR,eE=l(ec+(ef^(eu|~ed))+s[o[ej]]+2840853838|0,f[ej])+el|0,em=eI,eb=eC,eg=eP,ey=eO,ev=eN,eA=l(em+(eb^eg^ey)+s[c[ej]]+0|0,u[ej])+ev|0),eS=eR,eR=ek,ek=l(eT,10),eT=ex,ex=eE,eI=eN,eN=eO,eO=l(eP,10),eP=eC,eC=eA;var eB=this._b+eT+eO|0;this._b=this._c+ek+eN|0,this._c=this._d+eR+eI|0,this._d=this._e+eS+eC|0,this._e=this._a+ex+eP|0,this._a=eB},d.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},t.exports=d},{c813c8075bcf823e:"2MMCE","84928993e7c3934b":"cJ2FP","4b3519823770a56d":"6UiEZ"}],iSJqK:[function(e,t,r){var r=t.exports=function(e){var t=r[e=e.toLowerCase()];if(!t)throw Error(e+" is not supported (we accept pull requests)");return new t};r.sha=e("54c9313943368ce2"),r.sha1=e("6e6f42e0b6fe29ef"),r.sha224=e("cefe70c6f9f68940"),r.sha256=e("3b4e2aa73bc3fef5"),r.sha384=e("be7da8b8e5a0fd78"),r.sha512=e("25610a4ba83316a4")},{"54c9313943368ce2":"2PzCn","6e6f42e0b6fe29ef":"2txF6",cefe70c6f9f68940:"6cViI","3b4e2aa73bc3fef5":"4sfnu",be7da8b8e5a0fd78:"dDC3d","25610a4ba83316a4":"6zg8a"}],"2PzCn":[function(e,t,r){var n=e("55404b425acd1c6f"),i=e("457bc9c7737d761f"),a=e("44759e57eb2992a").Buffer,s=[1518500249,1859775393,-1894007588,-899497514],o=Array(80);function c(){this.init(),this._w=o,i.call(this,64,56)}n(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,a=0|this._d,o=0|this._e,c=0;c<16;++c)t[c]=e.readInt32BE(4*c);for(;c<80;++c)t[c]=t[c-3]^t[c-8]^t[c-14]^t[c-16];for(var f=0;f<80;++f){var u,d,l,h,p,m=~~(f/20),b=((u=r)<<5|u>>>27)+(d=n,l=i,h=a,0===m?d&l|~d&h:2===m?d&l|d&h|l&h:d^l^h)+o+t[f]+s[m]|0;o=a,a=i,i=(p=n)<<30|p>>>2,n=r,r=b}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0},c.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=c},{"55404b425acd1c6f":"cJ2FP","457bc9c7737d761f":"iI2Xg","44759e57eb2992a":"6CY3D"}],iI2Xg:[function(e,t,r){var n=e("fe67468afd3c1b91").Buffer;function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=n.from(e,t));for(var r=this._block,i=this._blockSize,a=e.length,s=this._len,o=0;o=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a},i.prototype._update=function(){throw Error("_update must be implemented by subclass")},t.exports=i},{fe67468afd3c1b91:"6CY3D"}],"2txF6":[function(e,t,r){var n=e("bf0dcaa2121c06d3"),i=e("788f05b1f9753762"),a=e("ee7c2a3e649d259f").Buffer,s=[1518500249,1859775393,-1894007588,-899497514],o=Array(80);function c(){this.init(),this._w=o,i.call(this,64,56)}n(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,a=0|this._d,o=0|this._e,c=0;c<16;++c)t[c]=e.readInt32BE(4*c);for(;c<80;++c)t[c]=(u=t[c-3]^t[c-8]^t[c-14]^t[c-16])<<1|u>>>31;for(var f=0;f<80;++f){var u,d,l,h,p,m,b=~~(f/20),g=((d=r)<<5|d>>>27)+(l=n,h=i,p=a,0===b?l&h|~l&p:2===b?l&h|l&p|h&p:l^h^p)+o+t[f]+s[b]|0;o=a,a=i,i=(m=n)<<30|m>>>2,n=r,r=g}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0},c.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=c},{bf0dcaa2121c06d3:"cJ2FP","788f05b1f9753762":"iI2Xg",ee7c2a3e649d259f:"6CY3D"}],"6cViI":[function(e,t,r){var n=e("1759318dd61b32af"),i=e("5a24a8ff4dc414f6"),a=e("377596dd27739a66"),s=e("381289f917f16a20").Buffer,o=Array(64);function c(){this.init(),this._w=o,a.call(this,64,56)}n(c,i),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var e=s.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},t.exports=c},{"1759318dd61b32af":"cJ2FP","5a24a8ff4dc414f6":"4sfnu","377596dd27739a66":"iI2Xg","381289f917f16a20":"6CY3D"}],"4sfnu":[function(e,t,r){var n=e("682a6716eeab42dd"),i=e("f062bd789841a9ce"),a=e("1d47643a8adb8c1b").Buffer,s=[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=Array(64);function c(){this.init(),this._w=o,i.call(this,64,56)}n(c,i),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,a=0|this._d,o=0|this._e,c=0|this._f,f=0|this._g,u=0|this._h,d=0;d<16;++d)t[d]=e.readInt32BE(4*d);for(;d<64;++d)t[d]=(((h=t[d-2])>>>17|h<<15)^(h>>>19|h<<13)^h>>>10)+t[d-7]+(((p=t[d-15])>>>7|p<<25)^(p>>>18|p<<14)^p>>>3)+t[d-16]|0;for(var l=0;l<64;++l){var h,p,m,b,g,y,v,w,_,E=u+(((m=o)>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(b=o,g=c,(y=f)^b&(g^y))+s[l]+t[l]|0,A=(((v=r)>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10))+((w=r)&(_=n)|i&(w|_))|0;u=f,f=c,c=o,o=a+E|0,a=i,i=n,n=r,r=E+A|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0,this._f=c+this._f|0,this._g=f+this._g|0,this._h=u+this._h|0},c.prototype._hash=function(){var e=a.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},t.exports=c},{"682a6716eeab42dd":"cJ2FP",f062bd789841a9ce:"iI2Xg","1d47643a8adb8c1b":"6CY3D"}],dDC3d:[function(e,t,r){var n=e("2a5cbb73fedd61b"),i=e("fdb4d0946b31cdb5"),a=e("50aa04d4bd2df0e1"),s=e("3d3bcc84ec383b74").Buffer,o=Array(160);function c(){this.init(),this._w=o,a.call(this,128,112)}n(c,i),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var e=s.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},t.exports=c},{"2a5cbb73fedd61b":"cJ2FP",fdb4d0946b31cdb5:"6zg8a","50aa04d4bd2df0e1":"iI2Xg","3d3bcc84ec383b74":"6CY3D"}],"6zg8a":[function(e,t,r){var n=e("8d87c82d5ce5743"),i=e("27d0146c4419ba93"),a=e("602d9c7256ca6bf7").Buffer,s=[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],o=Array(160);function c(){this.init(),this._w=o,i.call(this,128,112)}function f(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function u(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function d(e,t){return e>>>0>>0?1:0}n(c,i),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,a=0|this._dh,o=0|this._eh,c=0|this._fh,l=0|this._gh,h=0|this._hh,p=0|this._al,m=0|this._bl,b=0|this._cl,g=0|this._dl,y=0|this._el,v=0|this._fl,w=0|this._gl,_=0|this._hl,E=0;E<32;E+=2)t[E]=e.readInt32BE(4*E),t[E+1]=e.readInt32BE(4*E+4);for(;E<160;E+=2){var A,M,S,x,T,k,R,I,C=t[E-30],P=t[E-30+1],O=((A=C)>>>1|(M=P)<<31)^(A>>>8|M<<24)^A>>>7,N=((S=P)>>>1|(x=C)<<31)^(S>>>8|x<<24)^(S>>>7|x<<25);C=t[E-4],P=t[E-4+1];var j=((T=C)>>>19|(k=P)<<13)^(k>>>29|T<<3)^T>>>6,B=((R=P)>>>19|(I=C)<<13)^(I>>>29|R<<3)^(R>>>6|I<<26),L=t[E-14],D=t[E-14+1],U=t[E-32],F=t[E-32+1],q=N+D|0,z=O+L+d(q,N)|0;z=(z=z+j+d(q=q+B|0,B)|0)+U+d(q=q+F|0,F)|0,t[E]=z,t[E+1]=q}for(var K=0;K<160;K+=2){z=t[K],q=t[K+1];var H,V,W,G,J,Z,$,X,Y,Q,ee=(H=r)&(V=n)|i&(H|V),et=(W=p)&(G=m)|b&(W|G),er=f(r,p),en=f(p,r),ei=u(o,y),ea=u(y,o),es=s[K],eo=s[K+1],ec=(J=o,Z=c,($=l)^J&(Z^$)),ef=(X=y,Y=v,(Q=w)^X&(Y^Q)),eu=_+ea|0,ed=h+ei+d(eu,_)|0;ed=(ed=(ed=ed+ec+d(eu=eu+ef|0,ef)|0)+es+d(eu=eu+eo|0,eo)|0)+z+d(eu=eu+q|0,q)|0;var el=en+et|0,eh=er+ee+d(el,en)|0;h=l,_=w,l=c,w=v,c=o,v=y,o=a+ed+d(y=g+eu|0,g)|0,a=i,g=b,i=n,b=m,n=r,m=p,r=ed+eh+d(p=eu+el|0,eu)|0}this._al=this._al+p|0,this._bl=this._bl+m|0,this._cl=this._cl+b|0,this._dl=this._dl+g|0,this._el=this._el+y|0,this._fl=this._fl+v|0,this._gl=this._gl+w|0,this._hl=this._hl+_|0,this._ah=this._ah+r+d(this._al,p)|0,this._bh=this._bh+n+d(this._bl,m)|0,this._ch=this._ch+i+d(this._cl,b)|0,this._dh=this._dh+a+d(this._dl,g)|0,this._eh=this._eh+o+d(this._el,y)|0,this._fh=this._fh+c+d(this._fl,v)|0,this._gh=this._gh+l+d(this._gl,w)|0,this._hh=this._hh+h+d(this._hl,_)|0},c.prototype._hash=function(){var e=a.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},t.exports=c},{"8d87c82d5ce5743":"cJ2FP","27d0146c4419ba93":"iI2Xg","602d9c7256ca6bf7":"6CY3D"}],"2sGTM":[function(e,t,r){var n=e("631f7eb12d35b579").Buffer,i=e("5b378a2a05398c5").Transform,a=e("d42da7de127e1c4b").StringDecoder;function s(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}e("7a0f2f27fe0a389b")(s,i),s.prototype.update=function(e,t,r){"string"==typeof e&&(e=n.from(e,t));var i=this._update(e);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw Error("trying to set aad in unsupported state")},s.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},s.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},s.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},s.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new a(t),this._encoding=t),this._encoding!==t)throw Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},t.exports=s},{"631f7eb12d35b579":"6CY3D","5b378a2a05398c5":"8ILAD",d42da7de127e1c4b:"2c7F5","7a0f2f27fe0a389b":"cJ2FP"}],"8ILAD":[function(e,t,r){t.exports=i;var n=e("96b62835346f84f0").EventEmitter;function i(){n.call(this)}e("4a6ee9586f51c38d")(i,n),i.Readable=e("e6206e1f4d20abc7"),i.Writable=e("a3f1405f37e1dfb1"),i.Duplex=e("6691a72c5fc222fd"),i.Transform=e("43a905ce7ec6ac9e"),i.PassThrough=e("dd715550d7783885"),i.finished=e("d90a3520974ec96e"),i.pipeline=e("eb2779cfd287c5c9"),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function a(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",a),e._isStdio||t&&!1===t.end||(r.on("end",o),r.on("close",c));var s=!1;function o(){s||(s=!0,e.end())}function c(){s||(s=!0,"function"==typeof e.destroy&&e.destroy())}function f(e){if(u(),0===n.listenerCount(this,"error"))throw e}function u(){r.removeListener("data",i),e.removeListener("drain",a),r.removeListener("end",o),r.removeListener("close",c),r.removeListener("error",f),e.removeListener("error",f),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("error",f),e.on("error",f),r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e}},{"96b62835346f84f0":"ikfQ0","4a6ee9586f51c38d":"cJ2FP",e6206e1f4d20abc7:"5GpgS",a3f1405f37e1dfb1:"7gwGj","6691a72c5fc222fd":"3r5YV","43a905ce7ec6ac9e":"fVIBO",dd715550d7783885:"kVosf",d90a3520974ec96e:"10aVq",eb2779cfd287c5c9:"i7EMx"}],gCyFN:[function(e,t,r){"use strict";var n=e("6a73c7c8ca6b61fa"),i=e("e1b443c27c833bc0"),a=e("7571755cc57fd60e"),s=e("b8ba1339feab1938").Buffer,o=e("c00fb3fd28cadeb2"),c=e("b7f8eae556813ec1"),f=e("40c5a912778271f7"),u=s.alloc(128);function d(e,t){a.call(this,"digest"),"string"==typeof t&&(t=s.from(t));var r="sha512"===e||"sha384"===e?128:64;this._alg=e,this._key=t,t.length>r?t=("rmd160"===e?new c:f(e)).update(t).digest():t.length64?t=e(t):t.length<64&&(t=i.concat([t,s],64));for(var r=this._ipad=i.allocUnsafe(64),n=this._opad=i.allocUnsafe(64),o=0;o<64;o++)r[o]=54^t[o],n[o]=92^t[o];this._hash=[r]}n(o,a),o.prototype._update=function(e){this._hash.push(e)},o.prototype._final=function(){var e=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,e]))},t.exports=o},{"2baf2864ece10f11":"cJ2FP",c7fb5e22d675c53c:"6CY3D","8fdec7d6b96329ea":"2sGTM"}],kJcWJ:[function(e,t,r){var n=e("f07cc93582c49804");t.exports=function(e){return new n().update(e).digest()}},{f07cc93582c49804:"itRd4"}],c6IbM:[function(e,t,r){t.exports=e("b6a65ebe2480cb5a")},{b6a65ebe2480cb5a:"6fwWv"}],"6fwWv":[function(e,t,r){t.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},{}],lsc2y:[function(e,t,r){r.pbkdf2=e("50310b85983e4f32"),r.pbkdf2Sync=e("5f7b0df9c2ef196d")},{"50310b85983e4f32":"lNDNg","5f7b0df9c2ef196d":"8Fput"}],lNDNg:[function(e,t,r){var n,i,a=arguments[3],s=e("a1f6b66eddae53e0").Buffer,o=e("a915fb954a5b62ac"),c=e("76b8747fb257c65c"),f=e("f6f43e3eaadd9ae9"),u=e("d12cab846fc3f945"),d=a.crypto&&a.crypto.subtle,l={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},h=[];function p(){return i||(i=a.process&&a.process.nextTick?a.process.nextTick:a.queueMicrotask?a.queueMicrotask:a.setImmediate?a.setImmediate:a.setTimeout)}function m(e,t,r,n,i){return d.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return d.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:i}},e,n<<3)}).then(function(e){return s.from(e)})}t.exports=function(e,t,r,i,b,g){"function"==typeof b&&(g=b,b=void 0);var y=l[(b=b||"sha1").toLowerCase()];if(!y||"function"!=typeof a.Promise){p()(function(){var n;try{n=f(e,t,r,i,b)}catch(e){return g(e)}g(null,n)});return}if(o(r,i),e=u(e,c,"Password"),t=u(t,c,"Salt"),"function"!=typeof g)throw Error("No callback provided to pbkdf2");!function(e,t){e.then(function(e){p()(function(){t(null,e)})},function(e){p()(function(){t(e)})})}((function(e){if(a.process&&!a.process.browser||!d||!d.importKey||!d.deriveBits)return Promise.resolve(!1);if(void 0!==h[e])return h[e];var t=m(n=n||s.alloc(8),n,10,128,e).then(function(){return!0}).catch(function(){return!1});return h[e]=t,t})(y).then(function(n){return n?m(e,t,r,i,y):f(e,t,r,i,b)}),g)}},{a1f6b66eddae53e0:"6CY3D",a915fb954a5b62ac:"iRtZ5","76b8747fb257c65c":"4na3y",f6f43e3eaadd9ae9:"8Fput",d12cab846fc3f945:"hObHx"}],iRtZ5:[function(e,t,r){t.exports=function(e,t){if("number"!=typeof e)throw TypeError("Iterations not a number");if(e<0)throw TypeError("Bad iterations");if("number"!=typeof t)throw TypeError("Key length not a number");if(t<0||t>1073741823||t!=t)throw TypeError("Bad key length")}},{}],"4na3y":[function(e,t,r){var n,i=arguments[3],a=e("6b9fe6b7a0bbf941");n=i.process&&i.process.browser?"utf-8":i.process&&i.process.version?parseInt(a.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",t.exports=n},{"6b9fe6b7a0bbf941":"fg0b3"}],"8Fput":[function(e,t,r){var n=e("1e04e1c2d51cd13d"),i=e("42015ac33af139f8"),a=e("a7eb8e83614997ca"),s=e("290c92d9373f664d").Buffer,o=e("1b04775c4713da3d"),c=e("b290a762e8475e9f"),f=e("82c0eccfe5526b2c"),u=s.alloc(128),d={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function l(e,t,r){var o="rmd160"===e||"ripemd160"===e?function(e){return new i().update(e).digest()}:"md5"===e?n:function(t){return a(e).update(t).digest()},c="sha512"===e||"sha384"===e?128:64;t.length>c?t=o(t):t.length>>0},r.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},r.ip=function(e,t,r,n){for(var i=0,a=0,s=6;s>=0;s-=2){for(var o=0;o<=24;o+=8)i<<=1,i|=t>>>o+s&1;for(var o=0;o<=24;o+=8)i<<=1,i|=e>>>o+s&1}for(var s=6;s>=0;s-=2){for(var o=1;o<=25;o+=8)a<<=1,a|=t>>>o+s&1;for(var o=1;o<=25;o+=8)a<<=1,a|=e>>>o+s&1}r[n+0]=i>>>0,r[n+1]=a>>>0},r.rip=function(e,t,r,n){for(var i=0,a=0,s=0;s<4;s++)for(var o=24;o>=0;o-=8)i<<=1,i|=t>>>o+s&1,i<<=1,i|=e>>>o+s&1;for(var s=4;s<8;s++)for(var o=24;o>=0;o-=8)a<<=1,a|=t>>>o+s&1,a<<=1,a|=e>>>o+s&1;r[n+0]=i>>>0,r[n+1]=a>>>0},r.pc1=function(e,t,r,n){for(var i=0,a=0,s=7;s>=5;s--){for(var o=0;o<=24;o+=8)i<<=1,i|=t>>o+s&1;for(var o=0;o<=24;o+=8)i<<=1,i|=e>>o+s&1}for(var o=0;o<=24;o+=8)i<<=1,i|=t>>o+s&1;for(var s=1;s<=3;s++){for(var o=0;o<=24;o+=8)a<<=1,a|=t>>o+s&1;for(var o=0;o<=24;o+=8)a<<=1,a|=e>>o+s&1}for(var o=0;o<=24;o+=8)a<<=1,a|=e>>o+s&1;r[n+0]=i>>>0,r[n+1]=a>>>0},r.r28shl=function(e,t){return e<>>28-t};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];r.pc2=function(e,t,r,i){for(var a=0,s=0,o=n.length>>>1,c=0;c>>n[c]&1;for(var c=o;c>>n[c]&1;r[i+0]=a>>>0,r[i+1]=s>>>0},r.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var a=23;a>=15;a-=4)n<<=6,n|=e>>>a&63;for(var a=11;a>=3;a-=4)i|=e>>>a&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];r.substitute=function(e,t){for(var r=0,n=0;n<4;n++){var a=e>>>18-6*n&63,s=i[64*n+a];r<<=4,r|=s}for(var n=0;n<4;n++){var a=t>>>18-6*n&63,s=i[256+64*n+a];r<<=4,r|=s}return r>>>0};var a=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];r.permute=function(e){for(var t=0,r=0;r>>a[r]&1;return t>>>0},r.padSplit=function(e,t,r){for(var n=e.toString(2);n.length0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,r;return(e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t)?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t>>1];r=a.r28shl(r,o),i=a.r28shl(i,o),a.pc2(r,i,e.keys,s)}},c.prototype._update=function(e,t,r,n){var i=this._desState,s=a.readUInt32BE(e,t),o=a.readUInt32BE(e,t+4);a.ip(s,o,i.tmp,0),s=i.tmp[0],o=i.tmp[1],"encrypt"===this.type?this._encrypt(i,s,o,i.tmp,0):this._decrypt(i,s,o,i.tmp,0),s=i.tmp[0],o=i.tmp[1],a.writeUInt32BE(r,s,n),a.writeUInt32BE(r,o,n+4)},c.prototype._pad=function(e,t){if(!1===this.padding)return!1;for(var r=e.length-t,n=t;n>>0,s=h}a.rip(o,s,n,i)},c.prototype._decrypt=function(e,t,r,n,i){for(var s=r,o=t,c=e.keys.length-2;c>=0;c-=2){var f=e.keys[c],u=e.keys[c+1];a.expand(s,e.tmp,0),f^=e.tmp[0],u^=e.tmp[1];var d=a.substitute(f,u),l=a.permute(d),h=s;s=(o^l)>>>0,o=h}a.rip(s,o,n,i)}},{"2e43e10aa2de50ed":"h59lk","551480b8aa09d318":"cJ2FP",b6dc5b7926f5a82f:"jAhm7","38547d2f1967e2cd":"5eHfG"}],esso5:[function(e,t,r){"use strict";var n=e("63ac301527fc117b"),i=e("7d48f4d3d39d3b86"),a={};function s(e){n.equal(e.length,8,"Invalid IV length"),this.iv=Array(8);for(var t=0;t15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},l.prototype.flush=function(){for(var e=16-this.cache.length,t=a.allocUnsafe(e),r=-1;++r>o%8,e._prev=function(e,t){var r=e.length,i=-1,a=n.allocUnsafe(e.length);for(e=n.concat([e,n.from([t])]);++i>7;return a}(e._prev,r?a:s);return c}(e,t[s],r);return a}},{"5eb46e1eefd15734":"6CY3D"}],"5U0Aq":[function(e,t,r){var n=e("b3ff65e516d49ef1").Buffer,i=e("7f0c2ff10cf58835");r.encrypt=function(e,t){for(;e._cache.length>>24]^u[p>>>16&255]^d[m>>>8&255]^l[255&b]^t[g++],s=f[p>>>24]^u[m>>>16&255]^d[b>>>8&255]^l[255&h]^t[g++],o=f[m>>>24]^u[b>>>16&255]^d[h>>>8&255]^l[255&p]^t[g++],c=f[b>>>24]^u[h>>>16&255]^d[p>>>8&255]^l[255&m]^t[g++],h=a,p=s,m=o,b=c;return a=(n[h>>>24]<<24|n[p>>>16&255]<<16|n[m>>>8&255]<<8|n[255&b])^t[g++],s=(n[p>>>24]<<24|n[m>>>16&255]<<16|n[b>>>8&255]<<8|n[255&h])^t[g++],[a>>>=0,s>>>=0,o=((n[m>>>24]<<24|n[b>>>16&255]<<16|n[h>>>8&255]<<8|n[255&p])^t[g++])>>>0,c=((n[b>>>24]<<24|n[h>>>16&255]<<16|n[p>>>8&255]<<8|n[255&m])^t[g++])>>>0]}var o=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var e=Array(256),t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],a=[[],[],[],[]],s=0,o=0,c=0;c<256;++c){var f=o^o<<1^o<<2^o<<3^o<<4;f=f>>>8^255&f^99,r[s]=f,n[f]=s;var u=e[s],d=e[u],l=e[d],h=257*e[f]^16843008*f;i[0][s]=h<<24|h>>>8,i[1][s]=h<<16|h>>>16,i[2][s]=h<<8|h>>>24,i[3][s]=h,h=16843009*l^65537*d^257*u^16843008*s,a[0][f]=h<<24|h>>>8,a[1][f]=h<<16|h>>>16,a[2][f]=h<<8|h>>>24,a[3][f]=h,0===s?s=o=1:(s=u^e[e[e[l^u]]],o^=e[e[o]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:a}}();function f(e){this._key=i(e),this._reset()}f.blockSize=16,f.keySize=32,f.prototype.blockSize=f.blockSize,f.prototype.keySize=f.keySize,f.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=(r+1)*4,i=[],a=0;a>>24,s=(c.SBOX[s>>>24]<<24|c.SBOX[s>>>16&255]<<16|c.SBOX[s>>>8&255]<<8|c.SBOX[255&s])^o[a/t|0]<<24):t>6&&a%t==4&&(s=c.SBOX[s>>>24]<<24|c.SBOX[s>>>16&255]<<16|c.SBOX[s>>>8&255]<<8|c.SBOX[255&s]),i[a]=i[a-t]^s}for(var f=[],u=0;u>>24]]^c.INV_SUB_MIX[1][c.SBOX[l>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[l>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&l]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=f},f.prototype.encryptBlockRaw=function(e){return s(e=i(e),this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},f.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},f.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var r=s(e,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),a=n.allocUnsafe(16);return a.writeUInt32BE(r[0],0),a.writeUInt32BE(r[3],4),a.writeUInt32BE(r[2],8),a.writeUInt32BE(r[1],12),a},f.prototype.scrub=function(){a(this._keySchedule),a(this._invKeySchedule),a(this._key)},t.exports.AES=f},{"9c4f04f75f375be":"6CY3D"}],kfA0b:[function(e,t,r){var n=e("815beeecbe039d1a").Buffer,i=n.alloc(16,0);function a(e){var t=n.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function s(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}s.prototype.ghash=function(e){for(var t=-1;++t0;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=-520093696^n[0])}this.state=a(i)},s.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},s.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(a([0,e,0,t])),this.state},t.exports=s},{"815beeecbe039d1a":"6CY3D"}],"3gyL0":[function(e,t,r){var n=e("499d62308d7dac40"),i=e("bc4a1f7113303d58").Buffer,a=e("e701745abb80bc49");function s(e,t,r,s){a.call(this),this._cipher=new n.AES(t),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=s,this._mode=e}e("3765f10ec3d7a831")(s,a),s.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},s.prototype._final=function(){this._cipher.scrub()},t.exports=s},{"499d62308d7dac40":"f9w0b",bc4a1f7113303d58:"6CY3D",e701745abb80bc49:"2sGTM","3765f10ec3d7a831":"cJ2FP"}],hNNhz:[function(e,t,r){var n=e("adb33291e0f9c65a").Buffer,i=e("15f984dc9e3797d9");t.exports=function(e,t,r,a){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw RangeError("salt should be Buffer with 8 byte length");for(var s=r/8,o=n.alloc(s),c=n.alloc(a||0),f=n.alloc(0);s>0||a>0;){var u=new i;u.update(f),u.update(e),t&&u.update(t),f=u.digest();var d=0;if(s>0){var l=o.length-s;d=Math.min(s,f.length),f.copy(o,l,0,d),s-=d}if(d0){var h=c.length-a,p=Math.min(a,f.length-d);f.copy(c,h,d,d+p),a-=p}}return f.fill(0),{key:o,iv:c}}},{adb33291e0f9c65a:"6CY3D","15f984dc9e3797d9":"itRd4"}],aeVam:[function(e,t,r){var n=e("2f5914bdcee0aab2"),i=e("2eedc5cbfd1eafeb").Buffer,a=e("2b861a45e2a2d1fe"),s=e("54b6d333d74ae9c8"),o=e("4b438dd1327af64e"),c=e("928aea47daff81dc"),f=e("25542df8da1646fe");function u(e,t,r){o.call(this),this._cache=new d,this._last=void 0,this._cipher=new c.AES(t),this._prev=i.from(r),this._mode=e,this._autopadding=!0}function d(){this.cache=i.allocUnsafe(0)}function l(e,t,r){var o=a[e.toLowerCase()];if(!o)throw TypeError("invalid suite type");if("string"==typeof r&&(r=i.from(r)),"GCM"!==o.mode&&r.length!==o.iv)throw TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=i.from(t)),t.length!==o.key/8)throw TypeError("invalid key length "+t.length);return"stream"===o.type?new s(o.module,t,r,!0):"auth"===o.type?new n(o.module,t,r,!0):new u(o.module,t,r)}e("153b885d89d2089e")(u,o),u.prototype._update=function(e){this._cache.add(e);for(var t,r,n=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),n.push(r);return i.concat(n)},u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw Error("unable to decrypt data");for(var r=-1;++r16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},d.prototype.flush=function(){if(this.cache.length)return this.cache},r.createDecipher=function(e,t){var r=a[e.toLowerCase()];if(!r)throw TypeError("invalid suite type");var n=f(t,!1,r.key,r.iv);return l(e,n.key,n.iv)},r.createDecipheriv=l},{"2f5914bdcee0aab2":"5L2GD","2eedc5cbfd1eafeb":"6CY3D","2b861a45e2a2d1fe":"XLBUv","54b6d333d74ae9c8":"3gyL0","4b438dd1327af64e":"2sGTM","928aea47daff81dc":"f9w0b","25542df8da1646fe":"hNNhz","153b885d89d2089e":"cJ2FP"}],PVMme:[function(e,t,r){r["des-ecb"]={key:8,iv:0},r["des-cbc"]=r.des={key:8,iv:8},r["des-ede3-cbc"]=r.des3={key:24,iv:8},r["des-ede3"]={key:24,iv:0},r["des-ede-cbc"]={key:16,iv:8},r["des-ede"]={key:16,iv:0}},{}],CQhDB:[function(e,t,r){var n=e("55a084ce1a29baa3").Buffer,i=e("5ed99cf028c947ad"),a=e("8da23ed5d7edf952"),s=e("981b8db942febaf3"),o={binary:!0,hex:!0,base64:!0};r.DiffieHellmanGroup=r.createDiffieHellmanGroup=r.getDiffieHellman=function(e){var t=new n(a[e].prime,"hex"),r=new n(a[e].gen,"hex");return new s(t,r)},r.createDiffieHellman=r.DiffieHellman=function e(t,r,a,c){return n.isBuffer(r)||void 0===o[r]?e(t,"binary",r,a):(r=r||"binary",c=c||"binary",a=a||new n([2]),n.isBuffer(a)||(a=new n(a,c)),"number"==typeof t)?new s(i(t,a),a,!0):(n.isBuffer(t)||(t=new n(t,r)),new s(t,a,!0))}},{"55a084ce1a29baa3":"2MMCE","5ed99cf028c947ad":"jJXBy","8da23ed5d7edf952":"4r6A7","981b8db942febaf3":"jpk3A"}],jJXBy:[function(e,t,r){var n=e("e11b752ebf414e01");t.exports=g,g.simpleSieve=m,g.fermatTest=b;var i=e("6139735ee181267b"),a=new i(24),s=new(e("7b3f73f9ab7b2b6a")),o=new i(1),c=new i(2),f=new i(5);new i(16),new i(8);var u=new i(10),d=new i(3);new i(7);var l=new i(11),h=new i(4);new i(12);var p=null;function m(e){for(var t=function(){if(null!==p)return p;var e=[];e[0]=2;for(var t=1,r=3;r<1048576;r+=2){for(var n=Math.ceil(Math.sqrt(r)),i=0;ie;)r.ishrn(1);if(r.isEven()&&r.iadd(o),r.testn(1)||r.iadd(c),t.cmp(c)){if(!t.cmp(f))for(;r.mod(u).cmp(d);)r.iadd(h)}else for(;r.mod(a).cmp(l);)r.iadd(h);if(m(p=r.shrn(1))&&m(r)&&b(p)&&b(r)&&s.test(p)&&s.test(r))return r}}},{e11b752ebf414e01:"6xAZm","6139735ee181267b":"daGd1","7b3f73f9ab7b2b6a":"9C6Ip"}],daGd1:[function(e,t,r){!function(t,r){"use strict";function n(e,t){if(!e)throw Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.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"))}"object"==typeof t?t.exports=a:r.BN=a,a.BN=a,a.wordSize=26;try{f="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("a4b3a214327293bc").Buffer}catch(e){}function s(e,t){var r=e.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function o(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function c(e,t,r,n){for(var i=0,a=Math.min(e.length,r),s=t;s=49?i+=o-49+10:o>=17?i+=o-17+10:i+=o}return i}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;s-=3)a=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[i]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,i++);else if("le"===r)for(s=0,i=0;s>>26-o&67108863,(o+=24)>=26&&(o-=26,i++);return this.strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n,i=0;i=t;i-=2)n=o(e,t,i)<=18?(a-=18,s+=1,this.words[s]|=n>>>26):a+=8;else for(i=(e.length-t)%2==0?t+1:t;i=18?(a-=18,s+=1,this.words[s]|=n>>>26):a+=8;this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var a=e.length-r,s=a%n,o=Math.min(a,a-s)+r,f=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var f,u=["","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"],d=[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],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],a=0|t.words[0],s=i*a,o=67108863&s,c=s/67108864|0;r.words[0]=o;for(var f=1;f>>26,d=67108863&c,l=Math.min(f,t.length-1),h=Math.max(0,f-e.length+1);h<=l;h++){var p=f-h|0;u+=(s=(i=0|e.words[p])*(a=0|t.words[h])+d)/67108864|0,d=67108863&s}r.words[f]=0|d,c=0|u}return 0!==c?r.words[f]=0|c:r.length--,r.strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,i=0,a=0,s=0;s>>24-i&16777215)||s!==this.length-1?u[6-c.length]+c+r:c+r,(i+=2)>=26&&(i-=26,s--)}for(0!==a&&(r=a.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 f=d[e],h=l[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?m+r:u[f-m.length]+m+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")},a.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},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return n(void 0!==f),this.toArrayLike(f,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var i,a,s=this.byteLength(),o=r||Math.max(1,s);n(s<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var c=new e(o),f=this.clone();if("le"===t){for(a=0;!f.isZero();a++)i=f.andln(255),f.iushrn(8),c[a]=i;for(;a=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},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.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)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,a=0;a>>26;for(;0!==i&&a>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var a=0,s=0;s>26,this.words[s]=67108863&n;for(;0!==a&&s>26,this.words[s]=67108863&n;if(0===a&&s>>13,h=0|s[1],p=8191&h,m=h>>>13,b=0|s[2],g=8191&b,y=b>>>13,v=0|s[3],w=8191&v,_=v>>>13,E=0|s[4],A=8191&E,M=E>>>13,S=0|s[5],x=8191&S,T=S>>>13,k=0|s[6],R=8191&k,I=k>>>13,C=0|s[7],P=8191&C,O=C>>>13,N=0|s[8],j=8191&N,B=N>>>13,L=0|s[9],D=8191&L,U=L>>>13,F=0|o[0],q=8191&F,z=F>>>13,K=0|o[1],H=8191&K,V=K>>>13,W=0|o[2],G=8191&W,J=W>>>13,Z=0|o[3],$=8191&Z,X=Z>>>13,Y=0|o[4],Q=8191&Y,ee=Y>>>13,et=0|o[5],er=8191&et,en=et>>>13,ei=0|o[6],ea=8191&ei,es=ei>>>13,eo=0|o[7],ec=8191&eo,ef=eo>>>13,eu=0|o[8],ed=8191&eu,el=eu>>>13,eh=0|o[9],ep=8191&eh,em=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var eb=(f+(n=Math.imul(d,q))|0)+((8191&(i=(i=Math.imul(d,z))+Math.imul(l,q)|0))<<13)|0;f=((a=Math.imul(l,z))+(i>>>13)|0)+(eb>>>26)|0,eb&=67108863,n=Math.imul(p,q),i=(i=Math.imul(p,z))+Math.imul(m,q)|0,a=Math.imul(m,z);var eg=(f+(n=n+Math.imul(d,H)|0)|0)+((8191&(i=(i=i+Math.imul(d,V)|0)+Math.imul(l,H)|0))<<13)|0;f=((a=a+Math.imul(l,V)|0)+(i>>>13)|0)+(eg>>>26)|0,eg&=67108863,n=Math.imul(g,q),i=(i=Math.imul(g,z))+Math.imul(y,q)|0,a=Math.imul(y,z),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,H)|0,a=a+Math.imul(m,V)|0;var ey=(f+(n=n+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,J)|0)+Math.imul(l,G)|0))<<13)|0;f=((a=a+Math.imul(l,J)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=67108863,n=Math.imul(w,q),i=(i=Math.imul(w,z))+Math.imul(_,q)|0,a=Math.imul(_,z),n=n+Math.imul(g,H)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,V)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,G)|0,a=a+Math.imul(m,J)|0;var ev=(f+(n=n+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(l,$)|0))<<13)|0;f=((a=a+Math.imul(l,X)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=67108863,n=Math.imul(A,q),i=(i=Math.imul(A,z))+Math.imul(M,q)|0,a=Math.imul(M,z),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,V)|0,n=n+Math.imul(g,G)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,J)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,$)|0,a=a+Math.imul(m,X)|0;var ew=(f+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(l,Q)|0))<<13)|0;f=((a=a+Math.imul(l,ee)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=67108863,n=Math.imul(x,q),i=(i=Math.imul(x,z))+Math.imul(T,q)|0,a=Math.imul(T,z),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(M,H)|0,a=a+Math.imul(M,V)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,G)|0,a=a+Math.imul(_,J)|0,n=n+Math.imul(g,$)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(y,$)|0,a=a+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,a=a+Math.imul(m,ee)|0;var e_=(f+(n=n+Math.imul(d,er)|0)|0)+((8191&(i=(i=i+Math.imul(d,en)|0)+Math.imul(l,er)|0))<<13)|0;f=((a=a+Math.imul(l,en)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,z))+Math.imul(I,q)|0,a=Math.imul(I,z),n=n+Math.imul(x,H)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(T,H)|0,a=a+Math.imul(T,V)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(M,G)|0,a=a+Math.imul(M,J)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(_,$)|0,a=a+Math.imul(_,X)|0,n=n+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(y,Q)|0,a=a+Math.imul(y,ee)|0,n=n+Math.imul(p,er)|0,i=(i=i+Math.imul(p,en)|0)+Math.imul(m,er)|0,a=a+Math.imul(m,en)|0;var eE=(f+(n=n+Math.imul(d,ea)|0)|0)+((8191&(i=(i=i+Math.imul(d,es)|0)+Math.imul(l,ea)|0))<<13)|0;f=((a=a+Math.imul(l,es)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=67108863,n=Math.imul(P,q),i=(i=Math.imul(P,z))+Math.imul(O,q)|0,a=Math.imul(O,z),n=n+Math.imul(R,H)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,V)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(T,G)|0,a=a+Math.imul(T,J)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(M,$)|0,a=a+Math.imul(M,X)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,ee)|0,n=n+Math.imul(g,er)|0,i=(i=i+Math.imul(g,en)|0)+Math.imul(y,er)|0,a=a+Math.imul(y,en)|0,n=n+Math.imul(p,ea)|0,i=(i=i+Math.imul(p,es)|0)+Math.imul(m,ea)|0,a=a+Math.imul(m,es)|0;var eA=(f+(n=n+Math.imul(d,ec)|0)|0)+((8191&(i=(i=i+Math.imul(d,ef)|0)+Math.imul(l,ec)|0))<<13)|0;f=((a=a+Math.imul(l,ef)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=67108863,n=Math.imul(j,q),i=(i=Math.imul(j,z))+Math.imul(B,q)|0,a=Math.imul(B,z),n=n+Math.imul(P,H)|0,i=(i=i+Math.imul(P,V)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,V)|0,n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(I,G)|0,a=a+Math.imul(I,J)|0,n=n+Math.imul(x,$)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(T,$)|0,a=a+Math.imul(T,X)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(M,Q)|0,a=a+Math.imul(M,ee)|0,n=n+Math.imul(w,er)|0,i=(i=i+Math.imul(w,en)|0)+Math.imul(_,er)|0,a=a+Math.imul(_,en)|0,n=n+Math.imul(g,ea)|0,i=(i=i+Math.imul(g,es)|0)+Math.imul(y,ea)|0,a=a+Math.imul(y,es)|0,n=n+Math.imul(p,ec)|0,i=(i=i+Math.imul(p,ef)|0)+Math.imul(m,ec)|0,a=a+Math.imul(m,ef)|0;var eM=(f+(n=n+Math.imul(d,ed)|0)|0)+((8191&(i=(i=i+Math.imul(d,el)|0)+Math.imul(l,ed)|0))<<13)|0;f=((a=a+Math.imul(l,el)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,z))+Math.imul(U,q)|0,a=Math.imul(U,z),n=n+Math.imul(j,H)|0,i=(i=i+Math.imul(j,V)|0)+Math.imul(B,H)|0,a=a+Math.imul(B,V)|0,n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(O,G)|0,a=a+Math.imul(O,J)|0,n=n+Math.imul(R,$)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(I,$)|0,a=a+Math.imul(I,X)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(T,Q)|0,a=a+Math.imul(T,ee)|0,n=n+Math.imul(A,er)|0,i=(i=i+Math.imul(A,en)|0)+Math.imul(M,er)|0,a=a+Math.imul(M,en)|0,n=n+Math.imul(w,ea)|0,i=(i=i+Math.imul(w,es)|0)+Math.imul(_,ea)|0,a=a+Math.imul(_,es)|0,n=n+Math.imul(g,ec)|0,i=(i=i+Math.imul(g,ef)|0)+Math.imul(y,ec)|0,a=a+Math.imul(y,ef)|0,n=n+Math.imul(p,ed)|0,i=(i=i+Math.imul(p,el)|0)+Math.imul(m,ed)|0,a=a+Math.imul(m,el)|0;var eS=(f+(n=n+Math.imul(d,ep)|0)|0)+((8191&(i=(i=i+Math.imul(d,em)|0)+Math.imul(l,ep)|0))<<13)|0;f=((a=a+Math.imul(l,em)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=67108863,n=Math.imul(D,H),i=(i=Math.imul(D,V))+Math.imul(U,H)|0,a=Math.imul(U,V),n=n+Math.imul(j,G)|0,i=(i=i+Math.imul(j,J)|0)+Math.imul(B,G)|0,a=a+Math.imul(B,J)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(O,$)|0,a=a+Math.imul(O,X)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(I,Q)|0,a=a+Math.imul(I,ee)|0,n=n+Math.imul(x,er)|0,i=(i=i+Math.imul(x,en)|0)+Math.imul(T,er)|0,a=a+Math.imul(T,en)|0,n=n+Math.imul(A,ea)|0,i=(i=i+Math.imul(A,es)|0)+Math.imul(M,ea)|0,a=a+Math.imul(M,es)|0,n=n+Math.imul(w,ec)|0,i=(i=i+Math.imul(w,ef)|0)+Math.imul(_,ec)|0,a=a+Math.imul(_,ef)|0,n=n+Math.imul(g,ed)|0,i=(i=i+Math.imul(g,el)|0)+Math.imul(y,ed)|0,a=a+Math.imul(y,el)|0;var ex=(f+(n=n+Math.imul(p,ep)|0)|0)+((8191&(i=(i=i+Math.imul(p,em)|0)+Math.imul(m,ep)|0))<<13)|0;f=((a=a+Math.imul(m,em)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=67108863,n=Math.imul(D,G),i=(i=Math.imul(D,J))+Math.imul(U,G)|0,a=Math.imul(U,J),n=n+Math.imul(j,$)|0,i=(i=i+Math.imul(j,X)|0)+Math.imul(B,$)|0,a=a+Math.imul(B,X)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,n=n+Math.imul(R,er)|0,i=(i=i+Math.imul(R,en)|0)+Math.imul(I,er)|0,a=a+Math.imul(I,en)|0,n=n+Math.imul(x,ea)|0,i=(i=i+Math.imul(x,es)|0)+Math.imul(T,ea)|0,a=a+Math.imul(T,es)|0,n=n+Math.imul(A,ec)|0,i=(i=i+Math.imul(A,ef)|0)+Math.imul(M,ec)|0,a=a+Math.imul(M,ef)|0,n=n+Math.imul(w,ed)|0,i=(i=i+Math.imul(w,el)|0)+Math.imul(_,ed)|0,a=a+Math.imul(_,el)|0;var eT=(f+(n=n+Math.imul(g,ep)|0)|0)+((8191&(i=(i=i+Math.imul(g,em)|0)+Math.imul(y,ep)|0))<<13)|0;f=((a=a+Math.imul(y,em)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,X))+Math.imul(U,$)|0,a=Math.imul(U,X),n=n+Math.imul(j,Q)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(B,Q)|0,a=a+Math.imul(B,ee)|0,n=n+Math.imul(P,er)|0,i=(i=i+Math.imul(P,en)|0)+Math.imul(O,er)|0,a=a+Math.imul(O,en)|0,n=n+Math.imul(R,ea)|0,i=(i=i+Math.imul(R,es)|0)+Math.imul(I,ea)|0,a=a+Math.imul(I,es)|0,n=n+Math.imul(x,ec)|0,i=(i=i+Math.imul(x,ef)|0)+Math.imul(T,ec)|0,a=a+Math.imul(T,ef)|0,n=n+Math.imul(A,ed)|0,i=(i=i+Math.imul(A,el)|0)+Math.imul(M,ed)|0,a=a+Math.imul(M,el)|0;var ek=(f+(n=n+Math.imul(w,ep)|0)|0)+((8191&(i=(i=i+Math.imul(w,em)|0)+Math.imul(_,ep)|0))<<13)|0;f=((a=a+Math.imul(_,em)|0)+(i>>>13)|0)+(ek>>>26)|0,ek&=67108863,n=Math.imul(D,Q),i=(i=Math.imul(D,ee))+Math.imul(U,Q)|0,a=Math.imul(U,ee),n=n+Math.imul(j,er)|0,i=(i=i+Math.imul(j,en)|0)+Math.imul(B,er)|0,a=a+Math.imul(B,en)|0,n=n+Math.imul(P,ea)|0,i=(i=i+Math.imul(P,es)|0)+Math.imul(O,ea)|0,a=a+Math.imul(O,es)|0,n=n+Math.imul(R,ec)|0,i=(i=i+Math.imul(R,ef)|0)+Math.imul(I,ec)|0,a=a+Math.imul(I,ef)|0,n=n+Math.imul(x,ed)|0,i=(i=i+Math.imul(x,el)|0)+Math.imul(T,ed)|0,a=a+Math.imul(T,el)|0;var eR=(f+(n=n+Math.imul(A,ep)|0)|0)+((8191&(i=(i=i+Math.imul(A,em)|0)+Math.imul(M,ep)|0))<<13)|0;f=((a=a+Math.imul(M,em)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=67108863,n=Math.imul(D,er),i=(i=Math.imul(D,en))+Math.imul(U,er)|0,a=Math.imul(U,en),n=n+Math.imul(j,ea)|0,i=(i=i+Math.imul(j,es)|0)+Math.imul(B,ea)|0,a=a+Math.imul(B,es)|0,n=n+Math.imul(P,ec)|0,i=(i=i+Math.imul(P,ef)|0)+Math.imul(O,ec)|0,a=a+Math.imul(O,ef)|0,n=n+Math.imul(R,ed)|0,i=(i=i+Math.imul(R,el)|0)+Math.imul(I,ed)|0,a=a+Math.imul(I,el)|0;var eI=(f+(n=n+Math.imul(x,ep)|0)|0)+((8191&(i=(i=i+Math.imul(x,em)|0)+Math.imul(T,ep)|0))<<13)|0;f=((a=a+Math.imul(T,em)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=67108863,n=Math.imul(D,ea),i=(i=Math.imul(D,es))+Math.imul(U,ea)|0,a=Math.imul(U,es),n=n+Math.imul(j,ec)|0,i=(i=i+Math.imul(j,ef)|0)+Math.imul(B,ec)|0,a=a+Math.imul(B,ef)|0,n=n+Math.imul(P,ed)|0,i=(i=i+Math.imul(P,el)|0)+Math.imul(O,ed)|0,a=a+Math.imul(O,el)|0;var eC=(f+(n=n+Math.imul(R,ep)|0)|0)+((8191&(i=(i=i+Math.imul(R,em)|0)+Math.imul(I,ep)|0))<<13)|0;f=((a=a+Math.imul(I,em)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=67108863,n=Math.imul(D,ec),i=(i=Math.imul(D,ef))+Math.imul(U,ec)|0,a=Math.imul(U,ef),n=n+Math.imul(j,ed)|0,i=(i=i+Math.imul(j,el)|0)+Math.imul(B,ed)|0,a=a+Math.imul(B,el)|0;var eP=(f+(n=n+Math.imul(P,ep)|0)|0)+((8191&(i=(i=i+Math.imul(P,em)|0)+Math.imul(O,ep)|0))<<13)|0;f=((a=a+Math.imul(O,em)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=67108863,n=Math.imul(D,ed),i=(i=Math.imul(D,el))+Math.imul(U,ed)|0,a=Math.imul(U,el);var eO=(f+(n=n+Math.imul(j,ep)|0)|0)+((8191&(i=(i=i+Math.imul(j,em)|0)+Math.imul(B,ep)|0))<<13)|0;f=((a=a+Math.imul(B,em)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=67108863;var eN=(f+(n=Math.imul(D,ep))|0)+((8191&(i=(i=Math.imul(D,em))+Math.imul(U,ep)|0))<<13)|0;return f=((a=Math.imul(U,em))+(i>>>13)|0)+(eN>>>26)|0,eN&=67108863,c[0]=eb,c[1]=eg,c[2]=ey,c[3]=ev,c[4]=ew,c[5]=e_,c[6]=eE,c[7]=eA,c[8]=eM,c[9]=eS,c[10]=ex,c[11]=eT,c[12]=ek,c[13]=eR,c[14]=eI,c[15]=eC,c[16]=eP,c[17]=eO,c[18]=eN,0!==f&&(c[19]=f,r.length++),r};function m(e,t,r){return new b().mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(p=h),a.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):r<63?h(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,a=0;a>>26)|0)>>>26,s&=67108863}r.words[a]=o,n=s,s=i}return 0!==n?r.words[a]=n:r.length--,r.strip()}(this,e,t):m(this,e,t)},b.prototype.makeRBT=function(e){for(var t=Array(e),r=a.prototype._countBits(e)-1,n=0;n>=1;return n},b.prototype.permute=function(e,t,r,n,i,a){for(var s=0;s>>=1)i++;return 1<>>=13,r[2*s+1]=8191&a,a>>>=13;for(s=2*t;s>=26,t+=(i/67108864|0)+(a>>>26),this.words[r]=67108863&a}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>i}return t}(e);if(0===t.length)return new a(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,a=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var i,a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<s)for(this.length-=s,c=0;c=0&&(0!==f||c>=i);c--){var u=0|this.words[c];this.words[c]=f<<26-a|u>>>a,f=u&o}return r&&0!==f&&(r.words[r.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return!(this.length<=r)&&!!(this.words[r]&1<=0);var t=e%26,r=(e-t)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==t&&r++,this.length=Math.min(r,this.length),0!==t&&(this.words[this.length-1]&=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},a.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[i+r]=67108863&a}for(;i>26,this.words[i+r]=67108863&a;if(0===o)return this.strip();for(n(-1===o),o=0,i=0;i>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),s=e,o=0|s.words[s.length-1];0!=(n=26-this._countBits(o))&&(s=s.ushln(n),i.iushln(n),o=0|s.words[s.length-1]);var c=i.length-s.length;if("mod"!==t){(r=new a(null)).length=c+1,r.words=Array(r.length);for(var f=0;f=0;d--){var l=(0|i.words[s.length+d])*67108864+(0|i.words[s.length+d-1]);for(l=Math.min(l/o|0,67108863),i._ishlnsubmul(s,l,d);0!==i.negative;)l--,i.negative=0,i._ishlnsubmul(s,1,d),i.isZero()||(i.negative^=1);r&&(r.words[d]=l)}return r&&r.strip(),i.strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},a.prototype.divmod=function(e,t,r){var i,s,o;return(n(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(i=o.div.neg()),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:i,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(i=o.div.neg()),{div:i,mod:o.mod}):(this.negative&e.negative)!=0?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:o.div,mod:s}):e.length>this.length||0>this.cmp(e)?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.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),i=e.andln(1),a=r.cmp(n);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){n(e<=67108863);for(var t=67108864%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},a.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.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 i=new a(1),s=new a(0),o=new a(0),c=new a(1),f=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++f;for(var u=r.clone(),d=t.clone();!t.isZero();){for(var l=0,h=1;(t.words[0]&h)==0&&l<26;++l,h<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(u),s.isub(d)),i.iushrn(1),s.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(o.isOdd()||c.isOdd())&&(o.iadd(u),c.isub(d)),o.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(o),s.isub(c)):(r.isub(t),o.isub(i),c.isub(s))}return{a:o,b:c,gcd:r.iushln(f)}},a.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new a(1),o=new a(0),c=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var f=0,u=1;(r.words[0]&u)==0&&f<26;++f,u<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var d=0,l=1;(i.words[0]&l)==0&&d<26;++d,l<<=1);if(d>0)for(i.iushrn(d);d-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);r.cmp(i)>=0?(r.isub(i),s.isub(o)):(i.isub(r),o.isub(s))}return 0>(t=0===r.cmpn(1)?s:o).cmpn(0)&&t.iadd(e),t},a.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 i=t.cmp(r);if(i<0){var a=t;t=r,r=a}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new A(e)},a.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)},a.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"==typeof e){var t=a._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 M(e){A.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(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)}y.prototype._tmp=function(){var e=new a(null);return e.words=Array(Math.ceil(this.n/13)),e},y.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},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},i(v,y),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,i=a}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(g[e])return g[e];if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new _;else if("p25519"===e)t=new E;else throw Error("Unknown prime "+e);return g[e]=t,t},A.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},A.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},A.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);n(!i.isZero());var o=new a(1).toRed(this),c=o.redNeg(),f=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,f).cmp(c);)u.redIAdd(c);for(var d=this.pow(u,i),l=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=s;0!==h.cmp(o);){for(var m=h,b=0;0!==m.cmp(o);b++)m=m.redSqr();n(b=0;n--){for(var f=t.words[n],u=c-1;u>=0;u--){var d=f>>u&1;if(i!==r[0]&&(i=this.sqr(i)),0===d&&0===s){o=0;continue}s<<=1,s|=d,(4==++o||0===n&&0===u)&&(i=this.mul(i,r[s]),o=0,s=0)}c=26}return i},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new M(e)},i(M,A),M.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},M.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},M.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),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},M.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):0>i.cmpn(0)&&(s=i.iadd(this.m)),s._forceRed(this)},M.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)},{a4b3a214327293bc:"3eno3"}],"9C6Ip":[function(e,t,r){var n=e("31d279a7646d17e9"),i=e("1ed277e13aa258c6");function a(e){this.rand=e||new i.Rand}t.exports=a,a.create=function(e){return new a(e)},a.prototype._randbelow=function(e){var t=Math.ceil(e.bitLength()/8);do var r=new n(this.rand.generate(t));while(r.cmp(e)>=0)return r},a.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},a.prototype.test=function(e,t,r){var i=e.bitLength(),a=n.mont(e),s=new n(1).toRed(a);t||(t=Math.max(1,i/48|0));for(var o=e.subn(1),c=0;!o.testn(c);c++);for(var f=e.shrn(c),u=o.toRed(a);t>0;t--){var d=this._randrange(new n(2),o);r&&r(d);var l=d.toRed(a).redPow(f);if(0!==l.cmp(s)&&0!==l.cmp(u)){for(var h=1;h0;t--){var u=this._randrange(new n(2),s),d=e.gcd(u);if(0!==d.cmpn(1))return d;var l=u.toRed(i).redPow(c);if(0!==l.cmp(a)&&0!==l.cmp(f)){for(var h=1;h=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function o(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function c(e,t,r,n){for(var i=0,a=Math.min(e.length,r),s=t;s=49?i+=o-49+10:o>=17?i+=o-17+10:i+=o}return i}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;s-=3)a=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[i]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,i++);else if("le"===r)for(s=0,i=0;s>>26-o&67108863,(o+=24)>=26&&(o-=26,i++);return this.strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n,i=0;i=t;i-=2)n=o(e,t,i)<=18?(a-=18,s+=1,this.words[s]|=n>>>26):a+=8;else for(i=(e.length-t)%2==0?t+1:t;i=18?(a-=18,s+=1,this.words[s]|=n>>>26):a+=8;this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var a=e.length-r,s=a%n,o=Math.min(a,a-s)+r,f=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var f,u=["","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"],d=[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],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],a=0|t.words[0],s=i*a,o=67108863&s,c=s/67108864|0;r.words[0]=o;for(var f=1;f>>26,d=67108863&c,l=Math.min(f,t.length-1),h=Math.max(0,f-e.length+1);h<=l;h++){var p=f-h|0;u+=(s=(i=0|e.words[p])*(a=0|t.words[h])+d)/67108864|0,d=67108863&s}r.words[f]=0|d,c=0|u}return 0!==c?r.words[f]=0|c:r.length--,r.strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,i=0,a=0,s=0;s>>24-i&16777215)||s!==this.length-1?u[6-c.length]+c+r:c+r,(i+=2)>=26&&(i-=26,s--)}for(0!==a&&(r=a.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 f=d[e],h=l[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?m+r:u[f-m.length]+m+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")},a.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},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return n(void 0!==f),this.toArrayLike(f,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var i,a,s=this.byteLength(),o=r||Math.max(1,s);n(s<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var c=new e(o),f=this.clone();if("le"===t){for(a=0;!f.isZero();a++)i=f.andln(255),f.iushrn(8),c[a]=i;for(;a=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},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.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)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,a=0;a>>26;for(;0!==i&&a>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var a=0,s=0;s>26,this.words[s]=67108863&n;for(;0!==a&&s>26,this.words[s]=67108863&n;if(0===a&&s>>13,h=0|s[1],p=8191&h,m=h>>>13,b=0|s[2],g=8191&b,y=b>>>13,v=0|s[3],w=8191&v,_=v>>>13,E=0|s[4],A=8191&E,M=E>>>13,S=0|s[5],x=8191&S,T=S>>>13,k=0|s[6],R=8191&k,I=k>>>13,C=0|s[7],P=8191&C,O=C>>>13,N=0|s[8],j=8191&N,B=N>>>13,L=0|s[9],D=8191&L,U=L>>>13,F=0|o[0],q=8191&F,z=F>>>13,K=0|o[1],H=8191&K,V=K>>>13,W=0|o[2],G=8191&W,J=W>>>13,Z=0|o[3],$=8191&Z,X=Z>>>13,Y=0|o[4],Q=8191&Y,ee=Y>>>13,et=0|o[5],er=8191&et,en=et>>>13,ei=0|o[6],ea=8191&ei,es=ei>>>13,eo=0|o[7],ec=8191&eo,ef=eo>>>13,eu=0|o[8],ed=8191&eu,el=eu>>>13,eh=0|o[9],ep=8191&eh,em=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var eb=(f+(n=Math.imul(d,q))|0)+((8191&(i=(i=Math.imul(d,z))+Math.imul(l,q)|0))<<13)|0;f=((a=Math.imul(l,z))+(i>>>13)|0)+(eb>>>26)|0,eb&=67108863,n=Math.imul(p,q),i=(i=Math.imul(p,z))+Math.imul(m,q)|0,a=Math.imul(m,z);var eg=(f+(n=n+Math.imul(d,H)|0)|0)+((8191&(i=(i=i+Math.imul(d,V)|0)+Math.imul(l,H)|0))<<13)|0;f=((a=a+Math.imul(l,V)|0)+(i>>>13)|0)+(eg>>>26)|0,eg&=67108863,n=Math.imul(g,q),i=(i=Math.imul(g,z))+Math.imul(y,q)|0,a=Math.imul(y,z),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,H)|0,a=a+Math.imul(m,V)|0;var ey=(f+(n=n+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,J)|0)+Math.imul(l,G)|0))<<13)|0;f=((a=a+Math.imul(l,J)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=67108863,n=Math.imul(w,q),i=(i=Math.imul(w,z))+Math.imul(_,q)|0,a=Math.imul(_,z),n=n+Math.imul(g,H)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,V)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,G)|0,a=a+Math.imul(m,J)|0;var ev=(f+(n=n+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(l,$)|0))<<13)|0;f=((a=a+Math.imul(l,X)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=67108863,n=Math.imul(A,q),i=(i=Math.imul(A,z))+Math.imul(M,q)|0,a=Math.imul(M,z),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,V)|0,n=n+Math.imul(g,G)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,J)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,$)|0,a=a+Math.imul(m,X)|0;var ew=(f+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(l,Q)|0))<<13)|0;f=((a=a+Math.imul(l,ee)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=67108863,n=Math.imul(x,q),i=(i=Math.imul(x,z))+Math.imul(T,q)|0,a=Math.imul(T,z),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(M,H)|0,a=a+Math.imul(M,V)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,G)|0,a=a+Math.imul(_,J)|0,n=n+Math.imul(g,$)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(y,$)|0,a=a+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,a=a+Math.imul(m,ee)|0;var e_=(f+(n=n+Math.imul(d,er)|0)|0)+((8191&(i=(i=i+Math.imul(d,en)|0)+Math.imul(l,er)|0))<<13)|0;f=((a=a+Math.imul(l,en)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,z))+Math.imul(I,q)|0,a=Math.imul(I,z),n=n+Math.imul(x,H)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(T,H)|0,a=a+Math.imul(T,V)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(M,G)|0,a=a+Math.imul(M,J)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(_,$)|0,a=a+Math.imul(_,X)|0,n=n+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(y,Q)|0,a=a+Math.imul(y,ee)|0,n=n+Math.imul(p,er)|0,i=(i=i+Math.imul(p,en)|0)+Math.imul(m,er)|0,a=a+Math.imul(m,en)|0;var eE=(f+(n=n+Math.imul(d,ea)|0)|0)+((8191&(i=(i=i+Math.imul(d,es)|0)+Math.imul(l,ea)|0))<<13)|0;f=((a=a+Math.imul(l,es)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=67108863,n=Math.imul(P,q),i=(i=Math.imul(P,z))+Math.imul(O,q)|0,a=Math.imul(O,z),n=n+Math.imul(R,H)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,V)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(T,G)|0,a=a+Math.imul(T,J)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(M,$)|0,a=a+Math.imul(M,X)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,ee)|0,n=n+Math.imul(g,er)|0,i=(i=i+Math.imul(g,en)|0)+Math.imul(y,er)|0,a=a+Math.imul(y,en)|0,n=n+Math.imul(p,ea)|0,i=(i=i+Math.imul(p,es)|0)+Math.imul(m,ea)|0,a=a+Math.imul(m,es)|0;var eA=(f+(n=n+Math.imul(d,ec)|0)|0)+((8191&(i=(i=i+Math.imul(d,ef)|0)+Math.imul(l,ec)|0))<<13)|0;f=((a=a+Math.imul(l,ef)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=67108863,n=Math.imul(j,q),i=(i=Math.imul(j,z))+Math.imul(B,q)|0,a=Math.imul(B,z),n=n+Math.imul(P,H)|0,i=(i=i+Math.imul(P,V)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,V)|0,n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(I,G)|0,a=a+Math.imul(I,J)|0,n=n+Math.imul(x,$)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(T,$)|0,a=a+Math.imul(T,X)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(M,Q)|0,a=a+Math.imul(M,ee)|0,n=n+Math.imul(w,er)|0,i=(i=i+Math.imul(w,en)|0)+Math.imul(_,er)|0,a=a+Math.imul(_,en)|0,n=n+Math.imul(g,ea)|0,i=(i=i+Math.imul(g,es)|0)+Math.imul(y,ea)|0,a=a+Math.imul(y,es)|0,n=n+Math.imul(p,ec)|0,i=(i=i+Math.imul(p,ef)|0)+Math.imul(m,ec)|0,a=a+Math.imul(m,ef)|0;var eM=(f+(n=n+Math.imul(d,ed)|0)|0)+((8191&(i=(i=i+Math.imul(d,el)|0)+Math.imul(l,ed)|0))<<13)|0;f=((a=a+Math.imul(l,el)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,z))+Math.imul(U,q)|0,a=Math.imul(U,z),n=n+Math.imul(j,H)|0,i=(i=i+Math.imul(j,V)|0)+Math.imul(B,H)|0,a=a+Math.imul(B,V)|0,n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(O,G)|0,a=a+Math.imul(O,J)|0,n=n+Math.imul(R,$)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(I,$)|0,a=a+Math.imul(I,X)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(T,Q)|0,a=a+Math.imul(T,ee)|0,n=n+Math.imul(A,er)|0,i=(i=i+Math.imul(A,en)|0)+Math.imul(M,er)|0,a=a+Math.imul(M,en)|0,n=n+Math.imul(w,ea)|0,i=(i=i+Math.imul(w,es)|0)+Math.imul(_,ea)|0,a=a+Math.imul(_,es)|0,n=n+Math.imul(g,ec)|0,i=(i=i+Math.imul(g,ef)|0)+Math.imul(y,ec)|0,a=a+Math.imul(y,ef)|0,n=n+Math.imul(p,ed)|0,i=(i=i+Math.imul(p,el)|0)+Math.imul(m,ed)|0,a=a+Math.imul(m,el)|0;var eS=(f+(n=n+Math.imul(d,ep)|0)|0)+((8191&(i=(i=i+Math.imul(d,em)|0)+Math.imul(l,ep)|0))<<13)|0;f=((a=a+Math.imul(l,em)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=67108863,n=Math.imul(D,H),i=(i=Math.imul(D,V))+Math.imul(U,H)|0,a=Math.imul(U,V),n=n+Math.imul(j,G)|0,i=(i=i+Math.imul(j,J)|0)+Math.imul(B,G)|0,a=a+Math.imul(B,J)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(O,$)|0,a=a+Math.imul(O,X)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(I,Q)|0,a=a+Math.imul(I,ee)|0,n=n+Math.imul(x,er)|0,i=(i=i+Math.imul(x,en)|0)+Math.imul(T,er)|0,a=a+Math.imul(T,en)|0,n=n+Math.imul(A,ea)|0,i=(i=i+Math.imul(A,es)|0)+Math.imul(M,ea)|0,a=a+Math.imul(M,es)|0,n=n+Math.imul(w,ec)|0,i=(i=i+Math.imul(w,ef)|0)+Math.imul(_,ec)|0,a=a+Math.imul(_,ef)|0,n=n+Math.imul(g,ed)|0,i=(i=i+Math.imul(g,el)|0)+Math.imul(y,ed)|0,a=a+Math.imul(y,el)|0;var ex=(f+(n=n+Math.imul(p,ep)|0)|0)+((8191&(i=(i=i+Math.imul(p,em)|0)+Math.imul(m,ep)|0))<<13)|0;f=((a=a+Math.imul(m,em)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=67108863,n=Math.imul(D,G),i=(i=Math.imul(D,J))+Math.imul(U,G)|0,a=Math.imul(U,J),n=n+Math.imul(j,$)|0,i=(i=i+Math.imul(j,X)|0)+Math.imul(B,$)|0,a=a+Math.imul(B,X)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,n=n+Math.imul(R,er)|0,i=(i=i+Math.imul(R,en)|0)+Math.imul(I,er)|0,a=a+Math.imul(I,en)|0,n=n+Math.imul(x,ea)|0,i=(i=i+Math.imul(x,es)|0)+Math.imul(T,ea)|0,a=a+Math.imul(T,es)|0,n=n+Math.imul(A,ec)|0,i=(i=i+Math.imul(A,ef)|0)+Math.imul(M,ec)|0,a=a+Math.imul(M,ef)|0,n=n+Math.imul(w,ed)|0,i=(i=i+Math.imul(w,el)|0)+Math.imul(_,ed)|0,a=a+Math.imul(_,el)|0;var eT=(f+(n=n+Math.imul(g,ep)|0)|0)+((8191&(i=(i=i+Math.imul(g,em)|0)+Math.imul(y,ep)|0))<<13)|0;f=((a=a+Math.imul(y,em)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,X))+Math.imul(U,$)|0,a=Math.imul(U,X),n=n+Math.imul(j,Q)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(B,Q)|0,a=a+Math.imul(B,ee)|0,n=n+Math.imul(P,er)|0,i=(i=i+Math.imul(P,en)|0)+Math.imul(O,er)|0,a=a+Math.imul(O,en)|0,n=n+Math.imul(R,ea)|0,i=(i=i+Math.imul(R,es)|0)+Math.imul(I,ea)|0,a=a+Math.imul(I,es)|0,n=n+Math.imul(x,ec)|0,i=(i=i+Math.imul(x,ef)|0)+Math.imul(T,ec)|0,a=a+Math.imul(T,ef)|0,n=n+Math.imul(A,ed)|0,i=(i=i+Math.imul(A,el)|0)+Math.imul(M,ed)|0,a=a+Math.imul(M,el)|0;var ek=(f+(n=n+Math.imul(w,ep)|0)|0)+((8191&(i=(i=i+Math.imul(w,em)|0)+Math.imul(_,ep)|0))<<13)|0;f=((a=a+Math.imul(_,em)|0)+(i>>>13)|0)+(ek>>>26)|0,ek&=67108863,n=Math.imul(D,Q),i=(i=Math.imul(D,ee))+Math.imul(U,Q)|0,a=Math.imul(U,ee),n=n+Math.imul(j,er)|0,i=(i=i+Math.imul(j,en)|0)+Math.imul(B,er)|0,a=a+Math.imul(B,en)|0,n=n+Math.imul(P,ea)|0,i=(i=i+Math.imul(P,es)|0)+Math.imul(O,ea)|0,a=a+Math.imul(O,es)|0,n=n+Math.imul(R,ec)|0,i=(i=i+Math.imul(R,ef)|0)+Math.imul(I,ec)|0,a=a+Math.imul(I,ef)|0,n=n+Math.imul(x,ed)|0,i=(i=i+Math.imul(x,el)|0)+Math.imul(T,ed)|0,a=a+Math.imul(T,el)|0;var eR=(f+(n=n+Math.imul(A,ep)|0)|0)+((8191&(i=(i=i+Math.imul(A,em)|0)+Math.imul(M,ep)|0))<<13)|0;f=((a=a+Math.imul(M,em)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=67108863,n=Math.imul(D,er),i=(i=Math.imul(D,en))+Math.imul(U,er)|0,a=Math.imul(U,en),n=n+Math.imul(j,ea)|0,i=(i=i+Math.imul(j,es)|0)+Math.imul(B,ea)|0,a=a+Math.imul(B,es)|0,n=n+Math.imul(P,ec)|0,i=(i=i+Math.imul(P,ef)|0)+Math.imul(O,ec)|0,a=a+Math.imul(O,ef)|0,n=n+Math.imul(R,ed)|0,i=(i=i+Math.imul(R,el)|0)+Math.imul(I,ed)|0,a=a+Math.imul(I,el)|0;var eI=(f+(n=n+Math.imul(x,ep)|0)|0)+((8191&(i=(i=i+Math.imul(x,em)|0)+Math.imul(T,ep)|0))<<13)|0;f=((a=a+Math.imul(T,em)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=67108863,n=Math.imul(D,ea),i=(i=Math.imul(D,es))+Math.imul(U,ea)|0,a=Math.imul(U,es),n=n+Math.imul(j,ec)|0,i=(i=i+Math.imul(j,ef)|0)+Math.imul(B,ec)|0,a=a+Math.imul(B,ef)|0,n=n+Math.imul(P,ed)|0,i=(i=i+Math.imul(P,el)|0)+Math.imul(O,ed)|0,a=a+Math.imul(O,el)|0;var eC=(f+(n=n+Math.imul(R,ep)|0)|0)+((8191&(i=(i=i+Math.imul(R,em)|0)+Math.imul(I,ep)|0))<<13)|0;f=((a=a+Math.imul(I,em)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=67108863,n=Math.imul(D,ec),i=(i=Math.imul(D,ef))+Math.imul(U,ec)|0,a=Math.imul(U,ef),n=n+Math.imul(j,ed)|0,i=(i=i+Math.imul(j,el)|0)+Math.imul(B,ed)|0,a=a+Math.imul(B,el)|0;var eP=(f+(n=n+Math.imul(P,ep)|0)|0)+((8191&(i=(i=i+Math.imul(P,em)|0)+Math.imul(O,ep)|0))<<13)|0;f=((a=a+Math.imul(O,em)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=67108863,n=Math.imul(D,ed),i=(i=Math.imul(D,el))+Math.imul(U,ed)|0,a=Math.imul(U,el);var eO=(f+(n=n+Math.imul(j,ep)|0)|0)+((8191&(i=(i=i+Math.imul(j,em)|0)+Math.imul(B,ep)|0))<<13)|0;f=((a=a+Math.imul(B,em)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=67108863;var eN=(f+(n=Math.imul(D,ep))|0)+((8191&(i=(i=Math.imul(D,em))+Math.imul(U,ep)|0))<<13)|0;return f=((a=Math.imul(U,em))+(i>>>13)|0)+(eN>>>26)|0,eN&=67108863,c[0]=eb,c[1]=eg,c[2]=ey,c[3]=ev,c[4]=ew,c[5]=e_,c[6]=eE,c[7]=eA,c[8]=eM,c[9]=eS,c[10]=ex,c[11]=eT,c[12]=ek,c[13]=eR,c[14]=eI,c[15]=eC,c[16]=eP,c[17]=eO,c[18]=eN,0!==f&&(c[19]=f,r.length++),r};function m(e,t,r){return new b().mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(p=h),a.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):r<63?h(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,a=0;a>>26)|0)>>>26,s&=67108863}r.words[a]=o,n=s,s=i}return 0!==n?r.words[a]=n:r.length--,r.strip()}(this,e,t):m(this,e,t)},b.prototype.makeRBT=function(e){for(var t=Array(e),r=a.prototype._countBits(e)-1,n=0;n>=1;return n},b.prototype.permute=function(e,t,r,n,i,a){for(var s=0;s>>=1)i++;return 1<>>=13,r[2*s+1]=8191&a,a>>>=13;for(s=2*t;s>=26,t+=(i/67108864|0)+(a>>>26),this.words[r]=67108863&a}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>i}return t}(e);if(0===t.length)return new a(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,a=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var i,a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<s)for(this.length-=s,c=0;c=0&&(0!==f||c>=i);c--){var u=0|this.words[c];this.words[c]=f<<26-a|u>>>a,f=u&o}return r&&0!==f&&(r.words[r.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return!(this.length<=r)&&!!(this.words[r]&1<=0);var t=e%26,r=(e-t)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==t&&r++,this.length=Math.min(r,this.length),0!==t&&(this.words[this.length-1]&=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},a.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[i+r]=67108863&a}for(;i>26,this.words[i+r]=67108863&a;if(0===o)return this.strip();for(n(-1===o),o=0,i=0;i>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),s=e,o=0|s.words[s.length-1];0!=(n=26-this._countBits(o))&&(s=s.ushln(n),i.iushln(n),o=0|s.words[s.length-1]);var c=i.length-s.length;if("mod"!==t){(r=new a(null)).length=c+1,r.words=Array(r.length);for(var f=0;f=0;d--){var l=(0|i.words[s.length+d])*67108864+(0|i.words[s.length+d-1]);for(l=Math.min(l/o|0,67108863),i._ishlnsubmul(s,l,d);0!==i.negative;)l--,i.negative=0,i._ishlnsubmul(s,1,d),i.isZero()||(i.negative^=1);r&&(r.words[d]=l)}return r&&r.strip(),i.strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},a.prototype.divmod=function(e,t,r){var i,s,o;return(n(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(i=o.div.neg()),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:i,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(i=o.div.neg()),{div:i,mod:o.mod}):(this.negative&e.negative)!=0?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:o.div,mod:s}):e.length>this.length||0>this.cmp(e)?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.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),i=e.andln(1),a=r.cmp(n);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){n(e<=67108863);for(var t=67108864%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},a.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.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 i=new a(1),s=new a(0),o=new a(0),c=new a(1),f=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++f;for(var u=r.clone(),d=t.clone();!t.isZero();){for(var l=0,h=1;(t.words[0]&h)==0&&l<26;++l,h<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(u),s.isub(d)),i.iushrn(1),s.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(o.isOdd()||c.isOdd())&&(o.iadd(u),c.isub(d)),o.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(o),s.isub(c)):(r.isub(t),o.isub(i),c.isub(s))}return{a:o,b:c,gcd:r.iushln(f)}},a.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new a(1),o=new a(0),c=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var f=0,u=1;(r.words[0]&u)==0&&f<26;++f,u<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var d=0,l=1;(i.words[0]&l)==0&&d<26;++d,l<<=1);if(d>0)for(i.iushrn(d);d-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);r.cmp(i)>=0?(r.isub(i),s.isub(o)):(i.isub(r),o.isub(s))}return 0>(t=0===r.cmpn(1)?s:o).cmpn(0)&&t.iadd(e),t},a.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 i=t.cmp(r);if(i<0){var a=t;t=r,r=a}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new A(e)},a.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)},a.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"==typeof e){var t=a._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 M(e){A.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(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)}y.prototype._tmp=function(){var e=new a(null);return e.words=Array(Math.ceil(this.n/13)),e},y.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},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},i(v,y),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,i=a}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(g[e])return g[e];if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new _;else if("p25519"===e)t=new E;else throw Error("Unknown prime "+e);return g[e]=t,t},A.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},A.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},A.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);n(!i.isZero());var o=new a(1).toRed(this),c=o.redNeg(),f=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,f).cmp(c);)u.redIAdd(c);for(var d=this.pow(u,i),l=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=s;0!==h.cmp(o);){for(var m=h,b=0;0!==m.cmp(o);b++)m=m.redSqr();n(b=0;n--){for(var f=t.words[n],u=c-1;u>=0;u--){var d=f>>u&1;if(i!==r[0]&&(i=this.sqr(i)),0===d&&0===s){o=0;continue}s<<=1,s|=d,(4==++o||0===n&&0===u)&&(i=this.mul(i,r[s]),o=0,s=0)}c=26}return i},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new M(e)},i(M,A),M.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},M.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},M.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),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},M.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):0>i.cmpn(0)&&(s=i.iadd(this.m)),s._forceRed(this)},M.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)},{"1a01f12e7676c433":"3eno3"}],"4r6A7":[function(e,t,r){t.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},{}],jpk3A:[function(e,t,r){var n=e("18c258c24cda4205").Buffer,i=e("6cfaed55db270425"),a=new(e("8bc0d9823ee74460")),s=new i(24),o=new i(11),c=new i(10),f=new i(3),u=new i(7),d=e("dd39d03f4b3404fc"),l=e("e2757e55299a3ebc");function h(e,t){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this._pub=new i(e),this}function p(e,t){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this._priv=new i(e),this}t.exports=b;var m={};function b(e,t,r){this.setGenerator(t),this.__prime=new i(e),this._prime=i.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=h,this.setPrivateKey=p):this._primeCode=8}function g(e,t){var r=new n(e.toArray());return t?r.toString(t):r}Object.defineProperty(b.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r,n=t.toString("hex"),i=[n,e.toString(16)].join("_");if(i in m)return m[i];var l=0;if(e.isEven()||!d.simpleSieve||!d.fermatTest(e)||!a.test(e))return l+=1,"02"===n||"05"===n?l+=8:l+=4,m[i]=l,l;switch(a.test(e.shrn(1))||(l+=2),n){case"02":e.mod(s).cmp(o)&&(l+=8);break;case"05":(r=e.mod(c)).cmp(f)&&r.cmp(u)&&(l+=8);break;default:l+=4}return m[i]=l,l}(this.__prime,this.__gen)),this._primeCode}}),b.prototype.generateKeys=function(){return this._priv||(this._priv=new i(l(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},b.prototype.computeSecret=function(e){var t=(e=(e=new i(e)).toRed(this._prime)).redPow(this._priv).fromRed(),r=new n(t.toArray()),a=this.getPrime();if(r.length0&&r.ishrn(n),r}function l(e,t,r){var a,s;do{for(a=n.alloc(0);8*a.length=0||!t.umod(e.prime1)||!t.umod(e.prime2))return t}function o(e,t){var r,a={blinder:(r=s(t)).toRed(i.mont(t.modulus)).redPow(new i(t.publicExponent)).fromRed(),unblinder:r.invm(t.modulus)},o=t.modulus.byteLength(),c=new i(e).mul(a.blinder).umod(t.modulus),f=c.toRed(i.mont(t.prime1)),u=c.toRed(i.mont(t.prime2)),d=t.coefficient,l=t.prime1,h=t.prime2,p=f.redPow(t.exponent1).fromRed(),m=u.redPow(t.exponent2).fromRed(),b=p.isub(m).imul(d).umod(l).imul(h);return m.iadd(b).imul(a.unblinder).umod(t.modulus).toArrayLike(n,"be",o)}o.getr=s,t.exports=o},{a54d4e6dcf549cd6:"2MMCE","5d911a7c773081c":"lXPno",cfe4d67488897360:"6xAZm"}],"6XduM":[function(e,t,r){var n=e("a33d2f68b0ffe26d"),i=e("c39bbd52d12adb70"),a=e("7247fe0465255c67"),s=e("ea725b5eadc96106"),o=e("aa2a622927353f9f"),c=e("11d61e4bc73f5fdc").Buffer;function f(e){"object"!=typeof e||c.isBuffer(e)||(y=e.passphrase,e=e.key),"string"==typeof e&&(e=c.from(e));var t,r,f,u,d,l,h,p,m,b,g,y,v,w,_=a(e,y),E=_.tag,A=_.data;switch(E){case"CERTIFICATE":w=n.certificate.decode(A,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(w||(w=n.PublicKey.decode(A,"der")),v=w.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(w.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return w.subjectPrivateKey=w.subjectPublicKey,{type:"ec",data:w};case"1.2.840.10040.4.1":return w.algorithm.params.pub_key=n.DSAparam.decode(w.subjectPublicKey.data,"der"),{type:"dsa",data:w.algorithm.params};default:throw Error("unknown key id "+v)}case"ENCRYPTED PRIVATE KEY":t=A=n.EncryptedPrivateKey.decode(A,"der"),r=y,f=t.algorithm.decrypt.kde.kdeparams.salt,u=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10),d=i[t.algorithm.decrypt.cipher.algo.join(".")],l=t.algorithm.decrypt.cipher.iv,h=t.subjectPrivateKey,p=parseInt(d.split("-")[1],10)/8,m=o.pbkdf2Sync(r,f,u,p,"sha1"),b=s.createDecipheriv(d,m,l),(g=[]).push(b.update(h)),g.push(b.final()),A=c.concat(g);case"PRIVATE KEY":switch(v=(w=n.PrivateKey.decode(A,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(w.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:w.algorithm.curve,privateKey:n.ECPrivateKey.decode(w.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return w.algorithm.params.priv_key=n.DSAparam.decode(w.subjectPrivateKey,"der"),{type:"dsa",params:w.algorithm.params};default:throw Error("unknown key id "+v)}case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(A,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(A,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(A,"der")};case"EC PRIVATE KEY":return{curve:(A=n.ECPrivateKey.decode(A,"der")).parameters.value,privateKey:A.privateKey};default:throw Error("unknown key type "+E)}}t.exports=f,f.signature=n.signature},{a33d2f68b0ffe26d:"9szzD",c39bbd52d12adb70:"iAv61","7247fe0465255c67":"1YWr8",ea725b5eadc96106:"jwWGn",aa2a622927353f9f:"lsc2y","11d61e4bc73f5fdc":"6CY3D"}],"9szzD":[function(e,t,r){"use strict";var n=e("821e6411e0aeb10a");r.certificate=e("6bb4fbbd6e2d2384");var i=n.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});r.RSAPrivateKey=i;var a=n.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});r.RSAPublicKey=a;var s=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())});r.PublicKey=s;var o=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),c=n.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(o),this.key("subjectPrivateKey").octstr())});r.PrivateKey=c;var f=n.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});r.EncryptedPrivateKey=f;var u=n.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});r.DSAPrivateKey=u,r.DSAparam=n.define("DSAparam",function(){this.int()});var d=n.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(l),this.key("publicKey").optional().explicit(1).bitstr())});r.ECPrivateKey=d;var l=n.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});r.signature=n.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},{"821e6411e0aeb10a":"cjdy0","6bb4fbbd6e2d2384":"ebnNE"}],cjdy0:[function(e,t,r){"use strict";r.bignum=e("b4f67f473458f037"),r.define=e("3a96ab8454f69498").define,r.base=e("82a96f1d67e1a13d"),r.constants=e("f666a445bd64a777"),r.decoders=e("e200f1dc591d286b"),r.encoders=e("5ea4ddb7d1e6fcb9")},{b4f67f473458f037:"e7UCH","3a96ab8454f69498":"3aRbo","82a96f1d67e1a13d":"fa95D",f666a445bd64a777:"5Ywf9",e200f1dc591d286b:"WaCMa","5ea4ddb7d1e6fcb9":"lGnKL"}],e7UCH:[function(e,t,r){!function(t,r){"use strict";function n(e,t){if(!e)throw Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.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"))}"object"==typeof t?t.exports=a:r.BN=a,a.BN=a,a.wordSize=26;try{f="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("7f1ee543ef73731a").Buffer}catch(e){}function s(e,t){var r=e.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function o(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function c(e,t,r,n){for(var i=0,a=Math.min(e.length,r),s=t;s=49?i+=o-49+10:o>=17?i+=o-17+10:i+=o}return i}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;s-=3)a=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[i]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,i++);else if("le"===r)for(s=0,i=0;s>>26-o&67108863,(o+=24)>=26&&(o-=26,i++);return this.strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n,i=0;i=t;i-=2)n=o(e,t,i)<=18?(a-=18,s+=1,this.words[s]|=n>>>26):a+=8;else for(i=(e.length-t)%2==0?t+1:t;i=18?(a-=18,s+=1,this.words[s]|=n>>>26):a+=8;this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var a=e.length-r,s=a%n,o=Math.min(a,a-s)+r,f=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var f,u=["","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"],d=[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],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],a=0|t.words[0],s=i*a,o=67108863&s,c=s/67108864|0;r.words[0]=o;for(var f=1;f>>26,d=67108863&c,l=Math.min(f,t.length-1),h=Math.max(0,f-e.length+1);h<=l;h++){var p=f-h|0;u+=(s=(i=0|e.words[p])*(a=0|t.words[h])+d)/67108864|0,d=67108863&s}r.words[f]=0|d,c=0|u}return 0!==c?r.words[f]=0|c:r.length--,r.strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,i=0,a=0,s=0;s>>24-i&16777215)||s!==this.length-1?u[6-c.length]+c+r:c+r,(i+=2)>=26&&(i-=26,s--)}for(0!==a&&(r=a.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 f=d[e],h=l[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?m+r:u[f-m.length]+m+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")},a.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},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return n(void 0!==f),this.toArrayLike(f,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var i,a,s=this.byteLength(),o=r||Math.max(1,s);n(s<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var c=new e(o),f=this.clone();if("le"===t){for(a=0;!f.isZero();a++)i=f.andln(255),f.iushrn(8),c[a]=i;for(;a=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},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.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)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,a=0;a>>26;for(;0!==i&&a>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var a=0,s=0;s>26,this.words[s]=67108863&n;for(;0!==a&&s>26,this.words[s]=67108863&n;if(0===a&&s>>13,h=0|s[1],p=8191&h,m=h>>>13,b=0|s[2],g=8191&b,y=b>>>13,v=0|s[3],w=8191&v,_=v>>>13,E=0|s[4],A=8191&E,M=E>>>13,S=0|s[5],x=8191&S,T=S>>>13,k=0|s[6],R=8191&k,I=k>>>13,C=0|s[7],P=8191&C,O=C>>>13,N=0|s[8],j=8191&N,B=N>>>13,L=0|s[9],D=8191&L,U=L>>>13,F=0|o[0],q=8191&F,z=F>>>13,K=0|o[1],H=8191&K,V=K>>>13,W=0|o[2],G=8191&W,J=W>>>13,Z=0|o[3],$=8191&Z,X=Z>>>13,Y=0|o[4],Q=8191&Y,ee=Y>>>13,et=0|o[5],er=8191&et,en=et>>>13,ei=0|o[6],ea=8191&ei,es=ei>>>13,eo=0|o[7],ec=8191&eo,ef=eo>>>13,eu=0|o[8],ed=8191&eu,el=eu>>>13,eh=0|o[9],ep=8191&eh,em=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var eb=(f+(n=Math.imul(d,q))|0)+((8191&(i=(i=Math.imul(d,z))+Math.imul(l,q)|0))<<13)|0;f=((a=Math.imul(l,z))+(i>>>13)|0)+(eb>>>26)|0,eb&=67108863,n=Math.imul(p,q),i=(i=Math.imul(p,z))+Math.imul(m,q)|0,a=Math.imul(m,z);var eg=(f+(n=n+Math.imul(d,H)|0)|0)+((8191&(i=(i=i+Math.imul(d,V)|0)+Math.imul(l,H)|0))<<13)|0;f=((a=a+Math.imul(l,V)|0)+(i>>>13)|0)+(eg>>>26)|0,eg&=67108863,n=Math.imul(g,q),i=(i=Math.imul(g,z))+Math.imul(y,q)|0,a=Math.imul(y,z),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,H)|0,a=a+Math.imul(m,V)|0;var ey=(f+(n=n+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,J)|0)+Math.imul(l,G)|0))<<13)|0;f=((a=a+Math.imul(l,J)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=67108863,n=Math.imul(w,q),i=(i=Math.imul(w,z))+Math.imul(_,q)|0,a=Math.imul(_,z),n=n+Math.imul(g,H)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,V)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,G)|0,a=a+Math.imul(m,J)|0;var ev=(f+(n=n+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(l,$)|0))<<13)|0;f=((a=a+Math.imul(l,X)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=67108863,n=Math.imul(A,q),i=(i=Math.imul(A,z))+Math.imul(M,q)|0,a=Math.imul(M,z),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,V)|0,n=n+Math.imul(g,G)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,J)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,$)|0,a=a+Math.imul(m,X)|0;var ew=(f+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(l,Q)|0))<<13)|0;f=((a=a+Math.imul(l,ee)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=67108863,n=Math.imul(x,q),i=(i=Math.imul(x,z))+Math.imul(T,q)|0,a=Math.imul(T,z),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(M,H)|0,a=a+Math.imul(M,V)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,G)|0,a=a+Math.imul(_,J)|0,n=n+Math.imul(g,$)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(y,$)|0,a=a+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,a=a+Math.imul(m,ee)|0;var e_=(f+(n=n+Math.imul(d,er)|0)|0)+((8191&(i=(i=i+Math.imul(d,en)|0)+Math.imul(l,er)|0))<<13)|0;f=((a=a+Math.imul(l,en)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,z))+Math.imul(I,q)|0,a=Math.imul(I,z),n=n+Math.imul(x,H)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(T,H)|0,a=a+Math.imul(T,V)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(M,G)|0,a=a+Math.imul(M,J)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(_,$)|0,a=a+Math.imul(_,X)|0,n=n+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(y,Q)|0,a=a+Math.imul(y,ee)|0,n=n+Math.imul(p,er)|0,i=(i=i+Math.imul(p,en)|0)+Math.imul(m,er)|0,a=a+Math.imul(m,en)|0;var eE=(f+(n=n+Math.imul(d,ea)|0)|0)+((8191&(i=(i=i+Math.imul(d,es)|0)+Math.imul(l,ea)|0))<<13)|0;f=((a=a+Math.imul(l,es)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=67108863,n=Math.imul(P,q),i=(i=Math.imul(P,z))+Math.imul(O,q)|0,a=Math.imul(O,z),n=n+Math.imul(R,H)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,V)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(T,G)|0,a=a+Math.imul(T,J)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(M,$)|0,a=a+Math.imul(M,X)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,ee)|0,n=n+Math.imul(g,er)|0,i=(i=i+Math.imul(g,en)|0)+Math.imul(y,er)|0,a=a+Math.imul(y,en)|0,n=n+Math.imul(p,ea)|0,i=(i=i+Math.imul(p,es)|0)+Math.imul(m,ea)|0,a=a+Math.imul(m,es)|0;var eA=(f+(n=n+Math.imul(d,ec)|0)|0)+((8191&(i=(i=i+Math.imul(d,ef)|0)+Math.imul(l,ec)|0))<<13)|0;f=((a=a+Math.imul(l,ef)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=67108863,n=Math.imul(j,q),i=(i=Math.imul(j,z))+Math.imul(B,q)|0,a=Math.imul(B,z),n=n+Math.imul(P,H)|0,i=(i=i+Math.imul(P,V)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,V)|0,n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(I,G)|0,a=a+Math.imul(I,J)|0,n=n+Math.imul(x,$)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(T,$)|0,a=a+Math.imul(T,X)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(M,Q)|0,a=a+Math.imul(M,ee)|0,n=n+Math.imul(w,er)|0,i=(i=i+Math.imul(w,en)|0)+Math.imul(_,er)|0,a=a+Math.imul(_,en)|0,n=n+Math.imul(g,ea)|0,i=(i=i+Math.imul(g,es)|0)+Math.imul(y,ea)|0,a=a+Math.imul(y,es)|0,n=n+Math.imul(p,ec)|0,i=(i=i+Math.imul(p,ef)|0)+Math.imul(m,ec)|0,a=a+Math.imul(m,ef)|0;var eM=(f+(n=n+Math.imul(d,ed)|0)|0)+((8191&(i=(i=i+Math.imul(d,el)|0)+Math.imul(l,ed)|0))<<13)|0;f=((a=a+Math.imul(l,el)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,z))+Math.imul(U,q)|0,a=Math.imul(U,z),n=n+Math.imul(j,H)|0,i=(i=i+Math.imul(j,V)|0)+Math.imul(B,H)|0,a=a+Math.imul(B,V)|0,n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(O,G)|0,a=a+Math.imul(O,J)|0,n=n+Math.imul(R,$)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(I,$)|0,a=a+Math.imul(I,X)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(T,Q)|0,a=a+Math.imul(T,ee)|0,n=n+Math.imul(A,er)|0,i=(i=i+Math.imul(A,en)|0)+Math.imul(M,er)|0,a=a+Math.imul(M,en)|0,n=n+Math.imul(w,ea)|0,i=(i=i+Math.imul(w,es)|0)+Math.imul(_,ea)|0,a=a+Math.imul(_,es)|0,n=n+Math.imul(g,ec)|0,i=(i=i+Math.imul(g,ef)|0)+Math.imul(y,ec)|0,a=a+Math.imul(y,ef)|0,n=n+Math.imul(p,ed)|0,i=(i=i+Math.imul(p,el)|0)+Math.imul(m,ed)|0,a=a+Math.imul(m,el)|0;var eS=(f+(n=n+Math.imul(d,ep)|0)|0)+((8191&(i=(i=i+Math.imul(d,em)|0)+Math.imul(l,ep)|0))<<13)|0;f=((a=a+Math.imul(l,em)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=67108863,n=Math.imul(D,H),i=(i=Math.imul(D,V))+Math.imul(U,H)|0,a=Math.imul(U,V),n=n+Math.imul(j,G)|0,i=(i=i+Math.imul(j,J)|0)+Math.imul(B,G)|0,a=a+Math.imul(B,J)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(O,$)|0,a=a+Math.imul(O,X)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(I,Q)|0,a=a+Math.imul(I,ee)|0,n=n+Math.imul(x,er)|0,i=(i=i+Math.imul(x,en)|0)+Math.imul(T,er)|0,a=a+Math.imul(T,en)|0,n=n+Math.imul(A,ea)|0,i=(i=i+Math.imul(A,es)|0)+Math.imul(M,ea)|0,a=a+Math.imul(M,es)|0,n=n+Math.imul(w,ec)|0,i=(i=i+Math.imul(w,ef)|0)+Math.imul(_,ec)|0,a=a+Math.imul(_,ef)|0,n=n+Math.imul(g,ed)|0,i=(i=i+Math.imul(g,el)|0)+Math.imul(y,ed)|0,a=a+Math.imul(y,el)|0;var ex=(f+(n=n+Math.imul(p,ep)|0)|0)+((8191&(i=(i=i+Math.imul(p,em)|0)+Math.imul(m,ep)|0))<<13)|0;f=((a=a+Math.imul(m,em)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=67108863,n=Math.imul(D,G),i=(i=Math.imul(D,J))+Math.imul(U,G)|0,a=Math.imul(U,J),n=n+Math.imul(j,$)|0,i=(i=i+Math.imul(j,X)|0)+Math.imul(B,$)|0,a=a+Math.imul(B,X)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,n=n+Math.imul(R,er)|0,i=(i=i+Math.imul(R,en)|0)+Math.imul(I,er)|0,a=a+Math.imul(I,en)|0,n=n+Math.imul(x,ea)|0,i=(i=i+Math.imul(x,es)|0)+Math.imul(T,ea)|0,a=a+Math.imul(T,es)|0,n=n+Math.imul(A,ec)|0,i=(i=i+Math.imul(A,ef)|0)+Math.imul(M,ec)|0,a=a+Math.imul(M,ef)|0,n=n+Math.imul(w,ed)|0,i=(i=i+Math.imul(w,el)|0)+Math.imul(_,ed)|0,a=a+Math.imul(_,el)|0;var eT=(f+(n=n+Math.imul(g,ep)|0)|0)+((8191&(i=(i=i+Math.imul(g,em)|0)+Math.imul(y,ep)|0))<<13)|0;f=((a=a+Math.imul(y,em)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,X))+Math.imul(U,$)|0,a=Math.imul(U,X),n=n+Math.imul(j,Q)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(B,Q)|0,a=a+Math.imul(B,ee)|0,n=n+Math.imul(P,er)|0,i=(i=i+Math.imul(P,en)|0)+Math.imul(O,er)|0,a=a+Math.imul(O,en)|0,n=n+Math.imul(R,ea)|0,i=(i=i+Math.imul(R,es)|0)+Math.imul(I,ea)|0,a=a+Math.imul(I,es)|0,n=n+Math.imul(x,ec)|0,i=(i=i+Math.imul(x,ef)|0)+Math.imul(T,ec)|0,a=a+Math.imul(T,ef)|0,n=n+Math.imul(A,ed)|0,i=(i=i+Math.imul(A,el)|0)+Math.imul(M,ed)|0,a=a+Math.imul(M,el)|0;var ek=(f+(n=n+Math.imul(w,ep)|0)|0)+((8191&(i=(i=i+Math.imul(w,em)|0)+Math.imul(_,ep)|0))<<13)|0;f=((a=a+Math.imul(_,em)|0)+(i>>>13)|0)+(ek>>>26)|0,ek&=67108863,n=Math.imul(D,Q),i=(i=Math.imul(D,ee))+Math.imul(U,Q)|0,a=Math.imul(U,ee),n=n+Math.imul(j,er)|0,i=(i=i+Math.imul(j,en)|0)+Math.imul(B,er)|0,a=a+Math.imul(B,en)|0,n=n+Math.imul(P,ea)|0,i=(i=i+Math.imul(P,es)|0)+Math.imul(O,ea)|0,a=a+Math.imul(O,es)|0,n=n+Math.imul(R,ec)|0,i=(i=i+Math.imul(R,ef)|0)+Math.imul(I,ec)|0,a=a+Math.imul(I,ef)|0,n=n+Math.imul(x,ed)|0,i=(i=i+Math.imul(x,el)|0)+Math.imul(T,ed)|0,a=a+Math.imul(T,el)|0;var eR=(f+(n=n+Math.imul(A,ep)|0)|0)+((8191&(i=(i=i+Math.imul(A,em)|0)+Math.imul(M,ep)|0))<<13)|0;f=((a=a+Math.imul(M,em)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=67108863,n=Math.imul(D,er),i=(i=Math.imul(D,en))+Math.imul(U,er)|0,a=Math.imul(U,en),n=n+Math.imul(j,ea)|0,i=(i=i+Math.imul(j,es)|0)+Math.imul(B,ea)|0,a=a+Math.imul(B,es)|0,n=n+Math.imul(P,ec)|0,i=(i=i+Math.imul(P,ef)|0)+Math.imul(O,ec)|0,a=a+Math.imul(O,ef)|0,n=n+Math.imul(R,ed)|0,i=(i=i+Math.imul(R,el)|0)+Math.imul(I,ed)|0,a=a+Math.imul(I,el)|0;var eI=(f+(n=n+Math.imul(x,ep)|0)|0)+((8191&(i=(i=i+Math.imul(x,em)|0)+Math.imul(T,ep)|0))<<13)|0;f=((a=a+Math.imul(T,em)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=67108863,n=Math.imul(D,ea),i=(i=Math.imul(D,es))+Math.imul(U,ea)|0,a=Math.imul(U,es),n=n+Math.imul(j,ec)|0,i=(i=i+Math.imul(j,ef)|0)+Math.imul(B,ec)|0,a=a+Math.imul(B,ef)|0,n=n+Math.imul(P,ed)|0,i=(i=i+Math.imul(P,el)|0)+Math.imul(O,ed)|0,a=a+Math.imul(O,el)|0;var eC=(f+(n=n+Math.imul(R,ep)|0)|0)+((8191&(i=(i=i+Math.imul(R,em)|0)+Math.imul(I,ep)|0))<<13)|0;f=((a=a+Math.imul(I,em)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=67108863,n=Math.imul(D,ec),i=(i=Math.imul(D,ef))+Math.imul(U,ec)|0,a=Math.imul(U,ef),n=n+Math.imul(j,ed)|0,i=(i=i+Math.imul(j,el)|0)+Math.imul(B,ed)|0,a=a+Math.imul(B,el)|0;var eP=(f+(n=n+Math.imul(P,ep)|0)|0)+((8191&(i=(i=i+Math.imul(P,em)|0)+Math.imul(O,ep)|0))<<13)|0;f=((a=a+Math.imul(O,em)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=67108863,n=Math.imul(D,ed),i=(i=Math.imul(D,el))+Math.imul(U,ed)|0,a=Math.imul(U,el);var eO=(f+(n=n+Math.imul(j,ep)|0)|0)+((8191&(i=(i=i+Math.imul(j,em)|0)+Math.imul(B,ep)|0))<<13)|0;f=((a=a+Math.imul(B,em)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=67108863;var eN=(f+(n=Math.imul(D,ep))|0)+((8191&(i=(i=Math.imul(D,em))+Math.imul(U,ep)|0))<<13)|0;return f=((a=Math.imul(U,em))+(i>>>13)|0)+(eN>>>26)|0,eN&=67108863,c[0]=eb,c[1]=eg,c[2]=ey,c[3]=ev,c[4]=ew,c[5]=e_,c[6]=eE,c[7]=eA,c[8]=eM,c[9]=eS,c[10]=ex,c[11]=eT,c[12]=ek,c[13]=eR,c[14]=eI,c[15]=eC,c[16]=eP,c[17]=eO,c[18]=eN,0!==f&&(c[19]=f,r.length++),r};function m(e,t,r){return new b().mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(p=h),a.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):r<63?h(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,a=0;a>>26)|0)>>>26,s&=67108863}r.words[a]=o,n=s,s=i}return 0!==n?r.words[a]=n:r.length--,r.strip()}(this,e,t):m(this,e,t)},b.prototype.makeRBT=function(e){for(var t=Array(e),r=a.prototype._countBits(e)-1,n=0;n>=1;return n},b.prototype.permute=function(e,t,r,n,i,a){for(var s=0;s>>=1)i++;return 1<>>=13,r[2*s+1]=8191&a,a>>>=13;for(s=2*t;s>=26,t+=(i/67108864|0)+(a>>>26),this.words[r]=67108863&a}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>i}return t}(e);if(0===t.length)return new a(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,a=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var i,a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<s)for(this.length-=s,c=0;c=0&&(0!==f||c>=i);c--){var u=0|this.words[c];this.words[c]=f<<26-a|u>>>a,f=u&o}return r&&0!==f&&(r.words[r.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return!(this.length<=r)&&!!(this.words[r]&1<=0);var t=e%26,r=(e-t)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==t&&r++,this.length=Math.min(r,this.length),0!==t&&(this.words[this.length-1]&=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},a.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[i+r]=67108863&a}for(;i>26,this.words[i+r]=67108863&a;if(0===o)return this.strip();for(n(-1===o),o=0,i=0;i>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),s=e,o=0|s.words[s.length-1];0!=(n=26-this._countBits(o))&&(s=s.ushln(n),i.iushln(n),o=0|s.words[s.length-1]);var c=i.length-s.length;if("mod"!==t){(r=new a(null)).length=c+1,r.words=Array(r.length);for(var f=0;f=0;d--){var l=(0|i.words[s.length+d])*67108864+(0|i.words[s.length+d-1]);for(l=Math.min(l/o|0,67108863),i._ishlnsubmul(s,l,d);0!==i.negative;)l--,i.negative=0,i._ishlnsubmul(s,1,d),i.isZero()||(i.negative^=1);r&&(r.words[d]=l)}return r&&r.strip(),i.strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},a.prototype.divmod=function(e,t,r){var i,s,o;return(n(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(i=o.div.neg()),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:i,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(i=o.div.neg()),{div:i,mod:o.mod}):(this.negative&e.negative)!=0?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:o.div,mod:s}):e.length>this.length||0>this.cmp(e)?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.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),i=e.andln(1),a=r.cmp(n);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){n(e<=67108863);for(var t=67108864%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},a.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.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 i=new a(1),s=new a(0),o=new a(0),c=new a(1),f=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++f;for(var u=r.clone(),d=t.clone();!t.isZero();){for(var l=0,h=1;(t.words[0]&h)==0&&l<26;++l,h<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(u),s.isub(d)),i.iushrn(1),s.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(o.isOdd()||c.isOdd())&&(o.iadd(u),c.isub(d)),o.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(o),s.isub(c)):(r.isub(t),o.isub(i),c.isub(s))}return{a:o,b:c,gcd:r.iushln(f)}},a.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new a(1),o=new a(0),c=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var f=0,u=1;(r.words[0]&u)==0&&f<26;++f,u<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var d=0,l=1;(i.words[0]&l)==0&&d<26;++d,l<<=1);if(d>0)for(i.iushrn(d);d-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);r.cmp(i)>=0?(r.isub(i),s.isub(o)):(i.isub(r),o.isub(s))}return 0>(t=0===r.cmpn(1)?s:o).cmpn(0)&&t.iadd(e),t},a.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 i=t.cmp(r);if(i<0){var a=t;t=r,r=a}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new A(e)},a.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)},a.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"==typeof e){var t=a._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 M(e){A.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(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)}y.prototype._tmp=function(){var e=new a(null);return e.words=Array(Math.ceil(this.n/13)),e},y.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},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},i(v,y),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,i=a}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(g[e])return g[e];if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new _;else if("p25519"===e)t=new E;else throw Error("Unknown prime "+e);return g[e]=t,t},A.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},A.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},A.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);n(!i.isZero());var o=new a(1).toRed(this),c=o.redNeg(),f=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,f).cmp(c);)u.redIAdd(c);for(var d=this.pow(u,i),l=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=s;0!==h.cmp(o);){for(var m=h,b=0;0!==m.cmp(o);b++)m=m.redSqr();n(b=0;n--){for(var f=t.words[n],u=c-1;u>=0;u--){var d=f>>u&1;if(i!==r[0]&&(i=this.sqr(i)),0===d&&0===s){o=0;continue}s<<=1,s|=d,(4==++o||0===n&&0===u)&&(i=this.mul(i,r[s]),o=0,s=0)}c=26}return i},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new M(e)},i(M,A),M.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},M.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},M.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),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},M.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):0>i.cmpn(0)&&(s=i.iadd(this.m)),s._forceRed(this)},M.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)},{"7f1ee543ef73731a":"3eno3"}],"3aRbo":[function(e,t,r){"use strict";let n=e("f26403796e11865b"),i=e("a00827f0f69fbce"),a=e("64c493c8ea32f1a7");function s(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}r.define=function(e,t){return new s(e,t)},s.prototype._createNamed=function(e){let t=this.name;function r(e){this._initNamed(e,t)}return a(r,e),r.prototype._initNamed=function(t,r){e.call(this,t,r)},new r(this)},s.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(i[e])),this.decoders[e]},s.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},s.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n[e])),this.encoders[e]},s.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},{f26403796e11865b:"lGnKL",a00827f0f69fbce:"WaCMa","64c493c8ea32f1a7":"cJ2FP"}],lGnKL:[function(e,t,r){"use strict";r.der=e("6153180e09514e51"),r.pem=e("babaf0c4b3d9210a")},{"6153180e09514e51":"e161A",babaf0c4b3d9210a:"f6svv"}],e161A:[function(e,t,r){"use strict";let n=e("94789e1422bf21a1"),i=e("9dd3df095b47dfb").Buffer,a=e("ee66f238a776dfa1"),s=e("e0096fa50301b4fb");function o(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){a.call(this,"der",e)}function f(e){return e<10?"0"+e:e}t.exports=o,o.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(c,a),c.prototype._encodeComposite=function(e,t,r,n){let a=function(e,t,r,n){let i;if("seqof"===e?e="seq":"setof"===e&&(e="set"),s.tagByName.hasOwnProperty(e))i=s.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);i=e}return i>=31?n.error("Multi-octet tag encoding unsupported"):(t||(i|=32),i|=s.tagClassByName[r||"universal"]<<6)}(e,t,r,this.reporter);if(n.length<128){let e=i.alloc(2);return e[0]=a,e[1]=n.length,this._createEncoderBuffer([e,n])}let o=1;for(let e=n.length;e>=256;e>>=8)o++;let c=i.alloc(2+o);c[0]=a,c[1]=128|o;for(let e=1+o,t=n.length;t>0;e--,t>>=8)c[e]=255&t;return this._createEncoderBuffer([c,n])},c.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){let t=i.alloc(2*e.length);for(let r=0;r=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}let n=0;for(let t=0;t=128;r>>=7)n++}let a=i.alloc(n),s=a.length-1;for(let t=e.length-1;t>=0;t--){let r=e[t];for(a[s--]=127&r;(r>>=7)>0;)a[s--]=128|127&r}return this._createEncoderBuffer(a)},c.prototype._encodeTime=function(e,t){let r;let n=new Date(e);return"gentime"===t?r=[f(n.getUTCFullYear()),f(n.getUTCMonth()+1),f(n.getUTCDate()),f(n.getUTCHours()),f(n.getUTCMinutes()),f(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[f(n.getUTCFullYear()%100),f(n.getUTCMonth()+1),f(n.getUTCDate()),f(n.getUTCHours()),f(n.getUTCMinutes()),f(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},c.prototype._encodeNull=function(){return this._createEncoderBuffer("")},c.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){let t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=i.from(t)}if(i.isBuffer(e)){let t=e.length;0===e.length&&t++;let r=i.alloc(t);return e.copy(r),0===e.length&&(r[0]=0),this._createEncoderBuffer(r)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let r=1;for(let t=e;t>=256;t>>=8)r++;let n=Array(r);for(let t=n.length-1;t>=0;t--)n[t]=255&e,e>>=8;return 128&n[0]&&n.unshift(0),this._createEncoderBuffer(i.from(n))},c.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},c.prototype._skipDefault=function(e,t,r){let n;let i=this._baseState;if(null===i.default)return!1;let a=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),a.length!==i.defaultBuffer.length)return!1;for(n=0;n=2147483648)throw RangeError('The value "'+e+'" is invalid for option "size"');var n=s(e);return t&&0!==t.length?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n}),!o.kStringMaxLength)try{o.kStringMaxLength=i.binding("buffer").kStringMaxLength}catch(e){}!o.constants&&(o.constants={MAX_LENGTH:o.kMaxLength},o.kStringMaxLength&&(o.constants.MAX_STRING_LENGTH=o.kStringMaxLength)),t.exports=o},{e7af3484edf6bee9:"fg0b3","9b1fd4bf3515d7a6":"2MMCE"}],"4XjV6":[function(e,t,r){"use strict";let n=e("3f60e59b9a23b489").Reporter,i=e("485fe0fa4bfbbbca").EncoderBuffer,a=e("485fe0fa4bfbbbca").DecoderBuffer,s=e("1bf7ce79b1c01d8b"),o=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],c=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o);function f(e,t,r){let n={};this._baseState=n,n.name=r,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}t.exports=f;let u=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];f.prototype.clone=function(){let e=this._baseState,t={};u.forEach(function(r){t[r]=e[r]});let r=new this.constructor(t.parent);return r._baseState=t,r},f.prototype._wrap=function(){let e=this._baseState;c.forEach(function(t){this[t]=function(){let r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}},this)},f.prototype._init=function(e){let t=this._baseState;s(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),s.equal(t.children.length,1,"Root node can have only one child")},f.prototype._useArgs=function(e){let t=this._baseState,r=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==r.length&&(s(null===t.children),t.children=r,r.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(s(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!=typeof e||e.constructor!==Object)return e;let t={};return Object.keys(e).forEach(function(r){r==(0|r)&&(r|=0);let n=e[r];t[n]=r}),t}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(e){f.prototype[e]=function(){let t=this._baseState;throw Error(e+" not implemented for encoding: "+t.enc)}}),o.forEach(function(e){f.prototype[e]=function(){let t=this._baseState,r=Array.prototype.slice.call(arguments);return s(null===t.tag),t.tag=e,this._useArgs(r),this}}),f.prototype.use=function(e){s(e);let t=this._baseState;return s(null===t.use),t.use=e,this},f.prototype.optional=function(){let e=this._baseState;return e.optional=!0,this},f.prototype.def=function(e){let t=this._baseState;return s(null===t.default),t.default=e,t.optional=!0,this},f.prototype.explicit=function(e){let t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.explicit=e,this},f.prototype.implicit=function(e){let t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.implicit=e,this},f.prototype.obj=function(){let e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},f.prototype.key=function(e){let t=this._baseState;return s(null===t.key),t.key=e,this},f.prototype.any=function(){let e=this._baseState;return e.any=!0,this},f.prototype.choice=function(e){let t=this._baseState;return s(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},f.prototype.contains=function(e){let t=this._baseState;return s(null===t.use),t.contains=e,this},f.prototype._decode=function(e,t){let r;let n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));let i=n.default,s=!0,o=null;if(null!==n.key&&(o=e.enterKey(n.key)),n.optional){let r=null;if(null!==n.explicit?r=n.explicit:null!==n.implicit?r=n.implicit:null!==n.tag&&(r=n.tag),null!==r||n.any){if(s=this._peekTag(e,r,n.any),e.isError(s))return s}else{let r=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),s=!0}catch(e){s=!1}e.restore(r)}}if(n.obj&&s&&(r=e.enterObject()),s){if(null!==n.explicit){let t=this._decodeTag(e,n.explicit);if(e.isError(t))return t;e=t}let r=e.offset;if(null===n.use&&null===n.choice){let t;n.any&&(t=e.save());let r=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(r))return r;n.any?i=e.raw(t):e=r}if(t&&t.track&&null!==n.tag&&t.track(e.path(),r,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),n.any||(i=null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach(function(r){r._decode(e,t)}),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){let r=new a(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(r,t)}}return n.obj&&s&&(i=e.leaveObject(r)),null!==n.key&&(null!==i||!0===s)?e.leaveKey(o,n.key,i):null!==o&&e.exitKey(o),i},f.prototype._decodeGeneric=function(e,t,r){let n=this._baseState;if("seq"===e||"set"===e)return null;if("seqof"===e||"setof"===e)return this._decodeList(t,e,n.args[0],r);if(/str$/.test(e))return this._decodeStr(t,e,r);if("objid"===e&&n.args)return this._decodeObjid(t,n.args[0],n.args[1],r);if("objid"===e)return this._decodeObjid(t,null,null,r);if("gentime"===e||"utctime"===e)return this._decodeTime(t,e,r);if("null_"===e)return this._decodeNull(t,r);if("bool"===e)return this._decodeBool(t,r);else if("objDesc"===e)return this._decodeStr(t,e,r);else if("int"===e||"enum"===e)return this._decodeInt(t,n.args&&n.args[0],r);return null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},f.prototype._getUse=function(e,t){let r=this._baseState;return r.useDecoder=this._use(e,t),s(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},f.prototype._decodeChoice=function(e,t){let r=this._baseState,n=null,i=!1;return(Object.keys(r.choice).some(function(a){let s=e.save(),o=r.choice[a];try{let r=o._decode(e,t);if(e.isError(r))return!1;n={type:a,value:r},i=!0}catch(t){return e.restore(s),!1}return!0},this),i)?n:e.error("Choice not matched")},f.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},f.prototype._encode=function(e,t,r){let n=this._baseState;if(null!==n.default&&n.default===e)return;let i=this._encodeValue(e,t,r);if(void 0!==i&&!this._skipDefault(i,t,r))return i},f.prototype._encodeValue=function(e,t,r){let i=this._baseState;if(null===i.parent)return i.children[0]._encode(e,t||new n);let a=null;if(this.reporter=t,i.optional&&void 0===e){if(null===i.default)return;e=i.default}let s=null,o=!1;if(i.any)a=this._createEncoderBuffer(e);else if(i.choice)a=this._encodeChoice(e,t);else if(i.contains)s=this._getUse(i.contains,r)._encode(e,t),o=!0;else if(i.children)s=i.children.map(function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");let n=t.enterKey(r._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");let i=r._encode(e[r._baseState.key],t,e);return t.leaveKey(n),i},this).filter(function(e){return e}),s=this._createEncoderBuffer(s);else if("seqof"===i.tag||"setof"===i.tag){if(!(i.args&&1===i.args.length))return t.error("Too many args for : "+i.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");let r=this.clone();r._baseState.implicit=null,s=this._createEncoderBuffer(e.map(function(r){let n=this._baseState;return this._getUse(n.args[0],e)._encode(r,t)},r))}else null!==i.use?a=this._getUse(i.use,r)._encode(e,t):(s=this._encodePrimitive(i.tag,e),o=!0);if(!i.any&&null===i.choice){let e=null!==i.implicit?i.implicit:i.tag,r=null===i.implicit?"universal":"context";null===e?null===i.use&&t.error("Tag could be omitted only for .use()"):null===i.use&&(a=this._encodeComposite(e,o,r,s))}return null!==i.explicit&&(a=this._encodeComposite(i.explicit,!1,"context",a)),a},f.prototype._encodeChoice=function(e,t){let r=this._baseState,n=r.choice[e.type];return n||s(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},f.prototype._encodePrimitive=function(e,t){let r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);else if("objDesc"===e)return this._encodeStr(t,e);else throw Error("Unsupported tag: "+e)},f.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},f.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},{"3f60e59b9a23b489":"dVro5","485fe0fa4bfbbbca":"lGrvr","1bf7ce79b1c01d8b":"h59lk"}],dVro5:[function(e,t,r){"use strict";let n=e("cca99c6acf69321b");function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function a(e,t){this.path=e,this.rethrow(t)}r.Reporter=i,i.prototype.isError=function(e){return e instanceof a},i.prototype.save=function(){let e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){let t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){let t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,r){let n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){let e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){let t=this._reporterState,r=t.obj;return t.obj=e,r},i.prototype.error=function(e){let t;let r=this._reporterState,n=e instanceof a;if(t=n?e:new a(r.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},i.prototype.wrapResult=function(e){let t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(a,Error),a.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,a),!this.stack)try{throw Error(this.message)}catch(e){this.stack=e.stack}return this}},{cca99c6acf69321b:"cJ2FP"}],lGrvr:[function(e,t,r){"use strict";let n=e("ff35534ecc380ed3"),i=e("caca6de43dc40469").Reporter,a=e("c3dd8e06b6bddac8").Buffer;function s(e,t){if(i.call(this,t),!a.isBuffer(e)){this.error("Input not Buffer");return}this.base=e,this.offset=0,this.length=e.length}function o(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return o.isEncoderBuffer(e)||(e=new o(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=a.byteLength(e);else{if(!a.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}n(s,i),r.DecoderBuffer=s,s.isDecoderBuffer=function(e){if(e instanceof s)return!0;let t="object"==typeof e&&a.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"==typeof e.offset&&"number"==typeof e.length&&"function"==typeof e.save&&"function"==typeof e.restore&&"function"==typeof e.isEmpty&&"function"==typeof e.readUInt8&&"function"==typeof e.skip&&"function"==typeof e.raw;return t},s.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},s.prototype.restore=function(e){let t=new s(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},s.prototype.isEmpty=function(){return this.offset===this.length},s.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},s.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");let r=new s(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},s.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},r.EncoderBuffer=o,o.isEncoderBuffer=function(e){if(e instanceof o)return!0;let t="object"==typeof e&&"EncoderBuffer"===e.constructor.name&&"number"==typeof e.length&&"function"==typeof e.join;return t},o.prototype.join=function(e,t){return e||(e=a.alloc(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(r){r.join(e,t),t+=r.length}):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):a.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},{ff35534ecc380ed3:"cJ2FP",caca6de43dc40469:"dVro5",c3dd8e06b6bddac8:"c6yfp"}],"6PHFJ":[function(e,t,r){"use strict";function n(e){let t={};return Object.keys(e).forEach(function(r){(0|r)==r&&(r|=0);let n=e[r];t[n]=r}),t}r.tagClass={0:"universal",1:"application",2:"context",3:"private"},r.tagClassByName=n(r.tagClass),r.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},r.tagByName=n(r.tag)},{}],f6svv:[function(e,t,r){"use strict";let n=e("bc3c7930ded74eee"),i=e("cf885a4234262436");function a(e){i.call(this,e),this.enc="pem"}n(a,i),t.exports=a,a.prototype.encode=function(e,t){let r=i.prototype.encode.call(this,e),n=r.toString("base64"),a=["-----BEGIN "+t.label+"-----"];for(let e=0;e>6],i=(32&r)==0;if((31&r)==31){let n=r;for(r=0;(128&n)==128;){if(n=e.readUInt8(t),e.isError(n))return n;r<<=7,r|=127&n}}else r&=31;let a=o.tag[r];return{cls:n,primitive:i,tag:r,tagStr:a}}function d(e,t,r){let n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if((128&n)==0)return n;let i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(let t=0;t=e.cmpn(0)||e.cmp(t)>=t)throw Error("invalid sig")}t.exports=function(e,t,r,f,u){var d,l,h,p,m,b,g,y,v,w,_,E=s(r);if("ec"===E.type){if("ecdsa"!==f&&"ecdsa/rsa"!==f)throw Error("wrong public key type");return function(e,t,r){var n=o[r.data.algorithm.curve.join(".")];if(!n)throw Error("unknown curve "+r.data.algorithm.curve.join("."));var i=new a(n),s=r.data.subjectPrivateKey.data;return i.verify(t,e,s)}(e,t,E)}if("dsa"===E.type){if("dsa"!==f)throw Error("wrong public key type");return d=e,l=t,h=E.data.p,p=E.data.q,m=E.data.g,b=E.data.pub_key,y=(g=s.signature.decode(d,"der")).s,v=g.r,c(y,p),c(v,p),w=i.mont(h),_=y.invm(p),0===m.toRed(w).redPow(new i(l).mul(_).mod(p)).fromRed().mul(b.toRed(w).redPow(v.mul(_).mod(p)).fromRed()).mod(h).mod(p).cmp(v)}if("rsa"!==f&&"ecdsa/rsa"!==f)throw Error("wrong public key type");t=n.concat([u,t]);for(var A=E.modulus.byteLength(),M=[1],S=0;t.length+M.length+2=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function o(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function c(e,t,r,n){for(var i=0,a=Math.min(e.length,r),s=t;s=49?i+=o-49+10:o>=17?i+=o-17+10:i+=o}return i}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;s-=3)a=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[i]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,i++);else if("le"===r)for(s=0,i=0;s>>26-o&67108863,(o+=24)>=26&&(o-=26,i++);return this.strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n,i=0;i=t;i-=2)n=o(e,t,i)<=18?(a-=18,s+=1,this.words[s]|=n>>>26):a+=8;else for(i=(e.length-t)%2==0?t+1:t;i=18?(a-=18,s+=1,this.words[s]|=n>>>26):a+=8;this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var a=e.length-r,s=a%n,o=Math.min(a,a-s)+r,f=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var f,u=["","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"],d=[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],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],a=0|t.words[0],s=i*a,o=67108863&s,c=s/67108864|0;r.words[0]=o;for(var f=1;f>>26,d=67108863&c,l=Math.min(f,t.length-1),h=Math.max(0,f-e.length+1);h<=l;h++){var p=f-h|0;u+=(s=(i=0|e.words[p])*(a=0|t.words[h])+d)/67108864|0,d=67108863&s}r.words[f]=0|d,c=0|u}return 0!==c?r.words[f]=0|c:r.length--,r.strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,i=0,a=0,s=0;s>>24-i&16777215)||s!==this.length-1?u[6-c.length]+c+r:c+r,(i+=2)>=26&&(i-=26,s--)}for(0!==a&&(r=a.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 f=d[e],h=l[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?m+r:u[f-m.length]+m+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")},a.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},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return n(void 0!==f),this.toArrayLike(f,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var i,a,s=this.byteLength(),o=r||Math.max(1,s);n(s<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var c=new e(o),f=this.clone();if("le"===t){for(a=0;!f.isZero();a++)i=f.andln(255),f.iushrn(8),c[a]=i;for(;a=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},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.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)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,a=0;a>>26;for(;0!==i&&a>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var a=0,s=0;s>26,this.words[s]=67108863&n;for(;0!==a&&s>26,this.words[s]=67108863&n;if(0===a&&s>>13,h=0|s[1],p=8191&h,m=h>>>13,b=0|s[2],g=8191&b,y=b>>>13,v=0|s[3],w=8191&v,_=v>>>13,E=0|s[4],A=8191&E,M=E>>>13,S=0|s[5],x=8191&S,T=S>>>13,k=0|s[6],R=8191&k,I=k>>>13,C=0|s[7],P=8191&C,O=C>>>13,N=0|s[8],j=8191&N,B=N>>>13,L=0|s[9],D=8191&L,U=L>>>13,F=0|o[0],q=8191&F,z=F>>>13,K=0|o[1],H=8191&K,V=K>>>13,W=0|o[2],G=8191&W,J=W>>>13,Z=0|o[3],$=8191&Z,X=Z>>>13,Y=0|o[4],Q=8191&Y,ee=Y>>>13,et=0|o[5],er=8191&et,en=et>>>13,ei=0|o[6],ea=8191&ei,es=ei>>>13,eo=0|o[7],ec=8191&eo,ef=eo>>>13,eu=0|o[8],ed=8191&eu,el=eu>>>13,eh=0|o[9],ep=8191&eh,em=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var eb=(f+(n=Math.imul(d,q))|0)+((8191&(i=(i=Math.imul(d,z))+Math.imul(l,q)|0))<<13)|0;f=((a=Math.imul(l,z))+(i>>>13)|0)+(eb>>>26)|0,eb&=67108863,n=Math.imul(p,q),i=(i=Math.imul(p,z))+Math.imul(m,q)|0,a=Math.imul(m,z);var eg=(f+(n=n+Math.imul(d,H)|0)|0)+((8191&(i=(i=i+Math.imul(d,V)|0)+Math.imul(l,H)|0))<<13)|0;f=((a=a+Math.imul(l,V)|0)+(i>>>13)|0)+(eg>>>26)|0,eg&=67108863,n=Math.imul(g,q),i=(i=Math.imul(g,z))+Math.imul(y,q)|0,a=Math.imul(y,z),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,H)|0,a=a+Math.imul(m,V)|0;var ey=(f+(n=n+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,J)|0)+Math.imul(l,G)|0))<<13)|0;f=((a=a+Math.imul(l,J)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=67108863,n=Math.imul(w,q),i=(i=Math.imul(w,z))+Math.imul(_,q)|0,a=Math.imul(_,z),n=n+Math.imul(g,H)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,V)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,G)|0,a=a+Math.imul(m,J)|0;var ev=(f+(n=n+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(l,$)|0))<<13)|0;f=((a=a+Math.imul(l,X)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=67108863,n=Math.imul(A,q),i=(i=Math.imul(A,z))+Math.imul(M,q)|0,a=Math.imul(M,z),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,V)|0,n=n+Math.imul(g,G)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,J)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,$)|0,a=a+Math.imul(m,X)|0;var ew=(f+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(l,Q)|0))<<13)|0;f=((a=a+Math.imul(l,ee)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=67108863,n=Math.imul(x,q),i=(i=Math.imul(x,z))+Math.imul(T,q)|0,a=Math.imul(T,z),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(M,H)|0,a=a+Math.imul(M,V)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,G)|0,a=a+Math.imul(_,J)|0,n=n+Math.imul(g,$)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(y,$)|0,a=a+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,a=a+Math.imul(m,ee)|0;var e_=(f+(n=n+Math.imul(d,er)|0)|0)+((8191&(i=(i=i+Math.imul(d,en)|0)+Math.imul(l,er)|0))<<13)|0;f=((a=a+Math.imul(l,en)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,z))+Math.imul(I,q)|0,a=Math.imul(I,z),n=n+Math.imul(x,H)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(T,H)|0,a=a+Math.imul(T,V)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(M,G)|0,a=a+Math.imul(M,J)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(_,$)|0,a=a+Math.imul(_,X)|0,n=n+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(y,Q)|0,a=a+Math.imul(y,ee)|0,n=n+Math.imul(p,er)|0,i=(i=i+Math.imul(p,en)|0)+Math.imul(m,er)|0,a=a+Math.imul(m,en)|0;var eE=(f+(n=n+Math.imul(d,ea)|0)|0)+((8191&(i=(i=i+Math.imul(d,es)|0)+Math.imul(l,ea)|0))<<13)|0;f=((a=a+Math.imul(l,es)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=67108863,n=Math.imul(P,q),i=(i=Math.imul(P,z))+Math.imul(O,q)|0,a=Math.imul(O,z),n=n+Math.imul(R,H)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,V)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(T,G)|0,a=a+Math.imul(T,J)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(M,$)|0,a=a+Math.imul(M,X)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,ee)|0,n=n+Math.imul(g,er)|0,i=(i=i+Math.imul(g,en)|0)+Math.imul(y,er)|0,a=a+Math.imul(y,en)|0,n=n+Math.imul(p,ea)|0,i=(i=i+Math.imul(p,es)|0)+Math.imul(m,ea)|0,a=a+Math.imul(m,es)|0;var eA=(f+(n=n+Math.imul(d,ec)|0)|0)+((8191&(i=(i=i+Math.imul(d,ef)|0)+Math.imul(l,ec)|0))<<13)|0;f=((a=a+Math.imul(l,ef)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=67108863,n=Math.imul(j,q),i=(i=Math.imul(j,z))+Math.imul(B,q)|0,a=Math.imul(B,z),n=n+Math.imul(P,H)|0,i=(i=i+Math.imul(P,V)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,V)|0,n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(I,G)|0,a=a+Math.imul(I,J)|0,n=n+Math.imul(x,$)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(T,$)|0,a=a+Math.imul(T,X)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(M,Q)|0,a=a+Math.imul(M,ee)|0,n=n+Math.imul(w,er)|0,i=(i=i+Math.imul(w,en)|0)+Math.imul(_,er)|0,a=a+Math.imul(_,en)|0,n=n+Math.imul(g,ea)|0,i=(i=i+Math.imul(g,es)|0)+Math.imul(y,ea)|0,a=a+Math.imul(y,es)|0,n=n+Math.imul(p,ec)|0,i=(i=i+Math.imul(p,ef)|0)+Math.imul(m,ec)|0,a=a+Math.imul(m,ef)|0;var eM=(f+(n=n+Math.imul(d,ed)|0)|0)+((8191&(i=(i=i+Math.imul(d,el)|0)+Math.imul(l,ed)|0))<<13)|0;f=((a=a+Math.imul(l,el)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,z))+Math.imul(U,q)|0,a=Math.imul(U,z),n=n+Math.imul(j,H)|0,i=(i=i+Math.imul(j,V)|0)+Math.imul(B,H)|0,a=a+Math.imul(B,V)|0,n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(O,G)|0,a=a+Math.imul(O,J)|0,n=n+Math.imul(R,$)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(I,$)|0,a=a+Math.imul(I,X)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(T,Q)|0,a=a+Math.imul(T,ee)|0,n=n+Math.imul(A,er)|0,i=(i=i+Math.imul(A,en)|0)+Math.imul(M,er)|0,a=a+Math.imul(M,en)|0,n=n+Math.imul(w,ea)|0,i=(i=i+Math.imul(w,es)|0)+Math.imul(_,ea)|0,a=a+Math.imul(_,es)|0,n=n+Math.imul(g,ec)|0,i=(i=i+Math.imul(g,ef)|0)+Math.imul(y,ec)|0,a=a+Math.imul(y,ef)|0,n=n+Math.imul(p,ed)|0,i=(i=i+Math.imul(p,el)|0)+Math.imul(m,ed)|0,a=a+Math.imul(m,el)|0;var eS=(f+(n=n+Math.imul(d,ep)|0)|0)+((8191&(i=(i=i+Math.imul(d,em)|0)+Math.imul(l,ep)|0))<<13)|0;f=((a=a+Math.imul(l,em)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=67108863,n=Math.imul(D,H),i=(i=Math.imul(D,V))+Math.imul(U,H)|0,a=Math.imul(U,V),n=n+Math.imul(j,G)|0,i=(i=i+Math.imul(j,J)|0)+Math.imul(B,G)|0,a=a+Math.imul(B,J)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(O,$)|0,a=a+Math.imul(O,X)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(I,Q)|0,a=a+Math.imul(I,ee)|0,n=n+Math.imul(x,er)|0,i=(i=i+Math.imul(x,en)|0)+Math.imul(T,er)|0,a=a+Math.imul(T,en)|0,n=n+Math.imul(A,ea)|0,i=(i=i+Math.imul(A,es)|0)+Math.imul(M,ea)|0,a=a+Math.imul(M,es)|0,n=n+Math.imul(w,ec)|0,i=(i=i+Math.imul(w,ef)|0)+Math.imul(_,ec)|0,a=a+Math.imul(_,ef)|0,n=n+Math.imul(g,ed)|0,i=(i=i+Math.imul(g,el)|0)+Math.imul(y,ed)|0,a=a+Math.imul(y,el)|0;var ex=(f+(n=n+Math.imul(p,ep)|0)|0)+((8191&(i=(i=i+Math.imul(p,em)|0)+Math.imul(m,ep)|0))<<13)|0;f=((a=a+Math.imul(m,em)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=67108863,n=Math.imul(D,G),i=(i=Math.imul(D,J))+Math.imul(U,G)|0,a=Math.imul(U,J),n=n+Math.imul(j,$)|0,i=(i=i+Math.imul(j,X)|0)+Math.imul(B,$)|0,a=a+Math.imul(B,X)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,n=n+Math.imul(R,er)|0,i=(i=i+Math.imul(R,en)|0)+Math.imul(I,er)|0,a=a+Math.imul(I,en)|0,n=n+Math.imul(x,ea)|0,i=(i=i+Math.imul(x,es)|0)+Math.imul(T,ea)|0,a=a+Math.imul(T,es)|0,n=n+Math.imul(A,ec)|0,i=(i=i+Math.imul(A,ef)|0)+Math.imul(M,ec)|0,a=a+Math.imul(M,ef)|0,n=n+Math.imul(w,ed)|0,i=(i=i+Math.imul(w,el)|0)+Math.imul(_,ed)|0,a=a+Math.imul(_,el)|0;var eT=(f+(n=n+Math.imul(g,ep)|0)|0)+((8191&(i=(i=i+Math.imul(g,em)|0)+Math.imul(y,ep)|0))<<13)|0;f=((a=a+Math.imul(y,em)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,X))+Math.imul(U,$)|0,a=Math.imul(U,X),n=n+Math.imul(j,Q)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(B,Q)|0,a=a+Math.imul(B,ee)|0,n=n+Math.imul(P,er)|0,i=(i=i+Math.imul(P,en)|0)+Math.imul(O,er)|0,a=a+Math.imul(O,en)|0,n=n+Math.imul(R,ea)|0,i=(i=i+Math.imul(R,es)|0)+Math.imul(I,ea)|0,a=a+Math.imul(I,es)|0,n=n+Math.imul(x,ec)|0,i=(i=i+Math.imul(x,ef)|0)+Math.imul(T,ec)|0,a=a+Math.imul(T,ef)|0,n=n+Math.imul(A,ed)|0,i=(i=i+Math.imul(A,el)|0)+Math.imul(M,ed)|0,a=a+Math.imul(M,el)|0;var ek=(f+(n=n+Math.imul(w,ep)|0)|0)+((8191&(i=(i=i+Math.imul(w,em)|0)+Math.imul(_,ep)|0))<<13)|0;f=((a=a+Math.imul(_,em)|0)+(i>>>13)|0)+(ek>>>26)|0,ek&=67108863,n=Math.imul(D,Q),i=(i=Math.imul(D,ee))+Math.imul(U,Q)|0,a=Math.imul(U,ee),n=n+Math.imul(j,er)|0,i=(i=i+Math.imul(j,en)|0)+Math.imul(B,er)|0,a=a+Math.imul(B,en)|0,n=n+Math.imul(P,ea)|0,i=(i=i+Math.imul(P,es)|0)+Math.imul(O,ea)|0,a=a+Math.imul(O,es)|0,n=n+Math.imul(R,ec)|0,i=(i=i+Math.imul(R,ef)|0)+Math.imul(I,ec)|0,a=a+Math.imul(I,ef)|0,n=n+Math.imul(x,ed)|0,i=(i=i+Math.imul(x,el)|0)+Math.imul(T,ed)|0,a=a+Math.imul(T,el)|0;var eR=(f+(n=n+Math.imul(A,ep)|0)|0)+((8191&(i=(i=i+Math.imul(A,em)|0)+Math.imul(M,ep)|0))<<13)|0;f=((a=a+Math.imul(M,em)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=67108863,n=Math.imul(D,er),i=(i=Math.imul(D,en))+Math.imul(U,er)|0,a=Math.imul(U,en),n=n+Math.imul(j,ea)|0,i=(i=i+Math.imul(j,es)|0)+Math.imul(B,ea)|0,a=a+Math.imul(B,es)|0,n=n+Math.imul(P,ec)|0,i=(i=i+Math.imul(P,ef)|0)+Math.imul(O,ec)|0,a=a+Math.imul(O,ef)|0,n=n+Math.imul(R,ed)|0,i=(i=i+Math.imul(R,el)|0)+Math.imul(I,ed)|0,a=a+Math.imul(I,el)|0;var eI=(f+(n=n+Math.imul(x,ep)|0)|0)+((8191&(i=(i=i+Math.imul(x,em)|0)+Math.imul(T,ep)|0))<<13)|0;f=((a=a+Math.imul(T,em)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=67108863,n=Math.imul(D,ea),i=(i=Math.imul(D,es))+Math.imul(U,ea)|0,a=Math.imul(U,es),n=n+Math.imul(j,ec)|0,i=(i=i+Math.imul(j,ef)|0)+Math.imul(B,ec)|0,a=a+Math.imul(B,ef)|0,n=n+Math.imul(P,ed)|0,i=(i=i+Math.imul(P,el)|0)+Math.imul(O,ed)|0,a=a+Math.imul(O,el)|0;var eC=(f+(n=n+Math.imul(R,ep)|0)|0)+((8191&(i=(i=i+Math.imul(R,em)|0)+Math.imul(I,ep)|0))<<13)|0;f=((a=a+Math.imul(I,em)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=67108863,n=Math.imul(D,ec),i=(i=Math.imul(D,ef))+Math.imul(U,ec)|0,a=Math.imul(U,ef),n=n+Math.imul(j,ed)|0,i=(i=i+Math.imul(j,el)|0)+Math.imul(B,ed)|0,a=a+Math.imul(B,el)|0;var eP=(f+(n=n+Math.imul(P,ep)|0)|0)+((8191&(i=(i=i+Math.imul(P,em)|0)+Math.imul(O,ep)|0))<<13)|0;f=((a=a+Math.imul(O,em)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=67108863,n=Math.imul(D,ed),i=(i=Math.imul(D,el))+Math.imul(U,ed)|0,a=Math.imul(U,el);var eO=(f+(n=n+Math.imul(j,ep)|0)|0)+((8191&(i=(i=i+Math.imul(j,em)|0)+Math.imul(B,ep)|0))<<13)|0;f=((a=a+Math.imul(B,em)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=67108863;var eN=(f+(n=Math.imul(D,ep))|0)+((8191&(i=(i=Math.imul(D,em))+Math.imul(U,ep)|0))<<13)|0;return f=((a=Math.imul(U,em))+(i>>>13)|0)+(eN>>>26)|0,eN&=67108863,c[0]=eb,c[1]=eg,c[2]=ey,c[3]=ev,c[4]=ew,c[5]=e_,c[6]=eE,c[7]=eA,c[8]=eM,c[9]=eS,c[10]=ex,c[11]=eT,c[12]=ek,c[13]=eR,c[14]=eI,c[15]=eC,c[16]=eP,c[17]=eO,c[18]=eN,0!==f&&(c[19]=f,r.length++),r};function m(e,t,r){return new b().mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(p=h),a.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):r<63?h(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,a=0;a>>26)|0)>>>26,s&=67108863}r.words[a]=o,n=s,s=i}return 0!==n?r.words[a]=n:r.length--,r.strip()}(this,e,t):m(this,e,t)},b.prototype.makeRBT=function(e){for(var t=Array(e),r=a.prototype._countBits(e)-1,n=0;n>=1;return n},b.prototype.permute=function(e,t,r,n,i,a){for(var s=0;s>>=1)i++;return 1<>>=13,r[2*s+1]=8191&a,a>>>=13;for(s=2*t;s>=26,t+=(i/67108864|0)+(a>>>26),this.words[r]=67108863&a}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>i}return t}(e);if(0===t.length)return new a(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,a=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var i,a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<s)for(this.length-=s,c=0;c=0&&(0!==f||c>=i);c--){var u=0|this.words[c];this.words[c]=f<<26-a|u>>>a,f=u&o}return r&&0!==f&&(r.words[r.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return!(this.length<=r)&&!!(this.words[r]&1<=0);var t=e%26,r=(e-t)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==t&&r++,this.length=Math.min(r,this.length),0!==t&&(this.words[this.length-1]&=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},a.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[i+r]=67108863&a}for(;i>26,this.words[i+r]=67108863&a;if(0===o)return this.strip();for(n(-1===o),o=0,i=0;i>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),s=e,o=0|s.words[s.length-1];0!=(n=26-this._countBits(o))&&(s=s.ushln(n),i.iushln(n),o=0|s.words[s.length-1]);var c=i.length-s.length;if("mod"!==t){(r=new a(null)).length=c+1,r.words=Array(r.length);for(var f=0;f=0;d--){var l=(0|i.words[s.length+d])*67108864+(0|i.words[s.length+d-1]);for(l=Math.min(l/o|0,67108863),i._ishlnsubmul(s,l,d);0!==i.negative;)l--,i.negative=0,i._ishlnsubmul(s,1,d),i.isZero()||(i.negative^=1);r&&(r.words[d]=l)}return r&&r.strip(),i.strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},a.prototype.divmod=function(e,t,r){var i,s,o;return(n(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(i=o.div.neg()),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:i,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(i=o.div.neg()),{div:i,mod:o.mod}):(this.negative&e.negative)!=0?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:o.div,mod:s}):e.length>this.length||0>this.cmp(e)?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.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),i=e.andln(1),a=r.cmp(n);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){n(e<=67108863);for(var t=67108864%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},a.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.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 i=new a(1),s=new a(0),o=new a(0),c=new a(1),f=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++f;for(var u=r.clone(),d=t.clone();!t.isZero();){for(var l=0,h=1;(t.words[0]&h)==0&&l<26;++l,h<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(u),s.isub(d)),i.iushrn(1),s.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(o.isOdd()||c.isOdd())&&(o.iadd(u),c.isub(d)),o.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(o),s.isub(c)):(r.isub(t),o.isub(i),c.isub(s))}return{a:o,b:c,gcd:r.iushln(f)}},a.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new a(1),o=new a(0),c=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var f=0,u=1;(r.words[0]&u)==0&&f<26;++f,u<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var d=0,l=1;(i.words[0]&l)==0&&d<26;++d,l<<=1);if(d>0)for(i.iushrn(d);d-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);r.cmp(i)>=0?(r.isub(i),s.isub(o)):(i.isub(r),o.isub(s))}return 0>(t=0===r.cmpn(1)?s:o).cmpn(0)&&t.iadd(e),t},a.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 i=t.cmp(r);if(i<0){var a=t;t=r,r=a}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new A(e)},a.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)},a.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"==typeof e){var t=a._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 M(e){A.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(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)}y.prototype._tmp=function(){var e=new a(null);return e.words=Array(Math.ceil(this.n/13)),e},y.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},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},i(v,y),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,i=a}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(g[e])return g[e];if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new _;else if("p25519"===e)t=new E;else throw Error("Unknown prime "+e);return g[e]=t,t},A.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},A.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},A.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);n(!i.isZero());var o=new a(1).toRed(this),c=o.redNeg(),f=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,f).cmp(c);)u.redIAdd(c);for(var d=this.pow(u,i),l=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=s;0!==h.cmp(o);){for(var m=h,b=0;0!==m.cmp(o);b++)m=m.redSqr();n(b=0;n--){for(var f=t.words[n],u=c-1;u>=0;u--){var d=f>>u&1;if(i!==r[0]&&(i=this.sqr(i)),0===d&&0===s){o=0;continue}s<<=1,s|=d,(4==++o||0===n&&0===u)&&(i=this.mul(i,r[s]),o=0,s=0)}c=26}return i},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new M(e)},i(M,A),M.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},M.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},M.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),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},M.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):0>i.cmpn(0)&&(s=i.iadd(this.m)),s._forceRed(this)},M.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)},{"1b9e2dcc2d1e58c5":"3eno3"}],jtpXE:[function(e,t,r){r.publicEncrypt=e("d84cba4f52311cc8"),r.privateDecrypt=e("f9c6d8fbe09b61c"),r.privateEncrypt=function(e,t){return r.publicEncrypt(e,t,!0)},r.publicDecrypt=function(e,t){return r.privateDecrypt(e,t,!0)}},{d84cba4f52311cc8:"5TlHi",f9c6d8fbe09b61c:"kaYjd"}],"5TlHi":[function(e,t,r){var n=e("ca2697dbde558d1"),i=e("4704ad09aa96a56b"),a=e("b8a92fd1d9e43252"),s=e("469be15a31031bba"),o=e("f9f3694c0f7388b6"),c=e("cb7a38ec1a0039d7"),f=e("969e1e2dd90e2fbe"),u=e("9022efe01867a612"),d=e("d610bb618706f42f").Buffer;t.exports=function(e,t,r){l=e.padding?e.padding:r?1:4;var l,h,p=n(e);if(4===l)h=function(e,t){var r=e.modulus.byteLength(),n=t.length,f=a("sha1").update(d.alloc(0)).digest(),u=f.length,l=2*u;if(n>r-l-2)throw Error("message too long");var h=d.alloc(r-n-l-2),p=r-u-1,m=i(u),b=o(d.concat([f,h,d.alloc(1,1),t],p),s(m,p)),g=o(m,s(b,u));return new c(d.concat([d.alloc(1),g,b],r))}(p,t);else if(1===l)h=function(e,t,r){var n,a=t.length,s=e.modulus.byteLength();if(a>s-11)throw Error("message too long");return n=r?d.alloc(s-a-3,255):function(e){for(var t,r=d.allocUnsafe(e),n=0,a=i(2*e),s=0;n=0)throw Error("data too long for modulus")}else throw Error("unknown padding");return r?u(h,p):f(h,p)}},{ca2697dbde558d1:"6XduM","4704ad09aa96a56b":"6xAZm",b8a92fd1d9e43252:"cCtrs","469be15a31031bba":"gJHL1",f9f3694c0f7388b6:"hGH6g",cb7a38ec1a0039d7:"9DpW1","969e1e2dd90e2fbe":"9jyud","9022efe01867a612":"9CU5S",d610bb618706f42f:"6CY3D"}],gJHL1:[function(e,t,r){var n=e("b36bb21196daa39"),i=e("cfa1ea60eac1ebfa").Buffer;t.exports=function(e,t){for(var r,a=i.alloc(0),s=0;a.length=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function o(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function c(e,t,r,n){for(var i=0,a=Math.min(e.length,r),s=t;s=49?i+=o-49+10:o>=17?i+=o-17+10:i+=o}return i}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;s-=3)a=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[i]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,i++);else if("le"===r)for(s=0,i=0;s>>26-o&67108863,(o+=24)>=26&&(o-=26,i++);return this.strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n,i=0;i=t;i-=2)n=o(e,t,i)<=18?(a-=18,s+=1,this.words[s]|=n>>>26):a+=8;else for(i=(e.length-t)%2==0?t+1:t;i=18?(a-=18,s+=1,this.words[s]|=n>>>26):a+=8;this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var a=e.length-r,s=a%n,o=Math.min(a,a-s)+r,f=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var f,u=["","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"],d=[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],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],a=0|t.words[0],s=i*a,o=67108863&s,c=s/67108864|0;r.words[0]=o;for(var f=1;f>>26,d=67108863&c,l=Math.min(f,t.length-1),h=Math.max(0,f-e.length+1);h<=l;h++){var p=f-h|0;u+=(s=(i=0|e.words[p])*(a=0|t.words[h])+d)/67108864|0,d=67108863&s}r.words[f]=0|d,c=0|u}return 0!==c?r.words[f]=0|c:r.length--,r.strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,i=0,a=0,s=0;s>>24-i&16777215)||s!==this.length-1?u[6-c.length]+c+r:c+r,(i+=2)>=26&&(i-=26,s--)}for(0!==a&&(r=a.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 f=d[e],h=l[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?m+r:u[f-m.length]+m+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")},a.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},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return n(void 0!==f),this.toArrayLike(f,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var i,a,s=this.byteLength(),o=r||Math.max(1,s);n(s<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var c=new e(o),f=this.clone();if("le"===t){for(a=0;!f.isZero();a++)i=f.andln(255),f.iushrn(8),c[a]=i;for(;a=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},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.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)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,a=0;a>>26;for(;0!==i&&a>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var a=0,s=0;s>26,this.words[s]=67108863&n;for(;0!==a&&s>26,this.words[s]=67108863&n;if(0===a&&s>>13,h=0|s[1],p=8191&h,m=h>>>13,b=0|s[2],g=8191&b,y=b>>>13,v=0|s[3],w=8191&v,_=v>>>13,E=0|s[4],A=8191&E,M=E>>>13,S=0|s[5],x=8191&S,T=S>>>13,k=0|s[6],R=8191&k,I=k>>>13,C=0|s[7],P=8191&C,O=C>>>13,N=0|s[8],j=8191&N,B=N>>>13,L=0|s[9],D=8191&L,U=L>>>13,F=0|o[0],q=8191&F,z=F>>>13,K=0|o[1],H=8191&K,V=K>>>13,W=0|o[2],G=8191&W,J=W>>>13,Z=0|o[3],$=8191&Z,X=Z>>>13,Y=0|o[4],Q=8191&Y,ee=Y>>>13,et=0|o[5],er=8191&et,en=et>>>13,ei=0|o[6],ea=8191&ei,es=ei>>>13,eo=0|o[7],ec=8191&eo,ef=eo>>>13,eu=0|o[8],ed=8191&eu,el=eu>>>13,eh=0|o[9],ep=8191&eh,em=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var eb=(f+(n=Math.imul(d,q))|0)+((8191&(i=(i=Math.imul(d,z))+Math.imul(l,q)|0))<<13)|0;f=((a=Math.imul(l,z))+(i>>>13)|0)+(eb>>>26)|0,eb&=67108863,n=Math.imul(p,q),i=(i=Math.imul(p,z))+Math.imul(m,q)|0,a=Math.imul(m,z);var eg=(f+(n=n+Math.imul(d,H)|0)|0)+((8191&(i=(i=i+Math.imul(d,V)|0)+Math.imul(l,H)|0))<<13)|0;f=((a=a+Math.imul(l,V)|0)+(i>>>13)|0)+(eg>>>26)|0,eg&=67108863,n=Math.imul(g,q),i=(i=Math.imul(g,z))+Math.imul(y,q)|0,a=Math.imul(y,z),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,H)|0,a=a+Math.imul(m,V)|0;var ey=(f+(n=n+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,J)|0)+Math.imul(l,G)|0))<<13)|0;f=((a=a+Math.imul(l,J)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=67108863,n=Math.imul(w,q),i=(i=Math.imul(w,z))+Math.imul(_,q)|0,a=Math.imul(_,z),n=n+Math.imul(g,H)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,V)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,G)|0,a=a+Math.imul(m,J)|0;var ev=(f+(n=n+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(l,$)|0))<<13)|0;f=((a=a+Math.imul(l,X)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=67108863,n=Math.imul(A,q),i=(i=Math.imul(A,z))+Math.imul(M,q)|0,a=Math.imul(M,z),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,V)|0,n=n+Math.imul(g,G)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,J)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,$)|0,a=a+Math.imul(m,X)|0;var ew=(f+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(l,Q)|0))<<13)|0;f=((a=a+Math.imul(l,ee)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=67108863,n=Math.imul(x,q),i=(i=Math.imul(x,z))+Math.imul(T,q)|0,a=Math.imul(T,z),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(M,H)|0,a=a+Math.imul(M,V)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,G)|0,a=a+Math.imul(_,J)|0,n=n+Math.imul(g,$)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(y,$)|0,a=a+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,a=a+Math.imul(m,ee)|0;var e_=(f+(n=n+Math.imul(d,er)|0)|0)+((8191&(i=(i=i+Math.imul(d,en)|0)+Math.imul(l,er)|0))<<13)|0;f=((a=a+Math.imul(l,en)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,z))+Math.imul(I,q)|0,a=Math.imul(I,z),n=n+Math.imul(x,H)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(T,H)|0,a=a+Math.imul(T,V)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(M,G)|0,a=a+Math.imul(M,J)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(_,$)|0,a=a+Math.imul(_,X)|0,n=n+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(y,Q)|0,a=a+Math.imul(y,ee)|0,n=n+Math.imul(p,er)|0,i=(i=i+Math.imul(p,en)|0)+Math.imul(m,er)|0,a=a+Math.imul(m,en)|0;var eE=(f+(n=n+Math.imul(d,ea)|0)|0)+((8191&(i=(i=i+Math.imul(d,es)|0)+Math.imul(l,ea)|0))<<13)|0;f=((a=a+Math.imul(l,es)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=67108863,n=Math.imul(P,q),i=(i=Math.imul(P,z))+Math.imul(O,q)|0,a=Math.imul(O,z),n=n+Math.imul(R,H)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,V)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(T,G)|0,a=a+Math.imul(T,J)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(M,$)|0,a=a+Math.imul(M,X)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,ee)|0,n=n+Math.imul(g,er)|0,i=(i=i+Math.imul(g,en)|0)+Math.imul(y,er)|0,a=a+Math.imul(y,en)|0,n=n+Math.imul(p,ea)|0,i=(i=i+Math.imul(p,es)|0)+Math.imul(m,ea)|0,a=a+Math.imul(m,es)|0;var eA=(f+(n=n+Math.imul(d,ec)|0)|0)+((8191&(i=(i=i+Math.imul(d,ef)|0)+Math.imul(l,ec)|0))<<13)|0;f=((a=a+Math.imul(l,ef)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=67108863,n=Math.imul(j,q),i=(i=Math.imul(j,z))+Math.imul(B,q)|0,a=Math.imul(B,z),n=n+Math.imul(P,H)|0,i=(i=i+Math.imul(P,V)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,V)|0,n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(I,G)|0,a=a+Math.imul(I,J)|0,n=n+Math.imul(x,$)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(T,$)|0,a=a+Math.imul(T,X)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(M,Q)|0,a=a+Math.imul(M,ee)|0,n=n+Math.imul(w,er)|0,i=(i=i+Math.imul(w,en)|0)+Math.imul(_,er)|0,a=a+Math.imul(_,en)|0,n=n+Math.imul(g,ea)|0,i=(i=i+Math.imul(g,es)|0)+Math.imul(y,ea)|0,a=a+Math.imul(y,es)|0,n=n+Math.imul(p,ec)|0,i=(i=i+Math.imul(p,ef)|0)+Math.imul(m,ec)|0,a=a+Math.imul(m,ef)|0;var eM=(f+(n=n+Math.imul(d,ed)|0)|0)+((8191&(i=(i=i+Math.imul(d,el)|0)+Math.imul(l,ed)|0))<<13)|0;f=((a=a+Math.imul(l,el)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,z))+Math.imul(U,q)|0,a=Math.imul(U,z),n=n+Math.imul(j,H)|0,i=(i=i+Math.imul(j,V)|0)+Math.imul(B,H)|0,a=a+Math.imul(B,V)|0,n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(O,G)|0,a=a+Math.imul(O,J)|0,n=n+Math.imul(R,$)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(I,$)|0,a=a+Math.imul(I,X)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(T,Q)|0,a=a+Math.imul(T,ee)|0,n=n+Math.imul(A,er)|0,i=(i=i+Math.imul(A,en)|0)+Math.imul(M,er)|0,a=a+Math.imul(M,en)|0,n=n+Math.imul(w,ea)|0,i=(i=i+Math.imul(w,es)|0)+Math.imul(_,ea)|0,a=a+Math.imul(_,es)|0,n=n+Math.imul(g,ec)|0,i=(i=i+Math.imul(g,ef)|0)+Math.imul(y,ec)|0,a=a+Math.imul(y,ef)|0,n=n+Math.imul(p,ed)|0,i=(i=i+Math.imul(p,el)|0)+Math.imul(m,ed)|0,a=a+Math.imul(m,el)|0;var eS=(f+(n=n+Math.imul(d,ep)|0)|0)+((8191&(i=(i=i+Math.imul(d,em)|0)+Math.imul(l,ep)|0))<<13)|0;f=((a=a+Math.imul(l,em)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=67108863,n=Math.imul(D,H),i=(i=Math.imul(D,V))+Math.imul(U,H)|0,a=Math.imul(U,V),n=n+Math.imul(j,G)|0,i=(i=i+Math.imul(j,J)|0)+Math.imul(B,G)|0,a=a+Math.imul(B,J)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(O,$)|0,a=a+Math.imul(O,X)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(I,Q)|0,a=a+Math.imul(I,ee)|0,n=n+Math.imul(x,er)|0,i=(i=i+Math.imul(x,en)|0)+Math.imul(T,er)|0,a=a+Math.imul(T,en)|0,n=n+Math.imul(A,ea)|0,i=(i=i+Math.imul(A,es)|0)+Math.imul(M,ea)|0,a=a+Math.imul(M,es)|0,n=n+Math.imul(w,ec)|0,i=(i=i+Math.imul(w,ef)|0)+Math.imul(_,ec)|0,a=a+Math.imul(_,ef)|0,n=n+Math.imul(g,ed)|0,i=(i=i+Math.imul(g,el)|0)+Math.imul(y,ed)|0,a=a+Math.imul(y,el)|0;var ex=(f+(n=n+Math.imul(p,ep)|0)|0)+((8191&(i=(i=i+Math.imul(p,em)|0)+Math.imul(m,ep)|0))<<13)|0;f=((a=a+Math.imul(m,em)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=67108863,n=Math.imul(D,G),i=(i=Math.imul(D,J))+Math.imul(U,G)|0,a=Math.imul(U,J),n=n+Math.imul(j,$)|0,i=(i=i+Math.imul(j,X)|0)+Math.imul(B,$)|0,a=a+Math.imul(B,X)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,n=n+Math.imul(R,er)|0,i=(i=i+Math.imul(R,en)|0)+Math.imul(I,er)|0,a=a+Math.imul(I,en)|0,n=n+Math.imul(x,ea)|0,i=(i=i+Math.imul(x,es)|0)+Math.imul(T,ea)|0,a=a+Math.imul(T,es)|0,n=n+Math.imul(A,ec)|0,i=(i=i+Math.imul(A,ef)|0)+Math.imul(M,ec)|0,a=a+Math.imul(M,ef)|0,n=n+Math.imul(w,ed)|0,i=(i=i+Math.imul(w,el)|0)+Math.imul(_,ed)|0,a=a+Math.imul(_,el)|0;var eT=(f+(n=n+Math.imul(g,ep)|0)|0)+((8191&(i=(i=i+Math.imul(g,em)|0)+Math.imul(y,ep)|0))<<13)|0;f=((a=a+Math.imul(y,em)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,X))+Math.imul(U,$)|0,a=Math.imul(U,X),n=n+Math.imul(j,Q)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(B,Q)|0,a=a+Math.imul(B,ee)|0,n=n+Math.imul(P,er)|0,i=(i=i+Math.imul(P,en)|0)+Math.imul(O,er)|0,a=a+Math.imul(O,en)|0,n=n+Math.imul(R,ea)|0,i=(i=i+Math.imul(R,es)|0)+Math.imul(I,ea)|0,a=a+Math.imul(I,es)|0,n=n+Math.imul(x,ec)|0,i=(i=i+Math.imul(x,ef)|0)+Math.imul(T,ec)|0,a=a+Math.imul(T,ef)|0,n=n+Math.imul(A,ed)|0,i=(i=i+Math.imul(A,el)|0)+Math.imul(M,ed)|0,a=a+Math.imul(M,el)|0;var ek=(f+(n=n+Math.imul(w,ep)|0)|0)+((8191&(i=(i=i+Math.imul(w,em)|0)+Math.imul(_,ep)|0))<<13)|0;f=((a=a+Math.imul(_,em)|0)+(i>>>13)|0)+(ek>>>26)|0,ek&=67108863,n=Math.imul(D,Q),i=(i=Math.imul(D,ee))+Math.imul(U,Q)|0,a=Math.imul(U,ee),n=n+Math.imul(j,er)|0,i=(i=i+Math.imul(j,en)|0)+Math.imul(B,er)|0,a=a+Math.imul(B,en)|0,n=n+Math.imul(P,ea)|0,i=(i=i+Math.imul(P,es)|0)+Math.imul(O,ea)|0,a=a+Math.imul(O,es)|0,n=n+Math.imul(R,ec)|0,i=(i=i+Math.imul(R,ef)|0)+Math.imul(I,ec)|0,a=a+Math.imul(I,ef)|0,n=n+Math.imul(x,ed)|0,i=(i=i+Math.imul(x,el)|0)+Math.imul(T,ed)|0,a=a+Math.imul(T,el)|0;var eR=(f+(n=n+Math.imul(A,ep)|0)|0)+((8191&(i=(i=i+Math.imul(A,em)|0)+Math.imul(M,ep)|0))<<13)|0;f=((a=a+Math.imul(M,em)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=67108863,n=Math.imul(D,er),i=(i=Math.imul(D,en))+Math.imul(U,er)|0,a=Math.imul(U,en),n=n+Math.imul(j,ea)|0,i=(i=i+Math.imul(j,es)|0)+Math.imul(B,ea)|0,a=a+Math.imul(B,es)|0,n=n+Math.imul(P,ec)|0,i=(i=i+Math.imul(P,ef)|0)+Math.imul(O,ec)|0,a=a+Math.imul(O,ef)|0,n=n+Math.imul(R,ed)|0,i=(i=i+Math.imul(R,el)|0)+Math.imul(I,ed)|0,a=a+Math.imul(I,el)|0;var eI=(f+(n=n+Math.imul(x,ep)|0)|0)+((8191&(i=(i=i+Math.imul(x,em)|0)+Math.imul(T,ep)|0))<<13)|0;f=((a=a+Math.imul(T,em)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=67108863,n=Math.imul(D,ea),i=(i=Math.imul(D,es))+Math.imul(U,ea)|0,a=Math.imul(U,es),n=n+Math.imul(j,ec)|0,i=(i=i+Math.imul(j,ef)|0)+Math.imul(B,ec)|0,a=a+Math.imul(B,ef)|0,n=n+Math.imul(P,ed)|0,i=(i=i+Math.imul(P,el)|0)+Math.imul(O,ed)|0,a=a+Math.imul(O,el)|0;var eC=(f+(n=n+Math.imul(R,ep)|0)|0)+((8191&(i=(i=i+Math.imul(R,em)|0)+Math.imul(I,ep)|0))<<13)|0;f=((a=a+Math.imul(I,em)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=67108863,n=Math.imul(D,ec),i=(i=Math.imul(D,ef))+Math.imul(U,ec)|0,a=Math.imul(U,ef),n=n+Math.imul(j,ed)|0,i=(i=i+Math.imul(j,el)|0)+Math.imul(B,ed)|0,a=a+Math.imul(B,el)|0;var eP=(f+(n=n+Math.imul(P,ep)|0)|0)+((8191&(i=(i=i+Math.imul(P,em)|0)+Math.imul(O,ep)|0))<<13)|0;f=((a=a+Math.imul(O,em)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=67108863,n=Math.imul(D,ed),i=(i=Math.imul(D,el))+Math.imul(U,ed)|0,a=Math.imul(U,el);var eO=(f+(n=n+Math.imul(j,ep)|0)|0)+((8191&(i=(i=i+Math.imul(j,em)|0)+Math.imul(B,ep)|0))<<13)|0;f=((a=a+Math.imul(B,em)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=67108863;var eN=(f+(n=Math.imul(D,ep))|0)+((8191&(i=(i=Math.imul(D,em))+Math.imul(U,ep)|0))<<13)|0;return f=((a=Math.imul(U,em))+(i>>>13)|0)+(eN>>>26)|0,eN&=67108863,c[0]=eb,c[1]=eg,c[2]=ey,c[3]=ev,c[4]=ew,c[5]=e_,c[6]=eE,c[7]=eA,c[8]=eM,c[9]=eS,c[10]=ex,c[11]=eT,c[12]=ek,c[13]=eR,c[14]=eI,c[15]=eC,c[16]=eP,c[17]=eO,c[18]=eN,0!==f&&(c[19]=f,r.length++),r};function m(e,t,r){return new b().mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(p=h),a.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):r<63?h(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,a=0;a>>26)|0)>>>26,s&=67108863}r.words[a]=o,n=s,s=i}return 0!==n?r.words[a]=n:r.length--,r.strip()}(this,e,t):m(this,e,t)},b.prototype.makeRBT=function(e){for(var t=Array(e),r=a.prototype._countBits(e)-1,n=0;n>=1;return n},b.prototype.permute=function(e,t,r,n,i,a){for(var s=0;s>>=1)i++;return 1<>>=13,r[2*s+1]=8191&a,a>>>=13;for(s=2*t;s>=26,t+=(i/67108864|0)+(a>>>26),this.words[r]=67108863&a}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>i}return t}(e);if(0===t.length)return new a(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,a=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var i,a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<s)for(this.length-=s,c=0;c=0&&(0!==f||c>=i);c--){var u=0|this.words[c];this.words[c]=f<<26-a|u>>>a,f=u&o}return r&&0!==f&&(r.words[r.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return!(this.length<=r)&&!!(this.words[r]&1<=0);var t=e%26,r=(e-t)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==t&&r++,this.length=Math.min(r,this.length),0!==t&&(this.words[this.length-1]&=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},a.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[i+r]=67108863&a}for(;i>26,this.words[i+r]=67108863&a;if(0===o)return this.strip();for(n(-1===o),o=0,i=0;i>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),s=e,o=0|s.words[s.length-1];0!=(n=26-this._countBits(o))&&(s=s.ushln(n),i.iushln(n),o=0|s.words[s.length-1]);var c=i.length-s.length;if("mod"!==t){(r=new a(null)).length=c+1,r.words=Array(r.length);for(var f=0;f=0;d--){var l=(0|i.words[s.length+d])*67108864+(0|i.words[s.length+d-1]);for(l=Math.min(l/o|0,67108863),i._ishlnsubmul(s,l,d);0!==i.negative;)l--,i.negative=0,i._ishlnsubmul(s,1,d),i.isZero()||(i.negative^=1);r&&(r.words[d]=l)}return r&&r.strip(),i.strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},a.prototype.divmod=function(e,t,r){var i,s,o;return(n(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(i=o.div.neg()),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:i,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(i=o.div.neg()),{div:i,mod:o.mod}):(this.negative&e.negative)!=0?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:o.div,mod:s}):e.length>this.length||0>this.cmp(e)?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.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),i=e.andln(1),a=r.cmp(n);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){n(e<=67108863);for(var t=67108864%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},a.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.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 i=new a(1),s=new a(0),o=new a(0),c=new a(1),f=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++f;for(var u=r.clone(),d=t.clone();!t.isZero();){for(var l=0,h=1;(t.words[0]&h)==0&&l<26;++l,h<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(u),s.isub(d)),i.iushrn(1),s.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(o.isOdd()||c.isOdd())&&(o.iadd(u),c.isub(d)),o.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(o),s.isub(c)):(r.isub(t),o.isub(i),c.isub(s))}return{a:o,b:c,gcd:r.iushln(f)}},a.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new a(1),o=new a(0),c=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var f=0,u=1;(r.words[0]&u)==0&&f<26;++f,u<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var d=0,l=1;(i.words[0]&l)==0&&d<26;++d,l<<=1);if(d>0)for(i.iushrn(d);d-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);r.cmp(i)>=0?(r.isub(i),s.isub(o)):(i.isub(r),o.isub(s))}return 0>(t=0===r.cmpn(1)?s:o).cmpn(0)&&t.iadd(e),t},a.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 i=t.cmp(r);if(i<0){var a=t;t=r,r=a}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new A(e)},a.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)},a.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"==typeof e){var t=a._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 M(e){A.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(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)}y.prototype._tmp=function(){var e=new a(null);return e.words=Array(Math.ceil(this.n/13)),e},y.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},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},i(v,y),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,i=a}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(g[e])return g[e];if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new _;else if("p25519"===e)t=new E;else throw Error("Unknown prime "+e);return g[e]=t,t},A.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},A.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},A.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);n(!i.isZero());var o=new a(1).toRed(this),c=o.redNeg(),f=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,f).cmp(c);)u.redIAdd(c);for(var d=this.pow(u,i),l=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=s;0!==h.cmp(o);){for(var m=h,b=0;0!==m.cmp(o);b++)m=m.redSqr();n(b=0;n--){for(var f=t.words[n],u=c-1;u>=0;u--){var d=f>>u&1;if(i!==r[0]&&(i=this.sqr(i)),0===d&&0===s){o=0;continue}s<<=1,s|=d,(4==++o||0===n&&0===u)&&(i=this.mul(i,r[s]),o=0,s=0)}c=26}return i},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new M(e)},i(M,A),M.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},M.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},M.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),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},M.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):0>i.cmpn(0)&&(s=i.iadd(this.m)),s._forceRed(this)},M.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)},{"64c9d23ade4c9eaa":"3eno3"}],"9jyud":[function(e,t,r){var n=e("94162e508c4195c3"),i=e("1bab2adfd8072b94").Buffer;t.exports=function(e,t){return i.from(e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed().toArray())}},{"94162e508c4195c3":"9DpW1","1bab2adfd8072b94":"6CY3D"}],kaYjd:[function(e,t,r){var n=e("6c46b1d8bb7eae7b"),i=e("9e51003323ea065d"),a=e("637b57d34a8dda25"),s=e("3927561f39566b29"),o=e("521cbc4ce6042d5b"),c=e("95282d7c0e66f364"),f=e("1bc2f92e3c398dbe"),u=e("802d086fb6d63368").Buffer;t.exports=function(e,t,r){d=e.padding?e.padding:r?1:4;var d,l,h=n(e),p=h.modulus.byteLength();if(t.length>p||new s(t).cmp(h.modulus)>=0)throw Error("decryption error");l=r?f(new s(t),h):o(t,h);var m=u.alloc(p-l.length);if(l=u.concat([m,l],p),4===d)return function(e,t){var r=e.modulus.byteLength(),n=c("sha1").update(u.alloc(0)).digest(),s=n.length;if(0!==t[0])throw Error("decryption error");var o=t.slice(1,s+1),f=t.slice(s+1),d=a(o,i(f,s)),l=a(f,i(d,r-s-1));if(function(e,t){e=u.from(e),t=u.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));for(var i=-1;++i=t.length){a++;break}var s=t.slice(2,i-1);if(("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&a++,s.length<8&&a++,a)throw Error("decryption error");return t.slice(i)}(0,l,r);if(3===d)return l;throw Error("unknown padding")}},{"6c46b1d8bb7eae7b":"6XduM","9e51003323ea065d":"gJHL1","637b57d34a8dda25":"hGH6g","3927561f39566b29":"9DpW1","521cbc4ce6042d5b":"9CU5S","95282d7c0e66f364":"cCtrs","1bc2f92e3c398dbe":"9jyud","802d086fb6d63368":"6CY3D"}],"51dpI":[function(e,t,r){"use strict";var n=arguments[3],i=e("e52c82591caff1d7");function a(){throw Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var s=e("954d667c0302f12c");e("7041a0e993c249ef");var o=s.Buffer,c=s.kMaxLength,f=n.crypto||n.msCrypto;function u(e,t){if("number"!=typeof e||e!=e)throw TypeError("offset must be a number");if(e>4294967295||e<0)throw TypeError("offset must be a uint32");if(e>c||e>t)throw RangeError("offset out of range")}function d(e,t,r){if("number"!=typeof e||e!=e)throw TypeError("size must be a number");if(e>4294967295||e<0)throw TypeError("size must be a uint32");if(e+t>r||e>c)throw RangeError("buffer too small")}function l(e,t,r,n){var a=e.buffer,s=new Uint8Array(a,t,r);if(f.getRandomValues(s),n){i.nextTick(function(){n(null,e)});return}return e}f&&f.getRandomValues?(r.randomFill=function(e,t,r,i){if(!o.isBuffer(e)&&!(e instanceof n.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)i=t,t=0,r=e.length;else if("function"==typeof r)i=r,r=e.length-t;else if("function"!=typeof i)throw TypeError('"cb" argument must be a function');return u(t,e.length),d(r,t,e.length),l(e,t,r,i)},r.randomFillSync=function(e,t,r){if(void 0===t&&(t=0),!o.isBuffer(e)&&!(e instanceof n.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');return u(t,e.length),void 0===r&&(r=e.length-t),d(r,t,e.length),l(e,t,r)}):(r.randomFill=a,r.randomFillSync=a)},{e52c82591caff1d7:"fg0b3","954d667c0302f12c":"6CY3D","7041a0e993c249ef":"6xAZm"}],kf6Fl:[function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=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(r,"__esModule",{value:!0}),r.isHexString=r.getKeys=r.fromAscii=r.fromUtf8=r.toAscii=r.arrayContainsArray=r.getBinarySize=r.padToEven=r.stripHexPrefix=r.isHexPrefixed=void 0,i(e("bf50b53e66bd78ae"),r),i(e("dd065c472b0551aa"),r),i(e("b115ace1c5aaed38"),r),i(e("88e46d1ab0420a67"),r),i(e("7f5682ba3d2490bd"),r),i(e("a4db0028d96db3f7"),r),i(e("9acdd69c57d35035"),r),i(e("3d470417433d9941"),r),i(e("5aa2cb509ed6c32d"),r);var a=e("287b1e51e2efbb0c");Object.defineProperty(r,"isHexPrefixed",{enumerable:!0,get:function(){return a.isHexPrefixed}}),Object.defineProperty(r,"stripHexPrefix",{enumerable:!0,get:function(){return a.stripHexPrefix}}),Object.defineProperty(r,"padToEven",{enumerable:!0,get:function(){return a.padToEven}}),Object.defineProperty(r,"getBinarySize",{enumerable:!0,get:function(){return a.getBinarySize}}),Object.defineProperty(r,"arrayContainsArray",{enumerable:!0,get:function(){return a.arrayContainsArray}}),Object.defineProperty(r,"toAscii",{enumerable:!0,get:function(){return a.toAscii}}),Object.defineProperty(r,"fromUtf8",{enumerable:!0,get:function(){return a.fromUtf8}}),Object.defineProperty(r,"fromAscii",{enumerable:!0,get:function(){return a.fromAscii}}),Object.defineProperty(r,"getKeys",{enumerable:!0,get:function(){return a.getKeys}}),Object.defineProperty(r,"isHexString",{enumerable:!0,get:function(){return a.isHexString}})},{bf50b53e66bd78ae:"lkw7f",dd065c472b0551aa:"bzwNx",b115ace1c5aaed38:"h1KCF","88e46d1ab0420a67":"ipL9G","7f5682ba3d2490bd":"bqbjN",a4db0028d96db3f7:"kZa0v","9acdd69c57d35035":"4p8A4","3d470417433d9941":"hx2li","5aa2cb509ed6c32d":"eWBQO","287b1e51e2efbb0c":"1a9Yl"}],lkw7f:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.KECCAK256_RLP=r.KECCAK256_RLP_S=r.KECCAK256_RLP_ARRAY=r.KECCAK256_RLP_ARRAY_S=r.KECCAK256_NULL=r.KECCAK256_NULL_S=r.TWO_POW256=r.MAX_INTEGER=r.MAX_UINT64=void 0;var n=e("4a8a1726ff33f9ec"),i=e("20245c0ea7c8fba9");r.MAX_UINT64=new i.BN("ffffffffffffffff",16),r.MAX_INTEGER=new i.BN("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),r.TWO_POW256=new i.BN("10000000000000000000000000000000000000000000000000000000000000000",16),r.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",r.KECCAK256_NULL=n.Buffer.from(r.KECCAK256_NULL_S,"hex"),r.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",r.KECCAK256_RLP_ARRAY=n.Buffer.from(r.KECCAK256_RLP_ARRAY_S,"hex"),r.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",r.KECCAK256_RLP=n.Buffer.from(r.KECCAK256_RLP_S,"hex")},{"4a8a1726ff33f9ec":"2MMCE","20245c0ea7c8fba9":"hx2li"}],hx2li:[function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=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 i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.rlp=r.BN=void 0;var o=s(e("861b9458cf98e3bd"));r.BN=o.default;var c=a(e("cc920cb59362bdcc"));r.rlp=c},{"861b9458cf98e3bd":"lXPno",cc920cb59362bdcc:"ctmWm"}],ctmWm:[function(e,t,r){var n=e("c4f3522d609e2bb4").Buffer;"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.getLength=r.decode=r.encode=void 0;var a=i(e("f2de64fac014d334"));function s(e,t){if("0"===e[0]&&"0"===e[1])throw Error("invalid RLP: extra zeros");return parseInt(e,t)}function o(e,t){if(e<56)return n.from([e+t]);var r=f(e),i=f(t+55+r.length/2);return n.from(i+r,"hex")}function c(e){return"0x"===e.slice(0,2)}function f(e){if(e<0)throw Error("Invalid integer as argument, must be unsigned!");var t=e.toString(16);return t.length%2?"0"+t:t}function u(e){if(!n.isBuffer(e)){var t,r;if("string"==typeof e)return c(e)?n.from((t="string"!=typeof e?e:c(e)?e.slice(2):e).length%2?"0"+t:t,"hex"):n.from(e);if("number"==typeof e||"bigint"==typeof e)return e?(r=f(e),n.from(r,"hex")):n.from([]);if(null==e)return n.from([]);if(e instanceof Uint8Array)return n.from(e);else if(a.default.isBN(e))return n.from(e.toArray());else throw Error("invalid type")}return e}r.encode=function e(t){if(Array.isArray(t)){for(var r=[],i=0;it.length)throw Error("invalid rlp: total length is larger than the data");if(0===(o=t.slice(i,d)).length)throw Error("invalid rlp, List has a invalid length");for(;o.length;)c=e(o),f.push(c.data),o=c.remainder;return{data:f,remainder:t.slice(d)}}(u(e));if(t)return r;if(0!==r.remainder.length)throw Error("invalid remainder");return r.data},r.getLength=function(e){if(!e||0===e.length)return n.from([]);var t=u(e),r=t[0];if(r<=127)return t.length;if(r<=183)return r-127;if(r<=191)return r-182;if(r<=247)return r-191;var i=r-246,a=s(t.slice(1,i).toString("hex"),16);return i+a}},{c4f3522d609e2bb4:"2MMCE",f2de64fac014d334:"lXPno"}],bzwNx:[function(e,t,r){"use strict";var n=e("239680ae77fd7256").Buffer,i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return s},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.isZeroAddress=r.zeroAddress=r.importPublic=r.privateToAddress=r.privateToPublic=r.publicToAddress=r.pubToAddress=r.isValidPublic=r.isValidPrivate=r.generateAddress2=r.generateAddress=r.isValidChecksumAddress=r.toChecksumAddress=r.isValidAddress=r.Account=void 0;var s=a(e("c625d04718b44934")),o=e("d826c36f7dbc8b6b"),c=e("ad9f6d50db6ac3d9"),f=e("b589310d0858a77a"),u=e("afb5aa690896402c"),d=e("94c371da3aa3838f"),l=e("e0d93e4c6eac12d8"),h=e("947105c4c404cdce"),p=e("aebdc58a1d4e01a9"),m=function(){function e(e,t,r,n){void 0===e&&(e=new o.BN(0)),void 0===t&&(t=new o.BN(0)),void 0===r&&(r=u.KECCAK256_RLP),void 0===n&&(n=u.KECCAK256_NULL),this.nonce=e,this.balance=t,this.stateRoot=r,this.codeHash=n,this._validate()}return e.fromAccountData=function(t){var r=t.nonce,n=t.balance,i=t.stateRoot,a=t.codeHash;return new e(r?new o.BN((0,d.toBuffer)(r)):void 0,n?new o.BN((0,d.toBuffer)(n)):void 0,i?(0,d.toBuffer)(i):void 0,a?(0,d.toBuffer)(a):void 0)},e.fromRlpSerializedAccount=function(e){var t=o.rlp.decode(e);if(!Array.isArray(t))throw Error("Invalid serialized account input. Must be array");return this.fromValuesArray(t)},e.fromValuesArray=function(t){var r=i(t,4),n=r[0],a=r[1],s=r[2],c=r[3];return new e(new o.BN(n),new o.BN(a),s,c)},e.prototype._validate=function(){if(this.nonce.lt(new o.BN(0)))throw Error("nonce must be greater than zero");if(this.balance.lt(new o.BN(0)))throw Error("balance must be greater than zero");if(32!==this.stateRoot.length)throw Error("stateRoot must have a length of 32");if(32!==this.codeHash.length)throw Error("codeHash must have a length of 32")},e.prototype.raw=function(){return[(0,p.bnToUnpaddedBuffer)(this.nonce),(0,p.bnToUnpaddedBuffer)(this.balance),this.stateRoot,this.codeHash]},e.prototype.serialize=function(){return o.rlp.encode(this.raw())},e.prototype.isContract=function(){return!this.codeHash.equals(u.KECCAK256_NULL)},e.prototype.isEmpty=function(){return this.balance.isZero()&&this.nonce.isZero()&&this.codeHash.equals(u.KECCAK256_NULL)},e}();r.Account=m,r.isValidAddress=function(e){try{(0,h.assertIsString)(e)}catch(e){return!1}return/^0x[0-9a-fA-F]{40}$/.test(e)},r.toChecksumAddress=function(e,t){(0,h.assertIsHexString)(e);var r=(0,f.stripHexPrefix)(e).toLowerCase(),n="";t&&(n=(0,p.toType)(t,p.TypeOutput.BN).toString()+"0x");for(var i=(0,l.keccakFromString)(n+r).toString("hex"),a="0x",s=0;s=8?a+=r[s].toUpperCase():a+=r[s];return a},r.isValidChecksumAddress=function(e,t){return(0,r.isValidAddress)(e)&&(0,r.toChecksumAddress)(e,t)===e},r.generateAddress=function(e,t){(0,h.assertIsBuffer)(e),(0,h.assertIsBuffer)(t);var r=new o.BN(t);return r.isZero()?(0,l.rlphash)([e,null]).slice(-20):(0,l.rlphash)([e,n.from(r.toArray())]).slice(-20)},r.generateAddress2=function(e,t,r){return(0,h.assertIsBuffer)(e),(0,h.assertIsBuffer)(t),(0,h.assertIsBuffer)(r),(0,s.default)(20===e.length),(0,s.default)(32===t.length),(0,l.keccak256)(n.concat([n.from("ff","hex"),e,t,(0,l.keccak256)(r)])).slice(-20)},r.isValidPrivate=function(e){return(0,c.privateKeyVerify)(e)},r.isValidPublic=function(e,t){return(void 0===t&&(t=!1),(0,h.assertIsBuffer)(e),64===e.length)?(0,c.publicKeyVerify)(n.concat([n.from([4]),e])):!!t&&(0,c.publicKeyVerify)(e)},r.pubToAddress=function(e,t){return void 0===t&&(t=!1),(0,h.assertIsBuffer)(e),t&&64!==e.length&&(e=n.from((0,c.publicKeyConvert)(e,!1).slice(1))),(0,s.default)(64===e.length),(0,l.keccak)(e).slice(-20)},r.publicToAddress=r.pubToAddress,r.privateToPublic=function(e){return(0,h.assertIsBuffer)(e),n.from((0,c.publicKeyCreate)(e,!1)).slice(1)},r.privateToAddress=function(e){return(0,r.publicToAddress)((0,r.privateToPublic)(e))},r.importPublic=function(e){return(0,h.assertIsBuffer)(e),64!==e.length&&(e=n.from((0,c.publicKeyConvert)(e,!1).slice(1))),e},r.zeroAddress=function(){var e=(0,d.zeros)(20);return(0,d.bufferToHex)(e)},r.isZeroAddress=function(e){try{(0,h.assertIsString)(e)}catch(e){return!1}return(0,r.zeroAddress)()===e}},{"239680ae77fd7256":"2MMCE",c625d04718b44934:"aeMhE",d826c36f7dbc8b6b:"hx2li",ad9f6d50db6ac3d9:"jWaCZ",b589310d0858a77a:"1a9Yl",afb5aa690896402c:"lkw7f","94c371da3aa3838f":"kZa0v",e0d93e4c6eac12d8:"ipL9G","947105c4c404cdce":"70pb8",aebdc58a1d4e01a9:"eWBQO"}],aeMhE:[function(e,t,r){"use strict";var n,i,a=e("17530e9a8e9dd8de");function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=e("67930e3bebc18ea9").codes,c=o.ERR_AMBIGUOUS_ARGUMENT,f=o.ERR_INVALID_ARG_TYPE,u=o.ERR_INVALID_ARG_VALUE,d=o.ERR_INVALID_RETURN_VALUE,l=o.ERR_MISSING_ARGS,h=e("11bdd262fb706a54"),p=e("d61a3396666721b6").inspect,m=e("d61a3396666721b6").types,b=m.isPromise,g=m.isRegExp,y=Object.assign?Object.assign:e("613bbc2cfb4d4558").assign,v=Object.is?Object.is:e("f909244cb7b0ea0c");function w(){var t=e("131e25d2408617a4");n=t.isDeepEqual,i=t.isDeepStrictEqual}var _=!1,E=t.exports=x,A={};function M(e){if(e.message instanceof Error)throw e.message;throw new h(e)}function S(e,t,r,n){if(!r){var i=!1;if(0===t)i=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var a=new h({actual:r,expected:!0,message:n,operator:"==",stackStartFn:e});throw a.generatedMessage=i,a}}function x(){for(var e=arguments.length,t=Array(e),r=0;r1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i2)?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}f("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),f("ERR_INVALID_ARG_TYPE",function(t,r,i){if((void 0===s&&(s=e("f73a3052b95b9ed")),s("string"==typeof t,"'name' must be a string"),"string"==typeof r&&(a="not ",r.substr(!o||o<0?0:+o,a.length)===a))?(l="must not be",r=r.replace(/^not /,"")):l="must be",c=" argument",(void 0===f||f>t.length)&&(f=t.length),t.substring(f-c.length,f)===c)h="The ".concat(t," ").concat(l," ").concat(u(r,"type"));else{var a,o,c,f,d,l,h,p=("number"!=typeof d&&(d=0),d+1>t.length||-1===t.indexOf(".",d))?"argument":"property";h='The "'.concat(t,'" ').concat(p," ").concat(l," ").concat(u(r,"type"))}return h+". Received type ".concat(n(i))},TypeError),f("ERR_INVALID_ARG_VALUE",function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===o&&(o=e("1fd472100fa8826f"));var i=o.inspect(r);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(n,". Received ").concat(i)},TypeError,RangeError),f("ERR_INVALID_RETURN_VALUE",function(e,t,r){var i;return i=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")},TypeError),f("ERR_MISSING_ARGS",function(){for(var t=arguments.length,r=Array(t),n=0;n0,"At least one arg needs to be specified");var i="The ",a=r.length;switch(r=r.map(function(e){return'"'.concat(e,'"')}),a){case 1:i+="".concat(r[0]," argument");break;case 2:i+="".concat(r[0]," and ").concat(r[1]," arguments");break;default:i+=r.slice(0,a-1).join(", ")+", and ".concat(r[a-1]," arguments")}return"".concat(i," must be specified")},TypeError),t.exports.codes=c},{f73a3052b95b9ed:"aeMhE","1fd472100fa8826f":"iQBwz"}],iQBwz:[function(e,t,r){var n=e("bc23a3ea4a141c0b"),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),o=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(t)?n.showHidden=t:t&&r._extend(n,t),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=f),d(n,e,n.depth)}function f(e,t){var r=c.styles[t];return r?"\x1b["+c.colors[r][0]+"m"+e+"\x1b["+c.colors[r][1]+"m":e}function u(e,t){return e}function d(e,t,n){if(e.customInspect&&t&&M(t.inspect)&&t.inspect!==r.inspect&&!(t.constructor&&t.constructor.prototype===t)){var i,a,s,o,c,f=t.inspect(n,e);return y(f)||(f=d(e,f,n)),f}var u=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(y(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return g(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):b(t)?e.stylize("null","null"):void 0}(e,t);if(u)return u;var _=Object.keys(t),S=(o={},_.forEach(function(e,t){o[e]=!0}),o);if(e.showHidden&&(_=Object.getOwnPropertyNames(t)),A(t)&&(_.indexOf("message")>=0||_.indexOf("description")>=0))return l(t);if(0===_.length){if(M(t)){var x=t.name?": "+t.name:"";return e.stylize("[Function"+x+"]","special")}if(w(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(E(t))return e.stylize(Date.prototype.toString.call(t),"date");if(A(t))return l(t)}var T="",R=!1,I=["{","}"];return(p(t)&&(R=!0,I=["[","]"]),M(t)&&(T=" [Function"+(t.name?": "+t.name:"")+"]"),w(t)&&(T=" "+RegExp.prototype.toString.call(t)),E(t)&&(T=" "+Date.prototype.toUTCString.call(t)),A(t)&&(T=" "+l(t)),0!==_.length||R&&0!=t.length)?n<0?w(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=R?function(e,t,r,n,i){for(var a=[],s=0,o=t.length;s=0&&s++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?a[0]+(""===i?"":i+"\n ")+" "+c.join(",\n ")+" "+a[1]:a[0]+i+" "+c.join(", ")+" "+a[1]):I[0]+T+I[1]}function l(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,r,n,i,a){var s,o,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?o=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(o=e.stylize("[Setter]","special")),k(n,i)||(s="["+i+"]"),!o&&(0>e.seen.indexOf(c.value)?(o=b(r)?d(e,c.value,null):d(e,c.value,r-1)).indexOf("\n")>-1&&(o=a?o.split("\n").map(function(e){return" "+e}).join("\n").slice(2):"\n"+o.split("\n").map(function(e){return" "+e}).join("\n")):o=e.stylize("[Circular]","special")),v(s)){if(a&&i.match(/^\d+$/))return o;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+o}function p(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function b(e){return null===e}function g(e){return"number"==typeof e}function y(e){return"string"==typeof e}function v(e){return void 0===e}function w(e){return _(e)&&"[object RegExp]"===S(e)}function _(e){return"object"==typeof e&&null!==e}function E(e){return _(e)&&"[object Date]"===S(e)}function A(e){return _(e)&&("[object Error]"===S(e)||e instanceof Error)}function M(e){return"function"==typeof e}function S(e){return Object.prototype.toString.call(e)}function x(e){return e<10?"0"+e.toString(10):e.toString(10)}r.debuglog=function(e){if(!s[e=e.toUpperCase()]){if(o.test(e)){var t=n.pid;s[e]=function(){var n=r.format.apply(r,arguments);console.error("%s %d: %s",e,t,n)}}else s[e]=function(){}}return s[e]},r.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},r.types=e("6a1c15bae847a134"),r.isArray=p,r.isBoolean=m,r.isNull=b,r.isNullOrUndefined=function(e){return null==e},r.isNumber=g,r.isString=y,r.isSymbol=function(e){return"symbol"==typeof e},r.isUndefined=v,r.isRegExp=w,r.types.isRegExp=w,r.isObject=_,r.isDate=E,r.types.isDate=E,r.isError=A,r.types.isNativeError=A,r.isFunction=M,r.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},r.isBuffer=e("a42137cd7fc8700d");var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function k(e,t){return Object.prototype.hasOwnProperty.call(e,t)}r.log=function(){var e,t;console.log("%s - %s",(t=[x((e=new Date).getHours()),x(e.getMinutes()),x(e.getSeconds())].join(":"),[e.getDate(),T[e.getMonth()],t].join(" ")),r.format.apply(r,arguments))},r.inherits=e("a792e8e3e2aa1973"),r._extend=function(e,t){if(!t||!_(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var R="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function I(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}r.promisify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(R&&e[R]){var t=e[R];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,R,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),i=[],a=0;a=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},o=function(){return a(arguments)}();a.isLegacyArguments=s,t.exports=o?a:s},{e2b01ce809f132fb:"8kCl3","649cbf9949986a39":"dGEhg"}],"8kCl3":[function(e,t,r){"use strict";var n=e("2ef89576d4959bff");t.exports=function(){return n()&&!!Symbol.toStringTag}},{"2ef89576d4959bff":"iaBeb"}],iaBeb:[function(e,t,r){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},{}],dGEhg:[function(e,t,r){"use strict";var n=e("8b08ecb81cf4de17"),i=e("266fc50410cfc4a"),a=i(n("String.prototype.indexOf"));t.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&a(e,".prototype.")>-1?i(r):r}},{"8b08ecb81cf4de17":"i6CEG","266fc50410cfc4a":"kP5zq"}],i6CEG:[function(e,t,r){"use strict";var n,i=SyntaxError,a=Function,s=TypeError,o=function(e){try{return a('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var f=function(){throw new s},u=c?function(){try{return arguments.callee,f}catch(e){try{return c(arguments,"callee").get}catch(e){return f}}}():f,d=e("1f00f712d594ccf")(),l=e("23730654306aa64c")(),h=Object.getPrototypeOf||(l?function(e){return e.__proto__}:null),p={},m="undefined"!=typeof Uint8Array&&h?h(Uint8Array):n,b={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":d&&h?h([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":d&&h?h(h([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&d&&h?h(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&d&&h?h(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d&&h?h(""[Symbol.iterator]()):n,"%Symbol%":d?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":u,"%TypedArray%":m,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(h)try{null.error}catch(e){var g=h(h(e));b["%Error.prototype%"]=g}var y=function e(t){var r;if("%AsyncFunction%"===t)r=o("async function () {}");else if("%GeneratorFunction%"===t)r=o("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=o("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&h&&(r=h(i.prototype))}return b[t]=r,r},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},w=e("7c5e688e48cd07b0"),_=e("b03d0058935d00bf"),E=w.call(Function.call,Array.prototype.concat),A=w.call(Function.apply,Array.prototype.splice),M=w.call(Function.call,String.prototype.replace),S=w.call(Function.call,String.prototype.slice),x=w.call(Function.call,RegExp.prototype.exec),T=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,k=/\\(\\)?/g,R=function(e){var t=S(e,0,1),r=S(e,-1);if("%"===t&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return M(e,T,function(e,t,r,i){n[n.length]=r?M(i,k,"$1"):t||e}),n},I=function(e,t){var r,n=e;if(_(v,n)&&(n="%"+(r=v[n])[0]+"%"),_(b,n)){var a=b[n];if(a===p&&(a=y(n)),void 0===a&&!t)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:a}}throw new i("intrinsic "+e+" does not exist!")};t.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new s('"allowMissing" argument must be a boolean');if(null===x(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=R(e),n=r.length>0?r[0]:"",a=I("%"+n+"%",t),o=a.name,f=a.value,u=!1,d=a.alias;d&&(n=d[0],A(r,E([0,1],d)));for(var l=1,h=!0;l=r.length){var y=c(f,p);f=(h=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:f[p]}else h=_(f,p),f=f[p];h&&!u&&(b[o]=f)}}return f}},{"1f00f712d594ccf":"hqwBR","23730654306aa64c":"2oIP9","7c5e688e48cd07b0":"sXn6L",b03d0058935d00bf:"crIfq"}],hqwBR:[function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=e("3fb25678c62d2fce");t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},{"3fb25678c62d2fce":"iaBeb"}],"2oIP9":[function(e,t,r){"use strict";var n={foo:{}},i=Object;t.exports=function(){return({__proto__:n}).foo===n.foo&&!(({__proto__:null})instanceof i)}},{}],sXn6L:[function(e,t,r){"use strict";var n=e("ebece74382f80db9");t.exports=Function.prototype.bind||n},{ebece74382f80db9:"POx14"}],POx14:[function(e,t,r){"use strict";var n=Array.prototype.slice,i=Object.prototype.toString;t.exports=function(e){var t,r=this;if("function"!=typeof r||"[object Function]"!==i.call(r))throw TypeError("Function.prototype.bind called on incompatible "+r);for(var a=n.call(arguments,1),s=Math.max(0,r.length-a.length),o=[],c=0;c-1?t:"Object"===t&&y(e)}return c?g(e):null}},{"2941d48f36957e3c":"brr8P",beaf5502a5823cce:"2kFgN",e5d203a1b4c809f9:"kP5zq","83f633f9b335db8f":"dGEhg",ce6b45c571ba4e3e:"8Spe5","9e7ef6c88184c56":"8kCl3"}],brr8P:[function(e,t,r){"use strict";var n=e("e50ebc24bbb25feb"),i=Object.prototype.toString,a=Object.prototype.hasOwnProperty,s=function(e,t,r){for(var n=0,i=e.length;n=3&&(a=r),"[object Array]"===i.call(e)?s(e,t,a):"string"==typeof e?o(e,t,a):c(e,t,a)}},{e50ebc24bbb25feb:"3XeZC"}],"3XeZC":[function(e,t,r){"use strict";var n,i,a=Function.prototype.toString,s="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof s&&"function"==typeof Object.defineProperty)try{n=Object.defineProperty({},"length",{get:function(){throw i}}),i={},s(function(){throw 42},null,n)}catch(e){e!==i&&(s=null)}else s=null;var o=/^\s*class\b/,c=function(e){try{var t=a.call(e);return o.test(t)}catch(e){return!1}},f=function(e){try{if(c(e))return!1;return a.call(e),!0}catch(e){return!1}},u=Object.prototype.toString,d="function"==typeof Symbol&&!!Symbol.toStringTag,l=!(0 in[,]),h=function(){return!1};if("object"==typeof document){var p=document.all;u.call(p)===u.call(document.all)&&(h=function(e){if((l||!e)&&(void 0===e||"object"==typeof e))try{var t=u.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}t.exports=s?function(e){if(h(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;try{s(e,null,n)}catch(e){if(e!==i)return!1}return!c(e)&&f(e)}:function(e){if(h(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;if(d)return f(e);if(c(e))return!1;var t=u.call(e);return!!("[object Function]"===t||"[object GeneratorFunction]"===t||/^\[object HTML/.test(t))&&f(e)}},{}],"2kFgN":[function(e,t,r){"use strict";var n=arguments[3],i=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],a="undefined"==typeof globalThis?n:globalThis;t.exports=function(){for(var e=[],t=0;te.length)&&(r=e.length),e.substring(r-t.length,r)===t}var m="",b="",g="",y="",v={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function w(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(t){r[t]=e[t]}),Object.defineProperty(r,"message",{value:e.message}),r}function _(e){return l(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var E=function(e){var t,r;function o(e){if(!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),"object"!==d(e)||null===e)throw new h("options","Object",e);var t,r=e.message,i=e.operator,c=e.stackStartFn,f=e.actual,l=e.expected,E=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=r)t=a(this,u(o).call(this,String(r)));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(m="\x1b[34m",b="\x1b[32m",y="\x1b[39m",g="\x1b[31m"):(m="",b="",y="",g="")),"object"===d(f)&&null!==f&&"object"===d(l)&&null!==l&&"stack"in f&&f instanceof Error&&"stack"in l&&l instanceof Error&&(f=w(f),l=w(l)),"deepStrictEqual"===i||"strictEqual"===i)t=a(this,u(o).call(this,function(e,t,r){var i="",a="",s=0,o="",c=!1,f=_(e),u=f.split("\n"),l=_(t).split("\n"),h=0,w="";if("strictEqual"===r&&"object"===d(e)&&"object"===d(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===u.length&&1===l.length&&u[0]!==l[0]){var E=u[0].length+l[0].length;if(E<=10){if(("object"!==d(e)||null===e)&&("object"!==d(t)||null===t)&&(0!==e||0!==t))return"".concat(v[r],"\n\n")+"".concat(u[0]," !== ").concat(l[0],"\n")}else if("strictEqualObject"!==r&&E<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;u[0][h]===l[0][h];)h++;h>2&&(w="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,r-e.length)}(" ",h),"^"),h=0)}}for(var A=u[u.length-1],M=l[l.length-1];A===M&&(h++<2?o="\n ".concat(A).concat(o):i=A,u.pop(),l.pop(),0!==u.length&&0!==l.length);)A=u[u.length-1],M=l[l.length-1];var S=Math.max(u.length,l.length);if(0===S){var x=f.split("\n");if(x.length>30)for(x[26]="".concat(m,"...").concat(y);x.length>27;)x.pop();return"".concat(v.notIdentical,"\n\n").concat(x.join("\n"),"\n")}h>3&&(o="\n".concat(m,"...").concat(y).concat(o),c=!0),""!==i&&(o="\n ".concat(i).concat(o),i="");var T=0,k=v[r]+"\n".concat(b,"+ actual").concat(y," ").concat(g,"- expected").concat(y),R=" ".concat(m,"...").concat(y," Lines skipped");for(h=0;h1&&h>2&&(I>4?(a+="\n".concat(m,"...").concat(y),c=!0):I>3&&(a+="\n ".concat(l[h-2]),T++),a+="\n ".concat(l[h-1]),T++),s=h,i+="\n".concat(g,"-").concat(y," ").concat(l[h]),T++;else if(l.length1&&h>2&&(I>4?(a+="\n".concat(m,"...").concat(y),c=!0):I>3&&(a+="\n ".concat(u[h-2]),T++),a+="\n ".concat(u[h-1]),T++),s=h,a+="\n".concat(b,"+").concat(y," ").concat(u[h]),T++;else{var C=l[h],P=u[h],O=P!==C&&(!p(P,",")||P.slice(0,-1)!==C);O&&p(C,",")&&C.slice(0,-1)===P&&(O=!1,P+=","),O?(I>1&&h>2&&(I>4?(a+="\n".concat(m,"...").concat(y),c=!0):I>3&&(a+="\n ".concat(u[h-2]),T++),a+="\n ".concat(u[h-1]),T++),s=h,a+="\n".concat(b,"+").concat(y," ").concat(P),i+="\n".concat(g,"-").concat(y," ").concat(C),T+=2):(a+=i,i="",(1===I||0===h)&&(a+="\n ".concat(P),T++))}if(T>20&&h30)for(M[26]="".concat(m,"...").concat(y);M.length>27;)M.pop();t=1===M.length?a(this,u(o).call(this,"".concat(A," ").concat(M[0]))):a(this,u(o).call(this,"".concat(A,"\n\n").concat(M.join("\n"),"\n")))}else{var S=_(f),x="",T=v[i];"notDeepEqual"===i||"notEqual"===i?(S="".concat(v[i],"\n\n").concat(S)).length>1024&&(S="".concat(S.slice(0,1021),"...")):(x="".concat(_(l)),S.length>512&&(S="".concat(S.slice(0,509),"...")),x.length>512&&(x="".concat(x.slice(0,509),"...")),"deepEqual"===i||"equal"===i?S="".concat(T,"\n\n").concat(S,"\n\nshould equal\n\n"):x=" ".concat(i," ").concat(x)),t=a(this,u(o).call(this,"".concat(S).concat(x)))}return Error.stackTraceLimit=E,t.generatedMessage=!r,Object.defineProperty(s(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=f,t.expected=l,t.operator=i,Error.captureStackTrace&&Error.captureStackTrace(s(t),c),t.stack,t.name="AssertionError",a(t)}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(o,e),t=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:l.custom,value:function(e,t){return l(this,function(e){for(var t=1;t2?arguments[2]:{},a=n(t);i&&(a=s.call(a,Object.getOwnPropertySymbols(t)));for(var o=0;o=0&&"[object Function]"===n.call(e.callee)),r}},{}],aNcRl:[function(e,t,r){"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,a=Object.prototype.toString,s=e("b0d8c8b84be91ffd"),o=Object.prototype.propertyIsEnumerable,c=!o.call({toString:null},"toString"),f=o.call(function(){},"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!l["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),p=function(e){if("undefined"==typeof window||!h)return d(e);try{return d(e)}catch(e){return!1}};n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===a.call(e),n=s(e),o=t&&"[object String]"===a.call(e),d=[];if(!t&&!r&&!n)throw TypeError("Object.keys called on a non-object");var l=f&&r;if(o&&e.length>0&&!i.call(e,0))for(var h=0;h0)for(var m=0;m10)return!0;for(var t=0;t57)return!0}return 10===e.length&&e>=4294967296}function P(e){return Object.keys(e).filter(C).concat(f(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function O(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i0&&i[i.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]new Uint8Array(e),t){return"function"==typeof e&&(e=e(t)),a("output",e,t),e}function c(e){return Object.prototype.toString.call(e).slice(8,-1)}t.exports=e=>({contextRandomize(t){if(i(null===t||t instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),null!==t&&a("seed",t,32),1===e.contextRandomize(t))throw Error(n.CONTEXT_RANDOMIZE_UNKNOW)},privateKeyVerify:t=>(a("private key",t,32),0===e.privateKeyVerify(t)),privateKeyNegate(t){switch(a("private key",t,32),e.privateKeyNegate(t)){case 0:return t;case 1:throw Error(n.IMPOSSIBLE_CASE)}},privateKeyTweakAdd(t,r){switch(a("private key",t,32),a("tweak",r,32),e.privateKeyTweakAdd(t,r)){case 0:return t;case 1:throw Error(n.TWEAK_ADD)}},privateKeyTweakMul(t,r){switch(a("private key",t,32),a("tweak",r,32),e.privateKeyTweakMul(t,r)){case 0:return t;case 1:throw Error(n.TWEAK_MUL)}},publicKeyVerify:t=>(a("public key",t,[33,65]),0===e.publicKeyVerify(t)),publicKeyCreate(t,r=!0,i){switch(a("private key",t,32),s(r),i=o(i,r?33:65),e.publicKeyCreate(i,t)){case 0:return i;case 1:throw Error(n.SECKEY_INVALID);case 2:throw Error(n.PUBKEY_SERIALIZE)}},publicKeyConvert(t,r=!0,i){switch(a("public key",t,[33,65]),s(r),i=o(i,r?33:65),e.publicKeyConvert(i,t)){case 0:return i;case 1:throw Error(n.PUBKEY_PARSE);case 2:throw Error(n.PUBKEY_SERIALIZE)}},publicKeyNegate(t,r=!0,i){switch(a("public key",t,[33,65]),s(r),i=o(i,r?33:65),e.publicKeyNegate(i,t)){case 0:return i;case 1:throw Error(n.PUBKEY_PARSE);case 2:throw Error(n.IMPOSSIBLE_CASE);case 3:throw Error(n.PUBKEY_SERIALIZE)}},publicKeyCombine(t,r=!0,c){for(let e of(i(Array.isArray(t),"Expected public keys to be an Array"),i(t.length>0,"Expected public keys array will have more than zero items"),t))a("public key",e,[33,65]);switch(s(r),c=o(c,r?33:65),e.publicKeyCombine(c,t)){case 0:return c;case 1:throw Error(n.PUBKEY_PARSE);case 2:throw Error(n.PUBKEY_COMBINE);case 3:throw Error(n.PUBKEY_SERIALIZE)}},publicKeyTweakAdd(t,r,i=!0,c){switch(a("public key",t,[33,65]),a("tweak",r,32),s(i),c=o(c,i?33:65),e.publicKeyTweakAdd(c,t,r)){case 0:return c;case 1:throw Error(n.PUBKEY_PARSE);case 2:throw Error(n.TWEAK_ADD)}},publicKeyTweakMul(t,r,i=!0,c){switch(a("public key",t,[33,65]),a("tweak",r,32),s(i),c=o(c,i?33:65),e.publicKeyTweakMul(c,t,r)){case 0:return c;case 1:throw Error(n.PUBKEY_PARSE);case 2:throw Error(n.TWEAK_MUL)}},signatureNormalize(t){switch(a("signature",t,64),e.signatureNormalize(t)){case 0:return t;case 1:throw Error(n.SIG_PARSE)}},signatureExport(t,r){a("signature",t,64),r=o(r,72);let i={output:r,outputlen:72};switch(e.signatureExport(i,t)){case 0:return r.slice(0,i.outputlen);case 1:throw Error(n.SIG_PARSE);case 2:throw Error(n.IMPOSSIBLE_CASE)}},signatureImport(t,r){switch(a("signature",t),r=o(r,64),e.signatureImport(r,t)){case 0:return r;case 1:throw Error(n.SIG_PARSE);case 2:throw Error(n.IMPOSSIBLE_CASE)}},ecdsaSign(t,r,s={},f){a("message",t,32),a("private key",r,32),i("Object"===c(s),"Expected options to be an Object"),void 0!==s.data&&a("options.data",s.data),void 0!==s.noncefn&&i("Function"===c(s.noncefn),"Expected options.noncefn to be a Function"),f=o(f,64);let u={signature:f,recid:null};switch(e.ecdsaSign(u,t,r,s.data,s.noncefn)){case 0:return u;case 1:throw Error(n.SIGN);case 2:throw Error(n.IMPOSSIBLE_CASE)}},ecdsaVerify(t,r,i){switch(a("signature",t,64),a("message",r,32),a("public key",i,[33,65]),e.ecdsaVerify(t,r,i)){case 0:return!0;case 3:return!1;case 1:throw Error(n.SIG_PARSE);case 2:throw Error(n.PUBKEY_PARSE)}},ecdsaRecover(t,r,f,u=!0,d){switch(a("signature",t,64),i("Number"===c(r)&&r>=0&&r<=3,"Expected recovery id to be a Number within interval [0, 3]"),a("message",f,32),s(u),d=o(d,u?33:65),e.ecdsaRecover(d,t,r,f)){case 0:return d;case 1:throw Error(n.SIG_PARSE);case 2:throw Error(n.RECOVER);case 3:throw Error(n.IMPOSSIBLE_CASE)}},ecdh(t,r,s={},f){switch(a("public key",t,[33,65]),a("private key",r,32),i("Object"===c(s),"Expected options to be an Object"),void 0!==s.data&&a("options.data",s.data),void 0!==s.hashfn?(i("Function"===c(s.hashfn),"Expected options.hashfn to be a Function"),void 0!==s.xbuf&&a("options.xbuf",s.xbuf,32),void 0!==s.ybuf&&a("options.ybuf",s.ybuf,32),a("output",f)):f=o(f,32),e.ecdh(f,t,r,s.data,s.hashfn,s.xbuf,s.ybuf)){case 0:return f;case 1:throw Error(n.PUBKEY_PARSE);case 2:throw Error(n.ECDH)}}})},{}],"6XZs0":[function(e,t,r){let n=e("3ab9749d2e756678").ec,i=new n("secp256k1"),a=i.curve,s=a.n.constructor;function o(e){let t=e[0];switch(t){case 2:case 3:if(33!==e.length)return null;return function(e,t){let r=new s(t);if(r.cmp(a.p)>=0)return null;let n=(r=r.toRed(a.red)).redSqr().redIMul(r).redIAdd(a.b).redSqrt();return 3===e!==n.isOdd()&&(n=n.redNeg()),i.keyPair({pub:{x:r,y:n}})}(t,e.subarray(1,33));case 4:case 6:case 7:if(65!==e.length)return null;return function(e,t,r){let n=new s(t),o=new s(r);if(n.cmp(a.p)>=0||o.cmp(a.p)>=0||(n=n.toRed(a.red),o=o.toRed(a.red),(6===e||7===e)&&o.isOdd()!==(7===e)))return null;let c=n.redSqr().redIMul(n);return o.redSqr().redISub(c.redIAdd(a.b)).isZero()?i.keyPair({pub:{x:n,y:o}}):null}(t,e.subarray(1,33),e.subarray(33,65));default:return null}}function c(e,t){let r=t.encode(null,33===e.length);for(let t=0;t0,privateKeyVerify(e){let t=new s(e);return 0>t.cmp(a.n)&&!t.isZero()?0:1},privateKeyNegate(e){let t=new s(e),r=a.n.sub(t).umod(a.n).toArrayLike(Uint8Array,"be",32);return e.set(r),0},privateKeyTweakAdd(e,t){let r=new s(t);if(r.cmp(a.n)>=0||(r.iadd(new s(e)),r.cmp(a.n)>=0&&r.isub(a.n),r.isZero()))return 1;let n=r.toArrayLike(Uint8Array,"be",32);return e.set(n),0},privateKeyTweakMul(e,t){let r=new s(t);if(r.cmp(a.n)>=0||r.isZero())return 1;r.imul(new s(e)),r.cmp(a.n)>=0&&(r=r.umod(a.n));let n=r.toArrayLike(Uint8Array,"be",32);return e.set(n),0},publicKeyVerify(e){let t=o(e);return null===t?1:0},publicKeyCreate(e,t){let r=new s(t);if(r.cmp(a.n)>=0||r.isZero())return 1;let n=i.keyFromPrivate(t).getPublic();return c(e,n),0},publicKeyConvert(e,t){let r=o(t);if(null===r)return 1;let n=r.getPublic();return c(e,n),0},publicKeyNegate(e,t){let r=o(t);if(null===r)return 1;let n=r.getPublic();return n.y=n.y.redNeg(),c(e,n),0},publicKeyCombine(e,t){let r=Array(t.length);for(let e=0;e=0)return 2;let i=n.getPublic().add(a.g.mul(r));return i.isInfinity()?2:(c(e,i),0)},publicKeyTweakMul(e,t,r){let n=o(t);if(null===n)return 1;if((r=new s(r)).cmp(a.n)>=0||r.isZero())return 2;let i=n.getPublic().mul(r);return c(e,i),0},signatureNormalize(e){let t=new s(e.subarray(0,32)),r=new s(e.subarray(32,64));return t.cmp(a.n)>=0||r.cmp(a.n)>=0?1:(1===r.cmp(i.nh)&&e.set(a.n.sub(r).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(e,t){let r=t.subarray(0,32),n=t.subarray(32,64);if(new s(r).cmp(a.n)>=0||new s(n).cmp(a.n)>=0)return 1;let{output:i}=e,o=i.subarray(4,37);o[0]=0,o.set(r,1);let c=33,f=0;for(;c>1&&0===o[f]&&!(128&o[f+1]);--c,++f);if(128&(o=o.subarray(f))[0]||c>1&&0===o[0]&&!(128&o[1]))return 1;let u=i.subarray(39,72);u[0]=0,u.set(n,1);let d=33,l=0;for(;d>1&&0===u[l]&&!(128&u[l+1]);--d,++l);return 128&(u=u.subarray(l))[0]||d>1&&0===u[0]&&!(128&u[1])?1:(e.outputlen=6+c+d,i[0]=48,i[1]=e.outputlen-2,i[2]=2,i[3]=o.length,i.set(o,4),i[4+c]=2,i[5+c]=u.length,i.set(u,6+c),0)},signatureImport(e,t){if(t.length<8||t.length>72||48!==t[0]||t[1]!==t.length-2||2!==t[2])return 1;let r=t[3];if(0===r||5+r>=t.length||2!==t[4+r])return 1;let n=t[5+r];if(0===n||6+r+n!==t.length||128&t[4]||r>1&&0===t[4]&&!(128&t[5])||128&t[r+6]||n>1&&0===t[r+6]&&!(128&t[r+7]))return 1;let i=t.subarray(4,4+r);if(33===i.length&&0===i[0]&&(i=i.subarray(1)),i.length>32)return 1;let o=t.subarray(6+r);if(33===o.length&&0===o[0]&&(o=o.slice(1)),o.length>32)throw Error("S length is too long");let c=new s(i);c.cmp(a.n)>=0&&(c=new s(0));let f=new s(t.subarray(6+r));return f.cmp(a.n)>=0&&(f=new s(0)),e.set(c.toArrayLike(Uint8Array,"be",32),0),e.set(f.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(e,t,r,n,o){let c;if(o){let e=o;o=i=>{let a=e(t,r,null,n,i),o=a instanceof Uint8Array&&32===a.length;if(!o)throw Error("This is the way");return new s(a)}}let f=new s(r);if(f.cmp(a.n)>=0||f.isZero())return 1;try{c=i.sign(t,r,{canonical:!0,k:o,pers:n})}catch(e){return 1}return e.signature.set(c.r.toArrayLike(Uint8Array,"be",32),0),e.signature.set(c.s.toArrayLike(Uint8Array,"be",32),32),e.recid=c.recoveryParam,0},ecdsaVerify(e,t,r){let n={r:e.subarray(0,32),s:e.subarray(32,64)},c=new s(n.r),f=new s(n.s);if(c.cmp(a.n)>=0||f.cmp(a.n)>=0)return 1;if(1===f.cmp(i.nh)||c.isZero()||f.isZero())return 3;let u=o(r);if(null===u)return 2;let d=u.getPublic(),l=i.verify(t,n,d);return l?0:3},ecdsaRecover(e,t,r,n){let o;let f={r:t.slice(0,32),s:t.slice(32,64)},u=new s(f.r),d=new s(f.s);if(u.cmp(a.n)>=0||d.cmp(a.n)>=0)return 1;if(u.isZero()||d.isZero())return 2;try{o=i.recoverPubKey(n,f,r)}catch(e){return 2}return c(e,o),0},ecdh(e,t,r,n,c,f,u){let d=o(t);if(null===d)return 1;let l=new s(r);if(l.cmp(a.n)>=0||l.isZero())return 2;let h=d.getPublic().mul(l);if(void 0===c){let t=h.encode(null,!0),r=i.hash().update(t).digest();for(let t=0;t<32;++t)e[t]=r[t]}else{f||(f=new Uint8Array(32));let t=h.getX().toArray("be",32);for(let e=0;e<32;++e)f[e]=t[e];u||(u=new Uint8Array(32));let r=h.getY().toArray("be",32);for(let e=0;e<32;++e)u[e]=r[e];let i=c(f,u,n),a=i instanceof Uint8Array&&i.length===e.length;if(!a)return 2;e.set(i)}return 0}}},{"3ab9749d2e756678":"gHKeo"}],aVJr7:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("cd93974d66bb0f8c");r.getRandomBytes=function(e){return new Promise(function(t,r){n(e,function(e,n){if(e){r(e);return}t(n)})})},r.getRandomBytesSync=function(e){return n(e)}},{cd93974d66bb0f8c:"6xAZm"}],"1a9Yl":[function(e,t,r){var n=e("bacc85b87856ba52").Buffer;"use strict";function i(e){if("string"!=typeof e)throw Error("[isHexPrefixed] input must be type 'string', received type ".concat(typeof e));return"0"===e[0]&&"x"===e[1]}function a(e){var t=e;if("string"!=typeof t)throw Error("[padToEven] value must be type 'string', received ".concat(typeof t));return t.length%2&&(t="0".concat(t)),t}Object.defineProperty(r,"__esModule",{value:!0}),r.isHexString=r.getKeys=r.fromAscii=r.fromUtf8=r.toAscii=r.arrayContainsArray=r.getBinarySize=r.padToEven=r.stripHexPrefix=r.isHexPrefixed=void 0,r.isHexPrefixed=i,r.stripHexPrefix=function(e){if("string"!=typeof e)throw Error("[stripHexPrefix] input must be type 'string', received ".concat(typeof e));return i(e)?e.slice(2):e},r.padToEven=a,r.getBinarySize=function(e){if("string"!=typeof e)throw Error("[getBinarySize] method requires input type 'string', recieved ".concat(typeof e));return n.byteLength(e,"utf8")},r.arrayContainsArray=function(e,t,r){if(!0!==Array.isArray(e))throw Error("[arrayContainsArray] method requires input 'superset' to be an array, got type '".concat(typeof e,"'"));if(!0!==Array.isArray(t))throw Error("[arrayContainsArray] method requires input 'subset' to be an array, got type '".concat(typeof t,"'"));return t[r?"some":"every"](function(t){return e.indexOf(t)>=0})},r.toAscii=function(e){var t="",r=0,n=e.length;for("0x"===e.substring(0,2)&&(r=2);r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return s};Object.defineProperty(r,"__esModule",{value:!0}),r.bufArrToArr=r.arrToBufArr=r.validateNoLeadingZeroes=r.baToJSON=r.toUtf8=r.addHexPrefix=r.toUnsigned=r.fromSigned=r.bufferToHex=r.bufferToInt=r.toBuffer=r.unpadHexString=r.unpadArray=r.unpadBuffer=r.setLengthRight=r.setLengthLeft=r.zeros=r.intToBuffer=r.intToHex=void 0;var s=e("35add0199f01c487"),o=e("bb97aaf37314b94f"),c=e("47bb7444a1458900");r.intToHex=function(e){if(!Number.isSafeInteger(e)||e<0)throw Error("Received an invalid integer type: ".concat(e));return"0x".concat(e.toString(16))},r.intToBuffer=function(e){var t=(0,r.intToHex)(e);return n.from((0,o.padToEven)(t.slice(2)),"hex")},r.zeros=function(e){return n.allocUnsafe(e).fill(0)};var f=function(e,t,n){var i=(0,r.zeros)(t);return n?e.length0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e};r.unpadBuffer=function(e){return(0,c.assertIsBuffer)(e),u(e)},r.unpadArray=function(e){return(0,c.assertIsArray)(e),u(e)},r.unpadHexString=function(e){return(0,c.assertIsHexString)(e),u(e=(0,o.stripHexPrefix)(e))},r.toBuffer=function(e){if(null==e)return n.allocUnsafe(0);if(n.isBuffer(e)||Array.isArray(e)||e instanceof Uint8Array)return n.from(e);if("string"==typeof e){if(!(0,o.isHexString)(e))throw Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ".concat(e));return n.from((0,o.padToEven)((0,o.stripHexPrefix)(e)),"hex")}if("number"==typeof e)return(0,r.intToBuffer)(e);if(s.BN.isBN(e)){if(e.isNeg())throw Error("Cannot convert negative BN to buffer. Given: ".concat(e));return e.toArrayLike(n)}if(e.toArray)return n.from(e.toArray());if(e.toBuffer)return n.from(e.toBuffer());throw Error("invalid type")},r.bufferToInt=function(e){return new s.BN((0,r.toBuffer)(e)).toNumber()},r.bufferToHex=function(e){return"0x"+(e=(0,r.toBuffer)(e)).toString("hex")},r.fromSigned=function(e){return new s.BN(e).fromTwos(256)},r.toUnsigned=function(e){return n.from(e.toTwos(256).toArray())},r.addHexPrefix=function(e){return"string"!=typeof e?e:(0,o.isHexPrefixed)(e)?e:"0x"+e},r.toUtf8=function(e){if((e=(0,o.stripHexPrefix)(e)).length%2!=0)throw Error("Invalid non-even hex string input for toUtf8() provided");return n.from(e.replace(/^(00)+|(00)+$/g,""),"hex").toString("utf8")},r.baToJSON=function(e){if(n.isBuffer(e))return"0x".concat(e.toString("hex"));if(e instanceof Array){for(var t=[],i=0;i0&&0===f[0])throw Error("".concat(c," cannot have leading zeroes, received: ").concat(f.toString("hex")))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}},r.arrToBufArr=function e(t){return Array.isArray(t)?t.map(function(t){return e(t)}):n.from(t)},r.bufArrToArr=function e(t){return Array.isArray(t)?t.map(function(t){return e(t)}):Uint8Array.from(null!=t?t:[])}},{"36e5f935c1ed2136":"2MMCE","35add0199f01c487":"hx2li",bb97aaf37314b94f:"1a9Yl","47bb7444a1458900":"70pb8"}],"70pb8":[function(e,t,r){var n=e("e04fa42c5aa6e5c2").Buffer;"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.assertIsString=r.assertIsArray=r.assertIsBuffer=r.assertIsHexString=void 0;var i=e("ce8a2340e79e9511");r.assertIsHexString=function(e){if(!(0,i.isHexString)(e))throw Error("This method only supports 0x-prefixed hex strings but input was: ".concat(e))},r.assertIsBuffer=function(e){if(!n.isBuffer(e))throw Error("This method only supports Buffer but input was: ".concat(e))},r.assertIsArray=function(e){if(!Array.isArray(e))throw Error("This method only supports number arrays but input was: ".concat(e))},r.assertIsString=function(e){if("string"!=typeof e)throw Error("This method only supports strings but input was: ".concat(e))}},{e04fa42c5aa6e5c2:"2MMCE",ce8a2340e79e9511:"1a9Yl"}],ipL9G:[function(e,t,r){"use strict";var n=e("f44b07e97eb34004").Buffer;Object.defineProperty(r,"__esModule",{value:!0}),r.rlphash=r.ripemd160FromArray=r.ripemd160FromString=r.ripemd160=r.sha256FromArray=r.sha256FromString=r.sha256=r.keccakFromArray=r.keccakFromHexString=r.keccakFromString=r.keccak256=r.keccak=void 0;var i=e("51bfc103b421c9c1"),a=e("88db1135dc7b3dfe"),s=e("49be5227bdf31c4b"),o=e("a6ca487a0eda3ac4"),c=e("f58e8d097a46af28");r.keccak=function(e,t){switch(void 0===t&&(t=256),(0,c.assertIsBuffer)(e),t){case 224:return(0,i.keccak224)(e);case 256:return(0,i.keccak256)(e);case 384:return(0,i.keccak384)(e);case 512:return(0,i.keccak512)(e);default:throw Error("Invald algorithm: keccak".concat(t))}},r.keccak256=function(e){return(0,r.keccak)(e)},r.keccakFromString=function(e,t){void 0===t&&(t=256),(0,c.assertIsString)(e);var i=n.from(e,"utf8");return(0,r.keccak)(i,t)},r.keccakFromHexString=function(e,t){return void 0===t&&(t=256),(0,c.assertIsHexString)(e),(0,r.keccak)((0,o.toBuffer)(e),t)},r.keccakFromArray=function(e,t){return void 0===t&&(t=256),(0,c.assertIsArray)(e),(0,r.keccak)((0,o.toBuffer)(e),t)};var f=function(e){return e=(0,o.toBuffer)(e),a("sha256").update(e).digest()};r.sha256=function(e){return(0,c.assertIsBuffer)(e),f(e)},r.sha256FromString=function(e){return(0,c.assertIsString)(e),f(e)},r.sha256FromArray=function(e){return(0,c.assertIsArray)(e),f(e)};var u=function(e,t){e=(0,o.toBuffer)(e);var r=a("rmd160").update(e).digest();return!0===t?(0,o.setLengthLeft)(r,32):r};r.ripemd160=function(e,t){return(0,c.assertIsBuffer)(e),u(e,t)},r.ripemd160FromString=function(e,t){return(0,c.assertIsString)(e),u(e,t)},r.ripemd160FromArray=function(e,t){return(0,c.assertIsArray)(e),u(e,t)},r.rlphash=function(e){return(0,r.keccak)(s.rlp.encode(e))}},{f44b07e97eb34004:"2MMCE","51bfc103b421c9c1":"fqw6n","88db1135dc7b3dfe":"cCtrs","49be5227bdf31c4b":"hx2li",a6ca487a0eda3ac4:"kZa0v",f58e8d097a46af28:"70pb8"}],fqw6n:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("63a4b06cc622796f"),i=e("cbd437b9a34f8945");r.keccak224=n.createHashFunction(function(){return i("keccak224")}),r.keccak256=n.createHashFunction(function(){return i("keccak256")}),r.keccak384=n.createHashFunction(function(){return i("keccak384")}),r.keccak512=n.createHashFunction(function(){return i("keccak512")})},{"63a4b06cc622796f":"arjap",cbd437b9a34f8945:"oijYY"}],arjap:[function(e,t,r){var n=e("bb9a509956781478").Buffer;"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createHashFunction=function(e){return function(t){var r=e();return r.update(t),n.from(r.digest())}}},{bb9a509956781478:"2MMCE"}],oijYY:[function(e,t,r){t.exports=e("d37e92a016c4e47")(e("fbab9cb41dbf6101"))},{d37e92a016c4e47:"ay8gt",fbab9cb41dbf6101:"5zBRp"}],ay8gt:[function(e,t,r){let n=e("a4880b37ec39f2c0"),i=e("97dde8c69f094771");t.exports=function(e){let t=n(e),r=i(e);return function(e,n){let i="string"==typeof e?e.toLowerCase():e;switch(i){case"keccak224":return new t(1152,448,null,224,n);case"keccak256":return new t(1088,512,null,256,n);case"keccak384":return new t(832,768,null,384,n);case"keccak512":return new t(576,1024,null,512,n);case"sha3-224":return new t(1152,448,6,224,n);case"sha3-256":return new t(1088,512,6,256,n);case"sha3-384":return new t(832,768,6,384,n);case"sha3-512":return new t(576,1024,6,512,n);case"shake128":return new r(1344,256,31,n);case"shake256":return new r(1088,512,31,n);default:throw Error("Invald algorithm: "+e)}}}},{a4880b37ec39f2c0:"3cYls","97dde8c69f094771":"HIobm"}],"3cYls":[function(e,t,r){var n=e("ba3bc042a8c20564").Buffer;let{Transform:i}=e("3d3b37f8d8b4a8d4");t.exports=e=>class t extends i{constructor(t,r,n,i,a){super(a),this._rate=t,this._capacity=r,this._delimitedSuffix=n,this._hashBitLength=i,this._options=a,this._state=new e,this._state.initialize(t,r),this._finalized=!1}_transform(e,t,r){let n=null;try{this.update(e,t)}catch(e){n=e}r(n)}_flush(e){let t=null;try{this.push(this.digest())}catch(e){t=e}e(t)}update(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw TypeError("Data must be a string or a buffer");if(this._finalized)throw Error("Digest already called");return n.isBuffer(e)||(e=n.from(e,t)),this._state.absorb(e),this}digest(e){if(this._finalized)throw Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let t=this._state.squeeze(this._hashBitLength/8);return void 0!==e&&(t=t.toString(e)),this._resetState(),t}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let e=new t(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}},{ba3bc042a8c20564:"2MMCE","3d3b37f8d8b4a8d4":"1mxOP"}],HIobm:[function(e,t,r){var n=e("3ec0db77c00c8eee").Buffer;let{Transform:i}=e("837353deacd2abe9");t.exports=e=>class t extends i{constructor(t,r,n,i){super(i),this._rate=t,this._capacity=r,this._delimitedSuffix=n,this._options=i,this._state=new e,this._state.initialize(t,r),this._finalized=!1}_transform(e,t,r){let n=null;try{this.update(e,t)}catch(e){n=e}r(n)}_flush(){}_read(e){this.push(this.squeeze(e))}update(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw TypeError("Data must be a string or a buffer");if(this._finalized)throw Error("Squeeze already called");return n.isBuffer(e)||(e=n.from(e,t)),this._state.absorb(e),this}squeeze(e,t){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let r=this._state.squeeze(e);return void 0!==t&&(r=r.toString(t)),r}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let e=new t(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}},{"3ec0db77c00c8eee":"2MMCE","837353deacd2abe9":"1mxOP"}],"5zBRp":[function(e,t,r){var n=e("b5f446e7af1f3288").Buffer;let i=e("2132b026a0a927c6");function a(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}a.prototype.initialize=function(e,t){for(let e=0;e<50;++e)this.state[e]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1},a.prototype.absorb=function(e){for(let t=0;t>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(i.p1600(this.state),this.count=0);return t},a.prototype.copy=function(e){for(let t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing},t.exports=a},{b5f446e7af1f3288:"2MMCE","2132b026a0a927c6":"gzyFP"}],gzyFP:[function(e,t,r){let n=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];r.p1600=function(e){for(let t=0;t<24;++t){let r=e[0]^e[10]^e[20]^e[30]^e[40],i=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],o=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],u=e[7]^e[17]^e[27]^e[37]^e[47],d=e[8]^e[18]^e[28]^e[38]^e[48],l=e[9]^e[19]^e[29]^e[39]^e[49],h=d^(a<<1|s>>>31),p=l^(s<<1|a>>>31),m=e[0]^h,b=e[1]^p,g=e[10]^h,y=e[11]^p,v=e[20]^h,w=e[21]^p,_=e[30]^h,E=e[31]^p,A=e[40]^h,M=e[41]^p;h=r^(o<<1|c>>>31),p=i^(c<<1|o>>>31);let S=e[2]^h,x=e[3]^p,T=e[12]^h,k=e[13]^p,R=e[22]^h,I=e[23]^p,C=e[32]^h,P=e[33]^p,O=e[42]^h,N=e[43]^p;h=a^(f<<1|u>>>31),p=s^(u<<1|f>>>31);let j=e[4]^h,B=e[5]^p,L=e[14]^h,D=e[15]^p,U=e[24]^h,F=e[25]^p,q=e[34]^h,z=e[35]^p,K=e[44]^h,H=e[45]^p;h=o^(d<<1|l>>>31),p=c^(l<<1|d>>>31);let V=e[6]^h,W=e[7]^p,G=e[16]^h,J=e[17]^p,Z=e[26]^h,$=e[27]^p,X=e[36]^h,Y=e[37]^p,Q=e[46]^h,ee=e[47]^p;h=f^(r<<1|i>>>31),p=u^(i<<1|r>>>31);let et=e[8]^h,er=e[9]^p,en=e[18]^h,ei=e[19]^p,ea=e[28]^h,es=e[29]^p,eo=e[38]^h,ec=e[39]^p,ef=e[48]^h,eu=e[49]^p,ed=y<<4|g>>>28,el=g<<4|y>>>28,eh=v<<3|w>>>29,ep=w<<3|v>>>29,em=E<<9|_>>>23,eb=_<<9|E>>>23,eg=A<<18|M>>>14,ey=M<<18|A>>>14,ev=S<<1|x>>>31,ew=x<<1|S>>>31,e_=k<<12|T>>>20,eE=T<<12|k>>>20,eA=R<<10|I>>>22,eM=I<<10|R>>>22,eS=P<<13|C>>>19,ex=C<<13|P>>>19,eT=O<<2|N>>>30,ek=N<<2|O>>>30,eR=B<<30|j>>>2,eI=j<<30|B>>>2,eC=L<<6|D>>>26,eP=D<<6|L>>>26,eO=F<<11|U>>>21,eN=U<<11|F>>>21,ej=q<<15|z>>>17,eB=z<<15|q>>>17,eL=H<<29|K>>>3,eD=K<<29|H>>>3,eU=V<<28|W>>>4,eF=W<<28|V>>>4,eq=J<<23|G>>>9,ez=G<<23|J>>>9,eK=Z<<25|$>>>7,eH=$<<25|Z>>>7,eV=X<<21|Y>>>11,eW=Y<<21|X>>>11,eG=ee<<24|Q>>>8,eJ=Q<<24|ee>>>8,eZ=et<<27|er>>>5,e$=er<<27|et>>>5,eX=en<<20|ei>>>12,eY=ei<<20|en>>>12,eQ=es<<7|ea>>>25,e0=ea<<7|es>>>25,e1=eo<<8|ec>>>24,e2=ec<<8|eo>>>24,e6=ef<<14|eu>>>18,e3=eu<<14|ef>>>18;e[0]=m^~e_&eO,e[1]=b^~eE&eN,e[10]=eU^~eX&eh,e[11]=eF^~eY&ep,e[20]=ev^~eC&eK,e[21]=ew^~eP&eH,e[30]=eZ^~ed&eA,e[31]=e$^~el&eM,e[40]=eR^~eq&eQ,e[41]=eI^~ez&e0,e[2]=e_^~eO&eV,e[3]=eE^~eN&eW,e[12]=eX^~eh&eS,e[13]=eY^~ep&ex,e[22]=eC^~eK&e1,e[23]=eP^~eH&e2,e[32]=ed^~eA&ej,e[33]=el^~eM&eB,e[42]=eq^~eQ&em,e[43]=ez^~e0&eb,e[4]=eO^~eV&e6,e[5]=eN^~eW&e3,e[14]=eh^~eS&eL,e[15]=ep^~ex&eD,e[24]=eK^~e1&eg,e[25]=eH^~e2&ey,e[34]=eA^~ej&eG,e[35]=eM^~eB&eJ,e[44]=eQ^~em&eT,e[45]=e0^~eb&ek,e[6]=eV^~e6&m,e[7]=eW^~e3&b,e[16]=eS^~eL&eU,e[17]=ex^~eD&eF,e[26]=e1^~eg&ev,e[27]=e2^~ey&ew,e[36]=ej^~eG&eZ,e[37]=eB^~eJ&e$,e[46]=em^~eT&eR,e[47]=eb^~ek&eI,e[8]=e6^~m&e_,e[9]=e3^~b&eE,e[18]=eL^~eU&eX,e[19]=eD^~eF&eY,e[28]=eg^~ev&eC,e[29]=ey^~ew&eP,e[38]=eG^~eZ&ed,e[39]=eJ^~e$&el,e[48]=eT^~eR&eq,e[49]=ek^~eI&ez,e[0]^=n[2*t],e[1]^=n[2*t+1]}}},{}],eWBQO:[function(e,t,r){"use strict";var n,i,a=e("e5145e19d8682196").Buffer;Object.defineProperty(r,"__esModule",{value:!0}),r.toType=r.TypeOutput=r.bnToRlp=r.bnToUnpaddedBuffer=r.bnToHex=void 0;var s=e("37cfb20de18df397"),o=e("df7311fc0e77ebcf"),c=e("3704eb06b821d2c0");function f(e){return(0,c.unpadBuffer)(e.toArrayLike(a))}r.bnToHex=function(e){return"0x".concat(e.toString(16))},r.bnToUnpaddedBuffer=f,r.bnToRlp=function(e){return f(e)},(n=i=r.TypeOutput||(r.TypeOutput={}))[n.Number=0]="Number",n[n.BN=1]="BN",n[n.Buffer=2]="Buffer",n[n.PrefixedHexString=3]="PrefixedHexString",r.toType=function(e,t){if(null===e)return null;if(void 0!==e){if("string"!=typeof e||(0,o.isHexString)(e)){if("number"==typeof e&&!Number.isSafeInteger(e))throw Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)")}else throw Error("A string must be provided with a 0x-prefix, given: ".concat(e));var r=(0,c.toBuffer)(e);if(t===i.Buffer)return r;if(t===i.BN)return new s.BN(r);if(t!==i.Number)return"0x".concat(r.toString("hex"));var n=new s.BN(r),a=new s.BN(Number.MAX_SAFE_INTEGER.toString());if(n.gt(a))throw Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return n.toNumber()}}},{e5145e19d8682196:"2MMCE","37cfb20de18df397":"hx2li",df7311fc0e77ebcf:"1a9Yl","3704eb06b821d2c0":"kZa0v"}],h1KCF:[function(e,t,r){"use strict";var n=e("65f8b02e2bf3923b").Buffer,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.Address=void 0;var a=i(e("57d48d4c5752d674")),s=e("86f7f635d1296f7a"),o=e("a6cc3d39b2685848"),c=e("a871521595ebeb14"),f=function(){function e(e){(0,a.default)(20===e.length,"Invalid address length"),this.buf=e}return e.zero=function(){return new e((0,o.zeros)(20))},e.fromString=function(t){return(0,a.default)((0,c.isValidAddress)(t),"Invalid address"),new e((0,o.toBuffer)(t))},e.fromPublicKey=function(t){(0,a.default)(n.isBuffer(t),"Public key should be Buffer");var r=(0,c.pubToAddress)(t);return new e(r)},e.fromPrivateKey=function(t){(0,a.default)(n.isBuffer(t),"Private key should be Buffer");var r=(0,c.privateToAddress)(t);return new e(r)},e.generate=function(t,r){return(0,a.default)(s.BN.isBN(r)),new e((0,c.generateAddress)(t.buf,r.toArrayLike(n)))},e.generate2=function(t,r,i){return(0,a.default)(n.isBuffer(r)),(0,a.default)(n.isBuffer(i)),new e((0,c.generateAddress2)(t.buf,r,i))},e.prototype.equals=function(e){return this.buf.equals(e.buf)},e.prototype.isZero=function(){return this.equals(e.zero())},e.prototype.isPrecompileOrSystemAddress=function(){var e=new s.BN(this.buf),t=new s.BN(0),r=new s.BN("ffff","hex");return e.gte(t)&&e.lte(r)},e.prototype.toString=function(){return"0x"+this.buf.toString("hex")},e.prototype.toBuffer=function(){return n.from(this.buf)},e}();r.Address=f},{"65f8b02e2bf3923b":"2MMCE","57d48d4c5752d674":"aeMhE","86f7f635d1296f7a":"hx2li",a6cc3d39b2685848:"kZa0v",a871521595ebeb14:"bzwNx"}],bqbjN:[function(e,t,r){"use strict";var n=e("d200ef6b4d9cba0f").Buffer;Object.defineProperty(r,"__esModule",{value:!0}),r.hashPersonalMessage=r.isValidSignature=r.fromRpcSig=r.toCompactSig=r.toRpcSig=r.ecrecover=r.ecsign=void 0;var i=e("2bf6c2b11a53ce5c"),a=e("ea864e541635c1bc"),s=e("97fd1663e144162a"),o=e("42dea3862174a01b"),c=e("b51792b4dff2fac2"),f=e("98f0d93934074e71");function u(e,t){var r=(0,f.toType)(e,f.TypeOutput.BN);if(r.eqn(0)||r.eqn(1))return(0,f.toType)(e,f.TypeOutput.BN);if(!t)return r.subn(27);var n=(0,f.toType)(t,f.TypeOutput.BN);return r.sub(n.muln(2).addn(35))}function d(e){var t=new a.BN(e);return t.eqn(0)||t.eqn(1)}r.ecsign=function(e,t,r){var a=(0,i.ecdsaSign)(e,t),s=a.signature,o=a.recid,c=n.from(s.slice(0,32)),u=n.from(s.slice(32,64));if(!r||"number"==typeof r){if(r&&!Number.isSafeInteger(r))throw Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");return{r:c,s:u,v:r?o+(2*r+35):o+27}}return{r:c,s:u,v:(0,f.toType)(r,f.TypeOutput.BN).muln(2).addn(35).addn(o).toArrayLike(n)}},r.ecrecover=function(e,t,r,a,o){var c=n.concat([(0,s.setLengthLeft)(r,32),(0,s.setLengthLeft)(a,32)],64),f=u(t,o);if(!d(f))throw Error("Invalid signature v value");var l=(0,i.ecdsaRecover)(c,f.toNumber(),e);return n.from((0,i.publicKeyConvert)(l,!1).slice(1))},r.toRpcSig=function(e,t,r,i){if(!d(u(e,i)))throw Error("Invalid signature v value");return(0,s.bufferToHex)(n.concat([(0,s.setLengthLeft)(t,32),(0,s.setLengthLeft)(r,32),(0,s.toBuffer)(e)]))},r.toCompactSig=function(e,t,r,i){if(!d(u(e,i)))throw Error("Invalid signature v value");var a=(0,f.toType)(e,f.TypeOutput.Number),o=r;return(a>28&&a%2==1||1===a||28===a)&&(o=n.from(r),o[0]|=128),(0,s.bufferToHex)(n.concat([(0,s.setLengthLeft)(t,32),(0,s.setLengthLeft)(o,32)]))},r.fromRpcSig=function(e){var t,r,n,i=(0,s.toBuffer)(e);if(i.length>=65)t=i.slice(0,32),r=i.slice(32,64),n=(0,s.bufferToInt)(i.slice(64));else if(64===i.length)t=i.slice(0,32),r=i.slice(32,64),n=(0,s.bufferToInt)(i.slice(32,33))>>7,r[0]&=127;else throw Error("Invalid signature length");return n<27&&(n+=27),{v:n,r:t,s:r}},r.isValidSignature=function(e,t,r,n,i){void 0===n&&(n=!0);var s=new a.BN("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),o=new a.BN("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(32!==t.length||32!==r.length||!d(u(e,i)))return!1;var c=new a.BN(t),f=new a.BN(r);return!(c.isZero()||c.gt(o)||f.isZero()||f.gt(o))&&(!n||1!==f.cmp(s))},r.hashPersonalMessage=function(e){(0,c.assertIsBuffer)(e);var t=n.from("\x19Ethereum Signed Message:\n".concat(e.length),"utf-8");return(0,o.keccak)(n.concat([t,e]))}},{d200ef6b4d9cba0f:"2MMCE","2bf6c2b11a53ce5c":"jWaCZ",ea864e541635c1bc:"hx2li","97fd1663e144162a":"kZa0v","42dea3862174a01b":"ipL9G",b51792b4dff2fac2:"70pb8","98f0d93934074e71":"eWBQO"}],"4p8A4":[function(e,t,r){"use strict";var n=e("4f19986b48e2644b").Buffer,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.defineProperties=void 0;var a=i(e("475ac5afa7180311")),s=e("1eeed620e8c77a86"),o=e("ed5aa99cf4a3eb47"),c=e("1561679a5d36a4b5");r.defineProperties=function(e,t,r){if(e.raw=[],e._fields=[],e.toJSON=function(t){if(void 0===t&&(t=!1),t){var r={};return e._fields.forEach(function(t){r[t]="0x".concat(e[t].toString("hex"))}),r}return(0,c.baToJSON)(e.raw)},e.serialize=function(){return o.rlp.encode(e.raw)},t.forEach(function(t,r){function i(){return e.raw[r]}function s(i){"00"!==(i=(0,c.toBuffer)(i)).toString("hex")||t.allowZero||(i=n.allocUnsafe(0)),t.allowLess&&t.length?(i=(0,c.unpadBuffer)(i),(0,a.default)(t.length>=i.length,"The field ".concat(t.name," must not have more ").concat(t.length," bytes"))):!(t.allowZero&&0===i.length)&&t.length&&(0,a.default)(t.length===i.length,"The field ".concat(t.name," must have byte length of ").concat(t.length)),e.raw[r]=i}e._fields.push(t.name),Object.defineProperty(e,t.name,{enumerable:!0,configurable:!0,get:i,set:s}),t.default&&(e[t.name]=t.default),t.alias&&Object.defineProperty(e,t.alias,{enumerable:!1,configurable:!0,set:s,get:i})}),r){if("string"==typeof r&&(r=n.from((0,s.stripHexPrefix)(r),"hex")),n.isBuffer(r)&&(r=o.rlp.decode(r)),Array.isArray(r)){if(r.length>e._fields.length)throw Error("wrong number of fields in data");r.forEach(function(t,r){e[e._fields[r]]=(0,c.toBuffer)(t)})}else if("object"==typeof r){var i=Object.keys(r);t.forEach(function(t){-1!==i.indexOf(t.name)&&(e[t.name]=r[t.name]),-1!==i.indexOf(t.alias)&&(e[t.alias]=r[t.alias])})}else throw Error("invalid data")}}},{"4f19986b48e2644b":"2MMCE","475ac5afa7180311":"aeMhE","1eeed620e8c77a86":"1a9Yl",ed5aa99cf4a3eb47:"hx2li","1561679a5d36a4b5":"kZa0v"}],"9HVeA":[function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("2c41d72e2205ba47")),a=e("d4a1dddc3f521d77"),s=function(){function e(e){this._hdkey=e}return e.fromMasterSeed=function(t){return new e(a.HDKey.fromMasterSeed(t))},e.fromExtendedKey=function(t){return new e(a.HDKey.fromExtendedKey(t))},e.prototype.privateExtendedKey=function(){if(!this._hdkey.privateExtendedKey)throw Error("This is a public key only wallet");return this._hdkey.privateExtendedKey},e.prototype.publicExtendedKey=function(){return this._hdkey.publicExtendedKey},e.prototype.derivePath=function(t){return new e(this._hdkey.derive(t))},e.prototype.deriveChild=function(t){return new e(this._hdkey.deriveChild(t))},e.prototype.getWallet=function(){return this._hdkey._privateKey?i.default.fromPrivateKey(this._hdkey._privateKey):i.default.fromPublicKey(this._hdkey._publicKey,!0)},e}();r.default=s},{"2c41d72e2205ba47":"3EQrb",d4a1dddc3f521d77:"e3XsS"}],e3XsS:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("9eadf172e078d2b");r.HDKey=n},{"9eadf172e078d2b":"fvUm3"}],fvUm3:[function(e,t,r){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var i=n(e("542b57e30980266")),a=n(e("b29214719ecb74bc")),s=n(e("2c84caaa37328663")),o=e("dcae1a9808881758"),c=e("1b7911d946b34666"),f=a.Buffer,u=f.from("Bitcoin seed","utf8"),d={private:76066276,public:76067358};function l(e){this.versions=e||d,this.depth=0,this.index=0,this._privateKey=null,this._publicKey=null,this.chainCode=null,this._fingerprint=0,this.parentFingerprint=0}function h(e,t,r){var n=f.allocUnsafe(78);n.writeUInt32BE(t,0),n.writeUInt8(e.depth,4);var i=e.depth?e.parentFingerprint:0;return n.writeUInt32BE(i,5),n.writeUInt32BE(e.index,9),e.chainCode.copy(n,13),r.copy(n,45),n}function p(e){var t=o.createHash("sha256").update(e).digest();return o.createHash("ripemd160").update(t).digest()}Object.defineProperty(l.prototype,"fingerprint",{get:function(){return this._fingerprint}}),Object.defineProperty(l.prototype,"identifier",{get:function(){return this._identifier}}),Object.defineProperty(l.prototype,"pubKeyHash",{get:function(){return this.identifier}}),Object.defineProperty(l.prototype,"privateKey",{get:function(){return this._privateKey},set:function(e){i.equal(e.length,32,"Private key must be 32 bytes."),i(!0===c.privateKeyVerify(e),"Invalid private key"),this._privateKey=e,this._publicKey=c.publicKeyCreate(e,!0),this._identifier=p(this.publicKey),this._fingerprint=this._identifier.slice(0,4).readUInt32BE(0)}}),Object.defineProperty(l.prototype,"publicKey",{get:function(){return this._publicKey},set:function(e){i(33===e.length||65===e.length,"Public key must be 33 or 65 bytes."),i(!0===c.publicKeyVerify(e),"Invalid public key"),this._publicKey=c.publicKeyConvert(e,!0),this._identifier=p(this.publicKey),this._fingerprint=this._identifier.slice(0,4).readUInt32BE(0),this._privateKey=null}}),Object.defineProperty(l.prototype,"privateExtendedKey",{get:function(){return this._privateKey?s.encode(h(this,this.versions.private,f.concat([f.alloc(1,0),this.privateKey]))):null}}),Object.defineProperty(l.prototype,"publicExtendedKey",{get:function(){return s.encode(h(this,this.versions.public,this.publicKey))}}),l.prototype.derive=function(e){if("m"===e||"M"===e||"m'"===e||"M'"===e)return this;var t=e.split("/"),r=this;return t.forEach(function(e,t){if(0===t){i(/^[mM]{1}/.test(e),'Path must start with "m" or "M"');return}var n=e.length>1&&"'"===e[e.length-1],a=parseInt(e,10);i(a<2147483648,"Invalid index"),n&&(a+=2147483648),r=r.deriveChild(a)}),r},l.prototype.deriveChild=function(e){var t,r=e>=2147483648,n=f.allocUnsafe(4);if(n.writeUInt32BE(e,0),r){i(this.privateKey,"Could not derive hardened child key");var a=this.privateKey,s=f.alloc(1,0);a=f.concat([s,a]),t=f.concat([a,n])}else t=f.concat([this.publicKey,n]);var u=o.createHmac("sha512",this.chainCode).update(t).digest(),d=u.slice(0,32),h=u.slice(32),p=new l(this.versions);if(this.privateKey)try{p.privateKey=c.privateKeyTweakAdd(this.privateKey,d)}catch(t){return this.deriveChild(e+1)}else try{p.publicKey=c.publicKeyTweakAdd(this.publicKey,d,!0)}catch(t){return this.deriveChild(e+1)}return p.chainCode=h,p.depth=this.depth+1,p.parentFingerprint=this.fingerprint,p.index=e,p},l.prototype.sign=function(e){return c.sign(e,this.privateKey).signature},l.prototype.verify=function(e,t){return c.verify(e,t,this.publicKey)},l.prototype.wipePrivateData=function(){return this._privateKey&&o.randomBytes(this._privateKey.length).copy(this._privateKey),this._privateKey=null,this},l.prototype.toJSON=function(){return{xpriv:this.privateExtendedKey,xpub:this.publicExtendedKey}},l.fromMasterSeed=function(e,t){var r=o.createHmac("sha512",u).update(e).digest(),n=r.slice(0,32),i=r.slice(32),a=new l(t);return a.chainCode=i,a.privateKey=n,a},l.fromExtendedKey=function(e,t){t=t||d;var r=new l(t),n=s.decode(e),a=n.readUInt32BE(0);i(a===t.private||a===t.public,"Version mismatch: does not match private or public"),r.depth=n.readUInt8(4),r.parentFingerprint=n.readUInt32BE(5),r.index=n.readUInt32BE(9),r.chainCode=n.slice(13,45);var o=n.slice(45);return 0===o.readUInt8(0)?(i(a===t.private,"Version mismatch: version does not match private"),r.privateKey=o.slice(1)):(i(a===t.public,"Version mismatch: version does not match public"),r.publicKey=o),r},l.fromJSON=function(e){return l.fromExtendedKey(e.xpriv)},l.HARDENED_OFFSET=2147483648,t.exports=l},{"542b57e30980266":"aeMhE",b29214719ecb74bc:"6CY3D","2c84caaa37328663":"kDmIw",dcae1a9808881758:"aOafK","1b7911d946b34666":"8atUA"}],kDmIw:[function(e,t,r){"use strict";var n=e("2331ee914eecec1b"),i=e("945e45a6bff39610");t.exports=i(function(e){var t=n("sha256").update(e).digest();return n("sha256").update(t).digest()})},{"2331ee914eecec1b":"cCtrs","945e45a6bff39610":"3oGgF"}],"3oGgF":[function(e,t,r){"use strict";var n=e("caf73c5a4abad99"),i=e("73eb26535ffb490f").Buffer;t.exports=function(e){function t(t){var r=t.slice(0,-4),n=t.slice(-4),i=e(r);if(!(n[0]^i[0]|n[1]^i[1]|n[2]^i[2]|n[3]^i[3]))return r}return{encode:function(t){var r=e(t);return n.encode(i.concat([t,r],t.length+4))},decode:function(r){var i=t(n.decode(r),e);if(!i)throw Error("Invalid checksum");return i},decodeUnsafe:function(e){var r=n.decodeUnsafe(e);if(r)return t(r)}}}},{caf73c5a4abad99:"iMorp","73eb26535ffb490f":"6CY3D"}],iMorp:[function(e,t,r){var n=e("819c30266ae09475");t.exports=n("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},{"819c30266ae09475":"kITEq"}],kITEq:[function(e,t,r){"use strict";var n=e("85b264801a1b57da").Buffer;t.exports=function(e){if(e.length>=255)throw TypeError("Alphabet too long");for(var t=new Uint8Array(256),r=0;r>>0,u=new Uint8Array(s);e[r];){var d=t[e.charCodeAt(r)];if(255===d)return;for(var l=0,h=s-1;(0!==d||l>>0,u[h]=d%256>>>0,d=d/256>>>0;if(0!==d)throw Error("Non-zero carry");a=l,r++}for(var p=s-a;p!==s&&0===u[p];)p++;var m=n.allocUnsafe(i+(s-p));m.fill(0,0,i);for(var b=i;p!==s;)m[b++]=u[p++];return m}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=n.from(t)),!n.isBuffer(t))throw TypeError("Expected Buffer");if(0===t.length)return"";for(var r=0,i=0,a=0,s=t.length;a!==s&&0===t[a];)a++,r++;for(var f=(s-a)*u+1>>>0,d=new Uint8Array(f);a!==s;){for(var l=t[a],h=0,p=f-1;(0!==l||h>>0,d[p]=l%o>>>0,l=l/o>>>0;if(0!==l)throw Error("Non-zero carry");i=h,a++}for(var m=f-i;m!==f&&0===d[m];)m++;for(var b=c.repeat(r);m0&&i[i.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0&&s!==(0,d.sha256)((0,d.sha256)(i)).slice(0,8).toString("hex"))throw Error("Failed to decrypt input - possibly invalid passphrase");return[3,4];case 3:throw Error("Unsupported or invalid entropy type");case 4:return[2,new h.default(i)]}})})}function w(e,t){if(e.length<10)throw Error("Passphrase must be at least 10 characters");if(t.length<10)throw Error("User id must be at least 10 characters");var r=e+t,n=u.pbkdf2Sync(r,r,2e3,32,"sha256");return new h.default(n)}r.fromEtherWallet=g,r.fromEtherCamp=y,r.fromKryptoKit=v,r.fromQuorumWallet=w,r.default={fromEtherWallet:g,fromEtherCamp:y,fromKryptoKit:v,fromQuorumWallet:w}},{ed3042420ccd8af5:"2MMCE","24fb00fb13067926":"32wxM","80b78b95d57afe5f":"kf6Fl","27bf01736bf36ec9":"81Ky2",f2da54b2a853144d:"3EQrb",fd2d3cf5825f9e2d:"lb1LE",ed020d9d4847d7ef:"89KGY"}],lb1LE:[function(e,t,r){!function(e){var t,r,n,i=String.fromCharCode;function a(e){for(var t,r,n=[],i=0,a=e.length;i=55296&&t<=56319&&i=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}function o(e,t){return i(e>>t&63|128)}function c(){if(n>=r)throw Error("Invalid byte index");var e=255&t[n];if(n++,(192&e)==128)return 63&e;throw Error("Invalid continuation byte")}e.version="3.0.0",e.encode=function(e){for(var t=a(e),r=t.length,n=-1,c="";++n>6&31|192):(4294901760&e)==0?(s(e),t=i(e>>12&15|224)+o(e,6)):(4292870144&e)==0&&(t=i(e>>18&7|240)+o(e,12)+o(e,6)),t+=i(63&e|128)}(t[n]);return c},e.decode=function(e){r=(t=a(e)).length,n=0;for(var o,f=[];!1!==(o=function(){var e,i,a,o;if(n>r)throw Error("Invalid byte index");if(n==r)return!1;if(e=255&t[n],n++,(128&e)==0)return e;if((224&e)==192){if((o=(31&e)<<6|(i=c()))>=128)return o;throw Error("Invalid continuation byte")}if((240&e)==224){if((o=(15&e)<<12|(i=c())<<6|c())>=2048)return s(o),o;throw Error("Invalid continuation byte")}if((248&e)==240&&(o=(7&e)<<18|(i=c())<<12|c()<<6|c())>=65536&&o<=1114111)return o;throw Error("Invalid UTF-8 detected")}());)f.push(o);return function(e){for(var t,r=e.length,n=-1,a="";++n65535&&(t-=65536,a+=i(t>>>10&1023|55296),t=56320|1023&t),a+=i(t);return a}(f)}}(r)},{}],"89KGY":[function(e,t,r){!function(e){"use strict";function r(e){return parseInt(e)===e}function n(e){if(!r(e.length))return!1;for(var t=0;t255)return!1;return!0}function i(e,t){if(e.buffer&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!n(e))throw Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(r(e.length)&&n(e))return new Uint8Array(e);throw Error("unsupported array-like object")}function a(e){return new Uint8Array(e)}function s(e,t,r,n,i){(null!=n||null!=i)&&(e=e.slice?e.slice(n,i):Array.prototype.slice.call(e,n,i)),t.set(e,r)}var o,c=(o="0123456789abcdef",{toBytes:function(e){for(var t=[],r=0;r>4]+o[15&n])}return t.join("")}}),f={16:10,24:12,32:14},u=[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],d=[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],l=[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],h=[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],p=[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],m=[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],b=[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],g=[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],y=[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],v=[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],w=[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],_=[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],E=[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],A=[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],M=[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 S(e){for(var t=[],r=0;r>2,this._Ke[a][t%4]=i[t],this._Kd[e-a][t%4]=i[t];for(var a,s,o=0,c=n;c>16&255]<<24^d[s>>8&255]<<16^d[255&s]<<8^d[s>>24&255]^u[o]<<24,o+=1,8!=n)for(var t=1;t>8&255]<<8^d[s>>16&255]<<16^d[s>>24&255]<<24;for(var t=n/2+1;t>2,h=c%4,this._Ke[l][h]=i[t],this._Kd[e-l][h]=i[t++],c++}for(var l=1;l>24&255]^E[s>>16&255]^A[s>>8&255]^M[255&s]},x.prototype.encrypt=function(e){if(16!=e.length)throw Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,r=[0,0,0,0],n=S(e),i=0;i<4;i++)n[i]^=this._Ke[0][i];for(var s=1;s>24&255]^p[n[(i+1)%4]>>16&255]^m[n[(i+2)%4]>>8&255]^b[255&n[(i+3)%4]]^this._Ke[s][i];n=r.slice()}for(var o,c=a(16),i=0;i<4;i++)o=this._Ke[t][i],c[4*i]=(d[n[i]>>24&255]^o>>24)&255,c[4*i+1]=(d[n[(i+1)%4]>>16&255]^o>>16)&255,c[4*i+2]=(d[n[(i+2)%4]>>8&255]^o>>8)&255,c[4*i+3]=(d[255&n[(i+3)%4]]^o)&255;return c},x.prototype.decrypt=function(e){if(16!=e.length)throw Error("invalid ciphertext size (must be 16 bytes)");for(var t=this._Kd.length-1,r=[0,0,0,0],n=S(e),i=0;i<4;i++)n[i]^=this._Kd[0][i];for(var s=1;s>24&255]^y[n[(i+3)%4]>>16&255]^v[n[(i+2)%4]>>8&255]^w[255&n[(i+1)%4]]^this._Kd[s][i];n=r.slice()}for(var o,c=a(16),i=0;i<4;i++)o=this._Kd[t][i],c[4*i]=(l[n[i]>>24&255]^o>>24)&255,c[4*i+1]=(l[n[(i+3)%4]>>16&255]^o>>16)&255,c[4*i+2]=(l[n[(i+2)%4]>>8&255]^o>>8)&255,c[4*i+3]=(l[255&n[(i+1)%4]]^o)&255;return c};var T=function(e){if(!(this instanceof T))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new x(e)};T.prototype.encrypt=function(e){if((e=i(e)).length%16!=0)throw Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=a(e.length),r=a(16),n=0;nNumber.MAX_SAFE_INTEGER)throw Error("integer value out of safe range");for(var t=15;t>=0;--t)this._counter[t]=e%256,e=parseInt(e/256)},C.prototype.setBytes=function(e){if(16!=(e=i(e,!0)).length)throw Error("invalid counter bytes size (must be 16 bytes)");this._counter=e},C.prototype.increment=function(){for(var e=15;e>=0;e--)if(255===this._counter[e])this._counter[e]=0;else{this._counter[e]++;break}};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 C||(t=new C(t)),this._counter=t,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new x(e)};P.prototype.encrypt=function(e){for(var t=i(e,!0),r=0;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("")}}},padding:{pkcs7:{pad:function(e){var t=16-(e=i(e,!0)).length%16,r=a(e.length+t);s(e,r);for(var n=e.length;n16)throw Error("PKCS#7 padding byte out of range");for(var r=e.length-t,n=0;na.default),n.export(r,"v3",()=>o.default),n.export(r,"v4",()=>f.default),n.export(r,"v5",()=>d.default),n.export(r,"NIL",()=>h.default),n.export(r,"version",()=>m.default),n.export(r,"validate",()=>g.default),n.export(r,"stringify",()=>v.default),n.export(r,"parse",()=>_.default);var i=e("./v1.js"),a=n.interopDefault(i),s=e("./v3.js"),o=n.interopDefault(s),c=e("./v4.js"),f=n.interopDefault(c),u=e("./v5.js"),d=n.interopDefault(u),l=e("./nil.js"),h=n.interopDefault(l),p=e("./version.js"),m=n.interopDefault(p),b=e("./validate.js"),g=n.interopDefault(b),y=e("./stringify.js"),v=n.interopDefault(y),w=e("./parse.js"),_=n.interopDefault(w)},{"./v1.js":"gGKC5","./v3.js":"3dgAK","./v4.js":"2pDqf","./v5.js":"3eR7A","./nil.js":"etUG0","./version.js":"8g3rW","./validate.js":"fQ2nF","./stringify.js":"3MQU4","./parse.js":"6wHlw","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gGKC5:[function(e,t,r){var n,i,a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(r);var s=e("./rng.js"),o=a.interopDefault(s),c=e("./stringify.js"),f=a.interopDefault(c),u=0,d=0;r.default=function(e,t,r){var a=t&&r||0,s=t||Array(16),c=(e=e||{}).node||n,l=void 0!==e.clockseq?e.clockseq:i;if(null==c||null==l){var h=e.random||(e.rng||(0,o.default))();null==c&&(c=n=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==l&&(l=i=(h[6]<<8|h[7])&16383)}var p=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:d+1,b=p-u+(m-d)/1e4;if(b<0&&void 0===e.clockseq&&(l=l+1&16383),(b<0||p>u)&&void 0===e.nsecs&&(m=0),m>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");u=p,d=m,i=l;var g=((268435455&(p+=122192928e5))*1e4+m)%4294967296;s[a++]=g>>>24&255,s[a++]=g>>>16&255,s[a++]=g>>>8&255,s[a++]=255&g;var y=p/4294967296*1e4&268435455;s[a++]=y>>>8&255,s[a++]=255&y,s[a++]=y>>>24&15|16,s[a++]=y>>>16&255,s[a++]=l>>>8|128,s[a++]=255&l;for(var v=0;v<6;++v)s[a+v]=c[v];return t||(0,f.default)(s)}},{"./rng.js":"8SQmh","./stringify.js":"3MQU4","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"8SQmh":[function(e,t,r){var n,i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"default",()=>s);var a=new Uint8Array(16);function s(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(a)}},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"3MQU4":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);for(var i=e("./validate.js"),a=n.interopDefault(i),s=[],o=0;o<256;++o)s.push((o+256).toString(16).substr(1));r.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!(0,a.default)(r))throw TypeError("Stringified UUID is invalid");return r}},{"./validate.js":"fQ2nF","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],fQ2nF:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./regex.js"),a=n.interopDefault(i);r.default=function(e){return"string"==typeof e&&(0,a.default).test(e)}},{"./regex.js":"4Dwns","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"4Dwns":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"3dgAK":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./v35.js"),a=n.interopDefault(i),s=e("./md5.js"),o=n.interopDefault(s),c=(0,a.default)("v3",48,o.default);r.default=c},{"./v35.js":"dCOwl","./md5.js":"6YMuO","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dCOwl:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"DNS",()=>c),n.export(r,"URL",()=>f),n.export(r,"default",()=>function(e,t,r){function n(e,n,i,s){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r}},{"./validate.js":"fQ2nF","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"6YMuO":[function(e,t,r){function n(e){return(e+64>>>9<<4)+14+1}function i(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function a(e,t,r,n,a,s){var o;return i((o=i(i(t,e),i(n,s)))<>>32-a,r)}function s(e,t,r,n,i,s,o){return a(t&r|~t&n,e,t,i,s,o)}function o(e,t,r,n,i,s,o){return a(t&n|r&~n,e,t,i,s,o)}function c(e,t,r,n,i,s,o){return a(t^r^n,e,t,i,s,o)}function f(e,t,r,n,i,s,o){return a(r^(t|~n),e,t,i,s,o)}e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r>5]>>>i%32&255,s=parseInt(n.charAt(a>>>4&15)+n.charAt(15&a),16);t.push(s)}return t}(function(e,t){e[t>>5]|=128<>5]|=(255&e[i/8])<>>32-t}e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var i=unescape(encodeURIComponent(e));e=[];for(var a=0;a>>0;v=y,y=g,g=n(b,30)>>>0,b=m,m=E}r[0]=r[0]+m>>>0,r[1]=r[1]+b>>>0,r[2]=r[2]+g>>>0,r[3]=r[3]+y>>>0,r[4]=r[4]+v>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],etUG0:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default="00000000-0000-0000-0000-000000000000"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"8g3rW":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./validate.js"),a=n.interopDefault(i);r.default=function(e){if(!(0,a.default)(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},{"./validate.js":"fQ2nF","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],eOqnc:[function(e,t,r){"use strict";var n,i,a,s,o=Object.create,c=Object.defineProperty,f=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,d=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,h=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of u(t))l.call(e,i)||i===r||c(e,i,{get:()=>t[i],enumerable:!(n=f(t,i))||n.enumerable});return e},p=(e,t,r)=>(r=null!=e?o(d(e)):{},h(!t&&e&&e.__esModule?r:c(r,"default",{value:e,enumerable:!0}),e)),m={};((e,t)=>{for(var r in t)c(e,r,{get:t[r],enumerable:!0})})(m,{AccessTokenEvents:()=>P,CheckSessionIFrame:()=>O,ErrorResponse:()=>I,ErrorTimeout:()=>C,InMemoryWebStorage:()=>N,Log:()=>_,Logger:()=>E,MetadataService:()=>B,OidcClient:()=>X,OidcClientSettingsStore:()=>D,SessionMonitor:()=>Y,SigninResponse:()=>V,SigninState:()=>K,SignoutResponse:()=>G,State:()=>z,User:()=>Q,UserManager:()=>eh,UserManagerSettingsStore:()=>ei,Version:()=>ep,WebStorageStateStore:()=>L}),t.exports=h(c({},"__esModule",{value:!0}),m);var b=p(e("cd65f2846f9a9917")),g=p(e("b081c80cbcca67d0")),y=p(e("69a1441ed613820e")),v=p(e("46685f198d718556")),w={debug:()=>void 0,info:()=>void 0,warn:()=>void 0,error:()=>void 0},_=((n=_||{})[n.NONE=0]="NONE",n[n.ERROR=1]="ERROR",n[n.WARN=2]="WARN",n[n.INFO=3]="INFO",n[n.DEBUG=4]="DEBUG",n);(i=_||(_={})).reset=function(){a=3,s=w},i.setLevel=function(e){if(!(0<=e&&e<=4))throw Error("Invalid log level");a=e},i.setLogger=function(e){s=e};var E=class{constructor(e){this._name=e}debug(...e){a>=4&&s.debug(E._format(this._name,this._method),...e)}info(...e){a>=3&&s.info(E._format(this._name,this._method),...e)}warn(...e){a>=2&&s.warn(E._format(this._name,this._method),...e)}error(...e){a>=1&&s.error(E._format(this._name,this._method),...e)}throw(e){throw this.error(e),e}create(e){let t=Object.create(this);return t._method=e,t.debug("begin"),t}static createStatic(e,t){let r=new E(`${e}.${t}`);return r.debug("begin"),r}static _format(e,t){let r=`[${e}]`;return t?`${r} ${t}:`:r}static debug(e,...t){a>=4&&s.debug(E._format(e),...t)}static info(e,...t){a>=3&&s.info(E._format(e),...t)}static warn(e,...t){a>=2&&s.warn(E._format(e),...t)}static error(e,...t){a>=1&&s.error(E._format(e),...t)}};_.reset();var A=class{static _randomWord(){return b.default.lib.WordArray.random(1).words[0]}static generateUUIDv4(){let e="10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(+e^A._randomWord()&15>>+e/4).toString(16));return e.replace(/-/g,"")}static generateCodeVerifier(){return A.generateUUIDv4()+A.generateUUIDv4()+A.generateUUIDv4()}static generateCodeChallenge(e){try{let t=(0,g.default)(e);return y.default.stringify(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}catch(e){throw E.error("CryptoUtils.generateCodeChallenge",e),e}}static generateBasicAuth(e,t){let r=v.default.parse([e,t].join(":"));return y.default.stringify(r)}},M=class{constructor(e){this._name=e,this._logger=new E(`Event('${this._name}')`),this._callbacks=[]}addHandler(e){return this._callbacks.push(e),()=>this.removeHandler(e)}removeHandler(e){let t=this._callbacks.lastIndexOf(e);t>=0&&this._callbacks.splice(t,1)}raise(...e){for(let t of(this._logger.debug("raise:",...e),this._callbacks))t(...e)}},S=p(e("3455b80cc963b26")),x=class{static decode(e){try{return(0,S.default)(e)}catch(e){throw E.error("JwtUtils.decode",e),e}}},T=class{static center({...e}){var t;return null==e.width&&(e.width=null!=(t=[800,720,600,480].find(e=>e<=window.outerWidth/1.618))?t:360),null!=e.left||(e.left=Math.max(0,Math.round(window.screenX+(window.outerWidth-e.width)/2))),null!=e.height&&(null!=e.top||(e.top=Math.max(0,Math.round(window.screenY+(window.outerHeight-e.height)/2)))),e}static serialize(e){return Object.entries(e).filter(([,e])=>null!=e).map(([e,t])=>`${e}=${"boolean"!=typeof t?t:t?"yes":"no"}`).join(",")}},k=class extends M{constructor(){super(...arguments),this._logger=new E(`Timer('${this._name}')`),this._timerHandle=null,this._expiration=0,this._callback=()=>{let e=this._expiration-k.getEpochTime();this._logger.debug("timer completes in",e),this._expiration<=k.getEpochTime()&&(this.cancel(),super.raise())}}static getEpochTime(){return Math.floor(Date.now()/1e3)}init(e){let t=this._logger.create("init");e=Math.max(Math.floor(e),1);let r=k.getEpochTime()+e;if(this.expiration===r&&this._timerHandle){t.debug("skipping since already initialized for expiration at",this.expiration);return}this.cancel(),t.debug("using duration",e),this._expiration=r;let n=Math.min(e,5);this._timerHandle=setInterval(this._callback,1e3*n)}get expiration(){return this._expiration}cancel(){this._logger.create("cancel"),this._timerHandle&&(clearInterval(this._timerHandle),this._timerHandle=null)}},R=class{static readParams(e,t="query"){if(!e)throw TypeError("Invalid URL");let r=new URL(e,"http://127.0.0.1"),n=r["fragment"===t?"hash":"search"];return new URLSearchParams(n.slice(1))}},I=class extends Error{constructor(e,t){var r,n,i;if(super(e.error_description||e.error||""),this.form=t,this.name="ErrorResponse",!e.error)throw E.error("ErrorResponse","No error passed"),Error("No error passed");this.error=e.error,this.error_description=null!=(r=e.error_description)?r:null,this.error_uri=null!=(n=e.error_uri)?n:null,this.state=e.userState,this.session_state=null!=(i=e.session_state)?i:null,this.url_state=e.url_state}},C=class extends Error{constructor(e){super(e),this.name="ErrorTimeout"}},P=class{constructor(e){this._logger=new E("AccessTokenEvents"),this._expiringTimer=new k("Access token expiring"),this._expiredTimer=new k("Access token expired"),this._expiringNotificationTimeInSeconds=e.expiringNotificationTimeInSeconds}load(e){let t=this._logger.create("load");if(e.access_token&&void 0!==e.expires_in){let r=e.expires_in;if(t.debug("access token present, remaining duration:",r),r>0){let e=r-this._expiringNotificationTimeInSeconds;e<=0&&(e=1),t.debug("registering expiring timer, raising in",e,"seconds"),this._expiringTimer.init(e)}else t.debug("canceling existing expiring timer because we're past expiration."),this._expiringTimer.cancel();let n=r+1;t.debug("registering expired timer, raising in",n,"seconds"),this._expiredTimer.init(n)}else this._expiringTimer.cancel(),this._expiredTimer.cancel()}unload(){this._logger.debug("unload: canceling existing access token timers"),this._expiringTimer.cancel(),this._expiredTimer.cancel()}addAccessTokenExpiring(e){return this._expiringTimer.addHandler(e)}removeAccessTokenExpiring(e){this._expiringTimer.removeHandler(e)}addAccessTokenExpired(e){return this._expiredTimer.addHandler(e)}removeAccessTokenExpired(e){this._expiredTimer.removeHandler(e)}},O=class{constructor(e,t,r,n,i){this._callback=e,this._client_id=t,this._intervalInSeconds=n,this._stopOnError=i,this._logger=new E("CheckSessionIFrame"),this._timer=null,this._session_state=null,this._message=e=>{e.origin===this._frame_origin&&e.source===this._frame.contentWindow&&("error"===e.data?(this._logger.error("error message from check session op iframe"),this._stopOnError&&this.stop()):"changed"===e.data?(this._logger.debug("changed message from check session op iframe"),this.stop(),this._callback()):this._logger.debug(e.data+" message from check session op iframe"))};let a=new URL(r);this._frame_origin=a.origin,this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="fixed",this._frame.style.left="-1000px",this._frame.style.top="0",this._frame.width="0",this._frame.height="0",this._frame.src=a.href}load(){return new Promise(e=>{this._frame.onload=()=>{e()},window.document.body.appendChild(this._frame),window.addEventListener("message",this._message,!1)})}start(e){if(this._session_state===e)return;this._logger.create("start"),this.stop(),this._session_state=e;let t=()=>{this._frame.contentWindow&&this._session_state&&this._frame.contentWindow.postMessage(this._client_id+" "+this._session_state,this._frame_origin)};t(),this._timer=setInterval(t,1e3*this._intervalInSeconds)}stop(){this._logger.create("stop"),this._session_state=null,this._timer&&(clearInterval(this._timer),this._timer=null)}},N=class{constructor(){this._logger=new E("InMemoryWebStorage"),this._data={}}clear(){this._logger.create("clear"),this._data={}}getItem(e){return this._logger.create(`getItem('${e}')`),this._data[e]}setItem(e,t){this._logger.create(`setItem('${e}')`),this._data[e]=t}removeItem(e){this._logger.create(`removeItem('${e}')`),delete this._data[e]}get length(){return Object.getOwnPropertyNames(this._data).length}key(e){return Object.getOwnPropertyNames(this._data)[e]}},j=class{constructor(e=[],t=null,r={}){this._jwtHandler=t,this._extraHeaders=r,this._logger=new E("JsonService"),this._contentTypes=[],this._contentTypes.push(...e,"application/json"),t&&this._contentTypes.push("application/jwt")}async fetchWithTimeout(e,t={}){let{timeoutInSeconds:r,...n}=t;if(!r)return await fetch(e,n);let i=new AbortController,a=setTimeout(()=>i.abort(),1e3*r);try{let r=await fetch(e,{...t,signal:i.signal});return r}catch(e){if(e instanceof DOMException&&"AbortError"===e.name)throw new C("Network timed out");throw e}finally{clearTimeout(a)}}async getJson(e,{token:t,credentials:r}={}){let n,i;let a=this._logger.create("getJson"),s={Accept:this._contentTypes.join(", ")};t&&(a.debug("token passed, setting Authorization header"),s.Authorization="Bearer "+t),this.appendExtraHeaders(s);try{a.debug("url:",e),n=await this.fetchWithTimeout(e,{method:"GET",headers:s,credentials:r})}catch(e){throw a.error("Network Error"),e}a.debug("HTTP response received, status",n.status);let o=n.headers.get("Content-Type");if(o&&!this._contentTypes.find(e=>o.startsWith(e))&&a.throw(Error(`Invalid response Content-Type: ${null!=o?o:"undefined"}, from URL: ${e}`)),n.ok&&this._jwtHandler&&(null==o?void 0:o.startsWith("application/jwt")))return await this._jwtHandler(await n.text());try{i=await n.json()}catch(e){if(a.error("Error parsing JSON response",e),n.ok)throw e;throw Error(`${n.statusText} (${n.status})`)}if(!n.ok){if(a.error("Error from server:",i),i.error)throw new I(i);throw Error(`${n.statusText} (${n.status}): ${JSON.stringify(i)}`)}return i}async postForm(e,{body:t,basicAuth:r,timeoutInSeconds:n,initCredentials:i}){let a;let s=this._logger.create("postForm"),o={Accept:this._contentTypes.join(", "),"Content-Type":"application/x-www-form-urlencoded"};void 0!==r&&(o.Authorization="Basic "+r),this.appendExtraHeaders(o);try{s.debug("url:",e),a=await this.fetchWithTimeout(e,{method:"POST",headers:o,body:t,timeoutInSeconds:n,credentials:i})}catch(e){throw s.error("Network error"),e}s.debug("HTTP response received, status",a.status);let c=a.headers.get("Content-Type");if(c&&!this._contentTypes.find(e=>c.startsWith(e)))throw Error(`Invalid response Content-Type: ${null!=c?c:"undefined"}, from URL: ${e}`);let f=await a.text(),u={};if(f)try{u=JSON.parse(f)}catch(e){if(s.error("Error parsing JSON response",e),a.ok)throw e;throw Error(`${a.statusText} (${a.status})`)}if(!a.ok){if(s.error("Error from server:",u),u.error)throw new I(u,t);throw Error(`${a.statusText} (${a.status}): ${JSON.stringify(u)}`)}return u}appendExtraHeaders(e){let t=this._logger.create("appendExtraHeaders"),r=Object.keys(this._extraHeaders),n=["authorization","accept","content-type"];0!==r.length&&r.forEach(r=>{if(n.includes(r.toLocaleLowerCase())){t.warn("Protected header could not be overridden",r,n);return}let i="function"==typeof this._extraHeaders[r]?this._extraHeaders[r]():this._extraHeaders[r];i&&""!==i&&(e[r]=i)})}},B=class{constructor(e){this._settings=e,this._logger=new E("MetadataService"),this._signingKeys=null,this._metadata=null,this._metadataUrl=this._settings.metadataUrl,this._jsonService=new j(["application/jwk-set+json"],null,this._settings.extraHeaders),this._settings.signingKeys&&(this._logger.debug("using signingKeys from settings"),this._signingKeys=this._settings.signingKeys),this._settings.metadata&&(this._logger.debug("using metadata from settings"),this._metadata=this._settings.metadata),this._settings.fetchRequestCredentials&&(this._logger.debug("using fetchRequestCredentials from settings"),this._fetchRequestCredentials=this._settings.fetchRequestCredentials)}resetSigningKeys(){this._signingKeys=null}async getMetadata(){let e=this._logger.create("getMetadata");if(this._metadata)return e.debug("using cached values"),this._metadata;if(!this._metadataUrl)throw e.throw(Error("No authority or metadataUrl configured on settings")),null;e.debug("getting metadata from",this._metadataUrl);let t=await this._jsonService.getJson(this._metadataUrl,{credentials:this._fetchRequestCredentials});return e.debug("merging remote JSON with seed metadata"),this._metadata=Object.assign({},this._settings.metadataSeed,t),this._metadata}getIssuer(){return this._getMetadataProperty("issuer")}getAuthorizationEndpoint(){return this._getMetadataProperty("authorization_endpoint")}getUserInfoEndpoint(){return this._getMetadataProperty("userinfo_endpoint")}getTokenEndpoint(e=!0){return this._getMetadataProperty("token_endpoint",e)}getCheckSessionIframe(){return this._getMetadataProperty("check_session_iframe",!0)}getEndSessionEndpoint(){return this._getMetadataProperty("end_session_endpoint",!0)}getRevocationEndpoint(e=!0){return this._getMetadataProperty("revocation_endpoint",e)}getKeysEndpoint(e=!0){return this._getMetadataProperty("jwks_uri",e)}async _getMetadataProperty(e,t=!1){let r=this._logger.create(`_getMetadataProperty('${e}')`),n=await this.getMetadata();if(r.debug("resolved"),void 0===n[e]){if(!0===t){r.warn("Metadata does not contain optional property");return}r.throw(Error("Metadata does not contain property "+e))}return n[e]}async getSigningKeys(){let e=this._logger.create("getSigningKeys");if(this._signingKeys)return e.debug("returning signingKeys from cache"),this._signingKeys;let t=await this.getKeysEndpoint(!1);e.debug("got jwks_uri",t);let r=await this._jsonService.getJson(t);if(e.debug("got key set",r),!Array.isArray(r.keys))throw e.throw(Error("Missing keys on keyset")),null;return this._signingKeys=r.keys,this._signingKeys}},L=class{constructor({prefix:e="oidc.",store:t=localStorage}={}){this._logger=new E("WebStorageStateStore"),this._store=t,this._prefix=e}async set(e,t){this._logger.create(`set('${e}')`),e=this._prefix+e,await this._store.setItem(e,t)}async get(e){this._logger.create(`get('${e}')`),e=this._prefix+e;let t=await this._store.getItem(e);return t}async remove(e){this._logger.create(`remove('${e}')`),e=this._prefix+e;let t=await this._store.getItem(e);return await this._store.removeItem(e),t}async getAllKeys(){this._logger.create("getAllKeys");let e=await this._store.length,t=[];for(let r=0;r{let t=this._logger.create("_getClaimsFromJwt");try{let r=x.decode(e);return t.debug("JWT decoding successful"),r}catch(e){throw t.error("Error parsing JWT response"),e}},this._jsonService=new j(void 0,this._getClaimsFromJwt,this._settings.extraHeaders)}async getClaims(e){let t=this._logger.create("getClaims");e||this._logger.throw(Error("No token passed"));let r=await this._metadataService.getUserInfoEndpoint();t.debug("got userinfo url",r);let n=await this._jsonService.getJson(r,{token:e,credentials:this._settings.fetchRequestCredentials});return t.debug("got claims",n),n}},F=class{constructor(e,t){this._settings=e,this._metadataService=t,this._logger=new E("TokenClient"),this._jsonService=new j(this._settings.revokeTokenAdditionalContentTypes,null,this._settings.extraHeaders)}async exchangeCode({grant_type:e="authorization_code",redirect_uri:t=this._settings.redirect_uri,client_id:r=this._settings.client_id,client_secret:n=this._settings.client_secret,...i}){let a;let s=this._logger.create("exchangeCode");r||s.throw(Error("A client_id is required")),t||s.throw(Error("A redirect_uri is required")),i.code||s.throw(Error("A code is required"));let o=new URLSearchParams({grant_type:e,redirect_uri:t});for(let[e,t]of Object.entries(i))null!=t&&o.set(e,t);switch(this._settings.client_authentication){case"client_secret_basic":if(!n)throw s.throw(Error("A client_secret is required")),null;a=A.generateBasicAuth(r,n);break;case"client_secret_post":o.append("client_id",r),n&&o.append("client_secret",n)}let c=await this._metadataService.getTokenEndpoint(!1);s.debug("got token endpoint");let f=await this._jsonService.postForm(c,{body:o,basicAuth:a,initCredentials:this._settings.fetchRequestCredentials});return s.debug("got response"),f}async exchangeCredentials({grant_type:e="password",client_id:t=this._settings.client_id,client_secret:r=this._settings.client_secret,scope:n=this._settings.scope,...i}){let a;let s=this._logger.create("exchangeCredentials");t||s.throw(Error("A client_id is required"));let o=new URLSearchParams({grant_type:e,scope:n});for(let[e,t]of Object.entries(i))null!=t&&o.set(e,t);switch(this._settings.client_authentication){case"client_secret_basic":if(!r)throw s.throw(Error("A client_secret is required")),null;a=A.generateBasicAuth(t,r);break;case"client_secret_post":o.append("client_id",t),r&&o.append("client_secret",r)}let c=await this._metadataService.getTokenEndpoint(!1);s.debug("got token endpoint");let f=await this._jsonService.postForm(c,{body:o,basicAuth:a,initCredentials:this._settings.fetchRequestCredentials});return s.debug("got response"),f}async exchangeRefreshToken({grant_type:e="refresh_token",client_id:t=this._settings.client_id,client_secret:r=this._settings.client_secret,timeoutInSeconds:n,...i}){let a;let s=this._logger.create("exchangeRefreshToken");t||s.throw(Error("A client_id is required")),i.refresh_token||s.throw(Error("A refresh_token is required"));let o=new URLSearchParams({grant_type:e});for(let[e,t]of Object.entries(i))Array.isArray(t)?t.forEach(t=>o.append(e,t)):null!=t&&o.set(e,t);switch(this._settings.client_authentication){case"client_secret_basic":if(!r)throw s.throw(Error("A client_secret is required")),null;a=A.generateBasicAuth(t,r);break;case"client_secret_post":o.append("client_id",t),r&&o.append("client_secret",r)}let c=await this._metadataService.getTokenEndpoint(!1);s.debug("got token endpoint");let f=await this._jsonService.postForm(c,{body:o,basicAuth:a,timeoutInSeconds:n,initCredentials:this._settings.fetchRequestCredentials});return s.debug("got response"),f}async revoke(e){var t;let r=this._logger.create("revoke");e.token||r.throw(Error("A token is required"));let n=await this._metadataService.getRevocationEndpoint(!1);r.debug(`got revocation endpoint, revoking ${null!=(t=e.token_type_hint)?t:"default token type"}`);let i=new URLSearchParams;for(let[t,r]of Object.entries(e))null!=r&&i.set(t,r);i.set("client_id",this._settings.client_id),this._settings.client_secret&&i.set("client_secret",this._settings.client_secret),await this._jsonService.postForm(n,{body:i}),r.debug("got response")}},q=class{constructor(e,t,r){this._settings=e,this._metadataService=t,this._claimsService=r,this._logger=new E("ResponseValidator"),this._userInfoService=new U(this._settings,this._metadataService),this._tokenClient=new F(this._settings,this._metadataService)}async validateSigninResponse(e,t){let r=this._logger.create("validateSigninResponse");this._processSigninState(e,t),r.debug("state processed"),await this._processCode(e,t),r.debug("code processed"),e.isOpenId&&this._validateIdTokenAttributes(e),r.debug("tokens validated"),await this._processClaims(e,null==t?void 0:t.skipUserInfo,e.isOpenId),r.debug("claims processed")}async validateCredentialsResponse(e,t){let r=this._logger.create("validateCredentialsResponse");e.isOpenId&&e.id_token&&this._validateIdTokenAttributes(e),r.debug("tokens validated"),await this._processClaims(e,t,e.isOpenId),r.debug("claims processed")}async validateRefreshResponse(e,t){let r=this._logger.create("validateRefreshResponse");e.userState=t.data,null!=e.session_state||(e.session_state=t.session_state),null!=e.scope||(e.scope=t.scope),e.isOpenId&&e.id_token&&(this._validateIdTokenAttributes(e,t.id_token),r.debug("ID Token validated")),e.id_token||(e.id_token=t.id_token,e.profile=t.profile);let n=e.isOpenId&&!!e.id_token;await this._processClaims(e,!1,n),r.debug("claims processed")}validateSignoutResponse(e,t){let r=this._logger.create("validateSignoutResponse");if(t.id!==e.state&&r.throw(Error("State does not match")),r.debug("state validated"),e.userState=t.data,e.error)throw r.warn("Response was error",e.error),new I(e)}_processSigninState(e,t){let r=this._logger.create("_processSigninState");if(t.id!==e.state&&r.throw(Error("State does not match")),t.client_id||r.throw(Error("No client_id on state")),t.authority||r.throw(Error("No authority on state")),this._settings.authority!==t.authority&&r.throw(Error("authority mismatch on settings vs. signin state")),this._settings.client_id&&this._settings.client_id!==t.client_id&&r.throw(Error("client_id mismatch on settings vs. signin state")),r.debug("state validated"),e.userState=t.data,e.url_state=t.url_state,null!=e.scope||(e.scope=t.scope),e.error)throw r.warn("Response was error",e.error),new I(e);t.code_verifier&&!e.code&&r.throw(Error("Expected code in response"))}async _processClaims(e,t=!1,r=!0){let n=this._logger.create("_processClaims");if(e.profile=this._claimsService.filterProtocolClaims(e.profile),t||!this._settings.loadUserInfo||!e.access_token){n.debug("not loading user info");return}n.debug("loading user info");let i=await this._userInfoService.getClaims(e.access_token);n.debug("user info claims received from user info endpoint"),r&&i.sub!==e.profile.sub&&n.throw(Error("subject from UserInfo response does not match subject in ID Token")),e.profile=this._claimsService.mergeClaims(e.profile,this._claimsService.filterProtocolClaims(i)),n.debug("user info claims received, updated profile:",e.profile)}async _processCode(e,t){let r=this._logger.create("_processCode");if(e.code){r.debug("Validating code");let n=await this._tokenClient.exchangeCode({client_id:t.client_id,client_secret:t.client_secret,code:e.code,redirect_uri:t.redirect_uri,code_verifier:t.code_verifier,...t.extraTokenParams});Object.assign(e,n)}else r.debug("No code to process")}_validateIdTokenAttributes(e,t){var r;let n=this._logger.create("_validateIdTokenAttributes");n.debug("decoding ID Token JWT");let i=x.decode(null!=(r=e.id_token)?r:"");if(i.sub||n.throw(Error("ID Token is missing a subject claim")),t){let e=x.decode(t);i.sub!==e.sub&&n.throw(Error("sub in id_token does not match current sub")),i.auth_time&&i.auth_time!==e.auth_time&&n.throw(Error("auth_time in id_token does not match original auth_time")),i.azp&&i.azp!==e.azp&&n.throw(Error("azp in id_token does not match original azp")),!i.azp&&e.azp&&n.throw(Error("azp not in id_token, but present in original id_token"))}e.profile=i}},z=class{constructor(e){this.id=e.id||A.generateUUIDv4(),this.data=e.data,e.created&&e.created>0?this.created=e.created:this.created=k.getEpochTime(),this.request_type=e.request_type,this.url_state=e.url_state}toStorageString(){return new E("State").create("toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,url_state:this.url_state})}static fromStorageString(e){return E.createStatic("State","fromStorageString"),new z(JSON.parse(e))}static async clearStaleState(e,t){let r=E.createStatic("State","clearStaleState"),n=k.getEpochTime()-t,i=await e.getAllKeys();r.debug("got keys",i);for(let t=0;ty.searchParams.append("resource",e))}for(let[e,t]of Object.entries({response_mode:o,...g,...p}))null!=t&&y.searchParams.append(e,t.toString());this.url=y.href}},V=class{constructor(e){if(this.access_token="",this.token_type="",this.profile={},this.state=e.get("state"),this.session_state=e.get("session_state"),this.state){let e=decodeURIComponent(this.state).split(";");this.state=e[0],e.length>1&&(this.url_state=e.slice(1).join(";"))}this.error=e.get("error"),this.error_description=e.get("error_description"),this.error_uri=e.get("error_uri"),this.code=e.get("code")}get expires_in(){if(void 0!==this.expires_at)return this.expires_at-k.getEpochTime()}set expires_in(e){"string"==typeof e&&(e=Number(e)),void 0!==e&&e>=0&&(this.expires_at=Math.floor(e)+k.getEpochTime())}get isOpenId(){var e;return(null==(e=this.scope)?void 0:e.split(" ").includes("openid"))||!!this.id_token}},W=class{constructor({url:e,state_data:t,id_token_hint:r,post_logout_redirect_uri:n,extraQueryParams:i,request_type:a,client_id:s}){if(this._logger=new E("SignoutRequest"),!e)throw this._logger.error("ctor: No url passed"),Error("url");let o=new URL(e);for(let[e,c]of(r&&o.searchParams.append("id_token_hint",r),s&&o.searchParams.append("client_id",s),n&&(o.searchParams.append("post_logout_redirect_uri",n),t&&(this.state=new z({data:t,request_type:a}),o.searchParams.append("state",this.state.id))),Object.entries({...i})))null!=c&&o.searchParams.append(e,c.toString());this.url=o.href}},G=class{constructor(e){this.state=e.get("state"),this.error=e.get("error"),this.error_description=e.get("error_description"),this.error_uri=e.get("error_uri")}},J=["nbf","jti","auth_time","nonce","acr","amr","azp","at_hash"],Z=["sub","iss","aud","exp","iat"],$=class{constructor(e){this._settings=e,this._logger=new E("ClaimsService")}filterProtocolClaims(e){let t={...e};if(this._settings.filterProtocolClaims)for(let e of Array.isArray(this._settings.filterProtocolClaims)?this._settings.filterProtocolClaims:J)Z.includes(e)||delete t[e];return t}mergeClaims(e,t){let r={...e};for(let[e,n]of Object.entries(t))for(let t of Array.isArray(n)?n:[n]){let n=r[e];void 0===n?r[e]=t:Array.isArray(n)?n.includes(t)||n.push(t):r[e]!==t&&("object"==typeof t&&this._settings.mergeClaims?r[e]=this.mergeClaims(n,t):r[e]=[n,t])}return r}},X=class{constructor(e,t){this._logger=new E("OidcClient"),this.settings=e instanceof D?e:new D(e),this.metadataService=null!=t?t:new B(this.settings),this._claimsService=new $(this.settings),this._validator=new q(this.settings,this.metadataService,this._claimsService),this._tokenClient=new F(this.settings,this.metadataService)}async createSigninRequest({state:e,request:t,request_uri:r,request_type:n,id_token_hint:i,login_hint:a,skipUserInfo:s,nonce:o,url_state:c,response_type:f=this.settings.response_type,scope:u=this.settings.scope,redirect_uri:d=this.settings.redirect_uri,prompt:l=this.settings.prompt,display:h=this.settings.display,max_age:p=this.settings.max_age,ui_locales:m=this.settings.ui_locales,acr_values:b=this.settings.acr_values,resource:g=this.settings.resource,response_mode:y=this.settings.response_mode,extraQueryParams:v=this.settings.extraQueryParams,extraTokenParams:w=this.settings.extraTokenParams}){let _=this._logger.create("createSigninRequest");if("code"!==f)throw Error("Only the Authorization Code flow (with PKCE) is supported");let E=await this.metadataService.getAuthorizationEndpoint();_.debug("Received authorization endpoint",E);let A=new H({url:E,authority:this.settings.authority,client_id:this.settings.client_id,redirect_uri:d,response_type:f,scope:u,state_data:e,url_state:c,prompt:l,display:h,max_age:p,ui_locales:m,id_token_hint:i,login_hint:a,acr_values:b,resource:g,request:t,request_uri:r,extraQueryParams:v,extraTokenParams:w,request_type:n,response_mode:y,client_secret:this.settings.client_secret,skipUserInfo:s,nonce:o,disablePKCE:this.settings.disablePKCE});await this.clearStaleState();let M=A.state;return await this.settings.stateStore.set(M.id,M.toStorageString()),A}async readSigninResponseState(e,t=!1){let r=this._logger.create("readSigninResponseState"),n=new V(R.readParams(e,this.settings.response_mode));if(!n.state)throw r.throw(Error("No state in response")),null;let i=await this.settings.stateStore[t?"remove":"get"](n.state);if(!i)throw r.throw(Error("No matching state found in storage")),null;let a=K.fromStorageString(i);return{state:a,response:n}}async processSigninResponse(e){let t=this._logger.create("processSigninResponse"),{state:r,response:n}=await this.readSigninResponseState(e,!0);return t.debug("received state from storage; validating response"),await this._validator.validateSigninResponse(n,r),n}async processResourceOwnerPasswordCredentials({username:e,password:t,skipUserInfo:r=!1,extraTokenParams:n={}}){let i=await this._tokenClient.exchangeCredentials({username:e,password:t,...n}),a=new V(new URLSearchParams);return Object.assign(a,i),await this._validator.validateCredentialsResponse(a,r),a}async useRefreshToken({state:e,timeoutInSeconds:t}){var r;let n;let i=this._logger.create("useRefreshToken");if(void 0===this.settings.refreshTokenAllowedScope)n=e.scope;else{let t=this.settings.refreshTokenAllowedScope.split(" "),i=(null==(r=e.scope)?void 0:r.split(" "))||[];n=i.filter(e=>t.includes(e)).join(" ")}let a=await this._tokenClient.exchangeRefreshToken({refresh_token:e.refresh_token,resource:e.resource,scope:n,timeoutInSeconds:t}),s=new V(new URLSearchParams);return Object.assign(s,a),i.debug("validating response",s),await this._validator.validateRefreshResponse(s,{...e,scope:n}),s}async createSignoutRequest({state:e,id_token_hint:t,client_id:r,request_type:n,post_logout_redirect_uri:i=this.settings.post_logout_redirect_uri,extraQueryParams:a=this.settings.extraQueryParams}={}){let s=this._logger.create("createSignoutRequest"),o=await this.metadataService.getEndSessionEndpoint();if(!o)throw s.throw(Error("No end session endpoint")),null;s.debug("Received end session endpoint",o),r||!i||t||(r=this.settings.client_id);let c=new W({url:o,id_token_hint:t,client_id:r,post_logout_redirect_uri:i,state_data:e,extraQueryParams:a,request_type:n});await this.clearStaleState();let f=c.state;return f&&(s.debug("Signout request has state to persist"),await this.settings.stateStore.set(f.id,f.toStorageString())),c}async readSignoutResponseState(e,t=!1){let r=this._logger.create("readSignoutResponseState"),n=new G(R.readParams(e,this.settings.response_mode));if(!n.state){if(r.debug("No state in response"),n.error)throw r.warn("Response was error:",n.error),new I(n);return{state:void 0,response:n}}let i=await this.settings.stateStore[t?"remove":"get"](n.state);if(!i)throw r.throw(Error("No matching state found in storage")),null;let a=z.fromStorageString(i);return{state:a,response:n}}async processSignoutResponse(e){let t=this._logger.create("processSignoutResponse"),{state:r,response:n}=await this.readSignoutResponseState(e,!0);return r?(t.debug("Received state from storage; validating response"),this._validator.validateSignoutResponse(n,r)):t.debug("No state from storage; skipping response validation"),n}clearStaleState(){return this._logger.create("clearStaleState"),z.clearStaleState(this.settings.stateStore,this.settings.staleStateAgeInSeconds)}async revokeToken(e,t){return this._logger.create("revokeToken"),await this._tokenClient.revoke({token:e,token_type_hint:t})}},Y=class{constructor(e){this._userManager=e,this._logger=new E("SessionMonitor"),this._start=async e=>{let t=e.session_state;if(!t)return;let r=this._logger.create("_start");if(e.profile?(this._sub=e.profile.sub,this._sid=e.profile.sid,r.debug("session_state",t,", sub",this._sub)):(this._sub=void 0,this._sid=void 0,r.debug("session_state",t,", anonymous user")),this._checkSessionIFrame){this._checkSessionIFrame.start(t);return}try{let e=await this._userManager.metadataService.getCheckSessionIframe();if(e){r.debug("initializing check session iframe");let n=this._userManager.settings.client_id,i=this._userManager.settings.checkSessionIntervalInSeconds,a=this._userManager.settings.stopCheckSessionOnError,s=new O(this._callback,n,e,i,a);await s.load(),this._checkSessionIFrame=s,s.start(t)}else r.warn("no check session iframe found in the metadata")}catch(e){r.error("Error from getCheckSessionIframe:",e instanceof Error?e.message:e)}},this._stop=()=>{let e=this._logger.create("_stop");if(this._sub=void 0,this._sid=void 0,this._checkSessionIFrame&&this._checkSessionIFrame.stop(),this._userManager.settings.monitorAnonymousSession){let t=setInterval(async()=>{clearInterval(t);try{let e=await this._userManager.querySessionStatus();if(e){let t={session_state:e.session_state,profile:e.sub&&e.sid?{sub:e.sub,sid:e.sid}:null};this._start(t)}}catch(t){e.error("error from querySessionStatus",t instanceof Error?t.message:t)}},1e3)}},this._callback=async()=>{let e=this._logger.create("_callback");try{let t=await this._userManager.querySessionStatus(),r=!0;t&&this._checkSessionIFrame?t.sub===this._sub?(r=!1,this._checkSessionIFrame.start(t.session_state),t.sid===this._sid?e.debug("same sub still logged in at OP, restarting check session iframe; session_state",t.session_state):(e.debug("same sub still logged in at OP, session state has changed, restarting check session iframe; session_state",t.session_state),this._userManager.events._raiseUserSessionChanged())):e.debug("different subject signed into OP",t.sub):e.debug("subject no longer signed into OP"),r?this._sub?this._userManager.events._raiseUserSignedOut():this._userManager.events._raiseUserSignedIn():e.debug("no change in session detected, no event to raise")}catch(t){this._sub&&(e.debug("Error calling queryCurrentSigninSession; raising signed out event",t),this._userManager.events._raiseUserSignedOut())}},e||this._logger.throw(Error("No user manager passed")),this._userManager.events.addUserLoaded(this._start),this._userManager.events.addUserUnloaded(this._stop),this._init().catch(e=>{this._logger.error(e)})}async _init(){this._logger.create("_init");let e=await this._userManager.getUser();if(e)this._start(e);else if(this._userManager.settings.monitorAnonymousSession){let e=await this._userManager.querySessionStatus();if(e){let t={session_state:e.session_state,profile:e.sub&&e.sid?{sub:e.sub,sid:e.sid}:null};this._start(t)}}}},Q=class{constructor(e){var t;this.id_token=e.id_token,this.session_state=null!=(t=e.session_state)?t:null,this.access_token=e.access_token,this.refresh_token=e.refresh_token,this.token_type=e.token_type,this.scope=e.scope,this.profile=e.profile,this.expires_at=e.expires_at,this.state=e.userState,this.url_state=e.url_state}get expires_in(){if(void 0!==this.expires_at)return this.expires_at-k.getEpochTime()}set expires_in(e){void 0!==e&&(this.expires_at=Math.floor(e)+k.getEpochTime())}get expired(){let e=this.expires_in;if(void 0!==e)return e<=0}get scopes(){var e,t;return null!=(t=null==(e=this.scope)?void 0:e.split(" "))?t:[]}toStorageString(){return new E("User").create("toStorageString"),JSON.stringify({id_token:this.id_token,session_state:this.session_state,access_token:this.access_token,refresh_token:this.refresh_token,token_type:this.token_type,scope:this.scope,profile:this.profile,expires_at:this.expires_at})}static fromStorageString(e){return E.createStatic("User","fromStorageString"),new Q(JSON.parse(e))}},ee="oidc-client",et=class{constructor(){this._abort=new M("Window navigation aborted"),this._disposeHandlers=new Set,this._window=null}async navigate(e){let t=this._logger.create("navigate");if(!this._window)throw Error("Attempted to navigate on a disposed window");t.debug("setting URL in window"),this._window.location.replace(e.url);let{url:r,keepOpen:n}=await new Promise((r,n)=>{let i=i=>{var a;let s=i.data,o=null!=(a=e.scriptOrigin)?a:window.location.origin;if(i.origin===o&&(null==s?void 0:s.source)===ee){try{let r=R.readParams(s.url,e.response_mode).get("state");if(r||t.warn("no state found in response url"),i.source!==this._window&&r!==e.state)return}catch(e){this._dispose(),n(Error("Invalid response from window"))}r(s)}};window.addEventListener("message",i,!1),this._disposeHandlers.add(()=>window.removeEventListener("message",i,!1)),this._disposeHandlers.add(this._abort.addHandler(e=>{this._dispose(),n(e)}))});return t.debug("got response from window"),this._dispose(),n||this.close(),{url:r}}_dispose(){for(let e of(this._logger.create("_dispose"),this._disposeHandlers))e();this._disposeHandlers.clear()}static _notifyParent(e,t,r=!1,n=window.location.origin){e.postMessage({source:ee,url:t,keepOpen:r},n)}},er={location:!1,toolbar:!1,height:640,closePopupWindowAfterInSeconds:-1},en="_blank",ei=class extends D{constructor(e){let{popup_redirect_uri:t=e.redirect_uri,popup_post_logout_redirect_uri:r=e.post_logout_redirect_uri,popupWindowFeatures:n=er,popupWindowTarget:i=en,redirectMethod:a="assign",redirectTarget:s="self",iframeNotifyParentOrigin:o=e.iframeNotifyParentOrigin,iframeScriptOrigin:c=e.iframeScriptOrigin,silent_redirect_uri:f=e.redirect_uri,silentRequestTimeoutInSeconds:u=10,automaticSilentRenew:d=!0,validateSubOnSilentRenew:l=!0,includeIdTokenInSilentRenew:h=!1,monitorSession:p=!1,monitorAnonymousSession:m=!1,checkSessionIntervalInSeconds:b=2,query_status_response_type:g="code",stopCheckSessionOnError:y=!0,revokeTokenTypes:v=["access_token","refresh_token"],revokeTokensOnSignout:w=!1,includeIdTokenInSilentSignout:_=!1,accessTokenExpiringNotificationTimeInSeconds:E=60,userStore:A}=e;if(super(e),this.popup_redirect_uri=t,this.popup_post_logout_redirect_uri=r,this.popupWindowFeatures=n,this.popupWindowTarget=i,this.redirectMethod=a,this.redirectTarget=s,this.iframeNotifyParentOrigin=o,this.iframeScriptOrigin=c,this.silent_redirect_uri=f,this.silentRequestTimeoutInSeconds=u,this.automaticSilentRenew=d,this.validateSubOnSilentRenew=l,this.includeIdTokenInSilentRenew=h,this.monitorSession=p,this.monitorAnonymousSession=m,this.checkSessionIntervalInSeconds=b,this.stopCheckSessionOnError=y,this.query_status_response_type=g,this.revokeTokenTypes=v,this.revokeTokensOnSignout=w,this.includeIdTokenInSilentSignout=_,this.accessTokenExpiringNotificationTimeInSeconds=E,A)this.userStore=A;else{let e="undefined"!=typeof window?window.sessionStorage:new N;this.userStore=new L({store:e})}}},ea=class extends et{constructor({silentRequestTimeoutInSeconds:e=10}){super(),this._logger=new E("IFrameWindow"),this._timeoutInSeconds=e,this._frame=ea.createHiddenIframe(),this._window=this._frame.contentWindow}static createHiddenIframe(){let e=window.document.createElement("iframe");return e.style.visibility="hidden",e.style.position="fixed",e.style.left="-1000px",e.style.top="0",e.width="0",e.height="0",window.document.body.appendChild(e),e}async navigate(e){this._logger.debug("navigate: Using timeout of:",this._timeoutInSeconds);let t=setTimeout(()=>this._abort.raise(new C("IFrame timed out without a response")),1e3*this._timeoutInSeconds);return this._disposeHandlers.add(()=>clearTimeout(t)),await super.navigate(e)}close(){var e;this._frame&&(this._frame.parentNode&&(this._frame.addEventListener("load",e=>{var t;let r=e.target;null==(t=r.parentNode)||t.removeChild(r),this._abort.raise(Error("IFrame removed from DOM"))},!0),null==(e=this._frame.contentWindow)||e.location.replace("about:blank")),this._frame=null),this._window=null}static notifyParent(e,t){return super._notifyParent(window.parent,e,!1,t)}},es=class{constructor(e){this._settings=e,this._logger=new E("IFrameNavigator")}async prepare({silentRequestTimeoutInSeconds:e=this._settings.silentRequestTimeoutInSeconds}){return new ea({silentRequestTimeoutInSeconds:e})}async callback(e){this._logger.create("callback"),ea.notifyParent(e,this._settings.iframeNotifyParentOrigin)}},eo=class extends et{constructor({popupWindowTarget:e=en,popupWindowFeatures:t={}}){super(),this._logger=new E("PopupWindow");let r=T.center({...er,...t});this._window=window.open(void 0,e,T.serialize(r)),t.closePopupWindowAfterInSeconds&&t.closePopupWindowAfterInSeconds>0&&setTimeout(()=>{if(!this._window||"boolean"!=typeof this._window.closed||this._window.closed){this._abort.raise(Error("Popup blocked by user"));return}this.close()},1e3*t.closePopupWindowAfterInSeconds)}async navigate(e){var t;null==(t=this._window)||t.focus();let r=setInterval(()=>{(!this._window||this._window.closed)&&this._abort.raise(Error("Popup closed by user"))},500);return this._disposeHandlers.add(()=>clearInterval(r)),await super.navigate(e)}close(){this._window&&!this._window.closed&&(this._window.close(),this._abort.raise(Error("Popup closed"))),this._window=null}static notifyOpener(e,t){if(!window.opener)throw Error("No window.opener. Can't complete notification.");return super._notifyParent(window.opener,e,t)}},ec=class{constructor(e){this._settings=e,this._logger=new E("PopupNavigator")}async prepare({popupWindowFeatures:e=this._settings.popupWindowFeatures,popupWindowTarget:t=this._settings.popupWindowTarget}){return new eo({popupWindowFeatures:e,popupWindowTarget:t})}async callback(e,{keepOpen:t=!1}){this._logger.create("callback"),eo.notifyOpener(e,t)}},ef=class{constructor(e){this._settings=e,this._logger=new E("RedirectNavigator")}async prepare({redirectMethod:e=this._settings.redirectMethod,redirectTarget:t=this._settings.redirectTarget}){var r;let n;this._logger.create("prepare");let i=window.self;"top"===t&&(i=null!=(r=window.top)?r:window.self);let a=i.location[e].bind(i.location);return{navigate:async e=>{this._logger.create("navigate");let t=new Promise((e,t)=>{n=t});return a(e.url),await t},close:()=>{this._logger.create("close"),null==n||n(Error("Redirect aborted")),i.stop()}}}async callback(){}},eu=class extends P{constructor(e){super({expiringNotificationTimeInSeconds:e.accessTokenExpiringNotificationTimeInSeconds}),this._logger=new E("UserManagerEvents"),this._userLoaded=new M("User loaded"),this._userUnloaded=new M("User unloaded"),this._silentRenewError=new M("Silent renew error"),this._userSignedIn=new M("User signed in"),this._userSignedOut=new M("User signed out"),this._userSessionChanged=new M("User session changed")}load(e,t=!0){super.load(e),t&&this._userLoaded.raise(e)}unload(){super.unload(),this._userUnloaded.raise()}addUserLoaded(e){return this._userLoaded.addHandler(e)}removeUserLoaded(e){return this._userLoaded.removeHandler(e)}addUserUnloaded(e){return this._userUnloaded.addHandler(e)}removeUserUnloaded(e){return this._userUnloaded.removeHandler(e)}addSilentRenewError(e){return this._silentRenewError.addHandler(e)}removeSilentRenewError(e){return this._silentRenewError.removeHandler(e)}_raiseSilentRenewError(e){this._silentRenewError.raise(e)}addUserSignedIn(e){return this._userSignedIn.addHandler(e)}removeUserSignedIn(e){this._userSignedIn.removeHandler(e)}_raiseUserSignedIn(){this._userSignedIn.raise()}addUserSignedOut(e){return this._userSignedOut.addHandler(e)}removeUserSignedOut(e){this._userSignedOut.removeHandler(e)}_raiseUserSignedOut(){this._userSignedOut.raise()}addUserSessionChanged(e){return this._userSessionChanged.addHandler(e)}removeUserSessionChanged(e){this._userSessionChanged.removeHandler(e)}_raiseUserSessionChanged(){this._userSessionChanged.raise()}},ed=class{constructor(e){this._userManager=e,this._logger=new E("SilentRenewService"),this._isStarted=!1,this._retryTimer=new k("Retry Silent Renew"),this._tokenExpiring=async()=>{let e=this._logger.create("_tokenExpiring");try{await this._userManager.signinSilent(),e.debug("silent token renewal successful")}catch(t){if(t instanceof C){e.warn("ErrorTimeout from signinSilent:",t,"retry in 5s"),this._retryTimer.init(5);return}e.error("Error from signinSilent:",t),this._userManager.events._raiseSilentRenewError(t)}}}async start(){let e=this._logger.create("start");if(!this._isStarted){this._isStarted=!0,this._userManager.events.addAccessTokenExpiring(this._tokenExpiring),this._retryTimer.addHandler(this._tokenExpiring);try{await this._userManager.getUser()}catch(t){e.error("getUser error",t)}}}stop(){this._isStarted&&(this._retryTimer.cancel(),this._retryTimer.removeHandler(this._tokenExpiring),this._userManager.events.removeAccessTokenExpiring(this._tokenExpiring),this._isStarted=!1)}},el=class{constructor(e,t){this.refresh_token=e.refresh_token,this.id_token=e.id_token,this.session_state=e.session_state,this.scope=e.scope,this.profile=e.profile,this.resource=t,this.data=e.state}},eh=class{constructor(e,t,r,n){this._logger=new E("UserManager"),this.settings=new ei(e),this._client=new X(e),this._redirectNavigator=null!=t?t:new ef(this.settings),this._popupNavigator=null!=r?r:new ec(this.settings),this._iframeNavigator=null!=n?n:new es(this.settings),this._events=new eu(this.settings),this._silentRenewService=new ed(this),this.settings.automaticSilentRenew&&this.startSilentRenew(),this._sessionMonitor=null,this.settings.monitorSession&&(this._sessionMonitor=new Y(this))}get events(){return this._events}get metadataService(){return this._client.metadataService}async getUser(){let e=this._logger.create("getUser"),t=await this._loadUser();return t?(e.info("user loaded"),this._events.load(t,!1),t):(e.info("user not found in storage"),null)}async removeUser(){let e=this._logger.create("removeUser");await this.storeUser(null),e.info("user removed from storage"),this._events.unload()}async signinRedirect(e={}){this._logger.create("signinRedirect");let{redirectMethod:t,...r}=e,n=await this._redirectNavigator.prepare({redirectMethod:t});await this._signinStart({request_type:"si:r",...r},n)}async signinRedirectCallback(e=window.location.href){let t=this._logger.create("signinRedirectCallback"),r=await this._signinEnd(e);return r.profile&&r.profile.sub?t.info("success, signed in subject",r.profile.sub):t.info("no subject"),r}async signinResourceOwnerCredentials({username:e,password:t,skipUserInfo:r=!1}){let n=this._logger.create("signinResourceOwnerCredential"),i=await this._client.processResourceOwnerPasswordCredentials({username:e,password:t,skipUserInfo:r,extraTokenParams:this.settings.extraTokenParams});n.debug("got signin response");let a=await this._buildUser(i);return a.profile&&a.profile.sub?n.info("success, signed in subject",a.profile.sub):n.info("no subject"),a}async signinPopup(e={}){let t=this._logger.create("signinPopup"),{popupWindowFeatures:r,popupWindowTarget:n,...i}=e,a=this.settings.popup_redirect_uri;a||t.throw(Error("No popup_redirect_uri configured"));let s=await this._popupNavigator.prepare({popupWindowFeatures:r,popupWindowTarget:n}),o=await this._signin({request_type:"si:p",redirect_uri:a,display:"popup",...i},s);return o&&(o.profile&&o.profile.sub?t.info("success, signed in subject",o.profile.sub):t.info("no subject")),o}async signinPopupCallback(e=window.location.href,t=!1){let r=this._logger.create("signinPopupCallback");await this._popupNavigator.callback(e,{keepOpen:t}),r.info("success")}async signinSilent(e={}){var t;let r;let n=this._logger.create("signinSilent"),{silentRequestTimeoutInSeconds:i,resource:a,...s}=e,o=await this._loadUser();if(null==o?void 0:o.refresh_token){n.debug("using refresh token");let e=new el(o,a);return await this._useRefreshToken(e)}let c=this.settings.silent_redirect_uri;c||n.throw(Error("No silent_redirect_uri configured")),o&&this.settings.validateSubOnSilentRenew&&(n.debug("subject prior to silent renew:",o.profile.sub),r=o.profile.sub);let f=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:i});return(o=await this._signin({request_type:"si:s",redirect_uri:c,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?null==o?void 0:o.id_token:void 0,...s},f,r))&&((null==(t=o.profile)?void 0:t.sub)?n.info("success, signed in subject",o.profile.sub):n.info("no subject")),o}async _useRefreshToken(e){let t=await this._client.useRefreshToken({state:e,timeoutInSeconds:this.settings.silentRequestTimeoutInSeconds}),r=new Q({...e,...t});return await this.storeUser(r),this._events.load(r),r}async signinSilentCallback(e=window.location.href){let t=this._logger.create("signinSilentCallback");await this._iframeNavigator.callback(e),t.info("success")}async signinCallback(e=window.location.href){let{state:t}=await this._client.readSigninResponseState(e);switch(t.request_type){case"si:r":return await this.signinRedirectCallback(e);case"si:p":return await this.signinPopupCallback(e);case"si:s":return await this.signinSilentCallback(e);default:throw Error("invalid response_type in state")}}async signoutCallback(e=window.location.href,t=!1){let{state:r}=await this._client.readSignoutResponseState(e);if(r)switch(r.request_type){case"so:r":await this.signoutRedirectCallback(e);break;case"so:p":await this.signoutPopupCallback(e,t);break;case"so:s":await this.signoutSilentCallback(e);break;default:throw Error("invalid response_type in state")}}async querySessionStatus(e={}){let t=this._logger.create("querySessionStatus"),{silentRequestTimeoutInSeconds:r,...n}=e,i=this.settings.silent_redirect_uri;i||t.throw(Error("No silent_redirect_uri configured"));let a=await this._loadUser(),s=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:r}),o=await this._signinStart({request_type:"si:s",redirect_uri:i,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?null==a?void 0:a.id_token:void 0,response_type:this.settings.query_status_response_type,scope:"openid",skipUserInfo:!0,...n},s);try{let e=await this._client.processSigninResponse(o.url);if(t.debug("got signin response"),e.session_state&&e.profile.sub)return t.info("success for subject",e.profile.sub),{session_state:e.session_state,sub:e.profile.sub,sid:e.profile.sid};return t.info("success, user not authenticated"),null}catch(e){if(this.settings.monitorAnonymousSession&&e instanceof I)switch(e.error){case"login_required":case"consent_required":case"interaction_required":case"account_selection_required":return t.info("success for anonymous user"),{session_state:e.session_state}}throw e}}async _signin(e,t,r){let n=await this._signinStart(e,t);return await this._signinEnd(n.url,r)}async _signinStart(e,t){let r=this._logger.create("_signinStart");try{let n=await this._client.createSigninRequest(e);return r.debug("got signin request"),await t.navigate({url:n.url,state:n.state.id,response_mode:n.state.response_mode,scriptOrigin:this.settings.iframeScriptOrigin})}catch(e){throw r.debug("error after preparing navigator, closing navigator window"),t.close(),e}}async _signinEnd(e,t){let r=this._logger.create("_signinEnd"),n=await this._client.processSigninResponse(e);r.debug("got signin response");let i=await this._buildUser(n,t);return i}async _buildUser(e,t){let r=this._logger.create("_buildUser"),n=new Q(e);if(t){if(t!==n.profile.sub)throw r.debug("current user does not match user returned from signin. sub from signin:",n.profile.sub),new I({...e,error:"login_required"});r.debug("current user matches user returned from signin")}return await this.storeUser(n),r.debug("user stored"),this._events.load(n),n}async signoutRedirect(e={}){let t=this._logger.create("signoutRedirect"),{redirectMethod:r,...n}=e,i=await this._redirectNavigator.prepare({redirectMethod:r});await this._signoutStart({request_type:"so:r",post_logout_redirect_uri:this.settings.post_logout_redirect_uri,...n},i),t.info("success")}async signoutRedirectCallback(e=window.location.href){let t=this._logger.create("signoutRedirectCallback"),r=await this._signoutEnd(e);return t.info("success"),r}async signoutPopup(e={}){let t=this._logger.create("signoutPopup"),{popupWindowFeatures:r,popupWindowTarget:n,...i}=e,a=this.settings.popup_post_logout_redirect_uri,s=await this._popupNavigator.prepare({popupWindowFeatures:r,popupWindowTarget:n});await this._signout({request_type:"so:p",post_logout_redirect_uri:a,state:null==a?void 0:{},...i},s),t.info("success")}async signoutPopupCallback(e=window.location.href,t=!1){let r=this._logger.create("signoutPopupCallback");await this._popupNavigator.callback(e,{keepOpen:t}),r.info("success")}async _signout(e,t){let r=await this._signoutStart(e,t);return await this._signoutEnd(r.url)}async _signoutStart(e={},t){var r;let n=this._logger.create("_signoutStart");try{let i=await this._loadUser();n.debug("loaded current user from storage"),this.settings.revokeTokensOnSignout&&await this._revokeInternal(i);let a=e.id_token_hint||i&&i.id_token;a&&(n.debug("setting id_token_hint in signout request"),e.id_token_hint=a),await this.removeUser(),n.debug("user removed, creating signout request");let s=await this._client.createSignoutRequest(e);return n.debug("got signout request"),await t.navigate({url:s.url,state:null==(r=s.state)?void 0:r.id,scriptOrigin:this.settings.iframeScriptOrigin})}catch(e){throw n.debug("error after preparing navigator, closing navigator window"),t.close(),e}}async _signoutEnd(e){let t=this._logger.create("_signoutEnd"),r=await this._client.processSignoutResponse(e);return t.debug("got signout response"),r}async signoutSilent(e={}){var t;let r=this._logger.create("signoutSilent"),{silentRequestTimeoutInSeconds:n,...i}=e,a=this.settings.includeIdTokenInSilentSignout?null==(t=await this._loadUser())?void 0:t.id_token:void 0,s=this.settings.popup_post_logout_redirect_uri,o=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:n});await this._signout({request_type:"so:s",post_logout_redirect_uri:s,id_token_hint:a,...i},o),r.info("success")}async signoutSilentCallback(e=window.location.href){let t=this._logger.create("signoutSilentCallback");await this._iframeNavigator.callback(e),t.info("success")}async revokeTokens(e){let t=await this._loadUser();await this._revokeInternal(t,e)}async _revokeInternal(e,t=this.settings.revokeTokenTypes){let r=this._logger.create("_revokeInternal");if(!e)return;let n=t.filter(t=>"string"==typeof e[t]);if(!n.length){r.debug("no need to revoke due to no token(s)");return}for(let t of n)await this._client.revokeToken(e[t],t),r.info(`${t} revoked successfully`),"access_token"!==t&&(e[t]=null);await this.storeUser(e),r.debug("user stored"),this._events.load(e)}startSilentRenew(){this._logger.create("startSilentRenew"),this._silentRenewService.start()}stopSilentRenew(){this._silentRenewService.stop()}get _userStoreKey(){return`user:${this.settings.authority}:${this.settings.client_id}`}async _loadUser(){let e=this._logger.create("_loadUser"),t=await this.settings.userStore.get(this._userStoreKey);return t?(e.debug("user storageString loaded"),Q.fromStorageString(t)):(e.debug("no user storageString"),null)}async storeUser(e){let t=this._logger.create("storeUser");if(e){t.debug("storing user");let r=e.toStorageString();await this.settings.userStore.set(this._userStoreKey,r)}else this._logger.debug("removing user"),await this.settings.userStore.remove(this._userStoreKey)}async clearStaleState(){await this._client.clearStaleState()}},ep="2.4.0"},{cd65f2846f9a9917:"8ZzbV",b081c80cbcca67d0:"9sBUz","69a1441ed613820e":"56xS8","46685f198d718556":"7nECe","3455b80cc963b26":"dIfrw"}],"8ZzbV":[function(e,t,r){var n,i=arguments[3];t.exports=n||function(t,r){if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==i&&i.crypto&&(n=i.crypto),!n)try{n=e("b7760e5f0b7216d4")}catch(e){}var n,a=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(e){}}throw Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),o={},c=o.lib={},f=c.Base={extend:function(e){var t=s(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},u=c.WordArray=f.extend({init:function(e,t){e=this.words=e||[],void 0!=t?this.sigBytes=t:this.sigBytes=4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var a=0;a>>2]>>>24-a%4*8&255;t[n+a>>>2]|=s<<24-(n+a)%4*8}else for(var o=0;o>>2]=r[o>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8,e.length=t.ceil(r/4)},clone:function(){var e=f.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r>>2]>>>24-i%4*8&255;n.push((a>>>4).toString(16)),n.push((15&a).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new u.init(r,t/2)}},h=d.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new u.init(r,t)}},p=d.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},m=c.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var r,n=this._data,i=n.words,a=n.sigBytes,s=this.blockSize,o=a/(4*s),c=(o=e?t.ceil(o):t.max((0|o)-this._minBufferSize,0))*s,f=t.min(4*c,a);if(c){for(var d=0;d>>7)^(p<<14|p>>>18)^p>>>3,b=d[h-2],g=(b<<15|b>>>17)^(b<<13|b>>>19)^b>>>10;d[h]=m+d[h-7]+g+d[h-16]}var y=o&c^~o&f,v=n&i^n&a^i&a,w=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),_=l+((o<<26|o>>>6)^(o<<21|o>>>11)^(o<<7|o>>>25))+y+u[h]+d[h],E=w+v;l=f,f=c,c=o,o=s+_|0,s=a,a=i,i=n,n=_+E|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+a|0,r[3]=r[3]+s|0,r[4]=r[4]+o|0,r[5]=r[5]+c|0,r[6]=r[6]+f|0,r[7]=r[7]+l|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[(n+64>>>9<<4)+14]=i.floor(r/4294967296),t[(n+64>>>9<<4)+15]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}}),n.SHA256=o._createHelper(l),n.HmacSHA256=o._createHmacHelper(l),n.SHA256)},{cd9e8447cb14a145:"8ZzbV"}],"56xS8":[function(e,t,r){var n,i;t.exports=(i=(n=e("6c67d43f833ec62e")).lib.WordArray,n.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],a=0;a>>2]>>>24-a%4*8&255)<<16|(t[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|t[a+2>>>2]>>>24-(a+2)%4*8&255,o=0;o<4&&a+.75*o>>6*(3-o)&63));var c=n.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e){var t=e.length,r=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var a=0;a>>6-s%4*2;n[a>>>2]|=o<<24-a%4*8,a++}return i.create(n,a)}(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)},{"6c67d43f833ec62e":"8ZzbV"}],"7nECe":[function(e,t,r){t.exports=e("7286559b12995fed").enc.Utf8},{"7286559b12995fed":"8ZzbV"}],dIfrw:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function i(e){this.message=e}n.defineInteropFlag(r),n.export(r,"InvalidTokenError",()=>s),i.prototype=Error(),i.prototype.name="InvalidCharacterError";var a="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new i("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,n,a=0,s=0,o="";n=t.charAt(s++);~n&&(r=a%4?64*r+n:n,a++%4)&&(o+=String.fromCharCode(255&r>>(-2*a&6))))n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(n);return o};function s(e){this.message=e}s.prototype=Error(),s.prototype.name="InvalidTokenError",r.default=function(e,t){if("string"!=typeof e)throw new s("Invalid token specified");var r=!0===(t=t||{}).header?0:1;try{return JSON.parse(function(e){var t,r=e.replace(/-/g,"+").replace(/_/g,"/");switch(r.length%4){case 0:break;case 2:r+="==";break;case 3:r+="=";break;default:throw"Illegal base64url string!"}try{return t=r,decodeURIComponent(a(t).replace(/(.)/g,function(e,t){var r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}catch(e){return a(r)}}(e.split(".")[r]))}catch(e){throw new s("Invalid token specified: "+e.message)}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"6uh7U":[function(e,t,r){var n=arguments[3];t.exports=(function e(t,r,n){function i(s,o){if(!r[s]){if(!t[s]){var c=void 0;if(!o&&c)return c(s,!0);if(a)return a(s,!0);var f=Error("Cannot find module '"+s+"'");throw f.code="MODULE_NOT_FOUND",f}var u=r[s]={exports:{}};t[s][0].call(u.exports,function(e){return i(t[s][1][e]||e)},u,u.exports,e,t,r,n)}return r[s].exports}for(var a=void 0,s=0;se.db.version;if(n&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),i||r){if(r){var a=e.db.version+1;a>e.version&&(e.version=a)}return!0}return!1}function E(e){return a([function(e){for(var t=e.length,r=new ArrayBuffer(t),n=new Uint8Array(r),i=0;i0&&(!e.db||"InvalidStateError"===i.name||"NotFoundError"===i.name))return s.resolve().then(function(){if(!e.db||"NotFoundError"===i.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),w(e,!0)}).then(function(){return(function(e){g(e);for(var t=h[e.name],r=t.forages,n=0;n=43)}}).catch(function(){return!1}).then(function(e){return l=e})).then(function(e){return e?t:new s(function(e,r){var n=new FileReader;n.onerror=r,n.onloadend=function(r){e({__local_forage_encoded_blob:!0,data:btoa(r.target.result||""),type:t.type})},n.readAsBinaryString(t)})}):t}).then(function(t){S(n._dbInfo,b,function(a,s){if(a)return i(a);try{var o=s.objectStore(n._dbInfo.storeName);null===t&&(t=void 0);var c=o.put(t,e);s.oncomplete=function(){void 0===t&&(t=null),r(t)},s.onabort=s.onerror=function(){var e=c.error?c.error:c.transaction.error;i(e)}}catch(e){i(e)}})}).catch(i)});return o(i,r),i},removeItem:function(e,t){var r=this;e=f(e);var n=new s(function(t,n){r.ready().then(function(){S(r._dbInfo,b,function(i,a){if(i)return n(i);try{var s=a.objectStore(r._dbInfo.storeName).delete(e);a.oncomplete=function(){t()},a.onerror=function(){n(s.error)},a.onabort=function(){var e=s.error?s.error:s.transaction.error;n(e)}}catch(e){n(e)}})}).catch(n)});return o(n,t),n},clear:function(e){var t=this,r=new s(function(e,r){t.ready().then(function(){S(t._dbInfo,b,function(n,i){if(n)return r(n);try{var a=i.objectStore(t._dbInfo.storeName).clear();i.oncomplete=function(){e()},i.onabort=i.onerror=function(){var e=a.error?a.error:a.transaction.error;r(e)}}catch(e){r(e)}})}).catch(r)});return o(r,e),r},length:function(e){var t=this,r=new s(function(e,r){t.ready().then(function(){S(t._dbInfo,m,function(n,i){if(n)return r(n);try{var a=i.objectStore(t._dbInfo.storeName).count();a.onsuccess=function(){e(a.result)},a.onerror=function(){r(a.error)}}catch(e){r(e)}})}).catch(r)});return o(r,e),r},key:function(e,t){var r=this,n=new s(function(t,n){if(e<0){t(null);return}r.ready().then(function(){S(r._dbInfo,m,function(i,a){if(i)return n(i);try{var s=a.objectStore(r._dbInfo.storeName),o=!1,c=s.openKeyCursor();c.onsuccess=function(){var r=c.result;if(!r){t(null);return}0===e?t(r.key):o?t(r.key):(o=!0,r.advance(e))},c.onerror=function(){n(c.error)}}catch(e){n(e)}})}).catch(n)});return o(n,t),n},keys:function(e){var t=this,r=new s(function(e,r){t.ready().then(function(){S(t._dbInfo,m,function(n,i){if(n)return r(n);try{var a=i.objectStore(t._dbInfo.storeName).openKeyCursor(),s=[];a.onsuccess=function(){var t=a.result;if(!t){e(s);return}s.push(t.key),t.continue()},a.onerror=function(){r(a.error)}}catch(e){r(e)}})}).catch(r)});return o(r,e),r},dropInstance:function(e,t){t=u.apply(this,arguments);var r,n=this.config();if((e="function"!=typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName),e.name){var a=e.name===n.name&&this._dbInfo.db?s.resolve(this._dbInfo.db):w(e,!1).then(function(t){var r=h[e.name],n=r.forages;r.db=t;for(var i=0;i>4,u[c++]=(15&n)<<4|i>>2,u[c++]=(3&i)<<6|63&a;return f}function W(e){var t,r=new Uint8Array(e),n="";for(t=0;t>2]+k[(3&r[t])<<4|r[t+1]>>4]+k[(15&r[t+1])<<2|r[t+2]>>6]+k[63&r[t+2]];return r.length%3==2?n=n.substring(0,n.length-1)+"=":r.length%3==1&&(n=n.substring(0,n.length-2)+"=="),n}var G={serialize:function(e,t){var r="";if(e&&(r=H.call(e)),e&&("[object ArrayBuffer]"===r||e.buffer&&"[object ArrayBuffer]"===H.call(e.buffer))){var n,i=I;e instanceof ArrayBuffer?(n=e,i+=P):(n=e.buffer,"[object Int8Array]"===r?i+=N:"[object Uint8Array]"===r?i+=j:"[object Uint8ClampedArray]"===r?i+=B:"[object Int16Array]"===r?i+=L:"[object Uint16Array]"===r?i+=U:"[object Int32Array]"===r?i+=D:"[object Uint32Array]"===r?i+=F:"[object Float32Array]"===r?i+=q:"[object Float64Array]"===r?i+=z:t(Error("Failed to get type for BinaryArray"))),t(i+W(n))}else if("[object Blob]"===r){var a=new FileReader;a.onload=function(){t(I+O+("~~local_forage_type~"+e.type)+"~"+W(this.result))},a.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(r){console.error("Couldn't convert value into a JSON string: ",e),t(null,r)}},deserialize:function(e){if(e.substring(0,C)!==I)return JSON.parse(e);var t,r=e.substring(K),n=e.substring(C,K);if(n===O&&R.test(r)){var i=r.match(R);t=i[1],r=r.substring(i[0].length)}var s=V(r);switch(n){case P:return s;case O:return a([s],{type:t});case N:return new Int8Array(s);case j:return new Uint8Array(s);case B:return new Uint8ClampedArray(s);case L:return new Int16Array(s);case U:return new Uint16Array(s);case D:return new Int32Array(s);case F:return new Uint32Array(s);case q:return new Float32Array(s);case z:return new Float64Array(s);default:throw Error("Unkown type: "+n)}},stringToBuffer:V,bufferToString:W};function J(e,t,r,n){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],r,n)}function Z(e,t,r,n,i,a){e.executeSql(r,n,i,function(e,s){s.code===s.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],function(e,o){o.rows.length?a(e,s):J(e,t,function(){e.executeSql(r,n,i,a)},a)},a):a(e,s)},a)}function $(e,t,r,n){var i=this;e=f(e);var a=new s(function(a,s){i.ready().then(function(){void 0===t&&(t=null);var o=t,c=i._dbInfo;c.serializer.serialize(t,function(t,f){f?s(f):c.db.transaction(function(r){Z(r,c,"INSERT OR REPLACE INTO "+c.storeName+" (key, value) VALUES (?, ?)",[e,t],function(){a(o)},function(e,t){s(t)})},function(t){if(t.code===t.QUOTA_ERR){if(n>0){a($.apply(i,[e,o,r,n-1]));return}s(t)}})})}).catch(s)});return o(a,r),a}var X={_driver:"webSQLStorage",_initStorage:function(e){var t=this,r={db:null};if(e)for(var n in e)r[n]="string"!=typeof e[n]?e[n].toString():e[n];var i=new s(function(e,n){try{r.db=openDatabase(r.name,String(r.version),r.description,r.size)}catch(e){return n(e)}r.db.transaction(function(i){J(i,r,function(){t._dbInfo=r,e()},function(e,t){n(t)})},n)});return r.serializer=G,i},_support:"function"==typeof openDatabase,iterate:function(e,t){var r=this,n=new s(function(t,n){r.ready().then(function(){var i=r._dbInfo;i.db.transaction(function(r){Z(r,i,"SELECT * FROM "+i.storeName,[],function(r,n){for(var a=n.rows,s=a.length,o=0;o '__WebKitDatabaseInfoTable__'",[],function(t,n){for(var i=[],a=0;a0)?(this._dbInfo=t,t.serializer=G,s.resolve()):s.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}(),iterate:function(e,t){var r=this,n=r.ready().then(function(){for(var t=r._dbInfo,n=t.keyPrefix,i=n.length,a=localStorage.length,s=1,o=0;o=0;r--){var n=localStorage.key(r);0===n.indexOf(e)&&localStorage.removeItem(n)}});return o(r,e),r},length:function(e){var t=this.keys().then(function(e){return e.length});return o(t,e),t},key:function(e,t){var r=this,n=r.ready().then(function(){var t,n=r._dbInfo;try{t=localStorage.key(e)}catch(e){t=null}return t&&(t=t.substring(n.keyPrefix.length)),t});return o(n,t),n},keys:function(e){var t=this,r=t.ready().then(function(){for(var e=t._dbInfo,r=localStorage.length,n=[],i=0;i=0;t--){var r=localStorage.key(t);0===r.indexOf(e)&&localStorage.removeItem(r)}}):s.reject("Invalid arguments"),t),r}},ee=function(e,t){for(var r,n=e.length,i=0;iM);var i=e("@magic-sdk/provider"),a=e("@magic-sdk/commons");n.exportAll(a,r);var s=arguments[3],o=Object.create,c=Object.defineProperty,f=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,d=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,h=void 0,p=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),m=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of u(t))l.call(e,i)||i===r||c(e,i,{get:()=>t[i],enumerable:!(n=f(t,i))||n.enumerable});return e},b=(e,t,r)=>(r=null!=e?o(d(e)):{},m(!t&&e&&e.__esModule?r:c(r,"default",{value:e,enumerable:!0}),e)),g=(e,t,r)=>new Promise((n,i)=>{var a=e=>{try{o(r.next(e))}catch(e){i(e)}},s=e=>{try{o(r.throw(e))}catch(e){i(e)}},o=e=>e.done?n(e.value):Promise.resolve(e.value).then(a,s);o((r=r.apply(e,t)).next())}),y=p((e,t)=>{!function(r){"object"==typeof e&&"u">typeof t?t.exports=r():"function"==typeof define&&define.amd?define([],r):("u">typeof window?window:"u">typeof s?s:"u">typeof self?self:this).localforage=r()}(function(){return(function e(t,r,n){function i(s,o){if(!r[s]){if(!t[s]){var c="function"==typeof h&&h;if(!o&&c)return c(s,!0);if(a)return a(s,!0);var f=Error("Cannot find module '"+s+"'");throw f.code="MODULE_NOT_FOUND",f}var u=r[s]={exports:{}};t[s][0].call(u.exports,function(e){return i(t[s][1][e]||e)},u,u.exports,e,t,r,n)}return r[s].exports}for(var a="function"==typeof h&&h,s=0;stypeof e.MessageChannel){var o=new e.MessageChannel;o.port1.onmessage=u,r=function(){o.port2.postMessage(0)}}else r="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};var c,f=[];function u(){c=!0;for(var e,t,r=f.length;r;){for(t=f,f=[],e=-1;++etypeof s?s:"u">typeof self?self:"u">typeof window?window:{})},{}],2:[function(e,t,r){"use strict";var n=e(1);function i(){}var a={},s=["REJECTED"],o=["FULFILLED"],c=["PENDING"];function f(e){if("function"!=typeof e)throw TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,e!==i&&h(this,e)}function u(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function d(e,t,r){n(function(){var n;try{n=t(r)}catch(t){return a.reject(e,t)}n===e?a.reject(e,TypeError("Cannot resolve promise with itself")):a.resolve(e,n)})}function l(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function h(e,t){var r=!1;function n(t){r||(r=!0,a.reject(e,t))}function i(t){r||(r=!0,a.resolve(e,t))}var s=p(function(){t(i,n)});"error"===s.status&&n(s.value)}function p(e,t){var r={};try{r.value=e(t),r.status="success"}catch(e){r.status="error",r.value=e}return r}t.exports=f,f.prototype.catch=function(e){return this.then(null,e)},f.prototype.then=function(e,t){if("function"!=typeof e&&this.state===o||"function"!=typeof t&&this.state===s)return this;var r=new this.constructor(i);return this.state!==c?d(r,this.state===o?e:t,this.outcome):this.queue.push(new u(r,e,t)),r},u.prototype.callFulfilled=function(e){a.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){a.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},a.resolve=function(e,t){var r=p(l,t);if("error"===r.status)return a.reject(e,r.value);var n=r.value;if(n)h(e,n);else{e.state=o,e.outcome=t;for(var i=-1,s=e.queue.length;++itypeof s?s:"u">typeof self?self:"u">typeof window?window:{})},{2:2}],4:[function(e,t,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){try{if("u">typeof indexedDB)return indexedDB;if("u">typeof webkitIndexedDB)return webkitIndexedDB;if("u">typeof mozIndexedDB)return mozIndexedDB;if("u">typeof OIndexedDB)return OIndexedDB;if("u">typeof msIndexedDB)return msIndexedDB}catch{return}}();function a(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(a){if("TypeError"!==a.name)throw a;for(var r="u">typeof BlobBuilder?BlobBuilder:"u">typeof MSBlobBuilder?MSBlobBuilder:"u">typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder,n=new r,i=0;i"u"&&e(3);var s=Promise;function o(e,t){t&&e.then(function(e){t(null,e)},function(e){t(e)})}function c(e,t,r){"function"==typeof t&&e.then(t),"function"==typeof r&&e.catch(r)}function f(e){return"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function u(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var d="local-forage-detect-blob-support",l=void 0,h={},p=Object.prototype.toString,m="readonly",b="readwrite";function g(e){var t=h[e.name],r={};r.promise=new s(function(e,t){r.resolve=e,r.reject=t}),t.deferredOperations.push(r),t.dbReady?t.dbReady=t.dbReady.then(function(){return r.promise}):t.dbReady=r.promise}function y(e){var t=h[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function v(e,t){var r=h[e.name].deferredOperations.pop();if(r)return r.reject(t),r.promise}function w(e,t){return new s(function(r,n){if(h[e.name]=h[e.name]||x(),e.db){if(!t)return r(e.db);g(e),e.db.close()}var a=[e.name];t&&a.push(e.version);var s=i.open.apply(i,a);t&&(s.onupgradeneeded=function(t){var r=s.result;try{r.createObjectStore(e.storeName),t.oldVersion<=1&&r.createObjectStore(d)}catch(r){if("ConstraintError"===r.name)console.warn('The database "'+e.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.');else throw r}}),s.onerror=function(e){e.preventDefault(),n(s.error)},s.onsuccess=function(){var t=s.result;t.onversionchange=function(e){e.target.close()},r(t),y(e)}})}function _(e,t){if(!e.db)return!0;var r=!e.db.objectStoreNames.contains(e.storeName),n=e.versione.db.version;if(n&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),i||r){if(r){var a=e.db.version+1;a>e.version&&(e.version=a)}return!0}return!1}function E(e){return a([function(e){for(var t=e.length,r=new ArrayBuffer(t),n=new Uint8Array(r),i=0;i0&&(!e.db||"InvalidStateError"===i.name||"NotFoundError"===i.name))return s.resolve().then(function(){if(!e.db||"NotFoundError"===i.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),w(e,!0)}).then(function(){return(function(e){g(e);for(var t=h[e.name],r=t.forages,n=0;ntypeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!e||t)&&"u">typeof indexedDB&&"u">typeof IDBKeyRange}catch{return!1}}(),iterate:function(e,t){var r=this,n=new s(function(t,n){r.ready().then(function(){S(r._dbInfo,m,function(i,a){if(i)return n(i);try{var s=a.objectStore(r._dbInfo.storeName).openCursor(),o=1;s.onsuccess=function(){var r=s.result;if(r){var n=r.value;A(n)&&(n=E(n));var i=e(n,r.key,o++);void 0!==i?t(i):r.continue()}else t()},s.onerror=function(){n(s.error)}}catch(e){n(e)}})}).catch(n)});return o(n,t),n},getItem:function(e,t){var r=this;e=f(e);var n=new s(function(t,n){r.ready().then(function(){S(r._dbInfo,m,function(i,a){if(i)return n(i);try{var s=a.objectStore(r._dbInfo.storeName).get(e);s.onsuccess=function(){var e=s.result;void 0===e&&(e=null),A(e)&&(e=E(e)),t(e)},s.onerror=function(){n(s.error)}}catch(e){n(e)}})}).catch(n)});return o(n,t),n},setItem:function(e,t,r){var n=this;e=f(e);var i=new s(function(r,i){var o;n.ready().then(function(){var e;return o=n._dbInfo,"[object Blob]"===p.call(t)?(e=o.db,"boolean"==typeof l?s.resolve(l):new s(function(t){var r=e.transaction(d,b),n=a([""]);r.objectStore(d).put(n,"key"),r.onabort=function(e){e.preventDefault(),e.stopPropagation(),t(!1)},r.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/);t(navigator.userAgent.match(/Edge\//)||!e||parseInt(e[1],10)>=43)}}).catch(function(){return!1}).then(function(e){return l=e})).then(function(e){return e?t:new s(function(e,r){var n=new FileReader;n.onerror=r,n.onloadend=function(r){e({__local_forage_encoded_blob:!0,data:btoa(r.target.result||""),type:t.type})},n.readAsBinaryString(t)})}):t}).then(function(t){S(n._dbInfo,b,function(a,s){if(a)return i(a);try{var o=s.objectStore(n._dbInfo.storeName);null===t&&(t=void 0);var c=o.put(t,e);s.oncomplete=function(){void 0===t&&(t=null),r(t)},s.onabort=s.onerror=function(){var e=c.error?c.error:c.transaction.error;i(e)}}catch(e){i(e)}})}).catch(i)});return o(i,r),i},removeItem:function(e,t){var r=this;e=f(e);var n=new s(function(t,n){r.ready().then(function(){S(r._dbInfo,b,function(i,a){if(i)return n(i);try{var s=a.objectStore(r._dbInfo.storeName).delete(e);a.oncomplete=function(){t()},a.onerror=function(){n(s.error)},a.onabort=function(){var e=s.error?s.error:s.transaction.error;n(e)}}catch(e){n(e)}})}).catch(n)});return o(n,t),n},clear:function(e){var t=this,r=new s(function(e,r){t.ready().then(function(){S(t._dbInfo,b,function(n,i){if(n)return r(n);try{var a=i.objectStore(t._dbInfo.storeName).clear();i.oncomplete=function(){e()},i.onabort=i.onerror=function(){var e=a.error?a.error:a.transaction.error;r(e)}}catch(e){r(e)}})}).catch(r)});return o(r,e),r},length:function(e){var t=this,r=new s(function(e,r){t.ready().then(function(){S(t._dbInfo,m,function(n,i){if(n)return r(n);try{var a=i.objectStore(t._dbInfo.storeName).count();a.onsuccess=function(){e(a.result)},a.onerror=function(){r(a.error)}}catch(e){r(e)}})}).catch(r)});return o(r,e),r},key:function(e,t){var r=this,n=new s(function(t,n){if(e<0){t(null);return}r.ready().then(function(){S(r._dbInfo,m,function(i,a){if(i)return n(i);try{var s=a.objectStore(r._dbInfo.storeName),o=!1,c=s.openKeyCursor();c.onsuccess=function(){var r=c.result;if(!r){t(null);return}0===e||o?t(r.key):(o=!0,r.advance(e))},c.onerror=function(){n(c.error)}}catch(e){n(e)}})}).catch(n)});return o(n,t),n},keys:function(e){var t=this,r=new s(function(e,r){t.ready().then(function(){S(t._dbInfo,m,function(n,i){if(n)return r(n);try{var a=i.objectStore(t._dbInfo.storeName).openKeyCursor(),s=[];a.onsuccess=function(){var t=a.result;if(!t){e(s);return}s.push(t.key),t.continue()},a.onerror=function(){r(a.error)}}catch(e){r(e)}})}).catch(r)});return o(r,e),r},dropInstance:function(e,t){t=u.apply(this,arguments);var r,n=this.config();if((e="function"!=typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName),e.name){var a=e.name===n.name&&this._dbInfo.db?s.resolve(this._dbInfo.db):w(e,!1).then(function(t){var r=h[e.name],n=r.forages;r.db=t;for(var i=0;i>4,u[c++]=(15&n)<<4|i>>2,u[c++]=(3&i)<<6|63&a;return f}function W(e){var t,r=new Uint8Array(e),n="";for(t=0;t>2]+k[(3&r[t])<<4|r[t+1]>>4]+k[(15&r[t+1])<<2|r[t+2]>>6]+k[63&r[t+2]];return r.length%3==2?n=n.substring(0,n.length-1)+"=":r.length%3==1&&(n=n.substring(0,n.length-2)+"=="),n}var G={serialize:function(e,t){var r="";if(e&&(r=H.call(e)),e&&("[object ArrayBuffer]"===r||e.buffer&&"[object ArrayBuffer]"===H.call(e.buffer))){var n,i=I;e instanceof ArrayBuffer?(n=e,i+=P):(n=e.buffer,"[object Int8Array]"===r?i+=N:"[object Uint8Array]"===r?i+=j:"[object Uint8ClampedArray]"===r?i+=B:"[object Int16Array]"===r?i+=L:"[object Uint16Array]"===r?i+=U:"[object Int32Array]"===r?i+=D:"[object Uint32Array]"===r?i+=F:"[object Float32Array]"===r?i+=q:"[object Float64Array]"===r?i+=z:t(Error("Failed to get type for BinaryArray"))),t(i+W(n))}else if("[object Blob]"===r){var a=new FileReader;a.onload=function(){t(I+O+("~~local_forage_type~"+e.type)+"~"+W(this.result))},a.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(r){console.error("Couldn't convert value into a JSON string: ",e),t(null,r)}},deserialize:function(e){if(e.substring(0,C)!==I)return JSON.parse(e);var t,r=e.substring(K),n=e.substring(C,K);if(n===O&&R.test(r)){var i=r.match(R);t=i[1],r=r.substring(i[0].length)}var s=V(r);switch(n){case P:return s;case O:return a([s],{type:t});case N:return new Int8Array(s);case j:return new Uint8Array(s);case B:return new Uint8ClampedArray(s);case L:return new Int16Array(s);case U:return new Uint16Array(s);case D:return new Int32Array(s);case F:return new Uint32Array(s);case q:return new Float32Array(s);case z:return new Float64Array(s);default:throw Error("Unkown type: "+n)}},stringToBuffer:V,bufferToString:W};function J(e,t,r,n){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],r,n)}function Z(e,t,r,n,i,a){e.executeSql(r,n,i,function(e,s){s.code===s.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],function(e,o){o.rows.length?a(e,s):J(e,t,function(){e.executeSql(r,n,i,a)},a)},a):a(e,s)},a)}function $(e,t,r,n){var i=this;e=f(e);var a=new s(function(a,s){i.ready().then(function(){void 0===t&&(t=null);var o=t,c=i._dbInfo;c.serializer.serialize(t,function(t,f){f?s(f):c.db.transaction(function(r){Z(r,c,"INSERT OR REPLACE INTO "+c.storeName+" (key, value) VALUES (?, ?)",[e,t],function(){a(o)},function(e,t){s(t)})},function(t){if(t.code===t.QUOTA_ERR){if(n>0){a($.apply(i,[e,o,r,n-1]));return}s(t)}})})}).catch(s)});return o(a,r),a}var X={_driver:"webSQLStorage",_initStorage:function(e){var t=this,r={db:null};if(e)for(var n in e)r[n]="string"!=typeof e[n]?e[n].toString():e[n];var i=new s(function(e,n){try{r.db=openDatabase(r.name,String(r.version),r.description,r.size)}catch(e){return n(e)}r.db.transaction(function(i){J(i,r,function(){t._dbInfo=r,e()},function(e,t){n(t)})},n)});return r.serializer=G,i},_support:"function"==typeof openDatabase,iterate:function(e,t){var r=this,n=new s(function(t,n){r.ready().then(function(){var i=r._dbInfo;i.db.transaction(function(r){Z(r,i,"SELECT * FROM "+i.storeName,[],function(r,n){for(var a=n.rows,s=a.length,o=0;o '__WebKitDatabaseInfoTable__'",[],function(t,r){for(var i=[],a=0;a0?(this._dbInfo=t,t.serializer=G,s.resolve()):s.reject()},_support:function(){try{return"u">typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}(),iterate:function(e,t){var r=this,n=r.ready().then(function(){for(var t=r._dbInfo,n=t.keyPrefix,i=n.length,a=localStorage.length,s=1,o=0;o=0;r--){var n=localStorage.key(r);0===n.indexOf(e)&&localStorage.removeItem(n)}});return o(r,e),r},length:function(e){var t=this.keys().then(function(e){return e.length});return o(t,e),t},key:function(e,t){var r=this,n=r.ready().then(function(){var t,n=r._dbInfo;try{t=localStorage.key(e)}catch{t=null}return t&&(t=t.substring(n.keyPrefix.length)),t});return o(n,t),n},keys:function(e){var t=this,r=t.ready().then(function(){for(var e=t._dbInfo,r=localStorage.length,n=[],i=0;i=0;t--){var r=localStorage.key(t);0===r.indexOf(e)&&localStorage.removeItem(r)}}):s.reject("Invalid arguments"),t),n}}},ei=[en.INDEXEDDB._driver,en.WEBSQL._driver,en.LOCALSTORAGE._driver],ea=["dropInstance"],es=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(ea),eo={description:"",driver:ei.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function ec(){for(var e=1;e"u"?"undefined":n(e))!=="object")return"string"==typeof e?this._config[e]:this._config;if(this._ready)return Error("Can't call config() after localforage has been used.");for(var t in e){if("storeName"===t&&(e[t]=e[t].replace(/\W/g,"_")),"version"===t&&"number"!=typeof e[t])return Error("Database version must be a number.");this._config[t]=e[t]}return!("driver"in e)||!e.driver||this.setDriver(this._config.driver)},e.prototype.defineDriver=function(e,t,r){var n=new s(function(t,r){try{var n=e._driver,i=Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!e._driver){r(i);return}for(var a=es.concat("_initStorage"),c=0,f=a.length;c{var r,n;r="u">typeof self?self:e,n=function(e){"use strict";var t=/^~~local_forage_type~([^~]+)~/,r=Object.prototype.toString;function n(e){var t=.75*e.length,r=e.length;"="===e[e.length-1]&&(t--,"="===e[e.length-2]&&t--);for(var n=new ArrayBuffer(t),i=new Uint8Array(n),a=0,s=0;a>4,i[s++]=(15&c)<<4|f>>2,i[s++]=(3&f)<<6|63&u}return n}function i(e){for(var t=new Uint8Array(e),r="",n=0;n>2]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(3&t[n])<<4|t[n+1]>>4]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(15&t[n+1])<<2|t[n+2]>>6]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[63&t[n+2]];return t.length%3==2?r=r.substring(0,r.length-1)+"=":t.length%3==1&&(r=r.substring(0,r.length-2)+"=="),r}function a(e,t){return(e.name||t.name)+"/"+(e.storeName||t.storeName)+"/"}function s(e,t){t&&e.then(function(e){t(null,e)},function(e){t(e)})}function o(){for(var e=[],t=0;ttypeof BlobBuilder?BlobBuilder:"u">typeof MSBlobBuilder?MSBlobBuilder:"u">typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder,n=new r,i=0;i=a.length&&(a=void 0),{value:a&&a[o++],done:!a}}}),f=c.next();!f.done;f=c.next()){var u=f.value;Object.prototype.hasOwnProperty.call(t,u)&&(t.isActiveClone=null,i[u]=e(t[u]),delete t.isActiveClone)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}return i}(e):{},r=a(t,this._defaultConfig),n=l.resolve(r);return this._dbInfo=t,this._dbInfo.serializer=u,this._dbInfo.keyPrefix=r,this._dbInfo.mStore=n,Promise.resolve()},e.clear=function(e){var t=this,r=this.ready().then(function(){t._dbInfo.mStore.clear()});return s(r,e),r},e.dropInstance=function(e,t){var r=c.apply(this,arguments),n=r.promise,i=r.callback;return s(n.then(function(e){l.resolve(e).drop()}),i),n},e.getItem=function(e,t){var r=this;e=f(e);var n=this.ready().then(function(){var t=r._dbInfo.mStore.get(e);return null==t?null:r._dbInfo.serializer.deserialize(t)});return s(n,t),n},e.iterate=function(e,t){var r=this,n=this.ready().then(function(){for(var t=r._dbInfo.mStore,n=t.keys(),i=0;itypeof t?n(e):"function"==typeof define&&define.amd?define("localforage-driver-memory",["exports"],n):n(r.LocalforageDriverMemory={})}),w=b(y()),_=b(v()),E={display:"none",position:"fixed",top:"0",right:"0",width:"100%",height:"100%",borderRadius:"0",border:"none",zIndex:"2147483647"},A=class extends i.ViewController{constructor(){super(...arguments),this.activeElement=null}init(){this.test="hello",this.iframe=new Promise(e=>{let t=()=>{var t;if(t=encodeURIComponent(this.parameters),[].slice.call(document.querySelectorAll(".magic-iframe")).find(e=>e.src.includes(t)))(0,i.createDuplicateIframeWarning)().log();else{let t=document.createElement("iframe");t.classList.add("magic-iframe"),t.dataset.magicIframeLabel=(0,i.createURL)(this.endpoint).host,t.title="Secure Modal",t.src=(0,i.createURL)(`/send?params=${encodeURIComponent(this.parameters)}`,this.endpoint).href,function(e){for(let[t,r]of Object.entries(E))e.style[t]=r}(t),document.body.appendChild(t),e(t)}};["loaded","interactive","complete"].includes(document.readyState)?t():window.addEventListener("load",t,!1)}),window.addEventListener("message",e=>{var t;if(e.origin===this.endpoint&&e.data&&e.data.msgType&&this.messageHandlers.size)for(let r of(e.data.response=null!=(t=e.data.response)?t:{},this.messageHandlers.values()))r(e)})}showOverlay(){return g(this,null,function*(){let e=yield this.iframe;e.style.display="block",this.activeElement=document.activeElement,e.focus()})}hideOverlay(){return g(this,null,function*(){var e;(yield this.iframe).style.display="none",null!=(e=this.activeElement)&&e.focus&&this.activeElement.focus(),this.activeElement=null})}_post(e){return g(this,null,function*(){let t=yield this.iframe;if(t&&t.contentWindow)t.contentWindow.postMessage(e,this.endpoint);else throw(0,i.createModalNotReadyError)()})}},M=(0,i.createSDK)(i.SDKBase,{platform:"web",sdkName:"magic-sdk",version:"21.2.0",defaultEndpoint:"https://auth.magic.link/",ViewController:A,configureStorage:()=>g(void 0,null,function*(){let e=w.default.createInstance({name:"MagicAuthLocalStorageDB",storeName:"MagicAuthLocalStorage"});return yield e.defineDriver(_),yield e.setDriver([w.default.INDEXEDDB,w.default.LOCALSTORAGE,_._driver]),e})})},{"@magic-sdk/provider":"kInmz","@magic-sdk/commons":"jZ3vB","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],kInmz:[function(e,t,r){let n;var i,a,s,o,c,f=e("@parcel/transformer-js/src/esmodule-helpers.js");f.defineInteropFlag(r),f.export(r,"Extension",()=>tN),f.export(r,"MagicExtensionError",()=>eF),f.export(r,"MagicExtensionWarning",()=>eq),f.export(r,"MagicRPCError",()=>eD),f.export(r,"MagicSDKError",()=>eL),f.export(r,"MagicSDKWarning",()=>eU),f.export(r,"SDKBase",()=>tU),f.export(r,"STORE_KEY_PRIVATE_KEY",()=>tv),f.export(r,"STORE_KEY_PUBLIC_JWK",()=>tw),f.export(r,"TypedEmitter",()=>e8),f.export(r,"ViewController",()=>tF),f.export(r,"clearKeys",()=>tA),f.export(r,"createDeprecationWarning",()=>eX),f.export(r,"createDuplicateIframeWarning",()=>eJ),f.export(r,"createExtensionNotInitializedError",()=>eV),f.export(r,"createIncompatibleExtensionsError",()=>eW),f.export(r,"createInvalidArgumentError",()=>eG),f.export(r,"createJwt",()=>tM),f.export(r,"createMalformedResponseError",()=>eH),f.export(r,"createMissingApiKeyError",()=>ez),f.export(r,"createModalNotReadyError",()=>eK),f.export(r,"createPromiEvent",()=>te),f.export(r,"createPromise",()=>tt),f.export(r,"createReactNativeEndpointConfigurationWarning",()=>e$),f.export(r,"createSDK",()=>ej),f.export(r,"createSynchronousWeb3MethodWarning",()=>eZ),f.export(r,"createTypedEmitter",()=>e4),f.export(r,"createURL",()=>tg),f.export(r,"decodeJSON",()=>ex),f.export(r,"encodeJSON",()=>eS),f.export(r,"getPayloadId",()=>eQ),f.export(r,"isEmpty",()=>eO),f.export(r,"isJsonRpcErrorCode",()=>eP),f.export(r,"isJsonRpcRequestPayload",()=>eR),f.export(r,"isJsonRpcResponsePayload",()=>eI),f.export(r,"isMagicPayloadMethod",()=>eC),f.export(r,"isMajorVersionAtLeast",()=>tn),f.export(r,"isPromiEvent",()=>e9),f.export(r,"storage",()=>ts),f.export(r,"uuid",()=>ty);var u=e("@magic-sdk/types"),d=e("af855673666531db"),l=Object.create,h=Object.defineProperty,p=Object.defineProperties,m=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyDescriptors,g=Object.getOwnPropertyNames,y=Object.getOwnPropertySymbols,v=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable,E=(e,t,r)=>t in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,A=(e,t)=>{for(var r in t||(t={}))w.call(t,r)&&E(e,r,t[r]);if(y)for(var r of y(t))_.call(t,r)&&E(e,r,t[r]);return e},M=(e,t)=>p(e,b(t)),S=(e,t,r)=>new Promise((n,i)=>{var a=e=>{try{o(r.next(e))}catch(e){i(e)}},s=e=>{try{o(r.throw(e))}catch(e){i(e)}},o=e=>e.done?n(e.value):Promise.resolve(e.value).then(a,s);o((r=r.apply(e,t)).next())}),x=(i=(e,t)=>{"use strict";var r=Object.prototype.hasOwnProperty,n="~";function i(){}function a(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function s(e,t,r,i,s){if("function"!=typeof r)throw TypeError("The listener must be a function");var o=new a(r,i||e,s),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],o]:e._events[c].push(o):(e._events[c]=o,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function c(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(n=!1)),c.prototype.eventNames=function(){var e,t,i=[];if(0===this._eventsCount)return i;for(t in e=this._events)r.call(e,t)&&i.push(n?t.slice(1):t);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},c.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,s=Array(a);itypeof t&&(t.exports=c)},()=>(a||i((a={exports:{}}).exports,a),a.exports)),T={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16},k=("object"==typeof d&&d.env,()=>{}),R=(function(e,t){let{MAX_SAFE_COMPONENT_LENGTH:r}=T,n=(t=e.exports={}).re=[],i=t.src=[],a=t.t={},s=0,o=(e,t,r)=>{let o=s++;k(o,t),a[e]=o,i[o]=t,n[o]=new RegExp(t,r?"g":void 0)};o("NUMERICIDENTIFIER","0|[1-9]\\d*"),o("NUMERICIDENTIFIERLOOSE","[0-9]+"),o("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),o("MAINVERSION",`(${i[a.NUMERICIDENTIFIER]})\\.(${i[a.NUMERICIDENTIFIER]})\\.(${i[a.NUMERICIDENTIFIER]})`),o("MAINVERSIONLOOSE",`(${i[a.NUMERICIDENTIFIERLOOSE]})\\.(${i[a.NUMERICIDENTIFIERLOOSE]})\\.(${i[a.NUMERICIDENTIFIERLOOSE]})`),o("PRERELEASEIDENTIFIER",`(?:${i[a.NUMERICIDENTIFIER]}|${i[a.NONNUMERICIDENTIFIER]})`),o("PRERELEASEIDENTIFIERLOOSE",`(?:${i[a.NUMERICIDENTIFIERLOOSE]}|${i[a.NONNUMERICIDENTIFIER]})`),o("PRERELEASE",`(?:-(${i[a.PRERELEASEIDENTIFIER]}(?:\\.${i[a.PRERELEASEIDENTIFIER]})*))`),o("PRERELEASELOOSE",`(?:-?(${i[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[a.PRERELEASEIDENTIFIERLOOSE]})*))`),o("BUILDIDENTIFIER","[0-9A-Za-z-]+"),o("BUILD",`(?:\\+(${i[a.BUILDIDENTIFIER]}(?:\\.${i[a.BUILDIDENTIFIER]})*))`),o("FULLPLAIN",`v?${i[a.MAINVERSION]}${i[a.PRERELEASE]}?${i[a.BUILD]}?`),o("FULL",`^${i[a.FULLPLAIN]}$`),o("LOOSEPLAIN",`[v=\\s]*${i[a.MAINVERSIONLOOSE]}${i[a.PRERELEASELOOSE]}?${i[a.BUILD]}?`),o("LOOSE",`^${i[a.LOOSEPLAIN]}$`),o("GTLT","((?:<|>)?=?)"),o("XRANGEIDENTIFIERLOOSE",`${i[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),o("XRANGEIDENTIFIER",`${i[a.NUMERICIDENTIFIER]}|x|X|\\*`),o("XRANGEPLAIN",`[v=\\s]*(${i[a.XRANGEIDENTIFIER]})(?:\\.(${i[a.XRANGEIDENTIFIER]})(?:\\.(${i[a.XRANGEIDENTIFIER]})(?:${i[a.PRERELEASE]})?${i[a.BUILD]}?)?)?`),o("XRANGEPLAINLOOSE",`[v=\\s]*(${i[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[a.XRANGEIDENTIFIERLOOSE]})(?:${i[a.PRERELEASELOOSE]})?${i[a.BUILD]}?)?)?`),o("XRANGE",`^${i[a.GTLT]}\\s*${i[a.XRANGEPLAIN]}$`),o("XRANGELOOSE",`^${i[a.GTLT]}\\s*${i[a.XRANGEPLAINLOOSE]}$`),o("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),o("COERCERTL",i[a.COERCE],!0),o("LONETILDE","(?:~>?)"),o("TILDETRIM",`(\\s*)${i[a.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",o("TILDE",`^${i[a.LONETILDE]}${i[a.XRANGEPLAIN]}$`),o("TILDELOOSE",`^${i[a.LONETILDE]}${i[a.XRANGEPLAINLOOSE]}$`),o("LONECARET","(?:\\^)"),o("CARETTRIM",`(\\s*)${i[a.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",o("CARET",`^${i[a.LONECARET]}${i[a.XRANGEPLAIN]}$`),o("CARETLOOSE",`^${i[a.LONECARET]}${i[a.XRANGEPLAINLOOSE]}$`),o("COMPARATORLOOSE",`^${i[a.GTLT]}\\s*(${i[a.LOOSEPLAIN]})$|^$`),o("COMPARATOR",`^${i[a.GTLT]}\\s*(${i[a.FULLPLAIN]})$|^$`),o("COMPARATORTRIM",`(\\s*)${i[a.GTLT]}\\s*(${i[a.LOOSEPLAIN]}|${i[a.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",o("HYPHENRANGE",`^\\s*(${i[a.XRANGEPLAIN]})\\s+-\\s+(${i[a.XRANGEPLAIN]})\\s*$`),o("HYPHENRANGELOOSE",`^\\s*(${i[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[a.XRANGEPLAINLOOSE]})\\s*$`),o("STAR","(<|>)?=?\\s*\\*"),o("GTE0","^\\s*>=\\s*0.0.0\\s*$"),o("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}(n={exports:{}},n.exports),n.exports),I=/^[0-9]+$/,C=(e,t)=>{let r=I.test(e),n=I.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:eC(t,e)},L=class{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof L){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw TypeError(`Invalid Version: ${e}`);if(e.length>P)throw TypeError(`version is longer than ${P} characters`);k("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let r=e.trim().match(t.loose?N[j.LOOSE]:N[j.FULL]);if(!r)throw TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>O||this.major<0)throw TypeError("Invalid major version");if(this.minor>O||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>O||this.patch<0)throw TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}},D=(e,t,r)=>new L(e,r).compare(new L(t,r)),U=(e,t,r)=>0===D(e,t,r),F=(e,t,r)=>0!==D(e,t,r),q=(e,t,r)=>D(e,t,r)>0,z=(e,t,r)=>D(e,t,r)>=0,K=(e,t,r)=>0>D(e,t,r),H=(e,t,r)=>0>=D(e,t,r),V=(e,t,r,n)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return U(e,r,n);case"!=":return F(e,r,n);case">":return q(e,r,n);case">=":return z(e,r,n);case"<":return K(e,r,n);case"<=":return H(e,r,n);default:throw TypeError(`Invalid operator: ${t}`)}},W=Symbol("SemVer ANY"),G=class{static get ANY(){return W}constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof G){if(!!t.loose===e.loose)return e;e=e.value}k("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===W?this.value="":this.value=this.operator+this.semver.version,k("comp",this)}parse(e){let t=this.options.loose?J[Z.COMPARATORLOOSE]:J[Z.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new L(r[2],this.options.loose):this.semver=W}toString(){return this.value}test(e){if(k("Comparator.test",e,this.options.loose),this.semver===W||e===W)return!0;if("string"==typeof e)try{e=new L(e,this.options)}catch(e){return!1}return V(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof G))throw TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new $(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new $(this.value,t).test(e.semver);let r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),n=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=V(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),o=V(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||n||i&&a||s||o}},{re:J,t:Z}=R,$=class{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease?e:new $(e.raw,t);if(e instanceof G)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${e}`);this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){let{loose:t}=this.options;e=e.trim();let r=t?X[Y.HYPHENRANGELOOSE]:X[Y.HYPHENRANGE];k("hyphen replace",e=e.replace(r,eh(this.options.includePrerelease))),k("comparator trim",e=e.replace(X[Y.COMPARATORTRIM],Q),X[Y.COMPARATORTRIM]),e=(e=(e=e.replace(X[Y.TILDETRIM],ee)).replace(X[Y.CARETTRIM],et)).split(/\s+/).join(" ");let n=t?X[Y.COMPARATORLOOSE]:X[Y.COMPARATOR];return e.split(" ").map(e=>en(e,this.options)).join(" ").split(/\s+/).map(e=>el(e,this.options)).filter(this.options.loose?e=>!!e.match(n):()=>!0).map(e=>new G(e,this.options))}intersects(e,t){if(!(e instanceof $))throw TypeError("a Range is required");return this.set.some(r=>er(r,t)&&e.set.some(e=>er(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new L(e,this.options)}catch(e){return!1}for(let t=0;t{let r=!0,n=e.slice(),i=n.pop();for(;r&&n.length;)r=n.every(e=>i.intersects(e,t)),i=n.pop();return r},en=(e,t)=>(k("comp",e,t),e=eo(e,t),k("caret",e),e=ea(e,t),k("tildes",e),e=ef(e,t),k("xrange",e),e=ed(e,t),k("stars",e),e),ei=e=>!e||"x"===e.toLowerCase()||"*"===e,ea=(e,t)=>e.trim().split(/\s+/).map(e=>es(e,t)).join(" "),es=(e,t)=>{let r=t.loose?X[Y.TILDELOOSE]:X[Y.TILDE];return e.replace(r,(t,r,n,i,a)=>{let s;return k("tilde",e,t,r,n,i,a),ei(r)?s="":ei(n)?s=`>=${r}.0.0 <${+r+1}.0.0-0`:ei(i)?s=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:a?(k("replaceTilde pr",a),s=`>=${r}.${n}.${i}-${a} <${r}.${+n+1}.0-0`):s=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,k("tilde return",s),s})},eo=(e,t)=>e.trim().split(/\s+/).map(e=>ec(e,t)).join(" "),ec=(e,t)=>{k("caret",e,t);let r=t.loose?X[Y.CARETLOOSE]:X[Y.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(t,r,i,a,s)=>{let o;return k("caret",e,t,r,i,a,s),ei(r)?o="":ei(i)?o=`>=${r}.0.0${n} <${+r+1}.0.0-0`:ei(a)?o="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:s?(k("replaceCaret pr",s),o="0"===r?"0"===i?`>=${r}.${i}.${a}-${s} <${r}.${i}.${+a+1}-0`:`>=${r}.${i}.${a}-${s} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${a}-${s} <${+r+1}.0.0-0`):(k("no pr"),o="0"===r?"0"===i?`>=${r}.${i}.${a}${n} <${r}.${i}.${+a+1}-0`:`>=${r}.${i}.${a}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${a} <${+r+1}.0.0-0`),k("caret return",o),o})},ef=(e,t)=>(k("replaceXRanges",e,t),e.split(/\s+/).map(e=>eu(e,t)).join(" ")),eu=(e,t)=>{e=e.trim();let r=t.loose?X[Y.XRANGELOOSE]:X[Y.XRANGE];return e.replace(r,(r,n,i,a,s,o)=>{k("xRange",e,r,n,i,a,s,o);let c=ei(i),f=c||ei(a),u=f||ei(s);return"="===n&&u&&(n=""),o=t.includePrerelease?"-0":"",c?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&u?(f&&(a=0),s=0,">"===n?(n=">=",f?(i=+i+1,a=0):a=+a+1,s=0):"<="===n&&(n="<",f?i=+i+1:a=+a+1),"<"===n&&(o="-0"),r=`${n+i}.${a}.${s}${o}`):f?r=`>=${i}.0.0${o} <${+i+1}.0.0-0`:u&&(r=`>=${i}.${a}.0${o} <${i}.${+a+1}.0-0`),k("xRange return",r),r})},ed=(e,t)=>(k("replaceStars",e,t),e.trim().replace(X[Y.STAR],"")),el=(e,t)=>(k("replaceGTE0",e,t),e.trim().replace(X[t.includePrerelease?Y.GTE0PRE:Y.GTE0],"")),eh=e=>(t,r,n,i,a,s,o,c,f,u,d,l,h)=>`${r=ei(n)?"":ei(i)?`>=${n}.0.0${e?"-0":""}`:ei(a)?`>=${n}.${i}.0${e?"-0":""}`:s?`>=${r}`:`>=${r}${e?"-0":""}`} ${c=ei(f)?"":ei(u)?`<${+f+1}.0.0-0`:ei(d)?`<${f}.${+u+1}.0-0`:l?`<=${f}.${u}.${d}-${l}`:e?`<${f}.${u}.${+d+1}-0`:`<=${c}`}`.trim(),ep=(e,t,r)=>{for(let r=0;r0){let n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0},em=(e,t,r)=>{try{t=new $(t,r)}catch(e){return!1}return t.test(e)},{MAX_LENGTH:eb}=T,{re:eg,t:ey}=R,ev=(e,t)=>{if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof L)return e;if("string"!=typeof e||e.length>eb||!(t.loose?eg[ey.LOOSE]:eg[ey.FULL]).test(e))return null;try{return new L(e,t)}catch(e){return null}},{re:ew,t:e_}=R,eE=(e,t)=>{if(e instanceof L)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let t;for(;(t=ew[e_.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),ew[e_.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;ew[e_.COERCERTL].lastIndex=-1}else r=e.match(ew[e_.COERCE]);return null===r?null:ev(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)};function eA(e){return String.fromCharCode(parseInt(e.slice(1),16))}function eM(e){return`%${`00${e.charCodeAt(0).toString(16)}`.slice(-2)}`}function eS(e){return btoa(encodeURIComponent(JSON.stringify(e)).replace(/%[0-9A-F]{2}/g,eA))}function ex(e){return JSON.parse(decodeURIComponent(Array.from(atob(e),eM).join("")))}function eT(e){return void 0===e}function ek(e){return null===e||eT(e)}function eR(e){return!ek(e)&&!eT(e.jsonrpc)&&!eT(e.id)&&!eT(e.method)&&!eT(e.params)}function eI(e){return!ek(e)&&!eT(e.jsonrpc)&&!eT(e.id)&&(!eT(e.result)||!eT(e.error))}function eC(e){return!ek(e)&&"string"==typeof e&&Object.values(u.MagicPayloadMethod).includes(e)}function eP(e){return!ek(e)&&"number"==typeof e&&Object.values(u.RPCErrorCode).includes(e)}function eO(e){if(!e)return!0;for(let t in e)if(Object.hasOwnProperty.call(e,t))return!1;return!0}var eN={};function ej(e,t){return Object.assign(eN,t),e}var eB={"magic-sdk":"magic-sdk","@magic-sdk/react-native":"magic-sdk-rn","@magic-sdk/react-native-bare":"magic-sdk-rn-bare","@magic-sdk/react-native-expo":"magic-sdk-rn-expo"},eL=class extends Error{constructor(e,t){super(`Magic SDK Error: [${e}] ${t}`),this.code=e,this.rawMessage=t,this.__proto__=Error,Object.setPrototypeOf(this,eL.prototype)}},eD=class extends Error{constructor(e){super(),this.__proto__=Error;let t=Number(null==e?void 0:e.code);this.rawMessage=(null==e?void 0:e.message)||"Internal error",this.code=eP(t)?t:u.RPCErrorCode.InternalError,this.message=`Magic RPC Error: [${this.code}] ${this.rawMessage}`,this.data=(null==e?void 0:e.data)||void 0,Object.setPrototypeOf(this,eD.prototype)}},eU=class{constructor(e,t){this.code=e,this.rawMessage=t,this.message=`Magic SDK Warning: [${e}] ${t}`}log(){console.warn(this.message)}},eF=class extends Error{constructor(e,t,r,n){super(`Magic Extension Error (${e.name}): [${t}] ${r}`),this.code=t,this.rawMessage=r,this.data=n,this.__proto__=Error,Object.setPrototypeOf(this,eF.prototype)}},eq=class{constructor(e,t,r){this.code=t,this.rawMessage=r,this.message=`Magic Extension Warning (${e.name}): [${t}] ${r}`}log(){console.warn(this.message)}};function ez(){return new eL(u.SDKErrorCode.MissingApiKey,"Please provide an API key that you acquired from the Magic developer dashboard.")}function eK(){return new eL(u.SDKErrorCode.ModalNotReady,"Modal is not ready.")}function eH(){return new eL(u.SDKErrorCode.MalformedResponse,"Response from the Magic iframe is malformed.")}function eV(e){return new eL(u.SDKErrorCode.ExtensionNotInitialized,`Extensions must be initialized with a Magic SDK instance before \`Extension.${e}\` can be accessed. Do not invoke \`Extension.${e}\` inside an extension constructor.`)}function eW(e){let t=`Some extensions are incompatible with \`${eN.sdkName}@${eN.version}\`:`;return e.filter(e=>void 0!==e.compat&&null!==e.compat).forEach(e=>{let r=e.compat[eN.sdkName];"string"==typeof r?t+=` - Extension \`${e.name}\` supports version(s) \`${r}\``:r||(t+=` - Extension \`${e.name}\` does not support ${eN.platform} environments.`)}),new eL(u.SDKErrorCode.IncompatibleExtensions,t)}function eG(e){let t,r,n;return new eL(u.SDKErrorCode.InvalidArgument,`Invalid ${(r=(t=e.argument+1)%10,n=t%100,1===r&&11!==n?`${t}st`:2===r&&12!==n?`${t}nd`:3===r&&13!==n?`${t}rd`:`${t}th`)} argument given to \`${e.procedure}\`. Expected: \`${e.expected}\` - Received: \`${e.received}\``)}function eJ(){return new eU(u.SDKWarningCode.DuplicateIframe,"Duplicate iframes found.")}function eZ(){return new eU(u.SDKWarningCode.SyncWeb3Method,"Non-async web3 methods are deprecated in web3 > 1.0 and are not supported by the Magic web3 provider. Please use an async method instead.")}function e$(){return new eU(u.SDKWarningCode.ReactNativeEndpointConfiguration,`CUSTOM DOMAINS ARE NOT SUPPORTED WHEN USING MAGIC SDK WITH REACT NATIVE! The \`endpoint\` parameter SHOULD NOT be provided. The Magic \`