1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8403],{74613:function(e,r,t){t.d(r,{Z:function(){return p}});var i=t(42704);let n=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),a=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,t)=>t?t.toUpperCase():r.toLowerCase()),o=e=>{let r=a(e);return r.charAt(0).toUpperCase()+r.slice(1)},s=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return r.filter((e,r,t)=>!!e&&""!==e.trim()&&t.indexOf(e)===r).join(" ").trim()},c=e=>{for(let r in e)if(r.startsWith("aria-")||"role"===r||"title"===r)return!0};var l={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 d=(0,i.forwardRef)((e,r)=>{let{color:t="currentColor",size:n=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:d="",children:p,iconNode:u,...h}=e;return(0,i.createElement)("svg",{ref:r,...l,width:n,height:n,stroke:t,strokeWidth:o?24*Number(a)/Number(n):a,className:s("lucide",d),...!p&&!c(h)&&{"aria-hidden":"true"},...h},[...u.map(e=>{let[r,t]=e;return(0,i.createElement)(r,t)}),...Array.isArray(p)?p:[p]])}),p=(e,r)=>{let t=(0,i.forwardRef)((t,a)=>{let{className:c,...l}=t;return(0,i.createElement)(d,{ref:a,iconNode:r,className:s("lucide-".concat(n(o(e))),"lucide-".concat(e),c),...l})});return t.displayName=o(e),t}},21934:function(e,r,t){t.d(r,{Z:function(){return i}});let i=(0,t(74613).Z)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},90345:function(e,r,t){t.d(r,{Z:function(){return i}});let i=(0,t(74613).Z)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},18403:function(e,r,t){t.r(r),t.d(r,{CaptchaScreen:function(){return p},CaptchaScreenView:function(){return d},default:function(){return p}});var i=t(48470),n=t(21934),a=t(90345),o=t(42704),s=t(70727),c=t(16312),l=t(97602);t(57442),t(85352),t(97330),t(94864),t(90782);let d=({status:e,title:r,description:t,userIntentRequired:s,retriesRemaining:c,hasSelectedCta:d,onContinue:p,onRetry:u})=>{let h=(0,o.useMemo)(()=>{switch(e){case"loading":default:return;case"success":return s?{label:d?"Continuing...":"Continue",onClick:p,disabled:d,loading:d}:void 0;case"error":return c>0?{label:"Retry",onClick:u}:void 0}},[e,d,p,u]),g=(0,o.useMemo)(()=>({loading:"loading",ready:"subtle",disabled:"subtle",success:"success",error:"error"})[e]||"loading",[e]);return(0,i.jsx)(l.S,{icon:"loading"===e||"ready"===e?void 0:"success"===e?n.Z:a.Z,iconVariant:g,title:r,subtitle:t,primaryCta:h,watermark:!0})},p={component:()=>{let{lastScreen:e,data:r,navigate:t,setModalData:n}=(0,c.a)(),{status:a,token:l,waitForResult:p,reset:u,execute:h}=(0,s.a)(),g=(0,o.useRef)([]),m=e=>{g.current=[e,...g.current]},[f,v]=(0,o.useState)(!0);(0,o.useEffect)(()=>(m(setTimeout(v,1e3,!1)),()=>{g.current.forEach(e=>clearTimeout(e)),g.current=[]}),[]);let[y,x]=(0,o.useState)(""),[b,w]=(0,o.useState)("Checking that you are a human..."),[C,k]=(0,o.useState)(!1),[j,z]=(0,o.useState)(3),I=r?.captchaModalData,N=async r=>{try{await I?.callback(r),I?.onSuccessNavigateTo&&t(I?.onSuccessNavigateTo,!1)}catch(r){if(r instanceof s.C)return;n({errorModalData:{error:r,previousScreen:e||"LandingScreen"}}),t(I?.onErrorNavigateTo||"ErrorScreen",!1)}};return(0,o.useEffect)(()=>{"success"===a?m(setTimeout(async()=>{let e=await p();!e||I?.userIntentRequired||N(e)},1e3)):"ready"===a&&m(setTimeout(()=>{"ready"===a&&h()},500))},[a]),(0,o.useEffect)(()=>{if(!f)switch(a){case"success":x("Success!"),w("CAPTCHA passed successfully."),I?.userIntentRequired||setTimeout(()=>{k(!0),N(l)},2e3);break;case"loading":x(""),w("Checking that you are a human...");break;case"error":x("Something went wrong"),w(j<=0?"If you use an adblocker or VPN, try disabling and re-attempting.":"You did not pass CAPTCHA. Please try again.")}},[a,f,C]),(0,i.jsx)(d,{status:a,title:y,description:b,userIntentRequired:I?.userIntentRequired,retriesRemaining:j,hasSelectedCta:C,onContinue:()=>{k(!0),N(l)},onRetry:async()=>
1{if(j<=0)return;z(e=>e-1),u(),h();let e=await p();!e||I?.userIntentRequired||N(e)}})}}},80530:function(e,r,t){t.d(r,{S:function(){return C}});var i=t(48470),n=t(42704),a=t(68471),o=t(75245),s=t(69882),c=t(23299);let l=a.zo.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);"]),d=a.zo.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=a.zo.div.withConfig({displayName:"HeaderContainer",componentId:"sc-2e815abe-2"})(["position:relative;display:flex;flex-direction:column;"]),u=(0,a.zo)(s.M).withConfig({displayName:"StyledModalHeader",componentId:"sc-2e815abe-3"})(["margin:0 -8px;"]),h=a.zo.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),g=a.zo.div.withConfig({displayName:"FooterContainer",componentId:"sc-2e815abe-5"})(["display:flex;flex-direction:column;gap:var(--screen-space-lg);"]),m=a.zo.div.withConfig({displayName:"CenteredHeader",componentId:"sc-2e815abe-6"})(["text-align:center;display:flex;flex-direction:column;align-items:center;gap:var(--screen-space);"]),f=a.zo.div.withConfig({displayName:"TitleContainer",componentId:"sc-2e815abe-7"})(["display:flex;flex-direction:column;gap:4px;"]),v=a.zo.h3.withConfig({displayName:"HeaderTitle",componentId:"sc-2e815abe-8"})(["&&{font-size:20px;line-height:32px;font-weight:500;color:var(--privy-color-foreground);margin:0;}"]),y=a.zo.p.withConfig({displayName:"HeaderSubtitle",componentId:"sc-2e815abe-9"})(["&&{margin:0;font-size:16px;font-weight:300;line-height:24px;color:var(--privy-color-foreground);}"]),x=a.zo.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=a.zo.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=a.zo.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%);}"]),C=({children:e,...r})=>(0,i.jsx)(l,{children:(0,i.jsx)(d,{...r,children:e})}),k=a.zo.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,a.zo)(s.B).withConfig({displayName:"StyledBlobbyFooter",componentId:"sc-2e815abe-14"})(["padding:0;&& a{padding:0;color:var(--privy-color-foreground-3);}"]),z=a.zo.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),I=({step:e})=>e?(0,i.jsx)(k,{children:(0,i.jsx)(z,{pct:Math.min(100,e.current/e.total*100)})}):null;C.Header=({title:e,subtitle:r,icon:t,iconVariant:n,iconLoadingStatus:a,showBack:o,onBack:s,showInfo:c,onInfo:l,showClose:d,onClose:h,step:g,...x})=>(0,i.jsxs)(p,{...x,children:[(0,i.jsx)(u,{backFn:o?s:void 0,infoFn:c?l:void 0,onClose:d?h:void 0,closeable:d}),(t||n||e||r)&&(0,i.jsxs)(m,{children:[t||n?(0,i.jsx)(C.Icon,{icon:t,variant:n,loadingStatus:a}):null,(0,i.jsxs)(f,{children:[e&&(0,i.jsx)(v,{children:e}),r&&(0,i.jsx)(y,{children:r})]})]}),g&&(0,i.jsx)(I,{step:g})]}),(C.Body=n.forwardRef(({children:e,...r},t)=>(0,i.jsx)(h,{ref:t,...r,children:e}))).displayName="Screen.Body",C.Footer=({children:e,...r})=>(0,i.jsx)(g,{id:"privy-content-footer-container",...r,children:e}),C.Actions=({children:e,...r})=>(0,i.jsx)(N,{...r,children:e}),C.HelpText=({children:e,...r})=>(0,i.jsx)(S,{...r,children:e}),C.Watermark=()=>(0,i.jsx)(j,{}),C.Icon=({icon:e,variant:r="subtle",loadingStatus:t})=>"logo"===r&&e?(0,i.jsx)(b,"string"==typeof e?{children:(0,i.jsx)("img",{src:e,alt:""})}:n.isValidElement(e)?{children:e}:{children:n.createElement(e)}):"loading"===r?e?(0,i.jsx)(w,{children:(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,i.jsx)(o.a4,{success:t?.success,fail:t?.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"}}):n.isValidElement(e)?n.cloneElement(e,{style:{width:"38px",height:"38px"}}):n.createElement(e,{style:{width:"38px",height:"38px"}})]})}):(0,i.jsx)(x,{$variant:r,children:(0,i.jsx)(c.N,{size:"64px"})}):(0,i.jsx)(x,{$variant:r,children:e&&("string"==typeof e?(0,i.jsx)("img",{src:e,alt:"",style:{width:"32px",height:"32px",borderRadius:"6px"}}):n.isValidElement(e)?e:n.createElement(e,{width:32,height:32,stroke:(()=>{switch(r){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=a.zo.div.withConfig({displayName:"ActionsContainer",componentId:"sc-2e815abe-16"})(["width:100%;display:flex;flex-direction:column;gap:calc(var(--screen-space) / 2);"]),S=a.zo.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);}}"])},97602:function(e,r,t){t.d(r,{S:function(){return o}});var i=t(48470),n=t(37707),a=t(80530);let o=({primaryCta:e,secondaryCta:r,helpText:t,watermark:o=!0,children:s,...c})=>{let l=e||r?(0,i.jsxs)(i.Fragment,{children:[e&&(()=>{let{label:r,...t}=e,a=t.variant||"primary";return(0,i.jsx)(n.B,{...t,variant:a,style:{width:"100%",...t.style},children:r})})(),r&&(()=>{let{label:e,...t}=r,a=t.variant||"secondary";return(0,i.jsx)(n.B,{...t,variant:a,style:{width:"100%",...t.style},children:e})})()]}):null;return(0,i.jsxs)(a.S,{id:c.id,className:c.className,children:[(0,i.jsx)(a.S.Header,{...c}),s?(0,i.jsx)(a.S.Body,{children:s}):null,t||l||o?(0,i.jsxs)(a.S.Footer,{children:[t?(0,i.jsx)(a.S.HelpText,{children:t}):null,l?(0,i.jsx)(a.S.Actions,{children:l}):null,o?(0,i.jsx)(a.S.Watermark,{}):null]}):null]})}},23299:function(e,r,t){t.d(r,{N:function(){return a}});var i=t(48470),n=t(68471);let a=({size:e,centerIcon:r})=>(0,i.jsx)(o,{$size:e,children:(0,i.jsxs)(s,{children:[(0,i.jsx)(l,{}),(0,i.jsx)(d,{}),r?(0,i.jsx)(c,{children:r}):null]})}),o=n.zo.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"),s=n.zo.div.withConfig({displayName:"SpinnerContainer",componentId:"sc-ebc93df8-1"})(["position:relative;height:var(--spinner-size);width:var(--spinner-size);opacity:1;animation:fadein 200ms ease;"]),c=n.zo.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);}"]),l=n.zo.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%;}"]),d=n.zo.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);}}"])}}]);
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.