PageSourceSearch

https://debot.ai/assets/2.2.202/Track-1BMRAX3s.js

js debot.ai collected 2026-10-05 11:58:05 UTC 46,693 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/2.2.202/NotificationsSettingsDialog-MStIZwvn.js","assets/2.2.202/vendor-Rj1RSOnu.js","assets/2.2.202/vendor-CSWN2bB-.css","assets/2.2.202/ProDialog-_IoxeTVr.js","assets/2.2.202/vendor-mui-D9GkDIbn.js","assets/2.2.202/vendor-tabler-icons-BafU9BTd.js","assets/2.2.202/CustomTextField-ZXRiYFoX.js","assets/2.2.202/index-HNKnsEb_.js","assets/2.2.202/vendor-web3-evm-GIbWFb1m.js","assets/2.2.202/vendor-react-query-B2wLbHiI.js","assets/2.2.202/vendor-react-query-xsTVg1XE.css","assets/2.2.202/vendor-dnd-Cop8zEK3.js","assets/2.2.202/vendor-web3-sol-FaBCTGTu.js","assets/2.2.202/vendor-dt-design-BfOjlafk.js","assets/2.2.202/vendor-radix-gr_Omi-V.js","assets/2.2.202/index-B6OtkUXu.css","assets/2.2.202/ProSelect-_KF5AnDJ.js","assets/2.2.202/Switch-BbbfwOiw.js","assets/2.2.202/CustomSwapInput-Ozss2EE6.js","assets/2.2.202/TabTitleGroup-CS_9_3nF.js","assets/2.2.202/TabTypes-BraCiOAM.js","assets/2.2.202/HorizontalScrollIndicators-UMuuCvr0.js","assets/2.2.202/index-ptIgEM4A.js","assets/2.2.202/PrimaryButton-BZhXV7FU.js","assets/2.2.202/DTLoadingButton-DZV3Bpp7.js","assets/2.2.202/ProTable-CL996ZLh.js","assets/2.2.202/link-CfaSn0FG.js","assets/2.2.202/CustomCheckbox-BegDgS95.js","assets/2.2.202/EmptyCard-ekM3zFb5.js","assets/2.2.202/tableLayout-DrutwETE.js","assets/2.2.202/TableBaseHeader-CqFwyfqz.js","assets/2.2.202/TableBodyDataFontContext-DVv2al_H.js","assets/2.2.202/ListTooltip-CVvf2atL.js","assets/2.2.202/volume-mute-2-DnYMbdVj.js","assets/2.2.202/StepJoyride-CDBaeguh.js","assets/2.2.202/vendor-joyride-fVDjicjc.js","assets/2.2.202/ProtocolFilterChip-nCOPYRKb.js","assets/2.2.202/bot2-Bg5mC4_t.js","assets/2.2.202/useTrackSocket-C3jAmkt7.js","assets/2.2.202/memeBlacklistStorage-CdKklZFX.js","assets/2.2.202/MemeIcon-BD2giMET.js","assets/2.2.202/useConfig-9zlgd27j.js","assets/2.2.202/TokenIcon-BSzOFlV5.js","assets/2.2.202/search-CrWtDXz4.js","assets/2.2.202/TokenIcon-D87fcMMZ.css","assets/2.2.202/AddressWidget-BXeklJBF.js","assets/2.2.202/BrowserIcon-B0sOcq7V.js","assets/2.2.202/EtherscanTxIcon-Be6xEyg4.js","assets/2.2.202/useTokenParams-Cpwi4xXU.js","assets/2.2.202/TimeWidget-DD3WgQHV.js","assets/2.2.202/PercentWidget-BPiTtlF8.js","assets/2.2.202/WalletAddressWidget-CsdMD0i-.js","assets/2.2.202/edit-pencil-C3cGZiIt.js","assets/2.2.202/useTokenDetailNavigation-Dsdk4gvA.js","assets/2.2.202/navigation-BFFxuWTV.js","assets/2.2.202/speakerphone_off-C_0_VysT.js","assets/2.2.202/WalletAvatarWithEmoji-cfRWUFMX.js","assets/2.2.202/vendor-emoji-CYAM8b89.js","assets/2.2.202/WalletIcon-Bxn68Cf3.js","assets/2.2.202/blockieCache-C8CJ9ktH.js","assets/2.2.202/TokenIsCreatedByAI-T9v6NZ2K.js","assets/2.2.202/quick_swap-D8YLPj5S.js","assets/2.2.202/useTrackSocket-DVnhHdH9.css","assets/2.2.202/TrackSettingsDialog-rxxp53oo.js","assets/2.2.202/HighlightWidthControl-Cpc0aZih.js","assets/2.2.202/TabSolid-kf60LR9o.js","assets/2.2.202/highlightMode-Cwi1GZOL.js"])))=>i.map(i=>d[i]);
2import{r as o,j as e,ex as ge,f3 as sr}from"./vendor-Rj1RSOnu.js";import{Z as ar,_ as ir,U as fe,bX as lr,ea as cr,u as gt,am as ur,b as k,D as Je,t as dr,eb as hr,L as pr}from"./index-HNKnsEb_.js";import{u as _r,i as Cn}from"./memeBlacklistStorage-CdKklZFX.js";import{C as Tr}from"./ChainWalletSelector-D41Zvs6A.js";import{L as et,a as Mn}from"./ListTooltip-CVvf2atL.js";import{F as mr}from"./FilterIcon-CANv-c8f.js";import{a as fr,D as gr,d as xr,c as bn,e as Sn}from"./highlightMode-Cwi1GZOL.js";import{T as Pn,b as Fn,g as Hn,c as kr,d as Cr,f as br,e as Sr,h as yr,j as Er,k as Ar,l as Rr,m as wr,n as Lr,o as vr,p as Ir,q as jr,r as we,s as Or,t as Nr,v as yn,w as Br,x as Kr,y as Wr,z as En,A as Dr,B as Mr,C as Pr,a as Fr,D as Hr,E as Xr,F as zr,G as Gr,H as Ur,I as Vr,J as Yr,K as An,L as qr}from"./useTrackSocket-C3jAmkt7.js";import{T as Xn,t as $r,u as zn}from"./TokenIcon-BSzOFlV5.js";import{t as Gn,h as Un,d as Rn,T as Zr,a as Jr,m as Qr,i as es,b as ts,c as wn,e as ns,p as xt,S as os,f as rs,g as ss,W as as}from"./volume-mute-2-DnYMbdVj.js";import{b as is}from"./navigation-BFFxuWTV.js";import{u as kt}from"./vendor-react-query-B2wLbHiI.js";import{T as ls,V as cs}from"./vendor-virtualized-CEuDjrLh.js";import{g as us}from"./api-DIK48lAA.js";import{F as ds}from"./FastbuyDrawerSetting-CGtk1YnI.js";import{S as hs}from"./CustomTextField-ZXRiYFoX.js";import{_ as Et}from"./vendor-web3-evm-GIbWFb1m.js";import{u as ps}from"./useMonitorTokenBadgeKind-HRAMCypc.js";import{M as _s}from"./MemeIcon-BD2giMET.js";import{P as Vn}from"./PercentWidget-BPiTtlF8.js";import{T as tt,F as Yn,O as qn}from"./TimeWidget-DD3WgQHV.js";import{L as $n}from"./link-CfaSn0FG.js";import{W as Zn}from"./WalletDetailsTooltip-BLoDK0e0.js";import{T as Ts}from"./TokenIsCreatedByAI-T9v6NZ2K.js";import{W as ms}from"./WalletIcon-Bxn68Cf3.js";import{n as Ln}from"./vendor-dt-design-BfOjlafk.js";
2import{Z as H,S as N,a as f,Y as Jn,m as Le,_ as fs,X as gs,$ as xs,W as ks}from"./vendor-mui-D9GkDIbn.js";import{D as Cs,a as bs,T as Ss}from"./trackFilterChainStorage-CaaYFX9p.js";import{S as ys}from"./layout-6-DdadJW-J.js";import{S as Es}from"./setting-BXLFkCX2.js";import{S as As}from"./volume-up-1Yr9rAXW.js";import{E as Rs,bs as ws,G as Ls,F as vs}from"./vendor-tabler-icons-BafU9BTd.js";import"./vendor-dnd-Cop8zEK3.js";import"./vendor-web3-sol-FaBCTGTu.js";import"./vendor-radix-gr_Omi-V.js";import"./WalletButton-r6nmQQHY.js";import"./wallet-SHcPpEZx.js";import"./WalletAddressWidget-CsdMD0i-.js";import"./TableBodyDataFontContext-DVv2al_H.js";import"./CustomSwapInput-Ozss2EE6.js";import"./edit-pencil-C3cGZiIt.js";import"./WalletVersionBadge-2SB2MnA-.js";import"./type-WGtdEErS.js";import"./BalanceWidget-Csmxgy7_.js";import"./CopyIcon-gqb9ih5c.js";import"./index-ptIgEM4A.js";import"./AddressWidget-BXeklJBF.js";import"./CustomCheckbox-BegDgS95.js";import"./ProDialog-_IoxeTVr.js";import"./useCoinPriceState-cX7eHu9u.js";import"./DTLoadingButton-DZV3Bpp7.js";import"./WalletRiskTip-C0PM9TXY.js";import"./utils-DJckle50.js";import"./EtherscanTxIcon-Be6xEyg4.js";import"./fetchWithStream-BYzpM5QK.js";import"./tradeErrorMessage-BYjnQWFH.js";import"./useTradeError-Beqd8_4D.js";import"./useConfig-9zlgd27j.js";import"./distribute-DaIMIF8k.js";import"./Switch-BbbfwOiw.js";import"./useTokenDetailNavigation-Dsdk4gvA.js";import"./speakerphone_off-C_0_VysT.js";import"./WalletAvatarWithEmoji-cfRWUFMX.js";import"./vendor-emoji-CYAM8b89.js";import"./quick_swap-D8YLPj5S.js";import"./search-CrWtDXz4.js";import"./StepJoyride-CDBaeguh.js";import"./vendor-joyride-fVDjicjc.js";import"./ProtocolFilterChip-nCOPYRKb.js";import"./bot2-Bg5mC4_t.js";import"./useGasPrice-DkiMKt1g.js";import"./useSolanaFee-BicD3aUI.js";import"./TabSolid-kf60LR9o.js";import"./TabTypes-BraCiOAM.js";import"./PresetWidget-Ychodt_w.js";import"./coin-BHx1q7C5.js";import"./slip-DVCbCYwL.js";import"./useTokenParams-Cpwi4xXU.js";import"./BrowserIcon-B0sOcq7V.js";import"./blockieCache-C8CJ9ktH.js";const Is=n=>o.createElement("svg",{width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n},o.createElement("path",{d:"M11.9688 7.77002C12.4781 7.77012 12.8914 8.18257 12.8916 8.69189V11.5767C12.8916 12.0861 12.4782 12.4994 11.9688 12.4995H2.0293C1.51992 12.4993 1.10742 12.0861 1.10742 11.5767V8.69189C1.10759 8.18261 1.52002 7.77018 2.0293 7.77002H11.9688ZM2.30664 11.2993H11.6914V8.96924H2.30664V11.2993ZM11.9688 1.50049C12.4781 1.50059 12.8914 1.91304 12.8916 2.42236V5.30713C12.8916 5.81659 12.4782 6.22988 11.9688 6.22998H2.0293C1.51992 6.22982 1.10742 5.81655 1.10742 5.30713V2.42236C1.10759 1.91308 1.52002 1.50065 2.0293 1.50049H11.9688ZM2.30664 5.02979H11.6914V2.69971H2.30664V5.02979Z",fill:"currentColor"})),js=n=>o.createElement("svg",{width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n},o.createElement("path",{d:"M13 12.2773H1V11.0781H13V12.2773ZM13 7.59961H1V6.40039H13V7.59961
2ZM13 2.92188H1V1.72266H13V2.92188Z",fill:"currentColor",fillOpacity:1})),Qn=()=>Et(()=>import("./NotificationsSettingsDialog-MStIZwvn.js").then(n=>n.a),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32])),eo=()=>Et(()=>import("./volume-mute-2-DnYMbdVj.js").then(n=>n.k),__vite__mapDeps([33,1,2,7,8,9,10,11,12,4,13,14,5,15,34,35,27,6,36,37,17,38,39,40,41,42,32,26,43,44,45,46,47,48,49,50,51,31,18,52,22,53,54,55,56,57,58,59,60,61,62])),to=()=>Et(()=>import("./TrackSettingsDialog-rxxp53oo.js"),__vite__mapDeps([63,1,2,7,8,9,10,11,12,4,13,14,5,15,64,17,65,20,66])),Os=o.lazy(Qn),Ns=o.lazy(eo),Bs=o.lazy(to),Ks=()=>{Qn()},Ws=()=>{eo()},Ds=()=>{to()};function Ms({openNotificationsSettingsDialog:n,soundSettingsInitialTab:r,onCloseNotificationsSettingsDialog:s,filterAnchorEl:l,setFilterAnchorEl:c,filterChain:a,filterMinAmount:u,filterMaxAmount:T,filterOpType:m,walletGroupList:h,filterGroupIds:v,filterBlacklistTokens:C,filterToken:b,filterExcludedLaunchpad:g,filterLaunchpad:_,followGlobalChain:j,onFollowGlobalChainChange:S,onFilterApply:y,settingsAnchorEl:E,setSettingsAnchorEl:D,chainRowColors:X,chainRowColorEnabled:z,chainRowHighlightMode:B,chainRowHighlightWidth:K,onChainRowColorChange:U,onChainRowColorEnabledChange:R,onChainRowHighlightModeChange:W,onChainRowHighlightWidthChange:I,walletTradeTooltipEnabled:w,onWalletTradeTooltipEnabledChange:V}){return e.jsxs(e.Fragment,{children:[n?e.jsx(o.Suspense,{fallback:null,children:e.jsx(Os,{isMobile:!1,open:!0,onClose:s,initialTab:r})}):null,l&&e.jsx(o.Suspense,{fallback:null,children:e.jsx(Ns,{filterAnchorEl:l,setFilterAnchorEl:c,filterChain:a,filterMinAmount:u,filterMaxAmount:T,filterOpType:m,walletGroupList:h,filterGroupIds:v,filterBlacklistTokens:C,filterToken:b,filterExcludedLaunchpad:g,filterLaunchpad:_,followGlobalChain:j,onFollowGlobalChainChange:S,showChainFilter:!1,onApply:y})}),E&&e.jsx(o.Suspense,{fallback:null,children:e.jsx(Bs,{settingsAnchorEl:E,setSettingsAnchorEl:D,chainRowColors:X,chainRowColorEnabled:z,chainRowHighlightMode:B,chainRowHighlightWidth:K,onChainRowColorChange:U,onChainRowColorEnabledChange:R,onChainRowHighlightModeChange:W,onChainRowHighlightWidthChange:I,walletTradeTooltipEnabled:w,onWalletTradeTooltipEnabledChange:V})})]})}const Ps=o.memo(Ms),Fs={position:"relative",padding:"12px",fontSize:"13px",lineHeight:1.35,borderBottom:"0.5px solid var(--border-default)"},no={display:"flex",maxWidth:"104px",minWidth:0},Hs={...no,maxWidth:"160px"},Xs={overflowX:"auto",whiteSpace:"nowrap"},oo={minWidth:0,maxWidth:"128px"};({...oo});const zs={flexShrink:0,fontSize:"13px"},Gs={fontSize:"13px"},ro={fontSize:"14px"},Us={cursor:"pointer",position:"relative","&:hover .track-fastbuy-button-box":{display:"block"}},xe={borderBottom:"0.5px solid var(--border-default)",boxSizing:"border-box",fontSize:"13px",height:"40px",lineHeight:1.35,px:"8px",py:"8px",whiteSpace:"nowrap"},ke={fontSize:"13px",lineHeight:1.35},so={...ke,fontSize:"12px"},Ie={...xe,width:"40px"},St={width:"50px"},me={...xe,width:"44px"},ao={minWidth:"86px",width:"86px"},io={minWidth:"120px",width:"120px"},lo={...xe,minWidth:"108px",width:"108px"},co={...xe,minWidth:"108px",width:"108px"},Vs={minWidth:0,overflow:"hidden",width:"100%"},Ys={flexShrink:0,"& img":{display:"block"}},uo={...xe,minWidth:"105px",width:"105px"},ho={...xe,minWidth:"80px",textAlign:"right",verticalAlign:"middle",width:"80px"},qs={alignItems:"center",display:"flex",justifyContent:"flex-end",minWidth:0,width:"100%"},$s={...ke},Zs={...ke,color:"var(--text-primary)",display:"inline-block",maxWidth:"68px",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Js={flexShrink:0,gap:"8px"},po={fontSize:"12px",fontWeight:400,lineHeight:1.35},_o={flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",marginTop:"-1px"},Qs={position:"absolute",right:"8px",top:"50%",display:"none",bgcolor:"var(--dt-bg-secondary)",borderRadius:"6px",overflow:"hidden",transform:"translateY(-50%)",zIndex:1},ea="_card_b4ks4_1",ta="_fastbuy_b4ks4_10",na="_between_b4ks4_28 _row_b4ks4_23",oa="_grow_b4ks4_32 _row_b4ks4_23",ra="_fixed_b4ks4_37 _row_b4ks4_23",sa="_wallet_b4ks4_45",aa="_action_b4ks4_68",ia="_position_b4ks4_74",la="_amount_b4ks4_80 _fixed_b4ks4_37 _row_b4ks4_23",ca="_symbol_b4ks4_91",L={card:ea,fastbuy:ta,between:na,grow:oa,fixed:ra,"native-amount":"_native-amount_b4ks4_41 _row_b4ks4_23",wallet:sa,"wallet-name":"_wallet-name_b4ks4_51","wallet-address":"_wallet-address_b4ks4_52",action:aa,position:ia,amount:la,"table-amount":"_table-amount_b4ks4_88 _amount_b4ks4_80 _fixed_b4ks4_37 _row_b4ks4_23",symbol
2:ca,"market-cap":"_market-cap_b4ks4_100"};function ua(n){n.stopPropagation()}function da({address:n,chain:r,avatarUrl:s,remark:l,table:c=!1}){const a=ar(n),u=a.remark||l||(n?ir(n):""),T=!!(n&&!a.remark&&!l&&u),m=o.useMemo(()=>({color:a.remark?a.color||"var(--text-brand)":"var(--text-primary)"}),[a.color,a.remark]);return e.jsxs(e.Fragment,{children:[e.jsx(ms,{address:n,chain:r,isMobile:!1,size:16,avatar:a.avatar_url||a.emoji||s}),e.jsx($n,{href:`/address/${r}/${n}`,target:"_self",style:c?no:Hs,onClick:c?ua:void 0,children:e.jsx("span",{className:T?L["wallet-address"]:L["wallet-name"],style:m,children:u})})]})}const To=o.memo(da),vn="px-1.5 py-0 text-[10px] leading-[14px] font-normal",ha=o.memo(function({amountColor:r,CoinIcon:s,nativeTokenPrice:l,volume:c}){const a=l,u=o.useMemo(()=>({..._o,color:r}),[r]);return e.jsxs("div",{className:L["native-amount"],children:[e.jsx("div",{style:u,children:e.jsx(s,{width:12,height:12})}),e.jsx(fe,{amount:a?c/a:0,noTitle:!0,color:r,sx:ro})]})});function pa({item:n,walletMeta:r,tokenMeta:s,amountColor:l,actionTitle:c,actionStyle:a,shouldShowProfitRate:u,fastbuyTokenInfo:T,CoinIcon:m,href:h,rowStyle:v,rowHighlightColor:C,rowHighlightWidth:b,showUSD:g,setShowUSD:_,monitorBadgeKind:j,walletDetailsTooltipEnabled:S}){var B,K,U,R,W,I,w,V;const{t:y}=ge(),E=o.useCallback(Ce=>{Ce.stopPropagation(),Ce.preventDefault(),_(!g)},[_,g]),D=o.useMemo(()=>C?{...v,"--track-row-highlight-color":C,"--track-row-highlight-width":`${b??2}px`}:v,[C,b,v]),X=e.jsx("div",{className:L.wallet,children:e.jsx(To,{address:n.trader,chain:n.chain,avatarUrl:(B=r==null?void 0:r.kol_smart_wallet)==null?void 0:B.avatar_url,remark:(K=r==null?void 0:r.kol_smart_wallet)==null?void 0:K.twitter_name})}),z=e.jsxs("div",{className:L.position,children:[e.jsx(Pn,{balanceAfter:(U=n.extensions)==null?void 0:U.balance_after,buyAmount:(R=n.extensions)==null?void 0:R.buy_amount,currentAmount:(W=n.extensions)==null?void 0:W.current_amount,op:n.op,positionAction:n.position_action,sellAmount:(I=n.extensions)==null?void 0:I.sell_amount}),u&&e.jsx(et,{arrow:!0,disableInteractive:!0,placement:"top",title:y("PnL"),children:e.jsx("span",{children:e.jsx(Vn,{component:"span",percent:n.profit_rate||0,precision:0,sx:po})})})]});return e.jsx($n,{style:D,className:L.card,href:h,state:s.symbol,children:e.jsxs(Mn,{enabled:!0,shareArrowTooltips:!0,children:[e.jsxs("div",{className:L.between,children:[e.jsxs("div",{className:L.grow,children:[S?e.jsx(Zn,{chain:n.chain,token:n.token,wallet:n.trader,isMobile:!1,children:X}):X,e.jsx("span",{className:L.action,style:a,children:c}),z]}),e.jsxs("div",{className:L.fixed,children:[j==="current"&&e.jsx(Ln,{variant:"brand-on-base",className:vn,children:y("CurrentToken")}),j==="diverted"&&e.jsx(Ln,{variant:"error-on-surface",className:vn,children:y("DivertedToken")}),e.jsx(tt,{unix:n.time,highlightLessSeconds:Yn,style:zs,compactDom:!0})]})]}),e.jsxs("div",{className:L.between,children:[e.jsxs("div",{className:L.grow,style:Xs,children:[e.jsx(et,{placement:"top",disableInteractive:!0,title:y(g?"ShowBaseCurrency":"ShowUSD"),children:e.jsx("div",{className:L.amount,onClick:E,children:g?e.jsx(fe,{showDollar:!0,noTitle:!0,amount:n.volume,color:l,sx:ro}):e.jsx(ha,{amountColor:l,CoinIcon:m,nativeTokenPrice:n.native_token_price,volume:n.volume})})}),e.jsx(Xn,{tokenAddress:n.token,tokenIcon:s.logo,chain:n.chain,tokenSymbol:s.symbol,isMobile:!1,size:16,preview:!0,hideChain:!0,sx:$r,shape:"circle"}),e.jsx("span",{className:L.symbol,title:s.symbol,children:s.symbol}),e.jsxs("div",{className:L.fixed,children:[e.jsx(_s,{tags:s.tags||[],tokenAddress:n.token,chain:n.chain,size:12,inlineSvgIcons:!0}),((w=s.launchpad_extra)==null?void 0:w.is_created_by_agent)&&e.jsx(Ts,{contractAddress:n.token,shouldRequest:!!((V=s.tags)!=null&&V.includes("pump"))})]}),e.jsx(tt,{unix:s.creation_timestamp,highlightLessSeconds:qn,compactDom:!0})]}),e.jsxs("div",{className:L["market-cap"],children:["MC",e.jsx(fe,{amount:n.mc||n.price*(s.total_supply||0)/10**(s.decimals||0),showDollar:!0,color:"var(--text-primary)",sx:Gs})]})]}),e.jsx("div",{className:L.fastbuy,children:e.jsx(Fn,{isMobile:!1,tokenInfo:T})})]})})}const _a=o.memo(pa),Ta=o.memo(function({amountColor:r,CoinIcon:s,nativeTokenPrice:l,volume:c}){const a=l,u=o.useMemo(()=>({..._o,color:r}),[r]);return e.jsxs(N,{direction:"row",alignItems:"center",justifyContent:"center",gap:.5,children:[e.jsx(f,{sx:u,children:e.jsx(s,{width:12,height:12})}),e.jsx(fe,{amount:a?c/a:0,noTitle:!0,color:r,sx:ke})]})}),ma={position:"relative","&::before":{content:'""',position:"absolute",left:0,top:"1px",bottom:"1px",width:"var(--track-row-highlight-width, 2px)",backgroundColor:"var(--track-row-highlight-color)",pointerEvents:"none"}},fa=o.memo(function({tableCellStyle:r,tableCellHighlightColor:s,tableCellHighlightWidth:l,unix:c,useExpandedTimeWidth:a}){const u=o.useMemo(()=>s?{...r,"--track-row-highlight-color":s,"--track-row-highlight-width":`${l??2}px`}:r,[s,l,r]);return e.jsx(H,{sx:s?{...Ie,...a?St:void 0,...ma}:a?[Ie,St]:Ie,style:u,children:e.jsx(tt,{unix:c,highlightLessSeconds:Yn,sx:so})})}),ga=o.memo(function({actionStyle:r,actionTitle:s,useExpandedStatusWidth:l,useWideStatusWidth:c,tableCellStyle:a}){return e.jsx(H,{sx:c?[me,io]:l?[me,ao]:me,style:a,children:e.jsx(N,{direction:"row",alignItems:"center",gap:.5,children:e.jsx(f,{component:"span",sx:$s,style:r,children:s})})})}),xa=o.memo(function({avatarUrl:r,chain:s,remark:l,tableCellStyle:c,token:a,trader:u,w
2alletDetailsTooltipEnabled:T}){const m=e.jsx(N,{direction:"row",alignItems:"center",sx:oo,children:e.jsx(To,{address:u,chain:s,avatarUrl:r,remark:l,table:!0})});return e.jsx(H,{sx:lo,style:c,children:T?e.jsx(Zn,{chain:s,token:a,wallet:u,isMobile:!1,children:m}):m})}),ka=o.memo(function({chain:r,creationTimestamp:s,logo:l,symbol:c,tableCellStyle:a,token:u}){return e.jsx(H,{sx:co,style:a,children:e.jsxs(N,{direction:"row",alignItems:"center",gap:.5,sx:Vs,children:[e.jsx(Xn,{tokenAddress:u,tokenIcon:l,chain:r,tokenSymbol:c,isMobile:!1,size:22,preview:!0,hideChain:!0,sx:Ys}),e.jsx(f,{component:"span",sx:Zs,title:c,children:c}),s!==void 0?e.jsx(tt,{unix:s,highlightLessSeconds:qn,sx:so}):null]})})}),Ca=o.memo(function({balanceAfter:r,buyAmount:s,currentAmount:l,op:c,positionAction:a,profitRate:u,sellAmount:T,shouldShowProfitRate:m}){const{t:h}=ge();return e.jsxs(N,{direction:"row",alignItems:"center",sx:Js,children:[e.jsx(Pn,{balanceAfter:r,buyAmount:s,currentAmount:l,op:c,positionAction:a,sellAmount:T}),m?e.jsx(et,{arrow:!0,disableInteractive:!0,placement:"top",title:h("PnL"),children:e.jsx("span",{children:e.jsx(Vn,{component:"span",percent:u||0,precision:0,sx:po})})}):null]})}),ba=o.memo(function({amountColor:r,balanceAfter:s,buyAmount:l,CoinIcon:c,
2currentAmount:a,nativeTokenPrice:u,op:T,positionAction:m,profitRate:h,sellAmount:v,setShowUSD:C,shouldShowProfitRate:b,showUSD:g,tableCellStyle:_,volume:j}){const{t:S}=ge(),y=o.useCallback(E=>{E.stopPropagation(),E.preventDefault(),C(!g)},[C,g]);return e.jsx(H,{sx:uo,style:_,children:e.jsxs(N,{direction:"row",alignItems:"center",gap:.5,children:[e.jsx(et,{placement:"top",disableInteractive:!0,title:S(g?"ShowBaseCurrency":"ShowUSD"),children:e.jsx("div",{className:L["table-amount"],onClick:y,style:{position:"relative",top:"0.8px"},children:g?e.jsx(fe,{showDollar:!0,noTitle:!0,amount:j,color:r,sx:ke}):e.jsx(Ta,{amountColor:r,CoinIcon:c,nativeTokenPrice:u,volume:j})})}),e.jsx(Ca,{balanceAfter:s,buyAmount:l,currentAmount:a,op:T,positionAction:m,profitRate:h,sellAmount:v,shouldShowProfitRate:b})]})})}),Sa=o.memo(function({amount:r,fastbuyTokenInfo:s,tableCellStyle:l}){return e.jsx(H,{sx:ho,style:l,children:e.jsxs(f,{sx:qs,children:[e.jsx(fe,{amount:r,showDollar:!0,color:"var(--text-primary)",sx:ke}),e.jsx(f,{className:"track-fastbuy-button-box",sx:Qs,children:e.jsx(Fn,{isMobile:!1,tokenInfo:s})})]})})});function ya({item:n,walletMeta:r,tokenMeta:s,amountColor:l,actionTitle:c,actionStyle:a,shouldShowProfitRate:u,fastbuyTokenInfo:T,CoinIcon:m,tableCellStyle:h,tableCellHighlightColor:v,tableCellHighlightWidth:C,showUSD:b,setShowUSD:g,walletDetailsTooltipEnabled:_}){var X,z,B,K,U,R;const{i18n:j}=ge(),S=j.language.toLowerCase(),y=!S.startsWith("zh")&&!S.startsWith("tw"),E=S.startsWith("fr")||S.startsWith("id"),D=n.mc||n.price*(s.total_supply||0)/10**(s.decimals||0);return e.jsxs(e.Fragment,{children:[e.jsx(fa,{unix:n.time,tableCellStyle:h,tableCellHighlightColor:v,tableCellHighlightWidth:C,useExpandedTimeWidth:y}),e.jsx(ga,{actionStyle:a,actionTitle:c,useExpandedStatusWidth:y,useWideStatusWidth:E,tableCellStyle:h}),e.jsx(xa,{avatarUrl:(X=r==null?void 0:r.kol_smart_wallet)==null?void 0:X.avatar_url,chain:n.chain,remark:(z=r==null?void 0:r.kol_smart_wallet)==null?void 0:z.twitter_name,tableCellStyle:h,token:n.token,trader:n.trader,walletDetailsTooltipEnabled:_}),e.jsx(ka,{chain:n.chain,creationTimestamp:s.creation_timestamp,logo:s.logo,symbol:s.symbol,tableCellStyle:h,token:n.token}),e.jsx(ba,{amountColor:l,balanceAfter:(B=n.extensions)==null?void 0:B.balance_after,buyAmount:(K=n.extensions)==null?void 0:K.buy_amount,CoinIcon:m,currentAmount:(U=n.extensions)==null?void 0:U.current_amount,nativeTokenPrice:n.native_token_price,op:n.op,positionAction:n.position_action,profitRate:n.profit_rate,sellAmount:(R=n.extensions)==null?void 0:R.sell_amount,setShowUSD:g,shouldShowProfitRate:u,showUSD:b,tableCellStyle:h,volume:n.volume}),e.jsx(Sa,{amount:D,fastbuyTokenInfo:T,tableCellStyle:h})]})}const Ea=o.memo(ya);function mo({item:n,tokenMeta:r}){const{t:s,i18n:l}=ge(),c=o.useMemo(()=>lr(n.chain),[n.chain]),a=kr(n.op),u=Cr(n.position_action),T=o.useMemo(()=>br({positionRenderType:n.position_render_type,standalonePositionEvent:n.standalone_position_event,positionSide:n.position_side,leverage:n.leverage,actionText:u?s(u):"",language:l.language,longText:s("LikwidLong"),shortText:s("LikwidShort")}),[l.language,n.leverage,n.position_side,n.position_render_type,n.standalone_position_event,u,s]),m=u?T||s(u):s(Sr(n.op)),h=yr(n.position_action)||a,v=o.useMemo(()=>({color:h}),[h]),C=o.useMemo(()=>({decimals:r.decimals||0,tokenAddress:n.token,chain:n.chain,tokenSymbol:r.symbol,tokenIcon:r.logo}),[n.chain,n.token,r.decimals,r.logo,r.symbol]);return{CoinIcon:c,actionStyle:v,actionTitle:m,amountColor:a,fastbuyTokenInfo:C,shouldShowProfitRate:n.op==="sell"}}function Aa({item:n,walletMeta:r,tokenMeta:s,showUSD:l,setShowUSD:c,chainRowColors:a,chainRowCustomColors:u,chainRowHighlightMode:T="fill",chainRowHighlightWidth:m=2,walletDetailsTooltipEnabled:h}){const{CoinIcon:v,actionStyle:C,actionTitle:b,amountColor:g,fastbuyTokenInfo:_,shouldShowProfitRate:j}=mo({item:n,tokenMeta:s}),S=o.useMemo(()=>{const D=a==null?void 0:a[n.chain];return D&&T==="fill"?Gn(D,Un(u,n.chain)):Hn(n.op)},[a,u,T,n.chain,n.op]),y=T==="highlight"?a==null?void 0:a[n.chain]:void 0,E=o.useMemo(()=>({background:S}),[S]);return e.jsx(Ea,{item:n,walletMeta:r,tokenMeta:s,amountColor:g,actionTitle:b,actionStyle:C,shouldShowProfitRate:j,fastbuyTokenInfo:_,CoinIcon:v,tableCellStyle:E,tableCellHighlightColor:y,tableCellHighlightWidth:m,showUSD:l,setShowUSD:c,walletDetailsTooltipEnabled:h})}function Ra({item:n,walletMeta:r,tokenMeta:s,showUSD:l,setShowUSD:c,chainRowColors:a,chainRowCustomColors:u,chainRowHighlightMode:T="fill",chainRowHighlightWidth:m=2,walletDetailsTooltipEnabled:h}){var B;const{getHref:v}=zn(),C=ps(n.token,s==null?void 0:s.symbol,s==null?void 0:s.name,(B=s==null?void 0:s.social_info)==null?void 0:B.twitter),{CoinIcon:b,actionStyle:g,actionTitle:_,amountColor:j,fastbuyTokenInfo:S,shouldShowProfitRate:y}=mo({item:n,tokenMeta:s}),E=o.useMemo(()=>{const K=a==null?void 0:a[n.chain];return K&&T==="fill"?Gn(K,Un(u,n.chain)):Hn(n.op)},[a,u,T,n.chain,n.op]),D=o.useMemo(()=>({...Fs,background:E}),[E]),X=T==="highlight"?a==null?void 0:a[n.chain]:void 0,z=v(n.chain,n.token);return e.jsx(_a,{item:n,walletMeta:r,tokenMeta:s,amountColor:j,actionTitle:_,actionStyle:g,shouldShowProfitRate:y,fastbuyTokenInfo:S,CoinIcon:b,href:z,walletDetailsTooltipEnabled:h,rowStyle:D,showUSD:l,setShowUSD:c,monitorBadgeKind:C,rowHighlightColor:X,rowHighlightWidth:m})}function wa(n){return n.viewMode==="table"?e.jsx(Aa,{...n}):e.jsx(Ra,{...n})}const La=o.memo(wa),ve=300,va=200,Ia=250,ja=150,In=5e3,Ct=100,Oa=[],Na={},Ba=new Set(dr.map(n=>n.chain));function Qe(n,r){if(!Array.isArray(n))return[r];const s=[],l=new Set;for(const c of n){if(typeof c!="string")continue;const a=c;!Ba.has(a)||l.has(a)||(l.add(a),s.push(a))}return s.length>0?s:[r]}function Ka(n,r){return n===r?!0:!n||!r||n.length!==r.length?!1:n.every((s,l)=>s===r[l])}const Wa={display:"flex",flexDirection:"column",height:"100%"},Da={padding:"8px 12px",borderBottom:"1px solid var(--border-muted)"},Ma={display:"flex",alignItems:"center",flexDirection:"row",ml:"4px",height:"24px",gap:"2px",p:"2px",borderRadius:"6px"},Pa={width:"22px",height:"20px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",borderRadius:"4px",color:"var(--text-primary)"},Fa={width:"22px",height:"20px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",borderRadius:"4px",color:"var(--text-tertiary)"},je={color:"var(--text-secondary)",flexShrink:0,gap:0,"& svg":{width:"16px !important",height:"16px !important",margin:0},"& .track-toast-toggle-icon":{width:"16px !important",height:"16px !important"},"&:hover":{color:"var(--text-primary)"}};({...je});const jn={...je,color:"var(--text-tertiary)"},On={...je,color:"var(--text-secondary)"},Ha={display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",position:"relative"},Xa={position:"absolute",top:0,right:0,bgcolor:"var(--text-brand)",width:"4px",height:"4px",borderRadius:"50%"},za={width:"20px",height:"20px",display:"flex",alignItems:"center",justifyContent:"center",color:"var(--text-brand)",background:"var(--brand-3)",fontSize:"12px",borderRadius:"4px",mr:"4px"},Ga={display:"flex",alignItems:"center",gap:.5,color:"var(--text-tertiary)"},bt={color:"var(--text-tertiary)"},Nn={color:"var(--text-primary)",fontWeight:400},Ua={color:"var(--text-primary)",fontWeight:400},nt={scrollbarWidth:"none",msOverflowStyle:"none","&::-webkit-scrollbar":{display:"none",width:0,height:0}},Va={flex:"1"},Ya={height:"100%"},qa={flex:1,minHeight:0,position:"relative","& .MuiTableContainer-root":nt,"& > div":nt},$a={height:"100%",...nt},Za={tableLayout:"fixed",minWidth:"100%",width:"485px"},Ja={background:"var(--bg-dialog)",color:"var(--text-tertiary)",fontWeight:400,height:"40px",overflowWrap:"normal",py:"4px",whiteSpace:"normal"},Qa={background:"var(--bg-page)",color:"var(--text-tertiary)",fontWeight:400,height:"40px",overflowWrap:"normal",py:"4px",whiteSpace:"normal"},fo="40px",ei={height:fo},Bn=16,yt=28,ti={alignItems:"center",borderBottom:"0.5px solid var(--border-default)",boxSizing:"border-box",display:"flex",height:fo,justifyContent:"center",overflow:"hidden",position:"absolute",top:0,width:`${yt}px`,zIndex:11};function Kn(n,r){return{...ti,bgcolor:n?"var(--bg-page)":"var(--bg-dialog)",...r==="left"?{left:0}:{right:0}}}const Wn={alignItems:"center",bgcolor:"transparent",border:0,boxSizing:"border-box",color:"var(--text-primary)",cursor:"pointer",display:"inline-flex",flexShrink:0,height:"100%",
2justifyContent:"center",minWidth:0,p:0,width:"100%","&:hover":{bgcolor:"var(--bg-surface)",color:"var(--text-primary)"}},Dn=160,go=o.forwardRef(({context:n,style:r,...s},l)=>e.jsx(f,{ref:l,...s,style:r,sx:nt}));go.displayName="TrackListScroller";const ni={Scroller:go},xo=o.forwardRef(({context:n,style:r,...s},l)=>{const c=o.useMemo(()=>{const a=n==null?void 0:n.scrollPaddingLeft,u=n==null?void 0:n.scrollPaddingRight;return!a&&!u?r:{...r,...a?{paddingLeft:`${a}px`}:{},...u?{paddingRight:`${u}px`}:{}}},[n==null?void 0:n.scrollPaddingLeft,n==null?void 0:n.scrollPaddingRight,r]);return e.jsx(ks,{...s,ref:l,style:c,sx:$a})});xo.displayName="TrackTableScroller";const ko=({context:n,...r})=>e.jsx(xs,{...r,sx:Za});ko.displayName="TrackTable";const Co=o.forwardRef(({context:n,...r},s)=>e.jsx(gs,{...r,ref:s}));Co.displayName="TrackTableHead";const bo=o.forwardRef(({context:n,...r},s)=>e.jsx(fs,{...r,ref:s}));bo.displayName="TrackTableBody";function oi({item:n,context:r,children:s,...l}){const c=is(),a=o.useCallback(()=>{const u=r==null?void 0:r.getHref(n.chain,n.token);u&&c.push(u)},[r,n.chain,n.token,c]);return e.jsx(Mn,{enabled:!0,shareArrowTooltips:!0,scope:e.jsx(Jn,{...l,hover:!0,sx:Us,onClick:a}),children:s})}const ri={Scroller:xo,Table:ko,TableHead:Co,TableBody:bo,TableRow:oi};function Il({inlineSurface:n="default",edgeDock:r=!1,isPopout:s=!1,toolbarCollapsed:l=!1}){const{soundsMap:c}=cr(),a=gt(t=>t.userPostsReducer.userInfo.inviteCode),u=sr(),T=gt(t=>t.customizer.activeMode),m=ur(T),{t:h,i18n:v}=ge(),{getHref:C}=zn(),b=o.useRef({}),g=o.useRef({}),[_,j]=k(`${a}_track_group_ids`,[],!0),[S,y]=o.useState(!1),[E,D]=k(Er,!0,!0),[X,z]=o.useState("system"),[B,K]=o.useState([]),U=o.useRef([]),R=o.useRef([]),W=o.useRef([]),I=o.useRef(null),w=o.useRef(null),V=o.useRef(new Map),Ce=o.useRef([]),At=o.useRef(0),Rt=o.useRef(!1),wt=o.useCallback(()=>{if(I.current=null,Rt.current){const d=R.current.length-ve;d>0&&R.current.splice(0,d);const p=W.current.length-ve;p>0&&W.current.splice(0,p);return}const t=R.current,i=W.current;R.current=[],W.current=[],!(t.length===0&&i.length===0)&&o.startTransition(()=>{K(d=>{const p=t.length>0?[...t.reverse(),...d]:d,O=Ar(p,i);return O.length>ve?O.slice(0,ve):O})})},[]),be=o.useCallback(()=>{I.current===null&&(I.current=setTimeout(wt,document.hidden?Ia:va))},[wt]);o.useEffect(()=>()=>{I.current!==null&&(clearTimeout(I.current),I.current=null),w.current!==null&&(clearTimeout(w.current),w.current=null),R.current=[],W.current=[]},[]);const Oe=o.useRef([]),[Lt,So]=o.useState(!1),[vt,It]=o.useState(null),[jt,Ot]=o.useState(null),[q,le]=k(bs,Cs),Ne=o.useCallback(t=>{w.current!==null&&(clearTimeout(w.current),w.current=null),Kt(t)},[]),Nt=o.useCallback(t=>{w.current!==null&&clearTimeout(w.current);const i=[...t];w.current=setTimeout(()=>{w.current=null,Kt(i)},ja)},[]),[Se,Be]=k("track_filter_follow_global_chain",!1,!0),G=gt(t=>Se?t.globalReducer.chain:""),yo=o.useMemo(()=>Qe(q,G),[q,G]),[Bt,Ke]=k("track_fusion_chains",yo,!0),[Q,We]=k("track_chain_selection_mode","fusion",!0),ye=o.useMemo(()=>Qe(Bt,G),[G,Bt]),x=Q==="fusion"?ye:q,De=o.useCallback(t=>{Q==="fusion"?Ke(Qe(t,G)):le(t)},[G,le,Ke,Q]),[te,Kt]=o.useState(x),Wt=o.useRef(x),[$,Dt]=k("track_filter_min_amount",""),[Z,Mt]=k("track_filter_max_amount",""),[M,Me]=k("track_filter_op_type",Rn),[ne,Pt]=k("track_filter_blacklist_tokens",!0,!0),[P,Ft]=k("track_filter_token",""),[F,Ht]=k(Rr,[]),[ot,Xt]=k(wr,[]),{contractsByChain:Pe}=_r(),[ce,Fe]=k(Zr,{},!0),[zt,He]=k(Jr,!1,!0),Xe=o.useRef(!1),[ze,Eo]=k("track_chain_row_color_enabled",!0),[Ge,Ao]=k("track_chain_row_highlight_mode",fr,!0),[Ro,Gt]=k(xr,gr,!0),rt=bn(Ro,Sn),wo=o.useCallback(t=>{Gt(bn(t,Sn))},[Gt]),[st,Lo]=k("track_wallet_trade_tooltip_enabled",!0),at=o.useMemo(()=>Qr(ce,Ge,m),[m,Ge,ce]);o.useEffect(()=>{if(zt||Xe.current||es()){Xe.current=!0;return}Xe.current=!0,He(!0);const t=ts(ce);t.changed&&Fe(t.colors)},[Fe,He,ce,zt]);const ue=o.useCallback(()=>{I.current!==null&&(clearTimeout(I.current),I.current=null),R.current=[],W.current=[],K([])},[]);o.useEffect(()=>{!Se||Q==="fusion"||x.length===1&&x[0]===G||(ue(),De([G]))},[ue,x,Se,G,De,Q]),o.useEffect(()=>{let t=Lr(M);if(localStorage.getItem(wn)!=="true"&&(t=ns(t),localStorage.setItem(wn,"true")),!vr(M,t)){Me(t);return}sessionStorage.setItem(Ss,JSON.stringify(x)),sessionStorage.setItem("track_filter_min_amount",$),sessionStorage.setItem("track_filter_max_amount",Z),sessionStorage.setItem("track_filter_op_type",JSON.stringify(M)),sessionStorage.setItem("track_filter_token",P.trim()),sessionStorage.setItem(Ir,JSON.stringify(F)),sessionStorage.setItem("track_filter_group_ids",JSON.stringify(_))},[x,$,Z,M,P,F,_,Me]);const[Ut,Vt]=k("show_usd_in_track",!1),[oe,Ue]=k("track_panel_view_mode","card"),it=o.useRef(null),J=o.useRef(null),de=o.useRef(null),[lt,vo]=o.use
2State(!1),[ct,Io]=o.useState(!1),Yt=o.useRef(!1),qt=o.useRef(!1),he=o.useRef({}),ut=o.useMemo(()=>jr(ot,F,te),[F,ot,te]),{data:pe,isLoading:dt}=kt({queryKey:["track_getTrackTransactions",_,te,M,$,Z,P,ut,a],queryFn:async()=>{if(!a)return{meta:{token:{},wallet:{}},transactions:[],next:""};const t=An($),i=An(Z),d=await hr({group_ids:_,chains:te,op:qr(M),min_volume:t,max_volume:i,token:P.trim()||void 0,launchpad:ut.length>0?ut:void 0});return I.current!==null&&(clearTimeout(I.current),I.current=null),R.current=[],W.current=[],K([]),d||{meta:{token:{},wallet:{}},transactions:[],next:""}},enabled:!!a,refetchOnWindowFocus:!1}),{data:Ee}=kt({queryKey:["getWalletGroupsList",!0,a],queryFn:()=>a?us(!0):[],enabled:!!a}),{data:re}=kt({queryKey:["getTrackAndRemarkCount",a],queryFn:()=>a?pr():null,enabled:!!a}),ht=o.useMemo(()=>pe?(b.current=Object.assign(b.current,pe.meta.token),Object.entries(pe.meta.token||{}).forEach(([t,i])=>{const d=we(i.chain,i.address||t);d&&(g.current[d]=i.tags)}),he.current=Object.assign(he.current,pe.meta.wallet),pe.transactions):[],[pe]);U.current=B,Ce.current=ht||[];const $t=o.useMemo(()=>ht??[],[ht]),pt=o.useCallback(()=>{const t=Date.now();if(t-At.current<In)return;At.current=t,Or(V.current,t);const i=[...U.current,...Ce.current,...Oe.current,...R.current],d=Array.from(V.current.values(),p=>p.data);xt({record:b.current,list:i,getKeys:p=>p.token,extraKeys:d.map(p=>p.data.token),margin:Ct}),xt({record:g.current,list:i,getKeys:p=>we(p.chain,p.token),extraKeys:d.map(p=>we(p.data.chain,p.data.token)),margin:Ct}),xt({record:he.current,list:i,getKeys:p=>p.trader,extraKeys:d.map(p=>p.data.wallet),margin:Ct})},[]);o.useEffect(()=>{pt();const t=window.setInterval(pt,In);return()=>window.clearInterval(t)},[pt]);const ee=o.useMemo(()=>_.length===0||!!(Ee!=null&&Ee.every(t=>_.includes(t.id))),[_,Ee]),Zt=o.useMemo(()=>new Set(_),[_]),Jt=o.useMemo(()=>Nr(F),[F]),_t=o.useMemo(()=>{const t=[...B,...$t].slice(0,ve),i=ee?t:t.filter(A=>!A.group_id_list||A.group_id_list.some($e=>Zt.has($e))),d=P?i.filter(A=>yn(A.token,P)):i,p=ne?d.filter(A=>!Cn(Pe,A.chain,A.token)):d,O=F.length?p.filter(A=>Br(A.tag_map,Jt,g.current[we(A.chain,A.token)],Kr(),A.chain)):p;return Wr(O,M)},[Zt,Pe,ne,F,Jt,M,P,ee,$t,B]),Qt=o.useCallback(t=>{var Tn,mn,fn,gn,xn,kn;const i=we(t.data.chain,t.data.token),d=Object.keys(t.data.tag_map||{}),p=t.data.token,O=b.current[p],A=d;(!O||O.logo!==t.data.logo||O.symbol!==t.data.token_symbol||O.decimals!==t.data.decimal||O.creation_timestamp!==t.data.token_create_time||!Ka(O.tags,A))&&(b.current[p]={...O,logo:t.data.logo,symbol:t.data.token_symbol,decimals:t.data.decimal,tags:A,creation_timestamp:t.data.token_create_time}),i&&(g.current[i]=d);const $e=t.data.wallet,Ze=he.current[$e],ae=Ze==null?void 0:Ze.kol_smart_wallet,ie={role:((Tn=t.data.wallet_ext)==null?void 0:Tn.role)||"",avatar_url:((mn=t.data.wallet_ext)==null?void 0:mn.avatar_url)||"",twitter_handle:((fn=t.data.wallet_ext)==null?void 0:fn.twitter_handle)||"",twitter_name:((gn=t.data.wallet_ext)==null?void 0:gn.twitter_name)||"",alias:((xn=t.data.wallet_ext)==null?void 0:xn.alias)||"",extension:JSON.stringify((kn=t.data.wallet_ext)==null?void 0:kn.extension)};(!ae||ae.role!==ie.role||ae.avatar_url!==ie.avatar_url||ae.twitter_handle!==ie.twitter_handle||ae.twitter_name!==ie.twitter_name||ae.alias!==ie.alias||ae.extension!==ie.extension)&&(he.current[$e]={...Ze,kol_smart_wallet:ie})},[]),Ae=o.useCallback(t=>!En({groupIdList:t.user_infos.group_id_list,activateGroupIds:_,isAll:ee})||P&&!yn(t.data.token,P)||ne&&Cn(Pe,t.data.chain,t.data.token)?"reject":Dr({data:t,activateGroupIds:_,filterChain:x,filterMinAmount:$,filterMaxAmount:Z,filterOpType:M,filterExcludedLaunchpad:F,isAll:ee}),[_,Pe,x,ne,F,Z,$,M,P,ee]),Re=o.useCallback(t=>{if(t.length===0)return;const i=t.map(d=>(Qt(d),Mr(d)));R.current.push(...i),be()},[Qt,be]),en=o.useCallback(()=>{const t=Pr({cache:V.current,shouldDisplay:i=>Ae(i)==="pass"});Re(t)},[Ae,Re]);o.useEffect(()=>{en()},[en]),Fr({onCallback:t=>{if(dt)return;const i=Ae(t);if(i==="pending_position_action"){zr(V.current,t);return}i!=="reject"&&Re([t])}}),Hr({onCallback:t=>{if(Gr(t)){const p=Ur(t);if(Ae(p)==="reject")return;Re([p]);return}if(!En({groupIdList:t.user_infos.group_id_list,activateGroupIds:_,isAll:ee}))return;Vr(t),W.current.push(t);const d=Yr({cache:V.current,data:t,shouldDisplay:p=>Ae(p)==="pass"});Re(d),be()}});const Ve=o.useCallback(t=>{Rt.current=t,t?Oe.current=_t:(Oe.current=[],(R.current.length>0||W.current.length>0)&&be()),So(t)},[_t,be]),jo=o.useMemo(()=>!Rn.every(t=>M.includes(t))||!!$||!!Z||!!P||Xr(F,x).length>0||ne||!ee,[ne,x,F,Z,$,M,P,ee]),Oo=o.useCallback((t,i)=>{Xe.current=!0,He(!0),Fe(d=>({...d,[t]:i}))},[Fe,He]),tn=o.useMemo(()=>ze?at:void 0,[at,ze]),nn=ze?Ge:void 0,Tt=Lt?Oe.current:_t,No=o.useCallback(t=>{It(t.currentTarget)},[]),Bo=o.useCallback(()=>{Ws()},[]),Ko=o.useCallback(t=>{Ot(t.currentTarget)},[]),Wo=o.useCallback(()=>{Ds()},[]),on=o.useCallback((t,i)=>e.jsx(La,{item:i,walletMeta:he.current[i.trader],tokenMeta:b.current[i.token]??Na,showUSD:Ut,setShowUSD:Vt,chainRowColors:tn,chainRowCustomColors:ce,chainRowHighlightMode:nn,chainRowHighlightWidth:rt,viewM
2ode:oe,walletDetailsTooltipEnabled:st}),[Vt,Ut,ce,tn,nn,rt,oe,st]),Do=o.useCallback(()=>{Ue("card")},[Ue]),Mo=o.useCallback(()=>{Ue("table")},[Ue]),_e=o.useCallback((t,i)=>{Yt.current!==t&&(Yt.current=t,vo(t)),qt.current!==i&&(qt.current=i,Io(i))},[]),rn=o.useCallback(()=>{const t=it.current;if(!t){_e(!1,!1);return}const i=t.scrollWidth-t.clientWidth;if(i<=1){_e(!1,!1);return}_e(t.scrollLeft>1,t.scrollLeft<i-1)},[_e]),se=o.useCallback(()=>{de.current===null&&(de.current=requestAnimationFrame(()=>{de.current=null,rn()}))},[rn]),Po=o.useCallback(t=>{var p;(p=J.current)==null||p.call(J),J.current=null;const i=t&&typeof t=="object"&&"scrollLeft"in t?t:null;if(it.current=i,!i){_e(!1,!1);return}se(),i.addEventListener("scroll",se,{passive:!0});const d=new ResizeObserver(se);d.observe(i),J.current=()=>{i.removeEventListener("scroll",se),d.disconnect()}},[se,_e]);o.useEffect(()=>()=>{var t;(t=J.current)==null||t.call(J),J.current=null,de.current!==null&&(cancelAnimationFrame(de.current),de.current=null)},[]);const Fo=S||!!vt||!!jt;o.useEffect(()=>{oe==="table"&&se()},[se,oe]);const Ye=o.useCallback(t=>{var i;(i=it.current)==null||i.scrollBy({behavior:"smooth",left:t})},[]),Ho=o.useCallback(t=>{t.preventDefault(),t.stopPropagation(),Ye(-Dn)},[Ye]),Xo=o.useCallback(t=>{t.preventDefault(),t.stopPropagation(),Ye(Dn)},[Ye]),sn=o.useCallback((t,i)=>i.uuid,[]),zo=o.useCallback(()=>{z("system"),y(!0)},[]),Go=o.useCallback(()=>{D(t=>!t)},[D]),Uo=o.useCallback(()=>{Ks()},[]),Vo=o.useCallback(()=>{y(!1),z("system")},[]),an=o.useCallback(()=>{dt||Ve(!0)},[dt,Ve]),ln=o.useCallback(()=>{Ve(!1)},[Ve]),Yo=o.useCallback(()=>{window.open("/track?tab=manager","_blank")},[]),qo=o.useCallback(()=>{if(typeof window>"u")return;const t=650,i=720,d=Math.max(0,Math.round(window.screenX+(window.outerWidth-t)/2)),p=Math.max(0,Math.round(window.screenY+(window.outerHeight-i)/2)),O=new URL("/popout/track",window.location.origin);O.searchParams.set("popout","true");const A=window.open(O.toString(),"debot-track-popout",["popup=yes",`width=${t}`,`height=${i}`,`left=${d}`,`top=${p}`,"menubar=no","toolbar=no","location=no","status=no","resizable=yes","scrollbars=yes"].join(","));A==null||A.focus()},[]),$o=o.useCallback(t=>{ue(),De(t.filterChain),Dt(t.filterMinAmount),Mt(t.filterMaxAmount),Me(t.filterOpType),Pt(t.filterBlacklistTokens),Ft(t.filterToken),Ht(t.filterExcludedLaunchpad),Xt(t.filterLaunchpad),j(t.filterGroupIds),Ne(t.filterChain)},[ue,j,De,Mt,Dt,Me,Pt,Ft,Ht,Xt,Ne]),cn=o.useMemo(()=>Qe(x,G),[x,G]),un=o.useCallback(t=>{t.length===q.length&&t.every((i,d)=>i===q[d])||le(t)},[q,le]),Zo=o.useCallback(t=>{t.length===ye.length&&t.every((i,d)=>i===ye[d])||Ke(t)},[ye,Ke]);o.useEffect(()=>{const t=Wt.current;if(Wt.current=x,(t.length!==x.length||t.some((i,d)=>i!==x[d]))&&ue(),!(x.length===te.length&&x.every((i,d)=>i===te[d])))return Q==="fusion"?Nt(x):Ne(x),()=>{w.current!==null&&(clearTimeout(w.current),w.current=null)}},[ue,x,te,Nt,Ne,Q]);const dn=o.useCallback(t=>{const i=u.getState().globalReducer.chain;Be(t),t&&We("single"),!(!t||q.length===1&&q[0]===i)&&le([i])},[q,u,le,Be,We]),Jo=o.useCallback(t=>{We(t)},[We]),Qo=o.useCallback(t=>{Be(!1),un([t.chain])},[un,Be]),Y=o.useMemo(()=>r?Qa:Ja,[r]),qe=v.language.toLowerCase(),mt=!qe.startsWith("zh")&&!qe.startsWith("tw"),hn=qe.startsWith("fr")||qe.startsWith("id"),er=o.useMemo(()=>Kn(r,"left"),[r]),tr=o.useMemo(()=>Kn(r,"right"),[r]),nr=o.useCallback(()=>e.jsxs(Jn,{sx:ei,children:[e.jsx(H,{sx:mt?[Ie,St,Y]:[Ie,Y],children:h("Time")}),e.jsx(H,{sx:hn?[me,io,Y]:mt?[me,ao,Y]:[me,Y],children:h("Status")}),e.jsx(H,{sx:[lo,Y],children:h("Address")}),e.jsx(H,{sx:[co,Y],children:h("Token")}),e.jsx(H,{sx:[uo,Y],children:h("Total")}),e.jsx(H,{sx:[ho,Y],children:h("MKTCap")})]}),[h,Y,mt,hn]),or=o.useMemo(()=>({getHref:C,scrollPaddingLeft:lt?yt:0,scrollPaddingRight:ct?yt:0}),[C,lt,ct]),ft=r?"default":n,Te=ft==="onSecondary",rr=o.useMemo(()=>({...Ma,bgcolor:Te?"var(--bg-dialog-component)":"var(--bg-page-component)"}),[Te]),pn=o.useMemo(()=>({...Pa,bgcolor:Te?"var(--bg-dialog-component-selected)":"var(--bg-page-component-selected)"}),[Te]),_n=o.useMemo(()=>({...Fa,"&:hover":{bgcolor:Te?"var(--bg-dialog-component-selected)":"var(--bg-page-component-selected)",color:"var(--text-primary)"}}),[Te]);return e.jsxs(e.Fragment,{children:[e.jsxs(N,{style:Wa,children:[!l&&e.jsxs(N,{p:0,gap:.5,style:Da,children:[e.jsxs(N,{direction:"row",justifyContent:"space-between",alignItems:"center",gap:.5,fontSize:"12px",children:[e.jsx(N,{direction:"row",alignItems:"center",gap:.75,children:e.jsxs(f,{id:"wallet-track-filter-guide-target",sx:Ha,onClick:No,onMouseEnter:Bo,children:[e.jsx(mr,{size:16,color:"var(--text-secondary)"}),jo&&e.jsx(f,{sx:Xa})]})}),e.jsxs(N,{direction:"row",alignItems:"center",gap:0,children:[Lt&&e.jsx(f,{sx:za,children:e.jsx(Rs,{size:12,color:"var(--text-brand)"})}),e.jsx(Je,{type:"button",variant:"ghost",color:"neutral",surface:"dialog",iconOnly:!0,size:"xs",sx:je,onClick:Ko,onMouseEnter:Wo,children:e.jsx(Es,{size:16,stroke:2,color:"currentColor"})}),s?null:e.jsx(Le,{title:h("OpenPopoutWindow"),placement:"top",children:e.jsx(Je,{"aria-label":h("OpenPopoutWindow"),type:"button",variant:"ghost",color:"neutral",surface:"dialog",iconOnly:!0,size:"xs",sx:je,onClick:qo,children:e.jsx(ys,{size:16,stroke:2,color:"currentColor"})})}),e.jsx(Le,{title:h(E?"DisableTrackToast":"EnableTrackToast"),children:e.jsx(Je,{"aria-label":h(E?"DisableTrackToast":"EnableTrackToast"),type:"button",variant:"ghost",color:"neutral",surface:"dialog",iconOnly:!0,size:"xs",sx:E?On:jn,onClick:Go,children:E?e.
2jsx(os,{className:"track-toast-toggle-icon",width:16,height:16,color:"currentColor"}):e.jsx(rs,{className:"track-toast-toggle-icon",width:16,height:16,color:"currentColor"})})}),e.jsx(Je,{type:"button",variant:"ghost",color:"neutral",surface:"dialog",iconOnly:!0,size:"xs",sx:c!=null&&c.track?On:jn,onClick:zo,onMouseEnter:Uo,children:c!=null&&c.track?e.jsx(As,{size:16,stroke:2,color:"currentColor"}):e.jsx(ss,{size:16,stroke:2,color:"currentColor"})}),e.jsxs(N,{sx:rr,children:[e.jsx(Le,{title:h("Card"),placement:"top",children:e.jsx(f,{sx:oe==="card"?pn:_n,onClick:Do,children:e.jsx(Is,{width:14,height:14})})}),e.jsx(Le,{title:h("List"),placement:"top",children:e.jsx(f,{sx:oe==="table"?pn:_n,onClick:Mo,children:e.jsx(js,{width:14,height:14})})})]})]})]}),e.jsx(f,{my:"6px",children:e.jsx(hs,{value:ft,children:e.jsxs(N,{direction:"row",alignItems:"center",gap:1,children:[e.jsx(Tr,{displayVariant:"compact",selectionMode:Q,onSelectionModeChange:Jo,followCurrentChain:Se,onFollowCurrentChainChange:dn,singleChain:cn[0],onSingleChainChange:Qo,selectedChains:ye,onSelectedChainsChange:Zo,showWalletSelectionCount:!1,surface:ft==="onSecondary"?"dialog":"default"}),e.jsx(ds,{isMobile:!1,chains:cn,hideQuickBuy:!0,hideConfig:!0,hideWallet:!0,selectPreset:!0,size:"small",gap:"4px",controlRadius:"4px",controlHeight:"28px"})]})})}),re&&e.jsxs(N,{direction:"row",alignItems:"center",gap:.5,fontSize:"13px",mt:.5,justifyContent:"space-between",children:[e.jsxs(f,{sx:Ga,children:[e.jsx(f,{component:"span",sx:bt,children:h("TradeNotificationWalletCount")}),e.jsx(f,{component:"span",sx:Nn,children:(re==null?void 0:re.track_notification_count)||0}),e.jsx(f,{component:"span",sx:bt,children:"/"}),e.jsx(f,{component:"span",sx:bt,children:h("TrackWalletCount")}),e.jsx(f,{component:"span",sx:Nn,children:(re==null?void 0:re.track_wallet_count)||0})]}),e.jsx(N,{sx:Ua,children:e.jsx(Le,{title:h("GoToOpenRealTimeNotification"),placement:"top",children:e.jsx(ws,{onClick:Yo,size:16})})})]})]}),oe==="table"?e.jsxs(f,{sx:qa,children:[e.jsx(ls,{onMouseEnter:an,onMouseLeave:ln,style:Ya,data:Tt,components:ri,context:or,scrollerRef:Po,fixedHeaderContent:nr,itemContent:on,computeItemKey:sn}),lt?e.jsx(f,{sx:er,children:e.jsx(f,{"aria-label":"Scroll table left",component:"button",onClick:Ho,sx:Wn,type:"button",children:e.jsx(Ls,{size:Bn,stroke:2})})}):null,ct?e.jsx(f,{sx:tr,children:e.jsx(f,{"aria-label":"Scroll table right",component:"button",onClick:Xo,sx:Wn,type:"button",children:e.jsx(vs,{size:Bn,stroke:2})})}):null]}):e.jsx(cs,{onMouseEnter:an,onMouseLeave:ln,style:Va,components:ni,data:Tt,itemContent:on,totalCount:Tt.length,computeItemKey:sn})]}),Fo?e.jsx(Ps,{openNotificationsSettingsDialog:S,soundSettingsInitialTab:X,onCloseNotificationsSettingsDialog:Vo,filterAnchorEl:vt,setFilterAnchorEl:It,filterChain:x,filterMinAmount:$,filterMaxAmount:Z,filterOpType:M,walletGroupList:Ee||Oa,filterGroupIds:_,filterBlacklistTokens:ne,filterToken:P,filterExcludedLaunchpad:F,filterLaunchpad:ot,followGlobalChain:Se,onFollowGlobalChainChange:dn,onFilterApply:$o,settingsAnchorEl:jt,setSettingsAnchorEl:Ot,chainRowColors:at,chainRowColorEnabled:ze,chainRowHighlightMode:Ge,chainRowHighlightWidth:rt,onChainRowColorChange:Oo,onChainRowColorEnabledChange:Eo,onChainRowHighlightModeChange:Ao,onChainRowHighlightWidthChange:wo,walletTradeTooltipEnabled:st,onWalletTradeTooltipEnabledChange:Lo}):null,e.jsx(as,{})]})}export{Il as default};

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.