1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="7777393d-139f-bfd7-c09e-b1d02f73390e")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,331297,e=>{"use strict";var t=e.i(920755),n=e.i(49748);class o extends Error{code;attemptsLeft;constructor(e,t,n){super(t),this.code=e,this.attemptsLeft=n}}function i(e){let t=e.toLowerCase();return t.includes("invalid login credentials")||t.includes("invalid credentials")?"invalid-credentials":t.includes("email not confirmed")||t.includes("confirm your email")?"unconfirmed":t.includes("rate limit")||t.includes("too many")?"rate-limited":t.includes("expired")||t.includes("otp_expired")?"expired":t.includes("token has expired or is invalid")||t.includes("invalid")&&t.includes("otp")?"wrong-code":t.includes("already registered")||t.includes("already exists")?"exists":"unknown"}function s(e){if(e instanceof o)return e;let t=e instanceof Error?e.message:String(e);return new o(i(t),t)}let a=()=>(0,t.createClient)();async function r(e){let t=await fetch("/api/auth/check-email",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:(0,n.normalizeEmail)(e)})});if(429===t.status)throw new o("rate-limited","Too many attempts. Try again in a minute.");return t.ok?await t.json():{exists:!1,confirmed:!1,hasAuth:!1}}async function l(e,t){let{data:i,error:r}=await a().auth.signInWithPassword({email:(0,n.normalizeEmail)(e),password:t});if(r)throw s(r);if(!i.user)throw new o("unknown","No user returned");return{userId:i.user.id}}async function c(e){let t=(0,n.normalizeEmail)(e.email),i=await r(t);if(i.exists&&i.confirmed)throw new o("exists","An account with this email already exists. Sign in instead.");let l={first_name:(0,n.capitalizeName)(e.firstName),last_name:(0,n.capitalizeName)(e.lastName),phone_number:e.phone},c=`${window.location.origin}/auth/callback`;if(i.exists&&!i.confirmed&&i.hasAuth){let{error:e}=await a().auth.signInWithOtp({email:t,options:{emailRedirectTo:c,shouldCreateUser:!1,data:l}});if(e)throw s(e);return{flow:"otp",email:t}}let{error:d}=await a().auth.signUp({email:t,password:e.password,options:{emailRedirectTo:c,data:l}});if(d)throw s(d);return{flow:"signup",email:t}}async function d(e){let t=await fetch("/api/auth/email-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});return{status:t.status,body:await t.json().catch(()=>({}))}}async function u(e,t){let{status:n,body:i}=await d({action:"resend",email:e,flow:t});if(429===n)throw new o("rate-limited",i.error??"Wait a minute before asking for another code.");if(200!==n)throw new o("unknown",i.error??"Could not send a new code.")}async function p(e,t,n,i){let{status:s,body:a}=await d({action:"verify",email:e,token:t,flow:n,password:i});if(200===s&&a.userId)return{userId:a.userId};if(410===s)throw new o("expired",a.error??"Code expired");if(423===s)throw new o("locked",a.error??"Too many wrong codes",0);if(429===s)throw new o("rate-limited",a.error??"Too many attempts");if(400===s&&"wrong-code"===a.code)throw new o("wrong-code",a.error??"Wrong code",a.attemptsLeft);throw new o("unknown",a.error??"Could not verify the code")}async function m(e){let t=await fetch("/api/auth/complete-profile",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),n=await t.json().catch(()=>({}));if(!t.ok)throw new o("unknown",n.error??"Could not save your details");return{complete:!!n.complete,missing:n.missing??[]}}async function f(e){let t=await fetch("/api/auth/complete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...e,email:(0,n.normalizeEmail)(e.email),termsAccepted:!0})}),i=await t.json().catch(()=>({}));if(429===t.status)throw new o("rate-limited",i.error??"Too many attempts. Try again in a few minutes.");if(409===t.status||"exists"===i.code)throw new o("exists",i.error??"An account with this email already exists.");if(401===t.status||"pending-expired"===i.code)throw new o("expired",i.error??"Your TikTok sign-in expired. Start again.");if(!t.ok)throw new o("unknown",i.error??"Could not save your details");return{email:i.email??(0,n.normalizeEmail)(e.email)}}async function h(){let e=await fetch("/api/me/tiktok-identity",{cache:"no-store"}).catch(()=>null);return!!e?.ok&&!0===(await e.json().catch(()=>({}))).connected}async function g(){let e=await fetch("/api/auth/session-state",{cache:"no-store"});return e.ok?await e.json():null}async function k(e){let t=e&&"/home"!==e?`?next=${encodeURIComponent(e)}`:"",{error:n}=await a().auth.signInWithOAuth({provider:"google",options:{redirectTo:`${window.location.origin}/auth/callback${t}`,queryParams:{prompt:"select_account"}}});if(n)throw s(n)}async function x(e){await fetch("/api/auth/last-account",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e?{agencyId:e}:{})}).catch(()=>{})}async function y(){await fetch("/api/auth/last-account",{method:"DELETE"}).catch(()=>{})}async function w(e,t){let o=new URL("/auth/update-password",window.location.origin);t&&o.searchParams.set("redirect",t);let{error:r}=await a().auth.resetPasswordForEmail((0,n.normalizeEmail)(e),{redirectTo:o.toString()});if(r&&"rate-limited"===i(r.message))throw s(r)}async function b(e){let t=a(),n=window.location.hash;if(e.error||/(^|[#&])error(_code)?=/.test(n))return"expired";if(e.code){let{error:n}=await t.auth.exchangeCodeForSession(e.code);
2if(!n)return"ready";let{data:{session:o}}=await t.auth.getSession();return o?"ready":"expired"}if(e.tokenHash&&"recovery"===e.type){let{error:n}=await t.auth.verifyOtp({token_hash:e.tokenHash,type:"recovery"});return n?"expired":"ready"}if(n.includes("access_token")){await new Promise(e=>setTimeout(e,1e3));let{data:{session:e}}=await t.auth.getSession();return e?"ready":"expired"}let{data:{session:o}}=await t.auth.getSession();return o?"ready":"expired"}async function X(e){let t=await fetch("/api/auth/password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:e})});if(!t.ok)throw s(Error((await t.json().catch(()=>({}))).error??"Could not save your password"))}async function S(e,t){let s=await fetch("https://zarqeuxvexggqqlsmbaz.supabase.co/auth/v1/token?grant_type=password",{method:"POST",headers:{apikey:"sb_publishable_hOVqxF1iNbibGsYN4PF-4g_Nhs2Am5b","Content-Type":"application/json"},body:JSON.stringify({email:(0,n.normalizeEmail)(e),password:t})});if(!s.ok){let e=await s.json().catch(()=>({})),t=e.error_description||e.msg||"Authentication failed";throw new o(i(t),t)}let a=await s.json();return{accessToken:a.access_token,refreshToken:a.refresh_token}}async function z(e){let t=await fetch("/api/auth/extension-access",{headers:{Authorization:`Bearer ${e}`},cache:"no-store"});if(!t.ok)return{allowed:!1,agencyName:null};let n=await t.json();return{allowed:!0===n.allowed,agencyName:n.agencyName??null}}async function v(){let e=await fetch("/api/auth/extension-session",{method:"POST",cache:"no-store"}),t=await e.json().catch(()=>({}));if(429===e.status)throw new o("rate-limited",t.error??"Too many attempts. Wait a minute and try again.");if(!e.ok)throw new o("unknown",t.error??"Could not connect the extension.");return t.allowed&&t.accessToken&&t.refreshToken?{allowed:!0,tokens:{accessToken:t.accessToken,refreshToken:t.refreshToken}}:{allowed:!1,agencyName:t.agencyName??null}}e.s(["ShellError",0,o,"bootstrapRecoverySession",0,b,"checkExtensionAccess",0,z,"clearLastAccount",0,y,"completeProfile",0,m,"completeSignup",0,f,"extensionSessionFromCookie",0,v,"extensionSignIn",0,S,"getSessionState",0,g,"hasConnectedTikTok",0,h,"notifyExtensionAccessDenied",0,function(e,t){if("u">typeof chrome&&chrome?.runtime?.sendMessage)try{chrome.runtime.sendMessage(e,{type:"AUTH_ACCESS_DENIED",payload:{agencyName:t}},()=>{chrome?.runtime?.lastError})}catch{}},"resendSignUpCode",0,u,"sendResetLink",0,w,"sendTokensToExtension",0,function(e,t){return new Promise((n,i)=>{if("u"<typeof chrome||!chrome?.runtime?.sendMessage)return void i(new o("unknown","This browser cannot talk to the extension. Open this page in Chrome with the goTether extension installed."));let s=!1;chrome.runtime.sendMessage(e,{type:"AUTH_TOKEN_RECEIVED",payload:t},e=>{s=!0;let t=chrome?.runtime?.lastError?.message;t?i(new o("unknown",`Could not connect to the extension (${t}).`)):e&&"object"==typeof e&&"success"in e?n():i(new o("unknown","The extension did not accept the sign-in."))}),setTimeout(()=>{s||i(new o("unknown","The extension did not respond."))},5e3)})},"signInWithGoogle",0,k,"signInWithPassword",0,l,"stampLastAccount",0,x,"startSignUp",0,c,"tiktokBeginUrl",0,function(e){let t=new URLSearchParams;e&&"/home"!==e&&t.set("redirect",e);let n=t.toString();return`/api/auth/tiktok/begin${n?`?${n}`:""}`},"updatePassword",0,X,"verifyEmailCode",0,p])},765289,e=>{"use strict";var t=e.i(843476),n=e.i(360415),o=e.i(447),i=e.i(724709);e.i(443707);var s=e.i(149721),a=e.i(42906),r=e.i(479109);let l={xs:24,sm:32,md:40,lg:48,xl:64},c={xs:i.tokens.font.size.micro,sm:i.tokens.font.size.caption,md:i.tokens.font.size.body,lg:i.tokens.font.size.lede,xl:i.tokens.font.size.h3},d={xs:10,sm:12,md:14,lg:18,xl:24},u={xs:6,sm:8,md:10,lg:12,xl:14},p={xs:12,sm:14,md:16,lg:18,xl:20},m={xs:8,sm:9,md:i.tokens.font.size.micro,lg:i.tokens.font.size.caption,xl:i.tokens.font.size.label};e.s(["Avatar",0,function({src:e,alt:f,fallbackInitials:h,size:g="md",shape:k="circle",statusDot:x="none",badge:y,className:w}){let{i18n:b,_:X}=(0,n.useLingui)(),S=(0,o.useTheme)(),{colors:z}=S,v=f??b._({id:"7PzzBU",message:"User"}),C=l[g],T="square"===k?i.tokens.radius.none:"rounded"===k?i.tokens.radius.md:Math.round(C/2),j=z.bg,L=(0,r.proxyTikTokCdnUrl)(e),E=!!L,_=!E&&!!(h&&h.trim()),I=_?h.trim().slice(0,3).toUpperCase():"",N=`${i.tokens.color.accent.cosmic}33`,O=i.tokens.color.accent.cosmic,$=function(e,t){if("none"===e)return null;let n=t.colors;return"online"===e?n.success:"busy"===e?n.error:"away"===e?n.warning:n.textMuted}(x,S),A="number"==typeof y&&Number.isFinite(y)&&y>0?y:null,P=null===A?"":A>99?"99+":String(A);return(0,t.jsxs)("div",{className:w,style:{position:"relative",display:"inline-flex",width:C,height:C,flexShrink:0},children:[(0,t.jsx)("div",{style:{width:C,height:C,borderRadius:T,overflow:"hidden",backgroundColor:E?z.surface2:N,display:"inline-flex",alignItems:"center",justifyContent:"center",color:O},children:E?(0,t.jsx)("img",{src:L,alt:v,style:{width:"100%",height:"100%",objectFit:"cover",display:"block"}}):_?(0,t.jsx)("span",{style:{fontFamily:i.tokens.font.family.label,fontSize:c[g],fontWeight:i.tokens.font.weight.bold,letterSpacing:i.tokens.font.letterSpacing.wide,color:O,lineHeight:1,userSelect:"none"},children:I}):(0,t.jsx)(s.FontAwesomeIcon,{icon:a.faUser,style:{fontSize:d[g],color:O}})}),$&&(0,t.jsx)("span",{"aria-hidden":!0,style:{position:"absolute",bottom:0,right:0,width:u[g],height:u[g],borderRadius:i.tokens.radius.pill,backgroundColor:$,boxShadow:`0 0 0 2px ${j}`}}),null!==A&&(0,t.jsx)("span",{"aria-label":`${A} notifications`,style:{position:"absolute",top:-Math.round(p[g]/4),right:-Math.round(p[g]/4),minWidth:p[g],height:p[g],padding:`0 ${i.tokens.space[1]}px`,borderRadius:i.tokens.radius.pill,backgroundColor:z.error,color:i.tokens.color.ink.onAccent,fontFamily:i.tokens.font.family.label,fontSize:m[g],fontWeight:i.tokens.font.weight.bold,letterSpacing:i.tokens.font.letterSpacing.wide,display:"inline-flex",alignItems:"center",justifyContent:"center",boxShadow:`0 0 0 2px ${j}`,fontVariantNumeric:"tabular-nums",lineHeight:1},children:P})]})}])},803501,e=>{"use strict";var t=e.i(843476),n=e.i(271645),o=e.i(973741),i=e.i(360415),s=e.i(447),a=e.i(724709),r=e.i(647163);e.i(443707);var l=e.i(149721),c=e.i(223237),d=e.i(962757),u=e.i(229165),p=e.i(977870);let m={sm:{padY:a.tokens.space[1.5],padX:a.tokens.space[3],fontSize:a.tokens.font.size.body,iconSize:a.tokens.font.size.body},md:{padY:a.tokens.space[2.5],padX:a.tokens.space[3.5],fontSize:a.tokens.font.size.body,iconSize:a.tokens.font.size.lede},lg:{padY:a.tokens.space[3.5],padX:a.tokens.space[5],fontSize:a.tokens.font.size.lede,iconSize:a.tokens.font.size.base}},f={sm:a.tokens.radius.md,md:a.tokens.radius.lg,lg:a.tokens.radius.xl},h={US:{maxLength:10,mask:"(XXX) XXX-XXXX",example:"(555) 123-4567"},CA:{maxLength:10,mask:"(XXX) XXX-XXXX",example:"(555) 123-4567"}
2,GB:{maxLength:10,mask:"XXXX XXXXXX",example:"7400 123456"},AU:{maxLength:9,mask:"XXX XXX XXX",example:"412 345 678"},NZ:{maxLength:9,mask:"XX XXX XXXX",example:"21 234 5678"},IN:{maxLength:10,mask:"XXXXX XXXXX",example:"98765 43210"},MX:{maxLength:10,mask:"XX XXXX XXXX",example:"55 1234 5678"},BR:{maxLength:11,mask:"(XX) XXXXX-XXXX",example:"(11) 91234-5678"},DE:{maxLength:11,mask:"XXXX XXXXXXX",example:"1512 3456789"},FR:{maxLength:9,mask:"X XX XX XX XX",example:"6 12 34 56 78"},ES:{maxLength:9,mask:"XXX XX XX XX",example:"612 34 56 78"},IT:{maxLength:10,mask:"XXX XXX XXXX",example:"312 345 6789"},NL:{maxLength:9,mask:"X XXXX XXXX",example:"6 1234 5678"},JP:{maxLength:10,mask:"XX XXXX XXXX",example:"90 1234 5678"},KR:{maxLength:10,mask:"XX XXXX XXXX",example:"10 1234 5678"},SG:{maxLength:8,mask:"XXXX XXXX",example:"8123 4567"},PH:{maxLength:10,mask:"XXX XXX XXXX",example:"917 123 4567"}};function g(e){return e.replace(/\D/g,"")}function k(e){return e?p.PHONE_COUNTRIES.find(t=>t.code===e)??p.PHONE_COUNTRIES[0]:p.PHONE_COUNTRIES[0]}function x(e,t,n){if(!e)return{country:k(t),national:""};if(e.startsWith("+"))for(let t of[...n].sort((e,t)=>t.dialCode.length-e.dialCode.length)){let n=t.dialCode.slice(1);if(e.slice(1).startsWith(n))return{country:t,national:e.slice(1+n.length).replace(/\D/g,"")}}return{country:k(t),national:g(e)}}let y=(0,n.forwardRef)(function({value:e,defaultValue:k,onChange:y,country:w,defaultCountry:b="US",onCountryChange:X,allowedCountries:S,label:z,helper:v,error:C,placeholder:T,disabled:j=!1,required:L=!1,id:E,name:_,className:I,size:N="md",...O},$){let{i18n:A,_:P}=(0,i.useLingui)(),{colors:R}=(0,s.useTheme)(),U=(0,n.useId)(),M=E??U,F=m[N],W=f[N],q=(0,n.useMemo)(()=>{if(!S||0===S.length)return p.PHONE_COUNTRIES;let e=new Set(S),t=p.PHONE_COUNTRIES.filter(t=>e.has(t.code));return t.sort((e,t)=>S.indexOf(e.code)-S.indexOf(t.code)),t.length>0?t:p.PHONE_COUNTRIES},[S]),H=(0,n.useMemo)(()=>
2x(e??k,b,q),[]),[B,D]=(0,n.useState)(H.country),[J,Y]=(0,n.useState)(H.national),[K,V]=(0,n.useState)(!1),[G,Z]=(0,n.useState)(""),Q=(0,n.useRef)(null),ee=(0,n.useRef)(null),et=(0,n.useRef)(null);(0,n.useEffect)(()=>{if(void 0===e)return;let t=x(e,B.code,q);Y(t.national),t.country.code!==B.code&&D(t.country)},[e]),(0,n.useEffect)(()=>{if(!w)return;let e=q.find(e=>e.code===w);e&&e.code!==B.code&&D(e)},[w]),(0,n.useEffect)(()=>{if(!K)return;let e=e=>{let t=e.target;Q.current?.contains(t)||ee.current?.contains(t)||V(!1)},t=e=>{"Escape"===e.key&&V(!1)};document.addEventListener("mousedown",e),document.addEventListener("keydown",t);let n=setTimeout(()=>et.current?.focus(),0);return()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t),clearTimeout(n)}},[K]);let en=(0,n.useCallback)((e,t)=>{let n=t?`${e.dialCode}${t}`:"";y?.(n,{country:e.code,isValid:function(e,t){if(!t)return!1;let n=h[e];return n?t.length===n.maxLength:t.length>=7&&t.length<=15}(e.code,t)})},[y]),eo=(0,n.useCallback)(e=>{D(e),V(!1),Z(""),X?.(e.code),en(e,J)},[en,J,X]),ei=(0,n.useCallback)(e=>{let t=g(e),n=h[B.code],o=n?.maxLength??15,i=t.slice(0,o);Y(i),en(B,i)},[B,en]),es=(0,n.useMemo)(()=>{if(!G.trim())return q;let e=G.trim().toLowerCase();return q.filter(t=>t.name.toLowerCase().includes(e)||t.code.toLowerCase().includes(e)||t.dialCode.includes(e))},[q,G]),ea=F.iconSize+a.tokens.space[10]+a.tokens.space[2],er=(0,t.jsxs)("div",{style:{position:"relative",display:"flex",alignItems:"stretch"},children:[(0,t.jsxs)("button",{ref:Q,type:"button",onClick:()=>!j&&V(e=>!e),disabled:j,"aria-haspopup":"listbox","aria-expanded":K,"aria-label":A._({id:"1yxApu",message:"Country: {0} {1}",values:{0:B.name,1:B.dialCode}}),style:{display:"inline-flex",alignItems:"center",gap:a.tokens.space[1.5],padding:`0 ${F.padX}px`,background:"transparent",border:"none",borderRight:`1px solid ${R.border}`,cursor:j?"not-allowed":"pointer",color:R.text,fontFamily:a.tokens.font.family.body,fontSize:F.fontSize,minWidth:ea},children:[(0,t.jsx)("span",{style:{fontSize:F.iconSize+2,lineHeight:1},children:B.flag}),(0,t.jsx)("span",{style:{color:R.textMuted,fontSize:a.tokens.font.size.caption,fontFamily:a.tokens.font.family.mono},children:B.dialCode}),(0,t.jsx)(l.FontAwesomeIcon,{icon:c.faChevronDown,style:{fontSize:a.tokens.font.size.micro,color:R.textMuted,transition:`transform ${a.tokens.motion.duration.instant}ms ${a.tokens.motion.easing.out}`,transform:K?"rotate(180deg)":"rotate(0deg)"}})]}),K&&(0,t.jsxs)("div",{ref:ee,role:"dialog","aria-label":A._({id:"X4BIr7",message:"Choose country"}),style:{position:"absolute",top:"calc(100% + 4px)",left:0,minWidth:320,maxHeight:340,background:R.surface1,border:`1px solid ${R.border}`,borderRadius:a.tokens.radius.lg,boxShadow:a.tokens.color.shadow.lg,zIndex:a.tokens.z.popover,display:"flex",flexDirection:"column"},children:[(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:a.tokens.space[2],padding:a.tokens.space[2],borderBottom:`1px solid ${R.border}`},children:[(0,t.jsx)(l.FontAwesomeIcon,{icon:d.faSearch,style:{color:R.textMuted,fontSize:a.tokens.font.size.caption}}),(0,t.jsx)("input",{ref:et,type:"text",value:G,onChange:e=>Z(e.target.value),placeholder:A._({id:"1fka5O",message:"Search country or dial code"}),style:{flex:1,background:"transparent",border:"none",outline:"none",color:R.text,fontFamily:a.tokens.font.family.body,fontSize:a.tokens.font.size.body}}),G&&(0,t.jsx)("button",{type:"button",onClick:()=>{Z(""),et.current?.focus()},"aria-label":A._({id:"V8yTm6",message:"Clear search"}),style:{background:"transparent",border:"none",cursor:"pointer",color:R.textMuted,padding:0,display:"inline-flex"},children:(0,t.jsx)(l.FontAwesomeIcon,{icon:u.faXmark,style:{fontSize:a.tokens.font.size.caption}})})]}),(0,t.jsxs)("div",{role:"listbox",style:{overflowY:"auto",padding:a.tokens.space[1],flex:1},children:[0===es.length&&(0,t.jsx)("div",{style:{padding:a.tokens.space[3],color:R.textMuted,fontFamily:a.tokens.font.family.body,fontSize:a.tokens.font.size.body,textAlign:"center"},children:(0,t.jsx)(i.Trans,{message:"No matches.",id:"Ox3+3h"})}),es.map(e=>{let n=e.code===B.code;return(0,t.jsxs)("button",{type:"button",role:"option","aria-selected":n,onClick:()=>eo(e),style:{display:"flex",width:"100%",alignItems:"center",gap:a.tokens.space[2],padding:`${a.tokens.space[1.5]}px ${a.tokens.space[2]}px`,background:n?R.surface2:"transparent",border:"none",borderRadius:a.tokens.radius.md,cursor:"pointer",color:R.text,fontFamily:a.tokens.font.family.body,fontSize:a.tokens.font.size.body,textAlign:"left"},onMouseEnter:e=>{n||(e.currentTarget.style.background=R.surface2)},onMouseLeave:e=>{n||(e.currentTarget.style.background="transparent")},children:[(0,t.jsx)("span",{style:{fontSize:a.tokens.font.size.base},children:e.flag}),(0,t.jsx)("span",{style:{flex:1},children:e.name}),(0,t.jsx)("span",{style:{color:R.textMuted,fontSize:a.tokens.font.size.caption,fontFamily:a.tokens.font.family.mono},children:e.dialCode})]},e.code)})]})]})]}),el=C??v,ec=C?R.errorText:R.textSubtle,ed=h[B.code],eu=function(e,t){let n=h[t];if(!n)return e.slice(0,15);var o=e.slice(0,n.maxLength),i=n.mask;let s="",a=0;for(let e of i){if(a>=o.length)break;"X"===e?(s+=o[a],a+=1):s+=e}return s}
2(J,B.code),ep=T??ed?.example??A._({id:"ZuLy43",message:"Phone number"}),[em,ef]=(0,n.useState)(!1),eh=C?R.error:em?R.primary:R.border,eg={fontFamily:a.tokens.font.family.label,fontSize:a.tokens.font.size.caption,lineHeight:a.tokens.font.lineHeight.tight,fontWeight:a.tokens.font.weight.semibold,letterSpacing:a.tokens.font.letterSpacing.wider,textTransform:"uppercase",color:R.textMuted,display:"inline-flex",alignItems:"center",gap:a.tokens.space[1],marginBottom:a.tokens.space[1.5],cursor:j?"not-allowed":"pointer",userSelect:"none"},ek={fontFamily:a.tokens.font.family.body,fontSize:a.tokens.font.size.caption,lineHeight:a.tokens.font.lineHeight.normal,color:ec,marginTop:a.tokens.space[1]},ex={position:"relative",display:"flex",alignItems:"stretch",width:"100%",background:R.surface2,border:`1px solid ${eh}`,borderRadius:W,transition:`border-color ${a.tokens.motion.duration.instant}ms ${a.tokens.motion.easing.out}`,opacity:j?.55:1,outline:em?`2px solid ${R.primary}`:"none",outlineOffset:0,cursor:j?"not-allowed":"text"},ey={flex:1,width:"100%",background:"transparent",border:"none",outline:"none",color:R.text,fontFamily:a.tokens.font.family.body,fontSize:F.fontSize,lineHeight:a.tokens.font.lineHeight.normal,padding:`${F.padY}px ${F.padX}px ${F.padY}px ${F.padX}px`,minWidth:0,appearance:"none",WebkitAppearance:"none",MozAppearance:"none"};return(0,t.jsxs)("div",{className:(0,r.cn)("w-full",I),children:[z&&(0,t.jsxs)(o.Root,{htmlFor:M,style:eg,children:[(0,t.jsx)("span",{children:z}),L&&(0,t.jsx)("span",{"aria-hidden":"true",style:{color:R.dangerText,fontWeight:a.tokens.font.weight.bold,marginLeft:a.tokens.space[.5]},children:"*"})]}),(0,t.jsxs)("div",{style:ex,children:[er,(0,t.jsx)("input",{ref:$,id:M,name:_,type:"tel",inputMode:"tel",autoComplete:"tel-national",value:eu,onChange:e=>ei(e.target.value),onFocus:e=>{ef(!0),O.onFocus?.(e)},onBlur:e=>{ef(!1),O.onBlur?.(e)},placeholder:ep,disabled:j,required:L,"aria-invalid":!!C||void 0,style:ey,...O})]}),el&&(0,t.jsx)("p",{style:ek,role:C?"alert":void 0,children:el})]})});y.displayName="InternationalPhoneInput",e.s(["InternationalPhoneInput",0,y])},944064,e=>{"use strict";var t=e.i(843476),n=e.i(271645),o=e.i(360415),i=e.i(447),s=e.i(724709),a=e.i(413293);e.i(443707);var r=e.i(149721),l=e.i(581359);let c=[{id:"len",label:{id:"X1OvJA",message:"8+ characters"},test:e=>e.length>=8},{id:"upper",label:{id:"oi25rL",message:"Uppercase letter"},test:e=>/[A-Z]/.test(e)},{id:"lower",label:{id:"yIObNA",message:"Lowercase letter"},test:e=>/[a-z]/.test(e)},{id:"digit",label:{id:"27QmIv",message:"A number"},test:e=>/\d/.test(e)},{id:"match",label:{id:"I4rfpa",message:"Passwords match"},test:(e,t)=>e.length>0&&e===t}];e.s(["PasswordField",0,function({value:e,onChange:d,confirmValue:u,onConfirmChange:p,rules:m=c,autoComplete:f="new-password",onValidityChange:h,label:g,confirmLabel:k,error:x,disabled:y,size:w="lg",id:b,name:X,className:S}){let{i18n:z,i18n:v,_:C}=(0,o.useLingui)(),{colors:T}=(0,i.useTheme)(),[j,L]=(0,n.useState)(!1),E="new-password"===f,_=void 0!==u,I=(0,n.useMemo)(()=>(_?m:m.filter(e=>"match"!==e.id)).map(t=>({...t,ok:t.test(e,u)})),[m,_,e,u]),N=I.every(e=>e.ok);(0,n.useEffect)(()=>{h?.(N)},[N,h]);let O=e=>L(e.getModifierState("CapsLock"));return(0,t.jsxs)("div",{className:S,style:{display:"flex",flexDirection:"column",gap:s.tokens.space[3.5]},children:[(0,t.jsxs)("div",{onKeyDown:E?void 0:O,onKeyUp:E?void 0:O,children:[(0,t.jsx)(a.PasswordInput,{id:b,name:X??f,autoComplete:f,label:g??z._({id:"8ZsakT",message:"Password"}),value:e,onChange:d,placeholder:E?z._({id:"+WltLB",message:"Choose a password"}):z._({id:"9TO8nT",message:"Your password"}),error:x,disabled:y,size:w}),!E&&j&&(0,t.jsx)("span",{style:{display:"block",marginTop:s.tokens.space[1.5],fontSize:s.tokens.font.size.label,color:T.textMuted},children:z._({id:"WuBkjp",message:"Caps Lock is on"})})]}),_&&(0,t.jsx)(a.PasswordInput,{name:"confirm-password",autoComplete:"new-password",label:k??z._({id:"xnWESi",message:"Confirm password"}),value:u,onChange:p,placeholder:z._({id:"rmOf+c",message:"Type it again"}),disabled:y,size:w}),E&&(0,t.jsx)("ul",{"aria-live":"polite",style:{listStyle:"none",margin:0,padding:0,display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(150px, 1fr))",gap:`${s.tokens.space[1]}px ${s.tokens.space[3]}px`,fontSize:s.tokens.font.size.label,fontFamily:s.tokens.font.family.body},children:I.map(e=>{let n;return(0,t.jsxs)("li",{style:{display:"flex",alignItems:"center",gap:s.tokens.space[1.5],color:e.ok?T.successText:T.textSubtle},children:[(0,t.jsx)("span",{"aria-hidden":!0,style:{width:14,height:14,borderRadius:s.tokens.radius.pill,border:`1.5px solid ${e.ok?T.success:T.border}`,background:e.ok?T.success:"transparent",display:"inline-grid",placeItems:"center",color:s.tokens.color.surface.void.dark,fontSize:9,flex:"0 0 auto",transition:`background ${s.tokens.motion.duration.instant}ms, border-color ${s.tokens.motion.duration.instant}ms`},children:e.ok&&(0,t.jsx)(r.FontAwesomeIcon,{icon:l.faCheck})}),"string"==typeof(n=e.label)?n:v._(n)]},e.id)})})]})}])},420824,e=>{"use strict";var t=e.i(843476),n=e.i(447),o=e.i(724709);e.i(443707);var i=e.i(149721);let s={xs:{height:o.tokens.space[4],padX:o.tokens.space[1.5],gap:o.tokens.space[1],fontSize:o.tokens.font.size.micro,dotSize:o.tokens.space[1]+o.tokens.space.px,iconSize:o.tokens.space[2]},sm:{height:o.tokens.space[4.5],padX:o.tokens.space[2],gap:o.tokens.space[1.5],fontSize:o.tokens.font.size.micro,dotSize:o.tokens.space[1.5],iconSize:o.tokens.space[2]+o.tokens.space.px},md:{height:o.tokens.space[5]+2*o.tokens.space.px,padX:o.tokens.space[2.5],gap:o.tokens.space[1.5],fontSize:o.tokens.font.size.caption,dotSize:o.tokens.space[1.5]+o.tokens.space.px,iconSize:o.tokens.font.size.micro}},a=` 3 @keyframes v3-status-badge-pulse { 4 0%, 100% { opacity: 1; transform: scale(1); } 5 50% { opacity: 0.45; transform: scale(0.85); } 6 } 7`,r=o.tokens.motion.duration.keyframeLg+o.tokens.motion.duration.panel+o.tokens.motion.duration.drawer+o.tokens.motion.duration.smooth;e.s(["StatusBadge",0,function({label:e,variant:l="neutral",size:c="sm",icon:d,dot:u=!1,pulse:p=!1}){let{colors:m}=(0,n.useTheme)(),f=function(e,t){switch(e){case"info":return{fill:t.info,text:t.infoText};
7case"success":case"live":return{fill:t.success,text:t.successText};case"warning":return{fill:t.warning,text:t.warningText};case"error":return{fill:t.error,text:t.errorText};default:return{fill:t.textMuted,text:t.textMuted}}}(l,m),h=s[c],g=p||"live"===l,k=g?`v3-status-badge-pulse ${r}ms ${o.tokens.motion.easing.inOut} infinite`:void 0,x={display:"inline-flex",alignItems:"center",gap:h.gap,height:h.height,padding:`0 ${h.padX}px`,borderRadius:o.tokens.radius.pill,backgroundColor:`${f.fill}${u?"14":"29"}`,border:`${o.tokens.space.px}px solid ${f.fill}40`,color:f.text,fontFamily:o.tokens.font.family.label,fontSize:h.fontSize,fontWeight:o.tokens.font.weight.bold,letterSpacing:o.tokens.font.letterSpacing.wide,textTransform:"uppercase",lineHeight:1,whiteSpace:"nowrap"};return(0,t.jsxs)(t.Fragment,{children:[g&&(0,t.jsx)("style",{children:a}),(0,t.jsxs)("span",{role:"status",style:x,children:[u&&(0,t.jsx)("span",{"aria-hidden":!0,style:{width:h.dotSize,height:h.dotSize,borderRadius:o.tokens.radius.pill,backgroundColor:f.fill,animation:k,flexShrink:0}}),!u&&d&&(0,t.jsx)(i.FontAwesomeIcon,{icon:d,style:{fontSize:h.iconSize,color:f.fill,animation:k}}),e]})]})}])},504067,e=>{"use strict";var t=e.i(795401);e.s(["SETUP_PATH",0,"/auth/setup","loginUrl",0,function(e,t){let n=t?.signup?"/auth/signup":"/auth/login";return e&&e.startsWith("/")&&!e.startsWith("//")?`${n}?redirect=${encodeURIComponent(e)}`:n},"readRedirect",0,function(e,n){let o;return e instanceof URL?o=e.searchParams.get("redirect"):e instanceof URLSearchParams?o=e.get("redirect"):e&&(o=e.redirect),(0,t.validateRedirectUrl)(Array.isArray(o)?o[0]:o,n)}])},99538,e=>{"use strict";let t={horizontal:{dark:"https://zarqeuxvexggqqlsmbaz.supabase.co/storage/v1/object/public/public/website/brand/logo_horz_dark.png",light:"https://zarqeuxvexggqqlsmbaz.supabase.co/storage/v1/object/public/public/website/brand/logo_horz_light.png"},square:{dark:"https://zarqeuxvexggqqlsmbaz.supabase.co/storage/v1/object/public/public/assets/branding/logo_square_dark-1767253315697-logo_dark.png",light:"https://zarqeuxvexggqqlsmbaz.supabase.co/storage/v1/object/public/public/assets/branding/logo_square_light-1767253327923-logo_light.png"}};t.horizontal.dark,e.s(["PLATFORM_FAVICON",0,"https://zarqeuxvexggqqlsmbaz.supabase.co/storage/v1/object/public/public/assets/branding/favicon-1767253245491-goTether_favicon.png","PLATFORM_LOGOS",0,t])},239348,e=>{"use strict";e.s(["faCircleExclamation",0,{prefix:"fasl",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 512a256 256 0 1 1 0-512 256 256 0 1 1 0 512zm0-480a224 224 0 1 0 0 448 224 224 0 1 0 0-448zm20 348l-40 0 0-40 40 0 0 40zm-8.8-76l-22.4 0-12.8-176 48 0-12.8 176z"]}])},36935,e=>{"use strict";e.s(["faKey",0,{prefix:"fasl",iconName:"key",icon:[512,512,[128273],"f084","M192 176c0-79.5 64.5-144 144-144s144 64.5 144 144-64.5 144-144 144c-11.1 0-22-1.3-32.4-3.6l-8.6-2-6.3 6.3-31.4 31.4-65.4 0 0 64-64 0 0 64-96 0 0-81.4 162.8-162.8 6.9-6.9-2.9-9.3c-4.4-13.8-6.7-28.4-6.7-43.7zM336 0c-97.2 0-176 78.8-176 176 0 15.1 1.9 29.8 5.5 43.9l-160.8 160.8-4.7 4.7 0 126.6 160 0 0-64 64 0 0-64 46.6 0 4.7-4.7 30-30c10 1.8 20.2 2.7 30.7 2.7 97.2 0 176-78.8 176-176S433.2 0 336 0zm32 168a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"]}])},962757,e=>{"use strict";e.s(["faSearch",0,{prefix:"fasl",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M384.1 208a176 176 0 1 0 -352 0 176 176 0 1 0 352 0zM343.5 366c-36.4 31.2-83.7 50-135.3 50-114.9 0-208-93.1-208-208s93.1-208 208-208 208 93.1 208 208c0 51.7-18.8 99-50 135.3l141.4 141.4 11.3 11.3-22.6 22.6-11.3-11.3-141.4-141.4z"]}])},795401,e=>{"use strict";let t=["/home","/join","/agency","/admin","/creator-contract","/creator-apply","/creator-application","/forms","/tournaments","/user","/music-awards","/music-awards/apply","/music-awards/supporter-signup","/@","/onboard/agency","/chat","/community","/events","/meetings","/resources","/battle-signup","/agencies","/subscribe","/u","/auth/setup","/auth/extension-login","/auth/update-password"];e.s(["validateRedirectUrl",0,function(e,n="/home"){if(!e)return n;if(!(e=e.trim()).startsWith("/"))return console.warn("[Security] Blocked redirect - not a relative URL:",e),n;if(e.startsWith("//"))return console.warn("[Security] Blocked redirect - protocol-relative URL:",e),n;let[o]=e.split("?");return t.some(e=>"/@"===e?o.startsWith("/@")&&o.length>2:o===e||o.startsWith(`${e}/`))?e:(console.warn("[Security] Blocked redirect - not in whitelist:",e),n)}])},479109,e=>{"use strict";let t=".cdn-proxy.eulerstream.com",n=/\.tiktokcdn(-[a-z0-9]+)?\.com$/i;e.s(["proxyTikTokCdnUrl",0,function(e){if(!e||e.includes(t))return e;try{let o=new URL(e);if(!n.test(o.hostname))return e;return o.hostname=o.hostname.replace(/\.com$/i,t),o.toString()}catch{return e}}])},49748,e=>{"use strict";e.s(["capitalizeName",0,function(e){return e?e.trim().replace(/\s+/g," ").split(" ").map(e=>(function e(t){return t?t.includes("-")?t.split("-").map(t=>e(t)).join("-"):t.includes("'")?t.split("'").map((t,n)=>n>0?t.charAt(0).toUpperCase()+t.slice(1).toLowerCase():e(t)).join("'"):t.toLowerCase().startsWith("mc")&&t.length>2?"Mc"+t.charAt(2).toUpperCase()+t.slice(3).toLowerCase():t.toLowerCase().startsWith("mac")&&t.length>3?"Mac"+t.charAt(3).toUpperCase()+t.slice(4).toLowerCase():t.charAt(0).toUpperCase()+t.slice(1).toLowerCase():""})(e)).join(" "):""},"normalizeEmail",0,function(e){return e?e.toLowerCase().trim():""}])}]); 8 9//# debugId=7777393d-139f-bfd7-c09e-b1d02f73390e
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.