PageSourceSearch

https://abs.xyz/_next/static/chunks/253.3a289915cf761e09.js

js abs.xyz collected 2026-10-03 19:17:07 UTC 56,232 bytes, 590 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[253],{8414:(e,t,n)=>{n.d(t,{L:()=>r});var i=n(44109),l=n(48988);let o=l.I4.a`
2  && {
3    color: ${({$variant:e})=>"underlined"===e?"var(--privy-color-foreground)":"var(--privy-link-navigation-color, var(--privy-color-accent))"};
4    font-weight: 400;
5    text-decoration: ${({$variant:e})=>"underlined"===e?"underline":"var(--privy-link-navigation-decoration, none)"};
6    text-underline-offset: 4px;
7    text-decoration-thickness: 1px;
8    cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
9    opacity: ${({$disabled:e})=>e?.5:1};
10
11    font-size: ${({$size:e})=>{switch(e){case"xs":return"12px";case"sm":return"14px";default:return"16px"}}};
12
13    line-height: ${({$size:e})=>{switch(e){case"xs":return"18px";case"sm":return"22px";default:return"24px"}}};
14
15    transition:
16      color 200ms ease,
17      text-decoration-color 200ms ease,
18      opacity 200ms ease;
19
20    &:hover {
21      color: ${({$variant:e,$disabled:t})=>"underlined"===e?"var(--privy-color-foreground)":"var(--privy-link-navigation-color, var(--privy-color-accent))"};
22      text-decoration: ${({$disabled:e})=>e?"none":"underline"};
23      text-underline-offset: 4px;
24    }
25
26    &:active {
27      color: ${({$variant:e,$disabled:t})=>t?"underlined"===e?"var(--privy-color-foreground)":"var(--privy-link-navigation-color, var(--privy-color-accent))":"var(--privy-color-foreground)"};
28    }
29
30    &:focus {
31      outline: none;
32      box-shadow: 0 0 0 3px #949df9;
33      border-radius: 2px;
34    }
35  }
36`,r=({size:e="md",variant:t="navigation",disabled:n=!1,as:l,children:r,onClick:a,...s})=>(0,i.jsx)(o,{as:l,$size:e,$variant:t,$disabled:n,onClick:e=>{n?e.preventDefault():a?.(e)},...s,children:r})},16976:(e,t,n)=>{n.d(t,{A:()=>i});let i=(0,n(31242).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},20689:(e,t,n)=>{n.d(t,{E:()=>r,I:()=>s,a:()=>a});var i=n(48988),l=n(66748);let o=i.I4.label`
37  display: block;
38  position: relative;
39  width: 100%;
40  height: 56px;
41
42  && > :first-child {
43    position: absolute;
44    left: 0.75em;
45    top: 50%;
46    transform: translate(0, -50%);
47  }
48
49  && > input {
50    font-size: 16px;
51    line-height: 24px;
52    color: var(--privy-color-foreground);
53
54    padding: 12px 88px 12px 52px;
55    flex-grow: 1;
56    background: var(--privy-color-background);
57    border: 1px solid
58      ${({$error:e})=>e?"var(--privy-color-error) !important":"var(--privy-color-foreground-4)"};
59    border-radius: var(--privy-border-radius-md);
60    width: 100%;
61    height: 100%;
62
63    /* Tablet and Up */
64    @media (min-width: 441px) {
65      font-size: 14px;
66      padding-right: 78px;
67    }
68
69    :focus {
70      outline: none;
71      border-color: ${({$error:e})=>e?"var(--privy-color-error) !important":"var(--privy-color-accent-light)"};
72      box-shadow: ${({$error:e})=>e?"none":"0 0 0 1px var(--privy-color-accent-light)"};
73    }
74
75    :autofill,
76    :-webkit-autofill {
77      background: var(--privy-color-background);
78    }
79
80    && > input::placeholder {
81      color: var(--privy-color-foreground-3);
82    }
83    &:disabled {
84      opacity: 0.4; /* Make it visually appear disabled */
85      cursor: not-allowed; /* Change cursor to not-allowed */
86    }
87    &:disabled,
88    &:disabled:hover,
89    &:disabled > span {
90      color: var(--privy-color-foreground-3); /* Change text color to grey */
91    }
92  }
93
94  && > button:last-child {
95    right: 0px;
96    line-height: 24px;
97    padding: 13px 17px;
98    :focus {
99      outline: none;
100    }
101    &:disabled {
102      opacity: 0.4; /* Make it visually appear disabled */
103      cursor: not-allowed; /* Change cursor to not-allowed */
104    }
105    &:disabled,
106    &:disabled:hover,
107    &:disabled > span {
108      color: var(--privy-color-foreground-3); /* Change text color to grey */
109    }
110  }
111`,r=(0,i.I4)(o)`
112  background-color: var(--privy-color-background);
113  transition: background-color 200ms ease;
114
115  && > button {
116    right: 0;
117    line-height: 24px;
118    position: absolute;
119    padding: 13px 17px;
120    background-color: #090;
121
122    :focus {
123      outline: none;
124      border-color: var(--privy-color-accent);
125    }
126  }
127`,a=(0,i.I4)(o)`
128  && > input {
129    overflow: hidden;
130    white-space: nowrap;
131    text-overflow: ellipsis;
132
133    padding-right: ${e=>e.$stacked?"16px":"88px"};
134
135    border: 1px solid
136      ${({$error:e})=>e?"var(--privy-color-error) !important":"var(--privy-color-foreground-4)"};
137
138    && > input::placeholder {
139      color: var(--privy-color-foreground-3);
140    }
141  }
142
143  && > :last-child {
144    right: 16px;
145    position: absolute;
146    top: 50%;
147    transform: translate(0, -50%);
148  }
149
150  && > button:last-child {
151    right: 0px;
152    line-height: 24px;
153    padding: 13px 17px;
154
155    :focus {
156      outline: none;
157    }
158  }
159`,s=i.I4.div`
160  width: 100%;
161
162  /* Add styling for the ErrorMessage within EmailInput */
163  && > ${l.E} {
164    display: block;
165    text-align: left;
166    padding-left: var(--privy-border-radius-md);
167    padding-bottom: 5px;
168  }
169`},31242:(e,t,n)=>{n.d(t,{A:()=>s});var i=n(67513);let l=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},o=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];
169return t.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim()};var r={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,i.forwardRef)((e,t)=>{let{color:n="currentColor",size:l=24,strokeWidth:a=2,absoluteStrokeWidth:s,className:c="",children:d,iconNode:h,...u}=e;return(0,i.createElement)("svg",{ref:t,...r,width:l,height:l,stroke:n,strokeWidth:s?24*Number(a)/Number(l):a,className:o("lucide",c),...!d&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(u)&&{"aria-hidden":"true"},...u},[...h.map(e=>{let[t,n]=e;return(0,i.createElement)(t,n)}),...Array.isArray(d)?d:[d]])}),s=(e,t)=>{let n=(0,i.forwardRef)((n,r)=>{let{className:s,...c}=n;return(0,i.createElement)(a,{ref:r,iconNode:t,className:o("lucide-".concat(l(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),"lucide-".concat(e),s),...c})});return n.displayName=l(e),n}},37903:(e,t,n)=>{n.d(t,{u:()=>o});var i=n(55730);let l={"connectionStatus.successfullyConnected":"Successfully connected with {walletName}","connectionStatus.errorTitle":"{errorMessage}","connectionStatus.connecting":"Connecting","connectionStatus.connectOneWallet":"For the best experience, connect only one wallet at a time.","connectionStatus.checkOtherWindows":"Don't see your wallet? Check your other browser windows.","connectionStatus.stillHere":"Still here?","connectionStatus.tryConnectingAgain":"Try connecting again","connectionStatus.or":"or","connectionStatus.useDifferentLink":"use this different link","connectWallet.connectYourWallet":"Connect a wallet","connectWallet.waitingForWallet":"Waiting for {walletName}","connectWallet.connectToAccount":"Connect a wallet to your {appName} account","connectWallet.installAndConnect":"To connect to {walletName}, install and open the app. Then confirm the connection when prompted.","connectWallet.tryConnectingAgain":"Please try connecting again.","connectWallet.openInApp":"Open in app","connectWallet.copyLink":"Copy link","connectWallet.retry":"Retry","connectWallet.searchPlaceholder":"Search through {count} wallets","connectWallet.noWalletsFound":"No wallets found. Try another search.","connectWallet.lastUsed":"Last used","connectWallet.selectYourWallet":"Select your wallet","connectWallet.selectNetwork":"Select network","connectWallet.goToWallet":"Go to {walletName} to continue","connectWallet.scanToConnect":"Scan code to connect to {walletName}","connectWallet.openOrInstall":"Open or install {walletName}"};function o(){let e=(0,i.u)();return{t:(t,n)=>{var i;let o;return i=e.intl.textLocalization,o=i?.[t]??l[t],n&&0!==Object.keys(n).length?o.replace(/\{(\w+)\}/g,(e,t)=>n[t]??e):o}}}},40519:(e,t,n)=>{n.d(t,{S:()=>k});var i=n(44109),l=n(67513),o=n(48988),r=n(53719),a=n(64205),s=n(54757);let c=o.I4.div`
170  /* spacing tokens */
171  --screen-space: 16px; /* base 1x = 16 */
172  --screen-space-lg: calc(var(--screen-space) * 1.5); /* 24px */
173
174  position: relative;
175  overflow: hidden;
176  margin: 0 calc(-1 * var(--screen-space)); /* extends over modal padding */
177  height: 100%;
178  border-radius: var(--privy-border-radius-lg);
179`,d=o.I4.div`
180  display: flex;
181  flex-direction: column;
182  gap: calc(var(--screen-space) * 1.5);
183  width: 100%;
184  background: var(--privy-color-background);
185  padding: 0 var(--screen-space-lg) var(--screen-space);
186  height: 100%;
187  border-radius: var(--privy-border-radius-lg);
188`,h=o.I4.div`
189  position: relative;
190  display: flex;
191  flex-direction: column;
192`,u=(0,o.I4)(a.M)`
193  margin: 0 -8px;
194`,p=o.I4.div`
195  flex: 1 1 auto;
196  display: flex;
197  flex-direction: column;
198
199  /* Enable scrolling */
200  overflow-y: auto;
201
202  /* Hide scrollbar but keep functionality when scrollable */
203  /* Add padding for focus outline space, offset with negative margin */
204  padding: 3px;
205  margin: -3px;
206
207  &::-webkit-scrollbar {
208    display: none;
209  }
210  scrollbar-gutter: stable both-edges;
211  scrollbar-width: none;
212  -ms-overflow-style: none;
213
214  /* Gradient effect for scroll indication */
215  ${({$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}
216
217  background-repeat: no-repeat;
218  background-size:
219    100% 32px,
220    100% 16px;
221  background-attachment: local, scroll;
222`,g=o.I4.div`
223  display: flex;
224  flex-direction: column;
225  gap: var(--screen-space-lg);
226  margin-top: 1.5rem;
227`,m=o.I4.div`
228  text-align: center;
229  display: flex;
230  flex-direction: column;
231  align-items: center;
232  gap: var(--screen-space);
233`,f=o.I4.div`
234  display: flex;
235  flex-direction: column;
236  gap: 4px;
237`,v=o.I4.h3`
238  && {
239    font-size: 20px;
240    line-height: 32px;
241    font-weight: 500;
242    color: var(--privy-color-foreground);
243    margin: 0;
244  }
245`,w=o.I4.p`
246  && {
247    margin: 0;
248    font-size: 16px;
249    font-weight: 300;
250    line-height: 24px;
251    color: var(--privy-color-foreground);
252  }
253`,y=o.I4.div`
254  background: ${({$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)"}}};
255
256  border-radius: 50%;
257  width: 64px;
258  height: 64px;
259  display: flex;
260  align-items: center;
261  justify-content: center;
262`,x=o.I4.div`
263  display: flex;
264  align-items: center;
265  justify-content: center;
266
267  img,
268  svg {
269    max-height: 90px;
270    max-width: 180px;
271  }
272`,b=o.I4.div`
273  display: flex;
274  flex-direction: column;
275  justify-content: center;
276  align-items: center;
277  width: 100%;
278  height: 82px;
279
280  > div {
281    position: relative;
282  }
283
284  > div > :first-child {
285    position: relative;
286  }
287
288  > div > :last-child {
289    position: absolute;
290    left: 50%;
291    top: 50%;
292    transform: translate(-50%, -50%);
293  }
294`,k=({children:e,...t})=>(0,i.jsx)(c,{children:(0,i.jsx)(d,{...t,children:e})}),C=o.I4.div`
295  position: absolute;
296  top: 0;
297  left: calc(-1 * var(--screen-space-lg));
298  width: calc(100% + calc(var(--screen-space-lg) * 2));
299  height: 4px;
300  background: var(--privy-color-background-2);
301  border-top-left-radius: inherit;
302  border-top-right-radius: inherit;
303  overflow: hidden;
304`,j=(0,o.I4)(a.B)`
305  padding: 0;
306  && a {
307    padding: 0;
308    color: var(--privy-color-foreground-3);
309  }
310`,z=o.I4.div`
311  height: 100%;
312  width: ${({pct:e})=>e}%;
313  background: var(--privy-color-foreground-3);
314  border-radius: 2px;
315  transition: width 300ms ease-in-out;
316`,S=({step:e})=>e?(0,i.jsx)(C,{children:(0,i.jsx)(z,{pct:Math.min(100,e.current/e.total*100)})}):null;k.Header=({title:e,subtitle:t,icon:n,iconVariant:l,iconLoadingStatus:o,showBack:r,onBack:a,showInfo:s,onInfo:c,showClose:d,onClose:p,step:g,headerTitle:y,...x})=>(0,i.jsxs)(h,{...x,children:[(0,i.jsx)(u,{backFn:r?a:void 0,infoFn:s?c:void 0,onClose:d?p:void 0,title:y,closeable:d}),(n||l||e||t)&&(0,i.jsxs)(m,{children:[n||l?(0,i.jsx)(k.Icon,{icon:n,variant:l,loadingStatus:o}):null,!(!e&&!t)&&(0,i.jsxs)(f,{children:[e&&(0,i.jsx)(v,{children:e}),t&&(0,i.jsx)(w,{children:t})]})]}),g&&(0,i.jsx)(S,{step:g})]}),(k.Body=l.forwardRef(({children:e,...t},n)=>(0,i.jsx)(p,{ref:n,...t,children:e}))).displayName="Screen.Body",k.Footer=({children:e,...t})=>(0,i.jsx)(g,{id:"privy-content-footer-container",...t,children:e}),k.Actions=({children:e,...t})=>(0,i.jsx)(W,{...t,children:e}),k.HelpText=({children:e,...t})=>(0,i.jsx)(T,{...t,children:e}),k.FooterText=({children:e,...t})=>(0,i.jsx)(I,{...t,children:e}),k.Watermark=()=>(0,i.jsx)(j,{}),k.Icon=({icon:e,variant:t="subtle",loadingStatus:n})=>"logo"===t&&e?(0,i.jsx)(x,"string"==typeof e?{children:(0,i.jsx)("img",{src:e,alt:""})}:l.isValidElement(e)?{children:e}:{children:l.createElement(e)}):"loading"===t?e?(0,i.jsx)(b,{children:(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,i.jsx)(r.N,{success:n?.success,fail:n?.fail}),"string"==typeof e?(0,i.jsx)("span",{style:{background:`url('${e}') 0 0 / contain`,height:"38px",width:"38px",borderRadius:"6px",margin:"auto",backgroundSize:"contain"}}):l.isValidElement(e)?l.cloneElement(e,{style:{width:"38px",height:"38px"}}):l.createElement(e,{style:{width:"38px",height:"38px"}})]})}):(0,i.jsx)(y,{$variant:t,children:(0,i.jsx)(s.N,{size:"64px"})}):(0,i.jsx)(y,{$variant:t,children:e&&("string"==typeof e?(0,i.jsx)("img",{src:e,alt:"",style:{width:"32px",height:"32px",borderRadius:"6px"}}):l.isValidElement(e)?e:l.createElement(e,{width:32,height:32,stroke:(()=>{switch(t){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 W=o.I4.div`
317  width: 100%;
318  display: flex;
319  flex-direction: column;
320  gap: calc(var(--screen-space) / 2);
321`,T=o.I4.div`
322  && {
323    margin: 0;
324    width: 100%;
325    text-align: center;
326    color: var(--privy-color-foreground-2);
327    font-size: 13px;
328    line-height: 20px;
329
330    & a {
331      text-decoration: underline;
332    }
333  }
334`,I=o.I4.div`
335  && {
336    margin-top: -1rem;
337    width: 100%;
338    text-align: center;
339    color: var(--privy-color-foreground-2);
340    font-size: 0.6875rem; // 11px
341    line-height: 1rem; // 16px
342  }
343`},49147:(e,t,n)=>{n.d(t,{W:()=>l});var i=n(44109);let l=({...e})=>(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,i.jsx)("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),(0,i.jsx)("path",{d:"M3 9a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2"}),(0,i.jsx)("path",{d:"M3 11h3c.8 0 1.6.3 2.1.9l1.1.9c1.6 1.6 4.1 1.6 5.7 0l1.1-.9c.5-.5 1.3-.9 2.1-.9H21"})]})},54757:(e,t,n)=>{n.d(t,{N:()=>o});var i=n(44109),l=n(48988);let o=({size:e,centerIcon:t})=>(0,i.jsx)(r,{$size:e,children:(0,i.jsxs)(a,{children:[(0,i.jsx)(c,{}),(0,i.jsx)(d,{}),t?(0,i.jsx)(s,{children:t}):null]})}),r=l.I4.div`
344  --spinner-size: ${e=>e.$size?e.$size:"96px"};
345
346  display: inline-flex;
347  justify-content: center;
348  align-items: center;
349
350  @media all and (display-mode: standalone) {
351    margin-bottom: 30px;
352  }
353`,a=l.I4.div`
354  position: relative;
355  height: var(--spinner-size);
356  width: var(--spinner-size);
357
358  opacity: 1;
359  animation: fadein 200ms ease;
360`,s=l.I4.div`
361  position: absolute;
362  top: 0;
363  right: 0;
364  bottom: 0;
365  left: 0;
366  display: flex;
367  align-items: center;
368  justify-content: center;
369  svg,
370  img {
371    width: calc(var(--spinner-size) * 0.4);
372    height: calc(var(--spinner-size) * 0.4);
373    border-radius: var(--privy-border-radius-full);
374  }
375`,c=l.I4.div`
376  position: absolute;
377  top: 0;
378  right: 0;
379  bottom: 0;
380  left: 0;
381  width: var(--spinner-size);
382  height: var(--spinner-size);
383
384  && {
385    border: 4px solid var(--privy-color-border-default);
386    border-radius: 50%;
387  }
388`,d=l.I4.div`
389  position: absolute;
390  top: 0;
391  right: 0;
392  bottom: 0;
393  left: 0;
394  width: var(--spinner-size);
395  height: var(--spinner-size);
396  animation: spin 1200ms linear infinite;
397
398  && {
399    border: 4px solid;
400    border-color: var(--privy-color-icon-subtle) transparent transparent transparent;
401    border-radius: 50%;
402  }
403
404  @keyframes spin {
405    from {
406      transform: rotate(0deg);
407    }
408    to {
409      transform: rotate(360deg);
410    }
411  }
412`}
412,66748:(e,t,n)=>{n.d(t,{E:()=>l});var i=n(48988);let l=i.I4.span`
413  text-align: left;
414  font-size: 0.75rem;
415  font-weight: 500;
416  line-height: 1.125rem; /* 150% */
417
418  color: var(--privy-color-error);
419`},66993:(e,t,n)=>{n.d(t,{A:()=>i});let i=(0,n(31242).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},70253:(e,t,n)=>{n.d(t,{b:()=>$,c:()=>q,i:()=>P,u:()=>K});var i=n(44109),l=n(67513);let o=l.forwardRef(function(e,t){let{title:n,titleId:i,...o}=e;return l.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:t,"aria-labelledby":i},o),n?l.createElement("title",{id:i},n):null,l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))});var r=n(80652);function a(e,t,n){let i,l=n.initialDeps??[];function o(){var o,r,a,s;let c,d;n.key&&(null==(o=n.debug)?void 0:o.call(n))&&(c=Date.now());let h=e();if(!(h.length!==l.length||h.some((e,t)=>l[t]!==e)))return i;if(l=h,n.key&&(null==(r=n.debug)?void 0:r.call(n))&&(d=Date.now()),i=t(...h),n.key&&(null==(a=n.debug)?void 0:a.call(n))){let e=Math.round((Date.now()-c)*100)/100,t=Math.round((Date.now()-d)*100)/100,i=t/16,l=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${l(t,5)} /${l(e,5)} ms`,`
420            font-size: .6rem;
421            font-weight: bold;
422            color: hsl(${Math.max(0,Math.min(120-120*i,120))}deg 100% 31%);`,null==n?void 0:n.key)}return null==(s=null==n?void 0:n.onChange)||s.call(n,i),i}return o.updateDeps=e=>{l=e},o}function s(e,t){if(void 0!==e)return e;throw Error(`Unexpected undefined${t?`: ${t}`:""}`)}let c=e=>{let{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},d=e=>e,h=e=>{let t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),i=[];for(let e=t;e<=n;e++)i.push(e);return i},u=(e,t)=>{let n=e.scrollElement;if(!n)return;let i=e.targetWindow;if(!i)return;let l=e=>{let{width:n,height:i}=e;t({width:Math.round(n),height:Math.round(i)})};if(l(c(n)),!i.ResizeObserver)return()=>{};let o=new i.ResizeObserver(t=>{let i=()=>{let e=t[0];if(null==e?void 0:e.borderBoxSize){let t=e.borderBoxSize[0];if(t)return void l({width:t.inlineSize,height:t.blockSize})}l(c(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(i):i()});return o.observe(n,{box:"border-box"}),()=>{o.unobserve(n)}},p={passive:!0},g="undefined"==typeof window||"onscrollend"in window,m=(e,t)=>
422{let n=e.scrollElement;if(!n)return;let i=e.targetWindow;if(!i)return;let l=0,o=e.options.useScrollendEvent&&g?()=>void 0:((e,t,n)=>{let i;return function(...l){e.clearTimeout(i),i=e.setTimeout(()=>t.apply(this,l),n)}})(i,()=>{t(l,!1)},e.options.isScrollingResetDelay),r=i=>()=>{let{horizontal:r,isRtl:a}=e.options;l=r?n.scrollLeft*(a&&-1||1):n.scrollTop,o(),t(l,i)},a=r(!0),s=r(!1);s(),n.addEventListener("scroll",a,p);let c=e.options.useScrollendEvent&&g;return c&&n.addEventListener("scrollend",s,p),()=>{n.removeEventListener("scroll",a),c&&n.removeEventListener("scrollend",s)}},f=(e,t,n)=>{if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},v=(e,{adjustments:t=0,behavior:n},i)=>{var l,o;null==(o=null==(l=i.scrollElement)?void 0:l.scrollTo)||o.call(l,{[i.options.horizontal?"left":"top"]:e+t,behavior:n})};class w{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{let t=()=>{this._measureElement(e.target,e)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var n;null==(n=t())||n.disconnect(),e=null},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,n])=>{void 0===n&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:d,rangeExtractor:h,onChange:()=>{},measureElement:f,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...e}},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=a(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;let t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.maybeNotify()}))}}
422,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{let n=new Map,i=new Map;for(let l=t-1;l>=0;l--){let t=e[l];if(n.has(t.lane))continue;let o=i.get(t.lane);if(null==o||t.end>o.end?i.set(t.lane,t):t.end<o.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=a(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,t,n,i,l)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:i,enabled:l}),{key:!1}),this.getMeasurements=a(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:n,getItemKey:i,enabled:l},o)=>{if(!l)return this.measurementsCache=[],this.itemSizeCache.clear(),[];0===this.measurementsCache.length&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let r=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let a=this.measurementsCache.slice(0,r);for(let l=r;l<e;l++){let e=i(l),r=1===this.options.lanes?a[l-1]:this.getFurthestMeasurement(a,l),s=r?r.end+this.options.gap:t+n,c=o.get(e),d="number"==typeof c?c:this.options.estimateSize(l),h=s+d,u=r?r.lane:l%this.options.lanes;a[l]={index:l,start:s,size:d,end:h,key:e,lane:u}}return this.measurementsCache=a,a},{key:!1,debug:()=>this.options.debug}),this.calculateRange=a(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,i)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:n,lanes:i}){let l=e.length-1;if(e.length<=i)return{startIndex:0,endIndex:l};let o=y(0,l,t=>e[t].start,n),r=o;if(1===i)for(;r<l&&e[r].end<n+t;)r++;else if(i>1){let a=Array(i).fill(0);for(;r<l&&a.some(e=>e<n+t);){let t=e[r];a[t.lane]=t.end,r++}let s=Array(i).fill(n+t);for(;o>=0&&s.some(e=>e>=n);){let t=e[o];s[t.lane]=t.start,o--}o=Math.max(0,o-o%i),r=Math.min(l,r+(i-1-r%i))}return{startIndex:o,endIndex:r}}({measurements:e,outerSize:t,scrollOffset:n,lanes:i}):null,{key:!1,debug:()=>this.options.debug}
422),this.getVirtualIndexes=a(()=>{let e=null,t=null,n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,i,l)=>null===i||null===l?[]:e({startIndex:i,endIndex:l,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{let n=this.indexFromElement(e),i=this.measurementsCache[n];if(!i)return;let l=i.key,o=this.elementsCache.get(l);o!==e&&(o&&this.observer.unobserve(o),this.observer.observe(e),this.elementsCache.set(l,e)),e.isConnected&&this.resizeItem(n,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{let n=this.measurementsCache[e];if(!n)return;let i=t-(this.itemSizeCache.get(n.key)??n.size);0!==i&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(n,i,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=i,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,t)),this.notify(!1))},this.measureElement=e=>{if(!e)return void this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});this._measureElement(e,void 0)},this.getVirtualItems=a(()=>
422[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let i=0,l=e.length;i<l;i++){let l=t[e[i]];n.push(l)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(0!==t.length)return s(t[y(0,t.length-1,e=>s(t[e]).start,e)])},this.getOffsetForAlignment=(e,t,n=0)=>{let i=this.getSize(),l=this.getScrollOffset();return"auto"===t&&(t=e>=l+i?"end":"start"),"center"===t?e+=(n-i)/2:"end"===t&&(e-=i),Math.max(Math.min(this.getTotalSize()+this.options.scrollMargin-i,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.measurementsCache[e];if(!n)return;let i=this.getSize(),l=this.getScrollOffset();if("auto"===t)if(n.end>=l+i-this.options.scrollPaddingEnd)t="end";else{if(!(n.start<=l+this.options.scrollPaddingStart))return[l,t];t="start"}let o="end"===t?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(o,t,n.size),t]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(e,{align:t="start",behavior:n}={})=>{"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:n})},this.scrollToIndex=(e,{align:t="auto",behavior:n}={})=>{"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),e=Math.max(0,Math.min(e,this.options.count-1));let i=0,l=t=>{if(!this.targetWindow)return;let i=this.getOffsetForIndex(e,t);if(!i)return void console.warn("Failed to get offset for index:",e);let[l,r]=i;this._scrollToOffset(l,{adjustments:void 0,behavior:n}),this.targetWindow.requestAnimationFrame(()=>{let t=this.getScrollOffset(),n=this.getOffsetForIndex(e,r);if(!n)return void console.warn("Failed to get offset for index:",e);1.01>Math.abs(n[0]-t)||o(r)})},o=t=>{this.targetWindow&&(++i<10?this.targetWindow.requestAnimationFrame(()=>l(t)):console.warn(`Failed to scroll to index ${e} after 10 attempts.`))};l(t)},this.scrollBy=(e,{behavior:t}={})=>{"smooth"===t&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adju
422stments:void 0,behavior:t})},this.getTotalSize=()=>{var e;let t,n=this.getMeasurements();if(0===n.length)t=this.options.paddingStart;else if(1===this.options.lanes)t=(null==(e=n[n.length-1])?void 0:e.end)??0;else{let e=Array(this.options.lanes).fill(null),i=n.length-1;for(;i>=0&&e.some(e=>null===e);){let t=n[i];null===e[t.lane]&&(e[t.lane]=t.end),i--}t=Math.max(...e.filter(e=>null!==e))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}let y=(e,t,n,i)=>{for(;e<=t;){let l=(e+t)/2|0,o=n(l);if(o<i)e=l+1;else{if(!(o>i))return l;t=l-1}}return e>0?e-1:0},x="undefined"!=typeof document?l.useLayoutEffect:l.useEffect;var b=n(92787),k=n(48988),C=n(64205),j=n(84024),z=n(8414),S=n(44191),W=n(20689),T=n(55730),I=n(37903),E=n(53719),_=n(53817),A=n(55703),L=n(49147),M=n(40519);let O={phantom:{mobile:{native:"phantom://",universal:"https://phantom.app/ul/"}},solflare:{mobile:{native:void 0,universal:"https://solflare.com/ul/v1/"}},metamask:{image_url:{sm:E.M,md:E.M}}};class ${static normalize(e){return e.replace(/[-_]wallet$/,"").replace(/[-_]extension$/,"").toLowerCase()}isEth(e){return e.chains.some(e=>e.includes("eip155:"))}isSol(e){return e.chains.some(e=>e.includes("solana:"))}inAllowList(e,t){if(!this.normalizedAllowList||0===this.normalizedAllowList.length||"listing"===t&&this.includeWalletConnect)return!0;let n=$.normalize(e);return this.normalizedAllowList.some(e=>n===$.normalize(e))}inDenyList(e,t){return"listing"===t&&"rabby"===e||"agw"===$.normalize(e)}chainMatches(e){return"ethereum-only"===this.chainFilter?"ethereum"===e:"solana-only"!==this.chainFilter||"solana"===e}getAllowListKey(e,t,n,i){let l=$.normalize(e);for(let e of this.normalizedAllowList||[])if(l===$.normalize(e))return e;if("connector"===t){if(("injected"===n||"solana_adapter"===n)&&"ethereum"===i&&this.detectedEth)return"detected_ethereum_wallets";if(("injected"===n||"solana_adapter"===n)&&"solana"===i&&this.detectedSol)return"detected_solana_wallets"}if("listing"===t&&this.includeWalletConnect)return"wallet_connect"}connectorOk(e){return!!("null"!==e.connectorType&&"walletconnect_solana"!==e.walletBranding.id&&this.chainMatches(e.chainType)&&(this.inAllowList(e.walletClientType,"connector")||("injected"===e.connectorType||"solana_adapter"===e.connectorType)&&("ethereum"===e.chainType&&this.detectedEth||"solana"===e.chainType&&this.detectedSol)))}listingOk(e){if(e.slug.includes("coinbase"))return!1;if("ethereum-only"===this.chainFilter){if(!this.isEth(e))return!1}else if("solana-only"===this.chainFilter&&!this.isSol(e))return!1;return!(!this.inAllowList(e.slug,"listing")||this.inDenyList(e.slug,"listing"))}getWallets(e,t){let n=new Map,i=e=>{let t=n.get(e.id);if(t){t.chainType!==e.chainType&&(t.chainType="multi");let n=new Set(t.chains);e.chains.forEach(e=>n.add(e)),t.chains=Array.from(n),!t.icon&&e.icon&&(t.icon=e.icon),!t.url&&e.url&&(t.url=e.url),!t.listing&&e.listing&&(t.listing=e.listing),!t.allowListKey&&e.allowListKey&&(t.allowListKey=e.allowListKey)}else n.set(e.id,e)};e.filter(e=>this.connectorOk(e)).forEach(e=>{let t=$.normalize(e.walletClientType);i({id:t,label:e.walletBranding?.name??t,source:"connector",connector:e,chainType:e.chainType,icon:e.walletBranding?.icon,url:void 0,chains:["ethereum"===e.chainType?"eip155":"solana"],allowListKey:this.getAllowListKey(e.walletClientType,"connector",e.connectorType,e.chainType)})});let l=e.find(e=>"wallet_connect_v2"===e.connectorType),o=e.find(e=>"walletconnect_solana"===e.walletBranding.id);t.filter(e=>this.listingOk(e)).forEach(t=>{let n=[...t.chains].filter(e=>e.includes("eip155:")||e.includes("solana:"));if(e.some(e=>$.normalize(e.walletClientType)===$.normalize(t.slug)&&"ethereum"===e.chainType&&"null"!==e.connectorType)||l||t.mobile.native||t.mobile.universal||E.m[t.slug]?.chainTypes.includes("ethereum")||(n=n.filter(e=>!e.includes("eip155:"))),e.some(e=>$.normalize(e.walletClientType)===$.normalize(t.slug)&&"solana"===e.chainType&&"null"!==e.connectorType)||o||t.mobile.native||t.mobile.universal||E.m[t.slug]?.chainTypes.includes("solana")||(n=n.filter(e=>!e.includes("solana:"))),!n.length)return;let r=$.normalize(t.slug),a=O[t.slug],s=a?.image_url?.sm||t.image_url?.sm;n.some(e=>e.includes("eip155:"))&&i({id:r,label:t.name||r,source:"listing",listing:t,chainType:"ethereum",icon:s,url:t.homepage,chains:n,allowListKey:this.getAllowListKey(t.slug,"listing")}),n.some(e=>e.includes("solana:"))&&i({id:r,label:t.name||r,source:"listing",listing:t,chainType:"solana",icon:s,url:t.homepage,chains:n,allowListKey:this.getAllowListKey(t.slug,"listing")})}),this.includeWalletConnectQr&&l&&i({id:"wallet_connect_qr",label:"WalletConnect",source:"connector",connector:l,chainType:"ethereum",icon:_.W,url:void 0,chains:["eip155"],allowListKey:"wallet_connect_qr"}),this.includeWalletConnectQrSolana&&o&&i({id:"wallet_connect_qr_solana",label:"WalletConnect",source:"connector",connector:o,chainType:"solana",icon:_.W,url:void 0,chains:["solana"],allowListKey:"wallet_connect_qr_solana"});let r=Array.from(n.values());
422r.forEach(e=>{let t=O[e.listing?.slug||e.id];t?.image_url?.sm&&(e.icon=t.image_url.sm)});let a=new Map;return this.normalizedAllowList?.forEach((e,t)=>{a.set($.normalize(e),t)}),{wallets:r.slice().sort((e,t)=>{if(e.allowListKey&&t.allowListKey){let n=this.normalizedAllowList?.findIndex(t=>$.normalize(t)===$.normalize(e.allowListKey))??-1,i=this.normalizedAllowList?.findIndex(e=>$.normalize(e)===$.normalize(t.allowListKey))??-1;if(n!==i&&n>=0&&i>=0)return n-i}if(e.allowListKey&&!t.allowListKey)return -1;if(!e.allowListKey&&t.allowListKey)return 1;let n=$.normalize(e.id),i=$.normalize(t.id);"binance-defi"===n?n="binance":"universalprofiles"===n?n="universal_profile":"cryptocom-defi"===n?n="cryptocom":"bitkeep"===n&&(n="bitget_wallet"),"binance-defi"===i?i="binance":"universalprofiles"===i?i="universal_profile":"cryptocom-defi"===i?i="cryptocom":"bitkeep"===i&&(i="bitget_wallet");let l=a.has(n),o=a.has(i);return l&&o?a.get(n)-a.get(i):l?-1:o?1:"connector"===e.source&&"listing"===t.source?-1:"listing"===e.source&&"connector"===t.source?1:e.label.toLowerCase().localeCompare(t.label.toLowerCase())}),walletCount:r.length}}constructor(e,t){if(this.chainFilter=e,t&&t.length>0){if(this.normalizedAllowList=t.map(String),this.normalizedAllowList.includes("binance")){let e=this.normalizedAllowList.indexOf("binance");this.normalizedAllowList.splice(e+1,0,"binance-defi-wallet")}if(this.normalizedAllowList.includes("bitget_wallet")){let e=this.normalizedAllowList.indexOf("bitget_wallet");this.normalizedAllowList.splice(e+1,0,"bitkeep")}}this.detectedEth=this.normalizedAllowList?.includes("detected_ethereum_wallets")??!1,this.detectedSol=this.normalizedAllowList?.includes("detected_solana_wallets")??!1,this.includeWalletConnect=this.normalizedAllowList?.includes("wallet_connect")??!1,this.includeWalletConnectQr=this.normalizedAllowList?.includes("wallet_connect_qr")??!1,this.includeWalletConnectQrSolana=this.normalizedAllowList?.includes("wallet_connect_qr_solana")??!1}}var F=e=>(0,i.jsxs)("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,i.jsx)("path",{d:"m0 0h32v32h-32z",fill:"#5469d4"}),(0,i.jsx)("path",{d:"m15.997 5.333-.143.486v14.106l.143.143 6.548-3.87z",fill:"#c2ccf4"}),(0,i.jsx)("path",{d:"m15.996 5.333-6.548 10.865 6.548 3.87z",fill:"#fff"}),(0,i.jsx)("path",{d:"m15.997 21.306-.08.098v5.025l.08.236 6.552-9.227z",fill:"#c2ccf4"}),(0,i.jsx)("path",{d:"m15.996 26.665v-5.36l-6.548-3.867z",fill:"#fff"}),(0,i.jsx)("path",{d:"m15.995 20.07 6.548-3.87-6.548-2.976v6.847z",fill:"#8698e8"}),(0,i.jsx)("path",{d:"m9.448 16.2 6.548 3.87v-6.846z",fill:"#c2ccf4"})]}),N=e=>(0,i.jsxs)("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,i.jsxs)("linearGradient",{id:"a",gradientUnits:"userSpaceOnUse",x1:"7.233",x2:"24.766",y1:"24.766",y2:"7.234",children:[(0,i.jsx)("stop",{offset:"0",stopColor:"#9945ff"}),(0,i.jsx)("stop",{offset:".2",stopColor:"#7962e7"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#00d18c"})]}),(0,i.jsx)("path",{d:"m0 0h32v32h-32z",fill:"#10111a"}),(0,i.jsx)("path",{clipRule:"evenodd",d:"m9.873 20.41a.645.645 0 0 1 .476-.21l14.662.012a.323.323 0 0 1 .238.54l-3.123 3.438a.643.643 0 0 1 -.475.21l-14.662-.012a.323.323 0 0 1 -.238-.54zm15.376-2.862a.322.322 0 0 1 -.238.54l-14.662.012a.642.642 0 0 1 -.476-.21l-3.122-3.44a.323.323 0 0 1 .238-.54l14.662-.012a.644.644 0 0 1 .475.21zm-15.376-9.738a.644.644 0 0 1 .476-.21l14.662.012a.322.322 0 0 1 .238.54l-3.123 3.438a.643.643 0 0 1 -.475.21l-14.662-.012a.323.323 0 0 1 -.238-.54z",fill:"url(#a)",fillRule:"evenodd"})]});k.I4.div`
423  display: flex;
424  justify-content: space-between;
425  align-items: center;
426`,k.I4.button`
427  padding: 0.25rem;
428  height: 30px;
429  width: 30px;
430
431  display: flex;
432  align-items: center;
433  justify-content: center;
434  border-radius: var(--privy-border-radius-full);
435  background: var(--privy-color-background-2);
436`;let R=k.I4.div`
437  position: relative;
438  display: inline-flex;
439  align-items: center;
440
441  &::after {
442    content: ' ';
443    border-radius: var(--privy-border-radius-full);
444    height: 6px;
445    width: 6px;
446    background-color: var(--privy-color-icon-success);
447    position: absolute;
448    right: -3px;
449    top: -3px;
450  }
451`,B=k.I4.img`
452  width: 32px;
453  height: 32px;
454  border-radius: 0.25rem;
455  object-fit: contain;
456`,D=k.I4.span`
457  display: flex;
458  gap: 0.25rem;
459  align-items: center;
460  padding: 0.25rem 0.5rem;
461  font-size: 0.75rem;
462  font-weight: 500;
463  line-height: 1.125rem; /* 150% */
464  border-radius: var(--privy-border-radius-sm);
465  background-color: var(--privy-color-background-2);
466
467  svg {
468    width: 100%;
469    max-width: 1rem;
470    max-height: 1rem;
471    stroke-width: 2;
472  }
473`;function K({enabled:e=!0,walletList:t,walletChainType:n}){let i=(0,T.u)(),{connectors:o}=(0,A.u)(),{listings:r,loading:a}=(0,E.f)(e),s=n??i.appearance.walletChainType,c=t??i.appearance?.walletList,d=(0,l.useMemo)(()=>new $(s,c),[s,c]),{wallets:h,walletCount:u}=(0,l.useMemo)(()=>d.getWallets(o,r),[d,o,r]),[p,g]=(0,l.useState)(""),m=(0,l.useMemo)(()=>p?h.filter(e=>e.label.toLowerCase().includes(p.toLowerCase())):h,[p,h]),[f,v]=(0,l.useState)();return{selected:f,setSelected:v,search:p,setSearch:g,loadingListings:a,wallets:m,walletCount:u}}k.I4.div`
474  display: flex;
475  flex-direction: column;
476  gap: 0.5rem;
477  max-height: 24rem;
478  overflow-y: scroll;
479
480  &::-webkit-scrollbar {
481    display: none;
482  }
483
484  scrollbar-gutter: stable both-edges;
485  scrollbar-width: none;
486  -ms-overflow-style: none;
487
488  ${e=>"light"===e.$colorScheme?"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.$colorScheme?"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}
489
490  background-repeat: no-repeat;
491  background-size:
492    100% 32px,
493    100% 16px;
494  background-attachment: local, scroll;
495`;let U=e=>!e||"string"!=typeof e&&(e instanceof E.d||e instanceof E.S),q=({index:e,style:t,data:n,recent:l})=>{let o=n.wallets[e],{walletChainType:r,handleWalletClick:a}=n,{t:s}=(0,I.u)(),c={...t,boxSizing:"border-box"};return o?(0,i.jsxs)(Q,{style:c,onClick:()=>a(o),children:[o.icon&&(o.connector&&!U(o.connector)?(0,i.jsx)(R,{children:"string"==typeof o.icon?(0,i.jsx)(B,{src:o.icon}):(0,i.jsx)(o.icon,{style:{width:"32px",height:"32px"}})}):"string"==typeof o.icon?(0,i.jsx)(B,{src:o.icon}):(0,i.jsx)(o.icon,{style:{width:"32px",height:"32px"}})),(0,i.jsx)(Z,{children:o.label}),l?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(D,{children:s("connectWallet.lastUsed")}),(0,i.jsx)(Y,{children:(0,i.jsxs)(i.Fragment,{children:["ethereum-only"===r&&(0,i.jsx)(F,{}),"solana-only"===r&&(0,i.jsx)(N,{})]})})]}):(0,i.jsx)(Y,{children:"ethereum-only"!==r&&"solana-only"!==r&&(0,i.jsxs)(i.Fragment,{children:[o.chains?.some(e=>e.startsWith("eip155"))&&(0,i.jsx)(F,{}),o.chains?.some(e=>e.startsWith("solana"))&&(0,i.jsx)(N,{})]})})]}):null};var P=({className:e,customDescription:t,connectOnly:n,preSelectedWalletId:a,hideHeader:s,...c})=>{let d=(0,T.u)(),{t:h}=(0,I.u)(),{connectors:p}=(0,A.u)(),g=c.walletChainType||d.appearance.walletChainType,f=c.walletList||d.appearance?.walletList,{onBack:y,onClose:k,app:j}=c,{selected:R,setSelected:D,qrUrl:P,setQrUrl:ee,connecting:et,uiState:en,errorCode:ei,wallets:el,walletCount:eo,handleConnect:er,handleBack:ea,showSearchBar:es,isInitialConnectView:ec,title:ed,search:eh,setSearch:eu}=function({onConnect:e,onBack:t,onClose:n,onConnectError:i,walletList:o,walletChainType:r,app:a}){let s=(0,T.u)(),{connectors:c}=(0,A.u)(),{t:d}=(0,I.u)(),{wallets:h,walletCount:u,search:p,setSearch:g,selected:m,setSelected:f}=K({enabled:(0,E.s)(o??[]),walletList:o,walletChainType:r}),[v,w]=(0,l.useState)(),[y,x]=(0,l.useState)(),[k,C]=(0,l.useState)(),[j,z]=(0,l.useState)(),S=!m&&!k&&!j,W=S&&(u>6||p.length>0),L=c.find(e=>"wallet_connect_v2"===e.connectorType),M=(0,l.useCallback)(async(t,n)=>{if(!t)return;let l=n?.name??"Wallet";if(j?.connector!==t||"loading"!==v){if(w("loading"),"string"==typeof t)return _.c.debug("Connecting wallet via deeplink",{wallet:l,url:t.length>80?`${t.slice(0,80)}...`:t}),z({connector:t,name:l,icon:n?.icon,id:n?.id,url:n?.url}),void window.open(t,"_blank");_.c.debug("Connecting wallet via connector",{wallet:l,connectorType:t.connectorType}),z({connector:t,name:n?.name??t.walletBranding.name??"Wallet",icon:n?.icon??t.walletBranding.icon,id:n?.id,url:n?.url});try{let n=await t.connect({showPrompt:!0});if(!n)return _.c.warn("Wallet connection returned null",{wallet:l,connectorType:t.connectorType}),w("error"),x(void 0),void i?.(new A.P("Unable to connect wallet"));_.c.debug("Wallet connection successful",{wallet:l,connectorType:t.connectorType}),w("success"),x(void 0),(0,E.w)({address:n.address,client:n.walletClientType,appId:s.id}),setTimeout(()=>{e({connector:t,wallet:n})},T.q)}catch(n){if(n?.message?.includes("already pending for origin")||n?.message?.includes("wallet_requestPermissions"))return void _.c.debug("Connection request already pending, maintaining loading state",{wallet:l});let e=n instanceof Error?n.message:String(n?.message||"Unknown error");_.c.error("Wallet connection failed",n,{wallet:l,connectorType:t.connectorType,errorCode:n?.privyErrorCode}),w("error"),x(n?.privyErrorCode),i?.(n instanceof Error?n:new A.P(e||"Unable to connect wallet"))}}else _.c.debug("Duplicate connection attempt prevented",{wallet:l})},[s.id,e,j,v]),O=(0,l.useCallback)(()=>k?(w(void 0),x(void 0),z(void 0),void C(void 0)):j?(w(void 0),x(void 0),void z(void 0)):m?(w(void 0),x(void 0),z(void 0),void f(void 0)):"error"===v||"loading"===v?(w(void 0),x(void 0),void z(void 0)):void t?.(),[k,j,m,v,t]),$=(0,l.useMemo)(()=>j?.connector===L&&k&&b.Fr&&j?.name?d("connectWallet.goToWallet",{walletName:j.name}):j?.connector===L&&k&&j?.name?d("connectWallet.scanToConnect",{walletName:j.name}):k&&j?.name?d(b.Fr?"connectWallet.goToWallet":"connectWallet.scanToConnect",{walletName:j.name}):"string"==typeof j?.connector?d("connectWallet.openOrInstall",{walletName:j.name}):m&&!j?d("connectWallet.selectNetwork"):j?null:d("connectWallet.selectYourWallet"),[j,k,m,L,d]);return{selected:m,setSelected:f,qrUrl:k,setQrUrl:C,connecting:j,uiState:v,errorCode:y,search:p,setSearch:g,wallets:h,walletCount:u,wc:L,isInitialConnect
495View:S,showSearchBar:W,title:$,handleConnect:M,handleBack:O,onClose:n,onConnect:e,app:a}}({...c,walletList:f,walletChainType:g}),ep=p.find(e=>"wallet_connect_v2"===e.connectorType),eg=p.find(e=>"walletconnect_solana"===e.walletBranding.id),em=(0,l.useRef)(null),ef=function(e){let t=l.useReducer(()=>({}),{})[1],n={...e,onChange:(n,i)=>{var l;i?(0,r.flushSync)(t):t(),null==(l=e.onChange)||l.call(e,n,i)}},[i]=l.useState(()=>new w(n));return i.setOptions(n),x(()=>i._didMount(),[]),x(()=>i._willUpdate()),i}({observeElementRect:u,observeElementOffset:m,scrollToFn:v,...{count:el.length,getScrollElement:()=>em.current,estimateSize:()=>56,overscan:6,gap:5}}),ev=(0,l.useCallback)(async e=>{let t="solana-only"!==g&&e.chains?.some(e=>e.startsWith("eip155")),i="ethereum-only"!==g&&e.chains?.some(e=>e.startsWith("solana")),l=()=>{let t=e.id;return E.m[t]||E.m[`${t}_wallet`]},o=t=>{let n=$.normalize(e.id);return p.find(e=>$.normalize(e.walletClientType)===n&&e.chainType===t&&"wallet_connect_v2"!==e.connectorType&&!("ethereum"===e.chainType&&e instanceof E.d||"solana"===e.chainType&&e instanceof E.S))},r=async()=>{if(!ep||!e.listing)return!1;let t=O[e.listing.slug]?{...e.listing,...O[e.listing.slug]}:e.listing;return ep.setWalletEntry(t,ee),await ep.resetConnection(e.id),await er(ep,{name:e.label,icon:e.icon,id:e.id,url:e.url}),!0},a=async()=>!!eg&&!!e.listing&&(await eg.disconnect(),eg.wallet.setWalletEntry(e.listing,ee),await new Promise(e=>setTimeout(e,100)),await er(eg,{name:e.label,icon:e.icon,id:e.id,url:e.url}),!0),s=async t=>{let i=(e=>{let t=l();if(t)return t.getMobileRedirect({isSolana:e,connectOnly:!!n,useUniversalLink:!1})})(t);return!!i&&(await er(i,{name:e.label,icon:e.icon,id:e.id,url:e.url}),!0)};if(t&&i)D(e);else{if(t&&!i){let t=o("ethereum");if(t&&!U(t))return _.c.debug("Attempting injected EVM connection",{wallet:e.id,connectorType:t.connectorType}),void await er(t,{name:e.label,icon:e.icon,id:e.id,url:e.url});if(b.Fr&&l()){if(await s(!1)||await r())return}else if(await r()||await s(!1))return}if(i&&!t){let t=o("solana");if(t&&!U(t))return _.c.debug("Attempting injected Solana connection",{wallet:e.id,connectorType:t.connectorType}),void await er(t,{name:e.label,icon:e.icon,id:e.id,url:e.url});if(b.Fr){if(await s(!0)||await a())return}else if(await a()||await s(!0))return}if(!U(e.connector)){if(_.c.debug("Using fallback direct connector",{wallet:e.id,connectorType:e.connector?.connectorType}),ep&&"wallet_connect_v2"===e.connector?.connectorType)if(await ep.resetConnection(e.id),"wallet_connect_qr"!==e.id&&e.listing){let t=O[e.listing.slug]?{...e.listing,...O[e.listing.slug]}:e.listing;ep.setWalletEntry(t,ee)}else ep.setWalletEntry({id:"wallet_connect_qr",name:"WalletConnect",rdns:"",slug:"wallet-connect",homepage:"",chains:["eip155"],mobile:{native:"",universal:void 0}},ee);return eg&&"walletconnect_solana"===e.connector?.walletBranding.id&&(await eg.disconnect(),"wallet_connect_qr_solana"!==e.id&&e.listing?eg.wallet.setWalletEntry(e.listing,ee):eg.wallet.setWalletEntry({id:"wallet_connect_solana_qr",name:"WalletConnect",rdns:"",slug:"wallet-connect-solana",homepage:"",chains:["solana"],mobile:{native:"",universal:void 0}},ee),await new Promise(e=>setTimeout(e,100))),void await er(e.connector,{name:e.label,icon:e.icon,id:e.id,url:e.url})}e.url?await er(e.url,{name:e.label,icon:e.icon,id:e.id,url:e.url}):_.c.warn("No available connection method for wallet",{wallet:e.id})}},[ep,eg,er,D,ee,g,n,p]);return(0,l.useEffect)(()=>{if(!a)return;let e=el.find(({id:e})=>e===a);e&&ev(e).catch(console.error)},[a]),(0,i.jsxs)(M.S,{className:e,children:[(0,i.jsx)(M.S.Header,{icon:s&&ec?void 0:et&&!P||P&&b.Fr&&et?.icon?et.icon:et?void 0:L.W,iconVariant:et&&!P||P&&b.Fr?"loading":void 0,iconLoadingStatus:et&&!P||P&&b.Fr?{success:"success"===en,fail:"error"===en}:void 0,title:s&&ec?void 0:et&&!P?h("connectWallet.waitingForWallet",{walletName:et.name}):P&&b.Fr?h("connectWallet.waitingForWallet",{walletName:et?.name??"connection"}):ed,subtitle:s&&ec?void 0:et&&!P&&"string"==typeof et.connector?h("connectWallet.installAndConnect",{walletName:et.name}):et&&!P&&"string"!=typeof et.connector?"error"===en?ei===A.c.NO_SOLANA_ACCOUNTS?`The connected wallet has no Solana accounts. Please add a Solana account in ${et.name} and try again.`:h("connectWallet.tryConnectingAgain"):h("connectionStatus.connectOneWallet"):ec?t??(j?h("c
495onnectWallet.connectToAccount",{appName:j.name}):null):null,showBack:!!y||!ec,showClose:!0,onBack:y||ea,onClose:k}),(0,i.jsxs)(M.S.Body,{ref:em,$colorScheme:d.appearance.palette.colorScheme,style:{marginBottom:P?"0.5rem":void 0},children:[es&&(0,i.jsx)(V,{children:(0,i.jsxs)(W.E,{style:{background:"transparent"},children:[(0,i.jsx)(E.C,{children:(0,i.jsx)(o,{})}),(0,i.jsx)("input",{className:"login-method-button",type:"text",placeholder:h("connectWallet.searchPlaceholder",{count:String(eo)}),onChange:e=>eu(e.target.value),value:eh})]})}),P&&b.Fr&&"loading"===en&&(0,i.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"1rem"},children:[(0,i.jsx)(C.a,{variant:"primary",onClick:()=>window.open(P.universal??P.native,"_blank"),style:{width:"100%"},children:h("connectWallet.openInApp")}),(0,i.jsx)(J,{value:P.universal??P.native,iconOnly:!0,children:"Copy link"})]}),P&&!b.Fr&&"loading"===en&&(0,i.jsx)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"1rem"},children:(0,i.jsx)(J,{value:P.universal??P.native,iconOnly:!0,children:h("connectWallet.copyLink")})}),P&&!b.Fr&&(0,i.jsx)(S.Q,{size:280,url:P.universal??P.native,squareLogoElement:et?.icon?"string"==typeof et.icon?e=>(0,i.jsx)("svg",{...e,children:(0,i.jsx)("image",{href:et.icon,height:e.height,width:e.width})}):et.icon:_.A}),P&&!b.Fr&&et?.url&&("binance"===et.id||"binanceus"===et.id||"binance-defi"===et.id)&&(0,i.jsxs)(X,{children:[(0,i.jsxs)("span",{children:["Don't have ",et.name,"? "]}),(0,i.jsx)(z.L,{href:et.url,target:"_blank",size:"sm",children:"Download here"})]}),(0,i.jsxs)(H,{children:[et&&!P&&"string"==typeof et.connector&&(0,i.jsxs)(Q,{onClick:()=>window.open(et.connector,"_blank"),children:[et.icon&&("string"==typeof et.icon?(0,i.jsx)(B,{src:et.icon}):(0,i.jsx)(et.icon,{})),(0,i.jsx)(Z,{children:et.name})]}),R?.chains.some(e=>e.startsWith("eip155"))&&!et&&(0,i.jsxs)(Q,{onClick:()=>ev({...R,chains:R.chains.filter(e=>e.startsWith("eip155"))}),children:[R.icon&&("string"==typeof R.icon?(0,i.jsx)(B,{src:R.icon}):(0,i.jsx)(R.icon,{})),(0,i.jsx)(Z,{children:R.label}),(0,i.jsx)(Y,{children:(0,i.jsx)(F,{})})]}),R?.chains.some(e=>e.startsWith("solana"))&&!et&&(0,i.jsxs)(Q,{onClick:()=>ev({...R,chains:R.chains.filter(e=>e.startsWith("solana"))}),children:[R.icon&&("string"==typeof R.icon?(0,i.jsx)(B,{src:R.icon}):(0,i.jsx)(R.icon,{})),(0,i.jsx)(Z,{children:R.label}),(0,i.jsx)(Y,{children:(0,i.jsx)(N,{})})]}),ec&&(0,i.jsxs)(i.Fragment,{children:[!(eo>0)&&(0,i.jsx)(G,{children:h("connectWallet.noWalletsFound")}),eo>0&&!P&&(0,i.jsx)("div",{style:{maxHeight:56*Math.min(el.length,5)+5,width:"100%"},children:(0,i.jsx)("div",{style:{height:`${ef.getTotalSize()}px`,width:"100%",position:"relative"},children:ef.getVirtualItems().map(e=>(0,i.jsx)(q,{index:e.index,style:{position:"absolute",top:0,left:0,height:`${e.size}px`,transform:`translateY(${e.start}px)`},data:{wallets:el,walletChainType:g,handleWalletClick:ev}},e.key))})})]})]})]}),(0,i.jsxs)(M.S.Footer,{children:[et&&!P&&"string"!=typeof et.connector&&"error"===en&&(0,i.jsx)(M.S.Actions,{children:(0,i.jsx)(C.a,{style:{width:"100%",alignItems:"center"},variant:"error",onClick:()=>er(et.connector,{name:et.name,icon:et.icon,id:et.id,url:et.url}),children:h("connectWallet.retry")})}),!!(j&&j.legal.privacyPolicyUrl&&j.legal.termsAndConditionsUrl)&&(0,i.jsx)(C.T,{app:j,alwaysShowImplicitConsent:!0}),(0,i.jsx)(M.S.Watermark,{})]})]})};let V=k.I4.div`
496  position: sticky;
497  // Offset by negative margin to account for focus outline
498  margin-top: -3px;
499  padding-top: 3px;
500  top: -3px;
501  z-index: 1;
502  background: var(--privy-color-background);
503  padding-bottom: calc(var(--screen-space) / 2);
504`,H=k.I4.div`
505  display: flex;
506  flex-direction: column;
507  gap: ${5}px;
508`,Q=k.I4.button`
509  && {
510    gap: 0.5rem;
511    align-items: center;
512    display: flex;
513    position: relative;
514    text-align: left;
515    font-weight: 500;
516    transition: background 200ms ease-in;
517    width: calc(100% - 4px);
518    border-radius: var(--privy-border-radius-md);
519    padding: 0.75em;
520    border: 1px solid var(--privy-color-foreground-4);
521    justify-content: space-between;
522  }
523
524  &:hover {
525    background: var(--privy-color-background-2);
526  }
527`,Y=k.I4.span`
528  display: flex;
529  align-items: center;
530  justify-content: end;
531  position: relative;
532
533  & > svg {
534    border-radius: var(--privy-border-radius-full);
535    stroke-width: 2.5;
536    width: 100%;
537    max-height: 1rem;
538    max-width: 1rem;
539    flex-shrink: 0;
540  }
541
542  & > svg:not(:last-child) {
543    border-radius: var(--privy-border-radius-full);
544    margin-right: -0.375rem;
545  }
546`,G=k.I4.div`
547  height: 60px;
548  display: flex;
549  align-items: center;
550  justify-content: center;
551  text-align: center;
552`,Z=k.I4.span`
553  text-overflow: ellipsis;
554  white-space: nowrap;
555  color: var(--privy-color-foreground);
556  font-weight: 400;
557  flex: 1;
558`,J=(0,k.I4)(j.C)`
559  && {
560    margin: 0.5rem auto 0 auto;
561  }
562`,X=k.I4.div`
563  text-align: center;
564  margin-top: 1rem;
565  font-size: 0.875rem;
566  font-weight: 400;
567  color: var(--privy-color-foreground-3);
568`},84024:(e,t,n)=>{n.d(t,{C:()=>u,a:()=>p});var i=n(44109),l=n(16976),o=n(66993),r=n(67513),a=n(48988);let s=a.I4.button`
569  display: flex;
570  align-items: center;
571  justify-content: end;
572  gap: 0.5rem;
573
574  svg {
575    width: 0.875rem;
576    height: 0.875rem;
577  }
578`,c=a.I4.span`
579  display: flex;
580  align-items: center;
581  gap: 0.25rem;
582  font-size: 0.875rem;
583  color: var(--privy-color-foreground-2);
584`,d=(0,a.I4)(l.A)`
585  color: var(--privy-color-icon-success);
586  flex-shrink: 0;
587`,h=(0,a.I4)(o.A)`
588  color: var(--privy-color-icon-muted);
589  flex-shrink: 0;
590`;function u({children:e,iconOnly:t,value:n,hideCopyIcon:l,...o}){let[a,u]=(0,r.useState)(!1);return(0,i.jsxs)(s,{...o,onClick:()=>{navigator.clipboard.writeText(n||("string"==typeof e?e:"")).catch(console.error),u(!0),setTimeout(()=>u(!1),1500)},children:[e," ",a?(0,i.jsxs)(c,{children:[(0,i.jsx)(d,{})," ",!t&&"Copied"]}):!l&&(0,i.jsx)(h,{})]})}let p=({value:e,includeChildren:t,children:n,...l})=>{let[o,a]=(0,r.useState)(!1),u=()=>{navigator.clipboard.writeText(e).catch(console.error),a(!0),setTimeout(()=>a(!1),1500)};return(0,i.jsxs)(i.Fragment,{children:[t?(0,i.jsx)(s,{...l,onClick:u,children:n}):(0,i.jsx)(i.Fragment,{children:n}),(0,i.jsx)(s,{...l,onClick:u,children:o?(0,i.jsx)(c,{children:(0,i.jsx)(d,{})}):(0,i.jsx)(h,{})})]})}}}]);

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.