1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[109],{12970:(e,i,n)=>{n.d(i,{S:()=>I});var t=n(75175),r=n(65967),o=n(69026),a=n(34389),l=n(11713),d=n(19966);let s=o.I4.div.withConfig({displayName:"ScreenRoot",componentId:"sc-2e815abe-0"})(["--screen-space:16px;--screen-space-lg:calc(var(--screen-space) * 1.5);position:relative;overflow:hidden;margin:0 calc(-1 * var(--screen-space));height:100%;border-radius:var(--privy-border-radius-lg);"]),c=o.I4.div.withConfig({displayName:"ScreenRootInner",componentId:"sc-2e815abe-1"})(["display:flex;flex-direction:column;gap:calc(var(--screen-space) * 1.5);width:100%;background:var(--privy-color-background);padding:0 var(--screen-space-lg) var(--screen-space);height:100%;border-radius:var(--privy-border-radius-lg);"]),p=o.I4.div.withConfig({displayName:"HeaderContainer",componentId:"sc-2e815abe-2"})(["position:relative;display:flex;flex-direction:column;"]),h=(0,o.I4)(l.M).withConfig({displayName:"StyledModalHeader",componentId:"sc-2e815abe-3"})(["margin:0 -8px;"]),g=o.I4.div.withConfig({displayName:"BodyContainer",componentId:"sc-2e815abe-4"})(["flex:1 1 auto;display:flex;flex-direction:column;overflow-y:auto;padding:3px;margin:-3px;&::-webkit-scrollbar{display:none;}scrollbar-gutter:stable both-edges;scrollbar-width:none;-ms-overflow-style:none;"," background-repeat:no-repeat;background-size:100% 32px,100% 16px;background-attachment:local,scroll;"],({$colorScheme:e})=>"light"===e?"background: linear-gradient(var(--privy-color-background), var(--privy-color-background) 70%) bottom, linear-gradient(rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.06)) bottom;":"dark"===e?"background: linear-gradient(var(--privy-color-background), var(--privy-color-background) 70%) bottom, linear-gradient(rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.06)) bottom;":void 0),f=o.I4.div.withConfig({displayName:"FooterContainer",componentId:"sc-2e815abe-5"})(["display:flex;flex-direction:column;gap:var(--screen-space-lg);"]),u=o.I4.div.withConfig({displayName:"CenteredHeader",componentId:"sc-2e815abe-6"})(["text-align:center;display:flex;flex-direction:column;align-items:center;gap:var(--screen-space);"]),m=o.I4.div.withConfig({displayName:"TitleContainer",componentId:"sc-2e815abe-7"})(["display:flex;flex-direction:column;gap:4px;"]),x=o.I4.h3.withConfig({displayName:"HeaderTitle",componentId:"sc-2e815abe-8"})(["&&{font-size:20px;line-height:32px;font-weight:500;color:var(--privy-color-foreground);margin:0;}"]),v=o.I4.p.withConfig({displayName:"HeaderSubtitle",componentId:"sc-2e815abe-9"})(["&&{margin:0;font-size:16px;font-weight:300;line-height:24px;color:var(--privy-color-foreground);}"]),y=o.I4.div.withConfig({displayName:"IconContainer",componentId:"sc-2e815abe-10"})(["background:",";border-radius:50%;width:64px;height:64px;display:flex;align-items:center;justify-content:center;"],({$variant:e})=>{switch(e){case"success":return"var(--privy-color-success-bg, #EAFCEF)";case"warning":return"var(--privy-color-warn, #FEF3C7)";case"error":return"var(--privy-color-error-bg, #FEE2E2)";case"loading":case"logo":return"transparent";default:return"var(--privy-color-background-2)"}}),b=o.I4.div.withConfig({displayName:"LogoContainer",componentId:"sc-2e815abe-11"})(["display:flex;align-items:center;justify-content:center;margin-bottom:var(--screen-space);img,svg{max-height:90px;max-width:180px;}"]),w=o.I4.div.withConfig({displayName:"LoadingWithIconContainer",componentId:"sc-2e815abe-12"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:82px;> div{position:relative;}> div > :first-child{position:relative;}> div > :last-child{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);}"]),I=({children:e,...i})=>(0,t.jsx)(s,{children:(0,t.jsx)(c,{...i,children:e})}),C=o.I4.div.withConfig({displayName:"ProgressBarContainer",componentId:"sc-2e815abe-13"})(["position:absolute;top:0;left:calc(-1 * var(--screen-space-lg));width:calc(100% + calc(var(--screen-space-lg) * 2));height:4px;background:var(--privy-color-background-2);border-top-left-radius:inherit;border-top-right-radius:inherit;overflow:hidden;"]),j=(0,o.I4)(l.B).withConfig({displayName:"StyledBlobbyFooter",componentId:"sc-2e815abe-14"})(["padding:0;&& a{padding:0;color:var(--privy-color-foreground-3);}"]),k=o.I4.div.withConfig({displayName:"ProgressBarFill",componentId:"sc-2e815abe-15"}
1)(["height:100%;width:","%;background:var(--privy-color-foreground-3);border-radius:2px;transition:width 300ms ease-in-out;"],({pct:e})=>e),S=({step:e})=>e?(0,t.jsx)(C,{children:(0,t.jsx)(k,{pct:Math.min(100,e.current/e.total*100)})}):null;I.Header=({title:e,subtitle:i,icon:n,iconVariant:r,iconLoadingStatus:o,showBack:a,onBack:l,showInfo:d,onInfo:s,showClose:c,onClose:g,step:f,...y})=>(0,t.jsxs)(p,{...y,children:[(0,t.jsx)(h,{backFn:a?l:void 0,infoFn:d?s:void 0,onClose:c?g:void 0,closeable:c}),(n||r||e||i)&&(0,t.jsxs)(u,{children:[n||r?(0,t.jsx)(I.Icon,{icon:n,variant:r,loadingStatus:o}):null,(0,t.jsxs)(m,{children:[e&&(0,t.jsx)(x,{children:e}),i&&(0,t.jsx)(v,{children:i})]})]}),f&&(0,t.jsx)(S,{step:f})]}),(I.Body=r.forwardRef(({children:e,...i},n)=>(0,t.jsx)(g,{ref:n,...i,children:e}))).displayName="Screen.Body",I.Footer=({children:e,...i})=>(0,t.jsx)(f,{id:"privy-content-footer-container",...i,children:e}),I.Actions=({children:e,...i})=>(0,t.jsx)(N,{...i,children:e}),I.HelpText=({children:e,...i})=>(0,t.jsx)(P,{...i,children:e}),I.Watermark=()=>(0,t.jsx)(j,{}),I.Icon=({icon:e,variant:i="subtle",loadingStatus:n})=>"logo"===i&&e?(0,t.jsx)(b,"string"==typeof e?{children:(0,t.jsx)("img",{src:e,alt:""})}:r.isValidElement(e)?{children:e}:{children:r.createElement(e)}):"loading"===i?e?(0,t.jsx)(w,{children:(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,t.jsx)(a.a4,{success:n?.success,fail:n?.fail}),"string"==typeof e?(0,t.jsx)("span",{style:{background:`url('${e}') 0 0 / contain`,height:"38px",width:"38px",borderRadius:"6px",margin:"auto",backgroundSize:"contain"}}):r.isValidElement(e)?r.cloneElement(e,{style:{width:"38px",height:"38px"}}):r.createElement(e,{style:{width:"38px",height:"38px"}})]})}):(0,t.jsx)(y,{$variant:i,children:(0,t.jsx)(d.N,{size:"64px"})}):(0,t.jsx)(y,{$variant:i,children:e&&("string"==typeof e?(0,t.jsx)("img",{src:e,alt:"",style:{width:"32px",height:"32px",borderRadius:"6px"}}):r.isValidElement(e)?e:r.createElement(e,{width:32,height:32,stroke:(()=>{switch(i){case"success":return"var(--privy-color-icon-success)";case"warning":return"var(--privy-color-icon-warning)";case"error":return"var(--privy-color-icon-error)";default:return"var(--privy-color-icon-muted)"}})(),strokeWidth:2}))});let N=o.I4.div.withConfig({displayName:"ActionsContainer",componentId:"sc-2e815abe-16"})(["width:100%;display:flex;flex-direction:column;gap:calc(var(--screen-space) / 2);"]),P=o.I4.p.withConfig({displayName:"HelpTextContainer",componentId:"sc-2e815abe-17"})(["&&{margin:0;width:100%;text-align:center;color:var(--privy-color-foreground-3);font-size:14px;line-height:22px;& a{color:var(--privy-color-accent);}}"])},19966:(e,i,n)=>{n.d(i,{N:()=>o});var t=n(75175),r=n(69026);let o=({size:e,centerIcon:i})=>(0,t.jsx)(a,{$size:e,children:(0,t.jsxs)(l,{children:[(0,t.jsx)(s,{}),(0,t.jsx)(c,{}),i?(0,t.jsx)(d,{children:i}):null]})}),a=r.I4.div.withConfig({displayName:"LoadingContainer",componentId:"sc-ebc93df8-0"})(["--spinner-size:",";display:inline-flex;justify-content:center;align-items:center;@media all and (display-mode:standalone){margin-bottom:30px;}"],e=>e.$size?e.$size:"96px"),l=r.I4.div.withConfig({displayName:"SpinnerContainer",componentId:"sc-ebc93df8-1"})(["position:relative;height:var(--spinner-size);width:var(--spinner-size);opacity:1;animation:fadein 200ms ease;"]),d=r.I4.div.withConfig({displayName:"CenterIconContainer",componentId:"sc-ebc93df8-2"})(["position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;svg,img{width:calc(var(--spinner-size) * 0.4);height:calc(var(--spinner-size) * 0.4);border-radius:var(--privy-border-radius-full);}"]),s=r.I4.div.withConfig({displayName:"CircleFixed",componentId:"sc-ebc93df8-3"})(["position:absolute;top:0;right:0;bottom:0;left:0;width:var(--spinner-size);height:var(--spinner-size);&&{border:4px solid var(--privy-color-border-default);border-radius:50%;}"]),c=r.I4.div.withConfig({displayName:"CircleRotate",componentId:"sc-ebc93df8-4"})(["position:absolute;top:0;right:0;bottom:0;left:0;width:var(--spinner-size);height:var(--spinner-size);animation:spin 1200ms linear infinite;&&{border:4px solid;border-color:var(--privy-color-icon-subtle) transparent transparent transparent;border-radius:50%;}@keyframes spin{from{transform:rotate(0deg);}to{transform:rotate(360deg);}}"])},27543:(e,i,n)=>{n.d(i,{A:()=>r});var t=n(65967);let r=t.forwardRef(function(e,i){let{title:n,titleId:r,...o}=e;return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},o),n?t.createElement("title",{id:r},n):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))})},32093:(e,i,n)=>{n.d(i,{S:()=>a});var t=n(75175),r=n(1743),o=n(12970);let a=({primaryCta:e,secondaryCta:i,helpText:n,watermark:a=!0,children:l,...d})=>{let s=e||i?(0,t.jsxs)(t.Fragment,{children:[e&&(()=>{let{label:i,...n}=e,o=n.variant||"primary";return(0,t.jsx)(r.B,{...n,variant:o,style:{width:"100%",...n.style},children:i})})(),i&&(()=>{let{label:e,...n}=i,o=n.variant||"secondary";return(0,t.jsx)(r.B,{...n,variant:o,style:{width:"100%",...n.style},children:e})})()]}):null;return(0,t.jsxs)(o.S,{id:d.id,className:d.className,children:[(0,t.jsx)(o.S.Header,{...d}),l?(0,t.jsx)(o.S.Body,{children:l}):null,n||s||a?(0,t.jsxs)(o.S.Footer,{children:[n?(0,t.jsx)(o.S.HelpText,{children:n}
1):null,s?(0,t.jsx)(o.S.Actions,{children:s}):null,a?(0,t.jsx)(o.S.Watermark,{}):null]}):null]})}},37204:(e,i,n)=>{n.d(i,{T:()=>z});var t=n(75175),r=n(69026),o=n(53937),a=n(60173),l=n(83576),d=n(27543),s=n(65967),c=n(34517);let p=({label:e,children:i,valueStyles:n})=>(0,t.jsxs)(h,{children:[(0,t.jsx)("div",{children:e}),(0,t.jsx)(g,{style:{...n},children:i})]}),h=r.I4.div.withConfig({displayName:"StyledDetailsRow",componentId:"sc-4ebfdd45-0"})(["display:flex;align-items:center;justify-content:space-between;width:100%;> :first-child{color:var(--privy-color-foreground-3);text-align:left;}> :last-child{color:var(--privy-color-foreground-2);text-align:right;}"]),g=r.I4.div.withConfig({displayName:"ValueWrapper",componentId:"sc-4ebfdd45-1"})(["font-size:14px;line-height:100%;display:flex;align-items:center;justify-content:center;border-radius:var(--privy-border-radius-full);background-color:var(--privy-color-background-2);padding:4px 8px;"]),f=({gas:e,tokenPrice:i,tokenSymbol:n})=>(0,t.jsxs)(l.F,{style:{paddingBottom:"12px"},children:[(0,t.jsxs)(m,{children:[(0,t.jsx)(v,{children:"Est. Fees"}),(0,t.jsx)("div",{children:(0,t.jsx)(o.P,{weiQuantities:[BigInt(e)],tokenPrice:i,tokenSymbol:n})})]}),i&&(0,t.jsx)(x,{children:`${(0,a.g)(BigInt(e),n)}`})]}),u=({value:e,gas:i,tokenPrice:n,tokenSymbol:r})=>{let d=BigInt(e??0)+BigInt(i);return(0,t.jsxs)(l.F,{children:[(0,t.jsxs)(m,{children:[(0,t.jsx)(v,{children:"Total (including fees)"}),(0,t.jsx)("div",{children:(0,t.jsx)(o.P,{weiQuantities:[BigInt(e||0),BigInt(i)],tokenPrice:n,tokenSymbol:r})})]}),n&&(0,t.jsx)(x,{children:(0,a.g)(d,r)})]})},m=r.I4.div.withConfig({displayName:"TransactionTotalRow",componentId:"sc-f8ef9b74-0"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-top:4px;"]),x=r.I4.div.withConfig({displayName:"ValueConversionRow",componentId:"sc-f8ef9b74-1"})(["display:flex;flex-direction:row;height:12px;font-size:12px;line-height:12px;color:var(--privy-color-foreground-3);font-weight:400;"]),v=r.I4.div.withConfig({displayName:"TotalText",componentId:"sc-f8ef9b74-2"})(["font-size:14px;line-height:22.4px;font-weight:400;"]),y=(0,s.createContext)(void 0),b=(0,s.createContext)(void 0),w=({defaultValue:e,children:i})=>{let[n,r]=(0,s.useState)(e||null);return(0,t.jsx)(y.Provider,{value:{activePanel:n,togglePanel:e=>{r(n===e?null:e)}},children:(0,t.jsx)(S,{children:i})})},I=({value:e,children:i})=>{let{activePanel:n,togglePanel:r}=(0,s.useContext)(y),o=n===e;return(0,t.jsx)(b.Provider,{value:{onToggle:()=>r(e),value:e},children:(0,t.jsx)(E,{isActive:o?"true":"false","data-open":String(o),children:i})})},C=({children:e})=>{let{activePanel:i}=(0,s.useContext)(y),{onToggle:n,value:r}=(0,s.useContext)(b),o=i===r;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(N,{onClick:n,"data-open":String(o),children:[(0,t.jsx)(F,{children:e}),(0,t.jsx)(A,{isactive:o?"true":"false",children:(0,t.jsx)(d.A,{height:"16px",width:"16px",strokeWidth:"2"})})]}),(0,t.jsx)(P,{})]})},j=({children:e})=>{let{activePanel:i}=(0,s.useContext)(y),{value:n}=(0,s.useContext)(b);return(0,t.jsx)(T,{"data-open":String(i===n),children:(0,t.jsx)(B,{children:e})})},k=({children:e})=>{let{activePanel:i}=(0,s.useContext)(y),{value:n}=(0,s.useContext)(b);return(0,t.jsx)(B,{children:"function"==typeof e?e({isActive:i===n}):e})},S=r.I4.div.withConfig({displayName:"AccordionRoot",componentId:"sc-d25f9267-0"})(["display:flex;flex-direction:column;width:100%;gap:8px;"]),N=r.I4.div.withConfig({displayName:"AccordionTriggerContainer",componentId:"sc-d25f9267-1"})(["display:flex;justify-content:space-between;align-items:center;width:100%;cursor:pointer;padding-bottom:8px;"]),P=r.I4.div.withConfig({displayName:"AccordionDivider",componentId:"sc-d25f9267-2"})(["width:100%;&&{border-top:1px solid;border-color:var(--privy-color-foreground-4);}padding-bottom:12px;"]),F=r.I4.div.withConfig({displayName:"AccordionTriggerContent",componentId:"sc-d25f9267-3"})(["font-size:14px;font-weight:500;line-height:19.6px;width:100%;padding-right:8px;"]),E=r.I4.div.withConfig({displayName:"AccordionPanelContainer",componentId:"sc-d25f9267-4"})(["display:flex;flex-direction:column;width:100%;overflow:hidden;padding:12px;&&{border:1px solid;border-color:var(--privy-color-foreground-4);border-radius:var(--privy-border-radius-md);}"]),T=r.I4.div.withConfig({displayName:"AccordionContentContainer",componentId:"sc-d25f9267-5"})(["position:relative;overflow:hidden;transition:max-height 25ms ease-out;&[data-open='true']{max-height:700px;}&[data-open='false']{max-height:0;}"]),B=r.I4.div.withConfig({displayName:"ContentWrapper",componentId:"sc-d25f9267-6"})(["display:flex;flex-direction:column;gap:12px;flex:1 1 auto;min-height:1px;"]),A=r.I4.div.withConfig({displayName:"IconWrapper",componentId:"sc-d25f9267-7"})(["transform:",";"],e=>"true"===e.isactive?"rotate(180deg)":"rotate(0deg)"),z=({from:e,to:i,txn:n,transactionInfo:r,tokenPrice:a,gas:l,tokenSymbol:d})=>{let s=BigInt(n?.value||0);return(0,t.jsx)(w,{...(0,c.u)().render.standalone?{defaultValue:"details"}:{},children:(0,t.jsxs)(I,{value:"details",children:[(0,t.jsx)(C,{children:(0,t.jsxs)($,{children:[(0,t.jsx)("div",{children:r?.title||"Details"}),(0,t.jsx)(L,{children:(0,t.jsx)(o.H,{weiQuantities:[s],tokenPrice:a,tokenSymbol:d})})]})}),(0,t.jsxs)(j,{children:[(0,t.jsx)(p,{label:"From",children:(0,t.jsx)(o.W,{walletAddress:e,chainId:n.chainId||c.s,chainType:"ethereum"})}),(0,t.jsx)(p,{label:"To",children:(0,t.jsx)(o.W,{walletAddress:i,chainId:n.chainId||c.s,chainType:"ethereum"})}),r&&r.action&&(0,t.jsx)(p,{label:"Action",children:r.action}),l&&(0,t.jsx)(f,{value:n.value,gas:l,tokenPrice:a,tokenSymbol:d})]}),(0,t.jsx)(k,{children:({isActive:e})=>(0,t.jsx)(u,{value:n.value,displayFee:e,gas:l||"0x0",tokenPrice:a,tokenSymbol:d})})]})})},$=r.I4.div.withConfig({displayName:"AccordionTriggerContent",componentId:"sc-2eff9f5c-0"})(["display:flex;flex-direction:row;justify-content:space-between;"]),L=r.I4.div.withConfig({displayName:"TotalText",componentId:"sc-2eff9f5c-1"})(["flex-shrink:0;padding-left:8px;"])},41781:(e,i,n)=>{n.d(i,{a:()=>o,g:()=>r});var t=n(65099);function r(e,i=6,n=!1,t=!1){let o=(parseFloat(e.toString())/1e9).toFixed(i).replace(/0+$/,"").replace(/\.$/,""),a=t?"":" SOL";return n?`${o}${a}`:`${"0"===o?"<0.001":o}${a}`}function o({amount:e,fee:i,tokenPrice:n,isUsdc:o}){let a=BigInt(Math.floor(parseFloat(e)*10**(o?6:9))),l=o?a:a+i;return{fundingAmountInBaseUnit:a,fundingAmountInUsd:n?(0,t.g)(a,n):void 0,totalPriceInUsd:n?(0,t.g)(l,n):void 0,totalPriceInNativeCurrency:r(l),feePriceInNativeCurrency:r(i),feePriceInUsd:n?(0,t.g)(i,n):void 0}}},53937:(e,i,n)=>{n.d(i,{H:()=>c,P:()=>p,S:()=>h,W:()=>x});var t=n(75175),r=n(69026),o=n(48133),a=n(60173),l=n(65099),d=n(41781),s=n(34389);let c=({weiQuantities:e,tokenPrice:i,tokenSymbol:n})=>{let r=(0,a.s)(e),o=i?(0,a.a)(r,i):void 0,l=(0,a.g)(r,n);return(0,t.jsx)(g,{children:o||l})},p=({weiQuantities:e,tokenPrice:i,tokenSymbol:n})=>{let r=(0,a.s)(e),o=i?(0,a.a)(r,i):void 0,l=(0,a.g)(r,n);return(0,t.jsx)(g,{children:o?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(f,{children:"USD"}),"<$0.01"===o?(0,t.jsxs)(m,{children:[(0,t.jsx)(u,{children:"<"}),"$0.01"]}):o]}):l})},h=({quantities:e,tokenPrice:i,tokenSymbol:n="SOL",tokenDecimals:r=9})=>{let a=e.reduce((e,i)=>e+i,0n),s=i&&"SOL"===n&&9===r?(0,l.g)(a,i):void 0,c="SOL"===n&&9===r?(0,d.g)(a):`${(0,o.J)(a,r)} ${n}`;return(0,t.jsx)(g,{children:s?(0,t.jsx)(t.Fragment,{children:"<$0.01"===s?(0,t.jsxs)(m,{children:[(0,t.jsx)(u,{children:"<"}),"$0.01"]}):s}):c})},g=r.I4.span.withConfig({displayName:"StyledPriceDisplay",componentId:"sc-3cd56c8a-0"})(["font-size:14px;line-height:140%;display:flex;gap:4px;align-items:center;"]),f=r.I4.span.withConfig({displayName:"StyledPriceUnit",componentId:"sc-3cd56c8a-1"})(["font-size:12px;line-height:12px;color:var(--privy-color-foreground-3);"]),u=r.I4.span.withConfig({displayName:"TinyLessThan",componentId:"sc-3cd56c8a-2"})(["font-size:10px;"]),m=r.I4.span.withConfig({displayName:"FlexCenter",componentId:"sc-3cd56c8a-3"})(["display:flex;align-items:center;"]),x=e=>{var i,n;return(0,t.jsx)(v,{href:"ethereum"===e.chainType?(0,a.b)(e.chainId,e.walletAddress):(i=e.walletAddress,n=e.chainId,`https://explorer.solana.com/account/${i}?chain=${n}`),target:"_blank",children:(0,s.D)(e.walletAddress)})},v=r.I4.a.withConfig({displayName:"StyledLink",componentId:"sc-dd6c0f9f-0"})(["&:hover{text-decoration:underline;}"])},60173:(e,i,n)=>{n.d(i,{a:()=>s,b:()=>g,c:()=>d,g:()=>c,p:()=>p,s:()=>h});var t=n(51078),r=n(98231),o=n(34389);let a=new Intl.NumberFormat(void 0,{style:"currency",currency:"USD",maximumFractionDigits:2}),l=e=>a.format(e),d=(e,i)=>{let n=l(i*parseFloat(e));return"$0.00"!==n?n:"<$0.01"},s=(e,i)=>{let n=l(i*parseFloat((0,t.c)(e)));return"$0.00"===n?"<$0.01":n},c=(e,i,n=6,t=!1)=>`${p(e,n,t)} ${i}`,p=(e,i=6,n=!1)=>{let r=parseFloat((0,t.c)(e)).toFixed(i).replace(/0+$/,"").replace(/\.$/,"");return n?r:`${"0"===r?"<0.001":r}`},h=e=>e.reduce((e,i)=>e+i,0n),g=(e,i)=>{let{chains:n}=(0,r.u)(),t=`https://etherscan.io/address/${i}`,a=`${(0,o.a5)(e,n)}/address/${i}`;if(!a)return t;try{new URL(a)}catch{return t}return a}},60353:(e,i,n)=>{n.d(i,{A:()=>r});var t=n(65967);let r=t.forwardRef(function(e,i){let{title:n,titleId:r,...o}=e;return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},o),n?t.createElement("title",{id:r},n):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"}))})},60702:(e,i,n)=>{n.d(i,{u:()=>d});var t=n(65967),r=n(82903),o=n(34517),a=n(98231),l=n(91286);function d(e){let{tokenPrice:i,isTokenPriceLoading:n,tokenPriceError:d}=(e=>{let{showFiatPrices:i,getUsdTokenPrice:n,chains:l}=(0,a.u)(),[d,s]=(0,t.useState)(!0),[c,p]=(0,t.useState)(void 0),[h,g]=(0,t.useState)(void 0);return(0,t.useEffect)(()=>{e||=o.s;let t=(0,r.u)(l).find(i=>i.id===Number(e));(async()=>
1{if(i){if(!t)return s(!1),p(Error(`Unable to fetch token price on chain id ${e}`));try{s(!0);let e=await n(t);e?g(e):p(Error(`Unable to fetch token price on chain id ${t.id}`))}catch(e){p(e)}finally{s(!1)}}else s(!1)})()},[e]),{tokenPrice:h,isTokenPriceLoading:d,tokenPriceError:c}})("solana"===e?-1:e),{solPrice:s,isSolPriceLoading:c,solPriceError:p}=(0,l.u)({enabled:"solana"===e});return"solana"===e?{tokenPrice:s,isTokenPriceLoading:c,tokenPriceError:p}:{tokenPrice:i,isTokenPriceLoading:n,tokenPriceError:d}}},65099:(e,i,n)=>{n.d(i,{A:()=>l,D:()=>c,J:()=>s,L:()=>t,R:()=>d,S:()=>r,T:()=>o,a:()=>a,g:()=>p});let t=1e9,r="11111111111111111111111111111111",o="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",a="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb",l="ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",d=["CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C","CPMDWBwJDtYax9qW7AyRuVC19Cc4L4Vcy4n2BHAbHkCW"],s=["JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4"],c={"solana:mainnet":{EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v:{symbol:"USDC",decimals:6,address:"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"},Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB:{symbol:"USDT",decimals:6,address:"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"},So11111111111111111111111111111111111111112:{symbol:"SOL",decimals:9,address:"So11111111111111111111111111111111111111112"}},"solana:devnet":{"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU":{symbol:"USDC",decimals:6,address:"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU"},EJwZgeZrdC8TXTQbQBoL6bfuAnFUUy1PVCMB4DYPzVaS:{symbol:"USDT",decimals:6,address:"EJwZgeZrdC8TXTQbQBoL6bfuAnFUUy1PVCMB4DYPzVaS"},So11111111111111111111111111111111111111112:{symbol:"SOL",decimals:9,address:"So11111111111111111111111111111111111111112"}},"solana:testnet":{}};function p(e,i){let n=parseFloat(e.toString())/t,r=h.format(i*n);return"$0.00"===r?"<$0.01":r}let h=new Intl.NumberFormat(void 0,{style:"currency",currency:"USD",maximumFractionDigits:2})},82903:(e,i,n)=>{n.d(i,{u:()=>r});var t=n(32264);function r(e){let i=e.filter(e=>!t.o.has(e.id));return t.m.concat(i)}},83576:(e,i,n)=>{n.d(i,{B:()=>r,C:()=>l,F:()=>s,H:()=>a,R:()=>g,S:()=>p,a:()=>c,b:()=>h,c:()=>d,d:()=>f,e:()=>o});var t=n(69026);let r=t.I4.div.withConfig({displayName:"BottomPusherContainer",componentId:"sc-cb963810-0"})(["display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;margin-top:auto;gap:16px;flex-grow:100;"]),o=t.I4.div.withConfig({displayName:"CenteredItem",componentId:"sc-cb963810-1"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;flex-grow:1;width:100%;"]),a=t.I4.div.withConfig({displayName:"HorizontallyCenteredItem",componentId:"sc-cb963810-2"})(["display:flex;flex-direction:column;align-items:center;width:100%;"]),l=(0,t.I4)(o).withConfig({displayName:"CenteredItemWithPadding",componentId:"sc-cb963810-3"})(["padding:20px 0;"]),d=(0,t.I4)(o).withConfig({displayName:"CenteredItemWithGap",componentId:"sc-cb963810-4"})(["gap:16px;"]),s=t.I4.div.withConfig({displayName:"FlexContainer",componentId:"sc-cb963810-5"})(["display:flex;flex-direction:column;width:100%;"]),c=t.I4.div.withConfig({displayName:"FixedGappedContainer",componentId:"sc-cb963810-6"})(["display:flex;flex-direction:column;gap:8px;"]),p=t.I4.div.withConfig({displayName:"StyledCalloutSection",componentId:"sc-cb963810-8"})(["display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;text-align:left;gap:8px;padding:16px;margin-top:16px;margin-bottom:16px;width:100%;background:var(--privy-color-background-2);border-radius:var(--privy-border-radius-md);&& h4{color:var(--privy-color-foreground-3);font-size:14px;text-decoration:underline;font-weight:medium;}&& p{color:var(--privy-color-foreground-3);font-size:14px;}"]),h=t.I4.div.withConfig({displayName:"RefactorSpacerTop",componentId:"sc-cb963810-9"})(["height:16px;"]),g=t.I4.div.withConfig({displayName:"RefactorSpacerBottom",componentId:"sc-cb963810-10"})(["height:12px;"]),f=t.I4.div.withConfig({displayName:"ConfigurableSpacer",componentId:"sc-cb963810-12"})(["height:","px;"],e=>e.height??"12")},91286:(e,i,n)=>{n.d(i,{u:()=>o});var t=n(65967),r=n(98231);let o=({enabled:e=!0}={})=>{let{showFiatPrices:i,getUsdPriceForSol:n}=(0,r.u)(),[o,a]=(0,t.useState)(!0),[l,d]=(0,t.useState)(void 0),[s,c]=(0,t.useState)(void 0);return(0,t.useEffect)(()=>{(async()=>
1{if(i&&e)try{a(!0);let e=await n();e?c(e):d(Error("Unable to fetch SOL price"))}catch(e){d(e)}finally{a(!1)}else a(!1)})()},[]),{solPrice:s,isSolPriceLoading:o,solPriceError:l}}}}]);
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.