1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5809],{822:function(e){e.exports=function(e,t,i){i.updateLocale=function(e,t){var r=i.Ls[e];if(r)return(t?Object.keys(t):[]).forEach(function(e){r[e]=t[e]}),r}}},1038:(e,t,i)=>{let r=i(25190).getSymbolSize;t.getPositions=function(e){let t=r(e);return[[0,0],[t-7,0],[0,t-7]]}},1750:(e,t,i)=>{"use strict";i.d(t,{_:()=>en});var r=i(97220),a=i(9068),n=i(17964),o=i(49140),s=i(45086),l=i(34194),c=i(60210),d=i(56119),u=i(68803),h=i(81241),p=i(20592),m=i(38195),g=i(58616),f=i(4068),w=i(33364),y=i(40776),b=i(44343),v=i(70794),C=i(25066),x=i(22522),E=i(25921),k=i(4765),A=i(33579),$=i(15495),_=i(96928),N=i(32866),S=i(7831),T=i(24915),R=i(16083),I=i(22493),P=i(31723),O=i(53538),M=i(87734),W=i(99216),L=i(24289),D=i(9348),U=i(21645),F=i(98283),H=i(94910),j=i(67789),Z=i(3314);let B={TOKEN_ADDRESSES_BY_SYMBOL:{USDC:{8453:Z.$f.asset,84532:Z.sP.asset}},getTokenSymbolByAddress(e){if(!e)return;let[t]=Object.entries(B.TOKEN_ADDRESSES_BY_SYMBOL).find(([t,i])=>Object.values(i).includes(e))??[];return t}};var z=i(15002),q=i(51742);let V={createLogger(e,t="error"){let i=(0,q.iP)({level:t}),{logger:r}=(0,q.D5)({opts:i});return r.error=(...t)=>{for(let i of t)if(i instanceof Error)return void e(i,...t);e(void 0,...t)},r}};var K=i(42123),G=i(31576),J=i(70090),Y=i(56827),X=i(47107);class Q extends J.X{async setUniversalProvider(e){if(!this.namespace)throw Error("UniversalAdapter:setUniversalProvider - namespace is required");return this.addConnector(new Y.F({provider:e,caipNetworks:this.getCaipNetworks(),namespace:this.namespace})),Promise.resolve()}async connect(e){return Promise.resolve({id:"WALLET_CONNECT",type:"WALLET_CONNECT",chainId:Number(e.chainId),provider:this.provider,address:""})}async disconnect(){try{let e=this.getWalletConnectConnector();await e.disconnect(),this.emit("disconnect")}catch(e){console.warn("UniversalAdapter:disconnect - error",e)}return{connections:[]}}syncConnections(){return Promise.resolve()}async writeSolanaTransaction(){return Promise.resolve({hash:""})}async getAccounts({namespace:e}){let t=this.provider;return Promise.resolve({accounts:(t?.session?.namespaces?.[e]?.accounts||[]).filter((e,t,i)=>i.indexOf(e)===t).map(t=>y.w.createAccount({caipAddress:t,type:"bip122"===e?"payment":"eoa"}))})}async syncConnectors(){return Promise.resolve()}async getBalance(e){if(!(e.caipNetwork&&p.oU.BALANCE_SUPPORTED_CHAINS.includes(e.caipNetwork?.chainNamespace))||e.caipNetwork?.testnet)return{balance:"0.00",symbol:e.caipNetwork?.nativeCurrency.symbol||""};let t=g.W.getAccountData();if(t?.balanceLoading&&e.chainId===g.W.state.activeCaipNetwork?.id)return{balance:t?.balance||"0.00",symbol:t?.balanceSymbol||""};let i=(await g.W.fetchTokenBalance()).find(t=>t.chainId===`${e.caipNetwork?.chainNamespace}:${e.chainId}`&&t.symbol===e.caipNetwork?.nativeCurrency.symbol);return{balance:i?.quantity.numeric||"0.00",symbol:i?.symbol||e.caipNetwork?.nativeCurrency.symbol||""}}async signMessage(e){let{provider:t,message:i,address:a}=e;if(!t)throw Error("UniversalAdapter:signMessage - provider is undefined");let n="";return{signature:g.W.state.activeCaipNetwork?.chainNamespace===r.o.CHAIN.SOLANA?(await t.request({method:"solana_signMessage",params:{message:K.A.encode(ne
1w TextEncoder().encode(i)),pubkey:a}},g.W.state.activeCaipNetwork?.caipNetworkId)).signature:await t.request({method:"personal_sign",params:[i,a]},g.W.state.activeCaipNetwork?.caipNetworkId)}}async estimateGas(){return Promise.resolve({gas:BigInt(0)})}async sendTransaction(){return Promise.resolve({hash:""})}walletGetAssets(e){return Promise.resolve({})}async writeContract(){return Promise.resolve({hash:""})}emitFirstAvailableConnection(){}parseUnits(){return 0n}formatUnits(){return"0"}async getCapabilities(){return Promise.resolve({})}async grantPermissions(){return Promise.resolve({})}async revokePermissions(){return Promise.resolve("0x")}async syncConnection(){return Promise.resolve({id:"WALLET_CONNECT",type:"WALLET_CONNECT",chainId:1,provider:this.provider,address:""})}async switchNetwork(e){let{caipNetwork:t}=e,i=this.getWalletConnectConnector();if(t.chainNamespace===r.o.CHAIN.EVM)try{await i.provider?.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,G.nj)(t.id)}]})}catch(e){if(e.code===X.E.ERROR_CODE_UNRECOGNIZED_CHAIN_ID||e.code===X.E.ERROR_INVALID_CHAIN_ID||e.code===X.E.ERROR_CODE_DEFAULT||e?.data?.originalError?.code===X.E.ERROR_CODE_UNRECOGNIZED_CHAIN_ID)try{await i.provider?.request({method:"wallet_addEthereumChain",params:[{chainId:(0,G.nj)(t.id),rpcUrls:[t?.rpcUrls.chainDefault?.http],chainName:t.name,nativeCurrency:t.nativeCurrency,blockExplorerUrls:[t.blockExplorers?.default.url]}]})}catch(e){throw Error("Chain is not supported")}}i.provider.setDefaultChain(t.caipNetworkId)}getWalletConnectProvider(){let e=this.connectors.find(e=>"WALLET_CONNECT"===e.type);return e?.provider}}let ee=["email","socials","swaps","onramp","activity","reownBranding","multiWallet","emailCapture","payWithExchange","payments","reownAuthentication","headless"],et={email:{apiFeatureName:"social_login",localFeatureName:"email",returnType:!1,isLegacy:!1,isAvailableOnBasic:!1,processApi:e=>{if(!e?.config)return!1;let t=e.config;return!!e.isEnabled&&t.includes("email")},processFallback:e=>void 0===e?p.oU.DEFAULT_REMOTE_FEATURES.email:!!e},socials:{apiFeatureName:"social_login",localFeatureName:"socials",returnType:!1,isLegacy:!1,isAvailableOnBasic:!1,processApi:e=>{if(!e?.config)return!1;let t=e.config;return!!e.isEnabled&&t.length>0&&t.filter(e=>"email"!==e)},processFallback:e=>void 0===e?p.oU.DEFAULT_REMOTE_FEATURES.socials:"boolean"==typeof e?!!e&&p.oU.DEFAULT_REMOTE_FEATURES.socials:e},swaps:{apiFeatureName:"swap",localFeatureName:"swaps",returnType:!1,isLegacy:!1,isAvailableOnBasic:!1,processApi:e=>{if(!e?.config)return!1;let t=e.config;return!!e.isEnabled&&t.length>0&&t},processFallback:e=>void 0===e?p.oU.DEFAULT_REMOTE_FEATURES.swaps:"boolean"==typeof e?!!e&&p.oU.DEFAULT_REMOTE_FEATURES.swaps:e},onramp:{apiFeatureName:"onramp",localFeatureName:"onramp",returnType:!1,isLegacy:!1,isAvailableOnBasic:!1,processApi:e=>{if(!e?.config)return!1;let t=e.config;return!!e.isEnabled&&t.length>0&&t},processFallback:e=>void 0===e?p.oU.DEFAULT_REMOTE_FEATURES.onramp:"boolean"==typeof e?!!e&&p.oU.DEFAULT_REMOTE_FEATURES.onramp:e},activity:{apiFeatureName:"activity",localFeatureName:"history",returnType:!1,isLegacy:!0,isAvailableOnBasic:!1,processApi:e=>!!e.isEnabled,processFallback:e=>void 0===e?p.oU.DEFAULT_REMOTE_FEATURES.activity:!!e},reownBranding:{apiFeatureName:"reown_branding",localFeatureName:"reownBranding",returnType:!1,isLegacy:!1,isAvailableOnBasic:!1,processApi:e=>!!e.isEnabled,processFallback:e=>void 0===e?p.oU.DEFAULT_REMOTE_FEATURES.reownBranding:!!e},emailCapture:{apiFeatureName:"email_capture",localFeatureName:"emailCapture",returnType:!1,isLegacy:!1,isAvailableOnBasic:!1,processApi:e=>e.isEnabled&&(e.config??[]),processFallback:e=>!1},multiWallet:{apiFeatureName:"multi_wallet",localFeatureName:"multiWallet",returnType:!1,isLegacy:!1,isAvailableOnBasic:!1,processApi:e=>!!e.isEnabled,processFallback:()=>p.oU.DEFAULT_REMOTE_FEATURES.multiWallet},payWithExchange:{apiFeatureName:"fund_from_exchange",localFeatureName:"payWithExchange",returnType:!1,isLegacy:!1,isAvailableOnBasic:!1,processApi:e=>!!e.isEnabled,processFallback:()=>p.oU.DEFAULT_REMOTE_FEATURES.payWithExchange},payments:{apiFeatureName:"payments",localFeatureName:"payments",returnType:!1,isLegacy:!1,isAvailableOnBasic:!1,processApi:e=>!!e.isEnabled,processFallback:()=>p.oU.DEFAULT_REMOTE_FEATURES.payments},reownAuthentication:{apiFeatureName:"reown_authentication",localFeatureName:"reownAuthentication",returnType:!1,isLegacy:!1,isAvailableOnBasic:!1,processApi:e=>!!e.isEnabled,processFallback:e=>void 0===e?p.oU.DEFAULT_REMOTE_FEATURES.reownAuthentication:!!e},headless:{apiFeatureName:"headless",localFeatureName:"headless",returnType:!1,isLegacy:!1,isAvailableOnBasic:!1,processApi:e=>!!e.isEnabled,processFallback:()=>p.oU.DEFAULT_REMOTE_FEATURES.headless}},ei={localSettingsOverridden:new Set,getApiConfig:(e,t)=>
1t?.find(t=>t.id===e),addWarning(e,t){if(void 0!==e){let e=et[t],i=e.isLegacy?`"features.${e.localFeatureName}" (now "${t}")`:`"features.${t}"`;this.localSettingsOverridden.add(i)}},processFeature(e,t,i,r,a){let n=et[e],o=t[n.localFeatureName];if(a&&!n.isAvailableOnBasic)return!1;if(r){let t=this.getApiConfig(n.apiFeatureName,i);return t?.config===null?this.processFallbackFeature(e,o):!!t?.config&&(void 0!==o&&this.addWarning(o,e),this.processApiFeature(e,t))}return this.processFallbackFeature(e,o)},processApiFeature:(e,t)=>et[e].processApi(t),processFallbackFeature:(e,t)=>et[e].processFallback(t),async fetchRemoteFeatures(e){let t=e.basic??!1,i=e.features||{};this.localSettingsOverridden.clear();let r=null,a=!1;try{a=null!=(r=await h.N.fetchProjectConfig())}catch(e){console.warn("[Reown Config] Failed to fetch remote project configuration. Using local/default values.",e)}let n=a&&!t?p.oU.DEFAULT_REMOTE_FEATURES:p.oU.DEFAULT_REMOTE_FEATURES_DISABLED;try{for(let e of ee){let o=this.processFeature(e,i,r,a,t);Object.assign(n,{[e]:o})}}catch(e){return console.warn("[Reown Config] Failed to process the configuration from Cloud. Using default values.",e),p.oU.DEFAULT_REMOTE_FEATURES}if(a&&this.localSettingsOverridden.size>0){let e=`Your local configuration for ${Array.from(this.localSettingsOverridden).join(", ")} was ignored because a remote configuration was successfully fetched. Please manage these features via your project dashboard on dashboard.reown.com.`;b.h.open({debugMessage:E.R.ALERT_WARNINGS.LOCAL_CONFIGURATION_IGNORED.debugMessage(e)},"warning")}return n}};class er{constructor(e){this.chainNamespaces=[],this.features={},this.remoteFeatures={},this.reportedAlertErrors={},this.getCaipNetwork=(e,t)=>{if(e){let i=g.W.getCaipNetworks(e)?.find(e=>e.id===t);if(i)return i;let r=g.W.getNetworkData(e)?.caipNetwork;if(r)return r;let a=g.W.getRequestedCaipNetworks(e);return a.filter(t=>t.chainNamespace===e)?.[0]}return g.W.state.activeCaipNetwork||this.defaultCaipNetwork},this.getCaipNetworkId=()=>{let e=this.getCaipNetwork();if(e)return e.id},this.getCaipNetworks=e=>g.W.getCaipNetworks(e),this.getActiveChainNamespace=()=>g.W.state.activeChain,this.setRequestedCaipNetworks=(e,t)=>{g.W.setRequestedCaipNetworks(e,t)},this.getApprovedCaipNetworkIds=()=>g.W.getAllApprovedCaipNetworkIds(),this.getCaipAddress=e=>g.W.state.activeChain!==e&&e?g.W.state.chains.get(e)?.accountState?.caipAddress:g.W.state.activeCaipAddress,this.setClientId=e=>{T.T.setClientId(e)},this.getProvider=e=>v.G.getProvider(e),this.getProviderType=e=>v.G.getProviderId(e),this.getPreferredAccountType=e=>(0,o.lj)(e),this.setCaipAddress=(e,t,i=!1)=>{g.W.setAccountProp("caipAddress",e,t,i),g.W.setAccountProp("address",y.w.getPlainAddress(e),t,i)},this.setBalance=(e,t,i)=>{g.W.setAccountProp("balance",e,i),g.W.setAccountProp("balanceSymbol",t,i)},this.setProfileName=(e,t)=>{g.W.setAccountProp("profileName",e,t)},this.setProfileImage=(e,t)=>{g.W.setAccountProp("profileImage",e,t)},this.setUser=(e,t)=>{g.W.setAccountProp("user",e,t)},this.resetAccount=e=>{g.W.resetAccount(e)},this.setCaipNetwork=e=>{g.W.setActiveCaipNetwork(e)},this.setCaipNetworkOfNamespace=(e,t)=>{g.W.setChainNetworkData(t,{caipNetwork:e})},this.setStatus=(e,t)=>{g.W.setAccountProp("status",e,t),s.a.isConnected()?w.i.setConnectionStatus("connected"):w.i.setConnectionStatus("disconnected")},this.getAddressByChainNamespace=e=>g.W.getAccountData(e)?.address,this.setConnectors=e=>{let t=[...s.a.state.allConnectors,...e];s.a.setConnectors(t)},this.setConnections=(e,t)=>{w.i.setConnections(e,t),d.x.setConnections(e,t)},this.fetchIdentity=e=>T.T.fetchIdentity(e),this.getReownName=e=>R.f.getNamesForAddress(e),this.getConnectors=()=>s.a.getConnectors(),this.getConnectorImage=e=>I.$.getConnectorImage(e),this.getConnections=e=>this.remoteFeatures.multiWallet?P.b.getConnectionsData(e).connections:(b.h.open(r.o.REMOTE_FEATURES_ALERTS.MULTI_WALLET_NOT_ENABLED.DEFAULT,"info"),[]),this.getRecentConnections=e=>this.remoteFeatures.multiWallet?P.b.getConnectionsData(e).recentConnections:(b.h.open(r.o.REMOTE_FEATURES_ALERTS.MULTI_WALLET_NOT_ENABLED.DEFAULT,"info"),[]),this.switchConnection=async e=>{if(!this.remoteFeatures.multiWallet)return void b.h.open(r.o.REMOTE_FEATURES_ALERTS.MULTI_WALLET_NOT_ENABLED.DEFAULT,"info");await d.x.switchConnection(e)},this.deleteConnection=e=>{if(!this.remoteFeatures.multiWallet)return void b.h.open(r.o.REMOTE_FEATURES_ALERTS.MULTI_WALLET_NOT_ENABLED.DEFAULT,"info");w.i.deleteAddressFromConnection(e),d.x.syncStorageConnections()},this.setConnectedWalletInfo=(e,t)=>{let i=v.G.getProviderId(t),r=e?{...e,type:i}:void 0;g.W.setAccountProp("connectedWalletInfo",r,t)},this.getIsConnectedState=()=>!!g.W.state.activeCaipAddress,this.addAddressLabel=(e,t,i)=>{let r=g.W.getAccountData(i)?.addressLabels||{};g.W.setAccountProp("addressLabels",{...r,[e]:t},i)},this.removeAddressLabel=(e,t)=>
1{let i=g.W.getAccountData(t)?.addressLabels||{};g.W.setAccountProp("addressLabels",{...i,[e]:void 0},t)},this.getAddress=e=>{let t=e||g.W.state.activeChain;return g.W.getAccountData(t)?.address},this.resetNetwork=e=>{g.W.resetNetwork(e)},this.addConnector=e=>{s.a.addConnector(e)},this.resetWcConnection=()=>{d.x.resetWcConnection()},this.setAddressExplorerUrl=(e,t)=>{g.W.setAccountProp("addressExplorerUrl",e,t)},this.setSmartAccountDeployed=(e,t)=>{g.W.setAccountProp("smartAccountDeployed",e,t)},this.setPreferredAccountType=(e,t)=>{g.W.setAccountProp("preferredAccountType",e,t)},this.setEIP6963Enabled=e=>{m.H.setEIP6963Enabled(e)},this.handleUnsafeRPCRequest=()=>{this.isOpen()?this.isTransactionStackEmpty()||this.redirect("ApproveTransaction"):this.open({view:"ApproveTransaction"})},this.options=e,this.version=e.sdkVersion,this.caipNetworks=this.extendCaipNetworks(e),this.chainNamespaces=this.getChainNamespacesSet(e.adapters,this.caipNetworks),this.defaultCaipNetwork=this.extendDefaultCaipNetwork(e),this.chainAdapters=this.createAdapters(e.adapters),this.readyPromise=this.initialize(e)}getChainNamespacesSet(e,t){let i=e?.map(e=>e.namespace).filter(e=>!!e);return i?.length?[...new Set(i)]:[...new Set(t?.map(e=>e.chainNamespace))]}async initialize(e){if(this.initializeProjectSettings(e),this.initControllers(e),await this.initChainAdapters(),this.sendInitializeEvent(e),e.features?.headless&&!O.g.hasInjectedConnectors()&&h.N.prefetch({fetchNetworkImages:!1,fetchConnectorImages:!1,fetchWalletRanks:!1,fetchRecommendedWallets:!0}),m.H.state.enableReconnect?(await this.syncExistingConnection(),await this.syncAdapterConnections()):await this.unSyncExistingConnection(),e.basic||e.manualWCControl||(this.remoteFeatures=await ei.fetchRemoteFeatures(e)),await h.N.fetchUsage(),m.H.setRemoteFeatures(this.remoteFeatures),this.remoteFeatures.onramp&&M.aG.setOnrampProviders(this.remoteFeatures.onramp),(m.H.state.remoteFeatures?.email||Array.isArray(m.H.state.remoteFeatures?.socials)&&m.H.state.remoteFeatures?.socials.length>0)&&await this.checkAllowedOrigins(),m.H.state.features?.reownAuthentication||m.H.state.remoteFeatures?.reownAuthentication){let{ReownAuthentication:e}=await i.e(8622).then(i.bind(i,38622)),t=m.H.state.siwx;t instanceof e||(t&&console.warn("ReownAuthentication option is enabled, SIWX configuration will be overridden."),m.H.setSIWX(new e))}}async openSend(e){let t=e.namespace||g.W.state.activeChain,i=this.getCaipAddress(t),r=this.getCaipNetwork(t)?.id;if(!i)throw Error("openSend: caipAddress not found");if(r?.toString()!==e.chainId.toString()){let i=g.W.getCaipNetworkById(e.chainId,t);if(!i)throw Error(`openSend: caipNetwork with chainId ${e.chainId} not found`);await this.switchNetwork(i,{throwOnFailure:!0})}try{let t=B.getTokenSymbolByAddress(e.assetAddress);t&&await h.N.fetchTokenImages([t])}catch{}return await W.W.open({view:"WalletSend",data:{send:e}}),new Promise((e,t)=>{let i=L.R.subscribeKey("hash",t=>{t&&(a(),e({hash:t}))}),r=W.W.subscribe(e=>{e.open||(a(),t(Error("Modal closed")))}),a=this.createCleanupHandler([i,r])})}toModalOptions(){return{isSwap:function(e){return e?.view==="Swap"},isSend:function(e){return e?.view==="WalletSend"}}}async checkAllowedOrigins(){try{let e=await h.N.fetchAllowedOrigins();if(!y.w.isClient())return;let t=window.location.origin;D.k.isOriginAllowed(t,e,r.o.DEFAULT_ALLOWED_ANCESTORS)||b.h.open(E.R.ALERT_ERRORS.ORIGIN_NOT_ALLOWED,"error")}catch(e){if(!(e instanceof Error))return;switch(e.message){case"RATE_LIMITED":b.h.open(E.R.ALERT_ERRORS.RATE_LIMITED_APP_CONFIGURATION,"error");break;case"SERVER_ERROR":{let t=e.cause instanceof Error?e.cause:e;b.h.open({displayMessage:E.R.ALERT_ERRORS.SERVER_ERROR_APP_CONFIGURATION.displayMessage,debugMessage:E.R.ALERT_ERRORS.SERVER_ERROR_APP_CONFIGURATION.debugMessage(t.message)},"error")}}}}createCleanupHandler(e){return()=>{e.forEach(e=>{try{e()}catch{}})}}sendInitializeEvent(e){let{...t}=e;delete t.adapters,delete t.universalProvider,l.E.sendEvent({type:"track",event:"INITIALIZE",properties:{...t,networks:e.networks.map(e=>e.id),siweConfig:{options:e.siweConfig?.options||{}}}})}initControllers(e){this.initializeOptionsController(e),this.initializeChainController(e),this.initializeThemeController(e),this.initializeConnectionController(e),this.initializeConnectorController()}initAdapterController(){U.q.initialize(this.chainAdapters)}initializeThemeController(e){e.themeMode&&f.W.setThemeMode(e.themeMode),e.themeVariables&&f.W.setThemeVariables(e.themeVariables)}initializeChainController(e){if(!this.connectionControllerClient)throw Error("ConnectionControllerClient must be set");g.W.initialize(e.adapters??[],this.caipNetworks,{connectionControllerClient:this.connectionControllerClient});let t=this.getDefaultNetwork();t&&g.W.setActiveCaipNetwork(t)}initializeConnectionController(e){d.x.initialize(e.adapters??[]),d.x.setWc
1Basic(e.basic??!1)}initializeConnectorController(){s.a.initialize(this.chainNamespaces)}initializeProjectSettings(e){m.H.setProjectId(e.projectId),m.H.setSdkVersion(e.sdkVersion)}initializeOptionsController(e){m.H.setDebug(!1!==e.debug),m.H.setEnableWalletGuide(!1!==e.enableWalletGuide),m.H.setEnableWallets(!1!==e.enableWallets),m.H.setEIP6963Enabled(!1!==e.enableEIP6963),m.H.setEnableCoinbase(!1!==e.enableCoinbase),m.H.setEnableNetworkSwitch(!1!==e.enableNetworkSwitch),m.H.setEnableReconnect(!1!==e.enableReconnect),m.H.setEnableMobileFullScreen(!0===e.enableMobileFullScreen),m.H.setCoinbasePreference(e.coinbasePreference),m.H.setEnableAuthLogger(!1!==e.enableAuthLogger),m.H.setCustomRpcUrls(e.customRpcUrls),m.H.setEnableEmbedded(e.enableEmbedded),m.H.setAllWallets(e.allWallets),m.H.setIncludeWalletIds(e.includeWalletIds),m.H.setExcludeWalletIds(e.excludeWalletIds),m.H.setFeaturedWalletIds(e.featuredWalletIds),m.H.setTokens(e.tokens),m.H.setTermsConditionsUrl(e.termsConditionsUrl),m.H.setPrivacyPolicyUrl(e.privacyPolicyUrl),m.H.setCustomWallets(e.customWallets),m.H.setFeatures(e.features),m.H.setAllowUnsupportedChain(e.allowUnsupportedChain),m.H.setUniversalProviderConfigOverride(e.universalProviderConfigOverride),m.H.setPreferUniversalLinks(e.experimental_preferUniversalLinks),m.H.setDefaultAccountTypes(e.defaultAccountTypes);let t=this.getDefaultMetaData();if(!e.metadata&&t&&(e.metadata=t),m.H.setMetadata(e.metadata),m.H.setDisableAppend(e.disableAppend),m.H.setEnableEmbedded(e.enableEmbedded),m.H.setSIWX(e.siwx),this.features=m.H.state.features??{},!e.projectId)return void b.h.open(E.R.ALERT_ERRORS.PROJECT_ID_NOT_CONFIGURED,"error");if(e.adapters?.find(e=>e.namespace===r.o.CHAIN.EVM)&&e.siweConfig){if(e.siwx)throw Error("Cannot set both `siweConfig` and `siwx` options");m.H.setSIWX(e.siweConfig.mapToSIWX())}}getDefaultMetaData(){return y.w.isClient()?{name:document.getElementsByTagName("title")?.[0]?.textContent||"",description:document.querySelector('meta[property="og:description"]')?.content||"",url:window.location.origin,icons:[document.querySelector('link[rel~="icon"]')?.href||""]}:null}setUnsupportedNetwork(e){let t=this.getActiveChainNamespace();if(t){let i=z.R.getUnsupportedNetwork(`${t}:${e}`);g.W.setActiveCaipNetwork(i)}}getDefaultNetwork(){return z.R.getCaipNetworkFromStorage(this.defaultCaipNetwork)}extendCaipNetwork(e,t){return z.R.extendCaipNetwork(e,{customNetworkImageUrls:t.chainImages,projectId:t.projectId})}extendCaipNetworks(e){return z.R.extendCaipNetworks(e.networks,{customNetworkImageUrls:e.chainImages,customRpcUrls:e.customRpcUrls,projectId:e.projectId})}extendDefaultCaipNetwork(e){let t=e.networks.find(t=>t.id===e.defaultNetwork?.id);return t?z.R.extendCaipNetwork(t,{customNetworkImageUrls:e.chainImages,customRpcUrls:e.customRpcUrls,projectId:e.projectId}):void 0}async disconnectConnector(e,t){try{this.setLoading(!0,e);let i={connections:[]},r=this.getAdapter(e);return(g.W.state.chains.get(e)?.accountState?.caipAddress||!m.H.state.enableReconnect)&&r?.disconnect&&(i=await r.disconnect({id:t})),this.setLoading(!1,e),i}catch(t){throw this.setLoading(!1,e),Error(`Failed to disconnect chains: ${t.message}`)}}createClients(){this.connectionControllerClient={connectWalletConnect:async()=>{let e=g.W.state.activeChain,t=this.getAdapter(e),i=this.getCaipNetwork(e)?.id,r=d.x.getConnections(e),a=this.remoteFeatures.multiWallet,o=r.length>0;if(!t)throw Error("Adapter not found");let s=await t.connectWalletConnect(i);o&&a||this.close(),this.setClientId(s?.clientId||null),w.i.setConnectedNamespaces([...g.W.state.chains.keys()]),await this.syncWalletConnectAccount(),await n.U.initializeIfEnabled()},connectExternal:async e=>{let t=await this.onConnectExternal(e);return await this.connectInactiveNamespaces(e,t),t?{address:t.address}:void 0},reconnectExternal:async({id:e,info:t,type:i,provider:r})=>{let a=g.W.state.activeChain,n=this.getAdapter(a);if(!a)throw Error("reconnectExternal: namespace not found");if(!n)throw Error("reconnectExternal: adapter not found");n?.reconnect&&(await n?.reconnect({id:e,info:t,type:i,provider:r,chainId:this.getCaipNetwork()?.id}),w.i.addConnectedNamespace(a),this.syncConnectedWalletInfo(a))},disconnectConnector:async e=>{await this.disconnectConnector(e.namespace,e.id)},disconnect:async e=>{let{id:t,chainNamespace:i,initialDisconnect:a}=e||{},o=i||g.W.state.activeChain,c=s.a.getConnectorId(o),u=t===r.o.CONNECTOR_ID.AUTH||c===r.o.CONNECTOR_ID.AUTH,h=t===r.o.CONNECTOR_ID.WALLET_CONNECT||c===r.o.CONNECTOR_ID.WALLET_CONNECT;try{let e=Array.from(g.W.state.chains.keys()),r=i?[i]:e;(h||u)&&(r=e);let o=r.map(async e=>{let i=s.a.getConnectorId(e),r=await this.disconnectConnector(e,t||i);r&&(u&&w.i.deleteConnectedSocialProvider(),r.connections.forEach(t=>{w.i.addDisconnectedConnectorId(t.connectorId,e)})),a&&this.onDisconnectNamespace({chainNamespace:e,closeModal:!1})}),c=await Promise.allSettled(o);L.R.resetSend(),d.x.resetWcConnection(),n.U.getSIWX()?.signOutOnDisconnect&&await n.U.clearSessions(),s.a.setFilterByNamespace(void 0),d.x.syncStorageConnections();let p=c.filter(e=>"rejected"===e.status);if(p.length>0)throw Error(p.map(e=>e.reason.message).join(", "));l.E.sendEvent({type:"track",event:"DISCONNECT_SUCCESS",properties:{namespace:i||"all"}})}catch(e){throw Error(`Failed to disconnect chains: ${e.message}`)}},checkInstalled:e=>e?e.some(e=>!!window.ethereum?.[String(e)]):!!window.ethereum,signMessage:async e=>{let t=g.W.state.activeChain,i=this.getAdapter(g.W.state.activeChain);if(!t)throw Error("signMessage: namespace not found");if(!i)throw Error("signMessage: adapter not found");let r=this.getAddress(t);if(!r)throw Error("signMessage: address not found");
1let a=await i?.signMessage({message:e,address:r,provider:v.G.getProvider(t)});return a?.signature||""},sendTransaction:async e=>{let t=e.chainNamespace;if(!t)throw Error("sendTransaction: namespace not found");if(p.oU.SEND_SUPPORTED_NAMESPACES.includes(t)){let i=this.getAdapter(t);if(!i)throw Error("sendTransaction: adapter not found");let r=v.G.getProvider(t),a=await i?.sendTransaction({...e,caipNetwork:this.getCaipNetwork(),provider:r});return a?.hash||""}return""},estimateGas:async e=>{let t=e.chainNamespace;if(t===r.o.CHAIN.EVM){let i=this.getAdapter(t);if(!i)throw Error("estimateGas: adapter is required but got undefined");let r=v.G.getProvider(t),a=this.getCaipNetwork();if(!a)throw Error("estimateGas: caipNetwork is required but got undefined");let n=await i?.estimateGas({...e,provider:r,caipNetwork:a});return n?.gas||0n}return 0n},getEnsAvatar:async()=>{let e=g.W.state.activeChain;if(!e)throw Error("getEnsAvatar: namespace is required but got undefined");let t=this.getAddress(e);if(!t)throw Error("getEnsAvatar: address not found");await this.syncIdentity({address:t,chainId:Number(this.getCaipNetwork()?.id),chainNamespace:e});let i=g.W.getAccountData();return i?.profileImage||!1},getEnsAddress:async e=>await D.k.resolveReownName(e),writeContract:async e=>{let t=g.W.state.activeChain,i=this.getAdapter(t);if(!t)throw Error("writeContract: namespace is required but got undefined");if(!i)throw Error("writeContract: adapter is required but got undefined");let r=this.getCaipNetwork(),a=this.getCaipAddress(),n=v.G.getProvider(t);if(!r||!a)throw Error("writeContract: caipNetwork or caipAddress is required but got undefined");let o=await i?.writeContract({...e,caipNetwork:r,provider:n,caipAddress:a});return o?.hash},writeSolanaTransaction:async e=>{let t=g.W.state.activeChain,i=this.getAdapter(t);if(!t)throw Error("writeContract: namespace is required but got undefined");if(!i)throw Error("writeContract: adapter is required but got undefined");let r=this.getCaipNetwork(),a=this.getCaipAddress(),n=v.G.getProvider(t);if(!r||!a)throw Error("writeContract: caipNetwork or caipAddress is required but got undefined");let o=await i?.writeSolanaTransaction({...e,caipNetwork:r,provider:n,caipAddress:a});return o?.hash},parseUnits:(e,t)=>{let i=this.getAdapter(g.W.state.activeChain);if(!i)throw Error("parseUnits: adapter is required but got undefined");return i?.parseUnits({value:e,decimals:t})??0n},formatUnits:(e,t)=>{let i=this.getAdapter(g.W.state.activeChain);if(!i)throw Error("formatUnits: adapter is required but got undefined");return i?.formatUnits({value:e,decimals:t})??"0"},getCapabilities:async e=>{let t=this.getAdapter(g.W.state.activeChain);if(!t)throw Error("getCapabilities: adapter is required but got undefined");return await t?.getCapabilities(e)},grantPermissions:async e=>{let t=this.getAdapter(g.W.state.activeChain);if(!t)throw Error("grantPermissions: adapter is required but got undefined");return await t?.grantPermissions(e)},revokePermissions:async e=>{let t=this.getAdapter(g.W.state.activeChain);if(!t)throw Error("revokePermissions: adapter is required but got undefined");return t?.revokePermissions?await t.revokePermissions(e):"0x"},walletGetAssets:async e=>{let t=this.getAdapter(g.W.state.activeChain);if(!t)throw Error("walletGetAssets: adapter is required but got undefined");return await t?.walletGetAssets(e)??{}},updateBalance:e=>{let t=this.getAddress(e),i=this.getCaipNetwork(e);i&&t&&this.updateNativeBalance(t,i?.id,e)}},d.x.setClient(this.connectionControllerClient)}async onConnectExternal(e){let t=g.W.state.activeChain,i=e.chain||t,a=this.getAdapter(i),n=!0;if(e.type===x.o.CONNECTOR_TYPE_AUTH&&r.o.AUTH_CONNECTOR_SUPPORTED_CHAINS.some(e=>s.a.getConnectorId(e)===r.o.CONNECTOR_ID.AUTH)&&e.chain!==t&&(n=!1),e.chain&&e.chain!==t&&!e.caipNetwork){let t=this.getCaipNetworks().find(t=>t.chainNamespace===e.chain);t&&n&&this.setCaipNetwork(t)}if(!i)throw Error("connectExternal: namespace not found");if(!a)throw Error("connectExternal: adapter not found");let o=this.getCaipNetwork(i),l=e.caipNetwork||o,c=await a.connect({id:e.id,address:e.address,info:e.info,type:e.type,provider:e.provider,socialUri:e.socialUri,chainId:e.caipNetwork?.id||o?.id,rpcUrl:e.caipNetwork?.rpcUrls?.default?.http?.[0]||o?.rpcUrls?.default?.http?.[0]});if(c)return w.i.addConnectedNamespace(i),this.syncProvider({...c,chainNamespace:i}),this.setStatus("connected",i),this.syncConnectedWalletInfo(i),w.i.removeDisconnectedConnectorId(e.id,i),{address:c.address,connectedCaipNetwork:l}}async connectInactiveNamespaces(e,t){let i=e.type===x.o.CONNECTOR_TYPE_AUTH,r=C.y.getOtherAuthNamespaces(t?.connectedCaipNetwork?.chainNamespace),a=g.W.state.activeCaipNetwork,n=this.getAdapter(a?.chainNamespace);i&&(await Promise.all(r.map(async t=>{try{let i=v.G.getProvider(t),r=this.getCaipNetwork(t),a=this.getAdapter(t);await a?.connect({...e,provider:i,socialUri:void 0,chainId:r?.id,rpcUrl:r?.rpcUrls?.default?.http?.[0]})&&(w.i.addConnectedNamespace(t),w.i.removeDisconnectedConnectorId(e.id,t),this.setStatus("connected",t),this.syncConnectedWalletInfo(t))}catch(e){b.h.warn(E.R.ALERT_WARNINGS.INACTIVE_NAMESPACE_NOT_CONNECTED.displayMessage,E.R.ALERT_WARNINGS.INACTIVE_NAMESPACE_NOT_CONNECTED.debugMessage(t,e instanceof Error?e.message:void 0),E.R.ALERT_WARNINGS.INACTIVE_NAMESPACE_NOT_CONNECTED.code)}})),a&&await n?.switchNetwork({caipNetwork:a}))}getApprovedCaipNetworksData(){if(v.G.getProviderId(g.W.state.activeChain)===x.o.CONNECTOR_TYPE_WALLET_CONNECT){let e=this.universalProvider?.session?.namespaces;return{supportsAllNetworks:this.universalProvider?.session?.peer?.metadata.name==="MetaMask Wallet",approvedCaipNetworkIds:this.getChainsFromNamespaces(e)}}return{supportsAllNetworks:!0,approvedCaipNetworkIds:[]}}async switchCaipNetwork(e){let t=e.chainNamespace;if(this.getAddressByChainNamespace(e.chainNamespace)){let i=v.G.getProviderId(t);if(e.chainNamespace===g.W.state.activeChain){let i=this.getAdapter(t);await i?.switchNetwork({caipNetwork:e})}else if(this.setCaipNetwork(e),i===x.o.CONNECTOR_TYPE_WALLET_CONNECT)this.syncWalletConnectAccount();else{let i=this.getAddressByChainNamespace(t);i&&this.syncAccount({address:i,chainId:e.id,chainNamespace:t})}}else this.setCaipNetwork(e)}
1getChainsFromNamespaces(e={}){return Object.values(e).flatMap(e=>Array.from(new Set([...e.chains||[],...e.accounts.map(e=>{let{chainId:t,chainNamespace:i}=N.C.parseCaipAddress(e);return`${i}:${t}`})])))}createAdapters(e){return this.createClients(),this.chainNamespaces.reduce((t,i)=>{let r=e?.find(e=>e.namespace===i);return r?(r.construct({namespace:i,projectId:this.options?.projectId,networks:this.caipNetworks?.filter(({chainNamespace:e})=>e===i)}),t[i]=r):t[i]=new Q({namespace:i,networks:this.getCaipNetworks()}),t},{})}async initChainAdapter(e){this.onConnectors(e),this.listenAdapter(e);let t=this.getAdapter(e);if(!t)throw Error("adapter not found");await t.syncConnectors(),await this.createUniversalProviderForAdapter(e)}async initChainAdapters(){await Promise.all(this.chainNamespaces.map(async e=>{await this.initChainAdapter(e)})),this.initAdapterController()}onConnectors(e){let t=this.getAdapter(e);t?.on("connectors",this.setConnectors.bind(this))}listenAdapter(e){let t=this.getAdapter(e);if(!t)return;let i=w.i.getConnectionStatus();!1===m.H.state.enableReconnect?this.setStatus("disconnected",e):"connected"===i?this.setStatus("connecting",e):("disconnected"===i&&w.i.clearAddressCache(),this.setStatus(i,e)),t.on("switchNetwork",({address:t,chainId:i})=>{let r=this.getCaipNetworks().find(e=>e.id.toString()===i.toString()||e.caipNetworkId.toString()===i.toString()),a=g.W.state.activeChain===e,n=g.W.state.chains.get(e)?.accountState?.address;if(r){let i=a&&t?t:n;i&&this.syncAccount({address:i,chainId:r.id,chainNamespace:e})}else this.setUnsupportedNetwork(i)}),t.on("disconnect",()=>{let t=this.remoteFeatures.multiWallet,i=Array.from(d.x.state.connections.values()).flat();this.onDisconnectNamespace({chainNamespace:e,closeModal:!t||0===i.length})}),t.on("connections",t=>{this.setConnections(t,e)}),t.on("pendingTransactions",()=>{let t=this.getAddress(e),i=g.W.state.activeCaipNetwork;t&&i?.id&&this.updateNativeBalance(t,i.id,i.chainNamespace)}),t.on("accountChanged",({address:t,chainId:i,connector:r})=>{this.handlePreviousConnectorConnection(r);let a=g.W.state.activeChain===e;r?.provider&&(this.syncProvider({id:r.id,type:r.type,provider:r?.provider,chainNamespace:e}),this.syncConnectedWalletInfo(e));let n=g.W.getNetworkData(e)?.caipNetwork?.id,o=i||n;a&&o?this.syncAccount({address:t,chainId:o,chainNamespace:e}):!a&&o?(this.syncAccountInfo(t,o,e),this.syncBalance({address:t,chainId:o,chainNamespace:e})):this.syncAccountInfo(t,i,e),w.i.addConnectedNamespace(e)})}async handlePreviousConnectorConnection(e){let t=e?.chain,i=e?.id,r=s.a.getConnectorId(t),a=m.H.state.remoteFeatures?.multiWallet,n=r!==i,o=t&&i&&r&&n&&!a;try{o&&await d.x.disconnect({id:r,namespace:t})}catch(e){console.warn("Error disconnecting previous connector",e)}}async createUniversalProviderForAdapter(e){await this.getUniversalProvider(),this.universalProvider&&await this.chainAdapters?.[e]?.setUniversalProvider?.(this.universalProvider)}async syncExistingConnection(){await Promise.allSettled(this.chainNamespaces.map(e=>this.syncNamespaceConnection(e)))}async unSyncExistingConnection(){try{await Promise.allSettled(this.chainNamespaces.map(e=>d.x.disconnect({namespace:e,initialDisconnect:!0})))}catch(e){console.error("Error disconnecting existing connections:",e)}}async reconnectWalletConnect(){await this.syncWalletConnectAccount();let e=this.getAddress();this.getCaipAddress()||w.i.deleteRecentWallet();let t=w.i.getRecentWallet();l.E.sendEvent({type:"track",event:"CONNECT_SUCCESS",address:e,properties:{method:y.w.isMobile()?"mobile":"qrcode",name:t?.name||"Unknown",reconnect:!0,view:c.I.state.view,walletRank:t?.order}})}async syncNamespaceConnection(e){try{e===r.o.CHAIN.EVM&&y.w.isSafeApp()&&s.a.setConnectorId(r.o.CONNECTOR_ID.SAFE,e);let t=s.a.getConnectorId(e);switch(this.setStatus("connecting",e),t){case r.o.CONNECTOR_ID.WALLET_CONNECT:await this.reconnectWalletConnect();break;case r.o.CONNECTOR_ID.AUTH:break;default:await this.syncAdapterConnection(e)}}catch(t){console.warn("AppKit couldn't sync existing connection",t),this.setStatus("disconnected",e)}}onDisconnectNamespace(e){let{chainNamespace:t,closeModal:i}=e||{};g.W.resetAccount(t),g.W.resetNetwork(t),w.i.removeConnectedNamespace(t);let r=Array.from(g.W.state.chains.keys());
1(t?[t]:r).forEach(e=>w.i.addDisconnectedConnectorId(s.a.getConnectorId(e)||"",e)),s.a.removeConnectorId(t),v.G.resetChain(t),this.setUser(null,t),this.setStatus("disconnected",t),this.setConnectedWalletInfo(null,t),!1!==i&&W.W.close()}async syncAdapterConnections(){await Promise.allSettled(this.chainNamespaces.map(e=>{let t=this.getAdapter(e),i=this.getCaipAddress(e),r=this.getCaipNetwork(e);return t?.syncConnections({connectToFirstConnector:!i,caipNetwork:r})}))}async syncAdapterConnection(e){let t=this.getAdapter(e),i=this.getCaipNetwork(e),r=s.a.getConnectorId(e),a=s.a.getConnectors(e).find(e=>e.id===r);try{if(!t||!a)throw Error(`Adapter or connector not found for namespace ${e}`);if(!i?.id)throw Error("CaipNetwork not found");let r=await t?.syncConnection({namespace:e,id:a.id,chainId:i.id,rpcUrl:i?.rpcUrls?.default?.http?.[0]});r?(this.syncProvider({...r,chainNamespace:e}),await this.syncAccount({...r,chainNamespace:e}),this.setStatus("connected",e),l.E.sendEvent({type:"track",event:"CONNECT_SUCCESS",address:r.address,properties:{method:"browser",name:a.info?.name||a.name||"Unknown",reconnect:!0,view:c.I.state.view,walletRank:a?.explorerWallet?.order}})):this.setStatus("disconnected",e)}catch(t){this.onDisconnectNamespace({chainNamespace:e,closeModal:!1})}}async syncWalletConnectAccount(){let e=Object.keys(this.universalProvider?.session?.namespaces||{}),t=this.chainNamespaces.map(async t=>{let i=this.getAdapter(t);if(!i)return;let a=this.universalProvider?.session?.namespaces?.[t]?.accounts||[],n=g.W.state.activeCaipNetwork?.id,o=a.find(e=>{let{chainId:t}=N.C.parseCaipAddress(e);return t===n?.toString()})||a[0];if(o){let e=N.C.validateCaipAddress(o),{chainId:a,address:n}=N.C.parseCaipAddress(e);if(v.G.setProviderId(t,x.o.CONNECTOR_TYPE_WALLET_CONNECT),this.caipNetworks&&g.W.state.activeCaipNetwork&&i.namespace!==r.o.CHAIN.EVM){let e=i.getWalletConnectProvider({caipNetworks:this.getCaipNetworks(),provider:this.universalProvider,activeCaipNetwork:g.W.state.activeCaipNetwork});v.G.setProvider(t,e)}else v.G.setProvider(t,this.universalProvider);s.a.setConnectorId(r.o.CONNECTOR_ID.WALLET_CONNECT,t),w.i.addConnectedNamespace(t),await this.syncAccount({address:n,chainId:a,chainNamespace:t})}else e.includes(t)&&this.setStatus("disconnected",t);let l=this.getApprovedCaipNetworksData();this.syncConnectedWalletInfo(t),g.W.setApprovedCaipNetworksData(t,{approvedCaipNetworkIds:l.approvedCaipNetworkIds,supportsAllNetworks:l.supportsAllNetworks})});await Promise.all(t)}syncProvider({type:e,provider:t,id:i,chainNamespace:r}){v.G.setProviderId(r,e),v.G.setProvider(r,t),s.a.setConnectorId(i,r)}async syncAccount(e){let t=e.chainNamespace===g.W.state.activeChain,i=g.W.getCaipNetworkByNamespace(e.chainNamespace,e.chainId),{address:a,chainId:n,chainNamespace:o}=e,{chainId:s}=w.i.getActiveNetworkProps(),l=i?.id||s,c=g.W.state.activeCaipNetwork?.name===r.o.UNSUPPORTED_NETWORK_NAME,d=g.W.getNetworkProp("supportsAllNetworks",o);if(this.setStatus("connected",o),(!c||d)&&l){let e=this.getCaipNetworks().find(e=>e.id.toString()===l.toString()),s=this.getCaipNetworks().find(e=>e.chainNamespace===o);if(!d&&!e&&!s){let t=this.getApprovedCaipNetworkIds()||[],i=t.find(e=>N.C.parseCaipNetworkId(e)?.chainId===l.toString()),r=t.find(e=>N.C.parseCaipNetworkId(e)?.chainNamespace===o);e=this.getCaipNetworks().find(e=>e.caipNetworkId===i),s=this.getCaipNetworks().find(e=>e.caipNetworkId===r||"deprecatedCaipNetworkId"in e&&e.deprecatedCaipNetworkId===r)}let c=e||s;c?.chainNamespace===g.W.state.activeChain?m.H.state.enableNetworkSwitch&&!m.H.state.allowUnsupportedChain&&g.W.state.activeCaipNetwork?.name===r.o.UNSUPPORTED_NETWORK_NAME?g.W.showUnsupportedChainUI():this.setCaipNetwork(c):!t&&i&&this.setCaipNetworkOfNamespace(i,o),this.syncConnectedWalletInfo(o);let u=this.getAddress(o);C.y.isLowerCaseMatch(a,u)||this.syncAccountInfo(a,c?.id,o),t?await this.syncBalance({address:a,chainId:c?.id,chainNamespace:o}):await this.syncBalance({address:a,chainId:i?.id,chainNamespace:o}),this.syncIdentity({address:a,chainId:n,chainNamespace:o})}}async syncAccountInfo(e,t,i){let r=this.getCaipAddress(i),a=t||r?.split(":")[1];if(!a)return;let n=`${i}:${a}:${e}`;this.setCaipAddress(n,i,!0),await this.syncIdentity({address:e,chainId:a,chainNamespace:i})}async syncReownName(e,t){try{let i=await this.getReownName(e);
1if(i[0]){let e=i[0];this.setProfileName(e.name,t)}else this.setProfileName(null,t)}catch{this.setProfileName(null,t)}}syncConnectedWalletInfo(e){let t=s.a.getConnectorId(e),i=v.G.getProviderId(e);if(i===x.o.CONNECTOR_TYPE_ANNOUNCED||i===x.o.CONNECTOR_TYPE_INJECTED){if(t){let i=this.getConnectors().find(e=>{let i=e.id===t,r=e.info?.rdns===t,a=e.connectors?.some(e=>e.id===t||e.info?.rdns===t);return i||r||!!a});if(i){let{info:t,name:r,imageUrl:a}=i,n=a||this.getConnectorImage(i);this.setConnectedWalletInfo({name:r,icon:n,...t},e)}}}else if(i===x.o.CONNECTOR_TYPE_WALLET_CONNECT){let t=v.G.getProvider(e);t?.session&&this.setConnectedWalletInfo({...t.session.peer.metadata,name:t.session.peer.metadata.name,icon:t.session.peer.metadata.icons?.[0]},e)}else if(t&&(t===r.o.CONNECTOR_ID.COINBASE_SDK||t===r.o.CONNECTOR_ID.COINBASE)){let i=this.getConnectors().find(e=>e.id===t),r=i?.name||"Coinbase Wallet",a=i?.imageUrl||this.getConnectorImage(i),n=i?.info;this.setConnectedWalletInfo({...n,name:r,icon:a},e)}}async syncBalance(e){S.L.getNetworksByNamespace(this.getCaipNetworks(),e.chainNamespace).find(t=>t.id.toString()===e.chainId?.toString())&&e.chainId&&await this.updateNativeBalance(e.address,e.chainId,e.chainNamespace)}async ready(){await this.readyPromise}async updateNativeBalance(e,t,i){let r=this.getAdapter(i),a=g.W.getCaipNetworkByNamespace(i,t);if(r){let n=await r.getBalance({address:e,chainId:t,caipNetwork:a,tokens:this.options.tokens});return this.setBalance(n.balance,n.symbol,i),n}}async initializeUniversalAdapter(){let e=V.createLogger((e,...t)=>{e&&this.handleAlertError(e),console.error(...t)}),t={projectId:this.options?.projectId,metadata:{name:this.options?.metadata?this.options?.metadata.name:"",description:this.options?.metadata?this.options?.metadata.description:"",url:this.options?.metadata?this.options?.metadata.url:"",icons:this.options?.metadata?this.options?.metadata.icons:[""]},logger:e};m.H.setManualWCControl(!!this.options?.manualWCControl),this.universalProvider=this.options.universalProvider??await _.A.init(t);let i=this.universalProvider.disconnect.bind(this.universalProvider);this.universalProvider.disconnect=async()=>{try{return await i()}catch(e){if(e instanceof Error&&e.message.includes("Missing or invalid. Record was recently deleted"))return;throw e}},!1===m.H.state.enableReconnect&&this.universalProvider.session&&await this.universalProvider.disconnect(),this.listenWalletConnect()}listenWalletConnect(){this.universalProvider&&this.chainNamespaces.forEach(e=>{D.k.listenWcProvider({universalProvider:this.universalProvider,namespace:e,onDisplayUri:e=>{d.x.setUri(e)},onConnect:e=>{let{address:t}=y.w.getAccount(e[0]);for(let e of this.chainNamespaces)w.i.removeDisconnectedConnectorId(r.o.CONNECTOR_ID.WALLET_CONNECT,e);d.x.finalizeWcConnection(t)},onDisconnect:()=>{g.W.state.noAdapters&&this.resetAccount(e),d.x.resetWcConnection()},onChainChanged:t=>{let i=g.W.state.activeChain,a=i&&s.a.state.activeConnectorIds[i]===r.o.CONNECTOR_ID.WALLET_CONNECT;if(i===e&&(g.W.state.noAdapters||a)){let e=this.getCaipNetworks().find(e=>e.id.toString()===t.toString()||e.caipNetworkId.toString()===t.toString()),i=this.getCaipNetwork();if(!e)return void this.setUnsupportedNetwork(t);i?.id.toString()!==e?.id.toString()&&i?.chainNamespace===e?.chainNamespace&&this.setCaipNetwork(e)}},onAccountsChanged:t=>{let i=g.W.state.activeChain,a=i&&s.a.state.activeConnectorIds[i]===r.o.CONNECTOR_ID.WALLET_CONNECT;if(i===e&&(g.W.state.noAdapters||a)){let e=t?.[0];e&&this.syncAccount({address:e.address,chainId:e.chainId,chainNamespace:e.chainNamespace})}}})})}createUniversalProvider(){return!this.universalProviderInitPromise&&y.w.isClient()&&this.options?.projectId&&(this.universalProviderInitPromise=this.initializeUniversalAdapter()),this.universalProviderInitPromise}
1async getUniversalProvider(){if(!this.universalProvider)try{await this.createUniversalProvider()}catch(e){l.E.sendEvent({type:"error",event:"INTERNAL_SDK_ERROR",properties:{errorType:"UniversalProviderInitError",errorMessage:e instanceof Error?e.message:"Unknown",uncaught:!1}}),console.error("AppKit:getUniversalProvider - Cannot create provider",e)}return this.universalProvider}getDisabledCaipNetworks(){let e=g.W.getAllApprovedCaipNetworkIds(),t=g.W.getAllRequestedCaipNetworks();return y.w.sortRequestedNetworks(e,t).filter(e=>g.W.isCaipNetworkDisabled(e))}handleAlertError(e){let[t,i]=Object.entries(E.R.UniversalProviderErrors).find(([,{message:t}])=>e.message.includes(t))??[],{message:r,alertErrorKey:a}=i??{};if(t&&r&&!this.reportedAlertErrors[t]){let e=E.R.ALERT_ERRORS[a];e&&(b.h.open(e,"error"),this.reportedAlertErrors[t]=!0)}}getAdapter(e){if(e)return this.chainAdapters?.[e]}createAdapter(e){if(!e)return;let t=e.namespace;t&&(this.createClients(),e.namespace=t,e.construct({namespace:t,projectId:this.options?.projectId,networks:this.caipNetworks?.filter(({chainNamespace:e})=>e===t)}),this.chainNamespaces.includes(t)||this.chainNamespaces.push(t),this.chainAdapters&&(this.chainAdapters[t]=e))}async open(e){await this.injectModalUi(),e?.uri&&d.x.setUri(e.uri);let{isSwap:t,isSend:i}=this.toModalOptions();return t(e)?W.W.open({...e,data:{swap:e.arguments}}):i(e)&&e.arguments?this.openSend(e.arguments):W.W.open(e)}async close(){await this.injectModalUi(),W.W.close()}setLoading(e,t){W.W.setLoading(e,t)}async disconnect(e){await d.x.disconnect({namespace:e})}getSIWX(){return m.H.state.siwx}getError(){return""}getChainId(){return g.W.state.activeCaipNetwork?.id}async switchNetwork(e,{throwOnFailure:t=!1}={}){let i=this.getCaipNetworks().find(t=>t.id===e.id);if(!i)return void b.h.open(E.R.ALERT_ERRORS.SWITCH_NETWORK_NOT_FOUND,"error");await g.W.switchActiveNetwork(i,{throwOnFailure:t})}getWalletProvider(){return g.W.state.activeChain?v.G.state.providers[g.W.state.activeChain]:null}getWalletProviderType(){return v.G.getProviderId(g.W.state.activeChain)}subscribeProviders(e){return v.G.subscribeProviders(e)}getThemeMode(){return f.W.state.themeMode}getThemeVariables(){return f.W.state.themeVariables}setThemeMode(e){f.W.setThemeMode(e),(0,j.JX)(f.W.state.themeMode)}setTermsConditionsUrl(e){m.H.setTermsConditionsUrl(e)}setPrivacyPolicyUrl(e){m.H.setPrivacyPolicyUrl(e)}setThemeVariables(e){f.W.setThemeVariables(e),(0,j.ds)(f.W.state.themeVariables)}subscribeTheme(e){return f.W.subscribe(e)}subscribeConnections(e){return this.remoteFeatures.multiWallet?d.x.subscribe(e):(b.h.open(r.o.REMOTE_FEATURES_ALERTS.MULTI_WALLET_NOT_ENABLED.DEFAULT,"info"),()=>void 0)}getWalletInfo(e){if(e)return g.W.state.chains.get(e)?.accountState?.connectedWalletInfo;let t=g.W.getAccountData();return t?.connectedWalletInfo}getAccount(e){let t=e||g.W.state.activeChain,i=s.a.getAuthConnector(t),a=g.W.getAccountData(t),n=w.i.getConnectedConnectorId(g.W.state.activeChain),l=d.x.getConnections(t);if(!t)throw Error("AppKit:getAccount - namespace is required");let c=l.flatMap(e=>{let{caipNetwork:t}=e;return t?e.accounts.map(({address:e,type:i,publicKey:r})=>y.w.createAccount({caipAddress:`${t.caipNetworkId}:${e}`,type:i||"eoa",publicKey:r})):[]});if(a)return{allAccounts:c,caipAddress:a.caipAddress,address:y.w.getPlainAddress(a.caipAddress),isConnected:!!a.caipAddress,status:a.status,embeddedWalletInfo:i&&n===r.o.CONNECTOR_ID.AUTH?{user:a.user?{...a.user,username:w.i.getConnectedSocialUsername()}:void 0,authProvider:a.socialProvider||"email",accountType:(0,o.lj)(t),isSmartAccountDeployed:!!a.smartAccountDeployed}:void 0}}subscribeAccount(e,t){let i=[],r=()=>{let i=this.getAccount(t);i&&e(i)};if(t){let e=g.W.subscribeChainProp("accountState",r,t);i.push(e)}else{let e=g.W.subscribe(r);i.push(e)}let a=s.a.subscribe(r);return i.push(a),()=>{i.forEach(e=>e())}}subscribeNetwork(e){return g.W.subscribe(({activeCaipNetwork:t})=>{e({caipNetwork:t,chainId:t?.id,caipNetworkId:t?.caipNetworkId})})}subscribeWalletInfo(e,t){return t?g.W.subscribeChainProp("accountState",t=>e(t?.connectedWalletInfo),t):g.W.subscribeChainProp("accountState",t=>e(t?.connectedWalletInfo))}subscribeShouldUpdateToAddress(e){return g.W.subscribeChainProp("accountState",t=>e(t?.shouldUpdateToAddress))}subscribeCaipNetworkChange(e){return g.W.subscribeKey("activeCaipNetwork",e)}getState(){return u.z.state}getRemoteFeatures(){return m.H.state.remoteFeatures}subscribeState(e){return u.z.subscribe(e)}subscribeRemoteFeatures(e){return m.H.subscribeKey("remoteFeatures",e)}showErrorMessage(e){F.P.showError(e)}showSuccessMessage(e){F.P.showSuccess(e)}getEvent(){return{...l.E.state}}subscribeEvents(e){return l.E.subscribe(e)}replace(e){c.I.replace(e)}redirect(e){c.I.push(e)}popTransactionStack(e){c.I.popTransactionStack(e)}isOpen(){return W.W.state.open}isTransactionStackEmpty(){return 0===c.I.state.transactionStack.length}static getInstance(){return this.instance}updateFeatures(e){m.H.setFeatures(e)}updateRemoteFeatures(e){m.H.setRemoteFeatures(e)}updateOptions(e){let t={...m.H.state||{},...e};m.H.setOptions(t)}setConnectMethodsOrder(e){m.H.setConnectMethodsOrder(e)}setWalletFeaturesOrder(e){m.H.setWalletFeaturesOrder(e)}setCollapseWallets(e){m.H.setCollapseWallets(e)}setSocialsOrder(e){m.H.setSocialsOrder(e)}getConnectMethodsOrder(){return H.A.getConnectOrderMethod(m.H.state.features,s.a.getConnectors())}addNetwork(e,t){if(this.chainAdapters&&!this.chainAdapters[e])throw Error(`Adapter for namespace ${e} doesn't exist`);let i=this.extendCaipNetwork(t,this.options);this.getCaipNetworks().find(e=>e.id===i.id)||g.W.addNetwork(i)}removeNetwork(e,t){if(this.chainAdapters&&!this.chainAdapters[e])throw Error(`Adapter for namespace ${e} doesn't exist`);this.getCaipNetworks().find(e=>e.id===t)&&g.W.removeNetwork(e,t)}}let ea=!1;class en extends er{async onAuthProviderConnected(e){let t=C.y.userChainIdToChainNamespace(e?.chainId);if(e.message&&e.signature&&e.siwxMessage&&await n.U.addEmbeddedWalletSession({chainId:e.siwxMessage.chainId,accountAddress:e.address,notBefore:e.siwxMessage.notBefore,statement:e.siwxMessage.statement,resources:e.siwxMessage.resources,requestId:e.siwxMessage.requestId,issuedAt:e.siwxMessage.issuedAt,domain:e.siwxMessage.domain,uri:e.siwxMessage.uri,version:e.siwxMessage.version,nonce:e.siwxMessage.nonce},e.message,e.signature),!t)throw Error("AppKit:onAuthProviderConnected - namespace is required");let i=t===r.o.CHAIN.EVM?`eip155:${e.chainId}:${e.address}`:`${e.chainId}:${e.address}`,a=m.H.state.defaultAccountTypes[t],s=(0,o.lj)(t),l=e.preferredAccountType||s||a;this.setCaipAddress(i,t);let{signature:c,siwxMessage:d,message:u,...h}=e,p=g.W.getAccountData(t);this.setUser({...p?.user||{},...h},t),this.setSmartAccountDeployed(!!e.smartAccountDeployed,t),this.setPreferredAccountType(l,t),await Promise.all([this.syncAuthConnectorTheme(this.authProvider),this.syncAccount({address:e.address,chainId:e.chainId,chainNamespace:t})]),this.setLoading(!1,t)}setupAuthConnectorListeners(e){e.onRpcRequest(t=>{k.Q.checkIfRequestExists(t)?k.Q.checkIfRequestIsSafe(t)||this.handleUnsafeRPCRequest():(this.open(),console.error(A.Vl.RPC_METHOD_NOT_ALLOWED_MESSAGE,{method:t.method}),setTimeout(()=>{this.showErrorMessage(A.Vl.RPC_METHOD_NOT_ALLOWED_UI_MESSAGE)},300),e.rejectRpcRequests())}),e.onRpcError(()=>{this.isOpen()&&(this.isTransactionStackEmpty()?this.close():this.popTransactionStack("error"))}),e.onRpcSuccess((e,t)=>{let i=k.Q.checkIfRequestIsSafe(t),r=this.getAddress(),a=g.W.state.activeCaipNetwork;
1i||(r&&a?.id&&this.updateNativeBalance(r,a.id,a.chainNamespace),this.isTransactionStackEmpty()?this.close():this.popTransactionStack("success"))}),e.onNotConnected(()=>{let e=g.W.state.activeChain;if(!e)throw Error("AppKit:onNotConnected - namespace is required");s.a.getConnectorId(e)===r.o.CONNECTOR_ID.AUTH&&(this.setCaipAddress(null,e),this.setLoading(!1,e))}),e.onConnect(this.onAuthProviderConnected.bind(this)),e.onSocialConnected(this.onAuthProviderConnected.bind(this)),e.onSetPreferredAccount(({address:e,type:t})=>{let i=g.W.state.activeChain;if(!i)throw Error("AppKit:onSetPreferredAccount - namespace is required");e&&this.setPreferredAccountType(t,i)})}async syncAuthConnectorTheme(e){if(!e)return;let t=f.W.getSnapshot();await e.syncTheme({themeMode:t.themeMode,themeVariables:t.themeVariables,w3mThemeVariables:(0,a.o)(t.themeVariables,t.themeMode)})}async syncAuthConnector(e,t){let i=r.o.AUTH_CONNECTOR_SUPPORTED_CHAINS.includes(t),a=t===g.W.state.activeChain;if(!i)return;this.setLoading(!0,t);let n=e.getLoginEmailUsed();this.setLoading(n,t),n&&this.setStatus("connecting",t);let o=e.getEmail(),d=e.getUsername(),u=g.W.getAccountData(t)?.user||{};this.setUser({...u,username:d,email:o},t),this.setupAuthConnectorListeners(e);let{isConnected:h}=await e.isConnected();if(t&&i&&a)if(h&&this.connectionControllerClient?.connectExternal){await e.init(),await this.syncAuthConnectorTheme(e),await this.connectionControllerClient?.connectExternal({id:r.o.CONNECTOR_ID.AUTH,info:{name:r.o.CONNECTOR_ID.AUTH},type:x.o.CONNECTOR_TYPE_AUTH,provider:e,chainId:g.W.getNetworkData(t)?.caipNetwork?.id,chain:t}),this.setStatus("connected",t);let i=w.i.getConnectedSocialProvider();i?l.E.sendEvent({type:"track",event:"SOCIAL_LOGIN_SUCCESS",address:this.getAddress(),properties:{provider:i,reconnect:!0}}):l.E.sendEvent({type:"track",event:"CONNECT_SUCCESS",address:this.getAddress(),properties:{method:"email",name:this.universalProvider?.session?.peer?.metadata?.name||"Unknown",reconnect:!0,view:c.I.state.view,walletRank:void 0}})}else s.a.getConnectorId(t)===r.o.CONNECTOR_ID.AUTH&&(this.setStatus("disconnected",t),w.i.removeConnectedNamespace(t));this.setLoading(!1,t)}async checkExistingTelegramSocialConnection(e){try{if(!y.w.isTelegram())return;let t=w.i.getTelegramSocialProvider();if(!t||!y.w.isClient())return;let i=new URL(window.location.href).searchParams.get("result_uri");if(!i)return;t&&g.W.setAccountProp("socialProvider",t,e),await this.authProvider?.init();let r=s.a.getAuthConnector();t&&r&&(this.setLoading(!0,e),await d.x.connectExternal({id:r.id,type:r.type,socialUri:i},r.chain),w.i.setConnectedSocialProvider(t),w.i.removeTelegramSocialProvider(),l.E.sendEvent({type:"track",event:"SOCIAL_LOGIN_SUCCESS",properties:{provider:t}}))}catch(t){this.setLoading(!1,e),console.error("checkExistingSTelegramocialConnection error",t)}try{let e=new URL(window.location.href);e.searchParams.delete("result_uri"),window.history.replaceState({},document.title,e.toString())}catch(e){console.error("tma social login failed",e)}}createAuthProvider(e){if(!r.o.AUTH_CONNECTOR_SUPPORTED_CHAINS.includes(e))return;let t=this.remoteFeatures?.email,i=Array.isArray(this.remoteFeatures?.socials)&&this.remoteFeatures.socials.length>0,a=C.y.getActiveNamespaceConnectedToAuth()||e;!this.authProvider&&this.options?.projectId&&(t||i)&&(this.authProvider=$.v.getInstance({projectId:this.options.projectId,enableLogger:this.options.enableAuthLogger,chainId:this.getCaipNetwork(a)?.caipNetworkId,abortController:E.R.EmbeddedWalletAbortController,onTimeout:e=>{"iframe_load_failed"===e?b.h.open(E.R.ALERT_ERRORS.IFRAME_LOAD_FAILED,"error"):"iframe_request_timeout"===e?b.h.open(E.R.ALERT_ERRORS.IFRAME_REQUEST_TIMEOUT,"error"):"unverified_domain"===e&&b.h.open(E.R.ALERT_ERRORS.UNVERIFIED_DOMAIN,"error")},getActiveCaipNetwork:e=>(0,o.kg)(e),getCaipNetworks:e=>g.W.getCaipNetworks(e)}),u.z.subscribeOpen(e=>{!e&&this.isTransactionStackEmpty()&&this.authProvider?.rejectRpcRequests()}));let n=e===g.W.state.activeChain&&m.H.state.enableReconnect;!1===m.H.state.enableReconnect?this.syncAuthConnectorTheme(this.authProvider):this.authProvider&&n&&(this.syncAuthConnector(this.authProvider,e),this.checkExistingTelegramSocialConnection(e))}createAuthProviderForAdapter(e){this.createAuthProvider(e),this.authProvider&&this.chainAdapters?.[e]?.setAuthProvider?.(this.authProvider)}initControllers(e){super.initControllers(e),this.options.excludeWalletIds&&h.N.initializeExcludedWallets({ids:this.options.excludeWalletIds})}async switchCaipNetwork(e){if(!e)return;let t=g.W.state.activeChain,i=e.chainNamespace,a=this.getAddressByChainNamespace(i);if(i===t&&g.W.getAccountData(i)?.caipAddress){let t=this.getAdapter(i);await t?.switchNetwork({caipNetwork:e}),this.setCaipNetwork(e)}else{let n=v.G.getProviderId(t)===x.o.CONNECTOR_TYPE_AUTH,o=v.G.getProviderId(i),s=o===x.o.CONNECTOR_TYPE_AUTH,l=r.o.AUTH_CONNECTOR_SUPPORTED_CHAINS.includes(i);if(!i)throw Error("AppKit:switchCaipNetwork - networkNamespace is required");if((n&&void 0===o||s)&&l)try{if(g.W.state.activeChain=e.chainNamespace,a){let t=this.getAdapter(i);await t?.switchNetwork({caipNetwork:e})}else await this.connectionControllerClient?.connectExternal?.({id:r.o.CONNECTOR_ID.AUTH,provider:this.authProvider,chain:i,chainId:e.id,type:x.o.CONNECTOR_TYPE_AUTH,caipNetwork:e});this.setCaipNetwork(e)}catch(r){let t=this.getAdapter(i);await t?.switchNetwork({caipNetwork:e})}else if(o===x.o.CONNECTOR_TYPE_WALLET_CONNECT){if(!g.W.state.noAdapters){let t=this.getAdapter(i);await t?.switchNetwork({caipNetwork:e})}this.setCaipNetwork(e),this.syncWalletConnectAccount()}else this.setCaipNetwork(e),a&&this.syncAccount({address:a,chainId:e.id,chainNamespace:i})}}async initialize(e){await super.initialize(e),this.chainNamespaces?.forEach(e
1=>{this.createAuthProviderForAdapter(e)}),await this.injectModalUi(),u.z.set({initialized:!0})}async syncIdentity({address:e,chainId:t,chainNamespace:i}){if(i!==r.o.CHAIN.EVM)return;let a=`${i}:${t}`,n=this.caipNetworks?.find(e=>e.caipNetworkId===a);if(n?.testnet){this.setProfileName(null,i),this.setProfileImage(null,i);return}let o=s.a.getConnectorId(i)===r.o.CONNECTOR_ID.AUTH;try{let{name:t,avatar:r}=await this.fetchIdentity({address:e});!t&&o?await this.syncReownName(e,i):(this.setProfileName(t,i),this.setProfileImage(r,i))}catch{1!==t&&this.setProfileImage(null,i)}}syncConnectedWalletInfo(e){let t=v.G.getProviderId(e);if(t===x.o.CONNECTOR_TYPE_AUTH){let i=this.authProvider;if(i){let r=w.i.getConnectedSocialProvider()??"email",a=i.getEmail()??i.getUsername();this.setConnectedWalletInfo({name:t,identifier:a,social:r},e)}}else super.syncConnectedWalletInfo(e)}async injectModalUi(){if(!y.w.isClient())return;let e={...p.oU.DEFAULT_FEATURES,...this.options.features};if(!e.headless&&!ea)try{let t=this.remoteFeatures;if(await this.loadModalComponents(e,t),y.w.isClient()&&!document.querySelector("w3m-modal")){let e=document.createElement("w3m-modal");m.H.state.disableAppend||m.H.state.enableEmbedded||document.body.insertAdjacentElement("beforeend",e)}ea=!0}catch(e){console.error("Error injecting modal UI:",e)}}async loadModalComponents(e,t){if(!y.w.isClient())return;let r=[];(t.email||t.socials&&t.socials.length>0)&&r.push(i.e(739).then(i.bind(i,90739))),t.email&&r.push(i.e(644).then(i.bind(i,90644))),t.socials&&r.push(i.e(3264).then(i.bind(i,83264))),t.swaps&&t.swaps.length>0&&r.push(Promise.all([i.e(6889),i.e(3310)]).then(i.bind(i,3310))),e.send&&r.push(Promise.all([i.e(6889),i.e(3689)]).then(i.bind(i,43689))),e.receive&&r.push(i.e(5106).then(i.bind(i,65106))),t.onramp&&t.onramp.length>0&&r.push(i.e(6649).then(i.bind(i,76649))),t.payWithExchange&&r.push(i.e(2524).then(i.bind(i,82524))),t.activity&&r.push(i.e(3160).then(i.bind(i,83160))),(e.pay||t.payments)&&r.push(i.e(7020).then(i.bind(i,17020))),t.emailCapture&&r.push(i.e(4257).then(i.bind(i,14257))),await Promise.all([...r,Promise.resolve().then(i.bind(i,56095)),Promise.all([i.e(6889),i.e(7020),i.e(2306)]).then(i.bind(i,32306))])}}},2198:(e,t,i)=>{"use strict";i(7368)},3314:(e,t,i)=>{"use strict";i.d(t,{$f:()=>p,V1:()=>u,cz:()=>d,lZ:()=>h,nj:()=>f,ro:()=>c,sP:()=>m});var r=i(32866),a=i(38195);let n={eip155:{native:{assetNamespace:"slip44",assetReference:"60"},defaultTokenNamespace:"erc20"},solana:{native:{assetNamespace:"slip44",assetReference:"501"},defaultTokenNamespace:"token"}},o={56:"714",204:"714"};class s extends Error{}async function l(e,t){let i=function(){let{sdkType:e,sdkVersion:t,projectId:i}=a.H.getSnapshot(),r=new URL("https://rpc.walletconnect.org/v1/json-rpc");return r.searchParams.set("projectId",i),r.searchParams.set("st",e),r.searchParams.set("sv",t),r.searchParams.set("source","fund-wallet"),r.toString()}(),{projectId:r}=a.H.getSnapshot(),n={jsonrpc:"2.0",id:1,method:e,params:{...t||{},projectId:r}},o=await fetch(i,{method:"POST",body:JSON.stringify(n),headers:{"Content-Type":"application/json"}}),l=await o.json();if(l.error)throw new s(l.error.message);return l}async function c(e){return(await l("reown_getExchanges",e)).result}async function d(e){return(await l("reown_getExchangePayUrl",e)).result}async function u(e){return(await l("reown_getExchangeBuyStatus",e)).result}function h(e,t){let{chainNamespace:i,chainId:a}=r.C.parseCaipNetworkId(e),s=n[i];if(!s)throw Error(`Unsupported chain namespace for CAIP-19 formatting: ${i}`);let l=s.native.assetNamespace,c=s.native.assetReference;"native"!==t?(l=s.defaultTokenNamespace,c=t):"eip155"===i&&o[a]&&(c=o[a]);let d=`${i}:${a}`;return`${d}/${l}
1:${c}`}let p={network:"eip155:8453",asset:"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",metadata:{name:"USD Coin",symbol:"USDC",decimals:6}},m={network:"eip155:84532",asset:"0x036CbD53842c5426634e7929541eC2318f3dCF7e",metadata:{name:"USD Coin",symbol:"USDC",decimals:6}},g={ethereumETH:{network:"eip155:1",asset:"native",metadata:{name:"Ethereum",symbol:"ETH",decimals:18}},baseETH:{network:"eip155:8453",asset:"native",metadata:{name:"Ethereum",symbol:"ETH",decimals:18}},baseUSDC:p,baseSepoliaETH:{network:"eip155:84532",asset:"native",metadata:{name:"Ethereum",symbol:"ETH",decimals:18}},ethereumUSDC:{network:"eip155:1",asset:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",metadata:{name:"USD Coin",symbol:"USDC",decimals:6}},arbitrumUSDC:{network:"eip155:42161",asset:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831",metadata:{name:"USD Coin",symbol:"USDC",decimals:6}},polygonUSDC:{network:"eip155:137",asset:"0x2791bca1f2de4661ed88a30c99a7a9449aa84174",metadata:{name:"USD Coin",symbol:"USDC",decimals:6}},solanaUSDC:{network:"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",asset:"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",metadata:{name:"USD Coin",symbol:"USDC",decimals:6}},ethereumUSDT:{network:"eip155:1",asset:"0xdAC17F958D2ee523a2206206994597C13D831ec7",metadata:{name:"Tether USD",symbol:"USDT",decimals:6}},optimismUSDT:{network:"eip155:10",asset:"0x94b008aA00579c1307B0EF2c499aD98a8ce58e58",metadata:{name:"Tether USD",symbol:"USDT",decimals:6}},arbitrumUSDT:{network:"eip155:42161",asset:"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",metadata:{name:"Tether USD",symbol:"USDT",decimals:6}},polygonUSDT:{network:"eip155:137",asset:"0xc2132d05d31c914a87c6611c10748aeb04b58e8f",metadata:{name:"Tether USD",symbol:"USDT",decimals:6}},solanaUSDT:{network:"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",asset:"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",metadata:{name:"Tether USD",symbol:"USDT",decimals:6}},solanaSOL:{network:"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",asset:"native",metadata:{name:"Solana",symbol:"SOL",decimals:9}}};function f(e){return Object.values(g).filter(t=>t.network===e)}},3544:(e,t,i)=>{"use strict";let r,a;i.d(t,{sX:()=>R,JS:()=>x,G8:()=>b,HV:()=>I,AX:()=>y,KN:()=>k,uP:()=>v,XV:()=>E});var n=i(40776),o=i(53449),s=i(75283),l=i(3348);let c=(e,t)=>{let i=(0,o.useRef)(void 0);(0,o.useEffect)(()=>{i.current=(0,s.JR)(e,t,!0)}),(0,o.useDebugValue)(i.current)},d=new WeakMap;function u(e,t){let i=null==t?void 0:t.sync,r=(0,o.useMemo)(()=>e&&new WeakMap,[e]),a=(0,o.useRef)(void 0),n=!0,u=(0,o.useSyncExternalStore)((0,o.useCallback)(t=>{let r=(0,l.B1)(e,t,i);return t(),r},[e,i]),()=>{let t=(0,l.P9)(e);try{if(!n&&a.current&&!(0,s.Hq)(a.current,t,r,new WeakMap))return a.current}catch(e){}return t},()=>(0,l.P9)(e));n=!1,(0,o.useLayoutEffect)(()=>{a.current=u}),c(u,r);let h=(0,o.useMemo)(()=>new WeakMap,[]);return(0,s.tz)(u,r,h,d)}var h=i(97220),p=i(58616),m=i(56119),g=i(45086),f=i(70794),w=i(33364);function y(e){let{providers:t,providerIds:i}=u(f.G.state);return{walletProvider:t[e],walletProviderType:i[e]}}function b(e){let t=u(p.W.state),{activeConnectorIds:i}=u(g.a.state),{connections:r}=u(m.x.state),a=e?.namespace||t.activeChain;if(!a)return{allAccounts:[],address:void 0,caipAddress:void 0,status:void 0,isConnected:!1,embeddedWalletInfo:void 0};let o=t.chains.get(a)?.accountState,s=g.a.getAuthConnector(a),l=i[a];return{allAccounts:(r.get(a)??[]).flatMap(e=>{let{caipNetwork:t}=e;return t?e.accounts.map(({address:e,type:i,publicKey:r})=>n.w.createAccount({caipAddress:`${t.caipNetworkId}:${e}`,type:i||"eoa",publicKey:r})):[]}),caipAddress:o?.caipAddress,address:n.w.getPlainAddress(o?.caipAddress),isConnected:!!o?.caipAddress,status:o?.status,embeddedWalletInfo:s&&l===h.o.CONNECTOR_ID.AUTH?{user:o?.user?{...o.user,username:w.i.getConnectedSocialUsername()}:void 0,authProvider:o?.socialProvider||"email",accountType:o?.preferredAccountType,isSmartAccountDeployed:!!o?.smartAccountDeployed}:void 0}}function v(){return{disconnect:async function(e){await m.x.disconnect(e)}}}var C=i(1750);function x(){if(!r)throw Error('Please call "createAppKit" before using "useAppKit" hook');return{open:async function(e){return r?.open(e)},close:async function(){await r?.close()}}}function E(e){if(!r)throw Error('Please call "createAppKit" before using "useWalletInfo" hook');let[t,i]=(0,o.useState)(()=>r?.getWalletInfo(e));return(0,o.useEffect)(()=>{i(r?.getWalletInfo(e));let t=r?.subscribeWalletInfo(e=>{i(e)},e);return()=>t?.()},[e]),{walletInfo:t}}function k(){if(!r)throw Error('Please call "createAppKit" before using "useAppKitState" hook');let[e,t]=(0,o.useState)({...r.getState(),initialized:!1}),[i,a]=(0,o.useState)(r.getRemoteFeatures());return(0,o.useEffect)(()=>
1{if(r){t({...r.getState()}),a(r.getRemoteFeatures());let e=r?.subscribeState(e=>{t({...e})}),i=r?.subscribeRemoteFeatures(e=>{a(e)});return()=>{e?.(),i?.()}}return()=>null},[]),{...e,...i??{}}}var A=i(18220);i(6866);let $=new Set(["children","localName","ref","style","className"]),_=new WeakMap,N=(e,t,i,r,a)=>{let n=a?.[t];void 0===n?(e[t]=i,null==i&&t in HTMLElement.prototype&&e.removeAttribute(t)):i!==r&&((e,t,i)=>{let r=_.get(e);void 0===r&&_.set(e,r=new Map);let a=r.get(t);void 0!==i?void 0===a?(r.set(t,a={handleEvent:i}),e.addEventListener(t,a)):a.handleEvent=i:void 0!==a&&(r.delete(t),e.removeEventListener(t,a))})(e,n,i)},S=({react:e,tagName:t,elementClass:i,events:r,displayName:a})=>{let n=new Set(Object.keys(r??{})),o=e.forwardRef((a,o)=>{let s=e.useRef(new Map),l=e.useRef(null),c={},d={};for(let[e,t]of Object.entries(a))$.has(e)?c["className"===e?"class":e]=t:n.has(e)||e in i.prototype?d[e]=t:c[e]=t;return e.useLayoutEffect(()=>{if(null===l.current)return;let e=new Map;for(let t in d)N(l.current,t,a[t],s.current.get(t),r),s.current.delete(t),e.set(t,a[t]);for(let[e,t]of s.current)N(l.current,e,void 0,t,r);s.current=e}),e.useLayoutEffect(()=>{l.current?.removeAttribute("defer-hydration")},[]),c.suppressHydrationWarning=!0,e.createElement(t,{...c,ref:e.useCallback(e=>{l.current=e,"function"==typeof o?o(e):null!==o&&(o.current=e)},[o])})});return o.displayName=a??i.name,o};var T=i(56095);S({tagName:"appkit-button",elementClass:T.AppKitButton,react:o}),S({tagName:"appkit-network-button",elementClass:T.AppKitNetworkButton,react:o}),S({tagName:"appkit-connect-button",elementClass:T.AppKitConnectButton,react:o}),S({tagName:"appkit-account-button",elementClass:T.AppKitAccountButton,react:o});function R(e){!a&&(r=a=new C._({...e,sdkVersion:n.w.generateSdkVersion(e.adapters??[],"react",A.i)}));return a}function I(){let{caipNetwork:e,caipNetworkId:t,chainId:i}=function(){let{activeCaipNetwork:e}=u(p.W.state);return{caipNetwork:e,chainId:e?.id,caipNetworkId:e?.caipNetworkId}}();return{caipNetwork:e,caipNetworkId:t,chainId:i,switchNetwork:async function(e){await a?.switchNetwork(e)}}}},4358:(e,t,i)=>{let r=i(28770),a=i(11752);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw Error("Invalid mode: "+e);if(!r.isValid(t))throw Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return a.testNumeric(e)?t.NUMERIC:a.testAlphanumeric(e)?t.ALPHANUMERIC:a.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,i){if(t.isValid(e))return e;try{if("string"!=typeof e)throw Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw Error("Unknown mode: "+e)}}catch(e){return i}}},4438:(e,t,i)=>{"use strict";var r=i(88633),a=i(15274);i(17364);var n=i(62057),o=i(54718),s=i(21621);let l=(0,s.AH)` 2 :host { 3 display: flex; 4 justify-content: center; 5 align-items: center; 6 width: 40px; 7 height: 40px; 8 border-radius: ${({borderRadius:e})=>e["20"]}; 9 overflow: hidden; 10 } 11 12 wui-icon { 13 width: 100%; 14 height: 100%; 15 } 16`;var c=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let d=class extends r.WF{constructor(){super(...arguments),this.logo="google"}render(){return(0,r.qy)`<wui-icon color="inherit" size="inherit" name=${this.logo}></wui-icon> `}};d.styles=[n.W5,l],c([(0,a.MZ)()],d.prototype,"logo",void 0),d=c([(0,o.E)("wui-logo")],d)},4456:(e,t,i)=>{"use strict";i.d(t,{H:()=>n});var r=i(13178),a=i(19836);let n=(0,a.u$)(class extends a.WL{constructor(e){if(super(e),e.type!==a.OA.ATTRIBUTE||"class"!==e.name||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}
16update(e,[t]){if(void 0===this.st){for(let i in this.st=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(e=>""!==e))),t)t[i]&&!this.nt?.has(i)&&this.st.add(i);return this.render(t)}let i=e.element.classList;for(let e of this.st)e in t||(i.remove(e),this.st.delete(e));for(let e in t){let r=!!t[e];r===this.st.has(e)||this.nt?.has(e)||(r?(i.add(e),this.st.add(e)):(i.remove(e),this.st.delete(e)))}return r.c0}})},6866:(e,t,i)=>{"use strict";i(47107)},7368:(e,t,i)=>{"use strict";var r=i(88633),a=i(15274),n=i(54718),o=i(21621);let s=(0,o.AH)` 17 :host { 18 display: block; 19 background: linear-gradient( 20 90deg, 21 ${({tokens:e})=>e.theme.foregroundPrimary} 0%, 22 ${({tokens:e})=>e.theme.foregroundSecondary} 50%, 23 ${({tokens:e})=>e.theme.foregroundPrimary} 100% 24 ); 25 background-size: 200% 100%; 26 animation: shimmer 2s linear infinite; 27 border-radius: ${({borderRadius:e})=>e[1]}; 28 } 29 30 :host([data-rounded='true']) { 31 border-radius: ${({borderRadius:e})=>e[16]}; 32 } 33 34 @keyframes shimmer { 35 0% { 36 background-position: 100% 0; 37 } 38 100% { 39 background-position: -100% 0; 40 } 41 } 42`;var l=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let c=class extends r.WF{constructor(){super(...arguments),this.width="",this.height="",this.variant="default",this.rounded=!1}render(){return this.style.cssText=` 43 width: ${this.width}; 44 height: ${this.height}; 45 `,this.dataset.rounded=this.rounded?"true":"false",(0,r.qy)`<slot></slot>`}};c.styles=[s],l([(0,a.MZ)()],c.prototype,"width",void 0),l([(0,a.MZ)()],c.prototype,"height",void 0),l([(0,a.MZ)()],c.prototype,"variant",void 0),l([(0,a.MZ)({type:Boolean})],c.prototype,"rounded",void 0),c=l([(0,n.E)("wui-shimmer")],c)},8236:(e,t,i)=>{"use strict";i(37218)},8350:(e,t,i)=>{"use strict";i.d(t,{I:()=>s});var r=i(3348),a=i(73538),n=i(10611);let o=(0,r.BX)({message:"",open:!1,triggerRect:{width:0,height:0,top:0,left:0},variant:"shade"}),s=(0,n.X)({state:o,subscribe:e=>(0,r.B1)(o,()=>e(o)),subscribeKey:(e,t)=>(0,a.u$)(o,e,t),showTooltip({message:e,triggerRect:t,variant:i}){o.open=!0,o.message=e,o.triggerRect=t,o.variant=i},hide(){o.open=!1,o.message="",o.triggerRect={width:0,height:0,top:0,left:0}}})},11752:(e,t)=>{let i="[0-9]+",r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",a="(?:(?![A-Z0-9 $%*+\\-./:]|"+(r=r.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";t.KANJI=RegExp(r,"g"),t.BYTE_KANJI=RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=RegExp(a,"g"),t.NUMERIC=RegExp(i,"g"),t.ALPHANUMERIC=RegExp("[A-Z $%*+\\-./:]+","g");let n=RegExp("^"+r+"$"),o=RegExp("^"+i+"$"),s=RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return n.test(e)},t.testNumeric=function(e){return o.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},11906:(e,t,i)=>{"use strict";i.d(t,{a:()=>a});var r=i(88633);let a=(0,r.JW)`<svg viewBox="0 0 48 54" fill="none"> 46 <path 47 d="M43.4605 10.7248L28.0485 1.61089C25.5438 0.129705 22.4562 0.129705 19.9515 1.61088L4.53951 10.7248C2.03626 12.2051 0.5 14.9365 0.5 17.886V36.1139C0.5 39.0635 2.03626 41.7949 4.53951 43.2752L19.9515 52.3891C22.4562 53.8703 25.5438 53.8703 28.0485 52.3891L43.4605 43.2752C45.9637 41.7949 47.5 39.0635 47.5 36.114V17.8861C47.5 14.9365 45.9637 12.2051 43.4605 10.7248Z" 48 /> 49</svg>`},12336:(e,t,i)=>{"use strict";var r=i(88633),a=i(15274);i(17364),i(37218);var n=i(62057),o=i(54718),s=i(21621);let l=(0,s.AH)` 50 button { 51 border: none; 52 background: transparent; 53 height: 20px; 54 padding: ${({spacing:e})=>e[2]}; 55 column-gap: ${({spacing:e})=>e[1]}; 56 border-radius: ${({borderRadius:e})=>e[1]}; 57 padding: 0 ${({spacing:e})=>e[1]}; 58 border-radius: ${({spacing:e})=>e[1]}; 59 } 60 61 /* -- Variants --------------------------------------------------------- */ 62 button[data-variant='accent'] { 63 color: ${({tokens:e})=>e.core.textAccentPrimary}; 64 } 65 66 button[data-variant='secondary'] { 67 color: ${({tokens:e})=>e.theme.textSecondary}; 68 } 69 70 /* -- Focus states --------------------------------------------------- */ 71 button:focus-visible:enabled { 72 box-shadow: 0px 0px 0px 4px rgba(9, 136, 240, 0.2); 73 } 74 75 button[data-variant='accent']:focus-visible:enabled { 76 background-color: ${({tokens:e})=>e.core.foregroundAccent010}; 77 } 78 79 button[data-variant='secondary']:focus-visible:enabled { 80 background-color: ${({tokens:e})=>e.theme.foregroundSecondary}; 81 } 82 83 /* -- Hover & Active states ----------------------------------------------------------- */ 84 button[data-variant='accent']:hover:enabled { 85 background-color: ${({tokens:e})=>e.core.foregroundAccent010}; 86 } 87 88 button[data-variant='secondary']:hover:enabled { 89 background-color: ${({tokens:e})=>e.theme.foregroundSecondary}; 90 } 91 92 button[data-variant='accent']:focus-visible { 93 background-color: ${({tokens:e})=>e.core.foregroundAccent010}; 94 } 95 96 button[data-variant='secondary']:focus-visible { 97 background-color: ${({tokens:e})=>e.theme.foregroundSecondary}; 98 box-shadow: 0px 0px 0px 4px rgba(9, 136, 240, 0.2); 99 } 100 101 button[disabled] { 102 opacity: 0.5;
103 cursor: not-allowed; 104 } 105`;var c=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let d={sm:"sm-medium",md:"md-medium"},u={accent:"accent-primary",secondary:"secondary"},h=class extends r.WF{constructor(){super(...arguments),this.size="md",this.disabled=!1,this.variant="accent",this.icon=void 0}render(){return(0,r.qy)` 106 <button ?disabled=${this.disabled} data-variant=${this.variant}> 107 <slot name="iconLeft"></slot> 108 <wui-text 109 color=${u[this.variant]} 110 variant=${d[this.size]} 111 > 112 <slot></slot> 113 </wui-text> 114 ${this.iconTemplate()} 115 </button> 116 `}iconTemplate(){return this.icon?(0,r.qy)`<wui-icon name=${this.icon} size="sm"></wui-icon>`:null}};h.styles=[n.W5,n.fD,l],c([(0,a.MZ)()],h.prototype,"size",void 0),c([(0,a.MZ)({type:Boolean})],h.prototype,"disabled",void 0),c([(0,a.MZ)()],h.prototype,"variant",void 0),c([(0,a.MZ)()],h.prototype,"icon",void 0),h=c([(0,o.E)("wui-link")],h)},12734:(e,t,i)=>{"use strict";i.d(t,{M:()=>o});var r=i(82475);let a={attribute:!0,type:String,converter:r.W3,reflect:!1,hasChanged:r.Ec},n=(e=a,t,i)=>{let{kind:r,metadata:n}=i,o=globalThis.litPropertyMetadata.get(n);if(void 0===o&&globalThis.litPropertyMetadata.set(n,o=new Map),"setter"===r&&((e=Object.create(e)).wrapped=!0),o.set(i.name,e),"accessor"===r){let{name:r}=i;return{set(i){let a=t.get.call(this);t.set.call(this,i),this.requestUpdate(r,a,e)},init(t){return void 0!==t&&this.C(r,void 0,e,t),t}}}if("setter"===r){let{name:r}=i;return function(i){let a=this[r];t.call(this,i),this.requestUpdate(r,a,e)}}throw Error("Unsupported decorator location: "+r)};function o(e){return(t,i)=>"object"==typeof i?n(e,t,i):((e,t,i)=>{let r=t.hasOwnProperty(i);return t.constructor.createProperty(i,e),r?Object.getOwnPropertyDescriptor(t,i):void 0})(e,t,i)}},12763:(e,t,i)=>{"use strict";i.d(t,{y:()=>s});var r=i(97220),a=i(38195),n=i(60210),o=i(73751);let s={getTabsByNamespace:e=>e&&e===r.o.CHAIN.EVM?a.H.state.remoteFeatures?.activity===!1?o.o.ACCOUNT_TABS.filter(e=>"Activity"!==e.label):o.o.ACCOUNT_TABS:[],isValidReownName:e=>/^[a-zA-Z0-9]+$/gu.test(e),isValidEmail:e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/gu.test(e),validateReownName:e=>e.replace(/\^/gu,"").toLowerCase().replace(/[^a-zA-Z0-9]/gu,""),hasFooter(){let e=n.I.state.view;if(o.o.VIEWS_WITH_LEGAL_FOOTER.includes(e)){let{termsConditionsUrl:e,privacyPolicyUrl:t}=a.H.state,i=a.H.state.features?.legalCheckbox;return(!!e||!!t)&&!i}return o.o.VIEWS_WITH_DEFAULT_FOOTER.includes(e)}}},13178:(e,t,i)=>{"use strict";i.d(t,{JW:()=>A,XX:()=>B,c0:()=>_,ej:()=>$,ge:()=>j,qy:()=>k,s6:()=>N});let r=globalThis,a=r.trustedTypes,n=a?a.createPolicy("lit-html",{createHTML:e=>e}):void 0,o="$lit$",s=`lit$${Math.random().toFixed(9).slice(2)}$`,l="?"+s,c=`<${l}>`,d=document,u=()=>d.createComment(""),h=e=>null===e||"object"!=typeof e&&"function"!=typeof e,p=Array.isArray,m=e=>p(e)||"function"==typeof e?.[Symbol.iterator],g="[ \n\f\r]",f=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,w=/-->/g,y=/>/g,b=RegExp(`>|${g}(?:([^\\s"'>=/]+)(${g}*=${g}*(?:[^ 117\f\r"'\`<>=]|("|')|))|$)`,"g"),v=/'/g,C=/"/g,x=/^(?:script|style|textarea|title)$/i,E=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),k=E(1),A=E(2),$=E(3),_=Symbol.for("lit-noChange"),N=Symbol.for("lit-nothing"),S=new WeakMap,T=d.createTreeWalker(d,129);function R(e,t){if(!p(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==n?n.createHTML(t):t}let I=(e,t)=>{let i=e.length-1,r=[],a,n=2===t?"<svg>":3===t?"<math>":"",l=f;for(let t=0;t<i;t++){let i=e[t],d,u,h=-1,p=0;for(;p<i.length&&(l.lastIndex=p,null!==(u=l.exec(i)));)p=l.lastIndex,l===f?"!--"===u[1]?l=w:void 0!==u[1]?l=y:void 0!==u[2]?(x.test(u[2])&&(a=RegExp("</"+u[2],"g")),l=b):void 0!==u[3]&&(l=b):l===b?">"===u[0]?(l=a??f,h=-1):void 0===u[1]?h=-2:(h=l.lastIndex-u[2].length,d=u[1],l=void 0===u[3]?b:'"'===u[3]?C:v):l===C||l===v?l=b:l===w||l===y?l=f:(l=b,a=void 0);let m=l===b&&e[t+1].startsWith("/>")?" ":"";n+=l===f?i+c:h>=0?(r.push(d),i.slice(0,h)+o+i.slice(h)+s+m):i+s+(-2===h?t:m)}return[R(e,n+(e[i]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),r]};class P{constructor({strings:e,_$litType$:t},i){let r;this.parts=[];let n=0,c=0,d=e.length-1,h=this.parts,[p,m]=I(e,t);if(this.el=P.createElement(p,i),T.currentNode=this.el.content,2===t||3===t){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(r=T.nextNode())&&h.length<d;){if(1===r.nodeType){if(r.hasAttributes())for(let e of r.getAttributeNames())if(e.endsWith(o)){let t=m[c++],i=r.getAttribute(e).split(s),a=/([.?@])?(.*)/.exec(t);h.push({type:1,index:n,name:a[2],strings:i,ctor:"."===a[1]?D:"?"===a[1]?U:"@"===a[1]?F:L}),r.removeAttribute(e)}else e.startsWith(s)&&(h.push({type:6,index:n}),r.removeAttribute(e));if(x.test(r.tagName)){let e=r.textContent.split(s),t=e.length-1;if(t>0){r.textContent=a?a.emptyScript:"";for(let i=0;i<t;i++)r.append(e[i],u()),T.nextNode(),h.push({type:2,index:++n});r.append(e[t],u())}}}else if(8===r.nodeType)if(r.data===l)h.push({type:2,index:n});else{let e=-1;for(;-1!==(e=r.data.indexOf(s,e+1));)h.push({type:7,index:n}),e+=s.length-1}n++}}static createElement(e,t){let i=d.createElement("template");return i.innerHTML=e,i}}function O(e,t,i=e,r){if(t===_)return t;let a=void 0!==r?i._$Co?.[r]:i._$Cl,n=h(t)?void 0:t._$litDirective$;return a?.constructor!==n&&(a?._$AO?.(!1),void 0===n?a=void 0:(a=new n(e))._$AT(e,i,r),void 0!==r?(i._$Co??=[])[r]=a:i._$Cl=a),void 0!==a&&(t=O(e,a._$AS(e,t.values),a,r)),t}class M{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:i}=this._$AD,r=(e?.creationScope??d).importNode(t,!0);T.currentNode=r;let a=T.nextNode(),n=0,o=0,s=i[0];for(;void 0!==s;){if(n===s.index){let t;2===s.type?t=new W(a,a.nextSibling,this,e):1===s.type?t=new s.ctor(a,s.name,s.strings,this,e):6===s.type&&(t=new H(a,this,e)),this._$AV.push(t),s=i[++o]}n!==s?.index&&(a=T.nextNode(),n++)}return T.currentNode=d,r}p(e){let t=0;for(let i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class W{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,i,r){this.type=2,this._$AH=N,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=r,this._$Cv=r?.
117isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){h(e=O(this,e,t))?e===N||null==e||""===e?(this._$AH!==N&&this._$AR(),this._$AH=N):e!==this._$AH&&e!==_&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):m(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==N&&h(this._$AH)?this._$AA.nextSibling.data=e:this.T(d.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:i}=e,r="number"==typeof i?this._$AC(e):(void 0===i.el&&(i.el=P.createElement(R(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===r)this._$AH.p(t);else{let e=new M(r,this),i=e.u(this.options);e.p(t),this.T(i),this._$AH=e}}_$AC(e){let t=S.get(e.strings);return void 0===t&&S.set(e.strings,t=new P(e)),t}k(e){p(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,i,r=0;for(let a of e)r===t.length?t.push(i=new W(this.O(u()),this.O(u()),this,this.options)):i=t[r],i._$AI(a),r++;r<t.length&&(this._$AR(i&&i._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class L{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,r,a){this.type=1,this._$AH=N,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=a,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=N}_$AI(e,t=this,i,r){let a=this.strings,n=!1;if(void 0===a)(n=!h(e=O(this,e,t,0))||e!==this._$AH&&e!==_)&&(this._$AH=e);else{let r,o,s=e;for(e=a[0],r=0;r<a.length-1;r++)(o=O(this,s[i+r],t,r))===_&&(o=this._$AH[r]),n||=!h(o)||o!==this._$AH[r],o===N?e=N:e!==N&&(e+=(o??"")+a[r+1]),this._$AH[r]=o}n&&!r&&this.j(e)}j(e){e===N?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class D extends L{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===N?void 0:e}}class U extends L{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==N)}}class F extends L{constructor(e,t,i,r,a){super(e,t,i,r,a),this.type=5}
117_$AI(e,t=this){if((e=O(this,e,t,0)??N)===_)return;let i=this._$AH,r=e===N&&i!==N||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==N&&(i===N||r);r&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class H{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){O(this,e)}}let j={M:o,P:s,A:l,C:1,L:I,R:M,D:m,V:O,I:W,H:L,N:U,U:F,B:D,F:H},Z=r.litHtmlPolyfillSupport;Z?.(P,W),(r.litHtmlVersions??=[]).push("3.3.1");let B=(e,t,i)=>{let r=i?.renderBefore??t,a=r._$litPart$;if(void 0===a){let e=i?.renderBefore??null;r._$litPart$=a=new W(t.insertBefore(u(),e),e,void 0,i??{})}return a._$AI(e),a}},13894:(e,t,i)=>{"use strict";i.d(t,{J:()=>a});var r=i(13178);let a=e=>e??r.s6},14049:e=>{function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(let i=0;i<t;i++)this.putBit((e>>>t-i-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},15002:(e,t,i)=>{"use strict";i.d(t,{R:()=>w});var r=i(44578),a=i(1354),n=i(98897),o=i(49993),s=i(59299);function l(e,t={}){let{key:i="fallback",name:r="Fallback",rank:a=!1,shouldThrow:n=c,retryCount:d,retryDelay:u}=t;return({chain:t,pollingInterval:l=4e3,timeout:c,...h})=>{let p=e,m=()=>{},g=(0,s.o)({key:i,name:r,async request({method:e,params:i}){let r,a=async(o=0)=>{let s=p[o]({...h,chain:t,retryCount:0,timeout:c});try{let t=await s.request({method:e,params:i});return m({method:e,params:i,response:t,transport:s,status:"success"}),t}catch(l){if(m({error:l,method:e,params:i,transport:s,status:"error"}),n(l)||o===p.length-1||!(r??=p.slice(o+1).some(i=>{let{include:r,exclude:a}=i({chain:t}).config.methods||{};return r?r.includes(e):!a||!a.includes(e)})))throw l;return a(o+1)}};return a()},retryCount:d,retryDelay:u,type:"fallback"},{onResponse:e=>m=e,transports:p.map(e=>e({chain:t,retryCount:0}))});if(a){let e="object"==typeof a?a:{};!function({chain:e,interval:t=4e3,onTransports:i,ping:r,sampleCount:a=10,timeout:n=1e3,transports:s,weights:l={}}){let{stability:c=.7,latency:d=.3}=l,u=[],h=async()=>{let l=await Promise.all(s.map(async t=>{let i,a,o=t({chain:e,retryCount:0,timeout:n}),s=Date.now();try{await (r?r({transport:o}):o.request({method:"net_listening"})),a=1}catch{a=0}finally{i=Date.now()}return{latency:i-s,success:a}}));u.push(l),u.length>a&&u.shift();let p=Math.max(...u.map(e=>Math.max(...e.map(({latency:e})=>e))));i(s.map((e,t)=>{let i=u.map(e=>e[t].latency),r=i.reduce((e,t)=>e+t,0)/i.length,a=u.map(e=>e[t].success),n=a.reduce((e,t)=>e+t,0)/a.length;return 0===n?[0,t]:[d*(1-r/p)+c*n,t]}).sort((e,t)=>t[0]-e[0]).map(([,e])=>s[e])),await (0,o.u)(t),h()};h()}({chain:t,interval:e.interval??l,onTransports:e=>p=e,ping:e.ping,sampleCount:e.sampleCount,timeout:e.timeout,transports:p,weights:e.weights})}return g}}function c(e){return!!("code"in e&&"number"==typeof e.code&&(e.code===n.YW.code||e.code===n.vx.code||e.code===n.nR.code||a.A7.nodeMessage.test(e.message)||5e3===e.code))}var d=i(97220),u=i(33364),h=i(58616),p=i(22522);let m={ConnectorExplorerIds:{[d.o.CONNECTOR_ID.COINBASE]:"fd20dc426fb37566d803205b19bbc1d4096b248ac04548e3cfb6b3a38bd033aa",[d.o.CONNECTOR_ID.COINBASE_SDK]:"fd20dc426fb37566d803205b19bbc1d4096b248ac04548e3cfb6b3a38bd033aa",[d.o.CONNECTOR_ID.BASE_ACCOUNT]:"fd20dc426fb37566d803205b19bbc1d4096b248ac04548e3cfb6b3a38bd033aa",[d.o.CONNECTOR_ID.SAFE]:"225affb176778569276e484e1b92637ad061b01e13a048b35a9d280c3b58970f",[d.o.CONNECTOR_ID.LEDGER]:"19177a98252e07ddfc9af2083ba8e07ef627cb6103467ffebb3f8f4205fd7927",[d.o.CONNECTOR_ID.OKX]:"971e689d0a5be527bac79629b4ee9b925e82208e5168b733496a09c0faed0709",[p.o.METMASK_CONNECTOR_NAME]:"c57ca95b47569778a828d19178114f4db188b89b763c899ba0be274e97267d96",[p.o.TRUST_CONNECTOR_NAME]:"4622a2b2d6af1c9844944291e5e7351a6aa24cd7b23099efac1b2fd875da31a0",[p.o.SOLFLARE_CONNECTOR_NAME]:"1ca0bdd4747578705b1939af023d120677c64fe6ca76add81fda36e350605e79",[p.o.PHANTOM_CONNECTOR_NAME]:"a797aa35c0fadbfc1a53e7f675162ed5226968b44a19ee3d24385c64d1d3c393",[p.o.COIN98_CONNECTOR_NAME]:"2a3c89040ac3b723a1972a33a125b1db11e258a6975d3a61252cd64e6ea5ea01",[p.o.MAGIC_EDEN_CONNECTOR_NAME]:"8b830a2b724a9c3fbab63af6f55ed29c9dfa8a55e732dc88c80a196a2ba136c6",[p.o.BACKPACK_CONNECTOR_NAME]:"2bd8c14e035c2d48f184aaa168559e86b0e3433228d3c4075900a221785019b0",[p.o.BITGET_CONNECTOR_NAME]:"38f5d18bd8522c244bdd70cb4a68e0e718865155811c043f052fb9f1c51de662",[p.o.FRONTIER_CONNECTOR_NAME]:"85db431492aa2e8672e93f4ea7acf10c88b97b867b0d373107af63dc4880f041",[p.o.XVERSE_CONNECTOR_NAME]:"2a87d74ae02e10bdd1f51f7ce6c4e1cc53cd5f2c0b6b5ad0d7b300
1177d2b13de7b",[p.o.LEATHER_CONNECTOR_NAME]:"483afe1df1df63daf313109971ff3ef8356ddf1cc4e45877d205eee0b7893a13",[p.o.OKX_CONNECTOR_NAME]:"971e689d0a5be527bac79629b4ee9b925e82208e5168b733496a09c0faed0709",[p.o.BINANCE_CONNECTOR_NAME]:"2fafea35bb471d22889ccb49c08d99dd0a18a37982602c33f696a5723934ba25"},NetworkImageIds:{1:"ba0ba0cd-17c6-4806-ad93-f9d174f17900",42161:"3bff954d-5cb0-47a0-9a23-d20192e74600",43114:"30c46e53-e989-45fb-4549-be3bd4eb3b00",56:"93564157-2e8e-4ce7-81df-b264dbee9b00",250:"06b26297-fe0c-4733-5d6b-ffa5498aac00",10:"ab9c186a-c52f-464b-2906-ca59d760a400",137:"41d04d42-da3b-4453-8506-668cc0727900",5e3:"e86fae9b-b770-4eea-e520-150e12c81100",295:"6a97d510-cac8-4e58-c7ce-e8681b044c00",0xaa36a7:"e909ea0a-f92a-4512-c8fc-748044ea6800",84532:"a18a7ecd-e307-4360-4746-283182228e00",1301:"4eeea7ef-0014-4649-5d1d-07271a80f600",130:"2257980a-3463-48c6-cbac-a42d2a956e00",10143:"0a728e83-bacb-46db-7844-948f05434900",100:"02b53f6a-e3d4-479e-1cb4-21178987d100",9001:"f926ff41-260d-4028-635e-91913fc28e00",324:"b310f07f-4ef7-49f3-7073-2a0a39685800",314:"5a73b3dd-af74-424e-cae0-0de859ee9400",4689:"34e68754-e536-40da-c153-6ef2e7188a00",1088:"3897a66d-40b9-4833-162f-a2c90531c900",1284:"161038da-44ae-4ec7-1208-0ea569454b00",1285:"f1d73bb6-5450-4e18-38f7-fb6484264a00",7777777:"845c60df-d429-4991-e687-91ae45791600",42220:"ab781bbc-ccc6-418d-d32d-789b15da1f00",8453:"7289c336-3981-4081-c5f4-efc26ac64a00",0x4e454152:"3ff73439-a619-4894-9262-4470c773a100",2020:"b8101fc0-9c19-4b6f-ec65-f6dfff106e00",2021:"b8101fc0-9c19-4b6f-ec65-f6dfff106e00",80094:"e329c2c9-59b0-4a02-83e4-212ff3779900",2741:"fc2427d1-5af9-4a9c-8da5-6f94627cd900","5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp":"a1b58899-f671-4276-6a5e-56ca5bd59700","4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z":"a1b58899-f671-4276-6a5e-56ca5bd59700",EtWTRABZaYq6iMfeYKouRu166VU2xqa1:"a1b58899-f671-4276-6a5e-56ca5bd59700","000000000019d6689c085ae165831e93":"0b4838db-0161-4ffe-022d-532bf03dba00","000000000933ea01ad0ee984209779ba":"39354064-d79b-420b-065d-f980c4b78200","00000008819873e925422c1ff0f99f7c":"b3406e4a-bbfc-44fb-e3a6-89673c78b700","-239":"20f673c0-095e-49b2-07cf-eb5049dcf600","-3":"20f673c0-095e-49b2-07cf-eb5049dcf600","0x2b6653dc":"3502bb86-cc4e-420f-a387-59ea63a28b00","0x94a9059e":"3502bb86-cc4e-420f-a387-59ea63a28b00","0xcd8690dc":"3502bb86-cc4e-420f-a387-59ea63a28b00"},ConnectorImageIds:{[d.o.CONNECTOR_ID.COINBASE]:"0c2840c3-5b04-4c44-9661-fbd4b49e1800",[d.o.CONNECTOR_ID.COINBASE_SDK]:"0c2840c3-5b04-4c44-9661-fbd4b49e1800",[d.o.CONNECTOR_ID.BASE_ACCOUNT]:"bba2c8be-7fd1-463e-42b1-796ecb0ad200",[d.o.CONNECTOR_ID.SAFE]:"461db637-8616-43ce-035a-d89b8a1d5800",[d.o.CONNECTOR_ID.LEDGER]:"54a1aa77-d202-4f8d-0fb2-5d2bb6db0300",[d.o.CONNECTOR_ID.WALLET_CONNECT]:"ef1a1fcf-7fe8-4d69-bd6d-fda1345b4400",[d.o.CONNECTOR_ID.INJECTED]:"07ba87ed-43aa-4adf-4540-9e6a2b9cae00"},ConnectorNamesMap:{[d.o.CONNECTOR_ID.INJECTED]:"Browser Wallet",[d.o.CONNECTOR_ID.WALLET_CONNECT]:"WalletConnect",[d.o.CONNECTOR_ID.COINBASE]:"Coinbase",[d.o.CONNECTOR_ID.COINBASE_SDK]:"Coinbase",[d.o.CONNECTOR_ID.BASE_ACCOUNT]:"Base Account",[d.o.CONNECTOR_ID.LEDGER]:"Ledger",[d.o.CONNECTOR_ID.SAFE]:"Safe"},ConnectorTypesMap:{[d.o.CONNECTOR_ID.INJECTED]:"INJECTED",[d.o.CONNECTOR_ID.WALLET_CONNECT]:"WALLET_CONNECT",[d.o.CONNECTOR_ID.EIP6963]:"ANNOUNCED",[d.o.CONNECTOR_ID.AUTH]:"AUTH",[p.o.CONNECTOR_TYPE_AUTH]:"AUTH"},WalletConnectRpcChainIds:[1,5,0xaa36a7,10,420,42161,421613,137,80001,42220,0x4e454152,0x4e454153,56,97,43114,43113,100,8453,84531,7777777,999,324,280]};function g(e,t){let i=new URL("https://rpc.walletconnect.org/v1/");return i.searchParams.set("chainId",e),i.searchParams.set("projectId",t),i.toString()}let f=["near:mainnet","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","eip155:1101","eip155:56","eip155:42161","eip155:7777777","eip155:59144","eip155:324","solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1","eip155:5000","solana:4sgjmw1sunhzsxgspuhpqldx6wiyjntz","eip155:80084","eip155:5003","eip155:100","eip155:8453","eip155:42220","eip155:1313161555","eip155:17000","eip155:1","eip155:300","eip155:1313161554","eip155:1329","eip155:84532","eip155:421614","eip155:11155111","eip155:8217","eip155:43114","solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z","eip155:999999999","eip155:11155420","eip155:80002","eip155:97","eip155:43113","eip155:137","eip155:10","eip155:1301","eip155:80094","eip155:80069","eip155:
117560048","eip155:31","eip155:2818","eip155:57054","eip155:911867","eip155:534351","eip155:1112","eip155:534352","eip155:1111","eip155:146","eip155:130","eip155:1284","eip155:30","eip155:2810","eip155:55931","bip122:000000000019d6689c085ae165831e93","bip122:000000000933ea01ad0ee984209779ba"],w={extendRpcUrlWithProjectId(e,t){let i=!1;try{i="rpc.walletconnect.org"===new URL(e).host}catch(e){i=!1}if(i){let i=new URL(e);return i.searchParams.has("projectId")||i.searchParams.set("projectId",t),i.toString()}return e},isCaipNetwork:e=>"chainNamespace"in e&&"caipNetworkId"in e,getChainNamespace(e){return this.isCaipNetwork(e)?e.chainNamespace:d.o.CHAIN.EVM},getCaipNetworkId(e){return this.isCaipNetwork(e)?e.caipNetworkId:`${d.o.CHAIN.EVM}:${e.id}`},getDefaultRpcUrl(e,t,i){let r=e.rpcUrls?.default?.http?.[0];return f.includes(t)?g(t,i):r||""},extendCaipNetwork(e,{customNetworkImageUrls:t,projectId:i,customRpcUrls:r}){let a=this.getChainNamespace(e),n=this.getCaipNetworkId(e),o=e.rpcUrls?.default?.http?.[0],s=this.getDefaultRpcUrl(e,n,i),l=e?.rpcUrls?.chainDefault?.http?.[0]||o,c=r?.[n]?.map(e=>e.url)||[],d=[...c,...s?[s]:[]],u=[...c];return l&&!u.includes(l)&&u.push(l),{...e,chainNamespace:a,caipNetworkId:n,assets:{imageId:m.NetworkImageIds[e.id],imageUrl:t?.[e.id]},rpcUrls:{...e.rpcUrls,default:{http:d},chainDefault:{http:u}}}},extendCaipNetworks:(e,{customNetworkImageUrls:t,projectId:i,customRpcUrls:r})=>e.map(e=>w.extendCaipNetwork(e,{customNetworkImageUrls:t,customRpcUrls:r,projectId:i})),getViemTransport(e,t,i){let a=[];return i?.forEach(e=>{a.push((0,r.L)(e.url,e.config))}),f.includes(e.caipNetworkId)&&a.push((0,r.L)(g(e.caipNetworkId,t),{fetchOptions:{headers:{"Content-Type":"text/plain"}}})),e?.rpcUrls?.default?.http?.forEach(e=>{a.push((0,r.L)(e))}),l(a)},extendWagmiTransports(e,t,i){if(f.includes(e.caipNetworkId)){let a=this.getDefaultRpcUrl(e,e.caipNetworkId,t);return l([i,(0,r.L)(a)])}return i},getUnsupportedNetwork:e=>({id:e.split(":")[1],caipNetworkId:e,name:d.o.UNSUPPORTED_NETWORK_NAME,chainNamespace:e.split(":")[0],nativeCurrency:{name:"",decimals:0,symbol:""},rpcUrls:{default:{http:[]}}}),getCaipNetworkFromStorage(e){let t=u.i.getActiveCaipNetworkId(),i=h.W.getAllRequestedCaipNetworks(),r=Array.from(h.W.state.chains?.keys()||[]),a=t?.split(":")[0],n=!!a&&r.includes(a),o=i?.find(e=>e.caipNetworkId===t);return n&&!o&&t?this.getUnsupportedNetwork(t):o||e||i?.[0]}}},15274:(e,t,i)=>{"use strict";i.d(t,{MZ:()=>r.M,wk:()=>a.w});var r=i(12734),a=i(81208)},15495:(e,t,i)=>{"use strict";i.d(t,{v:()=>n});var r=i(38195),a=i(37909);class n{constructor(){}static getInstance({projectId:e,chainId:t,enableLogger:i,onTimeout:o,abortController:s,getActiveCaipNetwork:l,getCaipNetworks:c}){let{metadata:d,sdkVersion:u,sdkType:h}=r.H.getSnapshot();return n.instance||(n.instance=new a.Y({projectId:e,chainId:t,enableLogger:i,onTimeout:o,abortController:s,getActiveCaipNetwork:l,getCaipNetworks:c,enableCloudAuthAccount:!!r.H.state.remoteFeatures?.emailCapture,metadata:d,sdkVersion:u,sdkType:h})),n.instance}}},17364:(e,t,i)=>{"use strict";var r=i(88633),a=i(15274),n=i(13178);let o=Symbol.for(""),s=e=>{if(e?.r===o)return e?._$litStatic$},l=e=>({_$litStatic$:e,r:o}),c=new Map,d=e=>(t,...i)=>{let r,a,n=i.length,o=[],l=[],d,u=0,h=!1;for(;u<n;){for(d=t[u];u<n&&void 0!==(r=s(a=i[u]));)d+=r+t[++u],h=!0;u!==n&&l.push(a),o.push(d),u++}if(u===n&&o.push(t[n]),h){let e=o.join("$$lit$$");void 0===(t=c.get(e))&&(o.raw=o,c.set(e,t=o)),i=l}return e(t,...i)},u=d(n.qy);d(n.JW),d(n.ej);let h=(0,r.JW)`<svg width="30" height="30" viewBox="0 0 30 30" fill="none"> 118 <g clip-path="url(#clip0_87_33)"> 119 <path d="M23.9367 2.29447e-07H6.05917C5.26333 -0.000218805 4.47526 0.156384 3.73997 0.46086C3.00469 0.765337 2.33661 1.21172 1.77391 1.7745C1.21121 2.33727 0.7649
11917 3.00542 0.460542 3.74074C0.156167 4.47607 -0.000327963 5.26417 5.16031e-07 6.06V23.9433C4.48257e-07 24.7389 0.156744 25.5267 0.461276 26.2617C0.765808 26.9967 1.21216 27.6645 1.77484 28.2269C2.33752 28.7894 3.0055 29.2355 3.74061 29.5397C4.47573 29.8439 5.26358 30.0003 6.05917 30H23.9417C25.5486 29.9996 27.0895 29.3609 28.2257 28.2245C29.3618 27.0881 30 25.5469 30 23.94V6.06C29.9993 4.45241 29.3602 2.91091 28.2232 1.77449C27.0861 0.638064 25.5443 -0.000220881 23.9367 2.29447e-07Z" fill="url(#paint0_linear_87_33)"/> 120 <path d="M14.8708 6.89259L15.4783 5.84259C15.5679 5.68703 15.6873 5.55064 15.8296 5.44122C15.9719 5.3318 16.1344 5.25148 16.3078 5.20486C16.4812 5.15824 16.662 5.14622 16.8401 5.1695C17.0181 5.19277 17.1898 5.25088 17.3453 5.34051C17.5009 5.43013 17.6373 5.54952 17.7467 5.69186C17.8561 5.83419 17.9364 5.99669 17.9831 6.17006C18.0297 6.34344 18.0417 6.5243 18.0184 6.70232C17.9952 6.88034 17.9371 7.05203 17.8474 7.20759L11.9949 17.3401H16.2283C17.5999 17.3401 18.3691 18.9526 17.7724 20.0701H5.36159C5.18215 20.0707 5.00436 20.0359 4.83845 19.9675C4.67254 19.8992 4.5218 19.7986 4.39492 19.6718C4.26803 19.5449 4.16751 19.3941 4.09915 19.2282C4.03079 19.0623 3.99593 18.8845 3.99659 18.7051C3.99659 17.9476 4.60492 17.3401 5.36159 17.3401H8.84159L13.2958 9.61926L11.9041 7.20426C11.738 6.89096 11.7 6.52543 11.7982 6.18469C11.8963 5.84395 12.1229 5.5546 12.4301 5.37763C12.7374 5.20065 13.1014 5.14987 13.4454 5.23599C13.7893 5.3221 14.0864 5.53838 14.2741 5.83926L14.8708 6.89259ZM9.60659 21.4759L8.29409 23.7526C8.20446 23.9082 8.08506 24.0446 7.94271 24.1541C7.80035 24.2636 7.63783 24.344 7.46441 24.3906C7.291 24.4373 7.11009 24.4493 6.93202 24.4261C6.75395 24.4028 6.58221 24.3447 6.42659 24.2551C6.27097 24.1655 6.13454 24.0461 6.02506 23.9037C5.91559 23.7613 5.83523 23.5988 5.78857 23.4254C5.74191 23.252 5.72986 23.0711 5.75311 22.893C5.77637 22.715 5.83446 22.5432 5.92409 22.3876L6.89909 20.7001C8.00159 20.3584 8.89742 20.6209 9.60659 21.4759ZM20.9066 17.3476H24.4583C25.2158 17.3476 25.8233 17.9551 25.8233 18.7126C25.8233 19.4701 25.2149 20.0776 24.4583 20.0776H22.4858L23.8166 22.3876C24.1916 23.0443 23.9708 23.8726 23.3149 24.2551C23.0006 24.4359 22.6274 24.4845 22.2772 24.3903C21.927 24.2961 21.6286 24.0667 21.4474 23.7526C19.2058 19.8643 17.5216 16.9534 16.4041 15.0151C15.2608 13.0426 16.0783 11.0626 16.8841 10.3909C17.7799 11.9293 19.1191 14.2501 20.9074 17.3476H20.9066Z" fill="white"/> 121 </g> 122 <defs> 123 <linearGradient id="paint0_linear_87_33" x1="15" y1="2.29447e-07" x2="15" y2="30" gradientUnits="userSpaceOnUse"> 124 <stop stop-color="#18BFFB"/> 125 <stop offset="1" stop-color="#2072F3"/> 126 </linearGradient> 127 <clipPath id="clip0_87_33"> 128 <rect width="30" height="30" fill="white"/> 129 </clipPath> 130 </defs> 131</svg>`,p=(0,r.JW)`<svg fill="none" viewBox="0 0 40 40"> 132 <g clip-path="url(#a)"> 133 <g clip-path="url(#b)"> 134 <circle cx="20" cy="19.89" r="20" fill="#000" /> 135 <g clip-path="url(#c)"> 136 <path 137 fill="#fff" 138 d="M28.77 23.3c-.69 1.99-2.75 5.52-4.87 5.56-1.4.03-1.86-.84-3.46-.84-1.61 0-2.12.81-3.45.86-2.25.1-5.72-5.1-5.72-9.62 0-4.15 2.9-6.2 5.42-6.25 1.36-.02 2.64.92 3.47.92.83 0 2.38-1.13 4.02-.97.68.03 2.6.28 3.84 2.08-3.27 2.14-2.76 6.61.75 8.25ZM24.2 7.88c-2.47.1-4.49 2.69-4.2 4.84 2.28.17 4.47-2.39 4.2-4.84Z" 139 /> 140 </g> 141 </g> 142 </g> 143 <defs> 144 <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath> 145 <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath> 146 <clipPath id="c"><path fill="#fff" d="M8 7.89h24v24H8z" /></clipPath> 147 </defs> 148</svg>`,m=(0,r.JW)` 149 <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 8 11"> 150 <path 151 fill="var(--apkt-tokens-theme-textPrimary)" 152 d="M7.862 4.86c.159-1.064-.652-1.637-1.76-2.018l.36-1.443-.879-.218-.35 1.404c-.23-.058-.468-.112-.703-.166l.352-1.413-.877-.219-.36 1.442a29.02 29.02 0 0 1-.56-.132v-.005l-1.21-.302-.234.938s.652.15.638.158c.356.089.42.324.41.51l-.41 1.644a.715.715 0 0 1 .09.03l-.092-.024-.574 2.302c-.044.108-.154.27-.402.208.008.013-.639-.16-.639-.16L.227 8.403l1.142.285c.213.053.42.109.626.161l-.363 1.459.877.218.36-1.443c.239.065.472.125.7.
152182l-.36 1.436.879.219.363-1.456c1.497.283 2.623.17 3.097-1.185.381-1.09-.02-1.719-.807-2.129.574-.132 1.006-.51 1.12-1.289ZM5.856 7.673c-.272 1.09-2.107.5-2.702.353l.482-1.933c.595.149 2.503.443 2.22 1.58Zm.271-2.829c-.247.992-1.775.488-2.27.365l.436-1.753c.496.124 2.092.354 1.834 1.388Z" 153 /> 154 </svg> 155`,g=(0,r.JW)`<svg viewBox="0 0 32 32" fill="none"> 156<path d="M29.0612 10.0613L13.0612 26.0613C12.9218 26.2011 12.7563 26.3121 12.5739 26.3878C12.3916 26.4635 12.1961 26.5024 11.9987 26.5024C11.8013 26.5024 11.6058 26.4635 11.4235 26.3878C11.2411 26.3121 11.0756 26.2011 10.9362 26.0613L3.9362 19.0613C3.79667 18.9217 3.68599 18.7561 3.61047 18.5738C3.53496 18.3915 3.49609 18.1961 3.49609 17.9988C3.49609 17.8014 3.53496 17.606 3.61047 17.4237C3.68599 17.2414 3.79667 17.0758 3.9362 16.9363C4.07573 16.7967 4.24137 16.686 4.42367 16.6105C4.60598 16.535 4.80137 16.4962 4.9987 16.4962C5.19602 16.4962 5.39141 16.535 5.57372 16.6105C5.75602 16.686 5.92167 16.7967 6.0612 16.9363L11.9999 22.875L26.9387 7.93876C27.2205 7.65697 27.6027 7.49866 28.0012 7.49866C28.3997 7.49866 28.7819 7.65697 29.0637 7.93876C29.3455 8.22055 29.5038 8.60274 29.5038 9.00126C29.5038 9.39977 29.3455 9.78197 29.0637 10.0638L29.0612 10.0613Z" fill="currentColor"/> 157</svg> 158`,f=(0,r.JW)`<svg width="30" height="30" viewBox="0 0 30 30" fill="none"> 159<path d="M14.9978 7.80003H27.4668C26.2032 5.61107 24.3857 3.79333 22.1968 2.52955C20.008 1.26577 17.525 0.600485 14.9975 0.600586C12.47 0.600687 9.98712 1.26617 7.79838 2.53012C5.60964 3.79408 3.79221 5.61197 2.52881 7.80103L8.76281 18.599L8.76881 18.598C8.13412 17.5044 7.79906 16.2628 7.79743 14.9983C7.79579 13.7339 8.12764 12.4914 8.7595 11.3961C9.39136 10.3008 10.3009 9.39159 11.3963 8.76005C12.4918 8.12851 13.7344 7.79702 14.9988 7.79903L14.9978 7.80003Z" fill="url(#paint0_linear_87_32)"/> 160<path d="M21.237 18.5981L15.003 29.3961C17.5305 29.3961 20.0134 28.7308 22.2022 27.467C24.391 26.2032 26.2086 24.3854 27.4721 22.1965C28.7356 20.0075 29.4006 17.5245 29.4003 14.997C29.3999 12.4695 28.7342 9.9867 27.47 7.7981H15.002L15 7.8041C16.2642 7.80168 17.5067 8.13257 18.6022 8.76342C19.6977 9.39428 20.6076 10.3028 21.2401 11.3974C21.8726 12.492 22.2053 13.734 22.2048 14.9982C22.2042 16.2623 21.8704 17.504 21.237 18.5981Z" fill="url(#paint1_linear_87_32)"/> 161<path d="M8.76502 18.601L2.53102 7.80298C1.26664 9.99172 0.600848 12.4748 0.600586 15.0025C0.600324 17.5302 1.2656 20.0134 2.52953 22.2024C3.79345 24.3914 5.61145 26.209 7.80071 27.4725C9.98998 28.736 12.4733 29.4008 15.001 29.4L21.236 18.602L21.232 18.598C20.6022 19.6941 19.6944 20.6049 18.6003 21.2383C17.5062 21.8717 16.2644 22.2055 15.0002 22.2059C13.7359 22.2063 12.4939 21.8733 11.3994 21.2406C10.3049 20.6079 9.39657 19.6977 8.76602 18.602L8.76502 18.601Z" fill="url(#paint2_linear_87_32)"/> 162<path d="M14.9998 22.2C16.9094 22.2 18.7407 21.4415 20.091 20.0912C21.4412 18.741 22.1998 16.9096 22.1998 15C22.1998 13.0905 21.4412 11.2591 20.091 9.90888C18.7407 8.55862 16.9094 7.80005 14.9998 7.80005C13.0902 7.80005 11.2589 8.55862 9.90864 9.90888C8.55837 11.2591 7.7998 13.0905 7.7998 15C7.7998 16.9096 8.55837 18.741 9.90864 20.0912C11.2589 21.4415 13.0902 22.2 14.9998 22.2Z" fill="white"/> 163<path d="M14.9998 20.7C16.5115 20.7 17.9614 20.0995 19.0303 19.0306C20.0993 17.9616 20.6998 16.5118 20.6998 15C20.6998 13.4883 20.0993 12.0385 19.0303 10.9695C17.9614 9.90058 16.5115 9.30005 14.9998 9.30005C13.4881 9.30005 12.0383 9.90058 10.9693 10.9695C9.90034 12.0385 9.2998 13.4883 9.2998 15C9.2998 16.5118 9.90034 17.9616 10.9693 19.0306C12.0383 20.0995 13.4881 20.7 14.9998 20.7Z" fill="#1A73E8"/> 164<defs> 165 <linearGradient id="paint0_linear_87_32" x1="3.29381" y1="2.99503" x2="38.0998" y2="2.99503" gradientUnits="userSpaceOnUse"> 166 <stop stop-color="#D93025"/> 167 <stop offset="1" stop-color="#EA4335"/> 168 </linearGradient> 169 <linearGradient id="paint1_linear_87_32" x1="17.953" y1="29.1431" x2="34.194" y2="-0.298904" gradientUnits="userSpaceOnUse"> 170 <stop stop-color="#FCC934"/> 171 <stop offset="1" stop-color="#FBBC04"/> 172 </linearGradient> 173 <linearGradient id="paint2_linear_87_32" x1="22.873" y1="28.2" x2="6.63202" y2="-1.24102" gradientUnits="userSpaceOnUse"> 174 <stop stop-color="#1E8E3E"/> 175 <stop offset="1" stop-color="#34A853"/> 176 </linearGradient> 177</defs> 178</svg>`,w=(0,r.JW)`<svg width="32" height="32" viewBox="0 0 32 32" fill="none"> 179<path d="M23 11.1962V10.5C23 7.365 18.2712 5 12 5C5.72875 5 1 7.365 1 10.5V15.5C1 18.1112 4.28125 20.1863 9 20.8075V21.5C9 24.635 13.7288 27 20 27C26.2712 27 31 24.635 31 21.5V16.5C31 13.9125 27.8225 11.835 23 11.1962ZM7 18.3587C4.55125 17.675 3 16.5487 3 15.5V13.7413C4.02 14.4637 5.38625 15.0463 7 15.4375V18.3587ZM17 15.4375C18.6138 15.0463 19.98 14.4637 21 13.7413V15.5C21 16.5487 19.4487 17.675 17 18.3587V15.4375ZM15 24.3587C12.5513 23.675 11 22.5487 11 21.5V20.9788C11.3287 20.9913 11.6613 21 12 21C12.485 21 12.9587 20.9837 13.4237 20.9562C13.9403 21.1412 14.4665 21.2981 15 21.4263V24.3587ZM15 18.7812C14.0068 18.928 13.004 19.0011 12 19C10.996 19.0011 9.99324 18.928 9 18.7812V15.8075C9.99472 15.9371 10.9969 16.0014 12 16C13.0031 16.0014 14.0053 15.9371 15 15.8075V18.7812ZM23 24.7812C21.0106 25.0729 18.9894 25.0729 17 24.7812V21.8C17.9944 21.9337 18.9967 22.0005 20 22C21.0031 22.0014 22.0053 21.9371 23 21.8075V24.7812ZM29 21.5C29 22.5487 27.4487 23.675 25 24.3587V21.4375C26.6138 21.0462 27.98 20.4637 29 19.7412V21.5Z" fill="currentColor"/> 180</svg> 181`,y=(0,r.JW)` <svg fill="none" viewBox="0 0 13 4">
182 <path fill="currentColor" d="M.5 0h12L8.9 3.13a3.76 3.76 0 0 1-4.8 0L.5 0Z" /> 183</svg>`,b=(0,r.JW)`<svg fill="none" viewBox="0 0 40 40"> 184 <g clip-path="url(#a)"> 185 <g clip-path="url(#b)"> 186 <circle cx="20" cy="19.89" r="20" fill="#5865F2" /> 187 <path 188 fill="#fff" 189 fill-rule="evenodd" 190 d="M25.71 28.15C30.25 28 32 25.02 32 25.02c0-6.61-2.96-11.98-2.96-11.98-2.96-2.22-5.77-2.15-5.77-2.15l-.29.32c3.5 1.07 5.12 2.61 5.12 2.61a16.75 16.75 0 0 0-10.34-1.93l-.35.04a15.43 15.43 0 0 0-5.88 1.9s1.71-1.63 5.4-2.7l-.2-.24s-2.81-.07-5.77 2.15c0 0-2.96 5.37-2.96 11.98 0 0 1.73 2.98 6.27 3.13l1.37-1.7c-2.6-.79-3.6-2.43-3.6-2.43l.58.35.09.06.08.04.02.01.08.05a17.25 17.25 0 0 0 4.52 1.58 14.4 14.4 0 0 0 8.3-.86c.72-.27 1.52-.66 2.37-1.21 0 0-1.03 1.68-3.72 2.44.61.78 1.35 1.67 1.35 1.67Zm-9.55-9.6c-1.17 0-2.1 1.03-2.1 2.28 0 1.25.95 2.28 2.1 2.28 1.17 0 2.1-1.03 2.1-2.28.01-1.25-.93-2.28-2.1-2.28Zm7.5 0c-1.17 0-2.1 1.03-2.1 2.28 0 1.25.95 2.28 2.1 2.28 1.17 0 2.1-1.03 2.1-2.28 0-1.25-.93-2.28-2.1-2.28Z" 191 clip-rule="evenodd" 192 /> 193 </g> 194 </g> 195 <defs> 196 <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath> 197 <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath> 198 </defs> 199</svg>`,v=(0,r.JW)`<svg 200 xmlns="http://www.w3.org/2000/svg" 201 fill="none" 202 viewBox="0 0 9 12" 203> 204 <path 205 fill="var(--apkt-tokens-theme-textPrimary)" 206 d="M4.666.001v4.435l3.748 1.675L4.666.001Zm0 0L.917 6.111l3.749-1.675V.001Zm0 8.984V12l3.75-5.19-3.75 2.176Zm0 3.014V8.985L.917 6.81 4.666 12Zm0-3.712 3.748-2.176-3.748-1.675v3.851Z" 207 /> 208 <path fill="var(--apkt-tokens-theme-textPrimary)" d="m.917 6.111 3.749 2.176v-3.85L.917 6.11Z" /> 209</svg>`,C=(0,r.JW)`<svg fill="none" viewBox="0 0 16 16"> 210 <path 211 fill="currentColor" 212 d="M4.25 7a.63.63 0 0 0-.63.63v3.97c0 .28-.2.51-.47.54l-.75.07a.93.93 0 0 1-.9-.47A7.51 7.51 0 0 1 5.54.92a7.5 7.5 0 0 1 9.54 4.62c.12.35.06.72-.16 1-.74.97-1.68 1.78-2.6 2.44V4.44a.64.64 0 0 0-.63-.64h-1.06c-.35 0-.63.3-.63.64v5.5c0 .23-.12.42-.32.5l-.52.23V6.05c0-.36-.3-.64-.64-.64H7.45c-.35 0-.64.3-.64.64v4.97c0 .25-.17.46-.4.52a5.8 5.8 0 0 0-.45.11v-4c0-.36-.3-.65-.64-.65H4.25ZM14.07 12.4A7.49 7.49 0 0 1 3.6 14.08c4.09-.58 9.14-2.5 11.87-6.6v.03a7.56 7.56 0 0 1-1.41 4.91Z" 213 /> 214</svg>`,x=(0,r.JW)`<svg fill="none" viewBox="0 0 40 40"> 215 <g clip-path="url(#a)"> 216 <g clip-path="url(#b)"> 217 <circle cx="20" cy="19.89" r="20" fill="#1877F2" /> 218 <g clip-path="url(#c)"> 219 <path 220 fill="#fff" 221 d="M26 12.38h-2.89c-.92 0-1.61.38-1.61 1.34v1.66H26l-.36 4.5H2
2211.5v12H17v-12h-3v-4.5h3V12.5c0-3.03 1.6-4.62 5.2-4.62H26v4.5Z" 222 /> 223 </g> 224 </g> 225 <path 226 fill="#1877F2" 227 d="M40 20a20 20 0 1 0-23.13 19.76V25.78H11.8V20h5.07v-4.4c0-5.02 3-7.79 7.56-7.79 2.19 0 4.48.4 4.48.4v4.91h-2.53c-2.48 0-3.25 1.55-3.25 3.13V20h5.54l-.88 5.78h-4.66v13.98A20 20 0 0 0 40 20Z" 228 /> 229 <path 230 fill="#fff" 231 d="m27.79 25.78.88-5.78h-5.55v-3.75c0-1.58.78-3.13 3.26-3.13h2.53V8.2s-2.3-.39-4.48-.39c-4.57 0-7.55 2.77-7.55 7.78V20H11.8v5.78h5.07v13.98a20.15 20.15 0 0 0 6.25 0V25.78h4.67Z" 232 /> 233 </g> 234 <defs> 235 <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath> 236 <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath> 237 <clipPath id="c"><path fill="#fff" d="M8 7.89h24v24H8z" /></clipPath> 238 </defs> 239</svg>`,E=(0,r.JW)`<svg style="border-radius: 9999px; overflow: hidden;" fill="none" viewBox="0 0 1000 1000"> 240 <rect width="1000" height="1000" rx="9999" ry="9999" fill="#855DCD"/> 241 <path fill="#855DCD" d="M0 0h1000v1000H0V0Z" /> 242 <path 243 fill="#fff" 244 d="M320 248h354v504h-51.96V521.13h-.5c-5.76-63.8-59.31-113.81-124.54-113.81s-118.78 50-124.53 113.81h-.5V752H320V248Z" 245 /> 246 <path 247 fill="#fff" 248 d="m225 320 21.16 71.46h17.9v289.09a16.29 16.29 0 0 0-16.28 16.24v19.49h-3.25a16.3 16.3 0 0 0-16.28 16.24V752h182.26v-19.48a16.22 16.22 0 0 0-16.28-16.24h-3.25v-19.5a16.22 16.22 0 0 0-16.28-16.23h-19.52V320H225Zm400.3 360.55a16.3 16.3 0 0 0-15.04 10.02 16.2 16.2 0 0 0-1.24 6.22v19.49h-3.25a16.29 16.29 0 0 0-16.27 16.24V752h182.24v-19.48a16.23 16.23 0 0 0-16.27-16.24h-3.25v-19.5a16.2 16.2 0 0 0-10.04-15 16.3 16.3 0 0 0-6.23-1.23v-289.1h17.9L775 320H644.82v360.55H625.3Z" 249 /> 250</svg>`,k=(0,r.JW)`<svg fill="none" viewBox="0 0 40 40"> 251 <g clip-path="url(#a)"> 252 <g clip-path="url(#b)"> 253 <circle cx="20" cy="19.89" r="20" fill="#1B1F23" /> 254 <g clip-path="url(#c)"> 255 <path 256 fill="#fff" 257 d="M8 19.89a12 12 0 1 1 15.8 11.38c-.6.12-.8-.26-.8-.57v-3.3c0-1.12-.4-1.85-.82-2.22 2.67-.3 5.48-1.31 5.48-5.92 0-1.31-.47-2.38-1.24-3.22.13-.3.54-1.52-.12-3.18 0 0-1-.32-3.3 1.23a11.54 11.54 0 0 0-6 0c-2.3-1.55-3.3-1.23-3.3-1.23a4.32 4.32 0 0 0-.12 3.18 4.64 4.64 0 0 0-1.24 3.22c0 4.6 2.8 5.63 5.47 5.93-.34.3-.65.83-.76 1.6-.69.31-2.42.84-3.5-1 0 0-.63-1.15-1.83-1.23 0 0-1.18-.02-.09.73 0 0 .8.37 1.34 1.76 0 0 .7 2.14 4.03 1.41v2.24c0 .31-.2.68-.8.57A12 12 0 0 1 8 19.9Z" 258 /> 259 </g> 260 </g> 261 </g> 262 <defs> 263 <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath> 264 <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath> 265 <clipPath id="c"><path fill="#fff" d="M8 7.89h24v24H8z" /></clipPath> 266 </defs> 267</svg>`,A=(0,r.JW)`<svg fill="none" viewBox="0 0 40 40"> 268 <path 269 fill="#4285F4" 270 d="M32.74 20.3c0-.93-.08-1.81-.24-2.66H20.26v5.03h7a6 6 0 0 1-2.62 3.91v3.28h4.22c2.46-2.27 3.88-5.6 3.88-9.56Z" 271 /> 272 <path 273 fill="#34A853" 274 d="M20.26 33a12.4 12.4 0 0 0 8.6-3.14l-4.22-3.28a7.74 7.74 0 0 1-4.38 1.26 7.76 7.76 0 0 1-7.28-5.36H8.65v3.36A12.99 12.99 0 0 0 20.26 33Z" 275 /> 276 <path 277 fill="#FBBC05" 278 d="M12.98 22.47a7.79 7.79 0 0 1 0-4.94v-3.36H8.65a12.84 12.84 0 0 0 0 11.66l3.37-2.63.96-.73Z" 279 /> 280 <path 281 fill="#EA4335" 282 d="M20.26 12.18a7.1 7.1 0 0 1 4.98 1.93l3.72-3.72A12.47 12.47 0 0 0 20.26 7c-5.08 0-9.47 2.92-11.6 7.17l4.32 3.36a7.76 7.76 0 0 1 7.28-5.35Z" 283 /> 284</svg>`,$=(0,r.JW)`<svg width="10" height="10" viewBox="0 0 10 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"> 285<path d="M4.875 0C3.91082 0 2.96829 0.285914 2.1666 0.821586C1.36491 1.35726 0.740067 2.11863 0.371089 3.00942C0.00211226 3.90021 -0.094429 4.88041 0.093674 5.82607C0.281777 6.77172 0.746076 7.64036 1.42786 8.32215C2.10964 9.00393 2.97828 9.46823 3.92394 9.65633C4.86959 9.84443 5.84979 9.74789 6.74058 9.37891C7.63137 9.00994 8.39274 8.38509 8.92842 7.5834C9.46409 6.78171 9.75 5.83918 9.75 4.875C9.74864 3.58249 9.23458 2.34331 8.32064 1.42936C7.4067 0.515418 6.16751 0.00136492 4.875 0ZM4.6875 2.25C4.79875 2.25 4.90751 2.28299 5.00001 2.3448C5.09251 2.40661 5.16461 2.49446 5.20718 2.59724C5.24976 2.70002 5.2609 2.81312 5.23919 2.92224C5.21749 3.03135 5.16392 3.13158 5.08525 3.21025C5.00658 3.28891 4.90635 3.34249 4.79724 3.36419C4.68813 3.3859 4.57503 3.37476 4.47224 3.33218C4.36946 3.28961 4.28161 3.21751 4.2198 3.12501C4.15799 3.03251 4.125 2.92375 4.125 2.8125C4.125 2.66332 4.18427 2.52024 4.28975 2.41475C4.39524 2.30926 4.53832 2.25 4.6875 2.25ZM5.25 7.5C5.05109 7.5 4.86032 7.42098 4.71967 7.28033C4.57902 7.13968 4.5 6.94891 4.5 6.75V4.875C4.40055 4.875 4.30516 4.83549 4.23484 4.76516C4.16451 4.69484 4.125 4.59946 4.125 4.5C4.125 4.40054 4.16451 4.30516 4.23484 4.23484C4.30516 4.16451 4.40055 4.125 4.5 4.125C4.69891 4.125 4.88968 4.20402 5.03033 4.34467C5.17098 4.48532 5.25 4.67609 5.25 4.875V6.75C5.34946 6.75 5.44484 6.78951 5.51517 6.85983C5.58549 6.93016 5.625 7.02554 5.625 7.125C5.625 7.22446 5.58549 7.31984 5.51517 7.39017C5.44484 7.46049 5.34946 7.5 5.25 7.5Z" fill="#9A9A9A"/> 286</svg> 287`,_=(0,r.JW)`<svg width="32" height="32" viewBox="0 0 32 32" fill="none"> 288<path d="M28.925 5.5425C28.925 5.5425 28.925 5.555 28.925 5.56125L21.65 29.5537C21.5399 29.9434 21.3132 30.2901 21.0004 30.5473C20.6876 30.8045 20.3036 3
2880.9598 19.9 30.9925C19.8425 30.9975 19.785 31 19.7275 31C19.3493 31.0012 18.9786 30.8941 18.6592 30.6915C18.3398 30.4888 18.085 30.199 17.925 29.8563L13.375 20.5187C13.3295 20.4252 13.3143 20.3197 13.3315 20.2171C13.3488 20.1145 13.3976 20.0198 13.4713 19.9463L20.7113 12.7063C20.8909 12.5172 20.9895 12.2654 20.9862 12.0047C20.9829 11.7439 20.8778 11.4948 20.6934 11.3104C20.509 11.126 20.2599 11.0209 19.9991 11.0176C19.7383 11.0142 19.4866 11.1129 19.2975 11.2925L12.0538 18.5325C11.9802 18.6061 11.8855 18.655 11.7829 18.6722C11.6803 18.6895 11.5748 18.6743 11.4813 18.6287L2.13502 14.08C1.76954 13.9047 1.46598 13.6224 1.26454 13.2706C1.06311 12.9189 0.973316 12.5142 1.00707 12.1102C1.04082 11.7063 1.19652 11.3221 1.45354 11.0087C1.71056 10.6952 2.05676 10.4673 2.44627 10.355L26.4388 3.08H26.4575C26.7991 2.98403 27.1601 2.98066 27.5034 3.07025C27.8468 3.15984 28.1601 3.33916 28.4113 3.58981C28.6624 3.84045 28.8424 4.15341 28.9326 4.49656C29.0229 4.83971 29.0203 5.2007 28.925 5.5425Z" fill="currentColor"/> 289</svg> 290`,N=(0,r.JW)` <svg width="27" height="30" viewBox="0 0 27 30" fill="none"> 291 <path d="M12.5395 14.3237L0.116699 27.5049V27.5188C0.251527 28.0177 0.49972 28.4788 0.841941 28.866C1.18416 29.2533 1.61117 29.5563 2.0897 29.7515C2.56823 29.9467 3.08536 30.0287 3.60081 29.9913C4.11625 29.9538 4.61609 29.7979 5.06139 29.5356L5.0975 29.512L19.0718 21.4519L12.5395 14.3237Z" fill="#EA4335"/> 292 <path d="M25.103 12.0833L25.0919 12.0722L19.0611 8.57202L12.2607 14.6279L19.0847 21.4504L25.0919 17.9864C25.6229 17.6983 26.0665 17.2725 26.376 16.7537C26.6854 16.2349 26.8493 15.6422 26.8505 15.0381C26.8516 14.434 26.6899 13.8408 26.3824 13.3208C26.0749 12.8008 25.633 12.3734 25.103 12.0833Z" fill="#FBBC04"/> 293 <path d="M0.116672 2.49553C0.047224 2.7761 0 3.05528 0 3.35946V26.6537C0 26.9565 0.0347234 27.237 0.116672 27.5162L12.959 14.6725L0.116672 2.49553Z" fill="#4285F4"/> 294 <path d="M12.634 15.0001L19.0607 8.57198L5.0975 0.477133C4.65115 0.210463 4.14916 0.0506574 3.63079 0.0102139C3.11242 -0.0302296 2.59172 0.0497852 2.10941 0.244001C1.6271 0.438216 1.19625 0.741368 0.850556 1.12975C0.504864 1.51813 0.253698 1.98121 0.116699 2.48279L12.634 15.0001Z" fill="#34A853"/> 295</svg>`,S=(0,r.JW)`<svg width="75" height="20" viewBox="0 0 75 20" fill="none" xmlns="http://www.w3.org/2000/svg"> 296<path d="M11.6666 5.83334C11.6666 2.61168 14.2783 0 17.5 0H25.8334C29.055 0 31.6666 2.61168 31.6666 5.83334V14.1666C31.6666 17.3883 29.055 20 25.8334 20H17.5C14.2783 20 11.6666 17.3883 11.6666 14.1666V5.83334Z" fill="var(--apkt-tokens-theme-foregroundTertiary)"/> 297<path d="M19.5068 13.7499L22.4309 5.83331H23.2895L20.3654 13.7499H19.5068Z" fill="var(--apkt-tokens-theme-textPrimary)"/> 298<path d="M0 5.41666C0 2.42513 2.42513 0 5.41666 0C8.40821 0 10.8334 2.42513 10.8334 5.41666V14.5833C10.8334 17.5748 8.40821 20 5.41666 20C2.42513 20 0 17.5748 0 14.5833V5.41666Z" fill="var(--apkt-tokens-theme-foregroundTertiary)"/> 299<path d="M4.89581 12.4997V11.458H5.93747V12.4997H4.89581Z" fill="var(--apkt-tokens-theme-textPrimary)"/> 300<path d="M32.5 10C32.5 4.47715 36.6896 0 41.8578 0H65.6422C70.8104 0 75 4.47715 75 10C75 15.5229 70.8104 20 65.6422 20H41.8578C36.6896 20 32.5 15.5229 32.5 10Z" fill="var(--apkt-tokens-theme-foregroundTertiary)"/> 301<path d="M61.7108 12.4475V7.82751H62.5266V8.52418C62.8199 8.01084 63.4157 7.70834 64.0757 7.70834C65.0749 7.70834 65.7715 8.34084 65.7715 9.56918V12.4475H64.9649V9.61503C64.9649 8.80831 64.5066 8.38668 63.8374 8.38668C63.1132 8.38668 62.5266 8.9642 62.5266 9.78001V12.4475H61.7108Z" fill="var(--apkt-tokens-theme-textPrimary)"/> 302<path d="M56.5671 12.4475L55.7147 7.82748H56.4846L57.0896 11.6409L57.8871 9.12916H58.6479L59.4363 11.6134L60.0505 7.82748H60.8204L59.9679 12.4475H59.0513L58.2721 10.0458L57.4838 12.4475H56.5671Z" fill="var(--apkt-tokens-theme-textPrimary)"/> 303<path d="M52.9636 12.5666C51.5611 12.5666 50.7361 11.5217 50.7361 10.1375C50.7361 8.76254 51.5611 7.70834 52.9636 7.70834C54.3661 7.70834 55.1911 8.76254 55.1911 10.1375C55.1911 11.5217 54.3661 12.5666 52.9636 12.5666ZM52.9636 11.8883C53.9719 11.8883 54.357 11.0266 54.357 10.1283C54.357 9.23914 53.9719 8.38668 52.9636 8.38668C51.9552 8.38668 51.5702 9.23914 51.5702 10.1283C51.5702 11.0266 51.9552 11.8883 52.9636 11.8883Z" fill="var(--apkt-tokens-theme-textPrimary)"/> 304<path d="M47.8507 12.5666C46.494 12.5666 45.6415 11.5308 45.6415 10.1375C45.6415 8.75337 46.494 7.70834 47.8507 7.70834C48.9965 7.70834 50.0048 8.35917 49.8948 10.3483H46.4756C46.5398 11.2009 46.934 11.8975 47.8507 11.8975C48.4648 11.8975 48.8681 11.5217 49.0057 11.0908H49.8123C49.684 11.8609 48.9598 12.5666 47.8507 12.5666ZM46.494 9.73416H49.1065C49.0423 8.80831 48.6114 8.37751 47.8507 8.37751C47.0165 8.37751 46.604 8.98254 46.494 9.73416Z" fill="var(--apkt-tokens-theme-textPrimary)"/> 305<path d="M41.7284 12.4475V7.82748H42.5625V8.60665C42.8559 8.09332 43.3601 7.82748 43.8825 7.82748H44.9917V8.60665H43.8184C43.0851 8.60665 42.5625 9.08331 42.5625 10.0092V12.4475H41.7284Z" fill="var(--apkt-tokens-theme-textPrimary)"/> 306</svg> 307 308`,T=(0,r.JW)` 309 <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 10 8"> 310 <path 311 fill="var(--apkt-tokens-theme-textPrimary)" 312 d="m9.524 6.307-1.51 1.584A.35.35 0 0 1 7.76 8H.604a.178.178 0 0 1-.161-.103.168.168 0 0 1 .033-.186l1.51-1.583a.35.35 0 0 1 .256-.11h7.154c.034 0 .068.01.096.029a.168.168 0 0 1 .032.26Zm-1.51-3.189a.35.35 0 0 0-.255-.109H.604a.178.178 0 0 0-.161.103.168.168 0 0 0 .033.186l1.51 1.583a.35.35 0 0 0 .256.11h7.154a.178.178 0 0 0 .16-.104.168.168 0 0 0-.032-.185l-1.51-1.584ZM.605 1.981H7.76a.357.357 0 0 0 .256-.11L9.525.289a.17.17 0 0 0 .032-.185.173.173 0 0 0-.16-.103H2.241a.357.357 0 0 0-.256.109L.476 1.692a.17.17 0 0 0-.033.185.178.178 0 0 0 .16.103Z" 313 /> 314 </svg> 315`,R=(0,r.JW)`<svg width="32" height="32" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"> 316 <g clip-path="url(#a)"> 317 <path fill="url(#b)" d="M0 0h32v32H0z"/> 318 <path fill-rule="evenodd" clip-rule="evenodd" d="M7.034 15.252c4.975-2.167 8.293-3.596 9.953-4.287 4.74-1.971 5.725-2.314 6.366-2.325.142-.002.457.033.662.198.172.14.22.33.243.463.022.132.05.435.028.671-.257 2.7-1.368 9.248-1.933 12.27-.24 1.28-.71 1.708-1.167 1.75-.99.091-1.743-.655-2.703-1.284-1.502-.985-2.351-1.598-3.81-2.558-1.684-1.11-.592-1.721.368-2.718.252-.261 4.619-4.233 4.703-4.594.01-.045.02-.213-.08-.301-.1-.09-.246-.059-.353-.035-.15.034-2.55 1.62-7.198 4.758-.682.468-1.298.696-1.851.684-.61-.013-1.782-.344-2.653-.628-1.069-.347-1.918-.53-1.845-1.12.039-.308.462-.623 1.27-.944Z" fill="#fff"/> 319 </g> 320 <path d="M.5 16C.5 7.44 7.44.5 16 .5 24.56.5 31.5 7.44 31.5 16c0 8.56-6.94 15.5-15.5 15.5C7.44 31.5.5 24.56.5 16Z" stroke="#141414" stroke-opacity=".05"/> 321 <defs> 322 <linearGradient id="b" x1="1600" y1="0" x2="1600" y2="3176.27" gradientUnits="userSpaceOnUse"> 323 <stop stop-color="#2AABEE"/> 324 <stop offset="1" stop-color="#229ED9"/> 325 </linearGradient> 326 <clipPath id="a"> 327 <path d="M0 16C0 7.163 7.163 0 16 0s16 7.163 16 16-7.163 16-16 16S0 24.837 0 16Z" fill="#fff"/> 328 </clipPath> 329 </defs> 330</svg>`;var I=i(79808);let P=(0,r.JW)` 331 <svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewB
331ox="0 0 64 64"> 332 <path fill="var(--apkt-tokens-theme-textPrimary)" d="M61.55 19.28c-3-2.77-7.15-7-10.53-10l-.2-.14a3.82 3.82 0 0 0-1.11-.62l0 0C41.56 7 3.63-.09 2.89 0a1.4 1.4 0 0 0-.58.22L2.12.37a2.23 2.23 0 0 0-.52.84l-.05.13v.71l0 .11C5.82 14.05 22.68 53 26 62.14c.2.62.58 1.8 1.29 1.86h.16c.38 0 2-2.14 2-2.14S58.41 26.74 61.34 23a9.46 9.46 0 0 0 1-1.48A2.41 2.41 0 0 0 61.55 19.28ZM36.88 23.37 49.24 13.12l7.25 6.68Zm-4.8-.67L10.8 5.26l34.43 6.35ZM34 27.27l21.78-3.51-24.9 30ZM7.91 7 30.3 26 27.06 53.78Z"/> 333 </svg> 334`,O=(0,r.JW)`<svg fill="none" viewBox="0 0 40 40"> 335 <g clip-path="url(#a)"> 336 <g clip-path="url(#b)"> 337 <circle cx="20" cy="19.89" r="20" fill="#5A3E85" /> 338 <g clip-path="url(#c)"> 339 <path 340 fill="#fff" 341 d="M18.22 25.7 20 23.91h3.34l2.1-2.1v-6.68H15.4v8.78h2.82v1.77Zm3.87-8.16h1.25v3.66H22.1v-3.66Zm-3.34 0H20v3.66h-1.25v-3.66ZM20 7.9a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm6.69 14.56-3.66 3.66h-2.72l-1.77 1.78h-1.88V26.1H13.3v-9.82l.94-2.4H26.7v8.56Z" 342 /> 343 </g> 344 </g> 345 </g> 346 <defs> 347 <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath> 348 <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath> 349 <clipPath id="c"><path fill="#fff" d="M8 7.89h24v24H8z" /></clipPath> 350 </defs> 351</svg>`,M=(0,r.JW)`<svg fill="none" viewBox="0 0 16 16"> 352 <path 353 fill="currentColor" 354 d="m14.36 4.74.01.42c0 4.34-3.3 9.34-9.34 9.34A9.3 9.3 0 0 1 0 13.03a6.6 6.6 0 0 0 4.86-1.36 3.29 3.29 0 0 1-3.07-2.28c.5.1 1 .07 1.48-.06A3.28 3.28 0 0 1 .64 6.11v-.04c.46.26.97.4 1.49.41A3.29 3.29 0 0 1 1.11 2.1a9.32 9.32 0 0 0 6.77 3.43 3.28 3.28 0 0 1 5.6-3 6.59 6.59 0 0 0 2.08-.8 3.3 3.3 0 0 1-1.45 1.82A6.53 6.53 0 0 0 16 3.04c-.44.66-1 1.23-1.64 1.7Z" 355 /> 356</svg>`,W=(0,r.JW)` 357<svg xmlns="http://www.w3.org/2000/svg" width="89" height="89" viewBox="0 0 89 89" fill="none"> 358<path d="M60.0468 39.2502L65.9116 33.3854C52.6562 20.13 36.1858 20.13 22.9304 33.3854L28.7952 39.2502C38.8764 29.169 49.9725 29.169 60.0536 39.2502H60.0468Z" fill="var(--apkt-tokens-theme-textPrimary)"/> 359<path d="M58.0927 52.9146L44.415 39.2369L30.7373 52.9146L17.0596 39.2369L11.2017 45.0949L30.7373 64.6374L44.415 50.9597L58.0927 64.6374L77.6284 45.0949L71.7704 39.2369L58.0927 52.9146Z" fill="var(--apkt-tokens-theme-textPrimary)"/> 360</svg>`,L=(0,r.JW)` 361<svg xmlns="http://www.w3.org/2000/svg" width="89" height="89" viewBox="0 0 89 89" fill="none"> 362<path d="M60.0468 39.2502L65.9116 33.3854C52.6562 20.13 36.1858 20.13 22.9304 33.3854L28.7952 39.2502C38.8764 29.169 49.9725 29.169 60.0536 39.2502H60.0468Z" fill="var(--apkt-tokens-theme-textInvert)"/> 363<path d="M58.0927 52.9146L44.415 39.2369L30.7373 52.9146L17.0596 39.2369L11.2017 45.0949L30.7373 64.6374L44.415 50.9597L58.0927 64.6374L77.6284 45.0949L71.7704 39.2369L58.0927 52.9146Z" fill="var(--apkt-tokens-theme-textInvert)"/> 364</svg>`,D=(0,r.JW)` 365<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> 366<g clip-path="url(#clip0_22274_4692)"> 367<path d="M0 6.64C0 4.17295 0 2.93942 0.525474 2.01817C0.880399 1.39592 1.39592 0.880399 2.01817 0.525474C2.93942 0 4.17295 0 6.64 0H9.36C11.8271 0 13.0606 0 13.9818 0.525474C14.6041 0.880399 15.1196 1.39592 15.4745 2.01817C16 2.93942 16 4.17295 16 6.64V9.36C16 11.8271 16 13.0606 15.4745 13.9818C15.1196 14.6041 14.6041 15.1196 13.9818 15.4745C13.0606 16 11.8271 16 9.36 16H6.64C4.17295 16 2.93942 16 2.01817 15.4745C1.39592 15.1196 0.880399 14.6041 0.525474 13.9818C0 13.0606 0 11.8271 0 9.36V6.64Z" fill="#C7B994"/> 368<path d="M4.49038 5.76609C6.42869 3.86833 9.5713 3.86833 11.5096 5.76609L11.7429 5.99449C11.8398 6.08938 11.8398 6.24323 11.7429 6.33811L10.9449 7.11942C10.8964 7.16686 10.8179 7.16686 10.7694 7.11942L10.4484 6.80512C9.09617 5.48119 6.90381 5.48119 5.5516 6.80512L5.20782 7.14171C5.15936 7.18915 5.08079 7.18915 5.03234 7.14171L4.23434 6.3604C4.13742 6.26552 4.13742 6.11167 4.23434 6.01678L4.49038 5.76609ZM13.1599 7.38192L13.8702 8.07729C13.9671 8.17217 13.9671 8.32602 13.8702 8.4209L10.6677 11.5564C10.5708 11.6513 10.4137 11.6513 10.3168 11.5564L8.04388 9.33105C8.01965 9.30733 7.98037 9.30733 7.95614 9.33105L5.6833 11.5564C5.58638 11.6513 5.42925 11.6513 5.33234 11.5564L2.12982 8.42087C2.0329 8.32598 2.0329 8.17213 2.12982 8.07724L2.84004 7.38188C2.93695 7.28699 3.09408 7.28699 3.191 7.38188L5.46392 9.60726C5.48815 9.63098 5.52743 9.63098 5.55166 9.60726L7.82447 7.38188C7.92138 7.28699 8.07851 7.28699 8.17543 7.38187L10.4484 9.60726C10.4726 9.63098 10.5119 9.63098 10.5361 9.60726L12.809 7.38192C12.9059 7.28703 13.063 7.28703 13.1599 7.38192Z" fill="currentColor"/> 369</g> 370<defs> 371<clipPath id="clip0_22274_4692"> 372<path d="M0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8Z" fill="white"/> 373</clipPath> 374</defs> 375</svg> 376`,U=(0,r.JW)` 377<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> 378<circle cx="11" cy="11" r="11" transform="matrix(-1 0 0 1 23 1)" fill="#202020"/> 379<circle cx="11" cy="11" r="11.5" transform="matrix(-1 0 0 1 23 1)" stroke="#C7B994" stroke-opacity="0.7"/> 380<path d="M15.4523 11.0686L16.7472 9.78167C13.8205 6.87297 10.1838 6.87297 7.25708 9.78167L8.55201 11.0686C10.7779 8.85645 13.2279 8.85645 15.4538 11.0686H15.4523Z" fill="#C7B994"/> 381<path d="M15.0199 14.067L12 11.0656L8.98 14.067L5.96004 11.0656L4.66663 12.3511L8.98 16.6393L12 13.638L15.0199 16.6393L19.3333 12.3511L18.0399 11.0656L15.0199 14.067Z" fill="#C7B994"/> 382</svg> 383`,F=(0,r.JW)`<svg fill="none" viewBox="0 0 41 40"> 384 <g clip-path="url(#a)"> 385 <path fill="#000" d="M.8 0h40v40H.8z" /> 386 <path 387 fill="#fff" 388 d="m22.63 18.46 7.14-8.3h-1.69l-6.2 7.2-4.96-7.2H11.2l7.5 10.9-7.5 8.71h1.7l6.55-7.61 5.23 7.61h5.72l-7.77-11.31Zm-9.13-7.03h2.6l11.98 17.13h-2.6L13.5 11.43Z" 389 /> 390 </g>
391 <defs> 392 <clipPath id="a"><path fill="#fff" d="M.8 20a20 20 0 1 1 40 0 20 20 0 0 1-40 0Z" /></clipPath> 393 </defs> 394</svg>`;var H=i(21621),j=i(62057),Z=i(54718);let B=(0,r.AH)` 395 :host { 396 display: flex; 397 justify-content: center; 398 align-items: center; 399 aspect-ratio: 1 / 1; 400 color: var(--local-color); 401 width: var(--local-width); 402 } 403 404 svg { 405 height: inherit; 406 width: inherit; 407 object-fit: contain; 408 object-position: center; 409 } 410`;var z=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let q={add:"ph-plus",allWallets:"ph-dots-three",arrowBottom:"ph-arrow-down",arrowBottomCircle:"ph-arrow-circle-down",arrowClockWise:"ph-arrow-clockwise",arrowLeft:"ph-arrow-left",arrowRight:"ph-arrow-right",arrowTop:"ph-arrow-up",arrowTopRight:"ph-arrow-up-right",bank:"ph-bank",bin:"ph-trash",browser:"ph-browser",card:"ph-credit-card",checkmarkBold:"ph-check",chevronBottom:"ph-caret-down",chevronLeft:"ph-caret-left",chevronRight:"ph-caret-right",chevronTop:"ph-caret-up",clock:"ph-clock",close:"ph-x",coinPlaceholder:"ph-circle-half",compass:"ph-compass",copy:"ph-copy",desktop:"ph-desktop",dollar:"ph-currency-dollar",download:"ph-vault",exclamationCircle:"ph-warning-circle",extension:"ph-puzzle-piece",externalLink:"ph-arrow-square-out",filters:"ph-funnel-simple",helpCircle:"ph-question",id:"ph-identification-card",image:"ph-image",info:"ph-info",lightbulb:"ph-lightbulb",mail:"ph-envelope",mobile:"ph-device-mobile",more:"ph-dots-three",networkPlaceholder:"ph-globe",nftPlaceholder:"ph-image",plus:"ph-plus",power:"ph-power",qrCode:"ph-qr-code",questionMark:"ph-question",refresh:"ph-arrow-clockwise",recycleHorizontal:"ph-arrows-clockwise",search:"ph-magnifying-glass",sealCheck:"ph-seal-check",send:"ph-paper-plane-right",signOut:"ph-sign-out",spinner:"ph-spinner",swapHorizontal:"ph-arrows-left-right",swapVertical:"ph-arrows-down-up",threeDots:"ph-dots-three",user:"ph-user",verify:"ph-seal-check",verifyFilled:"ph-seal-check",wallet:"ph-wallet",warning:"ph-warning",warningCircle:"ph-warning-circle",appStore:"",apple:"",bitcoin:"",coins:"",chromeStore:"",cursor:"",discord:"",ethereum:"",etherscan:"",facebook:"",farcaster:"",github:"",google:"",playStore:"",paperPlaneTitle:"",reown:"",solana:"",ton:"",tron:"",telegram:"",twitch:"",twitterIcon:"",twitter:"",walletConnect:"",walletConnectBrown:"",walletConnectLightBrown:"",x:"",infoSeal:"",checkmark:""},V={"ph-arrow-circle-down":()=>Promise.all([i.e(5943),i.e(4890)]).then(i.bind(i,74890)),"ph-arrow-clockwise":()=>Promise.all([i.e(5943),i.e(5810)]).then(i.bind(i,15810)),"ph-arrow-down":()=>Promise.all([i.e(5943),i.e(4530)]).then(i.bind(i,94530)),"ph-arrow-left":()=>Promise.all([i.e(5943),i.e(1281)]).then(i.bind(i,71281)),"ph-arrow-right":()=>Promise.all([i.e(5943),i.e(4034)]).then(i.bind(i,4034)),"ph-arrow-square-out":()=>Promise.all([i.e(5943),i.e(3511)]).then(i.bind(i,63511)),"ph-arrows-down-up":()=>Promise.all([i.e(5943),i.e(9532)]).then(i.bind(i,9532)),"ph-arrows-left-right":()=>Promise.all([i.e(5943),i.e(3476)]).then(i.bind(i,33476)),"ph-arrow-up":()=>Promise.all([i.e(5943),i.e(9245)]).then(i.bind(i,9245)),"ph-arrow-up-right":()=>Promise.all([i.e(5943),i.e(6443)]).then(i.bind(i,26443)),"ph-arrows-clockwise":()=>Promise.all([i.e(5943),i.e(3845)]).then(i.bind(i,33845)),"ph-bank":()=>Promise.all([i.e(5943),i.e(1343)]).then(i.bind(i,61343)),"ph-browser":()=>Promise.all([i.e(5943),i.e(641)]).then(i.bind(i,10641)),"ph-caret-down":()=>Promise.all([i.e(5943),i.e(2972)]).then(i.bind(i,12972)),"ph-caret-left":()=>Promise.all([i.e(5943),i.e(971)]).then(i.bind(i,80971)),"ph-caret-right":()=>Promise.all([i.e(5943),i.e(4300)]).then(i.bind(i,64300)),"ph-caret-up":()=>Promise.all([i.e(5943),i.e(6891)]).then(i.bind(i,86891)),"ph-check":()=>Promise.all([i.e(5943),i.e(8261)]).then(i.bind(i,28261)),"ph-circle-half":()=>Promise.all([i.e(5943),i.e(9478)]).then(i.bind(i,79478)),"ph-clock":()=>
410Promise.all([i.e(5943),i.e(6519)]).then(i.bind(i,66519)),"ph-compass":()=>Promise.all([i.e(5943),i.e(2985)]).then(i.bind(i,2985)),"ph-copy":()=>Promise.all([i.e(5943),i.e(3230)]).then(i.bind(i,3230)),"ph-credit-card":()=>Promise.all([i.e(5943),i.e(8595)]).then(i.bind(i,40976)),"ph-currency-dollar":()=>Promise.all([i.e(5943),i.e(8786)]).then(i.bind(i,48786)),"ph-desktop":()=>Promise.all([i.e(5943),i.e(3957)]).then(i.bind(i,63957)),"ph-device-mobile":()=>Promise.all([i.e(5943),i.e(9657)]).then(i.bind(i,59657)),"ph-dots-three":()=>Promise.all([i.e(5943),i.e(2729)]).then(i.bind(i,12729)),"ph-vault":()=>Promise.all([i.e(5943),i.e(4585)]).then(i.bind(i,54585)),"ph-envelope":()=>Promise.all([i.e(5943),i.e(6853)]).then(i.bind(i,66853)),"ph-funnel-simple":()=>Promise.all([i.e(5943),i.e(2347)]).then(i.bind(i,22347)),"ph-globe":()=>Promise.all([i.e(5943),i.e(5406)]).then(i.bind(i,45406)),"ph-identification-card":()=>Promise.all([i.e(5943),i.e(8349)]).then(i.bind(i,38349)),"ph-image":()=>Promise.all([i.e(5943),i.e(9030)]).then(i.bind(i,79030)),"ph-info":()=>Promise.all([i.e(5943),i.e(13)]).then(i.bind(i,50013)),"ph-lightbulb":()=>Promise.all([i.e(5943),i.e(1540)]).then(i.bind(i,81540)),"ph-magnifying-glass":()=>Promise.all([i.e(5943),i.e(4272)]).then(i.bind(i,34272)),"ph-paper-plane-right":()=>Promise.all([i.e(5943),i.e(3751)]).then(i.bind(i,23751)),"ph-plus":()=>Promise.all([i.e(5943),i.e(4241)]).then(i.bind(i,74241)),"ph-power":()=>Promise.all([i.e(5943),i.e(5578)]).then(i.bind(i,35578)),"ph-puzzle-piece":()=>Promise.all([i.e(5943),i.e(5875)]).then(i.bind(i,85875)),"ph-qr-code":()=>Promise.all([i.e(5943),i.e(8171)]).then(i.bind(i,48171)),"ph-question":()=>Promise.all([i.e(5943),i.e(9981)]).then(i.bind(i,92362)),"ph-question-circle":()=>
410Promise.all([i.e(5943),i.e(2346)]).then(i.bind(i,32346)),"ph-seal-check":()=>Promise.all([i.e(5943),i.e(4744)]).then(i.bind(i,34744)),"ph-sign-out":()=>Promise.all([i.e(5943),i.e(4984)]).then(i.bind(i,34984)),"ph-spinner":()=>Promise.all([i.e(5943),i.e(1538)]).then(i.bind(i,41538)),"ph-trash":()=>Promise.all([i.e(5943),i.e(4251)]).then(i.bind(i,14251)),"ph-user":()=>Promise.all([i.e(5943),i.e(9428)]).then(i.bind(i,49428)),"ph-wallet":()=>Promise.all([i.e(5943),i.e(7746)]).then(i.bind(i,7746)),"ph-warning":()=>Promise.all([i.e(5943),i.e(3225)]).then(i.bind(i,83225)),"ph-warning-circle":()=>Promise.all([i.e(5943),i.e(1137)]).then(i.bind(i,51137)),"ph-x":()=>Promise.all([i.e(5943),i.e(4521)]).then(i.bind(i,74521))},K={appStore:h,apple:p,bitcoin:m,coins:w,chromeStore:f,cursor:y,discord:b,ethereum:v,etherscan:C,facebook:x,farcaster:E,github:k,google:A,playStore:N,paperPlaneTitle:_,reown:S,solana:T,ton:I._,tron:P,telegram:R,twitch:O,twitter:F,twitterIcon:M,walletConnect:W,walletConnectInvert:L,walletConnectBrown:U,walletConnectLightBrown:D,x:F,infoSeal:$,checkmark:g},G={"accent-primary":H.f.tokens.core.iconAccentPrimary,"accent-certified":H.f.tokens.core.iconAccentCertified,"foreground-secondary":H.f.tokens.theme.foregroundSecondary,default:H.f.tokens.theme.iconDefault,success:H.f.tokens.core.iconSuccess,error:H.f.tokens.core.iconError,warning:H.f.tokens.core.iconWarning,inverse:H.f.tokens.theme.iconInverse},J=class extends r.WF{constructor(){super(...arguments),this.size="md",this.name="copy",this.weight="bold",this.color="inherit"}render(){this.style.cssText=` 411 --local-width: ${"inherit"===this.size?"inherit":`var(--apkt-spacing-${({xxs:"2",xs:"3",sm:"3",md:"4",mdl:"5",lg:"5",xl:"6",xxl:"7",inherit:"inherit"})[this.size]})`}; 412 --local-color: ${"inherit"===this.color?"inherit":G[this.color]} 413 `;let e=q[this.name];if(e&&""!==e){let t=V[e];t&&t();let i=l(e);return u`<${i} size=${({xxs:"0.5em",xs:"0.75em",sm:"0.75em",md:"1em",mdl:"1.25em",lg:"1.25em",xl:"1.5em",xxl:"1.75em"})[this.size]} weight="${this.weight}"></${i}>`}return K[this.name]||u``}};J.styles=[j.W5,B],z([(0,a.MZ)()],J.prototype,"size",void 0),z([(0,a.MZ)()],J.prototype,"name",void 0),z([(0,a.MZ)()],J.prototype,"weight",void 0),z([(0,a.MZ)()],J.prototype,"color",void 0),J=z([(0,Z.E)("wui-icon")],J)},17421:(e,t,i)=>{"use strict";i(82853)},17423:e=>{e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},18220:(e,t,i)=>{"use strict";i.d(t,{i:()=>r});let r="1.8.19"},19836:(e,t,i)=>{"use strict";i.d(t,{OA:()=>r,WL:()=>n,u$:()=>a});let r={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},a=e=>(...t)=>({_$litDirective$:e,values:t});class n{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}},21498:e=>{"use strict";e.exports=function(e){for(var t=[],i=e.length,r=0;r<i;r++){var a=e.charCodeAt(r);if(a>=55296&&a<=56319&&i>r+1){var n=e.charCodeAt(r+1);n>=56320&&n<=57343&&(a=(a-55296)*1024+n-56320+65536,r+=1)}if(a<128){t.push(a);continue}if(a<2048){t.push(a>>6|192),t.push(63&a|128);continue}if(a<55296||a>=57344&&a<65536){t.push(a>>12|224),t.push(a>>6&63|128),t.push(63&a|128);continue}if(a>=65536&&a<=1114111){t.push(a>>18|240),t.push(a>>12&63|128),t.push(a>>6&63|128),t.push(63&a|128);continue}t.push(239,191,189)}return new Uint8Array(t).buffer}},21621:(e,t,i)=>{"use strict";i.d(t,{AH:()=>c,CV:()=>s,f:()=>l});var r=i(88633),a=i(64210);let n="--apkt";function o(e){if(!e)return{};let t={};return t["font-family"]=e["--apkt-font-family"]??e["--w3m-font-family"]??"KHTeka",t.accent=e["--apkt-accent"]??e["--w3m-accent"]??"#0988F0",t["color-mix"]=e["--apkt-color-mix"]??e["--w3m-color-mix"]??"#000",t["color-mix-strength"]=e["--apkt-color-mix-strength"]??e["--w3m-color-mix-strength"]??0,t["font-size-master"]=e["--apkt-font-size-master"]??e["--w3m-font-size-master"]??"10px",t["border-radius-master"]=e["--apkt-border-radius-master"]??e["--w3m-border-radius-master"]??"4px",void 0!==e["--apkt-z-index"]?t["z-index"]=e["--apkt-z-index"]:void 0!==e["--w3m-z-index"]&&(t["z-index"]=e["--w3m-z-index"]),t}let s={createCSSVariables(e){let t={},i={};return!function e(t,i,r=""){for(let[a,o]of Object.entries(t)){let t=r?`${r}-${a}`:a;o&&"object"==typeof o&&Object.keys(o).length?(i[a]={},e(o,i[a],t)):"string"==typeof o&&(i[a]=`${n}-${t}`)}}(e,t),!function e(t,i){for(let[r,a]of Object.entries(t))a&&"object"==typeof a?(i[r]={},e(a,i[r])):"string"==typeof a&&(i[r]=`var(${a})`)}(t,i),{cssVariables:t,cssVariablesVarPrefix:i}},assignCSSVariables(e,t){let i={};return!function e(t,r,a){for(let[o,s]of Object.entries(t)){let t=a?`${a}-${o}`:o,l=r[o];s&&"object"==typeof s?e(s,l,t):"string"==typeof l&&(i[`${n}-${t}`]=l)}}(e,t),i},createRootStyles(e,t){let i={...a.R7,tokens:{...a.R7.tokens,theme:"light"===e?a.LU.light:a.LU.dark}},{cssVariables:r}
413=s.createCSSVariables(i),n=s.assignCSSVariables(r,i),o=s.generateW3MVariables(t),l=s.generateW3MOverrides(t),c=s.generateScaledVariables(t),d=s.generateBaseVariables(n),u={...n,...d,...o,...l,...c},h=s.applyColorMixToVariables(t,u),p=Object.entries({...u,...h}).map(([e,t])=>`${e}:${t.replace("/[:;{}</>]/g","")};`).join("");return`:root {${p}}`},generateW3MVariables(e){if(!e)return{};let t=o(e),i={};return i["--w3m-font-family"]=t["font-family"],i["--w3m-accent"]=t.accent,i["--w3m-color-mix"]=t["color-mix"],i["--w3m-color-mix-strength"]=`${t["color-mix-strength"]}%`,i["--w3m-font-size-master"]=t["font-size-master"],i["--w3m-border-radius-master"]=t["border-radius-master"],i},generateW3MOverrides(e){if(!e)return{};let t=o(e),i={};if(e["--apkt-accent"]||e["--w3m-accent"]){let e=t.accent;i["--apkt-tokens-core-iconAccentPrimary"]=e,i["--apkt-tokens-core-borderAccentPrimary"]=e,i["--apkt-tokens-core-textAccentPrimary"]=e,i["--apkt-tokens-core-backgroundAccentPrimary"]=e}return(e["--apkt-font-family"]||e["--w3m-font-family"])&&(i["--apkt-fontFamily-regular"]=t["font-family"]),void 0!==t["z-index"]&&(i["--apkt-tokens-core-zIndex"]=`${t["z-index"]}`),i},generateScaledVariables(e){if(!e)return{};let t=o(e),i={};if(e["--apkt-font-size-master"]||e["--w3m-font-size-master"]){let e=parseFloat(t["font-size-master"].replace("px",""));i["--apkt-textSize-h1"]=`${5*Number(e)}px`,i["--apkt-textSize-h2"]=`${4.4*Number(e)}px`,i["--apkt-textSize-h3"]=`${3.8*Number(e)}px`,i["--apkt-textSize-h4"]=`${3.2*Number(e)}px`,i["--apkt-textSize-h5"]=`${2.6*Number(e)}px`,i["--apkt-textSize-h6"]=`${2*Number(e)}px`,i["--apkt-textSize-large"]=`${1.6*Number(e)}px`,i["--apkt-textSize-medium"]=`${1.4*Number(e)}px`,i["--apkt-textSize-small"]=`${1.2*Number(e)}px`}if(e["--apkt-border-radius-master"]||e["--w3m-border-radius-master"]){let e=parseFloat(t["border-radius-master"].replace("px",""));i["--apkt-borderRadius-1"]=`${Number(e)}px`,i["--apkt-borderRadius-2"]=`${2*Number(e)}px`,i["--apkt-borderRadius-3"]=`${3*Number(e)}px`,i["--apkt-borderRadius-4"]=`${4*Number(e)}px`,i["--apkt-borderRadius-5"]=`${5*Number(e)}px`,i["--apkt-borderRadius-6"]=`${6*Number(e)}px`,i["--apkt-borderRadius-8"]=`${8*Number(e)}px`,i["--apkt-borderRadius-16"]=`${16*Number(e)}px`,i["--apkt-borderRadius-20"]=`${20*Number(e)}px`,i["--apkt-borderRadius-32"]=`${32*Number(e)}px`,i["--apkt-borderRadius-64"]=`${64*Number(e)}px`,i["--apkt-borderRadius-128"]=`${128*Number(e)}px`}return i},generateColorMixCSS(e,t){if(!e?.["--w3m-color-mix"]||!e["--w3m-color-mix-strength"])return"";let i=e["--w3m-color-mix"],r=e["--w3m-color-mix-strength"];if(!r||0===r)return"";let a=Object.keys(t||{}).filter(e=>{let t=e.includes("-tokens-core-background")||e.includes("-tokens-core-text")||e.includes("-tokens-core-border")||e.includes("-tokens-core-foreground")||e.includes("-tokens-core-icon")||e.includes("-tokens-theme-background")||e.includes("-tokens-theme-text")||e.includes("-tokens-theme-border")||e.includes("-tokens-theme-foreground")||e.includes("-tokens-theme-icon"),i=e.includes("-borderRadius-")||e.includes("-spacing-")||e.includes("-textSize-")||e.includes("-fontFamily-")||e.includes("-fontWeight-")||e.includes("-typography-")||e.includes("-duration-")||e.includes("-ease-")||e.includes("-path-")||e.includes("-width-")||e.includes("-height-")||e.includes("-visual-size-")||e.includes("-modal-width")||e.includes("-cover");return t&&!i});if(0===a.length)return"";let n=a.map(e=>{let a=t?.[e]||"";return a.includes("color-mix")||a.startsWith("#")||a.startsWith("rgb")?`${e}: color-mix(in srgb, ${i} ${r}%, ${a});`:`${e}: color-mix(in srgb, ${i} ${r}%, var(${e}-base, ${a}));`}).join("");return` @supports (background: color-mix(in srgb, white 50%, black)) { 414 :root { 415 ${n} 416 } 417 }`},generateBaseVariables(e){let t={},i=e["--apkt-tokens-theme-backgroundPrimary"];i&&(t["--apkt-tokens-theme-backgroundPrimary-base"]=i);let r=e["--apkt-tokens-core-backgroundAccentPrimary"];return r&&(t["--apkt-tokens-core-backgroundAccentPrimary-base"]=r),t},applyColorMixToVariables(e,t){let i={};t?.["--apkt-tokens-theme-backgroundPrimary"]&&(i["--apkt-tokens-theme-backgroundPrimary"]="var(--apkt-tokens-theme-backgroundPrimary-base)"),t?.["--apkt-tokens-core-backgroundAccentPrimary"]&&(i["--apkt-tokens-core-backgroundAccentPrimary"]="var(--apkt-tokens-core-backgroundAccentPrimary-base)");let r=o(e),a=r["color-mix"],n=r["color-mix-strength"];
417if(!n||0===n)return i;let s=Object.keys(t||{}).filter(e=>{let t=e.includes("-tokens-core-background")||e.includes("-tokens-core-text")||e.includes("-tokens-core-border")||e.includes("-tokens-core-foreground")||e.includes("-tokens-core-icon")||e.includes("-tokens-theme-background")||e.includes("-tokens-theme-text")||e.includes("-tokens-theme-border")||e.includes("-tokens-theme-foreground")||e.includes("-tokens-theme-icon")||e.includes("-tokens-theme-overlay"),i=e.includes("-borderRadius-")||e.includes("-spacing-")||e.includes("-textSize-")||e.includes("-fontFamily-")||e.includes("-fontWeight-")||e.includes("-typography-")||e.includes("-duration-")||e.includes("-ease-")||e.includes("-path-")||e.includes("-width-")||e.includes("-height-")||e.includes("-visual-size-")||e.includes("-modal-width")||e.includes("-cover");return t&&!i});return 0===s.length||s.forEach(e=>{let r=t?.[e]||"";e.endsWith("-base")||("--apkt-tokens-theme-backgroundPrimary"===e||"--apkt-tokens-core-backgroundAccentPrimary"===e?i[e]=`color-mix(in srgb, ${a} ${n}%, var(${e}-base))`:r.includes("color-mix")||r.startsWith("#")||r.startsWith("rgb")?i[e]=`color-mix(in srgb, ${a} ${n}%, ${r})`:i[e]=`color-mix(in srgb, ${a} ${n}%, var(${e}-base, ${r}))`)}),i}},{cssVariablesVarPrefix:l}=s.createCSSVariables(a.R7);function c(e,...t){return(0,r.AH)(e,...t.map(e=>"function"==typeof e?(0,r.iz)(e(l)):(0,r.iz)(e)))}},21899:(e,t,i)=>{"use strict";var r=i(88633),a=i(15274);i(17364),i(68006),i(89496);var n=i(80225);function o(e,t,i){return e!==t&&(e-t<0?t-e:e-t)<=i+.1}let s={generate({uri:e,size:t,logoSize:i,padding:a=8,dotColor:s="var(--apkt-colors-black)"}){let l=[],c=function(e,t){let i=Array.prototype.slice.call(n.create(e,{errorCorrectionLevel:"Q"}).modules.data,0),r=Math.sqrt(i.length);return i.reduce((e,t,i)=>(i%r==0?e.push([t]):e[e.length-1].push(t))&&e,[])}(e,0),d=(t-2*a)/c.length,u=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];u.forEach(({x:e,y:t})=>{let i=(c.length-7)*d*e+a,n=(c.length-7)*d*t+a;for(let e=0;e<u.length;e+=1){let t=d*(7-2*e);l.push((0,r.JW)` 418 <rect 419 fill=${2===e?"var(--apkt-colors-black)":"var(--apkt-colors-white)"} 420 width=${0===e?t-10:t} 421 rx= ${0===e?(t-10)*.45:.45*t} 422 ry= ${0===e?(t-10)*.45:.45*t} 423 stroke=${s} 424 stroke-width=${10*(0===e)} 425 height=${0===e?t-10:t} 426 x= ${0===e?n+d*e+5:n+d*e} 427 y= ${0===e?i+d*e+5:i+d*e} 428 /> 429 `)}});let h=Math.floor((i+25)/d),p=c.length/2-h/2,m=c.length/2+h/2-1,g=[];c.forEach((e,t)=>{e.forEach((e,i)=>{!c[t][i]||t<7&&i<7||t>c.length-8&&i<7||t<7&&i>c.length-8||t>p&&t<m&&i>p&&i<m||g.push([t*d+d/2+a,i*d+d/2+a])})});let f={};return g.forEach(([e,t])=>{f[e]?f[e]?.push(t):f[e]=[t]}),Object.entries(f).map(([e,t])=>{let i=t.filter(e=>t.every(t=>!o(e,t,d)));return[Number(e),i]}).forEach(([e,t])=>{t.forEach(t=>{l.push((0,r.JW)`<circle cx=${e} cy=${t} fill=${s} r=${d/2.5} />`)})}),Object.entries(f).filter(([e,t])=>t.length>1).map(([e,t])=>{let i=t.filter(e=>t.some(t=>o(e,t,d)));return[Number(e),i]}).map(([e,t])=>{t.sort((e,t)=>e<t?-1:1);let i=[];for(let e of t){let t=i.find(t=>t.some(t=>o(e,t,d)));t?t.push(e):i.push([e])}return[e,i.map(e=>[e[0],e[e.length-1]])]}).forEach(([e,t])=>{t.forEach(([t,i])=>{l.push((0,r.JW)` 430 <line 431 x1=${e} 432 x2=${e} 433 y1=${t} 434 y2=${i} 435 stroke=${s} 436 stroke-width=${d/1.25} 437 stroke-linecap="round" 438 /> 439 `)})}),l}};var l=i(62057),c=i(54718),d=i(21621);let u=(0,d.AH)` 440 :host { 441 position: relative; 442 user-select: none; 443 display: block; 444 overflow: hidden; 445 aspect-ratio: 1 / 1; 446 width: 100%; 447 height: 100%; 448 background-color: ${({colors:e})=>e.white}; 449 border: 1px solid ${({tokens:e})=>e.theme.borderPrimary}; 450 } 451 452 :host { 453 border-radius: ${({borderRadius:e})=>e[4]}; 454 display: flex; 455 align-items: center; 456 justify-content: center; 457 } 458 459 :host([data-clear='true']) > wui-icon { 460 display: none; 461 } 462 463 svg:first-child, 464 wui-image, 465 wui-icon { 466 position: absolute; 467 top: 50%; 468 left: 50%; 469 transform: translateY(-50%) translateX(-50%); 470 background-color: ${({tokens:e})=>e.theme.backgroundPrimary}; 471 box-shadow: inset 0 0 0 4px ${({tokens:e})=>e.theme.backgroundPrimary}; 472 border-radius: ${({borderRadius:e})=>e[6]}; 473 } 474 475 wui-image { 476 width: 25%; 477 height: 25%; 478 border-radius: ${({borderRadius:e})=>e[2]}; 479 } 480 481 wui-icon { 482 width: 100%; 483 height: 100%; 484 color: #3396ff !important; 485 transform: translateY(-50%) translateX(-50%) scale(0.25); 486 } 487 488 wui-icon > svg { 489 width: inherit; 490 height: inherit; 491 } 492`;var h=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let p=class extends r.WF{constructor(){super(...arguments),this.uri="",this.size=500,this.theme="dark",this.imageSrc=void 0,this.alt=void 0,this.arenaClear=void 0,this.farcaster=void 0}render(){return this.dataset.theme=this.theme,this.dataset.clear=String(this.arenaClear),(0,r.qy)`<wui-flex 493 alignItems="center" 494 justifyContent="center" 495 class="wui-qr-code" 496 direction="column" 497 gap="4" 498 width="100%" 499 style="height: 100%" 500 > 501 ${this.templateVisual()} ${this.templateSvg()} 502 </wui-flex>`}templateSvg(){return(0,r.JW)` 503 <svg viewBox="0 0 ${this.size} ${this.size}" width="100%" height="100%"> 504 ${s.generate({uri:this.uri,size:this.size,logoSize:this.arenaClear?0:this.size/4})} 505 </svg> 506 `}templateVisual(){return this.imageSrc?(0,r.qy)`<wui-image src=${this.imageSrc} alt=${this.alt??"logo"}></wui-image>`:this.farcaster?(0,r.qy)`<wui-icon 507 class="farcaster" 508 size="inherit" 509 color="inherit" 510 name="farcaster" 511 ></wui-icon>`:(0,r.qy)`<wui-icon size="inherit" color="inherit" name="walletConnect"></wui-icon>`}};p.styles=[l.W5,u],h([(0,a.MZ)()],p.prototype,"uri",void 0),h([(0,a.MZ)({type:Number})],p.prototype,"size",void 0),h([(0,a.MZ)()],p.prototype,"theme",void 0),h([(0,a.MZ)()],p.prototype,"imageSrc",void 0),h([(0,a.MZ)()],p.prototype,"alt",void 0),h([(0,a.MZ)({type:Boolean})],p.prototype,"arenaClear",void 0),h([(0,a.MZ)({type:Boolean})],p.prototype,"farcaster",void 0),p=h([(0,c.E)("wui-qr-code")],p)},21981:(e,t,i)=>{"use strict";var r=i(88633),a=i(15274),n=i(21621),o=i(62057),s=i(54718);let l=(0,r.AH)` 512 :host { 513 display: flex; 514 } 515 516 :host([data-size='sm']) > svg { 517 width: 12px; 518 height: 12px; 519 } 520 521 :host([data-size='md']) > svg { 522 width: 16px; 523 height: 16px; 524 } 525 526 :host([data-size='lg']) > svg { 527 width: 24px; 528 height: 24px; 529 } 530 531 :host([data-size='xl']) > svg { 532 width: 32px; 533 height: 32px; 534 } 535 536 svg { 537 animation: rotate 1.4s linear infinite; 538 color: var(--local-color); 539 } 540 541 :host([data-size='md']) > svg > circle { 542 stroke-width: 6px; 543 } 544 545 :host([data-size='sm']) > svg > circle { 546 stroke-width: 8px; 547 } 548 549 @keyframes rotate { 550 100% { 551 transform: rotate(360deg); 552 } 553 } 554`;var c=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let d=class extends r.WF{constructor(){super(...arguments),this.color="primary",this.size="lg"}render(){let e={primary:n.f.tokens.theme.textPrimary,secondary:n.f.tokens.theme.textSecondary,tertiary:n.f.tokens.theme.textTertiary,invert:n.f.tokens.theme.textInvert,error:n.f.tokens.core.textError,warning:n.f.tokens.core.textWarning,"accent-primary":n.f.tokens.core.textAccentPrimary};return this.style.cssText=` 555 --local-color: ${"inherit"===this.color?"inherit":e[this.color]}; 556 `,this.dataset.size=this.size,(0,r.qy)`<svg viewBox="0 0 16 17" fill="none"> 557 <path 558 d="M8.75 2.65625V4.65625C8.75 4.85516 8.67098 5.04593 8.53033 5.18658C8.38968 5.32723 8.19891 5.40625 8 5.40625C7.80109 5.40625 7.61032 5.32723 7.46967 5.18658C7.32902 5.04593 7.25 4.85516 7.25 4.65625V2.65625C7.25 2.45734 7.32902 2.26657 7.46967 2.12592C7.61032 1.98527 7.80109 1.90625 8 1.90625C8.19891 1.90625 8.38968 1.98527 8.53033 2.12592C8.67098 2.26657 8.75 2.45734 8.75 2.65625ZM14 7.90625H12C11.8011 7.90625 11.6103 7.98527 11.4697 8.12592C11.329 8.26657 11.25 8.45734 11.25 8.65625C11.25 8.85516 11.329 9.04593 11.4697 9.18658C11.6103 9.32723 11.8011 9.40625 12 9.40625H14C14.1989 9.40625 14.3897 9.32723 14.5303 9.18658C14.671 9.04593 14.75 8.85516 14.75 8.65625C14.75 8.45734 14.671 8.26657 14.5303 8.12592C14.3897 7.98527 14.1989 7.90625 14 7.90625ZM11.3588 10.9544C11.289 10.8846 11.2062 10.8293 11.115 10.7915C11.0239 10.7538 10.9262 10.7343 10.8275 10.7343C10.7288 10.7343 10.6311 10.7538 10.54 10.7915C10.4488 10.8293 10.366 10.8846 10.2963 10.9544C10.2265 11.0241 10.1711 11.107 10.1334 11.1981C10.0956 11.2893 10.0762 11.387 10.0762 11.4856C10.0762 11.5843 10.0956 11.682 10.1334 11.7731C10.1711 11.8643 10.2265 11.9471 10.2963 12.0169L11.7106 13.4312C11.8515 13.5721 12.0426 13.6513 12.2419 13.6513C12.4411 13.6513 12.6322 13.5721 12.7731 13.4312C12.914 13.2904 12.9932 13.0993 12.9932 12.9C12.9932 12.7007 12.914 12.5096 12.7731 12.3687L11.3588 10.9544ZM8 11.9062C7.80109 11.9062 7.61032 11.9853 7.46967 12.1259C7.32902 12.2666 7.25 12.4573 7.25 12.6562V14.6562C7.25 14.8552 7.32902 15.0459 7.46967 15.1866C7.61032 15.3272 7.80109 15.4062 8 15.4062C8.19891 15.4062 8.38968 15.3272 8.53033 15.1866C8.67098 15.0459 8.75 14.8552 8.75 14.6562V12.6562C8.75 12.4573 8.67098 12.2666 8.53033 12.1259C8.38968 11.9853 8.19891 11.9062 8 11.9062ZM4.64125 10.9544L3.22688 12.3687C3.08598 12.5096 3.00682 12.7007 3.00682 12.9C3.00682 13.0993 3.08598 13.2904 3.22688 13.4312C3.36777 13.5721 3.55887 13.6513 3.75813 13.6513C3.95738 13.6513 4.14848 13.5721 4.28937 13.4312L5.70375 12.0169C5.84465 11.876 5.9238 11.6849 5.9238 11.4856C5.9238 11.2864 5.84465 11.0953 5.70375 10.9544C5.56285 10.8135 5.37176 10.7343 5.1725 10.7343C4.97324 10.7343 4.78215 10.8135 4.64125 10.9544ZM4.75 8.65625C4.75 8.45734 4.67098 8.26657 4.53033 8.12592C4.38968 7.98527 4.19891 7.90625 4 7.90625H2C1.80109 7.90625 1.61032 7.98527 1.46967 8.12592C1.32902 8.26657 1.25 8.45734 1.25 8.65625C1.25 8.85516 1.32902 9.04593 1.46967 9.18658C1.61032 9.32723 1.80109 9.40625 2 9.40625H4C4.19891 9.40625 4.38968 9.32723 4.53033 9.18658C4.67098 9.04593 4.75 8.85516 4.75 8.65625ZM4.2875 3.88313C4.1466 3.74223 3.95551 3.66307 3.75625 3.66307C3.55699 3.66307 3.3659 3.74223 3.225 3.88313C3.0841 4.02402 3.00495 4.21512 3.00495 4.41438C3.00495 4.61363 3.0841 4.80473 3.225 4.94562L4.64125 6.35813C4.78215 6.49902 4.97324 6.57818 5.1725 6.57818C5.37176 6.57818 5.56285 6.49902 5.70375 6.35813C5.84465 6.21723 5.9238 6.02613 5.9238 5.82688C5.9238 5.62762 5.84465 5.43652 5.70375 5.29563L4.2875 3.88313Z" 559 fill="currentColor" 560 /> 561 </svg>`}};d.styles=[o.W5,l],c([(0,a.MZ)()],d.prototype,"color",void 0),c([(0,a.MZ)()],d.prototype,"size",void 0),d=c([(0,s.E)("wui-loading-spinner")],d)},22522:(e,t,i)=>{"use strict";i.d(t,{o:()=>r});let r={METMASK_CONNECTOR_NAME:"MetaMask",TRUST_CONNECTOR_NAME:"Trust Wallet",SOLFLARE_CONNECTOR_NAME:"Solflare",PHANTOM_CONNECTOR_NAME:"Phantom",COIN98_CONNECTOR_NAME:"Coin98",MAGIC_EDEN_CONNECTOR_NAME:"Magic Eden",BACKPACK_CONNECTOR_NAME:"Backpack",BITGET_CONNECTOR_NAME:"Bitget Wallet",FRONTIER_CONNECTOR_NAME:"Frontier",XVERSE_CONNECTOR_NAME:"Xverse Wallet",LEATHER_CONNECTOR_NAME:"Leather",OKX_CONNECTOR_NAME:"OKX Wallet",BINANCE_CONNECTOR_NAME:"Binance Wallet",EIP155:i(97220).o.CHAIN.EVM,ADD_CHAIN_METHOD:"wallet_addEthereumChain",EIP6963_ANNOUNCE_EVENT:"eip6963:announceProvider",EIP6963_REQUEST_EVENT:"eip6963:requestProvider",CONNECTOR_RDNS_MAP:{coinbaseWallet:"com.coinbase.wallet",coinbaseWalletSDK:"com.coinbase.wallet"},CONNECTOR_TYPE_EXTERNAL:"EXTERNAL",CONNECTOR_TYPE_WALLET_CONNECT:"WALLET_CONNECT",CONNECTOR_TYPE_INJECTED:"INJECTED",CONNECTOR_TYPE_ANNOUNCED:"ANNOUNCED",CONNECTOR_TYPE_AUTH:"AUTH",CONNECTOR_TYPE_MULTI_CHAIN:"MULTI_CHAIN",CONNECTOR_TYPE_W3M_AUTH:"AUTH",getSDKVersionWarningMessage:(e,t)=>
561` 562 @@@@@@@ @@@@@@@@@@@@@@@@@@ 563 @@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@ 564 @@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@ 565 @@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@ 566 @@@@@@@@@@@@@@@ @@@@@@@@@@@@@@ @@@@@@@@@@@ 567 @@@@@@@@@@@@@@@ @@@@@@@@@@@@@ @@@@@@@@@@@@ 568 @@@@@@@@@@@@@@@ @@@@@@@@@@@@@ @@@@@@@@@@@@@ 569 @@@@@@@@@@@@@@@ @@@@@@@@@@@@ @@@@@@@@@@@@@ 570 @@@@@@ @@@@@@ @@@@@@@@@@@ @@@@@@@@@@@@@@ 571 @@@@@@ @@@@@@ @@@@@@@@@@@ @@@@@@@@@@@@@@@ 572 @@@@@@@@@@@@@@@ @@@@@@@@@@ @@@@@@@@@@@@@@@ 573 @@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@ 574 @@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@ 575 @@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@ 576 @@@@@ @@@@@@@@@@@@@@@@@@ 577 578AppKit SDK version ${e} is outdated. Latest version is ${t}. Please update to the latest version for bug fixes and new features. 579 580Changelog: https://github.com/reown-com/appkit/releases 581NPM Registry: https://www.npmjs.com/package/@reown/appkit`}},24044:(e,t,i)=>{"use strict";var r=i(88633),a=i(15274),n=i(64084);i(17364),i(68006),i(37218),i(89496);var o=i(62057),s=i(54718),l=i(21621);let c=(0,l.AH)` 582 :host { 583 width: 100%; 584 } 585 586 button { 587 padding: ${({spacing:e})=>e[3]}; 588 display: flex; 589 gap: ${({spacing:e})=>e[3]}; 590 justify-content: space-between; 591 width: 100%; 592 border-radius: ${({borderRadius:e})=>e[4]}; 593 background-color: transparent; 594 } 595 596 @media (hover: hover) { 597 button:hover:enabled { 598 background-color: ${({tokens:e})=>e.theme.foregroundSecondary}; 599 } 600 } 601 602 button:focus-visible:enabled { 603 background-color: ${({tokens:e})=>e.theme.foregroundSecondary}; 604 box-shadow: 0 0 0 4px ${({tokens:e})=>e.core.foregroundAccent040}; 605 } 606 607 button[data-clickable='false'] { 608 pointer-events: none; 609 background-color: transparent; 610 } 611 612 wui-image, 613 wui-icon { 614 width: ${({spacing:e})=>e[10]}; 615 height: ${({spacing:e})=>e[10]}; 616 } 617 618 wui-image { 619 border-radius: ${({borderRadius:e})=>e[16]}; 620 } 621 622 .token-name-container { 623 flex: 1; 624 } 625`;var d=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let u=class extends r.WF{constructor(){super(...arguments),this.tokenName="",this.tokenImageUrl="",this.tokenValue=0,this.tokenAmount="0.0",this.tokenCurrency="",this.clickable=!1}render(){return(0,r.qy)` 626 <button data-clickable=${String(this.clickable)}> 627 <wui-flex gap="2" alignItems="center"> 628 ${this.visualTemplate()} 629 <wui-flex 630 flexDirection="column" 631 justifyContent="space-between" 632 gap="1" 633 class="token-name-container" 634 > 635 <wui-text variant="md-regular" color="primary" lineClamp="1"> 636 ${this.tokenName} 637 </wui-text> 638 <wui-text variant="sm-regular-mono" color="secondary"> 639 ${n.S.formatNumberToLocalString(this.tokenAmount,4)} ${this.tokenCurrency} 640 </wui-text> 641 </wui-flex> 642 </wui-flex> 643 <wui-flex 644 flexDirection="column" 645 justifyContent="space-between" 646 gap="1" 647 alignItems="flex-end" 648 width="auto" 649 > 650 <wui-text variant="md-regular-mono" color="primary" 651 >$${this.tokenValue.toFixed(2)}</wui-text 652 > 653 <wui-text variant="sm-regular-mono" color="secondary"> 654 ${n.S.formatNumberToLocalString(this.tokenAmount,4)} 655 </wui-text> 656 </wui-flex> 657 </button> 658 `}visualTemplate(){return this.tokenName&&this.tokenImageUrl?(0,r.qy)`<wui-image alt=${this.tokenName} src=${this.tokenImageUrl}></wui-image>`:(0,r.qy)`<wui-icon name="coinPlaceholder" color="default"></wui-icon>`}};u.styles=[o.W5,o.fD,c],d([(0,a.MZ)()],u.prototype,"tokenName",void 0),d([(0,a.MZ)()],u.prototype,"tokenImageUrl",void 0),d([(0,a.MZ)({type:Number})],u.prototype,"tokenValue",void 0),d([(0,a.MZ)()],u.prototype,"tokenAmount",void 0),d([(0,a.MZ)()],u.prototype,"tokenCurrency",void 0),d([(0,a.MZ)({type:Boolean})],u.prototype,"clickable",void 0),u=d([(0,s.E)("wui-list-token")],u)},25066:(e,t,i)=>{"use strict";i.d(t,{y:()=>l});var r=i(97220),a=i(58616),n=i(45086),o=i(33364),s=i(22522);let l={getCaipTokens(e){if(!e)return;let t={};return Object.entries(e).forEach(([e,i])=>{t[`${s.o.EIP155}:${e}`]=i}),t},isLowerCaseMatch:(e,t)=>e?.toLowerCase()===t?.toLowerCase(),getActiveNamespaceConnectedToAuth(){let e=a.W.state.activeChain;return r.o.AUTH_CONNECTOR_SUPPORTED_CHAINS.find(t=>n.a.getConnectorId(t)===r.o.CONNECTOR_ID.AUTH&&t===e)},withRetry({conditionFn:e,intervalMs:t,maxRetries:i}){let r=0;return new Promise(a=>{async function n(){return(r+=1,await e())?a(!0):r>=i?a(!1):(setTimeout(n,t),null)}n()})},userChainIdToChainNamespace(e){if("number"==typeof e)return r.o.CHAIN.EVM;let[t]=e.split(":");return t},getOtherAuthNamespaces:e=>e?r.o.AUTH_CONNECTOR_SUPPORTED_CHAINS.filter(t=>t!==e):[],getConnectorStorageInfo(e,t){let i=o.i.getConnections()[t]??[];return{hasDisconnected:o.i.isConnectorDisconnected(e,t),hasConnected:i.some(t=>l.isLowerCaseMatch(t.connectorId,e))}}}},25107:(e,t,i)=>{"use strict";i.d(t,{r:()=>c});var r=i(44846),a=i(40441),n=i(54352),o=i(822);r.extend(n),r.extend(o);let s={...a,name:"en-web3-modal",relativeTime:{future:"in %s",past:"%s ago",s:"%d sec",m:"1 min",mm:"%d min",h:"1 hr",hh:"%d hrs",d:"1 d",dd:"%d d",M:"1 mo",MM:"%d mo",y:"1 yr",yy:"%d yr"}},l=["January","February","March","April","May","June","July","August","September","October","November","December"];r.locale("en-web3-modal",s);let c={getMonthNameByIndex:e=>l[e],getYear:(e=new Date().toISOString())=>r(e).year(),getRelativeDateFromNow:e=>r(e).locale("en-web3-modal").fromNow(!0),formatDate:(e,t="DD MMM")=>r(e).format(t)}},25190:(e,t)=>{let i,r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw Error('"version" cannot be null or undefined');if(e<1||e>40)throw Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return r[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw Error('"toSJISFunc" is not a valid function.');i=e},t.isKanjiModeEnabled=function(){return void 0!==i},t.toSJIS=function(e){return i(e)}},25499:(e,t,i)=>{let r=i(25190),a=i(49458),n=i(27047),o=i(4358),s=i(28770),l=r.getBCHDigit
658(7973);function c(e,t){return o.getCharCountIndicator(e,t)+4}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,i){if(!s.isValid(e))throw Error("Invalid QR Code version");void 0===i&&(i=o.BYTE);let n=(r.getSymbolTotalCodewords(e)-a.getTotalCodewordsCount(e,t))*8;if(i===o.MIXED)return n;let l=n-c(i,e);switch(i){case o.NUMERIC:return Math.floor(l/10*3);case o.ALPHANUMERIC:return Math.floor(l/11*2);case o.KANJI:return Math.floor(l/13);case o.BYTE:default:return Math.floor(l/8)}},t.getBestVersionForData=function(e,i){let r,a=n.from(i,n.M);if(Array.isArray(e)){if(e.length>1){for(let i=1;i<=40;i++)if(function(e,t){let i=0;return e.forEach(function(e){let r=c(e.mode,t);i+=r+e.getBitsLength()}),i}(e,i)<=t.getCapacity(i,a,o.MIXED))return i;return}if(0===e.length)return 1;r=e[0]}else r=e;return function(e,i,r){for(let a=1;a<=40;a++)if(i<=t.getCapacity(a,r,e))return a}(r.mode,r.getLength(),a)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw Error("Invalid QR Code version");let t=e<<12;for(;r.getBCHDigit(t)-l>=0;)t^=7973<<r.getBCHDigit(t)-l;return e<<12|t}},25622:(e,t)=>{t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};let i={N1:3,N2:3,N3:40,N4:10};t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){let t=e.size,r=0,a=0,n=0,o=null,s=null;for(let l=0;l<t;l++){a=n=0,o=s=null;for(let c=0;c<t;c++){let t=e.get(l,c);t===o?a++:(a>=5&&(r+=i.N1+(a-5)),o=t,a=1),(t=e.get(c,l))===s?n++:(n>=5&&(r+=i.N1+(n-5)),s=t,n=1)}a>=5&&(r+=i.N1+(a-5)),n>=5&&(r+=i.N1+(n-5))}return r},t.getPenaltyN2=function(e){let t=e.size,r=0;for(let i=0;i<t-1;i++)for(let a=0;a<t-1;a++){let t=e.get(i,a)+e.get(i,a+1)+e.get(i+1,a)+e.get(i+1,a+1);(4===t||0===t)&&r++}return r*i.N2},t.getPenaltyN3=function(e){let t=e.size,r=0,a=0,n=0;for(let i=0;i<t;i++){a=n=0;for(let o=0;o<t;o++)a=a<<1&2047|e.get(i,o),o>=10&&(1488===a||93===a)&&r++,n=n<<1&2047|e.get(o,i),o>=10&&(1488===n||93===n)&&r++}return r*i.N3},t.getPenaltyN4=function(e){let t=0,r=e.data.length;for(let i=0;i<r;i++)t+=e.data[i];return Math.abs(Math.ceil(100*t/r/5)-10)*i.N4},t.applyMask=function(e,i){let r=i.size;for(let a=0;a<r;a++)for(let n=0;n<r;n++)i.isReserved(n,a)||i.xor(n,a,function(e,i,r){switch(e){case t.Patterns.PATTERN000:return(i+r)%2==0;case t.Patterns.PATTERN001:return i%2==0;case t.Patterns.PATTERN010:return r%3==0;case t.Patterns.PATTERN011:return(i+r)%3==0;case t.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(r/3))%2==0;case t.Patterns.PATTERN101:return i*r%2+i*r%3==0;case t.Patterns.PATTERN110:return(i*r%2+i*r%3)%2==0;case t.Patterns.PATTERN111:return(i*r%3+(i+r)%2)%2==0;default:throw Error("bad maskPattern:"+e)}}(e,n,a))},t.getBestMask=function(e,i){let r=Object.keys(t.Patterns).length,a=0,n=1/0;for(let o=0;o<r;o++){i(o),t.applyMask(o,e);let r=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(o,e),r<n&&(n=r,a=o)}return a}},25921:(e,t,i)=>{"use strict";i.d(t,{R:()=>n});var r=i(25842),a=i(38195);let n={EmbeddedWalletAbortController:new AbortController,UniversalProviderErrors:{UNAUTHORIZED_DOMAIN_NOT_ALLOWED:{message:"Unauthorized: origin not allowed",alertErrorKey:"ORIGIN_NOT_ALLOWED"},JWT_VALIDATION_ERROR:{message:"JWT validation error: JWT Token is not yet valid",alertErrorKey:"JWT_TOKEN_NOT_VALID"},INVALID_KEY:{message:"Unauthorized: invalid key",alertErrorKey:"INVALID_PROJECT_ID"}},ALERT_ERRORS:{SWITCH_NETWORK_NOT_FOUND:{code:"APKT001",displayMessage:"Network Not Found",debugMessage:"The specified network is not recognized. Please ensure it is included in the `networks` array of your `createAppKit` configuration."},ORIGIN_NOT_ALLOWED:{code:"APKT002",displayMessage:"Invalid App Configuration",debugMessage:()=>`The origin ${(0,r.IP)()?window.origin:"unknown"} is not in your allow list. Please update your allowed domains at https://dashboard.reown.com. [PID: ${a.H.state.projectId}]`},IFRAME_LOAD_FAILED:{code:"APKT003",displayMessage:"Network Error: Wallet Load Failed",debugMessage:()=>"Failed to load the embedded wallet. This may be due to network issues or server downtime. Please check your network connection and try again shortly. Contact support if the issue persists."},IFRAME_REQUEST_TIMEOUT:{code:"APKT004",displayMessage:"Wallet Request Timeout",debugMessage:()=>"The request to the embedded wallet timed out. Please check your network connection and try again shortly. Contact support if the issue persists."},UNVERIFIED_DOMAIN:{code:"APKT005",displayMessage:"Unverified Domain",debugMessage:()=>"Embedded wallet load failed. Ensure your domain is verified in https://dashboard.reown.com."},JWT_TOKEN_NOT_VALID:{code:"APKT006",displayMessage:"Session Expired",debugMessage:"Your session is invali
658d or expired. Please check your system’s date and time settings, then reconnect."},INVALID_PROJECT_ID:{code:"APKT007",displayMessage:"Invalid Project ID",debugMessage:"The specified project ID is invalid. Please visit https://dashboard.reown.com to obtain a valid project ID."},PROJECT_ID_NOT_CONFIGURED:{code:"APKT008",displayMessage:"Project ID Missing",debugMessage:"No project ID is configured. You can create and configure a project ID at https://dashboard.reown.com."},SERVER_ERROR_APP_CONFIGURATION:{code:"APKT009",displayMessage:"Server Error",debugMessage:e=>`Unable to fetch App Configuration. ${e}. Please check your network connection and try again shortly. Contact support if the issue persists.`},RATE_LIMITED_APP_CONFIGURATION:{code:"APKT010",displayMessage:"Rate Limited",debugMessage:"You have been rate limited while retrieving App Configuration. Please wait a few minutes and try again. Contact support if the issue persists."}},ALERT_WARNINGS:{LOCAL_CONFIGURATION_IGNORED:{debugMessage:e=>`[Reown Config Notice] ${e}`},INACTIVE_NAMESPACE_NOT_CONNECTED:{code:"APKTW001",displayMessage:"Inactive Namespace Not Connected",debugMessage:(e,t)=>`An error occurred while connecting an inactive namespace ${e}: "${t}"`},INVALID_EMAIL:{code:"APKTW002",displayMessage:"Invalid Email Address",debugMessage:"Please enter a valid email address"}}}},26817:(e,t,i)=>{let r=i(4358),a=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function n(e){this.mode=r.ALPHANUMERIC,this.data=e}n.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let i=45*a.indexOf(this.data[t]);i+=a.indexOf(this.data[t+1]),e.put(i,11)}this.data.length%2&&e.put(a.indexOf(this.data[t]),6)},e.exports=n},27047:(e,t)=>{t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,i){if(t.isValid(e))return e;try{if("string"!=typeof e)throw Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw Error("Unknown EC Level: "+e)}}catch(e){return i}}},27221:(e,t,i)=>{"use strict";var r=i(88633),a=i(15274),n=i(13894);i(21981),i(37218);var o=i(62057),s=i(54718),l=i(21621);let c=(0,l.AH)` 659 :host { 660 width: 100%; 661 } 662 663 :host([data-type='primary']) > button { 664 background-color: ${({tokens:e})=>e.theme.backgroundPrimary}; 665 } 666 667 :host([data-type='secondary']) > button { 668 background-color: ${({tokens:e})=>e.theme.foregroundPrimary}; 669 } 670 671 button { 672 display: flex; 673 align-items: center; 674 justify-content: space-between; 675 padding: ${({spacing:e})=>e[3]}; 676 width: 100%; 677 border-radius: ${({borderRadius:e})=>e[4]}; 678 transition: 679 background-color ${({durations:e})=>e.lg} 680 ${({easings:e})=>e["ease-out-power-2"]}, 681 scale ${({durations:e})=>e.lg} ${({easings:e})=>e["ease-out-power-2"]}; 682 will-change: background-color, scale; 683 } 684 685 wui-text { 686 text-transform: capitalize; 687 } 688 689 wui-image { 690 color: ${({tokens:e})=>e.theme.textPrimary}; 691 } 692 693 @media (hover: hover) { 694 :host([data-type='primary']) > button:hover:enabled { 695 background-color: ${({tokens:e})=>e.theme.foregroundPrimary}; 696 } 697 698 :host([data-type='secondary']) > button:hover:enabled { 699 background-color: ${({tokens:e})=>e.theme.foregroundSecondary}; 700 } 701 } 702 703 button:disabled { 704 opacity: 0.5; 705 cursor: not-allowed; 706 } 707`;var d=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let u=class extends r.WF{constructor(){super(...arguments),this.type="primary",this.imageSrc="google",this.imageSize=void 0,this.loading=!1,this.boxColor="foregroundPrimary",this.disabled=!1,this.rightIcon=!0,this.boxed=!0,this.rounded=!1,this.fullSize=!1}render(){return this.dataset.rounded=this.rounded?"true":"false",this.dataset.type=this.t
707ype,(0,r.qy)` 708 <button 709 ?disabled=${!!this.loading||!!this.disabled} 710 data-loading=${this.loading} 711 tabindex=${(0,n.J)(this.tabIdx)} 712 > 713 <wui-flex gap="2" alignItems="center"> 714 ${this.templateLeftIcon()} 715 <wui-flex gap="1"> 716 <slot></slot> 717 </wui-flex> 718 </wui-flex> 719 ${this.templateRightIcon()} 720 </button> 721 `}templateLeftIcon(){return this.icon?(0,r.qy)`<wui-image 722 icon=${this.icon} 723 iconColor=${(0,n.J)(this.iconColor)} 724 ?boxed=${this.boxed} 725 ?rounded=${this.rounded} 726 boxColor=${this.boxColor} 727 ></wui-image>`:(0,r.qy)`<wui-image 728 ?boxed=${this.boxed} 729 ?rounded=${this.rounded} 730 ?fullSize=${this.fullSize} 731 size=${(0,n.J)(this.imageSize)} 732 src=${this.imageSrc} 733 boxColor=${this.boxColor} 734 ></wui-image>`}templateRightIcon(){return this.rightIcon?this.loading?(0,r.qy)`<wui-loading-spinner size="md" color="accent-primary"></wui-loading-spinner>`:(0,r.qy)`<wui-icon name="chevronRight" size="lg" color="default"></wui-icon>`:null}};u.styles=[o.W5,o.fD,c],d([(0,a.MZ)()],u.prototype,"type",void 0),d([(0,a.MZ)()],u.prototype,"imageSrc",void 0),d([(0,a.MZ)()],u.prototype,"imageSize",void 0),d([(0,a.MZ)()],u.prototype,"icon",void 0),d([(0,a.MZ)()],u.prototype,"iconColor",void 0),d([(0,a.MZ)({type:Boolean})],u.prototype,"loading",void 0),d([(0,a.MZ)()],u.prototype,"tabIdx",void 0),d([(0,a.MZ)()],u.prototype,"boxColor",void 0),d([(0,a.MZ)({type:Boolean})],u.prototype,"disabled",void 0),d([(0,a.MZ)({type:Boolean})],u.prototype,"rightIcon",void 0),d([(0,a.MZ)({type:Boolean})],u.prototype,"boxed",void 0),d([(0,a.MZ)({type:Boolean})],u.prototype,"rounded",void 0),d([(0,a.MZ)({type:Boolean})],u.prototype,"fullSize",void 0),u=d([(0,s.E)("wui-list-item")],u)},27529:(e,t,i)=>{"use strict";var r=i(88633),a=i(15274),n=i(8350),o=i(60210),s=i(99216),l=i(67789);let c=(0,r.AH)` 735 :host { 736 width: 100%; 737 display: block; 738 } 739`;var d=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let u=class extends r.WF{constructor(){super(),this.unsubscribe=[],this.text="",this.open=n.I.state.open,this.unsubscribe.push(o.I.subscribeKey("view",()=>{n.I.hide()}),s.W.subscribeKey("open",e=>{e||n.I.hide()}),n.I.subscribeKey("open",e=>{this.open=e}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e()),n.I.hide()}render(){return(0,r.qy)` 740 <div 741 @pointermove=${this.onMouseEnter.bind(this)} 742 @pointerleave=${this.onMouseLeave.bind(this)} 743 > 744 ${this.renderChildren()} 745 </div> 746 `}renderChildren(){return(0,r.qy)`<slot></slot> `}onMouseEnter(){let e=this.getBoundingClientRect();if(!this.open){let t=document.querySelector("w3m-modal"),i={width:e.width,height:e.height,left:e.left,top:e.top};if(t){let r=t.getBoundingClientRect();i.left=e.left-(window.innerWidth-r.width)/2,i.top=e.top-(window.innerHeight-r.height)/2}n.I.showTooltip({message:this.text,triggerRect:i,variant:"shade"})}}onMouseLeave(e){this.contains(e.relatedTarget)||n.I.hide()}};u.styles=[c],d([(0,a.MZ)()],u.prototype,"text",void 0),d([(0,a.wk)()],u.prototype,"open",void 0),u=d([(0,l.EM)("w3m-tooltip-trigger")],u)},27905:(e,t,i)=>{let r=i(25190),a=r.getBCHDigit(1335);t.getEncodedBits=function(e,t){let i=e.bit<<3|t,n=i<<10;for(;r.getBCHDigit(n)-a>=0;)n^=1335<<r.getBCHDigit(n)-a;return(i<<10|n)^21522}},28770:(e,t)=>{t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},30047:(e,t,i)=>{"use strict";i(67571)},31237:(e,t,i)=>{"use strict";var r=i(88633),a=i(15274),n=i(62057),o=i(54718),s=i(21621);let l=(0,s.AH)` 747 :host { 748 display: block; 749 width: 100px; 750 height: 100px; 751 } 752 753 svg { 754 width: 100px; 755 height: 100px; 756 } 757 758 rect { 759 fill: none; 760 stroke: ${e=>e.colors.accent100}; 761 stroke-width: 3px; 762 stroke-linecap: round; 763 animation: dash 1s linear infinite; 764 } 765 766 @keyframes dash { 767 to { 768 stroke-dashoffset: 0px; 769 } 770 } 771`;var c=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let d=class extends r.WF{constructor(){super(...arguments),this.radius=36}render(){return this.svgLoaderTemplate()}svgLoaderTemplate(){let e=this.radius>50?50:this.radius,t=36-e;return(0,r.qy)` 772 <svg viewBox="0 0 110 110" width="110" height="110"> 773 <rect 774 x="2" 775 y="2" 776 width="106" 777 height="106" 778 rx=${e} 779 stroke-dasharray="${116+t} ${245+t}" 780 stroke-dashoffset=${360+1.75*t} 781 /> 782 </svg> 783 `}};d.styles=[n.W5,l],c([(0,a.MZ)({type:Number})],d.prototype,"radius",void 0),d=c([(0,o.E)("wui-loading-thumbnail")],d)},31808:(e,t,i)=>{"use strict";var r=i(88633),a=i(15274);i(68006);var n=i(62057),o=i(49146),s=i(54718),l=i(21621);let c=(0,l.AH)` 784 :host { 785 display: block; 786 width: var(--local-width); 787 height: var(--local-height); 788 border-radius: ${({borderRadius:e})=>e[16]}; 789 overflow: hidden; 790 position: relative; 791 } 792 793 :host([data-variant='generated']) { 794 --mixed-local-color-1: var(--local-color-1); 795 --mixed-local-color-2: var(--local-color-2); 796 --mixed-local-color-3: var(--local-color-3); 797 --mixed-local-color-4: var(--local-color-4); 798 --mixed-local-color-5: var(--local-color-5); 799 } 800 801 :host([data-variant='generated']) { 802 background: radial-gradient( 803 var(--local-radial-circle), 804 #fff 0.52%, 805 var(--mixed-local-color-5) 31.25%, 806 var(--mixed-local-color-3) 51.56%, 807 var(--mixed-local-color-2) 65.63%, 808 var(--mixed-local-color-1) 82.29%, 809 var(--mixed-local-color-4) 100% 810 ); 811 } 812 813 :host([data-variant='default']) { 814 background: radial-gradient( 815 75.29% 75.29% at 64.96% 24.36%, 816 #fff 0.52%, 817 #f5ccfc 31.25%, 818 #dba4f5 51.56%, 819 #9a8ee8 65.63%, 820 #6493da 82.29%, 821 #6ebdea 100% 822 ); 823 } 824`;var d=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let u=class extends r.WF{constructor(){super(...arguments),this.imageSrc=void 0,this.alt=void 0,this.address=void 0,this.size="xl"}
824render(){let e={inherit:"inherit",xxs:"3",xs:"5",sm:"6",md:"8",mdl:"8",lg:"10",xl:"16",xxl:"20"};return this.style.cssText=` 825 --local-width: var(--apkt-spacing-${e[this.size??"xl"]}); 826 --local-height: var(--apkt-spacing-${e[this.size??"xl"]}); 827 `,(0,r.qy)`${this.visualTemplate()}`}visualTemplate(){if(this.imageSrc)return this.dataset.variant="image",(0,r.qy)`<wui-image src=${this.imageSrc} alt=${this.alt??"avatar"}></wui-image>`;if(this.address){this.dataset.variant="generated";let e=o.Z.generateAvatarColors(this.address);return this.style.cssText+=` 828 ${e}`,null}return this.dataset.variant="default",null}};u.styles=[n.W5,c],d([(0,a.MZ)()],u.prototype,"imageSrc",void 0),d([(0,a.MZ)()],u.prototype,"alt",void 0),d([(0,a.MZ)()],u.prototype,"address",void 0),d([(0,a.MZ)()],u.prototype,"size",void 0),u=d([(0,s.E)("wui-avatar")],u)},32420:(e,t,i)=>{"use strict";var r=i(88633),a=i(15274);i(17364),i(68006);var n=i(62057),o=i(54718);i(69616);var s=i(21621);let l=(0,s.AH)` 829 :host { 830 position: relative; 831 background-color: ${({tokens:e})=>e.theme.foregroundTertiary}; 832 display: flex; 833 justify-content: center; 834 align-items: center; 835 border-radius: inherit; 836 border-radius: var(--local-border-radius); 837 } 838 839 :host([data-image='true']) { 840 background-color: transparent; 841 } 842 843 :host > wui-flex { 844 overflow: hidden; 845 border-radius: inherit; 846 border-radius: var(--local-border-radius); 847 } 848 849 :host([data-size='sm']) { 850 width: 32px; 851 height: 32px; 852 } 853 854 :host([data-size='md']) { 855 width: 40px; 856 height: 40px; 857 } 858 859 :host([data-size='lg']) { 860 width: 56px; 861 height: 56px; 862 } 863 864 :host([name='Extension'])::after { 865 border: 1px solid ${({colors:e})=>e.accent010}; 866 } 867 868 :host([data-wallet-icon='allWallets'])::after { 869 border: 1px solid ${({colors:e})=>e.accent010}; 870 } 871 872 wui-icon[data-parent-size='inherit'] { 873 width: 75%; 874 height: 75%; 875 align-items: center; 876 } 877 878 wui-icon { 879 color: ${({tokens:e})=>e.theme.iconDefault}; 880 } 881 882 wui-icon[data-parent-size='sm'] { 883 width: 24px; 884 height: 24px; 885 } 886 887 wui-icon[data-parent-size='md'] { 888 width: 32px; 889 height: 32px; 890 } 891 892 :host > wui-icon-box { 893 position: absolute; 894 overflow: hidden; 895 right: -1px; 896 bottom: -2px; 897 z-index: 1; 898 border: 2px solid ${({tokens:e})=>e.theme.backgroundPrimary}; 899 padding: 1px; 900 } 901`;var c=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let d=class extends r.WF{constructor(){super(...arguments),this.size="md",this.name="",this.installed=!1,this.badgeSize="xs"}render(){let e="1";return"lg"===this.size?e="4":"md"===this.size?e="2":"sm"===this.size&&(e="1"),this.style.cssText=` 902 --local-border-radius: var(--apkt-borderRadius-${e}); 903 `,this.dataset.size=this.size,this.imageSrc&&(this.dataset.image="true"),this.walletIcon&&(this.dataset.walletIcon=this.walletIcon),(0,r.qy)` 904 <wui-flex justifyContent="center" alignItems="center"> ${this.templateVisual()} </wui-flex> 905 `}templateVisual(){return this.imageSrc?(0,r.qy)`<wui-image src=${this.imageSrc} alt=${this.name}></wui-image>`:this.walletIcon?(0,r.qy)`<wui-icon size="md" color="default" name=${this.walletIcon}></wui-icon>`:(0,r.qy)`<wui-icon 906 data-parent-size=${this.size} 907 size="inherit" 908 color="inherit" 909 name="wallet" 910 ></wui-icon>`}};d.styles=[n.W5,l],c([(0,a.MZ)()],d.prototype,"size",void 0),c([(0,a.MZ)()],d.prototype,"name",void 0),c([(0,a.MZ)()],d.prototype,"imageSrc",void 0),c([(0,a.MZ)()],d.prototype,"walletIcon",void 0),c([(0,a.MZ)({type:Boolean})],d.prototype,"installed",void 0),c([(0,a.MZ)()],d.prototype,"badgeSize",void 0),d=c([(0,o.E)("wui-wallet-image")],d)},32606:(e,t,i)=>{let r=i(33283);function a(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}a.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},a.prototype.encode=function(e){if(!this.genPoly)throw Error("Encoder not initialized");let t=new Uint8Array(e.length+this.degree);t.set(e);let i=r.mod(t,this.genPoly),a=this.degree-i.length;if(a>0){let e=new Uint8Array(this.degree);return e.set(i,a),e}return i},e.exports=a},32641:(e,t,i)=>{"use strict";var r,a=i(88633),n=i(15274),o=i(25107),s=i(58616),l=i(52238),c=i(40776),d=i(60210),u=i(38195),h=i(34194),p=i(49140),m=i(67789);
910i(86248),i(96402),i(12336),i(8236);var g=i(13894);i(37218);var f=i(62057);!function(e){e.approve="approved",e.bought="bought",e.borrow="borrowed",e.burn="burnt",e.cancel="canceled",e.claim="claimed",e.deploy="deployed",e.deposit="deposited",e.execute="executed",e.mint="minted",e.receive="received",e.repay="repaid",e.send="sent",e.sell="sold",e.stake="staked",e.trade="swapped",e.unstake="unstaked",e.withdraw="withdrawn"}(r||(r={}));var w=i(54718);i(17364),i(68006),i(69616);var y=i(21621);let b=(0,y.AH)` 911 :host > wui-flex { 912 display: flex; 913 justify-content: center; 914 align-items: center; 915 position: relative; 916 width: 40px; 917 height: 40px; 918 box-shadow: inset 0 0 0 1px ${({tokens:e})=>e.core.glass010}; 919 background-color: ${({tokens:e})=>e.theme.foregroundPrimary}; 920 } 921 922 :host([data-no-images='true']) > wui-flex { 923 background-color: ${({tokens:e})=>e.theme.foregroundPrimary}; 924 border-radius: ${({borderRadius:e})=>e[3]} !important; 925 } 926 927 :host > wui-flex wui-image { 928 display: block; 929 } 930 931 :host > wui-flex, 932 :host > wui-flex wui-image, 933 .swap-images-container, 934 .swap-images-container.nft, 935 wui-image.nft { 936 border-top-left-radius: var(--local-left-border-radius); 937 border-top-right-radius: var(--local-right-border-radius); 938 border-bottom-left-radius: var(--local-left-border-radius); 939 border-bottom-right-radius: var(--local-right-border-radius); 940 } 941 942 .swap-images-container { 943 position: relative; 944 width: 40px; 945 height: 40px; 946 overflow: hidden; 947 } 948 949 .swap-images-container wui-image:first-child { 950 position: absolute; 951 width: 40px; 952 height: 40px; 953 top: 0; 954 left: 0%; 955 clip-path: inset(0px calc(50% + 2px) 0px 0%); 956 } 957 958 .swap-images-container wui-image:last-child { 959 clip-path: inset(0px 0px 0px calc(50% + 2px)); 960 } 961 962 .swap-fallback-container { 963 position: absolute; 964 inset: 0; 965 width: 40px; 966 height: 40px; 967 display: flex; 968 align-items: center; 969 justify-content: center; 970 } 971 972 .swap-fallback-container.first { 973 clip-path: inset(0px calc(50% + 2px) 0px 0%); 974 } 975 976 .swap-fallback-container.last { 977 clip-path: inset(0px 0px 0px calc(50% + 2px)); 978 } 979 980 wui-flex.status-box { 981 position: absolute; 982 right: 0; 983 bottom: 0; 984 transform: translate(20%, 20%); 985 border-radius: ${({borderRadius:e})=>e[4]}; 986 background-color: ${({tokens:e})=>e.theme.backgroundPrimary}; 987 box-shadow: 0 0 0 2px ${({tokens:e})=>e.theme.backgroundPrimary}; 988 overflow: hidden; 989 width: 16px; 990 height: 16px; 991 } 992`;var v=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let C=class extends a.WF{constructor(){super(...arguments),this.images=[],this.secondImage={type:void 0,url:""},this.failedImageUrls=new Set}handleImageError(e){return t=>{t.stopPropagation(),this.failedImageUrls.add(e),this.requestUpdate()}}render(){let[e,t]=this.images;this.images.length||(this.dataset.noImages="true");let i=e?.type==="NFT",r=t?.url?"NFT"===t.type:i;return this.style.cssText=` 993 --local-left-border-radius: ${i?"var(--apkt-borderRadius-3)":"var(--apkt-borderRadius-5)"}; 994 --local-right-border-radius: ${r?"var(--apkt-borderRadius-3)":"var(--apkt-borderRadius-5)"}; 995 `,(0,a.qy)`<wui-flex> ${this.templateVisual()} ${this.templateIcon()} </wui-flex>`}templateVisual(){let[e,t]=this.images;return 2===this.images.length&&(e?.url||t?.url)?this.renderSwapImages(e,t):e?.url&&!this.failedImageUrls.has(e.url)?this.renderSingleImage(e):e?.type==="NFT"?this.renderPlaceholderIcon("nftPlaceholder"):this.renderPlaceholderIcon("coinPlaceholder")}renderSwapImages(e,t){return(0,a.qy)`<div class="swap-images-container"> 996 ${e?.url?this.renderImageOrFallback(e,"first",!0):null} 997 ${t?.url?this.renderImageOrFallback(t,"last",!0):null} 998 </div>`}renderSingleImage(e){return this.renderImageOrFallback(e,void 0,!1)}renderImageOrFallback(e,t,i=!1){return e.url?this.failedImageUrls.has(e.url)?i&&t?this.renderFallbackIconInContainer(t):this.renderFallbackIcon():(0,a.qy)`<wui-image 999 src=${e.url} 1000 alt="Transaction image" 1001 @onLoadError=${this.handleImageError(e.url)} 1002 ></wui-image>`:null}renderFallbackIconInContainer(e){return(0,a.qy)`<div class="swap-fallback-container ${e}">${this.renderFallbackIcon()}</div>`}renderFallbackIcon(){return(0,a.qy)`<wui-icon 1003 size="xl" 1004 weight="regular" 1005 color="default" 1006 name="networkPlaceholder" 1007 ></wui-icon>`}renderPlaceholderIcon(e){return(0,a.qy)`<wui-icon size="xl" weight="regular" color="default" name=${e}></wui-icon>`}templateIcon(){let e,t="accent-primary";return(e=this.getIcon(),this.status&&(t=this.getStatusColor()),e)?(0,a.qy)` 1008 <wui-flex alignItems="center" justifyContent="center" class="status-box"> 1009 <wui-icon-box size="sm" color=${t} icon=${e}></wui-icon-box> 1010 </wui-flex> 1011 `:null}getDirectionIcon(){switch(this.direction){case"in":return"arrowBottom";case"out":return"arrowTop";default:return}}getIcon(){return this.onlyDirectionIcon?this.getDirectionIcon():"trade"===this.type?"swapHorizontal":"approve"===this.type?"checkmark":"cancel"===this.type?"close":this.getDirectionIcon()}getStatusColor(){switch(this.status){case"confirmed":return"success";case"failed":return"error";
1011case"pending":return"inverse";default:return"accent-primary"}}};C.styles=[b],v([(0,n.MZ)()],C.prototype,"type",void 0),v([(0,n.MZ)()],C.prototype,"status",void 0),v([(0,n.MZ)()],C.prototype,"direction",void 0),v([(0,n.MZ)({type:Boolean})],C.prototype,"onlyDirectionIcon",void 0),v([(0,n.MZ)({type:Array})],C.prototype,"images",void 0),v([(0,n.MZ)({type:Object})],C.prototype,"secondImage",void 0),v([(0,n.wk)()],C.prototype,"failedImageUrls",void 0),C=v([(0,w.E)("wui-transaction-visual")],C);let x=(0,y.AH)` 1012 :host { 1013 width: 100%; 1014 } 1015 1016 :host > wui-flex:first-child { 1017 align-items: center; 1018 column-gap: ${({spacing:e})=>e[2]}; 1019 padding: ${({spacing:e})=>e[1]} ${({spacing:e})=>e[2]}; 1020 width: 100%; 1021 } 1022 1023 :host > wui-flex:first-child wui-text:nth-child(1) { 1024 text-transform: capitalize; 1025 } 1026 1027 wui-transaction-visual { 1028 width: 40px; 1029 height: 40px; 1030 } 1031 1032 wui-flex { 1033 flex: 1; 1034 } 1035 1036 :host wui-flex wui-flex { 1037 overflow: hidden; 1038 } 1039 1040 :host .description-container wui-text span { 1041 word-break: break-all; 1042 } 1043 1044 :host .description-container wui-text { 1045 overflow: hidden; 1046 } 1047 1048 :host .description-separator-icon { 1049 margin: 0px 6px; 1050 } 1051 1052 :host wui-text > span { 1053 overflow: hidden; 1054 display: -webkit-box; 1055 -webkit-box-orient: vertical; 1056 -webkit-line-clamp: 1; 1057 } 1058`;var E=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let k=class extends a.WF{constructor(){super(...arguments),this.type="approve",this.onlyDirectionIcon=!1,this.images=[]}render(){return(0,a.qy)` 1059 <wui-flex> 1060 <wui-transaction-visual 1061 .status=${this.status} 1062 direction=${(0,g.J)(this.direction)} 1063 type=${this.type} 1064 .onlyDirectionIcon=${this.onlyDirectionIcon} 1065 .images=${this.images} 1066 ></wui-transaction-visual> 1067 <wui-flex flexDirection="column" gap="1"> 1068 <wui-text variant="lg-medium" color="primary"> 1069 ${r[this.type]||this.type} 1070 </wui-text> 1071 <wui-flex class="description-container"> 1072 ${this.templateDescription()} ${this.templateSecondDescription()} 1073 </wui-flex> 1074 </wui-flex> 1075 <wui-text variant="sm-medium" color="secondary"><span>${this.date}</span></wui-text> 1076 </wui-flex> 1077 `}templateDescription(){let e=this.descriptions?.[0];return e?(0,a.qy)` 1078 <wui-text variant="md-regular" color="secondary"> 1079 <span>${e}</span> 1080 </wui-text> 1081 `:null}templateSecondDescription(){let e=this.descriptions?.[1];return e?(0,a.qy)` 1082 <wui-icon class="description-separator-icon" size="sm" name="arrowRight"></wui-icon> 1083 <wui-text variant="md-regular" color="secondary"> 1084 <span>${e}</span> 1085 </wui-text> 1086 `:null}};k.styles=[f.W5,x],E([(0,n.MZ)()],k.prototype,"type",void 0),E([(0,n.MZ)({type:Array})],k.prototype,"descriptions",void 0),E([(0,n.MZ)()],k.prototype,"date",void 0),E([(0,n.MZ)({type:Boolean})],k.prototype,"onlyDirectionIcon",void 0),E([(0,n.MZ)()],k.prototype,"status",void 0),E([(0,n.MZ)()],k.prototype,"direction",void 0),E([(0,n.MZ)({type:Array})],k.prototype,"images",void 0),k=E([(0,w.E)("wui-transaction-list-item")],k),i(7368),i(89496);let A=(0,y.AH)` 1087 wui-flex { 1088 position: relative; 1089 display: inline-flex; 1090 justify-content: center; 1091 align-items: center; 1092 } 1093 1094 wui-image { 1095 border-radius: ${({borderRadius:e})=>e[128]}; 1096 } 1097 1098 .fallback-icon { 1099 color: ${({tokens:e})=>e.theme.iconInverse}; 1100 border-radius: ${({borderRadius:e})=>e[3]}; 1101 background-color: ${({tokens:e})=>e.theme.foregroundPrimary}; 1102 } 1103 1104 .direction-icon, 1105 .status-image { 1106 position: absolute; 1107 right: 0; 1108 bottom: 0; 1109 border-radius: ${({borderRadius:e})=>e[128]}; 1110 border: 2px solid ${({tokens:e})=>e.theme.backgroundPrimary}; 1111 } 1112 1113 .direction-icon { 1114 padding: ${({spacing:e})=>e["01"]}; 1115 color: ${({tokens:e})=>e.core.iconSuccess}; 1116 1117 background-color: color-mix( 1118 in srgb, 1119 ${({tokens:e})=>e.core.textSuccess} 30%, 1120 ${({tokens:e})=>e.theme.backgroundPrimary} 70% 1121 ); 1122 } 1123 1124 /* -- Sizes --------------------------------------------------- */ 1125 :host([data-size='sm']) > wui-image:not(.status-image), 1126 :host([data-size='sm']) > wui-flex { 1127 width: 24px; 1128 height: 24px; 1129 } 1130 1131 :host([data-size='lg']) > wui-image:not(.status-image), 1132 :host([data-size='lg']) > wui-flex { 1133 width: 40px; 1134 height: 40px; 1135 } 1136 1137 :host([data-size='sm']) .fallback-icon { 1138 height: 16px; 1139 width: 16px; 1140 padding: ${({spacing:e})=>e[1]}; 1141 } 1142 1143 :host([data-size='lg']) .fallback-icon { 1144 height: 32px; 1145 width: 32px; 1146 padding: ${({spacing:e})=>e[1]}; 1147 } 1148 1149 :host([data-size='sm']) .direction-icon, 1150 :host([data-size='sm']) .status-image { 1151 transform: translate(40%, 30%); 1152 } 1153 1154 :host([data-size='lg']) .direction-icon, 1155 :host([data-size='lg']) .status-image { 1156 transform: translate(40%, 10%); 1157 } 1158 1159 :host([data-size='sm']) .status-image { 1160 height: 14px; 1161 width: 14px; 1162 } 1163 1164 :host([data-size='lg']) .status-image { 1165 height: 20px;
1166 width: 20px; 1167 } 1168 1169 /* -- Crop effects --------------------------------------------------- */ 1170 .swap-crop-left-image, 1171 .swap-crop-right-image { 1172 position: absolute; 1173 top: 0; 1174 bottom: 0; 1175 } 1176 1177 .swap-crop-left-image { 1178 left: 0; 1179 clip-path: inset(0px calc(50% + 1.5px) 0px 0%); 1180 } 1181 1182 .swap-crop-right-image { 1183 right: 0; 1184 clip-path: inset(0px 0px 0px calc(50% + 1.5px)); 1185 } 1186`;var $=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let _={sm:"xxs",lg:"md"},N=class extends a.WF{constructor(){super(...arguments),this.type="approve",this.size="lg",this.statusImageUrl="",this.images=[]}render(){return(0,a.qy)`<wui-flex>${this.templateVisual()} ${this.templateIcon()}</wui-flex>`}templateVisual(){switch(this.dataset.size=this.size,this.type){case"trade":return this.swapTemplate();case"fiat":return this.fiatTemplate();case"unknown":return this.unknownTemplate();default:return this.tokenTemplate()}}swapTemplate(){let[e,t]=this.images;return 2===this.images.length&&(e||t)?(0,a.qy)` 1187 <wui-image class="swap-crop-left-image" src=${e} alt="Swap image"></wui-image> 1188 <wui-image class="swap-crop-right-image" src=${t} alt="Swap image"></wui-image> 1189 `:e?(0,a.qy)`<wui-image src=${e} alt="Swap image"></wui-image>`:null}fiatTemplate(){return(0,a.qy)`<wui-icon 1190 class="fallback-icon" 1191 size=${_[this.size]} 1192 name="dollar" 1193 ></wui-icon>`}unknownTemplate(){return(0,a.qy)`<wui-icon 1194 class="fallback-icon" 1195 size=${_[this.size]} 1196 name="questionMark" 1197 ></wui-icon>`}tokenTemplate(){let[e]=this.images;return e?(0,a.qy)`<wui-image src=${e} alt="Token image"></wui-image> `:(0,a.qy)`<wui-icon 1198 class="fallback-icon" 1199 name=${"nft"===this.type?"image":"coinPlaceholder"} 1200 ></wui-icon>`}templateIcon(){return this.statusImageUrl?(0,a.qy)`<wui-image 1201 class="status-image" 1202 src=${this.statusImageUrl} 1203 alt="Status image" 1204 ></wui-image>`:(0,a.qy)`<wui-icon 1205 class="direction-icon" 1206 size=${_[this.size]} 1207 name=${this.getTemplateIcon()} 1208 ></wui-icon>`}getTemplateIcon(){return"trade"===this.type?"arrowClockWise":"arrowBottom"}};N.styles=[A],$([(0,n.MZ)()],N.prototype,"type",void 0),$([(0,n.MZ)()],N.prototype,"size",void 0),$([(0,n.MZ)()],N.prototype,"statusImageUrl",void 0),$([(0,n.MZ)({type:Array})],N.prototype,"images",void 0),N=$([(0,w.E)("wui-transaction-thumbnail")],N);let S=(0,y.AH)` 1209 :host > wui-flex:first-child { 1210 gap: ${({spacing:e})=>e[2]}; 1211 padding: ${({spacing:e})=>e[3]}; 1212 width: 100%; 1213 } 1214 1215 wui-flex { 1216 display: flex; 1217 flex: 1; 1218 } 1219`,T=class extends a.WF{render(){return(0,a.qy)` 1220 <wui-flex alignItems="center" .padding=${["1","2","1","2"]}> 1221 <wui-shimmer width="40px" height="40px" rounded></wui-shimmer> 1222 <wui-flex flexDirection="column" gap="1"> 1223 <wui-shimmer width="124px" height="16px" rounded></wui-shimmer> 1224 <wui-shimmer width="60px" height="14px" rounded></wui-shimmer> 1225 </wui-flex> 1226 <wui-shimmer width="24px" height="12px" rounded></wui-shimmer> 1227 </wui-flex> 1228 `}};T.styles=[f.W5,S],T=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o}([(0,w.E)("wui-transaction-list-item-loader")],T);var R=i(33579);let I=(0,m.AH)` 1229 :host { 1230 min-height: 100%; 1231 } 1232 1233 .group-container[last-group='true'] { 1234 padding-bottom: ${({spacing:e})=>e["3"]}; 1235 } 1236 1237 .contentContainer { 1238 height: 280px; 1239 } 1240 1241 .contentContainer > wui-icon-box { 1242 width: 40px; 1243 height: 40px; 1244 border-radius: ${({borderRadius:e})=>e["3"]}; 1245 } 1246 1247 .contentContainer > .textContent { 1248 width: 65%; 1249 } 1250 1251 .emptyContainer { 1252 height: 100%; 1253 } 1254`;var P=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let O="last-transaction",M=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.paginationObserver=void 0,this.page="activity",this.caipAddress=s.W.state.activeCaipAddress,this.transactionsByYear=l.W.state.transactionsByYear,this.loading=l.W.state.loading,this.empty=l.W.state.empty,this.next=l.W.state.next,l.W.clearCursor(
1254),this.unsubscribe.push(s.W.subscribeKey("activeCaipAddress",e=>{e&&this.caipAddress!==e&&(l.W.resetTransactions(),l.W.fetchTransactions(e)),this.caipAddress=e}),s.W.subscribeKey("activeCaipNetwork",()=>{this.updateTransactionView()}),l.W.subscribe(e=>{this.transactionsByYear=e.transactionsByYear,this.loading=e.loading,this.empty=e.empty,this.next=e.next}))}firstUpdated(){this.updateTransactionView(),this.createPaginationObserver()}updated(){this.setPaginationObserver()}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,a.qy)` ${this.empty?null:this.templateTransactionsByYear()} 1255 ${this.loading?this.templateLoading():null} 1256 ${!this.loading&&this.empty?this.templateEmpty():null}`}updateTransactionView(){l.W.resetTransactions(),this.caipAddress&&l.W.fetchTransactions(c.w.getPlainAddress(this.caipAddress))}templateTransactionsByYear(){return Object.keys(this.transactionsByYear).sort().reverse().map(e=>{let t=parseInt(e,10),i=Array(12).fill(null).map((e,i)=>({groupTitle:m.tt.getTransactionGroupTitle(t,i),transactions:this.transactionsByYear[t]?.[i]})).filter(({transactions:e})=>e).reverse();return i.map(({groupTitle:e,transactions:t},r)=>{let n=r===i.length-1;return t?(0,a.qy)` 1257 <wui-flex 1258 flexDirection="column" 1259 class="group-container" 1260 last-group="${n?"true":"false"}" 1261 data-testid="month-indexes" 1262 > 1263 <wui-flex 1264 alignItems="center" 1265 flexDirection="row" 1266 .padding=${["2","3","3","3"]} 1267 > 1268 <wui-text variant="md-medium" color="secondary" data-testid="group-title"> 1269 ${e} 1270 </wui-text> 1271 </wui-flex> 1272 <wui-flex flexDirection="column" gap="2"> 1273 ${this.templateTransactions(t,n)} 1274 </wui-flex> 1275 </wui-flex> 1276 `:null})})}templateRenderTransaction(e,t){let{date:i,descriptions:r,direction:n,images:o,status:s,type:l,transfers:c,isAllNFT:d}=this.getTransactionListItemProps(e);return(0,a.qy)` 1277 <wui-transaction-list-item 1278 date=${i} 1279 .direction=${n} 1280 id=${t&&this.next?O:""} 1281 status=${s} 1282 type=${l} 1283 .images=${o} 1284 .onlyDirectionIcon=${d||1===c.length} 1285 .descriptions=${r} 1286 ></wui-transaction-list-item> 1287 `}templateTransactions(e,t){return e.map((i,r)=>{let n=t&&r===e.length-1;return(0,a.qy)`${this.templateRenderTransaction(i,n)}`})}emptyStateActivity(){return(0,a.qy)`<wui-flex 1288 class="emptyContainer" 1289 flexGrow="1" 1290 flexDirection="column" 1291 justifyContent="center" 1292 alignItems="center" 1293 .padding=${["10","5","10","5"]} 1294 gap="5" 1295 data-testid="empty-activity-state" 1296 > 1297 <wui-icon-box color="default" icon="wallet" size="xl"></wui-icon-box> 1298 <wui-flex flexDirection="column" alignItems="center" gap="2"> 1299 <wui-text align="center" variant="lg-medium" color="primary">No Transactions yet</wui-text> 1300 <wui-text align="center" variant="lg-regular" color="secondary" 1301 >Start trading on dApps <br /> 1302 to grow your wallet!</wui-text 1303 > 1304 </wui-flex> 1305 </wui-flex>`}emptyStateAccount(){return(0,a.qy)`<wui-flex 1306 class="contentContainer" 1307 alignItems="center" 1308 justifyContent="center" 1309 flexDirection="column" 1310 gap="4" 1311 data-testid="empty-account-state" 1312 > 1313 <wui-icon-box icon="swapHorizontal" size="lg" color="default"></wui-icon-box> 1314 <wui-flex 1315 class="textContent" 1316 gap="2" 1317 flexDirection="column" 1318 justifyContent="center" 1319 flexDirection="column" 1320 > 1321 <wui-text variant="md-regular" align="center" color="primary">No activity yet</wui-text> 1322 <wui-text variant="sm-regular" align="center" color="secondary" 1323 >Your next transactions will appear here</wui-text 1324 > 1325 </wui-flex> 1326 <wui-link @click=${this.onReceiveClick.bind(this)}>Trade</wui-link> 1327 </wui-flex>`}templateEmpty(){return"account"===this.page?(0,a.qy)`${this.emptyStateAccount()}`:(0,a.qy)`${this.emptyStateActivity()}`}templateLoading(){return"activity"===this.page?(0,a.qy)` <wui-flex flexDirection="column" width="100%"> 1328 <wui-flex .padding=${["2","3","3","3"]}>
1329 <wui-shimmer width="70px" height="16px" rounded></wui-shimmer> 1330 </wui-flex> 1331 <wui-flex flexDirection="column" gap="2" width="100%"> 1332 ${Array(7).fill((0,a.qy)` <wui-transaction-list-item-loader></wui-transaction-list-item-loader> `).map(e=>e)} 1333 </wui-flex> 1334 </wui-flex>`:null}onReceiveClick(){d.I.push("WalletReceive")}createPaginationObserver(){let{projectId:e}=u.H.state;this.paginationObserver=new IntersectionObserver(([t])=>{t?.isIntersecting&&!this.loading&&(l.W.fetchTransactions(c.w.getPlainAddress(this.caipAddress)),h.E.sendEvent({type:"track",event:"LOAD_MORE_TRANSACTIONS",properties:{address:c.w.getPlainAddress(this.caipAddress),projectId:e,cursor:this.next,isSmartAccount:(0,p.lj)(s.W.state.activeChain)===R.Vl.ACCOUNT_TYPES.SMART_ACCOUNT}}))},{}),this.setPaginationObserver()}setPaginationObserver(){this.paginationObserver?.disconnect();let e=this.shadowRoot?.querySelector(`#${O}`);e&&this.paginationObserver?.observe(e)}getTransactionListItemProps(e){let t=o.r.formatDate(e?.metadata?.minedAt),i=m.tt.mergeTransfers(e?.transfers||[]),r=m.tt.getTransactionDescriptions(e,i),a=i?.[0],n=!!a&&i?.every(e=>!!e.nft_info),s=m.tt.getTransactionImages(i);return{date:t,direction:a?.direction,descriptions:r,isAllNFT:n,images:s,status:e.metadata?.status,transfers:i,type:e.metadata?.operationType}}};M.styles=I,P([(0,n.MZ)()],M.prototype,"page",void 0),P([(0,n.wk)()],M.prototype,"caipAddress",void 0),P([(0,n.wk)()],M.prototype,"transactionsByYear",void 0),P([(0,n.wk)()],M.prototype,"loading",void 0),P([(0,n.wk)()],M.prototype,"empty",void 0),P([(0,n.wk)()],M.prototype,"next",void 0),M=P([(0,m.EM)("w3m-activity-list")],M)},32971:(e,t,i)=>{"use strict";var r=i(88633),a=i(15274),n=i(87352),o=i(38195),s=i(67789),l=i(13894),c=i(69137);i(17364),i(37218);var d=i(62057),u=i(54718),h=i(21621);let p=(0,h.AH)` 1335 label { 1336 display: inline-flex; 1337 align-items: center; 1338 cursor: pointer; 1339 user-select: none; 1340 column-gap: ${({spacing:e})=>e[2]}; 1341 } 1342 1343 label > input[type='checkbox'] { 1344 height: 0; 1345 width: 0; 1346 opacity: 0; 1347 position: absolute; 1348 } 1349 1350 label > span { 1351 display: flex; 1352 align-items: center; 1353 justify-content: center; 1354 height: 100%; 1355 width: 100%; 1356 border: 1px solid ${({colors:e})=>e.neutrals400}; 1357 color: ${({colors:e})=>e.white}; 1358 background-color: transparent; 1359 will-change: border-color, background-color; 1360 } 1361 1362 label > span > wui-icon { 1363 opacity: 0; 1364 will-change: opacity; 1365 } 1366 1367 label > input[type='checkbox']:checked + span > wui-icon { 1368 color: ${({colors:e})=>e.white}; 1369 } 1370 1371 label > input[type='checkbox']:not(:checked) > span > wui-icon { 1372 color: ${({colors:e})=>e.neutrals900}; 1373 } 1374 1375 label > input[type='checkbox']:checked + span > wui-icon { 1376 opacity: 1; 1377 } 1378 1379 /* -- Sizes --------------------------------------------------- */ 1380 label[data-size='lg'] > span { 1381 width: 24px; 1382 height: 24px; 1383 min-width: 24px; 1384 min-height: 24px; 1385 border-radius: ${({borderRadius:e})=>e[10]}; 1386 } 1387 1388 label[data-size='md'] > span { 1389 width: 20px; 1390 height: 20px; 1391 min-width: 20px; 1392 min-height: 20px; 1393 border-radius: ${({borderRadius:e})=>e[2]}; 1394 } 1395 1396 label[data-size='sm'] > span { 1397 width: 16px; 1398 height: 16px; 1399 min-width: 16px; 1400 min-height: 16px; 1401 border-radius: ${({borderRadius:e})=>e[1]}; 1402 } 1403 1404 /* -- Focus states --------------------------------------------------- */ 1405 label > input[type='checkbox']:focus-visible + span, 1406 label > input[type='checkbox']:focus + span { 1407 border: 1px solid ${({tokens:e})=>e.core.borderAccentPrimary}; 1408 box-shadow: 0px 0px 0px 4px rgba(9, 136, 240, 0.2); 1409 } 1410 1411 /* -- Checked states --------------------------------------------------- */ 1412 label > input[type='checkbox']:checked + span { 1413 background-color: ${({tokens:e})=>e.core.iconAccentPrimary}; 1414 border: 1px solid transparent; 1415 } 1416 1417 /* -- Hover states --------------------------------------------------- */ 1418 input[type='checkbox']:not(:checked):not(:disabled) + span:hover { 1419 border: 1px solid ${({colors:e})=>e.neutrals700}; 1420 background-color: ${({colors:e})=>e.neutrals800}; 1421 box-shadow: none; 1422 } 1423 1424 input[type='checkbox']:checked:not(:disabled) + span:hover { 1425 border: 1px solid transparent; 1426 background-color: ${({colors:e})=>e.accent080}; 1427 box-shadow: none; 1428 } 1429 1430 /* -- Disabled state --------------------------------------------------- */ 1431 label > input[type='checkbox']:checked:disabled + span { 1432 border: 1px solid transparent; 1433 opacity: 0.3; 1434 } 1435 1436 label > input[type='checkbox']:not(:checked):disabled + span { 1437 border: 1px solid ${({colors:e})=>e.neutrals700}; 1438 } 1439 1440 label:has(input[type='checkbox']:disabled) { 1441 cursor: auto; 1442 } 1443 1444 label > input[type='checkbox']:disabled + span {
1445 cursor: not-allowed; 1446 } 1447`;var m=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let g={lg:"md",md:"sm",sm:"sm"},f=class extends r.WF{constructor(){super(...arguments),this.inputElementRef=(0,c._)(),this.checked=void 0,this.disabled=!1,this.size="md"}render(){let e=g[this.size];return(0,r.qy)` 1448 <label data-size=${this.size}> 1449 <input 1450 ${(0,c.K)(this.inputElementRef)} 1451 ?checked=${(0,l.J)(this.checked)} 1452 ?disabled=${this.disabled} 1453 type="checkbox" 1454 @change=${this.dispatchChangeEvent} 1455 /> 1456 <span> 1457 <wui-icon name="checkmarkBold" size=${e}></wui-icon> 1458 </span> 1459 <slot></slot> 1460 </label> 1461 `}dispatchChangeEvent(){this.dispatchEvent(new CustomEvent("checkboxChange",{detail:this.inputElementRef.value?.checked,bubbles:!0,composed:!0}))}};f.styles=[d.W5,p],m([(0,a.MZ)({type:Boolean})],f.prototype,"checked",void 0),m([(0,a.MZ)({type:Boolean})],f.prototype,"disabled",void 0),m([(0,a.MZ)()],f.prototype,"size",void 0),f=m([(0,u.E)("wui-checkbox")],f),i(8236);let w=(0,s.AH)` 1462 :host { 1463 display: flex; 1464 align-items: center; 1465 justify-content: center; 1466 } 1467 wui-checkbox { 1468 padding: ${({spacing:e})=>e["3"]}; 1469 } 1470 a { 1471 text-decoration: none; 1472 color: ${({tokens:e})=>e.theme.textSecondary}; 1473 font-weight: 500; 1474 } 1475`;var y=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let b=class extends r.WF{constructor(){super(),this.unsubscribe=[],this.checked=n.o.state.isLegalCheckboxChecked,this.unsubscribe.push(n.o.subscribeKey("isLegalCheckboxChecked",e=>{this.checked=e}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let{termsConditionsUrl:e,privacyPolicyUrl:t}=o.H.state,i=o.H.state.features?.legalCheckbox;return(e||t)&&i?(0,r.qy)` 1476 <wui-checkbox 1477 ?checked=${this.checked} 1478 @checkboxChange=${this.onCheckboxChange.bind(this)} 1479 data-testid="wui-checkbox" 1480 > 1481 <wui-text color="secondary" variant="sm-regular" align="left"> 1482 I agree to our ${this.termsTemplate()} ${this.andTemplate()} ${this.privacyTemplate()} 1483 </wui-text> 1484 </wui-checkbox> 1485 `:null}andTemplate(){let{termsConditionsUrl:e,privacyPolicyUrl:t}=o.H.state;return e&&t?"and":""}termsTemplate(){let{termsConditionsUrl:e}=o.H.state;return e?(0,r.qy)`<a rel="noreferrer" target="_blank" href=${e}>terms of service</a>`:null}privacyTemplate(){let{privacyPolicyUrl:e}=o.H.state;return e?(0,r.qy)`<a rel="noreferrer" target="_blank" href=${e}>privacy policy</a>`:null}onCheckboxChange(){n.o.setIsLegalCheckboxChecked(!this.checked)}};b.styles=[w],y([(0,a.wk)()],b.prototype,"checked",void 0),b=y([(0,s.EM)("w3m-legal-checkbox")],b)},33283:(e,t,i)=>{let r=i(64989);t.mul=function(e,t){let i=new Uint8Array(e.length+t.length-1);for(let a=0;a<e.length;a++)for(let n=0;n<t.length;n++)i[a+n]^=r.mul(e[a],t[n]);return i},t.mod=function(e,t){let i=new Uint8Array(e);for(;i.length-t.length>=0;){let e=i[0];for(let a=0;a<t.length;a++)i[a]^=r.mul(t[a],e);let a=0;for(;a<i.length&&0===i[a];)a++;i=i.slice(a)}return i},t.generateECPolynomial=function(e){let i=new Uint8Array([1]);for(let a=0;a<e;a++)i=t.mul(i,new Uint8Array([1,r.exp(a)]));return i}},33316:(e,t,i)=>{"use strict";var r=i(88633),a=i(15274),n=i(13894);i(17364),i(68006),i(37218),i(89496);var o=i(62057),s=i(49146),l=i(54718),c=i(21621);let d=(0,c.AH)` 1486 button { 1487 display: flex; 1488 align-items: center; 1489 height: 40px; 1490 padding: ${({spacing:e})=>e[2]}; 1491 border-radius: ${({borderRadius:e})=>e[4]}; 1492 column-gap: ${({spacing:e})=>e[1]}; 1493 background-color: transparent; 1494 transition: background-color ${({durations:e})=>e.lg} 1495 ${({easings:e})=>e["ease-out-power-2"]}; 1496 will-change: background-color; 1497 } 1498 1499 wui-image, 1500 .icon-box { 1501 width: ${({spacing:e})=>e[6]}; 1502 height: ${({spacing:e})=>e[6]}; 1503 border-radius: ${({borderRadius:e})=>e[4]}; 1504 } 1505 1506 wui-text { 1507 flex: 1; 1508 } 1509 1510 .icon-box { 1511 position: relative; 1512 } 1513 1514 .icon-box[data-active='true'] { 1515 background-color: ${({tokens:e})=>e.theme.foregroundSecondary}; 1516 } 1517 1518 .circle { 1519 position: absolute; 1520 left: 16px; 1521 top: 15px; 1522 width: 8px; 1523 height: 8px; 1524 background-color: ${({tokens:e})=>e.core.textSuccess}; 1525 box-shadow: 0 0 0 2px ${({tokens:e})=>e.theme.foregroundPrimary}; 1526 border-radius: 50%; 1527 } 1528 1529 /* -- Hover & Active states ----------------------------------------------------------- */ 1530 @media (hover: hover) { 1531 button:hover:enabled, 1532 button:active:enabled { 1533 background-color: ${({tokens:e})=>e.theme.foregroundPrimary}; 1534 } 1535 } 1536`;var u=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let h=class extends r.WF{constructor(){super(...arguments),this.address="",this.profileName="",this.alt="",this.imageSrc="",this.icon=void 0,this.iconSize="md",this.enableGreenCircle=!0,this.loading=!1,this.charsStart=4,this.charsEnd=6}render(){return(0,r.qy)` 1537 <button> 1538 ${this.leftImageTemplate()} ${this.textTemplate()} ${this.rightImageTemplate()} 1539 </button> 1540 `}leftImageTemplate(){let e=this.icon?(0,r.qy)`<wui-icon 1541 size=${(0,n.J)(this.iconSize)} 1542 color="default" 1543 name=${this.icon} 1544 class="icon" 1545 ></wui-icon>`:(0,r.qy)`<wui-image src=${this.imageSrc} alt=${this.alt}></wui-image>`;return(0,r.qy)` 1546 <wui-flex 1547 alignItems="center" 1548 justifyContent="center" 1549 class="icon-box" 1550 data-active=${!!this.icon} 1551 > 1552 ${e} 1553 ${this.enableGreenCircle?(0,r.qy)`<wui-flex class="circle"></wui-flex>`:null} 1554 </wui-flex> 1555 `}textTemplate(){return(0,r.qy)` 1556 <wui-text variant="lg-regular" color="primary"> 1557 ${s.Z.getTruncateString({string:this.profileName||this.address,charsStart:this.profileName?16:this.charsStart,charsEnd:this.profileName?0:this.charsEnd,truncate:this.profileName?"end":"middle"})} 1558 </wui-text> 1559 `}rightImageTemplate(){return(0,r.qy)`<wui-icon name="chevronBottom" size="sm" color="default"></wui-icon>`}};h.styles=[o.W5,o.fD,d],u([(0,a.MZ)()],h.prototype,"address",void 0),u([(0,a.MZ)()],h.prototype,"profileName",void 0),u([(0,a.MZ)()],h.prototype,"alt",void 0),u([(0,a.MZ)()],h.prototype,"imageSrc",void 0),u([(0,a.MZ)()],h.prototype,"icon",void 0),u([(0,a.MZ)()],h.prototype,"iconSize",void 0),u([(0,a.MZ)({type:Boolean})],h.prototype,"enableGreenCircle",void 0),u([(0,a.MZ)({type:Boolean})],h.prototype,"loading",void 0),u([(0,a.MZ)({type:Number})],h.prototype,"charsStart",void 0),u([(0,a.MZ)({type:Number})],h.prototype,"charsEnd",void 0),h=u([(0,l.E)("wui-wallet-switch")],h)},34641:(e,t,i)=>{"use strict";i(21981)},35629:(e,t,i)=>{"use strict";var r=i(88633),a=i(15274),n=i(13894);i(37218);var o=i(62057),s=i(54718);i(4438);var l=i(21621);let c=(0,l.AH)` 1560 :host { 1561 width: 100%; 1562 } 1563 1564 button { 1565 display: flex; 1566 align-items: center; 1567 justify-content: space-between; 1568 padding: ${({spacing:e})=>e[3]}; 1569 width: 100%; 1570 background-color: transparent; 1571 border-radius: ${({borderRadius:e})=>e[4]}; 1572 } 1573 1574 wui-text { 1575 text-transform: capitalize; 1576 } 1577 1578 @media (hover: hover) { 1579 button:hover:enabled { 1580 background-color: ${({tokens:e})=>e.theme.foregroundPrimary}; 1581 } 1582 } 1583 1584 button:disabled { 1585 opacity: 0.5;
1586 cursor: not-allowed; 1587 } 1588`;var d=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let u=class extends r.WF{constructor(){super(...arguments),this.logo="google",this.name="Continue with google",this.disabled=!1}render(){return(0,r.qy)` 1589 <button ?disabled=${this.disabled} tabindex=${(0,n.J)(this.tabIdx)}> 1590 <wui-flex gap="2" alignItems="center"> 1591 <wui-image ?boxed=${!0} logo=${this.logo}></wui-image> 1592 <wui-text variant="lg-regular" color="primary">${this.name}</wui-text> 1593 </wui-flex> 1594 <wui-icon name="chevronRight" size="lg" color="default"></wui-icon> 1595 </button> 1596 `}};u.styles=[o.W5,o.fD,c],d([(0,a.MZ)()],u.prototype,"logo",void 0),d([(0,a.MZ)()],u.prototype,"name",void 0),d([(0,a.MZ)()],u.prototype,"tabIdx",void 0),d([(0,a.MZ)({type:Boolean})],u.prototype,"disabled",void 0),u=d([(0,s.E)("wui-list-social")],u)},37218:(e,t,i)=>{"use strict";var r=i(88633),a=i(15274),n=i(4456),o=i(21621),s=i(62057),l=i(54718);let c=(0,o.AH)` 1597 slot { 1598 width: 100%; 1599 display: inline-block; 1600 font-style: normal; 1601 overflow: inherit; 1602 text-overflow: inherit; 1603 text-align: var(--local-align); 1604 color: var(--local-color); 1605 } 1606 1607 .wui-line-clamp-1 { 1608 overflow: hidden; 1609 display: -webkit-box; 1610 -webkit-box-orient: vertical; 1611 -webkit-line-clamp: 1; 1612 } 1613 1614 .wui-line-clamp-2 { 1615 overflow: hidden; 1616 display: -webkit-box; 1617 -webkit-box-orient: vertical; 1618 -webkit-line-clamp: 2; 1619 } 1620 1621 /* -- Headings --------------------------------------------------- */ 1622 .wui-font-h1-regular-mono { 1623 font-size: ${({textSize:e})=>e.h1}; 1624 line-height: ${({typography:e})=>e["h1-regular-mono"].lineHeight}; 1625 letter-spacing: ${({typography:e})=>e["h1-regular-mono"].letterSpacing}; 1626 font-weight: ${({fontWeight:e})=>e.regular}; 1627 font-family: ${({fontFamily:e})=>e.mono}; 1628 } 1629 1630 .wui-font-h1-regular { 1631 font-size: ${({textSize:e})=>e.h1}; 1632 line-height: ${({typography:e})=>e["h1-regular"].lineHeight}; 1633 letter-spacing: ${({typography:e})=>e["h1-regular"].letterSpacing}; 1634 font-weight: ${({fontWeight:e})=>e.regular}; 1635 font-family: ${({fontFamily:e})=>e.regular}; 1636 font-feature-settings: 1637 'liga' off, 1638 'clig' off; 1639 } 1640 1641 .wui-font-h1-medium { 1642 font-size: ${({textSize:e})=>e.h1}; 1643 line-height: ${({typography:e})=>e["h1-medium"].lineHeight}; 1644 letter-spacing: ${({typography:e})=>e["h1-medium"].letterSpacing}; 1645 font-weight: ${({fontWeight:e})=>e.medium}; 1646 font-family: ${({fontFamily:e})=>e.regular}; 1647 font-feature-settings: 1648 'liga' off, 1649 'clig' off; 1650 } 1651 1652 .wui-font-h2-regular-mono { 1653 font-size: ${({textSize:e})=>e.h2}; 1654 line-height: ${({typography:e})=>e["h2-regular-mono"].lineHeight}; 1655 letter-spacing: ${({typography:e})=>e["h2-regular-mono"].letterSpacing}; 1656 font-weight: ${({fontWeight:e})=>e.regular}; 1657 font-family: ${({fontFamily:e})=>e.mono}; 1658 } 1659 1660 .wui-font-h2-regular { 1661 font-size: ${({textSize:e})=>e.h2}; 1662 line-height: ${({typography:e})=>e["h2-regular"].lineHeight}; 1663 letter-spacing: ${({typography:e})=>e["h2-regular"].letterSpacing}; 1664 font-weight: ${({fontWeight:e})=>e.regular}; 1665 font-family: ${({fontFamily:e})=>e.regular}; 1666 font-feature-settings: 1667 'liga' off, 1668 'clig' off; 1669 } 1670 1671 .wui-font-h2-medium { 1672 font-size: ${({textSize:e})=>e.h2}; 1673 line-height: ${({typography:e})=>e["h2-medium"].lineHeight}; 1674 letter-spacing: ${({typography:e})=>e["h2-medium"].letterSpacing}; 1675 font-weight: ${({fontWeight:e})=>e.medium}; 1676 font-family: ${({fontFamily:e})=>e.regular}; 1677 font-feature-settings: 1678 'liga' off, 1679 'clig' off; 1680 } 1681 1682 .wui-font-h3-regular-mono { 1683 font-size: ${({textSize:e})=>e.h3}; 1684 line-height: ${({typography:e})=>e["h3-regular-mono"].lineHeight}; 1685 letter-spacing: ${({typography:e})=>e["h3-regular-mono"].letterSpacing}; 1686 font-weight: ${({fontWeight:e})=>e.regular}; 1687 font-family: ${({fontFamily:e})=>e.mono}; 1688 } 1689 1690 .wui-font-h3-regular { 1691 font-size: ${({textSize:e})=>e.h3}; 1692 line-height: ${({typography:e})=>e["h3-regular"].lineHeight}; 1693 letter-spacing: ${({typography:e})=>e["h3-regular"].letterSpacing}; 1694 font-weight: ${({fontWeight:e})=>e.regular}; 1695 font-family: ${({fontFamily:e})=>e.regular}; 1696 font-feature-settings: 1697 'liga' off, 1698 'clig' off; 1699 } 1700 1701 .wui-font-h3-medium { 1702 font-size: ${({textSize:e})=>e.h3}; 1703 line-height: ${({typography:e})=>e["h3-medium"].lineHeight}; 1704 letter-spacing: ${({typography:e})=>e["h3-medium"].letterSpacing}; 1705 font-weight: ${({fontWeight:e})=>e.medium}; 1706 font-family: ${({fontFamily:e})=>e.regular}; 1707 font-feature-settings: 1708 'liga' off, 1709 'clig' off; 1710 } 1711 1712 .wui-font-h4-regular-mono { 1713 font-size: ${({textSize:e})=>e.h4}; 1714 line-height: ${({typography:e})=>e["h4-regular-mono"].lineHeight}; 1715 letter-spacing: ${({typography:e})=>e["h4-regular-mono"].letterSpacing}; 1716 font-weight: ${({fontWeight:e})=>e.regular}; 1717 font-family: ${({fontFamily:e})=>e.mono}; 1718 } 1719 1720 .wui-font-h4-regular { 1721 font-size: ${({textSize:e})=>e.h4}; 1722 line-height: ${({typography:e})=>e["h4-regular"].lineHeight}; 1723 letter-spacing: ${({typography:e})=>e["h4-regular"].letterSpacing}; 1724 font-weight: ${({fontWeight:e})=>e.regular}; 1725 font-family: ${({fontFamily:e})=>e.regular}; 1726 font-feature-settings: 1727 'liga' off, 1728 'clig' off; 1729 } 1730 1731 .wui-font-h4-medium { 1732 font-size: ${({textSize:e})=>e.h4}; 1733 line-height: ${({typography:e})=>e["h4-medium"].lineHeight}; 1734 letter-spacing: ${({typography:e})=>e["h4-medium"].letterSpacing}; 1735 font-weight: ${({fontWeight:e})=>e.medium}; 1736 font-family: ${({fontFamily:e})=>e.regular}; 1737 font-feature-settings: 1738 'liga' off, 1739 'clig' off; 1740 } 1741 1742 .wui-font-h5-regular-mono { 1743 font-size: ${({textSize:e})=>e.h5}; 1744 line-height: ${({typography:e})=>e["h5-regular-mono"].lineHeight}; 1745 letter-spacing: ${({typography:e})=>e["h5-regular-mono"].letterSpacing}; 1746 font-weight: ${({fontWeight:e})=>e.regular}; 1747 font-family: ${({fontFamily:e})=>e.mono}; 1748 } 1749 1750 .wui-font-h5-regular { 1751 font-size: ${({textSize:e})=>e.h5}; 1752 line-height: ${({typography:e})=>e["h5-regular"].lineHeight}; 1753 letter-spacing: ${({typography:e})=>e["h5-regular"].letterSpacing}; 1754 font-weight: ${({fontWeight:e})=>e.regular}; 1755 font-family: ${({fontFamily:e})=>e.regular}; 1756 font-feature-settings: 1757 'liga' off, 1758 'clig' off; 1759 } 1760 1761 .wui-font-h5-medium { 1762 font-size: ${({textSize:e})=>e.h5}; 1763 line-height: ${({typography:e})=>e["h5-medium"].lineHeight}; 1764 letter-spacing: ${({typography:e})=>e["h5-medium"].letterSpacing}; 1765 font-weight: ${({fontWeight:e})=>e.medium}; 1766 font-family: ${({fontFamily:e})=>e.regular}; 1767 font-feature-settings: 1768 'liga' off, 1769 'clig' off; 1770 } 1771 1772 .wui-font-h6-regular-mono { 1773 font-size: ${({textSize:e})=>e.h6}; 1774 line-height: ${({typography:e})=>e["h6-regular-mono"].lineHeight}; 1775 letter-spacing: ${({typography:e})=>e["h6-regular-mono"].letterSpacing}; 1776 font-weight: ${({fontWeight:e})=>e.regular}; 1777 font-family: ${({fontFamily:e})=>e.mono}; 1778 } 1779 1780 .wui-font-h6-regular { 1781 font-size: ${({textSize:e})=>e.h6}; 1782 line-height: ${({typography:e})=>e["h6-regular"].lineHeight}; 1783 letter-spacing: ${({typography:e})=>e["h6-regular"].letterSpacing}; 1784 font-weight: ${({fontWeight:e})=>e.regular}; 1785 font-family: ${({fontFamily:e})=>e.regular}; 1786 font-feature-settings: 1787 'liga' off, 1788 'clig' off; 1789 } 1790 1791 .wui-font-h6-medium { 1792 font-size: ${({textSize:e})=>e.h6}; 1793 line-height: ${({typography:e})=>e["h6-medium"].lineHeight}; 1794 letter-spacing: ${({typography:e})=>e["h6-medium"].letterSpacing}; 1795 font-weight: ${({fontWeight:e})=>e.medium}; 1796 font-family: ${({fontFamily:e})=>e.regular}; 1797 font-feature-settings: 1798 'liga' off, 1799 'clig' off; 1800 } 1801 1802 .wui-font-lg-regular-mono { 1803 font-size: ${({textSize:e})=>e.large}; 1804 line-height: ${({typography:e})=>e["lg-regular-mono"].lineHeight}; 1805 letter-spacing: ${({typography:e})=>e["lg-regular-mono"].letterSpacing}; 1806 font-weight: ${({fontWeight:e})=>e.regular}; 1807 font-family: ${({fontFamily:e})=>e.mono}; 1808 } 1809 1810 .wui-font-lg-regular { 1811 font-size: ${({textSize:e})=>e.large}; 1812 line-height: ${({typography:e})=>e["lg-regular"].lineHeight}; 1813 letter-spacing: ${({typography:e})=>e["lg-regular"].letterSpacing}; 1814 font-weight: ${({fontWeight:e})=>e.regular}; 1815 font-family: ${({fontFamily:e})=>e.regular}; 1816 font-feature-settings: 1817 'liga' off, 1818 'clig' off; 1819 } 1820 1821 .wui-font-lg-medium { 1822 font-size: ${({textSize:e})=>e.large}; 1823 line-height: ${({typography:e})=>e["lg-medium"].lineHeight}; 1824 letter-spacing: ${({typography:e})=>e["lg-medium"].letterSpacing}; 1825 font-weight: ${({fontWeight:e})=>e.medium}; 1826 font-family: ${({fontFamily:e})=>e.regular}; 1827 font-feature-settings: 1828 'liga' off, 1829 'clig' off; 1830 } 1831 1832 .wui-font-md-regular-mono { 1833 font-size: ${({textSize:e})=>e.medium}; 1834 line-height: ${({typography:e})=>e["md-regular-mono"].lineHeight}; 1835 letter-spacing: ${({typography:e})=>e["md-regular-mono"].letterSpacing}; 1836 font-weight: ${({fontWeight:e})=>e.regular}; 1837 font-family: ${({fontFamily:e})=>e.mono}; 1838 } 1839 1840 .wui-font-md-regular { 1841 font-size: ${({textSize:e})=>e.medium}; 1842 line-height: ${({typography:e})=>e["md-regular"].lineHeight}; 1843 letter-spacing: ${({typography:e})=>e["md-regular"].letterSpacing}; 1844 font-weight: ${({fontWeight:e})=>e.regular}; 1845 font-family: ${({fontFamily:e})=>e.regular}; 1846 font-feature-settings: 1847 'liga' off, 1848 'clig' off; 1849 } 1850 1851 .wui-font-md-medium { 1852 font-size: ${({textSize:e})=>e.medium}; 1853 line-height: ${({typography:e})=>e["md-medium"].lineHeight}; 1854 letter-spacing: ${({typography:e})=>e["md-medium"].letterSpacing}; 1855 font-weight: ${({fontWeight:e})=>e.medium}; 1856 font-family: ${({fontFamily:e})=>e.regular}; 1857 font-feature-settings: 1858 'liga' off, 1859 'clig' off; 1860 } 1861 1862 .wui-font-sm-regular-mono { 1863 font-size: ${({textSize:e})=>e.small}; 1864 line-height: ${({typography:e})=>e["sm-regular-mono"].lineHeight}; 1865 letter-spacing: ${({typography:e})=>e["sm-regular-mono"].letterSpacing}; 1866 font-weight: ${({fontWeight:e})=>e.regular}; 1867 font-family: ${({fontFamily:e})=>e.mono}; 1868 } 1869 1870 .wui-font-sm-regular { 1871 font-size: ${({textSize:e})=>e.small}; 1872 line-height: ${({typography:e})=>e["sm-regular"].lineHeight}; 1873 letter-spacing: ${({typography:e})=>e["sm-regular"].letterSpacing}; 1874 font-weight: ${({fontWeight:e})=>e.regular}; 1875 font-family: ${({fontFamily:e})=>e.regular}; 1876 font-feature-settings: 1877 'liga' off, 1878 'clig' off; 1879 } 1880 1881 .wui-font-sm-medium { 1882 font-size: ${({textSize:e})=>e.small}; 1883 line-height: ${({typography:e})=>e["sm-medium"].lineHeight}; 1884 letter-spacing: ${({typography:e})=>e["sm-medium"].letterSpacing}; 1885 font-weight: ${({fontWeight:e})=>e.medium}; 1886 font-family: ${({fontFamily:e})=>e.regular}; 1887 font-feature-settings: 1888 'liga' off, 1889 'clig' off; 1890 } 1891`;var d=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let u={primary:o.f.tokens.theme.textPrimary,secondary:o.f.tokens.theme.textSecondary,tertiary:o.f.tokens.theme.textTertiary,invert:o.f.tokens.theme.textInvert,error:o.f.tokens.core.textError,success:o.f.tokens.core.textSuccess,warning:o.f.tokens.core.textWarning,"accent-primary":o.f.tokens.core.textAccentPrimary},h=class extends r.WF{constructor(){super(...arguments),this.variant="md-regular",this.color="inherit",this.align="left",this.lineClamp=void 0,this.display="inline-flex"}render(){let e={[`wui-font-${this.variant}
1891`]:!0,[`wui-line-clamp-${this.lineClamp}`]:!!this.lineClamp};return this.style.cssText=` 1892 display: ${this.display}; 1893 --local-align: ${this.align}; 1894 --local-color: ${"inherit"===this.color?"inherit":u[this.color??"primary"]}; 1895 `,(0,r.qy)`<slot class=${(0,n.H)(e)}></slot>`}};h.styles=[s.W5,c],d([(0,a.MZ)()],h.prototype,"variant",void 0),d([(0,a.MZ)()],h.prototype,"color",void 0),d([(0,a.MZ)()],h.prototype,"align",void 0),d([(0,a.MZ)()],h.prototype,"lineClamp",void 0),d([(0,a.MZ)()],h.prototype,"display",void 0),h=d([(0,l.E)("wui-text")],h)},37892:(e,t,i)=>{"use strict";var r=i(88633),a=i(15274);let n=(0,r.JW)`<svg width="86" height="96" fill="none"> 1896 <path 1897 d="M78.3244 18.926L50.1808 2.45078C45.7376 -0.150261 40.2624 -0.150262 35.8192 2.45078L7.6756 18.926C3.23322 21.5266 0.5 26.3301 0.5 31.5248V64.4752C0.5 69.6699 3.23322 74.4734 7.6756 77.074L35.8192 93.5492C40.2624 96.1503 45.7376 96.1503 50.1808 93.5492L78.3244 77.074C82.7668 74.4734 85.5 69.6699 85.5 64.4752V31.5248C85.5 26.3301 82.7668 21.5266 78.3244 18.926Z" 1898 /> 1899</svg>`;var o=i(11906);let s=(0,r.JW)` 1900 <svg fill="none" viewBox="0 0 36 40"> 1901 <path 1902 d="M15.4 2.1a5.21 5.21 0 0 1 5.2 0l11.61 6.7a5.21 5.21 0 0 1 2.61 4.52v13.4c0 1.87-1 3.59-2.6 4.52l-11.61 6.7c-1.62.93-3.6.93-5.22 0l-11.6-6.7a5.21 5.21 0 0 1-2.61-4.51v-13.4c0-1.87 1-3.6 2.6-4.52L15.4 2.1Z" 1903 /> 1904 </svg> 1905`;i(17364),i(68006);var l=i(62057),c=i(54718),d=i(21621);let u=(0,d.AH)` 1906 :host { 1907 position: relative; 1908 border-radius: inherit; 1909 display: flex; 1910 justify-content: center; 1911 align-items: center; 1912 width: var(--local-width); 1913 height: var(--local-height); 1914 } 1915 1916 :host([data-round='true']) { 1917 background: ${({tokens:e})=>e.theme.foregroundPrimary}; 1918 border-radius: 100%; 1919 outline: 1px solid ${({tokens:e})=>e.core.glass010}; 1920 } 1921 1922 svg { 1923 position: absolute; 1924 top: 0; 1925 left: 0; 1926 width: 100%; 1927 height: 100%; 1928 z-index: 1; 1929 } 1930 1931 svg > path { 1932 stroke: var(--local-stroke); 1933 } 1934 1935 wui-image { 1936 width: 100%; 1937 height: 100%; 1938 -webkit-clip-path: var(--local-path); 1939 clip-path: var(--local-path); 1940 background: ${({tokens:e})=>e.theme.foregroundPrimary}; 1941 } 1942 1943 wui-icon { 1944 transform: translateY(-5%); 1945 width: var(--local-icon-size); 1946 height: var(--local-icon-size); 1947 } 1948`;var h=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let p=class extends r.WF{constructor(){super(...arguments),this.size="md",this.name="uknown",this.networkImagesBySize={sm:s,md:o.a,lg:n},this.selected=!1,this.round=!1}render(){return this.round?(this.dataset.round="true",this.style.cssText=` 1949 --local-width: var(--apkt-spacing-10); 1950 --local-height: var(--apkt-spacing-10); 1951 --local-icon-size: var(--apkt-spacing-4); 1952 `):this.style.cssText=` 1953 1954 --local-path: var(--apkt-path-network-${this.size}); 1955 --local-width: var(--apkt-width-network-${this.size}); 1956 --local-height: var(--apkt-height-network-${this.size}); 1957 --local-icon-size: var(--apkt-spacing-${({sm:"4",md:"6",lg:"10"})[this.size]}); 1958 `,(0,r.qy)`${this.templateVisual()} ${this.svgTemplate()} `}svgTemplate(){return this.round?null:this.networkImagesBySize[this.size]}templateVisual(){return this.imageSrc?(0,r.qy)`<wui-image src=${this.imageSrc} alt=${this.name}></wui-image>`:(0,r.qy)`<wui-icon size="inherit" color="default" name="networkPlaceholder"></wui-icon>`}};p.styles=[l.W5,u],h([(0,a.MZ)()],p.prototype,"size",void 0),h([(0,a.MZ)()],p.prototype,"name",void 0),h([(0,a.MZ)({type:Object})],p.prototype,"networkImagesBySize",void 0),h([(0,a.MZ)()],p.prototype,"imageSrc",void 0),h([(0,a.MZ)({type:Boolean})],p.prototype,"selected",void 0),h([(0,a.MZ)({type:Boolean})],p.prototype,"round",void 0),p=h([(0,c.E)("wui-network-image")],p)},37909:(e,t,i)=>{"use strict";let r;i.d(t,{Y:()=>iE});let a={validateCaipAddress(e){if(e.split(":")?.length!==3)throw Error("Invalid CAIP Address");return e},parseCaipAddress(e){let t=e.split(":");if(3!==t.length)throw Error(`Invalid CAIP-10 address: ${e}`);let[i,r,a]=t;if(!i||!r||!a)throw Error(`Invalid CAIP-10 address: ${e}`);return{chainNamespace:i,chainId:r,address:a}},parseCaipNetworkId(e){let t=e.split(":");if(2!==t.length)throw Error(`Invalid CAIP-2 network id: ${e}`);let[i,r]=t;if(!i||!r)throw Error(`Invalid CAIP-2 network id: ${e}`);return{chainNamespace:i,chainId:r}}};var n,o,s,l,c=i(55036);let d={WC_NAME_SUFFIX:".reown.id",WC_NAME_SUFFIX_LEGACY:".wcn.id",BLOCKCHAIN_API_RPC_URL:"https://rpc.walletconnect.org",PULSE_API_URL:"https://pulse.walletconnect.org",W3M_API_URL:"https://api.web3modal.org",CONNECTOR_ID:{WALLET_CONNECT:"walletConnect",INJECTED:"injected",WALLET_STANDARD:"announced",COINBASE:"coinbaseWallet",COINBASE_SDK:"coinbaseWalletSDK",BASE_ACCOUNT:"baseAccount",SAFE:"safe",LEDGER:"ledger",OKX:"okx",EIP6963:"eip6963",AUTH:"AUTH"},CONNECTOR_NAMES:{AUTH:"Auth"},AUTH_CONNECTOR_SUPPORTED_CHAINS:["eip155","solana"],LIMITS:{PENDING_TRANSACTIONS:99},CHAIN:{EVM:"eip155",SOLANA:"solana",POLKADOT:"polkadot",BITCOIN:"bip122",TON:"ton",TRON:"tron"}
1958,CHAIN_NAME_MAP:{eip155:"EVM Networks",solana:"Solana",polkadot:"Polkadot",bip122:"Bitcoin",cosmos:"Cosmos",sui:"Sui",stacks:"Stacks",ton:"TON",tron:"TRON"},ADAPTER_TYPES:{BITCOIN:"bitcoin",SOLANA:"solana",WAGMI:"wagmi",ETHERS:"ethers",ETHERS5:"ethers5",TON:"ton",TRON:"tron"},USDT_CONTRACT_ADDRESSES:["0xdac17f958d2ee523a2206206994597c13d831ec7","0xc2132d05d31c914a87c6611c10748aeb04b58e8f","0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7","0x919C1c267BC06a7039e03fcc2eF738525769109c","0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e","0x55d398326f99059fF775485246999027B3197955","0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9"],SOLANA_SPL_TOKEN_ADDRESSES:{SOL:"So11111111111111111111111111111111111111112"},NATIVE_IMAGE_IDS_BY_NAMESPACE:{eip155:"ba0ba0cd-17c6-4806-ad93-f9d174f17900",solana:"3e8119e5-2a6f-4818-c50c-1937011d5900",bip122:"0b4838db-0161-4ffe-022d-532bf03dba00"},TOKEN_SYMBOLS_BY_ADDRESS:{"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48":"USDC","0x833589fcd6edb6e08f4c7c32d4f71b54bda02913":"USDC","0x0b2c639c533813f4aa9d7837caf62653d097ff85":"USDC","0xaf88d065e77c8cc2239327c5edb3a432268e5831":"USDC","0x3c499c542cef5e3811e1192ce70d8cc03d5c3359":"USDC","0x2791bca1f2de4661ed88a30c99a7a9449aa84174":"USDC",EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v:"USDC","0xdac17f958d2ee523a2206206994597c13d831ec7":"USDT","0x94b008aa00579c1307b0ef2c499ad98a8ce58e58":"USDT","0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9":"USDT","0xc2132d05d31c914a87c6611c10748aeb04b58e8f":"USDT",Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB:"USDT"},HTTP_STATUS_CODES:{SERVER_ERROR:500,TOO_MANY_REQUESTS:429,SERVICE_UNAVAILABLE:503,FORBIDDEN:403},UNSUPPORTED_NETWORK_NAME:"Unknown Network",SECURE_SITE_SDK_ORIGIN:(void 0!==c&&void 0!==c.env?c.env.NEXT_PUBLIC_SECURE_SITE_ORIGIN:void 0)||"https://secure.walletconnect.org",REMOTE_FEATURES_ALERTS:{MULTI_WALLET_NOT_ENABLED:{DEFAULT:{displayMessage:"Multi-Wallet Not Enabled",debugMessage:"Multi-wallet support is not enabled. Please enable it in your AppKit configuration at cloud.reown.com."},CONNECTIONS_HOOK:{displayMessage:"Multi-Wallet Not Enabled",debugMessage:"Multi-wallet support is not enabled. Please enable it in your AppKit configuration at cloud.reown.com to use the useAppKitConnections hook."},CONNECTION_HOOK:{displayMessage:"Multi-Wallet Not Enabled",debugMessage:"Multi-wallet support is not enabled. Please enable it in your AppKit configuration at cloud.reown.com to use the useAppKitConnection hook."}},HEADLESS_NOT_ENABLED:{DEFAULT:{displayMessage:"",debugMessage:"Headless support is not enabled. Please enable it with the features.headless option in the AppKit configuration and make sure your current plan supports it."}}},IS_DEVELOPMENT:void 0!==c&&!1,DEFAULT_ALLOWED_ANCESTORS:["http://localhost:*","https://localhost:*","http://127.0.0.1:*","https://127.0.0.1:*","https://*.pages.dev","https://*.vercel.app","https://*.ngrok-free.app","https://secure-mobile.walletconnect.com","https://secure-mobile.walletconnect.org"],METMASK_CONNECTOR_NAME:"MetaMask",TRUST_CONNECTOR_NAME:"Trust Wallet",SOLFLARE_CONNECTOR_NAME:"Solflare",PHANTOM_CONNECTOR_NAME:"Phantom",COIN98_CONNECTOR_NAME:"Coin98",MAGIC_EDEN_CONNECTOR_NAME:"Magic Eden",BACKPACK_CONNECTOR_NAME:"Backpack",BITGET_CONNECTOR_NAME:"Bitget Wallet",FRONTIER_CONNECTOR_NAME:"Frontier",XVERSE_CONNECTOR_NAME:"Xverse Wallet",LEATHER_CONNECTOR_NAME:"Leather",OKX_CONNECTOR_NAME:"OKX Wallet",BINANCE_CONNECTOR_NAME:"Binance Wallet",EIP155:"eip155",ADD_CHAIN_METHOD:"wallet_addEthereumChain",EIP6963_ANNOUNCE_EVENT:"eip6963:announceProvider",EIP6963_REQUEST_EVENT:"eip6963:requestProvider",CONNECTOR_RDNS_MAP:{coinbaseWallet:"com.coinbase.wallet",coinbaseWalletSDK:"com.coinbase.wallet"},CONNECTOR_TYPE_EXTERNAL:"EXTERNAL",CONNECTOR_TYPE_WALLET_CONNECT:"WALLET_CONNECT",CONNECTOR_TYPE_INJECTED:"INJECTED",CONNECTOR_TYPE_ANNOUNCED:"ANNOUNCED",CONNECTOR_TYPE_AUTH:"AUTH",CONNECTOR_TYPE_MULTI_CHAIN:"MULTI_CHAIN",CONNECTOR_TYPE_W3M_AUTH:"AUTH"};var u=i(33579),h=i(4765);!function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw Error()},e.arrayToEnum=e=>{let t={};for(let i of e)t[i]=i;return t},e.getValidEnumValues=t=>{let i=e.objectKeys(t).filter(e=>
1958"number"!=typeof t[t[e]]),r={};for(let e of i)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.push(i);return t},e.find=(e,t)=>{for(let i of e)if(t(i))return i},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(n||(n={})),(o||(o={})).mergeShapes=(e,t)=>({...e,...t});let p=n.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),m=e=>{switch(typeof e){case"undefined":return p.undefined;case"string":return p.string;case"number":return isNaN(e)?p.nan:p.number;case"boolean":return p.boolean;case"function":return p.function;case"bigint":return p.bigint;case"symbol":return p.symbol;case"object":if(Array.isArray(e))return p.array;if(null===e)return p.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return p.promise;if("undefined"!=typeof Map&&e instanceof Map)return p.map;if("undefined"!=typeof Set&&e instanceof Set)return p.set;if("undefined"!=typeof Date&&e instanceof Date)return p.date;return p.object;default:return p.unknown}}
vendor: 4,410 bytes, line 1958
1958,g=n.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class f extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},i={_errors:[]},r=e=>{for(let a of e.issues)if("invalid_union"===a.code)a.unionErrors.map(r);else if("invalid_return_type"===a.code)r(a.returnTypeError);else if("invalid_arguments"===a.code)r(a.argumentsError);else if(0===a.path.length)i._errors.push(t(a));else{let e=i,r=0;for(;r<a.path.length;){let i=a.path[r];r===a.path.length-1?(e[i]=e[i]||{_errors:[]},e[i]._errors.push(t(a))):e[i]=e[i]||{_errors:[]},e=e[i],r++}}};return r(this),i}toString(){return this.message}get message(){return JSON.stringify(this.issues,n.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},i=[];for(let r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):i.push(e(r));return{formErrors:i,fieldErrors:t}}get formErrors(){return this.flatten()}}f.create=e=>new f(e);let w=(e,t)=>{let i;switch(e.code){case g.invalid_type:i=e.received===p.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case g.invalid_literal:i=`Invalid literal value, expected ${JSON.stringify(e.expected,n.jsonStringifyReplacer)}`;break;case g.unrecognized_keys:i=`Unrecognized key(s) in object: ${n.joinValues(e.keys,", ")}`;break;case g.invalid_union:i="Invalid input";break;case g.invalid_union_discriminator:i=`Invalid discriminator value. Expected ${n.joinValues(e.options)}`;break;case g.invalid_enum_value:i=`Invalid enum value. Expected ${n.joinValues(e.options)}, received '${e.received}'`;break;case g.invalid_arguments:i="Invalid function arguments";break;case g.invalid_return_type:i="Invalid function return type";break;case g.invalid_date:i="Invalid date";break;case g.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(i=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(i=`${i} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?i=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?i=`Invalid input: must end with "${e.validation.endsWith}"`:n.assertNever(e.validation):i="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case g.too_small:i="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case g.too_big:i="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case g.custom:i="Invalid input";break;case g.invalid_intersection_types:i="Intersection results could not be merged";break;case g.not_multiple_of:i=`Number must be a multiple of ${e.multipleOf}`;break;case g.not_finite:i="Number must be finite";break;default:i=t.defaultError,n.assertNever(e)}return{message:i}},y=w;function b(){return y}let v=e=>
1958{let{data:t,path:i,errorMaps:r,issueData:a}=e,n=[...i,...a.path||[]],o={...a,path:n},s="";for(let e of r.filter(e=>!!e).slice().reverse())s=e(o,{data:t,defaultError:s}).message;return{...a,path:n,message:a.message||s}};function C(e,t){let i=v({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,b(),w].filter(e=>!!e)});e.common.issues.push(i)}class x{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let i=[];for(let r of t){if("aborted"===r.status)return E;"dirty"===r.status&&e.dirty(),i.push(r.value)}return{status:e.value,value:i}}static async mergeObjectAsync(e,t){let i=[];for(let e of t)i.push({key:await e.key,value:await e.value});return x.mergeObjectSync(e,i)}static mergeObjectSync(e,t){let i={};for(let r of t){let{key:t,value:a}=r;if("aborted"===t.status||"aborted"===a.status)return E;"dirty"===t.status&&e.dirty(),"dirty"===a.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==a.value||r.alwaysSet)&&(i[t.value]=a.value)}return{status:e.value,value:i}}}let E=Object.freeze({status:"aborted"}),k=e=>({status:"dirty",value:e}),A=e=>({status:"valid",value:e}),$=e=>"aborted"===e.status,_=e=>"dirty"===e.status,N=e=>"valid"===e.status,S=e=>"undefined"!=typeof Promise&&e instanceof Promise;!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:null==e?void 0:e.message}(s||(s={}));class T{constructor(e,t,i,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=i,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let R=(e,t)=>{if(N(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new f(e.common.issues);return this._error=t,this._error}}};function I(e){if(!e)return{};let{errorMap:t,invalid_type_error:i,required_error:r,description:a}=e;if(t&&(i||r))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:a}:{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=r?r:t.defaultError}:{message:null!=i?i:t.defaultError},description:a}}class P{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return m(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:m(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new x,ctx:{common:e.parent.common,data:e.data,parsedType:m(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(S(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let i=this.safeParse(e,t);if(i.success)return i.data;throw i.error}safeParse(e,t){var i;let r={common:{issues:[],async:null!=(i=null==t?void 0:t.async)&&i,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:m(e)},a=this._parseSync({data:e,path:r.path,parent:r});return R(r,a)}async parseAsync(e,t){let i=await this.safeParseAsync(e,t);if(i.success)return i.data;throw i.error}async safeParseAsync(e,t){let i={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:m(e)},r=this._parse({data:e,path:i.path,parent:i});return R(i,await (S(r)?r:Promise.resolve(r)))}refine(e,t){let i=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,r)=>{let a=e(t),n=()=>r.addIssue({code:g.custom,...i(t)});return"undefined"!=typeof Promise&&a instanceof Promise?a.then(e=>!!e||(n(),!1)):!!a||(n(),!1)})}refinement(e,t){return this._refinement((i,r)=>!!e(i)||(r.addIssue("function"==typeof t?t(i,r):t),!1))}_refinement(e){return new ew({schema:this,typeName:l.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return ey.create(this,this._def)}nullable(){return eb.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ee.create(this,this._def)}promise(){return ef.create(this,this._def)}or(e){return ei.create([this,e],this._def)}and(e){return en.create(this,e,this._def)}transform(e){return new ew({...I(this._def),schema:this,typeName:l.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new ev({...I(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:l.ZodDefault})}brand(){return new ek({typeName:l.ZodBranded,type:this,...I(this._def)})}catch(e){return new eC({...I(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:l.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eA.create(this,e)}readonly(){return e$.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let O=/^c[^\s-]{8,}
1958$/i,M=/^[a-z][a-z0-9]*$/,W=/^[0-9A-HJKMNP-TV-Z]{26}$/,L=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,D=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,U=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,F=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,H=e=>{if(e.precision)if(e.offset)return RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`);else return RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`);if(0===e.precision)if(e.offset)return RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$");else return RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$");return e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$")};class j extends P{_parse(e){let t;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==p.string){let t=this._getOrReturnCtx(e);return C(t,{code:g.invalid_type,expected:p.string,received:t.parsedType}),E}let i=new x;for(let s of this._def.checks)if("min"===s.kind)e.data.length<s.value&&(C(t=this._getOrReturnCtx(e,t),{code:g.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),i.dirty());else if("max"===s.kind)e.data.length>s.value&&(C(t=this._getOrReturnCtx(e,t),{code:g.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),i.dirty());else if("length"===s.kind){let r=e.data.length>s.value,a=e.data.length<s.value;(r||a)&&(t=this._getOrReturnCtx(e,t),r?C(t,{code:g.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):a&&C(t,{code:g.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),i.dirty())}else if("email"===s.kind)D.test(e.data)||(C(t=this._getOrReturnCtx(e,t),{validation:"email",code:g.invalid_string,message:s.message}),i.dirty());else if("emoji"===s.kind)r||(r=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),r.test(e.data)||(C(t=this._getOrReturnCtx(e,t),{validation:"emoji",code:g.invalid_string,message:s.message}),i.dirty());else if("uuid"===s.kind)L.test(e.data)||(C(t=this._getOrReturnCtx(e,t),{validation:"uuid",code:g.invalid_string,message:s.message}),i.dirty());else if("cuid"===s.kind)O.test(e.data)||(C(t=this._getOrReturnCtx(e,t),{validation:"cuid",code:g.invalid_string,message:s.message}),i.dirty());else if("cuid2"===s.kind)M.test(e.data)||(C(t=this._getOrReturnCtx(e,t),{validation:"cuid2",code:g.invalid_string,message:s.message}),i.dirty());else if("ulid"===s.kind)W.test(e.data)||(C(t=this._getOrReturnCtx(e,t),{validation:"ulid",code:g.invalid_string,message:s.message}),i.dirty());else if("url"===s.kind)try{new URL(e.data)}catch(r){C(t=this._getOrReturnCtx(e,t),{validation:"url",code:g.invalid_string,message:s.message}),i.dirty()}else if("regex"===s.kind)s.regex.lastIndex=0,s.regex.test(e.data)||(C(t=this._getOrReturnCtx(e,t),{validation:"regex",code:g.invalid_string,message:s.message}),i.dirty());else if("trim"===s.kind)e.data=e.data.trim();else if("includes"===s.kind)e.data.includes(s.value,s.position)||(C(t=this._getOrReturnCtx(e,t),{code:g.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),i.dirty());else if("toLowerCase"===s.kind)e.data=e.data.toLowerCase();else if("toUpperCase"===s.kind)e.data=e.data.toUpperCase();else if("startsWith"===s.kind)e.data.startsWith(s.value)||(C(t=this._getOrReturnCtx(e,t),{code:g.invalid_string,validation:{startsWith:s.value},message:s.message}),i.dirty());else if("endsWith"===s.kind)e.data.endsWith(s.value)||(C(t=this._getOrReturnCtx(e,t),{code:g.invali
1958d_string,validation:{endsWith:s.value},message:s.message}),i.dirty());else if("datetime"===s.kind)H(s).test(e.data)||(C(t=this._getOrReturnCtx(e,t),{code:g.invalid_string,validation:"datetime",message:s.message}),i.dirty());else if("ip"===s.kind){var a,o;a=e.data,!(("v4"===(o=s.version)||!o)&&U.test(a)||("v6"===o||!o)&&F.test(a))&&1&&(C(t=this._getOrReturnCtx(e,t),{validation:"ip",code:g.invalid_string,message:s.message}),i.dirty())}else n.assertNever(s);return{status:i.value,value:e.data}}_regex(e,t,i){return this.refinement(t=>e.test(t),{validation:t,code:g.invalid_string,...s.errToObj(i)})}_addCheck(e){return new j({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...s.errToObj(e)})}url(e){return this._addCheck({kind:"url",...s.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...s.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...s.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...s.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...s.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...s.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...s.errToObj(e)})}datetime(e){var t;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!=(t=null==e?void 0:e.offset)&&t,...s.errToObj(null==e?void 0:e.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...s.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...s.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...s.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...s.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...s.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...s.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...s.errToObj(t)})}nonempty(e){return this.min(1,s.errToObj(e))}trim(){return new j({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new j({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new j({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}j.create=e=>{var t;return new j({checks:[],typeName:l.ZodString,coerce:null!=(t=null==e?void 0:e.coerce)&&t,...I(e)})};class Z extends P{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==p.number){let t=this._getOrReturnCtx(e);return C(t,{code:g.invalid_type,expected:p.number,received:t.parsedType}),E}let i=new x;for(let r of this._def.checks)"int"===r.kind?n.isInteger(e.data)||(C(t=this._getOrReturnCtx(e,t),{code:g.invalid_type,expected:"integer",received:"float",message:r.message}),i.dirty()):"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(C(t=this._getOrReturnCtx(e,t),{code:g.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),i.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(C(t=this._getOrReturnCtx(e,t),{code:g.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),i.dirty()):"multipleOf"===r.kind?0!==function(e,t){let i=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,a=i>r?i:r;return parseInt(e.toFixed(a).replace(".",""))%parseInt(t.toFixed(a).replace(".",""))/Math.pow(10,a)}(e.data,r.value)&&(C(t=this._getOrReturnCtx(e,t),{code:g.not_multiple_of,multipleOf:r.value,message:r.message}),i.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(C(t=this._getOrReturnCtx(e,t),{code:g.not_finite,message:r.message}),i.dirty()):n.assertNever(r);return{status:i.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,s.toString(t))}gt(e,t){return this.setLimit("min",e,!1,s.toString(t))}lte(e,t){return this.setLimit("max",e,!0,s.toString(t))}lt(e,t){return this.setLimit("max",e,!1,s.toString(t))}setLimit(e,t,i,r){return new Z({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:s.toString(r)}]})}_addCheck(e){return new Z({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:s.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:s.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:s.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:s.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:s.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:s.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:s.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:s.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:s.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&n.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let i of this._def.checks)if("finite"===i.kind||"int"===i.kind||"multipleOf"===i.kind)return!0;else"min"===i.kind?(null===t||i.value>t)&&(t=i.value):"max"===i.kind&&(null===e||i.value<e)&&(e=i.value);return Number.isFinite(t)&&Number.isFinite(e)}}Z.create=e=>new Z({checks:[],typeName:l.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...I(e)});class B extends P{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==p.bigint){let t=this._getOrReturnCtx(e);
1958return C(t,{code:g.invalid_type,expected:p.bigint,received:t.parsedType}),E}let i=new x;for(let r of this._def.checks)"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(C(t=this._getOrReturnCtx(e,t),{code:g.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),i.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(C(t=this._getOrReturnCtx(e,t),{code:g.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),i.dirty()):"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(C(t=this._getOrReturnCtx(e,t),{code:g.not_multiple_of,multipleOf:r.value,message:r.message}),i.dirty()):n.assertNever(r);return{status:i.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,s.toString(t))}gt(e,t){return this.setLimit("min",e,!1,s.toString(t))}lte(e,t){return this.setLimit("max",e,!0,s.toString(t))}lt(e,t){return this.setLimit("max",e,!1,s.toString(t))}setLimit(e,t,i,r){return new B({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:s.toString(r)}]})}_addCheck(e){return new B({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:s.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:s.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:s.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:s.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:s.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}B.create=e=>{var t;return new B({checks:[],typeName:l.ZodBigInt,coerce:null!=(t=null==e?void 0:e.coerce)&&t,...I(e)})};class z extends P{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==p.boolean){let t=this._getOrReturnCtx(e);return C(t,{code:g.invalid_type,expected:p.boolean,received:t.parsedType}),E}return A(e.data)}}z.create=e=>new z({typeName:l.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...I(e)});class q extends P{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==p.date){let t=this._getOrReturnCtx(e);return C(t,{code:g.invalid_type,expected:p.date,received:t.parsedType}),E}if(isNaN(e.data.getTime()))return C(this._getOrReturnCtx(e),{code:g.invalid_date}),E;let i=new x;for(let r of this._def.checks)"min"===r.kind?e.data.getTime()<r.value&&(C(t=this._getOrReturnCtx(e,t),{code:g.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),i.dirty()):"max"===r.kind?e.data.getTime()>r.value&&(C(t=this._getOrReturnCtx(e,t),{code:g.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),i.dirty()):n.assertNever(r);return{status:i.value,value:new Date(e.data.getTime())}}_addCheck(e){return new q({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:s.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:s.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}q.create=e=>new q({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:l.ZodDate,...I(e)});class V extends P{_parse(e){if(this._getType(e)!==p.symbol){let t=this._getOrReturnCtx(e);return C(t,{code:g.invalid_type,expected:p.symbol,received:t.parsedType}),E}return A(e.data)}}V.create=e=>new V({typeName:l.ZodSymbol,...I(e)});class K extends P{_parse(e){if(this._getType(e)!==p.undefined){let t=this._getOrReturnCtx(e);return C(t,{code:g.invalid_type,expected:p.undefined,received:t.parsedType}),E}return A(e.data)}}K.create=e=>new K({typeName:l.ZodUndefined,...I(e)});class G extends P{_parse(e){if(this._getType(e)!==p.null){let t=this._getOrReturnCtx(e);
1958return C(t,{code:g.invalid_type,expected:p.null,received:t.parsedType}),E}return A(e.data)}}G.create=e=>new G({typeName:l.ZodNull,...I(e)});class J extends P{constructor(){super(...arguments),this._any=!0}_parse(e){return A(e.data)}}J.create=e=>new J({typeName:l.ZodAny,...I(e)});class Y extends P{constructor(){super(...arguments),this._unknown=!0}_parse(e){return A(e.data)}}Y.create=e=>new Y({typeName:l.ZodUnknown,...I(e)});class X extends P{_parse(e){let t=this._getOrReturnCtx(e);return C(t,{code:g.invalid_type,expected:p.never,received:t.parsedType}),E}}X.create=e=>new X({typeName:l.ZodNever,...I(e)});class Q extends P{_parse(e){if(this._getType(e)!==p.undefined){let t=this._getOrReturnCtx(e);return C(t,{code:g.invalid_type,expected:p.void,received:t.parsedType}),E}return A(e.data)}}Q.create=e=>new Q({typeName:l.ZodVoid,...I(e)});class ee extends P{_parse(e){let{ctx:t,status:i}=this._processInputParams(e),r=this._def;if(t.parsedType!==p.array)return C(t,{code:g.invalid_type,expected:p.array,received:t.parsedType}),E;if(null!==r.exactLength){let e=t.data.length>r.exactLength.value,a=t.data.length<r.exactLength.value;(e||a)&&(C(t,{code:e?g.too_big:g.too_small,minimum:a?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),i.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(C(t,{code:g.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),i.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(C(t,{code:g.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),i.dirty()),t.common.async)return Promise.all([...t.data].map((e,i)=>r.type._parseAsync(new T(t,e,t.path,i)))).then(e=>x.mergeArray(i,e));let a=[...t.data].map((e,i)=>r.type._parseSync(new T(t,e,t.path,i)));return x.mergeArray(i,a)}get element(){return this._def.type}min(e,t){return new ee({...this._def,minLength:{value:e,message:s.toString(t)}})}max(e,t){return new ee({...this._def,maxLength:{value:e,message:s.toString(t)}})}length(e,t){return new ee({...this._def,exactLength:{value:e,message:s.toString(t)}})}nonempty(e){return this.min(1,e)}}ee.create=(e,t)=>new ee({type:e,minLength:null,maxLength:null,exactLength:null,typeName:l.ZodArray,...I(t)});class et extends P{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=n.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==p.object){let t=this._getOrReturnCtx(e);return C(t,{code:g.invalid_type,expected:p.object,received:t.parsedType}),E}let{status:t,ctx:i}=this._processInputParams(e),{shape:r,keys:a}=this._getCached(),n=[];if(!(this._def.catchall instanceof X&&"strip"===this._def.unknownKeys))for(let e in i.data)a.includes(e)||n.push(e);let o=[];for(let e of a){let t=r[e],a=i.data[e];o.push({key:{status:"valid",value:e},value:t._parse(new T(i,a,i.path,e)),alwaysSet:e in i.data})}if(this._def.catchall instanceof X){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of n)o.push({key:{status:"valid",value:e},value:{status:"valid",value:i.data[e]}});else if("strict"===e)n.length>0&&(C(i,{code:g.unrecognized_keys,keys:n}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of n){let r=i.data[t];o.push({key:{status:"valid",value:t},value:e._parse(new T(i,r,i.path,t)),alwaysSet:t in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let i=await t.key;e.push({key:i,value:await t.value,alwaysSet:t.alwaysSet})}return e}).then(e=>x.mergeObjectSync(t,e)):x.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(e){return s.errToObj,new et({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,i)=>{var r,a,n,o;let l=null!=(n=null==(a=(r=this._def).errorMap)?void 0:a.call(r,t,i).message)?n:i.defaultError;return"unrecognized_keys"===t.code?{message:null!=(o=s.errToObj(e).message)?o:l}:{message:l}}}:{}})}strip(){return new et({...this._def,unknownKeys:"strip"})}passthrough(){return new et({...this._def,unknownKeys:"passthrough"})}extend(e){return new et({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new et({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:l.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new et({...this._def,catchall:e})}pick(e){let t={};return n.objectKeys(e).forEach(i=>
1958{e[i]&&this.shape[i]&&(t[i]=this.shape[i])}),new et({...this._def,shape:()=>t})}omit(e){let t={};return n.objectKeys(this.shape).forEach(i=>{e[i]||(t[i]=this.shape[i])}),new et({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof et){let i={};for(let r in t.shape){let a=t.shape[r];i[r]=ey.create(e(a))}return new et({...t._def,shape:()=>i})}if(t instanceof ee)return new ee({...t._def,type:e(t.element)});if(t instanceof ey)return ey.create(e(t.unwrap()));if(t instanceof eb)return eb.create(e(t.unwrap()));if(t instanceof eo)return eo.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};return n.objectKeys(this.shape).forEach(i=>{let r=this.shape[i];e&&!e[i]?t[i]=r:t[i]=r.optional()}),new et({...this._def,shape:()=>t})}required(e){let t={};return n.objectKeys(this.shape).forEach(i=>{if(e&&!e[i])t[i]=this.shape[i];else{let e=this.shape[i];for(;e instanceof ey;)e=e._def.innerType;t[i]=e}}),new et({...this._def,shape:()=>t})}keyof(){return ep(n.objectKeys(this.shape))}}et.create=(e,t)=>new et({shape:()=>e,unknownKeys:"strip",catchall:X.create(),typeName:l.ZodObject,...I(t)}),et.strictCreate=(e,t)=>new et({shape:()=>e,unknownKeys:"strict",catchall:X.create(),typeName:l.ZodObject,...I(t)}),et.lazycreate=(e,t)=>new et({shape:e,unknownKeys:"strip",catchall:X.create(),typeName:l.ZodObject,...I(t)});class ei extends P{_parse(e){let{ctx:t}=this._processInputParams(e),i=this._def.options;if(t.common.async)return Promise.all(i.map(async e=>{let i={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:i}),ctx:i}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let i of e)if("dirty"===i.result.status)return t.common.issues.push(...i.ctx.common.issues),i.result;let i=e.map(e=>new f(e.ctx.common.issues));return C(t,{code:g.invalid_union,unionErrors:i}),E});{let e,r=[];for(let a of i){let i={...t,common:{...t.common,issues:[]},parent:null},n=a._parseSync({data:t.data,path:t.path,parent:i});if("valid"===n.status)return n;"dirty"!==n.status||e||(e={result:n,ctx:i}),i.common.issues.length&&r.push(i.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let a=r.map(e=>new f(e));return C(t,{code:g.invalid_union,unionErrors:a}),E}}get options(){return this._def.options}}ei.create=(e,t)=>new ei({options:e,typeName:l.ZodUnion,...I(t)});let er=e=>{if(e instanceof eu)return er(e.schema);if(e instanceof ew)return er(e.innerType());if(e instanceof eh)return[e.value];if(e instanceof em)return e.options;if(e instanceof eg)return Object.keys(e.enum);else if(e instanceof ev)return er(e._def.innerType);else if(e instanceof K)return[void 0];else if(e instanceof G)return[null];else return null};class ea extends P{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==p.object)return C(t,{code:g.invalid_type,expected:p.object,received:t.parsedType}),E;let i=this.discriminator,r=t.data[i],a=this.optionsMap.get(r);return a?t.common.async?a._parseAsync({data:t.data,path:t.path,parent:t}):a._parseSync({data:t.data,path:t.path,parent:t}):(C(t,{code:g.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),E)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,i){let r=new Map;for(let i of t){let t=er(i.shape[e]);if(!t)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let a of t){if(r.has(a))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);r.set(a,i)}}return new ea({typeName:l.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...I(i)})}}class en extends P{_parse(e){let{status:t,ctx:i}=this._processInputParams(e),r=(e,r)=>{if($(e)||$(r))return E;let a=function e(t,i){let r=m(t),a=m(i);if(t===i)return{valid:!0,data:t};if(r===p.object&&a===p.object){let r=n.objectKeys(i),a=n.objectKeys(t).filter(e=>-1!==r.indexOf(e)),o={...t,...i};for(let r of a){let a=e(t[r],i[r]);
1958if(!a.valid)return{valid:!1};o[r]=a.data}return{valid:!0,data:o}}if(r===p.array&&a===p.array){if(t.length!==i.length)return{valid:!1};let r=[];for(let a=0;a<t.length;a++){let n=e(t[a],i[a]);if(!n.valid)return{valid:!1};r.push(n.data)}return{valid:!0,data:r}}if(r===p.date&&a===p.date&&+t==+i)return{valid:!0,data:t};return{valid:!1}}(e.value,r.value);return a.valid?((_(e)||_(r))&&t.dirty(),{status:t.value,value:a.data}):(C(i,{code:g.invalid_intersection_types}),E)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}en.create=(e,t,i)=>new en({left:e,right:t,typeName:l.ZodIntersection,...I(i)});class eo extends P{_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==p.array)return C(i,{code:g.invalid_type,expected:p.array,received:i.parsedType}),E;if(i.data.length<this._def.items.length)return C(i,{code:g.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),E;!this._def.rest&&i.data.length>this._def.items.length&&(C(i,{code:g.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let r=[...i.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new T(i,e,i.path,t)):null}).filter(e=>!!e);return i.common.async?Promise.all(r).then(e=>x.mergeArray(t,e)):x.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new eo({...this._def,rest:e})}}eo.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new eo({items:e,typeName:l.ZodTuple,rest:null,...I(t)})};class es extends P{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==p.object)return C(i,{code:g.invalid_type,expected:p.object,received:i.parsedType}),E;let r=[],a=this._def.keyType,n=this._def.valueType;for(let e in i.data)r.push({key:a._parse(new T(i,e,i.path,e)),value:n._parse(new T(i,i.data[e],i.path,e))});return i.common.async?x.mergeObjectAsync(t,r):x.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,i){return new es(t instanceof P?{keyType:e,valueType:t,typeName:l.ZodRecord,...I(i)}:{keyType:j.create(),valueType:e,typeName:l.ZodRecord,...I(t)})}}class el extends P{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==p.map)return C(i,{code:g.invalid_type,expected:p.map,received:i.parsedType}),E;let r=this._def.keyType,a=this._def.valueType,n=[...i.data.entries()].map(([e,t],n)=>({key:r._parse(new T(i,e,i.path,[n,"key"])),value:a._parse(new T(i,t,i.path,[n,"value"]))}));if(i.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let i of n){let r=await i.key,a=await i.value;if("aborted"===r.status||"aborted"===a.status)return E;("dirty"===r.status||"dirty"===a.status)&&t.dirty(),e.set(r.value,a.value)}return{status:t.value,value:e}})}{let e=new Map;for(let i of n){let r=i.key,a=i.value;if("aborted"===r.status||"aborted"===a.status)return E;("dirty"===r.status||"dirty"===a.status)&&t.dirty(),e.set(r.value,a.value)}return{status:t.value,value:e}}}}el.create=(e,t,i)=>new el({valueType:t,keyType:e,typeName:l.ZodMap,...I(i)});class ec extends P{_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==p.set)return C(i,{code:g.invalid_type,expected:p.set,received:i.parsedType}),E;let r=this._def;null!==r.minSize&&i.data.size<r.minSize.value&&(C(i,{code:g.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&i.data.size>r.maxSize.value&&(C(i,{code:g.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let a=this._def.valueType;function n(e){let i=new Set;for(let r of e){if("aborted"===r.status)return E;"dirty"===r.status&&t.dirty(),i.add(r.value)}return{status:t.value,value:i}}let o=[...i.data.values()].map((e,t)=>a._parse(new T(i,e,i.path,t)));return i.common.async?Promise.all(o).then(e=>n(e)):n(o)}min(e,t){return new ec({...this._def,minSize:{value:e,message:s.toString(t)}})}max(e,t){return new ec({...this._def,maxSize:{value:e,message:s.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ec.create=(e,t)=>
1958new ec({valueType:e,minSize:null,maxSize:null,typeName:l.ZodSet,...I(t)});class ed extends P{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==p.function)return C(t,{code:g.invalid_type,expected:p.function,received:t.parsedType}),E;function i(e,i){return v({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,b(),w].filter(e=>!!e),issueData:{code:g.invalid_arguments,argumentsError:i}})}function r(e,i){return v({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,b(),w].filter(e=>!!e),issueData:{code:g.invalid_return_type,returnTypeError:i}})}let a={errorMap:t.common.contextualErrorMap},n=t.data;if(this._def.returns instanceof ef){let e=this;return A(async function(...t){let o=new f([]),s=await e._def.args.parseAsync(t,a).catch(e=>{throw o.addIssue(i(t,e)),o}),l=await Reflect.apply(n,this,s);return await e._def.returns._def.type.parseAsync(l,a).catch(e=>{throw o.addIssue(r(l,e)),o})})}{let e=this;return A(function(...t){let o=e._def.args.safeParse(t,a);if(!o.success)throw new f([i(t,o.error)]);let s=Reflect.apply(n,this,o.data),l=e._def.returns.safeParse(s,a);if(!l.success)throw new f([r(s,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ed({...this._def,args:eo.create(e).rest(Y.create())})}returns(e){return new ed({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,i){return new ed({args:e||eo.create([]).rest(Y.create()),returns:t||Y.create(),typeName:l.ZodFunction,...I(i)})}}class eu extends P{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}eu.create=(e,t)=>new eu({getter:e,typeName:l.ZodLazy,...I(t)});class eh extends P{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return C(t,{received:t.data,code:g.invalid_literal,expected:this._def.value}),E}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ep(e,t){return new em({values:e,typeName:l.ZodEnum,...I(t)})}eh.create=(e,t)=>new eh({value:e,typeName:l.ZodLiteral,...I(t)});class em extends P{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),i=this._def.values;return C(t,{expected:n.joinValues(i),received:t.parsedType,code:g.invalid_type}),E}if(-1===this._def.values.indexOf(e.data)){let t=this._getOrReturnCtx(e),i=this._def.values;return C(t,{received:t.data,code:g.invalid_enum_value,options:i}),E}return A(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e){return em.create(e)}exclude(e){return em.create(this.options.filter(t=>!e.includes(t)))}}em.create=ep;class eg extends P{_parse(e){let t=n.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==p.string&&i.parsedType!==p.number){let e=n.objectValues(t);return C(i,{expected:n.joinValues(e),received:i.parsedType,code:g.invalid_type}),E}if(-1===t.indexOf(e.data)){let e=n.objectValues(t);return C(i,{received:i.data,code:g.invalid_enum_value,options:e}),E}return A(e.data)}get enum(){return this._def.values}}eg.create=(e,t)=>new eg({values:e,typeName:l.ZodNativeEnum,...I(t)});class ef extends P{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==p.promise&&!1===t.common.async?(C(t,{code:g.invalid_type,expected:p.promise,received:t.parsedType}),E):A((t.parsedType===p.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}ef.create=(e,t)=>new ef({type:e,typeName:l.ZodPromise,...I(t)});class ew extends P{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===l.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:i}=this._processInputParams(e),r=this._def.effect||null,a={addIssue:e=>{C(i,e),e.fatal?t.abort():t.dirty()},get path(){return i.path}};if(a.addIssue=a.addIssue.bind(a),"preprocess"===r.type){let e=r.transform(i.data,a);return i.common.issues.length?{status:"dirty",value:i.data}:i.common.async?Promise.resolve(e).then(e=>this._def.schema._parseAsync({data:e,path:i.path,parent:i})):this._def.schema._parseSync({data:e,path:i.path,parent:i})}if("refinement"===r.type){let e=e=>{let t=r.refinement(e,a);if(i.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==i.common.async)return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(i=>"aborted"===i.status?E:("dirty"===i.status&&t.dirty(),e(i.value).then(()=>({status:t.value,value:i.value}))));{let r=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return"aborted"===r.status?E:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}}if("transform"===r.type)if(!1!==i.common.async)return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(e=>N(e)?Promise.resolve(r.transform(e.value,a)).then(e=>({status:t.value,value:e})):e);else{let e=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!N(e))return e;let n=r.transform(e.value,a);if(n instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:n}}n.assertNever(r)}}ew.create=(e,t,i)=>new ew({schema:e,typeName:l.ZodEffects,effect:t,...I(i)}),ew.createWithPreprocess=(e,t,i)=>new ew({schema:t,effect:{type:"preprocess",transform:e},typeName:l.ZodEffects,...I(i)});class ey extends P{_parse(e){return this._getType(e)===p.undefined?A(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ey.create=(e,t)=>
1958new ey({innerType:e,typeName:l.ZodOptional,...I(t)});class eb extends P{_parse(e){return this._getType(e)===p.null?A(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eb.create=(e,t)=>new eb({innerType:e,typeName:l.ZodNullable,...I(t)});class ev extends P{_parse(e){let{ctx:t}=this._processInputParams(e),i=t.data;return t.parsedType===p.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ev.create=(e,t)=>new ev({innerType:e,typeName:l.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...I(t)});class eC extends P{_parse(e){let{ctx:t}=this._processInputParams(e),i={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return S(r)?r.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new f(i.common.issues)},input:i.data})})):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new f(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}eC.create=(e,t)=>new eC({innerType:e,typeName:l.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...I(t)});class ex extends P{_parse(e){if(this._getType(e)!==p.nan){let t=this._getOrReturnCtx(e);return C(t,{code:g.invalid_type,expected:p.nan,received:t.parsedType}),E}return{status:"valid",value:e.data}}}ex.create=e=>new ex({typeName:l.ZodNaN,...I(e)});let eE=Symbol("zod_brand");class ek extends P{_parse(e){let{ctx:t}=this._processInputParams(e),i=t.data;return this._def.type._parse({data:i,path:t.path,parent:t})}unwrap(){return this._def.type}}class eA extends P{_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return"aborted"===e.status?E:"dirty"===e.status?(t.dirty(),k(e.value)):this._def.out._parseAsync({data:e.value,path:i.path,parent:i})})();{let e=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return"aborted"===e.status?E:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:i.path,parent:i})}}static create(e,t){return new eA({in:e,out:t,typeName:l.ZodPipeline})}}class e$ extends P{_parse(e){let t=this._def.innerType._parse(e);return N(t)&&(t.value=Object.freeze(t.value)),t}}e$.create=(e,t)=>new e$({innerType:e,typeName:l.ZodReadonly,...I(t)});let e_=(e,t={},i)=>e?J.create().superRefine((r,a)=>{var n,o;if(!e(r)){let e="function"==typeof t?t(r):"string"==typeof t?{message:t}:t,s=null==(o=null!=(n=e.fatal)?n:i)||o,l="string"==typeof e?{message:e}:e;a.addIssue({code:"custom",...l,fatal:s})}}):J.create(),eN={object:et.lazycreate};!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(l||(l={}));let eS=j.create,eT=Z.create,eR=ex.create,eI=B.create,eP=z.create,eO=q.create,eM=V.create,eW=K.create,eL=G.create,eD=J.create,eU=Y.create,eF=X.create,eH=Q.create,ej=ee.create,eZ=et.create,eB=et.strictCreate,ez=ei.create,eq=ea.create,eV=en.create,eK=eo.create,eG=es.create,eJ=el.create,eY=ec.create,eX=ed.create,eQ=eu.create,e0=eh.create,e1=em.create,e2=eg.create,e3=ef.create,e5=ew.create,e4=ey.create,e6=eb.create,e9=ew.createWithPreprocess,e8=eA.create;var e7=Object.freeze({__proto__:null,defaultErrorMap:w,setErrorMap:function(e){y=e},getErrorMap:b,makeIssue:v,EMPTY_PATH:[],addIssueToContext:C,ParseStatus:x,INVALID:E,DIRTY:k,OK:A,isAborted:$,isDirty:_,isValid:N,isAsync:S,get util(){return n},get objectUtil(){return o},ZodParsedType:p,getParsedType:m,ZodType:P,ZodString:j,ZodNumber:Z,ZodBigInt:B,ZodBoolean:z,ZodDate:q,ZodSymbol:V,ZodUndefined:K,ZodNull:G,ZodAny:J,ZodUnknown:Y,ZodNever:X,ZodVoid:Q,ZodArray:ee,ZodObject:et,ZodUnion:ei,ZodDiscriminatedUnion:ea,ZodIntersection:en,ZodTuple:eo,ZodRecord:es,ZodMap:el,ZodSet:ec,ZodFunction:ed,ZodLazy:eu,ZodLiteral:eh,ZodEnum:em,ZodNativeEnum:eg,ZodPromise:ef,ZodEffects:ew,ZodTransformer:ew,ZodOptional:ey,ZodNullable:eb,ZodDefault:ev,ZodCatch:eC,ZodNaN:ex,BRAND:eE,ZodBranded:ek,ZodPipeline:eA,ZodReadonly:e$,custom:e_,Schema:P,ZodSchema:P,late:eN,get ZodFirstPartyTypeKind(){return l},coerce:{string:e=>j.create({...e,coerce:!0}),number:e=>Z.create({...e,coerce:!0}),boolean:e=>z.create({...e,coerce:!0}),bigint:e=>B.create({...e,coerce:!0}),date:e=>q.create({...e,coerce:!0})},any:eD,array:ej,bigint:eI,boolean:eP,date:eO,discriminatedUnion:eq,effect:e5,enum:e1,function:eX,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>e_(t=>t instanceof e,t),intersection:eV,lazy:eQ,literal:e0,map:eJ,nan:eR,nativeEnum:e2,never:eF,null:eL,nullable:e6,number:eT,object:eZ,oboolean:()=>eP().optional(),onumber:()=>eT().optional(),optional:e4,ostring:()=>eS().optional(),pipeline:e8,preprocess:e9,promise:e3,record:eG,set:eY,strictObject:eB,string:eS,symbol:eM,transformer:e5,tuple:eK,undefined:eW,union:ez,unknown:eU,void:eH,NEVER:E,ZodIssueCode:g,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:f});let te=e7.object({message:e7.string()});function tt(e){return e7.literal(u.s1[e])}let ti=e7.object({serializedMessage:e7.string().optional(),accountAddress:e7.string(),chainId:e7.string(),notBefore:e7.string().optional(),domain:e7.string(),uri:e7.string(),version:e7.string(),nonce:e7.string(),statement:e7.string().optional(),resources:e7.array(e7.string()).optional(),requestId:e7.string().optional(),issuedAt:e7.string().optional(),expirationTime:e7.string().optional()});e7.object({accessList:e7.array(e7.string()),blockHash:e7.string().nullable(),blockNumber:e7.string().nullable(),chainId:e7.string().or(e7.number()),from:e7.string(),gas:e7.string(),hash:e7.string(),input
1958:e7.string().nullable(),maxFeePerGas:e7.string(),maxPriorityFeePerGas:e7.string(),nonce:e7.string(),r:e7.string(),s:e7.string(),to:e7.string(),transactionIndex:e7.string().nullable(),type:e7.string(),v:e7.string(),value:e7.string()});let tr=e7.object({chainId:e7.string().or(e7.number()),rpcUrl:e7.optional(e7.string())}),ta=e7.object({email:e7.string().email()}),tn=e7.object({otp:e7.string()}),to=e7.object({uri:e7.string(),preferredAccountType:e7.optional(e7.string()),chainId:e7.optional(e7.string().or(e7.number())),siwxMessage:e7.optional(ti),rpcUrl:e7.optional(e7.string())}),ts=e7.object({chainId:e7.optional(e7.string().or(e7.number())),preferredAccountType:e7.optional(e7.string()),socialUri:e7.optional(e7.string()),siwxMessage:e7.optional(ti),rpcUrl:e7.optional(e7.string())}),tl=e7.object({provider:e7.enum(["google","github","apple","facebook","x","discord"])}),tc=e7.object({email:e7.string().email()}),td=e7.object({otp:e7.string()}),tu=e7.object({otp:e7.string()}),th=e7.object({themeMode:e7.optional(e7.enum(["light","dark"])),themeVariables:e7.optional(e7.record(e7.string(),e7.string().or(e7.number()))),w3mThemeVariables:e7.optional(e7.record(e7.string(),e7.string()))}),tp=e7.object({metadata:e7.object({name:e7.string(),description:e7.string(),url:e7.string(),icons:e7.array(e7.string())}).optional(),sdkVersion:e7.string().optional(),sdkType:e7.string().optional(),projectId:e7.string()}),tm=e7.object({type:e7.string()}),tg=e7.object({action:e7.enum(["VERIFY_DEVICE","VERIFY_OTP","CONNECT"])}),tf=e7.object({url:e7.string()}),tw=e7.object({userName:e7.string()}),ty=e7.object({email:e7.string().optional().nullable(),address:e7.string(),chainId:e7.string().or(e7.number()),accounts:e7.array(e7.object({address:e7.string(),type:e7.enum([u.Vl.ACCOUNT_TYPES.EOA,u.Vl.ACCOUNT_TYPES.SMART_ACCOUNT])})).optional(),userName:e7.string().optional().nullable(),preferredAccountType:e7.optional(e7.string()),signature:e7.string().optional(),message:e7.string().optional(),siwxMessage:e7.optional(ti)}),tb=e7.object({action:e7.enum(["VERIFY_PRIMARY_OTP","VERIFY_SECONDARY_OTP"])}),tv=e7.object({email:e7.string().email().optional().nullable(),address:e7.string(),chainId:e7.string().or(e7.number()),smartAccountDeployed:e7.optional(e7.boolean()),accounts:e7.array(e7.object({address:e7.string(),type:e7.enum([u.Vl.ACCOUNT_TYPES.EOA,u.Vl.ACCOUNT_TYPES.SMART_ACCOUNT])})).optional(),preferredAccountType:e7.optional(e7.string()),signature:e7.string().optional(),message:e7.string().optional(),siwxMessage:e7.optional(ti)}),tC=e7.object({uri:e7.string()}),tx=e7.object({isConnected:e7.boolean()}),tE=e7.object({chainId:e7.string().or(e7.number())}),tk=e7.object({chainId:e7.string().or(e7.number())}),tA=e7.object({newEmail:e7.string().email()}),t$=e7.object({smartAccountEnabledNetworks:e7.array(e7.number())});e7.object({address:e7.string(),isDeployed:e7.boolean()});let t_=e7.object({version:e7.string().optional()}),tN=e7.object({type:e7.string(),address:e7.string()}),tS=e7.any(),tT=e7.object({method:e7.literal("eth_accounts")}),tR=e7.object({method:e7.literal("eth_blockNumber")}),tI=e7.object({method:e7.literal("eth_call"),params:e7.array(e7.any())}),tP=e7.object({method:e7.literal("eth_chainId")}),tO=e7.object({method:e7.literal("eth_estimateGas"),params:e7.array(e7.any())}),tM=e7.object({method:e7.literal("eth_feeHistory"),params:e7.array(e7.any())}),tW=e7.object({method:e7.literal("eth_gasPrice")}),tL=e7.object({method:e7.literal("eth_getAccount"),params:e7.array(e7.any())}),tD=e7.object({method:e7.literal("eth_getBalance"),params:e7.array(e7.any())}),tU=e7.object({method:e7.literal("eth_getBlockByHash"),params:e7.array(e7.any())}),tF=e7.object({method:e7.literal("eth_getBlockByNumber"),params:e7.array(e7.any())}),tH=e7.object({method:e7.literal("eth_getBlockReceipts"),params:e7.array(e7.any())}),tj=e7.object({method:e7.literal("eth_getBlockTransactionCountByHash"),params:e7.array(e7.any())}),tZ=e7.object({method:e7.literal("eth_getBlockTransactionCountByNumber"),params:e7.array(e7.any())}),tB=e7.object({method:e7.literal("eth_getCode"),params:e7.array(e7.any())}),tz=e7.object({method:e7.literal("eth_getFilterChanges"),params:e7.array(e7.any())}),tq=e7.object({method:e7.literal("eth_getFilterLogs"),params:e7.array(e7.any())}),tV=e7.object({method:e7.literal("eth_getLogs"),params:e7.array(e7.any())}),tK=e7.object({method:e7.literal("eth_getProof"),params:e7.array(e7.any())}),tG=e7.object({method:e7.literal("eth_getStorageAt"),params:e7.array(e7.any())}),tJ=e7.object({method:e7.literal("eth_getTransactionByBlockHashAndIndex"),params:e7.array(e7.any())}),tY=e7.object({method:e7.literal("eth_getTransactionByBlockNumberAndIndex"),params:e7.array(e7.any())}),tX=e7.object({method:e7.literal("eth_getTransactionByHash"),params:e7.array(e7.any())}),tQ=e7.object({method:e7.literal("eth_getTransactionCount"),params:e7.array(e7.any())}),t0=e7.object({method:e7.literal("eth_getTransactionReceipt"),params:e7.array(e7.any())}),t1=e7.object({method:e7.literal("eth_getUncleCountByBlockHash"),params:e7.array(e7.any())}
1958),t2=e7.object({method:e7.literal("eth_getUncleCountByBlockNumber"),params:e7.array(e7.any())}),t3=e7.object({method:e7.literal("eth_maxPriorityFeePerGas")}),t5=e7.object({method:e7.literal("eth_newBlockFilter")}),t4=e7.object({method:e7.literal("eth_newFilter"),params:e7.array(e7.any())}),t6=e7.object({method:e7.literal("eth_newPendingTransactionFilter")}),t9=e7.object({method:e7.literal("eth_sendRawTransaction"),params:e7.array(e7.any())}),t8=e7.object({method:e7.literal("eth_syncing"),params:e7.array(e7.any())}),t7=e7.object({method:e7.literal("eth_uninstallFilter"),params:e7.array(e7.any())}),ie=e7.object({method:e7.literal("personal_sign"),params:e7.array(e7.any())}),it=e7.object({method:e7.literal("eth_signTypedData_v4"),params:e7.array(e7.any())}),ii=e7.object({method:e7.literal("eth_sendTransaction"),params:e7.array(e7.any())}),ir=e7.object({method:e7.literal("solana_signMessage"),params:e7.object({message:e7.string(),pubkey:e7.string()})}),ia=e7.object({method:e7.literal("solana_signTransaction"),params:e7.object({transaction:e7.string()})}),io=e7.object({method:e7.literal("solana_signAllTransactions"),params:e7.object({transactions:e7.array(e7.string())})}),is=e7.object({method:e7.literal("solana_signAndSendTransaction"),params:e7.object({transaction:e7.string(),options:e7.object({skipPreflight:e7.boolean().optional(),preflightCommitment:e7.enum(["processed","confirmed","finalized","recent","single","singleGossip","root","max"]).optional(),maxRetries:e7.number().optional(),minContextSlot:e7.number().optional()}).optional()})}),il=e7.object({method:e7.literal("wallet_sendCalls"),params:e7.array(e7.object({chainId:e7.string().or(e7.number()).optional(),from:e7.string().optional(),version:e7.string().optional(),capabilities:e7.any().optional(),calls:e7.array(e7.object({to:e7.string().startsWith("0x"),data:e7.string().startsWith("0x").optional(),value:e7.string().optional()}))}))}),ic=e7.object({method:e7.literal("wallet_getCallsStatus"),params:e7.array(e7.string())}),id=e7.object({method:e7.literal("wallet_getCapabilities"),params:e7.array(e7.string().or(e7.number()).optional()).optional()}),iu=e7.object({method:e7.literal("wallet_grantPermissions"),params:e7.array(e7.any())}),ih=e7.object({method:e7.literal("wallet_revokePermissions"),params:e7.any()}),ip=e7.object({method:e7.literal("wallet_getAssets"),params:e7.any()}),im=e7.object({token:e7.string()}),ig=e7.object({id:e7.string().optional()}),iw={appEvent:ig.extend({type:tt("APP_SWITCH_NETWORK"),payload:tr}).or(ig.extend({type:tt("APP_CONNECT_EMAIL"),payload:ta})).or(ig.extend({type:tt("APP_CONNECT_DEVICE")})).or(ig.extend({type:tt("APP_CONNECT_OTP"),payload:tn})).or(ig.extend({type:tt("APP_CONNECT_SOCIAL"),payload:to})).or(ig.extend({type:tt("APP_GET_FARCASTER_URI")})).or(ig.extend({type:tt("APP_CONNECT_FARCASTER")})).or(ig.extend({type:tt("APP_GET_USER"),payload:e7.optional(ts)})).or(ig.extend({type:tt("APP_GET_SOCIAL_REDIRECT_URI"),payload:tl})).or(ig.extend({type:tt("APP_SIGN_OUT")})).or(ig.extend({type:tt("APP_IS_CONNECTED"),payload:e7.optional(im)})).or(ig.extend({type:tt("APP_GET_CHAIN_ID")})).or(ig.extend({type:tt("APP_GET_SMART_ACCOUNT_ENABLED_NETWORKS")})).or(ig.extend({type:tt("APP_INIT_SMART_ACCOUNT")})).or(ig.extend({type:tt("APP_SET_PREFERRED_ACCOUNT"),payload:tm})).or(ig.extend({type:tt("APP_RPC_REQUEST"),payload:ie.or(ip).or(tT).or(tR).or(tI).or(tP).or(tO).or(tM).or(tW).or(tL).or(tD).or(tU).or(tF).or(tH).or(tj).or(tZ).or(tB).or(tz).or(tq).or(tV).or(tK).or(tG).or(tJ).or(tY).or(tX).or(tQ).or(t0).or(t1).or(t2).or(t3).or(t5).or(t4).or(t6).or(t9).or(t8).or(t7).or(ie).or(it).or(ii).or(ir).or(ia).or(io).or(is).or(ic).or(il).or(id).or(iu).or(ih).and(e7.object({chainId:e7.string().or(e7.number()).optional(),chainNamespace:e7.enum(["eip155","solana","polkadot","bip122","cosmos"]).optional(),rpcUrl:e7.string().optional()}))})).or(ig.extend({type:tt("APP_UPDATE_EMAIL"),payload:tc})).or(ig.extend({type:tt("APP_UPDATE_EMAIL_PRIMARY_OTP"),payload:td})).or(ig.extend({type:tt("APP_UPDATE_EMAIL_SECONDARY_OTP"),payload:tu})).or(ig.extend({type:tt("APP_SYNC_THEME"),payload:th})).or(ig.extend({type:tt("APP_SYNC_DAPP_DATA"),payload:tp})).or(ig.extend({type:tt("APP_RELOAD")})).or(ig.extend({type:tt("APP_RPC_ABORT")}
1958)),frameEvent:ig.extend({type:tt("FRAME_SWITCH_NETWORK_ERROR"),payload:te}).or(ig.extend({type:tt("FRAME_SWITCH_NETWORK_SUCCESS"),payload:tk})).or(ig.extend({type:tt("FRAME_CONNECT_EMAIL_SUCCESS"),payload:tg})).or(ig.extend({type:tt("FRAME_CONNECT_EMAIL_ERROR"),payload:te})).or(ig.extend({type:tt("FRAME_GET_FARCASTER_URI_SUCCESS"),payload:tf})).or(ig.extend({type:tt("FRAME_GET_FARCASTER_URI_ERROR"),payload:te})).or(ig.extend({type:tt("FRAME_CONNECT_FARCASTER_SUCCESS"),payload:tw})).or(ig.extend({type:tt("FRAME_CONNECT_FARCASTER_ERROR"),payload:te})).or(ig.extend({type:tt("FRAME_CONNECT_OTP_ERROR"),payload:te})).or(ig.extend({type:tt("FRAME_CONNECT_OTP_SUCCESS")})).or(ig.extend({type:tt("FRAME_CONNECT_DEVICE_ERROR"),payload:te})).or(ig.extend({type:tt("FRAME_CONNECT_DEVICE_SUCCESS")})).or(ig.extend({type:tt("FRAME_CONNECT_SOCIAL_SUCCESS"),payload:ty})).or(ig.extend({type:tt("FRAME_CONNECT_SOCIAL_ERROR"),payload:te})).or(ig.extend({type:tt("FRAME_GET_USER_ERROR"),payload:te})).or(ig.extend({type:tt("FRAME_GET_USER_SUCCESS"),payload:tv})).or(ig.extend({type:tt("FRAME_GET_SOCIAL_REDIRECT_URI_ERROR"),payload:te})).or(ig.extend({type:tt("FRAME_GET_SOCIAL_REDIRECT_URI_SUCCESS"),payload:tC})).or(ig.extend({type:tt("FRAME_SIGN_OUT_ERROR"),payload:te})).or(ig.extend({type:tt("FRAME_SIGN_OUT_SUCCESS")})).or(ig.extend({type:tt("FRAME_IS_CONNECTED_ERROR"),payload:te})).or(ig.extend({type:tt("FRAME_IS_CONNECTED_SUCCESS"),payload:tx})).or(ig.extend({type:tt("FRAME_GET_CHAIN_ID_ERROR"),payload:te})).or(ig.extend({type:tt("FRAME_GET_CHAIN_ID_SUCCESS"),payload:tE})).or(ig.extend({type:tt("FRAME_RPC_REQUEST_ERROR"),payload:te})).or(ig.extend({type:tt("FRAME_RPC_REQUEST_SUCCESS"),payload:tS})).or(ig.extend({type:tt("FRAME_SESSION_UPDATE"),payload:im})).or(ig.extend({type:tt("FRAME_UPDATE_EMAIL_ERROR"),payload:te})).or(ig.extend({type:tt("FRAME_UPDATE_EMAIL_SUCCESS"),payload:tb})).or(ig.extend({type:tt("FRAME_UPDATE_EMAIL_PRIMARY_OTP_ERROR"),payload:te})).or(ig.extend({type:tt("FRAME_UPDATE_EMAIL_PRIMARY_OTP_SUCCESS")})).or(ig.extend({type:tt("FRAME_UPDATE_EMAIL_SECONDARY_OTP_ERROR"),payload:te})).or(ig.extend({type:tt("FRAME_UPDATE_EMAIL_SECONDARY_OTP_SUCCESS"),payload:tA})).or(ig.extend({type:tt("FRAME_SYNC_THEME_ERROR"),payload:te})).or(ig.extend({type:tt("FRAME_SYNC_THEME_SUCCESS")})).or(ig.extend({type:tt("FRAME_SYNC_DAPP_DATA_ERROR"),payload:te})).or(ig.extend({type:tt("FRAME_SYNC_DAPP_DATA_SUCCESS")})).or(ig.extend({type:tt("FRAME_GET_SMART_ACCOUNT_ENABLED_NETWORKS_SUCCESS"),payload:t$})).or(ig.extend({type:tt("FRAME_GET_SMART_ACCOUNT_ENABLED_NETWORKS_ERROR"),payload:te})).or(ig.extend({type:tt("FRAME_INIT_SMART_ACCOUNT_ERROR"),payload:te})).or(ig.extend({type:tt("FRAME_SET_PREFERRED_ACCOUNT_SUCCESS"),payload:tN})).or(ig.extend({type:tt("FRAME_SET_PREFERRED_ACCOUNT_ERROR"),payload:te})).or(ig.extend({type:tt("FRAME_READY"),payload:t_})).or(ig.extend({type:tt("FRAME_RELOAD_ERROR"),payload:te})).or(ig.extend({type:tt("FRAME_RELOAD_SUCCESS")}))};var iy=i(91671);function ib(e,t={}){return"string"==typeof t?.type&&t?.type?.includes(e)}class iv{constructor({projectId:e,isAppClient:t=!1,chainId:i="eip155:1",enableLogger:r=!0,enableCloudAuthAccount:a=!1,rpcUrl:n=d.BLOCKCHAIN_API_RPC_URL}){if(this.iframe=null,this.iframeIsReady=!1,this.initFrame=()=>{let e=document.getElementById("w3m-iframe");this.iframe&&!e&&document.body.appendChild(this.iframe)},this.events={registerFrameEventHandler:(e,t,i)=>{function r({data:i}){if(!ib(u.s1.FRAME_EVENT_KEY,i))return;let a=iw.frameEvent.safeParse(i);if(!a.success)return void console.warn("W3mFrame: invalid frame event",a.error.message);a.data?.id===e&&(t(a.data),window.removeEventListener("message",r))}h.Q.isClient&&(window.addEventListener("message",r),i.addEventListener("abort",()=>{window.removeEventListener("message",r)}))},onFrameEvent:e=>{h.Q.isClient&&window.addEventListener("message",({data:t})=>{if(!ib(u.s1.FRAME_EVENT_KEY,t))return;let i=iw.frameEvent.safeParse(t);i.success?e(i.data):console.warn("W3mFrame: invalid frame event",i.error.message)})},onAppEvent:e=>{h.Q.isClient&&window.addEventListener("message",({data:t})=>{if(!ib(u.s1.APP_EVENT_KEY,t))return;let i=iw.appEvent.safeParse(t);i.success||console.warn("W3mFrame: invalid app event",i.error.message),e(t)})},postAppEvent:e=>{if(h.Q.isClient){if(!this.iframe?.contentWindow)throw Error("W3mFrame: iframe is not set");this.iframe.contentWindow.postMessage(e,"*")}},postFrameEvent:e=>{if(h.Q.isClient){if(!parent)throw Error("W3mFrame: parent is not set");parent.postMessage(e,"*")}}},this.projectId=e,this.frameLoadPromise=new Promise((e,t)=>
1958{this.frameLoadPromiseResolver={resolve:e,reject:t}}),this.rpcUrl=n,t&&(this.frameLoadPromise=new Promise((e,t)=>{this.frameLoadPromiseResolver={resolve:e,reject:t}}),h.Q.isClient)){let t=document.createElement("iframe");t.id="w3m-iframe",t.src=function({projectId:e,chainId:t,enableLogger:i,rpcUrl:r=d.BLOCKCHAIN_API_RPC_URL,enableCloudAuthAccount:a=!1}){let n=new URL(u.hy);n.searchParams.set("projectId",e),n.searchParams.set("chainId",String(t)),n.searchParams.set("version",u.gS),n.searchParams.set("enableLogger",String(i)),n.searchParams.set("rpcUrl",r);let o=iy.o.get("dapp_smart_account_version");return o&&("v6"===o||"v7"===o)&&(console.warn(">> AppKit - Forcing smart account version",o),n.searchParams.set("smartAccountVersion",o)),a&&n.searchParams.set("enableCloudAuthAccount","true"),n.toString()}({projectId:e,chainId:i,enableLogger:r,rpcUrl:this.rpcUrl,enableCloudAuthAccount:a}),t.name="w3m-secure-iframe",t.style.position="fixed",t.style.zIndex="999999",t.style.display="none",t.style.border="none",t.style.animationDelay="0s, 50ms",t.style.borderBottomLeftRadius="clamp(0px, var(--apkt-borderRadius-8), 44px)",t.style.borderBottomRightRadius="clamp(0px, var(--apkt-borderRadius-8), 44px)",this.iframe=t,this.iframe.onerror=()=>{this.frameLoadPromiseResolver?.reject("Unable to load email login dependency")},this.events.onFrameEvent(e=>{"@w3m-frame/READY"===e.type&&(this.iframeIsReady=!0,this.frameLoadPromiseResolver?.resolve(void 0))})}}get networks(){return Object.assign({},...["eip155:1","eip155:5","eip155:11155111","eip155:10","eip155:420","eip155:42161","eip155:421613","eip155:137","eip155:80001","eip155:42220","eip155:1313161554","eip155:1313161555","eip155:56","eip155:97","eip155:43114","eip155:43113","eip155:324","eip155:280","eip155:100","eip155:8453","eip155:84531","eip155:84532","eip155:7777777","eip155:999","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z","solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1"].map(e=>({[e]:{rpcUrl:`${this.rpcUrl}/v1/?chainId=${e}&projectId=${this.projectId}`,chainId:e}})))}}var iC=i(51742);class ix{constructor(e){let t=(0,iC.iP)({level:u.OH}),{logger:i,chunkLoggerController:r}=(0,iC.D5)({opts:t});this.logger=(0,iC.U5)(i,this.constructor.name),this.chunkLoggerController=r,"undefined"!=typeof window&&this.chunkLoggerController?.downloadLogsBlobInBrowser&&(window.downloadAppKitLogsBlob||(window.downloadAppKitLogsBlob={}),window.downloadAppKitLogsBlob.sdk=()=>{this.chunkLoggerController?.downloadLogsBlobInBrowser&&this.chunkLoggerController.downloadLogsBlobInBrowser({projectId:e})})}}class iE{constructor({projectId:e,chainId:t,enableLogger:i=!0,onTimeout:r,abortController:a,getActiveCaipNetwork:n,getCaipNetworks:o,enableCloudAuthAccount:s,metadata:l,sdkVersion:c,sdkType:d}){this.openRpcRequests=new Map,this.isInitialized=!1,i&&(this.w3mLogger=new ix(e)),this.abortController=a,this.getActiveCaipNetwork=n,this.getCaipNetworks=o;let u=this.getRpcUrl(t);this.projectId=e,this.sdkVersion=c,this.sdkType=d,this.metadata=l,this.w3mFrame=new iv({projectId:e,isAppClient:!0,chainId:t,enableLogger:i,rpcUrl:u,enableCloudAuthAccount:s}),this.onTimeout=r,this.getLoginEmailUsed()&&this.createFrame()}async createFrame(){this.w3mFrame.initFrame(),this.initPromise=new Promise(e=>{this.w3mFrame.events.onFrameEvent(t=>{t.type===u.s1.FRAME_READY&&setTimeout(()=>{e()},500)})}),await this.initPromise,await this.syncDappData({metadata:this.metadata,projectId:this.projectId,sdkVersion:this.sdkVersion,sdkType:this.sdkType}
1958),await this.getSmartAccountEnabledNetworks(),this.isInitialized=!0,this.initPromise=void 0}async init(){if(!this.isInitialized){if(this.initPromise)return void await this.initPromise;await this.createFrame()}}getLoginEmailUsed(){return!!iy.o.get(u.s1.EMAIL_LOGIN_USED_KEY)}getEmail(){return iy.o.get(u.s1.EMAIL)}getUsername(){return iy.o.get(u.s1.SOCIAL_USERNAME)}async reload(){try{await this.appEvent({type:u.s1.APP_RELOAD})}catch(e){throw this.w3mLogger?.logger.error({error:e},"Error reloading iframe"),e}}async connectEmail(e){try{h.Q.checkIfAllowedToTriggerEmail(),await this.init();let t=await this.appEvent({type:u.s1.APP_CONNECT_EMAIL,payload:e});return this.setNewLastEmailLoginTime(),t}catch(e){throw this.w3mLogger?.logger.error({error:e},"Error connecting email"),e}}async connectDevice(){try{return this.appEvent({type:u.s1.APP_CONNECT_DEVICE})}catch(e){throw this.w3mLogger?.logger.error({error:e},"Error connecting device"),e}}async connectOtp(e){try{return this.appEvent({type:u.s1.APP_CONNECT_OTP,payload:e})}catch(e){throw this.w3mLogger?.logger.error({error:e},"Error connecting otp"),e}}async isConnected(){try{if(!this.getLoginEmailUsed())return{isConnected:!1};let e=await this.appEvent({type:u.s1.APP_IS_CONNECTED});return e?.isConnected||this.deleteAuthLoginCache(),e}catch(e){throw this.deleteAuthLoginCache(),this.w3mLogger?.logger.error({error:e},"Error checking connection"),e}}async getChainId(){try{let e=await this.appEvent({type:u.s1.APP_GET_CHAIN_ID});return this.setLastUsedChainId(e.chainId),e}catch(e){throw this.w3mLogger?.logger.error({error:e},"Error getting chain id"),e}}async getSocialRedirectUri(e){try{return await this.init(),this.appEvent({type:u.s1.APP_GET_SOCIAL_REDIRECT_URI,payload:e})}catch(e){throw this.w3mLogger?.logger.error({error:e},"Error getting social redirect uri"),e}}async updateEmail(e){try{let t=await this.appEvent({type:u.s1.APP_UPDATE_EMAIL,payload:e});return this.setNewLastEmailLoginTime(),t}catch(e){throw this.w3mLogger?.logger.error({error:e},"Error updating email"),e}}async updateEmailPrimaryOtp(e){try{return this.appEvent({type:u.s1.APP_UPDATE_EMAIL_PRIMARY_OTP,payload:e})}catch(e){throw this.w3mLogger?.logger.error({error:e},"Error updating email primary otp"),e}}async updateEmailSecondaryOtp(e){try{let t=await this.appEvent({type:u.s1.APP_UPDATE_EMAIL_SECONDARY_OTP,payload:e});return this.setLoginSuccess(t.newEmail),t}catch(e){throw this.w3mLogger?.logger.error({error:e},"Error updating email secondary otp"),e}}async syncTheme(e){try{return this.appEvent({type:u.s1.APP_SYNC_THEME,payload:e})}catch(e){throw this.w3mLogger?.logger.error({error:e},"Error syncing theme"),e}}async syncDappData(e){try{return this.appEvent({type:u.s1.APP_SYNC_DAPP_DATA,payload:e})}catch(e){throw this.w3mLogger?.logger.error({error:e},"Error syncing dapp data"),e}}async getSmartAccountEnabledNetworks(){try{let e=await this.appEvent({type:u.s1.APP_GET_SMART_ACCOUNT_ENABLED_NETWORKS});return this.persistSmartAccountEnabledNetworks(e.smartAccountEnabledNetworks),e}catch(e){throw this.persistSmartAccountEnabledNetworks([]),this.w3mLogger?.logger.error({error:e},"Error getting smart account enabled networks"),e}}async setPreferredAccount(e){try{return this.appEvent({type:u.s1.APP_SET_PREFERRED_ACCOUNT,payload:{type:e}})}catch(e){throw this.w3mLogger?.logger.error({error:e},"Error setting preferred account"),e}}async connect(e){if(e?.socialUri)try{await this.init();let t=this.getRpcUrl(e.chainId),i=await this.appEvent({type:u.s1.APP_CONNECT_SOCIAL,payload:{uri:e.socialUri,preferredAccountType:e.preferredAccountType,chainId:e.chainId,siwxMessage:e.siwxMessage,rpcUrl:t}});return i.userName&&this.setSocialLoginSuccess(i.userName),this.setLoginSuccess(i.email),this.setLastUsedChainId(i.chainId),this.user=i,i}catch(e){throw this.w3mLogger?.logger.error({error:e},"Error connecting social"),e}try{let t=e?.chainId||this.getLastUsedChainId()||1,i=await this.getUser({chainId:t,preferredAccountType:e?.preferredAccountType,siwxMessage:e?.siwxMessage,rpcUrl:this.getRpcUrl(t)});
1958return this.setLoginSuccess(i.email),this.setLastUsedChainId(i.chainId),this.user=i,i}catch(e){throw this.w3mLogger?.logger.error({error:e},"Error connecting"),e}}async getUser(e){try{await this.init();let t=e?.chainId||this.getLastUsedChainId()||1,i=await this.appEvent({type:u.s1.APP_GET_USER,payload:{...e,chainId:t,rpcUrl:this.getRpcUrl(t)}});return this.user=i,i}catch(e){throw this.w3mLogger?.logger.error({error:e},"Error connecting"),e}}async connectSocial({uri:e,chainId:t,preferredAccountType:i}){try{await this.init();let r=this.getRpcUrl(t),a=await this.appEvent({type:u.s1.APP_CONNECT_SOCIAL,payload:{uri:e,chainId:t,rpcUrl:r,preferredAccountType:i}});return a.userName&&this.setSocialLoginSuccess(a.userName),a}catch(e){throw this.w3mLogger?.logger.error({error:e},"Error connecting social"),e}}async getFarcasterUri(){try{return await this.init(),await this.appEvent({type:u.s1.APP_GET_FARCASTER_URI})}catch(e){throw this.w3mLogger?.logger.error({error:e},"Error getting farcaster uri"),e}}async connectFarcaster(){try{let e=await this.appEvent({type:u.s1.APP_CONNECT_FARCASTER});return e.userName&&this.setSocialLoginSuccess(e.userName),e}catch(e){throw this.w3mLogger?.logger.error({error:e},"Error connecting farcaster"),e}}async switchNetwork({chainId:e}){try{let t=this.getRpcUrl(e),i=await this.appEvent({type:u.s1.APP_SWITCH_NETWORK,payload:{chainId:e,rpcUrl:t}});return this.setLastUsedChainId(i.chainId),i}catch(e){throw this.w3mLogger?.logger.error({error:e},"Error switching network"),e}}async disconnect(){try{return this.deleteAuthLoginCache(),await new Promise(async e=>{let t=setTimeout(()=>{e()},3e3);await this.appEvent({type:u.s1.APP_SIGN_OUT}),clearTimeout(t),e()})}catch(e){throw this.w3mLogger?.logger.error({error:e},"Error disconnecting"),e}}async request(e){try{if(u.Vl.GET_CHAIN_ID===e.method)return this.getLastUsedChainId();let t=e.chainNamespace||"eip155",i=this.getActiveCaipNetwork(t)?.id;e.chainNamespace=t,e.chainId=i,e.rpcUrl=this.getRpcUrl(i),this.rpcRequestHandler?.(e);let r=await this.appEvent({type:u.s1.APP_RPC_REQUEST,payload:e});return this.rpcSuccessHandler?.(r,e),r}catch(t){throw this.rpcErrorHandler?.(t,e),this.w3mLogger?.logger.error({error:t},"Error requesting"),t}}onRpcRequest(e){this.rpcRequestHandler=e}onRpcSuccess(e){this.rpcSuccessHandler=e}onRpcError(e){this.rpcErrorHandler=e}onIsConnected(e){this.w3mFrame.events.onFrameEvent(t=>{t.type===u.s1.FRAME_IS_CONNECTED_SUCCESS&&t.payload.isConnected&&e()})}onNotConnected(e){this.w3mFrame.events.onFrameEvent(t=>{t.type===u.s1.FRAME_IS_CONNECTED_ERROR&&e(),t.type!==u.s1.FRAME_IS_CONNECTED_SUCCESS||t.payload.isConnected||e()})}onConnect(e){this.w3mFrame.events.onFrameEvent(t=>{t.type===u.s1.FRAME_GET_USER_SUCCESS&&e(t.payload)})}onSocialConnected(e){this.w3mFrame.events.onFrameEvent(t=>{t.type===u.s1.FRAME_CONNECT_SOCIAL_SUCCESS&&e(t.payload)})}async getCapabilities(){try{return await this.request({method:"wallet_getCapabilities"})||{}}catch{return{}}}onSetPreferredAccount(e){this.w3mFrame.events.onFrameEvent(t=>{t.type===u.s1.FRAME_SET_PREFERRED_ACCOUNT_SUCCESS?e(t.payload):t.type===u.s1.FRAME_SET_PREFERRED_ACCOUNT_ERROR&&e({type:u.Vl.ACCOUNT_TYPES.EOA})})}getAvailableChainIds(){return Object.keys(this.w3mFrame.networks)}async rejectRpcRequests(){try{await Promise.all(Array.from(this.openRpcRequests.values()).map(async({abortController:e,method:t})=>{u.Vl.SAFE_RPC_METHODS.includes(t)||e.abort(),await this.appEvent({type:u.s1.APP_RPC_ABORT})})),this.openRpcRequests.clear()}catch(e){this.w3mLogger?.logger.error({error:e},"Error aborting RPC request")}}async appEvent(e){let t,i;function r(e){return e.replace("@w3m-app/","")}let a=[u.s1.APP_SYNC_DAPP_DATA,u.s1.APP_SYNC_THEME,u.s1.APP_SET_PREFERRED_ACCOUNT],n=r(e.type);return this.w3mFrame.iframeIsReady||a.includes(e.type)||(i=setTimeout(()=>{this.onTimeout?.("iframe_load_failed"),this.abortController.abort()},2e4)),await this.w3mFrame.frameLoadPromise,clearTimeout(i),[u.s1.APP_CONNECT_EMAIL,u.s1.APP_CONNECT_DEVICE,u.s1.APP_CONNECT_OTP,u.s1.APP_CONNECT_SOCIAL,u.s1.APP_GET_SOCIAL_REDIRECT_URI].map(r).includes(n)&&(t=setTimeout(()=>{this.onTimeout?.("iframe_request_timeout"),this.abortController.abort()},12e4)),new Promise((r,a)=>{let o=Math.random().toString(36).substring(7);this.w3mLogger?.logger.info?.({event:e,id:o},"Sending app event"),this.w3mFrame.events.postAppEvent({...e,id:o});let s=new AbortController;"RPC_REQUEST"===n&&this.openRpcRequests.set(o,{...e.payload,abortController:s}),s.signal.addEventListener("abort",()=>{"RPC_REQUEST"===n?a(Error("Request was aborted")):"GET_FARCASTER_URI"!==n&&a(Error("Something went wrong"))});let l=(e,s)=>{e.id===o&&(s?.logger.info?.({framEvent:e,id:o},"Received frame response"),this.openRpcRequests.delete(e.id),e.type===`@w3m-frame/${n}_SUCCESS`?(t&&clearTimeout(t),i&&clearTimeout(i),"payload"in e&&r(e.payload),r(void 0)):e.type===`@w3m-frame/${n}_ERROR`&&(t&&clearTimeout(t),i&&clearTimeout(i),"payload"in e&&a(Error(e.payload?.message||"An error occurred")),a(Error("An error occurred"))))};this.w3mFrame.events.registerFrameEventHandler(o,e=>l(e,this.w3mLogger),this.abortController.signal)}
1958)}setNewLastEmailLoginTime(){iy.o.set(u.s1.LAST_EMAIL_LOGIN_TIME,Date.now().toString())}setSocialLoginSuccess(e){iy.o.set(u.s1.SOCIAL_USERNAME,e)}setLoginSuccess(e){e&&iy.o.set(u.s1.EMAIL,e),iy.o.set(u.s1.EMAIL_LOGIN_USED_KEY,"true"),iy.o.delete(u.s1.LAST_EMAIL_LOGIN_TIME)}deleteAuthLoginCache(){iy.o.delete(u.s1.EMAIL_LOGIN_USED_KEY),iy.o.delete(u.s1.EMAIL),iy.o.delete(u.s1.LAST_USED_CHAIN_KEY),iy.o.delete(u.s1.SOCIAL_USERNAME)}setLastUsedChainId(e){e&&iy.o.set(u.s1.LAST_USED_CHAIN_KEY,String(e))}getLastUsedChainId(){let e=iy.o.get(u.s1.LAST_USED_CHAIN_KEY)??void 0,t=Number(e);return isNaN(t)?e:t}persistSmartAccountEnabledNetworks(e){iy.o.set(u.s1.SMART_ACCOUNT_ENABLED_NETWORKS,e.join(","))}getRpcUrl(e){let t=void 0===e?void 0:"eip155";"string"==typeof e&&(t=e.includes(":")?a.parseCaipNetworkId(e)?.chainNamespace:Number.isInteger(Number(e))?"eip155":"solana");let i=this.getCaipNetworks(t),r=e?i.find(t=>String(t.id)===String(e)||t.caipNetworkId===e):i[0];return r?.rpcUrls.default.http?.[0]}}},39212:(e,t,i)=>{let r=i(77294);function a(e,t){let i=e.a/255,r=t+'="'+e.hex+'"';return i<1?r+" "+t+'-opacity="'+i.toFixed(2).slice(1)+'"':r}function n(e,t,i){let r=e+t;return void 0!==i&&(r+=" "+i),r}t.render=function(e,t,i){let o=r.getOptions(t),s=e.modules.size,l=e.modules.data,c=s+2*o.margin,d=o.color.light.a?"<path "+a(o.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",u="<path "+a(o.color.dark,"stroke")+' d="'+function(e,t,i){let r="",a=0,o=!1,s=0;for(let l=0;l<e.length;l++){let c=Math.floor(l%t),d=Math.floor(l/t);c||o||(o=!0),e[l]?(s++,l>0&&c>0&&e[l-1]||(r+=o?n("M",c+i,.5+d+i):n("m",a,0),a=0,o=!1),c+1<t&&e[l+1]||(r+=n("h",s),s=0)):a++}return r}(l,s,o.margin)+'"/>',h='<svg xmlns="http://www.w3.org/2000/svg" '+(o.width?'width="'+o.width+'" height="'+o.width+'" ':"")+('viewBox="0 0 '+c+" ")+c+'" shape-rendering="crispEdges">'+d+u+"</svg>\n";return"function"==typeof i&&i(null,h),h}},39393:(e,t,i)=>{"use strict";var r=i(88633),a=i(15274),n=i(13894);i(17364),i(37218),i(69616);var o=i(62057),s=i(54718);i(32420);var l=i(21621);let c=(0,l.AH)` 1959 :host { 1960 position: relative; 1961 border-radius: ${({borderRadius:e})=>e[2]}; 1962 width: 40px; 1963 height: 40px; 1964 overflow: hidden; 1965 background: ${({tokens:e})=>e.theme.foregroundPrimary}; 1966 display: flex; 1967 justify-content: center; 1968 align-items: center; 1969 flex-wrap: wrap; 1970 column-gap: ${({spacing:e})=>e[1]}; 1971 padding: ${({spacing:e})=>e[1]}; 1972 } 1973 1974 :host > wui-wallet-image { 1975 width: 14px; 1976 height: 14px; 1977 border-radius: 2px; 1978 } 1979`;var d=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let u=class extends r.WF{constructor(){super(...arguments),this.walletImages=[]}render(){let e=this.walletImages.length<4;return(0,r.qy)`${this.walletImages.slice(0,4).map(({src:e,walletName:t})=>(0,r.qy)` 1980 <wui-wallet-image 1981 size="sm" 1982 imageSrc=${e} 1983 name=${(0,n.J)(t)} 1984 ></wui-wallet-image> 1985 `)} 1986 ${e?[...Array(4-this.walletImages.length)].map(()=>(0,r.qy)` <wui-wallet-image size="sm" name=""></wui-wallet-image>`):null} `}};u.styles=[o.W5,c],d([(0,a.MZ)({type:Array})],u.prototype,"walletImages",void 0),u=d([(0,s.E)("wui-all-wallets-image")],u),i(67661);let h=(0,l.AH)` 1987 :host { 1988 width: 100%; 1989 } 1990 1991 button { 1992 column-gap: ${({spacing:e})=>e[2]}; 1993 padding: ${({spacing:e})=>e[3]}; 1994 width: 100%; 1995 background-color: transparent; 1996 border-radius: ${({borderRadius:e})=>e[4]}; 1997 color: ${({tokens:e})=>e.theme.textPrimary}; 1998 } 1999 2000 button > wui-wallet-image { 2001 background: ${({tokens:e})=>e.theme.foregroundSecondary}; 2002 } 2003 2004 button > wui-text:nth-child(2) { 2005 display: flex; 2006 flex: 1; 2007 } 2008 2009 button:hover:enabled { 2010 background-color: ${({tokens:e})=>e.theme.foregroundPrimary}; 2011 } 2012 2013 button[data-all-wallets='true'] { 2014 background-color: ${({tokens:e})=>e.theme.foregroundPrimary}; 2015 } 2016 2017 button[data-all-wallets='true']:hover:enabled { 2018 background-color: ${({tokens:e})=>e.theme.foregroundSecondary}; 2019 } 2020 2021 button:focus-visible:enabled { 2022 background-color: ${({tokens:e})=>e.theme.foregroundPrimary}; 2023 box-shadow: 0 0 0 4px ${({tokens:e})=>e.core.foregroundAccent020}; 2024 } 2025 2026 button:disabled { 2027 background-color: ${({tokens:e})=>e.theme.foregroundPrimary}; 2028 opacity: 0.5;
2029 cursor: not-allowed; 2030 } 2031 2032 button:disabled > wui-tag { 2033 background-color: ${({tokens:e})=>e.core.glass010}; 2034 color: ${({tokens:e})=>e.theme.foregroundTertiary}; 2035 } 2036 2037 wui-flex.namespace-icon { 2038 width: 16px; 2039 height: 16px; 2040 border-radius: ${({borderRadius:e})=>e.round}; 2041 background-color: ${({tokens:e})=>e.theme.foregroundSecondary}; 2042 box-shadow: 0 0 0 2px ${({tokens:e})=>e.theme.backgroundPrimary}; 2043 transition: box-shadow var(--apkt-durations-lg) var(--apkt-easings-ease-out-power-2); 2044 } 2045 2046 button:hover:enabled wui-flex.namespace-icon { 2047 box-shadow: 0 0 0 2px ${({tokens:e})=>e.theme.foregroundPrimary}; 2048 } 2049 2050 wui-flex.namespace-icon > wui-icon { 2051 width: 10px; 2052 height: 10px; 2053 } 2054 2055 wui-flex.namespace-icon:not(:first-child) { 2056 margin-left: -4px; 2057 } 2058`;var p=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let m={eip155:"ethereum",solana:"solana",bip122:"bitcoin",polkadot:void 0,cosmos:void 0,sui:void 0,stacks:void 0,ton:"ton",tron:"tron"},g=class extends r.WF{constructor(){super(...arguments),this.walletImages=[],this.imageSrc="",this.name="",this.size="md",this.tabIdx=void 0,this.namespaces=[],this.disabled=!1,this.showAllWallets=!1,this.loading=!1,this.loadingSpinnerColor="accent-100"}render(){return this.dataset.size=this.size,(0,r.qy)` 2059 <button 2060 ?disabled=${this.disabled} 2061 data-all-wallets=${this.showAllWallets} 2062 tabindex=${(0,n.J)(this.tabIdx)} 2063 > 2064 ${this.templateAllWallets()} ${this.templateWalletImage()} 2065 <wui-flex flexDirection="column" justifyContent="center" alignItems="flex-start" gap="1"> 2066 <wui-text variant="lg-regular" color="inherit">${this.name}</wui-text> 2067 ${this.templateNamespaces()} 2068 </wui-flex> 2069 ${this.templateStatus()} 2070 <wui-icon name="chevronRight" size="lg" color="default"></wui-icon> 2071 </button> 2072 `}templateNamespaces(){return this.namespaces?.length?(0,r.qy)`<wui-flex alignItems="center" gap="0"> 2073 ${this.namespaces.map((e,t)=>(0,r.qy)`<wui-flex 2074 alignItems="center" 2075 justifyContent="center" 2076 zIndex=${(this.namespaces?.length??0)*2-t} 2077 class="namespace-icon" 2078 > 2079 <wui-icon 2080 name=${(0,n.J)(m[e])} 2081 size="sm" 2082 color="default" 2083 ></wui-icon> 2084 </wui-flex>`)} 2085 </wui-flex>`:null}templateAllWallets(){return this.showAllWallets&&this.imageSrc?(0,r.qy)` <wui-all-wallets-image .imageeSrc=${this.imageSrc}> </wui-all-wallets-image> `:this.showAllWallets&&this.walletIcon?(0,r.qy)` <wui-wallet-image .walletIcon=${this.walletIcon} size="sm"> </wui-wallet-image> `:null}templateWalletImage(){return!this.showAllWallets&&this.imageSrc?(0,r.qy)`<wui-wallet-image 2086 size=${(0,n.J)("sm"===this.size?"sm":"md")} 2087 imageSrc=${this.imageSrc} 2088 name=${this.name} 2089 ></wui-wallet-image>`:this.showAllWallets||this.imageSrc?null:(0,r.qy)`<wui-wallet-image size="sm" name=${this.name}></wui-wallet-image>`}templateStatus(){return this.loading?(0,r.qy)`<wui-loading-spinner size="lg" color="accent-primary"></wui-loading-spinner>`:this.tagLabel&&this.tagVariant?(0,r.qy)`<wui-tag size="sm" variant=${this.tagVariant}>${this.tagLabel}</wui-tag>`:null}};g.styles=[o.W5,o.fD,h],p([(0,a.MZ)({type:Array})],g.prototype,"walletImages",void 0),p([(0,a.MZ)()],g.prototype,"imageSrc",void 0),p([(0,a.MZ)()],g.prototype,"name",void 0),p([(0,a.MZ)()],g.prototype,"size",void 0),p([(0,a.MZ)()],g.prototype,"tagLabel",void 0),p([(0,a.MZ)()],g.prototype,"tagVariant",void 0),p([(0,a.MZ)()],g.prototype,"walletIcon",void 0),p([(0,a.MZ)()],g.prototype,"tabIdx",void 0),p([(0,a.MZ)({type:Array})],g.prototype,"namespaces",void 0),p([(0,a.MZ)({type:Boolean})],g.prototype,"disabled",void 0),p([(0,a.MZ)({type:Boolean})],g.prototype,"showAllWallets",void 0),p([(0,a.MZ)({type:Boolean})],g.prototype,"loading",void 0),p([(0,a.MZ)({type:String})],g.prototype,"loadingSpinnerColor",void 0),g=p([(0,s.E)("wui-list-wallet")],g)},40441:function(e){e.exports={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","
2089st","nd","rd"],i=e%100;return"["+e+(t[(i-20)%10]||t[i]||t[0])+"]"}}},42123:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});let r=function(e){if(e.length>=255)throw TypeError("Alphabet too long");let t=new Uint8Array(256);for(let e=0;e<t.length;e++)t[e]=255;for(let i=0;i<e.length;i++){let r=e.charAt(i),a=r.charCodeAt(0);if(255!==t[a])throw TypeError(r+" is ambiguous");t[a]=i}let i=e.length,r=e.charAt(0),a=Math.log(i)/Math.log(256),n=Math.log(256)/Math.log(i);function o(e){if("string"!=typeof e)throw TypeError("Expected String");if(0===e.length)return new Uint8Array;let n=0,o=0,s=0;for(;e[n]===r;)o++,n++;let l=(e.length-n)*a+1>>>0,c=new Uint8Array(l);for(;n<e.length;){let r=e.charCodeAt(n);if(r>255)return;let a=t[r];if(255===a)return;let o=0;for(let e=l-1;(0!==a||o<s)&&-1!==e;e--,o++)a+=i*c[e]>>>0,c[e]=a%256>>>0,a=a/256>>>0;if(0!==a)throw Error("Non-zero carry");s=o,n++}let d=l-s;for(;d!==l&&0===c[d];)d++;let u=new Uint8Array(o+(l-d)),h=o;for(;d!==l;)u[h++]=c[d++];return u}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===t.length)return"";let a=0,o=0,s=0,l=t.length;for(;s!==l&&0===t[s];)s++,a++;let c=(l-s)*n+1>>>0,d=new Uint8Array(c);for(;s!==l;){let e=t[s],r=0;for(let t=c-1;(0!==e||r<o)&&-1!==t;t--,r++)e+=256*d[t]>>>0,d[t]=e%i>>>0,e=e/i>>>0;if(0!==e)throw Error("Non-zero carry");o=r,s++}let u=c-o;for(;u!==c&&0===d[u];)u++;let h=r.repeat(a);for(;u<c;++u)h+=e.charAt(d[u]);return h},decodeUnsafe:o,decode:function(e){let t=o(e);if(t)return t;throw Error("Non-base"+i+" character")}}}("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},43725:(e,t,i)=>{"use strict";var r=i(88633),a=i(15274);i(37218);var n=i(62057),o=i(54718),s=i(21621);let l=(0,s.AH)` 2090 :host { 2091 position: relative; 2092 display: flex; 2093 width: 100%; 2094 height: 1px; 2095 background-color: ${({tokens:e})=>e.theme.borderPrimary}; 2096 justify-content: center; 2097 align-items: center; 2098 } 2099 2100 :host > wui-text { 2101 position: absolute; 2102 padding: 0px 8px; 2103 transition: background-color ${({durations:e})=>e.lg} 2104 ${({easings:e})=>e["ease-out-power-2"]}; 2105 will-change: background-color; 2106 } 2107 2108 :host([data-bg-color='primary']) > wui-text { 2109 background-color: ${({tokens:e})=>e.theme.backgroundPrimary}; 2110 } 2111 2112 :host([data-bg-color='secondary']) > wui-text { 2113 background-color: ${({tokens:e})=>e.theme.foregroundPrimary}; 2114 } 2115`;var c=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let d=class extends r.WF{constructor(){super(...arguments),this.text="",this.bgColor="primary"}render(){return this.dataset.bgColor=this.bgColor,(0,r.qy)`${this.template()}`}template(){return this.text?(0,r.qy)`<wui-text variant="md-regular" color="secondary">${this.text}</wui-text>`:null}};d.styles=[n.W5,l],c([(0,a.MZ)()],d.prototype,"text",void 0),c([(0,a.MZ)()],d.prototype,"bgColor",void 0),d=c([(0,o.E)("wui-separator")],d)},44343:(e,t,i)=>{"use strict";i.d(t,{h:()=>c});var r=i(3348),a=i(73538),n=i(97220),o=i(10611),s=i(38195);let l=(0,r.BX)({message:"",variant:"info",open:!1}),c=(0,o.X)({state:l,subscribeKey:(e,t)=>(0,a.u$)(l,e,t),open(e,t){let{debug:i}=s.H.state,{code:r,displayMessage:a,debugMessage:o}=e;if(a&&i&&(l.message=a,l.variant=t,l.open=!0),o){if(!n.o.IS_DEVELOPMENT)return;let e="function"==typeof o?o():o,i=r?{code:r}:void 0;"error"===t?console.error(e,i):"warning"===t?console.warn(e,i):console.info(e,i)}},warn(e,t,i){l.open=!0,l.message=e,l.variant="warning",t&&console.warn(t,i)},close(){l.open=!1,l.message="",l.variant="info"}})},44846:function(e){e.exports=function(){"use strict";var e="millisecond",t="second",i="minute",r="hour",a="week",n="month",o="quarter",s="year",l="date",c="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,u=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}
2115|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h=function(e,t,i){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(i)+e},p="en",m={};m[p]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],i=e%100;return"["+e+(t[(i-20)%10]||t[i]||t[0])+"]"}};var g="$isDayjsObject",f=function(e){return e instanceof v||!(!e||!e[g])},w=function e(t,i,r){var a;if(!t)return p;if("string"==typeof t){var n=t.toLowerCase();m[n]&&(a=n),i&&(m[n]=i,a=n);var o=t.split("-");if(!a&&o.length>1)return e(o[0])}else{var s=t.name;m[s]=t,a=s}return!r&&a&&(p=a),a||!r&&p},y=function(e,t){if(f(e))return e.clone();var i="object"==typeof t?t:{};return i.date=e,i.args=arguments,new v(i)},b={s:h,z:function(e){var t=-e.utcOffset(),i=Math.abs(t);return(t<=0?"+":"-")+h(Math.floor(i/60),2,"0")+":"+h(i%60,2,"0")},m:function e(t,i){if(t.date()<i.date())return-e(i,t);var r=12*(i.year()-t.year())+(i.month()-t.month()),a=t.clone().add(r,n),o=i-a<0,s=t.clone().add(r+(o?-1:1),n);return+(-(r+(i-a)/(o?a-s:s-a))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(c){return({M:n,y:s,w:a,d:"day",D:l,h:r,m:i,s:t,ms:e,Q:o})[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};b.l=w,b.i=f,b.w=function(e,t){return y(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var v=function(){function h(e){this.$L=w(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[g]=!0}var p=h.prototype;return p.parse=function(e){this.$d=function(e){var t=e.date,i=e.utc;if(null===t)return new Date(NaN);if(b.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(d);if(r){var a=r[2]-1||0,n=(r[7]||"0").substring(0,3);return i?new Date(Date.UTC(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,n)):new Date(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,n)}}return new Date(t)}(e),this.init()},p.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},p.$utils=function(){return b},p.isValid=function(){return this.$d.toString()!==c},p.isSame=function(e,t){var i=y(e);return this.startOf(t)<=i&&i<=this.endOf(t)},p.isAfter=function(e,t){return y(e)<this.startOf(t)},p.isBefore=function(e,t){return this.endOf(t)<y(e)},p.$g=function(e,t,i){return b.u(e)?this[t]:this.set(i,e)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(e,o){var c=this,d=!!b.u(o)||o,u=b.p(e),h=function(e,t){var i=b.w(c.$u?Date.UTC(c.$y,t,e):new Date(c.$y,t,e),c);return d?i:i.endOf("day")},p=function(e,t){return b.w(c.toDate()[e].apply(c.toDate("s"),(d?[0,0,0,0]:[23,59,59,999]).slice(t)),c)},m=this.$W,g=this.$M,f=this.$D,w="set"+(this.$u?"UTC":"");switch(u){case s:return d?h(1,0):h(31,11);case n:return d?h(1,g):h(0,g+1);case a:var y=this.$locale().weekStart||0,v=(m<y?m+7:m)-y;return h(d?f-v:f+(6-v),g);case"day":case l:return p(w+"Hours",0);case r:return p(w+"Minutes",1);case i:return p(w+"Seconds",2);case t:return p(w+"Milliseconds",3);default:return this.clone()}},p.endOf=function(e){return this.startOf(e,!1)},p.$set=function(a,o){var c,d=b.p(a),u="set"+(this.$u?"UTC":""),h=((c={}).day=u+"Date",c[l]=u+"Date",c[n]=u+"Month",c[s]=u+"FullYear",c[r]=u+"Hours",c[i]=u+"Minutes",c[t]=u+"Seconds",c[e]=u+"Milliseconds",c)[d],p="day"===d?this.$D+(o-this.$W):o;if(d===n||d===s){var m=this.clone().set(l,1);m.$d[h](p),m.init(),this.$d=m.set(l,Math.min(this.$D,m.daysInMonth())).$d}else h&&this.$d[h](p);return this.init(),this},p.set=function(e,t){return this.clone().$set(e,t)},p.get=function(e){return this[b.p(e)]()},p.add=function(e,o){var l,c=this;e=Number(e);var d=b.p(o),u=function(t){var i=y(c);return b.w(i.date(i.date()+Math.round(t*e)),c)};if(d===n)return this.set(n,this.$M+e);if(d===s)return this.set(s,this.$y+e);if("day"===d)return u(1);if(d===a)return u(7);var h=((l={})[i]=6e4,l[r]=36e5,l[t]=1e3,l)[d]||1,p=this.$d.getTime()+e*h;return b.w(p,this)},p.subtract=function(e,t){return this.add(-1*e,t)},p.format=function(e){var t=this,i=this.$locale();if(!this.isValid())return i.invalidDate||c;var r=e||"YYYY-MM-DDTHH:mm:ssZ",a=b.z(this),n=this.$H,o=this.$m,s=this.$M,l=i.weekdays,d=i.months,h=i.meridiem,p=function(e,i,a,n){return e&&(e[i]||e(t,r))||a[i].slice(0,n)},m=function(e){return b.s(n%12||12,e,"0")},g=h||function(e,t,i){var r=e<12?"AM":"PM";return i?r.toLowerCase():r};return r.replace(u,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return b.s(t.$y,4,"0");case"M":return s+1;case"MM":return b.s(s+1,2,"0");case"MMM":return p(i.monthsShort,s,d,3);case"MMMM":return p(d,s);case"D":return t.$D;case"DD":return b.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return p(i.weekdaysMin,t.$W,l,2);case"ddd":return p(i.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(n);case"HH":return b.s(n,2,"0");case"h":return m(1);case"hh":return m(2);case"a":return g(n,o,!0);case"A":return g(n,o,!1);case"m":return String(o);case"mm":return b.s(o,2,"0");case"s":return String(t.$s);case"ss":return b.s(t.$s,2,"0");case"SSS":return b.s(t.$ms,3,"0");case"Z":return a}return null}(e)||a.replace(":","")})},p.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},p.diff=function(e,l,c){var d,u=this,h=b.p(l),p=y(e),m=(p.utcOffset()-this.utcOffset())*6e4,g=this-p,f=function(){return b.m(u,p)};switch(h){case s:d=f()/12;break;case n:d=f();break;case o:d=f()/3;break;case a:d=(g-m)/6048e5;break;case"day":d=(g-m)/864e5;break;case r:d=g/36e5;break;case i:d=g/6e4;break;case t:d=g/1e3;break;default:d=g}return c?d:b.a(d)},p.daysInMonth=function(){return this.endOf(n).$D},p.$locale=function(){return m[this.$L]},p.locale=function(e,t){if(!e)return this.$L;var i=this.clone(),r=w(e,t,!0);return r&&(i.$L=r),i},p.clone=function(){return b.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},h}(),C=v.prototype;return y.prototype=C,[["$ms",e],["$s",t],["$m",i],["$H",r],["$W","day"],["$M",n],["$y",s],["$D",l]].forEac
2115h(function(e){C[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),y.extend=function(e,t){return e.$i||(e(t,v,y),e.$i=!0),y},y.locale=w,y.isDayjs=f,y.unix=function(e){return y(1e3*e)},y.en=m[p],y.Ls=m,y.p={},y}()},47107:(e,t,i)=>{"use strict";i.d(t,{E:()=>r});let r={ERROR_CODE_UNRECOGNIZED_CHAIN_ID:4902,ERROR_CODE_DEFAULT:5e3,ERROR_INVALID_CHAIN_ID:32603}},48205:(e,t,i)=>{"use strict";var r=i(20857);i.o(r,"usePathname")&&i.d(t,{usePathname:function(){return r.usePathname}}),i.o(r,"useRouter")&&i.d(t,{useRouter:function(){return r.useRouter}}),i.o(r,"useSearchParams")&&i.d(t,{useSearchParams:function(){return r.useSearchParams}}),i.o(r,"useSelectedLayoutSegment")&&i.d(t,{useSelectedLayoutSegment:function(){return r.useSelectedLayoutSegment}})},49146:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});let r={getSpacingStyles:(e,t)=>Array.isArray(e)?e[t]?`var(--apkt-spacing-${e[t]})`:void 0:"string"==typeof e?`var(--apkt-spacing-${e})`:void 0,getFormattedDate:e=>new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric"}).format(e),formatCurrency(e=0,t={}){let i=Number(e);return isNaN(i)?"$0.00":new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2,...t}).format(i)},getHostName(e){try{return new URL(e).hostname}catch(e){return""}},getTruncateString:({string:e,charsStart:t,charsEnd:i,truncate:r})=>e.length<=t+i?e:"end"===r?`${e.substring(0,t)}...`:"start"===r?`...${e.substring(e.length-i)}`:`${e.substring(0,Math.floor(t))}...${e.substring(e.length-Math.floor(i))}`,generateAvatarColors(e){let t=e.toLowerCase().replace(/^0x/iu,"").replace(/[^a-f0-9]/gu,"").substring(0,6).padEnd(6,"0"),i=this.hexToRgb(t),r=getComputedStyle(document.documentElement).getPropertyValue("--w3m-border-radius-master"),a=100-3*Number(r?.replace("px","")),n=`${a}% ${a}% at 65% 40%`,o=[];for(let e=0;e<5;e+=1){let t=this.tintColor(i,.15*e);o.push(`rgb(${t[0]}, ${t[1]}, ${t[2]})`)}return` 2116 --local-color-1: ${o[0]}; 2117 --local-color-2: ${o[1]}; 2118 --local-color-3: ${o[2]}; 2119 --local-color-4: ${o[3]}; 2120 --local-color-5: ${o[4]}; 2121 --local-radial-circle: ${n} 2122 `},hexToRgb(e){let t=parseInt(e,16);return[t>>16&255,t>>8&255,255&t]},tintColor(e,t){let[i,r,a]=e;return[Math.round(i+(255-i)*t),Math.round(r+(255-r)*t),Math.round(a+(255-a)*t)]},isNumber:e=>/^[0-9]+$/u.test(e),getColorTheme:e=>e?e:"undefined"!=typeof window&&window.matchMedia&&"function"==typeof window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)")?.matches?"dark":"light":"dark",splitBalance(e){let t=e.split(".");return 2===t.length?[t[0],t[1]]:["0","00"]},roundNumber:(e,t,i)=>e.toString().length>=t?Number(e).toFixed(i):e,cssDurationToNumber:e=>e.endsWith("s")?1e3*Number(e.replace("s","")):e.endsWith("ms")?Number(e.replace("ms","")):0,maskInput({value:e,decimals:t,integers:i}){if("."===(e=e.replace(",",".")))return"0.";let[r="",a]=e.split(".").map(e=>e.replace(/[^0-9]/gu,"")),n=i?r.substring(0,i):r,o=2===n.length?String(Number(n)):n,s="number"==typeof t?a?.substring(0,t):a;return("string"==typeof s&&("number"!=typeof t||t>0)?[o,s].join("."):o)??""},capitalize:e=>e?e.charAt(0).toUpperCase()+e.slice(1):""}},49458:(e,t,i)=>{let r=i(27047),a=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],n=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case r.L:return a[(e-1)*4+0];case r.M:return a[(e-1)*4+1];case r.Q:return a[(e-1)*4+2];case r.H:return a[(e-1)*4+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case r.L:return n[(e-1)*4+0];case r.M:return n[(e-1)*4+1];case r.Q:return n[(e-1)*4+2];case r.H:return n[(e-1)*4+3];default:return}}},51758:(e,t,i)=>{"use strict";i.d(t,{g:()=>w});
2122var r=i(3348),a=i(73538),n=i(64084),o=i(49140),s=i(20592),l=i(40776),c=i(3314),d=i(24915),u=i(58616),h=i(34194),p=i(38195),m=i(98283);let g={paymentAsset:null,amount:null,tokenAmount:0,priceLoading:!1,error:null,exchanges:[],isLoading:!1,currentPayment:void 0,isPaymentInProgress:!1,paymentId:"",assets:[]},f=(0,r.BX)(g),w={state:f,subscribe:e=>(0,r.B1)(f,()=>e(f)),subscribeKey:(e,t)=>(0,a.u$)(f,e,t),resetState(){Object.assign(f,{...g})},async getAssetsForNetwork(e){let t=(0,c.nj)(e),i=await w.getAssetsImageAndPrice(t),r=t.map(e=>{let t="native"===e.asset?(0,o.K1)():`${e.network}:${e.asset}`,r=i.find(e=>e.fungibles?.[0]?.address?.toLowerCase()===t.toLowerCase());return{...e,price:r?.fungibles?.[0]?.price||1,metadata:{...e.metadata,iconUrl:r?.fungibles?.[0]?.iconUrl}}});return f.assets=r,r},async getAssetsImageAndPrice(e){let t=e.map(e=>"native"===e.asset?(0,o.K1)():`${e.network}:${e.asset}`);return await Promise.all(t.map(e=>d.T.fetchTokenPrice({addresses:[e]})))},getTokenAmount(){if(!f?.paymentAsset?.price)throw Error("Cannot get token price");let e=n.S.bigNumber(f.amount??0).round(8),t=n.S.bigNumber(f.paymentAsset.price).round(8);return e.div(t).round(8).toNumber()},setAmount(e){f.amount=e,f.paymentAsset?.price&&(f.tokenAmount=w.getTokenAmount())},setPaymentAsset(e){f.paymentAsset=e},isPayWithExchangeEnabled:()=>p.H.state.remoteFeatures?.payWithExchange,isPayWithExchangeSupported:()=>w.isPayWithExchangeEnabled()&&u.W.state.activeCaipNetwork&&s.oU.PAY_WITH_EXCHANGE_SUPPORTED_CHAIN_NAMESPACES.includes(u.W.state.activeCaipNetwork.chainNamespace),async fetchExchanges(){try{let e=w.isPayWithExchangeSupported();if(!f.paymentAsset||!e){f.exchanges=[],f.isLoading=!1;return}f.isLoading=!0;let t=await (0,c.ro)({page:0,asset:(0,c.lZ)(f.paymentAsset.network,f.paymentAsset.asset),amount:f.amount?.toString()??"0"});f.exchanges=t.exchanges.slice(0,2)}catch(e){throw m.P.showError("Unable to get exchanges"),Error("Unable to get exchanges")}finally{f.isLoading=!1}},async getPayUrl(e,t){try{let i=Number(t.amount),r=await (0,c.cz)({exchangeId:e,asset:(0,c.lZ)(t.network,t.asset),amount:i.toString(),recipient:`${t.network}:${t.recipient}`});return h.E.sendEvent({type:"track",event:"PAY_EXCHANGE_SELECTED",properties:{exchange:{id:e},configuration:{network:t.network,asset:t.asset,recipient:t.recipient,amount:i},currentPayment:{type:"exchange",exchangeId:e},source:"fund-from-exchange",headless:!1}}),r}catch(e){if(e instanceof Error&&e.message.includes("is not supported"))throw Error("Asset not supported");throw Error(e.message)}},async handlePayWithExchange(e){try{let t=u.W.getAccountData()?.address;if(!t)throw Error("No account connected");if(!f.paymentAsset)throw Error("No payment asset selected");let i=l.w.returnOpenHref("","popupWindow","scrollbar=yes,width=480,height=720");if(!i)throw Error("Could not create popup window");f.isPaymentInProgress=!0,f.paymentId=crypto.randomUUID(),f.currentPayment={type:"exchange",exchangeId:e};let{network:r,asset:a}=f.paymentAsset,n={network:r,asset:a,amount:f.tokenAmount,recipient:t},o=await w.getPayUrl(e,n);if(!o){try{i.close()}catch(e){console.error("Unable to close popup window",e)}throw Error("Unable to initiate payment")}f.currentPayment.sessionId=o.sessionId,f.currentPayment.status="IN_PROGRESS",f.currentPayment.exchangeId=e,i.location.href=o.url}catch(e){f.error="Unable to initiate payment",m.P.showError(f.error)}},async waitUntilComplete({exchangeId:e,sessionId:t,paymentId:i,retries:r=20}){let a=await w.getBuyStatus(e,t,i);if("SUCCESS"===a.status||"FAILED"===a.status)return a;if(0===r)throw Error("Unable to get deposit status");return await new Promise(e=>{setTimeout(e,5e3)}),w.waitUntilComplete({exchangeId:e,sessionId:t,paymentId:i,retries:r-1})},async getBuyStatus(e,t,i){try{if(!f.currentPayment)throw Error("No current payment");let r=await (0,c.V1)({sessionId:t,exchangeId:e});if(f.currentPayment.status=r.status,"SUCCESS"===r.status||"FAILED"===r.status){let e=u.W.getAccountData()?.address;f.currentPayment.result=r.txHash,f.isPaymentInProgress=!1,h.E.sendEvent({type:"track",event:"SUCCESS"===r.status?"PAY_SUCCESS":"PAY_ERROR",properties:{message:"FAILED"===r.status?l.w.parseError(f.error):void 0,source:"fund-from-exchange",paymentId:i,configuration:{network:f.paymentAsset?.network||"",asset:f.paymentAsset?.asset||"",recipient:e||"",amount:f.amount??0},currentPayment:{type:"exchange",exchangeId:f.currentPayment?.exchangeId,sessionId:f.currentPayment?.sessionId,result:r.txHash}}})}return r}catch(e){return{status:"UNKNOWN",txHash:""}}},reset(){f.currentPayment=void 0,f.isPaymentInProgress=!1,f.paymentId="",f.paymentAsset=null,f.amount=0,f.tokenAmount=0,f.priceLoading=!1,f.error=null,f.exchanges=[],f.isLoading=!1}}},54352:function(e){e.exports=function(e,t,i){e=e||{};var r=t.prototype,a={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function n(e,t,i,a){return r.fromToBase(e,t,i,a)}i.en.relativeTime=a,r.fromToBase=function(t,r,n,o,s){for(var l,c,d,u=n.$locale().relativeTime||a,h=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],p=h.length,m=0;m<p;m+=1){var g=h[m];g.d&&(l=o?i(t).diff(n,g.d,!0):n.diff(t,g.d,!0));var f=(e.rounding||Math.round)(Math.abs(l));if(d=l>0,f<=g.r||!g.r){f<=1&&m>0&&(g=h[m-1]);var w=u[g.l];s&&(f=s(""+f)),c="string"==typeof w?w.replace("%d",f):w(f,r,g.l,d);break}}if(r)return c;var y=d?u.future:u.past;return"function"==typeof y?y(c):y.replace("%s",c)},r.to=function(e,t){return n(e,t,this,!0)},r.from=function(e,t){return n(e,t,this)};var o=function(e){return e.$u?i.utc():i()};r.toNow=function(e){return this.to(o(this),e)},r.fromNow=function(e){return this.from(o(this),e)}}},54718:(e,t,i)=>{"use strict";function r(e){return function(t){return"function"==typeof t?(customElements.get(e)||customElements.define(e,t),t):function(e,t){let{kind:i,elements:r}=t;return{kind:i,elements:r,finisher(t){customElements.get(e)||customElements.define(e,t)}}}(e,t)}}i.d(t,{E:()=>r})},55764:e=>{"use strict";var t={single_source_shortest_paths:function(e,i,r){var a,n,o,s,l,c,d,u={},h={};h[i]=0;var p=t.PriorityQueue.make();for(p.push(i,0);!p.empty();)for(o in n=(a=p.pop()).value,s=a.cost,l=e[n]||{})l.hasOwnProperty(o)&&(c=s+l[o],d=h[o],(void 0===h[o]||d>c)&&(h[o]=c,p.push(o,c),u[o]=n));if(void 0!==r&&void 0===h[r])throw Error(["Could not find a path from ",i," to ",r,"."].join(""));return u},extract_shortest_path_from_predecessor_list:function(e,t){for(var i=[],r=t;r;)i.push(r),e[r],r=e[r];return i.reverse(),i},find_path:function(e,i,r){var a=t.single_source_shortest_paths(e,i,r);return t.extract_shortest_path_from_predecessor_list(a,r)},PriorityQueue:{make:function(e){var i,r=t.PriorityQueue,a={};for(i in e=e||{},r)r.hasOwnProperty(i)&&(a[i]=r[i]);return a.queue=[],a.sorter=e.sorter||r.default_sorter,a},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){this.queue.push({value:e,cost:t}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},56095:(e,t,i)=>{"use strict";i.r(t),i.d(t,{AppKitAccountButton:()=>
2122E,AppKitButton:()=>N,AppKitConnectButton:()=>M,AppKitNetworkButton:()=>B,W3mAccountButton:()=>x,W3mAccountSettingsView:()=>eo,W3mAccountView:()=>ej,W3mAllWalletsView:()=>tS,W3mButton:()=>_,W3mChooseAccountNameView:()=>iM,W3mConnectButton:()=>O,W3mConnectView:()=>t5,W3mConnectWalletsView:()=>iB,W3mConnectingExternalView:()=>il,W3mConnectingMultiChainView:()=>iu,W3mConnectingWcBasicView:()=>iR,W3mConnectingWcView:()=>iS,W3mDownloadsView:()=>iW,W3mFooter:()=>q.H,W3mFundWalletView:()=>e8,W3mGetWalletView:()=>iL,W3mNetworkButton:()=>Z,W3mNetworkSwitchView:()=>iJ,W3mNetworksView:()=>i3,W3mProfileWalletsView:()=>e6,W3mRouter:()=>z.J,W3mSIWXSignMessageView:()=>rm,W3mSwitchActiveChainView:()=>i9,W3mUnsupportedChainView:()=>ri,W3mWalletCompatibleNetworksView:()=>rs,W3mWhatIsANetworkView:()=>i7,W3mWhatIsAWalletView:()=>iH});var r=i(88633),a=i(15274),n=i(13894),o=i(38195),s=i(58616),l=i(79725),c=i(22493),d=i(40776),u=i(99216),h=i(67789);i(17364),i(68006),i(21981),i(37218),i(89496);var p=i(62057),m=i(49146),g=i(54718);i(31808);var f=i(21621);let w=(0,f.AH)` 2123 :host { 2124 display: block; 2125 } 2126 2127 button { 2128 border-radius: ${({borderRadius:e})=>e["20"]}; 2129 background: ${({tokens:e})=>e.theme.foregroundPrimary}; 2130 display: flex; 2131 gap: ${({spacing:e})=>e[1]}; 2132 padding: ${({spacing:e})=>e[1]}; 2133 color: ${({tokens:e})=>e.theme.textSecondary}; 2134 border-radius: ${({borderRadius:e})=>e[16]}; 2135 height: 32px; 2136 transition: box-shadow ${({durations:e})=>e.lg} 2137 ${({easings:e})=>e["ease-out-power-2"]}; 2138 will-change: box-shadow; 2139 } 2140 2141 button wui-flex.avatar-container { 2142 width: 28px; 2143 height: 24px; 2144 position: relative; 2145 2146 wui-flex.network-image-container { 2147 position: absolute; 2148 bottom: 0px; 2149 right: 0px; 2150 width: 12px; 2151 height: 12px; 2152 } 2153 2154 wui-flex.network-image-container wui-icon { 2155 background: ${({tokens:e})=>e.theme.foregroundPrimary}; 2156 } 2157 2158 wui-avatar { 2159 width: 24px; 2160 min-width: 24px; 2161 height: 24px; 2162 } 2163 2164 wui-icon { 2165 width: 12px; 2166 height: 12px; 2167 } 2168 } 2169 2170 wui-image, 2171 wui-icon { 2172 border-radius: ${({borderRadius:e})=>e[16]}; 2173 } 2174 2175 wui-text { 2176 white-space: nowrap; 2177 } 2178 2179 button wui-flex.balance-container { 2180 height: 100%; 2181 border-radius: ${({borderRadius:e})=>e[16]}; 2182 padding-left: ${({spacing:e})=>e[1]}; 2183 padding-right: ${({spacing:e})=>e[1]}; 2184 background: ${({tokens:e})=>e.theme.foregroundSecondary}; 2185 color: ${({tokens:e})=>e.theme.textPrimary}; 2186 transition: background-color ${({durations:e})=>e.lg} 2187 ${({easings:e})=>e["ease-out-power-2"]}; 2188 will-change: background-color; 2189 } 2190 2191 /* -- Hover & Active states ----------------------------------------------------------- */ 2192 button:hover:enabled, 2193 button:focus-visible:enabled, 2194 button:active:enabled { 2195 box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.2); 2196 2197 wui-flex.balance-container { 2198 background: ${({tokens:e})=>e.theme.foregroundTertiary}; 2199 } 2200 } 2201 2202 /* -- Disabled states --------------------------------------------------- */ 2203 button:disabled wui-text, 2204 button:disabled wui-flex.avatar-container { 2205 opacity: 0.3; 2206 } 2207`;var y=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let b=class extends r.WF{constructor(){super(...arguments),this.networkSrc=void 0,this.avatarSrc=void 0,this.balance=void 0,this.isUnsupportedChain=void 0,this.disabled=!1,this.loading=!1,this.address="",this.profileName="",this.charsStart=4,this.charsEnd=6}render(){return(0,r.qy)` 2208 <button 2209 ?disabled=${this.disabled} 2210 class=${(0,n.J)(this.balance?void 0:"local-no-balance")} 2211 data-error=${(0,n.J)(this.isUnsupportedChain)} 2212 > 2213 ${this.imageTemplate()} ${this.addressTemplate()} ${this.balanceTemplate()} 2214 </button> 2215 `}imageTemplate(){let e=this.networkSrc?(0,r.qy)`<wui-image src=${this.networkSrc}></wui-image>`:(0,r.qy)` <wui-icon size="inherit" color="inherit" name="networkPlaceholder"></wui-icon> `;return(0,r.qy)`<wui-flex class="avatar-container"> 2216 <wui-avatar 2217 .imageSrc=${this.avatarSrc} 2218 alt=${this.address} 2219 address=${this.address} 2220 ></wui-avatar> 2221 2222 <wui-flex class="network-image-container">${e}</wui-flex> 2223 </wui-flex>`}addressTemplate(){return(0,r.qy)`<wui-text variant="md-regular" color="inherit"> 2224 ${this.address?m.Z.getTruncateString({string:this.profileName||this.address,charsStart:this.profileName?18:this.charsStart,charsEnd:this.profileName?0:this.charsEnd,truncate:this.profileName?"end":"middle"}):null} 2225 </wui-text>`}balanceTemplate(){if(this.balance){let e=this.loading?(0,r.qy)`<wui-loading-spinner size="md" color="inherit"></wui-loading-spinner>`:(0,r.qy)`<wui-text variant="md-regular" color="inherit"> ${this.balance}</wui-text>`;return(0,r.qy)`<wui-flex alignItems="center" justifyContent="center" class="balance-container" 2226 >${e}</wui-flex 2227 >`}return null}};b.styles=[p.W5,p.fD,w],y([(0,a.MZ)()],b.prototype,"networkSrc",void 0),y([(0,a.MZ)()],b.prototype,"avatarSrc",void 0),y([(0,a.MZ)()],b.prototype,"balance",void 0),y([(0,a.MZ)({type:Boolean})],b.prototype,"isUnsupportedChain",void 0),y([(0,a.MZ)({type:Boolean})],b.prototype,"disabled",void 0),y([(0,a.MZ)({type:Boolean})],b.prototype,"loading",void 0),y([(0,a.MZ)()],b.prototype,"address",void 0),y([(0,a.MZ)()],b.prototype,"profileName",void 0),y([(0,a.MZ)()],b.prototype,"charsStart",void 0),y([(0,a.MZ)()],b.prototype,"charsEnd",void 0),b=y([(0,g.E)("wui-account-button")],b);var v=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};class C extends r.WF{constructor(){super(...arguments),this.unsubscribe=[],this.disabled=!1,this.balance="show",this.charsStart=4,this.charsEnd=6,this.namespace=void 0,this.isSupported=!!o.H.state.allowUnsupportedChain||!s.W.state.activeChain||s.W.checkIfSupportedNetwork(s.W.state.activeChain)}connectedCallback(){super.connectedCallback(),this.setAccountData(s.W.getAccountData(this.namespace)),this.setNetworkData(s.W.getNetworkData(this.namespace))}firstUpdated(){let e=this.namespace;e?this.unsubscribe.push(s.W.subscribeChainProp("accountState",e=>{this.setAccountData(e)},e),s.W.subscribeChainProp("networkState",t=>{this.setNetworkData(t),this.isSupported=s.W.checkIfSupportedNetwork(e,t?.caipNetwork?.caipNetworkId)},e)):this.unsubscribe.push(l.j.subscribeNetworkImages(()=>{this.networkImage=c.$.getNetworkImage(this.network)}),s.W.subscribeKey("activeCaipAddress",e=>{this.caipAddress=e}),s.W.subscribeChainProp("accountState",e=>{this.setAccountData(e)}),s.W.subscribeKey("activeCaipNetwork",e=>{this.network=e,this.networkImage=c.$.getNetworkImage(e),this.isSupported=!e?.chainNamespace||s.W.checkIfSupportedNetwork(e?.chainNamespace),this.fetchNetworkImage(e)}))}updated(){this.fetchNetworkImage(this.network)}
2227disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){if(!s.W.state.activeChain)return null;let e="show"===this.balance,t="string"!=typeof this.balanceVal,{formattedText:i}=d.w.parseBalance(this.balanceVal,this.balanceSymbol);return(0,r.qy)` 2228 <wui-account-button 2229 .disabled=${!!this.disabled} 2230 .isUnsupportedChain=${!o.H.state.allowUnsupportedChain&&!this.isSupported} 2231 address=${(0,n.J)(d.w.getPlainAddress(this.caipAddress))} 2232 profileName=${(0,n.J)(this.profileName)} 2233 networkSrc=${(0,n.J)(this.networkImage)} 2234 avatarSrc=${(0,n.J)(this.profileImage)} 2235 balance=${e?i:""} 2236 @click=${this.onClick.bind(this)} 2237 data-testid=${`account-button${this.namespace?`-${this.namespace}`:""}`} 2238 .charsStart=${this.charsStart} 2239 .charsEnd=${this.charsEnd} 2240 ?loading=${t} 2241 > 2242 </wui-account-button> 2243 `}onClick(){this.isSupported||o.H.state.allowUnsupportedChain?u.W.open({namespace:this.namespace}):u.W.open({view:"UnsupportedChain"})}async fetchNetworkImage(e){e?.assets?.imageId&&(this.networkImage=await c.$.fetchNetworkImage(e?.assets?.imageId))}setAccountData(e){e&&(this.caipAddress=e.caipAddress,this.balanceVal=e.balance,this.balanceSymbol=e.balanceSymbol,this.profileName=e.profileName,this.profileImage=e.profileImage)}setNetworkData(e){e&&(this.network=e.caipNetwork,this.networkImage=c.$.getNetworkImage(e.caipNetwork))}}v([(0,a.MZ)({type:Boolean})],C.prototype,"disabled",void 0),v([(0,a.MZ)()],C.prototype,"balance",void 0),v([(0,a.MZ)()],C.prototype,"charsStart",void 0),v([(0,a.MZ)()],C.prototype,"charsEnd",void 0),v([(0,a.MZ)()],C.prototype,"namespace",void 0),v([(0,a.wk)()],C.prototype,"caipAddress",void 0),v([(0,a.wk)()],C.prototype,"balanceVal",void 0),v([(0,a.wk)()],C.prototype,"balanceSymbol",void 0),v([(0,a.wk)()],C.prototype,"profileName",void 0),v([(0,a.wk)()],C.prototype,"profileImage",void 0),v([(0,a.wk)()],C.prototype,"network",void 0),v([(0,a.wk)()],C.prototype,"networkImage",void 0),v([(0,a.wk)()],C.prototype,"isSupported",void 0);let x=class extends C{};x=v([(0,h.EM)("w3m-account-button")],x);let E=class extends C{};E=v([(0,h.EM)("appkit-account-button")],E);let k=(0,r.AH)` 2244 :host { 2245 display: block; 2246 width: max-content; 2247 } 2248`;var A=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};class $ extends r.WF{constructor(){super(...arguments),this.unsubscribe=[],this.disabled=!1,this.balance=void 0,this.size=void 0,this.label=void 0,this.loadingLabel=void 0,this.charsStart=4,this.charsEnd=6,this.namespace=void 0}firstUpdated(){this.caipAddress=this.namespace?s.W.getAccountData(this.namespace)?.caipAddress:s.W.state.activeCaipAddress,this.namespace?this.unsubscribe.push(s.W.subscribeChainProp("accountState",e=>{this.caipAddress=e?.caipAddress},this.namespace)):this.unsubscribe.push(s.W.subscribeKey("activeCaipAddress",e=>this.caipAddress=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return this.caipAddress?(0,r.qy)` 2249 <appkit-account-button 2250 .disabled=${!!this.disabled} 2251 balance=${(0,n.J)(this.balance)} 2252 .charsStart=${(0,n.J)(this.charsStart)} 2253 .charsEnd=${(0,n.J)(this.charsEnd)} 2254 namespace=${(0,n.J)(this.namespace)} 2255 > 2256 </appkit-account-button> 2257 `:(0,r.qy)` 2258 <appkit-connect-button 2259 size=${(0,n.J)(this.size)} 2260 label=${(0,n.J)(this.label)} 2261 loadingLabel=${(0,n.J)(this.loadingLabel)} 2262 namespace=${(0,n.J)(this.namespace)} 2263 ></appkit-connect-button> 2264 `}}$.styles=k,A([(0,a.MZ)({type:Boolean})],$.prototype,"disabled",void 0),A([(0,a.MZ)()],$.prototype,"balance",void 0),A([(0,a.MZ)()],$.prototype,"size",void 0),A([(0,a.MZ)()],$.prototype,"label",void 0),A([(0,a.MZ)()],$.prototype,"loadingLabel",void 0),A([(0,a.MZ)()],$.prototype,"charsStart",void 0),A([(0,a.MZ)()],$.prototype,"charsEnd",void 0),A([(0,a.MZ)()],$.prototype,"namespace",void 0),A([(0,a.wk)()],$.prototype,"caipAddress",void 0);let _=class extends ${};_=A([(0,h.EM)("w3m-button")],_);let N=class extends ${};N=A([(0,h.EM)("appkit-button")],N);let S=(0,f.AH)` 2265 :host { 2266 position: relative; 2267 display: block; 2268 } 2269 2270 button { 2271 border-radius: ${({borderRadius:e})=>e[2]}; 2272 } 2273 2274 button[data-size='sm'] { 2275 padding: ${({spacing:e})=>e[2]}; 2276 } 2277 2278 button[data-size='md'] { 2279 padding: ${({spacing:e})=>e[3]}; 2280 } 2281 2282 button[data-size='lg'] { 2283 padding: ${({spacing:e})=>e[4]}; 2284 } 2285 2286 button[data-variant='primary'] { 2287 background: ${({tokens:e})=>e.core.backgroundAccentPrimary}; 2288 } 2289 2290 button[data-variant='secondary'] { 2291 background: ${({tokens:e})=>e.core.foregroundAccent010}; 2292 } 2293 2294 button:hover:enabled { 2295 border-radius: ${({borderRadius:e})=>e[3]}; 2296 } 2297 2298 button:disabled {
2299 cursor: not-allowed; 2300 } 2301 2302 button[data-loading='true'] { 2303 cursor: not-allowed; 2304 } 2305 2306 button[data-loading='true'][data-size='sm'] { 2307 border-radius: ${({borderRadius:e})=>e[32]}; 2308 padding: ${({spacing:e})=>e[2]} ${({spacing:e})=>e[3]}; 2309 } 2310 2311 button[data-loading='true'][data-size='md'] { 2312 border-radius: ${({borderRadius:e})=>e[20]}; 2313 padding: ${({spacing:e})=>e[3]} ${({spacing:e})=>e[4]}; 2314 } 2315 2316 button[data-loading='true'][data-size='lg'] { 2317 border-radius: ${({borderRadius:e})=>e[16]}; 2318 padding: ${({spacing:e})=>e[4]} ${({spacing:e})=>e[5]}; 2319 } 2320`;var T=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let R=class extends r.WF{constructor(){super(...arguments),this.size="md",this.variant="primary",this.loading=!1,this.text="Connect Wallet"}render(){return(0,r.qy)` 2321 <button 2322 data-loading=${this.loading} 2323 data-variant=${this.variant} 2324 data-size=${this.size} 2325 ?disabled=${this.loading} 2326 > 2327 ${this.contentTemplate()} 2328 </button> 2329 `}contentTemplate(){let e={primary:"invert",secondary:"accent-primary"};return this.loading?(0,r.qy)`<wui-loading-spinner 2330 color=${e[this.variant]} 2331 size=${this.size} 2332 ></wui-loading-spinner>`:(0,r.qy)` <wui-text variant=${({lg:"lg-regular",md:"md-regular",sm:"sm-regular"})[this.size]} color=${e[this.variant]}> 2333 ${this.text} 2334 </wui-text>`}};R.styles=[p.W5,p.fD,S],T([(0,a.MZ)()],R.prototype,"size",void 0),T([(0,a.MZ)()],R.prototype,"variant",void 0),T([(0,a.MZ)({type:Boolean})],R.prototype,"loading",void 0),T([(0,a.MZ)()],R.prototype,"text",void 0),R=T([(0,g.E)("wui-connect-button")],R);var I=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};class P extends r.WF{constructor(){super(),this.unsubscribe=[],this.size="md",this.label="Connect Wallet",this.loadingLabel="Connecting...",this.open=u.W.state.open,this.loading=this.namespace?u.W.state.loadingNamespaceMap.get(this.namespace):u.W.state.loading,this.unsubscribe.push(u.W.subscribe(e=>{this.open=e.open,this.loading=this.namespace?e.loadingNamespaceMap.get(this.namespace):e.loading}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,r.qy)` 2335 <wui-connect-button 2336 size=${(0,n.J)(this.size)} 2337 .loading=${this.loading} 2338 @click=${this.onClick.bind(this)} 2339 data-testid=${`connect-button${this.namespace?`-${this.namespace}`:""}`} 2340 > 2341 ${this.loading?this.loadingLabel:this.label} 2342 </wui-connect-button> 2343 `}onClick(){this.open?u.W.close():this.loading||u.W.open({view:"Connect",namespace:this.namespace})}}I([(0,a.MZ)()],P.prototype,"size",void 0),I([(0,a.MZ)()],P.prototype,"label",void 0),I([(0,a.MZ)()],P.prototype,"loadingLabel",void 0),I([(0,a.MZ)()],P.prototype,"namespace",void 0),I([(0,a.wk)()],P.prototype,"open",void 0),I([(0,a.wk)()],P.prototype,"loading",void 0);let O=class extends P{};O=I([(0,h.EM)("w3m-connect-button")],O);let M=class extends P{};M=I([(0,h.EM)("appkit-connect-button")],M);var W=i(34194);i(69616);let L=(0,f.AH)` 2344 :host { 2345 display: block; 2346 } 2347 2348 button { 2349 border-radius: ${({borderRadius:e})=>e[32]}; 2350 display: flex; 2351 gap: ${({spacing:e})=>e[1]}; 2352 padding: ${({spacing:e})=>e[1]} ${({spacing:e})=>e[2]} 2353 ${({spacing:e})=>e[1]} ${({spacing:e})=>e[1]}; 2354 background-color: ${({tokens:e})=>e.theme.foregroundPrimary}; 2355 } 2356 2357 button:disabled { 2358 opacity: 0.5; 2359 cursor: not-allowed; 2360 } 2361 2362 @media (hover: hover) { 2363 button:hover:enabled { 2364 background-color: ${({tokens:e})=>e.theme.foregroundSecondary}; 2365 } 2366 } 2367 2368 button[data-size='sm'] > wui-icon-box, 2369 button[data-size='sm'] > wui-image { 2370 width: 16px; 2371 height: 16px; 2372 } 2373 2374 button[data-size='md'] > wui-icon-box, 2375 button[data-size='md'] > wui-image {
2376 width: 20px; 2377 height: 20px; 2378 } 2379 2380 button[data-size='lg'] > wui-icon-box, 2381 button[data-size='lg'] > wui-image { 2382 width: 24px; 2383 height: 24px; 2384 } 2385 2386 wui-image, 2387 wui-icon-box { 2388 border-radius: ${({borderRadius:e})=>e[32]}; 2389 } 2390`;var D=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let U=class extends r.WF{constructor(){super(...arguments),this.imageSrc=void 0,this.isUnsupportedChain=void 0,this.disabled=!1,this.size="lg"}render(){return(0,r.qy)` 2391 <button data-size=${this.size} data-testid="wui-network-button" ?disabled=${this.disabled}> 2392 ${this.visualTemplate()} 2393 <wui-text variant=${({sm:"sm-regular",md:"md-regular",lg:"lg-regular"})[this.size]} color="primary"> 2394 <slot></slot> 2395 </wui-text> 2396 </button> 2397 `}visualTemplate(){return this.isUnsupportedChain?(0,r.qy)` <wui-icon-box color="error" icon="warningCircle"></wui-icon-box> `:this.imageSrc?(0,r.qy)`<wui-image src=${this.imageSrc}></wui-image>`:(0,r.qy)` <wui-icon size="xl" color="default" name="networkPlaceholder"></wui-icon> `}};U.styles=[p.W5,p.fD,L],D([(0,a.MZ)()],U.prototype,"imageSrc",void 0),D([(0,a.MZ)({type:Boolean})],U.prototype,"isUnsupportedChain",void 0),D([(0,a.MZ)({type:Boolean})],U.prototype,"disabled",void 0),D([(0,a.MZ)()],U.prototype,"size",void 0),U=D([(0,g.E)("wui-network-button")],U);let F=(0,r.AH)` 2398 :host { 2399 display: block; 2400 width: max-content; 2401 } 2402`;var H=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};class j extends r.WF{constructor(){super(),this.unsubscribe=[],this.disabled=!1,this.network=s.W.state.activeCaipNetwork,this.networkImage=c.$.getNetworkImage(this.network),this.caipAddress=s.W.state.activeCaipAddress,this.loading=u.W.state.loading,this.isSupported=!!o.H.state.allowUnsupportedChain||!s.W.state.activeChain||s.W.checkIfSupportedNetwork(s.W.state.activeChain),this.unsubscribe.push(l.j.subscribeNetworkImages(()=>{this.networkImage=c.$.getNetworkImage(this.network)}),s.W.subscribeKey("activeCaipAddress",e=>{this.caipAddress=e}),s.W.subscribeKey("activeCaipNetwork",e=>{this.network=e,this.networkImage=c.$.getNetworkImage(e),this.isSupported=!e?.chainNamespace||s.W.checkIfSupportedNetwork(e.chainNamespace),c.$.fetchNetworkImage(e?.assets?.imageId)}),u.W.subscribeKey("loading",e=>this.loading=e))}firstUpdated(){c.$.fetchNetworkImage(this.network?.assets?.imageId)}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=!this.network||s.W.checkIfSupportedNetwork(this.network.chainNamespace);return(0,r.qy)` 2403 <wui-network-button 2404 .disabled=${!!(this.disabled||this.loading)} 2405 .isUnsupportedChain=${!o.H.state.allowUnsupportedChain&&!e} 2406 imageSrc=${(0,n.J)(this.networkImage)} 2407 @click=${this.onClick.bind(this)} 2408 data-testid="w3m-network-button" 2409 > 2410 ${this.getLabel()} 2411 <slot></slot> 2412 </wui-network-button> 2413 `}getLabel(){return this.network?this.isSupported||o.H.state.allowUnsupportedChain?this.network.name:"Switch Network":this.label?this.label:this.caipAddress?"Unknown Network":"Select Network"}onClick(){this.loading||(W.E.sendEvent({type:"track",event:"CLICK_NETWORKS"}),u.W.open({view:"Networks"}))}}j.styles=F,H([(0,a.MZ)({type:Boolean})],j.prototype,"disabled",void 0),H([(0,a.MZ)({type:String})],j.prototype,"label",void 0),H([(0,a.wk)()],j.prototype,"network",void 0),H([(0,a.wk)()],j.prototype,"networkImage",void 0),H([(0,a.wk)()],j.prototype,"caipAddress",void 0),H([(0,a.wk)()],j.prototype,"loading",void 0),H([(0,a.wk)()],j.prototype,"isSupported",void 0);let Z=class extends j{};Z=H([(0,h.EM)("w3m-network-button")],Z);let B=class extends j{};B=H([(0,h.EM)("appkit-network-button")],B);var z=i(99349),q=i(89047),V=i(97220),K=i(45086),G=i(20592),J=i(98283),Y=i(60210),X=i(56119);i(86248),i(17421),i(27221),i(67571);let Q=(0,f.AH)` 2414 :host { 2415 display: block; 2416 } 2417 2418 button { 2419 width: 100%; 2420 display: flex; 2421 align-items: center; 2422 justify-content: space-between; 2423 gap: ${({spacing:e})=>e[4]}; 2424 padding: ${({spacing:e})=>e[3]}; 2425 border-radius: ${({borderRadius:e})=>e[4]}; 2426 background-color: ${({tokens:e})=>e.core.foregroundAccent010}; 2427 } 2428 2429 wui-flex > wui-icon { 2430 padding: ${({spacing:e})=>e[2]}; 2431 color: ${({tokens:e})=>e.theme.textInvert}; 2432 background-color: ${({tokens:e})=>e.core.backgroundAccentPrimary}; 2433 border-radius: ${({borderRadius:e})=>e[2]}; 2434 align-items: center; 2435 } 2436 2437 @media (hover: hover) { 2438 button:hover:enabled { 2439 background-color: ${({tokens:e})=>e.core.foregroundAccent020}; 2440 } 2441 } 2442`;var ee=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let et=class extends r.WF{constructor(){super(...arguments),this.label="",this.description="",this.icon="wallet"}render(){return(0,r.qy)` 2443 <button> 2444 <wui-flex gap="2" alignItems="center"> 2445 <wui-icon weight="fill" size="lg" name=${this.icon} color="inherit"></wui-icon> 2446 <wui-flex flexDirection="column" gap="1"> 2447 <wui-text variant="md-medium" color="primary">${this.label}</wui-text> 2448 <wui-text variant="md-regular" color="tertiary">${this.description}</wui-text> 2449 </wui-flex> 2450 </wui-flex> 2451 <wui-icon size="lg" color="accent-primary" name="chevronRight"></wui-icon> 2452 </button> 2453 `}};et.styles=[p.W5,p.fD,Q],ee([(0,a.MZ)()],et.prototype,"label",void 0),ee([(0,a.MZ)()],et.prototype,"description",void 0),ee([(0,a.MZ)()],et.prototype,"icon",void 0),et=ee([(0,g.E)("wui-notice-card")],et),i(8236);var ei=i(33364),er=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let ea=class extends r.WF{constructor(){super(),this.unsubscribe=[],this.socialProvider=ei.i.getConnectedSocialProvider(),this.socialUsername=ei.i.getConnectedSocialUsername(),this.namespace=s.W.state.activeChain,this.unsubscribe.push(s.W.subscribeKey("activeChain",e=>{this.namespace=e}))}
2453disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=K.a.getConnectorId(this.namespace),t=K.a.getAuthConnector();if(!t||e!==V.o.CONNECTOR_ID.AUTH)return this.style.cssText="display: none",null;let i=t.provider.getEmail()??"";return i||this.socialUsername?(0,r.qy)` 2454 <wui-list-item 2455 ?rounded=${!0} 2456 icon=${this.socialProvider??"mail"} 2457 data-testid="w3m-account-email-update" 2458 ?chevron=${!this.socialProvider} 2459 @click=${()=>{this.onGoToUpdateEmail(i,this.socialProvider)}} 2460 > 2461 <wui-text variant="lg-regular" color="primary">${this.getAuthName(i)}</wui-text> 2462 </wui-list-item> 2463 `:(this.style.cssText="display: none",null)}onGoToUpdateEmail(e,t){t||Y.I.push("UpdateEmailWallet",{email:e,redirectView:"Account"})}getAuthName(e){return this.socialUsername?"discord"===this.socialProvider&&this.socialUsername.endsWith("0")?this.socialUsername.slice(0,-1):this.socialUsername:e.length>30?`${e.slice(0,-3)}...`:e}};er([(0,a.wk)()],ea.prototype,"namespace",void 0),ea=er([(0,h.EM)("w3m-account-auth-button")],ea);var en=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let eo=class extends r.WF{constructor(){super(),this.usubscribe=[],this.networkImages=l.j.state.networkImages,this.address=s.W.getAccountData()?.address,this.profileImage=s.W.getAccountData()?.profileImage,this.profileName=s.W.getAccountData()?.profileName,this.network=s.W.state.activeCaipNetwork,this.disconnecting=!1,this.remoteFeatures=o.H.state.remoteFeatures,this.usubscribe.push(s.W.subscribeChainProp("accountState",e=>{e&&(this.address=e.address,this.profileImage=e.profileImage,this.profileName=e.profileName)}),s.W.subscribeKey("activeCaipNetwork",e=>{e?.id&&(this.network=e)}),o.H.subscribeKey("remoteFeatures",e=>{this.remoteFeatures=e}))}disconnectedCallback(){this.usubscribe.forEach(e=>e())}render(){if(!this.address)throw Error("w3m-account-settings-view: No account provided");let e=this.networkImages[this.network?.assets?.imageId??""];return(0,r.qy)` 2464 <wui-flex 2465 flexDirection="column" 2466 alignItems="center" 2467 gap="4" 2468 .padding=${["0","5","3","5"]} 2469 > 2470 <wui-avatar 2471 alt=${this.address} 2472 address=${this.address} 2473 imageSrc=${(0,n.J)(this.profileImage)} 2474 size="lg" 2475 ></wui-avatar> 2476 <wui-flex flexDirection="column" alignItems="center"> 2477 <wui-flex gap="1" alignItems="center" justifyContent="center"> 2478 <wui-text variant="h5-medium" color="primary" data-testid="account-settings-address"> 2479 ${h.Zv.getTruncateString({string:this.address,charsStart:4,charsEnd:6,truncate:"middle"})} 2480 </wui-text> 2481 <wui-icon-link 2482 size="md" 2483 icon="copy" 2484 iconColor="default" 2485 @click=${this.onCopyAddress} 2486 ></wui-icon-link> 2487 </wui-flex> 2488 </wui-flex> 2489 </wui-flex> 2490 <wui-flex flexDirection="column" gap="4"> 2491 <wui-flex flexDirection="column" gap="2" .padding=${["6","4","3","4"]}> 2492 ${this.authCardTemplate()} 2493 <w3m-account-auth-button></w3m-account-auth-button> 2494 <wui-list-item 2495 imageSrc=${(0,n.J)(e)} 2496 ?chevron=${this.isAllowedNetworkSwitch()} 2497 ?fullSize=${!0} 2498 ?rounded=${!0} 2499 @click=${this.onNetworks.bind(this)} 2500 data-testid="account-switch-network-button" 2501 > 2502 <wui-text variant="lg-regular" color="primary"> 2503 ${this.network?.name??"Unknown"} 2504 </wui-text> 2505 </wui-list-item> 2506 ${this.smartAccountSettingsTemplate()} ${this.chooseNameButtonTemplate()} 2507 <wui-list-item 2508 ?rounded=${!0} 2509 icon="power" 2510 iconColor="error" 2511 ?chevron=${!1} 2512 .loading=${this.disconnecting} 2513 @click=${this.onDisconnect.bind(this)} 2514 data-testid="disconnect-button" 2515 > 2516 <wui-text variant="lg-regular" color="primary">Disconnect</wui-text> 2517 </wui-list-item> 2518 </wui-flex> 2519 </wui-flex> 2520 `}chooseNameButtonTemplate(){let e=this.network?.chainNamespace,t=K.a.getConnectorId(e),i=K.a.getAuthConnector();return s.W.checkIfNamesSupported()&&i&&t===V.o.CONNECTOR_ID.AUTH&&!this.profileName?(0,r.qy)` 2521 <wui-list-item 2522 icon="id" 2523 ?rounded=${!0} 2524 ?chevron=${!0} 2525 @click=${this.onChooseName.bind(this)} 2526 data-testid="account-choose-name-button" 2527 > 2528 <wui-text variant="lg-regular" color="primary">Choose account name </wui-text> 2529 </wui-list-item> 2530 `:null}authCardTemplate(){let e=K.a.getConnectorId(this.network?.chainNamespace),t=K.a.getAuthConnector(),{origin:i}=location;return!t||e!==V.o.CONNECTOR_ID.AUTH||i.includes(G.oU.SECURE_SITE)?null:(0,r.qy)` 2531 <wui-notice-card 2532 @click=${this.onGoToUpgradeView.bind(this)} 2533 label="Upgrade your wallet" 2534 description="Transition to a self-custodial wallet" 2535 icon="wallet" 2536 data-testid="w3m-wallet-upgrade-card" 2537 ></wui-notice-card> 2538 `}isAllowedNetworkSwitch(){let e=s.W.getAllRequestedCaipNetworks(),t=!!e&&e.length>1,i=e?.find(({id:e})=>e===this.network?.id);return t||!i}onCopyAddress(){try{this.address&&(d.w.copyToClopboard(this.address),J.P.showSuccess("Address copied"))}catch{J.P.showError("Failed to copy")}}smartAccountSettingsTemplate(){let e=this.network?.chainNamespace,t=s.W.checkIfSmartAccountEnabled(),i=K.a.getConnectorId(e);return K.a.getAuthConnector()&&i===V.o.CONNECTOR_ID.AUTH&&t?(0,r.qy)` 2539 <wui-list-item 2540 icon="user" 2541 ?rounded=${!0} 2542 ?chevron=${!0} 2543 @click=${this.onSmartAccountSettings.bind(this)} 2544 data-testid="account-smart-account-settings-button" 2545 > 2546 <wui-text variant="lg-regular" color="primary">Smart Account Settings</wui-text> 2547 </wui-list-item> 2548 `:null}onChooseName(){Y.I.push("ChooseAccountName")}onNetworks(){this.isAllowedNetworkSwitch()&&Y.I.push("Networks")}async onDisconnect(){try{this.disconnecting=!0;let e=this.network?.chainNamespace,t=X.x.getConnections(e).length>0,i=e&&K.a.state.activeConnectorIds[e],r=this.remoteFeatures?.multiWallet;await X.x.disconnect(r?{id:i,namespace:e}:{}),t&&r&&(Y.I.push("ProfileWallets"),J.P.showSuccess("Wallet deleted"))}catch{W.E.sendEvent({type:"track",event:"DISCONNECT_ERROR",properties:{message:"Failed to disconnect"}}),J.P.showError("Failed to disconnect")}finally{this.disconnecting=!1}}onGoToUpgradeView(){W.E.sendEvent({type:"track",event:"EMAIL_UPGRADE_FROM_MODAL"}),Y.I.push("UpgradeEmailWallet")}onSmartAccountSettings(){Y.I.push("SmartAccountSettings")}};en([(0,a.wk)()],eo.prototype,"address",void 0),en([(0,a.wk)()],eo.prototype,"profileImage",void 0),en([(0,a.wk)()],eo.prototype,"profileName",void 0),en([(0,a.wk)()],eo.prototype,"network",void 0),en([(0,a.wk)()],eo.prototype,"disconnecting",void 0),en([(0,a.wk)()],eo.prototype,"remoteFeatures",void 0),eo=en([(0,h.EM)("w3m-account-settings-view")],eo);var es=i(51758),el=i(49140);i(30047),i(61594);let ec=(0,f.AH)` 2549 :host { 2550 flex: 1; 2551 height: 100%; 2552 } 2553 2554 button { 2555 width: 100%; 2556 height: 100%; 2557 display: inline-flex; 2558 align-items: center; 2559 padding: ${({spacing:e})=>e[1]} ${({spacing:e})=>e[2]}; 2560 column-gap: ${({spacing:e})=>e[1]}; 2561 color: ${({tokens:e})=>e.theme.textSecondary}; 2562 border-radius: ${({borderRadius:e})=>e[20]}; 2563 background-color: transparent; 2564 transition: background-color ${({durations:e})=>e.lg} 2565 ${({easings:e})=>e["ease-out-power-2"]}; 2566 will-change: background-color; 2567 } 2568 2569 /* -- Hover & Active states ----------------------------------------------------------- */ 2570 button[data-active='true'] { 2571 color: ${({tokens:e})=>e.theme.textPrimary}; 2572 background-color: ${({tokens:e})=>e.theme.foregroundTertiary}; 2573 } 2574 2575 button:hover:enabled:not([data-active='true']), 2576 button:active:enabled:not([data-active='true']) { 2577 wui-text, 2578 wui-icon { 2579 color: ${({tokens:e})=>e.theme.textPrimary}; 2580 } 2581 } 2582`;var ed=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let eu={lg:"lg-regular",md:"md-regular",sm:"sm-regular"},eh={lg:"md",md:"sm",sm:"sm"},ep=class extends r.WF{constructor(){super(...arguments),this.icon="mobile",this.size="md",this.label="",this.active=!1}render(){return(0,r.qy)` 2583 <button data-active=${this.active}> 2584 ${this.icon?(0,r.qy)`<wui-icon size=${eh[this.size]} name=${this.icon}></wui-icon>`:""} 2585 <wui-text variant=${eu[this.size]}> ${this.label} </wui-text> 2586 </button> 2587 `}};ep.styles=[p.W5,p.fD,ec],ed([(0,a.MZ)()],ep.prototype,"icon",void 0),ed([(0,a.MZ)()],ep.prototype,"size",void 0),ed([(0,a.MZ)()],ep.prototype,"label",void 0),ed([(0,a.MZ)({type:Boolean})],ep.prototype,"active",void 0),ep=ed([(0,g.E)("wui-tab-item")],ep);let em=(0,f.AH)` 2588 :host { 2589 display: inline-flex; 2590 align-items: center; 2591 background-color: ${({tokens:e})=>e.theme.foregroundSecondary}; 2592 border-radius: ${({borderRadius:e})=>e[32]}; 2593 padding: ${({spacing:e})=>e["01"]}; 2594 box-sizing: border-box; 2595 } 2596 2597 :host([data-size='sm']) {
2598 height: 26px; 2599 } 2600 2601 :host([data-size='md']) { 2602 height: 36px; 2603 } 2604`;var eg=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let ef=class extends r.WF{constructor(){super(...arguments),this.tabs=[],this.onTabChange=()=>null,this.size="md",this.activeTab=0}render(){return this.dataset.size=this.size,this.tabs.map((e,t)=>{let i=t===this.activeTab;return(0,r.qy)` 2605 <wui-tab-item 2606 @click=${()=>this.onTabClick(t)} 2607 icon=${e.icon} 2608 size=${this.size} 2609 label=${e.label} 2610 ?active=${i} 2611 data-active=${i} 2612 data-testid="tab-${e.label?.toLowerCase()}" 2613 ></wui-tab-item> 2614 `})}onTabClick(e){this.activeTab=e,this.onTabChange(e)}};ef.styles=[p.W5,p.fD,em],eg([(0,a.MZ)({type:Array})],ef.prototype,"tabs",void 0),eg([(0,a.MZ)()],ef.prototype,"onTabChange",void 0),eg([(0,a.MZ)()],ef.prototype,"size",void 0),eg([(0,a.wk)()],ef.prototype,"activeTab",void 0),ef=eg([(0,g.E)("wui-tabs")],ef),i(62253),i(33316);var ew=i(33579);let ey=(0,h.AH)` 2615 wui-icon-link { 2616 margin-right: calc(${({spacing:e})=>e["8"]} * -1); 2617 } 2618 2619 wui-notice-card { 2620 margin-bottom: ${({spacing:e})=>e["1"]}; 2621 } 2622 2623 wui-list-item > wui-text { 2624 flex: 1; 2625 } 2626 2627 w3m-transactions-view { 2628 max-height: 200px; 2629 } 2630 2631 .balance-container { 2632 display: inline; 2633 } 2634 2635 .tab-content-container { 2636 height: 300px; 2637 overflow-y: auto; 2638 overflow-x: hidden; 2639 scrollbar-width: none; 2640 } 2641 2642 .symbol { 2643 transform: translateY(-2px); 2644 } 2645 2646 .tab-content-container::-webkit-scrollbar {
2647 display: none; 2648 } 2649 2650 .account-button { 2651 width: auto; 2652 border: none; 2653 display: flex; 2654 align-items: center; 2655 justify-content: center; 2656 gap: ${({spacing:e})=>e["3"]}; 2657 height: 48px; 2658 padding: ${({spacing:e})=>e["2"]}; 2659 padding-right: ${({spacing:e})=>e["3"]}; 2660 box-shadow: inset 0 0 0 1px ${({tokens:e})=>e.theme.foregroundPrimary}; 2661 background-color: ${({tokens:e})=>e.theme.foregroundPrimary}; 2662 border-radius: ${({borderRadius:e})=>e[6]}; 2663 transition: background-color ${({durations:e})=>e.lg} 2664 ${({easings:e})=>e["ease-out-power-2"]}; 2665 } 2666 2667 .account-button:hover { 2668 background-color: ${({tokens:e})=>e.core.glass010}; 2669 } 2670 2671 .avatar-container { 2672 position: relative; 2673 } 2674 2675 wui-avatar.avatar { 2676 width: 32px; 2677 height: 32px; 2678 box-shadow: 0 0 0 2px ${({tokens:e})=>e.core.glass010}; 2679 } 2680 2681 wui-wallet-switch { 2682 margin-top: ${({spacing:e})=>e["2"]}; 2683 } 2684 2685 wui-avatar.network-avatar { 2686 width: 16px; 2687 height: 16px; 2688 position: absolute; 2689 left: 100%; 2690 top: 100%; 2691 transform: translate(-75%, -75%); 2692 box-shadow: 0 0 0 2px ${({tokens:e})=>e.core.glass010}; 2693 } 2694 2695 .account-links { 2696 display: flex; 2697 justify-content: space-between; 2698 align-items: center; 2699 } 2700 2701 .account-links wui-flex { 2702 cursor: pointer; 2703 display: flex; 2704 align-items: center; 2705 justify-content: center; 2706 flex: 1; 2707 background: red; 2708 align-items: center; 2709 justify-content: center; 2710 height: 48px; 2711 padding: 10px; 2712 flex: 1 0 0; 2713 border-radius: var(--XS, 16px); 2714 border: 1px solid var(--dark-accent-glass-010, rgba(71, 161, 255, 0.1)); 2715 background: var(--dark-accent-glass-010, rgba(71, 161, 255, 0.1)); 2716 transition: 2717 background-color ${({durations:e})=>e.md} 2718 ${({easings:e})=>e["ease-out-power-1"]}, 2719 opacity ${({durations:e})=>e.md} ${({easings:e})=>e["ease-out-power-1"]}; 2720 will-change: background-color, opacity; 2721 } 2722 2723 .account-links wui-flex:hover { 2724 background: var(--dark-accent-glass-015, rgba(71, 161, 255, 0.15)); 2725 } 2726 2727 .account-links wui-flex wui-icon { 2728 width: var(--S, 20px); 2729 height: var(--S, 20px); 2730 } 2731 2732 .account-links wui-flex wui-icon svg path { 2733 stroke: #667dff; 2734 } 2735`;var eb=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let ev=class extends r.WF{constructor(){super(),this.unsubscribe=[],this.caipAddress=s.W.getAccountData()?.caipAddress,this.address=d.w.getPlainAddress(s.W.getAccountData()?.caipAddress),this.profileImage=s.W.getAccountData()?.profileImage,this.profileName=s.W.getAccountData()?.profileName,this.disconnecting=!1,this.balance=s.W.getAccountData()?.balance,this.balanceSymbol=s.W.getAccountData()?.balanceSymbol,this.features=o.H.state.features,this.remoteFeatures=o.H.state.remoteFeatures,this.namespace=s.W.state.activeChain,this.activeConnectorIds=K.a.state.activeConnectorIds,this.unsubscribe.push(s.W.subscribeChainProp("accountState",e=>{this.address=d.w.getPlainAddress(e?.caipAddress),this.caipAddress=e?.caipAddress,this.balance=e?.balance,this.balanceSymbol=e?.balanceSymbol,this.profileName=e?.profileName,this.profileImage=e?.profileImage}),o.H.subscribeKey("features",e=>this.features=e),o.H.subscribeKey("remoteFeatures",e=>this.remoteFeatures=e),K.a.subscribeKey("activeConnectorIds",e=>{this.activeConnectorIds=e}),s.W.subscribeKey("activeChain",e=>this.namespace=e),s.W.subscribeKey("activeCaipNetwork",e=>{e?.chainNamespace&&(this.namespace=e?.chainNamespace)}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){if(!this.caipAddress||!this.namespace)return null;let e=this.activeConnectorIds[this.namespace],t=e?K.a.getConnectorById(e):void 0,i=c.$.getConnectorImage(t),{value:a,decimals:o,symbol:s}=d.w.parseBalance(this.balance,this.balanceSymbol);return(0,r.qy)`<wui-flex 2736 flexDirection="column" 2737 .padding=${["0","5","4","5"]} 2738 alignItems="center" 2739 gap="3" 2740 > 2741 <wui-avatar 2742 alt=${(0,n.J)(this.caipAddress)} 2743 address=${(0,n.J)(d.w.getPlainAddress(this.caipAddress))} 2744 imageSrc=${(0,n.J)(null===this.profileImage?void 0:this.profileImage)} 2745 data-testid="single-account-avatar" 2746 ></wui-avatar> 2747 <wui-wallet-switch 2748 profileName=${this.profileName} 2749 address=${this.address} 2750 imageSrc=${i} 2751 alt=${t?.name} 2752 @click=${this.onGoToProfileWalletsView.bind(this)} 2753 data-testid="wui-wallet-switch" 2754 ></wui-wallet-switch> 2755 <div class="balance-container"> 2756 <wui-text variant="h3-regular" color="primary">${a}</wui-text> 2757 <wui-text variant="h3-regular" color="secondary">.${o}</wui-text> 2758 <wui-text variant="h6-medium" color="primary" class="symbol">${s}</wui-text> 2759 </div> 2760 ${this.explorerBtnTemplate()} 2761 </wui-flex> 2762 2763 <wui-flex flexDirection="column" gap="2" .padding=${["0","3","3","3"]}> 2764 ${this.authCardTemplate()} <w3m-account-auth-button></w3m-account-auth-button> 2765 ${this.orderedFeaturesTemplate()} ${this.activityTemplate()} 2766 <wui-list-item 2767 .rounded=${!0} 2768 icon="power" 2769 iconColor="error" 2770 ?chevron=${!1} 2771 .loading=${this.disconnecting} 2772 .rightIcon=${!1} 2773 @click=${this.onDisconnect.bind(this)} 2774 data-testid="disconnect-button" 2775 > 2776 <wui-text variant="lg-regular" color="primary">Disconnect</wui-text> 2777 </wui-list-item> 2778 </wui-flex>`}fundWalletTemplate(){if(!this.namespace)return null;let e=G.oU.ONRAMP_SUPPORTED_CHAIN_NAMESPACES.includes(this.namespace),t=!!this.features?.receive,i=this.remoteFeatures?.onramp&&e,a=es.g.isPayWithExchangeEnabled();return i||t||a?(0,r.qy)` 2779 <wui-list-item 2780 .rounded=${!0} 2781 data-testid="w3m-account-default-fund-wallet-button" 2782 iconVariant="blue" 2783 icon="dollar" 2784 ?chevron=${!0}
2785 @click=${this.handleClickFundWallet.bind(this)} 2786 > 2787 <wui-text variant="lg-regular" color="primary">Fund wallet</wui-text> 2788 </wui-list-item> 2789 `:null}orderedFeaturesTemplate(){return(this.features?.walletFeaturesOrder||G.oU.DEFAULT_FEATURES.walletFeaturesOrder).map(e=>{switch(e){case"onramp":return this.fundWalletTemplate();case"swaps":return this.swapsTemplate();case"send":return this.sendTemplate();default:return null}})}activityTemplate(){return this.namespace&&this.remoteFeatures?.activity&&G.oU.ACTIVITY_ENABLED_CHAIN_NAMESPACES.includes(this.namespace)?(0,r.qy)` <wui-list-item 2790 .rounded=${!0} 2791 icon="clock" 2792 ?chevron=${!0} 2793 @click=${this.onTransactions.bind(this)} 2794 data-testid="w3m-account-default-activity-button" 2795 > 2796 <wui-text variant="lg-regular" color="primary">Activity</wui-text> 2797 </wui-list-item>`:null}swapsTemplate(){let e=this.remoteFeatures?.swaps,t=s.W.state.activeChain===V.o.CHAIN.EVM;return e&&t?(0,r.qy)` 2798 <wui-list-item 2799 .rounded=${!0} 2800 icon="recycleHorizontal" 2801 ?chevron=${!0} 2802 @click=${this.handleClickSwap.bind(this)} 2803 data-testid="w3m-account-default-swaps-button" 2804 > 2805 <wui-text variant="lg-regular" color="primary">Swap</wui-text> 2806 </wui-list-item> 2807 `:null}sendTemplate(){let e=this.features?.send,t=s.W.state.activeChain;if(!t)throw Error("SendController:sendTemplate - namespace is required");let i=G.oU.SEND_SUPPORTED_NAMESPACES.includes(t);return e&&i?(0,r.qy)` 2808 <wui-list-item 2809 .rounded=${!0} 2810 icon="send" 2811 ?chevron=${!0} 2812 @click=${this.handleClickSend.bind(this)} 2813 data-testid="w3m-account-default-send-button" 2814 > 2815 <wui-text variant="lg-regular" color="primary">Send</wui-text> 2816 </wui-list-item> 2817 `:null}authCardTemplate(){let e=s.W.state.activeChain;if(!e)throw Error("AuthCardTemplate:authCardTemplate - namespace is required");let t=K.a.getConnectorId(e),i=K.a.getAuthConnector(),{origin:a}=location;return!i||t!==V.o.CONNECTOR_ID.AUTH||a.includes(G.oU.SECURE_SITE)?null:(0,r.qy)` 2818 <wui-notice-card 2819 @click=${this.onGoToUpgradeView.bind(this)} 2820 label="Upgrade your wallet" 2821 description="Transition to a self-custodial wallet" 2822 icon="wallet" 2823 data-testid="w3m-wallet-upgrade-card" 2824 ></wui-notice-card> 2825 `}handleClickFundWallet(){Y.I.push("FundWallet")}handleClickSwap(){Y.I.push("Swap")}handleClickSend(){Y.I.push("WalletSend")}explorerBtnTemplate(){return s.W.getAccountData()?.addressExplorerUrl?(0,r.qy)` 2826 <wui-button size="md" variant="accent-primary" @click=${this.onExplorer.bind(this)}> 2827 <wui-icon size="sm" color="inherit" slot="iconLeft" name="compass"></wui-icon> 2828 Block Explorer 2829 <wui-icon size="sm" color="inherit" slot="iconRight" name="externalLink"></wui-icon> 2830 </wui-button> 2831 `:null}onTransactions(){W.E.sendEvent({type:"track",event:"CLICK_TRANSACTIONS",properties:{isSmartAccount:(0,el.lj)(s.W.state.activeChain)===ew.Vl.ACCOUNT_TYPES.SMART_ACCOUNT}}),Y.I.push("Transactions")}async onDisconnect(){try{this.disconnecting=!0;let e=X.x.getConnections(this.namespace).length>0,t=this.namespace&&K.a.state.activeConnectorIds[this.namespace],i=this.remoteFeatures?.multiWallet;await X.x.disconnect(i?{id:t,namespace:this.namespace}:{}),e&&i&&(Y.I.push("ProfileWallets"),J.P.showSuccess("Wallet deleted"))}catch{W.E.sendEvent({type:"track",event:"DISCONNECT_ERROR",properties:{message:"Failed to disconnect"}}),J.P.showError("Failed to disconnect")}finally{this.disconnecting=!1}}onExplorer(){let e=s.W.getAccountData()?.addressExplorerUrl;e&&d.w.openHref(e,"_blank")}onGoToUpgradeView(){W.E.sendEvent({type:"track",event:"EMAIL_UPGRADE_FROM_MODAL"}),Y.I.push("UpgradeEmailWallet")}onGoToProfileWalletsView(){Y.I.push("ProfileWallets")}};ev.styles=ey,eb([(0,a.wk)()],ev.prototype,"caipAddress",void 0),eb([(0,a.wk)()],ev.prototype,"address",void 0),eb([(0,a.wk)()],ev.prototype,"profileImage",void 0),eb([(0,a.wk)()],ev.prototype,"profileName",void 0),eb([(0,a.wk)()],ev.prototype,"disconnecting",void 0),eb([(0,a.wk)()],ev.prototype,"balance",void 0),eb([(0,a.wk)()],ev.prototype,"balanceSymbol",void 0),eb([(0,a.wk)()],ev.prototype,"features",void 0),eb([(0,a.wk)()],ev.prototype,"remoteFeatures",void 0),eb([(0,a.wk)()],ev.prototype,"namespace",void 0),eb([(0,a.wk)()],ev.prototype,"activeConnectorIds",void 0),ev=eb([(0,h.EM)("w3m-account-default-widget")],ev);var eC=i(53538);let ex=(0,f.AH)` 2832 span { 2833 font-weight: 500; 2834 font-size: 38px; 2835 color: ${({tokens:e})=>e.theme.textPrimary}; 2836 line-height: 38px; 2837 letter-spacing: -2%; 2838 text-align: center; 2839 font-family: var(--apkt-fontFamily-regular); 2840 } 2841 2842 .pennies { 2843 color: ${({tokens:e})=>e.theme.textSecondary}; 2844 } 2845`;var eE=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let ek=class extends r.WF{constructor(){super(...arguments),this.dollars="0",this.pennies="00"}render(){return(0,r.qy)`<span>$${this.dollars}<span class="pennies">.${this.pennies}</span></span>`}};ek.styles=[p.W5,ex],eE([(0,a.MZ)()],ek.prototype,"dollars",void 0),eE([(0,a.MZ)()],ek.prototype,"pennies",void 0),ek=e
2845E([(0,g.E)("wui-balance")],ek);let eA=(0,f.AH)` 2846 :host { 2847 display: inline-flex; 2848 justify-content: center; 2849 align-items: center; 2850 position: relative; 2851 } 2852 2853 wui-icon { 2854 position: absolute; 2855 width: 12px !important; 2856 height: 4px !important; 2857 } 2858 2859 /* -- Variants --------------------------------------------------------- */ 2860 :host([data-variant='fill']) { 2861 background-color: ${({colors:e})=>e.neutrals100}; 2862 } 2863 2864 :host([data-variant='shade']) { 2865 background-color: ${({colors:e})=>e.neutrals900}; 2866 } 2867 2868 :host([data-variant='fill']) > wui-text { 2869 color: ${({colors:e})=>e.black}; 2870 } 2871 2872 :host([data-variant='shade']) > wui-text { 2873 color: ${({colors:e})=>e.white}; 2874 } 2875 2876 :host([data-variant='fill']) > wui-icon { 2877 color: ${({colors:e})=>e.neutrals100}; 2878 } 2879 2880 :host([data-variant='shade']) > wui-icon { 2881 color: ${({colors:e})=>e.neutrals900}; 2882 } 2883 2884 /* -- Sizes --------------------------------------------------------- */ 2885 :host([data-size='sm']) { 2886 padding: ${({spacing:e})=>e[1]} ${({spacing:e})=>e[2]}; 2887 border-radius: ${({borderRadius:e})=>e[2]}; 2888 } 2889 2890 :host([data-size='md']) { 2891 padding: ${({spacing:e})=>e[2]} ${({spacing:e})=>e[3]}; 2892 border-radius: ${({borderRadius:e})=>e[3]}; 2893 } 2894 2895 /* -- Placements --------------------------------------------------------- */ 2896 wui-icon[data-placement='top'] { 2897 bottom: 0px; 2898 left: 50%; 2899 transform: translate(-50%, 95%); 2900 } 2901 2902 wui-icon[data-placement='bottom'] { 2903 top: 0; 2904 left: 50%; 2905 transform: translate(-50%, -95%) rotate(180deg); 2906 } 2907 2908 wui-icon[data-placement='right'] { 2909 top: 50%; 2910 left: 0; 2911 transform: translate(-65%, -50%) rotate(90deg); 2912 } 2913 2914 wui-icon[data-placement='left'] { 2915 top: 50%; 2916 right: 0%; 2917 transform: translate(65%, -50%) rotate(270deg); 2918 } 2919`;var e$=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let e_={sm:"sm-regular",md:"md-regular"},eN=class extends r.WF{constructor(){super(...arguments),this.placement="top",this.variant="fill",this.size="md",this.message=""}render(){return this.dataset.variant=this.variant,this.dataset.size=this.size,(0,r.qy)`<wui-icon data-placement=${this.placement} size="inherit" name="cursor"></wui-icon> 2920 <wui-text variant=${e_[this.size]}>${this.message}</wui-text>`}};eN.styles=[p.W5,p.fD,eA],e$([(0,a.MZ)()],eN.prototype,"placement",void 0),e$([
2920(0,a.MZ)()],eN.prototype,"variant",void 0),e$([(0,a.MZ)()],eN.prototype,"size",void 0),e$([(0,a.MZ)()],eN.prototype,"message",void 0),eN=e$([(0,g.E)("wui-tooltip")],eN);var eS=i(12763);i(32641);let eT=(0,r.AH)` 2921 :host { 2922 width: 100%; 2923 max-height: 280px; 2924 overflow: scroll; 2925 scrollbar-width: none; 2926 } 2927 2928 :host::-webkit-scrollbar { 2929 display: none; 2930 } 2931`,eR=class extends r.WF{render(){return(0,r.qy)`<w3m-activity-list page="account"></w3m-activity-list>`}};eR.styles=eT,eR=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o}([(0,h.EM)("w3m-account-activity-widget")],eR),i(67661);let eI=(0,f.AH)` 2932 :host { 2933 width: 100%; 2934 } 2935 2936 button { 2937 width: 100%; 2938 display: flex; 2939 justify-content: space-between; 2940 align-items: center; 2941 gap: ${({spacing:e})=>e[4]}; 2942 padding: ${({spacing:e})=>e[4]}; 2943 background-color: transparent; 2944 border-radius: ${({borderRadius:e})=>e[4]}; 2945 } 2946 2947 wui-text { 2948 max-width: 174px; 2949 } 2950 2951 .tag-container { 2952 width: fit-content; 2953 } 2954 2955 @media (hover: hover) { 2956 button:hover:enabled { 2957 background-color: ${({tokens:e})=>e.theme.foregroundPrimary}; 2958 } 2959 } 2960`;var eP=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let eO=class extends r.WF{constructor(){super(...arguments),this.icon="card",this.text="",this.description="",this.tag=void 0,this.disabled=!1}render(){return(0,r.qy)` 2961 <button ?disabled=${this.disabled}> 2962 <wui-flex alignItems="center" gap="3"> 2963 <wui-icon-box padding="2" color="secondary" icon=${this.icon} size="lg"></wui-icon-box> 2964 <wui-flex flexDirection="column" gap="1"> 2965 <wui-text variant="md-medium" color="primary">${this.text}</wui-text> 2966 ${this.description?(0,r.qy)`<wui-text variant="md-regular" color="secondary"> 2967 ${this.description}</wui-text 2968 >`:null} 2969 </wui-flex> 2970 </wui-flex> 2971 2972 <wui-flex class="tag-container" alignItems="center" gap="1" justifyContent="flex-end"> 2973 ${this.tag?(0,r.qy)`<wui-tag tagType="main" size="sm">${this.tag}</wui-tag>`:null} 2974 <wui-icon size="md" name="chevronRight" color="default"></wui-icon> 2975 </wui-flex> 2976 </button> 2977 `}};eO.styles=[p.W5,p.fD,eI],eP([(0,a.MZ)()],eO.prototype,"icon",void 0),eP([(0,a.MZ)()],eO.prototype,"text",void 0),eP([(0,a.MZ)()],eO.prototype,"description",void 0),eP([(0,a.MZ)()],eO.prototype,"tag",void 0),eP([(0,a.MZ)({type:Boolean})],eO.prototype,"disabled",void 0),eO=eP([(0,g.E)("wui-list-description")],eO),i(24044);let eM=(0,r.AH)` 2978 :host { 2979 width: 100%; 2980 } 2981 2982 wui-flex { 2983 width: 100%; 2984 } 2985 2986 .contentContainer { 2987 max-height: 280px; 2988 overflow: scroll; 2989 scrollbar-width: none; 2990 } 2991 2992 .contentContainer::-webkit-scrollbar {
2993 display: none; 2994 } 2995`;var eW=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let eL=class extends r.WF{constructor(){super(),this.unsubscribe=[],this.tokenBalance=s.W.getAccountData()?.tokenBalance,this.remoteFeatures=o.H.state.remoteFeatures,this.unsubscribe.push(s.W.subscribeChainProp("accountState",e=>{this.tokenBalance=e?.tokenBalance}),o.H.subscribeKey("remoteFeatures",e=>{this.remoteFeatures=e}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,r.qy)`${this.tokenTemplate()}`}tokenTemplate(){return this.tokenBalance&&this.tokenBalance?.length>0?(0,r.qy)`<wui-flex class="contentContainer" flexDirection="column" gap="2"> 2996 ${this.tokenItemTemplate()} 2997 </wui-flex>`:(0,r.qy)` <wui-flex flexDirection="column"> 2998 ${this.onRampTemplate()} 2999 <wui-list-description 3000 @click=${this.onReceiveClick.bind(this)} 3001 text="Receive funds" 3002 description="Scan the QR code and receive funds" 3003 icon="qrCode" 3004 iconColor="fg-200" 3005 iconBackgroundColor="fg-200" 3006 data-testid="w3m-account-receive-button" 3007 ></wui-list-description 3008 ></wui-flex>`}onRampTemplate(){return this.remoteFeatures?.onramp?(0,r.qy)`<wui-list-description 3009 @click=${this.onBuyClick.bind(this)} 3010 text="Buy Crypto" 3011 description="Easy with card or bank account" 3012 icon="card" 3013 iconColor="success-100" 3014 iconBackgroundColor="success-100" 3015 tag="popular" 3016 data-testid="w3m-account-onramp-button" 3017 ></wui-list-description>`:(0,r.qy)``}tokenItemTemplate(){return this.tokenBalance?.map(e=>(0,r.qy)`<wui-list-token 3018 tokenName=${e.name} 3019 tokenImageUrl=${e.iconUrl} 3020 tokenAmount=${e.quantity.numeric} 3021 tokenValue=${e.value} 3022 tokenCurrency=${e.symbol} 3023 ></wui-list-token>`)}onReceiveClick(){Y.I.push("WalletReceive")}onBuyClick(){W.E.sendEvent({type:"track",event:"SELECT_BUY_CRYPTO",properties:{isSmartAccount:(0,el.lj)(s.W.state.activeChain)===ew.Vl.ACCOUNT_TYPES.SMART_ACCOUNT}}),Y.I.push("OnRampProviders")}};eL.styles=eM,eW([(0,a.wk)()],eL.prototype,"tokenBalance",void 0),eW([(0,a.wk)()],eL.prototype,"remoteFeatures",void 0),eL=eW([(0,h.EM)("w3m-account-tokens-widget")],eL),i(27529),i(62366);let eD=(0,h.AH)` 3024 wui-flex { 3025 width: 100%; 3026 } 3027 3028 wui-promo { 3029 position: absolute; 3030 top: -32px; 3031 } 3032 3033 wui-profile-button { 3034 margin-top: calc(-1 * ${({spacing:e})=>e["4"]}); 3035 } 3036 3037 wui-promo + wui-profile-button { 3038 margin-top: ${({spacing:e})=>e["4"]}; 3039 } 3040 3041 wui-tabs { 3042 width: 100%; 3043 } 3044 3045 .contentContainer { 3046 height: 280px; 3047 } 3048 3049 .contentContainer > wui-icon-box { 3050 width: 40px; 3051 height: 40px; 3052 border-radius: ${({borderRadius:e})=>e["3"]}; 3053 } 3054 3055 .contentContainer > .textContent { 3056 width: 65%; 3057 } 3058`;var eU=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let eF=class extends r.WF{constructor(){super(...arguments),this.unsubscribe=[],this.network=s.W.state.activeCaipNetwork,this.profileName=s.W.getAccountData()?.profileName,this.address=s.W.getAccountData()?.address,this.currentTab=s.W.getAccountData()?.currentTab,this.tokenBalance=s.W.getAccountData()?.tokenBalance,this.features=o.H.state.features,this.namespace=s.W.state.activeChain,this.activeConnectorIds=K.a.state.activeConnectorIds,this.remoteFeatures=o.H.state.remoteFeatures}firstUpdated(){s.W.fetchTokenBalance(),this.unsubscribe.push(s.W.subscribeChainProp("accountState",e=>{e?.address?(this.address=e.address,this.profileName=e.profileName,this.currentTab=e.currentTab,this.tokenBalance=e.tokenBalance):u.W.close()}),K.a.subscribeKey("activeConnectorIds",e=>{this.activeConnectorIds=e}),s.W.subscribeKey("activeChain",e=>this.namespace=e),s.W.subscribeKey("activeCaipNetwork",e=>this.network=e),o.H.subscribeKey("features",e=>this.features=e),o.H.subscribeKey("remoteFeatures",e=>this.remoteFeatures=e)),this.watchSwapValues()}
3058disconnectedCallback(){this.unsubscribe.forEach(e=>e()),clearInterval(this.watchTokenBalance)}render(){if(!this.address)throw Error("w3m-account-features-widget: No account provided");if(!this.namespace)return null;let e=this.activeConnectorIds[this.namespace],t=e?K.a.getConnectorById(e):void 0,{icon:i,iconSize:a}=this.getAuthData();return(0,r.qy)`<wui-flex 3059 flexDirection="column" 3060 .padding=${["0","3","4","3"]} 3061 alignItems="center" 3062 gap="4" 3063 data-testid="w3m-account-wallet-features-widget" 3064 > 3065 <wui-flex flexDirection="column" justifyContent="center" alignItems="center" gap="2"> 3066 <wui-wallet-switch 3067 profileName=${this.profileName} 3068 address=${this.address} 3069 icon=${i} 3070 iconSize=${a} 3071 alt=${t?.name} 3072 @click=${this.onGoToProfileWalletsView.bind(this)} 3073 data-testid="wui-wallet-switch" 3074 ></wui-wallet-switch> 3075 3076 ${this.tokenBalanceTemplate()} 3077 </wui-flex> 3078 ${this.orderedWalletFeatures()} ${this.tabsTemplate()} ${this.listContentTemplate()} 3079 </wui-flex>`}orderedWalletFeatures(){let e=this.features?.walletFeaturesOrder||G.oU.DEFAULT_FEATURES.walletFeaturesOrder;if(e.every(e=>"send"===e||"receive"===e?!this.features?.[e]:"swaps"!==e&&"onramp"!==e||!this.remoteFeatures?.[e]))return null;let t=[...new Set(e.map(e=>"receive"===e||"onramp"===e?"fund":e))];return(0,r.qy)`<wui-flex gap="2"> 3080 ${t.map(e=>{switch(e){case"fund":return this.fundWalletTemplate();case"swaps":return this.swapsTemplate();case"send":return this.sendTemplate();default:return null}})} 3081 </wui-flex>`}fundWalletTemplate(){if(!this.namespace)return null;let e=G.oU.ONRAMP_SUPPORTED_CHAIN_NAMESPACES.includes(this.namespace),t=this.features?.receive,i=this.remoteFeatures?.onramp&&e,a=es.g.isPayWithExchangeEnabled();return i||t||a?(0,r.qy)` 3082 <w3m-tooltip-trigger text="Fund wallet"> 3083 <wui-button 3084 data-testid="wallet-features-fund-wallet-button" 3085 @click=${this.onFundWalletClick.bind(this)} 3086 variant="accent-secondary" 3087 size="lg" 3088 fullWidth 3089 > 3090 <wui-icon name="dollar"></wui-icon> 3091 </wui-button> 3092 </w3m-tooltip-trigger> 3093 `:null}swapsTemplate(){let e=this.remoteFeatures?.swaps,t=s.W.state.activeChain===V.o.CHAIN.EVM;return e&&t?(0,r.qy)` 3094 <w3m-tooltip-trigger text="Swap"> 3095 <wui-button 3096 fullWidth 3097 data-testid="wallet-features-swaps-button" 3098 @click=${this.onSwapClick.bind(this)} 3099 variant="accent-secondary" 3100 size="lg" 3101 > 3102 <wui-icon name="recycleHorizontal"></wui-icon> 3103 </wui-button> 3104 </w3m-tooltip-trigger> 3105 `:null}sendTemplate(){let e=this.features?.send,t=s.W.state.activeChain,i=G.oU.SEND_SUPPORTED_NAMESPACES.includes(t);return e&&i?(0,r.qy)` 3106 <w3m-tooltip-trigger text="Send"> 3107 <wui-button 3108 fullWidth 3109 data-testid="wallet-features-send-button" 3110 @click=${this.onSendClick.bind(this)} 3111 variant="accent-secondary" 3112 size="lg" 3113 > 3114 <wui-icon name="send"></wui-icon> 3115 </wui-button> 3116 </w3m-tooltip-trigger> 3117 `:null}watchSwapValues(){this.watchTokenBalance=setInterval(()=>s.W.fetchTokenBalance(e=>this.onTokenBalanceError(e)),1e4)}onTokenBalanceError(e){e instanceof Error&&e.cause instanceof Response&&e.cause.status===V.o.HTTP_STATUS_CODES.SERVICE_UNAVAILABLE&&clearInterval(this.watchTokenBalance)}listContentTemplate(){return 0===this.currentTab?(0,r.qy)`<w3m-account-tokens-widget></w3m-account-tokens-widget>`:1===this.currentTab?(0,r.qy)`<w3m-account-activity-widget></w3m-account-activity-widget>`:(0,r.qy)`<w3m-account-tokens-widget></w3m-account-tokens-widget>`}tokenBalanceTemplate(){if(this.tokenBalance&&this.tokenBalance?.length>=0){let e=d.w.calculateBalance(this.tokenBalance),{dollars:t="0",pennies:i="00"}=d.w.formatTokenBalance(e);return(0,r.qy)`<wui-balance dollars=${t} pennies=${i}></wui-balance>`}return(0,r.qy)`<wui-balance dollars="0" pennies="00"></wui-balance>`}tabsTemplate(){let e=eS.y.getTabsByNamespace(s.W.state.activeChain);return 0===e.length?null:(0,r.qy)`<wui-tabs 3118 .onTabChange=${this.onTabChange.bind(this)} 3119 .activeTab=${this.currentTab} 3120 .tabs=${e} 3121 ></wui-tabs>`}onTabChange(e){s.W.setAccountProp("currentTab",e,this.namespace)}onFundWalletClick(){Y.I.push("FundWallet")}onSwapClick(){this.network?.caipNetworkId&&!G.oU.SWAP_SUPPORTED_NETWORKS.includes(this.network?.caipNetworkId)?Y.I.push("UnsupportedChain",{swapUnsupportedChain:!0}):(W.E.sendEvent({type:"track",event:"OPEN_SWAP",properties:{network:this.network?.caipNetworkId||"",isSmartAccount:(0,el.lj)(s.W.state.activeChain)===ew.Vl.ACCOUNT_TYPES.SMART_ACCOUNT}}),Y.I.push("Swap"))}getAuthData(){let e=ei.i.getConnectedSocialProvider(),t=ei.i.getConnectedSocialUsername(),i=K.a.getAuthConnector(),r=i?.provider.getEmail()??"";return{name:eC.g.getAuthName({email:r,socialUsername:t,socialProvider:e}),icon:e??"mail",iconSize:e?"xl":"md"}}onGoToProfileWalletsView(){Y.I.push("ProfileWallets")}onSendClick(){W.E.sendEvent({type:"track",event:"OPEN_SEND",properties:{network:this.network?.caipNetworkId||"",isSmartAccount:(0,el.lj)(s.W.state.activeChain)===ew.Vl.ACCOUNT_TYPES.SMART_ACCOUNT}}),Y.I.push("WalletSend")}};eF.styles=eD,eU([(0,a.wk)()],eF.prototype,"watchTokenBalance",void 0),eU([(0,a.wk)()],eF.prototype,"network",void 0),eU([(0,a.wk)()],eF.prototype,"profileName",void 0),eU([(0,a.wk)()],eF.prototype,"address",void 0),eU([(0,a.wk)()],eF.prototype,"currentTab",void 0),eU([(0,a.wk)()],eF.prototype,"tokenBalance",void 0),eU([(0,a.wk)()],eF.prototype,"features",void 0),eU([(0,a.wk)()],eF.prototype,"namespace",void 0),eU([(0,a.wk)()],eF.prototype,"activeConnectorIds",void 0),eU([(0,a.wk)()],eF.prototype,"remoteFeatures",void 0),eF=eU([(0,h.EM)("w3m-account-wallet-features-widget")],eF);var eH=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let ej=class extends r.WF{constructor(){super(),this.unsubscribe=[],this.namespace=s.W.state.activeChain,this.unsubscribe.push(s.W.subscribeKey("activeChain",e=>{this.namespace=e}))}
3121render(){if(!this.namespace)return null;let e=K.a.getConnectorId(this.namespace),t=K.a.getAuthConnector();return(0,r.qy)` 3122 ${t&&e===V.o.CONNECTOR_ID.AUTH?this.walletFeaturesTemplate():this.defaultTemplate()} 3123 `}walletFeaturesTemplate(){return(0,r.qy)`<w3m-account-wallet-features-widget></w3m-account-wallet-features-widget>`}defaultTemplate(){return(0,r.qy)`<w3m-account-default-widget></w3m-account-default-widget>`}};eH([(0,a.wk)()],ej.prototype,"namespace",void 0),ej=eH([(0,h.EM)("w3m-account-view")],ej);var eZ=i(4456),eB=i(32866),ez=i(31723);i(82853),i(32420);let eq=(0,f.AH)` 3124 wui-image { 3125 width: 24px; 3126 height: 24px; 3127 border-radius: ${({borderRadius:e})=>e[2]}; 3128 } 3129 3130 wui-image, 3131 .icon-box { 3132 width: 32px; 3133 height: 32px; 3134 border-radius: ${({borderRadius:e})=>e[2]}; 3135 } 3136 3137 wui-icon:not(.custom-icon, .icon-badge) { 3138 cursor: pointer; 3139 } 3140 3141 .icon-box { 3142 position: relative; 3143 border-radius: ${({borderRadius:e})=>e[2]}; 3144 background-color: ${({tokens:e})=>e.theme.foregroundSecondary}; 3145 } 3146 3147 .icon-badge { 3148 position: absolute; 3149 top: 18px; 3150 left: 23px; 3151 z-index: 3; 3152 background-color: ${({tokens:e})=>e.theme.foregroundPrimary}; 3153 border: 2px solid ${({tokens:e})=>e.theme.backgroundPrimary}; 3154 border-radius: 50%; 3155 padding: ${({spacing:e})=>e["01"]}; 3156 } 3157 3158 .icon-badge { 3159 width: 8px; 3160 height: 8px; 3161 } 3162`;var eV=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let eK=class extends r.WF{constructor(){super(...arguments),this.address="",this.profileName="",this.content=[],this.alt="",this.imageSrc="",this.icon=void 0,this.iconSize="md",this.iconBadge=void 0,this.iconBadgeSize="md",this.buttonVariant="neutral-primary",this.enableMoreButton=!1,this.charsStart=4,this.charsEnd=6}render(){return(0,r.qy)` 3163 <wui-flex flexDirection="column" rowgap="2"> 3164 ${this.topTemplate()} ${this.bottomTemplate()} 3165 </wui-flex> 3166 `}topTemplate(){return(0,r.qy)` 3167 <wui-flex alignItems="flex-start" justifyContent="space-between"> 3168 ${this.imageOrIconTemplate()} 3169 <wui-icon-link 3170 variant="secondary" 3171 size="md" 3172 icon="copy" 3173 @click=${this.dispatchCopyEvent} 3174 ></wui-icon-link> 3175 <wui-icon-link 3176 variant="secondary" 3177 size="md" 3178 icon="externalLink" 3179 @click=${this.dispatchExternalLinkEvent} 3180 ></wui-icon-link> 3181 ${this.enableMoreButton?(0,r.qy)`<wui-icon-link 3182 variant="secondary" 3183 size="md" 3184 icon="threeDots" 3185 @click=${this.dispatchMoreButtonEvent} 3186 data-testid="wui-active-profile-wallet-item-more-button" 3187 ></wui-icon-link>`:null} 3188 </wui-flex> 3189 `}bottomTemplate(){return(0,r.qy)` <wui-flex flexDirection="column">${this.contentTemplate()}</wui-flex> `}imageOrIconTemplate(){return this.icon?(0,r.qy)` 3190 <wui-flex flexGrow="1" alignItems="center"> 3191 <wui-flex alignItems="center" justifyContent="center" class="icon-box"> 3192 <wui-icon size="lg" color="default" name=${this.icon} class="custom-icon"></wui-icon> 3193 3194 ${this.iconBadge?(0,r.qy)`<wui-icon 3195 color="accent-primary" 3196 size="inherit" 3197 name=${this.iconBadge} 3198 class="icon-badge" 3199 ></wui-icon>`:null} 3200 </wui-flex> 3201 </wui-flex> 3202 `:(0,r.qy)` 3203 <wui-flex flexGrow="1" alignItems="center"> 3204 <wui-image objectFit="contain" src=${this.imageSrc} alt=${this.alt}></wui-image> 3205 </wui-flex> 3206 `}contentTemplate(){return 0===this.content.length?null:(0,r.qy)` 3207 <wui-flex flexDirection="column" rowgap="3"> 3208 ${this.content.map(e=>this.labelAndTagTemplate(e))} 3209 </wui-flex> 3210 `}labelAndTagTemplate({address:e,profileName:t,label:i,description:a,enableButton:n,buttonType:o,buttonLabel:s,buttonVariant:l,tagVariant:c,tagLabel:d,alignItems:u="flex-end"}){return(0,r.qy)` 3211 <wui-flex justifyContent="space-between" alignItems=${u} columngap="1"> 3212 <wui-flex flexDirection="column" rowgap="01"> 3213 ${i?(0,r.qy)`<wui-text variant="sm-medium" color="secondary">${i}</wui-text>`:null} 3214 3215 <wui-flex alignItems="center" columngap="1"> 3216 <wui-text variant="md-regular" color="primary"> 3217 ${m.Z.getTruncateString({string:t||e,charsStart:t?16:this.charsStart,charsEnd:t?0:this.charsEnd,truncate:t?"end":"middle"})} 3218 </wui-text> 3219 3220 ${c&&d?(0,r.qy)`<wui-tag variant=${c} size="sm">${d}</wui-tag>`:null} 3221 </wui-flex> 3222 3223 ${a?(0,r.qy)`<wui-text variant="sm-regular" color="secondary">${a}</wui-text>`:null} 3224 </wui-flex> 3225 3226 ${n?this.buttonTemplate({buttonType:o,buttonLabel:s,buttonVariant:l}):null} 3227 </wui-flex> 3228 `}buttonTemplate({buttonType:e,buttonLabel:t,buttonVariant:i}){return(0,r.qy)` 3229 <wui-button 3230 size="sm" 3231 variant=${i} 3232 @click=${"disconnect"===e?this.dispatchDisconnectEvent.bind(this):this.dispatchSwitchEvent.bind(this)} 3233 data-testid=${"disconnect"===e?"wui-active-profile-wallet-item-disconnect-button":"wui-active-profile-wallet-item-switch-button"} 3234 > 3235 ${t} 3236 </wui-button>
3236 3237 `}dispatchDisconnectEvent(){this.dispatchEvent(new CustomEvent("disconnect",{bubbles:!0,composed:!0}))}dispatchSwitchEvent(){this.dispatchEvent(new CustomEvent("switch",{bubbles:!0,composed:!0}))}dispatchExternalLinkEvent(){this.dispatchEvent(new CustomEvent("externalLink",{bubbles:!0,composed:!0}))}dispatchMoreButtonEvent(){this.dispatchEvent(new CustomEvent("more",{bubbles:!0,composed:!0}))}dispatchCopyEvent(){this.dispatchEvent(new CustomEvent("copy",{bubbles:!0,composed:!0}))}};eK.styles=[p.W5,p.fD,eq],eV([(0,a.MZ)()],eK.prototype,"address",void 0),eV([(0,a.MZ)()],eK.prototype,"profileName",void 0),eV([(0,a.MZ)({type:Array})],eK.prototype,"content",void 0),eV([(0,a.MZ)()],eK.prototype,"alt",void 0),eV([(0,a.MZ)()],eK.prototype,"imageSrc",void 0),eV([(0,a.MZ)()],eK.prototype,"icon",void 0),eV([(0,a.MZ)()],eK.prototype,"iconSize",void 0),eV([(0,a.MZ)()],eK.prototype,"iconBadge",void 0),eV([(0,a.MZ)()],eK.prototype,"iconBadgeSize",void 0),eV([(0,a.MZ)()],eK.prototype,"buttonVariant",void 0),eV([(0,a.MZ)({type:Boolean})],eK.prototype,"enableMoreButton",void 0),eV([(0,a.MZ)({type:Number})],eK.prototype,"charsStart",void 0),eV([(0,a.MZ)({type:Number})],eK.prototype,"charsEnd",void 0),eK=eV([(0,g.E)("wui-active-profile-wallet-item")],eK),i(96402);let eG=(0,f.AH)` 3238 wui-image, 3239 .icon-box { 3240 width: 32px; 3241 height: 32px; 3242 border-radius: ${({borderRadius:e})=>e[2]}; 3243 } 3244 3245 .right-icon { 3246 cursor: pointer; 3247 } 3248 3249 .icon-box { 3250 position: relative; 3251 background-color: ${({tokens:e})=>e.theme.foregroundPrimary}; 3252 } 3253 3254 .icon-badge { 3255 position: absolute; 3256 top: 18px; 3257 left: 23px; 3258 z-index: 3; 3259 background-color: ${({tokens:e})=>e.theme.foregroundPrimary}; 3260 border: 2px solid ${({tokens:e})=>e.theme.backgroundPrimary}; 3261 border-radius: 50%; 3262 padding: ${({spacing:e})=>e["01"]}; 3263 } 3264 3265 .icon-badge { 3266 width: 8px; 3267 height: 8px; 3268 } 3269`;var eJ=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let eY=class extends r.WF{constructor(){super(...arguments),this.address="",this.profileName="",this.alt="",this.buttonLabel="",this.buttonVariant="accent-primary",this.imageSrc="",this.icon=void 0,this.iconSize="md",this.iconBadgeSize="md",this.rightIcon="signOut",this.rightIconSize="md",this.loading=!1,this.charsStart=4,this.charsEnd=6}render(){return(0,r.qy)` 3270 <wui-flex alignItems="center" columngap="2"> 3271 ${this.imageOrIconTemplate()} ${this.labelAndDescriptionTemplate()} 3272 ${this.buttonActionTemplate()} 3273 </wui-flex> 3274 `}imageOrIconTemplate(){return this.icon?(0,r.qy)` 3275 <wui-flex alignItems="center" justifyContent="center" class="icon-box"> 3276 <wui-flex alignItems="center" justifyContent="center" class="icon-box"> 3277 <wui-icon size="lg" color="default" name=${this.icon} class="custom-icon"></wui-icon> 3278 3279 ${this.iconBadge?(0,r.qy)`<wui-icon 3280 color="default" 3281 size="inherit" 3282 name=${this.iconBadge} 3283 class="icon-badge" 3284 ></wui-icon>`:null} 3285 </wui-flex> 3286 </wui-flex> 3287 `:(0,r.qy)`<wui-image objectFit="contain" src=${this.imageSrc} alt=${this.alt}></wui-image>`}labelAndDescriptionTemplate(){return(0,r.qy)` 3288 <wui-flex 3289 flexDirection="column" 3290 flexGrow="1" 3291 justifyContent="flex-start" 3292 alignItems="flex-start" 3293 > 3294 <wui-text variant="lg-regular" color="primary"> 3295 ${m.Z.getTruncateString({string:this.profileName||this.address,charsStart:this.profileName?16:this.charsStart,charsEnd:this.profileName?0:this.charsEnd,truncate:this.profileName?"end":"middle"})} 3296 </wui-text> 3297 </wui-flex> 3298 `}buttonActionTemplate(){return(0,r.qy)` 3299 <wui-flex columngap="1" alignItems="center" justifyContent="center"> 3300 <wui-button 3301 size="sm" 3302 variant=${this.buttonVariant} 3303 .loading=${this.loading} 3304 @click=${this.handleButtonClick} 3305 data-testid="wui-inactive-profile-wallet-item-button" 3306 > 3307 ${this.buttonLabel} 3308 </wui-button>
3308 3309 3310 <wui-icon-link 3311 variant="secondary" 3312 size="md" 3313 icon=${(0,n.J)(this.rightIcon)} 3314 class="right-icon" 3315 @click=${this.handleIconClick} 3316 ></wui-icon-link> 3317 </wui-flex> 3318 `}handleButtonClick(){this.dispatchEvent(new CustomEvent("buttonClick",{bubbles:!0,composed:!0}))}handleIconClick(){this.dispatchEvent(new CustomEvent("iconClick",{bubbles:!0,composed:!0}))}};eY.styles=[p.W5,p.fD,eG],eJ([(0,a.MZ)()],eY.prototype,"address",void 0),eJ([(0,a.MZ)()],eY.prototype,"profileName",void 0),eJ([(0,a.MZ)()],eY.prototype,"alt",void 0),eJ([(0,a.MZ)()],eY.prototype,"buttonLabel",void 0),eJ([(0,a.MZ)()],eY.prototype,"buttonVariant",void 0),eJ([(0,a.MZ)()],eY.prototype,"imageSrc",void 0),eJ([(0,a.MZ)()],eY.prototype,"icon",void 0),eJ([(0,a.MZ)()],eY.prototype,"iconSize",void 0),eJ([(0,a.MZ)()],eY.prototype,"iconBadge",void 0),eJ([(0,a.MZ)()],eY.prototype,"iconBadgeSize",void 0),eJ([(0,a.MZ)()],eY.prototype,"rightIcon",void 0),eJ([(0,a.MZ)()],eY.prototype,"rightIconSize",void 0),eJ([(0,a.MZ)({type:Boolean})],eY.prototype,"loading",void 0),eJ([(0,a.MZ)({type:Number})],eY.prototype,"charsStart",void 0),eJ([(0,a.MZ)({type:Number})],eY.prototype,"charsEnd",void 0),eY=eJ([(0,g.E)("wui-inactive-profile-wallet-item")],eY),i(43725);var eX=i(25066);let eQ={getAuthData(e){let t=e.connectorId===V.o.CONNECTOR_ID.AUTH;if(!t)return{isAuth:!1,icon:void 0,iconSize:void 0,name:void 0};let i=e?.auth?.name??ei.i.getConnectedSocialProvider(),r=e?.auth?.username??ei.i.getConnectedSocialUsername(),a=K.a.getAuthConnector(),n=a?.provider.getEmail()??"";return{isAuth:!0,icon:i??"mail",iconSize:i?"xl":"md",name:t?eC.g.getAuthName({email:n,socialUsername:r,socialProvider:i}):void 0}}},e0=(0,h.AH)` 3319 :host { 3320 --connect-scroll--top-opacity: 0; 3321 --connect-scroll--bottom-opacity: 0; 3322 } 3323 3324 .balance-amount { 3325 flex: 1; 3326 } 3327 3328 .wallet-list { 3329 scrollbar-width: none; 3330 overflow-y: scroll; 3331 overflow-x: hidden; 3332 transition: opacity ${({easings:e})=>e["ease-out-power-1"]} 3333 ${({durations:e})=>e.md}; 3334 will-change: opacity; 3335 mask-image: linear-gradient( 3336 to bottom, 3337 rgba(0, 0, 0, calc(1 - var(--connect-scroll--top-opacity))) 0px, 3338 rgba(200, 200, 200, calc(1 - var(--connect-scroll--top-opacity))) 1px, 3339 black 40px, 3340 black calc(100% - 40px), 3341 rgba(155, 155, 155, calc(1 - var(--connect-scroll--bottom-opacity))) calc(100% - 1px), 3342 rgba(0, 0, 0, calc(1 - var(--connect-scroll--bottom-opacity))) 100% 3343 ); 3344 } 3345 3346 .active-wallets { 3347 background-color: ${({tokens:e})=>e.theme.foregroundPrimary}; 3348 border-radius: ${({borderRadius:e})=>e["4"]}; 3349 } 3350 3351 .active-wallets-box { 3352 height: 330px; 3353 } 3354 3355 .empty-wallet-list-box { 3356 height: 400px; 3357 } 3358 3359 .empty-box { 3360 width: 100%; 3361 padding: ${({spacing:e})=>e["4"]}; 3362 background-color: ${({tokens:e})=>e.theme.foregroundPrimary}; 3363 border-radius: ${({borderRadius:e})=>e["4"]}; 3364 } 3365 3366 wui-separator { 3367 margin: ${({spacing:e})=>e["2"]} 0 ${({spacing:e})=>e["2"]} 0; 3368 } 3369 3370 .active-connection { 3371 padding: ${({spacing:e})=>e["2"]}; 3372 } 3373 3374 .recent-connection { 3375 padding: ${({spacing:e})=>e["2"]} 0 ${({spacing:e})=>e["2"]} 0; 3376 } 3377 3378 @media (max-width: 430px) { 3379 .active-wallets-box, 3380 .empty-wallet-list-box { 3381 height: auto; 3382 max-height: clamp(360px, 470px, 80vh); 3383 } 3384 } 3385`;var e1=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let e2={ADDRESS_DISPLAY:{START:4,END:6},BADGE:{SIZE:"md",ICON:"lightbulb"},SCROLL_THRESHOLD:50,OPACITY_RANGE:[0,1]},e3={eip155:"ethereum",solana:"solana",bip122:"bitcoin",ton:"ton",tron:"tron"},e5=[{namespace:"eip155",icon:e3.eip155,label:"EVM"},{namespace:"solana",icon:e3.solana,label:"Solana"},{namespace:"bip122",icon:e3.bip122,label:"Bitcoin"},{namespace:"ton",icon:e3.ton,label:"Ton"},{namespace:"tron",icon:e3.tron,label:"Tron"}],e4={eip155:{title:"Add EVM Wallet",description:"Add your first EVM wallet"},solana:{title:"Add Solana Wallet",description:"Add your first Solana wallet"},bip122:{title:"Add Bitcoin Wallet",description:"Add your first Bitcoin wallet"},ton:{title:"Add TON Wallet",description:"Add your first TON wallet"},tron:{title:"Add TRON Wallet",description:"Add your first TRON wallet"}},e6=class extends r.WF{constructor(){super(),this.unsubscribers=[],this.currentTab=0,this.namespace=s.W.state.activeChain,this.namespaces=Array.from(s.W.state.chains.keys()),this.caipAddress=void 0,this.profileName=void 0,this.activeConnectorIds=K.a.state.activeConnectorIds,this.lastSelectedAddress="",this.lastSelectedConnectorId="",this.isSwitching=!1,this.caipNetwork=s.W.state.activeCaipNetwork,this.user=s.W.getAccountData()?.user,this.remoteFeatures=o.H.state.remoteFeatures,this.currentTab=this.namespace?this.namespaces.indexOf(this.namespace):0,this.caipAddress=s.W.getAccountData(this.namespace)?.caipAddress,this.profileName=s.W.getAccountData(this.namespace)?.profileName,this.unsubscribers.push(X.x.subscribeKey("connections",()=>this.onConnectionsChange()),X.x.subscribeKey("recentConnections",()=>this.requestUpdate()),K.a.subscribeKey("activeConnectorIds",e=>{this.activeConnectorIds=e}),s.W.subscribeKey("activeCaipNetwork",e=>this.caipNetwork=e),s.W.subscribeChainProp("accountState",e=>{this.user=e?.user}),o.H.subscribeKey("remoteFeatures",e=>this.remoteFeatures=e)),this.chainListener=s.W.subscribeChainProp("accountState",e=>{this.caipAddress=e?.caipAddress,this.profileName=e?.profileName},this.namespace)}
3385disconnectedCallback(){this.unsubscribers.forEach(e=>e()),this.resizeObserver?.disconnect(),this.removeScrollListener(),this.chainListener?.()}firstUpdated(){let e=this.shadowRoot?.querySelector(".wallet-list");if(!e)return;let t=()=>this.updateScrollOpacity(e);requestAnimationFrame(t),e.addEventListener("scroll",t),this.resizeObserver=new ResizeObserver(t),this.resizeObserver.observe(e),t()}render(){let e=this.namespace;if(!e)throw Error("Namespace is not set");return(0,r.qy)` 3386 <wui-flex flexDirection="column" .padding=${["0","4","4","4"]} gap="4"> 3387 ${this.renderTabs()} ${this.renderHeader(e)} ${this.renderConnections(e)} 3388 ${this.renderAddConnectionButton(e)} 3389 </wui-flex> 3390 `}renderTabs(){let e=this.namespaces.map(e=>e5.find(t=>t.namespace===e)).filter(Boolean);return e.length>1?(0,r.qy)` 3391 <wui-tabs 3392 .onTabChange=${e=>this.handleTabChange(e)} 3393 .activeTab=${this.currentTab} 3394 .tabs=${e} 3395 ></wui-tabs> 3396 `:null}renderHeader(e){let t=this.getActiveConnections(e).flatMap(({accounts:e})=>e).length+ +!!this.caipAddress;return(0,r.qy)` 3397 <wui-flex alignItems="center" columngap="1"> 3398 <wui-icon 3399 size="sm" 3400 name=${e3[e]??e3.eip155} 3401 ></wui-icon> 3402 <wui-text color="secondary" variant="lg-regular" 3403 >${t>1?"Wallets":"Wallet"}</wui-text 3404 > 3405 <wui-text 3406 color="primary" 3407 variant="lg-regular" 3408 class="balance-amount" 3409 data-testid="balance-amount" 3410 > 3411 ${t} 3412 </wui-text> 3413 <wui-link 3414 color="secondary" 3415 variant="secondary" 3416 @click=${()=>X.x.disconnect({namespace:e})} 3417 ?disabled=${!this.hasAnyConnections(e)} 3418 data-testid="disconnect-all-button" 3419 > 3420 Disconnect All 3421 </wui-link> 3422 </wui-flex> 3423 `}renderConnections(e){let t=this.hasAnyConnections(e);return(0,r.qy)` 3424 <wui-flex flexDirection="column" class=${(0,eZ.H)({"wallet-list":!0,"active-wallets-box":t,"empty-wallet-list-box":!t})} rowgap="3"> 3425 ${t?this.renderActiveConnections(e):this.renderEmptyState(e)} 3426 </wui-flex> 3427 `}renderActiveConnections(e){let t=this.getActiveConnections(e),i=this.activeConnectorIds[e],a=this.getPlainAddress();return(0,r.qy)` 3428 ${a||i||t.length>0?(0,r.qy)`<wui-flex 3429 flexDirection="column" 3430 .padding=${["4","0","4","0"]} 3431 class="active-wallets" 3432 > 3433 ${this.renderActiveProfile(e)} ${this.renderActiveConnectionsList(e)} 3434 </wui-flex>`:null} 3435 ${this.renderRecentConnections(e)} 3436 `}renderActiveProfile(e){let t=this.activeConnectorIds[e];if(!t)return null;let{connections:i}=ez.b.getConnectionsData(e),a=K.a.getConnectorById(t),n=c.$.getConnectorImage(a),o=this.getPlainAddress();if(!o)return null;let s=e===V.o.CHAIN.BITCOIN,l=eQ.getAuthData({connectorId:t,accounts:[]}),d=this.getActiveConnections(e).flatMap(e=>e.accounts).length>0,u=i.find(e=>e.connectorId===t),h=u?.accounts.filter(e=>!eX.y.isLowerCaseMatch(e.address,o));return(0,r.qy)` 3437 <wui-flex flexDirection="column" .padding=${["0","4","0","4"]}> 3438 <wui-active-profile-wallet-item 3439 address=${o} 3440 alt=${a?.name} 3441 .content=${this.getProfileContent({address:o,connections:i,connectorId:t,namespace:e})} 3442 .charsStart=${e2.ADDRESS_DISPLAY.START} 3443 .charsEnd=${e2.ADDRESS_DISPLAY.END} 3444 .icon=${l.icon} 3445 .iconSize=${l.iconSize} 3446 .iconBadge=${this.isSmartAccount(o)?e2.BADGE.ICON:void 0} 3447 .iconBadgeSize=${this.isSmartAccount(o)?e2.BADGE.SIZE:void 0} 3448 imageSrc=${n} 3449 ?enableMoreButton=${l.isAuth} 3450 @copy=${()=>this.handleCopyAddress(o)} 3451 @disconnect=${()=>this.handleDisconnect(e,t)} 3452 @switch=${()=>{s&&u&&h?.[0]&&this.handleSwitchWallet(u,h[0].address,e)}} 3453 @externalLink=${()=>this.handleExternalLink(o)} 3454 @more=${()=>this.handleMore()} 3455 data-testid="wui-active-profile-wallet-item" 3456 ></wui-active-profile-wallet-item> 3457 ${d?(0,r.qy)`<wui-separator></wui-separator>`:null} 3458 </wui-flex> 3459 `}renderActiveConnectionsList(e){let t=this.getActiveConnections(e);return 0===t.length?null:(0,r.qy)` 3460 <wui-flex flexDirection="column" .padding=${["0","2","0","2"]}> 3461 ${this.renderConnectionList(t,!1,e)} 3462 </wui-flex> 3463 `}renderRecentConnections(e){let{recentConnections:t}=ez.b.getConnectionsData(e);return 0===t.flatMap(e=>e.accounts).length?null:(0,r.qy)` 3464 <wui-flex flexDirection="column" .padding=${["0","2","0","2"]} rowGap="2"> 3465 <wui-text color="secondary" variant="sm-medium" data-testid="recently-connected-text" 3466 >RECENTLY CONNECTED</wui-text 3467 > 3468 <wui-flex flexDirection="column" .padding=${["0","2","0","2"]}> 3469 ${this.renderConnectionList(t,!0,e)} 3470 </wui-flex> 3471 </wui-flex> 3472 `}renderConnectionList(e,t,i){return e.filter(e=>e.accounts.length>0).map((e,a)=>{let n=K.a.getConnectorById(e.connectorId),o=c.$.getConnectorImage(n)??"",s=eQ.getAuthData(e);return e.accounts.map((n,l)=>{let c=this.isAccountLoading(e.connectorId,n.address);return(0,r.qy)` 3473 <wui-flex flexDirection="column"> 3474 ${0!==a||0!==l?(0,r.qy)`<wui-separator></wui-separator>`:null} 3475 <wui-inactive-profile-wallet-item 3476 address=${n.address} 3477 alt=${e.connectorId} 3478 buttonLabel=${t?"Connect":"Switch"} 3479 buttonVariant=${t?"neutral-secondary":"accent-secondary"} 3480 rightIcon=${t?"bin":"power"} 3481 rightIconSize="sm" 3482 class=${t?"recent-connection":"active-connection"} 3483 data-testid=${t?"recent-connection":"active-connection"} 3484 imageSrc=${o} 3485 .iconBadge=${this.isSmartAccount(n.address)?e2.BADGE.ICON:void 0} 3486 .iconBadgeSize=${this.isSmartAccount(n.address)?e2.BADGE.SIZE:void 0} 3487 .icon=${s.icon} 3488 .iconSize=${s.iconSize} 3489 .loading=${c} 3490 .showBalance=${!1} 3491 .charsStart=${e2.ADDRESS_DISPLAY.START} 3492 .charsEnd=${e2.ADDRESS_DISPLAY.END} 3493 @buttonClick=${()=>this.handleSwitchWallet(e,n.address,i)} 3494 @iconClick=${()=>this.handleWalletAction({connection:e,address:n.address,isRecentConnection:t,namespace:i})} 3495 ></wui-inactive-profile-wallet-item> 3496 </wui-flex> 3497 `})})}renderAddConnectionButton(e){if(!this.isMultiWalletEnabled()&&this.caipAddress||!this.hasAnyConnections(e))return null;let{title:t}=this.getChainLabelInfo(e);return(0,r.qy)` 3498 <wui-list-item 3499 variant="icon" 3500 iconVariant="overlay" 3501 icon="plus" 3502 iconSize="sm" 3503 ?chevron=${!0} 3504 @click=${()=>this.handleAddConnection(e)} 3505 data-testid="add-connection-button" 3506 > 3507 <wui-text variant="md-medium" color="secondary">${t}</wui-text> 3508 </wui-list-item> 3509 `}renderEmptyState(e){let{title:t,description:i}=this.getChainLabelInfo(e);return(0,r.qy)` 3510 <wui-flex alignItems="flex-start" class="empty-template" data-testid="empty-template"> 3511 <wui-flex 3512 flexDirection="column" 3513 alignItems="center" 3514 justifyContent="center" 3515 rowgap="3" 3516 class="empty-box" 3517 > 3518 <wui-icon-box size="xl" icon="wallet" color="secondary"></wui-icon-box> 3519 3520 <wui-flex flexDirection="column" alignItems="center" justifyContent="center" gap="1"> 3521 <wui-text color="primary" variant="lg-regular" data-testid="empty-state-text" 3522 >No wallet connected</wui-text 3523 > 3524 <wui-text color="secondary" variant="md-regular" data-testid="empty-state-description" 3525 >${i}</wui-text 3526 > 3527 </wui-flex> 3528 3529 <wui-link 3530 @click=${()=>this.handleAddConnection(e)} 3531 data-testid="empty-state-button" 3532 icon="plus" 3533 > 3534 ${t} 3535 </wui-link> 3536 </wui-flex> 3537 </wui-flex> 3538 `}handleTabChange(e){let t=this.namespaces[e];t&&(this.chainListener?.(),this.currentTab=this.namespaces.indexOf(t),this.namespace=t,this.caipAddress=s.W.getAccountData(t)?.caipAddress,this.profileName=s.W.getAccountData(t)?.profileName,this.chainListener=s.W.subscribeChainProp("accountState",e=>{this.caipAddress=e?.caipAddress},t))}async handleSwitchWallet(e,t,i){try{this.isSwitching=!0,this.lastSelectedConnectorId=e.connectorId,this.lastSelectedAddress=t,this.caipNetwork?.chainNamespace!==i&&e?.caipNetwork&&(K.a.setFilterByNamespace(i),await s.W.switchActiveNetwork(e?.caipNetwork)),await X.x.switchConnection({connection:e,address:t,namespace:i,closeModalOnConnect:!1,onChange({hasSwitchedAccount:e,hasSwitchedWallet:t}){t?J.P.showSuccess("Wallet switched"):e&&J.P.showSuccess("Account switched")}})}catch(e){J.P.showError("Failed to switch wallet")}finally{this.isSwitching=!1}}
3538handleWalletAction(e){let{connection:t,address:i,isRecentConnection:r,namespace:a}=e;r?(ei.i.deleteAddressFromConnection({connectorId:t.connectorId,address:i,namespace:a}),X.x.syncStorageConnections(),J.P.showSuccess("Wallet deleted")):this.handleDisconnect(a,t.connectorId)}async handleDisconnect(e,t){try{await X.x.disconnect({id:t,namespace:e}),J.P.showSuccess("Wallet disconnected")}catch{J.P.showError("Failed to disconnect wallet")}}handleCopyAddress(e){d.w.copyToClopboard(e),J.P.showSuccess("Address copied")}handleMore(){Y.I.push("AccountSettings")}handleExternalLink(e){let t=this.caipNetwork?.blockExplorers?.default.url;t&&d.w.openHref(`${t}/address/${e}`,"_blank")}handleAddConnection(e){K.a.setFilterByNamespace(e),Y.I.push("Connect",{addWalletForNamespace:e})}getChainLabelInfo(e){return e4[e]??{title:"Add Wallet",description:"Add your first wallet"}}isSmartAccount(e){if(!this.namespace)return!1;let t=this.user?.accounts?.find(e=>"smartAccount"===e.type);return!!t&&!!e&&eX.y.isLowerCaseMatch(t.address,e)}getPlainAddress(){return this.caipAddress?d.w.getPlainAddress(this.caipAddress):void 0}getActiveConnections(e){let t=this.activeConnectorIds[e],{connections:i}=ez.b.getConnectionsData(e),[r]=i.filter(e=>eX.y.isLowerCaseMatch(e.connectorId,t));if(!t)return i;let a=e===V.o.CHAIN.BITCOIN,{address:n}=this.caipAddress?eB.C.parseCaipAddress(this.caipAddress):{},o=[...n?[n]:[]];return a&&r&&(o=r.accounts.map(e=>e.address)||[]),ez.b.excludeConnectorAddressFromConnections({connectorId:t,addresses:o,connections:i})}hasAnyConnections(e){let t=this.getActiveConnections(e),{recentConnections:i}=ez.b.getConnectionsData(e);return!!this.caipAddress||t.length>0||i.length>0}isAccountLoading(e,t){return eX.y.isLowerCaseMatch(this.lastSelectedConnectorId,e)&&eX.y.isLowerCaseMatch(this.lastSelectedAddress,t)&&this.isSwitching}getProfileContent(e){let{address:t,connections:i,connectorId:r,namespace:a}=e,[n]=i.filter(e=>eX.y.isLowerCaseMatch(e.connectorId,r));if(a===V.o.CHAIN.BITCOIN&&n?.accounts.every(e=>"string"==typeof e.type))return this.getBitcoinProfileContent(n.accounts,t);let o=eQ.getAuthData({connectorId:r,accounts:[]});return[{address:t,tagLabel:"Active",tagVariant:"success",enableButton:!0,profileName:this.profileName,buttonType:"disconnect",buttonLabel:"Disconnect",buttonVariant:"neutral-secondary",...o.isAuth?{description:this.isSmartAccount(t)?"Smart Account":"EOA Account"}:{}}]}getBitcoinProfileContent(e,t){let i=e.length>1,r=this.getPlainAddress();return e.map(e=>{let a=eX.y.isLowerCaseMatch(e.address,r),n="PAYMENT";return"ordinal"===e.type&&(n="ORDINALS"),{address:e.address,tagLabel:eX.y.isLowerCaseMatch(e.address,t)?"Active":void 0,tagVariant:eX.y.isLowerCaseMatch(e.address,t)?"success":void 0,enableButton:!0,...i?{label:n,alignItems:"flex-end",buttonType:a?"disconnect":"switch",buttonLabel:a?"Disconnect":"Switch",buttonVariant:a?"neutral-secondary":"accent-secondary"}:{alignItems:"center",buttonType:"disconnect",buttonLabel:"Disconnect",buttonVariant:"neutral-secondary"}}})}removeScrollListener(){let e=this.shadowRoot?.querySelector(".wallet-list");e&&e.removeEventListener("scroll",()=>this.handleConnectListScroll())}handleConnectListScroll(){let e=this.shadowRoot?.querySelector(".wallet-list");e&&this.updateScrollOpacity(e)}isMultiWalletEnabled(){return!!this.remoteFeatures?.multiWallet}updateScrollOpacity(e){e.style.setProperty("--connect-scroll--top-opacity",h.z8.interpolate([0,e2.SCROLL_THRESHOLD],e2.OPACITY_RANGE,e.scrollTop).toString()),e.style.setProperty("--connect-scroll--bottom-opacity",h.z8.interpolate([0,e2.SCROLL_THRESHOLD],e2.OPACITY_RANGE,e.scrollHeight-e.scrollTop-e.offsetHeight).toString())}onConnectionsChange(){if(this.isMultiWalletEnabled()&&this.namespace){let{connections:e}=ez.b.getConnectionsData(this.namespace);0===e.length&&Y.I.reset("ProfileWallets")}this.requestUpdate()}};e6.styles=e0,e1([(0,a.wk)()],e6.prototype,"currentTab",void 0),e1([(0,a.wk)()],e6.prototype,"namespace",void 0),e1([(0,a.wk)()],e6.prototype,"namespaces",void 0),e1([(0,a.wk)()],e6.prototype,"caipAddress",void 0),e1([(0,a.wk)()],e6.prototype,"profileName",void 0),e1([(0,a.wk)()],e6.prototype,"activeConnectorIds",void 0),e1([(0,a.wk)()],e6.prototype,"lastSelectedAddress",void 0),e1([(0,a.wk)()],e6.prototype,"lastSelectedConnectorId",void 0),e1([(0,a.wk)()],e6.prototype,"isSwitching",void 0),e1([(0,a.wk)()],e6.prototype,"caipNetwork",void 0),e1([(0,a.wk)()],e6.prototype,"user",void 0),e1([(0,a.wk)()],e6.prototype,"remoteFeatures",void 0),e6=e1([(0,h.EM)("w3m-profile-wallets-view")],e6);var e9=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let e8=class extends r.WF{constructor(){super(),this.unsubscribe=[],this.activeCaipNetwork=s.W.state.activeCaipNetwork,this.features=o.H.state.features,this.remoteFeatures=o.H.state.remoteFeatures,this.exchangesLoading=es.g.state.isLoading,this.exchanges=es.g.state.exchanges,this.unsubscribe.push(o.H.subscribeKey("features",e=>this.features=e),o.H.subscribeKey("remoteFeatures",e=>this.remoteFeatures=e),s.W.subscribeKey("activeCaipNetwork",e=>{this.activeCaipNetwork=e,this.setDefaultPaymentAsset()}),es.g.subscribeKey("isLoading",e=>this.exchangesLoading=e),es.g.subscribeKey("exchanges",e=>this.exchanges=e))}
3538disconnectedCallback(){this.unsubscribe.forEach(e=>e())}async firstUpdated(){es.g.isPayWithExchangeSupported()&&(await this.setDefaultPaymentAsset(),await es.g.fetchExchanges())}render(){return(0,r.qy)` 3539 <wui-flex flexDirection="column" .padding=${["1","3","3","3"]} gap="2"> 3540 ${this.onrampTemplate()} ${this.receiveTemplate()} ${this.depositFromExchangeTemplate()} 3541 </wui-flex> 3542 `}async setDefaultPaymentAsset(){if(!this.activeCaipNetwork)return;let e=await es.g.getAssetsForNetwork(this.activeCaipNetwork.caipNetworkId),t=e.find(e=>"USDC"===e.metadata.symbol)||e[0];t&&es.g.setPaymentAsset(t)}onrampTemplate(){if(!this.activeCaipNetwork)return null;let e=this.remoteFeatures?.onramp,t=G.oU.ONRAMP_SUPPORTED_CHAIN_NAMESPACES.includes(this.activeCaipNetwork.chainNamespace);return e&&t?(0,r.qy)` 3543 <wui-list-item 3544 @click=${this.onBuyCrypto.bind(this)} 3545 icon="card" 3546 data-testid="wallet-features-onramp-button" 3547 > 3548 <wui-text variant="lg-regular" color="primary">Buy crypto</wui-text> 3549 </wui-list-item> 3550 `:null}depositFromExchangeTemplate(){return this.activeCaipNetwork&&es.g.isPayWithExchangeSupported()?(0,r.qy)` 3551 <wui-list-item 3552 @click=${this.onDepositFromExchange.bind(this)} 3553 icon="arrowBottomCircle" 3554 data-testid="wallet-features-deposit-from-exchange-button" 3555 ?loading=${this.exchangesLoading} 3556 ?disabled=${this.exchangesLoading||!this.exchanges.length} 3557 > 3558 <wui-text variant="lg-regular" color="primary">Deposit from exchange</wui-text> 3559 </wui-list-item> 3560 `:null}receiveTemplate(){return this.features?.receive?(0,r.qy)` 3561 <wui-list-item 3562 @click=${this.onReceive.bind(this)} 3563 icon="qrCode" 3564 data-testid="wallet-features-receive-button" 3565 > 3566 <wui-text variant="lg-regular" color="primary">Receive funds</wui-text> 3567 </wui-list-item> 3568 `:null}onBuyCrypto(){Y.I.push("OnRampProviders")}onReceive(){Y.I.push("WalletReceive")}onDepositFromExchange(){es.g.reset(),Y.I.push("PayWithExchange",{redirectView:Y.I.state.data?.redirectView})}};e9([(0,a.wk)()],e8.prototype,"activeCaipNetwork",void 0),e9([(0,a.wk)()],e8.prototype,"features",void 0),e9([(0,a.wk)()],e8.prototype,"remoteFeatures",void 0),e9([(0,a.wk)()],e8.prototype,"exchangesLoading",void 0),e9([(0,a.wk)()],e8.prototype,"exchanges",void 0),e8=e9([(0,h.EM)("w3m-fund-wallet-view")],e8);var e7=i(69137);let te=(0,f.AH)` 3569 :host { 3570 display: flex; 3571 align-items: center; 3572 justify-content: center; 3573 } 3574 3575 label { 3576 position: relative; 3577 display: inline-block; 3578 user-select: none; 3579 transition: 3580 background-color ${({durations:e})=>e.lg} 3581 ${({easings:e})=>e["ease-out-power-2"]}, 3582 color ${({durations:e})=>e.lg} ${({easings:e})=>e["ease-out-power-2"]}, 3583 border ${({durations:e})=>e.lg} ${({easings:e})=>e["ease-out-power-2"]}, 3584 box-shadow ${({durations:e})=>e.lg} 3585 ${({easings:e})=>e["ease-out-power-2"]}, 3586 width ${({durations:e})=>e.lg} ${({easings:e})=>e["ease-out-power-2"]}, 3587 height ${({durations:e})=>e.lg} ${({easings:e})=>e["ease-out-power-2"]}, 3588 transform ${({durations:e})=>e.lg} 3589 ${({easings:e})=>e["ease-out-power-2"]}, 3590 opacity ${({durations:e})=>e.lg} ${({easings:e})=>e["ease-out-power-2"]}; 3591 will-change: background-color, color, border, box-shadow, width, height, transform, opacity; 3592 } 3593 3594 input { 3595 width: 0; 3596 height: 0; 3597 opacity: 0; 3598 } 3599 3600 span { 3601 position: absolute; 3602 cursor: pointer; 3603 top: 0; 3604 left: 0; 3605 right: 0; 3606 bottom: 0; 3607 background-color: ${({colors:e})=>e.neutrals300}; 3608 border-radius: ${({borderRadius:e})=>e.round}; 3609 border: 1px solid transparent; 3610 will-change: border; 3611 transition: 3612 background-color ${({durations:e})=>e.lg} 3613 ${({easings:e})=>e["ease-out-power-2"]}, 3614 color ${({durations:e})=>e.lg} ${({easings:e})=>e["ease-out-power-2"]}, 3615 border ${({durations:e})=>e.lg} ${({easings:e})=>e["ease-out-power-2"]}, 3616 box-shadow ${({durations:e})=>e.lg} 3617 ${({easings:e})=>e["ease-out-power-2"]}, 3618 width ${({durations:e})=>e.lg} ${({easings:e})=>e["ease-out-power-2"]}, 3619 height ${({durations:e})=>e.lg} ${({easings:e})=>e["ease-out-power-2"]}, 3620 transform ${({durations:e})=>e.lg} 3621 ${({easings:e})=>e["ease-out-power-2"]}, 3622 opacity ${({durations:e})=>e.lg} ${({easings:e})=>e["ease-out-power-2"]}; 3623 will-change: background-color, color, border, box-shadow, width, height, transform, opacity; 3624 } 3625 3626 span:before { 3627 content: ''; 3628 position: absolute; 3629 background-color: ${({colors:e})=>e.white}; 3630 border-radius: 50%; 3631 } 3632 3633 /* -- Sizes --------------------------------------------------------- */ 3634 label[data-size='lg'] { 3635 width: 48px; 3636 height: 32px; 3637 } 3638 3639 label[data-size='md'] { 3640 width: 40px; 3641 height: 28px; 3642 } 3643 3644 label[data-size='sm'] { 3645 width: 32px; 3646 height: 22px; 3647 } 3648 3649 label[data-size='lg'] > span:before { 3650 height: 24px; 3651 width: 24px; 3652 left: 4px; 3653 top: 3px; 3654 } 3655 3656 label[data-size='md'] > span:before { 3657 height: 20px;
3658 width: 20px; 3659 left: 4px; 3660 top: 3px; 3661 } 3662 3663 label[data-size='sm'] > span:before { 3664 height: 16px; 3665 width: 16px; 3666 left: 3px; 3667 top: 2px; 3668 } 3669 3670 /* -- Focus states --------------------------------------------------- */ 3671 input:focus-visible:not(:checked) + span, 3672 input:focus:not(:checked) + span { 3673 border: 1px solid ${({tokens:e})=>e.core.iconAccentPrimary}; 3674 background-color: ${({tokens:e})=>e.theme.textTertiary}; 3675 box-shadow: 0px 0px 0px 4px rgba(9, 136, 240, 0.2); 3676 } 3677 3678 input:focus-visible:checked + span, 3679 input:focus:checked + span { 3680 border: 1px solid ${({tokens:e})=>e.core.iconAccentPrimary}; 3681 box-shadow: 0px 0px 0px 4px rgba(9, 136, 240, 0.2); 3682 } 3683 3684 /* -- Checked states --------------------------------------------------- */ 3685 input:checked + span { 3686 background-color: ${({tokens:e})=>e.core.iconAccentPrimary}; 3687 } 3688 3689 label[data-size='lg'] > input:checked + span:before { 3690 transform: translateX(calc(100% - 9px)); 3691 } 3692 3693 label[data-size='md'] > input:checked + span:before { 3694 transform: translateX(calc(100% - 9px)); 3695 } 3696 3697 label[data-size='sm'] > input:checked + span:before { 3698 transform: translateX(calc(100% - 7px)); 3699 } 3700 3701 /* -- Hover states ------------------------------------------------------- */ 3702 label:hover > input:not(:checked):not(:disabled) + span { 3703 background-color: ${({colors:e})=>e.neutrals400}; 3704 } 3705 3706 label:hover > input:checked:not(:disabled) + span { 3707 background-color: ${({colors:e})=>e.accent080}; 3708 } 3709 3710 /* -- Disabled state --------------------------------------------------- */ 3711 label:has(input:disabled) { 3712 pointer-events: none; 3713 user-select: none; 3714 } 3715 3716 input:not(:checked):disabled + span { 3717 background-color: ${({colors:e})=>e.neutrals700}; 3718 } 3719 3720 input:checked:disabled + span { 3721 background-color: ${({colors:e})=>e.neutrals700}; 3722 } 3723 3724 input:not(:checked):disabled + span::before { 3725 background-color: ${({colors:e})=>e.neutrals400}; 3726 } 3727 3728 input:checked:disabled + span::before { 3729 background-color: ${({tokens:e})=>e.theme.textTertiary}; 3730 } 3731`;var tt=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let ti=class extends r.WF{constructor(){super(...arguments),this.inputElementRef=(0,e7._)(),this.checked=!1,this.disabled=!1,this.size="md"}render(){return(0,r.qy)` 3732 <label data-size=${this.size}> 3733 <input 3734 ${(0,e7.K)(this.inputElementRef)} 3735 type="checkbox" 3736 ?checked=${this.checked} 3737 ?disabled=${this.disabled} 3738 @change=${this.dispatchChangeEvent.bind(this)} 3739 /> 3740 <span></span> 3741 </label> 3742 `}dispatchChangeEvent(){this.dispatchEvent(new CustomEvent("switchChange",{detail:this.inputElementRef.value?.checked,bubbles:!0,composed:!0}))}};ti.styles=[p.W5,p.fD,te],tt([(0,a.MZ)({type:Boolean})],ti.prototype,"checked",void 0),tt([(0,a.MZ)({type:Boolean})],ti.prototype,"disabled",void 0),tt([(0,a.MZ)()],ti.prototype,"size",void 0),ti=tt([(0,g.E)("wui-toggle")],ti);let tr=(0,f.AH)` 3743 :host { 3744 height: auto; 3745 } 3746 3747 :host > wui-flex { 3748 height: 100%; 3749 display: flex; 3750 align-items: center; 3751 justify-content: center; 3752 column-gap: ${({spacing:e})=>e["2"]}; 3753 padding: ${({spacing:e})=>e["2"]} ${({spacing:e})=>e["3"]}; 3754 background-color: ${({tokens:e})=>e.theme.foregroundPrimary}; 3755 border-radius: ${({borderRadius:e})=>e["4"]}; 3756 box-shadow: inset 0 0 0 1px ${({tokens:e})=>e.theme.foregroundPrimary}; 3757 transition: background-color ${({durations:e})=>e.lg} 3758 ${({easings:e})=>e["ease-out-power-2"]}; 3759 will-change: background-color; 3760 cursor: pointer; 3761 } 3762 3763 wui-switch { 3764 pointer-events: none; 3765 } 3766`;var ta=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let tn=class extends r.WF{constructor(){super(...arguments),this.checked=!1}
3766render(){return(0,r.qy)` 3767 <wui-flex> 3768 <wui-icon size="xl" name="walletConnectBrown"></wui-icon> 3769 <wui-toggle 3770 ?checked=${this.checked} 3771 size="sm" 3772 @switchChange=${this.handleToggleChange.bind(this)} 3773 ></wui-toggle> 3774 </wui-flex> 3775 `}handleToggleChange(e){e.stopPropagation(),this.checked=e.detail,this.dispatchSwitchEvent()}dispatchSwitchEvent(){this.dispatchEvent(new CustomEvent("certifiedSwitchChange",{detail:this.checked,bubbles:!0,composed:!0}))}};tn.styles=[p.W5,p.fD,tr],ta([(0,a.MZ)({type:Boolean})],tn.prototype,"checked",void 0),tn=ta([(0,g.E)("wui-certified-switch")],tn),i(61499);let to=(0,f.AH)` 3776 :host { 3777 position: relative; 3778 display: inline-block; 3779 width: 100%; 3780 } 3781 3782 wui-icon { 3783 position: absolute; 3784 top: 50%; 3785 transform: translateY(-50%); 3786 right: ${({spacing:e})=>e[3]}; 3787 color: ${({tokens:e})=>e.theme.iconDefault}; 3788 cursor: pointer; 3789 padding: ${({spacing:e})=>e[2]}; 3790 background-color: transparent; 3791 border-radius: ${({borderRadius:e})=>e[4]}; 3792 transition: background-color ${({durations:e})=>e.lg} 3793 ${({easings:e})=>e["ease-out-power-2"]}; 3794 } 3795 3796 @media (hover: hover) { 3797 wui-icon:hover { 3798 background-color: ${({tokens:e})=>e.theme.foregroundSecondary}; 3799 } 3800 } 3801`;var ts=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let tl=class extends r.WF{constructor(){super(...arguments),this.inputComponentRef=(0,e7._)(),this.inputValue=""}render(){return(0,r.qy)` 3802 <wui-input-text 3803 ${(0,e7.K)(this.inputComponentRef)} 3804 placeholder="Search wallet" 3805 icon="search" 3806 type="search" 3807 enterKeyHint="search" 3808 size="sm" 3809 @inputChange=${this.onInputChange} 3810 > 3811 ${this.inputValue?(0,r.qy)`<wui-icon 3812 @click=${this.clearValue} 3813 color="inherit" 3814 size="sm" 3815 name="close" 3816 ></wui-icon>`:null} 3817 </wui-input-text> 3818 `}onInputChange(e){this.inputValue=e.detail||""}clearValue(){let e=this.inputComponentRef.value,t=e?.inputElementRef.value;t&&(t.value="",this.inputValue="",t.focus(),t.dispatchEvent(new Event("input")))}};tl.styles=[p.W5,to],ts([(0,a.MZ)()],tl.prototype,"inputValue",void 0),tl=ts([(0,g.E)("wui-search-bar")],tl);var tc=i(81241),td=i(94910),tu=i(11906);i(7368);let th=(0,f.AH)` 3819 :host { 3820 display: flex; 3821 flex-direction: column; 3822 justify-content: center; 3823 align-items: center; 3824 height: 104px; 3825 width: 104px; 3826 row-gap: ${({spacing:e})=>e[2]}; 3827 background-color: ${({tokens:e})=>e.theme.foregroundPrimary}; 3828 border-radius: ${({borderRadius:e})=>e[5]}; 3829 position: relative; 3830 } 3831 3832 wui-shimmer[data-type='network'] { 3833 border: none; 3834 -webkit-clip-path: var(--apkt-path-network); 3835 clip-path: var(--apkt-path-network); 3836 } 3837 3838 svg { 3839 position: absolute; 3840 width: 48px; 3841 height: 54px; 3842 z-index: 1; 3843 } 3844 3845 svg > path { 3846 stroke: ${({tokens:e})=>e.theme.foregroundSecondary}; 3847 stroke-width: 1px; 3848 } 3849 3850 @media (max-width: 350px) { 3851 :host { 3852 width: 100%; 3853 } 3854 } 3855`;var tp=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let tm=class extends r.WF{constructor(){super(...arguments),this.type="wallet"}render(){return(0,r.qy)` 3856 ${this.shimmerTemplate()} 3857 <wui-shimmer width="80px" height="20px"></wui-shimmer> 3858 `}shimmerTemplate(){return"network"===this.type?(0,r.qy)` <wui-shimmer data-type=${this.type} width="48px" height="54px"></wui-shimmer> 3859 ${tu.a}`:(0,r.qy)`<wui-shimmer width="56px" height="56px"></wui-shimmer>`}};tm.styles=[p.W5,p.fD,th],tp([(0,a.MZ)()],tm.prototype,"type",void 0),tm=tp([(0,g.E)("wui-card-select-loader")],tm);let tg=(0,r.AH)` 3860 :host { 3861 display: grid; 3862 width: inherit; 3863 height: inherit; 3864 } 3865`;var tf=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let tw=class extends r.WF{render(){return this.style.cssText=` 3866 grid-template-rows: ${this.gridTemplateRows}; 3867 grid-template-columns: ${this.gridTemplateColumns}; 3868 justify-items: ${this.justifyItems}; 3869 align-items: ${this.alignItems}; 3870 justify-content: ${this.justifyContent}; 3871 align-content: ${this.alignContent}; 3872 column-gap: ${this.columnGap&&`var(--apkt-spacing-${this.columnGap})`}; 3873 row-gap: ${this.rowGap&&`var(--apkt-spacing-${this.rowGap})`}; 3874 gap: ${this.gap&&`var(--apkt-spacing-${this.gap})`}; 3875 padding-top: ${this.padding&&m.Z.getSpacingStyles(this.padding,0)}; 3876 padding-right: ${this.padding&&m.Z.getSpacingStyles(this.padding,1)}; 3877 padding-bottom: ${this.padding&&m.Z.getSpacingStyles(this.padding,2)}; 3878 padding-left: ${this.padding&&m.Z.getSpacingStyles(this.padding,3)}; 3879 margin-top: ${this.margin&&m.Z.getSpacingStyles(this.margin,
38790)}; 3880 margin-right: ${this.margin&&m.Z.getSpacingStyles(this.margin,1)}; 3881 margin-bottom: ${this.margin&&m.Z.getSpacingStyles(this.margin,2)}; 3882 margin-left: ${this.margin&&m.Z.getSpacingStyles(this.margin,3)}; 3883 `,(0,r.qy)`<slot></slot>`}};tw.styles=[p.W5,tg],tf([(0,a.MZ)()],tw.prototype,"gridTemplateRows",void 0),tf([(0,a.MZ)()],tw.prototype,"gridTemplateColumns",void 0),tf([(0,a.MZ)()],tw.prototype,"justifyItems",void 0),tf([(0,a.MZ)()],tw.prototype,"alignItems",void 0),tf([(0,a.MZ)()],tw.prototype,"justifyContent",void 0),tf([(0,a.MZ)()],tw.prototype,"alignContent",void 0),tf([(0,a.MZ)()],tw.prototype,"columnGap",void 0),tf([(0,a.MZ)()],tw.prototype,"rowGap",void 0),tf([(0,a.MZ)()],tw.prototype,"gap",void 0),tf([(0,a.MZ)()],tw.prototype,"padding",void 0),tf([(0,a.MZ)()],tw.prototype,"margin",void 0),tw=tf([(0,g.E)("wui-grid")],tw),i(2198),i(63322);let ty=(0,h.AH)` 3884 button { 3885 display: flex; 3886 flex-direction: column; 3887 justify-content: center; 3888 align-items: center; 3889 cursor: pointer; 3890 width: 104px; 3891 row-gap: ${({spacing:e})=>e["2"]}; 3892 padding: ${({spacing:e})=>e["3"]} ${({spacing:e})=>e["0"]}; 3893 background-color: ${({tokens:e})=>e.theme.foregroundPrimary}; 3894 border-radius: clamp(0px, ${({borderRadius:e})=>e["4"]}, 20px); 3895 transition: 3896 color ${({durations:e})=>e.lg} ${({easings:e})=>e["ease-out-power-1"]}, 3897 background-color ${({durations:e})=>e.lg} 3898 ${({easings:e})=>e["ease-out-power-1"]}, 3899 border-radius ${({durations:e})=>e.lg} 3900 ${({easings:e})=>e["ease-out-power-1"]}; 3901 will-change: background-color, color, border-radius; 3902 outline: none; 3903 border: none; 3904 } 3905 3906 button > wui-flex > wui-text { 3907 color: ${({tokens:e})=>e.theme.textPrimary}; 3908 max-width: 86px; 3909 white-space: nowrap; 3910 overflow: hidden; 3911 text-overflow: ellipsis; 3912 justify-content: center; 3913 } 3914 3915 button > wui-flex > wui-text.certified { 3916 max-width: 66px; 3917 } 3918 3919 @media (hover: hover) and (pointer: fine) { 3920 button:hover:enabled { 3921 background-color: ${({tokens:e})=>e.theme.foregroundSecondary}; 3922 } 3923 } 3924 3925 button:disabled > wui-flex > wui-text { 3926 color: ${({tokens:e})=>e.core.glass010}; 3927 } 3928 3929 [data-selected='true'] { 3930 background-color: ${({colors:e})=>e.accent020}; 3931 } 3932 3933 @media (hover: hover) and (pointer: fine) { 3934 [data-selected='true']:hover:enabled { 3935 background-color: ${({colors:e})=>e.accent010}; 3936 } 3937 } 3938 3939 [data-selected='true']:active:enabled { 3940 background-color: ${({colors:e})=>e.accent010}; 3941 } 3942 3943 @media (max-width: 350px) { 3944 button { 3945 width: 100%; 3946 } 3947 } 3948`;var tb=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let tv=class extends r.WF{constructor(){super(),this.observer=new IntersectionObserver(()=>void 0),this.visible=!1,this.imageSrc=void 0,this.imageLoading=!1,this.isImpressed=!1,this.explorerId="",this.walletQuery="",this.certified=!1,this.displayIndex=0,this.wallet=void 0,this.observer=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting?(this.visible=!0,this.fetchImageSrc(),this.sendImpressionEvent()):this.visible=!1})},{threshold:.01})}firstUpdated(){this.observer.observe(this)}disconnectedCallback(){this.observer.disconnect()}render(){let e=this.wallet?.badge_type==="certified";return(0,r.qy)` 3949 <button> 3950 ${this.imageTemplate()} 3951 <wui-flex flexDirection="row" alignItems="center" justifyContent="center" gap="1"> 3952 <wui-text 3953 variant="md-regular" 3954 color="inherit" 3955 class=${(0,n.J)(e?"certified":void 0)} 3956 >${this.wallet?.name}</wui-text 3957 > 3958 ${e?(0,r.qy)`<wui-icon size="sm" name="walletConnectBrown"></wui-icon>`:null} 3959 </wui-flex> 3960 </button> 3961 `}imageTemplate(){return(this.visible||this.imageSrc)&&!this.imageLoading?(0,r.qy)` 3962 <wui-wallet-image 3963 size="lg" 3964 imageSrc=${(0,n.J)(this.imageSrc)}
3965 name=${(0,n.J)(this.wallet?.name)} 3966 .installed=${this.wallet?.installed??!1} 3967 badgeSize="sm" 3968 > 3969 </wui-wallet-image> 3970 `:this.shimmerTemplate()}shimmerTemplate(){return(0,r.qy)`<wui-shimmer width="56px" height="56px"></wui-shimmer>`}async fetchImageSrc(){this.wallet&&(this.imageSrc=c.$.getWalletImage(this.wallet),this.imageSrc||(this.imageLoading=!0,this.imageSrc=await c.$.fetchWalletImage(this.wallet.image_id),this.imageLoading=!1))}sendImpressionEvent(){this.wallet&&!this.isImpressed&&(this.isImpressed=!0,W.E.sendWalletImpressionEvent({name:this.wallet.name,walletRank:this.wallet.order,explorerId:this.explorerId,view:Y.I.state.view,query:this.walletQuery,certified:this.certified,displayIndex:this.displayIndex}))}};tv.styles=ty,tb([(0,a.wk)()],tv.prototype,"visible",void 0),tb([(0,a.wk)()],tv.prototype,"imageSrc",void 0),tb([(0,a.wk)()],tv.prototype,"imageLoading",void 0),tb([(0,a.wk)()],tv.prototype,"isImpressed",void 0),tb([(0,a.MZ)()],tv.prototype,"explorerId",void 0),tb([(0,a.MZ)()],tv.prototype,"walletQuery",void 0),tb([(0,a.MZ)()],tv.prototype,"certified",void 0),tb([(0,a.MZ)()],tv.prototype,"displayIndex",void 0),tb([(0,a.MZ)({type:Object})],tv.prototype,"wallet",void 0),tv=tb([(0,h.EM)("w3m-all-wallets-list-item")],tv);let tC=(0,h.AH)` 3971 wui-grid { 3972 max-height: clamp(360px, 400px, 80vh); 3973 overflow: scroll; 3974 scrollbar-width: none; 3975 grid-auto-rows: min-content; 3976 grid-template-columns: repeat(auto-fill, 104px); 3977 } 3978 3979 :host([data-mobile-fullscreen='true']) wui-grid { 3980 max-height: none; 3981 } 3982 3983 @media (max-width: 350px) { 3984 wui-grid { 3985 grid-template-columns: repeat(2, 1fr); 3986 } 3987 } 3988 3989 wui-grid[data-scroll='false'] { 3990 overflow: hidden; 3991 } 3992 3993 wui-grid::-webkit-scrollbar {
3994 display: none; 3995 } 3996 3997 w3m-all-wallets-list-item { 3998 opacity: 0; 3999 animation-duration: ${({durations:e})=>e.xl}; 4000 animation-timing-function: ${({easings:e})=>e["ease-inout-power-2"]}; 4001 animation-name: fade-in; 4002 animation-fill-mode: forwards; 4003 } 4004 4005 @keyframes fade-in { 4006 from { 4007 opacity: 0; 4008 } 4009 to { 4010 opacity: 1; 4011 } 4012 } 4013 4014 wui-loading-spinner { 4015 padding-top: ${({spacing:e})=>e["4"]}; 4016 padding-bottom: ${({spacing:e})=>e["4"]}; 4017 justify-content: center; 4018 grid-column: 1 / span 4; 4019 } 4020`;var tx=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let tE="local-paginator",tk=class extends r.WF{constructor(){super(),this.unsubscribe=[],this.paginationObserver=void 0,this.loading=!tc.N.state.wallets.length,this.wallets=tc.N.state.wallets,this.mobileFullScreen=o.H.state.enableMobileFullScreen,this.unsubscribe.push(tc.N.subscribeKey("wallets",e=>this.wallets=e))}firstUpdated(){this.initialFetch(),this.createPaginationObserver()}disconnectedCallback(){this.unsubscribe.forEach(e=>e()),this.paginationObserver?.disconnect()}render(){return this.mobileFullScreen&&this.setAttribute("data-mobile-fullscreen","true"),(0,r.qy)` 4021 <wui-grid 4022 data-scroll=${!this.loading} 4023 .padding=${["0","3","3","3"]} 4024 gap="2" 4025 justifyContent="space-between" 4026 > 4027 ${this.loading?this.shimmerTemplate(16):this.walletsTemplate()} 4028 ${this.paginationLoaderTemplate()} 4029 </wui-grid> 4030 `}async initialFetch(){this.loading=!0;let e=this.shadowRoot?.querySelector("wui-grid");e&&(await tc.N.fetchWalletsByPage({page:1}),await e.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.loading=!1,e.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}shimmerTemplate(e,t){return[...Array(e)].map(()=>(0,r.qy)` 4031 <wui-card-select-loader type="wallet" id=${(0,n.J)(t)}></wui-card-select-loader> 4032 `)}walletsTemplate(){return td.A.getWalletConnectWallets(this.wallets).map((e,t)=>(0,r.qy)` 4033 <w3m-all-wallets-list-item 4034 data-testid="wallet-search-item-${e.id}" 4035 @click=${()=>this.onConnectWallet(e)} 4036 .wallet=${e} 4037 explorerId=${e.id} 4038 certified=${"certified"===this.badge} 4039 displayIndex=${t} 4040 ></w3m-all-wallets-list-item> 4041 `)}paginationLoaderTemplate(){let{wallets:e,recommended:t,featured:i,count:r,mobileFilteredOutWalletsLength:a}=tc.N.state,n=window.innerWidth<352?3:4,o=e.length+t.length,s=Math.ceil(o/n)*n-o+n;return(s-=e.length?i.length%n:0,0===r&&i.length>0)?null:0===r||[...i,...e,...t].length<r-(a??0)?this.shimmerTemplate(s,tE):null}createPaginationObserver(){let e=this.shadowRoot?.querySelector(`#${tE}`);e&&(this.paginationObserver=new IntersectionObserver(([e])=>{if(e?.isIntersecting&&!this.loading){let{page:e,count:t,wallets:i}=tc.N.state;i.length<t&&tc.N.fetchWalletsByPage({page:e+1})}}),this.paginationObserver.observe(e))}onConnectWallet(e){K.a.selectWalletConnector(e)}};tk.styles=tC,tx([(0,a.wk)()],tk.prototype,"loading",void 0),tx([(0,a.wk)()],tk.prototype,"wallets",void 0),tx([(0,a.wk)()],tk.prototype,"badge",void 0),tx([(0,a.wk)()],tk.prototype,"mobileFullScreen",void 0),tk=tx([(0,h.EM)("w3m-all-wallets-list")],tk),i(34641);let tA=(0,r.AH)` 4042 wui-grid, 4043 wui-loading-spinner, 4044 wui-flex { 4045 height: 360px; 4046 } 4047 4048 wui-grid { 4049 overflow: scroll; 4050 scrollbar-width: none; 4051 grid-auto-rows: min-content; 4052 grid-template-columns: repeat(auto-fill, 104px); 4053 } 4054 4055 :host([data-mobile-fullscreen='true']) wui-grid { 4056 max-height: none; 4057 height: auto; 4058 } 4059 4060 wui-grid[data-scroll='false'] { 4061 overflow: hidden; 4062 } 4063 4064 wui-grid::-webkit-scrollbar {
4065 display: none; 4066 } 4067 4068 wui-loading-spinner { 4069 justify-content: center; 4070 align-items: center; 4071 } 4072 4073 @media (max-width: 350px) { 4074 wui-grid { 4075 grid-template-columns: repeat(2, 1fr); 4076 } 4077 } 4078`;var t$=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let t_=class extends r.WF{constructor(){super(...arguments),this.prevQuery="",this.prevBadge=void 0,this.loading=!0,this.mobileFullScreen=o.H.state.enableMobileFullScreen,this.query=""}render(){return this.mobileFullScreen&&this.setAttribute("data-mobile-fullscreen","true"),this.onSearch(),this.loading?(0,r.qy)`<wui-loading-spinner color="accent-primary"></wui-loading-spinner>`:this.walletsTemplate()}async onSearch(){(this.query.trim()!==this.prevQuery.trim()||this.badge!==this.prevBadge)&&(this.prevQuery=this.query,this.prevBadge=this.badge,this.loading=!0,await tc.N.searchWallet({search:this.query,badge:this.badge}),this.loading=!1)}walletsTemplate(){let{search:e}=tc.N.state,t=td.A.markWalletsAsInstalled(e),i=td.A.filterWalletsByWcSupport(t);return i.length?(0,r.qy)` 4079 <wui-grid 4080 data-testid="wallet-list" 4081 .padding=${["0","3","3","3"]} 4082 rowGap="4" 4083 columngap="2" 4084 justifyContent="space-between" 4085 > 4086 ${i.map((e,t)=>(0,r.qy)` 4087 <w3m-all-wallets-list-item 4088 @click=${()=>this.onConnectWallet(e)} 4089 .wallet=${e} 4090 data-testid="wallet-search-item-${e.id}" 4091 explorerId=${e.id} 4092 certified=${"certified"===this.badge} 4093 walletQuery=${this.query} 4094 displayIndex=${t} 4095 ></w3m-all-wallets-list-item> 4096 `)} 4097 </wui-grid> 4098 `:(0,r.qy)` 4099 <wui-flex 4100 data-testid="no-wallet-found" 4101 justifyContent="center" 4102 alignItems="center" 4103 gap="3" 4104 flexDirection="column" 4105 > 4106 <wui-icon-box size="lg" color="default" icon="wallet"></wui-icon-box> 4107 <wui-text data-testid="no-wallet-found-text" color="secondary" variant="md-medium"> 4108 No Wallet found 4109 </wui-text> 4110 </wui-flex> 4111 `}onConnectWallet(e){K.a.selectWalletConnector(e)}};t_.styles=tA,t$([(0,a.wk)()],t_.prototype,"loading",void 0),t$([(0,a.wk)()],t_.prototype,"mobileFullScreen",void 0),t$([(0,a.MZ)()],t_.prototype,"query",void 0),t$([(0,a.MZ)()],t_.prototype,"badge",void 0),t_=t$([(0,h.EM)("w3m-all-wallets-search")],t_);var tN=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let tS=class extends r.WF{constructor(){super(...arguments),this.search="",this.badge=void 0,this.onDebouncedSearch=d.w.debounce(e=>{this.search=e})}render(){let e=this.search.length>=2;return(0,r.qy)` 4112 <wui-flex .padding=${["1","3","3","3"]} gap="2" alignItems="center"> 4113 <wui-search-bar @inputChange=${this.onInputChange.bind(this)}></wui-search-bar> 4114 <wui-certified-switch 4115 ?checked=${"certified"===this.badge} 4116 @certifiedSwitchChange=${this.onCertifiedSwitchChange.bind(this)} 4117 data-testid="wui-certified-switch" 4118 ></wui-certified-switch> 4119 ${this.qrButtonTemplate()} 4120 </wui-flex> 4121 ${e||this.badge?(0,r.qy)`<w3m-all-wallets-search 4122 query=${this.search} 4123 .badge=${this.badge} 4124 ></w3m-all-wallets-search>`:(0,r.qy)`<w3m-all-wallets-list .badge=${this.badge}></w3m-all-wallets-list>`} 4125 `}onInputChange(e){this.onDebouncedSearch(e.detail)}onCertifiedSwitchChange(e){e.detail?(this.badge="certified",J.P.showSvg("Only WalletConnect certified",{icon:"walletConnectBrown",iconColor:"accent-100"})):this.badge=void 0}qrButtonTemplate(){return d.w.isMobile()?(0,r.qy)` 4126 <wui-icon-box 4127 size="xl" 4128 iconSize="xl" 4129 color="accent-primary" 4130 icon="qrCode" 4131 border 4132 borderColor="wui-accent-glass-010" 4133 @click=${this.onWalletConnectQr.bind(this)} 4134 ></wui-icon-box> 4135 `:null}onWalletConnectQr(){Y.I.push("ConnectingWalletConnect")}};tN([(0,a.wk)()],tS.prototype,"search",void 0),tN([(0,a.wk)()],tS.prototype,"badge",void 0),tS=tN([(0,h.EM)("w3m-all-wallets-view")],tS);var tT=i(81208),tR=i(87352);let tI=(0,f.AH)` 4136 button { 4137 display: flex; 4138 gap: ${({spacing:e})=>e[1]}; 4139 padding: ${({spacing:e})=>e[4]}; 4140 width: 100%; 4141 background-color: ${({tokens:e})=>e.theme.foregroundPrimary}; 4142 border-radius: ${({borderRadius:e})=>e[4]}; 4143 justify-content: center;
4144 align-items: center; 4145 } 4146 4147 :host([data-size='sm']) button { 4148 padding: ${({spacing:e})=>e[2]}; 4149 border-radius: ${({borderRadius:e})=>e[2]}; 4150 } 4151 4152 :host([data-size='md']) button { 4153 padding: ${({spacing:e})=>e[3]}; 4154 border-radius: ${({borderRadius:e})=>e[3]}; 4155 } 4156 4157 button:hover { 4158 background-color: ${({tokens:e})=>e.theme.foregroundSecondary}; 4159 } 4160 4161 button:disabled { 4162 opacity: 0.5; 4163 } 4164`;var tP=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let tO=class extends r.WF{constructor(){super(...arguments),this.text="",this.disabled=!1,this.size="lg",this.icon="copy",this.tabIdx=void 0}render(){this.dataset.size=this.size;let e=`${this.size}-regular`;return(0,r.qy)` 4165 <button ?disabled=${this.disabled} tabindex=${(0,n.J)(this.tabIdx)}> 4166 <wui-icon name=${this.icon} size=${this.size} color="default"></wui-icon> 4167 <wui-text align="center" variant=${e} color="primary">${this.text}</wui-text> 4168 </button> 4169 `}};tO.styles=[p.W5,p.fD,tI],tP([(0,a.MZ)()],tO.prototype,"text",void 0),tP([(0,a.MZ)({type:Boolean})],tO.prototype,"disabled",void 0),tP([(0,a.MZ)()],tO.prototype,"size",void 0),tP([(0,a.MZ)()],tO.prototype,"icon",void 0),tP([(0,a.MZ)()],tO.prototype,"tabIdx",void 0),tO=tP([(0,g.E)("wui-list-button")],tO),i(71379);var tM=i(22522),tW=i(44343);i(92901);var tL=i(25921);let tD=(0,h.AH)` 4170 wui-separator { 4171 margin: ${({spacing:e})=>e["3"]} calc(${({spacing:e})=>e["3"]} * -1); 4172 width: calc(100% + ${({spacing:e})=>e["3"]} * 2); 4173 } 4174 4175 wui-email-input { 4176 width: 100%; 4177 } 4178 4179 form { 4180 width: 100%; 4181 display: block; 4182 position: relative; 4183 } 4184 4185 wui-icon-link, 4186 wui-loading-spinner { 4187 position: absolute; 4188 top: 50%; 4189 transform: translateY(-50%); 4190 } 4191 4192 wui-icon-link { 4193 right: ${({spacing:e})=>e["2"]}; 4194 } 4195 4196 wui-loading-spinner { 4197 right: ${({spacing:e})=>e["3"]}; 4198 } 4199 4200 wui-text { 4201 margin: ${({spacing:e})=>e["2"]} ${({spacing:e})=>e["3"]} 4202 ${({spacing:e})=>e["0"]} ${({spacing:e})=>e["3"]}; 4203 } 4204`;var tU=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let tF=class extends r.WF{constructor(){super(),this.unsubscribe=[],this.formRef=(0,e7._)(),this.email="",this.loading=!1,this.error="",this.remoteFeatures=o.H.state.remoteFeatures,this.hasExceededUsageLimit=tc.N.state.plan.hasExceededUsageLimit,this.unsubscribe.push(o.H.subscribeKey("remoteFeatures",e=>{this.remoteFeatures=e}),tc.N.subscribeKey("plan",e=>this.hasExceededUsageLimit=e.hasExceededUsageLimit))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}firstUpdated(){this.formRef.value?.addEventListener("keydown",e=>{"Enter"===e.key&&this.onSubmitEmail(e)})}render(){let e=X.x.hasAnyConnection(V.o.CONNECTOR_ID.AUTH);return(0,r.qy)` 4205 <form ${(0,e7.K)(this.formRef)} @submit=${this.onSubmitEmail.bind(this)}> 4206 <wui-email-input 4207 @focus=${this.onFocusEvent.bind(this)} 4208 .disabled=${this.loading} 4209 @inputChange=${this.onEmailInputChange.bind(this)} 4210 tabIdx=${(0,n.J)(this.tabIdx)} 4211 ?disabled=${e||this.hasExceededUsageLimit} 4212 > 4213 </wui-email-input> 4214 4215 ${this.submitButtonTemplate()}${this.loadingTemplate()} 4216 <input type="submit" hidden /> 4217 </form> 4218 ${this.templateError()} 4219 `}submitButtonTemplate(){return!this.loading&&this.email.length>3?(0,r.qy)` 4220 <wui-icon-link 4221 size="lg" 4222 icon="chevronRight" 4223 iconcolor="accent-100" 4224 @click=${this.onSubmitEmail.bind(this)} 4225 > 4226 </wui-icon-link> 4227 `:null}loadingTemplate(){return this.loading?(0,r.qy)`<wui-loading-spinner size="md" color="accent-primary"></wui-loading-spinner>`:null}templateError(){return this.error?(0,r.qy)`<wui-text variant="sm-medium" color="error">${this.error}</wui-text>`:null}onEmailInputChange(e){this.email=e.detail.trim(),this.error=""}async onSubmitEmail(e){if(!eS.y.isValidEmail(this.email))return void tW.h.open({displayMessage:tL.R.ALERT_WARNINGS.INVALID_EMAIL.displayMessage},"warning");if(!V.o.AUTH_CONNECTOR_SUPPORTED_CHAINS.find(e=>e===s.W.state.activeChain)){let e=s.W.getFirstCaipNetworkSupportsAuthConnector();if(e)return void Y.I.push("SwitchNetwork",{network:e})}try{if(this.loading)return;this.loading=!0,e.preventDefault();let t=K.a.getAuthConnector();if(!t)throw Error("w3m-email-login-widget: Auth connector not found");let{action:i}=await t.provider.connectEmail({email:this.email});if(W.E.sendEvent({type:"track",event:"EMAIL_SUBMITTED"}),"VERIFY_OTP"===i)W.E.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_SENT"}),Y.I.push("EmailVerifyOtp",{email:this.email});
4227else if("VERIFY_DEVICE"===i)Y.I.push("EmailVerifyDevice",{email:this.email});else if("CONNECT"===i){let e=this.remoteFeatures?.multiWallet;await X.x.connectExternal(t,s.W.state.activeChain),e?(Y.I.replace("ProfileWallets"),J.P.showSuccess("New Wallet Added")):Y.I.replace("Account")}}catch(t){let e=d.w.parseError(t);e?.includes("Invalid email")?this.error="Invalid email. Try again.":J.P.showError(t)}finally{this.loading=!1}}onFocusEvent(){W.E.sendEvent({type:"track",event:"EMAIL_LOGIN_SELECTED"})}};tF.styles=tD,tU([(0,a.MZ)()],tF.prototype,"tabIdx",void 0),tU([(0,a.wk)()],tF.prototype,"email",void 0),tU([(0,a.wk)()],tF.prototype,"loading",void 0),tU([(0,a.wk)()],tF.prototype,"error",void 0),tU([(0,a.wk)()],tF.prototype,"remoteFeatures",void 0),tU([(0,a.wk)()],tF.prototype,"hasExceededUsageLimit",void 0),tF=tU([(0,h.EM)("w3m-email-login-widget")],tF),i(32971);var tH=i(82165);i(35629),i(4438);let tj=(0,f.AH)` 4228 :host { 4229 display: block; 4230 width: 100%; 4231 } 4232 4233 button { 4234 width: 100%; 4235 height: 52px; 4236 display: flex; 4237 align-items: center; 4238 justify-content: center; 4239 background: ${({tokens:e})=>e.theme.foregroundPrimary}; 4240 border-radius: ${({borderRadius:e})=>e[4]}; 4241 } 4242 4243 @media (hover: hover) { 4244 button:hover:enabled { 4245 background: ${({tokens:e})=>e.theme.foregroundSecondary}; 4246 } 4247 } 4248 4249 button:disabled { 4250 cursor: not-allowed; 4251 opacity: 0.5; 4252 } 4253`;var tZ=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let tB=class extends r.WF{constructor(){super(...arguments),this.logo="google",this.disabled=!1,this.tabIdx=void 0}render(){return(0,r.qy)` 4254 <button ?disabled=${this.disabled} tabindex=${(0,n.J)(this.tabIdx)}> 4255 <wui-icon size="xxl" name=${this.logo}></wui-icon> 4256 </button> 4257 `}};tB.styles=[p.W5,p.fD,tj],tZ([(0,a.MZ)()],tB.prototype,"logo",void 0),tZ([(0,a.MZ)({type:Boolean})],tB.prototype,"disabled",void 0),tZ([(0,a.MZ)()],tB.prototype,"tabIdx",void 0),tB=tZ([(0,g.E)("wui-logo-select")],tB);var tz=i(37909);let tq=(0,h.AH)` 4258 wui-separator { 4259 margin: ${({spacing:e})=>e["3"]} calc(${({spacing:e})=>e["3"]} * -1) 4260 ${({spacing:e})=>e["3"]} calc(${({spacing:e})=>e["3"]} * -1); 4261 width: calc(100% + ${({spacing:e})=>e["3"]} * 2); 4262 } 4263`;var tV=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let tK=class extends r.WF{constructor(){super(),this.unsubscribe=[],this.walletGuide="get-started",this.tabIdx=void 0,this.connectors=K.a.state.connectors,this.remoteFeatures=o.H.state.remoteFeatures,this.authConnector=this.connectors.find(e=>"AUTH"===e.type),this.isPwaLoading=!1,this.hasExceededUsageLimit=tc.N.state.plan.hasExceededUsageLimit,this.unsubscribe.push(K.a.subscribeKey("connectors",e=>{this.connectors=e,this.authConnector=this.connectors.find(e=>"AUTH"===e.type)}),o.H.subscribeKey("remoteFeatures",e=>this.remoteFeatures=e),tc.N.subscribeKey("plan",e=>this.hasExceededUsageLimit=e.hasExceededUsageLimit))}connectedCallback(){super.connectedCallback(),this.handlePwaFrameLoad()}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,r.qy)` 4264 <wui-flex 4265 class="container" 4266 flexDirection="column" 4267 gap="2" 4268 data-testid="w3m-social-login-widget" 4269 > 4270 ${this.topViewTemplate()}${this.bottomViewTemplate()} 4271 </wui-flex> 4272 `}topViewTemplate(){let e="explore"===this.walletGuide,t=this.remoteFeatures?.socials;return!t&&e?(t=G.oU.DEFAULT_SOCIALS,this.renderTopViewContent(t)):t?this.renderTopViewContent(t):null}renderTopViewContent(e){return 2===e.length?(0,r.qy)` <wui-flex gap="2"> 4273 ${e.slice(0,2).map(e=>(0,r.qy)`<wui-logo-select 4274 data-testid=${`social-selector-${e}`} 4275 @click=${()=>{this.onSocialClick(e)}} 4276 logo=${e} 4277 tabIdx=${(0,n.J)(this.tabIdx)} 4278 ?disabled=${this.isPwaLoading||this.hasConnection()} 4279 ></wui-logo-select>`)} 4280 </wui-flex>`:(0,r.qy)` <wui-list-button 4281 data-testid=${`social-selector-${e[0]}`} 4282 @click=${()=>{this.onSocialClick(e[0])}} 4283 size="lg" 4284 icon=${(0,n.J)(e[0])} 4285 text=${`Continue with ${h.Zv.capitalize(e[0])}`} 4286 tabIdx=${(0,n.J)(this.tabIdx)} 4287 ?disabled=${this.isPwaLoading||this.hasConnection()} 4288 ></wui-list-button>`}bottomViewTemplate(){let e=this.remoteFeatures?.socials,t="explore"===this.walletGuide;return(this.authConnector&&e&&0!==e.length||!t||(e=G.oU.DEFAULT_SOCIALS),!e||e.length<=2)?null:e&&e.length>6?(0,r.qy)`<wui-flex gap="2"> 4289 ${e.slice(1,5).map(e=>(0,r.qy)`<wui-logo-select 4290 data-testid=${`social-selector-${e}`} 4291 @click=${()=>{this.onSocialClick(e)}} 4292 logo=${e} 4293 tabIdx=${(0,n.J)(this.tabIdx)} 4294 ?focusable=${void 0!==this.tabIdx&&this.tabIdx>=0} 4295 ?disabled=${this.isPwaLoading||this.hasConnection()} 4296 ></wui-logo-select>`)} 4297 <wui-logo-select 4298 logo="more" 4299 tabIdx=${(0,n.J)(this.tabIdx)} 4300 @click=${this.onMoreSocialsClick.bind(this)} 4301 ?disabled=${this.isPwaLoading||this.hasConnection()} 4302 data-testid="social-selector-more" 4303 ></wui-logo-select> 4304 </wui-flex>`:e?(0,r.qy)`<wui-flex gap="2"> 4305 ${e.slice(1,e.length).map(e=>(0,r.qy)`<wui-logo-select 4306 data-testid=${`social-selector-${e}`} 4307 @click=${()=>{this.onSocialClick(e)}} 4308 logo=${e} 4309 tabIdx=${(0,n.J)(this.tabIdx)} 4310 ?focusable=${void 0!==this.tabIdx&&this.tabIdx>=0} 4311 ?disabled=${this.isPwaLoading||this.hasConnection()} 4312 ></wui-logo-select>`)} 4313 </wui-flex>`:null}onMoreSocialsClick(){Y.I.push("ConnectSocials")}async onSocialClick(e){if(this.hasExceededUsageLimit)return void Y.I.push("UsageExceeded");if(!V.o.AUTH_CONNECTOR_SUPPORTED_CHAINS.find(e=>e===s.W.state.activeChain)){let e=s.W.getFirstCaipNetworkSupportsAuthConnector();if(e)return void Y.I.push("SwitchNetwork",{network:e})}e&&await (0,tH.Up)(e)}async handlePwaFrameLoad(){if(d.w.isPWA()){this.isPwaLoading=!0;try{this.authConnector?.provider instanceof tz.Y&&await this.authConnector.provider.init()}catch(e){tW.h.open({displayMessage:"Error loading embedded wallet in PWA",debugMessage:e.message},"error")}finally{this.isPwaLoading=!1}}}hasConnection(){return X.x.hasAnyConnection(V.o.CONNECTOR_ID.AUTH)}};tK.styles=tq,tV([(0,a.MZ)()],tK.prototype,"walletGuide",void 0),tV([(0,a.MZ)()],tK.prototype,"tabIdx",void 0),tV([(0,a.wk)()],tK.prototype,"connectors",void 0),tV([(0,a.wk)()],tK.prototype,"remoteFeatures",void 0),tV([(0,a.wk)()],tK.prototype,"authConnector",void 0),tV([(0,a.wk)()],tK.prototype,"isPwaLoading",void 0),tV([(0,a.wk)()],tK.prototype,"hasExceededUsageLimit",void 0),tK=tV([(0,h.EM)("w3m-social-login-widget")],tK),i(39393);var tG=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let tJ=class extends r.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=K.a.state.connectors,this.count=tc.N.state.count,this.filteredCount=tc.N.state.filteredWallets.length,this.isFetchingRecommendedWallets=tc.N.state.isFetchingRecommendedWallets,this.unsubscribe.push(K.a.subscribeKey("connectors",e=>this.connectors=e),tc.N.subscribeKey("count",e=>this.count=e),tc.N.subscribeKey("filteredWallets",e=>this.filteredCount=e.length),tc.N.subscribeKey("isFetchingRecommendedWallets",e=>this.isFetchingRecommendedWallets=e))}
4313disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.connectors.find(e=>"walletConnect"===e.id),{allWallets:t}=o.H.state;if(!e||"HIDE"===t||"ONLY_MOBILE"===t&&!d.w.isMobile())return null;let i=tc.N.state.featured.length,a=this.count+i,s=a<10?a:10*Math.floor(a/10),l=this.filteredCount>0?this.filteredCount:s,c=`${l}`;this.filteredCount>0?c=`${this.filteredCount}`:l<a&&(c=`${l}+`);let u=X.x.hasAnyConnection(V.o.CONNECTOR_ID.WALLET_CONNECT);return(0,r.qy)` 4314 <wui-list-wallet 4315 name="Search Wallet" 4316 walletIcon="search" 4317 showAllWallets 4318 @click=${this.onAllWallets.bind(this)} 4319 tagLabel=${c} 4320 tagVariant="info" 4321 data-testid="all-wallets" 4322 tabIdx=${(0,n.J)(this.tabIdx)} 4323 .loading=${this.isFetchingRecommendedWallets} 4324 ?disabled=${u} 4325 size="sm" 4326 ></wui-list-wallet> 4327 `}onAllWallets(){W.E.sendEvent({type:"track",event:"CLICK_ALL_WALLETS"}),Y.I.push("AllWallets",{redirectView:Y.I.state.data?.redirectView})}};tG([(0,a.MZ)()],tJ.prototype,"tabIdx",void 0),tG([(0,a.wk)()],tJ.prototype,"connectors",void 0),tG([(0,a.wk)()],tJ.prototype,"count",void 0),tG([(0,a.wk)()],tJ.prototype,"filteredCount",void 0),tG([(0,a.wk)()],tJ.prototype,"isFetchingRecommendedWallets",void 0),tJ=tG([(0,h.EM)("w3m-all-wallets-widget")],tJ);let tY=(0,h.AH)` 4328 :host { 4329 margin-top: ${({spacing:e})=>e["1"]}; 4330 } 4331 wui-separator { 4332 margin: ${({spacing:e})=>e["3"]} calc(${({spacing:e})=>e["3"]} * -1) 4333 ${({spacing:e})=>e["2"]} calc(${({spacing:e})=>e["3"]} * -1); 4334 width: calc(100% + ${({spacing:e})=>e["3"]} * 2); 4335 } 4336`;var tX=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let tQ=class extends r.WF{constructor(){super(),this.unsubscribe=[],this.explorerWallets=tc.N.state.explorerWallets,this.connections=X.x.state.connections,this.connectorImages=l.j.state.connectorImages,this.loadingTelegram=!1,this.unsubscribe.push(X.x.subscribeKey("connections",e=>this.connections=e),l.j.subscribeKey("connectorImages",e=>this.connectorImages=e),tc.N.subscribeKey("explorerFilteredWallets",e=>{this.explorerWallets=e?.length?e:tc.N.state.explorerWallets}),tc.N.subscribeKey("explorerWallets",e=>{this.explorerWallets?.length||(this.explorerWallets=e)})),d.w.isTelegram()&&d.w.isIos()&&(this.loadingTelegram=!X.x.state.wcUri,this.unsubscribe.push(X.x.subscribeKey("wcUri",e=>this.loadingTelegram=!e)))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,r.qy)` 4337 <wui-flex flexDirection="column" gap="2"> ${this.connectorListTemplate()} </wui-flex> 4338 `}connectorListTemplate(){return eC.g.connectorList().map((e,t)=>"connector"===e.kind?this.renderConnector(e,t):this.renderWallet(e,t))}getConnectorNamespaces(e){return"walletConnect"===e.subtype?[]:"multiChain"===e.subtype?e.connector.connectors?.map(e=>e.chain)||[]:[e.connector.chain]}renderConnector(e,t){let i,a,o=e.connector,s=c.$.getConnectorImage(o)||this.connectorImages[o?.imageId??""],l=(this.connections.get(o.chain)??[]).some(e=>eX.y.isLowerCaseMatch(e.connectorId,o.id));"walletConnect"===e.subtype?(i="qr code",a="accent"):"injected"===e.subtype||"announced"===e.subtype?(i=l?"connected":"installed",a=l?"info":"success"):(i=void 0,a=void 0);let d=X.x.hasAnyConnection(V.o.CONNECTOR_ID.WALLET_CONNECT),u=("walletConnect"===e.subtype||"external"===e.subtype)&&d;return(0,r.qy)` 4339 <w3m-list-wallet 4340 displayIndex=${t} 4341 imageSrc=${(0,n.J)(s)} 4342 .installed=${!0} 4343 name=${o.name??"Unknown"} 4344 .tagVariant=${a} 4345 tagLabel=${(0,n.J)(i)} 4346 data-testid=${`wallet-selector-${o.id.toLowerCase()}`} 4347 size="sm" 4348 @click=${()=>this.onClickConnector(e)} 4349 tabIdx=${(0,n.J)(this.tabIdx)} 4350 ?disabled=${u} 4351 rdnsId=${(0,n.J)(o.explorerWallet?.rdns||void 0)} 4352 walletRank=${(0,n.J)(o.explorerWallet?.order)} 4353 .namespaces=${this.getConnectorNamespaces(e)} 4354 > 4355 </w3m-list-wallet> 4356 `}onClickConnector(e){let t=Y.I.state.data?.redirectView;if("walletConnect"===e.subtype){K.a.setActiveConnector(e.connector),d.w.isMobile()?Y.I.push("AllWallets"):Y.I.push("ConnectingWalletConnect",{redirectView:t});return}if("multiChain"===e.subtype){K.a.setActiveConnector(e.connector),Y.I.push("ConnectingMultiChain",{redirectView:t});return}if("injected"===e.subtype){K.a.setActiveConnector(e.connector),Y.I.push("ConnectingExter
4356nal",{connector:e.connector,redirectView:t,wallet:e.connector.explorerWallet});return}if("announced"===e.subtype)return"walletConnect"===e.connector.id?void(d.w.isMobile()?Y.I.push("AllWallets"):Y.I.push("ConnectingWalletConnect",{redirectView:t})):(Y.I.push("ConnectingExternal",{connector:e.connector,redirectView:t,wallet:e.connector.explorerWallet}),void 0);Y.I.push("ConnectingExternal",{connector:e.connector,redirectView:t})}renderWallet(e,t){let i=e.wallet,a=c.$.getWalletImage(i),o=X.x.hasAnyConnection(V.o.CONNECTOR_ID.WALLET_CONNECT),s=this.loadingTelegram,l="recent"===e.subtype?"recent":void 0,d="recent"===e.subtype?"info":void 0;return(0,r.qy)` 4357 <w3m-list-wallet 4358 displayIndex=${t} 4359 imageSrc=${(0,n.J)(a)} 4360 name=${i.name??"Unknown"} 4361 @click=${()=>this.onClickWallet(e)} 4362 size="sm" 4363 data-testid=${`wallet-selector-${i.id}`} 4364 tabIdx=${(0,n.J)(this.tabIdx)} 4365 ?loading=${s} 4366 ?disabled=${o} 4367 rdnsId=${(0,n.J)(i.rdns||void 0)} 4368 walletRank=${(0,n.J)(i.order)} 4369 tagLabel=${(0,n.J)(l)} 4370 .tagVariant=${d} 4371 > 4372 </w3m-list-wallet> 4373 `}onClickWallet(e){let t=Y.I.state.data?.redirectView,i=s.W.state.activeChain;if("featured"===e.subtype)return void K.a.selectWalletConnector(e.wallet);if("recent"===e.subtype){if(this.loadingTelegram)return;K.a.selectWalletConnector(e.wallet);return}if("custom"===e.subtype){if(this.loadingTelegram)return;Y.I.push("ConnectingWalletConnect",{wallet:e.wallet,redirectView:t});return}if(this.loadingTelegram)return;let r=i?K.a.getConnector({id:e.wallet.id,namespace:i}):void 0;r?Y.I.push("ConnectingExternal",{connector:r,redirectView:t}):Y.I.push("ConnectingWalletConnect",{wallet:e.wallet,redirectView:t})}};tQ.styles=tY,tX([(0,a.MZ)({type:Number})],tQ.prototype,"tabIdx",void 0),tX([(0,a.wk)()],tQ.prototype,"explorerWallets",void 0),tX([(0,a.wk)()],tQ.prototype,"connections",void 0),tX([(0,a.wk)()],tQ.prototype,"connectorImages",void 0),tX([(0,a.wk)()],tQ.prototype,"loadingTelegram",void 0),tQ=tX([(0,h.EM)("w3m-connector-list")],tQ);var t0=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let t1=class extends r.WF{constructor(){super(...arguments),this.tabIdx=void 0}render(){return(0,r.qy)` 4374 <wui-flex flexDirection="column" gap="2"> 4375 <w3m-connector-list tabIdx=${(0,n.J)(this.tabIdx)}></w3m-connector-list> 4376 <w3m-all-wallets-widget tabIdx=${(0,n.J)(this.tabIdx)}></w3m-all-wallets-widget> 4377 </wui-flex> 4378 `}};t0([(0,a.MZ)()],t1.prototype,"tabIdx",void 0),t1=t0([(0,h.EM)("w3m-wallet-login-list")],t1);let t2=(0,h.AH)` 4379 :host { 4380 --connect-scroll--top-opacity: 0; 4381 --connect-scroll--bottom-opacity: 0; 4382 --connect-mask-image: none; 4383 } 4384 4385 .connect { 4386 max-height: clamp(360px, 470px, 80vh); 4387 scrollbar-width: none; 4388 overflow-y: scroll; 4389 overflow-x: hidden; 4390 transition: opacity ${({durations:e})=>e.lg} 4391 ${({easings:e})=>e["ease-out-power-2"]}; 4392 will-change: opacity; 4393 mask-image: var(--connect-mask-image); 4394 } 4395 4396 .guide { 4397 transition: opacity ${({durations:e})=>e.lg} 4398 ${({easings:e})=>e["ease-out-power-2"]}; 4399 will-change: opacity; 4400 } 4401 4402 .connect::-webkit-scrollbar {
4403 display: none; 4404 } 4405 4406 .all-wallets { 4407 flex-flow: column; 4408 } 4409 4410 .connect.disabled, 4411 .guide.disabled { 4412 opacity: 0.3; 4413 pointer-events: none; 4414 user-select: none; 4415 } 4416 4417 wui-separator { 4418 margin: ${({spacing:e})=>e["3"]} calc(${({spacing:e})=>e["3"]} * -1); 4419 width: calc(100% + ${({spacing:e})=>e["3"]} * 2); 4420 } 4421`;var t3=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let t5=class extends r.WF{constructor(){super(),this.unsubscribe=[],this.connectors=K.a.state.connectors,this.authConnector=this.connectors.find(e=>"AUTH"===e.type),this.features=o.H.state.features,this.remoteFeatures=o.H.state.remoteFeatures,this.enableWallets=o.H.state.enableWallets,this.noAdapters=s.W.state.noAdapters,this.walletGuide="get-started",this.checked=tR.o.state.isLegalCheckboxChecked,this.isEmailEnabled=this.remoteFeatures?.email&&!s.W.state.noAdapters,this.isSocialEnabled=this.remoteFeatures?.socials&&this.remoteFeatures.socials.length>0&&!s.W.state.noAdapters,this.isAuthEnabled=this.checkIfAuthEnabled(this.connectors),this.unsubscribe.push(K.a.subscribeKey("connectors",e=>{this.connectors=e,this.authConnector=this.connectors.find(e=>"AUTH"===e.type),this.isAuthEnabled=this.checkIfAuthEnabled(this.connectors)}),o.H.subscribeKey("features",e=>{this.features=e}),o.H.subscribeKey("remoteFeatures",e=>{this.remoteFeatures=e,this.setEmailAndSocialEnableCheck(this.noAdapters,this.remoteFeatures)}),o.H.subscribeKey("enableWallets",e=>this.enableWallets=e),s.W.subscribeKey("noAdapters",e=>this.setEmailAndSocialEnableCheck(e,this.remoteFeatures)),tR.o.subscribeKey("isLegalCheckboxChecked",e=>this.checked=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e()),this.resizeObserver?.disconnect();let e=this.shadowRoot?.querySelector(".connect");e?.removeEventListener("scroll",this.handleConnectListScroll.bind(this))}firstUpdated(){let e=this.shadowRoot?.querySelector(".connect");e&&(requestAnimationFrame(this.handleConnectListScroll.bind(this)),e?.addEventListener("scroll",this.handleConnectListScroll.bind(this)),this.resizeObserver=new ResizeObserver(()=>{this.handleConnectListScroll()}),this.resizeObserver?.observe(e),this.handleConnectListScroll())}render(){let{termsConditionsUrl:e,privacyPolicyUrl:t}=o.H.state,i=o.H.state.features?.legalCheckbox,a=!!(e||t)&&!!i&&"get-started"===this.walletGuide&&!this.checked,n=o.H.state.enableWalletGuide,s=this.enableWallets,l=this.isSocialEnabled||this.authConnector;return(0,r.qy)` 4422 <wui-flex flexDirection="column"> 4423 ${this.legalCheckboxTemplate()} 4424 <wui-flex 4425 data-testid="w3m-connect-scroll-view" 4426 flexDirection="column" 4427 .padding=${["0","0","4","0"]} 4428 class=${(0,eZ.H)({connect:!0,disabled:a})} 4429 > 4430 <wui-flex 4431 class="connect-methods" 4432 flexDirection="column" 4433 gap="2" 4434 .padding=${l&&s&&n&&"get-started"===this.walletGuide?["0","3","0","3"]:["0","3","3","3"]} 4435 > 4436 ${this.renderConnectMethod(a?-1:void 0)} 4437 </wui-flex> 4438 </wui-flex> 4439 ${this.reownBrandingTemplate()} 4440 </wui-flex> 4441 `}reownBrandingTemplate(){return eS.y.hasFooter()||!this.remoteFeatures?.reownBranding?null:(0,r.qy)`<wui-ux-by-reown></wui-ux-by-reown>`}setEmailAndSocialEnableCheck(e,t){this.isEmailEnabled=t?.email&&!e,this.isSocialEnabled=t?.socials&&t.socials.length>0&&!e,this.remoteFeatures=t,this.noAdapters=e}checkIfAuthEnabled(e){let t=e.filter(e=>e.type===tM.o.CONNECTOR_TYPE_AUTH).map(e=>e.chain);return V.o.AUTH_CONNECTOR_SUPPORTED_CHAINS.some(e=>t.includes(e))}renderConnectMethod(e){let t=td.A.getConnectOrderMethod(this.features,this.connectors);return(0,r.qy)`${t.map((t,i)=>{switch(t){case"email":return(0,r.qy)`${this.emailTemplate(e)} ${this.separatorTemplate(i,"email")}`;case"social":return(0,r.qy)`${this.socialListTemplate(e)} 4442 ${this.separatorTemplate(i,"social")}`;case"wallet":return(0,r.qy)`${this.walletListTemplate(e)} 4443 ${this.separatorTemplate(i,"wallet")}`;default:return null}})}`}checkMethodEnabled(e){switch(e){case"wallet":return this.enableWallets;case"social":return this.isSocialEnabled&&this.isAuthEnabled;case"email":return this.isEmailEnabled&&this.isAuthEnabled;default:return null}}checkIsThereNextMethod(e){let t=td.A.getConnectOrderMethod(this.features,this.connectors)[e+1];return t?this.checkMethodEnabled(t)?t:this.checkIsThereNextMethod(e+1):void 0}separatorTemplate(e,t){let i=this.checkIsThereNextMethod(e),a="explore"===this.walletGuide;switch(t){case"wallet":return this.enableWallets&&i&&!a?(0,r.qy)`<wui-separator data-testid="wui-separator" text="or"></wui-separator>`:null;case"email":return this.isAuthEnabled&&this.isEmailEnabled&&"social"!==i&&i?(0,r.qy)`<wui-separator 4444 data-testid="w3m-email-login-or-separator" 4445 text="or" 4446 ></wui-separator>`:null;case"social":return this.isAuthEnabled&&this.isSocialEnabled&&"email"!==i&&i?(0,r.qy)`<wui-separator data-testid="wui-separator" text="or"></wui-separator>`:null;default:return null}}emailTemplate(e){return this.isEmailEnabled&&this.isAuthEnabled?(0,r.qy)`<w3m-email-login-widget tabIdx=${(0,n.J)(e)}></w3m-email-login-widget>`:null}socialListTemplate(e){return this.isSocialEnabled&&this.isAuthEnabled?(0,r.qy)`<w3m-social-login-widget 4447 walletGuide=${this.walletGuide} 4448 tabIdx=${(0,n.J)(e)} 4449 ></w3m-social-login-widget>`:null}walletListTemplate(e){let t=this.enableWallets,i=this.features?.emailShowWallets===!1,a=this.features?.collapseWallets;return t?(d.w.isTelegram()&&(d.w.isSafari()||d.w.isIos())&&X.x.connectWalletConnect().catch(e=>({})),"explore"===this.walletGuide)?null:this.isAuthEnabled&&(this.isEmailEnabled||this.isSocialEnabled)&&(i||a)?(0,r.qy)`<wui-list-button 4450 data-testid="w3m-collapse-wallets-button" 4451 tabIdx=${(0,n.J)(e)} 4452 @click=${this.onContinueWalletClick.bind(this)} 4453 text="Continue with a wallet" 4454 icon="wallet" 4455 ></wui-list-button>`:(0,r.qy)`<w3m-wallet-login-list tabIdx=${(0,n.J)(e)}></w3m-wallet-login-list>`:null}legalCheckboxTemplate(){return"explore"===this.walletGuide?null:(0,r.qy)`<w3m-legal-checkbox data-testid="w3m-legal-checkbox"></w3m-legal-checkbox>`}handleConnectListScroll(){let e=this.shadowRoot?.querySelector(".connect");e&&(e.scrollHeight>470?(e.style.setProperty("--connect-mask-image",`linear-gradient( 4456 to bottom, 4457 rgba(0, 0, 0, calc(1 - var(--connect-scroll--top-opacity))) 0px, 4458 rgba(200, 200, 200, calc(1 - var(--connect-scroll--top-opacity))) 1px, 4459 black 100px, 4460 black calc(100% - 100px), 4461 rgba(155, 155, 155, calc(1 - var(--connect-scroll--bottom-opacity))) calc(100% - 1px), 4462 rgba(0, 0, 0, calc(1 - var(--connect-scroll--bottom-opacity))) 100% 4463 )`),e.style.setProperty("--connect-scroll--top-opacity",h.z8.interpolate([0,50],[0,1],e.scrollTop).toString()),e.style.setProperty("--connect-scroll--bottom-opacity",h.z8.interpolate([0,50],[0,1],e.scrollHeight-e.scrollTop-e.offsetHeight).toString())):(e.style.setProperty("--connect-mask-image","none"),e.style.setProperty("--connect-scroll--top-opacity","0"),e.style.setProperty("--connect-scroll--bottom-opacity","0")))}onContinueWalletClick(){Y.I.push("ConnectWallets")}};t5.styles=t2,t3([(0,tT.w)()],t5.prototype,"connectors",void 0),t3([(0,tT.w)()],t5.prototype,"authConnector",void 0),t3([(0,tT.w)()],t5.prototype,"features",void 0),t3([(0,tT.w)()],t5.prototype,"remoteFeatures",void 0),t3([(0,tT.w)()],t5.prototype,"enableWallets",void 0),t3([(0,tT.w)()],t5.prototype,"noAdapters",void 0),t3([(0,a.MZ)()],t5.prototype,"walletGuide",void 0),t3([(0,tT.w)()],t5.prototype,"checked",void 0),t3([(0,tT.w)()],t5.prototype,"isEmailEnabled",void 0),t3([(0,tT.w)()],t5.prototype,"isSocialEnabled",void 0),t3([(0,tT.w)()],t5.prototype,"isAuthEnabled",void 0),t5=t3([(0,h.EM)("w3m-connect-view")],t5);var t4=i(89691),t6=i(10611),t9=i(4068);i(12336),i(31237);let t8=(0,f.AH)` 4464 wui-flex { 4465 width: 100%; 4466 height: 52px; 4467 box-sizing: border-box; 4468 background-color: ${({tokens:e})=>e.theme.foregroundPrimary}; 4469 border-radius: ${({borderRadius:e})=>e[5]}; 4470 padding-left: ${({spacing:e})=>e[3]}; 4471 padding-right: ${({spacing:e})=>e[3]}; 4472 display: flex; 4473 align-items: center; 4474 justify-content: space-between; 4475 gap: ${({spacing:e})=>e[6]}; 4476 } 4477 4478 wui-text { 4479 color: ${({tokens:e})=>e.theme.textSecondary}; 4480 } 4481 4482 wui-icon { 4483 width: 12px; 4484 height: 12px; 4485 } 4486`;var t7=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let ie=class extends r.WF{constructor(){super(...arguments),this.disabled=!1,this.label="",this.buttonLabel=""}render(){return(0,r.qy)` 4487 <wui-flex justifyContent="space-between" alignItems="center"> 4488 <wui-text variant="lg-regular" color="inherit">${this.label}</wui-text> 4489 <wui-button variant="accent-secondary" size="sm"> 4490 ${this.buttonLabel} 4491 <wui-icon name="chevronRight" color="inherit" size="inherit" slot="iconRight"></wui-icon> 4492 </wui-button>
4492 4493 </wui-flex> 4494 `}};ie.styles=[p.W5,p.fD,t8],t7([(0,a.MZ)({type:Boolean})],ie.prototype,"disabled",void 0),t7([(0,a.MZ)()],ie.prototype,"label",void 0),t7([(0,a.MZ)()],ie.prototype,"buttonLabel",void 0),ie=t7([(0,g.E)("wui-cta-button")],ie);let it=(0,h.AH)` 4495 :host { 4496 display: block; 4497 padding: 0 ${({spacing:e})=>e["5"]} ${({spacing:e})=>e["5"]}; 4498 } 4499`;var ii=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let ir=class extends r.WF{constructor(){super(...arguments),this.wallet=void 0}render(){if(!this.wallet)return this.style.display="none",null;let{name:e,app_store:t,play_store:i,chrome_store:a,homepage:n}=this.wallet,o=d.w.isMobile(),s=d.w.isIos(),l=d.w.isAndroid(),c=[t,i,n,a].filter(Boolean).length>1,u=h.Zv.getTruncateString({string:e,charsStart:12,charsEnd:0,truncate:"end"});return c&&!o?(0,r.qy)` 4500 <wui-cta-button 4501 label=${`Don't have ${u}?`} 4502 buttonLabel="Get" 4503 @click=${()=>Y.I.push("Downloads",{wallet:this.wallet})} 4504 ></wui-cta-button> 4505 `:!c&&n?(0,r.qy)` 4506 <wui-cta-button 4507 label=${`Don't have ${u}?`} 4508 buttonLabel="Get" 4509 @click=${this.onHomePage.bind(this)} 4510 ></wui-cta-button> 4511 `:t&&s?(0,r.qy)` 4512 <wui-cta-button 4513 label=${`Don't have ${u}?`} 4514 buttonLabel="Get" 4515 @click=${this.onAppStore.bind(this)} 4516 ></wui-cta-button> 4517 `:i&&l?(0,r.qy)` 4518 <wui-cta-button 4519 label=${`Don't have ${u}?`} 4520 buttonLabel="Get" 4521 @click=${this.onPlayStore.bind(this)} 4522 ></wui-cta-button> 4523 `:(this.style.display="none",null)}onAppStore(){this.wallet?.app_store&&d.w.openHref(this.wallet.app_store,"_blank")}onPlayStore(){this.wallet?.play_store&&d.w.openHref(this.wallet.play_store,"_blank")}onHomePage(){this.wallet?.homepage&&d.w.openHref(this.wallet.homepage,"_blank")}};ir.styles=[it],ii([(0,a.MZ)({type:Object})],ir.prototype,"wallet",void 0),ir=ii([(0,h.EM)("w3m-mobile-download-links")],ir);let ia=(0,h.AH)` 4524 @keyframes shake { 4525 0% { 4526 transform: translateX(0); 4527 } 4528 25% { 4529 transform: translateX(3px); 4530 } 4531 50% { 4532 transform: translateX(-3px); 4533 } 4534 75% { 4535 transform: translateX(3px); 4536 } 4537 100% { 4538 transform: translateX(0); 4539 } 4540 } 4541 4542 wui-flex:first-child:not(:only-child) { 4543 position: relative; 4544 } 4545 4546 wui-wallet-image { 4547 width: 56px; 4548 height: 56px; 4549 } 4550 4551 wui-loading-thumbnail { 4552 position: absolute; 4553 } 4554 4555 wui-icon-box { 4556 position: absolute; 4557 right: calc(${({spacing:e})=>e["1"]} * -1); 4558 bottom: calc(${({spacing:e})=>e["1"]} * -1); 4559 opacity: 0; 4560 transform: scale(0.5); 4561 transition-property: opacity, transform; 4562 transition-duration: ${({durations:e})=>e.lg}; 4563 transition-timing-function: ${({easings:e})=>e["ease-out-power-2"]}; 4564 will-change: opacity, transform; 4565 } 4566 4567 wui-text[align='center'] { 4568 width: 100%; 4569 padding: 0px ${({spacing:e})=>e["4"]}; 4570 } 4571 4572 [data-error='true'] wui-icon-box { 4573 opacity: 1; 4574 transform: scale(1); 4575 } 4576 4577 [data-error='true'] > wui-flex:first-child { 4578 animation: shake 250ms ${({easings:e})=>e["ease-out-power-2"]} both; 4579 } 4580 4581 [data-retry='false'] wui-link { 4582 display: none; 4583 } 4584 4585 [data-retry='true'] wui-link { 4586 display: block; 4587 opacity: 1; 4588 } 4589 4590 w3m-mobile-download-links { 4591 padding: 0px; 4592 width: 100%; 4593 } 4594`;var io=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};class is extends r.WF{constructor(){super(),this.wallet=Y.I.state.data?.wallet,this.connector=Y.I.state.data?.connector,this.timeout=void 0,this.secondaryBtnIcon="refresh",this.onConnect=void 0,this.onRender=void 0,this.onAutoConnect=void 0,this.isWalletConnect=!0,this.unsubscribe=[],this.imageSrc=c.$.getConnectorImage(this.connector)??c.$.getWalletImage(this.wallet),this.name=this.wallet?.name??this.connector?.name??"Wallet",this.isRetrying=!1,this.uri=X.x.state.wcUri,this.error=X.x.state.wcError,this.ready=!1,this.showRetry=!1,this.label=void 0,this.secondaryBtnLabel="Try again",this.secondaryLabel="Accept connection request in the wallet",this.isLoading=!1,this.isMobile=!1,this.onRetry=void 0,this.unsubscribe.push(X.x.subscribeKey("wcUri",e=>{this.uri=e,this.isRetrying&&this.onRetry&&(this.isRetrying=!1,this.onConnect?.())}),X.x.subscribeKey("wcError",e=>this.error=e)),(d.w.isTelegram()||d.w.isSafari())&&d.w.isIos()&&X.x.state.wcUri&&this.onConnect?.()}firstUpdated(){this.onAutoConnect?.(),this.showRetry=!this.onAutoConnect}
4594disconnectedCallback(){this.unsubscribe.forEach(e=>e()),X.x.setWcError(!1),clearTimeout(this.timeout)}render(){this.onRender?.(),this.onShowRetry();let e=this.error?"Connection can be declined if a previous request is still active":this.secondaryLabel,t="";return this.label?t=this.label:(t=`Continue in ${this.name}`,this.error&&(t="Connection declined")),(0,r.qy)` 4595 <wui-flex 4596 data-error=${(0,n.J)(this.error)} 4597 data-retry=${this.showRetry} 4598 flexDirection="column" 4599 alignItems="center" 4600 .padding=${["10","5","5","5"]} 4601 gap="6" 4602 > 4603 <wui-flex gap="2" justifyContent="center" alignItems="center"> 4604 <wui-wallet-image size="lg" imageSrc=${(0,n.J)(this.imageSrc)}></wui-wallet-image> 4605 4606 ${this.error?null:this.loaderTemplate()} 4607 4608 <wui-icon-box 4609 color="error" 4610 icon="close" 4611 size="sm" 4612 border 4613 borderColor="wui-color-bg-125" 4614 ></wui-icon-box> 4615 </wui-flex> 4616 4617 <wui-flex flexDirection="column" alignItems="center" gap="6"> <wui-flex 4618 flexDirection="column" 4619 alignItems="center" 4620 gap="2" 4621 .padding=${["2","0","0","0"]} 4622 > 4623 <wui-text align="center" variant="lg-medium" color=${this.error?"error":"primary"}> 4624 ${t} 4625 </wui-text> 4626 <wui-text align="center" variant="lg-regular" color="secondary">${e}</wui-text> 4627 </wui-flex> 4628 4629 ${this.secondaryBtnLabel?(0,r.qy)` 4630 <wui-button 4631 variant="neutral-secondary" 4632 size="md" 4633 ?disabled=${this.isRetrying||this.isLoading} 4634 @click=${this.onTryAgain.bind(this)} 4635 data-testid="w3m-connecting-widget-secondary-button" 4636 > 4637 <wui-icon 4638 color="inherit" 4639 slot="iconLeft" 4640 name=${this.secondaryBtnIcon} 4641 ></wui-icon> 4642 ${this.secondaryBtnLabel} 4643 </wui-button> 4644 `:null} 4645 </wui-flex> 4646 4647 ${this.isWalletConnect?(0,r.qy)` 4648 <wui-flex .padding=${["0","5","5","5"]} justifyContent="center"> 4649 <wui-link 4650 @click=${this.onCopyUri} 4651 variant="secondary" 4652 icon="copy" 4653 data-testid="wui-link-copy" 4654 > 4655 Copy link 4656 </wui-link> 4657 </wui-flex> 4658 `:null} 4659 4660 <w3m-mobile-download-links .wallet=${this.wallet}></w3m-mobile-download-links></wui-flex> 4661 </wui-flex> 4662 `}onShowRetry(){if(this.error&&!this.showRetry){this.showRetry=!0;let e=this.shadowRoot?.querySelector("wui-button");e?.animate([{opacity:0},{opacity:1}],{fill:"forwards",easing:"ease"})}}onTryAgain(){X.x.setWcError(!1),this.onRetry?(this.isRetrying=!0,this.onRetry?.()):this.onConnect?.()}loaderTemplate(){let e=t9.W.state.themeVariables["--w3m-border-radius-master"],t=e?parseInt(e.replace("px",""),10):4;return(0,r.qy)`<wui-loading-thumbnail radius=${9*t}></wui-loading-thumbnail>`}onCopyUri(){try{this.uri&&(d.w.copyToClopboard(this.uri),J.P.showSuccess("Link copied"))}catch{J.P.showError("Failed to copy")}}}is.styles=ia,io([(0,a.wk)()],is.prototype,"isRetrying",void 0),io([(0,a.wk)()],is.prototype,"uri",void 0),io([(0,a.wk)()],is.prototype,"error",void 0),io([(0,a.wk)()],is.prototype,"ready",void 0),io([(0,a.wk)()],is.prototype,"showRetry",void 0),io([(0,a.wk)()],is.prototype,"label",void 0),io([(0,a.wk)()],is.prototype,"secondaryBtnLabel",void 0),io([(0,a.wk)()],is.prototype,"secondaryLabel",void 0),io([(0,a.wk)()],is.prototype,"isLoading",void 0),io([(0,a.MZ)({type:Boolean})],is.prototype,"isMobile",void 0),io([(0,a.MZ)()],is.prototype,"onRetry",void 0);let il=class extends is{constructor(){if(super(),this.externalViewUnsubscribe=[],this.connectionsByNamespace=X.x.getConnections(this.connector?.chain),this.hasMultipleConnections=this.connectionsByNamespace.length>0,this.remoteFeatures=o.H.state.remoteFeatures,this.currentActiveConnectorId=K.a.state.activeConnectorIds[this.connector?.chain],!this.connector)throw Error("w3m-connecting-view: No connector provided");let e=this.connector?.chain;this.isAlreadyConnected(this.connector)&&(this.secondaryBtnLabel=void 0,this.label=`This account is already linked, change your account in ${this.connector.name}`,this.secondaryLabel=`To link a new account, open ${this.connector.name} and switch to the account you want to link`),W.E.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.connector.name??"Unknown",platform:"browser",dis
4662playIndex:this.wallet?.display_index,walletRank:this.wallet?.order,view:Y.I.state.view}}),this.onConnect=this.onConnectProxy.bind(this),this.onAutoConnect=this.onConnectProxy.bind(this),this.isWalletConnect=!1,this.externalViewUnsubscribe.push(K.a.subscribeKey("activeConnectorIds",t=>{let i=t[e],r=this.remoteFeatures?.multiWallet,{redirectView:a}=Y.I.state.data??{};i!==this.currentActiveConnectorId&&(this.hasMultipleConnections&&r?(Y.I.replace("ProfileWallets"),J.P.showSuccess("New Wallet Added")):a?Y.I.replace(a):u.W.close())}),X.x.subscribeKey("connections",this.onConnectionsChange.bind(this)))}disconnectedCallback(){this.externalViewUnsubscribe.forEach(e=>e())}async onConnectProxy(){try{if(this.error=!1,this.connector){if(this.isAlreadyConnected(this.connector))return;this.connector.id===V.o.CONNECTOR_ID.COINBASE_SDK&&this.error||await X.x.connectExternal(this.connector,this.connector.chain)}}catch(e){e instanceof t6.A&&e.originalName===t4.RQ.PROVIDER_RPC_ERROR_NAME.USER_REJECTED_REQUEST?W.E.sendEvent({type:"track",event:"USER_REJECTED",properties:{message:e.message}}):W.E.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:e?.message??"Unknown"}}),this.error=!0}}onConnectionsChange(e){if(this.connector?.chain&&e.get(this.connector.chain)&&this.isAlreadyConnected(this.connector)){let t=e.get(this.connector.chain)??[],i=this.remoteFeatures?.multiWallet;if(0===t.length)Y.I.replace("Connect");else{let e=ez.b.getConnectionsByConnectorId(this.connectionsByNamespace,this.connector.id).flatMap(e=>e.accounts),r=ez.b.getConnectionsByConnectorId(t,this.connector.id).flatMap(e=>e.accounts);0===r.length?this.hasMultipleConnections&&i?(Y.I.replace("ProfileWallets"),J.P.showSuccess("Wallet deleted")):u.W.close():!e.every(e=>r.some(t=>eX.y.isLowerCaseMatch(e.address,t.address)))&&i&&Y.I.replace("ProfileWallets")}}}isAlreadyConnected(e){return!!e&&this.connectionsByNamespace.some(t=>eX.y.isLowerCaseMatch(t.connectorId,e.id))}};il=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o}([(0,h.EM)("w3m-connecting-external-view")],il);let ic=(0,r.AH)` 4663 wui-flex, 4664 wui-list-wallet { 4665 width: 100%; 4666 } 4667`;var id=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let iu=class extends r.WF{constructor(){super(),this.unsubscribe=[],this.activeConnector=K.a.state.activeConnector,this.unsubscribe.push(K.a.subscribeKey("activeConnector",e=>this.activeConnector=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,r.qy)` 4668 <wui-flex 4669 flexDirection="column" 4670 alignItems="center" 4671 .padding=${["3","5","5","5"]} 4672 gap="5" 4673 > 4674 <wui-flex justifyContent="center" alignItems="center"> 4675 <wui-wallet-image 4676 size="lg" 4677 imageSrc=${(0,n.J)(c.$.getConnectorImage(this.activeConnector))} 4678 ></wui-wallet-image> 4679 </wui-flex> 4680 <wui-flex 4681 flexDirection="column" 4682 alignItems="center" 4683 gap="2" 4684 .padding=${["0","3","0","3"]} 4685 > 4686 <wui-text variant="lg-medium" color="primary"> 4687 Select Chain for ${this.activeConnector?.name} 4688 </wui-text> 4689 <wui-text align="center" variant="lg-regular" color="secondary" 4690 >Select which chain to connect to your multi chain wallet</wui-text 4691 > 4692 </wui-flex> 4693 <wui-flex 4694 flexGrow="1" 4695 flexDirection="column" 4696 alignItems="center" 4697 gap="2" 4698 .padding=${["2","0","2","0"]} 4699 > 4700 ${this.networksTemplate()} 4701 </wui-flex> 4702 </wui-flex> 4703 `}networksTemplate(){return this.activeConnector?.connectors?.map((e,t)=>e.name?(0,r.qy)` 4704 <w3m-list-wallet 4705 displayIndex=${t} 4706 imageSrc=${(0,n.J)(c.$.getChainImage(e.chain))} 4707 name=${V.o.CHAIN_NAME_MAP[e.chain]} 4708 @click=${()=>this.onConnector(e)} 4709 size="sm" 4710 data-testid="wui-list-chain-${e.chain}" 4711 rdnsId=${e.explorerWallet?.rdns} 4712 ></w3m-list-wallet> 4713 `:null)}onConnector(e){let t=this.activeConnector?.connectors?.find(t=>t.chain===e.chain),i=Y.I.state.data?.redirectView;if(!t)return void J.P.showError("Failed to find connector");"walletConnect"===t.id?d.w.isMobile()?Y.I.push("AllWallets"):Y.I.push("ConnectingWalletConnect",{redirectView:i}
4713):Y.I.push("ConnectingExternal",{connector:t,redirectView:i,wallet:this.activeConnector?.explorerWallet})}};iu.styles=ic,id([(0,a.wk)()],iu.prototype,"activeConnector",void 0),iu=id([(0,h.EM)("w3m-connecting-multi-chain-view")],iu);var ih=i(59780),ip=i(15002),im=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let ig=class extends r.WF{constructor(){super(...arguments),this.platformTabs=[],this.unsubscribe=[],this.platforms=[],this.onSelectPlatfrom=void 0}disconnectCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.generateTabs();return(0,r.qy)` 4714 <wui-flex justifyContent="center" .padding=${["0","0","4","0"]}> 4715 <wui-tabs .tabs=${e} .onTabChange=${this.onTabChange.bind(this)}></wui-tabs> 4716 </wui-flex> 4717 `}generateTabs(){let e=this.platforms.map(e=>{if("browser"===e)return{label:"Browser",icon:"extension",platform:"browser"};if("mobile"===e)return{label:"Mobile",icon:"mobile",platform:"mobile"};if("qrcode"===e)return{label:"Mobile",icon:"mobile",platform:"qrcode"};if("web"===e)return{label:"Webapp",icon:"browser",platform:"web"};if("desktop"===e)return{label:"Desktop",icon:"desktop",platform:"desktop"};return{label:"Browser",icon:"extension",platform:"unsupported"}});return this.platformTabs=e.map(({platform:e})=>e),e}onTabChange(e){let t=this.platformTabs[e];t&&this.onSelectPlatfrom?.(t)}};im([(0,a.MZ)({type:Array})],ig.prototype,"platforms",void 0),im([(0,a.MZ)()],ig.prototype,"onSelectPlatfrom",void 0),ig=im([(0,h.EM)("w3m-connecting-header")],ig);let iw=class extends is{constructor(){if(super(),!this.wallet)throw Error("w3m-connecting-wc-browser: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.onAutoConnect=this.onConnectProxy.bind(this),W.E.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"browser",displayIndex:this.wallet?.display_index,walletRank:this.wallet.order,view:Y.I.state.view}})}async onConnectProxy(){try{this.error=!1;let{connectors:e}=K.a.state,t=e.find(e=>"ANNOUNCED"===e.type&&e.info?.rdns===this.wallet?.rdns||"INJECTED"===e.type||e.name===this.wallet?.name);if(t)await X.x.connectExternal(t,t.chain);else throw Error("w3m-connecting-wc-browser: No connector found");u.W.close()}catch(e){e instanceof t6.A&&e.originalName===t4.RQ.PROVIDER_RPC_ERROR_NAME.USER_REJECTED_REQUEST?W.E.sendEvent({type:"track",event:"USER_REJECTED",properties:{message:e.message}}):W.E.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:e?.message??"Unknown"}}),this.error=!0}}};iw=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o}([(0,h.EM)("w3m-connecting-wc-browser")],iw);let iy=class extends is{constructor(){if(super(),!this.wallet)throw Error("w3m-connecting-wc-desktop: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.onRender=this.onRenderProxy.bind(this),W.E.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"desktop",displayIndex:this.wallet?.display_index,walletRank:this.wallet.order,view:Y.I.state.view}})}onRenderProxy(){!this.ready&&this.uri&&(this.ready=!0,this.onConnect?.())}onConnectProxy(){if(this.wallet?.desktop_link&&this.uri)try{this.error=!1;let{desktop_link:e,name:t}=this.wallet,{redirect:i,href:r}=d.w.formatNativeUrl(e,this.uri);X.x.setWcLinking({name:t,href:r}),X.x.setRecentWallet(this.wallet),d.w.openHref(i,"_blank")}catch{this.error=!0}}};iy=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o}([(0,h.EM)("w3m-connecting-wc-desktop")],iy);var ib=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let iv=class extends is{constructor(){if(super(),this.btnLabelTimeout=void 0,this.redirectDeeplink=void 0,this.redirectUniversalLink=void 0,this.target=void 0,this.preferUniversalLinks=o.H.state.experimental_preferUniversalLinks,this.isLoading=!0,this.onConnect=()=>{ez.b.onConnectMobile(this.wallet)},!this.wallet)throw Error("w3m-connecting-wc-mobile: No wallet provided");this.secondaryBtnLabel="Open",this.secondaryLabel=G.oU.CONNECT_LABELS.MOBILE,this.secondaryBtnIcon="externalLink",this.onHandleURI(),this.unsubscribe.push(X.x.subscribeKey("wcUri",()=>{this.onHandleURI()})),W.E.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"mobile",displayIndex:this.wallet?.display_index,walletRank:this.wallet.order,view:Y.I.state.view}})}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.btnLabelTimeout)}onHandleURI(){this.isLoading=!this.uri,!this.ready&&this.uri&&(this.ready=!0,this.onConnect?.())}onTryAgain(){X.x.setWcError(!1),this.onConnect?.()}};ib([(0,a.wk)()],iv.prototype,"redirectDeeplink",void 0),ib([(0,a.wk)()],iv.prototype,"redirectUniversalLink",void 0),ib([(0,a.wk)()],iv.prototype,"target",void 0),ib([(0,a.wk)()],iv.prototype,"preferUniversalLinks",void 0),ib([(0,a.wk)()],iv.prototype,"isLoading",void 0),iv=ib([(0,h.EM)("w3m-connecting-wc-mobile")],iv),i(21899);let iC=(0,h.AH)` 4718 wui-shimmer { 4719 width: 100%; 4720 aspect-ratio: 1 / 1; 4721 border-radius: ${({borderRadius:e})=>e[4]}; 4722 } 4723 4724 wui-qr-code { 4725 opacity: 0; 4726 animation-duration: ${({durations:e})=>e.xl}; 4727 animation-timing-function: ${({easings:e})=>e["ease-out-power-2"]}; 4728 animation-name: fade-in; 4729 animation-fill-mode: forwards; 4730 } 4731 4732 @keyframes fade-in { 4733 from { 4734 opacity: 0; 4735 } 4736 to { 4737 opacity: 1; 4738 } 4739 } 4740`;
4740var ix=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let iE=class extends is{constructor(){super(),this.basic=!1}firstUpdated(){this.basic||W.E.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet?.name??"WalletConnect",platform:"qrcode",displayIndex:this.wallet?.display_index,walletRank:this.wallet?.order,view:Y.I.state.view}})}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribe?.forEach(e=>e())}render(){return this.onRenderProxy(),(0,r.qy)` 4741 <wui-flex 4742 flexDirection="column" 4743 alignItems="center" 4744 .padding=${["0","5","5","5"]} 4745 gap="5" 4746 > 4747 <wui-shimmer width="100%"> ${this.qrCodeTemplate()} </wui-shimmer> 4748 <wui-text variant="lg-medium" color="primary"> Scan this QR Code with your phone </wui-text> 4749 ${this.copyTemplate()} 4750 </wui-flex> 4751 <w3m-mobile-download-links .wallet=${this.wallet}></w3m-mobile-download-links> 4752 `}onRenderProxy(){!this.ready&&this.uri&&(this.ready=!0)}qrCodeTemplate(){if(!this.uri||!this.ready)return null;let e=this.wallet?this.wallet.name:void 0;X.x.setWcLinking(void 0),X.x.setRecentWallet(this.wallet);let t=t9.W.state.themeVariables["--apkt-qr-color"]??t9.W.state.themeVariables["--w3m-qr-color"];return(0,r.qy)` <wui-qr-code 4753 theme=${t9.W.state.themeMode} 4754 uri=${this.uri} 4755 imageSrc=${(0,n.J)(c.$.getWalletImage(this.wallet))} 4756 color=${(0,n.J)(t)} 4757 alt=${(0,n.J)(e)} 4758 data-testid="wui-qr-code" 4759 ></wui-qr-code>`}copyTemplate(){let e=!this.uri||!this.ready;return(0,r.qy)`<wui-button 4760 .disabled=${e} 4761 @click=${this.onCopyUri} 4762 variant="neutral-secondary" 4763 size="sm" 4764 data-testid="copy-wc2-uri" 4765 > 4766 Copy link 4767 <wui-icon size="sm" color="inherit" name="copy" slot="iconRight"></wui-icon> 4768 </wui-button>`}};iE.styles=iC,ix([(0,a.MZ)({type:Boolean})],iE.prototype,"basic",void 0),iE=ix([(0,h.EM)("w3m-connecting-wc-qrcode")],iE);let ik=class extends r.WF{constructor(){if(super(),this.wallet=Y.I.state.data?.wallet,!this.wallet)throw Error("w3m-connecting-wc-unsupported: No wallet provided");W.E.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"browser",displayIndex:this.wallet?.display_index,walletRank:this.wallet?.order,view:Y.I.state.view}})}render(){return(0,r.qy)` 4769 <wui-flex 4770 flexDirection="column" 4771 alignItems="center" 4772 .padding=${["10","5","5","5"]} 4773 gap="5" 4774 > 4775 <wui-wallet-image 4776 size="lg" 4777 imageSrc=${(0,n.J)(c.$.getWalletImage(this.wallet))} 4778 ></wui-wallet-image> 4779 4780 <wui-text variant="md-regular" color="primary">Not Detected</wui-text> 4781 </wui-flex> 4782 4783 <w3m-mobile-download-links .wallet=${this.wallet}></w3m-mobile-download-links> 4784 `}};ik=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o}([(0,h.EM)("w3m-connecting-wc-unsupported")],ik);var iA=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let i$=class extends is{constructor(){if(super(),this.isLoading=!0,!this.wallet)throw Error("w3m-connecting-wc-web: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.secondaryBtnLabel="Open",this.secondaryLabel=G.oU.CONNECT_LABELS.MOBILE,this.secondaryBtnIcon="externalLink",this.updateLoadingState(),this.unsubscribe.push(X.x.subscribeKey("wcUri",()=>{this.updateLoadingState()})),W.E.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"web",displayIndex:this.wallet?.display_index,walletRank:this.wallet?.order,view:Y.I.state.view}})}updateLoadingState(){this.isLoading=!this.uri}onConnectProxy(){if(this.wallet?.webapp_link&&this.uri)try{this.error=!1;let{webapp_link:e,name:t}=this.wallet,{redirect:i,href:r}=d.w.formatUniversalUrl(e,this.uri);X.x.setWcLinking({name:t,href:r}),X.x.setRecentWallet(this.wallet),d.w.openHref(i,"_blank")}catch{this.error=!0}}};iA([(0,a.wk)()],i$.prototype,"isLoading",void 0),i$=iA([(0,h.EM)("w3m-connecting-wc-web")],i$);let i_=(0,h.AH)` 4785 :host([data-mobile-fullscreen='true']) { 4786 height: 100%; 4787 display: flex; 4788 flex-direction: column; 4789 } 4790 4791 :host([data-mobile-fullscreen='true']) wui-ux-by-reown { 4792 margin-top: auto; 4793 } 4794`;var iN=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let iS=class extends r.WF{constructor(){super(),this.wallet=Y.I.state.data?.wallet,this.unsubscribe=[],this.platform=void 0,this.platforms=[],this.isSiwxEnabled=!!o.H.state.siwx,this.remoteFeatures=o.H.state.remoteFeatures,this.displayBranding=!0,this.basic=!1,this.determinePlatforms(),this.initializeConnection(),this.unsubscribe.push(o.H.subscribeKey("remoteFeatures",e=>this.remoteFeatures=e))}
4794disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return o.H.state.enableMobileFullScreen&&this.setAttribute("data-mobile-fullscreen","true"),(0,r.qy)` 4795 ${this.headerTemplate()} 4796 <div class="platform-container">${this.platformTemplate()}</div> 4797 ${this.reownBrandingTemplate()} 4798 `}reownBrandingTemplate(){return this.remoteFeatures?.reownBranding&&this.displayBranding?(0,r.qy)`<wui-ux-by-reown></wui-ux-by-reown>`:null}async initializeConnection(e=!1){if("browser"!==this.platform&&(!o.H.state.manualWCControl||e))try{let{wcPairingExpiry:t,status:i}=X.x.state,{redirectView:r}=Y.I.state.data??{};if(e||o.H.state.enableEmbedded||d.w.isPairingExpired(t)||"connecting"===i){let e=X.x.getConnections(s.W.state.activeChain),t=this.remoteFeatures?.multiWallet,i=e.length>0;await X.x.connectWalletConnect({cache:"never"}),this.isSiwxEnabled||(i&&t?(Y.I.replace("ProfileWallets"),J.P.showSuccess("New Wallet Added")):r?Y.I.replace(r):u.W.close())}}catch(e){if(e instanceof Error&&e.message.includes("An error occurred when attempting to switch chain")&&!o.H.state.enableNetworkSwitch&&s.W.state.activeChain){s.W.setActiveCaipNetwork(ip.R.getUnsupportedNetwork(`${s.W.state.activeChain}:${s.W.state.activeCaipNetwork?.id}`)),s.W.showUnsupportedChainUI();return}e instanceof t6.A&&e.originalName===t4.RQ.PROVIDER_RPC_ERROR_NAME.USER_REJECTED_REQUEST?W.E.sendEvent({type:"track",event:"USER_REJECTED",properties:{message:e.message}}):W.E.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:e?.message??"Unknown"}}),X.x.setWcError(!0),J.P.showError(e.message??"Connection error"),X.x.resetWcConnection(),Y.I.goBack()}}determinePlatforms(){if(!this.wallet){this.platforms.push("qrcode"),this.platform="qrcode";return}if(this.platform)return;let{mobile_link:e,desktop_link:t,webapp_link:i,injected:r,rdns:a}=this.wallet,n=r?.map(({injected_id:e})=>
4798e).filter(Boolean),l=[...a?[a]:n??[]],c=!o.H.state.isUniversalProvider&&l.length,u=X.x.checkInstalled(l),h=c&&u,p=t&&!d.w.isMobile();h&&!s.W.state.noAdapters&&this.platforms.push("browser"),e&&this.platforms.push(d.w.isMobile()?"mobile":"qrcode"),i&&this.platforms.push("web"),p&&this.platforms.push("desktop");let m=ih.W.isCustomDeeplinkWallet(this.wallet.id,s.W.state.activeChain);h||!c||s.W.state.noAdapters||m||this.platforms.push("unsupported"),this.platform=this.platforms[0]}platformTemplate(){switch(this.platform){case"browser":return(0,r.qy)`<w3m-connecting-wc-browser></w3m-connecting-wc-browser>`;case"web":return(0,r.qy)`<w3m-connecting-wc-web></w3m-connecting-wc-web>`;case"desktop":return(0,r.qy)` 4799 <w3m-connecting-wc-desktop .onRetry=${()=>this.initializeConnection(!0)}> 4800 </w3m-connecting-wc-desktop> 4801 `;case"mobile":return(0,r.qy)` 4802 <w3m-connecting-wc-mobile isMobile .onRetry=${()=>this.initializeConnection(!0)}> 4803 </w3m-connecting-wc-mobile> 4804 `;case"qrcode":return(0,r.qy)`<w3m-connecting-wc-qrcode ?basic=${this.basic}></w3m-connecting-wc-qrcode>`;default:return(0,r.qy)`<w3m-connecting-wc-unsupported></w3m-connecting-wc-unsupported>`}}headerTemplate(){return this.platforms.length>1?(0,r.qy)` 4805 <w3m-connecting-header 4806 .platforms=${this.platforms} 4807 .onSelectPlatfrom=${this.onSelectPlatform.bind(this)} 4808 > 4809 </w3m-connecting-header> 4810 `:null}async onSelectPlatform(e){let t=this.shadowRoot?.querySelector("div");t&&(await t.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.platform=e,t.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}};iS.styles=i_,iN([(0,a.wk)()],iS.prototype,"platform",void 0),iN([(0,a.wk)()],iS.prototype,"platforms",void 0),iN([(0,a.wk)()],iS.prototype,"isSiwxEnabled",void 0),iN([(0,a.wk)()],iS.prototype,"remoteFeatures",void 0),iN([(0,a.MZ)({type:Boolean})],iS.prototype,"displayBranding",void 0),iN([(0,a.MZ)({type:Boolean})],iS.prototype,"basic",void 0),iS=iN([(0,h.EM)("w3m-connecting-wc-view")],iS);var iT=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let iR=class extends r.WF{constructor(){super(),this.unsubscribe=[],this.isMobile=d.w.isMobile(),this.remoteFeatures=o.H.state.remoteFeatures,this.unsubscribe.push(o.H.subscribeKey("remoteFeatures",e=>this.remoteFeatures=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){if(this.isMobile){let{featured:e,recommended:t}=tc.N.state,{customWallets:i}=o.H.state,a=ei.i.getRecentWallets(),n=e.length||t.length||i?.length||a.length;return(0,r.qy)`<wui-flex flexDirection="column" gap="2" .margin=${["1","3","3","3"]}> 4811 ${n?(0,r.qy)`<w3m-connector-list></w3m-connector-list>`:null} 4812 <w3m-all-wallets-widget></w3m-all-wallets-widget> 4813 </wui-flex>`}return(0,r.qy)`<wui-flex flexDirection="column" .padding=${["0","0","4","0"]}> 4814 <w3m-connecting-wc-view ?basic=${!0} .displayBranding=${!1}></w3m-connecting-wc-view> 4815 <wui-flex flexDirection="column" .padding=${["0","3","0","3"]}> 4816 <w3m-all-wallets-widget></w3m-all-wallets-widget> 4817 </wui-flex> 4818 </wui-flex> 4819 ${this.reownBrandingTemplate()} `}reownBrandingTemplate(){return this.remoteFeatures?.reownBranding?(0,r.qy)` <wui-flex flexDirection="column" .padding=${["1","0","1","0"]}> 4820 <wui-ux-by-reown></wui-ux-by-reown> 4821 </wui-flex>`:null}};iT([(0,a.wk)()],iR.prototype,"isMobile",void 0),iT([(0,a.wk)()],iR.prototype,"remoteFeatures",void 0),iR=iT([(0,h.EM)("w3m-connecting-wc-basic-view")],iR);var iI=i(62137);let iP=(0,r.AH)` 4822 .continue-button-container { 4823 width: 100%; 4824 } 4825`;var iO=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let iM=class extends r.WF{constructor(){super(...arguments),this.loading=!1}render(){return(0,r.qy)` 4826 <wui-flex 4827 flexDirection="column" 4828 alignItems="center" 4829 gap="6" 4830 .padding=${["0","0","4","0"]} 4831 > 4832 ${this.onboardingTemplate()} ${this.buttonsTemplate()} 4833 <wui-link 4834 @click=${()=>{d.w.openHref(iI.T.URLS.FAQ,"_blank")}} 4835 > 4836 Learn more about names 4837 <wui-icon color="inherit" slot="iconRight" name="externalLink"></wui-icon> 4838 </wui-link> 4839 </wui-flex> 4840 `}onboardingTemplate(){return(0,r.qy)` <wui-flex 4841 flexDirection="column" 4842 gap="6" 4843 alignItems="center" 4844 .padding=${["0","6","0","6"]} 4845 > 4846 <wui-flex gap="3" alignItems="center" justifyContent="center"> 4847 <wui-icon-box icon="id" size="xl" iconSize="xxl" color="default"></wui-icon-box> 4848 </wui-flex> 4849 <wui-flex flexDirection="column" alignItems="center" gap="3"> 4850 <wui-text align="center" variant="lg-medium" color="primary"> 4851 Choose your account name 4852 </wui-text> 4853 <wui-text align="center" variant="md-regular" color="primary"> 4854 Finally say goodbye to 0x addresses, name your account to make it easier to exchange 4855 assets 4856 </wui-text> 4857 </wui-flex> 4858 </wui-flex>`}buttonsTemplate(){return(0,r.qy)`<wui-flex 4859 .padding=${["0","8","0","8"]} 4860 gap="3" 4861 class="continue-button-container" 4862 > 4863 <wui-button 4864 fullWidth 4865 .loading=${this.loading} 4866 size="lg" 4867 borderRadius="xs" 4868 @click=${this.handleContinue.bind(this)} 4869 >Choose name 4870 </wui-button>
4870 4871 </wui-flex>`}handleContinue(){Y.I.push("RegisterAccountName"),W.E.sendEvent({type:"track",event:"OPEN_ENS_FLOW",properties:{isSmartAccount:(0,el.lj)(s.W.state.activeChain)===ew.Vl.ACCOUNT_TYPES.SMART_ACCOUNT}})}};iM.styles=iP,iO([(0,a.wk)()],iM.prototype,"loading",void 0),iM=iO([(0,h.EM)("w3m-choose-account-name-view")],iM);let iW=class extends r.WF{constructor(){super(...arguments),this.wallet=Y.I.state.data?.wallet}render(){if(!this.wallet)throw Error("w3m-downloads-view");return(0,r.qy)` 4872 <wui-flex gap="2" flexDirection="column" .padding=${["3","3","4","3"]}> 4873 ${this.chromeTemplate()} ${this.iosTemplate()} ${this.androidTemplate()} 4874 ${this.homepageTemplate()} 4875 </wui-flex> 4876 `}chromeTemplate(){return this.wallet?.chrome_store?(0,r.qy)`<wui-list-item 4877 variant="icon" 4878 icon="chromeStore" 4879 iconVariant="square" 4880 @click=${this.onChromeStore.bind(this)} 4881 chevron 4882 > 4883 <wui-text variant="md-medium" color="primary">Chrome Extension</wui-text> 4884 </wui-list-item>`:null}iosTemplate(){return this.wallet?.app_store?(0,r.qy)`<wui-list-item 4885 variant="icon" 4886 icon="appStore" 4887 iconVariant="square" 4888 @click=${this.onAppStore.bind(this)} 4889 chevron 4890 > 4891 <wui-text variant="md-medium" color="primary">iOS App</wui-text> 4892 </wui-list-item>`:null}androidTemplate(){return this.wallet?.play_store?(0,r.qy)`<wui-list-item 4893 variant="icon" 4894 icon="playStore" 4895 iconVariant="square" 4896 @click=${this.onPlayStore.bind(this)} 4897 chevron 4898 > 4899 <wui-text variant="md-medium" color="primary">Android App</wui-text> 4900 </wui-list-item>`:null}homepageTemplate(){return this.wallet?.homepage?(0,r.qy)` 4901 <wui-list-item 4902 variant="icon" 4903 icon="browser" 4904 iconVariant="square-blue" 4905 @click=${this.onHomePage.bind(this)} 4906 chevron 4907 > 4908 <wui-text variant="md-medium" color="primary">Website</wui-text> 4909 </wui-list-item> 4910 `:null}openStore(e){e.href&&this.wallet&&(W.E.sendEvent({type:"track",event:"GET_WALLET",properties:{name:this.wallet.name,walletRank:this.wallet.order,explorerId:this.wallet.id,type:e.type}}),d.w.openHref(e.href,"_blank"))}onChromeStore(){this.wallet?.chrome_store&&this.openStore({href:this.wallet.chrome_store,type:"chrome_store"})}onAppStore(){this.wallet?.app_store&&this.openStore({href:this.wallet.app_store,type:"app_store"})}onPlayStore(){this.wallet?.play_store&&this.openStore({href:this.wallet.play_store,type:"play_store"})}onHomePage(){this.wallet?.homepage&&this.openStore({href:this.wallet.homepage,type:"homepage"})}};iW=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o}([(0,h.EM)("w3m-downloads-view")],iW);let iL=class extends r.WF{render(){return(0,r.qy)` 4911 <wui-flex flexDirection="column" .padding=${["0","3","3","3"]} gap="2"> 4912 ${this.recommendedWalletsTemplate()} 4913 <w3m-list-wallet 4914 name="Explore all" 4915 showAllWallets 4916 walletIcon="allWallets" 4917 icon="externalLink" 4918 size="sm" 4919 @click=${()=>{d.w.openHref("https://walletconnect.com/explorer?type=wallet","_blank")}} 4920 ></w3m-list-wallet> 4921 </wui-flex> 4922 `}recommendedWalletsTemplate(){let{recommended:e,featured:t}=tc.N.state,{customWallets:i}=o.H.state;return[...t,...i??[],...e].slice(0,4).map((e,t)=>(0,r.qy)` 4923 <w3m-list-wallet 4924 displayIndex=${t} 4925 name=${e.name??"Unknown"} 4926 tagVariant="accent" 4927 size="sm" 4928 imageSrc=${(0,n.J)(c.$.getWalletImage(e))} 4929 @click=${()=>{this.onWalletClick(e)}} 4930 ></w3m-list-wallet> 4931 `)}onWalletClick(e){W.E.sendEvent({type:"track",event:"GET_WALLET",properties:{name:e.name,walletRank:void 0,explorerId:e.id,type:"homepage"}}),d.w.openHref(e.homepage??"https://walletconnect.com/explorer","_blank")}};iL=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o}([(0,h.EM)("w3m-get-wallet-view")],iL),i(66266);var iD=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let iU=class extends r.WF{constructor(){super(...arguments),this.data=[]}render(){return(0,r.qy)` 4932 <wui-flex flexDirection="column" alignItems="center" gap="4"> 4933 ${this.data.map(e=>(0,r.qy)` 4934 <wui-flex flexDirection="column" alignItems="center" gap="5"> 4935 <wui-flex flexDirection="row" justifyContent="center" gap="1"> 4936 ${e.images.map(e=>(0,r.qy)`<wui-visual size="sm" name=${e}></wui-visual>`)} 4937 </wui-flex> 4938 </wui-flex> 4939 <wui-flex flexDirection="column" alignItems="center" gap="1"> 4940 <wui-text variant="md-regular" color="primary" align="center">${e.title}</wui-text> 4941 <wui-text variant="sm-regular" color="secondary" align="center" 4942 >${e.text}</wui-text 4943 > 4944 </wui-flex> 4945 `)} 4946 </wui-flex> 4947 `}};iD([(0,a.MZ)({type:Array})],iU.prototype,"data",void 0),iU=iD([(0,h.EM)("w3m-help-widget")],iU);let iF=[{images:["login","profile","lock"],title:"One login for all of web3",text:"Log in to any app by connecting your wallet. Say goodbye to countless passwords!"},{images:["defi","nft","eth"],title:"A home for your digital assets",text:"A wallet lets you store, send and receive digital assets like cryptocurrencies and NFTs."},{images:["browser","noun","dao"],title:"Your gateway to a new web",text:"With your wallet, you can explore and interact with DeFi, NFTs, DAOs, and much more."}],iH=class extends r.WF{render(){return(0,r.qy)` 4948 <wui-flex 4949 flexDirection="column" 4950 .padding=${["6","5","5","5"]} 4951 alignItems="center" 4952 gap="5" 4953 > 4954 <w3m-help-widget .data=${iF}></w3m-help-widget> 4955 <wui-button variant="accent-primary" size="md" @click=${this.onGetWallet.bind(this)}> 4956 <wui-icon color="inherit" slot="iconLeft" name="wallet"></wui-icon> 4957 Get a wallet 4958 </wui-button>
4958 4959 </wui-flex> 4960 `}onGetWallet(){W.E.sendEvent({type:"track",event:"CLICK_GET_WALLET_HELP"}),Y.I.push("GetWallet")}};iH=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o}([(0,h.EM)("w3m-what-is-a-wallet-view")],iH);let ij=(0,h.AH)` 4961 wui-flex { 4962 max-height: clamp(360px, 540px, 80vh); 4963 overflow: scroll; 4964 scrollbar-width: none; 4965 transition: opacity ${({durations:e})=>e.lg} 4966 ${({easings:e})=>e["ease-out-power-2"]}; 4967 will-change: opacity; 4968 } 4969 wui-flex::-webkit-scrollbar { 4970 display: none; 4971 } 4972 wui-flex.disabled { 4973 opacity: 0.3; 4974 pointer-events: none; 4975 user-select: none; 4976 } 4977`;var iZ=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let iB=class extends r.WF{constructor(){super(),this.unsubscribe=[],this.checked=tR.o.state.isLegalCheckboxChecked,this.unsubscribe.push(tR.o.subscribeKey("isLegalCheckboxChecked",e=>{this.checked=e}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let{termsConditionsUrl:e,privacyPolicyUrl:t}=o.H.state,i=o.H.state.features?.legalCheckbox,a=!!(e||t)&&!!i,s=a&&!this.checked;return(0,r.qy)` 4978 <w3m-legal-checkbox></w3m-legal-checkbox> 4979 <wui-flex 4980 flexDirection="column" 4981 .padding=${a?["0","3","3","3"]:"3"} 4982 gap="2" 4983 class=${(0,n.J)(s?"disabled":void 0)} 4984 > 4985 <w3m-wallet-login-list tabIdx=${(0,n.J)(s?-1:void 0)}></w3m-wallet-login-list> 4986 </wui-flex> 4987 `}};iB.styles=ij,iZ([(0,a.wk)()],iB.prototype,"checked",void 0),iB=iZ([(0,h.EM)("w3m-connect-wallets-view")],iB);var iz=i(17964);let iq=(0,f.AH)` 4988 :host { 4989 display: block; 4990 width: 120px; 4991 height: 120px; 4992 } 4993 4994 svg { 4995 width: 120px; 4996 height: 120px; 4997 fill: none; 4998 stroke: transparent; 4999 stroke-linecap: round; 5000 } 5001 5002 use { 5003 stroke: ${e=>e.colors.accent100}; 5004 stroke-width: 2px; 5005 stroke-dasharray: 54, 118; 5006 stroke-dashoffset: 172; 5007 animation: dash 1s linear infinite; 5008 } 5009 5010 @keyframes dash { 5011 to { 5012 stroke-dashoffset: 0px; 5013 } 5014 } 5015`,iV=class extends r.WF{render(){return(0,r.qy)` 5016 <svg viewBox="0 0 54 59"> 5017 <path 5018 id="wui-loader-path" 5019 d="M17.22 5.295c3.877-2.277 5.737-3.363 7.72-3.726a11.44 11.44 0 0 1 4.12 0c1.983.363 3.844 1.45 7.72 3.726l6.065 3.562c3.876 2.276 5.731 3.372 7.032 4.938a11.896 11.896 0 0 1 2.06 3.63c.683 1.928.688 4.11.688 8.663v7.124c0 4.553-.005 6.735-.688 8.664a11.896 11.896 0 0 1-2.06 3.63c-1.3 1.565-3.156 2.66-7.032 4.937l-6.065 3.563c-3.877 2.276-5.737 3.362-7.72 3.725a11.46 11.46 0 0 1-4.12 0c-1.983-.363-3.844-1.449-7.72-3.726l-6.065-3.562c-3.876-2.276-5.731-3.372-7.032-4.938a11.885 11.885 0 0 1-2.06-3.63c-.682-1.928-.688-4.11-.688-8.663v-7.124c0-4.553.006-6.735.688-8.664a11.885 11.885 0 0 1 2.06-3.63c1.3-1.565 3.156-2.66 7.032-4.937l6.065-3.562Z" 5020 /> 5021 <use xlink:href="#wui-loader-path"></use> 5022 </svg> 5023 `}};iV.styles=[p.W5,iq],iV=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o}([(0,g.E)("wui-loading-hexagon")],iV),i(37892);let iK=(0,r.AH)` 5024 @keyframes shake { 5025 0% { 5026 transform: translateX(0); 5027 } 5028 25% { 5029 transform: translateX(3px); 5030 } 5031 50% { 5032 transform: translateX(-3px); 5033 } 5034 75% { 5035 transform: translateX(3px); 5036 } 5037 100% { 5038 transform: translateX(0); 5039 } 5040 } 5041 5042 wui-flex:first-child:not(:only-child) { 5043 position: relative; 5044 } 5045 5046 wui-loading-hexagon { 5047 position: absolute; 5048 } 5049 5050 wui-icon-box { 5051 position: absolute; 5052 right: 4px; 5053 bottom: 0; 5054 opacity: 0; 5055 transform: scale(0.5); 5056 z-index: 1; 5057 } 5058 5059 wui-button { 5060 display: none; 5061 } 5062 5063 [data-error='true'] wui-icon-box { 5064 opacity: 1; 5065 transform: scale(1); 5066 } 5067 5068 [data-error='true'] > wui-flex:first-child { 5069 animation: shake 250ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both; 5070 } 5071 5072 wui-button[data-retry='true'] { 5073 display: block; 5074 opacity: 1; 5075 } 5076`;var iG=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let iJ=class extends r.WF{constructor(){super(),this.network=Y.I.state.data?.network,this.unsubscribe=[],this.showRetry=!1,this.error=!1}
5076disconnectedCallback(){this.unsubscribe.forEach(e=>e())}firstUpdated(){this.onSwitchNetwork()}render(){if(!this.network)throw Error("w3m-network-switch-view: No network provided");this.onShowRetry();let e=this.getLabel(),t=this.getSubLabel();return(0,r.qy)` 5077 <wui-flex 5078 data-error=${this.error} 5079 flexDirection="column" 5080 alignItems="center" 5081 .padding=${["10","5","10","5"]} 5082 gap="7" 5083 > 5084 <wui-flex justifyContent="center" alignItems="center"> 5085 <wui-network-image 5086 size="lg" 5087 imageSrc=${(0,n.J)(c.$.getNetworkImage(this.network))} 5088 ></wui-network-image> 5089 5090 ${this.error?null:(0,r.qy)`<wui-loading-hexagon></wui-loading-hexagon>`} 5091 5092 <wui-icon-box color="error" icon="close" size="sm"></wui-icon-box> 5093 </wui-flex> 5094 5095 <wui-flex flexDirection="column" alignItems="center" gap="2"> 5096 <wui-text align="center" variant="h6-regular" color="primary">${e}</wui-text> 5097 <wui-text align="center" variant="md-regular" color="secondary">${t}</wui-text> 5098 </wui-flex> 5099 5100 <wui-button 5101 data-retry=${this.showRetry} 5102 variant="accent-primary" 5103 size="md" 5104 .disabled=${!this.error} 5105 @click=${this.onSwitchNetwork.bind(this)} 5106 > 5107 <wui-icon color="inherit" slot="iconLeft" name="refresh"></wui-icon> 5108 Try again 5109 </wui-button> 5110 </wui-flex> 5111 `}getSubLabel(){let e=K.a.getConnectorId(s.W.state.activeChain);return K.a.getAuthConnector()&&e===V.o.CONNECTOR_ID.AUTH?"":this.error?"Switch can be declined if chain is not supported by a wallet or previous request is still active":"Accept connection request in your wallet"}getLabel(){let e=K.a.getConnectorId(s.W.state.activeChain);return K.a.getAuthConnector()&&e===V.o.CONNECTOR_ID.AUTH?`Switching to ${this.network?.name??"Unknown"} network...`:this.error?"Switch declined":"Approve in wallet"}onShowRetry(){if(this.error&&!this.showRetry){this.showRetry=!0;let e=this.shadowRoot?.querySelector("wui-button");e?.animate([{opacity:0},{opacity:1}],{fill:"forwards",easing:"ease"})}}async onSwitchNetwork(){try{this.error=!1,s.W.state.activeChain!==this.network?.chainNamespace&&s.W.setIsSwitchingNamespace(!0),this.network&&(await s.W.switchActiveNetwork(this.network),await iz.U.isAuthenticated()&&Y.I.goBack())}catch(e){this.error=!0}}};iJ.styles=iK,iG([(0,a.wk)()],iJ.prototype,"showRetry",void 0),iG([(0,a.wk)()],iJ.prototype,"error",void 0),iJ=iG([(0,h.EM)("w3m-network-switch-view")],iJ);var iY=i(93603);i(74039);let iX=(0,f.AH)` 5112 :host { 5113 width: 100%; 5114 } 5115 5116 button { 5117 display: flex; 5118 align-items: center; 5119 justify-content: space-between; 5120 padding: ${({spacing:e})=>e[3]}; 5121 width: 100%; 5122 background-color: transparent; 5123 border-radius: ${({borderRadius:e})=>e[4]}; 5124 } 5125 5126 wui-text { 5127 text-transform: capitalize; 5128 } 5129 5130 @media (hover: hover) { 5131 button:hover:enabled { 5132 background-color: ${({tokens:e})=>e.theme.foregroundPrimary}; 5133 } 5134 } 5135 5136 button:disabled { 5137 opacity: 0.5; 5138 cursor: not-allowed; 5139 } 5140`;var iQ=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let i0=class extends r.WF{constructor(){super(...arguments),this.imageSrc=void 0,this.name="Ethereum",this.disabled=!1}render(){return(0,r.qy)` 5141 <button ?disabled=${this.disabled} tabindex=${(0,n.J)(this.tabIdx)}> 5142 <wui-flex gap="2" alignItems="center"> 5143 ${this.imageTemplate()} 5144 <wui-text variant="lg-regular" color="primary">${this.name}</wui-text> 5145 </wui-flex> 5146 <wui-icon name="chevronRight" size="lg" color="default"></wui-icon> 5147 </button> 5148 `}imageTemplate(){return this.imageSrc?(0,r.qy)`<wui-image ?boxed=${!0} src=${this.imageSrc}></wui-image>`:(0,r.qy)`<wui-image 5149 ?boxed=${!0} 5150 icon="networkPlaceholder" 5151 size="lg" 5152 iconColor="default" 5153 ></wui-image>`}};i0.styles=[p.W5,p.fD,iX],iQ([(0,a.MZ)()],i0.prototype,"imageSrc",void 0),iQ([(0,a.MZ)()],i0.prototype,"name",void 0),iQ([(0,a.MZ)()],i0.prototype,"tabIdx",void 0),iQ([(0,a.MZ)({type:Boolean})],i0.prototype,"disabled",void 0),i0=iQ([(0,g.E)("wui-list-network")],i0);let i1=(0,r.AH)` 5154 .container { 5155 max-height: 360px; 5156 overflow: auto; 5157 } 5158 5159 .container::-webkit-scrollbar {
5160 display: none; 5161 } 5162`;var i2=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let i3=class extends r.WF{constructor(){super(),this.unsubscribe=[],this.network=s.W.state.activeCaipNetwork,this.requestedCaipNetworks=s.W.getCaipNetworks(),this.search="",this.onDebouncedSearch=d.w.debounce(e=>{this.search=e},100),this.unsubscribe.push(l.j.subscribeNetworkImages(()=>this.requestUpdate()),s.W.subscribeKey("activeCaipNetwork",e=>this.network=e),s.W.subscribe(()=>{this.requestedCaipNetworks=s.W.getAllRequestedCaipNetworks()}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,r.qy)` 5163 ${this.templateSearchInput()} 5164 <wui-flex 5165 class="container" 5166 .padding=${["0","3","3","3"]} 5167 flexDirection="column" 5168 gap="2" 5169 > 5170 ${this.networksTemplate()} 5171 </wui-flex> 5172 `}templateSearchInput(){return(0,r.qy)` 5173 <wui-flex gap="2" .padding=${["0","3","3","3"]}> 5174 <wui-input-text 5175 @inputChange=${this.onInputChange.bind(this)} 5176 class="network-search-input" 5177 size="md" 5178 placeholder="Search network" 5179 icon="search" 5180 ></wui-input-text> 5181 </wui-flex> 5182 `}onInputChange(e){this.onDebouncedSearch(e.detail)}networksTemplate(){let e=s.W.getAllApprovedCaipNetworkIds(),t=d.w.sortRequestedNetworks(e,this.requestedCaipNetworks);return this.search?this.filteredNetworks=t?.filter(e=>e?.name?.toLowerCase().includes(this.search.toLowerCase())):this.filteredNetworks=t,this.filteredNetworks?.map(e=>(0,r.qy)` 5183 <wui-list-network 5184 .selected=${this.network?.id===e.id} 5185 imageSrc=${(0,n.J)(c.$.getNetworkImage(e))} 5186 type="network" 5187 name=${e.name??e.id} 5188 @click=${()=>this.onSwitchNetwork(e)} 5189 .disabled=${s.W.isCaipNetworkDisabled(e)} 5190 data-testid=${`w3m-network-switch-${e.name??e.id}`} 5191 ></wui-list-network> 5192 `)}onSwitchNetwork(e){iY.L.onSwitchNetwork({network:e})}};i3.styles=i1,i2([(0,a.wk)()],i3.prototype,"network",void 0),i2([(0,a.wk)()],i3.prototype,"requestedCaipNetworks",void 0),i2([(0,a.wk)()],i3.prototype,"filteredNetworks",void 0),i2([(0,a.wk)()],i3.prototype,"search",void 0),i3=i2([(0,h.EM)("w3m-networks-view")],i3);let i5=(0,h.AH)` 5193 @keyframes shake { 5194 0% { 5195 transform: translateX(0); 5196 } 5197 25% { 5198 transform: translateX(3px); 5199 } 5200 50% { 5201 transform: translateX(-3px); 5202 } 5203 75% { 5204 transform: translateX(3px); 5205 } 5206 100% { 5207 transform: translateX(0); 5208 } 5209 } 5210 5211 wui-flex:first-child:not(:only-child) { 5212 position: relative; 5213 } 5214 5215 wui-loading-thumbnail { 5216 position: absolute; 5217 } 5218 5219 wui-visual { 5220 border-radius: calc( 5221 ${({borderRadius:e})=>e["1"]} * 9 - ${({borderRadius:e})=>e["3"]} 5222 ); 5223 position: relative; 5224 overflow: hidden; 5225 } 5226 5227 wui-visual::after { 5228 content: ''; 5229 display: block; 5230 width: 100%; 5231 height: 100%; 5232 position: absolute; 5233 inset: 0; 5234 border-radius: calc( 5235 ${({borderRadius:e})=>e["1"]} * 9 - ${({borderRadius:e})=>e["3"]} 5236 ); 5237 box-shadow: inset 0 0 0 1px ${({tokens:e})=>e.core.glass010}; 5238 } 5239 5240 wui-icon-box { 5241 position: absolute; 5242 right: calc(${({spacing:e})=>e["1"]} * -1); 5243 bottom: calc(${({spacing:e})=>e["1"]} * -1); 5244 opacity: 0; 5245 transform: scale(0.5); 5246 transition: 5247 opacity ${({durations:e})=>e.lg} ${({easings:e})=>e["ease-out-power-2"]}, 5248 transform ${({durations:e})=>e.lg} 5249 ${({easings:e})=>e["ease-out-power-2"]}; 5250 will-change: opacity, transform; 5251 } 5252 5253 wui-text[align='center'] { 5254 width: 100%; 5255 padding: 0px ${({spacing:e})=>e["4"]}; 5256 } 5257 5258 [data-error='true'] wui-icon-box { 5259 opacity: 1; 5260 transform: scale(1); 5261 } 5262 5263 [data-error='true'] > wui-flex:first-child { 5264 animation: shake 250ms ${({easings:e})=>e["ease-out-power-2"]} both; 5265 } 5266 5267 [data-retry='false'] wui-link { 5268 display: none; 5269 } 5270 5271 [data-retry='true'] wui-link { 5272 display: block; 5273 opacity: 1; 5274 } 5275 5276 wui-link { 5277 padding: ${({spacing:e})=>e["01"]} ${({spacing:e})=>e["2"]}; 5278 } 5279 5280 .capitalize { 5281 text-transform: capitalize; 5282 } 5283`;var i4=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let i6={eip155:"eth",solana:"solana",bip122:"bitcoin",polkadot:void 0},i9=class extends r.WF{constructor(){super(...arguments),this.unsubscribe=[],this.switchToChain=Y.I.state.data?.switchToChain,this.caipNetwork=Y.I.state.data?.network,this.activeChain=s.W.state.activeChain}firstUpdated(){this.unsubscribe.push(s.W.subscribeKey("activeChain",e=>this.activeChain=e))}
5283disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.switchToChain?V.o.CHAIN_NAME_MAP[this.switchToChain]:"supported";if(!this.switchToChain)return null;let t=V.o.CHAIN_NAME_MAP[this.switchToChain];return(0,r.qy)` 5284 <wui-flex 5285 flexDirection="column" 5286 alignItems="center" 5287 .padding=${["4","2","2","2"]} 5288 gap="4" 5289 > 5290 <wui-flex justifyContent="center" flexDirection="column" alignItems="center" gap="2"> 5291 <wui-visual 5292 size="md" 5293 name=${(0,n.J)(i6[this.switchToChain])} 5294 ></wui-visual> 5295 <wui-flex gap="2" flexDirection="column" alignItems="center"> 5296 <wui-text 5297 data-testid=${`w3m-switch-active-chain-to-${t}`} 5298 variant="lg-regular" 5299 color="primary" 5300 align="center" 5301 >Switch to <span class="capitalize">${t}</span></wui-text 5302 > 5303 <wui-text variant="md-regular" color="secondary" align="center"> 5304 Connected wallet doesn't support connecting to ${e} chain. You 5305 need to connect with a different wallet. 5306 </wui-text> 5307 </wui-flex> 5308 <wui-button 5309 data-testid="w3m-switch-active-chain-button" 5310 size="md" 5311 @click=${this.switchActiveChain.bind(this)} 5312 >Switch</wui-button 5313 > 5314 </wui-flex> 5315 </wui-flex> 5316 `}async switchActiveChain(){this.switchToChain&&(s.W.setIsSwitchingNamespace(!0),K.a.setFilterByNamespace(this.switchToChain),this.caipNetwork?await s.W.switchActiveNetwork(this.caipNetwork):s.W.setActiveNamespace(this.switchToChain),Y.I.reset("Connect"))}};i9.styles=i5,i4([(0,a.MZ)()],i9.prototype,"activeChain",void 0),i9=i4([(0,h.EM)("w3m-switch-active-chain-view")],i9);let i8=[{images:["network","layers","system"],title:"The system’s nuts and bolts",text:"A network is what brings the blockchain to life, as this technical infrastructure allows apps to access the ledger and smart contract services."},{images:["noun","defiAlt","dao"],title:"Designed for different uses",text:"Each network is designed differently, and may therefore suit certain apps and experiences."}],i7=class extends r.WF{render(){return(0,r.qy)` 5317 <wui-flex 5318 flexDirection="column" 5319 .padding=${["6","5","5","5"]} 5320 alignItems="center" 5321 gap="5" 5322 > 5323 <w3m-help-widget .data=${i8}></w3m-help-widget> 5324 <wui-button 5325 variant="accent-primary" 5326 size="md" 5327 @click=${()=>{d.w.openHref("https://ethereum.org/en/developers/docs/networks/","_blank")}} 5328 > 5329 Learn more 5330 <wui-icon color="inherit" slot="iconRight" name="externalLink"></wui-icon> 5331 </wui-button> 5332 </wui-flex> 5333 `}};i7=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o}([(0,h.EM)("w3m-what-is-a-network-view")],i7);let re=(0,r.AH)` 5334 :host > wui-flex { 5335 max-height: clamp(360px, 540px, 80vh); 5336 overflow: scroll; 5337 scrollbar-width: none; 5338 } 5339 5340 :host > wui-flex::-webkit-scrollbar {
5341 display: none; 5342 } 5343`;var rt=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let ri=class extends r.WF{constructor(){super(),this.swapUnsupportedChain=Y.I.state.data?.swapUnsupportedChain,this.unsubscribe=[],this.disconnecting=!1,this.remoteFeatures=o.H.state.remoteFeatures,this.unsubscribe.push(l.j.subscribeNetworkImages(()=>this.requestUpdate()),o.H.subscribeKey("remoteFeatures",e=>{this.remoteFeatures=e}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,r.qy)` 5344 <wui-flex class="container" flexDirection="column" gap="0"> 5345 <wui-flex 5346 class="container" 5347 flexDirection="column" 5348 .padding=${["3","5","2","5"]} 5349 alignItems="center" 5350 gap="5" 5351 > 5352 ${this.descriptionTemplate()} 5353 </wui-flex> 5354 5355 <wui-flex flexDirection="column" padding="3" gap="2"> ${this.networksTemplate()} </wui-flex> 5356 5357 <wui-separator text="or"></wui-separator> 5358 <wui-flex flexDirection="column" padding="3" gap="2"> 5359 <wui-list-item 5360 variant="icon" 5361 iconVariant="overlay" 5362 icon="signOut" 5363 ?chevron=${!1} 5364 .loading=${this.disconnecting} 5365 @click=${this.onDisconnect.bind(this)} 5366 data-testid="disconnect-button" 5367 > 5368 <wui-text variant="md-medium" color="secondary">Disconnect</wui-text> 5369 </wui-list-item> 5370 </wui-flex> 5371 </wui-flex> 5372 `}descriptionTemplate(){return this.swapUnsupportedChain?(0,r.qy)` 5373 <wui-text variant="sm-regular" color="secondary" align="center"> 5374 The swap feature doesn’t support your current network. Switch to an available option to 5375 continue. 5376 </wui-text> 5377 `:(0,r.qy)` 5378 <wui-text variant="sm-regular" color="secondary" align="center"> 5379 This app doesn’t support your current network. Switch to an available option to continue. 5380 </wui-text> 5381 `}networksTemplate(){let e=s.W.getAllRequestedCaipNetworks(),t=s.W.getAllApprovedCaipNetworkIds(),i=d.w.sortRequestedNetworks(t,e);return(this.swapUnsupportedChain?i.filter(e=>G.oU.SWAP_SUPPORTED_NETWORKS.includes(e.caipNetworkId)):i).map(e=>(0,r.qy)` 5382 <wui-list-network 5383 imageSrc=${(0,n.J)(c.$.getNetworkImage(e))} 5384 name=${e.name??"Unknown"} 5385 @click=${()=>this.onSwitchNetwork(e)} 5386 > 5387 </wui-list-network> 5388 `)}async onDisconnect(){try{this.disconnecting=!0;let e=s.W.state.activeChain,t=X.x.getConnections(e).length>0,i=e&&K.a.state.activeConnectorIds[e],r=this.remoteFeatures?.multiWallet;await X.x.disconnect(r?{id:i,namespace:e}:{}),t&&r&&(Y.I.push("ProfileWallets"),J.P.showSuccess("Wallet deleted"))}catch{W.E.sendEvent({type:"track",event:"DISCONNECT_ERROR",properties:{message:"Failed to disconnect"}}),J.P.showError("Failed to disconnect")}finally{this.disconnecting=!1}}async onSwitchNetwork(e){let t=s.W.getActiveCaipAddress(),i=s.W.getAllApprovedCaipNetworkIds(),r=(s.W.getNetworkProp("supportsAllNetworks",e.chainNamespace),Y.I.state.data);t?i?.includes(e.caipNetworkId)?await s.W.switchActiveNetwork(e):Y.I.push("SwitchNetwork",{...r,network:e}):t||(s.W.setActiveCaipNetwork(e),Y.I.push("Connect"))}};ri.styles=re,rt([(0,a.wk)()],ri.prototype,"disconnecting",void 0),rt([(0,a.wk)()],ri.prototype,"remoteFeatures",void 0),ri=rt([(0,h.EM)("w3m-unsupported-chain-view")],ri);let rr=(0,f.AH)` 5389 wui-flex { 5390 width: 100%; 5391 display: flex; 5392 align-items: center; 5393 justify-content: center; 5394 gap: ${({spacing:e})=>e[2]}; 5395 border-radius: ${({borderRadius:e})=>e[4]}; 5396 padding: ${({spacing:e})=>e[3]}; 5397 } 5398 5399 /* -- Types --------------------------------------------------------- */ 5400 wui-flex[data-type='info'] { 5401 color: ${({tokens:e})=>e.theme.textSecondary}; 5402 background-color: ${({tokens:e})=>e.theme.foregroundPrimary}; 5403 } 5404 5405 wui-flex[data-type='success'] { 5406 color: ${({tokens:e})=>e.core.textSuccess}; 5407 background-color: ${({tokens:e})=>e.core.backgroundSuccess}; 5408 } 5409 5410 wui-flex[data-type='error'] { 5411 color: ${({tokens:e})=>e.core.textError}; 5412 background-color: ${({tokens:e})=>e.core.backgroundError}; 5413 } 5414 5415 wui-flex[data-type='warning'] { 5416 color: ${({tokens:e})=>e.core.textWarning}; 5417 background-color: ${({tokens:e})=>e.core.backgroundWarning}; 5418 } 5419 5420 wui-flex[data-type='info'] wui-icon-box { 5421 background-color: ${({tokens:e})=>e.theme.foregroundSecondary}; 5422 } 5423 5424 wui-flex[data-type='success'] wui-icon-box { 5425 background-color: ${({tokens:e})=>e.core.backgroundSuccess}; 5426 } 5427 5428 wui-flex[data-type='error'] wui-icon-box { 5429 background-color: ${({tokens:e})=>e.core.backgroundError}; 5430 } 5431 5432 wui-flex[data-type='warning'] wui-icon-box { 5433 background-color: ${({tokens:e})=>e.core.backgroundWarning}; 5434 } 5435 5436 wui-text { 5437 flex: 1; 5438 } 5439`;var ra=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let rn=class extends r.WF{constructor(){super(...arguments),this.icon="externalLink",this.text="",this.type="info"}render(){return(0,r.qy)` 5440 <wui-flex alignItems="center" data-type=${this.type}> 5441 <wui-icon-box size="sm" color="inherit" icon=${this.icon}></wui-icon-box> 5442 <wui-text variant="md-regular" color="inherit">${this.text}</wui-text> 5443 </wui-flex> 5444 `}};rn.styles=[p.W5,p.fD,rr],ra([(0,a.MZ)()],rn.prototype,"icon",void 0),ra([(0,a.MZ)()],rn.prototype,"text",void 0),ra([(0,a.MZ)()],rn.prototype,"type",void 0),rn=ra([(0,g.E)("wui-banner")],rn);let ro=(0,r.AH)` 5445 :host > wui-flex { 5446 max-height: clamp(360px, 540px, 80vh); 5447 overflow: scroll; 5448 scrollbar-width: none; 5449 } 5450 5451 :host > wui-flex::-webkit-scrollbar {
5452 display: none; 5453 } 5454`,rs=class extends r.WF{constructor(){super(),this.unsubscribe=[]}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,r.qy)` <wui-flex flexDirection="column" .padding=${["2","3","3","3"]} gap="2"> 5455 <wui-banner 5456 icon="warningCircle" 5457 text="You can only receive assets on these networks" 5458 ></wui-banner> 5459 ${this.networkTemplate()} 5460 </wui-flex>`}networkTemplate(){let e=s.W.getAllRequestedCaipNetworks(),t=s.W.getAllApprovedCaipNetworkIds(),i=s.W.state.activeCaipNetwork,a=s.W.checkIfSmartAccountEnabled(),o=d.w.sortRequestedNetworks(t,e);if(a&&(0,el.lj)(i?.chainNamespace)===ew.Vl.ACCOUNT_TYPES.SMART_ACCOUNT){if(!i)return null;o=[i]}return o.filter(e=>e.chainNamespace===i?.chainNamespace).map(e=>(0,r.qy)` 5461 <wui-list-network 5462 imageSrc=${(0,n.J)(c.$.getNetworkImage(e))} 5463 name=${e.name??"Unknown"} 5464 ?transparent=${!0} 5465 > 5466 </wui-list-network> 5467 `)}};rs.styles=ro,rs=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o}([(0,h.EM)("w3m-wallet-compatible-networks-view")],rs);let rl=(0,f.AH)` 5468 :host { 5469 display: flex; 5470 justify-content: center; 5471 align-items: center; 5472 width: 56px; 5473 height: 56px; 5474 box-shadow: 0 0 0 8px ${({tokens:e})=>e.theme.borderPrimary}; 5475 border-radius: ${({borderRadius:e})=>e[4]}; 5476 overflow: hidden; 5477 } 5478 5479 :host([data-border-radius-full='true']) { 5480 border-radius: 50px; 5481 } 5482 5483 wui-icon { 5484 width: 32px; 5485 height: 32px; 5486 } 5487`;var rc=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let rd=class extends r.WF{render(){return this.dataset.borderRadiusFull=this.borderRadiusFull?"true":"false",(0,r.qy)`${this.templateVisual()}`}templateVisual(){return this.imageSrc?(0,r.qy)`<wui-image src=${this.imageSrc} alt=${this.alt??""}></wui-image>`:(0,r.qy)`<wui-icon 5488 data-parent-size="md" 5489 size="inherit" 5490 color="inherit" 5491 name="wallet" 5492 ></wui-icon>`}};rd.styles=[p.W5,rl],rc([(0,a.MZ)()],rd.prototype,"imageSrc",void 0),rc([(0,a.MZ)()],rd.prototype,"alt",void 0),rc([(0,a.MZ)({type:Boolean})],rd.prototype,"borderRadiusFull",void 0),rd=rc([(0,g.E)("wui-visual-thumbnail")],rd);let ru=(0,h.AH)` 5493 :host { 5494 display: flex; 5495 justify-content: center; 5496 gap: ${({spacing:e})=>e["4"]}; 5497 } 5498 5499 wui-visual-thumbnail:nth-child(1) { 5500 z-index: 1; 5501 } 5502`,rh=class extends r.WF{constructor(){super(...arguments),this.dappImageUrl=o.H.state.metadata?.icons,this.walletImageUrl=s.W.getAccountData()?.connectedWalletInfo?.icon}firstUpdated(){let e=this.shadowRoot?.querySelectorAll("wui-visual-thumbnail");e?.[0]&&this.createAnimation(e[0],"translate(18px)"),e?.[1]&&this.createAnimation(e[1],"translate(-18px)")}render(){return(0,r.qy)` 5503 <wui-visual-thumbnail 5504 ?borderRadiusFull=${!0} 5505 .imageSrc=${this.dappImageUrl?.[0]} 5506 ></wui-visual-thumbnail> 5507 <wui-visual-thumbnail .imageSrc=${this.walletImageUrl}></wui-visual-thumbnail> 5508 `}createAnimation(e,t){e.animate([{transform:"translateX(0px)"},{transform:t}],{duration:1600,easing:"cubic-bezier(0.56, 0, 0.48, 1)",direction:"alternate",iterations:1/0})}};rh.styles=ru,rh=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o}([(0,h.EM)("w3m-siwx-sign-message-thumbnails")],rh);var rp=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let rm=class extends r.WF{constructor(){super(...arguments),this.dappName=o.H.state.metadata?.name,this.isCancelling=!1,this.isSigning=!1}render(){return(0,r.qy)` 5509 <wui-flex justifyContent="center" .padding=${["8","0","6","0"]}> 5510 <w3m-siwx-sign-message-thumbnails></w3m-siwx-sign-message-thumbnails> 5511 </wui-flex> 5512 <wui-flex .padding=${["0","20","5","20"]} gap="3" justifyContent="space-between"> 5513 <wui-text variant="lg-medium" align="center" color="primary" 5514 >${this.dappName??"Dapp"} needs to connect to your wallet</wui-text 5515 > 5516 </wui-flex> 5517 <wui-flex .padding=${["0","10","4","10"]} gap="3" justifyContent="space-between"> 5518 <wui-text variant="md-regular" align="center" color="secondary" 5519 >Sign this message to prove you own this wallet and proceed. Canceling will disconnect 5520 you.</wui-text 5521 > 5522 </wui-flex> 5523 <wui-flex .padding=${["4","5","5","5"]} gap="3" justifyContent="space-between"> 5524 <wui-button 5525 size="lg" 5526 borderRadius="xs" 5527 fullWidth 5528 variant="neutral-secondary" 5529 ?loading=${this.isCancelling} 5530 @click=${this.onCancel.bind(this)} 5531 data-testid="w3m-connecting-siwe-cancel" 5532 > 5533 ${this.isCancelling?"Cancelling...":"Cancel"} 5534 </wui-button>
5534 5535 <wui-button 5536 size="lg" 5537 borderRadius="xs" 5538 fullWidth 5539 variant="neutral-primary" 5540 @click=${this.onSign.bind(this)} 5541 ?loading=${this.isSigning} 5542 data-testid="w3m-connecting-siwe-sign" 5543 > 5544 ${this.isSigning?"Signing...":"Sign"} 5545 </wui-button> 5546 </wui-flex> 5547 `}async onSign(){this.isSigning=!0;try{await iz.U.requestSignMessage()}catch(e){if(e instanceof Error&&e.message.includes("OTP is required")){J.P.showError({message:"Something went wrong. We need to verify your account again."}),Y.I.replace("DataCapture");return}throw e}finally{this.isSigning=!1}}async onCancel(){this.isCancelling=!0,await iz.U.cancelSignMessage().finally(()=>this.isCancelling=!1)}};rp([(0,a.wk)()],rm.prototype,"isCancelling",void 0),rp([(0,a.wk)()],rm.prototype,"isSigning",void 0),rm=rp([(0,h.EM)("w3m-siwx-sign-message-view")],rm)},56345:(e,t,i)=>{"use strict";var r=i(88633),a=i(38195),n=i(34194),o=i(49140),s=i(58616),l=i(60210),c=i(67789);i(86248),i(61594),i(12336),i(8236);var d=i(33579);let u=(0,r.AH)``,h=class extends r.WF{render(){let{termsConditionsUrl:e,privacyPolicyUrl:t}=a.H.state;return e||t?(0,r.qy)` 5548 <wui-flex 5549 .padding=${["4","3","3","3"]} 5550 flexDirection="column" 5551 alignItems="center" 5552 justifyContent="center" 5553 gap="3" 5554 > 5555 <wui-text color="secondary" variant="md-regular" align="center"> 5556 We work with the best providers to give you the lowest fees and best support. More options 5557 coming soon! 5558 </wui-text> 5559 5560 ${this.howDoesItWorkTemplate()} 5561 </wui-flex> 5562 `:null}howDoesItWorkTemplate(){return(0,r.qy)` <wui-link @click=${this.onWhatIsBuy.bind(this)}> 5563 <wui-icon size="xs" color="accent-primary" slot="iconLeft" name="helpCircle"></wui-icon> 5564 How does it work? 5565 </wui-link>`}onWhatIsBuy(){n.E.sendEvent({type:"track",event:"SELECT_WHAT_IS_A_BUY",properties:{isSmartAccount:(0,o.lj)(s.W.state.activeChain)===d.Vl.ACCOUNT_TYPES.SMART_ACCOUNT}}),l.I.push("WhatIsABuy")}};h.styles=[u],h=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o}([(0,c.EM)("w3m-onramp-providers-footer")],h)},56460:(e,t,i)=>{"use strict";i.d(t,{F:()=>o});var r=i(21818);let a=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,n=r.$,o=(e,t)=>i=>{var r;if((null==t?void 0:t.variants)==null)return n(e,null==i?void 0:i.class,null==i?void 0:i.className);let{variants:o,defaultVariants:s}=t,l=Object.keys(o).map(e=>{let t=null==i?void 0:i[e],r=null==s?void 0:s[e];if(null===t)return null;let n=a(t)||a(r);return o[e][n]}),c=i&&Object.entries(i).reduce((e,t)=>{let[i,r]=t;return void 0===r||(e[i]=r),e},{});return n(e,l,null==t||null==(r=t.compoundVariants)?void 0:r.reduce((e,t)=>{let{class:i,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,i]=e;return Array.isArray(i)?i.includes({...s,...c}[t]):({...s,...c})[t]===i})?[...e,i,r]:e},[]),null==i?void 0:i.class,null==i?void 0:i.className)}},57359:(e,t,i)=>{let r=i(4358);function a(e){this.mode=r.NUMERIC,this.data=e.toString()}a.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){let t,i,r;for(t=0;t+3<=this.data.length;t+=3)r=parseInt(this.data.substr(t,3),10),e.put(r,10);let a=this.data.length-t;a>0&&(r=parseInt(this.data.substr(t),10),e.put(r,3*a+1))},e.exports=a},61499:(e,t,i)=>{"use strict";var r=i(88633),a=i(15274),n=i(13894),o=i(69137);i(17364),i(37218);var s=i(62057),l=i(54718),c=i(21621);let d=(0,c.AH)` 5566 :host { 5567 position: relative; 5568 width: 100%; 5569 display: inline-flex; 5570 flex-direction: column; 5571 gap: ${({spacing:e})=>e[3]}; 5572 color: ${({tokens:e})=>e.theme.textPrimary}; 5573 caret-color: ${({tokens:e})=>e.core.textAccentPrimary}; 5574 } 5575 5576 .wui-input-text-container { 5577 position: relative; 5578 display: flex; 5579 } 5580 5581 input { 5582 width: 100%; 5583 border-radius: ${({borderRadius:e})=>e[4]}; 5584 color: inherit; 5585 background: transparent; 5586 border: 1px solid ${({tokens:e})=>e.theme.borderPrimary}; 5587 caret-color: ${({tokens:e})=>e.core.textAccentPrimary}; 5588 padding: ${({spacing:e})=>e[3]} ${({spacing:e})=>e[3]} 5589 ${({spacing:e})=>e[3]} ${({spacing:e})=>e[10]}; 5590 font-size: ${({textSize:e})=>e.large}; 5591 line-height: ${({typography:e})=>e["lg-regular"].lineHeight}; 5592 letter-spacing: ${({typography:e})=>e["lg-regular"].letterSpacing}; 5593 font-weight: ${({fontWeight:e})=>e.regular}; 5594 font-family: ${({fontFamily:e})=>e.regular}; 5595 } 5596 5597 input[data-size='lg'] { 5598 padding: ${({spacing:e})=>e[4]} ${({spacing:e})=>e[3]} 5599 ${({spacing:e})=>e[4]} ${({spacing:e})=>e[10]}; 5600 } 5601 5602 @media (hover: hover) and (pointer: fine) { 5603 input:hover:enabled { 5604 border: 1px solid ${({tokens:e})=>e.theme.borderSecondary}; 5605 } 5606 } 5607 5608 input:disabled { 5609 cursor: unset; 5610 border: 1px solid ${({tokens:e})=>e.theme.borderPrimary}; 5611 } 5612 5613 input::placeholder { 5614 color: ${({tokens:e})=>e.theme.textSecondary}; 5615 } 5616 5617 input:focus:enabled { 5618 border: 1px solid ${({tokens:e})=>e.theme.borderSecondary}; 5619 background-color: ${({tokens:e})=>e.theme.foregroundPrimary}; 5620 -webkit-box-shadow: 0px 0px 0px 4px ${({tokens:e})=>e.core.foregroundAccent040}; 5621 -moz-box-shadow: 0px 0px 0px 4px ${({tokens:e})=>e.core.foregroundAccent040}; 5622 box-shadow: 0px 0px 0px 4px ${({tokens:e})=>e.core.foregroundAccent040}; 5623 } 5624 5625 div.wui-input-text-container:has(input:disabled) { 5626 opacity: 0.5; 5627 } 5628 5629 wui-icon.wui-input-text-left-icon { 5630 position: absolute; 5631 top: 50%; 5632 transform: translateY(-50%); 5633 pointer-events: none; 5634 left: ${({spacing:e})=>e[4]}; 5635 color: ${({tokens:e})=>e.theme.iconDefault}; 5636 } 5637 5638 button.wui-input-text-submit-button { 5639 position: absolute; 5640 top: 50%; 5641 transform: translateY(-50%); 5642 right: ${({spacing:e})=>e[3]}; 5643 width: 24px; 5644 height: 24px; 5645 border: none; 5646 background: transparent; 5647 border-radius: ${({borderRadius:e})=>e[2]}; 5648 color: ${({tokens:e})=>e.core.textAccentPrimary}; 5649 } 5650 5651 button.wui-input-text-submit-button:disabled { 5652 opacity: 1; 5653 } 5654 5655 button.wui-input-text-submit-button.loading wui-icon { 5656 animation: spin 1s linear infinite; 5657 } 5658 5659 button.wui-input-text-submit-button:hover { 5660 background: ${({tokens:e})=>e.core.foregroundAccent010}; 5661 } 5662 5663 input:has(+ .wui-input-text-submit-button) { 5664 padding-right: ${({spacing:e})=>e[12]}; 5665 } 5666 5667 input[type='number'] { 5668 -moz-appearance: textfield; 5669 } 5670 5671 input[type='search']::-webkit-search-decoration, 5672 input[type='search']::-webkit-search-cancel-button, 5673 input[type='search']::-webkit-search-results-button, 5674 input[type='search']::-webkit-search-results-decoration { 5675 -webkit-appearance: none; 5676 } 5677 5678 /* -- Keyframes --------------------------------------------------- */ 5679 @keyframes spin { 5680 from { 5681 transform: rotate(0deg); 5682 } 5683 to { 5684 transform: rotate(360deg); 5685 } 5686 } 5687`;var u=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let h=class extends r.WF{constructor(){super(...arguments),this.inputElementRef=(0,o._)(),this.disabled=!1,this.loading=!1,this.placeholder="",this.type="text",this.value="",this.size="md"}render(){return(0,r.qy)` <div class="wui-input-text-container"> 5688 ${this.templateLeftIcon()} 5689 <input 5690 data-size=${this.size} 5691 ${(0,o.K)(this.inputElementRef)} 5692 data-testid="wui-input-text" 5693 type=${this.type} 5694 enterkeyhint=${(0,n.J)(this.enterKeyHint)} 5695 ?disabled=${this.disabled} 5696 placeholder=${this.placeholder}
5697 @input=${this.dispatchInputChangeEvent.bind(this)} 5698 @keydown=${this.onKeyDown} 5699 .value=${this.value||""} 5700 /> 5701 ${this.templateSubmitButton()} 5702 <slot class="wui-input-text-slot"></slot> 5703 </div> 5704 ${this.templateError()} ${this.templateWarning()}`}templateLeftIcon(){return this.icon?(0,r.qy)`<wui-icon 5705 class="wui-input-text-left-icon" 5706 size="md" 5707 data-size=${this.size} 5708 color="inherit" 5709 name=${this.icon} 5710 ></wui-icon>`:null}templateSubmitButton(){return this.onSubmit?(0,r.qy)`<button 5711 class="wui-input-text-submit-button ${this.loading?"loading":""}" 5712 @click=${this.onSubmit?.bind(this)} 5713 ?disabled=${this.disabled||this.loading} 5714 > 5715 ${this.loading?(0,r.qy)`<wui-icon name="spinner" size="md"></wui-icon>`:(0,r.qy)`<wui-icon name="chevronRight" size="md"></wui-icon>`} 5716 </button>`:null}templateError(){return this.errorText?(0,r.qy)`<wui-text variant="sm-regular" color="error">${this.errorText}</wui-text>`:null}templateWarning(){return this.warningText?(0,r.qy)`<wui-text variant="sm-regular" color="warning">${this.warningText}</wui-text>`:null}dispatchInputChangeEvent(){this.dispatchEvent(new CustomEvent("inputChange",{detail:this.inputElementRef.value?.value,bubbles:!0,composed:!0}))}};h.styles=[s.W5,s.fD,d],u([(0,a.MZ)()],h.prototype,"icon",void 0),u([(0,a.MZ)({type:Boolean})],h.prototype,"disabled",void 0),u([(0,a.MZ)({type:Boolean})],h.prototype,"loading",void 0),u([(0,a.MZ)()],h.prototype,"placeholder",void 0),u([(0,a.MZ)()],h.prototype,"type",void 0),u([(0,a.MZ)()],h.prototype,"value",void 0),u([(0,a.MZ)()],h.prototype,"errorText",void 0),u([(0,a.MZ)()],h.prototype,"warningText",void 0),u([(0,a.MZ)()],h.prototype,"onSubmit",void 0),u([(0,a.MZ)()],h.prototype,"size",void 0),u([(0,a.MZ)({attribute:!1})],h.prototype,"onKeyDown",void 0),h=u([(0,l.E)("wui-input-text")],h)},61594:(e,t,i)=>{"use strict";i(17364)},61859:(e,t,i)=>{let r=i(4358),a=i(57359),n=i(26817),o=i(92198),s=i(63235),l=i(11752),c=i(25190),d=i(55764);function u(e){return unescape(encodeURIComponent(e)).length}function h(e,t,i){let r,a=[];for(;null!==(r=e.exec(i));)a.push({data:r[0],index:r.index,mode:t,length:r[0].length});return a}function p(e){let t,i,a=h(l.NUMERIC,r.NUMERIC,e),n=h(l.ALPHANUMERIC,r.ALPHANUMERIC,e);return c.isKanjiModeEnabled()?(t=h(l.BYTE,r.BYTE,e),i=h(l.KANJI,r.KANJI,e)):(t=h(l.BYTE_KANJI,r.BYTE,e),i=[]),a.concat(n,t,i).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function m(e,t){switch(t){case r.NUMERIC:return a.getBitsLength(e);case r.ALPHANUMERIC:return n.getBitsLength(e);case r.KANJI:return s.getBitsLength(e);case r.BYTE:return o.getBitsLength(e)}}function g(e,t){let i,l=r.getBestModeForData(e);if((i=r.from(t,l))!==r.BYTE&&i.bit<l.bit)throw Error('"'+e+'" cannot be encoded with mode '+r.toString(i)+".\n Suggested mode is: "+r.toString(l));switch(i===r.KANJI&&!c.isKanjiModeEnabled()&&(i=r.BYTE),i){case r.NUMERIC:return new a(e);case r.ALPHANUMERIC:return new n(e);case r.KANJI:return new s(e);case r.BYTE:return new o(e)}}t.fromArray=function(e){return e.reduce(function(e,t){return"string"==typeof t?e.push(g(t,null)):t.data&&e.push(g(t.data,t.mode)),e},[])},t.fromString=function(e,i){let a=function(e,t){let i={},a={start:{}},n=["start"];for(let o=0;o<e.length;o++){let s=e[o],l=[];for(let e=0;e<s.length;e++){let c=s[e],d=""+o+e;l.push(d),i[d]={node:c,lastCount:0},a[d]={};for(let e=0;e<n.length;e++){let o=n[e];i[o]&&i[o].node.mode===c.mode?(a[o][d]=m(i[o].lastCount+c.length,c.mode)-m(i[o].lastCount,c.mode),i[o].lastCount+=c.length):(i[o]&&(i[o].lastCount=c.length),a[o][d]=m(c.length,c.mode)+4+r.getCharCountIndicator(c.mode,t))}}n=l}for(let e=0;e<n.length;e++)a[n[e]].end=0;return{map:a,table:i}}(function(e){let t=[];for(let i=0;i<e.length;i++){let a=e[i];switch(a.mode){case r.NUMERIC:t.push([a,{data:a.data,mode:r.ALPHANUMERIC,length:a.length},{data:a.data,mode:r.BYTE,length:a.length}]);break;case r.ALPHANUMERIC:t.push([a,{data:a.data,mode:r.BYTE,length:a.length}]);break;case r.KANJI:t.push([a,{data:a.data,mode:r.BYTE,length:u(a.data)}]);break;case r.BYTE:t.push([{data:a.data,mode:r.BYTE,length:u(a.data)}])}}return t}(p(e,c.isKanjiModeEnabled())),i),n=d.find_path(a.map,"start","end"),o=[];for(let e=1;e<n.length-1;e++)o.push(a.table[n[e]].node);return t.fromArray(o.reduce(function(e,t){let i=e.length-1>=0?e[e.length-1]:null;return i&&i.mode===t.mode?e[e.length-1].data+=t.data:e.push(t),e},[]))},t.rawSplit=function(e){return t.fromArray(p(e,c.isKanjiModeEnabled()))}},62057:(e,t,i)=>{"use strict";let r,a,n,o,s;i.d(t,{JX:()=>p,RF:()=>h,W5:()=>f,ds:()=>m,fD:()=>w});var l=i(88633),c=i(21621);let d={"KHTeka-500-woff2":"https://fonts.reown.com/KHTeka-Medium.woff2","KHTeka-400-woff2":"https://fonts.reown.com/KHTeka-Regular.woff2","KHTeka-300-woff2":"https://fonts.reown.com/KHTeka-Light.woff2","KHTekaMono-400-woff2":"https://fonts.reown.com/KHTekaMono-Regular.woff2","KHTeka-500-woff":"https://fonts.reown.com/KHTeka-Light.woff","KHTeka-400-woff":"https://fonts.reown.com/KHTeka-Regular.woff","KHTeka-300-woff":"https://fonts.reown.com/KHTeka-Light.woff","KHTekaMono-400-woff":"https://fonts.reown.com/KHTekaMono-Regular.woff"};function u(e,t="dark"){r&&document.head.removeChild(r),(r=document.createElement("style")).textContent=c.CV.createRootStyles(t,e),document.head.appendChild(r)}function h(e,t="dark"){if(s=e,a=document.createElement("style"),n=document.createElement("style"),o=document.createElement("style"),a.textContent=g(e).core.cssText,n.textContent=g(e).dark.cssText,o.textContent=g(e).light.cssText,document.head.appendChild(a),document.head.appendChild(n),document.head.appendChild(o),u(e,t),p(t),!(e?.["--apkt-font-family"]||e?.["--w3m-font-family"]))for(let[e,t]of Object.entries(d)){let i=document.createElement("link");i.rel="preload",i.href=t,i.as="font",i.type=e.includes("woff2")?"font/woff2":"font/woff",i.crossOrigin="anonymous",document.head.appendChild(i)}p(t)}function p(e="dark"){n&&o&&r&&("light"===e?(u(s,e),n.removeAttribute("media"),o.media="enabled"):(u(s,e),o.removeAttribute("media"),n.media="enabled"))}function m(e){if(s=e,a&&n&&o){a.textContent=g(e).core.cssText,n.textContent=g(e).dark.cssText,o.textContent=g(e).light.cssText;let t=e?.["--apkt-font-family"]||e?.["--w3m-font-family"];t&&(a.textContent=a.textContent?.replace("font-family: KHTeka",`font-family: ${t}`),n.textContent=n.textContent?.replace("font-family: KHTeka",`font-family: ${t}`),o.textContent=o.textContent?.replace("font-family: KHTeka",`font-family: ${t}`))}r&&u(e,o?.media==="enabled"?"light":"dark")}function g(e){let t=!!(e?.["--apkt-font-family"]||e?.["--w3m-font-family"]);return{core:(0,l.AH)` 5717 ${t?(0,l.AH)``:(0,l.AH)` 5718 @font-face { 5719 font-family: 'KHTeka'; 5720 src: 5721 url(${(0,l.iz)(d["KHTeka-400-woff2"])}) format('woff2'), 5722 url(${(0,l.iz)(d["KHTeka-400-woff"])}) format('woff'); 5723 font-weight: 400; 5724 font-style: normal; 5725 font-display: swap; 5726 } 5727 5728 @font-face { 5729 font-family: 'KHTeka'; 5730 src: 5731 url(${(0,l.iz)(d["KHTeka-300-woff2"])}) format('woff2'), 5732 url(${(0,l.iz)(d["KHTeka-300-woff"])}) format('woff'); 5733 font-weight: 300; 5734 font-style: normal; 5735 } 5736 5737 @font-face { 5738 font-family: 'KHTekaMono'; 5739 src: 5740 url(${(0,l.iz)(d["KHTekaMono-400-woff2"])}) format('woff2'), 5741 url(${(0,l.iz)(d["KHTekaMono-400-woff"])}) format('woff'); 5742 font-weight: 400; 5743 font-style: normal; 5744 } 5745 5746 @font-face { 5747 font-family: 'KHTeka'; 5748 src: 5749 url(${(0,l.iz)(d["KHTeka-400-woff2"])}) format('woff2'), 5750 url(${(0,l.iz)(d["KHTeka-400-woff"])}) format('woff'); 5751 font-weight: 400; 5752 font-style: normal; 5753 } 5754 `} 5755 5756 @keyframes w3m-shake { 5757 0% { 5758 transform: scale(1) rotate(0deg); 5759 } 5760 20% { 5761 transform: scale(1) rotate(-1deg); 5762 } 5763 40% { 5764 transform: scale(1) rotate(1.5deg); 5765 } 5766 60% { 5767 transform: scale(1) rotate(-1.5deg); 5768 } 5769 80% { 5770 transform: scale(1) rotate(1deg); 5771 } 5772 100% { 5773 transform: scale(1) rotate(0deg); 5774 } 5775 } 5776 @keyframes w3m-iframe-fade-out { 5777 0% { 5778 opacity: 1; 5779 } 5780 100% { 5781 opacity: 0; 5782 } 5783 } 5784 @keyframes w3m-iframe-zoom-in { 5785 0% { 5786 transform: translateY(50px); 5787 opacity: 0; 5788 } 5789 100% { 5790 transform: translateY(0px); 5791 opacity: 1; 5792 } 5793 } 5794 @keyframes w3m-iframe-zoom-in-mobile { 5795 0% { 5796 transform: scale(0.95); 5797 opacity: 0; 5798 } 5799 100% { 5800 transform: scale(1); 5801 opacity: 1; 5802 } 5803 } 5804 :root { 5805 --apkt-modal-width: 370px; 5806 5807 --apkt-visual-size-inherit: inherit; 5808 --apkt-visual-size-sm: 40px; 5809 --apkt-visual-size-md: 55px; 5810 --apkt-visual-size-lg: 80px; 5811 5812 --apkt-path-network-sm: path( 5813 'M15.4 2.1a5.21 5.21 0 0 1 5.2 0l11.61 6.7a5.21 5.21 0 0 1 2.61 4.52v13.4c0 1.87-1 3.59-2.6 4.52l-11.
581361 6.7c-1.62.93-3.6.93-5.22 0l-11.6-6.7a5.21 5.21 0 0 1-2.61-4.51v-13.4c0-1.87 1-3.6 2.6-4.52L15.4 2.1Z' 5814 ); 5815 5816 --apkt-path-network-md: path( 5817 'M43.4605 10.7248L28.0485 1.61089C25.5438 0.129705 22.4562 0.129705 19.9515 1.61088L4.53951 10.7248C2.03626 12.2051 0.5 14.9365 0.5 17.886V36.1139C0.5 39.0635 2.03626 41.7949 4.53951 43.2752L19.9515 52.3891C22.4562 53.8703 25.5438 53.8703 28.0485 52.3891L43.4605 43.2752C45.9637 41.7949 47.5 39.0635 47.5 36.114V17.8861C47.5 14.9365 45.9637 12.2051 43.4605 10.7248Z' 5818 ); 5819 5820 --apkt-path-network-lg: path( 5821 'M78.3244 18.926L50.1808 2.45078C45.7376 -0.150261 40.2624 -0.150262 35.8192 2.45078L7.6756 18.926C3.23322 21.5266 0.5 26.3301 0.5 31.5248V64.4752C0.5 69.6699 3.23322 74.4734 7.6756 77.074L35.8192 93.5492C40.2624 96.1503 45.7376 96.1503 50.1808 93.5492L78.3244 77.074C82.7668 74.4734 85.5 69.6699 85.5 64.4752V31.5248C85.5 26.3301 82.7668 21.5266 78.3244 18.926Z' 5822 ); 5823 5824 --apkt-width-network-sm: 36px; 5825 --apkt-width-network-md: 48px; 5826 --apkt-width-network-lg: 86px; 5827 5828 --apkt-duration-dynamic: 0ms; 5829 --apkt-height-network-sm: 40px; 5830 --apkt-height-network-md: 54px; 5831 --apkt-height-network-lg: 96px; 5832 } 5833 `,dark:(0,l.AH)` 5834 :root { 5835 } 5836 `,light:(0,l.AH)` 5837 :root { 5838 } 5839 `}}let f=(0,l.AH)` 5840 div, 5841 span, 5842 iframe, 5843 a, 5844 img, 5845 form, 5846 button, 5847 label, 5848 *::after, 5849 *::before { 5850 margin: 0; 5851 padding: 0; 5852 box-sizing: border-box; 5853 font-style: normal; 5854 text-rendering: optimizeSpeed; 5855 -webkit-font-smoothing: antialiased; 5856 -moz-osx-font-smoothing: grayscale; 5857 -webkit-tap-highlight-color: transparent; 5858 backface-visibility: hidden; 5859 } 5860 5861 :host { 5862 font-family: var(--apkt-fontFamily-regular); 5863 } 5864`,w=(0,l.AH)` 5865 button, 5866 a { 5867 cursor: pointer; 5868 display: flex; 5869 justify-content: center; 5870 align-items: center; 5871 position: relative; 5872 5873 will-change: background-color, color, border, box-shadow, width, height, transform, opacity; 5874 outline: none; 5875 border: none; 5876 text-decoration: none; 5877 transition: 5878 background-color var(--apkt-durations-lg) var(--apkt-easings-ease-out-power-2), 5879 color var(--apkt-durations-lg) var(--apkt-easings-ease-out-power-2), 5880 border var(--apkt-durations-lg) var(--apkt-easings-ease-out-power-2), 5881 box-shadow var(--apkt-durations-lg) var(--apkt-easings-ease-out-power-2), 5882 width var(--apkt-durations-lg) var(--apkt-easings-ease-out-power-2), 5883 height var(--apkt-durations-lg) var(--apkt-easings-ease-out-power-2), 5884 transform var(--apkt-durations-lg) var(--apkt-easings-ease-out-power-2), 5885 opacity var(--apkt-durations-lg) var(--apkt-easings-ease-out-power-2), 5886 scale var(--apkt-durations-lg) var(--apkt-easings-ease-out-power-2), 5887 border-radius var(--apkt-durations-lg) var(--apkt-easings-ease-out-power-2); 5888 will-change: 5889 background-color, color, border, box-shadow, width, height, transform, opacity, scale, 5890 border-radius; 5891 } 5892 5893 a:active:not([disabled]), 5894 button:active:not([disabled]) { 5895 scale: 0.975; 5896 transform-origin: center; 5897 } 5898 5899 button:disabled { 5900 cursor: default; 5901 } 5902 5903 input { 5904 border: none; 5905 outline: none; 5906 appearance: none; 5907 } 5908`},62137:(e,t,i)=>{"use strict";i.d(t,{T:()=>r});let r={URLS:{FAQ:"https://walletconnect.com/faq"}}},62253:(e,t,i)=>{"use strict";i(67661)},62366:(e,t,i)=>{"use strict";var r=i(88633),a=i(15274),n=i(8350),o=i(67789);i(86248),i(61594),i(8236);let s=(0,o.AH)` 5909 :host { 5910 pointer-events: none; 5911 } 5912 5913 :host > wui-flex { 5914 display: var(--w3m-tooltip-display); 5915 opacity: var(--w3m-tooltip-opacity); 5916 padding: 9px ${({spacing:e})=>e["3"]} 10px ${({spacing:e})=>e["3"]}; 5917 border-radius: ${({borderRadius:e})=>e["3"]}; 5918 color: ${({tokens:e})=>e.theme.backgroundPrimary}; 5919 position: absolute; 5920 top: var(--w3m-tooltip-top); 5921 left: var(--w3m-tooltip-left); 5922 transform: translate(calc(-50% + var(--w3m-tooltip-parent-width)), calc(-100% - 8px)); 5923 max-width: calc(var(--apkt-modal-width) - ${({spacing:e})=>e["5"]}); 5924 transition: opacity ${({durations:e})=>e.lg} 5925 ${({easings:e})=>e["ease-out-power-2"]}; 5926 will-change: opacity; 5927 opacity: 0; 5928 animation-duration: ${({durations:e})=>e.xl}; 5929 animation-timing-function: ${({easings:e})=>e["ease-out-power-2"]}; 5930 animation-name: fade-in; 5931 animation-fill-mode: forwards; 5932 } 5933 5934 :host([data-variant='shade']) > wui-flex { 5935 background-color: ${({tokens:e})=>e.theme.foregroundPrimary}; 5936 } 5937 5938 :host([data-variant='shade']) > wui-flex > wui-text { 5939 color: ${({tokens:e})=>e.theme.textSecondary}; 5940 } 5941 5942 :host([data-variant='fill']) > wui-flex { 5943 background-color: ${({tokens:e})=>e.theme.backgroundPrimary}; 5944 border: 1px solid ${({tokens:e})=>e.theme.borderPrimary}; 5945 } 5946 5947 wui-icon { 5948 position: absolute; 5949 width: 12px !important; 5950 height: 4px !important; 5951 color: ${({tokens:e})=>e.theme.foregroundPrimary}; 5952 } 5953 5954 wui-icon[data-placement='top'] { 5955 bottom: 0px; 5956 left: 50%; 5957 transform: translate(-50%, 95%); 5958 } 5959 5960 wui-icon[data-placement='bottom'] { 5961 top: 0; 5962 left: 50%; 5963 transform: translate(-50%, -95%) rotate(180deg); 5964 } 5965 5966 wui-icon[data-placement='right'] { 5967 top: 50%; 5968 left: 0; 5969 transform: translate(-65%, -50%) rotate(90deg); 5970 } 5971 5972 wui-icon[data-placement='left'] { 5973 top: 50%; 5974 right: 0%; 5975 transform: translate(65%, -50%) rotate(270deg); 5976 } 5977 5978 @keyframes fade-in { 5979 from { 5980 opacity: 0; 5981 } 5982 to { 5983 opacity: 1; 5984 } 5985 } 5986`;var l=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let c=class extends r.WF{constructor(){super(),this.unsubscribe=[],this.open=n.I.state.open,this.message=n.I.state.message,this.triggerRect=n.I.state.triggerRect,this.variant=n.I.state.variant,this.unsubscribe.push(n.I.subscribe(e=>{this.open=e.open,this.message=e.message,this.triggerRect=e.triggerRect,this.variant=e.variant}))}
5986disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){this.dataset.variant=this.variant;let e=this.triggerRect.top,t=this.triggerRect.left;return this.style.cssText=` 5987 --w3m-tooltip-top: ${e}px; 5988 --w3m-tooltip-left: ${t}px; 5989 --w3m-tooltip-parent-width: ${this.triggerRect.width/2}px; 5990 --w3m-tooltip-display: ${this.open?"flex":"none"}; 5991 --w3m-tooltip-opacity: ${+!!this.open}; 5992 `,(0,r.qy)`<wui-flex> 5993 <wui-icon data-placement="top" size="inherit" name="cursor"></wui-icon> 5994 <wui-text color="primary" variant="sm-regular">${this.message}</wui-text> 5995 </wui-flex>`}};c.styles=[s],l([(0,a.wk)()],c.prototype,"open",void 0),l([(0,a.wk)()],c.prototype,"message",void 0),l([(0,a.wk)()],c.prototype,"triggerRect",void 0),l([(0,a.wk)()],c.prototype,"variant",void 0),c=l([(0,o.EM)("w3m-tooltip")],c)},63235:(e,t,i)=>{let r=i(4358),a=i(25190);function n(e){this.mode=r.KANJI,this.data=e}n.getBitsLength=function(e){return 13*e},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let i=a.toSJIS(this.data[t]);if(i>=33088&&i<=40956)i-=33088;else if(i>=57408&&i<=60351)i-=49472;else throw Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");i=(i>>>8&255)*192+(255&i),e.put(i,13)}},e.exports=n},63322:(e,t,i)=>{"use strict";i(32420)},64210:(e,t,i)=>{"use strict";i.d(t,{LU:()=>r,R7:()=>a});let r={core:{backgroundAccentPrimary:"#0988F0",backgroundAccentCertified:"#C7B994",backgroundWalletKit:"#FFB800",backgroundAppKit:"#FF573B",backgroundCloud:"#0988F0",backgroundDocumentation:"#008847",backgroundSuccess:"rgba(48, 164, 107, 0.20)",backgroundError:"rgba(223, 74, 52, 0.20)",backgroundWarning:"rgba(243, 161, 63, 0.20)",textAccentPrimary:"#0988F0",textAccentCertified:"#C7B994",textWalletKit:"#FFB800",textAppKit:"#FF573B",textCloud:"#0988F0",textDocumentation:"#008847",textSuccess:"#30A46B",textError:"#DF4A34",textWarning:"#F3A13F",borderAccentPrimary:"#0988F0",borderSecondary:"#C7B994",borderSuccess:"#30A46B",borderError:"#DF4A34",borderWarning:"#F3A13F",foregroundAccent010:"rgba(9, 136, 240, 0.1)",foregroundAccent020:"rgba(9, 136, 240, 0.2)",foregroundAccent040:"rgba(9, 136, 240, 0.4)",foregroundAccent060:"rgba(9, 136, 240, 0.6)",foregroundSecondary020:"rgba(199, 185, 148, 0.2)",foregroundSecondary040:"rgba(199, 185, 148, 0.4)",foregroundSecondary060:"rgba(199, 185, 148, 0.6)",iconAccentPrimary:"#0988F0",iconAccentCertified:"#C7B994",iconSuccess:"#30A46B",iconError:"#DF4A34",iconWarning:"#F3A13F",glass010:"rgba(255, 255, 255, 0.1)",zIndex:"9999"},dark:{overlay:"rgba(0, 0, 0, 0.50)",backgroundPrimary:"#202020",backgroundInvert:"#FFFFFF",textPrimary:"#FFFFFF",textSecondary:"#9A9A9A",textTertiary:"#BBBBBB",textInvert:"#202020",borderPrimary:"#2A2A2A",borderPrimaryDark:"#363636",borderSecondary:"#4F4F4F",foregroundPrimary:"#252525",foregroundSecondary:"#2A2A2A",foregroundTertiary:"#363636",iconDefault:"#9A9A9A",iconInverse:"#FFFFFF"},light:{overlay:"rgba(230 , 230, 230, 0.5)",backgroundPrimary:"#FFFFFF",borderPrimaryDark:"#E9E9E9",backgroundInvert:"#202020",textPrimary:"#202020",textSecondary:"#9A9A9A",textTertiary:"#6C6C6C",textInvert:"#FFFFFF",borderPrimary:"#E9E9E9",borderSecondary:"#D0D0D0",foregroundPrimary:"#F3F3F3",foregroundSecondary:"#E9E9E9",foregroundTertiary:"#D0D0D0",iconDefault:"#9A9A9A",iconInverse:"#202020"}},a={colors:{black:"#202020",white:"#FFFFFF",white010:"rgba(255, 255, 255, 0.1)",accent010:"rgba(9, 136, 240, 0.1)",accent020:"rgba(9, 136, 240, 0.2)",accent030:"rgba(9, 136, 240, 0.3)",accent040:"rgba(9, 136, 240, 0.4)",accent050:"rgba(9, 136, 240, 0.5)",accent060:"rgba(9, 136, 240, 0.6)",accent070:"rgba(9, 136, 240, 0.7)",accent080:"rgba(9, 136, 240, 0.8)",accent090:"rgba(9, 136, 240, 0.9)",accent100:"rgba(9, 136, 240, 1.0)",accentSecondary010:"rgba(199, 185, 148, 0.1)",accentSecondary020:"rgba(199, 185, 148, 0.2)",accentSecondary030:"rgba(199, 185, 148, 0.3)",accentSecondary040:"rgba(199, 185, 148, 0.4)",accentSecondary050:"rgba(199, 185, 148, 0.5)",accentSecondary060:"rgba(199, 185, 148, 0.6)",accentSecondary070:"rgba(199, 185, 148, 0.7)",accentSecondary080:"rgba(199, 185, 148, 0.8)",accentSecondary090:"rgba(199, 185, 148, 0.9)",accentSecondary100:"rgba(199, 185, 148, 1.0)",productWalletKit:"#FFB800",productAppKit:"#FF573B",productCloud:"#0988F0",productDocumentation:"#008847",neutrals050:"#F6F6F6",neutrals100:"#F3F3F3",neutrals200:"#E9E9E9",neutrals300:"#D0D0D0",neutrals400:"#BBB",neutrals500:"#9A9A9A",neutrals600:"#6C6C6C",neutrals700:"#4F4F4F",neutrals800:"#363636",neutrals900:"#2A2A2A",neutrals1000:"#252525",semanticSuccess010:"rgba(48, 164, 107, 0.1)",semanticSuccess020:"rgba(48, 164, 107, 0.2)",semanticSuccess030:"rgba(48, 164, 107, 0.3)",semanticSuccess040:"rgba(48, 164, 107, 0.4)",semanticSuccess050:"rgba(48, 164, 107, 0.5)",semanticSuccess060:"rgba(48, 164, 107, 0.6)",semanticSuccess070:"rgba(48, 164, 107, 0.7)",semanticSuccess080:"rgba(48, 164, 107, 0.8)",semanticSuccess090:"rgba(48, 164, 107, 0.9)",semanticSuccess100:"rgba(48, 164, 107, 1.0)",semanticError010:"rgba(223, 74, 52, 0.1)",semanticError020:"rgba(223, 74, 52, 0.2)",semanticError030:"rgba(223, 74, 52, 0.3)",semanticError040:"rgba(223, 74, 52, 0.4)",semanticError050:"rgba(223, 74, 52, 0.5)",semanticError060:"rgba(223, 74, 52, 0.6)",semanticError070:"rgba(223, 74, 52, 0.7)",semanticError080:"rgba(223, 74, 52, 0.8)",semanticError090:"rgba(223, 74, 52, 0.9)",semanticError100:"rgba(223, 74, 52, 1.0)",semanticWarning010:"rgba(243, 161, 63, 0.1)",semanticWarning020:"rgba(243, 161, 63, 0.2)",semanticWarning030:"rgba(243, 161, 63, 0.3)",semanticWarning040:"rgba(243, 161, 63, 0.4)",semanticWarning050:"rgba(243, 161, 63, 0.5)",semanticWarning060:"rgba(243, 161, 63, 0.6)",semanticWarning070:"rgba(243, 161, 63, 0.7)",semanticWarning080:"rgba(243, 161, 63, 0.8)",semanticWarning090:"rgba(243, 161, 63, 0.9)",semanticWarning100:"rgba(243, 161, 63, 1.0)"},fontFamily:{regular:"KHTeka",mono:"KHTekaMono"},fontWeight:{regular:"400",medium:"500"},textSize:{h1:"50px",h2:"44px",h3:"38px",h4:"32px",h5:"26px",h6:"20px",large:"16px",medium:"14px",small:"12px"},typography:{"h1-regular-mono":{lineHeight:"50px",letterSpacing:"-3px"},"h1-regular":{lineHeight:"50px",letterSpacing:"-1px"},"h1-medium":{lineHeight:"50px",letterSpacing:"-0.84px"},"h2-regular-mono":{lineHeight:"44px",letterSpacing:"-2.64px"},"h2-regular":{lineHeight:"44px",letterSpacing:"-0.88px"},"h2-medium":{lineHeight:"44px",letterSpacing:"-0.88px"},"h3-regular-mono":{lineHeight:"38px",letterSpacing:"-2.28px"},"h3-regular":{lineHeight:"38px",letterSpacing:"-0.76px"},"h3-medium":{lineHeight:"38px",letterSpacing:"-0.76px"},"h4-regular-mono":{lineHeight:"32px",letterSpacing:"-1.92px"},"h4-regular":{lineHeight:"32px",letterSpacing:"-0.32px"},"h4-medium":{lineHeight:"32px",letterSpacing:"-0.32px"},"h5-regular-mono":{lineHeight:"26px",letterSpacing:"-1.56px"},"h5-regular":{lineHeight:"26px",letterSpacing:"-0.26px"},"h5-medium":{lineHeight:"26px",letterSpacing:"-0.26px"},"h6-regular-mono":{lineHeight:"20px",letterSpacing:"-1.2px"},"h6-regular":{lineHeight:"20px",letterSpacing:"-0.6px"},"h6-medium":{lineHeight:"20px",letterSpacing:"-0.6px"},"lg-regular-mono":{lineHeight:"16px",letterSpacing:"-0.96px"},"lg-regular":{lineHeight:"18px",letterSpacing:"-0.16px"},"lg-medium":{lineHeight:"18px",letterSpacing:"-0.16px"},"md-regular-mono":{lineHeight:"14px",letterSpacing:"-0.84px"},"md-regular":{lineHeight:"16px",letterSpacing:"-0.14px"},"md-medium":{lineHeight:"16px",letterSpacing:"-0.14px"},"sm-regular-mono":{lineHeight:"12px",letterSpacing:"-0.72px"},"sm-regular":{lineHeight:"14px",letterSpacing:"-0.12px"},"sm-medium":{lineHeight:"14px",letterSpacing:"-0.12px"}},tokens:{core:r.core,theme:r.dark},borderRadius:{1:"4px",2:"8px",10:"10px",3:"12px",4:"16px",6:"24px",5:"20px",8:"32px",16:"64px",20:"80px",32:"128px",64:"256px",128:"512px",round:"9999px"},spacing:{0:"0px","01":"2px",1:"4px",2:"8px",3:"12px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px",12:"48px",14:"56px",16:"64px",20:"80px",32:"128px",64:"256px"},durations:{xl:"400ms",lg:"200ms",md:"125ms",sm:"75ms"}
5995,easings:{"ease-out-power-2":"cubic-bezier(0.23, 0.09, 0.08, 1.13)","ease-out-power-1":"cubic-bezier(0.12, 0.04, 0.2, 1.06)","ease-in-power-2":"cubic-bezier(0.92, -0.13, 0.77, 0.91)","ease-in-power-1":"cubic-bezier(0.88, -0.06, 0.8, 0.96)","ease-inout-power-2":"cubic-bezier(0.77, 0.09, 0.23, 1.13)","ease-inout-power-1":"cubic-bezier(0.88, 0.04, 0.12, 1.06)"}}},64989:(e,t)=>{let i=new Uint8Array(512),r=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)i[t]=e,r[e]=t,256&(e<<=1)&&(e^=285);for(let e=255;e<512;e++)i[e]=i[e-255]}(),t.log=function(e){if(e<1)throw Error("log("+e+")");return r[e]},t.exp=function(e){return i[e]},t.mul=function(e,t){return 0===e||0===t?0:i[r[e]+r[t]]}},65153:(e,t,i)=>{"use strict";i.d(t,{DX:()=>u,TL:()=>d});var r,a=i(53449),n=i(93994),o=i(35453),s=Symbol.for("react.lazy"),l=(r||(r=i.t(a,2)))[" use ".trim().toString()];function c(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===s&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}function d(e){let t=function(e){let t=a.forwardRef((e,t)=>{let{children:i,...r}=e;if(c(i)&&"function"==typeof l&&(i=l(i._payload)),a.isValidElement(i)){var o;let e,s,l=(o=i,(s=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(s=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),c=function(e,t){let i={...t};for(let r in t){let a=e[r],n=t[r];/^on[A-Z]/.test(r)?a&&n?i[r]=(...e)=>{let t=n(...e);return a(...e),t}:a&&(i[r]=a):"style"===r?i[r]={...a,...n}:"className"===r&&(i[r]=[a,n].filter(Boolean).join(" "))}return{...e,...i}}(r,i.props);return i.type!==a.Fragment&&(c.ref=t?(0,n.t)(t,l):l),a.cloneElement(i,c)}return a.Children.count(i)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),i=a.forwardRef((e,i)=>{let{children:r,...n}=e;c(r)&&"function"==typeof l&&(r=l(r._payload));let s=a.Children.toArray(r),d=s.find(p);if(d){let e=d.props.children,r=s.map(t=>
5995t!==d?t:a.Children.count(e)>1?a.Children.only(null):a.isValidElement(e)?e.props.children:null);return(0,o.jsx)(t,{...n,ref:i,children:a.isValidElement(e)?a.cloneElement(e,void 0,r):null})}return(0,o.jsx)(t,{...n,ref:i,children:r})});return i.displayName=`${e}.Slot`,i}var u=d("Slot"),h=Symbol("radix.slottable");function p(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===h}},66266:(e,t,i)=>{"use strict";var r=i(88633),a=i(15274),n=i(79808);let o=(0,r.JW)`<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg"> 5996 <rect width="64" height="64" fill="#F7931A"/> 5997 <g clip-path="url(#clip0_1045_17)"> 5998 <path d="M63.0394 39.7409C58.7654 56.8839 41.4024 67.3169 24.2574 63.0419C7.11937 58.7679 -3.31363 41.4039 0.962367 24.2619C5.23437 7.11686 22.5974 -3.31714 39.7374 0.956863C56.8814 5.23086 67.3134 22.5969 63.0394 39.7409Z" fill="#F7931A"/> 5999 <path d="M46.1092 27.4409C46.7462 23.1829 43.5042 20.8939 39.0712 19.3669L40.5092 13.5989L36.9982 12.7239L35.5982 18.3399C34.6752 18.1099 33.7272 17.8929 32.7852 17.6779L34.1952 12.0249L30.6862 11.1499L29.2472 16.9159C28.4832 16.7419 27.7332 16.5699 27.0052 16.3889L27.0092 16.3709L22.1672 15.1619L21.2332 18.9119C21.2332 18.9119 23.8382 19.5089 23.7832 19.5459C25.2052 19.9009 25.4622 20.8419 25.4192 21.5879L23.7812 28.1589C23.8792 28.1839 24.0062 28.2199 24.1462 28.2759C24.0292 28.2469 23.9042 28.2149 23.7752 28.1839L21.4792 37.3889C21.3052 37.8209 20.8642 38.4689 19.8702 38.2229C19.9052 38.2739 17.3182 37.5859 17.3182 37.5859L15.5752 41.6049L20.1442 42.7439C20.9942 42.9569 21.8272 43.1799 22.6472 43.3899L21.1942 49.2239L24.7012 50.0989L26.1402 44.3269C27.0982 44.5869 28.0282 44.8269 28.9382 45.0529L27.5042 50.7979L31.0152 51.6729L32.4682 45.8499C38.4552 46.9829 42.9572 46.5259 44.8522 41.1109C46.3792 36.7509 44.7762 34.2359 41.6262 32.5959C43.9202 32.0669 45.6482 30.5579 46.1092 27.4409ZM38.0872 38.6899C37.0022 43.0499 29.6612 40.6929 27.2812 40.1019L29.2092 32.3729C31.5892 32.9669 39.2212 34.1429 38.0872 38.6899ZM39.1732 27.3779C38.1832 31.3439 32.0732 29.3289 30.0912 28.8349L31.8392 21.8249C33.8212 22.3189 40.2042 23.2409 39.1732 27.3779Z" fill="white"/> 6000 </g> 6001 <defs> 6002 <clipPath id="clip0_1045_17"> 6003 <rect width="64" height="64" fill="white"/> 6004 </clipPath> 6005 </defs> 6006</svg> 6007`,s=(0,r.JW)`<svg fill="none" viewBox="0 0 60 60"> 6008 <rect width="60" height="60" fill="#1DC956" rx="30" /> 6009 <circle cx="30" cy="30" r="3" fill="#fff" /> 6010 <path 6011 fill="#2BEE6C" 6012 stroke="#fff" 6013 stroke-width="2" 6014 d="m45.32 17.9-.88-.42.88.42.02-.05c.1-.2.21-.44.26-.7l-.82-.15.82.16a2 2 0 0 0-.24-1.4c-.13-.23-.32-.42-.47-.57a8.42 8.42 0 0 1-.04-.04l-.04-.04a2.9 2.9 0 0 0-.56-.47l-.51.86.5-.86a2 2 0 0 0-1.4-.24c-.26.05-.5.16-.69.26l-.05.02-15.05 7.25-.1.05c-1.14.55-1.85.89-2.46 1.37a7 7 0 0 0-1.13 1.14c-.5.6-.83 1.32-1.38 2.45l-.05.11-7.25 15.05-.02.05c-.1.2-.21.43-.26.69a2 2 0 0 0 .24 1.4l.85-.5-.85.5c.13.23.32.42.47.57l.04.04.04.04c.15.15.34.34.56.47a2 2 0 0 0 1.41.24l-.2-.98.2.98c.25-.05.5-.17.69-.26l.05-.02-.42-.87.42.87 15.05-7.25.1-.05c1.14-.55 1.85-.89 2.46-1.38a7 7 0 0 0 1.13-1.13 12.87 12.87 0 0 0 1.43-2.56l7.25-15.05Z" 6015 /> 6016 <path 6017 fill="#1DC956" 6018 d="M33.38 32.72 30.7 29.3 15.86 44.14l.2.2a1 1 0 0 0 1.14.2l15.1-7.27a3 3 0 0 0 1.08-4.55Z" 6019 /> 6020 <path 6021 fill="#86F999" 6022 d="m26.62 27.28 2.67 3.43 14.85-14.85-.2-.2a1 1 0 0 0-1.14-.2l-15.1 7.27a3 3 0 0 0-1.08 4.55Z" 6023 /> 6024 <circle cx="30" cy="30" r="3" fill="#fff" transform="rotate(45 30 30)" /> 6025 <rect width="59" height="59" x=".5" y=".5" stroke="#062B2B" stroke-opacity=".1" rx="29.5" /> 6026</svg> `,l=(0,r.JW)`<svg viewBox="0 0 60 60" fill="none"> 6027 <g clip-path="url(#clip0_7734_50402)"> 6028 <path 6029 d="M0 24.9C0 15.6485 0 11.0228 1.97053 7.56812C3.3015 5.23468 5.23468 3.3015 7.56812 1.97053C11.0228 0 15.6485 0 24.9 0H35.1C44.3514 0 48.9772 0 52.4319 1.97053C54.7653 3.3015 56.6985 5.23468 58.0295 7.56812C60 11.0228 60 15.6485 60 24.9V35.1C60 44.3514 60 48.9772 58.0295 52.4319C56.6985 54.7653 54.7653 56.6985 52.4319 58.0295C48.9772 60 44.3514 60 35.1 60H24.9C15.6485 60 11.0228 60 7.56812 58.0295C5.23468 56.6985 3.3015 54.7653 1.97053 52.4319C0 48.9772 0 44.3514 0 35.1V24.9Z" 6030 fill="#EB8B47" 6031 /> 6032 <path 6033 d="M0.5 24.9C0.5 20.2652 0.50047 16.8221 0.744315 14.105C0.987552 11.3946 1.46987 9.45504 2.40484 7.81585C3.69145 5.56019 5.56019 3.69145 7.81585 2.40484C9.45504 1.46987 11.3946 0.987552 14.105 0.744315C16.8221 0.50047 20.2652 0.5 24.9 0.5H35.1C39.7348 0.5 43.1779 0.50047 45.895 0.744315C48.6054 0.987552 50.545 1.46987 52.1841 2.40484C54.4398 3.69145 56.3086 5.56019 57.5952 7.81585C58.5301 9.45504 59.0124 11.3946 59.2557 14.105C59.4995 16.8221 59.5 20.2652 59.5 24.9V35.1C59.5 39.7348 59.4995 43.1779 59.2557 45.895C59.0124 48.6054 58.5301 50.545 57.5952 52.1841C56.3086 54.4398 54.4398 56.3086 52.1841 57.5952C50.545 58.5301 48.6054 59.0124 45.895 59.2557C43.1779 59.4995 39.7348 59.5 35.1 59.5H24.9C20.2652 59.5 16.8221 59.4995 14.105 59.2557C11.3946 59.0124 9.45504 58.5301 7.81585 57.5952C5.56019 56.3086 3.69145 54.4398 2.40484 52.1841C1.46987 50.545 0.987552 48.6054 0.744315 45.895C0.50047 43.1779 0.5 39.7348 0.5 35.1V24.9Z" 6034 stroke="#062B2B" 6035 stroke-opacity="0.1" 6036 /> 6037 <path 6038 d="M19 52C24.5228 52 29 47.5228 29 42C29 36.4772 24.5228 32
603819 32C13.4772 32 9 36.4772 9 42C9 47.5228 13.4772 52 19 52Z" 6039 fill="#FF974C" 6040 stroke="white" 6041 stroke-width="2" 6042 /> 6043 <path 6044 fill-rule="evenodd" 6045 clip-rule="evenodd" 6046 d="M42.8437 8.3264C42.4507 7.70891 41.5493 7.70891 41.1564 8.32641L28.978 27.4638C28.5544 28.1295 29.0326 29.0007 29.8217 29.0007H54.1783C54.9674 29.0007 55.4456 28.1295 55.022 27.4638L42.8437 8.3264Z" 6047 fill="white" 6048 /> 6049 <path 6050 fill-rule="evenodd" 6051 clip-rule="evenodd" 6052 d="M42.3348 11.6456C42.659 11.7608 42.9061 12.1492 43.4005 12.926L50.7332 24.4488C51.2952 25.332 51.5763 25.7737 51.5254 26.1382C51.4915 26.3808 51.3698 26.6026 51.1833 26.7614C50.9031 27 50.3796 27 49.3327 27H34.6673C33.6204 27 33.0969 27 32.8167 26.7614C32.6302 26.6026 32.5085 26.3808 32.4746 26.1382C32.4237 25.7737 32.7048 25.332 33.2669 24.4488L40.5995 12.926C41.0939 12.1492 41.341 11.7608 41.6652 11.6456C41.8818 11.5687 42.1182 11.5687 42.3348 11.6456ZM35.0001 26.999C38.8661 26.999 42.0001 23.865 42.0001 19.999C42.0001 23.865 45.1341 26.999 49.0001 26.999H35.0001Z" 6053 fill="#FF974C" 6054 /> 6055 <path 6056 d="M10.1061 9.35712C9.9973 9.67775 9.99867 10.0388 9.99978 10.3323C9.99989 10.3611 10 10.3893 10 10.4167V25.5833C10 25.6107 9.99989 25.6389 9.99978 25.6677C9.99867 25.9612 9.9973 26.3222 10.1061 26.6429C10.306 27.2317 10.7683 27.694 11.3571 27.8939C11.6777 28.0027 12.0388 28.0013 12.3323 28.0002C12.3611 28.0001 12.3893 28 12.4167 28H19C24.5228 28 29 23.5228 29 18C29 12.4772 24.5228 8 19 8H12.4167C12.3893 8 12.3611 7.99989 12.3323 7.99978C12.0388 7.99867 11.6778 7.9973 11.3571 8.10614C10.7683 8.306 10.306 8.76834 10.1061 9.35712Z" 6057 fill="#FF974C" 6058 stroke="white" 6059 stroke-width="2" 6060 /> 6061 <circle cx="19" cy="18" r="4" fill="#EB8B47" stroke="white" stroke-width="2" /> 6062 <circle cx="19" cy="42" r="4" fill="#EB8B47" stroke="white" stroke-width="2" /> 6063 </g> 6064 <defs> 6065 <clipPath id="clip0_7734_50402"> 6066 <rect width="60" height="60" fill="white" /> 6067 </clipPath> 6068 </defs> 6069</svg> `,c=(0,r.JW)`<svg fill="none" viewBox="0 0 60 60"> 6070 <g clip-path="url(#a)"> 6071 <path 6072 fill="#1DC956" 6073 d="M0 25.01c0-9.25 0-13.88 1.97-17.33a15 15 0 0 1 5.6-5.6C11.02.11 15.65.11 24.9.11h10.2c9.25 0 13.88 0 17.33 1.97a15 15 0 0 1 5.6 5.6C60 11.13 60 15.76 60 25v10.2c0 9.25 0 13.88-1.97 17.33a15 15 0 0 1-5.6 5.6c-3.45 1.97-8.08 1.97-17.33 1.97H24.9c-9.25 0-13.88 0-17.33-1.97a15 15 0 0 1-5.6-5.6C0 49.1 0 44.46 0 35.21v-10.2Z" 6074 /> 6075 <path 6076 fill="#2BEE6C" 6077 d="M16.1 60c-3.82-.18-6.4-.64-8.53-1.86a15 15 0 0 1-5.6-5.6C.55 50.06.16 46.97.04 41.98L4.2 40.6a4 4 0 0 0 2.48-2.39l4.65-12.4a2 2 0 0 1 2.5-1.2l2.53.84a2 2 0 0 0 2.43-1l2.96-5.94a2 2 0 0 1 3.7.32l3.78 12.58a2 2 0 0 0 3.03 1.09l3.34-2.23a2 2 0 0 0 .65-.7l5.3-9.72a2 2 0 0 1 1.42-1.01l4.14-.69a2 2 0 0 1 1.6.44l3.9 3.24a2 2 0 0 0 2.7-.12l4.62-4.63c.08 2.2.08 4.8.08 7.93v10.2c0 9.25 0 13.88-1.97 17.33a15 15 0 0 1-5.6 5.6c-2.13 1.22-4.7 1.68-8.54 1.86H16.11Z" 6078 /> 6079 <path 6080 fill="#fff" 6081 d="m.07 43.03-.05-2.1 3.85-1.28a3 3 0 0 0 1.86-1.79l4.66-12.4a3 3 0 0 1 3.75-1.8l2.53.84a1 1 0 0 0 1.21-.5l2.97-5.94a3 3 0 0 1 5.56.48l3.77 12.58a1 1 0 0 0 1.51.55l3.34-2.23a1 1 0 0 0 .33-.35l5.3-9.71a3 3 0 0 1 2.14-1.53l4.13-.69a3 3 0 0 1 2.41.66l3.9 3.24a1 1 0 0 0 1.34-.06l5.28-5.28c.05.85.08 1.75.1 2.73L56 22.41a3 3 0 0 1-4.04.19l-3.9-3.25a1 1 0 0 0-.8-.21l-4.13.69a1 1 0 0 0-.72.5l-5.3 9.72a3 3 0 0 1-.97 1.05l-3.34 2.23a3 3 0 0 1-4.53-1.63l-3.78-12.58a1 1 0 0 0-1.85-.16l-2.97 5.94a3 3 0 0 1-3.63 1.5l-2.53-.84a1 1 0 0 0-1.25.6l-4.65 12.4a5 5 0 0 1-3.1 3L.07 43.02Z" 6082 /> 6083 <path 6084 fill="#fff" 6085 fill-rule="evenodd" 6086 d="M49.5 19a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0Z" 6087 clip-rule="evenodd" 6088 /> 6089 <path fill="#fff" d="M45 .28v59.66l-2 .1V.19c.7.02 1.37.05 2 .1Z" /> 6090 <path fill="#2BEE6C" d="M47.5 19a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z" /> 6091 <path 6092 stroke="#fff" 6093 stroke-opacity=".1" 6094 d="M.5 25.01c0-4.63 0-8.08.24-10.8.25-2.7.73-4.64 1.66-6.28a14.5 14.5 0 0 1 5.42-5.41C9.46 1.58 11.39 1.1 14.1.85A133 133 0 0 1 24.9.61h10.2c4.63 0 8.08 0 10.8.24 2.7.25 4.65.73 6.28 1.67a14.5 14.5 0 0 1 5.42 5.4c.93 1.65 1.41 3.58 1.66 6.3.24 2.71.24 6.16.24 10.79v10.2c0 4.64 0 8.08-.24 10.8-.25 2.7-.73 4.65-1.66 6.28a14.5 14.5 0 0 1-5.42 5.42c-1.63.93-3.57 1.41-6.28 1.66-2.72.24-6.17.24-10.8.24H24.9c-4.63 0-8.08 0-10.8-.24-2.7-.25-4.64-.73-6.28-1.66a14.5 14.5 0 0 1-5.42-5.42C1.47 50.66 1 48.72.74 46.01A133 133 0 0 1 .5 35.2v-10.2Z" 6095 /> 6096 </g>
6097 <defs> 6098 <clipPath id="a"><path fill="#fff" d="M0 0h60v60H0z" /></clipPath> 6099 </defs> 6100</svg>`,d=(0,r.JW)`<svg fill="none" viewBox="0 0 60 60"> 6101 <g clip-path="url(#a)"> 6102 <rect width="60" height="60" fill="#C653C6" rx="30" /> 6103 <path 6104 fill="#E87DE8" 6105 d="M57.98.01v19.5a4.09 4.09 0 0 0-2.63 2.29L50.7 34.2a2 2 0 0 1-2.5 1.2l-2.53-.84a2 2 0 0 0-2.42 1l-2.97 5.94a2 2 0 0 1-3.7-.32L32.8 28.6a2 2 0 0 0-3.02-1.09l-3.35 2.23a2 2 0 0 0-.64.7l-5.3 9.72a2 2 0 0 1-1.43 1.01l-4.13.69a2 2 0 0 1-1.61-.44l-3.9-3.24a2 2 0 0 0-2.69.12L2.1 42.93.02 43V.01h57.96Z" 6106 /> 6107 <path 6108 fill="#fff" 6109 d="m61.95 16.94.05 2.1-3.85 1.28a3 3 0 0 0-1.86 1.79l-4.65 12.4a3 3 0 0 1-3.76 1.8l-2.53-.84a1 1 0 0 0-1.2.5l-2.98 5.94a3 3 0 0 1-5.55-.48l-3.78-12.58a1 1 0 0 0-1.5-.55l-3.35 2.23a1 1 0 0 0-.32.35l-5.3 9.72a3 3 0 0 1-2.14 1.52l-4.14.69a3 3 0 0 1-2.41-.66l-3.9-3.24a1 1 0 0 0-1.34.06l-5.28 5.28c-.05-.84-.08-1.75-.1-2.73l3.97-3.96a3 3 0 0 1 4.04-.19l3.89 3.25a1 1 0 0 0 .8.21l4.14-.68a1 1 0 0 0 .71-.51l5.3-9.71a3 3 0 0 1 .97-1.06l3.34-2.23a3 3 0 0 1 4.54 1.63l3.77 12.58a1 1 0 0 0 1.86.16l2.96-5.93a3 3 0 0 1 3.64-1.5l2.52.83a1 1 0 0 0 1.25-.6l4.66-12.4a5 5 0 0 1 3.1-2.99l4.43-1.48Z" 6110 /> 6111 <path 6112 fill="#fff" 6113 fill-rule="evenodd" 6114 d="M35.5 27a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0Z" 6115 clip-rule="evenodd" 6116 /> 6117 <path fill="#fff" d="M31 0v60h-2V0h2Z" /> 6118 <path fill="#E87DE8" d="M33.5 27a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z" /> 6119 </g> 6120 <rect width="59" height="59" x=".5" y=".5" stroke="#fff" stroke-opacity=".1" rx="29.5" /> 6121 <defs> 6122 <clipPath id="a"><rect width="60" height="60" fill="#fff" rx="30" /></clipPath> 6123 </defs> 6124</svg> `,u=(0,r.JW)`<svg fill="none" viewBox="0 0 60 60"> 6125 <g clip-path="url(#a)"> 6126 <rect width="60" height="60" fill="#987DE8" rx="30" /> 6127 <path 6128 fill="#fff" 6129 fill-rule="evenodd" 6130 d="m15.48 28.37 11.97-19.3a3 3 0 0 1 5.1 0l11.97 19.3a6 6 0 0 1 .9 3.14v.03a6 6 0 0 1-1.16 3.56L33.23 50.2a4 4 0 0 1-6.46 0L15.73 35.1a6 6 0 0 1-1.15-3.54v-.03a6 6 0 0 1 .9-3.16Z" 6131 clip-rule="evenodd" 6132 /> 6133 <path 6134 fill="#643CDD" 6135 d="M30.84 10.11a1 1 0 0 0-.84-.46V24.5l12.6 5.53a2 2 0 0 0-.28-1.4L30.84 10.11Z" 6136 /> 6137 <path 6138 fill="#BDADEB" 6139 d="M30 9.65a1 1 0 0 0-.85.46L17.66 28.64a2 2 0 0 0-.26 1.39L30 24.5V9.65Z" 6140 /> 6141 <path 6142 fill="#643CDD" 6143 d="M30 50.54a1 1 0 0 0 .8-.4l11.24-15.38c.3-.44-.2-1-.66-.73l-9.89 5.68a3 3 0 0 1-1.5.4v10.43Z" 6144 /> 6145 <path 6146 fill="#BDADEB" 6147 d="m17.97 34.76 11.22 15.37c.2.28.5.41.8.41V40.11a3 3 0 0 1-1.49-.4l-9.88-5.68c-.47-.27-.97.3-.65.73Z" 6148 /> 6149 <path 6150 fill="#401AB3" 6151 d="M42.6 30.03 30 24.5v13.14a3 3 0 0 0 1.5-.4l10.14-5.83a2 2 0 0 0 .95-1.38Z" 6152 /> 6153 <path 6154 fill="#7C5AE2" 6155 d="M30 37.64V24.46l-12.6 5.57a2 2 0 0 0 .97 1.39l10.13 5.82a3 3 0 0 0 1.5.4Z" 6156 /> 6157 </g> 6158 <rect width="59" height="59" x=".5" y=".5" stroke="#fff" stroke-opacity=".1" rx="29.5" /> 6159 <defs> 6160 <clipPath id="a"><rect width="60" height="60" fill="#fff" rx="30" /></clipPath> 6161 </defs> 6162</svg> `,h=(0,r.JW)`<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg"> 6163 <rect width="64" height="64" rx="30" fill="#1DC956"/> 6164 <rect x="0.5" y="0.5" width="63" height="63" rx="29.5" stroke="#141414" stroke-opacity="0.1"/> 6165 <path d="M32.4053 19.8031C35.3901 19.8031 38.0431 20.8349 40.1619 22.8247L45.9656 17.0211C42.4465 13.7416 37.8773 11.7333 32.4053 11.7333C24.4829 11.7333 17.6475 16.2841 14.3127 22.9168L21.056 28.1493C22.6589 23.359 27.136 19.8031 32.4053 19.8031Z" fill="#1DC956" stroke="white" stroke-width="2" stroke-linejoin="round"/> 6166 <path d="M32.4053 52.2667C37.8773 52.2667 42.465 50.4611 45.8182 47.3658L39.2407 42.2623C37.4351 43.4783 35.1321 44.2153 32.4053 44.2153C27.136 44.2153 22.6589 40.6594 21.056 35.8691L14.3127 41.1016C17.6475 47.7159 24.4829 52.2667 32.4053 52.2667Z" fill="#2BEE6C"/> 6167 <path d="M21.056 35.8507L19.5636 36.993L14.3127 41.0832M39.2407 42.2623L45.8182 47.3658C42.465 50.4611 37.8773 52.2667 32.4053 52.2667C24.4829 52.2667 17.6475 47.7159 14.3127 41.1016L21.056 35.8691C22.6589 40.6594 27.136 44.2153 32.4053 44.2153C35.1321 44.2153 37.4351 43.4783 39.2407 42.2623Z" stroke="white" stroke-width="2" stroke-linejoin="round"/> 6168 <path d="M51.8613 32.4606C51.8613 31.0235 51.7323 29.6417 51.4928 28.3151H32.4053V36.1638H43.3124C42.8334 38.688 41.3963 40.8252 39.2407 42.2623L45.8181 47.3658C49.6503 43.8283 51.8613 38.6327 51.8613 32.4606Z" fill="#1FAD7E" stroke="white" stroke-width="2" stroke-linejoin="round"/> 6169 <path d="M21.056 35.8507C20.6507 34.6347 20.4111 33.345 20.4111 32C20.4111 30.655 20.6507 29.3
6169653 21.056 28.1493L14.3127 22.9169C12.9309 25.6437 12.1387 28.7205 12.1387 32C12.1387 35.2795 12.9309 38.3564 14.3127 41.0831L19.5636 36.993L21.056 35.8507Z" fill="#86F999"/> 6170 <path d="M21.056 35.8691L14.3127 41.1016M21.056 35.8507C20.6507 34.6347 20.4111 33.345 20.4111 32C20.4111 30.655 20.6507 29.3653 21.056 28.1493L14.3127 22.9169C12.9309 25.6437 12.1387 28.7205 12.1387 32C12.1387 35.2795 12.9309 38.3564 14.3127 41.0831L19.5636 36.993L21.056 35.8507Z" stroke="white" stroke-width="2" stroke-linejoin="round"/> 6171</svg> 6172`,p=(0,r.JW)`<svg fill="none" viewBox="0 0 60 60"> 6173 <rect width="60" height="60" fill="#1DC956" rx="3" /> 6174 <path 6175 fill="#1FAD7E" 6176 stroke="#fff" 6177 stroke-width="2" 6178 d="m30.49 29.13-.49-.27-.49.27-12.77 7.1-.05.02c-.86.48-1.58.88-2.1 1.24-.54.37-1.04.81-1.28 1.45a3 3 0 0 0 0 2.12c.24.63.74 1.08 1.27 1.45.53.36 1.25.76 2.11 1.24l.05.03 6.33 3.51.17.1c2.33 1.3 3.72 2.06 5.22 2.32a9 9 0 0 0 3.08 0c1.5-.26 2.9-1.03 5.22-2.32l.18-.1 6.32-3.51.05-.03a26.9 26.9 0 0 0 2.1-1.24 3.21 3.21 0 0 0 1.28-1.45l-.94-.35.94.35a3 3 0 0 0 0-2.12l-.94.35.94-.35a3.21 3.21 0 0 0-1.27-1.45c-.53-.36-1.25-.76-2.11-1.24l-.05-.03-12.77-7.1Z" 6179 /> 6180 <path 6181 fill="#2BEE6C" 6182 stroke="#fff" 6183 stroke-width="2" 6184 d="m30.49 19.13-.49-.27-.49.27-12.77 7.1-.05.02c-.86.48-1.58.88-2.1 1.24-.54.37-1.04.81-1.28 1.45a3 3 0 0 0 0 2.12c.24.63.74 1.08 1.27 1.45.53.36 1.25.76 2.11 1.24l.05.03 6.33 3.51.17.1c2.33 1.3 3.72 2.06 5.22 2.32a9 9 0 0 0 3.08 0c1.5-.26 2.9-1.03 5.22-2.32l.18-.1 6.32-3.51.05-.03a26.9 26.9 0 0 0 2.1-1.24 3.21 3.21 0 0 0 1.28-1.45l-.94-.35.94.35a3 3 0 0 0 0-2.12l-.94.35.94-.35a3.21 3.21 0 0 0-1.27-1.45c-.53-.36-1.25-.76-2.11-1.24l-.05-.03-12.77-7.1Z" 6185 /> 6186 <path 6187 fill="#86F999" 6188 stroke="#fff" 6189 stroke-width="2" 6190 d="m46.69 21.06-.94-.35.94.35a3 3 0 0 0 0-2.12l-.94.35.94-.35a3.21 3.21 0 0 0-1.27-1.45c-.53-.36-1.25-.76-2.11-1.24l-.05-.03-6.32-3.51-.18-.1c-2.33-1.3-3.72-2.06-5.22-2.33a9 9 0 0 0-3.08 0c-1.5.27-2.9 1.04-5.22 2.33l-.17.1-6.33 3.51-.05.03c-.86.48-1.58.88-2.1 1.24-.54.37-1.04.81-1.28 1.45a3 3 0 0 0 0 2.12c.24.63.74 1.08 1.27 1.45.53.36 1.25.76 2.11 1.24l.05.03 6.33 3.51.17.1c2.33 1.3 3.72 2.06 5.22 2.32a9 9 0 0 0 3.08 0c1.5-.26 2.9-1.03 5.22-2.32l.18-.1 6.32-3.51.05-.03a26.9 26.9 0 0 0 2.1-1.24 3.21 3.21 0 0 0 1.28-1.45Z" 6191 /> 6192 <rect width="59" height="59" x=".5" y=".5" stroke="#fff" stroke-opacity=".1" rx="2.5" /> 6193</svg>`,m=(0,r.JW)`<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg"> 6194 <g clip-path="url(#clip0_241_31636)"> 6195 <path d="M0 26.5595C0 16.6913 0 11.7572 2.1019 8.07217C3.5216 5.58318 5.58366 3.52111 8.07266 2.10141C11.7577 -0.000488281 16.6918 -0.000488281 26.56 -0.000488281H37.44C47.3082 -0.000488281 52.2423 -0.000488281 55.9273 2.10141C58.4163 3.52111 60.4784 5.58318 61.8981 8.07217C64 11.7572 64 16.6913 64 26.5595V37.4395C64 47.3077 64 52.2418 61.8981 55.9269C60.4784 58.4159 58.4163 60.4779 55.9273 61.8976C52.2423 63.9995 47.3082 63.9995 37.44 63.9995H26.56C16.6918 63.9995 11.7577 63.9995 8.07266 61.8976C5.58366 60.4779 3.5216 58.4159 2.1019 55.9269C0 52.2418 0 47.3077 0 37.4395V26.5595Z" fill="#794CFF"/> 6196 <path d="M0.5 26.5595C0.5 21.6163 0.50047 17.942 0.760736 15.0418C1.02039 12.1485 1.53555 10.0742 2.53621 8.3199C3.91155 5.90869 5.90917 3.91106 8.32039 2.53572C10.0747 1.53506 12.1489 1.01991 15.0423 0.760247C17.9425 0.499981 21.6168 0.499512 26.56 0.499512H37.44C42.3832 0.499512 46.0575 0.499981 48.9577 0.760247C51.8511 1.01991 53.9253 1.53506 55.6796 2.53572C58.0908 3.91106 60.0885 5.90869 61.4638 8.3199C62.4645 10.0742 62.9796 12.1485 63.2393 15.0418C63.4995 17.942 63.5 21.6163 63.5 26.5595V37.4395C63.5 42.3827 63.4995 46.057 63.2393 48.9572C62.9796 51.8506 62.4645 53.9248 61.4638 55.6791C60.0885 58.0903 58.0908 60.088 55.6796 61.4633C53.9253 62.464 51.8511 62.9791 48.9577 63.2388C46.0575 63.499 42.3832 63.4995 37.44 63.4995H26.56C21.6168 63.4995 17.9425 63.499 15.0423 63.2388C12.1489 62.9791 10.0747 62.464 8.32039 61.4633C5.90917 60.088 3.91155 58.0903 2.53621 55.6791C1.53555 53.9248 1.02039 51.8506 0.760736 48.9572C0.50047 46.057 0.5 42.3827 0.5 37.4395V26.5595Z" stroke="#141414" stroke-opacity="0.1"/> 6197 <path d="M40 39.4595C44.7824 36.693 48 31.5222 48 25.6C48 16.7634 40.8366 9.59998 32 9.59998C23.1634 9.59998 16 16.7634 16 25.6C16 31.5222 19.2176 36.693 24 39.4595V45.8144H40V39.4595Z" fill="#906EF7"/> 6198 <path d="M24 49.9689C24 51.8192 24 52.7444 24.3941 53.4353C24.6603 53.902 25.0469 54.2886 25.5136 54.5548C26.2046 54.9489 27.1297 54.9489 28.98 54.9489H35.02C36.8703 54.9489 37.7954 54.9489 38.4864 54.5548C38.9531 54.2886 39.3397 53.902 39.6059 53.4353C40 52.7444 40 51.8192 40 49.9689V45.8144H24V49.9689Z" fill="#906EF7"/> 6199 <path d="M24 45.8144V39.4595C19.2176 36.693 16 31.5222 16 25.6C16 16.7634 23.1634 9.59998 32 9.59998C40.8366 9.59998 48 16.7634 48 25.6C48 31.5222 44.7824 36.693 40 39.4595V45.8144M24 45.8144H40M24 45.8144V49.9689C24 51.8192 24 52.7444 24.3941 53.4353C24.6603 53.902 25.0469 54.2886 25.5136 54.5548C26.2046 54.9489 27.1297 54.9489 28.98 54.9489H35.02C36.8703 54.9489 37.7954 54.9489 38.4864 54.5548C38.9531 54.2886 39.3397 53.902 39.6059 53.4353C40 52.7444 40 51.8192 40 49.9689V45.8144" stroke="white" stroke-width="2" stroke-linejoin="round"/> 6200 <path d="M24 49.9689C24 51.8192 24 52.7444 24.3941 53.4353C24.6603 53.902 25.0469 54.2886 25.5136 54.5548C26.2046 54.9489 27.1297 54.9489 28.98 54.9489H35.02C36.8703 54.9489 37.7954 54.9489 38.4864 54.5548C38.9531 54.2886 39.3397 53.902 39.6059 53.4353C40 52.7444 40 51.8192 40 49.9689V45.8144H24V49.9689Z" fill="#643CDD" stroke="white" stroke-width="2" stroke-linejoin="round"/> 6201 <path d="M29.6735 26.9101V29.1109H34.0753V26.9101C34.0753 25.6945 35.0607 24.7092 36.2762 24.7092C37.4917 24.7092 38.4771 25.6945 38.4771 26.9101C38.4771 28.1256 37.4917 29.1109 36.2762 29.1109H34.0753H29.6735H27.4726C26.2571 29.1109 25.2717 28.1256 25.2717 26.9101C25.2717 25.6945 26.2571 24.7092 27.4726 24.7092C28.6881 24.7092 29.6735 25.6945 29.6735 26.9101Z" fill="#906EF7"/> 6202 <path d="M29.6735 45.3183V26.9101C29.6735 25.6945 28.6881 24.7092 27.4726 24.7092V24.7092C26.2571 24.7092 25.2717 25.6945 25.2717 26.9101V26.9101C25.2717 28.1256 26.2571 29.1109 27.4726 29.1109H36.2762C37.4917 29.1109 38.4771 28.1256 38.4771 26.9101V26.9101C38.4771 25.6945 37.4917 24.7092 36.2762 24.7092V24.7092C35.0607 24.7092 34.0753 25.6945 34.0753 26.9101V45.3183" stroke="white" stroke-width="2" stroke-linejoin="round"/> 6203 </g>
6204 <defs> 6205 <clipPath id="clip0_241_31636"> 6206 <rect width="64" height="64" fill="white"/> 6207 </clipPath> 6208 </defs> 6209</svg> 6210`,g=(0,r.JW)`<svg fill="none" viewBox="0 0 60 60"> 6211 <rect width="60" height="60" fill="#C653C6" rx="3" /> 6212 <path 6213 fill="#fff" 6214 d="M20.03 15.22C20 15.6 20 16.07 20 17v2.8c0 1.14 0 1.7-.2 2.12-.15.31-.3.5-.58.71-.37.28-1.06.42-2.43.7-.59.12-1.11.29-1.6.51a9 9 0 0 0-4.35 4.36C10 30 10 32.34 10 37c0 4.66 0 7 .84 8.8a9 9 0 0 0 4.36 4.36C17 51 19.34 51 24 51h12c4.66 0 7 0 8.8-.84a9 9 0 0 0 4.36-4.36C50 44 50 41.66 50 37c0-4.66 0-7-.84-8.8a9 9 0 0 0-4.36-4.36c-.48-.22-1-.39-1.6-.5-1.36-.29-2.05-.43-2.42-.7-.27-.22-.43-.4-.58-.72-.2-.42-.2-.98-.2-2.11V17c0-.93 0-1.4-.03-1.78a9 9 0 0 0-8.19-8.19C31.4 7 30.93 7 30 7s-1.4 0-1.78.03a9 9 0 0 0-8.19 8.19Z" 6215 /> 6216 <path 6217 fill="#E87DE8" 6218 d="M22 17c0-.93 0-1.4.04-1.78a7 7 0 0 1 6.18-6.18C28.6 9 29.07 9 30 9s1.4 0 1.78.04a7 7 0 0 1 6.18 6.18c.04.39.04.85.04 1.78v4.5a1.5 1.5 0 0 1-3 0V17c0-.93 0-1.4-.08-1.78a4 4 0 0 0-3.14-3.14C31.39 12 30.93 12 30 12s-1.4 0-1.78.08a4 4 0 0 0-3.14 3.14c-.08.39-.08.85-.08 1.78v4.5a1.5 1.5 0 0 1-3 0V17Z" 6219 /> 6220 <path 6221 fill="#E87DE8" 6222 fill-rule="evenodd" 6223 d="M12 36.62c0-4.32 0-6.48.92-8.09a7 7 0 0 1 2.61-2.61C17.14 25 19.3 25 23.62 25h6.86c.46 0 .7 0 .9.02 2.73.22 4.37 2.43 4.62 4.98.27-2.7 2.11-5 5.02-5A6.98 6.98 0 0 1 48 31.98v5.4c0 4.32 0 6.48-.92 8.09a7 7 0 0 1-2.61 2.61c-1.61.92-3.77.92-8.09.92h-5.86c-.46 0-.7 0-.9-.02-2.73-.22-4.37-2.43-4.62-4.98-.26 2.58-1.94 4.82-4.71 4.99l-.7.01c-.55 0-.82 0-1.05-.02a7 7 0 0 1-6.52-6.52c-.02-.23-.02-.5-.02-1.05v-4.79Zm21.24-.27a4 4 0 1 0-6.48 0 31.28 31.28 0 0 1 1.57 2.23c.17.4.17.81.17 1.24V42.5a1.5 1.5 0 0 0 3 0V39.82c0-.43 0-.85.17-1.24.09-.2.58-.87 1.57-2.23Z" 6224 clip-rule="evenodd" 6225 /> 6226 <rect width="59" height="59" x=".5" y=".5" stroke="#fff" stroke-opacity=".1" rx="2.5" /> 6227</svg>`,f=(0,r.JW)`<svg fill="none" viewBox="0 0 60 60"> 6228 <g clip-path="url(#a)"> 6229 <path 6230 fill="#EB8B47" 6231 d="M0 24.9c0-9.25 0-13.88 1.97-17.33a15 15 0 0 1 5.6-5.6C11.02 0 15.65 0 24.9 0h10.2c9.25 0 13.88 0 17.33 1.97a15 15 0 0 1 5.6 5.6C60 11.02 60 15.65 60 24.9v10.2c0 9.25 0 13.88-1.97 17.33a15 15 0 0 1-5.6 5.6C48.98 60 44.35 60 35.1 60H24.9c-9.25 0-13.88 0-17.33-1.97a15 15 0 0 1-5.6-5.6C0 48.98 0 44.35 0 35.1V24.9Z" 6232 /> 6233 <path 6234 stroke="#062B2B" 6235 stroke-opacity=".1" 6236 d="M.5 24.9c0-4.64 0-8.08.24-10.8.25-2.7.73-4.65 1.66-6.28A14.5 14.5 0 0 1 7.82 2.4C9.46 1.47 11.39 1 14.1.74A133 133 0 0 1 24.9.5h10.2c4.63 0 8.08 0 10.8.24 2.7.25 4.65.73 6.28 1.66a14.5 14.5 0 0 1 5.42 5.42c.93 1.63 1.41 3.57 1.66 6.28.24 2.72.24 6.16.24 10.8v10.2c0 4.63 0 8.08-.24 10.8-.25 2.7-.73 4.64-1.66 6.28a14.5 14.5 0 0 1-5.42 5.41c-1.63.94-3.57 1.42-6.28 1.67-2.72.24-6.17.24-10.8.24H24.9c-4.63 0-8.08 0-10.8-.24-2.7-.25-4.64-.73-6.28-1.67a14.5 14.5 0 0 1-5.42-5.4C1.47 50.53 1 48.6.74 45.88A133 133 0 0 1 .5 35.1V24.9Z" 6237 /> 6238 <path 6239 fill="#FF974C" 6240 stroke="#fff" 6241 stroke-width="2" 6242 d="M39.2 29.2a13 13 0 1 0-18.4 0l1.3 1.28a12.82 12.82 0 0 1 2.1 2.39 6 6 0 0 1 .6 1.47c.2.76.2 1.56.2 3.17v11.24c0 1.08 0 1.61.13 2.12a4 4 0 0 0 .41.98c.26.45.64.83 1.4 1.6l.3.29c.65.65.98.98 1.36 1.09.26.07.54.07.8 0 .38-.11.7-.44 1.36-1.1l3.48-3.47c.65-.65.98-.98 1.09-1.36a1.5 1.5 0 0 0 0-.8c-.1-.38-.44-.7-1.1-1.36l-.47-.48c-.
624265-.65-.98-.98-1.09-1.36a1.5 1.5 0 0 1 0-.8c.1-.38.44-.7 1.1-1.36l.47-.48c.65-.65.98-.98 1.09-1.36a1.5 1.5 0 0 0 0-.8c-.1-.38-.44-.7-1.1-1.36l-.48-.5c-.65-.64-.98-.97-1.08-1.35a1.5 1.5 0 0 1 0-.79c.1-.38.42-.7 1.06-1.36l5.46-5.55Z" 6243 /> 6244 <circle cx="30" cy="17" r="4" fill="#EB8B47" stroke="#fff" stroke-width="2" /> 6245 </g> 6246 <defs> 6247 <clipPath id="a"><path fill="#fff" d="M0 0h60v60H0z" /></clipPath> 6248 </defs> 6249</svg> `,w=(0,r.JW)`<svg width="40" height="42" viewBox="0 0 40 42" fill="none"> 6250<path opacity="0.7" d="M19.9526 41.9076L7.3877 34.655V26.1226L19.9526 33.3751V41.9076Z" fill="url(#paint0_linear_2113_32117)"/> 6251<path opacity="0.7" d="M19.9521 41.9076L32.5171 34.655V26.1226L19.9521 33.3751V41.9076Z" fill="url(#paint1_linear_2113_32117)"/> 6252<path opacity="0.7" d="M39.9095 7.34521V21.8562L32.5166 26.1225V11.6114L39.9095 7.34521Z" fill="url(#paint2_linear_2113_32117)"/> 6253<path d="M39.9099 7.34536L27.345 0.0927734L19.9521 4.359L32.5171 11.6116L39.9099 7.34536Z" fill="url(#paint3_linear_2113_32117)"/> 6254<path d="M0 7.34536L12.5649 0.0927734L19.9519 4.359L7.387 11.6116L0 7.34536Z" fill="#F969D3"/> 6255<path opacity="0.7" d="M0 7.34521V21.8562L7.387 26.1225V11.6114L0 7.34521Z" fill="url(#paint4_linear_2113_32117)"/> 6256<defs> 6257<linearGradient id="paint0_linear_2113_32117" x1="18.6099" y1="41.8335" x2="7.73529" y2="8.31842" gradientUnits="userSpaceOnUse"> 6258<stop stop-color="#E98ADA"/> 6259<stop offset="1" stop-color="#7E4DBD"/> 6260</linearGradient> 6261<linearGradient id="paint1_linear_2113_32117" x1="26.2346" y1="26.1226" x2="26.2346" y2="41.9076" gradientUnits="userSpaceOnUse"> 6262<stop stop-color="#719DED"/> 6263<stop offset="1" stop-color="#2545BE"/> 6264</linearGradient> 6265<linearGradient id="paint2_linear_2113_32117" x1="36.213" y1="7.34521" x2="36.213" y2="26.1225" gradientUnits="userSpaceOnUse"> 6266<stop stop-color="#93EBFF"/> 6267<stop offset="1" stop-color="#197DDB"/> 6268</linearGradient> 6269<linearGradient id="paint3_linear_2113_32117" x1="29.931" y1="0.0927734" x2="38.2156" y2="14.8448" gradientUnits="userSpaceOnUse"> 6270<stop stop-color="#F969D3"/> 6271<stop offset="1" stop-color="#4F51C0"/> 6272</linearGradient> 6273<linearGradient id="paint4_linear_2113_32117" x1="18.1251" y1="44.2539" x2="-7.06792" y2="15.2763" gradientUnits="userSpaceOnUse"> 6274<stop stop-color="#E98ADA"/> 6275<stop offset="1" stop-color="#7E4DBD"/> 6276</linearGradient> 6277</defs> 6278</svg>`,y=(0,r.JW)`<svg fill="none" viewBox="0 0 60 60"> 6279 <g clip-path="url(#a)"> 6280 <rect width="60" height="60" fill="#00ACE6" rx="30" /> 6281 <circle cx="64" cy="39" r="50" fill="#1AC6FF" stroke="#fff" stroke-width="2" /> 6282 <circle cx="78" cy="30" r="50" fill="#4DD2FF" stroke="#fff" stroke-width="2" /> 6283 <circle cx="72" cy="15" r="35" fill="#80DFFF" stroke="#fff" stroke-width="2" /> 6284 <circle cx="34" cy="-17" r="45" stroke="#fff" stroke-width="2" /> 6285 <circle cx="34" cy="-5" r="50" stroke="#fff" stroke-width="2" /> 6286 <circle cx="30" cy="45" r="4" fill="#4DD2FF" stroke="#fff" stroke-width="2" /> 6287 <circle cx="39.5" cy="27.5" r="4" fill="#80DFFF" stroke="#fff" stroke-width="2" /> 6288 <circle cx="16" cy="24" r="4" fill="#19C6FF" stroke="#fff" stroke-width="2" /> 6289 </g> 6290 <rect width="59" height="59" x=".5" y=".5" stroke="#062B2B" stroke-opacity=".1" rx="29.5" /> 6291 <defs> 6292 <clipPath id="a"><rect width="60" height="60" fill="#fff" rx="30" /></clipPath> 6293 </defs> 6294</svg>`,b=(0,r.JW)`<svg fill="none" viewBox="0 0 60 60"> 6295 <g clip-path="url(#a)"> 6296 <rect width="60" height="60" fill="#C653C6" rx="3" /> 6297 <path 6298 fill="#E87DE8" 6299 stroke="#fff" 6300 stroke-width="2" 6301 d="M52.1 47.34c0-4.24-1.44-9.55-5.9-12.4a2.86 2.86 0 0 0-1.6-3.89v-.82c0-1.19-.52-2.26-1.35-3a4.74 4.74 0 0 0-2.4-6.26v-5.5a11.31 11.31 0 1 0-22.63 0v2.15a3.34 3.34 0 0 0-1.18 5.05 4.74 4.74 0 0 0-.68 6.44A5.22 5.22 0 0 0 14 35.92c-3.06 4.13-6.1 8.3-6.1 15.64 0 2.67.37 4.86.74 6.39a20.3 20.3 0 0 0 .73 2.39l.02.04v.01l.92-.39-.92.4.26.6h38.26l.3-.49-.87-.51.86.5.02-.01.03-.07a16.32 16.32 0 0 0 .57-1.05c.36-.72.85-1.74 1.33-2.96a25.51 25.51 0 0 0 1.94-9.07Z" 6302 /> 6303 <path 6304 fill="#fff" 6305 fill-rule="evenodd" 6306 d="M26.5 29.5c-3-.5-5.5-3-5.5-7v-7c0-.47 0-.7.03-.9a3 3 0 0 1 2.58-2.57c.2-.03.42-.03.89-.03 2 0 2.5-2.5 2.5-2.5s0 2.5 2.5 2.5c1.4 0 2.1 0 2.65.23a3 3 0 0 1 1.62 1.62c.23.55.23 1.25.23 2.65v6c0 4-3 7-6.5 7 1.35.23 4 0 6.5-2v9.53C34 38.5 31.5 40 28 40s-6-1.5-6-2.97L24 34l2.5 1.5v-6ZM26 47h4.5c2.5 0 3 4 3 5.5h-3l-1-1.5H26v-4Zm-6.25 5.5H24V57h-8c0-1 1-4.5 3.75-4.5Z" 6307 clip-rule="evenodd" 6308 /> 6309 </g> 6310 <rect width="59" height="59" x=".5" y=".5" stroke="#fff" stroke-opacity=".1" rx="2.5" /> 6311 <defs> 6312 <clipPath id="a"><rect width="60" height="60" fill="#fff" rx="3" /></clipPath> 6313 </defs> 6314</svg> `,v=(0,r.JW)`<svg fill="none" viewBox="0 0 60 60"> 6315 <rect width="60" height="60" fill="#794CFF" rx="3" /> 6316 <path 6317 fill="#987DE8" 6318 stroke="#fff" 6319 stroke-width="2" 6320 d="M33 22.5v-1H16v5H8.5V36H13v-5h3v7.5h17V31h1v7.5h17v-17H34v5h-1v-4Z" 6321 /> 6322 <path fill="#fff" d="M37.5 25h10v10h-10z" /> 6323 <path fill="#4019B2" d="M42.5 25h5v10h-5z" /> 6324 <path fill="#fff" d="M19.5 25h10v10h-10z" /> 6325 <path fill="#4019B2" d="M24.5 25h5v10h-5z" /> 6326 <path fill="#fff" d="M12 30.5h4V37h-4v-6.5Z" /> 6327 <rect width="59" height="59" x=".5" y=".5" stroke="#fff" stroke-opacity=".1" rx="2.5" /> 6328</svg>
6328`,C=(0,r.JW)`<svg width="60" height="60" viewBox="0 0 60 60" fill="none"> 6329<g clip-path="url(#clip0_13859_31161)"> 6330 <path d="M0 24.8995C0 15.6481 0 11.0223 1.97053 7.56763C3.3015 5.2342 5.23468 3.30101 7.56812 1.97004C11.0228 -0.000488281 15.6485 -0.000488281 24.9 -0.000488281H35.1C44.3514 -0.000488281 48.9772 -0.000488281 52.4319 1.97004C54.7653 3.30101 56.6985 5.2342 58.0295 7.56763C60 11.0223 60 15.6481 60 24.8995V35.0995C60 44.351 60 48.9767 58.0295 52.4314C56.6985 54.7648 54.7653 56.698 52.4319 58.029C48.9772 59.9995 44.3514 59.9995 35.1 59.9995H24.9C15.6485 59.9995 11.0228 59.9995 7.56812 58.029C5.23468 56.698 3.3015 54.7648 1.97053 52.4314C0 48.9767 0 44.351 0 35.0995V24.8995Z" fill="#EB8B47"/> 6331 <path d="M0.5 24.8995C0.5 20.2647 0.50047 16.8216 0.744315 14.1045C0.987552 11.3941 1.46987 9.45455 2.40484 7.81536C3.69145 5.55971 5.56019 3.69096 7.81585 2.40435C9.45504 1.46938 11.3946 0.987064 14.105 0.743826C16.8221 0.499981 20.2652 0.499512 24.9 0.499512H35.1C39.7348 0.499512 43.1779 0.499981 45.895 0.743826C48.6054 0.987064 50.545 1.46938 52.1841 2.40435C54.4398 3.69096 56.3086 5.55971 57.5952 7.81536C58.5301 9.45455 59.0124 11.3941 59.2557 14.1045C59.4995 16.8216 59.5 20.2647 59.5 24.8995V35.0995C59.5 39.7343 59.4995 43.1774 59.2557 45.8945C59.0124 48.6049 58.5301 50.5445 57.5952 52.1837C56.3086 54.4393 54.4398 56.3081 52.1841 57.5947C50.545 58.5296 48.6054 59.012 45.895 59.2552C43.1779 59.499 39.7348 59.4995 35.1 59.4995H24.9C20.2652 59.4995 16.8221 59.499 14.105 59.2552C11.3946 59.012 9.45504 58.5296 7.81585 57.5947C5.56019 56.3081 3.69145 54.4393 2.40484 52.1837C1.46987 50.5445 0.987552 48.6049 0.744315 45.8945C0.50047 43.1774 0.5 39.7343 0.5 35.0995V24.8995Z" stroke="#141414" stroke-opacity="0.1"/> 6332 <path d="M13 26.0335C13 21.7838 13 19.659 14.0822 18.1694C14.4318 17.6883 14.8548 17.2653 15.3359 16.9157C16.8255 15.8335 18.9503 15.8335 23.2 15.8335H36.8C41.0497 15.8335 43.1745 15.8335 44.6641 16.9157C45.1452 17.2653 45.5682 17.6883 45.9178 18.1694C47 19.659 47 21.7838 47 26.0335V33.9668C47 38.2165 47 40.3414 45.9178 41.831C45.5682 42.312 45.1452 42.7351 44.6641 43.0846C43.1745 44.1668 41.0497 44.1668 36.8 44.1668H23.2C18.9503 44.1668 16.8255 44.1668 15.3359 43.0846C14.8548 42.7351 14.4318 42.312 14.0822 41.831C13 40.3414 13 38.2165 13 33.9668V26.0335Z" fill="#FF974C" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> 6333 <path d="M39.5 36.667H36.6666" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/> 6334 <path d="M45.2 23.0645H14.8C14.0501 23.0645 13.6751 23.0645 13.4122 23.2554C13.3273 23.3171 13.2527 23.3918 13.191 23.4767C13 23.7395 13 24.1145 13 24.8645V27.2645C13 28.0144 13 28.3894 13.191 28.6522C13.2527 28.7371 13.3273 28.8118 13.4122 28.8735C13.6751 29.0645 14.0501 29.0645 14.8 29.0645H45.2C45.9499 29.0645 46.3249 29.0645 46.5878 28.8735C46.6727 28.8118 46.7473 28.7371 46.809 28.6522C47 28.3894 47 28.0144 47 27.2645V24.8645C47 24.1145 47 23.7395 46.809 23.4767C46.7473 23.3918 46.6727 23.3171 46.5878 23.2554C46.3249 23.0645 45.9499 23.0645 45.2 23.0645Z" fill="white" fill-opacity="0.4" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> 6335</g> 6336<defs> 6337 <clipPath id="clip0_13859_31161"> 6338 <rect width="60" height="60" fill="white"/> 6339 </clipPath> 6340</defs> 6341</svg>`,x=(0,r.JW)`<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg"> 6342 <g clip-path="url(#clip0_241_31635)"> 6343 <path d="M0 26.5595C0 16.6913 0 11.7572 2.1019 8.07217C3.5216 5.58317 5.58366 3.52111 8.07266 2.10141C11.7577 -0.000488281 16.6918 -0.000488281 26.56 -0.000488281H37.44C47.3082 -0.000488281 52.2423 -0.000488281 55.9273 2.10141C58.4163 3.52111 60.4784 5.58317 61.8981 8.07217C64 11.7572 64 16.6913 64 26.5595V37.4395C64 47.3077 64 52.2418 61.8981 55.9268C60.4784 58.4158 58.4163 60.4779 55.9273 61.8976C52.2423 63.9995 47.3082 63.9995 37.44 63.9995H26.56C16.6918 63.9995 11.7577 63.9995 8.07266 61.8976C5.58366 60.4779 3.5216 58.4158 2.1019 55.9268C0 52.2418 0 47.3077 0 37.4395V26.5595Z" fill="#EB8B47"/> 6344 <path d="M0.5 26.5595C0.5 21.6163 0.50047 17.942 0.760736 15.0418C1.02039 12.1485 1.53555 10.0742 2.53621 8.3199
6344C3.91155 5.90869 5.90917 3.91106 8.32039 2.53572C10.0747 1.53506 12.1489 1.01991 15.0423 0.760247C17.9425 0.499981 21.6168 0.499512 26.56 0.499512H37.44C42.3832 0.499512 46.0575 0.499981 48.9577 0.760247C51.8511 1.01991 53.9253 1.53506 55.6796 2.53572C58.0908 3.91106 60.0885 5.90869 61.4638 8.3199C62.4645 10.0742 62.9796 12.1485 63.2393 15.0418C63.4995 17.942 63.5 21.6163 63.5 26.5595V37.4395C63.5 42.3827 63.4995 46.057 63.2393 48.9572C62.9796 51.8506 62.4645 53.9248 61.4638 55.6791C60.0885 58.0903 58.0908 60.088 55.6796 61.4633C53.9253 62.464 51.8511 62.9791 48.9577 63.2388C46.0575 63.499 42.3832 63.4995 37.44 63.4995H26.56C21.6168 63.4995 17.9425 63.499 15.0423 63.2388C12.1489 62.9791 10.0747 62.464 8.32039 61.4633C5.90917 60.088 3.91155 58.0903 2.53621 55.6791C1.53555 53.9248 1.02039 51.8506 0.760736 48.9572C0.50047 46.057 0.5 42.3827 0.5 37.4395V26.5595Z" stroke="#141414" stroke-opacity="0.1"/> 6345 <path d="M28.1042 49.2329L13.1024 51.2077L15.0772 36.2059L37.1015 14.1815C39.2441 12.039 40.3154 10.9677 41.5718 10.624C42.4205 10.3918 43.3159 10.3918 44.1645 10.624C45.421 10.9677 46.4922 12.039 48.6348 14.1815L50.1286 15.6753C52.2711 17.8179 53.3424 18.8891 53.6861 20.1456C53.9183 20.9942 53.9183 21.8896 53.6861 22.7383C53.3424 23.9947 52.2711 25.066 50.1286 27.2086L28.1042 49.2329Z" fill="#FF974C" stroke="#E4E7E7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> 6346 <path d="M38.5962 20.5376L22.4199 36.7139" stroke="#E4E7E7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> 6347 <path d="M43.7727 25.714L27.5964 41.8903" stroke="#E4E7E7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> 6348 <path d="M22.3703 36.7635C19.3258 39.808 16.0198 36.6395 16.2616 35.0324" stroke="#E4E7E7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> 6349 <path d="M27.5466 41.9399C24.5034 44.9831 28.155 48.7098 29.2738 48.0475" stroke="#E4E7E7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> 6350 <path d="M27.5468 41.9398C23.428 46.0586 18.2516 40.8822 22.3704 36.7634" stroke="#E4E7E7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> 6351 <path d="M15.8191 50.5214C15.4711 49.5823 14.728 48.8392 13.7889 48.4912" stroke="#E4E7E7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> 6352 <path d="M49.2862 29.5805L34.7275 15.0219" stroke="#E4E7E7" stroke-width="2" stroke-linejoin="round"/> 6353 </g> 6354 <defs> 6355 <clipPath id="clip0_241_31635"> 6356 <rect width="64" height="64" fill="white"/> 6357 </clipPath> 6358 </defs> 6359</svg> 6360`,E=(0,r.JW)`<svg 6361 viewBox="0 0 60 60" 6362 fill="none" 6363> 6364 <g clip-path="url(#1)"> 6365 <rect width="60" height="60" rx="30" fill="#00ACE6" /> 6366 <path 6367 d="M59 73C59 89.0163 46.0163 102 30 102C13.9837 102 1 89.0163 1 73C1 56.9837 12 44 30 44C48 44 59 56.9837 59 73Z" 6368 fill="#1AC6FF" 6369 stroke="white" 6370 stroke-width="2" 6371 /> 6372 <path 6373 d="M18.6904 19.9015C19.6264 15.3286 23.3466 11.8445 27.9708 11.2096C29.3231 11.024 30.6751 11.0238 32.0289 11.2096C36.6532 11.8445 40.3733 15.3286 41.3094 19.9015C41.4868 20.7681 41.6309 21.6509 41.7492 22.5271C41.8811 23.5041 41.8811 24.4944 41.7492 25.4715C41.6309 26.3476 41.4868 27.2304 41.3094 28.097C40.3733 32.6699 36.6532 36.154 32.0289 36.7889C30.6772 36.9744 29.3216 36.9743 27.9708 36.7889C23.3466 36.154 19.6264 32.6699 18.6904 28.097C18.513 27.2304 18.3689 26.3476 18.2506 25.4715C18.1186 24.4944 18.1186 23.5041 18.2506 22.5271C18.3689 21.6509 18.513 20.7681 18.6904 19.9015Z" 6374 fill="#1AC6FF" 6375 stroke="white" 6376 stroke-width="2" 6377 /> 6378 <circle cx="24.5" cy="23.5" r="1.5" fill="white" /> 6379 <circle cx="35.5" cy="23.5" r="1.5" fill="white" /> 6380 <path 6381 d="M31 20L28 28H32" 6382 stroke="white" 6383 stroke-width="2" 6384 stroke-linecap="round" 6385 stroke-linejoin="round" 6386 /> 6387 </g> 6388 <rect x="0.5" y="0.5" width="59" height="59" rx="29.5" stroke="white" stroke-opacity="0.1" /> 6389 <defs> 6390 <clipPath id="1"> 6391 <rect width="60" height="60" rx="30" fill="white" /> 6392 </clipPath> 6393 </defs> 6394</svg> `,k=(0,r.JW)`<svg fill="none" viewBox="0 0 80 80"> 6395 <g clip-path="url(#a)"> 6396 <path fill="url(#b)" d="M40 80a40 40 0 1 0 0-80 40 40 0 0 0 0 80Z" /> 6397 <path 6398 stroke="#fff" 6399 stroke-opacity=".1" 6400 d="M79.5 40a39.5 39.5 0 1 1-79 0 39.5 39.5 0 0 1 79 0Z" 6401 /> 6402 <path 6403 fill="#fff" 6404 d="m62.62 51.54-7.54 7.91a1.75 1.75 0 0 1-1.29.55H18.02a.9.9 0 0 1-.8-.52.84.84 0 0 1 .16-.92l7.55-7.92a1.75 1.75 0 0 1 1.28-.55h35.77a.87.87 0 0 1 .8.52.84.84 0 0 1-.16.93Zm-7.54-15.95a1.75 1.75 0 0 0-1.29-.54H18.02a.89.89 0 0 0-.8.51.84.84 0 0 0 .16.93l7.55 7.92a1.75 1.75 0 0 0 1.28.54h35.77a.89.89 0 0 0 .8-.51.84.84 0 0 0-.16-.93l-7.54-7.92ZM18.02 29.9h35.77a1.79 1.79 0 0 0 1.29-.54l7.54-7.92a.85.85 0 0 0 .16-.93.87.87 0 0 0-.8-.51H26.21a1.79 1.79 0 0 0-1.28.54l-7.55 7.92a.85.85 0 0 0-.16.93.89.89 0 0 0 .8.52Z" 6405 /> 6406 </g>
6407 <defs> 6408 <linearGradient id="b" x1="6.75" x2="80.68" y1="81.91" y2="7.37" gradientUnits="userSpaceOnUse"> 6409 <stop offset=".08" stop-color="#9945FF" /> 6410 <stop offset=".3" stop-color="#8752F3" /> 6411 <stop offset=".5" stop-color="#5497D5" /> 6412 <stop offset=".6" stop-color="#43B4CA" /> 6413 <stop offset=".72" stop-color="#28E0B9" /> 6414 <stop offset=".97" stop-color="#19FB9B" /> 6415 </linearGradient> 6416 <clipPath id="a"><path fill="#fff" d="M0 0h80v80H0z" /></clipPath> 6417 </defs> 6418</svg> `,A=(0,r.JW)`<svg viewBox="0 0 60 60" fill="none"> 6419 <g clip-path="url(#1)"> 6420 <path 6421 d="M0 24.9C0 15.6485 0 11.0228 1.97053 7.56812C3.3015 5.23468 5.23468 3.3015 7.56812 1.97053C11.0228 0 15.6485 0 24.9 0H35.1C44.3514 0 48.9772 0 52.4319 1.97053C54.7653 3.3015 56.6985 5.23468 58.0295 7.56812C60 11.0228 60 15.6485 60 24.9V35.1C60 44.3514 60 48.9772 58.0295 52.4319C56.6985 54.7653 54.7653 56.6985 52.4319 58.0295C48.9772 60 44.3514 60 35.1 60H24.9C15.6485 60 11.0228 60 7.56812 58.0295C5.23468 56.6985 3.3015 54.7653 1.97053 52.4319C0 48.9772 0 44.3514 0 35.1V24.9Z" 6422 fill="#794CFF" 6423 /> 6424 <path 6425 d="M0.5 24.9C0.5 20.2652 0.50047 16.8221 0.744315 14.105C0.987552 11.3946 1.46987 9.45504 2.40484 7.81585C3.69145 5.56019 5.56019 3.69145 7.81585 2.40484C9.45504 1.46987 11.3946 0.987552 14.105 0.744315C16.8221 0.50047 20.2652 0.5 24.9 0.5H35.1C39.7348 0.5 43.1779 0.50047 45.895 0.744315C48.6054 0.987552 50.545 1.46987 52.1841 2.40484C54.4398 3.69145 56.3086 5.56019 57.5952 7.81585C58.5301 9.45504 59.0124 11.3946 59.2557 14.105C59.4995 16.8221 59.5 20.2652 59.5 24.9V35.1C59.5 39.7348 59.4995 43.1779 59.2557 45.895C59.0124 48.6054 58.5301 50.545 57.5952 52.1841C56.3086 54.4398 54.4398 56.3086 52.1841 57.5952C50.545 58.5301 48.6054 59.0124 45.895 59.2557C43.1779 59.4995 39.7348 59.5 35.1 59.5H24.9C20.2652 59.5 16.8221 59.4995 14.105 59.2557C11.3946 59.0124 9.45504 58.5301 7.81585 57.5952C5.56019 56.3086 3.69145 54.4398 2.40484 52.1841C1.46987 50.545 0.987552 48.6054 0.744315 45.895C0.50047 43.1779 0.5 39.7348 0.5 35.1V24.9Z" 6426 stroke="#062B2B" 6427 stroke-opacity="0.1" 6428 /> 6429 <path 6430 d="M35.1403 31.5016C35.1193 30.9637 35.388 30.4558 35.8446 30.1707C36.1207 29.9982 36.4761 29.8473 36.7921 29.7685C37.3143 29.6382 37.8664 29.7977 38.2386 30.1864C38.8507 30.8257 39.3004 31.6836 39.8033 32.408C40.2796 33.0942 41.4695 33.2512 41.9687 32.5047C42.4839 31.7341 42.9405 30.8229 43.572 30.1399C43.9375 29.7447 44.4866 29.5756 45.0111 29.6967C45.3283 29.7701 45.6863 29.9147 45.9655 30.0823C46.4269 30.3595 46.7045 30.8626 46.6928 31.4008C46.6731 32.3083 46.3764 33.2571 46.2158 34.1473C46.061 35.0048 46.9045 35.8337 47.7592 35.664C48.6464 35.4878 49.5899 35.1747 50.497 35.1391C51.0348 35.1181 51.5427 35.3868 51.8279 35.8433C52.0004 36.1195 52.1513 36.4749 52.2301 36.7908C52.3604 37.3131 52.2009 37.8651 51.8121 38.2374C51.1729 38.8495 50.3151 39.2991 49.5908 39.8019C48.9046 40.2782 48.7473 41.4683 49.4939 41.9675C50.2644 42.4827 51.1757 42.9393 51.8587 43.5708C52.2539 43.9362 52.423 44.4854 52.3018 45.0099C52.2285 45.3271 52.0839 45.6851 51.9162 45.9642C51.6391 46.4257 51.1359 46.7032 50.5978 46.6916C49.6903 46.6719 48.7417 46.3753 47.8516 46.2146C46.9939 46.0598 46.1648 46.9035 46.3346 47.7583C46.5108 48.6454 46.8239 49.5888 46.8594 50.4958C46.8805 51.0336 46.6117 51.5415 46.1552 51.8267C45.879 51.9992 45.5236 52.15 45.2077 52.2289C44.6854 52.3592 44.1334 52.1997 43.7611 51.8109C43.1491 51.1718 42.6996 50.314 42.1968 49.5897C41.7203 48.9034 40.5301 48.7463 40.0309 49.493C39.5157 50.2634 39.0592 51.1746 38.4278 51.8574C38.0623 52.2527 37.5132 52.4218 36.9887 52.3006C36.6715 52.2273 36.3135 52.0826 36.0343 51.915C35.5729 51.6379 35.2953 51.1347 35.307 50.5966C35.3267 49.6891 35.6233 48.7405 35.7839 47.8505C35.9388 46.9928 35.0951 46.1636 34.2402 46.3334C33.3531 46.5096 32.4098 46.8227 31.5028 46.8582C30.9649 46.8793 30.457 46.6105 30.1719 46.154C29.9994 45.8778 29.8485 45.5224 29.7697 45.2065C29.6394 44.6842 29.7989 44.1322 30.1877 43.7599C30.8269 43.1479 31.6847 42.6982 32.4091 42.1954C33.0954 41.7189 33.2522 40.5289 32.5056 40.0297C31.7351 39.5145 30.824 39.058 30.1411 38.4265C29.7459 38.0611 29.5768 37.5119 29.698 36.9875C29.7713 36.6702 29.9159 36.3122 30.0836 36.0331C30.3607 35.5
6430717 30.8638 35.2941 31.402 35.3058C32.3095 35.3255 33.2583 35.6221 34.1485 35.7828C35.006 35.9376 35.8349 35.094 35.6652 34.2393C35.489 33.3521 35.1759 32.4087 35.1403 31.5016Z" 6431 fill="#906EF7" 6432 stroke="white" 6433 stroke-width="2" 6434 /> 6435 <path 6436 d="M20.7706 8.22357C20.9036 7.51411 21.5231 7 22.2449 7H23.7551C24.4769 7 25.0964 7.51411 25.2294 8.22357C25.5051 9.69403 25.4829 11.6321 27.1202 12.2606C27.3092 12.3331 27.4958 12.4105 27.6798 12.4926C29.2818 13.2072 30.6374 11.8199 31.8721 10.9752C32.4678 10.5676 33.2694 10.6421 33.7798 11.1525L34.8477 12.2204C35.3581 12.7308 35.4326 13.5323 35.025 14.128C34.1802 15.3627 32.7931 16.7183 33.5077 18.3202C33.5898 18.5043 33.6672 18.6909 33.7398 18.88C34.3683 20.5171 36.3061 20.4949 37.7764 20.7706C38.4859 20.9036 39 21.5231 39 22.2449V23.7551C39 24.4769 38.4859 25.0964 37.7764 25.2294C36.3061 25.5051 34.3685 25.483 33.7401 27.1201C33.6675 27.3093 33.59 27.4961 33.5079 27.6803C32.7934 29.282 34.1803 30.6374 35.025 31.8719C35.4326 32.4677 35.3581 33.2692 34.8477 33.7796L33.7798 34.8475C33.2694 35.3579 32.4678 35.4324 31.8721 35.0248C30.6376 34.1801 29.2823 32.7934 27.6806 33.508C27.4962 33.5903 27.3093 33.6678 27.12 33.7405C25.483 34.3688 25.5051 36.3062 25.2294 37.7764C25.0964 38.4859 24.4769 39 23.7551 39H22.2449C21.5231 39 20.9036 38.4859 20.7706 37.7764C20.4949 36.3062 20.517 34.3688 18.88 33.7405C18.6908 33.6678 18.5039 33.5903 18.3196 33.5081C16.7179 32.7936 15.3625 34.1804 14.1279 35.0251C13.5322 35.4327 12.7307 35.3582 12.2203 34.8478L11.1524 33.7799C10.642 33.2695 10.5675 32.4679 10.9751 31.8722C11.8198 30.6376 13.2067 29.2822 12.4922 27.6804C12.41 27.4962 12.3325 27.3093 12.2599 27.1201C11.6315 25.483 9.69392 25.5051 8.22357 25.2294C7.51411 25.0964 7 24.4769 7 23.7551V22.2449C7 21.5231 7.51411 20.9036 8.22357 20.7706C9.69394 20.4949 11.6317 20.5171 12.2602 18.88C12.3328 18.6909 12.4103 18.5042 12.4924 18.3201C13.207 16.7181 11.8198 15.3625 10.975 14.1278C10.5674 13.5321 10.6419 12.7305 11.1523 12.2201L12.2202 11.1522C12.7306 10.6418 13.5322 10.5673 14.1279 10.9749C15.3626 11.8197 16.7184 13.2071 18.3204 12.4925C18.5044 12.4105 18.6909 12.3331 18.8799 12.2606C20.5171 11.6321 20.4949 9.69403 20.7706 8.22357Z" 6437 fill="#906EF7" 6438 stroke="white" 6439 stroke-width="2" 6440 /> 6441 <circle cx="23" cy="23" r="6" fill="#794CFF" stroke="white" stroke-width="2" /> 6442 <circle cx="41" cy="41" r="4" fill="#794CFF" stroke="white" stroke-width="2" /> 6443 </g> 6444 <defs> 6445 <clipPath id="1"> 6446 <rect width="60" height="60" fill="white" /> 6447 </clipPath> 6448 </defs> 6449</svg> `;var $=i(62057),_=i(54718);let N=(0,r.AH)` 6450 :host { 6451 display: block; 6452 width: var(--local-size); 6453 height: var(--local-size); 6454 } 6455 6456 :host svg { 6457 width: 100%; 6458 height: 100%; 6459 } 6460`;var S=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let T={browser:s,dao:l,defi:c,defiAlt:d,eth:u,layers:p,lock:g,login:f,network:y,nft:b,noun:v,profile:E,system:A,meld:w,onrampCard:C,google:h,pencil:x,lightbulb:m,solana:k,ton:n._,bitcoin:o},R=class extends r.WF{constructor(){super(...arguments),this.name="browser",this.size="md"}render(){return this.style.cssText=` 6461 --local-size: var(--apkt-visual-size-${this.size}); 6462 `,(0,r.qy)`${T[this.name]}`}};R.styles=[$.W5,N],S([(0,a.MZ)()],R.prototype,"name",void 0),S([(0,a.MZ)()],R.prototype,"size",void 0),R=S([(0,_.E)("wui-visual")],R)},67287:(e,t,i)=>{"use strict";i.d(t,{l$:()=>x,oR:()=>w});var r=i(53449),a=i(94044),n=e=>{switch(e){case"success":return l;case"info":return d;case"warning":return c;case"error":return u;default:return null}},o=Array(12).fill(0),s=e=>{let{visible:t,className:i}=e;return r.createElement("div",{className:["sonner-loading-wrapper",i].filter(Boolean).join(" "),"data-visible":t},r.createElement("div",{className:"sonner-spinner"},o.map((e,t)=>r.createElement("div",{className:"sonner-loading-bar",key:"spinner-bar-".concat(t)}))))},l=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),c=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
6462currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),d=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),u=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),h=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},r.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),r.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),p=()=>{let[e,t]=r.useState(document.hidden);return r.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)},[]),e},m=1,g=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:i,...r}=e,a="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:m++,n=this.toasts.find(e=>e.id===a),o=void 0===e.dismissible||e.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),n?this.toasts=this.toasts.map(t=>t.id===a?(this.publish({...t,...e,id:a,title:i}),{...t,...e,id:a,dismissible:o,title:i}):t):this.addToast({title:i,...r,dismissible:o,id:a}),a},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
6462this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{let i;if(!t)return;void 0!==t.loading&&(i=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));let a=e instanceof Promise?e:e(),n=void 0!==i,o,s=a.then(async e=>{if(o=["resolve",e],r.isValidElement(e))n=!1,this.create({id:i,type:"default",message:e});else if(f(e)&&!e.ok){n=!1;let r="function"==typeof t.error?await t.error("HTTP error! status: ".concat(e.status)):t.error,a="function"==typeof t.description?await t.description("HTTP error! status: ".concat(e.status)):t.description;this.create({id:i,type:"error",message:r,description:a})}else if(void 0!==t.success){n=!1;let r="function"==typeof t.success?await t.success(e):t.success,a="function"==typeof t.description?await t.description(e):t.description;this.create({id:i,type:"success",message:r,description:a})}}).catch(async e=>{if(o=["reject",e],void 0!==t.error){n=!1;let r="function"==typeof t.error?await t.error(e):t.error,a="function"==typeof t.description?await t.description(e):t.description;this.create({id:i,type:"error",message:r,description:a})}}).finally(()=>{var e;n&&(this.dismiss(i),i=void 0),null==(e=t.finally)||e.call(t)}),l=()=>new Promise((e,t)=>s.then(()=>"reject"===o[0]?t(o[1]):e(o[1])).catch(t));return"string"!=typeof i&&"number"!=typeof i?{unwrap:l}:Object.assign(i,{unwrap:l})},this.custom=(e,t)=>{let i=(null==t?void 0:t.id)||m++;return this.create({jsx:e(i),id:i,...t}),i},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},f=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,w=Object.assign((e,t)=>{let i=(null==t?void 0:t.id)||m++;return g.addToast({title:e,...t,id:i}),i},{success:g.success,info:g.info,warning:g.warning,error:g.error,custom:g.custom,message:g.message,promise:g.promise,dismiss:g.dismiss,loading:g.loading},{getHistory:()=>g.toasts,getToasts:()=>g.getActiveToasts()});function y(e){return void 0!==e.label}function b(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return t.filter(Boolean).join(" ")}!function(e){let{insertAt:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||"undefined"==typeof document)return;let i=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===t&&i.firstChild?i.insertBefore(r,i.firstChild):i.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}(':where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
6462left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
6462:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
6462--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}\n');var v=e=>{var t,i,a,o,l,c,d,u,m,g,f;let{invert:w,toast:v,unstyled:C,interacting:x,setHeights:E,visibleToasts:k,heights:A,index:$,toasts:_,expanded:N,removeToast:S,defaultRichColors:T,closeButton:R,style:I,cancelButtonStyle:P,actionButtonStyle:O,className:M="",descriptionClassName:W="",duration:L,position:D,gap:U,loadingIcon:F,expandByDefault:H,classNames:j,icons:Z,closeButtonAriaLabel:B="Close toast",pauseWhenPageIsHidden:z}=e,[q,V]=r.useState(null),[K,G]=r.useState(null),[J,Y]=r.useState(!1),[X,Q]=r.useState(!1),[ee,et]=r.useState(!1),[ei,er]=r.useState(!1),[ea,en]=r.useState(!1),[eo,es]=r.useState(0),[el,ec]=r.useState(0),ed=r.useRef(v.duration||L||4e3),eu=r.useRef(null),eh=r.useRef(null),ep=0===$,em=$+1<=k,eg=v.type,ef=!1!==v.dismissible,ew=v.className||"",ey=v.descriptionClassName||"",eb=r.useMemo(()=>A.findIndex(e=>e.toastId===v.id)||0,[A,v.id]),ev=r.useMemo(()=>{var e;return null!=(e=v.closeButton)?e:R},[v.closeButton,R]),eC=r.useMemo(()=>v.duration||L||4e3,[v.duration,L]),ex=r.useRef(0),eE=r.useRef(0),ek=r.useRef(0),eA=r.useRef(null),[e$,e_]=D.split("-"),eN=r.useMemo(()=>A.reduce((e,t,i)=>i>=eb?e:e+t.height,0),[A,eb]),eS=p(),eT=v.invert||w,eR="loading"===eg;eE.current=r.useMemo(()=>eb*U+eN,[eb,eN]),r.useEffect(()=>{ed.current=eC},[eC]),r.useEffect(()=>{Y(!0)},[]),r.useEffect(()=>{let e=eh.current;if(e){let t=e.getBoundingClientRect().height;return ec(t),E(e=>[{toastId:v.id,height:t,position:v.position},...e]),()=>E(e=>e.filter(e=>e.toastId!==v.id))}},[E,v.id]),r.useLayoutEffect(()=>{if(!J)return;let e=eh.current,t=e.style.height;e.style.height="auto";let i=e.getBoundingClientRect().height;e.style.height=t,ec(i),E(e=>e.find(e=>e.toastId===v.id)?e.map(e=>e.toastId===v.id?{...e,height:i}:e):[{toastId:v.id,height:i,position:v.position},...e])},[J,v.title,v.description,E,v.id]);let eI=r.useCallback(()=>{Q(!0),es(eE.current),E(e=>e.filter(e=>e.toastId!==v.id)),setTimeout(()=>{S(v)},200)},[v,S,E,eE]);return r.useEffect(()=>{let e;if((!v.promise||"loading"!==eg)&&v.duration!==1/0&&"loading"!==v.type)return N||x||z&&eS?(()=>{if(ek.current<ex.current){let e=new Date().getTime()-ex.current;ed.current=ed.current-e}
6462ek.current=new Date().getTime()})():ed.current!==1/0&&(ex.current=new Date().getTime(),e=setTimeout(()=>{var e;null==(e=v.onAutoClose)||e.call(v,v),eI()},ed.current)),()=>clearTimeout(e)},[N,x,v,eg,z,eS,eI]),r.useEffect(()=>{v.delete&&eI()},[eI,v.delete]),r.createElement("li",{tabIndex:0,ref:eh,className:b(M,ew,null==j?void 0:j.toast,null==(t=null==v?void 0:v.classNames)?void 0:t.toast,null==j?void 0:j.default,null==j?void 0:j[eg],null==(i=null==v?void 0:v.classNames)?void 0:i[eg]),"data-sonner-toast":"","data-rich-colors":null!=(a=v.richColors)?a:T,"data-styled":!(v.jsx||v.unstyled||C),"data-mounted":J,"data-promise":!!v.promise,"data-swiped":ea,"data-removed":X,"data-visible":em,"data-y-position":e$,"data-x-position":e_,"data-index":$,"data-front":ep,"data-swiping":ee,"data-dismissible":ef,"data-type":eg,"data-invert":eT,"data-swipe-out":ei,"data-swipe-direction":K,"data-expanded":!!(N||H&&J),style:{"--index":$,"--toasts-before":$,"--z-index":_.length-$,"--offset":"".concat(X?eo:eE.current,"px"),"--initial-height":H?"auto":"".concat(el,"px"),...I,...v.style},onDragEnd:()=>{et(!1),V(null),eA.current=null},onPointerDown:e=>{eR||!ef||(eu.current=new Date,es(eE.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(et(!0),eA.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,i,r;if(ei||!ef)return;eA.current=null;let a=Number((null==(e=eh.current)?void 0:e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),n=Number((null==(t=eh.current)?void 0:t.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),o=new Date().getTime()-(null==(i=eu.current)?void 0:i.getTime()),s="x"===q?a:n,l=Math.abs(s)/o;if(Math.abs(s)>=20||l>.11){es(eE.current),null==(r=v.onDismiss)||r.call(v,v),G("x"===q?a>0?"right":"left":n>0?"down":"up"),eI(),er(!0),en(!1);return}et(!1),V(null)},onPointerMove:t=>{var i,r,a,n;if(!eA.current||!ef||(null==(i=window.getSelection())?void 0:i.toString().length)>0)return;let o=t.clientY-eA.current.y,s=t.clientX-eA.current.x,l=null!=(r=e.swipeDirections)?r:function(e){let[t,i]=e.split("-"),r=[];return t&&r.push(t),i&&r.push(i),r}(D);!q&&(Math.abs(s)>1||Math.abs(o)>1)&&V(Math.abs(s)>Math.abs(o)?"x":"y");let c={x:0,y:0};"y"===q?(l.includes("top")||l.includes("bottom"))&&(l.includes("top")&&o<0||l.includes("bottom")&&o>0)&&(c.y=o):"x"===q&&(l.includes("left")||l.includes("right"))&&(l.includes("left")&&s<0||l.includes("right")&&s>0)&&(c.x=s),(Math.abs(c.x)>0||Math.abs(c.y)>0)&&en(!0),null==(a=eh.current)||a.style.setProperty("--swipe-amount-x","".concat(c.x,"px")),null==(n=eh.current)||n.style.setProperty("--swipe-amount-y","".concat(c.y,"px"))}},ev&&!v.jsx?r.createElement("button",{"aria-label":B,"data-disabled":eR,"data-close-button":!0,onClick:eR||!ef?()=>{}:()=>{var e;eI(),null==(e=v.onDismiss)||e.call(v,v)},className:b(null==j?void 0:j.closeButton,null==(o=null==v?void 0:v.classNames)?void 0:o.closeButton)},null!=(l=null==Z?void 0:Z.close)?l:h):null,v.jsx||(0,r.isValidElement)(v.title)?v.jsx?v.jsx:"function"==typeof v.title?v.title():v.title:r.createElement(r.Fragment,null,eg||v.icon||v.promise?r.createElement("div",{"data-icon":"",className:b(null==j?void 0:j.icon,null==(c=null==v?void 0:v.classNames)?void 0:c.icon)},v.promise||"loading"===v.type&&!v.icon?v.icon||function(){var e,t,i;return null!=Z&&Z.loading?r.createElement("div",{className:b(null==j?void 0:j.loader,null==(e=null==v?void 0:v.classNames)?void 0:e.loader,"sonner-loader"),"data-visible":"loading"===eg},Z.loading):F?r.createElement("div",{className:b(null==j?void 0:j.loader,null==(t=null==v?void 0:v.classNames)?void 0:t.loader,"sonner-loader"),"data-visible":"loading"===eg},F):r.createElement(s,{className:b(null==j?void 0:j.loader,null==(i=null==v?void 0:v.classNames)?void 0:i.loader),visible:"loading"===eg})}():null,"loading"!==v.type?v.icon||(null==Z?void 0:Z[eg])||n(eg):null):null,r.createElement("div",{"data-content":"",className:b(null==j?void 0:j.content,null==(d=null==v?void 0:v.classNames)?void 0:d.content)},r.createElement("div",{"data-title":"",className:b(null==j?void 0:j.title,null==(u=null==v?void 0:v.classNames)?void 0:u.title)}
6462,"function"==typeof v.title?v.title():v.title),v.description?r.createElement("div",{"data-description":"",className:b(W,ey,null==j?void 0:j.description,null==(m=null==v?void 0:v.classNames)?void 0:m.description)},"function"==typeof v.description?v.description():v.description):null),(0,r.isValidElement)(v.cancel)?v.cancel:v.cancel&&y(v.cancel)?r.createElement("button",{"data-button":!0,"data-cancel":!0,style:v.cancelButtonStyle||P,onClick:e=>{var t,i;y(v.cancel)&&ef&&(null==(i=(t=v.cancel).onClick)||i.call(t,e),eI())},className:b(null==j?void 0:j.cancelButton,null==(g=null==v?void 0:v.classNames)?void 0:g.cancelButton)},v.cancel.label):null,(0,r.isValidElement)(v.action)?v.action:v.action&&y(v.action)?r.createElement("button",{"data-button":!0,"data-action":!0,style:v.actionButtonStyle||O,onClick:e=>{var t,i;y(v.action)&&(null==(i=(t=v.action).onClick)||i.call(t,e),e.defaultPrevented||eI())},className:b(null==j?void 0:j.actionButton,null==(f=null==v?void 0:v.classNames)?void 0:f.actionButton)},v.action.label):null))};function C(){if("undefined"==typeof window||"undefined"==typeof document)return"ltr";let e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}var x=(0,r.forwardRef)(function(e,t){let{invert:i,position:n="bottom-right",hotkey:o=["altKey","KeyT"],expand:s,closeButton:l,className:c,offset:d,mobileOffset:u,theme:h="light",richColors:p,duration:m,style:f,visibleToasts:w=3,toastOptions:y,dir:b=C(),gap:x=14,loadingIcon:E,icons:k,containerAriaLabel:A="Notifications",pauseWhenPageIsHidden:$}=e,[_,N]=r.useState([]),S=r.useMemo(()=>Array.from(new Set([n].concat(_.filter(e=>e.position).map(e=>e.position)))),[_,n]),[T,R]=r.useState([]),[I,P]=r.useState(!1),[O,M]=r.useState(!1),[W,L]=r.useState("system"!==h?h:"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),D=r.useRef(null),U=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),F=r.useRef(null),H=r.useRef(!1),j=r.useCallback(e=>{N(t=>{var i;return null!=(i=t.find(t=>t.id===e.id))&&i.delete||g.dismiss(e.id),t.filter(t=>{let{id:i}=t;return i!==e.id})})},[]);return r.useEffect(()=>g.subscribe(e=>{if(e.dismiss)return void N(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t));setTimeout(()=>{a.flushSync(()=>{N(t=>{let i=t.findIndex(t=>t.id===e.id);return -1!==i?[...t.slice(0,i),{...t[i],...e},...t.slice(i+1)]:[e,...t]})})})}),[]),r.useEffect(()=>{if("system"!==h)return void L(h);if("system"===h&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?L("dark"):L("light")),"undefined"==typeof window)return;let e=window.matchMedia("(prefers-color-scheme: dark)");try{e.addEventListener("change",e=>{let{matches:t}=e;L(t?"dark":"light")})}catch(t){e.addListener(e=>{let{matches:t}=e;try{L(t?"dark":"light")}catch(e){console.error(e)}})}},[h]),r.useEffect(()=>{_.length<=1&&P(!1)},[_]),r.useEffect(()=>{let e=e=>{var t,i;o.every(t=>e[t]||e.code===t)&&(P(!0),null==(t=D.current)||t.focus()),"Escape"===e.code&&(document.activeElement===D.current||null!=(i=D.current)&&i.contains(document.activeElement))&&P(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[o]),r.useEffect(()=>{if(D.current)return()=>{F.current&&(F.current.focus({preventScroll:!0}),F.current=null,H.current=!1)}},[D.current]),r.createElement("section",{ref:t,"aria-label":"".concat(A," ").concat(U),tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},S.map((t,a)=>{var n;let o,[h,g]=t.split("-");return _.length?r.createElement("ol",{key:t,dir:"auto"===b?C():b,tabIndex:-1,ref:D,className:c,"data-sonner-toaster":!0,"data-theme":W,"data-y-position":h,"data-lifted":I&&_.length>1&&!s,"data-x-position":g,style:{"--front-toast-height":"".concat((null==(n=T[0])?void 0:n.height)||0,"px"),"--width":"".concat(356,"px"),"--gap":"".concat(x,"px"),...f,...(o={},[d,u].forEach((e,t)=>{let i=1===t,r=i?"--mobile-offset":"--offset",a=i?"16px":"32px";function n(e){["top","right","bottom","left"].forEach(t=>{o["".concat(r,"-").concat(t)]="number"==typeof e?"".concat(e,"px"):e})}"number"==typeof e||"string"==typeof e?n(e):"object"==typeof e?["top","right","bottom","left"].forEach(t=>{void 0===e[t]?o["".concat(r,"-").concat(t)]=a:o["".concat(r,"-").concat(t)]="number"==typeof e[t]?"".concat(e[t],"px"):e[t]}):n(a)}),o)},onBlur:e=>{H.current&&!e.currentTarget.contains(e.relatedTarget)&&(H.current=!1,F.current&&(F.current.focus({preventScroll:!0}),F.current=null))},onFocus:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||H.current||(H.current=!0,F.current=e.relatedTarget)},onMouseEnter:()=>P(!0),onMouseMove:()=>P(!0),onMouseLeave:()=>{O||P(!1)},onDragEnd:()=>P(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||M(!0)},onPointerUp:()=>M(!1)},_.filter(e=>!e.position&&0===a||e.position===t).map((a,n)=>{var o,c;return r.createElement(v,{key:a.id,icons:k,index:n,toast:a,defaultRichColors:p,duration:null!=(o=null==y?void 0:y.duration)?o:m,className:null==y?void 0:y.className,descriptionClassName:null==y?void 0:y.descriptionClassName,invert:i,visibleToasts:w,closeButton:null!=(c=null==y?void 0:y.closeButton)?c:l,interacting:O,position:t,style:null==y?void 0:y.style,unstyled:null==y?void 0:y.unstyled,classNames:null==y?void 0:y.classNames,cancelButtonStyle:null==y?void 0:y.cancelButtonStyle,actionButtonStyle:null==y?void 0:y.actionButtonStyle,removeToast:j,toasts:_.filter(e=>e.position==a.position),heights:T.filter(e=>e.position==a.position),setHeights:R,expandByDefault:s,gap:x,loadingIcon:E,exp
6462anded:I,pauseWhenPageIsHidden:$,swipeDirections:e.swipeDirections})})):null}))})},67571:(e,t,i)=>{"use strict";var r=i(88633),a=i(15274);i(17364),i(21981),i(37218);var n=i(62057),o=i(54718),s=i(21621);let l=(0,s.AH)` 6463 :host { 6464 width: var(--local-width); 6465 } 6466 6467 button { 6468 width: var(--local-width); 6469 white-space: nowrap; 6470 column-gap: ${({spacing:e})=>e[2]}; 6471 transition: 6472 scale ${({durations:e})=>e.lg} ${({easings:e})=>e["ease-out-power-1"]}, 6473 background-color ${({durations:e})=>e.lg} 6474 ${({easings:e})=>e["ease-out-power-2"]}, 6475 border-radius ${({durations:e})=>e.lg} 6476 ${({easings:e})=>e["ease-out-power-1"]}; 6477 will-change: scale, background-color, border-radius; 6478 cursor: pointer; 6479 } 6480 6481 /* -- Sizes --------------------------------------------------- */ 6482 button[data-size='sm'] { 6483 border-radius: ${({borderRadius:e})=>e[2]}; 6484 padding: 0 ${({spacing:e})=>e[2]}; 6485 height: 28px; 6486 } 6487 6488 button[data-size='md'] { 6489 border-radius: ${({borderRadius:e})=>e[3]}; 6490 padding: 0 ${({spacing:e})=>e[4]}; 6491 height: 38px; 6492 } 6493 6494 button[data-size='lg'] { 6495 border-radius: ${({borderRadius:e})=>e[4]}; 6496 padding: 0 ${({spacing:e})=>e[5]}; 6497 height: 48px; 6498 } 6499 6500 /* -- Variants --------------------------------------------------------- */ 6501 button[data-variant='accent-primary'] { 6502 background-color: ${({tokens:e})=>e.core.backgroundAccentPrimary}; 6503 color: ${({tokens:e})=>e.theme.textInvert}; 6504 } 6505 6506 button[data-variant='accent-secondary'] { 6507 background-color: ${({tokens:e})=>e.core.foregroundAccent010}; 6508 color: ${({tokens:e})=>e.core.textAccentPrimary}; 6509 } 6510 6511 button[data-variant='neutral-primary'] { 6512 background-color: ${({tokens:e})=>e.theme.backgroundInvert}; 6513 color: ${({tokens:e})=>e.theme.textInvert}; 6514 } 6515 6516 button[data-variant='neutral-secondary'] { 6517 background-color: transparent; 6518 border: 1px solid ${({tokens:e})=>e.theme.borderSecondary}; 6519 color: ${({tokens:e})=>e.theme.textPrimary}; 6520 } 6521 6522 button[data-variant='neutral-tertiary'] { 6523 background-color: ${({tokens:e})=>e.theme.foregroundPrimary}; 6524 color: ${({tokens:e})=>e.theme.textPrimary}; 6525 } 6526 6527 button[data-variant='error-primary'] { 6528 background-color: ${({tokens:e})=>e.core.textError}; 6529 color: ${({tokens:e})=>e.theme.textInvert}; 6530 } 6531 6532 button[data-variant='error-secondary'] { 6533 background-color: ${({tokens:e})=>e.core.backgroundError}; 6534 color: ${({tokens:e})=>e.core.textError}; 6535 } 6536 6537 button[data-variant='shade'] { 6538 background: var(--wui-color-gray-glass-002); 6539 color: var(--wui-color-fg-200); 6540 border: none; 6541 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005); 6542 } 6543 6544 /* -- Focus states --------------------------------------------------- */ 6545 button[data-size='sm']:focus-visible:enabled { 6546 border-radius: 28px; 6547 } 6548 6549 button[data-size='md']:focus-visible:enabled { 6550 border-radius: 38px; 6551 } 6552 6553 button[data-size='lg']:focus-visible:enabled { 6554 border-radius: 48px; 6555 } 6556 button[data-variant='shade']:focus-visible:enabled { 6557 background: var(--wui-color-gray-glass-005); 6558 box-shadow: 6559 inset 0 0 0 1px var(--wui-color-gray-glass-010), 6560 0 0 0 4px var(--wui-color-gray-glass-002); 6561 } 6562 6563 /* -- Hover & Active states ----------------------------------------------------------- */ 6564 @media (hover: hover) { 6565 button[data-size='sm']:hover:enabled { 6566 border-radius: 28px; 6567 } 6568 6569 button[data-size='md']:hover:enabled { 6570 border-radius: 38px; 6571 } 6572 6573 button[data-size='lg']:hover:enabled { 6574 border-radius: 48px; 6575 } 6576 6577 button[data-variant='shade']:hover:enabled { 6578 background: var(--wui-color-gray-glass-002); 6579 } 6580 6581 button[data-variant='shade']:active:enabled { 6582 background: var(--wui-color-gray-glass-005); 6583 } 6584 } 6585 6586 button[data-size='sm']:active:enabled { 6587 border-radius: 28px; 6588 } 6589 6590 button[data-size='md']:active:enabled { 6591 border-radius: 38px; 6592 } 6593 6594 button[data-size='lg']:active:enabled { 6595 border-radius: 48px; 6596 } 6597 6598 /* -- Disabled states --------------------------------------------------- */ 6599 button:disabled { 6600 opacity: 0.3; 6601 } 6602`;var c=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let d={lg:"lg-regular-mono",md:"md-regular-mono",sm:"sm-regular-mono"},u={lg:"md",md:"md",sm:"sm"},h=class extends r.WF{constructor(){super(...arguments),this.size="lg",this.disabled=!1,this.fullWidth=!1,this.loading=!1,this.variant="accent-primary"}render(){this.style.cssText=` 6603 --local-width: ${this.fullWidth?"100%":"auto"}; 6604 `;let e=this.textVariant??d[this.size];return(0,r.qy)` 6605 <button data-variant=${this.variant} data-size=${this.size} ?disabled=${this.disabled}> 6606 ${this.loadingTemplate()} 6607 <slot name="iconLeft"></slot> 6608 <wui-text variant=${e} color="inherit"> 6609 <slot></slot> 6610 </wui-text> 6611 <slot name="iconRight"></slot> 6612 </button> 6613 `}loadingTemplate(){if(this.loading){let e=u[this.size],t="neutral-primary"===this.variant||"accent-primary"===this.variant?"invert":"primary";return(0,r.qy)`<wui-loading-spinner color=${t} size=${e}></wui-loading-spinner>`}return null}};h.styles=[n.W5,n.fD,l],c([(0,a.MZ)()],h.prototype,"size",void 0),c([(0,a.MZ)({type:Boolean})],h.prototype,"disabled",void 0),c([(0,a.MZ)({type:Boolean})],h.prototype,"fullWidth",void 0),c([(0,a.MZ)({type:Boolean})],h.prototype,"loading",void 0),c([(0,a.MZ)()],h.prototype,"variant",void 0),c([(0,a.MZ)()],h.prototype,"textVariant",void 0),h=c([(0,o.E)("wui-button")],h)},67661:(e,t,i)=>{"use strict";var r=i(88633),a=i(15274);i(17364),i(37218);var n=i(62057),o=i(54718),s=i(21621);let l=(0,s.AH)` 6614 :host { 6615 display: flex; 6616 justify-content: center;
6617 align-items: center; 6618 gap: ${({spacing:e})=>e[1]}; 6619 text-transform: uppercase; 6620 white-space: nowrap; 6621 } 6622 6623 :host([data-variant='accent']) { 6624 background-color: ${({tokens:e})=>e.core.foregroundAccent010}; 6625 color: ${({tokens:e})=>e.core.textAccentPrimary}; 6626 } 6627 6628 :host([data-variant='info']) { 6629 background-color: ${({tokens:e})=>e.theme.foregroundSecondary}; 6630 color: ${({tokens:e})=>e.theme.textSecondary}; 6631 } 6632 6633 :host([data-variant='success']) { 6634 background-color: ${({tokens:e})=>e.core.backgroundSuccess}; 6635 color: ${({tokens:e})=>e.core.textSuccess}; 6636 } 6637 6638 :host([data-variant='warning']) { 6639 background-color: ${({tokens:e})=>e.core.backgroundWarning}; 6640 color: ${({tokens:e})=>e.core.textWarning}; 6641 } 6642 6643 :host([data-variant='error']) { 6644 background-color: ${({tokens:e})=>e.core.backgroundError}; 6645 color: ${({tokens:e})=>e.core.textError}; 6646 } 6647 6648 :host([data-variant='certified']) { 6649 background-color: ${({tokens:e})=>e.theme.foregroundSecondary}; 6650 color: ${({tokens:e})=>e.theme.textSecondary}; 6651 } 6652 6653 :host([data-size='md']) { 6654 height: 30px; 6655 padding: 0 ${({spacing:e})=>e[2]}; 6656 border-radius: ${({borderRadius:e})=>e[2]}; 6657 } 6658 6659 :host([data-size='sm']) { 6660 height: 20px; 6661 padding: 0 ${({spacing:e})=>e[1]}; 6662 border-radius: ${({borderRadius:e})=>e[1]}; 6663 } 6664`;var c=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let d=class extends r.WF{constructor(){super(...arguments),this.variant="accent",this.size="md",this.icon=void 0}render(){this.dataset.variant=this.variant,this.dataset.size=this.size;let e="md"===this.size?"md-medium":"sm-medium",t="md"===this.size?"md":"sm";return(0,r.qy)` 6665 ${this.icon?(0,r.qy)`<wui-icon size=${t} name=${this.icon}></wui-icon>`:null} 6666 <wui-text 6667 display="inline" 6668 data-variant=${this.variant} 6669 variant=${e} 6670 color="inherit" 6671 > 6672 <slot></slot> 6673 </wui-text> 6674 `}};d.styles=[n.W5,l],c([(0,a.MZ)()],d.prototype,"variant",void 0),c([(0,a.MZ)()],d.prototype,"size",void 0),c([(0,a.MZ)()],d.prototype,"icon",void 0),d=c([(0,o.E)("wui-tag")],d)},67789:(e,t,i)=>{"use strict";i.d(t,{z8:()=>r,tt:()=>c,Zv:()=>n.Z,AH:()=>u.AH,EM:()=>d.E,RF:()=>a.RF,JX:()=>a.JX,ds:()=>a.ds,f:()=>u.f});let r={interpolate(e,t,i){if(2!==e.length||2!==t.length)throw Error("inputRange and outputRange must be an array of length 2");let r=e[0]||0,a=e[1]||0,n=t[0]||0,o=t[1]||0;return i<r?n:i>a?o:(o-n)/(a-r)*(i-r)+n}};var a=i(62057),n=i(49146),o=i(25107);let s=["receive","deposit","borrow","claim"],l=["withdraw","repay","burn"],c={getTransactionGroupTitle(e,t){let i=o.r.getYear(),r=o.r.getMonthNameByIndex(t);return e===i?r:`${r} ${e}`},getTransactionImages(e){let[t]=e;return e?.length>1?e.map(e=>this.getTransactionImage(e)):[this.getTransactionImage(t)]},getTransactionImage:e=>({type:c.getTransactionTransferTokenType(e),url:c.getTransactionImageURL(e)}),getTransactionImageURL(e){let t,i=!!e?.nft_info,r=!!e?.fungible_info;return e&&i?t=e?.nft_info?.content?.preview?.url:e&&r&&(t=e?.fungible_info?.icon?.url),t},getTransactionTransferTokenType:e=>e?.fungible_info?"FUNGIBLE":e?.nft_info?"NFT":void 0,getTransactionDescriptions(e,t){let i=e?.metadata?.operationType,r=t||e?.transfers,a=r&&r.length>0,o=r&&r.length>1,c=a&&r.every(e=>!!e?.fungible_info),[d,u]=r||[],h=this.getTransferDescription(d),p=this.getTransferDescription(u);if(!a)return("send"===i||"receive"===i)&&c?[h=n.Z.getTruncateString({string:e?.metadata.sentFrom,charsStart:4,charsEnd:6,truncate:"middle"}),n.Z.getTruncateString({string:e?.metadata.sentTo,charsStart:4,charsEnd:6,truncate:"middle"})]:[e.metadata.status];if(o)return r?.map(e=>this.getTransferDescription(e));let m="";return s.includes(i)?m="+":l.includes(i)&&(m="-"),[h=m.concat(h)]},getTransferDescription(e){let t="";return e&&(e?.nft_info?t=e?.nft_info?.name||"-":e?.fungible_info&&(t=this.getFungibleTransferDescription(e)||"-")),t},getFungibleTransferDescription(e){return e?[this.getQuantityFixedValue(e?.quantity.numeric),e?.fungible_info?.symbol].join(" ").trim():null},mergeTransfers(e){if(e?.length<=1)return e;let t=this.filterGasFeeTransfers(e).reduce((e,t)=>
6674{let i=t?.fungible_info?.name,r=e.find(({fungible_info:e,direction:r})=>i&&i===e?.name&&r===t.direction);if(r){let e=Number(r.quantity.numeric)+Number(t.quantity.numeric);r.quantity.numeric=e.toString(),r.value=(r.value||0)+(t.value||0)}else e.push(t);return e},[]),i=t;return t.length>2&&(i=t.sort((e,t)=>(t.value||0)-(e.value||0)).slice(0,2)),i=i.sort((e,t)=>"out"===e.direction&&"in"===t.direction?-1:+("in"===e.direction&&"out"===t.direction))},filterGasFeeTransfers(e){let t=e?.reduce((e,t)=>{let i=t?.fungible_info?.name;return i&&(e[i]||(e[i]=[]),e[i].push(t)),e},{}),i=[];return Object.values(t??{}).forEach(e=>{if(1===e.length){let t=e[0];t&&i.push(t)}else{let t=e.filter(e=>"in"===e.direction),r=e.filter(e=>"out"===e.direction);if(1===t.length&&1===r.length){let a=t[0],n=r[0],o=!1;if(a&&n){let e=Number(a.quantity.numeric),t=Number(n.quantity.numeric);t<.1*e?(i.push(a),o=!0):e<.1*t&&(i.push(n),o=!0)}o||i.push(...e)}else{let t=this.filterGasFeesFromTokenGroup(e);i.push(...t)}}}),e?.forEach(e=>{e?.fungible_info?.name||i.push(e)}),i},filterGasFeesFromTokenGroup(e){if(e.length<=1)return e;let t=e?.map(e=>Number(e.quantity.numeric)),i=Math.max(...t);if(Math.min(...t)<.01*i)return e?.filter(e=>Number(e.quantity.numeric)>=.01*i);let r=e?.filter(e=>"in"===e.direction),a=e?.filter(e=>"out"===e.direction);if(1===r.length&&1===a.length){let e=r[0],t=a[0];if(e&&t){let i=Number(e.quantity.numeric),r=Number(t.quantity.numeric);if(r<.1*i)return[e];if(i<.1*r)return[t]}}return e},getQuantityFixedValue:e=>e?parseFloat(e).toFixed(3):null};var d=i(54718);i(64210);var u=i(21621)},68006:(e,t,i)=>{"use strict";var r=i(88633),a=i(15274),n=i(13894),o=i(62057),s=i(54718),l=i(21621);let c=(0,l.AH)` 6675 :host { 6676 display: block; 6677 width: var(--local-width); 6678 height: var(--local-height); 6679 } 6680 6681 img { 6682 display: block; 6683 width: 100%; 6684 height: 100%; 6685 object-fit: cover; 6686 object-position: center center; 6687 border-radius: inherit; 6688 user-select: none; 6689 user-drag: none; 6690 -webkit-user-drag: none; 6691 -khtml-user-drag: none; 6692 -moz-user-drag: none; 6693 -o-user-drag: none; 6694 } 6695 6696 :host([data-boxed='true']) { 6697 width: 40px; 6698 height: 40px; 6699 display: flex; 6700 align-items: center; 6701 justify-content: center; 6702 background-color: ${({tokens:e})=>e.theme.foregroundPrimary}; 6703 border-radius: ${({borderRadius:e})=>e[2]}; 6704 } 6705 6706 :host([data-boxed='true']) img { 6707 width: 20px; 6708 height: 20px; 6709 border-radius: ${({borderRadius:e})=>e[16]}; 6710 } 6711 6712 :host([data-full='true']) img { 6713 width: 100%; 6714 height: 100%; 6715 } 6716 6717 :host([data-boxed='true']) wui-icon { 6718 width: 20px; 6719 height: 20px; 6720 } 6721 6722 :host([data-icon='error']) { 6723 background-color: ${({tokens:e})=>e.core.backgroundError}; 6724 } 6725 6726 :host([data-rounded='true']) { 6727 border-radius: ${({borderRadius:e})=>e[16]}; 6728 } 6729`;var d=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let u=class extends r.WF{constructor(){super(...arguments),this.src="./path/to/image.jpg",this.alt="Image",this.size=void 0,this.boxed=!1,this.rounded=!1,this.fullSize=!1}render(){let e={inherit:"inherit",xxs:"2",xs:"3",sm:"4",md:"4",mdl:"5",lg:"5",xl:"6",xxl:"7","3xl":"8","4xl":"9","5xl":"10"};return(this.style.cssText=` 6730 --local-width: ${this.size?`var(--apkt-spacing-${e[this.size]});`:"100%"}; 6731 --local-height: ${this.size?`var(--apkt-spacing-${e[this.size]});`:"100%"}; 6732 `,this.dataset.boxed=this.boxed?"true":"false",this.dataset.rounded=this.rounded?"true":"false",this.dataset.full=this.fullSize?"true":"false",this.dataset.icon=this.iconColor||"inherit",this.icon)?(0,r.qy)`<wui-icon 6733 color=${this.iconColor||"inherit"} 6734 name=${this.icon} 6735 size="lg" 6736 ></wui-icon> `:this.logo?(0,r.qy)`<wui-icon size="lg" color="inherit" name=${this.logo}></wui-icon> `:(0,r.qy)`<img src=${(0,n.J)(this.src)} alt=${this.alt} @error=${this.handleImageError} />`}handleImageError(){this.dispatchEvent(new CustomEvent("onLoadError",{bubbles:!0,composed:!0}))}};u.styles=[o.W5,c],d([(0,a.MZ)()],u.prototype,"src",void 0),d([(0,a.MZ)()],u.prototype,"logo",void 0),d([(0,a.MZ)()],u.prototype,"icon",void 0),d([(0,a.MZ)()],u.prototype,"iconColor",void 0),d([(0,a.MZ)()],u.prototype,"alt",void 0),d([(0,a.MZ)()],u.prototype,"size",void 0),d([(0,a.MZ)({type:Boolean})],u.prototype,"boxed",void 0),d([(0,a.MZ)({type:Boolean})],u.prototype,"rounded",void 0),d([(0,a.MZ)({type:Boolean})],u.prototype,"fullSize",void 0),u=d([(0,s.E)("wui-image")],u)},69010:e=>{function t(e){if(!e||e<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,i,r){let a=e*this.size+t;this.data[a]=i,r&&(this.reservedBit[a]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,i){this.data[e*this.size+t]^=i},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},69137:(e,t,i)=>{"use strict";i.d(t,{_:()=>m,K:()=>w});var r=i(13178);let{I:a}=r.ge,n=e=>void 0===e.strings;var o=i(19836);let s=(e,t)=>{let i=e._$AN;if(void 0===i)return!1;for(let e of i)e._$AO?.(t,!1),s(e,t);return!0},l=e=>{let t,i;do{if(void 0===(t=e._$AM))break;(i=t._$AN).delete(e),e=t}while(0===i?.size)},c=e=>{for(let t;t=e._$AM;e=t){let i=t._$AN;if(void 0===i)t._$AN=i=new Set;else if(i.has(e))break;i.add(e),h(t)}};function d(e){void 0!==this._$AN?(l(this),this._$AM=e,c(this)):this._$AM=e}function u(e,t=!1,i=0){let r=this._$AH,a=this._$AN;if(void 0!==a&&0!==a.size)if(t)if(Array.isArray(r))for(let e=i;e<r.length;e++)s(r[e],!1),l(r[e]);else null!=r&&(s(r,!1),l(r));else s(this,e)}let h=e=>{e.type==o.OA.CHILD&&(e._$AP??=u,e._$AQ??=d)};class p extends o.WL{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,i){super._$AT(e,t,i),c(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(s(this,e),l(this))}setValue(e){if(n(this._$Ct))this._$Ct._$AI(e,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}let m=()=>new g;class g{}let f=new WeakMap,w=(0,o.u$)(class extends p{render(e){return r.s6}update(e,[t]){let i=t!==this.G;return i&&void 0!==this.G&&this.rt(void 0),(i||this.lt!==this.ct)&&(this.G=t,this.ht=e.options?.host,this.rt(this.ct=e.element)),r.s6}rt(e){if(this.isConnected||(e=void 0),"function"==typeof this.G){let t=this.ht??globalThis,i=f.get(t);void 0===i&&(i=new WeakMap,f.set(t,i)),void 0!==i.get(this.G)&&this.G.call(this.ht,void 0),i.set(this.G,e),void 0!==e&&this.G.call(this.ht,e)}else this.G.value=e}get lt(){return"function"==typeof this.G?f.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}})},69616:(e,t,i)=>{"use strict";var r=i(88633),a=i(15274),n=i(13894);i(17364);var o=i(62057),s=i(54718),l=i(21621);let c=(0,l.AH)` 6737 :host { 6738 display: inline-flex; 6739 justify-content: center;
6740 align-items: center; 6741 border-radius: ${({borderRadius:e})=>e[2]}; 6742 padding: ${({spacing:e})=>e[1]} !important; 6743 background-color: ${({tokens:e})=>e.theme.backgroundPrimary}; 6744 position: relative; 6745 } 6746 6747 :host([data-padding='2']) { 6748 padding: ${({spacing:e})=>e[2]} !important; 6749 } 6750 6751 :host:after { 6752 content: ''; 6753 position: absolute; 6754 top: 0; 6755 left: 0; 6756 width: 100%; 6757 height: 100%; 6758 border-radius: ${({borderRadius:e})=>e[2]}; 6759 } 6760 6761 :host > wui-icon { 6762 z-index: 10; 6763 } 6764 6765 /* -- Colors --------------------------------------------------- */ 6766 :host([data-color='accent-primary']) { 6767 color: ${({tokens:e})=>e.core.iconAccentPrimary}; 6768 } 6769 6770 :host([data-color='accent-primary']):after { 6771 background-color: ${({tokens:e})=>e.core.foregroundAccent010}; 6772 } 6773 6774 :host([data-color='default']), 6775 :host([data-color='secondary']) { 6776 color: ${({tokens:e})=>e.theme.iconDefault}; 6777 } 6778 6779 :host([data-color='default']):after { 6780 background-color: ${({tokens:e})=>e.theme.foregroundPrimary}; 6781 } 6782 6783 :host([data-color='secondary']):after { 6784 background-color: ${({tokens:e})=>e.theme.foregroundSecondary}; 6785 } 6786 6787 :host([data-color='success']) { 6788 color: ${({tokens:e})=>e.core.iconSuccess}; 6789 } 6790 6791 :host([data-color='success']):after { 6792 background-color: ${({tokens:e})=>e.core.backgroundSuccess}; 6793 } 6794 6795 :host([data-color='error']) { 6796 color: ${({tokens:e})=>e.core.iconError}; 6797 } 6798 6799 :host([data-color='error']):after { 6800 background-color: ${({tokens:e})=>e.core.backgroundError}; 6801 } 6802 6803 :host([data-color='warning']) { 6804 color: ${({tokens:e})=>e.core.iconWarning}; 6805 } 6806 6807 :host([data-color='warning']):after { 6808 background-color: ${({tokens:e})=>e.core.backgroundWarning}; 6809 } 6810 6811 :host([data-color='inverse']) { 6812 color: ${({tokens:e})=>e.theme.iconInverse}; 6813 } 6814 6815 :host([data-color='inverse']):after { 6816 background-color: transparent; 6817 } 6818`;var d=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let u=class extends r.WF{constructor(){super(...arguments),this.icon="copy",this.size="md",this.padding="1",this.color="default"}render(){return this.dataset.padding=this.padding,this.dataset.color=this.color,(0,r.qy)` 6819 <wui-icon size=${(0,n.J)(this.size)} name=${this.icon} color="inherit"></wui-icon> 6820 `}};u.styles=[o.W5,o.fD,c],d([(0,a.MZ)()],u.prototype,"icon",void 0),d([(0,a.MZ)()],u.prototype,"size",void 0),d([(0,a.MZ)()],u.prototype,"padding",void 0),d([(0,a.MZ)()],u.prototype,"color",void 0),u=d([(0,s.E)("wui-icon-box")],u)},69961:(e,t,i)=>{let r=i(77294);t.render=function(e,t,i){var a;let n=i,o=t;void 0!==n||t&&t.getContext||(n=t,t=void 0),t||(o=function(){try{return document.createElement("canvas")}catch(e){throw Error("You need to specify a canvas element")}}()),n=r.getOptions(n);let s=r.getImageWidth(e.modules.size,n),l=o.getContext("2d"),c=l.createImageData(s,s);return r.qrToImageData(c.data,e,n),a=o,l.clearRect(0,0,a.width,a.height),a.style||(a.style={}),a.height=s,a.width=s,a.style.height=s+"px",a.style.width=s+"px",l.putImageData(c,0,0),o},t.renderToDataURL=function(e,i,r){let a=r;void 0!==a||i&&i.getContext||(a=i,i=void 0),a||(a={});let n=t.render(e,i,a),o=a.type||"image/png",s=a.rendererOpts||{};return n.toDataURL(o,s.quality)}},71379:(e,t,i)=>{"use strict";var r=i(88633);i(17364),i(37218),i(89496);var a=i(62057),n=i(54718),o=i(21621);let s=(0,o.AH)` 6821 .reown-logo { 6822 height: 24px; 6823 } 6824 6825 a { 6826 text-decoration: none; 6827 cursor: pointer; 6828 color: ${({tokens:e})=>e.theme.textSecondary}; 6829 } 6830 6831 a:hover { 6832 opacity: 0.9; 6833 } 6834`,l=class extends r.WF{render(){return(0,r.qy)` 6835 <a 6836 data-testid="ux-branding-reown" 6837 href=${"https://reown.com"} 6838 rel="noreferrer" 6839 target="_blank" 6840 style="text-decoration: none;" 6841 > 6842 <wui-flex 6843 justifyContent="center" 6844 alignItems="center" 6845 gap="1" 6846 .padding=${["01","0","3","0"]} 6847 > 6848 <wui-text variant="sm-regular" color="inherit"> UX by </wui-text> 6849 <wui-icon name="reown" size="inherit" class="reown-logo"></wui-icon> 6850 </wui-flex> 6851 </a> 6852 `}};l.styles=[a.W5,a.fD,s],l=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o}([(0,n.E)("wui-ux-by-reown")],l)},73751:(e,t,i)=>{"use strict";i.d(t,{o:()=>a});var r=i(55036);let a={ACCOUNT_TABS:[{label:"Tokens"},{label:"Activity"}],SECURE_SITE_ORIGIN:(void 0!==r&&void 0!==r.env?r.env.NEXT_PUBLIC_SECURE_SITE_ORIGIN:void 0)||"https://secure.walletconnect.org",VIEW_DIRECTION:{Next:"next",Prev:"prev"},ANIMATION_DURATIONS:{HeaderText:120,ModalHeight:150,ViewTransition:150},VIEWS_WITH_LEGAL_FOOTER:["Connect","ConnectWallets","OnRampTokenSelect","OnRampFiatSelect","OnRampProviders"],VIEWS_WITH_DEFAULT_FOOTER:["Networks"]}},74039:(e,t,i)=>{"use strict";i(61499)},77294:(e,t)=>{function i(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");
6852if(t.length<3||5===t.length||t.length>8)throw Error("Invalid hex color: "+e);(3===t.length||4===t.length)&&(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");let i=parseInt(t.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:255&i,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});let t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,a=e.scale||4;return{width:r,scale:r?4:a,margin:t,color:{dark:i(e.color.dark||"#000000ff"),light:i(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,i){let r=t.getScale(e,i);return Math.floor((e+2*i.margin)*r)},t.qrToImageData=function(e,i,r){let a=i.modules.size,n=i.modules.data,o=t.getScale(a,r),s=Math.floor((a+2*r.margin)*o),l=r.margin*o,c=[r.color.light,r.color.dark];for(let t=0;t<s;t++)for(let i=0;i<s;i++){let d=(t*s+i)*4,u=r.color.light;t>=l&&i>=l&&t<s-l&&i<s-l&&(u=c[+!!n[Math.floor((t-l)/o)*a+Math.floor((i-l)/o)]]),e[d++]=u.r,e[d++]=u.g,e[d++]=u.b,e[d]=u.a}}},79005:(e,t,i)=>{let r=i(25190).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];let t=Math.floor(e/7)+2,i=r(e),a=145===i?26:2*Math.ceil((i-13)/(2*t-2)),n=[i-7];for(let e=1;e<t-1;e++)n[e]=n[e-1]-a;return n.push(6),n.reverse()},t.getPositions=function(e){let i=[],r=t.getRowColCoords(e),a=r.length;for(let e=0;e<a;e++)for(let t=0;t<a;t++)(0!==e||0!==t)&&(0!==e||t!==a-1)&&(e!==a-1||0!==t)&&i.push([r[e],r[t]]);return i}},79808:(e,t,i)=>{"use strict";i.d(t,{_:()=>a});var r=i(88633);let a=(0,r.JW)` 6853 <svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10"> 6854 <path d="M8.37651 0H1.62309C0.381381 0 -0.405611 1.33944 0.219059 2.42225L4.38701 9.64649C4.659 10.1182 5.3406 10.1182 5.61259 9.64649L9.78139 2.42225C10.4052 1.34117 9.61822 0 8.37736 0H8.37651ZM4.38362 7.48005L3.47591 5.72329L1.2857 1.80606C1.14121 1.55534 1.31968 1.23405 1.62225 1.23405H4.38278V7.4809L4.38362 7.48005ZM8.71221 1.80521L6.52284 5.72414L5.61513 7.48005V1.2332H8.37566C8.67823 1.2332 8.85669 1.55449 8.71221 1.80521Z" fill="var(--apkt-tokens-theme-textPrimary)" /> 6855</svg> 6856`},80225:(e,t,i)=>{let r=i(17423),a=i(96047),n=i(69961),o=i(39212);function s(e,t,i,n,o){let s=[].slice.call(arguments,1),l=s.length,c="function"==typeof s[l-1];if(!c&&!r())throw Error("Callback required as last argument");if(c){if(l<2)throw Error("Too few arguments provided");2===l?(o=i,i=t,t=n=void 0):3===l&&(t.getContext&&void 0===o?(o=n,n=void 0):(o=n,n=i,i=t,t=void 0))}else{if(l<1)throw Error("Too few arguments provided");return 1===l?(i=t,t=n=void 0):2!==l||t.getContext||(n=i,i=t,t=void 0),new Promise(function(r,o){try{let o=a.create(i,n);r(e(o,t,n))}catch(e){o(e)}})}try{let r=a.create(i,n);o(null,e(r,t,n))}catch(e){o(e)}}t.create=a.create,t.toCanvas=s.bind(null,n.render),t.toDataURL=s.bind(null,n.renderToDataURL),t.toString=s.bind(null,function(e,t,i){return o.render(e,i)})},80941:(e,t,i)=>{"use strict";i.d(t,{CP:()=>ed,Qm:()=>eo,Ht:()=>en,Jv:()=>el,CI:()=>ec,wV:()=>ea});var r,a,n,o,s,l=i(35453),c=i(53449),d=i.t(c,2);class u extends Error{constructor(e,t){e instanceof Error?super(void 0,{cause:{err:e,...e.cause,...t}}):"string"==typeof e?(t instanceof Error&&(t={err:t,...t.cause}),super(e,t)):super(void 0,e),this.name=this.constructor.name,this.type=this.constructor.type??"AuthError",this.kind=this.constructor.kind??"error",Error.captureStackTrace?.(this,this.constructor);let i=`https://errors.authjs.dev#${this.type.toLowerCase()}`;this.message+=`${this.message?". ":""}Read more at ${i}`}}class h extends u{}h.kind="signIn";class p extends u{}p.type="AdapterError";class m extends u{}m.type="AccessDenied";class g extends u{}g.type="CallbackRouteError";class f extends u{}f.type="ErrorPageLoop";class w extends u{}w.type="EventError";class y extends u{}y.type="InvalidCallbackUrl";class b extends h{constructor(){super(...arguments),this.code="credentials"}}b.type="CredentialsSignin";class v extends u{}v.type="InvalidEndpoints";class C extends u{}C.type="InvalidCheck";class x extends u{}x.type="JWTSessionError";class E extends u{}E.type="MissingAdapter";class k extends u{}k.type="MissingAdapterMethods";class A extends u{}A.type="MissingAuthorize";class $ extends u{}$.type="MissingSecret";class _ extends h{}_.type="OAuthAccountNotLinked";class N extends h{}N.type="OAuthCallbackError";class S extends u{}S.type="OAuthProfileParseError";class T extends u{}T.type="SessionTokenError";class R extends h{}R.type="OAuthSignInError";class I extends h{}I.type="EmailSignInError";class P extends u{}P.type="SignOutError";class O extends u{}O.type="UnknownAction";class M extends u{}M.type="UnsupportedStrategy";class W extends u{}W.type="InvalidProvider";class L extends u{}L.type="UntrustedHost";class D extends u{}D.type="Verification";class U extends h{}U.type="MissingCSRF";class F extends u{}F.type="DuplicateConditionalUI";class H extends u{}H.type="MissingWebAuthnAutocomplete";class j extends u{}
6856j.type="WebAuthnVerificationError";class Z extends h{}Z.type="AccountNotLinked";class B extends u{}B.type="ExperimentalFeatureNotEnabled";class z extends u{}class q extends u{}async function V(e,t,i){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a="".concat(K(t),"/").concat(e);try{var n;let e={headers:{"Content-Type":"application/json",...(null==r||null==(n=r.headers)?void 0:n.cookie)?{cookie:r.headers.cookie}:{}}};(null==r?void 0:r.body)&&(e.body=JSON.stringify(r.body),e.method="POST");let t=await fetch(a,e),i=await t.json();if(!t.ok)throw i;return i}catch(e){return i.error(new z(e.message,e)),null}}function K(e){return"undefined"==typeof window?"".concat(e.baseUrlServer).concat(e.basePathServer):e.basePath}function G(){return Math.floor(Date.now()/1e3)}function J(e){let t=new URL("http://localhost:3000/api/auth");e&&!e.startsWith("http")&&(e="https://".concat(e));let i=new URL(e||t),r=("/"===i.pathname?t.pathname:i.pathname).replace(/\/$/,""),a="".concat(i.origin).concat(r);return{origin:i.origin,host:i.host,path:r,base:a,toString:()=>a}}var Y=i(55036);let X={baseUrl:J(null!=(a=Y.env.NEXTAUTH_URL)?a:Y.env.VERCEL_URL).origin,basePath:J(Y.env.NEXTAUTH_URL).path,baseUrlServer:J(null!=(o=null!=(n=Y.env.NEXTAUTH_URL_INTERNAL)?n:Y.env.NEXTAUTH_URL)?o:Y.env.VERCEL_URL).origin,basePathServer:J(null!=(s=Y.env.NEXTAUTH_URL_INTERNAL)?s:Y.env.NEXTAUTH_URL).path,_lastSync:0,_session:void 0,_getSession:()=>{}},Q=null;function ee(){return new BroadcastChannel("next-auth")}function et(){return"undefined"==typeof BroadcastChannel?{postMessage:()=>{},addEventListener:()=>{},removeEventListener:()=>{}}:(null===Q&&(Q=ee()),Q)}let ei={debug:console.debug,error:console.error,warn:console.warn},er=null==(r=c.createContext)?void 0:r.call(d,void 0);function ea(e){if(!er)throw Error("React Context is unavailable in Server Components");let t=c.useContext(er),{required:i,onUnauthenticated:r}=null!=e?e:{},a=i&&"unauthenticated"===t.status;return(c.useEffect(()=>{if(a){let e="".concat(X.basePath,"/signin?").concat(new URLSearchParams({error:"SessionRequired",callbackUrl:window.location.href}));r?r():window.location.href=e}},[a,r]),a)?{data:t.data,update:t.update,status:"loading"}:t}async function en(e){var t;let i=await V("session",X,ei,e);return(null==(t=null==e?void 0:e.broadcast)||t)&&ee().postMessage({event:"session",data:{trigger:"getSession"}}),i}async function eo(){var e;let t=await V("csrf",X,ei);return null!=(e=null==t?void 0:t.csrfToken)?e:""}async function es(){return V("providers",X,ei)}async function el(e,t,i){var r,a,n;let{redirect:o=!0}=null!=t?t:{},s=null!=(a=null!=(r=null==t?void 0:t.redirectTo)?r:null==t?void 0:t.callbackUrl)?a:window.location.href,l=K(X),c=await es();if(!c){window.location.href="".concat(l,"/error");return}if(!e||!(e in c)){window.location.href="".concat(l,"/signin?").concat(new URLSearchParams({callbackUrl:s}));return}let d="credentials"===c[e].type,u="email"===c[e].type,h="".concat(l,"/").concat(d?"callback":"signin","/").concat(e),p=await eo(),m=await fetch("".concat(h,"?").concat(new URLSearchParams(i)),{method:"post",headers:{"Content-Type":"application/x-www-form-urlencoded","X-Auth-Return-Redirect":"1"},body:new URLSearchParams({...t,csrfToken:p,callbackUrl:s})}),g=await m.json();if(o||!(d||u)){let e=null!=(n=g.url)?n:s;window.location.href=e,e.includes("#")&&window.location.reload();return}let f=new URL(g.url).searchParams.get("error"),w=new URL(g.url).searchParams.get("code");return m.ok&&await X._getSession({event:"storage"}),{error:f,code:w,status:m.status,ok:m.ok,url:f?null:g.url}}async function ec(e){var t,i,r,a;let n=null!=(i=null!=(t=null==e?void 0:e.redirectTo)?t:null==e?void 0:e.callbackUrl)?
6856i:window.location.href,o=K(X),s=await eo(),l=await fetch("".concat(o,"/signout"),{method:"post",headers:{"Content-Type":"application/x-www-form-urlencoded","X-Auth-Return-Redirect":"1"},body:new URLSearchParams({csrfToken:s,callbackUrl:n})}),c=await l.json();if(et().postMessage({event:"session",data:{trigger:"signout"}}),null==(r=null==e?void 0:e.redirect)||r){let e=null!=(a=c.url)?a:n;window.location.href=e,e.includes("#")&&window.location.reload();return}return await X._getSession({event:"storage"}),c}function ed(e){if(!er)throw Error("React Context is unavailable in Server Components");let{children:t,basePath:i,refetchInterval:r,refetchWhenOffline:a}=e;i&&(X.basePath=i);let n=void 0!==e.session;X._lastSync=n?G():0;let[o,s]=c.useState(()=>(n&&(X._session=e.session),e.session)),[d,u]=c.useState(!n);c.useEffect(()=>(X._getSession=async function(){let{event:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{let t="storage"===e;if(t||void 0===X._session){X._lastSync=G(),X._session=await en({broadcast:!t}),s(X._session);return}if(!e||null===X._session||G()<X._lastSync)return;X._lastSync=G(),X._session=await en(),s(X._session)}catch(e){ei.error(new q(e.message,e))}finally{u(!1)}},X._getSession(),()=>{X._lastSync=0,X._session=void 0,X._getSession=()=>{}}),[]),c.useEffect(()=>{let e=()=>X._getSession({event:"storage"});return et().addEventListener("message",e),()=>et().removeEventListener("message",e)},[]),c.useEffect(()=>{let{refetchOnWindowFocus:t=!0}=e,i=()=>{t&&"visible"===document.visibilityState&&X._getSession({event:"visibilitychange"})};return document.addEventListener("visibilitychange",i,!1),()=>document.removeEventListener("visibilitychange",i,!1)},[e.refetchOnWindowFocus]);let h=function(){let[e,t]=c.useState("undefined"!=typeof navigator&&navigator.onLine),i=()=>t(!0),r=()=>t(!1);return c.useEffect(()=>(window.addEventListener("online",i),window.addEventListener("offline",r),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",r)}),[]),e}(),p=!1!==a||h;c.useEffect(()=>{if(r&&p){let e=setInterval(()=>{X._session&&X._getSession({event:"poll"})},1e3*r);return()=>clearInterval(e)}},[r,p]);let m=c.useMemo(()=>({data:o,status:d?"loading":o?"authenticated":"unauthenticated",async update(e){if(d)return;u(!0);let t=await V("session",X,ei,void 0===e?void 0:{body:{csrfToken:await eo(),data:e}});return u(!1),t&&(s(t),et().postMessage({event:"session",data:{trigger:"getSession"}})),t}}),[o,d]);return(0,l.jsx)(er.Provider,{value:m,children:t})}},81208:(e,t,i)=>{"use strict";i.d(t,{w:()=>a});var r=i(12734);function a(e){return(0,r.M)({...e,state:!0,attribute:!1})}},82165:(e,t,i)=>{"use strict";i.d(t,{Up:()=>m});var r=i(3348),a=i(97220),n=i(58616),o=i(45086),s=i(34194),l=i(60210),c=i(98283),d=i(40776),u=i(33364);async function h(){l.I.push("ConnectingFarcaster");let e=o.a.getAuthConnector();if(e){let t=n.W.getAccountData();if(!t?.farcasterUrl)try{let{url:t}=await e.provider.getFarcasterUri();n.W.setAccountProp("farcasterUrl",t,n.W.state.activeChain)}catch(e){l.I.goBack(),c.P.showError(e)}}}async function p(e){l.I.push("ConnectingSocial");let t=o.a.getAuthConnector(),i=null;try{let o=setTimeout(()=>{throw Error("Social login timed out. Please try again.")},45e3);if(t&&e){if(d.w.isTelegram()||(i=function(){try{return d.w.returnOpenHref(`${a.o.SECURE_SITE_SDK_ORIGIN}/loading`,"popupWindow","width=600,height=800,scrollbars=yes")}catch(e){throw Error("Could not open social popup")}}()),i)n.W.setAccountProp("socialWindow",(0,r.KR)(i),n.W.state.activeChain);else if(!d.w.isTelegram())throw Error("Could not create social popup");let{uri:s}=await t.provider.getSocialRedirectUri({provider:e});if(!s)throw i?.close(),Error("Could not fetch the social redirect uri");if(i&&(i.location.href=s),d.w.isTelegram()){u.i.setTelegramSocialProvider(e);let t=d.w.formatTelegramSocialLoginUrl(s);d.w.openHref(t,"_top")}clearTimeout(o)}}catch(r){i?.close();let t=d.w.parseError(r);c.P.showError(t),s.E.sendEvent({type:"track",event:"SOCIAL_LOGIN_ERROR",properties:{provider:e,message:t}})}}async function m(e){n.W.setAccountProp("socialProvider",e,n.W.state.activeChain),s.E.sendEvent({type:"track",event:"SOCIAL_LOGIN_STARTED",properties:{provider:e}}
6856),"farcaster"===e?await h():await p(e)}},82475:(e,t,i)=>{"use strict";i.d(t,{mN:()=>$,AH:()=>c,W3:()=>E,Ec:()=>k,iz:()=>l});let r=globalThis,a=r.ShadowRoot&&(void 0===r.ShadyCSS||r.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,n=Symbol(),o=new WeakMap;class s{constructor(e,t,i){if(this._$cssResult$=!0,i!==n)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(a&&void 0===e){let i=void 0!==t&&1===t.length;i&&(e=o.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&o.set(t,e))}return e}toString(){return this.cssText}}let l=e=>new s("string"==typeof e?e:e+"",void 0,n),c=(e,...t)=>new s(1===e.length?e[0]:t.reduce((t,i,r)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[r+1],e[0]),e,n),d=(e,t)=>{if(a)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let i of t){let t=document.createElement("style"),a=r.litNonce;void 0!==a&&t.setAttribute("nonce",a),t.textContent=i.cssText,e.appendChild(t)}},u=a?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(let i of e.cssRules)t+=i.cssText;return l(t)})(e):e,{is:h,defineProperty:p,getOwnPropertyDescriptor:m,getOwnPropertyNames:g,getOwnPropertySymbols:f,getPrototypeOf:w}=Object,y=globalThis,b=y.trustedTypes,v=b?b.emptyScript:"",C=y.reactiveElementPolyfillSupport,x=(e,t)=>e,E={toAttribute(e,t){switch(t){case Boolean:e=e?v:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},k=(e,t)=>!h(e,t),A={attribute:!0,type:String,converter:E,reflect:!1,useDefault:!1,hasChanged:k};Symbol.metadata??=Symbol("metadata"),y.litPropertyMetadata??=new WeakMap;class $ extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=A){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let i=Symbol(),r=this.getPropertyDescriptor(e,i,t);void 0!==r&&p(this.prototype,e,r)}}static getPropertyDescriptor(e,t,i){let{get:r,set:a}=m(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:r,set(t){let n=r?.call(this);a?.call(this,t),this.requestUpdate(e,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??A}static _$Ei(){if(this.hasOwnProperty(x("elementProperties")))return;let e=w(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(x("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(x("properties"))){let e=this.properties;for(let t of[...g(e),...f(e)])this.createProperty(t,e[t])}let e=this[Symbol.metadata];if(null!==e){let t=litPropertyMetadata.get(e);if(void 0!==t)for(let[e,i]of t)this.elementProperties.set(e,i)}for(let[e,t]of(this._$Eh=new Map,this.elementProperties)){let i=this._$Eu(e,t);void 0!==i&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e))for(let i of new Set(e.flat(1/0).reverse()))t.unshift(u(i));else void 0!==e&&t.push(u(e));return t}static _$Eu(e,t){let i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}
6856removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map;for(let t of this.constructor.elementProperties.keys())this.hasOwnProperty(t)&&(e.set(t,this[t]),delete this[t]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return d(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$ET(e,t){let i=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,i);if(void 0!==r&&!0===i.reflect){let a=(void 0!==i.converter?.toAttribute?i.converter:E).toAttribute(t,i.type);this._$Em=e,null==a?this.removeAttribute(r):this.setAttribute(r,a),this._$Em=null}}_$AK(e,t){let i=this.constructor,r=i._$Eh.get(e);if(void 0!==r&&this._$Em!==r){let e=i.getPropertyOptions(r),a="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:E;this._$Em=r;let n=a.fromAttribute(t,e.type);this[r]=n??this._$Ej?.get(r)??n,this._$Em=null}}requestUpdate(e,t,i){if(void 0!==e){let r=this.constructor,a=this[e];if(!(((i??=r.getPropertyOptions(e)).hasChanged??k)(a,t)||i.useDefault&&i.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(r._$Eu(e,i))))return;this.C(e,t,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:i,reflect:r,wrapped:a},n){i&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,n??t??this[e]),!0!==a||void 0!==n)||(this._$AL.has(e)||(this.hasUpdated||i||(t=void 0),this._$AL.set(e,t)),!0===r&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,i]of e){let{wrapped:e}=i,r=this[t];!0!==e||this._$AL.has(t)||void 0===r||this.C(t,void 0,i,r)}}let e=!1,t=this._$AL;try{(e=this.shouldUpdate(t))?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}}$.elementStyles=[],$.shadowRootOptions={mode:"open"},$[x("elementProperties")]=new Map,$[x("finalized")]=new Map,C?.({ReactiveElement:$}),(y.reactiveElementVersions??=[]).push("2.1.1")},82853:(e,t,i)=>{"use strict";var r=i(88633),a=i(15274);i(17364);var n=i(62057),o=i(54718),s=i(21621);let l=(0,s.AH)` 6857 button { 6858 background-color: transparent; 6859 padding: ${({spacing:e})=>e[1]}; 6860 } 6861 6862 button:focus-visible { 6863 box-shadow: 0 0 0 4px ${({tokens:e})=>e.core.foregroundAccent020}; 6864 } 6865 6866 button[data-variant='accent']:hover:enabled, 6867 button[data-variant='accent']:focus-visible { 6868 background-color: ${({tokens:e})=>e.core.foregroundAccent010}; 6869 } 6870 6871 button[data-variant='primary']:hover:enabled, 6872 button[data-variant='primary']:focus-visible, 6873 button[data-variant='secondary']:hover:enabled, 6874 button[data-variant='secondary']:focus-visible { 6875 background-color: ${({tokens:e})=>e.theme.foregroundSecondary}; 6876 } 6877 6878 button[data-size='xs'] > wui-icon { 6879 width: 8px; 6880 height: 8px; 6881 } 6882 6883 button[data-size='sm'] > wui-icon { 6884 width: 12px; 6885 height: 12px; 6886 } 6887 6888 button[data-size='xs'], 6889 button[data-size='sm'] { 6890 border-radius: ${({borderRadius:e})=>e[1]}; 6891 } 6892 6893 button[data-size='md'], 6894 button[data-size='lg'] { 6895 border-radius: ${({borderRadius:e})=>e[2]}; 6896 } 6897 6898 button[data-size='md'] > wui-icon { 6899 width: 16px; 6900 height: 16px; 6901 } 6902 6903 button[data-size='lg'] > wui-icon {
6904 width: 20px; 6905 height: 20px; 6906 } 6907 6908 button:disabled { 6909 background-color: transparent; 6910 cursor: not-allowed; 6911 opacity: 0.5; 6912 } 6913 6914 button:hover:not(:disabled) { 6915 background-color: var(--wui-color-accent-glass-015); 6916 } 6917 6918 button:focus-visible:not(:disabled) { 6919 background-color: var(--wui-color-accent-glass-015); 6920 box-shadow: 6921 inset 0 0 0 1px var(--wui-color-accent-100), 6922 0 0 0 4px var(--wui-color-accent-glass-020); 6923 } 6924`;var c=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let d=class extends r.WF{constructor(){super(...arguments),this.size="md",this.disabled=!1,this.icon="copy",this.iconColor="default",this.variant="accent"}render(){return(0,r.qy)` 6925 <button data-variant=${this.variant} ?disabled=${this.disabled} data-size=${this.size}> 6926 <wui-icon 6927 color=${({accent:"accent-primary",primary:"inverse",secondary:"default"})[this.variant]||this.iconColor} 6928 size=${this.size} 6929 name=${this.icon} 6930 ></wui-icon> 6931 </button> 6932 `}};d.styles=[n.W5,n.fD,l],c([(0,a.MZ)()],d.prototype,"size",void 0),c([(0,a.MZ)({type:Boolean})],d.prototype,"disabled",void 0),c([(0,a.MZ)()],d.prototype,"icon",void 0),c([(0,a.MZ)()],d.prototype,"iconColor",void 0),c([(0,a.MZ)()],d.prototype,"variant",void 0),d=c([(0,o.E)("wui-icon-link")],d)},86248:(e,t,i)=>{"use strict";i(89496)},87352:(e,t,i)=>{"use strict";i.d(t,{o:()=>o});var r=i(3348),a=i(73538);let n=(0,r.BX)({isLegalCheckboxChecked:!1}
6932),o={state:n,subscribe:e=>(0,r.B1)(n,()=>e(n)),subscribeKey:(e,t)=>(0,a.u$)(n,e,t),setIsLegalCheckboxChecked(e){n.isLegalCheckboxChecked=e}}},87734:(e,t,i)=>{"use strict";i.d(t,{aG:()=>f});var r=i(3348),a=i(73538),n=i(97220),o=i(20592),s=i(10611),l=i(81241),c=i(24915),d=i(58616),u=i(38195);let h={id:"2b92315d-eab7-5bef-84fa-089a131333f5",name:"USD Coin",symbol:"USDC",networks:[{name:"ethereum-mainnet",display_name:"Ethereum",chain_id:"1",contract_address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"},{name:"polygon-mainnet",display_name:"Polygon",chain_id:"137",contract_address:"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"}]},p={id:"USD",payment_method_limits:[{id:"card",min:"10.00",max:"7500.00"},{id:"ach_bank_account",min:"10.00",max:"25000.00"}]},m={providers:o.tM,selectedProvider:null,error:null,purchaseCurrency:h,paymentCurrency:p,purchaseCurrencies:[h],paymentCurrencies:[],quotesLoading:!1},g=(0,r.BX)(m),f=(0,s.X)({state:g,subscribe:e=>(0,r.B1)(g,()=>e(g)),subscribeKey:(e,t)=>(0,a.u$)(g,e,t),setSelectedProvider(e){if(e&&"meld"===e.name){let t=d.W.state.activeChain,i=t===n.o.CHAIN.SOLANA?"SOL":"USDC",r=t?d.W.state.chains.get(t)?.accountState?.address??"":"",a=new URL(e.url);a.searchParams.append("publicKey",o.Db),a.searchParams.append("destinationCurrencyCode",i),a.searchParams.append("walletAddress",r),a.searchParams.append("externalCustomerId",u.H.state.projectId),g.selectedProvider={...e,url:a.toString()}}else g.selectedProvider=e},setOnrampProviders(e){Array.isArray(e)&&e.every(e=>"string"==typeof e)?g.providers=o.tM.filter(t=>e.includes(t.name)):g.providers=[]},setPurchaseCurrency(e){g.purchaseCurrency=e},setPaymentCurrency(e){g.paymentCurrency=e},setPurchaseAmount(e){f.state.purchaseAmount=e},setPaymentAmount(e){f.state.paymentAmount=e},async getAvailableCurrencies(){let e=await c.T.getOnrampOptions();g.purchaseCurrencies=e.purchaseCurrencies,g.paymentCurrencies=e.paymentCurrencies,g.paymentCurrency=e.paymentCurrencies[0]||p,g.purchaseCurrency=e.purchaseCurrencies[0]||h,await l.N.fetchCurrencyImages(e.paymentCurrencies.map(e=>e.id)),await l.N.fetchTokenImages(e.purchaseCurrencies.map(e=>e.symbol))},async getQuote(){g.quotesLoading=!0;try{let e=await c.T.getOnrampQuote({purchaseCurrency:g.purchaseCurrency,paymentCurrency:g.paymentCurrency,amount:g.paymentAmount?.toString()||"0",network:g.purchaseCurrency?.symbol});return g.quotesLoading=!1,g.purchaseAmount=Number(e?.purchaseAmount.amount),e}catch(e){return g.error=e.message,g.quotesLoading=!1,null}finally{g.quotesLoading=!1}},resetState(){g.selectedProvider=null,g.error=null,g.purchaseCurrency=h,g.paymentCurrency=p,g.purchaseCurrencies=[h],g.paymentCurrencies=[],g.paymentAmount=void 0,g.purchaseAmount=void 0,g.quotesLoading=!1}})},88633:(e,t,i)=>{"use strict";i.d(t,{WF:()=>o,AH:()=>r.AH,qy:()=>a.qy,JW:()=>a.JW,iz:()=>r.iz});var r=i(82475),a=i(13178);let n=globalThis;class o extends r.mN{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=(0,a.XX)(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return a.c0}}o._$litElement$=!0,o.finalized=!0,n.litElementHydrateSupport?.({LitElement:o});let s=n.litElementPolyfillSupport;s?.({LitElement:o}),(n.litElementVersions??=[]).push("4.2.1")},89047:(e,t,i)=>{"use strict";i.d(t,{H:()=>u});var r=i(88633),a=i(15274),n=i(60210),o=i(34194),s=i(67789);i(94868),i(56345);var l=i(12763);let c=(0,s.AH)` 6933 :host { 6934 display: block; 6935 } 6936 6937 div.container { 6938 position: absolute; 6939 bottom: 0; 6940 left: 0; 6941 right: 0; 6942 overflow: hidden; 6943 height: auto; 6944 display: block; 6945 } 6946 6947 div.container[status='hide'] { 6948 animation: fade-out; 6949 animation-duration: var(--apkt-duration-dynamic); 6950 animation-timing-function: ${({easings:e})=>e["ease-out-power-2"]}; 6951 animation-fill-mode: both; 6952 animation-delay: 0s; 6953 } 6954 6955 div.container[status='show'] { 6956 animation: fade-in; 6957 animation-duration: var(--apkt-duration-dynamic); 6958 animation-timing-function: ${({easings:e})=>e["ease-out-power-2"]}; 6959 animation-fill-mode: both; 6960 animation-delay: var(--apkt-duration-dynamic); 6961 } 6962 6963 @keyframes fade-in { 6964 from { 6965 opacity: 0; 6966 filter: blur(6px); 6967 } 6968 to { 6969 opacity: 1; 6970 filter: blur(0px); 6971 } 6972 } 6973 6974 @keyframes fade-out { 6975 from { 6976 opacity: 1; 6977 filter: blur(0px); 6978 } 6979 to { 6980 opacity: 0; 6981 filter: blur(6px); 6982 } 6983 } 6984`;var d=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let u=class extends r.WF{constructor(){super(...arguments),this.resizeObserver=void 0,this.unsubscribe=[],this.status="hide",this.view=n.I.state.view}firstUpdated(){this.status=l.y.hasFooter()?"show":"hide",this.unsubscribe.push(n.I.subscribeKey("view",e=>{this.view=e,this.status=l.y.hasFooter()?"show":"hide","hide"===this.status&&document.documentElement.style.setProperty("--apkt-footer-height","0px")})),this.resizeObserver=new ResizeObserver(e=>{for(let t of e)if(t.target===this.getWrapper()){let e=`${t.contentRect.height}px`;document.documentElement.style.setProperty("--apkt-footer-height",e)}}),this.resizeObserver.observe(this.getWrapper())}render(){return(0,r.qy)` 6985 <div class="container" status=${this.status}>${this.templatePageContainer()}</div> 6986 `}templatePageContainer(){return l.y.hasFooter()?(0,r.qy)` ${this.templateFooter()}`:null}templateFooter(){switch(this.view){case"Networks":return this.templateNetworksFooter();case"Connect":case"ConnectWallets":case"OnRampFiatSelect":case"OnRampTokenSelect":return(0,r.qy)`<w3m-legal-footer></w3m-legal-footer>`;case"OnRampProviders":return(0,r.qy)`<w3m-onramp-providers-footer></w3m-onramp-providers-footer>`;default:return null}}templateNetworksFooter(){return(0,r.qy)` <wui-flex 6987 class="footer-in" 6988 padding="3" 6989 flexDirection="column" 6990 gap="3" 6991 alignItems="center" 6992 > 6993 <wui-text variant="md-regular" color="secondary" align="center"> 6994 Your connected wallet may not support some of the networks available for this dApp 6995 </wui-text> 6996 <wui-link @click=${this.onNetworkHelp.bind(this)}> 6997 <wui-icon size="sm" color="accent-primary" slot="iconLeft" name="helpCircle"></wui-icon> 6998 What is a network 6999 </wui-link> 7000 </wui-flex>`}onNetworkHelp(){o.E.sendEvent({type:"track",event:"CLICK_NETWORK_HELP"}),n.I.push("WhatIsANetwork")}getWrapper(){return this.shadowRoot?.querySelector("div.container")}};u.styles=[c],d([(0,a.wk)()],u.prototype,"status",void 0),d([(0,a.wk)()],u.prototype,"view",void 0),u=d([(0,s.EM)("w3m-footer")],u)},89496:(e,t,i)=>{"use strict";var r=i(88633),a=i(15274),n=i(62057),o=i(49146),s=i(54718);let l=(0,r.AH)` 7001 :host { 7002 display: flex; 7003 width: inherit; 7004 height: inherit; 7005 box-sizing: border-box; 7006 } 7007`;var c=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let d=class extends r.WF{render(){return this.style.cssText=` 7008 flex-direction: ${this.flexDirection}; 7009 flex-wrap: ${this.flexWrap}; 7010 flex-basis: ${this.flexBasis}; 7011 flex-grow: ${this.flexGrow}; 7012 flex-shrink: ${this.flexShrink}; 7013 align-items: ${this.alignItems}; 7014 justify-content: ${this.justifyContent}; 7015 column-gap: ${this.columnGap&&`var(--apkt-spacing-${this.columnGap})`}; 7016 row-gap: ${this.rowGap&&`var(--apkt-spacing-${this.rowGap})`}; 7017 gap: ${this.gap&&`var(--apkt-spacing-${this.gap})`}; 7018 padding-top: ${this.padding&&o.Z.getSpacingStyles(this.padding,0)}; 7019 padding-right: ${this.padding&&o.Z.getSpacingStyles(this.padding,1)}; 7020 padding-bottom: ${this.padding&&o.Z.getSpacingStyles(this.padding,2)}; 7021 padding-left: ${this.padding&&o.Z.getSpacingStyles(this.padding,3)}; 7022 margin-top: ${this.margin&&o.Z.getSpacingStyles(this.margin,
70220)}; 7023 margin-right: ${this.margin&&o.Z.getSpacingStyles(this.margin,1)}; 7024 margin-bottom: ${this.margin&&o.Z.getSpacingStyles(this.margin,2)}; 7025 margin-left: ${this.margin&&o.Z.getSpacingStyles(this.margin,3)}; 7026 width: ${this.width}; 7027 `,(0,r.qy)`<slot></slot>`}};d.styles=[n.W5,l],c([(0,a.MZ)()],d.prototype,"flexDirection",void 0),c([(0,a.MZ)()],d.prototype,"flexWrap",void 0),c([(0,a.MZ)()],d.prototype,"flexBasis",void 0),c([(0,a.MZ)()],d.prototype,"flexGrow",void 0),c([(0,a.MZ)()],d.prototype,"flexShrink",void 0),c([(0,a.MZ)()],d.prototype,"alignItems",void 0),c([(0,a.MZ)()],d.prototype,"justifyContent",void 0),c([(0,a.MZ)()],d.prototype,"columnGap",void 0),c([(0,a.MZ)()],d.prototype,"rowGap",void 0),c([(0,a.MZ)()],d.prototype,"gap",void 0),c([(0,a.MZ)()],d.prototype,"padding",void 0),c([(0,a.MZ)()],d.prototype,"margin",void 0),c([(0,a.MZ)()],d.prototype,"width",void 0),d=c([(0,s.E)("wui-flex")],d)},92198:(e,t,i)=>{let r=i(21498),a=i(4358);function n(e){this.mode=a.BYTE,"string"==typeof e&&(e=r(e)),this.data=new Uint8Array(e)}n.getBitsLength=function(e){return 8*e},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(e){for(let t=0,i=this.data.length;t<i;t++)e.put(this.data[t],8)},e.exports=n},92901:(e,t,i)=>{"use strict";var r=i(88633),a=i(15274),n=i(13894);i(17364),i(37218);var o=i(62057),s=i(54718);i(61499);let l=(0,r.AH)` 7028 :host { 7029 position: relative; 7030 display: inline-block; 7031 width: 100%; 7032 } 7033`;var c=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let d=class extends r.WF{constructor(){super(...arguments),this.disabled=!1}render(){return(0,r.qy)` 7034 <wui-input-text 7035 type="email" 7036 placeholder="Email" 7037 icon="mail" 7038 size="lg" 7039 .disabled=${this.disabled} 7040 .value=${this.value} 7041 data-testid="wui-email-input" 7042 tabIdx=${(0,n.J)(this.tabIdx)} 7043 ></wui-input-text> 7044 ${this.templateError()} 7045 `}templateError(){return this.errorMessage?(0,r.qy)`<wui-text variant="sm-regular" color="error">${this.errorMessage}</wui-text>`:null}};d.styles=[o.W5,l],c([(0,a.MZ)()],d.prototype,"errorMessage",void 0),c([(0,a.MZ)({type:Boolean})],d.prototype,"disabled",void 0),c([(0,a.MZ)()],d.prototype,"value",void 0),c([(0,a.MZ)()],d.prototype,"tabIdx",void 0),d=c([(0,s.E)("wui-email-input")],d)},94868:(e,t,i)=>{"use strict";var r=i(88633),a=i(15274),n=i(38195),o=i(67789);i(86248),i(8236),i(71379);let s=(0,o.AH)` 7046 :host wui-ux-by-reown { 7047 padding-top: 0; 7048 } 7049 7050 :host wui-ux-by-reown.branding-only { 7051 padding-top: ${({spacing:e})=>e["3"]}; 7052 } 7053 7054 a { 7055 text-decoration: none; 7056 color: ${({tokens:e})=>e.core.textAccentPrimary}; 7057 font-weight: 500; 7058 } 7059`;var l=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let c=class extends r.WF{constructor(){super(),this.unsubscribe=[],this.remoteFeatures=n.H.state.remoteFeatures,this.unsubscribe.push(n.H.subscribeKey("remoteFeatures",e=>this.remoteFeatures=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let{termsConditionsUrl:e,privacyPolicyUrl:t}=n.H.state,i=n.H.state.features?.legalCheckbox;return(e||t)&&!i?(0,r.qy)` 7060 <wui-flex flexDirection="column"> 7061 <wui-flex .padding=${["4","3","3","3"]} justifyContent="center"> 7062 <wui-text color="secondary" variant="md-regular" align="center"> 7063 By connecting your wallet, you agree to our <br /> 7064 ${this.termsTemplate()} ${this.andTemplate()} ${this.privacyTemplate()} 7065 </wui-text> 7066 </wui-flex> 7067 ${this.reownBrandingTemplate()} 7068 </wui-flex> 7069 `:(0,r.qy)` 7070 <wui-flex flexDirection="column"> ${this.reownBrandingTemplate(!0)} </wui-flex> 7071 `}andTemplate(){let{termsConditionsUrl:e,privacyPolicyUrl:t}=n.H.state;return e&&t?"and":""}termsTemplate(){let{termsConditionsUrl:e}=n.H.state;return e?(0,r.qy)`<a href=${e} target="_blank" rel="noopener noreferrer" 7072 >Terms of Service</a 7073 >`:null}privacyTemplate(){let{privacyPolicyUrl:e}=n.H.state;return e?(0,r.qy)`<a href=${e} target="_blank" rel="noopener noreferrer" 7074 >Privacy Policy</a 7075 >`:null}reownBrandingTemplate(e=!1){return this.remoteFeatures?.reownBranding?e?(0,r.qy)`<wui-ux-by-reown class="branding-only"></wui-ux-by-reown>`:(0,r.qy)`<wui-ux-by-reown></wui-ux-by-reown>`:null}};c.styles=[s],l([(0,a.wk)()],c.prototype,"remoteFeatures",void 0),c=l([(0,o.EM)("w3m-legal-footer")],c)},96047:(e,t,i)=>{let r=i(25190),a=i(27047),n=i(14049),o=i(69010),s=i(79005),l=i(1038),c=i(25622),d=i(49458),u=i(32606),h=i(25499),p=i(27905),m=i(4358),g=i(61859);function f(e,t,i){let r,a,n=e.size,o=p.getEncodedBits(t,i);for(r=0;r<15;r++)a=(o>>r&1)==1,r<6?e.set(r,8,a,!0):r<8?e.set(r+1,8,a,!0):e.set(n-15+r,8,a,!0),r<8?e.set(8,n-r-1,a,!0):r<9?e.set(8,15-r-1+1,a,!0):e.set(8,15-r-1,a,!0);e.set(n-8,8,1,!0)}t.create=function(e,t){let i,p;if(void 0===e||""===e)throw Error("No input text");let w=a.M;return void 0!==t&&(w=a.from(t.errorCorrectionLevel,a.M),i=h.from(t.version),p=c.from(t.maskPattern),t.toSJISFunc&&r.setToSJISFunction(t.toSJISFunc)),function(e,t,i,a){let p;if(Array.isArray(e))p=g.fromArray(e);else if("string"==typeof e){let r=t;if(!r){let t=g.rawSplit(e);r=h.getBestVersionForData(t,i)}p=g.fromString(e,r||40)}else throw Error("Invalid data");let w=h.getBestVersionForData(p,i);if(!w)throw Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<w)throw Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+w+".\n")}else t=w;let y=function(e,t,i){let a=new n;
7075i.forEach(function(t){a.put(t.mode.bit,4),a.put(t.getLength(),m.getCharCountIndicator(t.mode,e)),t.write(a)});let o=(r.getSymbolTotalCodewords(e)-d.getTotalCodewordsCount(e,t))*8;for(a.getLengthInBits()+4<=o&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(0);let s=(o-a.getLengthInBits())/8;for(let e=0;e<s;e++)a.put(e%2?17:236,8);return function(e,t,i){let a,n,o=r.getSymbolTotalCodewords(t),s=o-d.getTotalCodewordsCount(t,i),l=d.getBlocksCount(t,i),c=o%l,h=l-c,p=Math.floor(o/l),m=Math.floor(s/l),g=m+1,f=p-m,w=new u(f),y=0,b=Array(l),v=Array(l),C=0,x=new Uint8Array(e.buffer);for(let e=0;e<l;e++){let t=e<h?m:g;b[e]=x.slice(y,y+t),v[e]=w.encode(b[e]),y+=t,C=Math.max(C,t)}let E=new Uint8Array(o),k=0;for(a=0;a<C;a++)for(n=0;n<l;n++)a<b[n].length&&(E[k++]=b[n][a]);for(a=0;a<f;a++)for(n=0;n<l;n++)E[k++]=v[n][a];return E}(a,e,t)}(t,i,p),b=new o(r.getSymbolSize(t));!function(e,t){let i=e.size,r=l.getPositions(t);for(let t=0;t<r.length;t++){let a=r[t][0],n=r[t][1];for(let t=-1;t<=7;t++)if(!(a+t<=-1)&&!(i<=a+t))for(let r=-1;r<=7;r++)n+r<=-1||i<=n+r||(t>=0&&t<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===t||6===t)||t>=2&&t<=4&&r>=2&&r<=4?e.set(a+t,n+r,!0,!0):e.set(a+t,n+r,!1,!0))}}(b,t);let v=b.size;for(let e=8;e<v-8;e++){let t=e%2==0;b.set(e,6,t,!0),b.set(6,e,t,!0)}return!function(e,t){let i=s.getPositions(t);for(let t=0;t<i.length;t++){let r=i[t][0],a=i[t][1];for(let t=-2;t<=2;t++)for(let i=-2;i<=2;i++)-2===t||2===t||-2===i||2===i||0===t&&0===i?e.set(r+t,a+i,!0,!0):e.set(r+t,a+i,!1,!0)}}(b,t),f(b,i,0),t>=7&&function(e,t){let i,r,a,n=e.size,o=h.getEncodedBits(t);for(let t=0;t<18;t++)i=Math.floor(t/3),r=t%3+n-8-3,a=(o>>t&1)==1,e.set(i,r,a,!0),e.set(r,i,a,!0)}(b,t),!function(e,t){let i=e.size,r=-1,a=i-1,n=7,o=0;for(let s=i-1;s>0;s-=2)for(6===s&&s--;;){for(let i=0;i<2;i++)if(!e.isReserved(a,s-i)){let r=!1;o<t.length&&(r=(t[o]>>>n&1)==1),e.set(a,s-i,r),-1==--n&&(o++,n=7)}if((a+=r)<0||i<=a){a-=r,r=-r;break}}}(b,y),isNaN(a)&&(a=c.getBestMask(b,f.bind(null,b,i))),c.applyMask(a,b),f(b,i,a),{modules:b,version:t,errorCorrectionLevel:i,maskPattern:a,segments:p}}(e,i,w,p)}},96402:(e,t,i)=>{"use strict";i(69616)},99349:(e,t,i)=>{"use strict";i.d(t,{J:()=>c});var r=i(88633),a=i(15274),n=i(60210),o=i(67789);i(89047);let s=(0,o.AH)` 7076 :host { 7077 display: block; 7078 width: inherit; 7079 } 7080`;var l=function(e,t,i,r){var a,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,i,o):a(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o};let c=class extends r.WF{constructor(){super(),this.unsubscribe=[],this.viewState=n.I.state.view,this.history=n.I.state.history.join(","),this.unsubscribe.push(n.I.subscribeKey("view",()=>{this.history=n.I.state.history.join(","),document.documentElement.style.setProperty("--apkt-duration-dynamic","var(--apkt-durations-lg)")}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e()),document.documentElement.style.setProperty("--apkt-duration-dynamic","0s")}render(){return(0,r.qy)`${this.templatePageContainer()}`}templatePageContainer(){return(0,r.qy)`<w3m-router-container 7081 history=${this.history} 7082 .setView=${()=>{this.viewState=n.I.state.view}} 7083 > 7084 ${this.viewTemplate(this.viewState)} 7085 </w3m-router-container>`}viewTemplate(e){switch(e){case"AccountSettings":return(0,r.qy)`<w3m-account-settings-view></w3m-account-settings-view>`;case"Account":return(0,r.qy)`<w3m-account-view></w3m-account-view>`;case"AllWallets":return(0,r.qy)`<w3m-all-wallets-view></w3m-all-wallets-view>`;case"ApproveTransaction":return(0,r.qy)`<w3m-approve-transaction-view></w3m-approve-transaction-view>`;case"BuyInProgress":return(0,r.qy)`<w3m-buy-in-progress-view></w3m-buy-in-progress-view>`;case"ChooseAccountName":return(0,r.qy)`<w3m-choose-account-name-view></w3m-choose-account-name-view>`;case"Connect":default:return(0,r.qy)`<w3m-connect-view></w3m-connect-view>`;case"Create":return(0,r.qy)`<w3m-connect-view walletGuide="explore"></w3m-connect-view>`;case"ConnectingWalletConnect":return(0,r.qy)`<w3m-connecting-wc-view></w3m-connecting-wc-view>`;case"ConnectingWalletConnectBasic":return(0,r.qy)`<w3m-connecting-wc-basic-view></w3m-connecting-wc-basic-view>`;
7085case"ConnectingExternal":return(0,r.qy)`<w3m-connecting-external-view></w3m-connecting-external-view>`;case"ConnectingSiwe":return(0,r.qy)`<w3m-connecting-siwe-view></w3m-connecting-siwe-view>`;case"ConnectWallets":return(0,r.qy)`<w3m-connect-wallets-view></w3m-connect-wallets-view>`;case"ConnectSocials":return(0,r.qy)`<w3m-connect-socials-view></w3m-connect-socials-view>`;case"ConnectingSocial":return(0,r.qy)`<w3m-connecting-social-view></w3m-connecting-social-view>`;case"DataCapture":return(0,r.qy)`<w3m-data-capture-view></w3m-data-capture-view>`;case"DataCaptureOtpConfirm":return(0,r.qy)`<w3m-data-capture-otp-confirm-view></w3m-data-capture-otp-confirm-view>`;case"Downloads":return(0,r.qy)`<w3m-downloads-view></w3m-downloads-view>`;case"EmailLogin":return(0,r.qy)`<w3m-email-login-view></w3m-email-login-view>`;case"EmailVerifyOtp":return(0,r.qy)`<w3m-email-verify-otp-view></w3m-email-verify-otp-view>`;case"EmailVerifyDevice":return(0,r.qy)`<w3m-email-verify-device-view></w3m-email-verify-device-view>`;case"GetWallet":return(0,r.qy)`<w3m-get-wallet-view></w3m-get-wallet-view>`;case"Networks":return(0,r.qy)`<w3m-networks-view></w3m-networks-view>`;case"SwitchNetwork":return(0,r.qy)`<w3m-network-switch-view></w3m-network-switch-view>`;case"ProfileWallets":return(0,r.qy)`<w3m-profile-wallets-view></w3m-profile-wallets-view>`;case"Transactions":return(0,r.qy)`<w3m-transactions-view></w3m-transactions-view>`;case"OnRampProviders":return(0,r.qy)`<w3m-onramp-providers-view></w3m-onramp-providers-view>`;case"OnRampTokenSelect":return(0,r.qy)`<w3m-onramp-token-select-view></w3m-onramp-token-select-view>`;case"OnRampFiatSelect":return(0,r.qy)`<w3m-onramp-fiat-select-view></w3m-onramp-fiat-select-view>`;case"UpgradeEmailWallet":return(0,r.qy)`<w3m-upgrade-wallet-view></w3m-upgrade-wallet-view>`;case"UpdateEmailWallet":return(0,r.qy)`<w3m-update-email-wallet-view></w3m-update-email-wallet-view>`;case"UpdateEmailPrimaryOtp":return(0,r.qy)`<w3m-update-email-primary-otp-view></w3m-update-email-primary-otp-view>`;case"UpdateEmailSecondaryOtp":return(0,r.qy)`<w3m-update-email-secondary-otp-view></w3m-update-email-secondary-otp-view>`;case"UnsupportedChain":return(0,r.qy)`<w3m-unsupported-chain-view></w3m-unsupported-chain-view>`;case"Swap":return(0,r.qy)`<w3m-swap-view></w3m-swap-view>`;case"SwapSelectToken":return(0,r.qy)`<w3m-swap-select-token-view></w3m-swap-select-token-view>`;case"SwapPreview":return(0,r.qy)`<w3m-swap-preview-view></w3m-swap-preview-view>`;case"WalletSend":return(0,r.qy)`<w3m-wallet-send-view></w3m-wallet-send-view>`;case"WalletSendSelectToken":return(0,r.qy)`<w3m-wallet-send-select-token-view></w3m-wallet-send-select-token-view>`;case"WalletSendPreview":return(0,r.qy)`<w3m-wallet-send-preview-view></w3m-wallet-send-preview-view>`;case"WalletSendConfirmed":return(0,r.qy)`<w3m-send-confirmed-view></w3m-send-confirmed-view>`;case"WhatIsABuy":return(0,r.qy)`<w3m-what-is-a-buy-view></w3m-what-is-a-buy-view>`;case"WalletReceive":return(0,r.qy)`<w3m-wallet-receive-view></w3m-wallet-receive-view>`;case"WalletCompatibleNetworks":return(0,r.qy)`<w3m-wallet-compatible-networks-view></w3m-wallet-compatible-networks-view>`;case"WhatIsAWallet":return(0,r.qy)`<w3m-what-is-a-wallet-view></w3m-what-is-a-wallet-view>`;case"ConnectingMultiChain":return(0,r.qy)`<w3m-connecting-multi-chain-view></w3m-connecting-multi-chain-view>`;case"WhatIsANetwork":return(0,r.qy)`<w3m-what-is-a-network-view></w3m-what-is-a-network-view>`;case"ConnectingFarcaster":return(0,r.qy)`<w3m-connecting-farcaster-view></w3m-connecting-farcaster-view>`;case"SwitchActiveChain":return(0,r.qy)`<w3m-switch-active-chain-view></w3m-switch-active-chain-view>`;case"RegisterAccountName":return(0,r.qy)`<w3m-register-account-name-view></w3m-register-account-name-view>`;case"RegisterAccountNameSuccess":return(0,r.qy)`<w3m-register-account-name-success-view></w3m-register-account-name-success-view>`;case"SmartSessionCreated":return(0,r.qy)`<w3m-smart-session-created-view></w3m-smart-session-created-view>`;case"SmartSessionList":return(0,r.qy)`<w3m-smart-session-list-view></w3m-smart-session-list-view>`;case"SIWXSignMessage":return(0,r.qy)`<w3m-siwx-sign-message-view></w3m-siwx-sign-message-view>`;case"Pay":return(0,r.qy)`<w3m-pay-view></w3m-pay-view>`;case"PayLoading":return(0,r.qy)`<w3m-pay-loading-view></w3m-pay-loading-view>`;case"PayQuote":return(0,r.qy)`<w3m-pay-quote-view></w3m-pay-quote-view>`;case"FundWallet":return(0,r.qy)`<w3m-fund-wallet-view></w3m-fund-wallet-view>`;case"PayWithExchange":return(0,r.qy)`<w3m-deposit-from-exchange-view></w3m-deposit-from-exchange-view>`;case"PayWithExchangeSelectAsset":return(0,r.qy)`<w3m-deposit-from-exchange-select-asset-view></w3m-deposit-from-exchange-select-asset-view>`;case"UsageExceeded":return(0,r.qy)`<w3m-usage-exceeded-view></w3m-usage-exceeded-view>`;case"SmartAccountSettings":return(0,r.qy)`<w3m-smart-account-settings-view></w3m-smart-account-settings-view>`}}};c.styles=[s],l([(0,a.wk)()],c.prototype,"viewState",void 0),l([(0,a.wk)()],c.prototype,"history",void 0),c=l([(0,o.EM)("w3m-router")],c)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.