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]="5aeda65e-9c68-4ad5-888e-898488d3d69f",e._sentryDebugIdIdentifier="sentry-dbid-5aeda65e-9c68-4ad5-888e-898488d3d69f")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6901],{48408:(e,n,l)=>{"use strict";l.r(n),l.d(n,{default:()=>ex});var i=l(350979),t=l(769932),r=l(841376),s=l(460379),o=l(930013),d=l(326848),a=l(733775),u=l(630037),c=l(421770),m=l(311560),x=l(67002),h=l(554945),p=l(150591),v=l(796147),f=l(796259),g=l(24153),y=l(605641),j=l(226464),b=l(428089),A=l(557423),w=l(353540),S=l(862373),P=l(673384),k=l(388495),R=l(266283),E=l(183693),I=l(150103),q=l(114041),z=l(131619),C=l(687287),M=l(332083),T=l(810286),L=l(262453),B=l(555967),U=l(859886),O=l(681422),$=l(656302),W=l(772763),N=l(553301),D=l(37735),F=l(25963),V=l(306411),_=l(909725),J=l(452301),Q=l(52093),H=l(782739),X=l(660876),Y=l(53670),G=l(920820),Z=l(462864),K=l(284087),ee=l(368177),en=l(995315),el=l(312779),ei=l(753122);function et(e){var n,l;let{priceLower:r,priceUpper:s,onLeftRangeInput:o,onRightRangeInput:d,getDecrementLower:a,getIncrementLower:u,getDecrementUpper:c,getIncrementUpper:m,currencyA:x,currencyB:h,feeAmount:p,ticksAtLimit:v,tickSpaceLimits:f}=e,{t:g}=(0,t.A)(),j=null==(n=null!=x?x:void 0)?void 0:n.wrapped,b=null==(l=null!=h?h:void 0)?void 0:l.wrapped,A=j&&b&&j.sortsBefore(b),w=A?r:null==s?void 0:s.invert(),S=A?s:null==r?void 0:r.invert(),k=(0,C.xm)(w),R=(0,C.xm)(S),E=(0,F.useMemo)(()=>{if(v[A?q.zm.LOWER:q.zm.UPPER])return"0";if((null==w?void 0:w.denominator)===0n)return"";try{if((null==f?void 0:f[q.zm.LOWER])!==void 0&&w&&(0,P.dt)(w)<=f[q.zm.LOWER])return"0";return(0,el.N)(k)}catch(e){return""}},[A,w,k,f,v]),I=(0,F.useMemo)(()=>{if(v[A?q.zm.UPPER:q.zm.LOWER])return"â";if((null==S?void 0:S.denominator)===0n)return"";try{if((null==f?void 0:f[q.zm.LOWER])!==void 0&&S&&(0,P.dt)(S)<=f[q.zm.LOWER])return"0";if((null==f?void 0:f[q.zm.UPPER])!==void 0&&S&&(0,P.dt)(S)>=f[q.zm.UPPER])return"â";return(0,el.N)(R)}catch(e){return""}},[A,S,R,f,v]);return(0,i.jsxs)(en.A,{gap:"16px",width:"100%",children:[(0,i.jsx)(ei.A,{value:E,onUserInput:o,width:"48%",decrement:A?a:m,increment:A?u:c,decrementDisabled:v[A?q.zm.LOWER:q.zm.UPPER],incrementDisabled:v[A?q.zm.LOWER:q.zm.UPPER],feeAmount:p,label:w?`${null==h?void 0:h.symbol}`:"-",title:(0,i.jsx)(y.A,{color:"secondary",textTransform:"uppercase",small:!0,bold:!0,children:g("Min Price")}),tokenA:x,tokenB:h}),(0,i.jsx)(ei.A,{value:I,onUserInput:d,width:"48%",decrement:A?c:u,increment:A?m:a,incrementDisabled:v[A?q.zm.UPPER:q.zm.LOWER],decrementDisabled:v[A?q.zm.UPPER:q.zm.LOWER],feeAmount:p,label:S?`${null==h?void 0:h.symbol}`:"-",tokenA:x,tokenB:h,title:(0,i.jsx)(y.A,{color:"secondary",textTransform:"uppercase",small:!0,bold:!0,children:g("Max Price")})})]})}var er=l(149160),es=l(427866),eo=l(343954),ed=l(284178);function ea(e){let{v2PairAddress:n}=e,l=(0,B.Qg)(n),{chainId:t}=(0,Y.ax)(),{data:r}=(0,H.Qo)({abi:null==l?void 0:l.abi,address:n,functionName:"token0",chainId:t}),{data:s}=(0,H.Qo)({abi:null==l?void 0:l.abi,address:n,functionName:"token1",chainId:t}),o=(0,z.rd)(r),d=(0,z.rd)(s),[,a]=(0,U.ek)(null!=o?o:void 0,null!=d?d:void 0),u=(0,$.A)(null==a?void 0:a.liquidityToken);return r&&s&&a&&u?(0,i.jsx)(eu,{v2PairAddress:n,token0:o,token1:d,pair:a,v2LPTotalSupply:u}):(0,i.jsx)(x.R,{width:"100%",justifyContent:"center",alignItems:"center",display:"flex",minHeight:"screenMd",children:(0,i.jsx)(h.A,{})})}function eu(e){var n,l,r,s,o,d,u,h,z;let{v2PairAddress:U,token0:$,token1:H,pair:en,v2LPTotalSupply:el}=e,{t:ei,currentLanguage:{locale:ea}}=(0,t.A)(),{account:eu,chainId:ec}=(0,Y.W7)(),{balance:em}=(0,O.Ay)(U),{reserve0:ex,reserve1:eh}=en;(0,K.x)(null==ex?void 0:ex.currency,null==eh?void 0:eh.currency);let ep=(0,F.useMemo)(()=>m.eF.fromRawAmount($,BigInt(em.toString())*ex.quotient/el.quotient),[$,em,ex.quotient,el.quotient]),ev=(0,C.Wu)(ep,$.decimals),ef=(0,C.wG)($),eg=(0,C.wG)(H),ey=(0,F.useMemo)(()=>m.eF.fromRawAmount(H,BigInt(em.toString())*eh.quotient/el.quotient),[H,em,eh.quotient,el.quotient]),ej=(0,C.Wu)(ey,H.decimals),{isPending:eb,isError:eA,largestUsageFeeTier:ew}=(0,G.g)($,H),[eS,eP]=(0,F.useState)(P.dl.MEDIUM),ek=(0,F.useCallback)(e=>{let{feeAmount:n}=e;n&&eP(n)},[]),{position:eR}=(0,N.w)(void 0),eE=(0,ed.oU)(),[eI,eq]=(0,F.useState)($),{pool:ez,ticks:eC,price:eM,pricesAtTicks:eT,noLiquidity:eL,invalidRange:eB,outOfRange:eU,invertPrice:eO,ticksAtLimit:e$}=(0,D.A)(null!=$?$:void 0,null!=H?H:void 0,eS,null!=eI?eI:void 0,eR,eE),{onLeftRangeInput:eW,onRightRangeInput:eN,onBothRangeInput:eD}=(0,eo.i)(eL),eF=(0,F.useMemo)(()=>eI&&$?eI.equals($)?H:$:void 0,[eI,$,H]),eV=(0,C.hx)(eI,eF),e_=(0,F.useCallback)((e,n)=>{eD({leftTypedValue:eV(e),rightTypedValue:eV(n)})},[eV,eD]),eJ=(0,F.useCallback)(e=>{eW(eV(e))},[eV,eW]),eQ=(0,F.useCallback)(e=>{eN(eV(e))},[eV,eN]),eH=(0,F.useMemo)(()=>new m.gm($,H,ex.quotient,eh.quotient),[$,H,ex,eh]),eX=null!=(u=null==ez?void 0:ez.token0Price)?u:void 0,eY=(0,F.useMemo)(()=>{let e=eH&&eX?eX.divide(eH).subtract(1).multiply(100):void 0;return(null==e?void 0:e.lessThan(m.f2))?e.multiply(-1):e},[eH,eX]),eG=(0,F.useMemo)(()=>eY&&!(null==eY?void 0:eY.lessThan(2n)),[eY]),[eZ,eK]=(0,F.useState)(!1);(0,F.useEffect)(()=>{eK(!1)},[$,H,eS,eW,eN]),(0,F.useEffect)(()=>{eS&&eD({leftTypedValue:void 0,rightTypedValue:void 0})},[eS]);let e0=(0,J.U$)($),e1=(0,J.U$)(H);(0,F.useEffect)(()=>{eA||eb||!ew||eP(ew)},[eA,eb,ew]);let[e6]=(0,W.g)(),{[q.zm.LOWER]:e8,[q.zm.UPPER]:e2}=eC,{[q.zm.LOWER]:e3,[q.zm.UPPER]:e4}=eT,[e7]=(0,S.Ts)(),e5=(0,F.useMemo)(()=>{var e;return null!=(e=null==ez?void 0:ez.tickCurrent)?e:(0,P.dt)(eH)},[null==ez?void 0:ez.tickCurrent,eH]),e9=(0,F.useMemo)(()=>{var e;return null!=(e=null==ez?void 0:ez.sqrtRatioX96)?e:P.gy.getSqrtRatioAtTick(e5)},[null==ez?void 0:ez.sqrtRatioX96,e5]),ne=(0,F.useMemo)(()=>"number"!=typeof e8||"number"!=typeof e2||eB?void 0:P.yX.fromAmounts({pool:null!=ez?ez:new P.bC($,H,eS,e9,0,e5,[]),tickLower:e8,tickU
1pper:e2,amount0:ep.quotient,amount1:ey.quotient,useFullPrecision:!0}),[eS,eB,ez,e9,e5,e8,e2,$,ep.quotient,H,ey.quotient]),{amount0:nn,amount1:nl}=(0,F.useMemo)(()=>ne?ne.mintAmountsWithSlippage(e7):{amount0:void 0,amount1:void 0},[ne,e7]),ni=(0,F.useMemo)(()=>ne&&m.eF.fromRawAmount($,ep.quotient-ne.amount0.quotient),[ep,ne,$]),nt=(0,F.useMemo)(()=>ne&&m.eF.fromRawAmount(H,ey.quotient-ne.amount1.quotient),[ey,ne,H]),{getDecrementLower:nr,getIncrementLower:ns,getDecrementUpper:no,getIncrementUpper:nd,getSetFullRange:na}=(0,es.U)(null!=eI?eI:void 0,eI.equals($)?H:$,eS,e8,e2,ez),[nu,nc]=(0,F.useState)(!1),[nm,nx]=(0,F.useState)(null),nh=(0,V.OQ)(),np=(0,V.tp)(null!=nm?nm:void 0),nv=(0,B.iH)(),[nf]=(0,F.useState)(null),{approvalState:ng,approveCallback:ny}=(0,L.en)(m.eF.fromRawAmount(en.liquidityToken,em.toString()),nv.address),nj=(0,F.useCallback)(async()=>ny(),[ny]),nb=(0,F.useCallback)(()=>{if(!nv||!eu||!e6||"number"!=typeof e8||"number"!=typeof e2||!ec)return;let e=(null==nf?void 0:nf.deadline)?BigInt(nf.deadline):e6,n=[];nf&&n.push((0,X.p)({abi:nv.abi,functionName:"selfPermit",args:[en.liquidityToken.address,BigInt(em.toString()),e,nf.v,nf.r,nf.s]})),eL&&n.push((0,X.p)({abi:nv.abi,functionName:"createAndInitializePoolIfNecessary",args:[$.address,H.address,eS,e9]})),n.push((0,X.p)({abi:nv.abi,functionName:"migrate",args:[{pair:en.liquidityToken.address,liquidityToMigrate:BigInt(em.toString()),percentageToMigrate:100,token0:$.address,token1:H.address,fee:eS,tickLower:e8,tickUpper:e2,amount0Min:null!=nn?nn:0n,amount1Min:null!=nl?nl:0n,recipient:eu,deadline:e,refundAsETH:!0}]})),nc(!0),nv.estimateGas.multicall([n],{account:nv.account,value:0n}).then(e=>nv.write.multicall([n],{gas:(0,a.KL)(e),account:eu,chain:nv.chain,value:0n}).then(e=>{nh({hash:e},{type:"migrate-v3",translatableSummary:{text:"Migrated %symbolA% %symbolB% V2 liquidity to V3",data:{symbolA:null==e0?void 0:e0.symbol,symbolB:null==e1?void 0:e1.symbol}}}),nx(e)})).catch(e=>{console.error(e),nc(!1)})},[ec,nv,eL,$,H,eS,em,e8,e2,e9,nn,nl,eu,e6,nf,nh,en,e0,e1]),nA=(0,F.useMemo)(()=>!!nm&&BigInt(em.toString())===m.f2,[nm,em]),{isLoading:nw,error:nS,formattedData:nP}=(0,Q.u)({currencyA:null!=eI?eI:void 0,currencyB:eI.equals($)?H:null!=$?$:void 0,feeAmount:eS}),nk=(0,C.xm)(eH),nR=(0,C.xm)(eX),nE=(0,F.useMemo)(()=>eM?eO?eM.invert():eM:void 0,[eM,eO]),nI=(0,C.xm)(nE),nq=(0,C.xm)(e3),nz=(0,C.xm)(e4),nC=(0,C.jN)(nE),nM=(0,F.useMemo)(()=>(0,M.X)(nP,nC),[nP,nC]);return(0,i.jsx)(p.A,{children:(0,i.jsxs)(Z.W3,{children:[(0,i.jsxs)(v.mm,{alignSelf:"start",gap:"16px",children:[(0,i.jsx)(f.y,{children:ei("Migrating from V2")}),(0,i.jsx)(R.Al,{children:(0,i.jsxs)(v.mm,{gap:"8px",children:[(0,i.jsxs)(g.eF,{justifyContent:"space-between",children:[(0,i.jsxs)(g.eF,{gap:"4px",flex:1,children:[(0,i.jsx)(I.Zm,{currency:$}),(0,i.jsx)(y.A,{color:"textSubtle",small:!0,children:null==$?void 0:$.symbol})]}),(0,i.jsx)(T.g3,{amount:ep,bold:!0,children:ev})]}),(0,i.jsxs)(g.eF,{children:[(0,i.jsxs)(g.eF,{gap:"4px",flex:1,children:[(0,i.jsx)(I.Zm,{currency:H}),(0,i.jsx)(y.A,{color:"textSubtle",small:!0,children:null==H?void 0:H.symbol})]}),(0,i.jsx)(T.g3,{amount:ey,bold:!0,children:ej})]})]})}),(0,i.jsx)(ee.A,{currencyA:null!=$?$:void 0,currencyB:null!=H?H:void 0,handleFeePoolSelect:ek,feeAmount:eS}),(0,i.jsxs)(v.mm,{gap:"8px",children:[(0,i.jsx)(f.y,{children:ei("Deposit Amount")}),(0,i.jsx)(R.Al,{children:(0,i.jsxs)(v.mm,{gap:"8px",children:[(0,i.jsxs)(g.eF,{justifyContent:"space-between",children:[(0,i.jsxs)(g.eF,{gap:"4px",flex:1,children:[(0,i.jsx)(I.Zm,{currency:$}),(0,i.jsx)(y.A,{color:"textSubtle",small:!0,children:null==$?void 0:$.symbol})]}),ne&&(0,i.jsx)(T.g3,{amount:ne.amount0,bold:!0,children:ef(ne.amount0,$.decimals)})]}),(0,i.jsxs)(g.eF,{children:[(0,i.jsxs)(g.eF,{gap:"4px",flex:1,children:[(0,i.jsx)(I.Zm,{currency:H}),(0,i.jsx)(y.A,{color:"textSubtle",small:!0,children:null==H?void 0:H.symbol})]}),ne&&(0,i.jsx)(T.g3,{amount:ne.amount1,bold:!0,children:eg(ne.amount1,H.decimals)})]}),ne&&ec&&ni&&nt?(0,i.jsxs)(y.A,{color:"textSubtle",children:["At least"," ",(0,i.jsx)(T.g3,{amount:ni,color:"textSubtle",style:{display:"inline-block"}
1,children:null!=(h=ef(ni,4))?h:(0,_.N)(ni,4,ea)})," ",ec&&(null==(n=m.xQ[ec])?void 0:n.equals($))?null===m.s6||void 0===m.s6?void 0:m.s6[ec].symbol:$.symbol," and"," ",(0,i.jsx)(T.g3,{amount:nt,color:"textSubtle",style:{display:"inline-block"},children:null!=(z=eg(nt,4))?z:(0,_.N)(nt,4,ea)})," ",ec&&(null==(l=m.xQ[ec])?void 0:l.equals(H))?null===m.s6||void 0===m.s6?void 0:m.s6[ec].symbol:H.symbol," will be refunded to your wallet due to selected price range."]}):null]})})]})]}),(0,i.jsxs)(v.mm,{alignSelf:"flex-start",gap:"16px",children:[(0,i.jsxs)(g.JA,{children:[(0,i.jsx)(f.y,{children:ei("Set Price Range")}),(0,i.jsx)(er.A,{currencyA:eO?e1:e0,handleRateToggle:()=>{if(eq(e=>e.equals($)?H:$),!e$[q.zm.LOWER]&&!e$[q.zm.UPPER]){var e,n;eD({leftTypedValue:null!=(e=eO?e3:null==e4?void 0:e4.invert())?e:void 0,rightTypedValue:null!=(n=eO?e4:null==e3?void 0:e3.invert())?n:void 0})}}})]}),eL&&(0,i.jsxs)(x.R,{children:[(0,i.jsx)(j.A,{variant:"warning",children:(0,i.jsxs)(j.J,{children:[ei("You are the first liquidity provider for this PancakeSwap V3 pool. Your liquidity will migrate at the current V2 price."),(0,i.jsx)(j.J,{children:ei("Your transaction cost will be much higher as it includes the gas to create the pool.")})]})}),eH&&(0,i.jsx)(v.mm,{gap:"sm",style:{marginTop:"12px"},children:(0,i.jsx)(g.JA,{children:(0,i.jsxs)(y.A,{children:[(0,i.jsxs)(y.A,{children:["V2 ",eO?null==e1?void 0:e1.symbol:null==e0?void 0:e0.symbol," ",ei("Price"),":"]})," ",eO?`${null==nk||null==(r=nk.invert())?void 0:r.toSignificant(6)} ${null==e0?void 0:e0.symbol}`:`${null==nk?void 0:nk.toSignificant(6)} ${null==e1?void 0:e1.symbol}`]})})})]}),eG?(0,i.jsxs)(R.Al,{children:[(0,i.jsxs)(v.mm,{gap:"sm",children:[(0,i.jsxs)(g.JA,{children:[(0,i.jsxs)(y.A,{fontSize:14,children:["V2 ",eO?null==e1?void 0:e1.symbol:null==e0?void 0:e0.symbol," ",ei("Price"),":"]}),(0,i.jsx)(y.A,{fontSize:14,children:eO?`${null==nk||null==(s=nk.invert())?void 0:s.toSignificant(6)} ${null==e0?void 0:e0.symbol}`:`${null==nk?void 0:nk.toSignificant(6)} ${null==e1?void 0:e1.symbol}`})]}),(0,i.jsxs)(g.JA,{children:[(0,i.jsxs)(y.A,{fontSize:14,children:["V3 ",eO?null==e1?void 0:e1.symbol:null==e0?void 0:e0.symbol," ",ei("Price"),":"]}),(0,i.jsx)(y.A,{fontSize:14,children:eO?`${null==nR||null==(o=nR.invert())?void 0:o.toSignificant(6)} ${null==e0?void 0:e0.symbol}`:`${null==nR?void 0:nR.toSignificant(6)} ${null==e1?void 0:e1.symbol}`})]}),(0,i.jsxs)(g.JA,{children:[(0,i.jsxs)(y.A,{fontSize:14,color:"inherit",children:[ei("Price Difference"),":"]}),(0,i.jsxs)(y.A,{fontSize:14,color:"inherit",children:[null==eY?void 0:eY.toSignificant(4),"%"]})]})]}),(0,i.jsxs)(y.A,{fontSize:14,style:{marginTop:8,fontWeight:400},children:[ei("You should only deposit liquidity into PancakeSwap V3 at a price you believe is correct.")," ",(0,i.jsx)("br",{}),ei("If the price seems incorrect, you can either make a swap to move the price or wait for someone else to do so.")]})]}):!eL&&eX?(0,i.jsxs)(g.JA,{children:[(0,i.jsxs)(y.A,{fontSize:14,children:["V3 ",eO?null==e1?void 0:e1.symbol:null==e0?void 0:e0.symbol," ",ei("Price"),":"]}),(0,i.jsx)(y.A,{fontSize:14,children:eO?`${null==nR||null==(d=nR.invert())?void 0:d.toSignificant(6)} ${null==e0?void 0:e0.symbol}`:`${null==nR?void 0:nR.toSignificant(6)} ${null==e1?void 0:e1.symbol}`})]}):null,(0,i.jsx)(k.I,{currencyA:null!=eI?eI:void 0,currencyB:eI.equals($)?H:null!=$?$:void 0,feeAmount:eS,ticksAtLimit:e$,price:nI?parseFloat(nI.toSignificant(8)):void 0,priceLower:nq,priceUpper:nz,onLeftRangeInput:eJ,onRightRangeInput:eQ,onBothRangeInput:e_,formattedData:nM,isLoading:nw,error:nS,interactive:!0}),(0,i.jsx)(et,{priceLower:e3,priceUpper:e4,getDecrementLower:nr,getIncrementLower:ns,getDecrementUpper:no,getIncrementUpper:nd,onLeftRangeInput:eW,onRightRangeInput:eN,currencyA:eO?e1:e0,currencyB:eO?e0:e1,feeAmount:eS,ticksAtLimit:e$}),eZ?(0,i.jsx)(j.A,{variant:"warning",children:(0,i.jsxs)(b.Ay,{children:[(0,i.jsx)(y.A,{fontSize:"16px",children:ei("Efficiency Comparison")}),(0,i.jsx)(y.A,{color:"textSubtle",children:ei("Full range positions may earn less fees than concentrated positions.")}),(0,i.jsx)(A.A,{mt:"16px",onClick:()=>{eK(!1),na()},scale:"md",variant:"danger",children:ei("I understand")})]})}):(0,i.jsx)(A.A,{onClick:()=>{eK(!0)},variant:"secondary",scale:"sm",children:ei("Full Range")}),!eU&&nn&&nl?null:(0,i.jsx)(j.A,{variant:"warning",children:(0,i.jsx)(g.JA,{children:(0,i.jsx)(y.A,{ml:"12px",fontSize:"12px",children:ei("Your position will not earn fees or be used in trades until the market price moves into your range.")})})}),eB?(0,i.jsx)(j.A,{variant:"warning",children:(0,i.jsx)(j.J,{children:ei("Invalid range selected. The min price must be lower than the max price.")})}):null,(0,i.jsxs)(v.mm,{gap:"md",children:[nA||np?null:(0,i.jsx)(v.mm,{gap:"md",style:{flex:"1"},children:(0,i.jsx)(E.O,{variant:ng===L.h$.APPROVED||null!==nf?"success":"primary",disabled:ng!==L.h$.NOT_APPROVED||null!==nf||eB||nu,onClick:nj,children:ng===L.h$.PENDING?(0,i.jsx)(w.n,{children:(0,i.jsx)(c.x,{children:"Enabling"})}):ng===L.h$.APPROVED||null!==nf?(0,i.jsx)(c.x,{children:"Enabled"}):(0,i.jsx)(c.x,{children:"Enable"})})}),(0,i.jsx)(v.mm,{gap:"md",style:{flex:"1"},children:(0,i.jsx)(E.O,{variant:nA?"success":"primary",disabled:eB||ng!==L.h$.APPROVED&&null===nf||nu||np||nA,onClick:nb,children:nA?"Success!":np?(0,i.jsx)(w.n,{children:(0,i.jsx)(c.x,{children:"Migrating"})}):(0,i.jsx)(c.x,{children:"Migrate"})})})]})]})]})})}var ec=l(992615);function em(){let e=(0,d.useRouter)(),n=(0,a.QR)(e.query.address),{t:l}=(0,t.A)();return(0,i.jsx)(u.A,{children:(0,i.jsx)(ec.A,{children:(0,i.jsxs)(s.q,{style:{maxWidth:"858px"},children:[(0,i.jsx)(r.j,{title:l("Migrate Liquidity")}),n&&(0,i.jsx)(ea,{v2PairAddress:n})]})})})}let ex=em;em.screen=!0,em.chains=o.v1},460379:(e,n,l)=>{"use strict";l.d(n,{A:()=>o,q:()=>s});var i=l(350979),t=l(680797),r=l(807543);let s=(0,t.I4)(r.A).withConfig({componentId:"sc-8dfcff2a-0"})(["border-radius:24px;max-width:436px;width:100%;z-index:1;"]);function o(e){let{children:n,...l}=e;return(0,i.jsx)(s,{...l,children:n})}},630037:(e,n,l)=>{"use strict";l.d(n,{A:()=>s});var i=l(350979),t=l(25963),r=l(284178);function s(e){let{children:n,onAddLiquidityCallback:l}=e,s=(0,t.useMemo)(()=>(0,r.AK)(),[]);return(0,i.jsx)(r.N5,{value:{formAtom:s,onAddLiquidityCallback:(0,t.useCallback)(e=>{null==l||l(e)},[l])},children:n})}},681422:(e,n,l)=>{"use strict";l.d(n,{Ay:()=>y,EV:()=>f,OD:()=>p,WE:()=>v,hN:()=>g});var i=l(228876),t=l(670420),r=l(659918),s=l(782739),o=l(91168),d=l(25963),a=l(207014),u=l(821497),c=l(17581),m=l(53670);let x=(e,n,l)=>h(e,n?i.nU.BSC:l),h=(e,n)=>{let{account:l,chainId:i}=(0,m.W7)(),{data:t,status:a,refetch:c,...x}=(0,s.Qo)({chainId:n||i,abi:u.xw,address:e,functionName:"balanceOf",args:[l||"0x"],query:{enabled:!!l},watch:!0});return{...x,refetch:c,fetchStatus:a,balance:(0,d.useMemo)(()=>void 0!==t?new o.A(t.toString()):r.AH,[t])}},p=()=>{let{address:e}=(0,c.F)(),{status:n,refetch:l,data:t}=(0,s.Av)({chainId:i.nU.BSC,address:e,query:{enabled:!!e},watch:!0});return{balance:(null==t?void 0:t.value)?BigInt(t.value):0n,fetchStatus:n,refresh:l}},v=e=>{let{address:n}=(0,c.F)(),{chainId:l}=(0,m.ax)(),{status:i,refetch:t,data:r}=(0,s.Av)({chainId:e||l,address:n,query:{enabled:!!n},watch:!0});return{balance:(null==r?void 0:r.value)?BigInt(r.value):0n,fetchStatus:i,refresh:t}},f=()=>{var e;let{balance:n,fetchStatus:l}=x(null==(e=t.vb[i.nU.BSC])?void 0:e.address,!0);return{balance:BigInt(n.toString()),fetchStatus:l}},g=e=>{let{chainId:n}=(0,m.ax)(),{balance:l,fetchStatus:i}=x((0,a.a3)(null!=e?e:n),!1,e);return{balance:l,fetchStatus:i}},y=x},720584:(e,n,l)=>{"use strict";l.d(n,{_:()=>i._z});var i=l(40064)},841376:(e,n,l)=>{"use strict";l.d(n,{Q:()=>f.A,j:()=>v});var i=l(350979),t=l(680797),r=l(501823),s=l(24153),o=l(28192),d=l(821410),a=l(575058),u=l(525033),c=l(605641),m=l(764289),x=l.n(m);let h=(0,t.I4)(r.A).withConfig({componentId:"sc-aebf056a-0"})(["align-items:center;justify-content:space-between;padding:24px;width:100%;border-bottom:1px solid ",";",""],e=>{let{theme:n}=e;return n.colors.cardBorder},e=>{let{borderHidden:n}=e;return n&&(0,t.AH)(["border-bottom:1px solid transparent;"])}),p=(0,t.I4)(s.eF).withConfig({componentId:"sc-aebf056a-1"})(["padding-top:16px;margin-top:16px;border-top:1px solid ",";"],e=>{let{theme:n}=e;return n.colors.cardBorder}),v=e=>{let{title:n,subtitle:l,helper:t,backTo:s,noConfig:m=!1,IconSlot:v=null,buttons:f,filter:g,shouldCenter:y=!1,borderHidden:j=!1}=e;return(0,i.jsx)(h,{borderHidden:j,children:(0,i.jsxs)(r.A,{alignItems:"center",width:"100%",style:{gap:"16px"},children:[s&&("string"==typeof s?(0,i.jsx)(x(),{href:s,children:(0,i.jsx)(o.A,{as:"div",scale:"sm",children:(0,i.jsx)(d.A,{width:"32px"})})}):(0,i.jsx)(o.A,{scale:"sm",variant:"text",onClick:s,children:(0,i.jsx)(d.A,{width:"32px"})})),(0,i.jsxs)(r.A,{pr:s&&y?"48px":"",flexDirection:"column",width:"100%",marginTop:"4px",children:[(0,i.jsxs)(r.A,{mb:"8px",alignItems:"center",flexWrap:"wrap",justifyContent:"space-between",style:{gap:"16px"},children:[(0,i.jsxs)(r.A,{flex:1,justifyContent:y?"center":"",children:["string"==typeof n?(0,i.jsx)(a.A,{as:"h2",children:n}):n,t&&(0,i.jsx)(u.PT,{text:t,ml:"4px",placement:"top"})]}),m&&f&&(0,i.jsx)(r.A,{alignItems:"center",mr:"16px",children:f}),m&&v&&(0,i.jsx)(r.A,{alignItems:"center",children:v})]}),l&&(0,i.jsx)(r.A,{alignItems:"center",justifyContent:y?"center":"",children:(0,i.jsx)(c.A,{textAlign:y?"center":"inherit",color:"textSubtle",fontSize:"14px",children:l})}),g&&(0,i.jsx)(p,{justifyContent:"space-between",gap:"8px",children:g})]})]})})};var f=l(460379)},872617:(e,n,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/v2/migrate/[address]",function(){return l(48408)}])},992615:(e,n,l)=>{"use strict";l.d(n,{A:()=>u,_:()=>c});var i=l(350979),t=l(228876),r=l(769932),s=l(720584),o=l(529208),d=l(53670);let a=e=>{let{children:n,removePadding:l=!1,hideFooterOnDesktop:a=!1,noMinHeight:u=!1,helpUrl:c=o.Bq,showExternalLink:m=!0,showHelpLink:x=!0,...h}=e,{t:p}=(0,r.A)(),{chainId:v}=(0,d.ax)(),f=v===t.nU.BSC,g=f?p("Bridge assets to BNB Chain"):"";return(0,i.jsx)(s._.YW,{removePadding:l,noMinHeight:u,hideFooterOnDesktop:a,helpUrl:x?c:void 0,externalText:g,externalLinkUrl:m?f?"https://bridge.pancakeswap.finance/":"":void 0,...h,children:n})},u=a,c=a;c.defaultProps={showHelpLink:!1,showExternalLink:!1}}},e=>{e.O(0,[7964,3821,5139,7578,3732,4306,4374,3892,2845,7121,7061,9596,2141,3577,6341,8516,2806,6270,7881,143,2259,3387,6175,2299,7969,7618,2560,7212,1480,6335,4711,9818,7635,64,2775,8269,6283,5018,9508,4712,7287,4641,8686,8837,6010,4522,4586,2911,2269,3484,770,245,7094,7869,2457,1729,7207,6763,3189,604,8528,7998,8157,2864,636,6593,8792],()=>e(e.s=872617)),_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.