PageSourceSearch

https://www.tempwallets.com/_next/static/chunks/251-42553a241145aa25.js?dpl=dpl_4mmEuP75A4QRt6De4fXhEMYGCoUV

js tempwallets.com collected 2026-10-05 18:41:06 UTC 184,443 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[251],{1592:(e,s,t)=>{t.d(s,{b:()=>a});var l=t(7626);function a(){let e=(0,l._)();return{balances:e.balances,transactions:e.transactions,loading:e.loading,errors:e.errors,refresh:e.refresh,refreshBalances:e.refreshBalances,refreshTransactions:e.refreshTransactions,lastFetched:e.lastFetched}}},1661:(e,s,t)=>{t.d(s,{t:()=>d});var l=t(5253),a=t(4257),n=t(538),i=t(3814),o=t(3950),r=t(5681),c=t(2486);function d(e){let{isOpen:s,onClose:t,onSelect:d,selectedChainId:f,modalOverlayClassName:u}=e,p=(0,i.p)(),x=(0,a.useMemo)(()=>{let e=p.isDev;return p.getMainnet().filter(e=>!e.isTestnet&&!!e.features.showInWalletList&&(!!e.capabilities.walletConnect||"evm"!==e.type)).sort((s,t)=>{let l=e?s.features.enabledInDev:s.features.enabledInProd;return l!==(e?t.features.enabledInDev:t.features.enabledInProd)?l?-1:1:s.priority!==t.priority?s.priority-t.priority:s.name.localeCompare(t.name)})},[p]),m=(0,a.useMemo)(()=>{let e={"EVM EOA WALLETS (GASLESS)":[],"EVM EOA WALLETS":[],"EVM SMART WALLETS":[],Substrate:[],Aptos:[],Other:[]};return x.forEach(s=>{let t=!!s.isSmartAccount,l=!t&&o._Z.has(s.id);t?e["EVM EOA WALLETS (GASLESS)"].push(s):l?e["EVM SMART WALLETS"].push(s):"evm"===s.type?e["EVM EOA WALLETS"].push(s):"substrate"===s.type?e.Substrate.push(s):"aptos"===s.type?e.Aptos.push(s):e.Other.push(s)}),Object.entries(e).filter(e=>{let[s,t]=e;return t.length>0})},[x]);return(0,l.jsx)(c.lG,{open:s,onOpenChange:e=>!e&&t(),children:(0,l.jsxs)(c.Cf,{overlayClassName:u,className:"w-[90%] sm:w-full sm:max-w-[340px] md:max-w-[380px] max-h-[85vh] bg-black/90 backdrop-blur border border-white/10 rounded-2xl shadow-2xl overflow-hidden p-0 gap-0",children:[(0,l.jsx)(c.c7,{className:"flex flex-row items-center justify-between p-4 border-b border-white/10 space-y-0",children:(0,l.jsx)(c.L3,{className:"text-white text-lg font-rubik-bold",children:"All Networks"})}),(0,l.jsx)("div",{className:"flex-1 overflow-y-auto p-4 space-y-4 max-h-[60vh]",children:m.map(e=>{let[s,a]=e;return(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsxs)("div",{className:"flex items-center gap-1.5 px-1",children:[(0,l.jsx)("h3",{className:"text-white/50 text-[10px] font-rubik-medium uppercase tracking-wider",children:s}),["EVM EOA WALLETS (GASLESS)","EVM SMART WALLETS","EVM EOA WALLETS"].includes(s)&&(0,l.jsx)("a",{href:"https://medium.com/@tempwallets/what-are-these-different-wallets-i-see-in-my-account-explained-60b01cbd60c5",target:"_blank",rel:"noopener noreferrer",className:"text-white/30 hover:text-white/50 transition-colors",children:(0,l.jsx)(n.A,{className:"w-3 h-3"})})]}),(0,l.jsx)("div",{className:"grid grid-cols-3 gap-2",children:a.map(e=>{let a=f===e.id,n=e.icon;return(0,l.jsxs)("button",{onClick:()=>{d(e.id),t()},className:(0,r.cn)("flex flex-col items-center justify-center p-2 rounded-xl transition-all aspect-square relative overflow-hidden","hover:bg-white/5 hover:scale-[1.02] active:scale-[0.98]",a?"bg-white/10 border border-white/20 shadow-lg":"bg-white/5 border border-transparent"),children:[(0,l.jsx)("div",{className:"w-8 h-8 rounded-full flex items-center justify-center mb-1.5",style:{backgroundColor:e.color?"".concat(e.color,"20"):"rgba(255, 255, 255, 0.1)"},children:(0,l.jsx)(n,{className:"w-4 h-4",style:{fill:"currentColor",color:e.color||"#ffffff"}})}),(0,l.jsx)("span",{className:"text-white font-rubik-bold text-xs mb-0.5 uppercase tracking-wide",children:e.symbol}),(0,l.jsx)("span",{className:"text-[10px] text-white/50 font-rubik-normal mb-1",children:e.name}),(0,l.jsx)("div",{className:"mt-auto scale-90 origin-bottom",children:(()=>{let s=!!e.isSmartAccount,t=!s&&o._Z.has(e.id);return s?(0,l.jsx)("span",{className:"px-1.5 py-0.5 text-[9px] bg-blue-500/20 text-blue-300 rounded-full font-rubik-medium border border-blue-500/20",children:"7702"}):t?(0,l.jsx)("span",{className:"px-1.5 py-0.5 text-[9px] bg-emerald-500/20 text-emerald-300 rounded-full font-rubik-medium border border-emerald-500/20",children:"Smart"}):"evm"===e.type?(0,l.jsx)("span",{className:"px-1.5 py-0.5 text-[9px] bg-purple-500/20 text-purple-300 rounded-full font-rubik-medium border border-purple-500/20",children:"EOA"}):"aptos"===e.type?(0,l.jsx)("span",{className:"px-1.5 py-0.5 text-[9px] bg-teal-500/20 text-teal-300 rounded-full font-rubik-medium border border-teal-500/20",children:"Aptos"}):(0,l.jsx)("span",{className:"px-1.5 py-0.5 text-[9px] bg-gray-500/20 text-gray-400 rounded-full font-rubik-medium border border-gray-500/20",children:e.type})})()}),a&&(0,l.jsx)("div",{className:"absolute top-1.5 right-1.5 w-1.5 h-1.5 bg-green-500 rounded-full shadow-[0_0_6px_rgba(34,197,94,0.6)]"})]},"".concat(s,"-").concat(e.id))})})]},s)})}),(0,l.jsx)("div",{className:"p-3 border-t border-white/10 bg-white/5",children:(0,l.jsxs)("p",{className:"text-white/30 text-[10px] text-center font-rubik-normal",children:[x.length," networks"]})})]})})}},2486:(e,s,t)=>{t.d(s,{Cf:()=>f,L3:()=>p,c7:()=>u,lG:()=>r,rr:()=>x});
1var l=t(5253),a=t(4257),n=t(6109),i=t(8690),o=t(5681);let r=n.bL;n.l9;let c=n.ZL;n.bm;let d=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,l.jsx)(n.hJ,{ref:s,className:(0,o.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...a})});d.displayName=n.hJ.displayName;let f=a.forwardRef((e,s)=>{let{className:t,overlayClassName:a,children:r,...f}=e;return(0,l.jsxs)(c,{children:[(0,l.jsx)(d,{className:a}),(0,l.jsxs)(n.UC,{ref:s,className:(0,o.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...f,children:[r,(0,l.jsxs)(n.bm,{className:"absolute right-4 top-4 roun
1ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,l.jsx)(i.A,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});f.displayName=n.UC.displayName;let u=e=>{let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,o.cn)("flex flex-col space-y-1.5 text-center sm:text-left",s),...t})};u.displayName="DialogHeader";let p=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,l.jsx)(n.hE,{ref:s,className:(0,o.cn)("text-lg font-semibold leading-none tracking-tight",t),...a})});p.displayName=n.hE.displayName;let x=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,l.jsx)(n.VY,{ref:s,className:(0,o.cn)("text-sm text-muted-foreground",t),...a})});x.displayName=n.VY.displayName},2795:(e,s,t)=>{t.d(s,{Y:()=>i});var l=t(3814),a=t(1666);let n=t.n(a)();function i(e,s){let t=(0,l.p)(),a=t.getById(e);if(null==a?void 0:a.icon)return a.icon;let i={ethereum:"ethereumErc4337",base:"baseErc4337",arbitrum:"arbitrumErc4337",polygon:"polygonErc4337",avalanche:"avalancheErc4337"}[e];if(i){let e=t.getById(i);if(null==e?void 0:e.icon)return e.icon}return n}},2811:(e,s,t)=>{t.d(s,{Bc:()=>o,ZI:()=>d,k$:()=>c,m_:()=>r});var l=t(5253),a=t(4257),n=t(4521),i=t(5681);let o=n.Kq,r=n.bL,c=n.l9,d=a.forwardRef((e,s)=>{let{className:t,sideOffset:a=4,...o}=e;return(0,l.jsx)(n.UC,{ref:s,sideOffset:a,className:(0,i.cn)("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",t),...o})});d.displayName=n.UC.displayName},2878:(e,s,t)=>{t.d(s,{bq:()=>u,eb:()=>h,gC:()=>m,l6:()=>d,yv:()=>f});var l=t(5253),a=t(4257),n=t(1440),i=t(5600),o=t(5497),r=t(874),c=t(5681);let d=n.bL;n.YJ;let f=n.WT,u=a.forwardRef((e,s)=>{let{className:t,children:a,...o}=e;return(0,l.jsxs)(n.l9,{ref:s,className:(0,c.cn)("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
1ing-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...o,children:[a,(0,l.jsx)(n.In,{asChild:!0,children:(0,l.jsx)(i.A,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=n.l9.displayName;let p=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,l.jsx)(n.PP,{ref:s,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",t),...a,children:(0,l.jsx)(o.A,{className:"h-4 w-4"})})});p.displayName=n.PP.displayName;let x=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,l.jsx)(n.wn,{ref:s,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",t),...a,children:(0,l.jsx)(i.A,{className:"h-4 w-4"})})});x.displayName=n.wn.displayName;let m=a.forwardRef((e,s)=>{let{className:t,children:a,position:i="popper",...o}=e;return(0,l.jsx)(n.ZL,{children:(0,l.jsxs)(n.UC,{ref:s,className:(0,c.cn)("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]","popper"===i&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:i,...o,children:[(0,l.jsx)(p,{}),(0,l.jsx)(n.LM,{className:(0,c.cn)("p-1","popper"===i&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:a}),(0,l.jsx)(x,{})]})})});m.displayName=n.UC.displayName,a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,l.jsx)(n.JU,{ref:s,className:(0,c.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",t),...a})}).displayName=n.JU.displayName;let h=a.forwardRef((e,s)=>{let{className:t,children:a,...i}=e;return(0,l.jsxs)(n.q7,{ref:s,className:(0,c.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...i,children:[(0,l.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,l.jsx)(n.VF,{children:(0,l.jsx)(r.A,{className:"h-4 w-4"})})}),(0,l.jsx)(n.p4,{children:a})]})});h.displayName=n.q7.displayName,a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,l.jsx)(n.wv,{ref:s,className:(0,c.cn)("-mx-1 my-1 h-px bg-muted",t),...a})}).displayName=n.wv.displayName},3517:(e,s,t)=>{t.d(s,{Bt:()=>N,GK:()=>C,w9:()=>F});var l=t(4430),a=t.n(l),n=t(4703),i=t.n(n),o=t(9851),r=t.n(o),c=t(1666),d=t.n(c),f=t(2115),u=t.n(f),p=t(2668),x=t.n(p),m=t(4744),h=t.n(m),v=t(6005),y=t.n(v),g=t(6337),j=t.n(g);let b=a(),N=[{id:"ethereum",name:"Ethereum",symbol:"ETH",icon:a(),type:"evm",hasWalletConnect:!0,isTestnet:!1,category:"layer1",chainId:1,featured:!0},{id:"bitcoin",name:"Bitcoin",symbol:"BTC",icon:i(),type:"bitcoin",hasWalletConnect:!1,isTestnet:!1,category:"layer1",featured:!0},{id:"polkadot",name:"Polkadot",symbol:"DOT",icon:d(),type:"substrate",hasWalletConnect:!0,isTestnet:!1,category:"layer1",featured:!0},{id:"solana",name:"Solana",symbol:"SOL",icon:r(),type:"solana",hasWalletConnect:!1,isTestnet:!1,category:"layer1",featured:!0},{id:"tron",name:"Tron",symbol:"TRX",icon:h(),type:"solana",hasWalletConnect:!1,isTestnet:!1,category:"layer1",featured:!0},{id:"polygon",name:"Polygon",symbol:"MATIC",icon:u(),type:"evm",hasWalletConnect:!0,isTestnet:!1,category:"sidechain",chainId:137},{id:"avalanche",name:"Avalanche",symbol:"AVAX",icon:x(),type:"evm",hasWalletConnect:!0,isTestnet:!1,category:"layer1",chainId:43114},{id:"base",name:"Base",symbol:"ETH",icon:b,type:"evm",hasWalletConnect:!0,isTestnet:!1,category:"layer2",chainId:8453}
1,{id:"arbitrum",name:"Arbitrum",symbol:"ETH",icon:y(),type:"evm",hasWalletConnect:!0,isTestnet:!1,category:"layer2",chainId:42161},{id:"optimism",name:"Optimism",symbol:"ETH",icon:j(),type:"evm",hasWalletConnect:!0,isTestnet:!1,category:"layer2",chainId:10},{id:"ethereumGasless",name:"Ethereum (Gasless)",symbol:"ETH",icon:a(),type:"evm",hasWalletConnect:!1,isTestnet:!1,category:"layer1",chainId:1,featured:!0},{id:"baseGasless",name:"Base (Gasless)",symbol:"ETH",icon:b,type:"evm",hasWalletConnect:!1,isTestnet:!1,category:"layer2",chainId:8453},{id:"arbitrumGasless",name:"Arbitrum (Gasless)",symbol:"ETH",icon:y(),type:"evm",hasWalletConnect:!1,isTestnet:!1,category:"layer2",chainId:42161},{id:"optimismGasless",name:"Optimism (Gasless)",symbol:"ETH",icon:j(),type:"evm",hasWalletConnect:!1,isTestnet:!1,category:"layer2",chainId:10},{id:"polygonGasless",name:"Polygon (Gasless)",symbol:"MATIC",icon:u(),type:"evm",hasWalletConnect:!1,isTestnet:!1,category:"sidechain",chainId:137}],w=N.filter(e=>!e.isTestnet);w.filter(e=>e.featured),w.filter(e=>"evm"===e.type&&e.hasWalletConnect);let F=e=>N.find(s=>s.id===e),C={id:"ethereumErc4337",name:"Ethereum Gasless",symbol:"ETH",icon:a(),type:"evm",hasWalletConnect:!0,isTestnet:!1,category:"layer1",chainId:1,featured:!0},S=N.filter(e=>e.id.endsWith("Gasless"));S.filter(e=>!e.isTestnet),S.filter(e=>e.isTestnet)},3814:(e,s,t)=>{t.d(s,{p:()=>n});var l=t(4257),a=t(3950);function n(){let e=(0,l.useMemo)(()=>(0,a.b_)(),[]),s=e?"development":"production";return(0,l.useMemo)(()=>({all:a.iy,getById:a.Mv,getByFilter:a.XX,getVisible:()=>(0,a.xA)(s),getMainnet:a.ny,getByType:a.w5,getByGroup:a.Xs,getSmartAccounts:a.yf,isDev:e,environment:s}),[e,s])}},3950:(e,s,t)=>{t.d(s,{_Z:()=>k,iy:()=>D,ny:()=>H,yf:()=>U,xA:()=>P,Mv:()=>B,XX:()=>L,Xs:()=>W,w5:()=>O,b_:()=>R});var l=t(4430),a=t.n(l),n=t(4703),i=t.n(n),o=t(9851),r=t.n(o),c=t(1666),d=t.n(c),f=t(2115),u=t.n(f),p=t(2668),x=t.n(p),m=t(4744),h=t.n(m),v=t(6005),y=t.n(v),g=t(5253),j=t(5759),b=t.n(j);t(4257);let N=e=>(0,g.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",version:"1.1",id:"Layer_1",x:"0px",y:"0px",viewBox:"0 0 2500 2500",xmlSpace:"preserve",...e,className:"jsx-9ffc5503e57304f8 "+(e&&null!=e.className&&e.className||""),children:[(0,g.jsx)("defs",{className:"jsx-9ffc5503e57304f8",children:(0,g.jsx)("path",{id:"SVGID_1_",d:"M1250,2500C559.6,2500,0,1940.4,0,1250C0,559.6,559.6,0,1250,0c690.4,0,1250,559.6,1250,1250      C2500,1940.4,1940.4,2500,1250,2500z",className:"jsx-9ffc5503e57304f8"})}),(0,g.jsx)("clipPath",{id:"SVGID_00000137130877621503601290000017679510272143242652_",className:"jsx-9ffc5503e57304f8",children:(0,g.jsx)("use",{xlinkHref:"#SVGID_1_",style:{overflow:"visible"},className:"jsx-9ffc5503e57304f8"})}),(0,g.jsxs)("g",{style:{clipPath:"url(#SVGID_00000137130877621503601290000017679510272143242652_)"},className:"jsx-9ffc5503e57304f8",children:[(0,g.jsx)("polygon",{points:"1250,1250 -518,1239.1 -516.4,1174.1",className:"jsx-9ffc5503e57304f8 st1"}),(0,g.jsx)("polygon",{points:"1250,1250 -516.7,1184.9 -514,1130.7",className:"jsx-9ffc5503e57304f8 st2"}),(0,g.jsx)("polygon",{points:"1250,1250 -514.6,1141.6 -510.6,1087.5",className:"jsx-9ffc5503e57304f8 st3"}),(0,g.jsx)("polygon",{points:"1250,1250 -511.4,1098.3 -506.1,1044.3",className:"jsx-9ffc5503e57304f8 st4"}),(0,g.jsx)("polygon",{points:"1250,1250 -507.1,1055.1 -500.5,1001.3",className:"jsx-9ffc5503e57304f8 st5"}),(0,g.jsx)("polygon",{points:"1250,1250 -501.8,1012.1 -493.9,958.4",className:"jsx-9ffc5503e57304f8 st6"}),(0,g.jsx)("polygon",{points:"1250,1250 -495.4,969.1 -486.2,915.7",className:"jsx-9ffc5503e57304f8 st7"}),(0,g.jsx)("polygon",{points:"1250,1250 -488,926.4 -477.5,873.2",className:"jsx-9ffc5503e57304f8 st8"}),(0,g.jsx)("polygon",{points:"1250,1250 -479.6,883.9 -467.7,830.9",className:"jsx-9ffc5503e57304f8 st9"}),(0,g.jsx)("polygon",{points:"1250,1250 -470.1,841.5 -456.9,788.9",className:"jsx-9ffc5503e57304f8 st10"}),(0,g.jsx)("polygon",{points:"1250,1250 -459.5,799.4 -445.1,747.1",className:"jsx-9ffc5503e57304f8 st11"}),(0,g.jsx)("polygon",{points:"1250,1250 -448,757.6 -432.2,705.7",className:"jsx-9ffc5503e57304f8 st12"}),(0,g.jsx)("polygon",{points:"1250,1250 -435.4,716.1 -418.3,664.6",className:"jsx-9ffc5503e57304f8 st13"}),(0,g.jsx)("polygon",{points:"1250,1250 -421.8,674.9 -403.5,623.8",className:"jsx-9ffc5503e57304f8 st14"}),(0,g.jsx)("polygon",{points:"1250,1250 -407.1,634 -387.6,583.4",className:"jsx-9ffc5503e57304f8 st15"}),(0,g.jsx)("polygon",{points:"1250,1250 -391.5,593.5 -370.8,543.4",className:"jsx-9ffc5503e57304f8 st16"}),(0,g.jsx)("polygon",{points:"1250,1250 -374.9,553.4 -352.9,503.9",className:"jsx-9ffc5503e57304f8 st17"}),(0,g.jsx)("polygon",{points:"1250,1250 -357.3,513.8 -334.1,464.8",className:"jsx-9ffc5503e57304f8 st18"}),(0,g.jsx)("polygon",{points:"1250,1250 -338.8,474.6 -314.4,426.1",className:"jsx-9ffc5503e57304f8 st19"}),(0,g.jsx)("polygon",{points:"1250,1250 -319.3,435.8 -293.7,388",className:"jsx-9ffc5503e57304f8 st20"}),(0,g.jsx)("polygon",{points:"1250,1250 -298.8,397.6 -272.1,350.3",className:"jsx-9ffc5503e57304f8 st21"}),(0,g.jsx)("polygon",{points:"1250,1250 -277.4,359.8 -249.5,313.3",className:"jsx-9ffc5503e57304f8 st22"}),(0,g.jsx)("polygon",{points:"1250,1250 -255.1,322.6 -226.1,276.7",className:"jsx-9ffc5503e57304f8 st23"}),(0,g.jsx)("polygon",{points:"1250,1250 -231.9,285.9 -201.7,240.8",className:"jsx-9ffc5503e57304f8 st24"}),(0,g.jsx)("polygon",{points:"1250,1250 -207.8,249.8 -176.6,205.5",className:"jsx-9ffc5503e57304f8 st25"}),(0,g.jsx)("polygon",{points:"1250,1250 -182.8,214.4 -150.5,170.8",className:"jsx-9ffc5503e57304f8 st26"}),(0,g.jsx)("polygon",{points:"1250,1250 -157,179.5 -123.6,136.7",className:"jsx-9ffc5503e57304f8 st27"}),(0,g.jsx)("polygon",{points:"1250,1250 -130.3,145.3 -95.9,103.4",className:"jsx-9ffc5503e57304f8 st28"}),(0,g.jsx)("polygon",{points:"1250,1250 -102.7,111.8 -67.3,70.7",className:"jsx-9ffc5503e57304f8 st29"}),(0,g.jsx)("polygon",{points:"1250,1250 -74.4,78.9 -38,38.7",className:"jsx-9ffc5503e57304f8 st30"}),(0,g.jsx)("polygon",{points:"1250,1250 -45.3,46.8 -7.9,7.5",className:"jsx-9ffc5503e57304f8 st31"}),(0,g.jsx)("polygon",{points:"1250,1250 -15.4,15.4 23,-23",className:"jsx-9ffc5503e57304f8 st32"}),(0,g.jsx)("polygon",{points:"1250,1250 15.4,-15.4 54.6,-52.7",className:"jsx-9ffc5503e57304f8 st33"}),(0,g.jsx)("polygon",{points:"1250,1250 46.8,-45.3 87,-81.7",className:"jsx-9ffc5503e57304f8 st34"}),(0,g.jsx)("polygon",{points:"1250,1250 78.9,-74.4 120,-109.8",className:"jsx-9ffc5503e57304f8 st35"}),(0,g.jsx)("polygon",{points:"1250,1250 111.8,-102.7 153.7,-137.1",className:"jsx-9ffc5503e57304f8 st36"}),(0,g.jsx)("polygon",{points:"1250,1250 145.3,-130.3 188.1,-163.6",className:"jsx-9ffc5503e57304f8 st37"}),(0,g.jsx)("polygon",{points:"1250,1250 179.5,-157 223.1,-189.3",className:"jsx-9ffc5503e57304f8 st38"}),(0,g.jsx)("polygon",{points:"1250,1250 214.4,-182.8 258.7,-214",className:"jsx-9ffc5503e57304f8 st39"}),(0,g.jsx)("polygon",{points:"1250,1250 249.8,-207.8 294.9,-237.9",className:"jsx-9ffc5503e57304f8 st40"}),(0,g.jsx)("polygon",{points:"1250,1250 285.9,-231.9 331.8,-260.9",className:"jsx-9ffc5503e57304f8 st41"}),(0,g.jsx)("polygon",{points:"1250,1250 322.6,-255.1 369.1,-283",className:"jsx-9ffc5503e57304f8 st42"}),(0,g.jsx)("polygon",{points:"1250,1250 359.8,-277.4 407,-304.1",className:"jsx-9ffc5503e57304f8 st43"}),(0,g.jsx)("polygon",{points:"1250,1250 397.6,-298.8 445.4,-324.4",className:"jsx-9ffc5503e57304f8 st44"}),(0,g.jsx)("polygon",{points:"1250,1250 435.8,-319.3 484.3,-343.6",className:"jsx-9ffc5503e57304f8 st45"}),(0,g.jsx)("polygon",{points:"1250,1250 474.6,-338.8 523.6,-361.9",className:"jsx-9ffc5503e57304f8 st46"}),(0,g.jsx)("polygon",{points:"1250,1250 513.8,-357.3 563.4,-379.3",className:"jsx-9ffc5503e57304f8 st47"}),(0,g.jsx)("polygon",{points:"1250,1250 553.4,-374.9 603.6,-395.7",className:"jsx-9ffc5503e57304f8 st48"}),(0,g.jsx)("polygon",{points:"1250,1250 593.5,-391.5 644.2,-411",className:"jsx-9ffc5503e57304f8 st49"}),(0,g.jsx)("polygon",{points:"1250,1250 634,-407.1 685.1,-425.4",className:"jsx-9ffc5503e57304f8 st50"}),(0,g.jsx)("polygon",{points:"1250,1250 674.9,-421.8 726.4,-438.7",className:"jsx-9ffc5503e57304f8 st51"}),(0,g.jsx)("polygon",{points:"1250,1250 716.1,-435.4 768,-451.1",className:"jsx-9ffc5503e57304f8 st52"}),(0,g.jsx)("polygon",{points:"1250,1250 757.6,-448 809.9,-462.4",className:"jsx-9ffc5503e57304f8 st53"}),(0,g.jsx)("polygon",{points:"1250,1250 799.4,-459.5 852,-472.7",className:"jsx-9ffc5503e57304f8 st54"}),(0,g.jsx)("polygon",{points:"1250,1250 841.5,-470.1 894.4,-481.9",className:"jsx-9ffc5503e57304f8 st55"}),(0,g.jsx)("polygon",{points:"1250,1250 883.9,-479.6 937,-490.1",className:"jsx-9ffc5503e57304f8 st56"}),(0,g.jsx)("polygon",{points:"1250,1250 926.4,-488 979.8,-497.3",className:"jsx-9ffc5503e57304f8 st57"}),(0,g.jsx)("polygon",{points:"1250,1250 969.1,-495.4 1022.8,-503.4",className:"jsx-9ffc5503e57304f8 st58"}),(0,g.jsx)("polygon",{points:"1250,1250 1012.1,-501.8 1065.9,-508.4",className:"jsx-9ffc5503e57304f8 st59"}),(0,g.jsx)("polygon",{points:"1250,1250 1055.1,-507.1 1109.1,-512.4",className:"jsx-9ffc5503e57304f8 st60"}),(0,g.jsx)("polygon",{points:"1250,1250 1098.3,-511.4 1152.4,-515.4",className:"jsx-9ffc5503e57304f8 st61"}),(0,g.jsx)("polygon",{points:"1250,1250 1141.6,-514.6 1195.8,-517.2",className:"jsx-9ffc5503e57304f8 st62"}),(0,g.jsx)("polygon",{points:"1250,1250 1184.9,-516.7 1239.1,-518",className:"jsx-9ffc5503e57304f8 st63"}),(0,g.jsx)("polygon",{points:"1250,1250 1228.3,-517.8 1282.5,-517.8",className:"jsx-9ffc5503e57304f8 st64"}),(0,g.jsx)("polygon",{points:"1250,1250 1271.7,-517.8 1325.9,-516.4",className:"jsx-9ffc5503e57304f8 st65"}),(0,g.jsx)("polygon",{points:"1250,1250 1315.1,-516.7 1369.2,-514",className:"jsx-9ffc5503e57304f8 st66"}),(0,g.jsx)("polygon",{points:"1250,1250 1358.4,-514.6 1412.5,-510.6",className:"jsx-9ffc5503e57304f8 st67"}),(0,g.jsx)("polygon",{points:"1250,1250 1401.7,-511.4 1455.7,-506.1",className:"jsx-9ffc5503e57304f8 st68"}),(0,g.jsx)("polygon",{points:"1250,1250 1444.8,-507.1 1498.7,-500.5",className:"jsx-9ffc5503e57304f8 st69"}),(0,g.jsx)("polygon",{points:"1250,1250 1487.9,-501.8 1541.6,-493.9",className:"jsx-9ffc5503e57304f8 st70"}),(0,g.jsx)("polygon",{points:"1250,1250 1530.8,-495.4 1584.3,-486.2",className:"jsx-9ffc5503e57304f8 st71"}),(0,g.jsx)("polygon",{points:"1250,1250 1573.6,-488 1626.8,-477.5",className:"jsx-9ffc5503e57304f8 st72"}),(0,g.jsx)("polygon",{points:"1250,1250 1616.1,-479.6 1669.1,-467.7",className:"jsx-9ffc5503e57304f8 st73"}),(0,g.jsx)("polygon",{points:"1250,1250 1658.5,-470.1 1711.1,-456.9",className:"jsx-9ffc5503e57304f8 st74"}),(0,g.jsx)("polygon",{points:"1250,1250 1700.6,-459.5 1752.8,-445.1",className:"jsx-9ffc5503e57304f8 st75"}),(0,g.jsx)("polygon",{points:"1250,1250 1742.4,-448 1794.3,-432.2",className:"jsx-9ffc5503e57304f8 st76"}),(0,g.jsx)("polygon",{points:"1250,1250 1783.9,-435.4 1835.4,-418.3",className:"jsx-9ffc5503e57304f8 st77"}),(0,g.jsx)("polygon",{points:"1250,1250 1825.1,-421.8 1876.2,-403.5",className:"jsx-9ffc5503e57304f8 st78"}),(0,g.jsx)("polygon",{points:"1250,1250 1866,-407.1 1916.6,-387.6",className:"jsx-9ffc5503e57304f8 st79"}),(0,g.jsx)("polygon",{points:"1250,1250 1906.4,-391.5 1956.6,-370.8",className:"jsx-9ffc5503e57304f8 st80"}),(0,g.jsx)("polygon",{points:"1250,1250 1946.5,-374.9 1996.1,-352.9",className:"jsx-9ffc5503e57304f8 st81"}),(0,g.jsx)("polygon",{points:"1250,1250 1986.2,-357.3 2035.2,-334.1",className:"jsx-9ffc5503e57304f8 st82"}),(0,g.jsx)("polygon",{points:"1250,1250 2025.4,-338.8 2073.9,-314.4",className:"jsx-9ffc5503e57304f8 st83"}),(0,g.jsx)("polygon",{points:"1250,1250 2064.2,-319.3 2112,-293.7",className:"jsx-9ffc5503e57304f8 st84"}),(0,g.jsx)("polygon",{points:"1250,1250 2102.4,-298.8 2149.7,-272.1",className:"jsx-9ffc5503e57304f8 st85"}),(0,g.jsx)("polygon",{points:"1250,1250 2140.2,-277.4 2186.7,-249.5",className:"jsx-9ffc5503e57304f8 st86"}),(0,g.jsx)("polygon",{points:"1250,1250 2177.4,-255.1 2223.2,-226.1",className:"jsx-9ffc5503e57304f8 st87"}),(0,g.jsx)("polygon",{points:"1250,1250 2214.1,-231.9 2259.2,-201.7",className:"jsx-9ffc5503e57304f8 st88"}),(0,g.jsx)("polygon",{points:"1250,1250 2250.2,-207.8 2294.5,-176.6",className:"jsx-9ffc5503e57304f8 st89"}),(0,g.jsx)("polygon",{points:"1250,1250 2285.6,-182.8 2329.2,-150.5",className:"jsx-9ffc5503e57304f8 st90"}),(0,g.jsx)("polygon",{points:"1250,1250 2320.5,-157 2363.2,-123.6",className:"jsx-9ffc5503e57304f8 st9
11"}),(0,g.jsx)("polygon",{points:"1250,1250 2354.7,-130.3 2396.6,-95.9",className:"jsx-9ffc5503e57304f8 st92"}),(0,g.jsx)("polygon",{points:"1250,1250 2388.2,-102.7 2429.3,-67.3",className:"jsx-9ffc5503e57304f8 st93"}),(0,g.jsx)("polygon",{points:"1250,1250 2421.1,-74.4 2461.3,-38",className:"jsx-9ffc5503e57304f8 st94"}),(0,g.jsx)("polygon",{points:"1250,1250 2453.2,-45.3 2492.5,-7.9",className:"jsx-9ffc5503e57304f8 st95"}),(0,g.jsx)("polygon",{points:"1250,1250 2484.6,-15.4 2523,23",className:"jsx-9ffc5503e57304f8 st96"}),(0,g.jsx)("polygon",{points:"1250,1250 2515.3,15.4 2552.7,54.6",className:"jsx-9ffc5503e57304f8 st97"}),(0,g.jsx)("polygon",{points:"1250,1250 2545.3,46.8 2581.7,87",className:"jsx-9ffc5503e57304f8 st98"}),(0,g.jsx)("polygon",{points:"1250,1250 2574.4,78.9 2609.8,120",className:"jsx-9ffc5503e57304f8 st99"}),(0,g.jsx)("polygon",{points:"1250,1250 2602.7,111.8 2637.1,153.7",className:"jsx-9ffc5503e57304f8 st100"}),(0,g.jsx)("polygon",{points:"1250,1250 2630.3,145.3 2663.6,188.1",className:"jsx-9ffc5503e57304f8 st101"}),(0,g.jsx)("polygon",{points:"1250,1250 2657,179.5 2689.3,223.1",className:"jsx-9ffc5503e57304f8 st102"}),(0,g.jsx)("polygon",{points:"1250,1250 2682.8,214.4 2714,258.7",className:"jsx-9ffc5503e57304f8 st103"}),(0,g.jsx)("polygon",{points:"1250,1250 2707.8,249.8 2737.9,294.9",className:"jsx-9ffc5503e57304f8 st104"}),(0,g.jsx)("polygon",{points:"1250,1250 2731.9,285.9 2760.9,331.8",className:"jsx-9ffc5503e57304f8 st105"}),(0,g.jsx)("polygon",{points:"1250,1250 2755.1,322.6 2783,369.1",className:"jsx-9ffc5503e57304f8 st106"}),(0,g.jsx)("polygon",{points:"1250,1250 2777.4,359.8 2804.1,407",className:"jsx-9ffc5503e57304f8 st107"}),(0,g.jsx)("polygon",{points:"1250,1250 2798.8,397.6 2824.3,445.4",className:"jsx-9ffc5503e57304f8 st108"}),(0,g.jsx)("polygon",{points:"1250,1250 2819.2,435.8 2843.6,484.3",className:"jsx-9ffc5503e57304f8 st109"}),(0,g.jsx)("polygon",{points:"1250,1250 2838.8,474.6 2861.9,523.6",className:"jsx-9ffc5503e57304f8 st110"}),(0,g.jsx)("polygon",{points:"1250,1250 2857.3,513.8 2879.3,563.4",className:"jsx-9ffc5503e57304f8 st111"}),(0,g.jsx)("polygon",{points:"1250,1250 2874.9,553.4 2895.6,603.6",className:"jsx-9ffc5503e57304f8 st112"}),(0,g.jsx)("polygon",{points:"1250,1250 2891.5,593.5 2911,644.2",className:"jsx-9ffc5503e57304f8 st113"}),(0,g.jsx)("polygon",{points:"1250,1250 2907.1,634 2925.4,685.1",className:"jsx-9ffc5503e57304f8 st114"}),(0,g.jsx)("polygon",{points:"1250,1250 2921.7,674.9 2938.7,726.4",className:"jsx-9ffc5503e57304f8 st115"}),(0,g.jsx)("polygon",{points:"1250,1250 2935.3,716.1 2951.1,768",className:"jsx-9ffc5503e57304f8 st116"}),(0,g.jsx)("polygon",{points:"1250,1250 2947.9,757.6 2962.4,809.9",className:"jsx-9ffc5503e57304f8 st117"}),(0,g.jsx)("polygon",{points:"1250,1250 2959.5,799.4 2972.7,852",className:"jsx-9ffc5503e57304f8 st118"}),(0,g.jsx)("polygon",{points:"1250,1250 2970.1,841.5 2981.9,894.4",className:"jsx-9ffc5503e57304f8 st119"}),(0,g.jsx)("polygon",{points:"1250,1250 2979.5,883.9 2990.1,937",className:"jsx-9ffc5503e57304f8 st120"}),(0,g.jsx)("polygon",{points:"1250,1250 2988,926.4 2997.3,979.8",className:"jsx-9ffc5503e57304f8 st121"}),(0,g.jsx)("polygon",{points:"1250,1250 2995.4,969.1 3003.4,1022.8",className:"jsx-9ffc5503e57304f8 st122"}),(0,g.jsx)("polygon",{points:"1250,1250 3001.8,1012.1 3008.4,1065.9",className:"jsx-9ffc5503e57304f8 st123"}),(0,g.jsx)("polygon",{points:"1250,1250 3007.1,1055.1 3012.4,1109.1",className:"jsx-9ffc5503e57304f8 st124"}),(0,g.jsx)("polygon",{points:"1250,1250 3011.4,1098.3 3015.4,1152.4",className:"jsx-9ffc5503e57304f8 st125"}),(0,g.jsx)("polygon",{points:"1250,1250 3014.6,1141.6 3017.2,1195.8",className:"jsx-9ffc5503e57304f8 st126"}),(0,g.jsx)("polygon",{points:"1250,1250 3016.7,1184.9 3018,1239.1",className:"jsx-9ffc5503e57304f8 st127"}),(0,g.jsx)("polygon",{points:"1250,1250 3017.7,1228.3 3017.7,1282.5",className:"jsx-9ffc5503e57304f8 st128"}),(0,g.jsx)("polygon",{points:"1250,1250 3017.7,1271.7 3016.4,1325.9",className:"jsx-9ffc5503e57304f8 st129"}),(0,g.jsx)("polygon",{points:"1250,1250 3016.7,1315.1 3014,1369.2",className:"jsx-9ffc5503e57304f8 st130"}),(0,g.jsx)("polygon",{points:"1250,1250 3014.6,1358.4 3010.6,1412.5",className:"jsx-9ffc5503e57304f8 st131"}),(0,g.jsx)("polygon",{points:"1250,1250 3011.4,1401.7 3006.1,1455.7",className:"jsx-9ffc5503e57304f8 st132"}),(0,g.jsx)("polygon",{points:"1250,1250 3007.1,1444.8 3000.5,1498.7",className:"jsx-9ffc5503e57304f8 st133"}),(0,g.jsx)("polygon",{points:"1250,1250 3001.8,1487.9 2993.8,1541.6",className:"jsx-9ffc5503e57304f8 st134"}),(0,g.jsx)("polygon",{points:"1250,1250 2995.4,1530.8 2986.2,1584.3",className:"jsx-9ffc5503e57304f8 st135"}),(0,g.jsx)("polygon",{points:"1250,1250 2988,1573.6 2977.4,1626.8",className:"jsx-9ffc5503e57304f8 st136"}),(0,g.jsx)("polygon",{points:"1250,1250 2979.5,1616.1 2967.7,1669.1",className:"jsx-9ffc5503e57304f8 st137"}),(0,g.jsx)("polygon",{points:"1250,1250 2970.1,1658.5 2956.9,1711.1",className:"jsx-9ffc5503e57304f8 st138"}),(0,g.jsx)("polygon",{points:"1250,1250 2959.5,1700.6 2945.1,1752.8",className:"jsx-9ffc5503e57304f8 st139"}),(0,g.jsx)("polygon",{points:"1250,1250 2947.9,1742.4 2932.2,1794.3",className:"jsx-9ffc5503e57304f8 st140"}),(0,g.jsx)("polygon",{points:"1250,1250 2935.3,1783.9 2918.3,1835.4",className:"jsx-9ffc5503e57304f8 st141"}),(0,g.jsx)("polygon",{points:"1250,1250 2921.7,1825.1 2903.5,1876.2",className:"jsx-9ffc5503e57304f8 st142"}),(0,g.jsx)("polygon",{points:"1250,1250 2907.1,1866 2887.6,1916.6",className:"jsx-9ffc5503e57304f8 st143"}),(0,g.jsx)("polygon",{points:"1250,1250 2891.5,1906.4 2870.7,1956.6",className:"jsx-9ffc5503e57304f8 st144"}),(0,g.jsx)("polygon",{points:"1250,1250 2874.9,1946.5 2852.9,1996.1",className:"jsx-9ffc5503e57304f8 st145"}),(0,g.jsx)("polygon",{points:"1250,1250 2857.3,1986.2 2834.1,2035.2",className:"jsx-9ffc5503e57304f8 st146"}),(0,g.jsx)("polygon",{points:"1250,1250 2838.8,2025.4 2814.4,2073.9",className:"jsx-9ffc5503e57304f8 st147"}
1),(0,g.jsx)("polygon",{points:"1250,1250 2819.2,2064.2 2793.7,2112",className:"jsx-9ffc5503e57304f8 st148"}),(0,g.jsx)("polygon",{points:"1250,1250 2798.8,2102.4 2772.1,2149.7",className:"jsx-9ffc5503e57304f8 st149"}),(0,g.jsx)("polygon",{points:"1250,1250 2777.4,2140.2 2749.5,2186.7",className:"jsx-9ffc5503e57304f8 st150"}),(0,g.jsx)("polygon",{points:"1250,1250 2755.1,2177.4 2726.1,2223.2",className:"jsx-9ffc5503e57304f8 st151"}),(0,g.jsx)("polygon",{points:"1250,1250 2731.9,2214.1 2701.7,2259.2",className:"jsx-9ffc5503e57304f8 st152"}),(0,g.jsx)("polygon",{points:"1250,1250 2707.8,2250.2 2676.6,2294.5",className:"jsx-9ffc5503e57304f8 st153"}),(0,g.jsx)("polygon",{points:"1250,1250 2682.8,2285.6 2650.5,2329.2",className:"jsx-9ffc5503e57304f8 st154"}),(0,g.jsx)("polygon",{points:"1250,1250 2657,2320.5 2623.6,2363.2",className:"jsx-9ffc5503e57304f8 st155"}),(0,g.jsx)("polygon",{points:"1250,1250 2630.3,2354.7 2595.9,2396.6",className:"jsx-9ffc5503e57304f8 st156"}),(0,g.jsx)("polygon",{points:"1250,1250 2602.7,2388.2 2567.3,2429.3",className:"jsx-9ffc5503e57304f8 st157"}),(0,g.jsx)("polygon",{points:"1250,1250 2574.4,2421.1 2538,2461.3",className:"jsx-9ffc5503e57304f8 st158"}),(0,g.jsx)("polygon",{points:"1250,1250 2545.3,2453.2 2507.9,2492.5",className:"jsx-9ffc5503e57304f8 st159"}),(0,g.jsx)("polygon",{points:"1250,1250 2515.3,2484.6 2477,2523",className:"jsx-9ffc5503e57304f8 st160"}),(0,g.jsx)("polygon",{points:"1250,1250 2484.6,2515.3 2445.4,2552.7",className:"jsx-9ffc5503e57304f8 st161"}),(0,g.jsx)("polygon",{points:"1250,1250 2453.2,2545.3 2413,2581.7",className:"jsx-9ffc5503e57304f8 st162"}),(0,g.jsx)("polygon",{points:"1250,1250 2421.1,2574.4 2380,2609.8",className:"jsx-9ffc5503e57304f8 st163"}),(0,g.jsx)("polygon",{points:"1250,1250 2388.2,2602.7 2346.3,2637.1",className:"jsx-9ffc5503e57304f8 st164"}),(0,g.jsx)("polygon",{points:"1250,1250 2354.7,2630.3 2311.9,2663.6",className:"jsx-9ffc5503e57304f8 st165"}),(0,g.jsx)("polygon",{points:"1250,1250 2320.5,2657 2276.9,2689.3",className:"jsx-9ffc5503e57304f8 st166"}),(0,g.jsx)("polygon",{points:"1250,1250 2285.6,2682.8 2241.3,2714",className:"jsx-9ffc5503e57304f8 st167"}),(0,g.jsx)("polygon",{points:"1250,1250 2250.2,2707.8 2205,2737.9",className:"jsx-9ffc5503e57304f8 st168"}),(0,g.jsx)("polygon",{points:"1250,1250 2214.1,2731.9 2168.2,2760.9",className:"jsx-9ffc5503e57304f8 st169"}),(0,g.jsx)("polygon",{points:"1250,1250 2177.4,2755.1 2130.9,2783",className:"jsx-9ffc5503e57304f8 st170"}),(0,g.jsx)("polygon",{points:"1250,1250 2140.2,2777.4 2093,2804.1",className:"jsx-9ffc5503e57304f8 st171"}),(0,g.jsx)("polygon",{points:"1250,1250 2102.4,2798.8 2054.6,2824.3",className:"jsx-9ffc5503e57304f8 st172"}),(0,g.jsx)("polygon",{points:"1250,1250 2064.2,2819.2 2015.7,2843.6",className:"jsx-9ffc5503e57304f8 st173"}),(0,g.jsx)("polygon",{points:"1250,1250 2025.4,2838.8 1976.4,2861.9",className:"jsx-9ffc5503e57304f8 st174"}),(0,g.jsx)("polygon",{points:"1250,1250 1986.2,2857.3 1936.6,2879.3",className:"jsx-9ffc5503e57304f8 st175"}),(0,g.jsx)("polygon",{points:"1250,1250 1946.5,2874.9 1896.4,2895.6",className:"jsx-9ffc5503e57304f8 st176"}),(0,g.jsx)("polygon",{points:"1250,1250 1906.4,2891.5 1855.8,2911",className:"jsx-9ffc5503e57304f8 st177"}),(0,g.jsx)("polygon",{points:"1250,1250 1866,2907.1 1814.9,2925.4",className:"jsx-9ffc5503e57304f8 st178"}),(0,g.jsx)("polygon",{points:"1250,1250 1825.1,2921.7 1773.6,2938.7",className:"jsx-9ffc5503e57304f8 st179"}),(0,g.jsx)("polygon",{points:"1250,1250 1783.9,2935.3 1732,2951.1",className:"jsx-9ffc5503e57304f8 st180"}),(0,g.jsx)("polygon",{points:"1250,1250 1742.4,2947.9 1690.1,2962.4",className:"jsx-9ffc5503e57304f8 st181"}),(0,g.jsx)("polygon",{points:"1250,1250 1700.6,2959.5 1647.9,2972.7",className:"jsx-9ffc5503e57304f8 st182"}),(0,g.jsx)("polygon",{points:"1250,1250 1658.5,2970.1 1605.6,2981.9",className:"jsx-9ffc5503e57304f8 st183"}),(0,g.jsx)("polygon",{points:"1250,1250 1616.1,2979.5 1562.9,2990.1",className:"jsx-9ffc5503e57304f8 st184"}),(0,g.jsx)("polygon",{points:"1250,1250 1573.6,2988 1520.2,2997.3",className:"jsx-9ffc5503e57304f8 st185"}),(0,g.jsx)("polygon",{points:"1250,1250 1530.8,2995.4 1477.2,3003.4",className:"jsx-9ffc5503e57304f8 st186"}),(0,g.jsx)("polygon",{points:"1250,1250 1487.9,3001.8 1434.1,3008.4",className:"jsx-9ffc5503e57304f8 st187"}),(0,g.jsx)("polygon",{points:"1250,1250 1444.8,3007.1 1390.9,3012.4",className:"jsx-9ffc5503e57304f8 st188"}),(0,g.jsx)("polygon",{points:"1250,1250 1401.7,3011.4 1347.6,3015.4",className:"jsx-9ffc5503e57304f8 st189"}),(0,g.jsx)("polygon",{points:"1250,1250 1358.4,3014.6 1304.2,3017.2",className:"jsx-9ffc5503e57304f8 st190"}),(0,g.jsx)("polygon",{points:"1250,1250 1315.1,3016.7 1260.8,3018",className:"jsx-9ffc5503e57304f8 st191"}),(0,g.jsx)("polygon",{points:"1250,1250 1271.7,3017.7 1217.4,3017.7",className:"jsx-9ffc5503e57304f8 st192"}),(0,g.jsx)("polygon",{points:"1250,1250 1228.3,3017.7 1174.1,3016.4",className:"jsx-9ffc5503e57304f8 st193"}),(0,g.jsx)("polygon",{points:"1250,1250 1184.9,3016.7 1130.7,3014",className:"jsx-9ffc5503e57304f8 st194"}),(0,g.jsx)("polygon",{points:"1250,1250 1141.6,3014.6 1087.5,3010.6",className:"jsx-9ffc5503e57304f8 st195"}),(0,g.jsx)("polygon",{points:"1250,1250 1098.3,3011.4 1044.3,3006.1",className:"jsx-9ffc5503e57304f8 st196"}),(0,g.jsx)("polygon",{points:"1250,1250 1055.1,3007.1 1001.3,3000.5",className:"jsx-9ffc5503e57304f8 st197"}),(0,g.jsx)("polygon",{points:"1250,1250 1012.1,3001.8 958.4,2993.8",className:"jsx-9ffc5503e57304f8 st198"}),(0,g.jsx)("polygon",{points:"1250,1250 969.1,2995.4 915.7,2986.2",className:"jsx-9ffc5503e57304f8 st199"}),(0,g.jsx)("polygon",{points:"1250,1250 926.4,2988 873.2,2977.4",className:"jsx-9ffc5503e57304f8 st200"}),(0,g.jsx)("polygon",{points:"1250,1250 883.9,2979.5 830.9,2967.7",className:"jsx-9ffc5503e57304f8 st201"}),(0,g.jsx)("polygon",{points:"1250,1250 841.5,2970.1 788.9,2956.9",className:"jsx-9ffc5503e57304f8 st202"}),(0,g.jsx)("polygon",{points:"1250,1250 799.4,2959.5 747.1,2945.1",className:"jsx-9ffc5503e57304f8 st203"}),(0,g.jsx)("polygon",{points:"1250,1250 757.6,2947.9 705.7,2932.2",className:"jsx-9ffc5503e57304f8 st204"}),(0,g.jsx)("polygon",{points:"1250,1250 716.1,2935.3 664.6,2918.3",className:"jsx-9ffc5503e57304f8 st205"}),(0,g.jsx)("polygon",{points:"1250,1250 674.9,2921.7 623.8,2903.5",className:"jsx-9ffc5503e57304f8 st206"}),(0,g.jsx)("polygon",{points:"1250,1250 634,2907.1 583.4,2887.6",className:"jsx-9ffc5503e57304f8 st207"}),(0,g.jsx)("polygon",{points:"1250,1250 593.5,2891.5 543.4,2870.7",className:"jsx-9ffc5503e57304f8 st208"}),(0,g.jsx)("polygon",{points:"1250,1250 553.4,2874.9 503.9,2852.9",className:"jsx-9ffc5503e57304f8 st209"}),(0,g.jsx)("polygon",{points:"1250,1250 513.8,2857.3 464.8,2834.1",className:"jsx-9ffc5503e57304f8 st210"}),(0,g.jsx)("polygon",{points:"1250,1250 474.6,2838.8 426.1,2814.4",className:"jsx-9ffc5503e57304f8 st211"}),(0,g.jsx)("polygon",{points:"1250,1250 435.8,2819.2 388,2793.7",className:"jsx-9ffc5503e57304f8 st212"}),(0,g.jsx)("polygon",{points:"1250,1250 397.6,2798.8 350.3,2772.1",className:"jsx-9ffc5503e57304f8 st213"}),(0,g.jsx)("polygon",{points:"1250,1250 359.8,2777.4 313.3,2749.5",className:"jsx-9ffc5503e57304f8 st214"}),(0,g.jsx)("polygon",{points:"1250,1250 322.6,2755.1 276.7,2726.1",className:"jsx-9ffc5503e57304f8 st215"}),(0,g.jsx)("polygon",{points:"1250,1250 285.9,2731.9 240.8,2701.7",className:"jsx-9ffc5503e57304f8 st216"}),(0,g.jsx)("polygon",{points:"1250,1250 249.8,2707.8 205.5,2676.6",className:"jsx-9ffc5503e57304f8 st217"}),(0,g.jsx)("polygon",{points:"1250,1250 214.4,2682.8 170.8,2650.5",className:"jsx-9ffc5503e57304f8 st218"}),(0,g.jsx)("polygon",{points:"1250,1250 179.5,2657 136.7,2623.6",className:"jsx-9ffc5503e57304f8 st219"}),(0,g.jsx)("polygon",{points:"1250,1250 145.3,2630.3 103.4,2595.9",className:"jsx-9ffc5503e57304f8 st220"}),(0,g.jsx)("polygon",{points:"1250,1250 111.8,2602.7 70.7,2567.3",className:"jsx-9ffc5503e57304f8 st221"}),(0,g.jsx)("polygon",{points:"1250,1250 78.9,2574.4 38.7,2538",className:"jsx-9ffc5503e57304f8 st222"}),(0,g.jsx)("polygon",{points:"1250,1250 46.8,2545.3 7.5,2507.9",className:"jsx-9ffc5503e57304f8 st223"}),(0,g.jsx)("polygon",{points:"1250,1250 15.4,2515.3 -23,2477",className:"jsx-9ffc5503e57304f8 st224"}),(0,g.jsx)("polygon",{points:"1250,1250 -15.4,2484.6 -52.7,2445.4",className:"jsx-9ffc5503e57304f8 st225"}),(0,g.jsx)("polygon",{points:"1250,1250 -45.3,2453.2 -81.7,2413",className:"jsx-9ffc5503e57304f8 st226"}),(0,g.jsx)("polygon",{points:"1250,1250 -74.4,2421.1 -109.8,2380",className:"jsx-9ffc5503e57304f8 st227"}),(0,g.jsx)("polygon",{points:"1250,1250 -102.7,2388.2 -137.1,2346.3",className:"jsx-9ffc5503e57304f8 st228"}),(0,g.jsx)("polygon",{points:"1250,1250 -130.3,2354.7 -163.6,2311.9",className:"jsx-9ffc5503e57304f8 st229"}),(0,g.jsx)("polygon",{points:"1250,1250 -157,2320.5 -189.3,2276.9",className:"jsx-9ffc5503e57304f8 st230"}),(0,g.jsx)("polygon",{points:"1250,1250 -182.8,2285.6 -214,2241.3",className:"jsx-9ffc5503e57304f8 st231"}),(0,g.jsx)("polygon",{points:"1250,1250 -207.8,2250.2 -237.9,2205",className:"jsx-9ffc5503e57304f8 st232"}),(0,g.jsx)("polygon",{points:"1250,1250 -231.9,2214.1 -260.9,2168.2",className:"jsx-9ffc5503e57304f8 st233"}),(0,g.jsx)("polygon",{points:"1250,1250 -255.1,2177.4 -283,2130.9",className:"jsx-9ffc5503e57304f8 st234"}),(0,g.jsx)("polygon",{points:"1250,1250 -277.4,2140.2 -304.1,2093",className:"jsx-9ffc5503e57304f8 st235"}),(0,g.jsx)("polygon",{points:"1250,1250 -298.8,2102.4 -324.4,2054.6",className:"jsx-9ffc5503e57304f8 st236"}),(0,g.jsx)("polygon",{points:"1250,1250 -319.3,2064.2 -343.6,2015.7",className:"jsx-9ffc5503e57304f8 st237"}),(0,g.jsx)("polygon",{points:"1250,1250 -338.8,2025.4 -361.9,1976.4",className:"jsx-9ffc5503e57304f8 st238"}),(0,g.jsx)("polygon",{points:"1250,1250 -357.3,1986.2 -379.3,1936.6",className:"jsx-9ffc5503e57304f8 st239"}),(0,g.jsx)("polygon",{points:"1250,1250 -374.9,1946.5 -395.7,1896.4",className:"jsx-9ffc5503e57304f8 st240"}),(0,g.jsx)("polygon",{points:"1250,1250 -391.5,1906.4 -411,1855.8",className:"jsx-9ffc5503e57304f8 st241"}),(0,g.jsx)("polygon",{points:"1250,1250 -407.1,1866 -425.4,1814.9",className:"jsx-9ffc5503e57304f8 st242"}),(0,g.jsx)("polygon",{points:"1250,1250 -421.8,1825.1 -438.7,1773.6",className:"jsx-9ffc5503e57304f8 st243"}),(0,g.jsx)("polygon",{points:"1250,1250 -435.4,1783.9 -451.1,1732",className:"jsx-9ffc5503e57304f8 st244"}),(0,g.jsx)("polygon",{points:"1250,1250 -448,1742.4 -462.4,1690.1",className:"jsx-9ffc5503e57304f8 st245"}),(0,g.jsx)("polygon",{points:"1250,1250 -459.5,1700.6 -472.7,1647.9",className:"jsx-9ffc5503e57304f8 st246"}),(0,g.jsx)("polygon",{points:"1250,1250 -470.1,1658.5 -481.9,1605.6",className:"jsx-9ffc5503e57304f8 st247"}),(0,g.jsx)("polygon",{points:"1250,1250 -479.6,1616.1 -490.1,1562.9",className:"jsx-9ffc5503e57304f8 st248"}),(0,g.jsx)("polygon",{points:"1250,1250 -488,1573.6 -497.3,1520.2",className:"jsx-9ffc5503e57304f8 st249"}),(0,g.jsx)("polygon",{points:"1250,1250 -495.4,1530.8 -503.4,1477.2",className:"jsx-9ffc5503e57304f8 st250"}),(0,g.jsx)("polygon",{points:"1250,1250 -501.8,1487.9 -508.4,1434.1",className:"jsx-9ffc5503e57304f8 st251"}),(0,g.jsx)("polygon",{points:"1250,1250 -507.1,1444.8 -512.4,1390.9",className:"jsx-9ffc5503e57304f8 st252"}),(0,g.jsx)("polygon",{points:"1250,1250 -511.4,1401.7 -515.4,1347.6",className:"jsx-9ffc5503e57304f8 st253"}),(0,g.jsx)("polygon",{points:"1250,1250 -514.6,1358.4 -517.2,1304.2",className:"jsx-9ffc5503e57304f8 st254"}),(0,g.jsx)("polygon",{points:"1250,1250 -516.7,1315.1 -518,1260.8",className:"jsx-9ffc5503e57304f8 st255"}),(0,g.jsx)("polygon",{points:"1250,1250 -517.8,1271.7 -517.8,1228.3",className:"jsx-9ffc5503e57304f8 st256"})]}),(0,g.jsx)(b(),{id:"9ffc5503e57304f8",children:".st0.jsx-9ffc5503e57304f8{clip-path:url(#SVGID_00000137130877621503601290000017679510272143242652_)}.st1.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#FEFEFF}.st2.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#FDFEFF}.st3.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#FCFDFF}.st4.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#FBFCFF}.st5.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#FAFCFF}.st6.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#F9FBFF}.st7.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#F8FAFF}.st8.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#F7FAFF}.st9.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#F6F9FF}.st10.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#F5F8FF}.st11.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#F4F8FF}.st12.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#F3F7FF}.st13.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#F2F6FF}.st14.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#F1F6FF}.st15.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#F0F5FF}.st16.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#EFF4FF}.st17.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#EEF3FF}.st18.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#EDF3FF}.st19.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#ECF2FF}.st20.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#EBF1FF}.st21.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#EAF1FF}.st22.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#E9F0FF}.st23.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#E8EFFF}.st24.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#E7EFFF}.st25.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#E6EEFF}.st26.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#E5EDFF}.st27.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#E4EDFF}.st28.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#E3ECFF}.st29.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#E2EBFF}.st30.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#E1EBFF}.st31.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#E0EAFF}.st32.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#DFE9FF}.st33.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#DEE9FF}.st34.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#DDE8FF}.st35.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#DCE7FF}.st36.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#DBE7FF}.st37.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#DAE6FF}.st38.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#D9E5FF}.st39.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#D8E5FF}.st40.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#D7E4FF}.st41.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#D6E3FF}.st42.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#D5E3FF}.st43.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#D4E2FF}.st44.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#D3E1FF}.st45.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#D2E0FF}.st46.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#D1E0FF}.st47.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#D0DFFF}.st48.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#CFDEFF}.st49.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#CEDEFF}.st50.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#CDDDFF}.st51.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#CCDCFF}.st52.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#CBDCFF}.st53.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#CADBFF}.st54.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#C9DAFF}.st55.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#C8DAFF}.st56.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#C7D9FF}.st57.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#C6D8FF}.st58.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#C5D8FF}.st59.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#C4D7FF}.st60.jsx-9ffc550
13e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#C3D6FF}.st61.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#C2D6FF}.st62.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#C1D5FF}.st63.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#C0D4FF}.st64.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#BFD4FF}.st65.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#BED3FF}.st66.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#BDD2FF}.st67.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#BCD2FF}.st68.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#BBD1FF}.st69.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#BAD0FF}.st70.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#B9D0FF}.st71.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#B8CFFF}.st72.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#B7CEFF}.st73.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#B6CDFF}.st74.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#B5CDFF}.st75.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#B4CCFF}.st76.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#B3CBFF}.st77.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#B2CBFF}.st78.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#B1CAFF}.st79.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#B0C9FF}.st80.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#AFC9FF}.st81.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#AEC8FF}.st82.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#ADC7FF}.st83.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#ACC7FF}.st84.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#ABC6FF}.st85.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#AAC5FF}.st86.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#A9C5FF}.st87.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#A8C4FF}.st88.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#A7C3FF}.st89.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#A6C3FF}.st90.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#A5C2FF}.st91.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#A4C1FF}.st92.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#A3C1FF}.st93.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#A2C0FF}.st94.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#A1BFFF}.st95.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#A0BFFF}.st96.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#9FBEFF}.st97.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#9EBDFF}.st98.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#9DBDFF}.st99.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#9CBCFF}.st100.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#9BBBFF}.st101.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#9ABAFF}.st102.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#99BAFF}.st103.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#98B9FF}.st104.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#97B8FF}.st105.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#96B8FF}.st106.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#95B7FF}.st107.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#94B6FF}.st108.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#93B6FF}.st109.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#92B5FF}.st110.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#91B4FF}.st111.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#90B4FF}.st112.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#8FB3FF}.st113.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#8EB2FF}.st114.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#8DB2FF}.st115.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#8CB1FF}.st116.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#8BB0FF}.st117.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#8AB0FF}.st118.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#89AFFF}.st119.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#88AEFF}.st120.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#87AEFF}.st121.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#86ADFF}.st122.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#85ACFF}.st123.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#84ACFF}.st124.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#83ABFF}.st125.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#82AAFF}.st126.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#81AAFF}.st127.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#80A9FF}.st128.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#7FA8FF}.st129.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#7EA7FF}.st130.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#7DA7FF}.st131.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#7CA6FF}.st132.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#7BA5FF}.st133.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#7AA5FF}.st134.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#79A4FF}.st135.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#78A3FF}.st136.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#77A3FF}.st137.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#76A2FF}.st138.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#75A1FF}.st139.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#74A1FF}.st140.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#73A0FF}.st141.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#729FFF}.st142.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#719FFF}.st143.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#709EFF}.st144.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#6F9DFF}.st145.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#6E9DFF}.st146.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#6D9CFF}.st147.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#6C9BFF}.st148.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#6B9BFF}.st149.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#6A9AFF}.st150.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#6999FF}.st151.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#6899FF}.st152.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#6798FF}.st153.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#6697FF}.st154.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#6597FF}.st155.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#6496FF}.st156.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#6395FF}.st157.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#6294FF}.st158.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#6194FF}.st159.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#6093FF}.st160.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#5F92FF}.st161.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#5E92FF}.st162.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#5D91FF}.st163.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#5C90FF}.st164.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#5B90FF}.st165.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#5A8FFF}.st166.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#598EFF}.st167.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#588EFF}.st168.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#578DFF}.st169.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#568CFF}.st170.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#558CFF}.st171.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#548BFF}.st172.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#538AFF}.st173.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#528AFF}.st174.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#5189FF}.st175.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#5088FF}.st176.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#4F88FF}.st177.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#4E87FF}.st178.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#4D86FF}.st179.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#4C86FF}.st180.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#4B85FF}.st181.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#4A84FF}.st182.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#4984FF}.st183.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#4883FF}.st184.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#4782FF}.st185.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#4681FF}.st186.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#4581FF}.st187.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#4480FF}.st188.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#437FFF}.st189.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#427FFF}.st190.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#417EFF}.st191.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#407DFF}.st192.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#3F7DFF}.st193.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#3E7CFF}.st194.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#3D7BFF}.st195.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#3C7BFF}.st196.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#3B7AFF}.st197.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#3A79FF}.st198.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#3979FF}.st199.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#3878FF}.st200.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#3777FF}.st201.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#3677FF}.st202.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#3576FF}.st203.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#3475FF}.st204.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#3375FF}.st205.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#3274FF}.st206.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#3173FF}.st207.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#3073FF}.st208.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#2F72FF}.st209.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#2E71FF}.st210.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#2D71FF}.st211.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#2C70FF}
1.st212.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#2B6FFF}.st213.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#2A6EFF}.st214.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#296EFF}.st215.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#286DFF}.st216.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#276CFF}.st217.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#266CFF}.st218.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#256BFF}.st219.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#246AFF}.st220.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#236AFF}.st221.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#2269FF}.st222.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#2168FF}.st223.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#2068FF}.st224.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#1F67FF}.st225.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#1E66FF}.st226.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#1D66FF}.st227.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#1C65FF}.st228.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#1B64FF}.st229.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#1A64FF}.st230.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#1963FF}.st231.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#1862FF}.st232.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#1762FF}.st233.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#1661FF}.st234.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#1560FF}.st235.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#1460FF}.st236.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#135FFF}.st237.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#125EFF}.st238.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#115EFF}.st239.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#105DFF}.st240.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#0F5CFF}.st241.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#0E5BFF}.st242.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#0D5BFF}.st243.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#0C5AFF}.st244.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#0B59FF}.st245.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#0A59FF}.st246.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#0958FF}.st247.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#0857FF}.st248.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#0757FF}.st249.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#0656FF}.st250.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#0555FF}.st251.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#0455FF}.st252.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#0354FF}.st253.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#0253FF}.st254.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#0153FF}.st255.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#0052FF}.st256.jsx-9ffc5503e57304f8{fill-rule:evenodd;clip-rule:evenodd;fill:#FFF}"})]});function w(e){return(0,g.jsxs)("svg",{version:"1.1",id:"a",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 479.3 481.2",xmlSpace:"preserve",...e,children:[(0,g.jsx)("path",{d:"M371.2,161h-42.4c-4.9,0-9.6-2.1-12.9-5.8l-17.2-19.4c-2.6-2.9-6.2-4.6-10.1-4.6s-7.5,1.7-10.1,4.6l-14.8,16.7  c-4.8,5.4-11.8,8.6-19,8.6H12.6C6,179.8,1.7,199.7,0,220.4h219.1c3.9,0,7.5-1.6,10.2-4.4l20.4-21.3c2.5-2.7,6.1-4.2,9.7-4.2h0.8  c3.9,0,7.5,1.7,10.1,4.6l17.2,19.4c3.3,3.7,8,5.8,12.9,5.8h178.8c-1.7-20.6-6-40.6-12.6-59.4L371.2,161L371.2,161z",fill:"
1currentColor"}),(0,g.jsx)("path",{d:"M132.6,345.2c3.9,0,7.5-1.6,10.2-4.4l20.4-21.3c2.6-2.7,6.1-4.2,9.8-4.2h0.8c3.9,0,7.6,1.7,10.1,4.5l17.2,19.4  c3.3,3.7,8,5.8,12.9,5.8h242.4c9.1-18.8,15.7-38.9,19.7-60H243.4c-4.9,0-9.6-2.1-12.9-5.8L213.3,260c-2.6-2.9-6.2-4.5-10.1-4.5  s-7.6,1.7-10.1,4.5l-14.8,16.7c-4.8,5.5-11.8,8.6-19.1,8.6H3.3c4,21.1,10.6,41.2,19.7,60L132.6,345.2L132.6,345.2z",fill:"currentColor"}),(0,g.jsx)("path",{d:"M304.5,96.1c3.9,0,7.5-1.6,10.2-4.4l20.4-21.3c2.5-2.7,6.1-4.2,9.8-4.2h0.8c3.9,0,7.5,1.7,10.1,4.6L373,90.3  c3.3,3.7,8,5.8,12.9,5.8H432C388.1,37.7,318.3,0,239.7,0S91.2,37.7,47.3,96.1H304.5z",fill:"currentColor"}),(0,g.jsx)("path",{d:"M212,404.7h-63c-4.9,0-9.6-2.1-12.9-5.8l-17.2-19.4c-2.6-2.9-6.2-4.5-10.1-4.5s-7.6,1.7-10.1,4.5l-14.8,16.7  c-4.8,5.5-11.8,8.6-19.1,8.6h-1c43.9,47,106.4,76.5,175.9,76.5s131.9-29.5,175.9-76.5L212,404.7L212,404.7z",fill:"currentColor"})]})}var F=t(4746);let C=d(),S=a(),k=new Set(["ethereum","base","arbitrum","optimism","polygon","bnb","avalanche","gnosis","linea","scroll","zksync","mantle","blast","fantom","celo"]),A=[{id:"ethereumErc4337",name:"Ethereum",symbol:"ETH",description:"Ethereum Smart Account",type:"evm",chainId:1,isTestnet:!1,category:"layer1",visible:!0,icon:a(),priority:1,color:"#627EEA",capabilities:{walletConnect:!0,send:!0,receive:!0,copy:!0,balanceFetch:!0,transactionHistory:!0,nativeToken:!0,tokenTransfers:!0,lightningNodes:!0},features:{showInSelector:!0,showInWalletList:!0,enabledInProd:!0,enabledInDev:!0,advancedOnly:!1},group:"evm-smart-account",isSmartAccount:!0,eoaVariant:"ethereum"},{id:"baseErc4337",name:"Base",symbol:"ETH",description:"Base Smart Account",type:"evm",chainId:8453,isTestnet:!1,category:"layer2",visible:!0,icon:N,priority:2,color:"#0052FF",capabilities:{walletConnect:!0,send:!0,receive:!0,copy:!0,balanceFetch:!0,transactionHistory:!0,nativeToken:!0,tokenTransfers:!0,lightningNodes:!0},features:{showInSelector:!0,showInWalletList:!0,enabledInProd:!0,enabledInDev:!0,advancedOnly:!1},group:"evm-smart-account",parentChain:"ethereum",isSmartAccount:!0,eoaVariant:"base"},{id:"arbitrumErc4337",name:"Arbitrum",symbol:"ETH",description:"Arbitrum Smart Account",type:"evm",chainId:42161,isTestnet:!1,category:"layer2",visible:!0,icon:y(),priority:6,color:"#28A0F0",capabilities:{walletConnect:!0,send:!0,receive:!0,copy:!0,balanceFetch:!0,transactionHistory:!0,nativeToken:!0,tokenTransfers:!0,lightningNodes:!0},features:{showInSelector:!0,showInWalletList:!0,enabledInProd:!0,enabledInDev:!0,advancedOnly:!1},group:"evm-smart-account",parentChain:"ethereum",isSmartAccount:!0,eoaVariant:"arbitrum"},{id:"polygonErc4337",name:"Polygon",symbol:"MATIC",description:"Polygon Smart Account",type:"evm",chainId:137,isTestnet:!1,category:"sidechain",visible:!0,icon:u(),priority:4,color:"#8247E5",capabilities:{walletConnect:!0,send:!0,receive:!0,copy:!0,balanceFetch:!0,transactionHistory:!0,nativeToken:!0,tokenTransfers:!0,lightningNodes:!0},features:{showInSelector:!0,showInWalletList:!0,enabledInProd:!0,enabledInDev:!0,advancedOnly:!1},group:"evm-smart-account",isSmartAccount:!0,eoaVariant:"polygon"},{id:"avalancheErc4337",name:"Avalanche",symbol:"AVAX",description:"Avalanche Smart Account",type:"evm",chainId:43114,isTestnet:!1,category:"layer1",visible:!0,icon:x(),priority:5,color:"#E84142",capabilities:{walletConnect:!0,send:!0,receive:!0,copy:!0,balanceFetch:!0,transactionHistory:!0,nativeToken:!0,tokenTransfers:!0,lightningNodes:!1},features:{showInSelector:!0,showInWalletList:!0,enabledInProd:!0,enabledInDev:!0,advancedOnly:!1},group:"evm-smart-account",isSmartAccount:!0,eoaVariant:"avalanche"},{id:"bitcoin",name:"Bitcoin",symbol:"BTC",description:"Bitcoin Mainnet",type:"bitcoin",isTestnet:!1,category:"layer1",visible:!0,icon:i(),priority:21,color:"#F7931A",capabilities:{walletConnect:!1,send:!0,receive:!0,copy:!0,balanceFetch:!0,transactionHistory:!0,nativeToken:!0,tokenTransfers:!1,lightningNodes:!1},features:{showInSelector:!0,showInWalletList:!0,enabledInProd:!0,enabledInDev:!0,advancedOnly:!1},group:"bitcoin"},{id:"polkadot",name:"Polkadot",symbol:"DOT",description:"Polkadot Relay Chain",type:"substrate",isTestnet:!1,category:"layer1",visible:!0,icon:d(),priority:3,color:"#E6007A",capabilities:{walletConnect:!0,send:!0,receive:!0,copy:!0,balanceFetch:!1,transactionHistory:!0,nativeToken:!0,tokenTransfers:!0,lightningNodes:!1},features:{showInSelector:!0,showInWalletList:!1,enabledInProd:!0,enabledInDev:!0,advancedOnly:!1},group:"substrate-mainnet"},{id:"solana",name:"Solana",symbol:"SOL",description:"Solana Mainnet",type:"solana",isTestnet:!1,category:"layer1",visible:!0,icon:r(),priority:22,color:"#14F195",capabilities:{walletConnect:!1,send:!0,receive:!0,copy:!0,balanceFetch:!0,transactionHistory:!0,nativeToken:!0,tokenTransfers:!0,lightningNodes:!1},features:{showInSelector:!0,showInWalletList:!0,enabledInProd:!0,enabledInDev:!0,advancedOnly:!1},group:"solana"},{id:"tron",name:"Tron",symbol:"TRX",description:"Tron Mainnet",type:"tron",isTestnet:!1,category:"layer1",visible:!0,icon:h(),priority:23,color:"#FF0013",capabilities:{walletConnect:!1,send:!0,receive:!0,copy:!0,balanceFetch:!0,transactionHistory:!0,nativeToken:!0,tokenTransfers:!0,lightningNodes:!1},features:{showInSelector:!0,showInWalletList:!0,enabledInProd:!0,enabledInDev:!0,advancedOnly:!1},group:"tron"},{id:"aptos",name:"Aptos",symbol:"APT",description:"Aptos Mainnet",type:"aptos",isTestnet:!1,category:"layer1",visible:!0,icon:w,priority:24,color:"#00D4FF",capabilities:{walletConnect:!1,send:!0,receive:!0,copy:!0,balanceFetch:!1,transactionHistory:!1,nativeToken:!0,tokenTransfers:!1,lightningNodes:!1},features:{showInSelector:!0,showInWalletList:!1,enabledInProd:!0,enabledInDev:!0,advancedOnly:!1},group:"aptos"}
1,{id:"aptosTestnet",name:"Aptos Testnet",symbol:"APT",description:"Aptos Testnet",type:"aptos",isTestnet:!0,category:"layer1",visible:!0,icon:w,priority:205,color:"#00D4FF",capabilities:{walletConnect:!1,send:!0,receive:!0,copy:!0,balanceFetch:!1,transactionHistory:!1,nativeToken:!0,tokenTransfers:!1,lightningNodes:!1},features:{showInSelector:!0,showInWalletList:!0,enabledInProd:!1,enabledInDev:!0,advancedOnly:!1},group:"aptos"},{id:"hydrationSubstrate",name:"Hydration",symbol:"HDX",description:"Hydration Parachain",type:"substrate",isTestnet:!1,category:"parachain",visible:!1,icon:C,priority:50,color:"#FF0084",capabilities:{walletConnect:!1,send:!0,receive:!0,copy:!0,balanceFetch:!1,transactionHistory:!1,nativeToken:!0,tokenTransfers:!0,lightningNodes:!1},features:{showInSelector:!1,showInWalletList:!0,enabledInProd:!1,enabledInDev:!0,advancedOnly:!0},group:"substrate-mainnet",parentChain:"polkadot"},{id:"bifrostSubstrate",name:"Bifrost",symbol:"BNC",description:"Bifrost Parachain",type:"substrate",isTestnet:!1,category:"parachain",visible:!1,icon:C,priority:51,color:"#5A25F0",capabilities:{walletConnect:!1,send:!0,receive:!0,copy:!0,balanceFetch:!1,transactionHistory:!1,nativeToken:!0,tokenTransfers:!0,lightningNodes:!1},features:{showInSelector:!1,showInWalletList:!0,enabledInProd:!1,enabledInDev:!0,advancedOnly:!0},group:"substrate-mainnet",parentChain:"polkadot"},{id:"uniqueSubstrate",name:"Unique Network",symbol:"UNQ",description:"Unique Network Parachain",type:"substrate",isTestnet:!1,category:"parachain",visible:!1,icon:C,priority:52,color:"#FF6B00",capabilities:{walletConnect:!1,send:!0,receive:!0,copy:!0,balanceFetch:!1,transactionHistory:!1,nativeToken:!0,tokenTransfers:!0,lightningNodes:!1},features:{showInSelector:!1,showInWalletList:!0,enabledInProd:!1,enabledInDev:!0,advancedOnly:!0},group:"substrate-mainnet",parentChain:"polkadot"},{id:"ethereumEoa",name:"Ethereum",symbol:"ETH",description:"Ethereum EOA Wallet",type:"evm",chainId:1,isTestnet:!1,category:"layer1",visible:!0,icon:a(),priority:11,color:"#627EEA",capabilities:{walletConnect:!0,send:!0,receive:!0,copy:!0,balanceFetch:!0,transactionHistory:!0,nativeToken:!0,tokenTransfers:!0,lightningNodes:!1},features:{showInSelector:!0,showInWalletList:!0,enabledInProd:!0,enabledInDev:!0,advancedOnly:!1},group:"evm-standard",isSmartAccount:!1,smartAccountVariant:"ethereumErc4337"},{id:"baseEoa",name:"Base",symbol:"ETH",description:"Base EOA Wallet",type:"evm",chainId:8453,isTestnet:!1,category:"layer2",visible:!0,icon:N,priority:12,color:"#0052FF",capabilities:{walletConnect:!0,send:!0,receive:!0,copy:!0,balanceFetch:!0,transactionHistory:!0,nativeToken:!0,tokenTransfers:!0,lightningNodes:!1},features:{showInSelector:!0,showInWalletList:!0,enabledInProd:!0,enabledInDev:!0,advancedOnly:!1},group:"evm-standard",parentChain:"ethereum",isSmartAccount:!1,smartAccountVariant:"baseErc4337"},{id:"arbitrumEoa",name:"Arbitrum",symbol:"ETH",description:"Arbitrum EOA Wallet",type:"evm",chainId:42161,isTestnet:!1,category:"layer2",visible:!0,icon:y(),priority:13,color:"#28A0F0",capabilities:{walletConnect:!0,send:!0,receive:!0,copy:!0,balanceFetch:!0,transactionHistory:!0,nativeToken:!0,tokenTransfers:!0,lightningNodes:!1},features:{showInSelector:!0,showInWalletList:!0,enabledInProd:!0,enabledInDev:!0,advancedOnly:!1},group:"evm-standard",parentChain:"ethereum",isSmartAccount:!1,smartAccountVariant:"arbitrumErc4337"},{id:"polygonEoa",name:"Polygon",symbol:"MATIC",description:"Polygon EOA Wallet",type:"evm",chainId:137,isTestnet:!1,category:"sidechain",visible:!0,icon:u(),priority:14,color:"#8247E5",capabilities:{walletConnect:!0,send:!0,receive:!0,copy:!0,balanceFetch:!0,transactionHistory:!0,nativeToken:!0,tokenTransfers:!0,lightningNodes:!1},features:{showInSelector:!0,showInWalletList:!0,enabledInProd:!0,enabledInDev:!0,advancedOnly:!1},group:"evm-standard",isSmartAccount:!1,smartAccountVariant:"polygonErc4337"},{id:"avalancheEoa",name:"Avalanche",symbol:"AVAX",description:"Avalanche EOA Wallet",type:"evm",chainId:43114,isTestnet:!1,category:"layer1",visible:!0,icon:x(),priority:15,color:"#E84142",capabilities:{walletConnect:!0,send:!0,receive:!0,copy:!0,balanceFetch:!0,transactionHistory:!0,nativeToken:!0,tokenTransfers:!0,lightningNodes:!1},features:{showInSelector:!0,showInWalletList:!0,enabledInProd:!0,enabledInDev:!0,advancedOnly:!1},group:"evm-standard",isSmartAccount:!1,smartAccountVariant:"avalancheErc4337"}
1,{id:"ethereum",name:"Ethereum",symbol:"ETH",description:"Ethereum Smart Wallet",type:"evm",chainId:1,isTestnet:!1,category:"layer1",visible:!0,icon:a(),priority:16,color:"#627EEA",capabilities:{walletConnect:!0,send:!0,receive:!0,copy:!0,balanceFetch:!0,transactionHistory:!0,nativeToken:!0,tokenTransfers:!0,lightningNodes:!1},features:{showInSelector:!1,showInWalletList:!0,enabledInProd:!0,enabledInDev:!0,advancedOnly:!1},group:"evm-standard"},{id:"base",name:"Base",symbol:"ETH",description:"Base Smart Wallet",type:"evm",chainId:8453,isTestnet:!1,category:"layer2",visible:!0,icon:N,priority:17,color:"#0052FF",capabilities:{walletConnect:!0,send:!0,receive:!0,copy:!0,balanceFetch:!0,transactionHistory:!0,nativeToken:!0,tokenTransfers:!0,lightningNodes:!1},features:{showInSelector:!1,showInWalletList:!0,enabledInProd:!0,enabledInDev:!0,advancedOnly:!1},group:"evm-standard",parentChain:"ethereum"},{id:"arbitrum",name:"Arbitrum",symbol:"ETH",description:"Arbitrum Smart Wallet",type:"evm",chainId:42161,isTestnet:!1,category:"layer2",visible:!0,icon:y(),priority:18,color:"#28A0F0",capabilities:{walletConnect:!0,send:!0,receive:!0,copy:!0,balanceFetch:!0,transactionHistory:!0,nativeToken:!0,tokenTransfers:!0,lightningNodes:!1},features:{showInSelector:!1,showInWalletList:!0,enabledInProd:!0,enabledInDev:!0,advancedOnly:!1},group:"evm-standard",parentChain:"ethereum"},{id:"optimism",name:"Optimism",symbol:"ETH",description:"Optimism Smart Wallet",type:"evm",chainId:10,isTestnet:!1,category:"layer2",visible:!0,icon:S,priority:19,color:"#FF0420",capabilities:{walletConnect:!0,send:!0,receive:!0,copy:!0,balanceFetch:!0,transactionHistory:!0,nativeToken:!0,tokenTransfers:!0,lightningNodes:!1},features:{showInSelector:!1,showInWalletList:!0,enabledInProd:!0,enabledInDev:!0,advancedOnly:!1},group:"evm-standard",parentChain:"ethereum"},{id:"polygon",name:"Polygon",symbol:"MATIC",description:"Polygon Smart Wallet",type:"evm",chainId:137,isTestnet:!1,category:"sidechain",visible:!0,icon:u(),priority:20,color:"#8247E5",capabilities:{walletConnect:!0,send:!0,receive:!0,copy:!0,balanceFetch:!0,transactionHistory:!0,nativeToken:!0,tokenTransfers:!0,lightningNodes:!1},features:{showInSelector:!1,showInWalletList:!0,enabledInProd:!0,enabledInDev:!0,advancedOnly:!1},group:"evm-standard"},{id:"bnb",name:"BNB Chain",symbol:"BNB",description:"BNB Smart Wallet",type:"evm",chainId:56,isTestnet:!1,category:"layer1",visible:!0,icon:S,priority:21,color:"#F3BA2F",capabilities:{walletConnect:!0,send:!0,receive:!0,copy:!0,balanceFetch:!0,transactionHistory:!0,nativeToken:!0,tokenTransfers:!0,lightningNodes:!1},features:{showInSelector:!1,showInWalletList:!0,enabledInProd:!0,enabledInDev:!0,advancedOnly:!1},group:"evm-standard"},{id:"avalanche",name:"Avalanche",symbol:"AVAX",description:"Avalanche Smart Wallet",type:"evm",chainId:43114,isTestnet:!1,category:"layer1",visible:!0,icon:x(),priority:22,color:"#E84142",capabilities:{walletConnect:!0,send:!0,receive:!0,copy:!0,balanceFetch:!0,transactionHistory:!0,nativeToken:!0,tokenTransfers:!0,lightningNodes:!1},features:{showInSelector:!1,showInWalletList:!0,enabledInProd:!0,enabledInDev:!0,advancedOnly:!1},group:"evm-standard"},{id:"gnosis",name:"Gnosis",symbol:"XDAI",description:"Gnosis Smart Wallet",type:"evm",chainId:100,isTestnet:!1,category:"sidechain",visible:!0,icon:S,priority:23,color:"#00A3FF",capabilities:{walletConnect:!0,send:!0,receive:!0,copy:!0,balanceFetch:!0,transactionHistory:!0,nativeToken:!0,tokenTransfers:!0,lightningNodes:!1},features:{showInSelector:!1,showInWalletList:!0,enabledInProd:!0,enabledInDev:!0,advancedOnly:!1},group:"evm-standard"},{id:"linea",name:"Linea",symbol:"ETH",description:"Linea Smart Wallet",type:"evm",chainId:59144,isTestnet:!1,category:"layer2",visible:!0,icon:S,priority:24,color:"#5F5FFF",capabilities:{walletConnect:!0,send:!0,receive:!0,copy:!0,balanceFetch:!0,transactionHistory:!0,nativeToken:!0,tokenTransfers:!0,lightningNodes:!1},features:{showInSelector:!1,showInWalletList:!0,enabledInProd:!0,enabledInDev:!0,advancedOnly:!1},group:"evm-standard"}
1,{id:"scroll",name:"Scroll",symbol:"ETH",description:"Scroll Smart Wallet",type:"evm",chainId:534352,isTestnet:!1,category:"layer2",visible:!0,icon:S,priority:25,color:"#FFE7A3",capabilities:{walletConnect:!0,send:!0,receive:!0,copy:!0,balanceFetch:!0,transactionHistory:!0,nativeToken:!0,tokenTransfers:!0,lightningNodes:!1},features:{showInSelector:!1,showInWalletList:!0,enabledInProd:!0,enabledInDev:!0,advancedOnly:!1},group:"evm-standard"},{id:"zksync",name:"zkSync",symbol:"ETH",description:"zkSync Smart Wallet",type:"evm",chainId:324,isTestnet:!1,category:"layer2",visible:!0,icon:S,priority:26,color:"#8C8DFC",capabilities:{walletConnect:!0,send:!0,receive:!0,copy:!0,balanceFetch:!0,transactionHistory:!0,nativeToken:!0,tokenTransfers:!0,lightningNodes:!1},features:{showInSelector:!1,showInWalletList:!0,enabledInProd:!0,enabledInDev:!0,advancedOnly:!1},group:"evm-standard"},{id:"mantle",name:"Mantle",symbol:"MNT",description:"Mantle Smart Wallet",type:"evm",chainId:5e3,isTestnet:!1,category:"layer2",visible:!0,icon:S,priority:27,color:"#5B5BFF",capabilities:{walletConnect:!0,send:!0,receive:!0,copy:!0,balanceFetch:!0,transactionHistory:!0,nativeToken:!0,tokenTransfers:!0,lightningNodes:!1},features:{showInSelector:!1,showInWalletList:!0,enabledInProd:!0,enabledInDev:!0,advancedOnly:!1},group:"evm-standard"},{id:"blast",name:"Blast",symbol:"ETH",description:"Blast Smart Wallet",type:"evm",chainId:81457,isTestnet:!1,category:"layer2",visible:!0,icon:S,priority:28,color:"#F7FF00",capabilities:{walletConnect:!0,send:!0,receive:!0,copy:!0,balanceFetch:!0,transactionHistory:!0,nativeToken:!0,tokenTransfers:!0,lightningNodes:!1},features:{showInSelector:!1,showInWalletList:!0,enabledInProd:!0,enabledInDev:!0,advancedOnly:!1},group:"evm-standard"},{id:"fantom",name:"Fantom",symbol:"FTM",description:"Fantom Smart Wallet",type:"evm",chainId:250,isTestnet:!1,category:"layer1",visible:!0,icon:S,priority:29,color:"#1969FF",capabilities:{walletConnect:!0,send:!0,receive:!0,copy:!0,balanceFetch:!0,transactionHistory:!0,nativeToken:!0,tokenTransfers:!0,lightningNodes:!1},features:{showInSelector:!1,showInWalletList:!0,enabledInProd:!0,enabledInDev:!0,advancedOnly:!1},group:"evm-standard"}
1,{id:"celo",name:"Celo",symbol:"CELO",description:"Celo Smart Wallet",type:"evm",chainId:42220,isTestnet:!1,category:"layer1",visible:!0,icon:S,priority:30,color:"#35D07F",capabilities:{walletConnect:!0,send:!0,receive:!0,copy:!0,balanceFetch:!0,transactionHistory:!0,nativeToken:!0,tokenTransfers:!0,lightningNodes:!1},features:{showInSelector:!1,showInWalletList:!0,enabledInProd:!0,enabledInDev:!0,advancedOnly:!1},group:"evm-standard"},{id:"moonbeamTestnet",name:"Moonbeam Testnet",symbol:"DEV",description:"Moonbase Alpha Testnet",type:"evm",chainId:1287,isTestnet:!0,category:"parachain",visible:!1,icon:C,priority:200,color:"#53CBC9",capabilities:{walletConnect:!0,send:!0,receive:!0,copy:!0,balanceFetch:!0,transactionHistory:!1,nativeToken:!0,tokenTransfers:!0,lightningNodes:!1},features:{showInSelector:!1,showInWalletList:!0,enabledInProd:!1,enabledInDev:!0,advancedOnly:!0},group:"evm-testnet",parentChain:"moonbeam"},{id:"astarShibuya",name:"Astar Shibuya",symbol:"SBY",description:"Astar Shibuya Testnet",type:"evm",chainId:81,isTestnet:!0,category:"parachain",visible:!1,icon:C,priority:201,color:"#0AE2FF",capabilities:{walletConnect:!0,send:!0,receive:!0,copy:!0,balanceFetch:!0,transactionHistory:!1,nativeToken:!0,tokenTransfers:!0,lightningNodes:!1},features:{showInSelector:!1,showInWalletList:!0,enabledInProd:!1,enabledInDev:!0,advancedOnly:!0},group:"evm-testnet",parentChain:"astar"},{id:"paseoPassetHub",name:"Paseo Asset Hub",symbol:"PAS",description:"Paseo Asset Hub Testnet (EVM)",type:"evm",isTestnet:!0,category:"parachain",visible:!1,icon:C,priority:202,capabilities:{walletConnect:!0,send:!0,receive:!0,copy:!0,balanceFetch:!0,transactionHistory:!1,nativeToken:!0,tokenTransfers:!0,lightningNodes:!1},features:{showInSelector:!1,showInWalletList:!0,enabledInProd:!1,enabledInDev:!0,advancedOnly:!0},group:"evm-testnet",parentChain:"paseo"},{id:"paseo",name:"Paseo",symbol:"PAS",description:"Paseo Testnet (Substrate)",type:"substrate",isTestnet:!0,category:"layer1",visible:!1,icon:C,priority:203,capabilities:{walletConnect:!1,send:!0,receive:!0,copy:!0,balanceFetch:!1,transactionHistory:!1,nativeToken:!0,tokenTransfers:!0,lightningNodes:!1},features:{showInSelector:!1,showInWalletList:!0,enabledInProd:!1,enabledInDev:!0,advancedOnly:!0},group:"substrate-testnet"},{id:"paseoAssethub",name:"Paseo Asset Hub",symbol:"PAS",description:"Paseo Asset Hub (Substrate)",type:"substrate",isTestnet:!0,category:"parachain",visible:!1,icon:C,priority:204,capabilities:{walletConnect:!1,send:!0,receive:!0,copy:!0,balanceFetch:!1,transactionHistory:!1,nativeToken:!0,tokenTransfers:!0,lightningNodes:!1},features:{showInSelector:!1,showInWalletList:!0,enabledInProd:!1,enabledInDev:!0,advancedOnly:!0},group:"substrate-testnet",parentChain:"paseo"}],I="true"===F.env.NEXT_PUBLIC_ENABLE_EIP7702,T=new Set((F.env.NEXT_PUBLIC_EIP7702_CHAIN_IDS||F.env.NEXT_PUBLIC_EIP7702_ENABLED_CHAINS||"").split(",").map(e=>e.trim()).filter(Boolean).map(e=>Number(e)).filter(e=>!Number.isNaN(e))),E={ethereum:1,base:8453,arbitrum:42161,optimism:10,polygon:137,bnb:56,avalanche:43114,sepolia:0xaa36a7};0===T.size&&F.env.NEXT_PUBLIC_EIP7702_CHAINS&&F.env.NEXT_PUBLIC_EIP7702_CHAINS.split(",").map(e=>e.trim()).filter(Boolean).forEach(e=>{let s=E[e];s&&T.add(s)});let D=A.map(e=>{let s=e.smartAccountVariant?A.find(s=>
1s.id===e.smartAccountVariant):void 0,t=!!s&&(e=>!!I&&!!e.chainId&&T.has(e.chainId))(s),l=!e.isSmartAccount&&t,a=e.isSmartAccount&&e.description?e.description.replace("ERC-4337","EIP-7702"):e.description;return{...e,description:a,features:{...e.features,showInSelector:!l&&e.features.showInSelector,showInWalletList:e.features.showInWalletList}}}),B=e=>D.find(s=>s.id===e),L=e=>{let s=[...D];if(!e)return s;if(e.type){let t=Array.isArray(e.type)?e.type:[e.type];s=s.filter(e=>t.includes(e.type))}if(void 0!==e.isTestnet&&(s=s.filter(s=>s.isTestnet===e.isTestnet)),void 0!==e.visible&&(s=s.filter(s=>s.visible===e.visible)),e.group){let t=Array.isArray(e.group)?e.group:[e.group];s=s.filter(e=>t.includes(e.group))}return e.capabilities&&(s=s.filter(s=>Object.entries(e.capabilities).every(e=>{let[t,l]=e;return s.capabilities[t]===l}))),e.features&&(s=s.filter(s=>Object.entries(e.features).every(e=>{let[t,l]=e;return s.features[t]===l}))),e.parentChain&&(s=s.filter(s=>s.parentChain===e.parentChain)),!1===e.includeTestnets&&(s=s.filter(e=>!e.isTestnet)),!1===e.includeAdvanced&&(s=s.filter(e=>!e.features.advancedOnly)),!1===e.includeSmartAccounts&&(s=s.filter(e=>!e.isSmartAccount)),s.sort((e,s)=>{let t=e.features.enabledInProd;return t!==s.features.enabledInProd?t?-1:1:e.priority!==s.priority?e.priority-s.priority:e.name.localeCompare(s.name)}),s},P=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"production",s="development"===e,t=["ethereumErc4337","baseErc4337","arbitrumErc4337"];return D.filter(e=>{if(!e.features.showInSelector)return!1;if(s){if(!e.features.enabledInDev)return!1}else if(!e.features.enabledInProd||e.isTestnet)return!1;return!e.features.advancedOnly&&!!t.includes(e.id)}).sort((e,l)=>{let a=t.indexOf(e.id),n=t.indexOf(l.id);if(-1!==a&&-1!==n)return a-n;let i=s?e.features.enabledInDev:e.features.enabledInProd;return i!==(s?l.features.enabledInDev:l.features.enabledInProd)?i?-1:1:e.priority!==l.priority?e.priority-l.priority:e.name.localeCompare(l.name)})},H=()=>L({isTestnet:!1}),O=e=>L({type:e}),W=e=>L({group:e}),U=()=>L({group:"evm-smart-account",isTestnet:!1}),R=()=>!1},4962:(e,s,t)=>{t.d(s,{Xi:()=>c,av:()=>d,j7:()=>r,tU:()=>o});var l=t(5253),a=t(4257),n=t(586),i=t(5681);let o=n.bL,r=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,l.jsx)(n.B8,{ref:s,className:(0,i.cn)("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",t),...a})});r.displayName=n.B8.displayName;let c=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,l.jsx)(n.l9,{ref:s,className:(0,i.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",t),...a})});c.displayName=n.l9.displayName;let d=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,l.jsx)(n.UC,{ref:s,className:(0,i.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t),...a})});d.displayName=n.UC.displayName},5458:(e,s,t)=>{t.d(s,{$:()=>c,r:()=>r});var l=t(5253),a=t(4257),n=t(1875),i=t(2956),o=t(5681);let r=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",glass:"relative bg-gradient-to-b from-gray-800/40 to-gray-900/60 backdrop-blur-xl text-white border-0 rounded-xl px-6 py-3 font-medium transition-all duration-300 hover:from-gray-700/50 hover:to-gray-800/70 hover:scale-105 before:absolute before:inset-0 before:rounded-xl before:bg-gradient-to-b before:from-white/10 before:to-transparent before:border-t before:border-l before:border-r before:border-white/20 before:border-b-0 before:pointer-events-none"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),c=a.forwardRef((e,s)=>{let{className:t,variant:a,size:i,asChild:c=!1,...d}
1=e,f=c?n.DX:"button";return(0,l.jsx)(f,{className:(0,o.cn)(r({variant:a,size:i,className:t})),ref:s,...d})});c.displayName="Button"},5681:(e,s,t)=>{t.d(s,{cn:()=>n});var l=t(5834),a=t(4851);function n(){for(var e=arguments.length,s=Array(e),t=0;t<e;t++)s[t]=arguments[t];return(0,a.QP)((0,l.$)(s))}},7378:(e,s,t)=>{t.d(s,{p:()=>i});var l=t(5253),a=t(4257),n=t(5681);let i=a.forwardRef((e,s)=>{let{className:t,type:a,...i}=e;return(0,l.jsx)("input",{type:a,className:(0,n.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:s,...i})});i.displayName="Input"},7414:(e,s,t)=>{t.d(s,{m:()=>en});var l=t(5253),a=t(4257),n=t(1760),i=t(1394),o=t(4325),r=t(6555),c=t(931),d=t(143),f=t(1592),u=t(2795);function p(e){let{chain:s,symbol:t,balance:a,decimals:n,balanceHuman:i,valueUsd:o,chainName:r,isHidden:c=!1,onOpenSend:d}=e,f=(0,u.Y)(s,t),p=i||function(e,s){let t=parseFloat(e);if(isNaN(t))return"0";let l=t/Math.pow(10,s);return l<1e-6?"< 0.000001":l<.001?l.toFixed(6):l<1?l.toFixed(4):l.toFixed(2)}(a,n),x=null==o?"$0.00":new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2}).format(o);return(0,l.jsxs)("button",{onClick:()=>null==d?void 0:d(s,t),className:"w-full text-left group flex items-center justify-between p-2 bg-white rounded-xl border border-gray-100 hover:border-gray-200 hover:shadow-sm transition-all duration-200 cursor-pointer",children:[(0,l.jsxs)("div",{className:"flex items-center gap-3",children:[(0,l.jsx)("div",{className:"relative flex items-center justify-center w-8 h-8 bg-gray-50 rounded-full border border-gray-50 group-hover:border-gray-100 transition-colors",children:(0,l.jsx)(f,{className:"w-4 h-4",style:{fill:"currentColor"}})}),(0,l.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,l.jsx)("span",{className:"text-sm font-semibold text-gray-900 group-hover:text-black transition-colors",children:t}),(0,l.jsx)("span",{className:"text-xs font-medium text-gray-500 flex items-center gap-1.5",children:(0,l.jsx)("span",{className:"px-1.5 py-0.5 bg-gray-100 rounded text-[10px] uppercase tracking-wider text-gray-600",children:r})})]})]}),(0,l.jsx)("div",{className:"flex flex-col items-end gap-0.5",children:o?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"text-sm font-bold text-gray-900",children:c?"••••••":x}),(0,l.jsxs)("span",{className:"text-xs font-medium text-gray-500",children:[c?"••••":p," ",(0,l.jsx)("span",{className:"text-gray-400",children:t})]})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"text-sm font-bold text-gray-900",children:c?"••••••":"".concat(p," ").concat(t)}),(0,l.jsx)("span",{className:"text-xs font-medium text-gray-400",children:"No price data"})]})})]})}var x=t(2811),m=t(3814);function h(e){var s;let{onOpenSend:t,selectedChainId:i}=e,[u,h]=(0,a.useState)(!1),{balances:v,loading:y}=(0,f.b)(),g=(0,m.p)(),{groupedBalances:j,totalBalanceUsd:b}=(0,a.useMemo)(()=>(e=>{let s=0,t=new Map;for(let l of e){l.valueUsd&&(s+=l.valueUsd);let e=t.get(l.chain)||[];e.push(l),t.set(l.chain,e)}let l=[];for(let[e,s]of t.entries()){let t=s.sort((e,s)=>e.valueUsd&&s.valueUsd&&e.valueUsd!==s.valueUsd?s.valueUsd-e.valueUsd:e.isNative&&!s.isNative?-1:!e.isNative&&s.isNative?1:e.symbol.localeCompare(s.symbol));l.push({chain:e,balances:t})}return l.sort((e,s)=>e.chain.localeCompare(s.chain)),{groupedBalances:l,totalBalanceUsd:s}})(v),[v]),N=g.getById(i),w=(null==N?void 0:N.name)||"Unknown Chain",F=(null==N?void 0:N.symbol)||"TOKEN",C=null!=(s=({ethereumErc4337:"ethereum",baseErc4337:"base",arbitrumErc4337:"arbitrum",polygonErc4337:"polygon",avalancheErc4337:"avalanche"})[i])?s:i,S=j.find(e=>e.chain===C),k=S?S.balances:[],A=k.length>0?k:[{chain:i,symbol:F,balance:"0",decimals:18,balanceHuman:"0.00",valueUsd:0,isNative:!0,address:null}],I=A.reduce((e,s)=>e+(s.valueUsd||0),0);return 0===v.length?(0,l.jsxs)("div",{className:"bg-white rounded-3xl p-6 border border-gray-100 shadow-sm flex flex-col items-center justify-center py-16",children:[(0,l.jsx)(n.A,{className:"h-8 w-8 animate-spin text-gray-400 mb-4"}),(0,l.jsx)("p",{className:"text-gray-500 font-rubik-normal",children:"Loading balances..."})]}):(0,l.jsxs)("div",{className:"bg-white rounded-3xl p-6 border border-gray-100 shadow-sm",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,l.jsx)("h2",{className:"text-sm text-gray-500 font-rubik-normal",children:"Total Balance"}),(0,l.jsx)("button",{onClick:()=>h(!u),className:"text-gray-400 hover:text-gray-600 transition-colors","aria-label":u?"Show balance":"Hide balance",children:u?(0,l.jsx)(r.A,{className:"h-4 w-4"}):(0,l.jsx)(c.A,{className:"h-4 w-4"})})]}),(0,l.jsx)("p",{className:"text-3xl font-rubik-semibold text-gray-900",children:u?"••••••":new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2}).format(I)})]}),(0,l.jsx)(x.Bc,{children:(0,l.jsxs)(x.m_,{children:[(0,l.jsx)(x.k$,{asChild:!0,children:(0,l.jsxs)("div",{className:"flex items-center gap-1 text-green-600 bg-green-50 px-3 py-1.5 rounded-lg",children:[(0,l.jsx)(d.A,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"text-sm font-rubik-medium",children:"Live"})]})}),(0,l.jsx)(x.ZI,{children:(0,l.jsx)("p",{children:"Balance updates in real-time"})})]})})]}),(0,l.jsx)("div",{className:"space-y-3 mt-4 relative z-10",children:A.map((e,s)=>{var a,n;let i="".concat(e.chain,"-").concat(null!=(n=e.address)?n:"native");return(0,l.jsx)(p,{chain:e.chain,symbol:e.symbol,balance:e.balance,decimals:e.decimals,balanceHuman:e.balanceHuman,valueUsd:e.valueUsd,isNative:e.isNative,chainName:(null==(a=g.getById(e.chain))?void 0:a.name)||w,onOpenSend:t},i)})}),0===k.length&&(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center pb-4 -mt-10 relative z-0",children:[(0,l.jsx)("div",{className:"pointer-events-none transform scale-75 sm:scale-90 -mb-4",children:(0,l.jsx)(o.default,{src:"/empty-mailbox-illustration-with-spiderweb-and-flie-2025-10-20-04-28-09-utc.gif",alt:"No Tokens Available",width:320,height:320,className:"object-contain mix-blend-multiply"})}),(0,l.jsx)("p",{className:"text-gray-500 text-sm font-rubik-normal z-10 -mt-8 relative",children:"No Tokens Available"})]})]})}var v=t(1463),y=t(4435),g=t(9548),j=t(2356),b=t(7947),N=t(6236);function w(){var e;let{transactions:s,loading:t,errors:i}=(0,f.b)(),[r,c]=(0,a.useState)("date"),[d,u]=(0,a.useState)(!1),p=(0,a.useMemo)(()=>s.map(e=>{let s="failed"===e.status?"failed":"pending"===e.status?"pending":"confirmed",t=e.value?parseFloat(String(e.value)):NaN,l=!isNaN(t)&&t>0?"".concat(t.toFixed(6)," ").concat(e.tokenSymbol||""):"",a=e.txHash||"",n=e.timestamp?Number(e.timestamp)*(e.timestamp>1e12?1:1e3):0;return{id:a||Math.random().toString(),type:"unknown",status:s,assetName:e.tokenSymbol||"Unknown Asset",assetSymbol
1:e.tokenSymbol||"",assetIcon:void 0,chain:e.chain||"Unknown Chain",hash:a,addressDisplay:a?"".concat(a.slice(0,6),"...").concat(a.slice(-4)):"Unknown",amount:l,amountValue:"",date:n?new Date(n).toLocaleDateString():"Unknown",timestamp:n}}).sort((e,s)=>s.timestamp-e.timestamp),[s]),x=t.transactions&&0===p.length,m=(0,a.useMemo)(()=>{let e={};return p.forEach(s=>{var t;let l=new Date(s.timestamp),a="";if("date"===r){let e=new Date,s=new Date;s.setDate(s.getDate()-1),a=l.toDateString()===e.toDateString()?"Today":l.toDateString()===s.toDateString()?"Yesterday":l.toLocaleDateString("en-US",{day:"numeric",month:"long",year:"numeric"})}else"month"===r?a=l.toLocaleDateString("en-US",{month:"long",year:"numeric"}):"year"===r&&(a=l.getFullYear().toString());e[a]||(e[a]=[]),null==(t=e[a])||t.push(s)}),e},[p,r]),h=(e,s)=>{let t="polygon"===s.toLowerCase()?"https://polygonscan.com/tx/":"base"===s.toLowerCase()?"https://basescan.org/tx/":"https://etherscan.io/tx/";window.open("".concat(t).concat(e),"_blank")};if(x)return(0,l.jsx)("div",{className:"bg-white rounded-3xl p-6 border border-gray-100 shadow-sm flex justify-center py-12",children:(0,l.jsx)(n.A,{className:"w-8 h-8 text-gray-300 animate-spin"})});let w=Object.keys(m).sort((e,s)=>{if("Today"===e)return -1;if("Today"===s)return 1;if("Yesterday"===e)return -1;if("Yesterday"===s)return 1;let t=new Date(e).getTime(),l=new Date(s).getTime();return isNaN(t)||isNaN(l)?s.localeCompare(e):l-t}),F=[{id:"date",label:"Datewise"},{id:"month",label:"Monthly"},{id:"year",label:"Yearly"}];return(0,l.jsxs)("div",{className:"bg-white rounded-3xl p-3 border border-gray-100 shadow-sm space-y-2 h-[340px] flex flex-col",children:[(0,l.jsx)("div",{className:"flex items-center justify-between",children:(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsxs)("div",{className:"flex items-center gap-3",children:[(0,l.jsx)("button",{onClick:()=>u(!d),className:"p-2 rounded-xl hover:bg-gray-100 transition-colors text-gray-500 hover:text-gray-900 border border-transparent hover:border-gray-200",children:(0,l.jsx)(v.A,{className:"w-5 h-5"})}),(0,l.jsx)("span",{className:"px-3 py-1.5 bg-gray-50 border border-gray-100 rounded-lg text-xs font-semibold text-gray-700 select-none",children:null==(e=F.find(e=>e.id===r))?void 0:e.label})]}),d&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"fixed inset-0 z-10",onClick:()=>u(!1)}),(0,l.jsx)("div",{className:"absolute top-full left-0 mt-2 w-48 bg-white rounded-2xl shadow-[0_8px_30px_rgb(0,0,0,0.12)] border border-gray-100 py-2 z-20 overflow-hidden ring-1 ring-black/5 animate-in fade-in zoom-in-95 duration-100",children:F.map(e=>(0,l.jsxs)("button",{onClick:()=>{c(e.id),u(!1)},className:"w-full text-left px-4 py-2.5 text-sm font-medium transition-all flex items-center justify-between\n                                            ".concat(r===e.id?"bg-gray-50 text-gray-900 font-semibold":"text-gray-600 hover:bg-gray-50 hover:text-gray-900"),children:[e.label,r===e.id&&(0,l.jsx)(y.A,{className:"w-4 h-4 text-gray-900"})]},e.id))})]})]})}),(0,l.jsx)("div",{className:"space-y-2 flex-1 overflow-y-auto overflow-x-hidden pr-1 custom-scrollbar",children:0===p.length?(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center pb-4 -mt-6",children:[(0,l.jsx)("div",{className:"pointer-events-none transform scale-75 sm:scale-90 -mb-4",children:(0,l.jsx)(o.default,{src:"/empty-mailbox-illustration-with-spiderweb-and-flie-2025-10-20-04-28-09-utc.gif",alt:"No Transaction Available",width:320,height:320,className:"object-contain mix-blend-multiply"})}),(0,l.jsx)("p",{className:"text-gray-500 text-sm font-rubik-normal z-10 -mt-8 relative",children:"No Transaction Available"})]}):w.map(e=>{var s;return(0,l.jsxs)("div",{className:"space-y-3",children:[(0,l.jsx)("h3",{className:"text-[10px] font-semibold text-gray-400 uppercase tracking-wider pl-1 pt-0",children:e}),(0,l.jsx)("div",{className:"space-y-1",children:null==(s=m[e])?void 0:s.map(e=>(0,l.jsxs)("div",{className:"group flex items-center justify-between p-2 bg-white rounded-xl border border-gray-100 hover:border-gray-200 hover:shadow-sm transition-all duration-200 cursor-default",children:[(0,l.jsxs)("div",{className:"flex items-center gap-3 sm:gap-4 flex-1 min-w-0",children:[(0,l.jsxs)("div",{className:"relative shrink-0",children:[(0,l.jsx)("div",{className:"w-8 h-8 rounded-full bg-gray-100 flex items-center justify-center overflow-hidden border border-gray-100",children:e.assetIcon?(0,l.jsx)(o.default,{src:e.assetIcon,alt:e.assetSymbol,width:32,height:32,className:"object-cover"}):(0,l.jsx)("span",{className:"text-xs font-bold text-gray-500",children:e.assetSymbol.slice(0,2)})}),(0,l.jsxs)("div",{className:"absolute -bottom-1 -right-1 w-5 h-5 rounded-full border-2 border-white flex items-center justify-center\n                                                    ".concat("receive"===e.type?"bg-emerald-100 text-emerald-600":"send"===e.type?"bg-orange-100 text-orange-600":"bg-blue-100 text-blue-600"),children:["receive"===e.type&&(0,l.jsx)(g.A,{className:"w-3 h-3"}),"send"===e.type&&(0,l.jsx)(j.A,{className:"w-3 h-3"}),("approve"===e.type||"unknown"===e.type)&&(0,l.jsx)(b.A,{className:"w-2.5 h-2.5"})]})]}),(0,l.jsxs)("div",{className:"flex flex-col min-w-0 flex-1",children:[(0,l.jsx)("h3",{className:"text-sm font-bold text-gray-900 leading-tight truncate",children:e.assetSymbol}),(0,l.jsxs)("div",{className:"flex items-center gap-1.5 mt-0.5",children:[(0,l.jsx)("span",{className:"text-xs font-medium text-gray-500 truncate max-w-[80px] sm:max-w-none",children:e.chain}),(0,l.jsx)("span",{className:"text-[10px] text-gray-300",children:"•"}),(0,l.jsx)("span",{className:"text-xs font-medium flex items-center gap-1 whitespace-nowrap\n                                                        ".concat("confirmed"===e.status?"text-emerald-600":"failed"===e.status?"text-red-500":"text-amber-500"),
1children:"confirmed"===e.status?"Confirmed":"failed"===e.status?"Failed":"Pending"}),(0,l.jsx)("button",{onClick:s=>{s.stopPropagation(),h(e.hash,e.chain)},className:"sm:hidden -ml-0.5 p-1 rounded-full text-gray-400 hover:text-blue-600 hover:bg-gray-100 transition-colors",title:"View on Explorer",children:(0,l.jsx)(N.A,{className:"w-3 h-3"})})]})]}),(0,l.jsxs)("div",{onClick:s=>{s.stopPropagation(),h(e.hash,e.chain)},className:"hidden sm:flex items-center gap-1.5 px-2 py-1 rounded-md hover:bg-gray-100 cursor-pointer text-gray-500 hover:text-blue-600 transition-colors group/link",children:[(0,l.jsx)("span",{className:"text-xs font-mono font-medium",children:e.addressDisplay}),(0,l.jsx)(N.A,{className:"w-3 h-3 opacity-50 group-hover/link:opacity-100"})]})]}),(0,l.jsxs)("div",{className:"text-right pl-2 sm:pl-4 shrink-0",children:[(0,l.jsx)("p",{className:"text-sm font-bold whitespace-nowrap ".concat("receive"===e.type?"text-emerald-600":"text-gray-900"),children:e.amount}),(0,l.jsx)("p",{className:"text-xs font-medium text-gray-400 whitespace-nowrap",children:e.amountValue})]})]},e.id))})]},e)})})]})}Date.now(),Date.now(),Date.now(),new Date("2025-12-01T15:30:00").getTime();var F=t(8705),C=t(1518),S=t(7951),k=t(5458),A=t(2878),I=t(4962),T=t(17);class E extends Error{constructor(e,s){super(s),this.status=e,this.name="YellowApiError"}}async function D(e,s){var t;let{timeoutMs:l=3e4,...a}=null!=s?s:{},n=new AbortController,i=setTimeout(()=>n.abort(),l),o=localStorage.getItem("auth_token"),r={"Content-Type":"application/json",...null!=(t=a.headers)?t:{}};o&&(r.Authorization="Bearer ".concat(o));try{let s=await fetch("".concat("https://backend-production-01b2.up.railway.app").concat(e),{...a,headers:r,signal:n.signal});if(clearTimeout(i),!s.ok){let e="Request failed";try{let t=await s.json();e=t.message||t.error||e}catch(t){e=await s.text()||e}throw new E(s.status,e)}return s.json()}catch(e){if(clearTimeout(i),e instanceof E)throw e;if(e instanceof Error&&"AbortError"===e.name)throw new E(408,"Request timed out");if(e instanceof Error&&(e.message.includes("fetch")||e.message.includes("network")))throw new E(503,"Network error. Please check your connection.");throw new E(500,e instanceof Error?e.message:"Unknown error")}}let B={async authenticate(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"base";return D("/app-session/authenticate",{method:"POST",body:JSON.stringify({userId:e,chain:s}),timeoutMs:9e4})},getWalletAddresses:async e=>D("/wallet/addresses?userId=".concat(encodeURIComponent(e))),async getUnifiedBalance(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"base";return D("/custody/balance?userId=".concat(encodeURIComponent(e),"&chain=").concat(encodeURIComponent(s)))},getCustodyAvailableBalance:async(e,s,t)=>D("/custody/available-balance?userId=".concat(encodeURIComponent(e),"&chain=").concat(encodeURIComponent(s),"&asset=").concat(encodeURIComponent(t))),getWalletBalances:async e=>D("/wallet/balances?userId=".concat(encodeURIComponent(e))),depositToCustody:async e=>D("/custody/deposit",{method:"POST",body:JSON.stringify(e),timeoutMs:12e4}),withdrawFromCustody:async e=>D("/custody/withdraw",{method:"POST",body:JSON.stringify(e),timeoutMs:12e4}),fundChannel:async e=>D("/channel/fund",{method:"POST",body:JSON.stringify(e),timeoutMs:12e4}),async getChannels(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"base";return D("/channel?userId=".concat(encodeURIComponent(e),"&chain=").concat(encodeURIComponent(s)))},closeChannel:async e=>D("/channel/close",{method:"POST",body:JSON.stringify(e),timeoutMs:12e4}),async discoverSessions(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"base";return D("/app-session/discover/".concat(encodeURIComponent(e),"?chain=").concat(encodeURIComponent(s)),{timeoutMs:6e4})},createSession:async e=>D("/app-session",{method:"POST",body:JSON.stringify(e),timeoutMs:9e4}),async getSession(e,s){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"base";return D("/app-session/".concat(encodeURIComponent(e),"?userId=").concat(encodeURIComponent(s),"&chain=").concat(encodeURIComponent(t)),{timeoutMs:6e4})}
1,async getSessionBalances(e,s){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"base";return D("/app-session/".concat(encodeURIComponent(e),"/balances?userId=").concat(encodeURIComponent(s),"&chain=").concat(encodeURIComponent(t)),{timeoutMs:6e4})},patchSession:async(e,s)=>D("/app-session/".concat(encodeURIComponent(e)),{method:"PATCH",body:JSON.stringify(s),timeoutMs:6e4}),async closeSession(e,s){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"base";return D("/app-session/".concat(encodeURIComponent(e),"?userId=").concat(encodeURIComponent(s),"&chain=").concat(encodeURIComponent(t)),{method:"DELETE",timeoutMs:9e4})}},L=[{id:"base",label:"Base"},{id:"arbitrum",label:"Arbitrum"}],P=[{id:"usdc",label:"USDC"},{id:"usdt",label:"USDT"}],H="base",O="usdc",W=/^0x[a-fA-F0-9]{40}$/;function U(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Copied!";navigator.clipboard.writeText(e).catch(()=>{}),S.oR.success(s)}function R(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8;return e.length<=2*s+3?e:"".concat(e.slice(0,s),"…").concat(e.slice(-s))}var M=t(9681),_=t(7483);function V(e){let{authenticated:s,authenticating:t,sessionId:a,expiresAt:i,walletAddress:o,authError:r,onReauth:c}=e;return(0,l.jsx)("div",{className:"h-full bg-[#161616] border border-white/10 rounded-xl p-5 flex flex-col justify-center",children:(0,l.jsxs)("div",{className:"mx-auto w-full max-w-[360px]",children:[(0,l.jsx)("div",{className:"flex justify-center",children:(0,l.jsxs)("span",{className:"inline-flex items-center gap-2 text-sm font-rubik-medium px-4 py-2 rounded-full border ".concat(s?"text-black bg-yellow-400 border-yellow-300":t?"text-yellow-100 bg-yellow-400/15 border-yellow-400/25":"text-red-300 bg-red-500/10 border-red-500/20"),children:[t?(0,l.jsx)(n.A,{className:"h-5 w-5 animate-spin"}):s?(0,l.jsx)(y.A,{className:"h-5 w-5"}):(0,l.jsx)(M.A,{className:"h-5 w-5"}),s?"Authenticated":t?"Authenticating…":"Not Authenticated"]})}),s&&(0,l.jsxs)("div",{className:"mt-6 space-y-2 text-sm",children:[o&&(0,l.jsxs)("div",{className:"grid grid-cols-[110px_1fr] items-center border-b border-white/10 pb-2",children:[(0,l.jsx)("span",{className:"text-gray-300",children:"Wallet:"}),(0,l.jsxs)("div",{className:"flex items-center gap-2 justify-end",children:[(0,l.jsx)("span",{className:"font-mono text-gray-100",children:R(o,6)}),(0,l.jsx)("button",{onClick:()=>U(o,"Address copied!"),className:"text-gray-400 hover:text-white",children:(0,l.jsx)(_.A,{className:"h-4 w-4"})})]})]}),a&&(0,l.jsxs)("div",{className:"grid grid-cols-[110px_1fr] items-center border-b border-white/10 pb-2",children:[(0,l.jsx)("span",{className:"text-gray-300",children:"Session ID:"}),(0,l.jsx)("span",{className:"font-mono text-gray-100 justify-self-end",children:R(a,5)})]}),i&&(0,l.jsxs)("div",{className:"grid grid-cols-[110px_1fr] items-center",children:[(0,l.jsx)("span",{className:"text-gray-300",children:"Expires:"}),(0,l.jsx)("span",{className:"text-gray-100 justify-self-end",children:function(e){if(!e)return"Unknown";let s=new Date(e).getTime()-Date.now();if(s<=0)return"Expired";let t=Math.floor(s/36e5),l=Math.floor(s%36e5/6e4);return t>0?"".concat(t,"h ").concat(l,"m"):"".concat(l,"m")}(i)})]})]}),!t&&(0,l.jsx)("div",{className:"mt-6 flex justify-center",children:(0,l.jsxs)("button",{onClick:c,className:"inline-flex items-center gap-1 text-sm text-black border border-yellow-300 rounded-full px-5 py-2 bg-yellow-400 hover:bg-yellow-300 transition-colors",children:[(0,l.jsx)(C.A,{className:"h-4.5 w-4.5"}),s?"Re-auth":"Authenticate"]})}),r&&!s&&(0,l.jsx)("p",{className:"mt-3 text-center text-xs text-red-300",children:r})]})})}function G(e){let{unified:s,custodyAvailable:t,loading:a,error:i,onRefresh:o,onAddFunds:r}=e,c=s.find(e=>e.asset===O),d=c?Number(c.available):0,f=t?Number(t):0,u=d+f,p=u>0?Math.min(1,Math.max(0,d/u)):0,x=2*Math.PI*46,m=x*p,h="#EAB308";return(0,l.jsxs)("div",{className:"h-full bg-[#161616] border border-white/10 rounded-xl p-4 space-y-3",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("span",{className:"text-sm font-rubik-medium text-white",children:"Balances"}),(0,l.jsx)("button",{onClick:o,disabled:a,className:"text-gray-300 hover:text-white disabled:opacity-40",title:"Refresh balances",children:(0,l.jsx)(C.A,{className:"h-3.5 w-3.5 ".concat(a?"animate-spin":"")})})]}),a?(0,l.jsxs)("div",{className:"flex items-center gap-2 text-xs text-gray-400",children:[(0,l.jsx)(n.A,{className:"h-3.5 w-3.5 animate-spin"}),"Loading balances…"]}):i?(0,l.jsx)("p",{className:"text-xs text-red-400",children:i}):(0,l.jsxs)("div",{className:"space-y-3",children:[(0,l.jsxs)("div",{className:"relative w-[168px] h-[168px] mx-auto",children:[(0,l.jsxs)("svg",{width:168,height:168,viewBox:"0 0 ".concat(120," ").concat(120),className:"absolute inset-0 animate-ring-glow",children:[(0,l.jsx)("defs",{children:(0,l.jsxs)("filter",{id:"yellowGlow",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[(0,l.jsx)("feGaussianBlur",{stdDeviation:"3",result:"blur"}),(0,l.jsxs)("feMerge",{children:[(0,l.jsx)("feMergeNode",{in:"blur"}),(0,l.jsx)("feMergeNode",{in:"SourceGraphic"})]})]})}),(0,l.jsxs)("g",{transform:"rotate(-90 ".concat(60," ").concat(60,")"),children:[(0,l.jsx)("circle",{cx:60,cy:60,r:46,fill:"none",stroke:"rgba(107,114,128,0.55)",strokeWidth:12,strokeLinecap:"round",strokeDasharray:"".concat(x," 0")}),m>0&&m<x&&(0,l.jsx)("circle",{cx:60,cy:60,r:46,fill:"none",stroke:h,strokeWidth:12,strokeLinecap:"round",filter:"url
1(#yellowGlow)",strokeDasharray:"".concat(m," ").concat(x-m)}),m>=x-1e-4&&(0,l.jsx)("circle",{cx:60,cy:60,r:46,fill:"none",stroke:h,strokeWidth:12,strokeLinecap:"round",filter:"url(#yellowGlow)",strokeDasharray:"".concat(x," 0")})]})]}),(0,l.jsxs)("div",{className:"absolute inset-0 flex items-center justify-center flex-col",children:[(0,l.jsx)("div",{className:"text-[30px] font-rubik-medium text-white leading-none",children:u>0?u.toFixed(4):"0.0000"}),(0,l.jsx)("div",{className:"text-[11px] text-gray-200 mt-0.5",children:"USDC Total"})]})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between text-xs text-gray-300",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("span",{className:"h-2.5 w-2.5 rounded-full bg-yellow-400 shadow-[0_0_14px_rgba(234,179,8,0.35)]"}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"text-gray-300",children:"Lightning"}),(0,l.jsxs)("div",{className:"text-[11px] text-gray-400",children:[d>0?d.toFixed(4):"0.0000"," USDC"]})]})]}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("span",{className:"h-2.5 w-2.5 rounded-full bg-gray-500"}),(0,l.jsxs)("div",{className:"text-right",children:[(0,l.jsx)("div",{className:"text-gray-300",children:"On-chain"}),(0,l.jsxs)("div",{className:"text-[11px] text-gray-400",children:[f>0?f.toFixed(4):"0.0000"," USDC"]})]})]})]}),(0,l.jsx)("div",{className:"h-2 rounded-full bg-[#3A3D45] overflow-hidden",children:(0,l.jsx)("div",{className:"h-full bg-yellow-400 rounded-full transition-[width] duration-300",style:{width:"".concat((100*p).toFixed(2),"%")}})}),(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,l.jsxs)("div",{className:"rounded-xl border border-yellow-300/35 bg-[#161616] p-3",children:[(0,l.jsx)("p",{className:"text-[10px] text-gray-400",children:"Lightning Ledger"}),(0,l.jsxs)("p",{className:"text-lg font-rubik-medium text-white leading-none mt-1",children:[d>0?d.toFixed(4):"0.0000"," USDC"]})]}),(0,l.jsxs)("div",{className:"rounded-xl border border-white/10 bg-[#161616] p-3",children:[(0,l.jsx)("p",{className:"text-[10px] text-gray-400",children:"On-chain Custody"}),(0,l.jsxs)("p",{className:"text-lg font-rubik-medium text-white leading-none mt-1",children:[f>0?f.toFixed(4):"0.0000"," USDC"]})]})]}),(0,l.jsx)("div",{className:"flex items-center justify-end",children:(0,l.jsx)("button",{onClick:r,className:"h-9 px-4 rounded-xl bg-yellow-400 text-black font-rubik-medium hover:bg-yellow-500 transition-colors",children:"Add Funds"})})]})]})}var z=t(8690),J=t(6286),q=t(7378),$=t(9816);function X(e){let{msg:s}=e;return s?(0,l.jsx)("p",{className:"text-xs text-red-500 mt-1",children:s}):null}function Y(e){var s;let{depositing:t,withdrawing:i,custodyAvailable:o,unified:r,channels:c,channelsLoading:d,closingChannelId:f,storedChannelId:u,onDeposit:p,onWithdraw:x,onCloseChannel:m,onDismissStoredChannel:h,onFetchChannels:v}=e,[y,g]=(0,a.useState)("deposit"),[j,b]=(0,a.useState)(""),[N,w]=(0,a.useState)(""),[F,C]=(0,a.useState)(O),[S,T]=(0,a.useState)(H),[E,D]=(0,a.useState)(null),B="deposit"===y?j:N,W="deposit"===y?b:w,M=r.find(e=>e.asset===O),V=parseFloat(null!=(s=null==M?void 0:M.available)?s:"0"),G=e=>{if(!e)return"Amount is required";if(isNaN(Number(e))||0>=Number(e))return"Amount must be a positive number";if("withdraw"===y&&null!=o){let s=parseFloat(o);if(Number(e)>s)return"Cannot exceed available custody balance (".concat(s.toFixed(4),")")}return null},Y=async()=>{let e=G(B);D(e),!e&&("deposit"===y?await p(S,F,B):await x(S,F,B))&&(W(""),D(null))},Z=t||i;return(0,l.jsxs)("div",{className:"h-full bg-[#161616] border border-white/10 rounded-xl p-4",children:[(0,l.jsx)("p",{className:"text-sm font-rubik-medium text-white mb-2",children:"Custody"}),(0,l.jsxs)(I.tU,{value:y,onValueChange:e=>{g(e),"move"===e&&v()},children:[(0,l.jsxs)(I.j7,{className:"grid grid-cols-3 h-9 mb-3 bg-[#161616] border border-white/10 rounded-xl p-1",children:[(0,l.jsx)(I.Xi,{value:"deposit",className:"text-xs text-gray-300 rounded-lg data-[state=active]:bg-yellow-400 data-[state=active]:text-black",children:"Deposit"}),(0,l.jsx)(I.Xi,{value:"withdraw",className:"text-xs text-gray-300 rounded-lg data-[state=active]:bg-yellow-400 data-[state=active]:text-black",children:"Withdraw"}),(0,l.jsx)(I.Xi,{value:"move",className:"text-xs text-gray-300 rounded-lg data-[state=active]:bg-yellow-400 data-[state=active]:text-black",children:"Move"})]}),(0,l.jsxs)(I.av,{value:"deposit",className:"space-y-2 mt-0",children:[(0,l.jsx)("p",{className:"text-[10px] text-gray-400",children:"Move on-chain wallet funds into custody contract (costs gas)."}),(0,l.jsxs)("div",{children:[(0,l.jsx)($.J,{className:"text-xs text-gray-300",children:"Amount"}),(0,l.jsx)(q.p,{type:"number",min:"0",step:"any",placeholder:"0.00",value:j,onChange:e=>{b(e.target.value),D(null)},onBlur:()=>D(G(j)),className:"h-8 text-sm mt-1 bg-[#161616] border-white/10 text-white placeholder:text-gray-500"}),(0,l.jsx)(X,{msg:"deposit"===y?E:null})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)($.J,{className:"text-xs text-gray-300",children:"Asset"}),(0,l.jsxs)(A.l6,{value:F,onValueChange:C,children:[(0,l.jsx)(A.bq,{className:"h-8 text-xs mt-1 bg-[#161616] border-white/10 text-white",children:(0,l.jsx)(A.yv,{})}),(0,l.jsx)(A.gC,{className:"bg-[#161616] text-white border-white/10",children:P.map(e=>(0,l.jsx)(A.eb,{value:e.id,className:"text-xs",children:e.label},e.id))})]})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)($.J,{className:"text-xs text-gray-300",children:"Chain"}),(0,l.jsxs)(A.l6,{value:S,onValueChange:T,children:[(0,l.jsx)(A.bq,{className:"h-8 text-xs mt-1 bg-[#161616] border-white/10 text-white",children:(0,l.jsx)(A.yv,{})}),(0,l.jsx)(A.gC,{className:"bg-[#161616] text-white border-white/10",children:L.map(e=>(0,l.jsx)(A.eb,{value:e.id,className:"text-xs",children:e.label},e.id))})]})]})]}),(0,l.jsx)(k.$,{onClick:Y,disabled:Z,className:"w-full h-8 text-xs bg-yellow-400 hover:bg-yellow-500 text-black",children:t?(0,l.jsx)(n.A,{className:"h-3.5 w-3.5 animate-spin"}):"Deposit to Custody"})]}),(0,l.jsxs)(I.av,{value:"withdraw",className:"space-y-2 mt-0",children:[(0,l.jsx)("p",{className:"text-[10px] text-gray-400",children:"Move custody funds back to your wallet (costs gas)."}),null!=o&&(0,l.jsxs)("div",{className:"bg-[#161616] border border-white/10 rounded-lg px-3 py-1.5 flex justify-between text-xs",children:[(0,l.jsx)("span",{className:"text-gray-300",children:"Available to withdraw"}),(0,l.jsxs)("span",{className:"font-medium text-white",children:[parseFloat(o).toFixed(4)," ",F.toUpperCase()]})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)($.J,{className:"text-xs text-gray-300",children:"Amount"}),(0,l.jsx)(q.p,{type:"number",min:"0",step:"any",placeholder:"0.00",value:N,onChange:e=>{w(e.target.value),D(null)},onBlur:()=>D(G(N)),className:"h-8 text-sm mt-1 bg-[#161616] border-white/10 text-white placeholder:text-gray-500"}),(0,l.jsx)(X,{msg:"withdraw"===y?E:null})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)($.J,{className:"text-xs text-gray-300",children:"Asset"}),(0,l.jsxs)(A.l6,{value:F,onValueChange:C,children:[(0,l.jsx)(A.bq,{className:"h-8 text-xs mt-1 bg-[#161616] border-white/10 text-white",children:(0,l.jsx)(A.yv,{})}),(0,l.jsx)(A.gC,{className:"bg-[#161616] text-white border-white/10",children:P.map(e=>(0,l.jsx)(A.eb,{value:e.id,className:"text-xs",children:e.label},e.id))})]})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)($.J,{className:"text-xs text-gray-300",children:"Chain"}),(0,l.jsxs)(A.l6,{value:S,onValueChange:T,children:[(0,l.jsx)(A.bq,{className:"h-8 text-xs mt-1 bg-[#161616] border-white/10 text-white",children:(0,l.jsx)(A.yv,{})}),(0,l.jsx)(A.gC,{className:"bg-[#161616] text-white border-white/10",children:L.map(e=>(0,l.jsx)(A.eb,{value:e.id,className:"text-xs",children:e.label},e.id))})]})]})]}),(0,l.jsx)(k.$,{onClick:Y,disabled:Z||null!=o&&0>=parseFloat(o),className:"w-full h-8 text-xs bg-yellow-400 hover:bg-yellow-500 text-black",children:i?(0,l.jsx)(n.A,{className:"h-3.5 w-3.5 animate-spin"}):"Withdraw from Custody"})]}),(0,l.jsxs)(I.av,{value:"move",className:"space-y-2 mt-0",children:[(0,l.jsxs)("p",{className:"text-[10px] text-gray-400",children:["Close your payment channel to release locked funds back to custody. Then use the ",(0,l.jsx)("strong",{children:"Withdraw"})," tab to send funds to your wallet."]}
1),(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-1.5",children:[(0,l.jsxs)("div",{className:"bg-gray-950/30 border border-gray-800 rounded-lg px-2.5 py-1.5",children:[(0,l.jsx)("p",{className:"text-[10px] text-gray-400",children:"Unified"}),(0,l.jsxs)("p",{className:"text-xs font-medium text-white",children:[V.toFixed(4)," USDC"]})]}),(0,l.jsxs)("div",{className:"bg-gray-950/30 border border-gray-800 rounded-lg px-2.5 py-1.5",children:[(0,l.jsx)("p",{className:"text-[10px] text-gray-400",children:"Custody available"}),(0,l.jsx)("p",{className:"text-xs font-medium text-white",children:null!=o?"".concat(parseFloat(o).toFixed(4)," USDC"):"—"})]})]}),u&&(0,l.jsxs)("div",{className:"bg-gray-950/30 border border-yellow-400/20 rounded-lg px-2.5 py-2",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,l.jsx)("p",{className:"text-[10px] text-yellow-300 font-medium",children:"Active Channel"}),(0,l.jsx)("button",{onClick:h,className:"text-gray-400 hover:text-gray-200",title:"Dismiss",children:(0,l.jsx)(z.A,{className:"h-3 w-3"})})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"font-mono text-xs text-gray-200",children:R(u,8)}),(0,l.jsxs)("button",{onClick:()=>U(u,"Channel ID copied!"),className:"flex items-center gap-1 text-[10px] text-yellow-300/80 hover:text-yellow-300 mt-0.5",children:[(0,l.jsx)(_.A,{className:"h-2.5 w-2.5"}),"Copy full ID"]})]}),(0,l.jsx)(k.$,{onClick:()=>m(u),disabled:f===u,variant:"outline",className:"h-7 text-[10px] px-2.5 border-yellow-400/20 text-yellow-200 hover:bg-yellow-500/10 bg-gray-950/30",children:f===u?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(n.A,{className:"h-3 w-3 animate-spin mr-1"}),"Closing…"]}):"Close Channel"})]})]}),d?(0,l.jsxs)("div",{className:"flex items-center gap-1.5 text-xs text-gray-400 py-2 justify-center",children:[(0,l.jsx)(n.A,{className:"h-3 w-3 animate-spin"}),"Loading channels…"]}):0!==c.length||u?c.length>0?(0,l.jsxs)("div",{className:"space-y-1.5",children:[(0,l.jsx)("p",{className:"text-[10px] text-gray-400 font-medium",children:"Open channels:"}),c.map(e=>{let s=e.channelId===u;return(0,l.jsxs)("div",{className:"flex items-center justify-between rounded-lg px-2.5 py-1.5 text-xs ".concat(s?"bg-yellow-400/10 border border-yellow-400/20":"bg-gray-950/30 border border-gray-800"),children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"font-mono text-gray-200",children:R(e.channelId,5)}),(0,l.jsx)("p",{className:"text-[10px] text-gray-400",children:e.status})]}),(0,l.jsx)(k.$,{onClick:()=>m(e.channelId),disabled:f===e.channelId,variant:"outline",className:"h-6 text-[10px] px-2 border-gray-700 text-gray-200 hover:bg-gray-900 bg-gray-950/30",children:f===e.channelId?(0,l.jsx)(n.A,{className:"h-3 w-3 animate-spin"}):"Close"})]},e.channelId)})]}):null:(0,l.jsx)("div",{className:"bg-gray-950/30 border border-gray-800 rounded-lg p-2 text-[10px] text-gray-400 text-center",children:"No open payment channels. Deposit to custody to get started."}),(0,l.jsxs)("div",{className:"flex items-start gap-1.5 pt-1",children:[(0,l.jsx)(J.A,{className:"h-3 w-3 text-gray-300 mt-0.5 shrink-0"}),(0,l.jsxs)("p",{className:"text-[9px] text-gray-400 leading-tight",children:["Closing the channel releases locked funds to your custody balance. Then use the ",(0,l.jsx)("strong",{children:"Withdraw"})," tab to move funds to your wallet."]})]})]})]})]})}function Z(e){var s,t,a,i;let{session:o,walletAddress:r,onManage:c,onClose:d,isClosing:f,onDismiss:u}=e,p=(null!=(t=o.allocations)?t:[]).reduce((e,s)=>e+parseFloat(s.amount||"0"),0).toFixed(6),x=null!=(a=o.participants)?a:[],m=(null!=(i=o.allocations)?i:[]).map(e=>e.participant).filter(Boolean),h=x.length>0?x.map(e=>e.address):m;return(0,l.jsxs)("div",{className:"bg-[#161616] border border-white/10 rounded-xl p-2.5 space-y-1.5",children:[(0,l.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,l.jsxs)("div",{className:"min-w-0 space-y-0.5",children:[(0,l.jsx)("p",{className:"text-[10px] text-gray-400 uppercase tracking-wide",children:"Session ID"}),(0,l.jsxs)("button",{type:"button",onClick:()=>U(o.appSessionId,"Session ID copied!"),className:"min-w-0 inline-flex items-center gap-1.5 text-left group",title:"Copy Session ID",children:[(0,l.jsx)("span",{className:"text-sm font-rubik-medium text-white truncate",children:R(o.appSessionId,8)}),(0,l.jsx)(_.A,{className:"h-4 w-4 text-gray-400 group-hover:text-white shrink-0"})]})]}),u&&(0,l.jsx)("button",{type:"button",onClick:u,className:"text-gray-400 hover:text-white transition-colors shrink-0","aria-label":"Dismiss session card",title:"Dismiss",children:(0,l.jsx)(z.A,{className:"h-4 w-4"})})]}),h.length>0&&(0,l.jsxs)("div",{className:"space-y-0.5",children:[(0,l.jsx)("p",{className:"text-[10px] text-gray-400 uppercase tracking-wide",children:"Participants"}),(0,l.jsx)("div",{className:"flex flex-wrap gap-0.5",children:h.slice(0,4).map(e=>(0,l.jsx)("span",{className:"inline-flex w-fit max-w-full text-[9px] leading-none font-mono text-gray-300 bg-black/30 border border-white/10 rounded-md px-1.5 py-0.5",children:R(e,8)},e))})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between gap-2 pt-1 border-t border-white/10",children:[(0,l.jsxs)("p",{className:"text-[11px] text-gray-300",children:["Balance ",(0,l.jsxs)("span",{className:"font-medium text-white",children:[p," ",null==(s=o.token)?void 0:s.toUpperCase()]})]}),(0,l.jsxs)("div",{className:"flex items-center gap-1.5 shrink-0",children:[(0,l.jsx)("button",{onClick:c,className:"h-7 px-2.5 text-[11px] border border-white/10 text-gray-100 rounded-md bg-[#161616] hover:bg-[#1c1c1c] transition-colors",children:"Manage"}),"open"===o.status&&(0,l.jsx)("button",{onClick:d,disabled:f,className:"h-7 px-2.5 text-[11px] border border-red-400/30 text-red-200 hover:bg-red-500/10 rounded-md bg-[#161616] transition-colors disabled:opacity-50",children:f?(0,l.jsx)(n.A,{className:"h-3.5 w-3.5 animate-spin"}):"Close"})]})]})]})}var K=t(7346);function Q(e){var s,t,i;let{walletAddress:o,userId:r,chain:c,onCreated:d,creating:f,onCreate:u}=e,[p,x]=(0,a.useState)(O),[m,h]=(0,a.useState)([""]),[v,y]=(0,a.useState)([{address:null!=o?o:"",amount:""}]),[g,j]=(0,a.useState)({});(0,a.useEffect)(()=>{o&&y(e=>{var s,t;let l=[...e];return l[0]={address:o,amount:null!=(t=null==(s=l[0])?void 0:s.amount)?t:""},l})},[o]);let b=async()=>
1{if(!(()=>{let e={};return v.forEach((s,t)=>{(!s.amount||0>Number(s.amount))&&(e["alloc_".concat(t)]="Amount must be ≥ 0")}),m.forEach((s,t)=>{s&&!W.test(s.trim())&&(e["addr_".concat(t)]="Invalid EVM address (0x + 40 hex chars)")}),j(e),0===Object.keys(e).length})())return;let e=[null!=o?o:"",...m.map(e=>e.trim()).filter(Boolean)],s=v.filter(e=>e.address).map(e=>({participant:e.address,amount:e.amount||"0"})),t=await u({participants:e,token:p,initialAllocations:s});t&&d(t)};return(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{className:"bg-[#161616] border border-white/10 rounded-lg p-2.5 text-[11px] text-gray-200",children:[(0,l.jsx)("p",{className:"font-medium mb-0.5",children:"How sessions work"}),(0,l.jsx)("p",{children:"Create a session to enable instant off-chain transfers. Funds come from your unified balance. Sessions use Judge governance (creator controls signing)."})]}),(0,l.jsxs)("div",{children:[(0,l.jsxs)($.J,{className:"text-xs text-gray-300",children:["Token ",(0,l.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,l.jsxs)(A.l6,{value:p,onValueChange:x,children:[(0,l.jsx)(A.bq,{className:"h-8 text-sm mt-1 bg-[#161616] border-white/10 text-gray-100",children:(0,l.jsx)(A.yv,{})}),(0,l.jsx)(A.gC,{className:"bg-[#161616] text-gray-100 border-white/10",children:P.map(e=>(0,l.jsx)(A.eb,{value:e.id,children:e.label},e.id))})]})]}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,l.jsx)($.J,{className:"text-xs text-gray-200",children:"Participants & Allocations"}),(0,l.jsxs)("button",{type:"button",onClick:()=>{h(e=>[...e,""]),y(e=>[...e,{address:"",amount:""}])},className:"flex items-center gap-1 text-xs text-gray-400 hover:text-gray-200",children:[(0,l.jsx)(K.A,{className:"h-3 w-3"}),"Add"]})]}),(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsxs)("div",{className:"bg-[#161616] border border-white/10 rounded-lg p-2 space-y-1.5",children:[(0,l.jsx)("p",{className:"text-[10px] text-gray-500 font-medium",children:"You (creator)"}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(q.p,{value:null!=o?o:"",disabled:!0,className:"h-7 text-xs bg-[#161616] border-white/10 text-gray-200 font-mono flex-1"}),(0,l.jsx)(q.p,{type:"number",min:"0",step:"any",placeholder:"0.00",value:null!=(t=null==(s=v[0])?void 0:s.amount)?t:"",onChange:e=>{y(s=>{var t,l;let a=[...s];return a[0]={address:null!=(l=null==(t=a[0])?void 0:t.address)?l:"",amount:e.target.value},a})},className:"h-7 text-xs bg-[#161616] border-white/10 text-white w-24"})]}),(0,l.jsx)(X,{msg:null!=(i=g.alloc_0)?i:null})]}),m.map((e,s)=>{var t,a,n,i;return(0,l.jsxs)("div",{className:"bg-[#161616] border border-white/10 rounded-lg p-2 space-y-1.5",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsxs)("p",{className:"text-[10px] text-gray-500 font-medium",children:["Participant ",s+2]}),(0,l.jsx)("button",{type:"button",onClick:()=>{h(e=>e.filter((e,t)=>t!==s)),y(e=>e.filter((e,t)=>t!==s+1))},className:"text-gray-400 hover:text-red-500",children:(0,l.jsx)(z.A,{className:"h-3 w-3"})})]}),(0,l.jsx)(q.p,{placeholder:"0x...",value:e,onChange:e=>{h(t=>{let l=[...t];return l[s]=e.target.value,l}),y(t=>{var l,a;let n=[...t];return n[s+1]={address:e.target.value,amount:null!=(a=null==(l=n[s+1])?void 0:l.amount)?a:""},n})},className:"h-7 text-xs font-mono bg-[#161616] border-white/10 text-white"}),(0,l.jsx)(X,{msg:null!=(a=g["addr_".concat(s)])?a:null}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)($.J,{className:"text-[10px] text-gray-400 whitespace-nowrap",children:"Allocation:"}),(0,l.jsx)(q.p,{type:"number",min:"0",step:"any",placeholder:"0.00",value:null!=(n=null==(t=v[s+1])?void 0:t.amount)?n:"",onChange:e=>{y(t=>{var l,a;let n=[...t];return n[s+1]={address:null!=(a=null==(l=n[s+1])?void 0:l.address)?a:"",amount:e.target.value},n})},className:"h-7 text-xs bg-[#161616] border-white/10 text-white w-24"})]}),(0,l.jsx)(X,{msg:null!=(i=g["alloc_".concat(s+1)])?i:null})]},s)})]})]}),(0,l.jsx)(k.$,{onClick:b,disabled:f,className:"w-full bg-yellow-400 hover:bg-yellow-500 text-black",children:f?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(n.A,{className:"h-4 w-4 animate-spin mr-2"}),"Creating…"]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(F.A,{className:"h-4 w-4 mr-2"}),"Create Session"]})})]})}function ee(e){let{userId:s,chain:t,onFound:i}=e,[o,r]=(0,a.useState)(""),[c,d]=(0,a.useState)(!1),[f,u]=(0,a.useState)(null),p=async()=>
1{if(!o.trim())return void u("Session ID is required");u(null),d(!0);try{var e;let l=await B.getSession(o.trim(),s,t),a=null!=(e=l.data)?e:l.session;l.ok&&a?(S.oR.success("Session found!"),i(a)):u(l.message||"Session not found or you are not a participant")}catch(e){u(e instanceof Error?e.message:"Failed to find session")}finally{d(!1)}};return(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{className:"bg-[#161616] border border-white/10 rounded-lg p-2.5 text-[11px] text-gray-200",children:[(0,l.jsx)("p",{className:"font-medium mb-0.5",children:"How joining works"}),(0,l.jsx)("p",{children:"Enter a session ID to look up a session you were invited to. You must have been included as a participant when the session was created."})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)($.J,{className:"text-xs text-gray-200",children:"Session ID"}),(0,l.jsx)(q.p,{placeholder:"Paste session ID here...",value:o,onChange:e=>r(e.target.value),onBlur:()=>u(o.trim()?null:"Session ID is required"),className:"h-9 text-sm mt-1 font-mono bg-[#161616] border-white/10 text-white"}),(0,l.jsx)(X,{msg:f})]}),(0,l.jsx)(k.$,{onClick:p,disabled:c,className:"w-full bg-yellow-400 hover:bg-yellow-500 text-black",children:c?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(n.A,{className:"h-4 w-4 animate-spin mr-2"}),"Searching…"]}):"Find Session"})]})}function es(e){var s,t,i,o,r,c,d,f,u,p,x,m,h,v,y,g,j,b,N,w,F;let{session:C,balances:S,walletAddress:A,operating:T,onPatch:E,onClose:D}=e,[B,L]=(0,a.useState)("info"),[P,H]=(0,a.useState)(""),[W,M]=(0,a.useState)(""),[V,G]=(0,a.useState)(""),[z,J]=(0,a.useState)(null),[Y,Z]=(0,a.useState)(!1);(0,a.useEffect)(()=>{J(null),H("")},[C.appSessionId,C.allocations]);let K=(0,a.useMemo)(()=>{var e;return null!=(e=C.allocations)?e:[]},[C.allocations]),Q=(null!=(y=C.allocations)?y:[]).reduce((e,s)=>e+parseFloat(s.amount||"0"),0),ee=Q.toFixed(6);null!=(null==(s=C.participants)?void 0:s.map(e=>e.address).filter(Boolean))||K.map(e=>e.participant).filter(Boolean);let es=A?K.findIndex(e=>e.participant.toLowerCase()===A.toLowerCase()):-1,et=es>=0?es:-1,el=2===K.length&&et>=0?+(0===et):-1,ea=et>=0?parseFloat(null!=(g=null==(t=K[et])?void 0:t.amount)?g:"0"):0,en="open"===(null!=(j=C.status)?j:"").toLowerCase()&&!!A&&et>=0&&(null!=(b=null==(i=C.participants)?void 0:i.length)?b:0)>=2&&K.length>=2&&el>=0,ei=parseFloat(P),eo=!!A&&!!P&&!Number.isNaN(ei)&&ei>0&&ei<=ea+1e-9,er=(0,a.useMemo)(()=>{var e,s,t,l,a,n,i,o,r,c,d,f;let u=K.map(e=>({...e}));if(!en||!eo)return u;let p=parseFloat(null!=(n=null==(e=u[el])?void 0:e.amount)?n:"0"),x=Math.max(0,ea-ei),m=p+ei;return u[et]={participant:null!=(i=null==(s=u[et])?void 0:s.participant)?i:"",amount:x.toFixed(6),asset:null!=(r=null==(t=u[et])?void 0:t.asset)?r:null!=(o=C.token)?o:O},u[el]={participant:null!=(c=null==(l=u[el])?void 0:l.participant)?c:"",amount:m.toFixed(6),asset:null!=(f=null==(a=u[el])?void 0:a.asset)?f:null!=(d=C.token)?d:O},u},[K,en,eo,ea,ei,el,et,C.token]);function ec(){var e,s;let t=new Map;for(let l of null!=(e=C.allocations)?e:[])l.participant&&t.set(l.participant.toLowerCase(),null!=(s=l.amount)?s:"0");return t}function ed(e,s){var t;return[{participant:e,amount:s,asset:null!=(t=C.token)?t:O}]}async function ef(){if(!en)return;let e=er.map(e=>{var s;return{participant:e.participant,amount:e.amount,asset:null!=(s=C.token)?s:O}});await E("OPERATE",e)}let eu=async()=>{var e;let s=parseFloat(W);if(!W||s<=0)return;let t=null!=A?A:"";if(!t)return;let l=(parseFloat(null!=(e=ec().get(t.toLowerCase()))?e:ea.toFixed(6))+s).toFixed(6);await E("DEPOSIT",ed(t,l))&&M("")},ep=async()=>{var e;let s=parseFloat(V);if(!V||s<=0)return;let t=null!=A?A:"";if(!t)return;let l=Math.max(0,parseFloat(null!=(e=ec().get(t.toLowerCase()))?e:ea.toFixed(6))-s).toFixed(6);await E("WITHDRAW",ed(t,l))&&G("")},ex=async()=>{Z(!0),await D(),Z(!1)};return(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{className:"bg-[#161616] border border-white/10 rounded-xl p-3 space-y-1.5 text-xs",children:[(0,l.jsxs)("div",{className:"flex justify-between",children:[(0,l.jsx)("span",{className:"text-gray-300",children:"Session ID"}),(0,l.jsxs)("button",{onClick:()=>U(C.appSessionId,"Session ID copied!"),className:"font-mono text-gray-200 flex items-center gap-1 hover:text-white",children:[R(C.appSessionId,6),(0,l.jsx)(_.A,{className:"h-3 w-3"})]})]}),(0,l.jsxs)("div",{className:"flex justify-between",children:[(0,l.jsx)("span",{className:"text-gray-300",children:"Chain \xb7 Token"}),(0,l.jsxs)("span",{className:"text-gray-200",children:[C.chain," \xb7 ",null==(o=C.token)?void 0:o.toUpperCase()]})]}),(0,l.jsxs)("div",{className:"flex justify-between font-medium",children:[(0,l.jsx)("span",{className:"text-gray-300",children:"Session Total"}),(0,l.jsxs)("span",{className:"text-white",children:[ee," ",null==(r=C.token)?void 0:r.toUpperCase()]})]})]}),"open"===C.status?(0,l.jsxs)(I.tU,{value:B,onValueChange:e=>L(e),children:[(0,l.jsx)(I.j7,{className:"grid grid-cols-4 h-8 bg-[#161616] border border-white/10 text-gray-300",children:["info","transfer","deposit","withdraw"].map(e=>(0,l.jsx)(I.Xi,{value:e,className:"text-[10px] text-gray-400 data-[state=active]:bg-yellow-400 data-[state=active]:text-black capitalize",children:e},e))}),(0,l.jsxs)(I.av,{value:"info",className:"space-y-2 mt-2",children:[(0,l.jsx)("p",{className:"text-xs font-medium text-gray-200",children:"Participants"}),(()=>{var e,s;let t=null!=(e=C.participants)?e:[],a=(null!=(s=C.allocations)?s:[]).map(e=>
1e.participant).filter(Boolean);return(t.length>0?t.map(e=>e.address):a).map(e=>{var s,t;let a=(null!=(t=C.allocations)?t:[]).find(s=>{var t;return(null==(t=s.participant)?void 0:t.toLowerCase())===e.toLowerCase()});return(0,l.jsxs)("div",{className:"bg-black/40 border border-gray-800 rounded-lg px-2 py-1.5 flex items-center justify-between text-xs",children:[(0,l.jsx)("span",{className:"font-mono text-gray-200",children:R(e,8)}),(0,l.jsx)("div",{className:"flex items-center gap-1",children:a&&(0,l.jsxs)("span",{className:"text-[10px] font-medium text-gray-300",children:[parseFloat(a.amount||"0").toFixed(4)," ",null==(s=a.asset)?void 0:s.toUpperCase()]})})]},e)})})(),S.length>0&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{className:"text-xs font-medium text-gray-100 mt-2",children:"Session Balances"}),S.map(e=>(0,l.jsxs)("div",{className:"flex justify-between text-xs bg-black/40 border border-gray-800 rounded-lg px-2 py-1.5",children:[(0,l.jsx)("span",{className:"text-gray-500 uppercase",children:e.asset}),(0,l.jsx)("span",{className:"font-medium text-gray-200",children:e.amount})]},e.asset))]})]}),(0,l.jsxs)(I.av,{value:"transfer",className:"space-y-4 mt-3",children:[!en&&(0,l.jsx)("div",{className:"bg-yellow-400/10 border border-yellow-300/25 rounded-lg p-2 text-[10px] text-yellow-100",children:!A||et<0?"Unable to identify your allocation yet. Re-open session and try again.":"Counterparty has not joined yet. Transfers are disabled until both participants are present."}),2===K.length&&Q>0&&el>=0?(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{className:"bg-[#161616] border border-white/10 rounded-lg px-3 py-2 text-xs space-y-1",children:[(0,l.jsxs)("div",{className:"flex justify-between",children:[(0,l.jsx)("span",{className:"text-gray-500",children:"Your balance"}),(0,l.jsxs)("span",{className:"font-medium text-gray-200",children:[ea.toFixed(4)," ",null==(c=C.token)?void 0:c.toUpperCase()]})]}),(0,l.jsxs)("div",{className:"flex justify-between",children:[(0,l.jsx)("span",{className:"text-gray-500",children:"Counterparty balance"}),(0,l.jsxs)("span",{className:"font-medium text-gray-200",children:[parseFloat(null!=(N=null==(d=K[el])?void 0:d.amount)?N:"0").toFixed(4)," ",null==(f=C.token)?void 0:f.toUpperCase()]})]})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)($.J,{className:"text-xs text-gray-300",children:"Amount to send"}),(0,l.jsx)(q.p,{type:"number",min:"0",step:"any",placeholder:"0.00",value:P,onChange:e=>(function(e){H(e);let s=parseFloat(e);return!e||Number.isNaN(s)||s<=0?void J(null):!A||et<0?void J("Unable to resolve your participant allocation. Re-open session."):s>ea+1e-9?void J("Cannot exceed your allocation of ".concat(ea.toFixed(4),".")):el<0?void J("Counterparty allocation is not available yet."):void J(null)})(e.target.value),className:"h-8 text-sm mt-1 bg-[#161616] border-white/10 text-white"})]}),P&&Number(P)>0&&Number(P)<=ea+1e-9&&(0,l.jsxs)("div",{className:"bg-yellow-500/10 border border-yellow-500/20 rounded-lg px-3 py-2 text-xs space-y-1",children:[(0,l.jsxs)("div",{className:"flex justify-between",children:[(0,l.jsx)("span",{className:"text-gray-500",children:"You"}),(0,l.jsxs)("span",{className:"font-medium text-yellow-200",children:[ea.toFixed(4)," -> ",Math.max(0,ea-Number(P)).toFixed(4)]})]}),(0,l.jsxs)("div",{className:"flex justify-between",children:[(0,l.jsx)("span",{className:"text-gray-500",children:"Counterparty"}),(0,l.jsxs)("span",{className:"font-medium text-yellow-200",children:[parseFloat(null!=(w=null==(u=K[el])?void 0:u.amount)?w:"0").toFixed(4)," -> ",(parseFloat(null!=(F=null==(p=K[el])?void 0:p.amount)?F:"0")+Number(P)).toFixed(4)]})]})]}),(0,l.jsx)(X,{msg:z}),(0,l.jsx)(k.$,{onClick:ef,disabled:T||!en||!P||0>=Number(P)||Number(P)>ea+1e-9,className:"w-full h-9 text-sm bg-yellow-400 hover:bg-yellow-500 text-black",children:T?(0,l.jsx)(n.A,{className:"h-4 w-4 animate-spin"}):"Send"})]}):null]}),(0,l.jsxs)(I.av,{value:"deposit",className:"space-y-3 mt-2",children:[(0,l.jsx)("p",{className:"text-[11px] text-gray-400",children:"Add funds from your unified balance into this session."}),(0,l.jsxs)("div",{className:"bg-[#161616] border border-white/10 rounded-lg px-3 py-2 flex justify-between text-xs",children:[(0,l.jsx)("span",{className:"text-gray-500",children:"Your current allocation"}),(0,l.jsxs)("span",{className:"font-medium text-gray-200",children:[ea.toFixed(4)," ",null==(x=C.token)?void 0:x.toUpperCase()]})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)($.J,{className:"text-xs text-gray-300",children:"Amount to deposit"}),(0,l.jsx)(q.p,{type:"number",min:"0",step:"any",placeholder:"0.00",value:W,onChange:e=>M(e.target.value),className:"h-8 text-sm mt-1 bg-[#161616] border-white/10 text-white"})]}),W&&Number(W)>0&&(0,l.jsxs)("div",{className:"bg-yellow-500/10 border border-yellow-500/20 rounded-lg px-3 py-2 flex justify-between text-xs",children:[(0,l.jsx)("span",{className:"text-gray-500",children:"New allocation"}),(0,l.jsxs)("span",{className:"font-medium text-yellow-200",children:[(ea+Number(W)).toFixed(4)," ",null==(m
1=C.token)?void 0:m.toUpperCase()]})]}),(0,l.jsx)(k.$,{onClick:eu,disabled:T||!W||0>=Number(W),className:"w-full h-8 text-xs bg-yellow-400 hover:bg-yellow-500 text-black",children:T?(0,l.jsx)(n.A,{className:"h-3.5 w-3.5 animate-spin"}):"Deposit to Session"})]}),(0,l.jsxs)(I.av,{value:"withdraw",className:"space-y-3 mt-2",children:[(0,l.jsx)("p",{className:"text-[11px] text-gray-400",children:"Return funds from this session to your unified balance."}),(0,l.jsxs)("div",{className:"bg-[#161616] border border-white/10 rounded-lg px-3 py-2 flex justify-between text-xs",children:[(0,l.jsx)("span",{className:"text-gray-500",children:"Your current allocation"}),(0,l.jsxs)("span",{className:"font-medium text-gray-200",children:[ea.toFixed(4)," ",null==(h=C.token)?void 0:h.toUpperCase()]})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)($.J,{className:"text-xs text-gray-300",children:"Amount to withdraw"}),(0,l.jsx)(q.p,{type:"number",min:"0",step:"any",placeholder:"0.00",value:V,onChange:e=>G(e.target.value),className:"h-8 text-sm mt-1 bg-[#161616] border-white/10 text-white"}),V&&Number(V)>ea+1e-9&&(0,l.jsxs)("p",{className:"text-xs text-red-500 mt-1",children:["Cannot exceed your allocation of ",ea.toFixed(4)]})]}),V&&Number(V)>0&&Number(V)<=ea+1e-9&&(0,l.jsxs)("div",{className:"bg-yellow-500/10 border border-yellow-500/20 rounded-lg px-3 py-2 flex justify-between text-xs",children:[(0,l.jsx)("span",{className:"text-gray-500",children:"Remaining allocation"}),(0,l.jsxs)("span",{className:"font-medium text-yellow-200",children:[Math.max(0,ea-Number(V)).toFixed(4)," ",null==(v=C.token)?void 0:v.toUpperCase()]})]}),(0,l.jsx)(k.$,{onClick:ep,disabled:T||!V||0>=Number(V)||Number(V)>ea+1e-9,className:"w-full h-8 text-xs bg-yellow-400 hover:bg-yellow-500 text-black",children:T?(0,l.jsx)(n.A,{className:"h-3.5 w-3.5 animate-spin"}):"Withdraw from Session"})]})]}):(0,l.jsx)("p",{className:"text-xs text-gray-500",children:"This session is closed."}),"open"===C.status&&(0,l.jsxs)("div",{className:"pt-2 border-t border-white/10",children:[(0,l.jsx)("p",{className:"text-[10px] text-gray-400 mb-2",children:"Closing returns all funds to unified balance (off-chain). To move funds to wallet: close channel → custody withdraw."}),(0,l.jsx)("button",{onClick:ex,disabled:Y,className:"w-full h-7 text-xs border border-red-400/25 text-red-300 hover:bg-red-500/10 rounded-md bg-black/40 transition-colors disabled:opacity-50",children:Y?(0,l.jsx)(n.A,{className:"h-3 w-3 animate-spin inline"}):"Close Session"})]})]})}var et=t(2486);function el(e){let{open:s,mode:t,managedSession:a,loading:n,onClose:i,createContent:o,joinContent:r,manageContent:c}=e;return(0,l.jsx)(et.lG,{open:s,onOpenChange:e=>!e&&i(),children:(0,l.jsxs)(et.Cf,{className:"sm:max-w-[480px] bg-[#161616] text-gray-100 border border-white/10 max-h-[90vh] overflow-hidden flex flex-col",children:[(0,l.jsxs)(et.c7,{children:[(0,l.jsxs)(et.L3,{className:"flex items-center gap-2 text-white",children:[(0,l.jsx)(F.A,{className:"h-4 w-4 text-yellow-300"}),"create"===t?"Create Session":"join"===t?"Join Session":"Manage Session"]}),(0,l.jsx)(et.rr,{className:"text-gray-300 text-xs",children:"create"===t?"Create a new Yellow Network app session for instant off-chain transfers.":"join"===t?"Find a session you were invited to by entering its ID.":"Session ".concat(a?R(a.appSessionId,6):"")})]}),(0,l.jsxs)("div",{className:"flex-1 overflow-y-auto pr-1",children:["create"===t&&o,"join"===t&&r,"manage"===t&&c,"manage"===t&&n&&(0,l.jsx)("div",{className:"text-center py-8 text-xs text-gray-400",children:"Loading session details..."})]})]})})}function ea(e){var s;let{onYellowAuthStateChangeAction:t}=e,{userId:i}=(0,T.A)(),[o,r]=(0,a.useState)(H),c=function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"base",[t,l]=(0,a.useState)(!1),[n,i]=(0,a.useState)(!1),[o,r]=(0,a.useState)(null),[c,d]=(0,a.useState)(null),[f,u]=(0,a.useState)(null),[p,x]=(0,a.useState)(null),m=(0,a.useCallback)(async()=>{if(e&&!n){i(!0),x(null);try{let n=await B.authenticate(e,s);if(n.ok&&n.authenticated){var t,a,o;if(l(!0),r(null!=(t=n.sessionId)?t:null),d(null!=(a=n.expiresAt)?a:null),n.walletAddress)u(n.walletAddress);else try{let t=null==(o=(await B.getWalletAddresses(e)).data)?void 0:o.find(e=>e.chain===s);t&&u(t.address)}catch(e){}}else throw Error(n.message||"Authentication failed")}catch(s){let e=s instanceof Error?s.message:"Authentication failed";x(e),l(!1),S.oR.error("Auth failed: ".concat(e))}finally{i(!1)}}},[e,s]),h=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{!e||t||n||h.current||(h.current=!0,m())},[e]),{authenticated:t,authenticating:n,sessionId:o,expiresAt:c,walletAddress:f,authError:p,authenticate:m}}(i,o),d=function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"base",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"usdc",l=arguments.length>3&&void 0!==arguments[3]&&arguments[3],[n,i]=(0,a.useState)([]),[o,r]=(0,a.useState)(null),[c,d]=(0,a.useState)(null),[f,u]=(0,a.useState)(!1),[p,x]=(0,a.useState)(null),m=(0,a.useCallback)(async()=>{var l,a,n,o,c,f;if(!e)return;u(!0),x(null);let[p,m,h]=await Promise.allSettled([B.getUnifiedBalance(e,s),B.getCustodyAvailableBalance(e,s,t),B.getWalletBalances(e)]);if("fulfilled"===p.status&&p.value.ok?i(null!=(a=null==(l=p.value.data)?void 0:l.balances)?a:[]):"rejected"===p.status&&x("Failed to load unified balance"),"fulfilled"===m.status&&m.value.ok&&r(null!=(o=null==(n=m.value.data)?void 0:n.availableBalance)?o:null),"fulfilled"===h.status){let e=h.value,s=(Array.isArray(e.data)?e.data:[]).find(e=>{var s,l;return(null==(s=e.symbol)?void 0:s.toLowerCase())===t||(null==(l=e.symbol)?void 0:l.toLowerCase())===t.toUpperCase()});if(s){let e=parseFloat(null!=(c=s.balance)?c:"0"),t=null!=(f=s.decimals)?f:6,l=e>1e9?(e/10**t).toFixed(6):s.balance;d(null!=l?l:"0")}}u(!1)},[e,s,t]);return(0,a.useEffect)(()=>{e&&l&&m()},[e,l]),{unified:n,custodyAvailable:o,walletUsdcBalance:c,balancesLoading:f,balancesError:p,refreshBalances:m}}(i,o,O,c.authenticated),f=function(e,s,t){let[l,n]=(0,a.useState)([]),[i,o]=(0,a.useState)(!1),[r,c]=(0,a.useState)(!1),[d,f]=(0,a.useState)(null),[u,p]=(0,a.useState)(null);(0,a.useEffect)(()=>
1{if(!e)return void p(null);let t="yellow_channel_id_".concat(e,"_").concat(s);p(localStorage.getItem(t))},[e,s]);let x=(0,a.useCallback)(async()=>{if(e){o(!0);try{var t,l;let a=await B.getChannels(e,s);n(null!=(l=null!=(t=a.data)?t:a.channels)?l:[])}catch(e){}finally{o(!1)}}},[e,s]),m=(0,a.useCallback)(async(l,a)=>{if(!e)return!1;c(!0);try{let n=await B.fundChannel({userId:e,chain:s,asset:l,amount:a});if(n.ok){if(n.channelId&&1){let t="yellow_channel_id_".concat(e,"_").concat(s);localStorage.setItem(t,n.channelId),p(n.channelId)}return S.oR.success("Payment channel funded. Unified balance updated."),null==t||t(),await x(),!0}return S.oR.error(n.message||"Channel funding failed"),!1}catch(e){return S.oR.error(e instanceof Error?e.message:"Channel funding failed"),!1}finally{c(!1)}},[e,s,t,x]),h=(0,a.useCallback)(async l=>{if(!e)return!1;f(l);try{let a=await B.closeChannel({userId:e,chain:s,channelId:l});if(a.ok){{let t="yellow_channel_id_".concat(e,"_").concat(s);localStorage.getItem(t)===l&&(localStorage.removeItem(t),p(null))}return S.oR.success("Channel closed. Custody balance updating — may take 10–15 s for ClearNode to index the on-chain settlement."),n(e=>e.filter(e=>e.channelId!==l)),setTimeout(()=>null==t?void 0:t(),4e3),setTimeout(()=>null==t?void 0:t(),15e3),!0}return S.oR.error(a.message||"Channel close failed"),!1}catch(e){return S.oR.error(e instanceof Error?e.message:"Channel close failed"),!1}finally{f(null)}},[e,s,t]);return{channels:l,channelsLoading:i,funding:r,closingChannelId:d,storedChannelId:u,fetchChannels:x,fundChannel:m,closeChannel:h,saveChannelId:(0,a.useCallback)((t,l)=>{if(!e)return;let a="yellow_channel_id_".concat(e,"_").concat(l);localStorage.setItem(a,t),l===s&&p(t)},[e,s]),dismissStoredChannel:(0,a.useCallback)(()=>{if(!e)return;let t="yellow_channel_id_".concat(e,"_").concat(s);localStorage.removeItem(t),p(null)},[e,s])}}(i,o,d.refreshBalances),u=function(e,s,t){let[l,n]=(0,a.useState)(!1),[i,o]=(0,a.useState)(!1);return{depositing:l,withdrawing:i,depositToCustody:(0,a.useCallback)(async(l,a,i)=>{if(!e)return!1;n(!0);try{let n=await B.depositToCustody({userId:e,chain:l,asset:a,amount:i});if(n.ok){var o;let e=null==(o=n.data)?void 0:o.channelId;return e&&(null==t||t(e,l)),S.oR.success("Deposit complete. Custody and unified balances updated."),null==s||s(),!0}return S.oR.error(n.message||"Deposit failed"),!1}catch(e){return S.oR.error(e instanceof Error?e.message:"Deposit failed"),!1}finally{n(!1)}},[e,s,t]),withdrawFromCustody:(0,a.useCallback)(async(t,l,a)=>{if(!e)return!1;o(!0);try{let n=await B.withdrawFromCustody({userId:e,chain:t,asset:l,amount:a});if(n.ok)return S.oR.success("Custody withdrawal submitted successfully."),null==s||s(),!0;return S.oR.error(n.message||"Withdrawal failed"),!1}catch(e){return S.oR.error(e instanceof Error?e.message:"Withdrawal failed"),!1}finally{o(!1)}},[e,s])}}(i,()=>{d.refreshBalances(),f.fetchChannels()},f.saveChannelId),p=function(e,s){let t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=(arguments.length>3&&void 0!==arguments[3]&&arguments[3],arguments.length>4?arguments[4]:void 0),[n,i]=(0,a.useState)([]),[o,r]=(0,a.useState)(!1),[c,d]=(0,a.useState)(null),[f,u]=(0,a.useState)(!1),[p,x]=(0,a.useState)(!1),[m,h]=(0,a.useState)(null),[v,y]=(0,a.useState)({session:null,balances:[],loading:!1}),g=(e,s,t)=>e&&e.length>0?"string"==typeof e[0]?e.map(e=>({address:e,joined:!1})):e:(t&&t.length>0?t:(null!=s?s:[]).map(e=>e.participant).filter(Boolean)).map(e=>({address:e,joined:!1})),j=(0,a.useCallback)(async()=>{if(e){r(!0),d(null);try{var t,l;let a=await B.discoverSessions(e,s),n=null!=(l=null!=(t=a.sessions)?t:a.data)?l:[],o=e=>{var t,l,a;return{...e,chain:e.chain||s,token:e.token||(null!=(a=null==(l=e.allocations)||null==(t=l[0])?void 0:t.asset)?a:"usdc"),participants:g(e.participants,e.allocations)}},r=n.map(e=>o(e));i(r);let c=r.filter(e=>{var s;return!(null==(s=e.participants)?void 0:s.length)||!e.allocations||0===e.allocations.length});if(c.length>0){let t=await Promise.allSettled(c.map(t=>B.getSession(t.appSessionId,e,s))),l=new Map;t.forEach((e,t)=>{var a,n,i;if("fulfilled"!==e.status)return;let r=null!=(i=e.value.data)?i:e.value.session;if(!r)return;let d=r.definition,f=o({...r,chain:r.chain||s,token:r.token||(null==(n=r.allocations)||null==(a=n[0])?void 0:a.asset)||"usdc",participants:g(r.participants,r.allocations,null==d?void 0:d.participants)});l.set(c[t].appSessionId,f)}),l.size>0&&i(e=>e.map(e=>{var s;return null!=(s=l.get(e.appSessionId))?s:e}))}}catch(e){d(e instanceof Error?e.message:"Failed to discover sessions")}finally{r(!1)}}},[e,s]),b=(0,a.useCallback)(async t=>{if(!e)return null;u(!0);try{let a=await B.createSession({...t,userId:e,chain:s});if(a.ok&&(a.appSessionId||a.sessionId)){var l;let e=null!=(l=a.appSessionId)?l:a.sessionId;return S.oR.success("App session created successfully."),await j(),e}return S.oR.error(a.message||"Failed to create session"),null}catch(e){return S.oR.error(e instanceof Error?e.message:"Failed to create session"),null}finally{u(!1)}},[e,s,j]),N=(0,a.useCallback)(async t=>{if(e){y(e=>({...e,loading:!0}));try{var l,a,n,i,o,r,c;let[d,f]=await Promise.allSettled([B.getSession(t,e,s),B.getSessionBalances(t,e,s)]),u="fulfilled"===d.status&&null!=(n=null!=(a=d.value.data)?a:d.value.session)?n:null;if(u){let e=u.definition;u={...u,chain:u.chain||s,token:u.token||(null==(o=u.allocations)||null==(i=o[0])?void 0:i.asset)||"usdc",participants:g(u.participants,u.allocations,null==e?void 0:e.participants)}}let p="fulfilled"===f.status&&null!=(c=null!=(r=null==(l=f.value.data)?void 0:l.balances)?r:f.value.balances)?c:[];y({session:u,balances:p,loading:!1})}
1catch(e){y(e=>({...e,loading:!1}))}}},[e,s]),w=(0,a.useCallback)(async(t,a,n)=>{if(!e)return!1;x(!0);try{let c=await B.patchSession(t,{userId:e,chain:s,intent:a,allocations:n});if(c.ok){if(S.oR.success({OPERATE:"Transfer completed (gasless).",DEPOSIT:"Funds deposited into session.",WITHDRAW:"Funds withdrawn from session."}[a]),c.session){var o,r;let e=c.session.definition,t={...c.session,chain:c.session.chain||s,token:c.session.token||(null==(r=c.session.allocations)||null==(o=r[0])?void 0:o.asset)||"usdc",participants:g(c.session.participants,c.session.allocations,null==e?void 0:e.participants)};y(e=>({...e,session:t,loading:!1})),i(e=>e.map(e=>e.appSessionId===t.appSessionId?t:e))}else await N(t);return"OPERATE"===a&&setTimeout(()=>N(t),2e3),null==l||l(),!0}return S.oR.error(c.message||"".concat(a," operation failed")),!1}catch(s){let e=s instanceof Error?s.message:"Operation failed";if(e.toLowerCase().includes("unknown participant wallet"))return S.oR.error("Counterparty has not joined yet."),!1;return e.includes("zero")||e.includes("sum")||e.includes("delta")?S.oR.error("OPERATE failed: allocations must sum to exactly the current session total."):S.oR.error(e),!1}finally{x(!1)}},[e,s,N,l]),F=(0,a.useCallback)(async t=>{if(!e)return!1;h(t);try{let a=await B.closeSession(t,e,s);if(a.ok)return S.oR.success("Session closed. Funds returned to unified balance (off-chain)."),i(e=>e.filter(e=>e.appSessionId!==t)),null==l||l(),!0;return S.oR.error(a.message||"Failed to close session"),!1}catch(e){return S.oR.error(e instanceof Error?e.message:"Failed to close session"),!1}finally{h(null)}},[e,s,l]);return(0,a.useEffect)(()=>{e&&t&&j()},[e,t]),{sessions:n,sessionsLoading:o,sessionsError:c,creating:f,operating:p,closingSessionId:m,selectedSessionDetail:v,discoverSessions:j,createSession:b,loadSessionDetail:N,patchSession:w,closeSession:F}}(i,o,c.authenticated,c.walletAddress,d.refreshBalances);(0,a.useEffect)(()=>{null==t||t({authenticated:c.authenticated,authenticating:c.authenticating})},[c.authenticated,c.authenticating,t]);let[x,m]=(0,a.useState)({open:!1,mode:"create",managedSession:null}),h=(0,a.useCallback)(async e=>{m({open:!0,mode:"manage",managedSession:e}),await p.loadSessionDetail(e.appSessionId)},[p]),v=()=>m(e=>({...e,open:!1}));(0,a.useEffect)(()=>{if(!x.open||"manage"!==x.mode||!x.managedSession)return;let e=x.managedSession.appSessionId,s=setInterval(()=>{p.loadSessionDetail(e)},3e4);return()=>clearInterval(s)},[x.open,x.mode,null==(s=x.managedSession)?void 0:s.appSessionId]);let y="manage"===x.mode&&p.selectedSessionDetail.session?p.selectedSessionDetail.session:x.managedSession,[g,j]=(0,a.useState)("status"),b=(0,a.useRef)(!1),[N,w]=(0,a.useState)(new Set);(0,a.useEffect)(()=>{c.authenticated&&!b.current&&"status"===g&&(b.current=!0,j("balances"))},[c.authenticated,g]);let E=p.sessions.filter(e=>"closed"!==(e.status||"").toLowerCase()).filter(e=>!N.has(e.appSessionId)).filter(e=>{var s,t;let l=null==(s=c.walletAddress)?void 0:s.toLowerCase();return!!l&&(null==(t=e.participants)||!t.length||e.participants.some(e=>e.address.toLowerCase()===l))});return i?(0,l.jsxs)("div",{className:"bg-[#161616] border border-white/10 rounded-2xl p-4 space-y-4",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)("h2",{className:"text-base font-rubik-medium text-white flex items-center gap-1.5",children:[(0,l.jsx)(F.A,{className:"h-4 w-4 text-yellow-400"}),"Lightning Node"]}),(0,l.jsx)("p",{className:"text-[11px] text-gray-300",children:"Yellow Network off-chain payment channels"})]}),(0,l.jsxs)(A.l6,{value:o,onValueChange:r,children:[(0,l.jsx)(A.bq,{className:"h-7 w-28 text-xs bg-[#161616] border-white/10 text-white",children:(0,l.jsx)(A.yv,{})}),(0,l.jsx)(A.gC,{className:"bg-[#161616] text-white border-white/10",children:L.map(e=>(0,l.jsx)(A.eb,{value:e.id,className:"text-xs",children:e.label},e.id))})]})]}),(0,l.jsxs)(I.tU,{value:g,onValueChange:e=>j(e),children:[(0,l.jsx)(I.j7,{className:"grid grid-cols-4 h-9 bg-[#161616] border border-white/10 rounded-xl p-1",children:[{id:"status",label:"Status"},{id:"balances",label:"Balances"},{id:"moveFunds",label:"Move Funds"},{id:"appSessions",label:"App Sessions"}].map(e=>(0,l.jsx)(I.Xi,{value:e.id,className:"text-xs text-gray-300 rounded-lg px-2 data-[state=active]:bg-yellow-400 data-[state=active]:text-black data-[state=active]:shadow-sm",children:e.label},e.id))}),(0,l.jsx)(I.av,{value:"status",className:"mt-3 min-h-[430px] max-h-[430px] overflow-y-auto",children:(0,l.jsx)(V,{authenticated:c.authenticated,authenticating:c.authenticating,sessionId:c.sessionId,expiresAt:c.expiresAt,walletAddress:c.walletAddress,authError:c.authError,onReauth:c.authenticate})}),(0,l.jsx)(I.av,{value:"balances",className:"mt-3",children:(0,l.jsx)(G,{unified:d.unified,custodyAvailable:d.custodyAvailable,walletUsdcBalance:d.walletUsdcBalance,loading:d.balancesLoading,error:d.balancesError,onRefresh:d.refreshBalances,onAddFunds:()=>j("moveFunds")})}),(0,l.jsx)(I.av,{value:"moveFunds",className:"mt-3 min-h-[430px] max-h-[430px] overflow-y-auto",children:c.authenticated?(0,l.jsx)(Y,{depositing:u.depositing,withdrawing:u.withdrawing,custodyAvailable:d.custodyAvailable,unified:d.unified,channels:f.channels,channelsLoading:f.channelsLoading,closingChannelId:f.closingChannelId,storedChannelId:f.storedChannelId,onDeposit:u.depositToCustody,onWithdraw:u.withdrawFromCustody,onCloseChannel:f.closeChannel,onDismissStoredChannel:f.dismissStoredChannel,onFetchChannels:f.fetchChannels}):(0,l.jsx)("div",{className:"text-center py-8",children:(0,l.jsx)("p",{className:"text-xs text-gray-400",children:"Authenticate to access deposit/withdraw and custody channels."})})}),(0,l.jsx)(I.av,{value:"appSessions",className:"mt-3 min-h-[430px] max-h-[430px] overflow-y-auto",children:c.authenticated?(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsxs)("span",{className:"text-sm font-rubik-medium text-white",children:["App Sessions",p.sessions.length>0&&(0,l.jsx)("span",{className:"ml-1.5 bg-gray-800 text-gray-200 text-[10px] px-1.5 py-0.5 rounded-full",children:p.sessions.length})]}),(0,l.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,l.jsx)("button",{onClick:p.discoverSessions,disabled:p.sessionsLoading,className:"text-gray-400 hover:text-gray-200 disabled:opacity-40",title:"Discover sessions",children:(0,l.jsx)(C.A,{className:"h-3.5 w-3.5 ".concat(p.sessionsLoading?"animate-spin":"")})}),(0,l.jsx)(k.$,{onClick:()=>m({open:!0,mode:"create",managedSession:null}),className:"h-7 text-xs bg-yellow-400 hover:bg-yellow-500 text-black px-3",children:"New Session"})]})]}),p.sessionsLoading&&0===p.sessions.length&&(0,l.jsxs)("div",{className:"flex items-center gap-2 text-xs text-gray-400 py-4 justify-center",children:[(0,l.jsx)(n.A,{className:"h-3.5 w-3.5 animate-spin"}),"Discovering sessions…"]}),!p.sessionsLoading&&p.sessionsError&&(0,l.jsx)("p",{className:"text-xs text-red-400",children:p.sessionsError}),!p.sessionsLoading&&0===p.sessions.length&&!p.sessionsError&&(0,l.jsxs)("div",{className:"text-center py-6 text-xs text-gray-400",children:[(0,l.jsx)(F.A,{className:"h-8 w-8 mx-auto mb-2 text-gray-700"}
1),"No sessions found. Create one to get started."]}),E.map(e=>(0,l.jsx)(Z,{session:e,walletAddress:c.walletAddress,onManage:()=>h(e),onClose:()=>p.closeSession(e.appSessionId),isClosing:p.closingSessionId===e.appSessionId,onDismiss:()=>w(s=>{let t=new Set(s);return t.add(e.appSessionId),t})},e.appSessionId))]}):(0,l.jsx)("div",{className:"text-center py-8",children:(0,l.jsx)("p",{className:"text-xs text-gray-400",children:"Authenticate to access app sessions."})})})]}),(0,l.jsx)(el,{open:x.open,mode:x.mode,managedSession:y,loading:"manage"===x.mode&&p.selectedSessionDetail.loading,onClose:v,createContent:i?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(Q,{walletAddress:c.walletAddress,userId:i,chain:o,creating:p.creating,onCreate:p.createSession,onCreated:e=>{v(),S.oR.success("Session created: ".concat(e))}}),(0,l.jsx)("div",{className:"pt-3 text-center",children:(0,l.jsx)("button",{type:"button",onClick:()=>m({open:!0,mode:"join",managedSession:null}),className:"text-xs text-gray-400 hover:text-gray-200 underline underline-offset-2",children:"Have an invite? Join with Session ID"})})]}):null,joinContent:i?(0,l.jsx)(ee,{userId:i,chain:o,onFound:e=>{var s,t,l,a,n;let i=e.definition,r={...e,chain:e.chain||o,token:e.token||(null==(t=e.allocations)||null==(s=t[0])?void 0:s.asset)||"usdc",participants:(l=e.participants,a=e.allocations,n=null==i?void 0:i.participants,l&&l.length>0?"string"==typeof l[0]?l.map(e=>({address:e,joined:!1})):l:(n&&n.length>0?n:(null!=a?a:[]).map(e=>e.participant).filter(Boolean)).map(e=>({address:e,joined:!1})))};p.discoverSessions(),v(),setTimeout(()=>h(r),150)}}):null,manageContent:"manage"===x.mode&&y&&i?(0,l.jsx)(es,{session:y,balances:p.selectedSessionDetail.balances,walletAddress:c.walletAddress,operating:p.operating,onPatch:(e,s)=>p.patchSession(y.appSessionId,e,s),onClose:async()=>{let e=await p.closeSession(y.appSessionId);return e&&v(),e}}):null})]}):(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[(0,l.jsx)(F.A,{className:"h-10 w-10 text-gray-300 mb-3"}),(0,l.jsx)("p",{className:"text-gray-500 text-sm",children:"Sign in to use Lightning Nodes"})]})}function en(e){let{onOpenSend:s,selectedChainId:t}=e,[o,r]=(0,a.useState)("balance"),{loading:c,refreshBalances:d,refreshTransactions:u}=(0,f.b)(),p=c.balances||c.transactions,x="lightningNodes"===o,m=(0,a.useRef)(!1),[v,y]=(0,a.useState)(!1),[g,j]=(0,a.useState)(!1),[b,N]=(0,a.useState)(!1);(0,a.useEffect)(()=>{x||(y(!1),j(!1))},[x]);let F=(0,a.useMemo)(()=>x?"w-full bg-black text-white rounded-3xl pt-4 border-t border-gray-800 shadow-sm md:max-w-2xl md:mx-auto mt-2 mb-4 flex-1 flex flex-col transition-colors duration-500":"w-full bg-white text-gray-900 rounded-3xl pt-4 border-t border-gray-200 shadow-sm md:max-w-2xl md:mx-auto mt-2 mb-4 flex-1 flex flex-col transition-colors duration-500",[x]),C=!v||g&&b;return(0,l.jsxs)("div",{className:F,children:[(0,l.jsx)("div",{className:"flex justify-center mb-2 mx-4 md:mx-6",children:(0,l.jsx)("div",{className:"w-10 h-1 bg-gray-200 rounded-full"})}),(0,l.jsxs)("div",{className:"flex items-center justify-between mb-4 mx-4 md:mx-6 relative z-10",children:[(0,l.jsxs)("div",{className:"flex items-center gap-6",children:[(0,l.jsx)("button",{onClick:()=>r("balance"),type:"button",className:"font-rubik-medium transition-all cursor-pointer select-none py-2 px-3 -mx-3 rounded-lg relative z-10 ".concat("balance"===o?"text-gray-800 font-semibold":x?"text-gray-500 hover:text-gray-400":"text-gray-300 hover:text-gray-400"),style:{touchAction:"manipulation"},children:"Balance"}),(0,l.jsx)("button",{onClick:()=>r("transactions"),type:"button",className:"font-rubik-medium transition-all cursor-pointer select-none py-2 px-3 -mx-3 rounded-lg relative z-10 ".concat("transactions"===o?"text-gray-800 font-semibold":x?"text-gray-500 hover:text-gray-400":"text-gray-300 hover:text-gray-400"),style:{touchAction:"manipulation"},children:"Transactions"}),(0,l.jsx)("button",{onClick:()=>{r("lightningNodes"),m.current||(m.current=!0,N(!1),j(!1),y(!0))},type:"button",className:"font-rubik-medium transition-all cursor-pointer select-none py-2 px-2 -mx-2 rounded-lg relative z-10 text-sm sm:text-base ".concat("lightningNodes"===o?"text-white font-semibold":"text-gray-300 hover:text-gray-400"),style:{touchAction:"manipulation"},children:"Lightning Nodes"})]}),"lightningNodes"!==o&&(0,l.jsx)("button",{onClick:()=>{"balance"===o?d():"transactions"===o&&u()},disabled:p,type:"button",className:"text-gray-600 hover:text-gray-900 transition-colors disabled:opacity-50 flex items-center justify-center h-9 w-9 rounded-lg border border-gray-200 hover:border-gray-300 bg-white shadow-sm hover:shadow active:scale-[0.98]",style:{touchAction:"manipulation"},"aria-label":"Refresh",children:p?(0,l.jsx)(n.A,{className:"h-4 w-4 animate-spin"}):(0,l.jsx)(i.A,{className:"h-4 w-4"})})]}),(0,l.jsx)("div",{className:"mx-4 md:mx-6 mb-4 flex-1",children:"balance"===o?(0,l.jsx)(h,{onOpenSend:s,selectedChainId:t}):"transactions"===o?(0,l.jsx)(w,{}):(0,l.jsxs)("div",{className:"relative min-h-[500px]",children:[v&&(0,l.jsx)("div",{className:"absolute inset-0 z-20 flex items-center justify-center overflow-hidden bg-black transition-opacity duration-500 ".concat(C?"opacity-0 pointer-events-none":"opacity-100"),children:(0,l.jsx)("div",{className:"w-full max-w-[520px] aspect-video -translate-y-20 overflow-hidden rounded-md",children:(0,l.jsx)("video",{autoPlay:!0,muted:!0,playsInl
1ine:!0,preload:"auto",className:"h-full w-full object-cover object-top",src:"/Yellow Loading Animation.mp4",onEnded:()=>j(!0),onError:()=>{j(!0)}},"yellow-lightning-intro")})}),(0,l.jsx)("div",{className:"transition-opacity duration-500 ".concat(v&&!C?"opacity-0 pointer-events-none":"opacity-100"),children:(0,l.jsx)(ea,{onYellowAuthStateChangeAction:e=>{N(e.authenticated)}})})]})})]})}},9642:(e,s,t)=>{t.d(s,{z:()=>A});var l=t(5253),a=t(4257),n=t(2486),i=t(5458),o=t(7378),r=t(2878),c=t(1661),d=t(9816),f=t(1760),u=t(9681),p=t(1836),x=t(4435),m=t(6236),h=t(3293),v=t(2795),y=t(4508),g=t(3814),j=t(5600),b=t(3517);let N={ethereum:"Ethereum",tron:"Tron",bitcoin:"Bitcoin",solana:"Solana",base:"Base",arbitrum:"Arbitrum",polygon:"Polygon",avalanche:"Avalanche",moonbeamTestnet:"Moonbeam Testnet",astarShibuya:"Astar Shibuya",paseoPassetHub:"Paseo PassetHub",polkadot:"Polkadot",hydrationSubstrate:"Hydration",bifrostSubstrate:"Bifrost",uniqueSubstrate:"Unique",paseo:"Paseo",paseoAssethub:"Paseo AssetHub",aptos:"Aptos",aptosTestnet:"Aptos Testnet",ethereumGasless:"Ethereum",baseGasless:"Base",arbitrumGasless:"Arbitrum",optimismGasless:"Optimism",polygonGasless:"Polygon",sepoliaGasless:"Sepolia",baseSepoliaGasless:"Base Sepolia"},w={ethereum:1,base:8453,baseErc4337:8453,arbitrum:42161,arbitrumErc4337:42161,optimism:10,polygon:137,polygonErc4337:137,avalanche:43114,avalancheErc4337:43114,sepolia:0xaa36a7},F=e=>e in w||e.replace(/Erc4337$/i,"").toLowerCase()in w,C=function(e){let s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?s&&e.startsWith("0x")?e.slice(2):e:""};function S(e){let{token:s}=e,t=(0,v.Y)(s.chain||"ethereum");return(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(t,{className:"h-4 w-4 flex-shrink-0"}),(0,l.jsxs)("span",{children:[s.symbol," ",(0,l.jsxs)("span",{className:"text-white/50 text-[10px]",children:["(",N[s.chain||""]||s.chain,")"]})," ","- ",((e,s)=>{let t=parseFloat(e);return isNaN(t)?"0":(t/Math.pow(10,s)).toFixed(6).replace(/\.?0+$/,"")})(s.balance,s.decimals)]})]})}function k(e){let{value:s,token:t}=e,a=(0,v.Y)(t.chain||"ethereum");return(0,l.jsx)(r.eb,{value:s,className:"text-sm focus:bg-white/10 focus:text-white",children:(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(a,{className:"h-4 w-4 flex-shrink-0"}),(0,l.jsxs)("span",{className:"flex-1",children:[t.symbol," ",(0,l.jsxs)("span",{className:"text-white/50 text-[10px]",children:["(",N[t.chain||""]||t.chain,")"]})," ","- ",((e,s)=>{let t=parseFloat(e);return isNaN(t)?"0":(t/Math.pow(10,s)).toFixed(6).replace(/\.?0+$/,"")})(t.balance,t.decimals)]})]})})}function A(e){let{open:s,onOpenChange:t,chain:A,userId:I,onSuccess:T,initialTokenSymbol:E}=e,[D,B]=(0,a.useState)(A);(0,g.p)().getVisible();let L=(0,v.Y)(D);N[D];let[P,H]=(0,a.useState)([]),[O,W]=(0,a.useState)(null),[U,R]=(0,a.useState)(""),[M,_]=(0,a.useState)(""),[V,G]=(0,a.useState)(!1),[z,J]=(0,a.useState)(!1),[q,$]=(0,a.useState)(null),[X,Y]=(0,a.useState)({}),[Z,K]=(0,a.useState)(null),[Q,ee]=(0,a.useState)(null),[es,et]=(0,a.useState)(!1),[el,ea]=(0,a.useState)(!1),en=b.Bt.find(e=>e.id===D)||b.Bt.find(e=>{let s=e.id.toLowerCase(),t=D.toLowerCase();return!!(t.includes("ethereum")&&"ethereum"===s||t.includes("base")&&"base"===s||t.includes("arbitrum")&&"arbitrum"===s||t.includes("optimism")&&"optimism"===s||t.includes("polygon")&&"polygon"===s||t.includes("avalanche")&&"avalanche"===s)})||b.Bt[0],ei=(0,a.useCallback)(async e=>{J(!0),$(null);try{var s,t,l,a;let n=["polkadot","hydrationSubstrate","bifrostSubstrate","uniqueSubstrate","paseo","paseoAssethub"].includes(e),i=["aptos","aptosTestnet"].includes(e);if(n){let t=(await h.y2.getSubstrateBalances(I,!1))[e];if(t&&t.address){let l=[{address:null,symbol:t.token,balance:t.balance,decimals:t.decimals,chain:e}];H(l),W(null!=(s=l[0])?s:null)}else H([]),$("No address found for this Substrate chain")}else if(i){let s="aptosTestnet"===e?"testnet":"mainnet",l=await h.y2.getAptosBalance(I,s),a=[{address:null,symbol:"APT",balance:(1e8*parseFloat(l.balance)).toString(),decimals:8,chain:e}];H(a),W(null!=(t=a[0])?t:null)}else{let e=(await h.y2.getAssetsAny(I,!0)).map(e=>{var s,t;
1return{address:null!=(s=e.address)?s:null,symbol:e.symbol||"UNKNOWN",balance:e.balance||"0",decimals:null!=(t=e.decimals)?t:18,chain:e.chain}});if(e.sort((e,s)=>{let t=(e.chain||"").localeCompare(s.chain||"");return 0!==t?t:null===e.address&&null!==s.address?-1:null!==e.address&&null===s.address?1:e.symbol.localeCompare(s.symbol)}),H(e),e.length>0)if(E){let s=e.find(e=>e.symbol.toLowerCase()===E.toLowerCase());s?W(s):W(null!=(l=e[0])?l:null)}else W(null!=(a=e[0])?a:null)}}catch(l){console.warn("Failed to load tokens, falling back to native token",l);let s=e;e.endsWith("Gasless")&&("ethereumGasless"===e?s="ethereum":"baseGasless"===e?s="base":"arbitrumGasless"===e?s="arbitrum":"optimismGasless"===e?s="optimism":"polygonGasless"===e&&(s="polygon"));let t={address:null,symbol:(null==en?void 0:en.symbol)||"ETH",balance:"0",decimals:18,chain:s};H([t]),W(t),$(null)}finally{J(!1)}},[I,E,en]);(0,a.useEffect)(()=>{s&&I&&D?ei(D):(H([]),W(null),R(""),_(""),$(null),Y({}),K(null),et(!1),s||B(A))},[s,I,D,ei,A]);let eo=(e,s)=>{let t=parseFloat(e);return isNaN(t)?"0":(t/Math.pow(10,s)).toFixed(6).replace(/\.?0+$/,"")},er=async()=>{try{let e=await navigator.clipboard.readText();e.trim()&&(_(e.trim()),X.address&&Y({...X,address:void 0}))}catch(e){console.error("Failed to read clipboard:",e),$("Failed to read clipboard. Please paste manually.")}},ec=async()=>{if((()=>{let e={};if(U&&0!==U.trim().length){let s=parseFloat(U);isNaN(s)||s<=0?e.amount="Amount must be a positive number":O&&s>parseFloat(O.balance)/Math.pow(10,O.decimals)&&(e.amount="Insufficient balance. Available: ".concat(eo(O.balance,O.decimals)," ").concat(O.symbol))}else e.amount="Amount is required";let s=((e,s)=>{if(!e||0===e.trim().length)return"Recipient address is required";let t=e.trim();return["ethereum","base","arbitrum","polygon","avalanche","optimism","sepolia"].includes(s)&&!/^0x[a-fA-F0-9]{40}$/.test(t)?"Invalid Ethereum address format (must start with 0x and be 42 characters)":"tron"!==s||/^T[A-Za-z1-9]{33}$/.test(t)?"bitcoin"!==s||/^[13][a-km-zA-HJ-NP-Z1-9]{25,34}$|^bc1[a-z0-9]{39,59}$/.test(t)?"solana"===s&&(t.length<32||t.length>44)?"Invalid Solana address format (must be 32-44 characters)":["polkadot","hydrationSubstrate","bifrostSubstrate","uniqueSubstrate","paseo","paseoAssethub"].includes(s)&&(t.length<32||t.length>50||!/^[1-9A-HJ-NP-Za-km-z]+$/.test(t))?"Invalid Substrate address format (SS58 encoded, typically 32-50 characters)":"aptos"!==s&&"aptosTestnet"!==s||/^0x[a-fA-F0-9]{64}$/.test(t)?null:"Invalid Aptos address format (must start with 0x and be 66 characters)":"Invalid Bitcoin address format":"Invalid Tron address format (must start with T and be 34 characters)"})(M,(null==O?void 0:O.chain)||D);return s&&(e.address=s),Y(e),0===Object.keys(e).length})()&&O){if(void 0===O.decimals||null===O.decimals)return void $("Token data incomplete: ".concat(O.symbol," is missing decimals information from Zerion. ")+"Please try refreshing your wallet data or contact support.");if(O.decimals<0||O.decimals>36)return void $("Invalid token decimals: ".concat(O.decimals,". Decimals must be between 0 and 36."));if(!O.chain)return void $("Token data incomplete: ".concat(O.symbol," is missing chain information. ")+"Please try refreshing your wallet data or contact support.");y.E1.sendClicked(),G(!0),$(null);try{let e,s=O.chain||D;console.log("[Send Debug] Sending token:",{symbol:O.symbol,address:O.address,decimals:O.decimals,amount:U,tokenChain:s,modalChain:D}),console.log("\uD83D\uDD0D [Chain Detection] Avalanche EIP-7702 Check:",{selectedTokenChain:O.chain,modalChain:D,finalTokenChain:s,isInEIP7702Mapping:s in w,chainIdFromMapping:w[s],allEIP7702Chains:Object.keys(w)});let l=["polkadot","hydrationSubstrate","bifrostSubstrate","uniqueSubstrate","paseo","paseoAssethub"].includes(s),a=["aptos","aptosTestnet"].includes(s),n=s.replace(/Erc4337$/i,"").toLowerCase(),i=F(n)||F(s);if(i){let e=w[n]||w[s];console.log("✅ [Endpoint] Using EIP-7702 gasless endpoint (/wallet/eip7702/send)"),console.log("✅ [ChainID]",e,"(from ".concat(n," or ").concat(s,")"))}else l?console.log("ℹ️ [Endpoint] Using Substrate endpoint"):a?console.log("ℹ️ [Endpoint] Using Aptos endpoint"):(console.log("⚠️ [Endpoint] Using regular sendCrypto endpoint (/wallet/send)"),console.log("⚠️ [Reason] isGasless =",i,", tokenChain =",s));if(i){let t=w[n]||w[s];if(!t)throw Error("Chain ID not found for ".concat(s," (normalized: ").concat(n,"). ")+"Available chains: ".concat(Object.keys(w).join(", ")));
1let l=await h.y2.sendEip7702Gasless({userId:I,chainId:t,recipientAddress:M.trim(),amount:U,tokenAddress:O.address||void 0,tokenDecimals:O.decimals});if(e={txHash:l.transactionHash||l.userOpHash,userOpHash:l.userOpHash,explorerUrl:l.explorerUrl,isFirstTransaction:l.isFirstTransaction},!l.transactionHash&&l.userOpHash)try{let s=await h.y2.waitEip7702Confirmation({chainId:t,userOpHash:l.userOpHash,timeoutMs:6e4});e.txHash=s.transactionHash,e.explorerUrl=s.explorerUrl}catch(e){console.warn("Failed to wait for confirmation:",e)}}else if(l){let t=(parseFloat(U)*Math.pow(10,O.decimals)).toString();e={txHash:(await h.y2.sendSubstrateTransfer({userId:I,chain:s,to:M.trim(),amount:t,useTestnet:!1,transferMethod:"transferAllowDeath"})).txHash}}else if(a){let t="aptosTestnet"===s?"testnet":"mainnet";e={txHash:(await h.y2.sendAptosTransaction({userId:I,recipientAddress:M.trim(),amount:parseFloat(U),network:t})).transactionHash}}else e={txHash:(await h.y2.sendCrypto({userId:I,chain:s,tokenAddress:O.address||void 0,tokenDecimals:O.decimals,amount:U,recipientAddress:M.trim()})).txHash};K(e.txHash),ee(e.explorerUrl||null),et(!0),y.E1.sendCompleted(e.txHash,U,O.symbol,s),setTimeout(()=>{T&&T(),setTimeout(()=>{t(!1)},3e3)},1e3)}catch(t){let e,s="Failed to send transaction. Please try again.";t instanceof h.hD&&(s=t.message,e=t.status,422===t.status?t.message.includes("balance")?(Y({amount:t.message}),s=""):s=t.message:400===t.status?t.message.includes("address")?(Y({address:t.message}),s=""):t.message.includes("amount")?(Y({amount:t.message}),s=""):s=t.message:(503===t.status||408===t.status)&&(s="Network error. Please check your connection and try again.")),y.E1.sendFailed(s,e),s&&$(s)}finally{G(!1)}}};return(0,l.jsxs)(n.lG,{open:s,onOpenChange:t,children:[(0,l.jsxs)(n.Cf,{className:"border-white/10 bg-black/90 text-white shadow-2xl backdrop-blur w-full max-w-[360px] p-0 rounded-2xl [&>button]:text-white [&>button]:hover:text-white [&>button]:hover:bg-white/20 [&>button]:opacity-100",children:[(0,l.jsx)(n.c7,{className:"px-6 pt-5 pb-0",children:(0,l.jsxs)("div",{className:"flex flex-col gap-3 mb-0",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2 w-full",children:[(0,l.jsx)("div",{className:"relative w-7 h-7 rounded-full overflow-hidden bg-black p-1 flex items-center justify-center flex-shrink-0 border border-white/10",children:(0,l.jsx)(L,{className:"w-4 h-4 text-white"})}),(0,l.jsx)(n.L3,{className:"text-lg font-semibold text-white tracking-tight truncate max-w-[200px]",children:(e=>{if(!e)return"";let s=e.toLowerCase();return s.includes("ethereum")||s.includes("eth")?"Ethereum":s.includes("bitcoin")||s.includes("btc")?"Bitcoin":s.includes("polkadot")||s.includes("dot")?"Polkadot":s.includes("base")?"Base":s.includes("arbitrum")?"Arbitrum":s.includes("optimism")?"Optimism":s.includes("polygon")||s.includes("matic")?"Polygon":s.includes("solana")||s.includes("sol")?"Solana":s.includes("avalanche")||s.includes("avax")?"Avalanche":s.includes("tron")||s.includes("trx")?"Tron":s.includes("aptos")?"Aptos":e.replace(/\s*\(Gasless\)/i,"").replace(/Erc4337/i,"").replace(/EOA/i,"").trim()})((null==en?void 0:en.name)||A)}),(0,l.jsxs)("button",{onClick:()=>ea(!0),className:"flex items-center gap-1 px-2.5 py-1 bg-white/5 hover:bg-white/10 border border-white/10 rounded-full text-[10px] font-bold text-gray-400 hover:text-white transition-colors uppercase tracking-wider flex-shrink-0",children:["Change",(0,l.jsx)(j.A,{className:"w-3 h-3"})]})]}),(0,l.jsx)("div",{className:"text-xs text-gray-400 font-normal ml-1 text-left w-full",children:"Transfer to recipient's address"})]})}),(0,l.jsxs)("div",{className:"space-y-4 px-6 pb-6",children:[(0,l.jsxs)("div",{className:"space-y-1.5",children:[(0,l.jsx)(d.J,{htmlFor:"token",className:"text-xs font-medium text-white/80",children:"Token"}),z?(0,l.jsxs)("div",{className:"flex items-center gap-2 text-xs text-white/60 py-2",children:[(0,l.jsx)(f.A,{className:"h-3 w-3 animate-spin"}),"Loading..."]}):0===P.length?(0,l.jsx)("div",{className:"text-xs text-red-400 py-2",children:"No tokens available for this network from Zeri
1on assets."}):(0,l.jsxs)(r.l6,{value:O?"".concat(O.chain||"unknown",":").concat(O.address||"native"):void 0,onValueChange:e=>{let s=P.find(s=>"".concat(s.chain||"unknown",":").concat(s.address||"native")===e);W(null!=s?s:null)},children:[(0,l.jsx)(r.bq,{id:"token",className:"h-9 rounded-xl border-white/20 bg-white/5 text-sm text-white hover:bg-white/10",children:O?(0,l.jsx)(S,{token:O}):(0,l.jsx)(r.yv,{placeholder:"Select token"})}),(0,l.jsx)(r.gC,{className:"rounded-xl border-white/20 bg-black/95 text-white",children:P.map(e=>{let s="".concat(e.chain||"unknown",":").concat(e.address||"native");return(0,l.jsx)(k,{value:s,token:e},s)})})]})]}),(0,l.jsxs)("div",{className:"space-y-1.5",children:[(0,l.jsx)(d.J,{htmlFor:"amount",className:"text-xs font-medium text-white/80",children:"Amount"}),(0,l.jsx)(o.p,{id:"amount",type:"number",step:"any",placeholder:"0.00",value:U,onChange:e=>{R(e.target.value),X.amount&&Y({...X,amount:void 0})},disabled:V||!O,className:"h-9 rounded-xl border-white/20 bg-white/5 text-sm text-white placeholder:text-white/40 focus:border-white/40 focus:ring-white/20"}),X.amount?(0,l.jsxs)("p",{className:"text-xs text-red-400 flex items-center gap-1",children:[(0,l.jsx)(u.A,{className:"h-3 w-3"}),X.amount]}):O&&(0,l.jsxs)("p",{className:"text-xs text-white/40",children:["Available: ",eo(O.balance,O.decimals)," ",O.symbol]})]}),(0,l.jsxs)("div",{className:"space-y-1.5",children:[(0,l.jsx)(d.J,{htmlFor:"recipient",className:"text-xs font-medium text-white/80",children:"Recipient"}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(o.p,{id:"recipient",placeholder:"Enter address",value:M,onChange:e=>{_(e.target.value),X.address&&Y({...X,address:void 0})},disabled:V,className:"h-9 rounded-xl border-white/20 bg-white/5 text-sm text-white placeholder:text-white/40 focus:border-white/40 focus:ring-white/20 pr-10"}),(0,l.jsx)("button",{type:"button",onClick:er,disabled:V,className:"absolute right-2 top-1/2 -translate-y-1/2 p-1.5 bg-white/10 hover:bg-white/20 disabled:bg-white/5 disabled:cursor-not-allowed rounded-lg transition-colors",title:"Paste from clipboard",children:(0,l.jsx)(p.A,{className:"h-4 w-4 text-white/70"})})]}),X.address&&(0,l.jsxs)("p",{className:"text-xs text-red-400 flex items-center gap-1",children:[(0,l.jsx)(u.A,{className:"h-3 w-3"}),X.address]})]}),q&&(0,l.jsx)("div",{className:"rounded-lg bg-red-500/10 border border-red-500/30 p-2.5",children:(0,l.jsxs)("p",{className:"text-xs text-red-400 flex items-center gap-1.5",children:[(0,l.jsx)(u.A,{className:"h-3 w-3"}),q]})}),es&&Z&&(0,l.jsxs)("div",{className:"rounded-lg bg-green-500/10 border border-green-500/30 p-2.5",children:[(0,l.jsxs)("p",{className:"text-xs text-green-400 flex items-center gap-1.5 mb-1.5",children:[(0,l.jsx)(x.A,{className:"h-3 w-3"}),"Transaction sent!"]}),(0,l.jsxs)("a",{href:Q||((e,s)=>{if(!e)return"#";let t="paseo"===s||"paseoAssethub"===s||"moonbeamTestnet"===s||"astarShibuya"===s||"paseoPassetHub"===s,l={ethereum:{mainnet:"https://etherscan.io",testnet:"https://sepolia.etherscan.io"},base:{mainnet:"https://basescan.org",testnet:"https://sepolia.basescan.org"},arbitrum:{mainnet:"https://arbiscan.io",testnet:"https://sepolia.arbiscan.io"},polygon:{mainnet:"https://polygonscan.com",testnet:"https://mumbai.polygonscan.com"},avalanche:{mainnet:"https://snowtrace.io",testnet:"https://testnet.snowtrace.io"},moonbeamTestnet:{mainnet:"https://moonscan.io",testnet:"https://moonbase.moonscan.io"},astarShibuya:{mainnet:"https://astar.subscan.io",testnet:"https://shibuya.subscan.io"},paseoPassetHub:{mainnet:"https://assethub-polkadot.subscan.io",testnet:"https://assethub-paseo.subscan.io"}};if(l[s]){let a=t&&l[s].testnet?l[s].testnet:l[s].mainnet;return"".concat(a,"/tx/").concat(e)}let a={tron:"https://tronscan.org/#/transaction/".concat(e),bitcoin:"https://blockstream.info/tx/".concat(e),solana:"https://solscan.io/tx/".concat(e),aptos:"https://explorer.aptoslabs.com/?network=mainnet&transaction=".concat(e),aptosTestnet:"https://explorer.aptoslabs.com/?network=testnet&transaction=".concat(e)};if(a[s])return a[s];let n={polkadot:{mainnet:"https://polkadot.subscan.io",testnet:"https://paseo.subscan.io"},hydrationSubstrate:{mainnet:"https://hydradx.subscan.io",testnet:"https://hydradx-testnet.subscan.io"},bifrostSubstrate:{mainnet:"https://bifrost.subscan.io",testnet:"https://bifrost-testnet.subscan.io"},uniqueSubstrate:{mainnet:"https://unique.subscan.io",testnet:"https://unique-testnet.subscan.io"},paseo:{mainnet:"https://paseo.subscan.io",testnet:"https://paseo.subscan.io"}
1,paseoAssethub:{mainnet:"https://assethub-polkadot.subscan.io",testnet:"https://assethub-paseo.subscan.io"}};if(n[s]){let l=t?n[s].testnet:n[s].mainnet,a=C(e,!0);return"".concat(l,"/extrinsic/").concat(a)}return"#"})(Z,A),target:"_blank",rel:"noopener noreferrer",className:"text-xs text-white/70 hover:text-white hover:underline flex items-center gap-1",children:["View explorer ",(0,l.jsx)(m.A,{className:"h-3 w-3"})]})]}),(0,l.jsxs)("div",{className:"flex gap-2 pt-2",children:[(0,l.jsx)(i.$,{variant:"outline",onClick:()=>t(!1),disabled:V,className:"flex-1 h-9 text-sm rounded-full border-white/20 text-white hover:bg-white/10",children:es?"Close":"Cancel"}),!es&&(0,l.jsx)(i.$,{onClick:ec,disabled:V||z||!O,className:"flex-1 h-9 text-sm rounded-full bg-white text-black hover:bg-white/90",children:V?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(f.A,{className:"mr-1.5 h-3 w-3 animate-spin"}),"Sending"]}):"Send"})]})]})]}),(0,l.jsx)(c.t,{isOpen:el,onClose:()=>ea(!1),onSelect:e=>{B(e)},selectedChainId:A,modalOverlayClassName:"bg-transparent"})]})}},9816:(e,s,t)=>{t.d(s,{J:()=>c});
1var l=t(5253),a=t(4257),n=t(7379),i=t(2956),o=t(5681);let r=(0,i.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),c=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,l.jsx)(n.b,{ref:s,className:(0,o.cn)(r(),t),...a})});c.displayName=n.b.displayName}}]);

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.