1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="3c530a8d-ceed-40b9-b93c-629b3ac8125a",e._sentryDebugIdIdentifier="sentry-dbid-3c530a8d-ceed-40b9-b93c-629b3ac8125a")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5582],{18201:(e,n,t)=>{t.d(n,{A:()=>q});var r=t(350979),l=t(769932),s=t(311560),i=t(687287),o=t(810286),a=t(557423),c=t(605641),d=t(501823),u=t(796898),p=t(549333),h=t(579518),m=t(960093),x=t(161322),f=t(990296),y=t(258213),A=t(428089),b=t(546061),g=t(378385),j=t(530957),w=t(38395),v=t(420248),k=t(712639),C=t(919443),I=t(257177),E=t(432594),S=t(630806),T=t(639803),D=t(427554),M=t(91168),U=t(25963),F=t(680797),R=t(663936),N=t(442828);let B=new Map;var P=t(968349),L=t(228876),O=t(115843),W=t(985148),$=t(118708),G=function(e){return e[e.SMALL=16]="SMALL",e[e.MEDIUM=18]="MEDIUM",e[e.LARGE=20]="LARGE",e[e.X_LARGE=22]="X_LARGE",e[e.MAX=24]="MAX",e}({}),H=function(e){return e[e.SMALL=24]="SMALL",e[e.MEDIUM=26]="MEDIUM",e[e.LARGE=28]="LARGE",e[e.X_LARGE=30]="X_LARGE",e[e.MAX=32]="MAX",e}({});let _=(0,W.eU)({}),z=(0,F.I4)(a.A).attrs({variant:"text",scale:"sm"}).withConfig({componentId:"sc-278fab4f-0"})(["padding:24px 8px 22px;margin-top:2px;&:hover:not(:disabled){background:transparent;}&:disabled{cursor:default;background:transparent;}"]),X=(0,F.I4)(c.A).withConfig({componentId:"sc-278fab4f-1"})(["font-size:","px;line-height:1.1;"],G.LARGE),K=(0,F.I4)(d.A).withConfig({componentId:"sc-278fab4f-2"})(["border-radius:8px;padding:2px 6px;transition:background-color 0.2s ease;",""],e=>{let{$interactive:n,theme:t}=e;return n?` 2 cursor: pointer; 3 4 &:hover { 5 background-color: ${t.colors.input}; 6 } 7 `:` 8 cursor: default; 9 `}),q=(0,U.memo)(function(e){var n,t,a,F,W,q,V,Y,Z;let{defaultValue:J,onUserInput:Q,onInputBlur:ee,onPercentInput:en,onMax:et,onCurrencySelect:er,currency:el,disableCurrencySelect:es=!1,hideBalance:ei=!1,overrideBalance:eo,supportCrossChain:ea=!0,showMultichainBalances:ec=!1,enableMultichainSearch:ed=!1,beforeButton:eu,pair:ep=null,otherCurrency:eh,id:em,showCommonBases:ex,commonBasesType:ef,showSearchInput:ey,disabled:eA,error:eb,showUSDPrice:eg,tokensToShow:ej,topOptions:ew={show:!0,walletDisplay:!0}
9,currencyLoading:ev,inputLoading:ek,title:eC,isUserInsufficientBalance:eI,modalTitle:eE,showSearchHeader:eS,wrapperProps:eT,customChainId:eD,showNative:eM,maxDecimals:eU,valueDisplayMode:eF="token",onToggleValueDisplayMode:eR,usdPrice:eN}=e,{account:eB,solanaAccount:eP,unifiedAccount:eL,chainId:eO}=(0,P.W7)(),eW=(0,U.useMemo)(()=>eD?(0,L.fT)(eD)?eP:eB:eL,[eD,eB,eP,eL]),e$=(0,D.V)(null!=(Y=eo?void 0:el)?Y:void 0),{t:eG}=(0,l.A)(),eH=ep?ep.liquidityToken:(null==el?void 0:el.isToken)&&el instanceof s.ou?el:null,[e_,ez]=(0,U.useState)(!1),eX=(0,U.useRef)(null),{isDesktop:eK,isMobile:eq}=(0,u.A)(),{value:eV,isUsdMode:eY,amountInDollar:eZ,tokenAmountFromUsd:eJ,handleUserInput:eQ,clearSuspendInputSync:e0}=(e=>{var n;let{defaultValue:t,onUserInput:r,valueDisplayMode:l,showUSDPrice:s,currency:i,maxDecimals:o,isInputFocus:a,usdPriceOverride:c}=e,[d,u]=(0,U.useState)(t),p=(0,U.useRef)(l),h=(0,U.useRef)(!1),m=(0,U.useRef)(!1),x="usd"===l,f=(0,U.useMemo)(()=>d?function(e,n){let t=function(e,n){let t,r=e.trim();if(!r)return;r=(r=r.replace(/[\s\u00A0\u202F]/g,"")).replace(/[ââââ]/g,"-");let{group:l,decimal:s}=function(e){var n,t,r,l;let s=null!=e?e:"__default__",i=B.get(s);if(i)return i;let o=new Intl.NumberFormat(e).formatToParts(1000.1),a={group:null!=(r=null==(n=o.find(e=>"group"===e.type))?void 0:n.value)?r:",",decimal:null!=(l=null==(t=o.find(e=>"decimal"===e.type))?void 0:t.value)?l:"."};return B.set(s,a),a}(n),i=new Set([".",",",l,s]);if(!(r=r.split("").filter((e,n)=>!!(e>="0"&&e<="9"||("+"===e||"-"===e)&&0===n||i.has(e))).join(""))||"+"===r||"-"===r)return;if(s&&r.includes(s))t=s;else if(r.includes(".")&&r.includes(","))t=r.lastIndexOf(".")>r.lastIndexOf(",")?".":",";else if(r.includes("."))t=".";else if(r.includes(","))if(","===l&&2===r.split(",").length){var o;let e=null!=(o=r.split(",")[1])?o:"";t=e.length>0&&e.length<=2?",":void 0}else t=",";else s&&r.includes(s)&&(t=s);let a=new Set([l,".",",",s]);t&&a.delete(t);let c=r;for(let e of a)e&&(c=c.split(e).join(""));if(t){let e=(c=function(e,n){let t=e.lastIndexOf(n);if(-1===t)return e;let r=e.slice(0,t).split(n).join(""),l=e.slice(t+n.length).split(n).join("");return`${r}${n}${l}`}(c,t)).lastIndexOf(t);-1!==e&&(c=`${c.slice(0,e)}.${c.slice(e+t.length)}`)}if(c.startsWith(".")&&(c=`0${c}`),""!==c&&"+"!==c&&"-"!==c&&"+."!==c&&"-."!==c)return c}(e,void 0);if(void 0===t)return;let r=Number(t);return Number.isFinite(r)?r:void 0}(d):void 0,[d]),y=null!=(n=null!=o?o:null==i?void 0:i.decimals)?n:18,A=(0,S.HW)(s&&!x&&null!=i?i:void 0,x||void 0===f?void 0:f),b=(0,U.useMemo)(()=>{if(s)return x?f:A},[A,f,x,s]),j=!!(s&&void 0===c),{data:w}=(0,T.t)(j&&null!=i?i:void 0,j),v=null!=c?c:w,k=(0,U.useMemo)(()=>{if(!x||void 0===f||void 0===v||v<=0)return;let e=new M.A(f).div(v);if(e.isFinite())return e.decimalPlaces(y,M.A.ROUND_DOWN).toString()},[f,x,y,v]),C=(0,U.useMemo)(()=>{if(x&&s&&t&&Number.isFinite(+t)&&void 0!==v&&!(v<=0))return(0,g.ZV)(new M.A(t).times(v).toNumber())},[t,x,s,v]);return(0,U.useEffect)(()=>{let e=p.current!==l;if(p.current=l,!a||e){if(e&&a&&(h.current=!0),x){if(void 0===C){m.current=!0;return}m.current=!1,u(C);return}m.current=!1,u(t)}},[t,a,x,C,l]),(0,U.useEffect)(()=>{x&&m.current&&void 0!==C&&(m.current=!1,u(C))},[x,C]),(0,U.useEffect)(()=>{a&&(h.current||r(x?null!=k?k:"":null!=d?d:""))},[d,a,x,r,k]),{value:d,isUsdMode:x,amountInDollar:b,tokenAmountFromUsd:k,handleUserInput:(0,U.useCallback)(e=>{h.current=!1,m.current=!1,u(e)},[]),clearSuspendInputSync:(0,U.useCallback)(()=>{h.current=!1,m.current=!1},[])}})({defaultValue:J,onUserInput:Q,valueDisplayMode:eF,showUSDPrice:eg,currency:el,maxDecimals:eU,isInputFocus:e_,usdPriceOverride:eN}),[e1]=(0,p.A)((0,r.jsx)(O.A,{supportCrossChain:ea,onCurrencySelect:er,selectedCurrency:el,otherSelectedCurrency:eh,showCommonBases:ex,commonBasesType:ef,showSearchInput:ey,tokensToShow:ej,mode:em,modalTitle:eE,showSearchHeader:eS,showNative:eM,showMultichainBalances:ec,enableMultichainSearch:ed})),{shortedSymbol:e8,inputRef:e2,wrapperRef:e3,tokenImageRef:e4,symbolRef:e9}=((e,n,t)=>{let r=(0,U.useRef)(null),l=(0,U.useRef)(null),s=(0,U.useRef)(null),i=(0,U.useRef)(null),{symbolFontSize:o,logoFontSize:a,setFontSizesBySymbol:c}=((e,n)=>{var t,r,l,s;let[i,o]=(0,$.fp)(_),a=Math.min((null==(t=i[e])?void 0:t.symbol)||20,(null==(r=i[n])?void 0:r.symbol)||20);return{symbolFontSize:a,logoFontSize:Math.min((null==(l=i[e])?void 0:l.logo)||32,(null==(s=i[n])?void 0:s.logo)||32),setFontSizesBySymbol:(0,U.useCallback)((e,n,t)=>{o(r=>
9({...r,[e]:{symbol:n||r[e].symbol,logo:t||r[e].logo}}))},[o])}})(null!=n?n:"",null!=t?t:""),{isMobile:d,isXs:p,isSm:h}=(0,u.A)(),m=(0,U.useMemo)(()=>{let e=d?{left:3,right:3}:{left:5,right:4};return n&&n.length>8?`${n.slice(0,e.left)}...${n.slice(n.length-e.right,n.length)}`:n},[n,d]);return(0,U.useEffect)(()=>{if(!r.current||!s.current||!i.current||!l.current)return;let t=r.current,o=i.current.offsetWidth,a=8*e.length*100/o,d=p?{ONE:25,TWO:30,THREE:37,FOUR:45}:h?{ONE:35,TWO:40,THREE:44,FOUR:50}:{ONE:40,TWO:45,THREE:50,FOUR:57},u=m&&m.length>4?(null==m?void 0:m.length)-2:0;a>=d.FOUR-u?(t.style.fontSize=`${G.SMALL}px`,c(null!=n?n:"",G.SMALL,H.SMALL)):a>=d.THREE-u?(t.style.fontSize=`${G.MEDIUM}px`,c(null!=n?n:"",G.SMALL,H.MEDIUM)):a>=d.TWO-u?(t.style.fontSize=`${G.LARGE}px`,c(null!=n?n:"",G.MEDIUM,H.LARGE)):a>=d.ONE-u?(t.style.fontSize=`${G.X_LARGE}px`,c(null!=n?n:"",G.MEDIUM,H.X_LARGE)):(t.style.fontSize=`${G.MAX}px`,c(null!=n?n:"",G.LARGE,H.MAX))},[e,n,c,t,p,h,m]),(0,U.useEffect)(()=>{let e=s.current;e&&(e.style.fontSize=`${o}px`)},[o,n,t]),(0,U.useEffect)(()=>{let e=l.current;e&&(e.style.width=`${a}px`,e.style.height=`${a}px`)},[a,n,t]),{shortedSymbol:m,inputRef:r,symbolRef:s,wrapperRef:i,tokenImageRef:l}})(null!=eV?eV:"",(0,N.En)(null==el||null==(n=el.wrapped)?void 0:n.address,null==el?void 0:el.chainId,null==el?void 0:el.symbol),(0,N.En)(null==eh||null==(t=eh.wrapped)?void 0:t.address,null==eh?void 0:eh.chainId,null==eh?void 0:eh.symbol));(0,U.useEffect)(()=>()=>{eX.current&&clearTimeout(eX.current)},[]);let e6=(0,U.useCallback)(e=>{en&&(ez(!1),en(e))},[en]),e5=(0,U.useCallback)(()=>{null==ee||ee(),eX.current&&clearTimeout(eX.current),eX.current=setTimeout(()=>{ez(!1),e0(),eX.current=null},300)},[e0,ee]),e7=(0,U.useCallback)(()=>{eX.current&&(clearTimeout(eX.current),eX.current=null),ez(!0)},[]),ne=(0,U.useCallback)(e=>{null==e||e.stopPropagation(),null==eR||eR()},[eR]),nn=(0,U.useCallback)(e=>{e.preventDefault()},[]),nt=(0,U.useCallback)(e=>{eR&&("Enter"===e.key||" "===e.key)&&(e.preventDefault(),ne(e))},[ne,eR]),nr=(0,U.useMemo)(()=>eY?eG("Enter in Token"):eG("Enter in USD"),[eY,eG]),{tooltip:nl,tooltipVisible:ns,targetRef:ni}=(0,h.A)(nr,{placement:"top",trigger:"hover"}),no=!!(eR&&eK),na=(0,U.useCallback)(()=>{es||e1()},[e1,es]),nc=null!=eo?eo:e$,nd=ei||!el||!nc||(0,j.A)(null==nc||null==(a=nc.currency)?void 0:a.decimals)?void 0:nc,nu=(0,i.Wu)(nd,null==nc||null==(F=nc.currency)?void 0:F.decimals),np=(0,o.$Y)({amount:nd});return(0,r.jsx)(k.U.V3,{id:em,disabled:eA,error:eb,value:eV,onInputBlur:e5,onInputFocus:e7,onUserInput:eQ,loading:ek,inputRef:e2,wrapperRef:e3,wrapperProps:eT,maxDecimals:eU,inputPrefix:eY?"$":void 0,top:ew.show?(0,r.jsxs)(d.A,{justifyContent:"space-between",alignItems:"center",width:"100%",position:"relative",children:[eC,ew.walletDisplay&&(0,r.jsx)(m.A,{mode:"wait",features:x.l,children:eW?e_&&et?(0,r.jsx)(k.U.Px,{onPercentInput:e6}):(0,r.jsx)(k.U.M8,{isUserInsufficientBalance:eI,balance:nu,tooltipContent:null!=np?np:void 0,onMax:et}):null})]}):null,inputLeft:(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(d.A,{alignItems:"center",children:[eu,(0,r.jsx)(z,{className:"open-currency-select-button","data-dd-action-name":"Select currency",selected:!!el,onClick:na,disabled:es,children:(0,r.jsxs)(d.A,{alignItems:"center",justifyContent:"space-between",children:[ep?(0,r.jsx)(v.g,{currency0:ep.token0,currency1:ep.token1,size:16,margin:!0}):el?"onramp-input"===em?(0,r.jsx)(E.mt,{currency:el,size:`${H.MAX}px`,style:{marginRight:"8px"}}):(0,r.jsx)(w.Z,{showChainLogo:!0,imageRef:e4,currency:el,size:`${H.MAX}px`,containerStyle:{marginRight:"8px"}}):ev?(0,r.jsx)(f.Ay,{width:"40px",height:"40px",variant:"circle"}):(0,r.jsx)(w.Z,{imageRef:e4,currency:{chainId:eO},size:`${H.MAX}px`,containerStyle:{marginRight:"8px"},showChainLogo:!0}),ev?null:ep?(0,r.jsxs)(c.A,{id:"pair",bold:!0,fontSize:"24px",children:[(0,N.En)(null==ep||null==(W=ep.token0.wrapped)?void 0:W.address,null==ep?void 0:ep.token0.chainId,null==ep?void 0:ep.token0.symbol),":",(0,N.En)(null==ep||null==(q=ep.token1.wrapped)?void 0:q.address,null==ep?void 0:ep.token1.chainId,null==ep?void 0:ep.token1.symbol)]}):(0,r.jsxs)(d.A,{alignItems:"start",flexDirection:"column",children:[(0,r.jsxs)(d.A,{flexDirection:"column",alignItems:"flex-start",children:[(0,r.jsxs)(d.A,{alignItems:"center",justifyContent:"space-between",children:[(0,r.jsx)(X,{id:"pair",bold:!0,ref:e9,children:el&&el.symbol&&e8||eG("Select Token")}),!eq&&(0,r.jsx)(I.F,{currency:el,ml:"6px"}),!ev&&!es&&(0,r.jsx)(y.A,{})]}),eq&&(0,r.jsx)(I.F,{currency:el,mt:"2px"}),el&&el.symbol&&(0,r.jsx)(c.A,{style:{fontSize:`${Math.max(Number(null==(V=e9.current)?void 0:V.style.fontSize.replace("px",""))-7,12)}px`},color:"textSubtle",children:(0,R.I)(el.chainId)})]}),(0,r.jsx)(C._J,{token:null!=eH?eH:void 0})]})]})})]})}),bottom:ek||eg&&(eY&&void 0!==eJ||!eY&&Number.isFinite(eZ))?(0,r.jsxs)(A.Ay,{position:"absolute",bottom:"12px",right:"0px",children:[(0,r.jsx)(d.A,{justifyContent:"flex-end",mr:"1rem",children:(0,r.jsx)(d.A,{maxWidth:["120px","160px","200px","240px"],children:ek?(0,r.jsx)(b.A,{width:"14px",height:"14px"}):eg&&Number.isFinite(eZ)&&!eY?(0,r.jsxs)(K,{alignItems:"center",onMouseDown:nn,onClick:ne,onKeyDown:nt,role:eR?"button":void 0,tabIndex:eR?0:void 0,$interactive:!!eR,ref:no?ni:void 0,children:[(0,r.jsx)(c.A,{fontSize:"14px",color:"textSubtle",ellipsis:!0,children:`~${eZ?eZ>0&&eZ<.01?"<0.01":(0,g.ZV)(eZ,2,2):0}`}),(0,r.jsx)(c.A,{ml:"4px",fontSize:"14px",color:"textSubtle",children:"USD"})]}):eg&&eY&&void 0!==eJ?(0,r.jsxs)(K,{alignItems:"center",onMouseDown:nn,onClick:ne,onKeyDown:nt,role:eR?"button":void 0,tabIndex:eR?0:void 0,$interactive:!!eR,ref:no?ni:void 0,children:[(0,r.jsx)(c.A,{fontSize:"14px",color:"textSubtle",ellipsis:!0,children:`~${(Z=Number(eJ))>0&&Z<1e-6?"<0.000001":(0,g.ZV)(Z,2,6)}`}),(null==el?void 0:el.symbol)?(0,r.jsx)(c.A,{ml:"4px",fontSize:"14px",color:"textSubtle",style:{whiteSpace:"nowrap"},children:el.symbol}):null]}):null})}),no&&ns&&nl]}):null})})},125639:(e,n,t)=>{t.d(n,{Y:()=>i,s:()=>s});var r=t(985148),l=t(656862);let s=(0,r.eU)(!1),i=(0,l.tG)("pcs:tradingViewChartDisplay",!1)},243345:(e,n,t)=>{t.d(n,{w:()=>s});var r=t(25963);let l=async e=>{var n;let r=e?await t.e(3214).then(t.t.bind(t,283214,19)):await t.e(8208).then(t.t.bind(t,448208,19));return null!=(n=r.default)?n:r},s=e=>{let[n,t]=(0,r.useState)(),s=(0,r.useRef)(null);return(0,r.useEffect)(()=>{t(void 0),s.current=null},[e]),{animationData:n,loadAnimationData:(0,r.useCallback)(()=>(s.current||(s.current=l(e).then(e=>(t(e),e))),s.current),[e])}}},257177:(e,n,t)=>{t.d(n,{F:()=>m});var r=t(350979),l=t(179087),s=t(769932),i=t(796898),o=t(579518),a=t(428089),c=t(605641),d=t(979332),u=t(92292),p=t(734658),h=t(583431);function m(e){var n;let{currency:t,...m}=e,{t:x}=(0,s.A)(),{theme:f}=(0,l.DP)(),{isMobile:y}=(0,i.A)(),{enabled:A,multiplier:b}=(0,h.l0)(t),g=`${(Number(b)/Number(p.pi)).toFixed(2)}
9x`,j=b===p.pi,{targetRef:w,tooltip:v,tooltipVisible:k}=(0,o.A)((0,r.jsxs)(a.Ay,{children:[(0,r.jsx)(c.A,{bold:!0,small:!0,children:x("Display scaling factor")}),(0,r.jsx)(c.A,{small:!0,children:`${x("%symbol% is a tokenized stock. After a split, merger, or dividend, this factor rescales the amount shown so it stays aligned with the underlying share.",{symbol:null!=(n=null==t?void 0:t.symbol)?n:""})} ${x(j?"%multiplier% means no adjustment is applied right now.":"The amount shown is currently scaled by %multiplier%.",{multiplier:g})}`})]}),{placement:"top",trigger:y?"click":"hover"});return A?(0,r.jsxs)(r.Fragment,{children:[k&&v,(0,r.jsx)(a.Ay,{ref:w,style:{display:"inline-flex",alignItems:"center",cursor:"pointer"},children:(0,r.jsxs)(d.A,{variant:"textSubtle",scale:"sm",style:{borderRadius:"999px",color:f.colors.invertedContrast,paddingLeft:"5px",paddingRight:"4px",letterSpacing:"-0.2px"},...m,children:[`${x("Scale")} ${g}`,(0,r.jsx)(u.A,{width:"16px",color:"currentColor",ml:"2px"})]})})]}):null}},388305:(e,n,t)=>{t.d(n,{A:()=>j});var r=t(350979),l=t(228876),s=t(312680),i=t(549333),o=t(25963),a=t(326848),c=t(398612),d=t(131619),u=t(735872),p=t(334804),h=t(861932),m=t(882318),x=t(893573),f=t(733775),y=t(401368),A=t(968349),b=t(782038),g=t(668637);function j(){let e=(0,a.useRouter)(),{chainId:n,isWrongNetwork:t}=(0,A.ax)(),{[m.D0.INPUT]:{currencyId:j,chainId:w},[m.D0.OUTPUT]:{currencyId:v,chainId:k}}=(0,x.mU)(),C=null!=w?w:n,I=null!=k?k:n,[E,S]=(0,o.useState)(null),[T,D]=(0,o.useState)({}),{isOpen:M,onOpen:U,onDismiss:F}=(0,s.jN)(),[R,N]=[(0,d.H2)(j,w),(0,d.H2)(v,k)],[B,P]=[(0,d.Jg)(j,w),(0,d.Jg)(v,k)],L=(0,o.useMemo)(()=>{var e;return null!=(e=[R,N].filter(e=>!!(null==e?void 0:e.isToken)))?e:[]},[R,N]),O=(0,d.JQ)(n),W=(0,d.JQ)(C),$=(0,d.JQ)(I),G=(0,p.gJ)(),H=(0,u.Nn)(n),_=(0,u.f6)(n),z=(0,u.Nn)(C),X=(0,u.f6)(C),K=(0,u.Nn)(I),q=(0,u.f6)(I),V=(0,o.useCallback)((e,n)=>G&&!!(null==n?void 0:n.length)&&n.every(n=>{var t,r;return!!((null==(t=e[n])?void 0:t.current)||(null==(r=e[n])?void 0:r.error))}),[G]),Y=(0,o.useMemo)(()=>{let e={};return e[n]=V(H,_),e[C]=V(z,X),e[I]=V(K,q),e},[n,C,I,V,H,_,z,X,K,q]),Z=(0,o.useMemo)(()=>({[n]:O,[C]:W,[I]:$}),[n,C,I,O,W,$]),J=(0,o.useMemo)(()=>!t&&L?L.filter(e=>{var n;return!!Y[e.chainId]&&!(((0,f.QR)(e.address)||"")in(null!=(n=Z[e.chainId])?n:{}))}):[],[Z,t,Y,L]),Q=(0,o.useMemo)(()=>{let e=new Set;return C!==n&&e.add(C),I!==n&&e.add(I),Array.from(e)},[n,C,I]),ee=(0,o.useCallback)(e=>{if(!(null==e?void 0:e.isToken))return null;let n=(0,y.Sf)(e.chainId,e.address);return n?`${e.chainId}:${(0,l.fT)(e.chainId)?n:n.toLowerCase()}`:null},[]),en=(0,o.useCallback)(()=>{S(null),F()},[F]),et=(0,o.useCallback)(()=>{let e=ee(null==E?void 0:E.currency);e&&D(n=>({...n,[e]:!0})),en()},[en,ee,null==E?void 0:E.currency]),[er]=(0,i.A)((0,r.jsx)(c.A,{tokens:J,onCancel:()=>e.push("/swap")})),el=(0,o.useCallback)((e,n,t,r)=>{S({currency:e,title:n,reason:t,source:r}),U()},[U]),{tokenRiskA:es,tokenRiskB:ei}=(0,b.Wd)(B,P);(0,o.useEffect)(()=>{let e=ee(B),n=ee(P),t=ee(null==E?void 0:E.currency);if(B&&(null==es?void 0:es.severity)==="warn"&&e&&!T[e]){if(t===e&&M)return;el(B,es.title,es.reason,es.source);return}if(P&&(null==ei?void 0:ei.severity)==="warn"&&n&&!T[n]){if(t===n&&M)return;el(P,ei.title,ei.reason,ei.source)}},[T,ee,es,M,B,P,ei,el,null==E?void 0:E.currency]),(0,o.useEffect)(()=>{if(!E)return;let e=ee(E.currency),n=ee(B),t=ee(P);e&&e!==n&&e!==t&&en()},[en,ee,B,P,E]),(0,o.useEffect)(()=>{J.length>0&&er()},[J.length]);let eo=E?(0,r.jsx)(s.aF,{isOpen:M,onDismiss:en,closeOnOverlayClick:!1,children:(0,r.jsx)(g.A,{swapCurrency:E.currency,title:E.title,reason:E.reason,source:E.source,onAcknowledge:et})}):null;return(0,r.jsxs)(r.Fragment,{children:[Q.map(e=>(0,r.jsx)(h.X,{chainId:e},e)),eo]})}},398612:(e,n,t)=>{t.d(n,{A:()=>b});var r=t(350979),l=t(769932),s=t(282304),i=t(428089),o=t(102342),a=t(131619),c=t(25963),d=t(796147),u=t(605641),p=t(673115),h=t(320669),m=t(150103),x=t(968349),f=t(733775),y=t(452301);let A=e=>{let{currencies:n,onDismiss:t}=e,{chainId:i}=(0,x.ax)(),{t:o}=(0,l.A)(),c=i&&n?n.map(e=>(0,y.dc)(e,i)):[],A=(0,a.rN)();return(0,r.jsx)(s.Ay,{title:o("Unsupported Assets"),onDismiss:t,children:(0,r.jsxs)(d.mm,{gap:"lg",children:[c.map(e=>{var n;return e&&A&&Object.keys(A).includes(e.address)&&(0,r.jsxs)(d.mm,{gap:"12px",children:[(0,r.jsxs)(h.eF,{gap:"5px",align:"center",children:[(0,r.jsx)(m.Zm,{currency:e,size:"24px"}),(0,r.jsx)(u.A,{children:e.symbol})]}),i&&(0,r.jsx)(p.A,{external:!0,small:!0,color:"primaryDark",href:(0,f.Bz)(e.address,"address",i),children:e.address})]},null==(n=e.address)?void 0:n.concat("not-supported"))}),(0,r.jsx)(d.mm,{gap:"lg",children:(0,r.jsx)(u.A,{children:o("Some assets are not available through this interface because they may not work well with our smart contract or we are unable to allow trading for legal reasons.")})})]})})},b=e=>{let{tokens:n,onDismiss:t,onCancel:d}=e,{t:u}=(0,l.A)(),p=(0,a.rN)();return(0,c.useMemo)(()=>n.some(e=>null==p?void 0:p[e.address]),[n,p])?(0,r.jsx)(A,{onDismiss:d,currencies:n}):(0,r.jsx)(s.Ay,{title:u("Import Token"),onDismiss:()=>{null==t||t(),d()},children:(0,r.jsx)(i.Ay,{maxWidth:"380px",children:(0,r.jsx)(o.A,{tokens:n,handleCurrencySelect:t})})})}},494570:(e,n,t)=>{t.d(n,{A:()=>A});var r=t(350979),l=t(132435),s=t.n(l),i=t(156035),o=t.n(i),a=t(680797),c=t(605641),d=t(575058);
9let u=a.I4.table.withConfig({componentId:"sc-2c054c01-0"})(["margin-bottom:32px;margin-top:32px;width:100%;td,th{color:",";padding:8px;}"],e=>{let{theme:n}=e;return n.colors.text}),p=a.I4.div.withConfig({componentId:"sc-2c054c01-1"})(["width:100%;overflow:auto;-webkit-overflow-scrolling:touch;"]),h=a.I4.div.withConfig({componentId:"sc-2c054c01-2"})(["color:",";margin-bottom:16px;margin-top:16px;li{margin-bottom:8px;}"],e=>{let{theme:n}=e;return n.colors.text}),m=a.I4.pre.withConfig({componentId:"sc-2c054c01-3"})(["color:",";margin-bottom:16px;margin-top:16px;max-width:100%;overflow-x:auto;"],e=>{let{theme:n}=e;return n.colors.text}),x=a.I4.a.withConfig({componentId:"sc-2c054c01-4"})(["word-break:break-all;"]),f=e=>(0,r.jsx)(d.A,{as:"h4",scale:"lg",my:"16px",...e}),y={h1:f,h2:f,h3:f,h4:f,h5:f,h6:f,p:e=>(0,r.jsx)(c.A,{as:"p",my:"16px",...e}),table:e=>{let{...n}=e;return(0,r.jsx)(p,{children:(0,r.jsx)(u,{children:n.children})})},ol:e=>(0,r.jsx)(h,{as:"ol",...e}),ul:e=>(0,r.jsx)(h,{as:"ul",...e}),pre:m,a:x},A=e=>(0,r.jsx)(s(),{remarkPlugins:[o()],components:y,...e})},508982:(e,n,t)=>{t.d(n,{$6:()=>D,Qu:()=>T});var r=t(350979),l=t(87242),s=t.n(l),i=t(25963),o=t(796898),a=t(796147),c=t(557423),d=t(769932),u=t(16713),p=t(320669),h=t(882318),m=t(893573),x=t(548606),f=t(680797),y=t(179087),A=t(361938),b=t(899188),g=t(968349),j=t(243345),w=t(747921),v=t(326848),k=t(907535);let C=s()(()=>Promise.all([t.e(3412),t.e(8438)]).then(t.t.bind(t,648438,23)),{loadableGenerated:{webpack:()=>[648438]},ssr:!1}),I=(0,f.i7)(["from{transform:rotate(0deg);}to{transform:rotate(180deg);}"]),E=f.I4.div.withConfig({componentId:"sc-db3935a7-0"})(["will-change:transform;&.switch-animation{animation:"," 0.25s forwards ease-in-out;}"],I),S=f.I4.div.withConfig({componentId:"sc-db3935a7-1"})(["position:absolute;left:-16px;right:-16px;height:1px;background-color:",";top:calc(50% + 6px);"],e=>{let{theme:n}=e;return n.colors.cardBorder}),T=(0,i.memo)(function(e){let{compact:n,replaceBrowser:t=!0}=e,l=(0,i.useRef)(null),s=(0,i.useRef)(null),{isDark:c}=(0,y.DP)(),{isDesktop:d}=(0,o.A)(),{switchNetwork:f,isLoading:k}=(0,w.Y)(),{chainId:I}=(0,g.ax)(),[T,D]=(0,i.useState)(!1),{animationData:M,loadAnimationData:U}=(0,j.w)(c),{onSwitchTokens:F}=(0,x.E)(),{[h.D0.INPUT]:{currencyId:R,chainId:N},[h.D0.OUTPUT]:{currencyId:B,chainId:P}}=(0,m.mU)(),L=(0,v.useRouter)(),O=(0,i.useCallback)(async()=>{D(!0);try{if(F(),t){if(P&&I!==P&&!k){await f(P,{replaceUrl:!1,from:"switch"})&&L.replace({query:{...L.query,...B&&{inputCurrency:B},...P&&{chain:b.RW[P]},...R&&{outputCurrency:R},...N&&{chainOut:b.RW[N]}}},void 0,{shallow:!0});return}(0,u.A)({inputCurrency:B,outputCurrency:R,...N&&P&&N!==P&&{chainOut:b.RW[N],chain:b.RW[P]}})}}finally{D(!1)}},[F,R,B,I,k,D,N,P,t,f,L]),W=(0,i.useCallback)(()=>{T||(U(),O(),l.current&&!l.current.classList.contains("switch-animation")&&l.current.classList.add("switch-animation"))},[U,O,T]),$=(0,i.useCallback)(()=>{var e;null==(e=l.current)||e.classList.remove("switch-animation")},[]);return(0,r.jsxs)(a.mm,{justify:"space-between",position:"relative",style:{...n?{position:"relative",height:0,padding:0,margin:0}:{}},children:[!n&&(0,r.jsx)(S,{}),(0,r.jsx)(p.eF,{justify:"center",style:{padding:"0 1rem",marginTop:"1em",...n?{position:"absolute",zIndex:2,top:0,marginTop:0,padding:0,left:"50%",transform:"translate(-50%, -50%)"}:{}},children:d?(0,r.jsx)(E,{ref:l,onAnimationEnd:$,onMouseEnter:U,children:M?(0,r.jsx)(C,{lottieRef:s,animationData:M,style:{height:"40px",cursor:"pointer"},onClick:W,autoplay:!1,loop:!1,onMouseEnter:()=>{var e;return null==(e=s.current)?void 0:e.playSegments([7,19],!0)},onMouseLeave:()=>{var e;$(),null==(e=s.current)||e.playSegments([39,54],!0)}}):(0,r.jsx)(A.U.p_,{onClick:W})}):(0,r.jsx)(A.U.p_,{onClick:O})})]})}),D=(0,i.memo)(()=>{let{t:e}=(0,d.A)(),{recipient:n}=(0,m.mU)(),{onChangeRecipient:t}=(0,x.E)();return(0,k.sr)()&&null===n?(0,r.jsx)(c.A,{variant:"text",id:"add-recipient-button",onClick:()=>t(""),"data-dd-action-name":"Swap flip button",width:"100%",children:e("+ Assign Recipient")}):null})},546061:(e,n,t)=>{t.d(n,{A:()=>i});var r=t(680797),l=t(428089);let s=(0,r.I4)(l.Ay).withConfig({componentId:"sc-c2f7f062-0"})(["border-radius:50%;border:2px solid ",";border-top:2px solid transparent;-webkit-animation:spin 2s linear infinite;animation:spin 2s linear infinite;@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);}100%{-webkit-transform:rotate(360deg);}}@keyframes spin{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}"],e=>{let{theme:n}=e;return n.colors.textDisabled});s.defaultProps={width:"20px",height:"20px"};let i=s},590429:(e,n,t)=>{t.d(n,{A:()=>c});var r=t(350979),l=t(769932),s=t(421770),i=t(428089),o=t(605641),a=t(673115);let c=()=>{let{t:e}=(0,l.A)();return(0,r.jsxs)(i.Ay,{maxWidth:"380px",children:[(0,r.jsx)(o.A,{as:"span",children:e("Overnight has temporarily paused USD+ operations on zkSync due to the recent Velocore exploit.Swap, approve, and add / remove liquidity functions are currently unavailable. More information can be found on Overnight's")}),(0,r.jsx)(s.x,{i18nKey:"Overnight has temporarily paused USD+ operations on zkSync due to the recent Velocore exploit.Swap, approve, and add / remove liquidity functions are currently unavailable. More information can be found on Overnight's <0>twitter page</0>.",components:[(0,r.jsx)(a.A,{external:!0,m:"0 4px",style:{display:"inline"},href:"https://twitter.com/overnight_fi/status/1797552748789195237"})]})]})}},668637:(e,n,t)=>{t.d(n,{A:()=>ef});var r=t(350979),l=t(228876),s=t(769932),i=t(966983),o=t(226464),a=t(575058),c=t(428089),d=t(605641),u=t(673115),p=t(494570),h=t(847085),m=t(888178),x=t(680797),f=t(670420),y=t(311560);let A={ath:new y.GH(l.nU.BASE,"0xd9DC8D2B0497C38999dd743A6aDdBe4e83DE8aF6",18,"ATH","Aethir Token","")},b={pokemoney:new y.GH(l.nU.BSC,"0x32ff5b4C3B1744F0344D96fA2f87799Ed2805749",18,"PMY","Pokemoney Coin",""),free:new y.GH(l.nU.BSC,"0x880BCe9321c79cAc1D290De6d31DDE722C606165",8,"FREE","Freedom Protocol Token",""),safemoon:new y.GH(l.nU.BSC,"0x8076C74C5e3F5852037F31Ff0093Eeb8c8ADd8D3",9,"SAFEMOON","Safemoon Token","https://safemoon.net/"),gala:new y.GH(l.nU.BSC,"0x7dDEE176F665cD201F93eEDE625770E2fD911990",18,"GALA","pTokens GALA","https://games.gala.com/"),xcad:new y.GH(l.nU.BSC,"0x431e0cD023a32532BF3969CddFc002c00E98429d",18,"XCAD","Chainport.io-Peg XCAD Token","https://xcadnetwork.com/"),lusd:new y.GH(l.nU.BSC,"0x23e8a70534308a4AAF76fb8C32ec13d17a3BD89e",18,"lUSD","lUSD","https://linear.finance/"),nfp:new y.GH(l.nU.BSC,"0x75E8ddB518bB757b4282cd5b83bb70d4101D12FB",18,"NFP","NFPrompt Token","https://nfprompt.io/"),pundiai:new y.GH(l.nU.BSC,"0x67AA700Ab0110Cc52bf7F308fe25068E87a0f581",18,"PUNDIAI","PundiAI Token","https://twitter.com/PundiAI"),town:new y.GH(l.nU.BSC,"0x973253D0C12366e0fA5AFb9F9E2e9486ECA69c01",18,"TOWN","Alt.town")},{alETH:g}=f.E8,{bondly:j,itam:w,ccar:v,bttold:k,abnbc:C,metis:I,gain:E}=f.x_,{pokemoney:S,free:T,safemoon:D,gala:M,xcad:U,lusd:F,nfp:R,pundiai:N,town:B}=b,{usdPlus:P}=f.ne,{ath:L}=A,O={[l.nU.ETHEREUM]:{alETH:g},[l.nU.BSC]:{safemoon:D,bondly:j,itam:w,ccar:v,bttold:k,pokemoney:S,free:T,gala:M,abnbc:C,xcad:U,metis:I,lusd:F,nfp:R,pundiai:N,gain:E,town:B},[l.nU.ZKSYNC]:{usdPlus:P},[l.nU.BASE]:{ath:L}},{ath:W}
9=O[l.nU.BASE],$={[W.address]:{symbol:W.symbol,component:(0,r.jsx)(()=>{let{t:e}=(0,s.A)();return(0,r.jsx)(c.Ay,{maxWidth:"380px",children:(0,r.jsx)(d.A,{children:e("Warning: The $ATH token pool is not a valid token trading pair - please stop buying")})})},{})}};var G=t(430586),H=t(421770),_=t(25963);let{safemoon:z,bondly:X,itam:K,ccar:q,bttold:V,pokemoney:Y,free:Z,gala:J,abnbc:Q,xcad:ee,metis:en,lusd:et,nfp:er,pundiai:el,gain:es,town:ei}=O[l.nU.BSC],eo={[z.address]:{symbol:z.symbol,component:(0,r.jsx)(()=>{let{t:e}=(0,s.A)();return(0,r.jsx)(c.Ay,{maxWidth:"380px",children:(0,r.jsx)(d.A,{children:(0,r.jsx)(H.x,{i18nKey:"SAFEMOON has been migrated to <0>a new contract address.</0> Trading on the old address may result in the complete loss of your assets. For more information please refer to <1>Safemoon's announcement</1>.",components:[(0,r.jsx)(u.A,{style:{display:"inline"},external:!0,href:"https://bscscan.com/address/0x42981d0bfbAf196529376EE702F2a9Eb9092fcB5"}),(0,r.jsx)(u.A,{style:{display:"inline"},external:!0,href:"https://twitter.com/safemoon/status/1477770592031887360"})]})})})},{})},[X.address]:{symbol:X.symbol,component:(0,r.jsx)(()=>{let{t:e}=(0,s.A)();return(0,r.jsx)(d.A,{children:e("Warning: BONDLY has been compromised. Please remove liquidity until further notice.")})},{})},[K.address]:{symbol:K.symbol,component:(0,r.jsx)(()=>{let{t:e}=(0,s.A)();return(0,r.jsx)(c.Ay,{maxWidth:"380px",children:(0,r.jsx)(d.A,{children:(0,r.jsx)(H.x,{i18nKey:"ITAM has been rebranded as ITAM CUBE. <0>Please proceed to ITAM bridge to conduct a one-way swap of your ITAM tokens.</0> All transfers of the old ITAM token will be disabled after the swap.",components:[(0,r.jsx)(u.A,{style:{display:"inline"},external:!0,href:"https://itam.network/swap"})]})})})},{})},[q.address]:{symbol:q.symbol,component:(0,r.jsx)(()=>{let{t:e}=(0,s.A)();return(0,r.jsx)(c.Ay,{maxWidth:"380px",children:(0,r.jsx)(d.A,{children:(0,r.jsx)(H.x,{i18nKey:"Crypto Cars (CCAR) has been migrated to <0>a new contract address.</0> Trading on the old address may result in the complete loss of your assets. For more information please refer to <1>the announcement.</1>",components:[(0,r.jsx)(u.A,{style:{display:"inline"},external:!0,href:"https://bscscan.com/token/0x322e5015Cc464Ada7f99dE7131CE494dE1834396"}),(0,r.jsx)(u.A,{style:{display:"inline"},external:!0,href:"https://t.me/Crypto_Cars_Official/465037"})]})})})},{})},[V.address]:{symbol:V.symbol,component:(0,r.jsx)(()=>{let{t:e}=(0,s.A)();return(0,r.jsxs)(c.Ay,{maxWidth:"380px",children:[(0,r.jsx)(d.A,{children:e("Please note that this is the old BTT token, which has been swapped to the new BTT tokens in the following ratio:")}),(0,r.jsx)(d.A,{children:"1 BTT (OLD) = 1,000 BTT (NEW)"}),(0,r.jsx)(d.A,{mb:"8px",children:(0,r.jsx)(H.x,{i18nKey:"Trade the new BTT token <0>here</0>",components:[(0,r.jsx)(u.A,{style:{display:"inline"},href:"/swap?outputCurrency=0x352Cb5E19b12FC216548a2677bD0fce83BaE434B"})]})}),(0,r.jsx)(G.A,{href:"https://medium.com/@BitTorrent/tutorial-how-to-swap-bttold-to-btt-453264d7142",children:e("For more details on the swap, please refer here.")})]})},{})},[Y.address]:{symbol:Y.symbol,component:(0,r.jsx)(()=>{let{t:e}=(0,s.A)();return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(d.A,{children:e("Suspicious rugpull token")})})},{})},[Z.address]:{symbol:Z.symbol,component:(0,r.jsx)(()=>{let{t:e}=(0,s.A)();return(0,r.jsx)(c.Ay,{maxWidth:"380px",children:(0,r.jsx)(d.A,{children:e("Risk Warning: This token is subject to high price risk. Please do your own research before trading this token. Please also note that as of 24 June 2022 there is also a reflection fee for every transfer of FREE ranging from 2.5 to 5% per trade/transfer.")})})},{})},[J.address]:{symbol:J.symbol,component:(0,r.jsx)(()=>{let{t:e}=(0,s.A)();return(0,r.jsxs)(c.Ay,{maxWidth:"380px",children:[(0,r.jsx)(d.A,{children:e("Warning: The pGALA token pool is not a valid token trading pair - please stop buying.")}),(0,r.jsx)(G.A,{href:"https://twitter.com/pNetworkDeFi/status/1588266897061031936",children:e("For more info, please see pGALAâs twitter.")})]})},{})}
9,[Q.address]:{symbol:Q.symbol,component:(0,r.jsx)(()=>{let{t:e}=(0,s.A)();return(0,r.jsxs)(c.Ay,{maxWidth:"380px",children:[(0,r.jsx)(d.A,{children:e("Warning: aBNB token from Ankr has been exploited. Please proceed with caution. We do not recommend users to trade the token.")}),(0,r.jsx)(G.A,{href:"https://twitter.com/ankr/status/1598503332477280256",children:e("Learn More")})]})},{})},[ee.address]:{symbol:ee.symbol,component:(0,r.jsx)(()=>{let{t:e}=(0,s.A)();return(0,r.jsx)(c.Ay,{maxWidth:"380px",children:(0,r.jsxs)(d.A,{children:[e("XCAD is now using a new bridge provider and has migrated to a new XCAD token on BSC."),(0,r.jsx)("br",{}),e("You can obtain the new token either by swapping your old tokens on PancakeSwap or bridging them to ETH and back to BSC using the new bridge provider."),(0,r.jsx)("br",{}),(0,r.jsx)(H.x,{i18nKey:"For more info, click <0>here</0>",components:[(0,r.jsx)(u.A,{style:{display:"inline"},external:!0,href:"https://blog.xcadnetwork.com/xcad-network-bsc-token-migration-wormhole-partnership-3c73aaabe4ba"})]}),(0,r.jsx)("br",{}),(0,r.jsxs)(u.A,{external:!0,href:"https://bscscan.com/token/0xa026ad2ceda16ca5fc28fd3c72f99e2c332c8a26",children:[e("New token contract address"),"."]})]})})},{})},[en.address]:{symbol:en.symbol,component:(0,r.jsx)(()=>{let{t:e}=(0,s.A)();return(0,r.jsxs)(c.Ay,{maxWidth:"380px",children:[(0,r.jsx)(d.A,{children:e("Caution - METIS Token")}),(0,r.jsx)(d.A,{children:(0,r.jsx)(H.x,{i18nKey:"Please exercise due caution when trading / providing liquidity for the METIS token. The protocol was recently affected by the <0>PolyNetwork Exploit.</0> For more information, please refer to MetisDAOâs <1>Twitter</1>",components:[(0,r.jsx)(u.A,{external:!0,m:"0 4px",style:{display:"inline"},href:"https://twitter.com/MetisDAO/status/1676431481621676032"}),(0,r.jsx)(u.A,{external:!0,ml:"4px",style:{display:"inline"},href:"https://twitter.com/MetisDAO"})]})})]})},{})},[et.address]:{symbol:et.symbol,component:(0,r.jsx)(()=>{let{t:e}=(0,s.A)();return(0,r.jsxs)(c.Ay,{maxWidth:"380px",children:[(0,r.jsx)(d.A,{children:e("Caution - lUSD Token")}),(0,r.jsx)(d.A,{children:(0,r.jsx)(H.x,{i18nKey:"Please exercise due caution when trading or providing liquidity for the lUSD token. The protocol was recently affected by an <0>exploit.</0> For more information, please refer to Linear Financeâs <1>Twitter</1>",components:[(0,r.jsx)(u.A,{external:!0,style:{display:"inline"},href:"https://twitter.com/LinearFinance/status/1704818417880936535"}),(0,r.jsx)(u.A,{external:!0,ml:"4px",style:{display:"inline"},href:"https://twitter.com/LinearFinance"})]})})]})},{})},[er.address]:{symbol:er.symbol,component:(0,r.jsx)(()=>{let{t:e}=(0,s.A)();return(0,r.jsxs)(c.Ay,{maxWidth:"380px",children:[(0,r.jsx)(d.A,{children:e("The NFP token has recently experienced an exploit. Please refrain from swapping NFP until further notice. More information can be found on the project's twitter page.")}),(0,r.jsx)(G.A,{href:"https://twitter.com/nfprompt/status/1768558658697433464?s=20",children:e("twitter page")})]})},{})},[el.address]:{symbol:el.symbol,component:(0,r.jsx)(()=>{let{t:e}=(0,s.A)();return(0,r.jsxs)(c.Ay,{maxWidth:"380px",children:[(0,r.jsx)(d.A,{children:e("Caution - PUNDIAI Token")}),(0,r.jsxs)(d.A,{children:[e("Please exercise due caution when trading / providing liquidity for the PUNDIAI token. The protocol recently encountered a security compromise. For more information, please refer to PundiAIâs"),(0,r.jsx)(u.A,{external:!0,ml:"4px",style:{display:"inline"},href:"https://twitter.com/PundiAI",children:e("Twitter")})]})]})},{})},[es.address]:{symbol:es.symbol,component:(0,r.jsx)(()=>{let{t:e}=(0,s.A)();return(0,r.jsxs)(c.Ay,{maxWidth:"380px",children:[(0,r.jsx)(d.A,{children:e("Caution - GAIN Token")}),(0,r.jsx)(d.A,{children:(0,r.jsx)(H.x,{i18nKey:"Please exercise due caution when trading / providing liquidity for the GAIN token. The protocol recently encountered a <0>security compromise.</0> For more information, please refer to <1>GriffinAI X</1>",components:[(0,r.jsx)(u.A,{external:!0,m:"0 4px",style:{display:"inline"},href:"https://x.com/Griffin_AI/status/1971049192245047677"}),(0,r.jsx)(u.A,{external:!0,ml:"4px",style:{display:"inline"},href:"https://x.com/Griffin_AI"})]})})]})},{})}
9,[ei.address]:{symbol:ei.symbol,component:(0,r.jsx)(e=>{let{token:n,statusHref:t,profileHref:l}=e,{t:i}=(0,s.A)(),o=(0,_.useMemo)(()=>[(0,r.jsx)(u.A,{external:!0,m:"0 4px",style:{display:"inline"},href:t}),(0,r.jsx)(u.A,{external:!0,ml:"4px",style:{display:"inline"},href:l})],[t,l]);return(0,r.jsxs)(c.Ay,{maxWidth:"380px",children:[(0,r.jsx)(d.A,{children:i("Caution - %symbol% Token",{symbol:n.symbol})}),(0,r.jsx)(d.A,{children:(0,r.jsx)(H.x,{i18nTemplate:"Please exercise due caution when trading / providing liquidity for the %symbol% token. The protocol recently encountered a <0>security compromise.</0> For more information, please refer to <1>%name% X</1>",values:{symbol:n.symbol,name:n.name},components:o})})]})},{token:ei,statusHref:"https://x.com/alttownofficial/status/1972853816652710317",profileHref:"https://x.com/AlttownOfficial"})}},{alETH:ea}=O[l.nU.ETHEREUM],ec={[ea.address]:{symbol:ea.symbol,component:(0,r.jsx)(()=>{let{t:e}=(0,s.A)();return(0,r.jsx)(c.Ay,{maxWidth:"380px",children:(0,r.jsx)(H.x,{i18nKey:"Please exercise due caution when trading / providing liquidity for the alETH token. The protocol was recently affected by the <0>Curve exploit.</0> For more information, please refer to Alchemixâs <1>Twitter</1> and await further updates from the team",components:[(0,r.jsx)(u.A,{external:!0,m:"0 4px",style:{display:"inline"},href:"https://twitter.com/CurveFinance/status/1685925429041917952"}),(0,r.jsx)(u.A,{external:!0,m:"0 4px",style:{display:"inline"},href:"https://twitter.com/AlchemixFi/status/1685737632133971968"})]})})},{})}};var ed=t(590429);let{usdPlus:eu}=O[l.nU.ZKSYNC],ep={[eu.address]:{symbol:eu.symbol,component:(0,r.jsx)(ed.A,{})}},eh=(0,x.I4)(i.Bs).withConfig({componentId:"sc-dc6f1bcd-0"})(["max-width:440px;"]),em=(0,x.I4)(o.A).withConfig({componentId:"sc-dc6f1bcd-1"})(["align-items:flex-start;justify-content:flex-start;"]),ex={[l.nU.ETHEREUM]:ec,[l.nU.BSC]:eo,[l.nU.ZKSYNC]:ep,[l.nU.BASE]:$,[l.nU.ARBITRUM_ONE]:{}},ef=e=>{var n,t;let{swapCurrency:o,title:x,reason:f,source:y,onDismiss:A,onAcknowledge:b}=e,{t:g}=(0,s.A)(),{theme:j}=(0,m.Ay)();if(!o)return null;let{chainId:w}=o,v=w?null==ex||null==(n=ex[w])?void 0:n[o.address]:void 0,k=(null==v?void 0:v.symbol)||(null==o?void 0:o.symbol)||g("this token"),C=x||g("Notice for trading %symbol%",{symbol:k});return(0,r.jsxs)(eh,{minWidth:"280px",children:[(0,r.jsx)(i.rQ,{background:j.colors.gradientCardHeader,children:(0,r.jsx)(a.A,{p:"12px 24px",children:C})}),(0,r.jsxs)(i.cw,{p:"24px",children:[(0,r.jsx)(em,{variant:"warning",mb:"24px",children:(0,r.jsx)(c.Ay,{children:null!=(t=null==v?void 0:v.component)?t:(0,r.jsx)(r.Fragment,{children:"thirdParty"===y?(0,r.jsxs)(c.Ay,{children:[(0,r.jsx)(d.A,{mb:"8px",children:g("This token has been flagged by a third-party risk scanner. Please do your own research and proceed with caution.")}),(0,r.jsxs)(d.A,{children:[g("Result provided by")," ",(0,r.jsx)(u.A,{external:!0,color:"primary60",style:{display:"inline"},href:"https://www.hashdit.io/",children:"HashDit"}),w===l.nU.BSC?(0,r.jsxs)(r.Fragment,{children:[" ","/"," ",(0,r.jsx)(u.A,{external:!0,color:"primary60",style:{display:"inline"},href:`https://dappbay.bnbchain.org/risk-scanner/${o.address}`,children:g("Get more details from RedAlarm")})]}):null]})]}):f?(0,r.jsx)(c.Ay,{children:(0,r.jsx)(p.A,{components:{p:e=>{let{children:n}=e;return(0,r.jsx)(d.A,{children:n})},a:e=>{let{href:n,children:t}=e;return(0,r.jsx)(u.A,{href:n,external:!0,color:"primary60",style:{display:"inline"},target:"_blank",rel:"noopener noreferrer",children:t})}},children:f})}):(0,r.jsx)(d.A,{children:g("This token has been flagged as high risk. Please do your own research and proceed with caution.")})})})}),(0,r.jsx)(h.z,{handleContinueClick:()=>{null==b||b(),null==A||A()}})]})]})}},847085:(e,n,t)=>{t.d(n,{z:()=>d});var r=t(350979),l=t(769932),s=t(25963),i=t(501823),o=t(557423),a=t(310085),c=t(605641);let d=e=>{let{handleContinueClick:n}=e,{t}=(0,l.A)(),[d,u]=(0,s.useState)(!1);return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(i.A,{alignItems:"center",justifyContent:"space-between",children:[(0,r.jsx)("label",{htmlFor:"acknowledgement",children:(0,r.jsxs)(i.A,{alignItems:"center",children:[(0,r.jsx)(a.A,{id:"acknowledgement",name:"confirmed",type:"checkbox",checked:d,onChange:()=>u(!d),scale:"sm"}),(0,r.jsx)(c.A,{ml:"10px",style:{userSelect:"none"},children:t("I understand")})]})}),(0,r.jsx)(o.A,{disabled:!d,onClick:n,children:t("Continue")})]})})}},960093:(e,n,t)=>{t.d(n,{A:()=>i});var r=t(350979),l=t(457244),s=t(866814);let i=e=>(0,r.jsx)(l.F,{features:e.features,strict:e.strict,children:(0,r.jsx)(s.N,{...e,children:e.children})})}}]);
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.