PageSourceSearch

https://jetton-fun.vercel.app/_next/static/chunks/app/screener/pag…?dpl=dpl_12UHUCjP6sUFkggb7UC7NTMUs2KZ

js jetton-fun.vercel.app collected 2026-10-03 07:09:10 UTC 31,678 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[984],{15957:(e,t,s)=>{"use strict";s.d(t,{default:()=>i});var a=s(95155),n=s(12115);let r=null,l=0;function i(e){let{compact:t=!1}=e,[s,i]=(0,n.useState)(r),[c,o]=(0,n.useState)(!1);if((0,n.useEffect)(()=>{let e=!0,t=async()=>{if(r&&Date.now()-l<9e4)return void i(r);try{let t=await fetch("/api/ton-price",{cache:"no-store"}),s=await t.json();if(!e)return;if(!t.ok||!s.ok)return void o(!0);r={usd:s.usd,changePct24h:s.changePct24h},l=Date.now(),i(r),o(!1)}catch(t){e&&o(!0)}};t();let s=setInterval(t,9e4);return()=>{e=!1,clearInterval(s)}},[]),c||!s)return(0,a.jsxs)("span",{className:"font-mono text-[0.65rem] uppercase tracking-wider text-muted",children:["TON \xb7 ",(0,a.jsx)("span",{className:"text-fg/60",children:"—"})]});let d=s.changePct24h>=0;return(0,a.jsxs)("span",{className:"inline-flex items-center gap-1.5 font-mono text-[0.65rem] uppercase tracking-wider",children:[(0,a.jsx)("span",{className:"text-muted",children:"TON"}),(0,a.jsxs)("span",{className:"text-fg tabular-nums",children:["$",s.usd.toFixed(2)]}),!t&&(0,a.jsxs)("span",{className:"".concat(d?"text-acid":"text-hot"," tabular-nums"),children:[d?"▲":"▼"," ",Math.abs(s.changePct24h).toFixed(2),"%"]})]})}},23640:(e,t,s)=>{Promise.resolve().then(s.bind(s,67645))},67645:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>F});var a=s(95155),n=s(12115),r=s(15239),l=s(52619),i=s.n(l);let c={tab:"trending",dex:"all",age:"all",minMcap:0,minVol:0,boostedOnly:!1,sortKey:"trending",sortDir:"desc",search:""};function o(e){let{value:t,onChange:s}=e;return(0,a.jsx)("div",{className:"flex items-center gap-px border border-line bg-grid font-mono text-[0.7rem] uppercase tracking-wider",children:[{id:"trending",label:"trending",tag:"hot"},{id:"new",label:"new pairs"},{id:"graduating",label:"graduating"},{id:"graduated",label:"graduated"},{id:"all",label:"all"}].map(e=>(0,a.jsxs)("button",{onClick:()=>s(e.id),className:"px-3 py-1.5 transition-colors ".concat(t===e.id?"bg-fg text-bg":"text-muted hover:text-fg"),children:[e.label,e.tag&&(0,a.jsx)("span",{className:"ml-1.5 text-[0.55rem] ".concat(t===e.id?"text-hot":"text-acid"),children:"●"})]},e.id))})}function d(e){let{state:t,setState:s,totalCount:n,filteredCount:r}=e;return(0,a.jsxs)("div",{className:"flex items-center gap-2 flex-wrap font-mono text-[0.7rem] uppercase tracking-wider",children:[(0,a.jsx)("div",{className:"flex items-center gap-px border border-line bg-grid",children:["all","DeDust","STON.fi"].map(e=>(0,a.jsx)("button",{onClick:()=>s({...t,dex:e}),className:"px-2 py-1.5 transition-colors ".concat(t.dex===e?"bg-fg text-bg":"text-muted hover:text-fg"),children:e},e))}),(0,a.jsxs)("div",{className:"flex items-center gap-px border border-line bg-grid",children:[(0,a.jsx)("span",{className:"px-2 py-1.5 text-muted border-r border-line",children:"age"}),["all","1h","24h","7d"].map(e=>(0,a.jsx)("button",{onClick:()=>s({...t,age:e}),className:"px-2 py-1.5 transition-colors ".concat(t.age===e?"bg-fg text-bg":"text-muted hover:text-fg"),children:e},e))]}),(0,a.jsxs)("label",{className:"flex items-center gap-1.5 border border-line bg-grid px-2 py-1.5",children:[(0,a.jsx)("span",{className:"text-muted",children:"mcap≥"}),(0,a.jsxs)("select",{value:t.minMcap,onChange:e=>s({...t,minMcap:Number(e.target.value)}),className:"bg-transparent font-mono text-[0.7rem] uppercase tracking-wider text-fg outline-none cursor-pointer",children:[(0,a.jsx)("option",{value:0,children:"any"}),(0,a.jsx)("option",{value:1e3,children:"1k"}),(0,a.jsx)("option",{value:1e4,children:"10k"}),(0,a.jsx)("option",{value:5e4,children:"50k"}),(0,a.jsx)("option",{value:1e5,children:"100k"}),(0,a.jsx)("option",{value:1e6,children:"1M"})]})]}),(0,a.jsxs)("label",{className:"flex items-center gap-1.5 border border-line bg-grid px-2 py-1.5",children:[(0,a.jsx)("span",{className:"text-muted",children:"vol≥"}),(0,a.jsxs)("select",{value:t.minVol,onChange:e=>s({...t,minVol:Number(e.target.value)}),className:"bg-transparent font-mono text-[0.7rem] uppercase tracking-wider text-fg outline-none cursor-pointer",children:[(0,a.jsx)("option",{value:0,children:"any"}),(0,a.jsx)("option",{value:1e3,children:"1k"}),(0,a.jsx)("option",{value:1e4,children:"10k"}),(0,a.jsx)("option",{value:1e5,children:"100k"}),(0,a.jsx)("option",{value:1e6,children:"1M"})]})]}),(0,a.jsxs)("button",{onClick:()=>s({...t,boostedOnly:!t.boostedOnly}),className:"flex items-center gap-1.5 border px-2 py-1.5 transition-colors ".concat(t.boostedOnly?"border-butter bg-butter/15 text-butter":"border-line bg-grid text-muted hover:text-fg"),children:[(0,a.jsx)("span",{className:"size-1.5 rounded-full",style:{background:t.boostedOnly?"#FFD23F":"#737373"}}),"boosted only"]}),(0,a.jsxs)("div",{className:"flex items-center border border-line bg-grid",children:[(0,a.jsx)("span",{className:"px-2 py-1.5 text-muted",children:"/"}),(0,a.jsx)("input",{value:t.search,onChange:e=>s({...t,search:e.target.value}),placeholder:"search ticker",className:"bg-transparent px-1 py-1.5 font-mono text-[0.7rem] uppercase tracking-wider text-fg outline-none w-32"})]}),(0,a.jsxs)("div",{className:"ml-auto flex items-center gap-2 text-muted",children:[(0,a.jsxs)("span",{children:[(0,a.jsx)("span",{className:"text-fg",children:r})," / ",n]}),(0,a.jsx)("span",{children:"\xb7"}),(0,a.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,a.jsx)("span",{className:"size-1.5 rounded-full bg-acid animate-pulse"}),"live"]})]})]})}var x=s(75843);function m(e){let{rows:t}=e,s=[...[...t].sort((e,t)=>
1t.pct24h-e.pct24h).slice(0,10),...[...t].sort((e,t)=>e.pct24h-t.pct24h).slice(0,5)];return(0,a.jsx)("div",{className:"border-b border-line bg-grid/30 marquee-mask overflow-hidden",children:(0,a.jsx)("div",{className:"flex animate-marquee gap-6 py-2 whitespace-nowrap font-mono text-[0.78rem]",children:Array.from({length:2}).map((e,t)=>(0,a.jsx)("div",{className:"flex shrink-0 gap-6",children:s.map(e=>(0,a.jsxs)("span",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"inline-grid place-items-center size-4 font-mono text-[0.5rem] font-bold uppercase",style:{background:e.bg,color:e.fg},children:e.label.charAt(0)}),(0,a.jsxs)("span",{className:"text-fg/85",children:["$",e.ticker]}),(0,a.jsx)("span",{className:"text-muted",children:(0,x.xe)(e.priceUsd)}),(0,a.jsx)("span",{className:e.pct24h>=0?"text-acid":"text-hot",children:(0,x.pT)(e.pct24h)}),(0,a.jsx)("span",{className:"text-muted",children:"\xb7"})]},"".concat(t,"-").concat(e.id)))},t))})})}function h(e){let{data:t,positive:s,width:n=84,height:r=26}=e;if(!t.length)return null;let l=Math.min(...t),i=Math.max(...t)-l||1,c=n/(t.length-1),o="M"+t.map((e,t)=>{let s=r-(e-l)/i*(r-2)-1;return"".concat((t*c).toFixed(1),",").concat(s.toFixed(1))}).join(" L"),d=s?"#00FF87":"#FF006E";return(0,a.jsxs)("svg",{viewBox:"0 0 ".concat(n," ").concat(r),width:n,height:r,className:"shrink-0",children:[(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"sg-".concat(s?"u":"d"),x1:"0",x2:"0",y1:"0",y2:"1",children:[(0,a.jsx)("stop",{offset:"0",stopColor:d,stopOpacity:"0.35"}),(0,a.jsx)("stop",{offset:"1",stopColor:d,stopOpacity:"0"})]})}),(0,a.jsx)("path",{d:"".concat(o," L ").concat(n,",").concat(r," L 0,").concat(r," Z"),fill:"url(#sg-".concat(s?"u":"d",")")}),(0,a.jsx)("path",{d:o,fill:"none",stroke:d,strokeWidth:"1.4"})]})}let p=[{key:"rank",label:"#",align:"left"},{key:"token",label:"token",align:"left"},{key:"vol24h",label:"price",align:"right"},{key:"age",label:"age",align:"right"},{key:"trending",label:"txns",align:"right"},{key:"vol24h",label:"vol 24h",align:"right"},{key:"trending",label:"makers",align:"right"},{key:"pct5m",label:"5m",align:"right"},{key:"pct1h",label:"1h",align:"right"},{key:"pct6h",label:"6h",align:"right"},{key:"pct24h",label:"24h",align:"right"},{key:"liq",label:"liq",align:"right"},{key:"mcap",label:"mcap",align:"right"},{key:"spark",label:"",align:"right"}],u="44px 1fr 96px 56px 64px 90px 64px 56px 56px 56px 56px 80px 90px 96px";function g(e){let{rows:t,onPick:s,sortKey:n,sortDir:r,onSort:l}=e;return(0,a.jsxs)("div",{className:"border border-line bg-grid/20 brut overflow-hidden",children:[(0,a.jsx)("div",{className:"grid border-b border-line bg-grid/60 px-3 py-2 font-mono text-[0.62rem] uppercase tracking-wider text-muted",style:{gridTemplateColumns:u},children:p.map((e,t)=>{var s;let i="rank"!==e.key&&"token"!==e.key&&"spark"!==e.key,c=i&&n===e.key;return(0,a.jsxs)("button",{onClick:()=>i&&l(e.key),className:"text-".concat(null!=(s=e.align)?s:"left"," ").concat(i?"cursor-pointer hover:text-fg":"cursor-default"," ").concat(c?"text-acid":""),disabled:!i,children:[e.label,c&&(0,a.jsx)("span",{className:"ml-1",children:"desc"===r?"↓":"↑"})]},"".concat(e.label,"-").concat(t))})}),(0,a.jsxs)("div",{className:"max-h-[68vh] overflow-y-auto",children:[t.map((e,t)=>(0,a.jsxs)("button",{onClick:()=>s(e),className:"grid w-full items-center border-b border-line/40 px-3 py-2 text-left transition-colors hover:bg-grid/60 hover:border-line",style:{gridTemplateColumns:u},children:[(0,a.jsxs)("span",{className:"font-mono text-[0.62rem] text-muted flex items-center gap-1",children:[e.boosted&&(0,a.jsx)("span",{className:"size-1.5 bg-butter shrink-0",title:"boosted"}),t+1]}),(0,a.jsxs)("span",{className:"flex items-center gap-2.5 min-w-0 pr-3",children:[e.imageUrl?(0,a.jsx)("span",{className:"size-7 shrink-0 overflow-hidden border border-line bg-bg",children:(0,a.jsx)("img",{src:e.imageUrl,alt:e.ticker,className:"size-full object-cover",loading:"lazy",onError:e=>{e.currentTarget.style.display="none"}})}):(0,a.jsx)("span",{className:"grid size-7 shrink-0 place-items-center font-mono text-[0.55rem] font-bold uppercase",style:{background:e.bg,color:e.fg},children:e.label.charAt(0)}),(0,a.jsxs)("span",{className:"flex flex-col min-w-0",children:[(0,a.jsxs)("span",{className:"flex items-baseline gap-1.5 min-w-0",children:[(0,a.jsxs)("span",{className:"font-mono text-[0.78rem] truncate",children:["$",e.ticker]}),(0,a.jsx)("span",{className:"text-[0.65rem] text-muted truncate",children:e.name})]}),(0,a.jsxs)("span",{className:"font-mono text-[0.6rem] text-muted flex items-center gap-1.5",children:[(0,a.jsx)("span",{className:"text-acid/80",children:e.dex}),(0,a.jsx)("span",{children:"\xb7"}),(0,a.jsx)("span",{children:e.creator}),e.graduated&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{children:"\xb7"}),(0,a.jsx)("span",{className:"text-acid",children:"graduated"})]})]})]})]}),(0,a.jsx)("span",{className:"font-mono text-[0.78rem] text-right tabular-nums",children:(0,x.xe)(e.priceUsd)}),(0,a.jsx)("span",{className:"font-mono text-[0.7rem] text-right text-muted tabular-nums",children:(0,x.rK)(e.ageSec)}),(0,a.jsx)("span",{className:"font-mono text-[0.7rem] text-right text-fg/85 tabular-nums",children:(0,x._E)(e.txns24h)}),(0,a.jsx)("span",{className:"font-mono text-[0.78rem] text-right tabular-nums",children:(0,x.Ss)(e.vol24hUsd)}),(0,a.jsx)("span",{className:"font-mono text-[0.7rem] text-right text-fg/85 tabular-nums",children:(0,x._E)(e.makers24h)}),(0,a.jsx)(f,{v:e.pct5m}),(0,a.jsx)(f,{v:e.pct1h}),(0,a.jsx)(f,{v:e.pct6h}),(0,a.jsx)(f,{v:e.pct24h,bold:!0}),(0,a.jsx)("span",{className:"font-mono text-[0.7rem] text-right text-fg/85 tabular-nums",children:(0,x.Ss)(e.liquidityUsd)}),(0,a.jsx)("span",{className:"font-mono text-[0.78rem] text-right tabular-nums",children:(0,x.Ss)(e.mcapUsd)}),(0,a.jsx)("span",{className:"flex justify-end",children:(0,a.jsx)(h,{data:e.spark,positive:e.pct24h>=0,width:84,height:22})})]},e.id)),0===t.length&&(0,a.jsx)("div",{className:"px-3 py-12 text-center font-mono text-[0.78rem] text-muted",children:"no pairs match those filters."})]})]})}function f(e){let{v:t,bold:s=!1}=e,n=t>=0;return(0,a.jsx)("span",{className:"font-mono text-[0.7rem] text-right tabular-nums ".concat(n?"text-acid":"text-hot"," ").concat(s?"font-semibold":""),children:(0,x.pT)(t)})}var b=s(71408),j=s(34486);function v(e){let{seed:t,positive:s,height:r=220}=e,l=(0,n.useMemo)(()=>(function(e,t){var s;let a=(s=e,function(){let e=s=s+0x6d2b79f5|0;return e=Math.imul(e^e>>>15,1|e),(((e^=e+Math.imul(e^e>>>7,61|e))^e>>>14)>>>0)/0x100000000}),n=[],r=1;for(let e=0;e<60;e++){let e=r,t=(a()-.48)*.18,s=Math.max(.05,e*(1+t)),l=Math.abs(t)*(.5+a()),i=Math.max(e,s)*(1+.4*l),c=Math.min(e,s)*(1-.4*l);n.push({open:e,high:i,low:c,close:s}),r=s}return n})(t,60),[t]),i=600/l.length,c=Math.min(...l.map(e=>e.low)),o=Math.max(...l.map(e=>e.high))-c||1,d=e=>r-(e-c)/o*(r-14)-7,x="#00FF87",m="#FF006E";return(0,a.jsxs)("svg",{viewBox:"0 0 ".concat(600," ").concat(r),className:"w-full",preserveAspectRatio:"none",children:[(0,a.jsxs)("defs",{children:[(0,a.jsx)("pattern",{id:"cgrid",width:"50",height:"40",patternUnits:"userSpaceOnUse",children:(0,a.jsx)("path",{d:"M 50 0 L 0 0 0 40",fill:"none",stroke:"#1A1A1A",strokeWidth:"1"})}),(0,a.jsxs)("linearGradient",{id:"cglow",x1:"0",x2:"0",y1:"0",y2:"1",children:[(0,a.jsx)("stop",{offset:"0",stopColor:s?x:m,stopOpacity:"0.18"}),(0,a.jsx)("stop",{offset:"1",stopColor:s?x:m,stopOpacity:"0"})]})]}),(0,a.jsx)("rect",{width:600,height:r,fill:"url(#cgrid)"}),(0,a.jsx)("path",{d:"M 0 ".concat(d(l[0].close)," ").concat(l.map((e,t)=>"L ".concat(t*i+i/2," ").concat(d(e.close))).join(" ")," L ").concat(600," ").concat(r," L 0 ").concat(r," Z"),fill:"url(#cglow)"}),l.map((e,t)=>{let s=e.close>=e.open,n=t*i+i/2,r=d(e.open),l=d(e.close),c=d(e.high),o=d(e.low),h=Math.min(r,l),p=Math.max(1,Math.abs(l-r)),u=s?x:m;return(0,a.jsxs)("g",{children:[(0,a.jsx)("line",{x1:n,x2:n,y1:c,y2:o,stroke:u,strokeWidth:"1"}),(0,a.jsx)("rect",{x:n-.35*i,y:h,width:.7*i,height:p,fill:u,fillOpacity:s?.85:.7})]},t)}),(0,a.jsx)("line",{x1:0,x2:600,y1:d(l[l.length-1].close),y2:d(l[l.length-1].close),stroke:s?x:m,strokeDasharray:"3 3",strokeWidth:"1",opacity:"0.6"})]})}let N=[{k:"5m",label:"5m"},{k:"1h",label:"1h"},{k:"6h",label:"6h"},{k:"24h",label:"24h"}];function y(e){let{row:t,onClose:s}=e;return(0,n.useEffect)(()=>{let e=e=>"Escape"===e.key&&s();return t&&window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[t,s]),(0,a.jsx)(b.N,{children:t&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(j.P.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-40 bg-black/60 backdrop-blur-sm",onClick:s}),(0,a.jsx)(j.P.aside,{initial:{x:60,opacity:0},animate:{x:0,opacity:1},exit:{x:40,opacity:0},transition:{type:"spring",stiffness:320,damping:28},className:"fixed right-0 top-0 z-50 h-full w-full max-w-[560px] border-l border-line bg-bg overflow-y-auto",children:(0,a.jsx)(k,{row:t,onClose:s})})]})})}function k(e){let{row:t,onClose:s}=e,n=t.pct24h>=0,r=(0,x.M1)(t.id);return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"sticky top-0 z-10 flex items-center justify-between border-b border-line bg-bg/95 backdrop-blur px-4 py-3 font-mono text-[0.7rem] uppercase tracking-wider",children:[(0,a.jsxs)("span",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"size-2 bg-acid animate-pulse"}),"pair \xb7 $",t.ticker]}),(0,a.jsx)("button",{onClick:s,className:"text-muted hover:text-fg",children:"[ esc ]"})]}),(0,a.jsxs)("div",{className:"p-5",children:[(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[t.imageUrl?(0,a.jsx)("div",{className:"size-14 shrink-0 overflow-hidden border border-line bg-bg",children:(0,a.jsx)("img",{src:t.imageUrl,alt:t.ticker,className:"size-full object-cover"})}):(0,a.jsx)("div",{className:"grid size-14 shrink-0 place-items-center font-mono text-[0.7rem] font-bold uppercase",style:{background:t.bg,color:t.fg},children:t.label}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,a.jsxs)("h2",{className:"font-display text-3xl leading-none",children:["$",t.ticker]}),t.boosted&&(0,a.jsx)("span",{className:"px-1.5 py-0.5 border border-butter bg-butter/10 font-mono text-[0.55rem] uppercase tracking-wider text-butter",children:"boosted"}),t.graduated&&(0,a.jsx)("span",{className:"px-1.5 py-0.5 border border-acid bg-acid/10 font-mono text-[0.55rem] uppercase tracking-wider text-acid",children:"graduated"})]}),(0,a.jsx)("div",{className:"text-sm text-fg/80",children:t.name}),(0,a.jsxs)("div",{className:"mt-1 font-mono text-[0.65rem] text-muted flex items-center gap-2 flex-wrap",children:[(0,a.jsx)("span",{children:t.dex}),(0,a.jsx)("span",{children:"\xb7"}),(0,a.jsxs)("span",{children:["by ",t.creator]}),(0,a.jsx)("span",{children:"\xb7"}),(0,a.jsxs)("span",{children:[(0,x.rK)(t.ageSec)," old"]})]})]})]}),(0,a.jsxs)("div",{className:"mt-5 flex items-baseline gap-3",children:[(0,a.jsx)("div",{className:"font-display text-5xl leading-none tabular-nums",children:(0,x.xe)(t.priceUsd)}),(0,a.jsxs)("div",{className:"font-mono text-lg ".concat(n?"text-acid":"text-hot"),children:[(0,x.pT)(t.pct24h),(0,a.jsx)("span",{className:"text-muted text-sm ml-1",children:"24h"})]})]}),(0,a.jsx)("div",{className:"mt-4 grid grid-cols-4 gap-px bg-line",children:N.map(e=>{let s="5m"===e.k?t.pct5m:"1h"===e.k?t.pct1h:"6h"===e.k?t.pct6h:t.pct24h;return(0,a.jsxs)("div",{className:"bg-bg p-2.5 text-center",children:[(0,a.jsx)("div",{className:"font-mono text-sm tabular-nums ".concat(s>=0?"text-acid":"text-hot"),children:(0,x.pT)(s)}),(0,a.jsx)("div",{className:"label text-[0.55rem] mt-0.5",children:e.label})]},e.k)})}),(0,a.jsxs)("div",{className:"mt-5 border border-line bg-grid/30 brut",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between border-b border-line px-3 py-2 font-mono text-[0.62rem] uppercase tracking-wider text-muted",children:[(0,a.jsx)("span",{children:"price \xb7 24h candles"}),(0,a.jsx)("span",{className:"text-acid",children:n?"↗":"↘"})]}),(0,a.jsx)("div",{className:"p-3",children:(0,a.jsx)(v,{seed:r,positive:n,height:220})})]}),(0,a.jsxs)("div",{className:"mt-5 grid grid-cols-2 gap-px bg-line",children:[(0,a.jsx)(w,{label:"market cap",value:(0,x.Ss)(t.mcapUsd)}),(0,a.jsx)(w,{label:"liquidity",value:(0,x.Ss)(t.liquidityUsd)}),(0,a.jsx)(w,{label:"vol 24h",value:(0,x.Ss)(t.vol24hUsd)}),(0,a.jsx)(w,{label:"txns 24h",value:(0,x._E)(t.txns24h)}),(0,a.jsx)(w,{label:"makers 24h",value:(0,x._E)(t.makers24h)}),(0,a.jsx)(w,{label:"holders",value:(0,x._E)(t.holders)})]}),(0,a.jsxs)("div",{className:"mt-5 border border-line bg-grid/30 brut",children:[(0,a.jsxs)("div",{className:"border-b border-line px-3 py-2 font-mono text-[0.62rem] uppercase tracking-wider text-muted flex items-center justify-between",children:[(0,a.jsx)("span",{children:"recent trades"}),(0,a.jsx)("span",{children:"amount \xb7 USD"})]}),(0,a.jsx)("div",{className:"divide-y divide-line/50",children:(function(e,t){let s=["@anatolyclone","0xpavel.ton","@notwifrug","@gmlabs","0xc0ffee","@durmother"],a=[],n=e;for(let e=0;e<7;e++){let t=((n=1664525*n+0x3c6ef35f|0)>>>0)/0x100000000,r=t>.32?"buy":"sell",l=s[Math.floor(t*s.length)%s.length],i=50+9500*t,c=e*(1+Math.floor(4*t));a.push({side:r,user:l,amount:i,ago:"".concat(c,"m")})}return a})(r,7).map((e,t)=>(0,a.jsxs)("div",{className:"flex items-center justify-between px-3 py-1.5 font-mono text-[0.78rem]",children:[(0,a.jsxs)("span",{className:"flex items-center gap-2 ".concat("buy"===e.side?"text-acid":"text-hot"),children:[(0,a.jsx)("span",{className:"text-[0.62rem] uppercase",children:e.side}),(0,a.jsx)("span",{className:"text-fg",children:e.user}),(0,a.jsx)("span",{className:"text-muted text-[0.65rem]",children:e.ago})]}),(0,a.jsx)("span",{className:"buy"===e.side?"text-acid":"text-hot",children:(0,x.Ss)(e.amount)})]},t))})]}),(0,a.jsxs)("div",{className:"mt-5 grid grid-cols-2 gap-2",children:[(0,a.jsxs)("a",{className:"btn-degen btn-ton justify-center",href:"DeDust"===t.dex?"https://dedust.io/":"https://app.ston.fi/",target:"_blank",rel:"noreferrer",children:["trade on ",t.dex,(0,a.jsx)("span",{"aria-hidden":!0,
1children:"↗"})]}),(0,a.jsx)("a",{className:"btn-degen justify-center",href:"https://tonviewer.com/",target:"_blank",rel:"noreferrer",children:"view on tonviewer"})]}),(0,a.jsxs)("div",{className:"mt-3 font-mono text-[0.62rem] text-muted",children:["// pair address \xb7 EQ",(r>>>0).toString(16).padStart(8,"0"),"...",(r>>>16).toString(16).padStart(4,"0")]})]})]})}function w(e){let{label:t,value:s}=e;return(0,a.jsxs)("div",{className:"bg-bg p-3",children:[(0,a.jsx)("div",{className:"font-display text-xl leading-none tabular-nums",children:s}),(0,a.jsx)("div",{className:"label mt-1",children:t})]})}var M=s(15957);function F(){let[e,t]=(0,n.useState)([]),[s,r]=(0,n.useState)(c),[l,i]=(0,n.useState)(null),[x,h]=(0,n.useState)("loading"),[p,u]=(0,n.useState)(null),[f,b]=(0,n.useState)(null);(0,n.useEffect)(()=>{let e,s=!0,a=async()=>{try{let e=await fetch("/api/screener",{cache:"no-store"}),a=await e.json();if(!s)return;e.ok&&a.ok?(t(a.rows),b(a.fetchedAt),h("ok"),u(null)):(h("error"),u((null==a?void 0:a.error)||"HTTP ".concat(e.status)))}catch(e){if(!s)return;h("error"),u(e instanceof Error?e.message:"network")}finally{s&&(e=setTimeout(a,3e4))}};return a(),()=>{s=!1,e&&clearTimeout(e)}},[]);let j=(0,n.useMemo)(()=>{let t=e.slice();"new"===s.tab?t=t.filter(e=>e.ageSec<86400):"graduating"===s.tab?t=t.filter(e=>e.mcapUsd>3e4&&e.mcapUsd<8e4):"graduated"===s.tab?t=t.filter(e=>e.graduated):"trending"===s.tab&&(t=t.filter(e=>e.vol24hUsd>5e3)),"all"!==s.dex&&(t=t.filter(e=>e.dex===s.dex)),"1h"===s.age?t=t.filter(e=>e.ageSec<=3600):"24h"===s.age?t=t.filter(e=>e.ageSec<=86400):"7d"===s.age&&(t=t.filter(e=>e.ageSec<=604800)),s.minMcap>0&&(t=t.filter(e=>e.mcapUsd>=s.minMcap)),s.minVol>0&&(t=t.filter(e=>e.vol24hUsd>=s.minVol)),s.boostedOnly&&(t=t.filter(e=>e.boosted));let a=s.search.trim().toUpperCase();a&&(t=t.filter(e=>e.ticker.includes(a)||e.name.toUpperCase().includes(a)));let n="desc"===s.sortDir?-1:1,r="trending"===s.tab&&"trending"===s.sortKey?"vol24h":s.sortKey;return t.sort((e,t)=>(C(e,r)-C(t,r))*n),t},[e,s]);return(0,a.jsxs)("main",{className:"min-h-screen bg-bg text-fg noise scanlines overflow-x-hidden",children:[(0,a.jsx)(S,{}),e.length>0&&(0,a.jsx)(m,{rows:e}),(0,a.jsxs)("section",{className:"wrap py-6",children:[(0,a.jsxs)("div",{className:"mb-5 flex items-end justify-between gap-4 flex-wrap",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"label mb-2 flex items-center gap-2",children:[(0,a.jsx)("span",{className:"size-1.5 ".concat("ok"===x?"bg-acid":"loading"===x?"bg-butter":"bg-hot"," animate-pulse")}),"loading"===x&&"fetching live data...","ok"===x&&f&&(0,a.jsxs)(a.Fragment,{children:["live \xb7 ton mainnet \xb7 last sync ",function(e){let t=Math.max(0,Math.floor(e/1e3));return t<60?"".concat(t,"s"):"".concat(Math.floor(t/60),"m")}(Date.now()-f)," ago"]}),"error"===x&&"error \xb7 ".concat(p)]}),(0,a.jsxs)("h1",{className:"font-display text-4xl sm:text-5xl leading-tight",children:["ton",(0,a.jsx)("span",{className:"text-acid",children:"screener"})]}),(0,a.jsx)("p",{className:"mt-1 text-fg/70 text-sm font-mono",children:"every meme that breathes on TON \xb7 powered by GeckoTerminal \xb7 refresh every 30s"})]}),(0,a.jsx)(o,{value:s.tab,onChange:e=>r({...s,tab:e})})]}),(0,a.jsx)("div",{className:"sticky top-0 z-20 -mx-5 px-5 py-3 bg-bg/95 backdrop-blur border-b border-line/40 mb-3",children:(0,a.jsx)(d,{state:s,setState:r,totalCount:e.length,filteredCount:j.length})}),"loading"===x&&0===e.length&&(0,a.jsx)(E,{}),"error"===x&&0===e.length&&(0,a.jsxs)("div",{className:"border border-hot bg-hot/5 p-6 font-mono text-[0.85rem] text-hot",children:[(0,a.jsx)("div",{className:"font-display text-2xl text-hot",children:"! upstream is down"}),(0,a.jsx)("div",{className:"mt-2 text-fg/80",children:"GeckoTerminal API didn't respond. retrying in 30s..."}),(0,a.jsx)("div",{className:"mt-1 text-muted text-[0.7rem]",children:p})]}),e.length>0&&(0,a.jsx)(g,{rows:j,onPick:i,sortKey:s.sortKey,sortDir:s.sortDir,onSort:e=>{s.sortKey===e?r({...s,sortDir:"desc"===s.sortDir?"asc":"desc"}):r({...s,sortKey:e,sortDir:"desc"})}}),(0,a.jsxs)("div",{className:"mt-3 flex items-center justify-between font-mono text-[0.65rem] uppercase tracking-wider text-muted flex-wrap gap-2",children:[(0,a.jsx)("span",{children:"// click any row to expand \xb7 esc to close"}),(0,a.jsx)("span",{children:"tonscreener \xb7 v0.1 \xb7 powered by jettonpad.fun"})]})]}),(0,a.jsx)(y,{row:l,onClose:()=>i(null)})]})}function C(e,t){switch(t){case"vol24h":return e.vol24hUsd;case"mcap":return e.mcapUsd;case"liq":return e.liquidityUsd;case"pct5m":return e.pct5m;case"pct1h":return e.pct1h;case"pct6h":return e.pct6h;case"pct24h":return e.pct24h;case"age":return-e.ageSec;default:return e.vol24hUsd+80*e.txns24h+40*e.makers24h+200*Math.max(0,e.pct24h)}}function E(){return(0,a.jsxs)("div",{className:"border border-line bg-grid/20 brut",children:[(0,a.jsx)("div",{className:"px-3 py-2 border-b border-line font-mono text-[0.62rem] uppercase tracking-wider text-muted",children:"// pulling live pools from gecko..."}),(0,a.jsx)("div",{className:"divide-y divide-line/40",children:Array.from({length:12}).map((e,t)=>(0,a.jsxs)("div",{className:"flex items-center gap-3 px-3 py-3",children:[(0,a.jsx)("div",{className:"size-7 bg-line animate-pulse"}),(0,a.jsxs)("div",{className:"flex-1 space-y-1.5",children:[(0,a.jsx)("div",{className:"h-3 w-32 bg-line animate-pulse"}),(0,a.jsx)("div",{className:"h-2 w-48 bg-line/60 animate-pulse"})]}),(0,a.jsx)("div",{className:"h-3 w-20 bg-line animate-pulse"}),(0,a.jsx)("div",{className:"h-3 w-16 bg-line animate-pulse"})]},t))})]})}function S(){return(0,a.jsx)("header",{className:"relative z-10 border-b border-line bg-bg/70 backdrop-blur",children:(0,a.jsxs)("div",{className:"wrap flex h-14 items-center justify-between",children:[(0,a.jsxs)(i(),{href:"/",className:"group flex items-center gap-2.5",children:[(0,a.jsx)(r.default,{src:"/logo.png",alt:"jettonpad",width:32,height:32,className:"size-7"}),(0,a.jsxs)("span",{className:"font-display text-2xl leading-none tracking-tight",children:["jettonpad",(0,a.jsx)("span",{className:"text-acid",children:".fun"})]}),(0,a.jsx)("span",{className:"label hidden sm:inline-block ml-2 px-1.5 py-0.5 border border-acid text-acid text-[0.55rem]",children:"/screener"})]}),(0,a.jsxs)("nav",{className:"hidden md:flex items-center gap-6 font-mono text-[0.78rem] uppercase tracking-wider",children:[(0,a.jsx)(i(),{href:"/",className:"linky",children:"home"}),(0,a.jsx)(i(),{href:"/create",className:"linky text-acid",children:"+ create"}),(0,a.jsx)(i(),{href:"/#leaderboard",className:"linky",children:"leaderboard"}),(0,a.jsx)("span",{className:"text-acid",children:"screener"})]}),(0,a.jsx)("div",{className:"flex items-center gap-2 font-mono text-[0.65rem] uppercase tracking-wider text-muted",children:(0,a.jsx)("span",{className:"hidden lg:inline-flex",children:(0,a.jsx)(M.default,{})})})]})})}},69317:(e,t,s)=>{"use strict";s.d(t,{$3:()=>r,no:()=>a});let a=[{id:"skull",label:"SKULL",bg:"#FF006E",fg:"#FFF"},{id:"moon",label:"MOON",bg:"#FFD23F",fg:"#0A0A0A"},{id:"frog",label:"FROG",bg:"#00FF87",fg:"#0A0A0A"},{id:"dog",label:"DOG",bg:"#0098EA",fg:"#0A0A0A"},{id:"cat",label:"CAT",bg:"#A78BFA",fg:"#0A0A0A"},{id:"fire",label:"FIRE",bg:"#F97316",fg:"#0A0A0A"}],n=["0xpavel.ton","@anatolyclone","0xpump.ton","@durmother","0xanon","@notwifrug","@wifton","0xc0ffee","@degensagainstdu
1st","@tonbull","0xlolicon","@ribbitqueen","@gmlabs","0xrugger"];function r(){return n[Math.floor(Math.random()*n.length)]}},71408:(e,t,s)=>{"use strict";s.d(t,{N:()=>f});var a=s(95155),n=s(12115),r=s(60296),l=s(94416),i=s(59686),c=s(53127);class o extends n.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function d(e){let{children:t,isPresent:s}=e,r=(0,n.useId)(),l=(0,n.useRef)(null),i=(0,n.useRef)({width:0,height:0,top:0,left:0}),{nonce:d}=(0,n.useContext)(c.Q);return(0,n.useInsertionEffect)(()=>{let{width:e,height:t,top:a,left:n}=i.current;if(s||!l.current||!e||!t)return;l.current.dataset.motionPopId=r;let c=document.createElement("style");return d&&(c.nonce=d),document.head.appendChild(c),c.sheet&&c.sheet.insertRule('\n          [data-motion-pop-id="'.concat(r,'"] {\n            position: absolute !important;\n            width: ').concat(e,"px !important;\n            height: ").concat(t,"px !important;\n            top: ").concat(a,"px !important;\n            left: ").concat(n,"px !important;\n          }\n        ")),()=>{document.head.removeChild(c)}},[s]),(0,a.jsx)(o,{isPresent:s,childRef:l,sizeRef:i,children:n.cloneElement(t,{ref:l})})}let x=e=>{let{children:t,initial:s,isPresent:r,onExitComplete:c,custom:o,presenceAffectsLayout:x,mode:h}=e,p=(0,l.M)(m),u=(0,n.useId)(),g=(0,n.useCallback)(e=>{for(let t of(p.set(e,!0),p.values()))if(!t)return;c&&c()},[p,c]),f=(0,n.useMemo)(()=>({id:u,initial:s,isPresent:r,custom:o,onExitComplete:g,register:e=>(p.set(e,!1),()=>p.delete(e))}),x?[Math.random(),g]:[r,g]);return(0,n.useMemo)(()=>{p.forEach((e,t)=>p.set(t,!1))},[r]),n.useEffect(()=>{r||p.size||!c||c()},[r]),"popLayout"===h&&(t=(0,a.jsx)(d,{isPresent:r,children:t})),(0,a.jsx)(i.t.Provider,{value:f,children:t})};function m(){return new Map}var h=s(75601);let p=e=>e.key||"";function u(e){let t=[];return n.Children.forEach(e,e=>{(0,n.isValidElement)(e)&&t.push(e)}),t}var g=s(86553);let f=e=>{let{children:t,custom:s,initial:i=!0,onExitComplete:c,presenceAffectsLayout:o=!0,mode:d="sync",propagate:m=!1}=e,[f,b]=(0,h.xQ)(m),j=(0,n.useMemo)(()=>u(t),[t]),v=m&&!f?[]:j.map(p),N=(0,n.useRef)(!0),y=(0,n.useRef)(j),k=(0,l.M)(()=>new Map),[w,M]=(0,n.useState)(j),[F,C]=(0,n.useState)(j);(0,g.E)(()=>{N.current=!1,y.current=j;for(let e=0;e<F.length;e++){let t=p(F[e]);v.includes(t)?k.delete(t):!0!==k.get(t)&&k.set(t,!1)}},[F,v.length,v.join("-")]);let E=[];if(j!==w){let e=[...j];for(let t=0;t<F.length;t++){let s=F[t],a=p(s);v.includes(a)||(e.splice(t,0,s),E.push(s))}"wait"===d&&E.length&&(e=E),C(u(e)),M(j);return}let{forceRender:S}=(0,n.useContext)(r.L);return(0,a.jsx)(a.Fragment,{children:F.map(e=>{let t=p(e),n=(!m||!!f)&&(j===F||v.includes(t));return(0,a.jsx)(x,{isPresent:n,initial:(!N.current||!!i)&&void 0,custom:n?void 0:s,presenceAffectsLayout:o,mode:d,onExitComplete:n?void 0:()=>{if(!k.has(t))return;k.set(t,!0);let e=!0;k.forEach(t=>{t||(e=!1)}),e&&(null==S||S(),C(y.current),m&&(null==b||b()),c&&c())},children:e},t)})})}},75843:(e,t,s)=>{"use strict";function a(e){return e>=1e9?"$".concat((e/1e9).toFixed(2),"B"):e>=1e6?"$".concat((e/1e6).toFixed(2),"M"):e>=1e3?"$".concat((e/1e3).toFixed(1),"K"):"$".concat(e.toFixed(2))}function n(e){if(e>=1)return"$".concat(e.toFixed(4));if(e>=.01)return"$".concat(e.toFixed(5));if(e>=1e-4)return"$".concat(e.toFixed(6));let[t,s]=e.toExponential(3).split("e"),a=Math.abs(parseInt(s,10))-1,n=t.replace(".","").replace(/0+$/,"").slice(0,4);return a>=3?"$0.0(".concat(a,")").concat(n):"$".concat(e.toExponential(2))}function r(e){let t=Math.abs(e),s=t<1?t.toFixed(2):t<100?t.toFixed(1):t.toFixed(0);return"".concat(e>=0?"+":"-").concat(s,"%")}function l(e){return e>=1e6?"".concat((e/1e6).toFixed(2),"M"):e>=1e3?"".concat((e/1e3).toFixed(1),"K"):"".concat(e)}function i(e){return e<60?"".concat(e,"s"):e<3600?"".concat(Math.floor(e/60),"m"):e<86400?"".concat(Math.floor(e/3600),"h"):"".concat(Math.floor(e/86400),"d")}function c(e){let t=0x811c9dc5;for(let s=0;s<e.length;s++)t^=e.charCodeAt(s),t=Math.imul(t,0x1000193);return t>>>0}s.d(t,{M1:()=>c,Ss:()=>a,_E:()=>l,pT:()=>r,rK:()=>i,xe:()=>n}),s(69317)}},e=>{e.O(0,[850,744,441,255,358],()=>e(e.s=23640)),_N_E=e.O()}]);

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.