1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4a0cd464-4e01-4101-a32b-1f8a317533b8",e._sentryDebugIdIdentifier="sentry-dbid-4a0cd464-4e01-4101-a32b-1f8a317533b8")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5991],{8197:(e,t,r)=>{r.d(t,{z:()=>a});let a=e=>{let{ctx:t,path:r,message:a}=e;t.addIssue({code:"custom",path:r??[],message:a})}},16149:(e,t,r)=>{r.d(t,{y:()=>a});let a="conversation"},18553:(e,t,r)=>{r.d(t,{$:()=>d});var a=r(8197),s=r(41129),n=r(31469),o=r(73691),i=r(44546),l=r(11731),c=r(54552);let d=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{minAge:d=l.wz.min,maxAge:u=l.wz.max}=r;return c.Yj().nonempty(e("error.this_field_is_required")).superRefine((e,r)=>{let l=(0,s.qg)(e,"dd/MM/yyyy",new Date);(0,o.f)(l)?((0,i.G)(l)&&(0,a.z)({ctx:r,message:t("auth.error.you_cant_choose_date_from_the_future")}),(0,n.V)(new Date,l)>=d||(0,a.z)({ctx:r,message:t("auth.error.must_be_at_least_16_years_old")}),(0,n.V)(new Date,l)<=u||(0,a.z)({ctx:r,message:t("auth.error.must_be_at_most_100_years_old")})):(0,a.z)({ctx:r,message:t("auth.error.invalid_date_format")})})}},28362:(e,t,r)=>{r.d(t,{k:()=>l});var a=r(95155),s=r(8191),n=r(99074),o=r(81014),i=r(12115);let l=(0,i.forwardRef)((e,t)=>{let{type:r="text",value:l,defaultValue:c,onChange:d,onBlur:u,onFocus:m,onKeyDown:p,placeholder:h,name:x,id:_,label:f,required:g,error:w,describedBy:b,action:y,onActionClick:v,multiline:j,rows:N,showPasswordToggle:k,disabled:S,readOnly:I,autoFocus:C,autoComplete:A,maxLength:V,inputMode:E,showBorder:B=!0,className:R,inputClassName:P}=e,F=(0,i.useId)(),$=_??F,[D,M]=(0,i.useState)(!1),z=(0,i.useRef)(null),O=(0,i.useCallback)(e=>{z.current=e,"function"==typeof t?t(e):t&&(t.current=e)},[t]),L=(0,i.useCallback)(e=>{if(S)return;let t=e.target;t.closest("button")||t.closest('[role="button"]')||z.current?.focus()},[S]),T="password"===r,q=T&&!1!==k,Y=!!y||q,W=(0,i.useRef)(void 0!==c&&void 0===l).current,U=W?void 0:l??"",H=W?c:void 0,J=q?(0,a.jsx)("button",{type:"button",onClick:()=>M(e=>!e),disabled:S,className:(0,s.cn)("flex shrink-0 items-center justify-center min-w-[36px] h-[36px] text-[#9ca3af] transition-colors",S?"opacity-50 cursor-not-allowed":"hover:text-[#5c6776] cursor-pointer"),"aria-label":D?"Hide password":"Show password",id:`${$}-password-toggle`,children:D?(0,a.jsx)(n.A,{size:16}):(0,a.jsx)(o.A,{size:16})}):null,G="bg-transparent border-none outline-none text-[14px] font-normal leading-none text-[#131518] w-full min-w-0 placeholder:text-[#9ca3af]",K=j?(0,a.jsx)("textarea",{ref:O,i
1d:$,name:x,value:U,defaultValue:H,onChange:d,onBlur:u,onFocus:m,onKeyDown:p,placeholder:h,disabled:S,readOnly:I,autoFocus:C,autoComplete:A,maxLength:V,rows:N,"aria-required":g||void 0,"aria-invalid":!!w||void 0,"aria-describedby":[b,w?`${$}-error`:null].filter(Boolean).join(" ")||void 0,className:(0,s.cn)(G,"h-[108px] resize-none",P)}):(0,a.jsx)("input",{ref:O,id:$,name:x,type:T&&D?"text":r,value:U,defaultValue:H,onChange:d,onBlur:u,onFocus:m,onKeyDown:p,placeholder:h,disabled:S,readOnly:I,autoFocus:C,autoComplete:A,maxLength:V,inputMode:E,"aria-required":g||void 0,"aria-invalid":!!w||void 0,"aria-describedby":[b,w?`${$}-error`:null].filter(Boolean).join(" ")||void 0,className:(0,s.cn)(G,"text-ellipsis",P)});return(0,a.jsxs)("div",{className:(0,s.cn)("flex flex-col w-full",R),children:[(0,a.jsxs)("div",{onClick:L,className:(0,s.cn)("bg-[#f4f5f6] flex items-center gap-[8px] pl-[16px] py-[10px] rounded-[12px] w-full transition-colors duration-150",Y?"pr-[10px]":"pr-[16px]",B&&"border border-solid border-[#e9ebee]",B&&"focus-within:border-barca-btn-primary",w&&B&&"border-[#cf122d] focus-within:border-[#cf122d]",S?"cursor-not-allowed":"cursor-text",j&&"items-start"),children:[(0,a.jsxs)("div",{className:(0,s.cn)("flex flex-col gap-[6px] min-w-0 flex-1 overflow-clip",S&&"opacity-50"),children:[f&&(0,a.jsxs)("label",{htmlFor:$,className:"flex gap-[4px] items-center text-[12px] font-normal leading-none text-[#5c6776]",children:[(0,a.jsx)("span",{children:f}),g&&(0,a.jsx)("span",{className:"text-[#cf122d]",children:"*"})]}),(0,a.jsx)("div",{className:"flex items-center overflow-clip py-[2px] w-full",children:K})]}),y&&(v?(0,a.jsx)("button",{type:"button",id:`${$}-action`,onClick:v,className:"flex shrink-0 items-center justify-center min-w-[36px] h-[36px] cursor-pointer",children:y}):(0,a.jsx)("div",{className:"flex shrink-0 items-center justify-center min-w-[36px] h-[36px]",children:y})),J]}),w&&(0,a.jsx)("p",{id:`${$}-error`,className:"text-[12px] text-[#cf122d] mt-[4px]",children:w})]})});l.displayName="TextInput"},31317:(e,t,r)=>{r.d(t,{FP:()=>m,HI:()=>i,gM:()=>u,xB:()=>d});var a=r(16149),s=r(11731),n=r(84131);let o="auth_return_to";function i(e,t){let r,n,o;if("/support"!=((o=(n=(r=e.split("/").filter(Boolean))[0])&&s.SC.includes(n)?r.slice(1):r).length>0?`/${o.join("/")}`:"/"))return;let i=t.startsWith("?")?t.slice(1):t;if(new URLSearchParams(i).has(a.y))return i?`${e}?${i}`:e}function l(){let e=sessionStorage.getItem(o);if(!e)return null;try{let t=JSON.parse(e),r="string"==typeof t.path?(0,n.Tj)(t.path,""):"";if(!r||"number"!=typeof t.savedAt||Date.now()-t.savedAt>18e5)return null;return{path:r,savedAt:t.savedAt,claimedAt:"number"==typeof t.claimedAt?t.claimedAt:null}}catch{return null}}function c(e){e?sessionStorage.setItem(o,JSON.stringify(e)):sessionStorage.removeItem(o)}function d(e){c(e?{path:e,savedAt:Date.now(),claimedAt:null}:null)}function u(){let e=l();if(!e)return void c(null);let t=Date.now();null===e.claimedAt?c({...e,claimedAt:t}):t-e.claimedAt>5e3&&c(null)}function m(){let e=l();return c(null),e?.path??null}},48196:(e,t,r)=>{r.d(t,{IR:()=>l,Y1:()=>c,y4:()=>i});var a=r(18553),s=r(54552);let n=(e,t)=>s.Yj().nonempty(e("error.this_field_is_required")).min(8,t("auth.error.password_must_be_at_least_8_characters")).max(32,t("auth.error.password_must_be_no_more_than_32_characters")).regex(/[A-Z]/,t("auth.error.password_must_contain_at_least_one_capital_letter")).regex(/\d/,t("auth.error.password_must_contain_at_least_one_digit")).regex(/^\S*$/,t("auth.error.do_not_contain_spaces")).regex(/[!@#$%^&*()_+{}[\]:;<>,.?~/-]/,t("auth.error.password_must_contain_at_least_one_special_character")),o=(e,t)=>s.Yj({error:e=>void 0===e.input?t("auth.error.this_field_must_be_filled_in"):void 0}).nonempty(e("error.this_field_is_required")).pipe(s.Rp(e("error.its_not_like_an_email"))),i=(e,t)=>s.Ik({email:o(e,t)}),l=(e,t)=>
1s.Ik({email:o(e,t),password:s.Yj().nonempty(e("error.this_field_is_required"))}),c=(e,t)=>({signupSchema:s.Ik({email:o(e,t),password:n(e,t),confirmPassword:s.Yj().nonempty(t("auth.error.please_confirm_your_password")),isAgreed:s.zM().refine(e=>e,{message:t("auth.error.you_must_agree_to_the_terms")}),isMarketingAgreed:s.zM().optional()}).refine(e=>e.password===e.confirmPassword,{message:t("auth.error.passwords_do_not_match"),path:["confirmPassword"]}),signinSchema:l(e,t),passwordStringSchema:n(e,t),emailSchema:i(e,t),newPasswordSchema:s.Ik({password:n(e,t),confirmPassword:s.Yj().nonempty(t("auth.error.please_confirm_your_password"))}).refine(e=>e.password===e.confirmPassword,{message:t("auth.error.passwords_do_not_match"),path:["confirmPassword"]}),changePasswordSchema:s.Ik({password:n(e,t).nonempty(e("error.this_field_is_required"))}),personalDataSchema:s.Ik({country:s.Yj().nonempty(e("error.this_field_is_required")),name:s.Yj().nonempty(e("error.this_field_is_required")).min(2,{message:e("error.min_value_to_max_value_characters",{minValue:2,maxValue:100})}).max(100,{message:e("error.min_value_to_max_value_characters",{minValue:2,maxValue:100})}),surname:s.Yj().nonempty(e("error.this_field_is_required")).min(1,{message:e("error.min_value_to_max_value_characters",{minValue:1,maxValue:100})}).max(100,{message:e("error.min_value_to_max_value_characters",{minValue:1,maxValue:100})}),dateOfBirth:(0,a.$)(e,t),gender:s.Yj().nonempty(e("error.this_field_is_required")),email:o(e,t).optional()})})},55046:(e,t,r)=>{r.d(t,{R:()=>o});var a=r(95155),s=r(58391),n=r(8191);let o=r(12115).forwardRef((e,t)=>{let{className:r,variant:o="primary",loading:i=!1,fullWidth:l=!0,startIcon:c,disabled:d,children:u,...m}=e;return(0,a.jsxs)("button",{ref:t,disabled:d||i,className:(0,n.cn)("inline-flex items-center justify-center gap-2 rounded-full px-6 py-4 text-[16px] font-bold transition-opacity cursor-pointer","hover:opacity-80 active:opacity-60","outline-none focus-visible:ring-[3px] focus-visible:ring-barca-btn-primary/30","disabled:cursor-not-allowed disabled:opacity-50",l&&"w-full","primary"===o&&"bg-barca-btn-primary text-white hover:bg-barca-btn-primary-hover hover:opacity-100 active:opacity-100","secondary"===o&&"border border-barca-btn-primary bg-transparent text-barca-btn-primary","ghost"===o&&"bg-transparent text-barca-btn-primary",r),...m,children:[i?(0,a.jsx)(s.Spinner,{size:20,className:"text-current"}):c,u]})});o.displayName="V2Button"},65991:(e,t,r)=>{r.r(t),r.d(t,{AuthModal:()=>N});var a=r(95155),s=r(64144),n=r(58391),o=r(33863),i=r(82402);let l={get oauthProviders(){let e,t;return e=window.location.hostname,(("es"===(t=(0,o.mX)(e))?"google":"co"===t?i.env.NEXT_PUBLIC_OAUTH_PROVIDERS_CO:"google,facebook")??"google,facebook"??"").split(",")}};var c=r(73795),d=r(54212),u=r(55046),m=r(71223);let p=[{key:"apple",provider:"apple-web",icon:"/images/icons/apple.svg",alt:"apple-icon"},{key:"google",provider:"localhost"===window.location.hostname?"google-web-dev":"google-web",icon:"/images/icons/google.svg",alt:"google-icon"},{key:"facebook",provider:"facebook-web",icon:"/images/icons/facebook.svg",alt:"facebook-icon"}];var h=r(46681),x=r(17930),_=r(31317),f=r(48196),g=r(73981),w=r(82222),b=r(12115),y=r(66926),v=r(9275),j=r(83324);let N=e=>{let{isHeader:t,isOpen:r,onClose:o,config:i}=e,{t:N}=(0,j.a)("auth"),{t:k}=(0,j.a)("common"),S=(0,w.useRouter)(),I=(0,w.usePathname)(),{trackUserStartedRegistrationProcess:C,trackUserStartedLogInProcess:A}=(0,v.N)(),V=(0,x.useStartOAuth)(),E=(0,x.useCheckEmailMutation)(),B=(0,x.useLoginMutation)(),[R,P]=(0,b.useState)(!1),[F,$]=(0,b.useState)(null),[D,M]=(0,b.useState)("email"),[z,O]=(0,b.useState)(""),L=(0,b.useRef)(t),T=(0,b.useRef)(i);r&&(L.current=t,T.current=i);let q=()=>T.current?.returnTo??(0,_.HI)(window.location.pathname,window.location.search),Y=(0,b.useMemo)(()=>(0,f.y4)(k,N),[k,N]),W=(0,b.useMemo)(()=>(0,c.u)(Y),[Y]),U=(0,b.useMemo)(()=>(0,f.IR)(k,N),[k,N]),H=(0,b.useMemo)(()=>(0,c.u)(U),[U]),J=(0,y.mN)({resolver:W,defaultValues:{email:""}}),G=(0,y.mN)({resolver:H,defaultValues:{email:"",password:""}});(0,b.useEffect)(()=>{r?S.prefetch("/signup"):(J.reset(),G.reset(),M("email"),O(""),$(null))},[r,S,J,G]),(0,b.useEffect)(()=>{let e=e=>{e.persisted&&$(null)};return window.addEventListener("pageshow",e),()=>{window.removeEventListener("pageshow",e)}},[]);let K=L.current?{title:N("auth.lets_log_in"),description:N("auth.register_or_enter_an_existing_account_to_have_access_to_all_features")}:{title:N("auth.you_need_to_log_in"),description:N("auth.to_continue_you_need_to_log_in_to_your_account_This_feature_is_only_available_to_registered_users")},X=async e=>{P(!0);try{(await E.mutateAsync(e.email)).exists?(A(),O(e.email),G.setValue("email",e.email),M("password")):(C(),I.endsWith("/signup")?h.authEvents.emit("signupEmail",e.email):(sessionStorage.setItem("auth_email",e.email),(0,_.xB)(q()),S.push("/signup")),o())}catch{}finally{P(!1)}},Q=async e=>{try{let t=await B.mutateAsync({email:e.email,password:e.password});if("accessToken"in t)(I.endsWith("/signin")||I.endsWith("/signup"))&&S.push("/");else if(t.isVerified)sessionStorage.setItem("auth_email",e.email),sessionStorage.setItem("auth_verified","true"),(0,_.xB)(q()),S.push("/signin");else{let r={codeCheckToken:t.codeCheckToken,userId:t.userId,email:e.email};I.endsWith("/signup")?h.authEvents.emit("pendingVerification",r):(sessionStorage.setItem("auth_pending_verification",JSON.stringify(r)),(0,_.xB)(q()),S.push("/signup"))}o()}catch(e){d.OW.isApiError(e)&&422===e.errors.status&&G.setError("password",{message:N("auth.incorrect_password")})}};return(0,a.jsx)(s.lG,{open:r,onOpenChange:e=>{e||o()},children:(0,a.jsxs)(s.Cf,{className:"rounded-[24px] border-0 bg-white p-8 shadow-[0px_24px_48px_rgba(19,21,24,0.12),0px_0px_0px_1px_rgba(19,21,24,0.06)] sm:max-w-[420px]",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center gap-3 mb-2",children:[(0,a.jsx)(s.L3,{className:"font-heading text-[20px] md:text-[22px] font-bold leading-[1.2] tracking-[-0.3px] text-barca-label-primary text-center",children:T.current?.title??K.title}),(0,a.jsx)(s.rr,{className:"text-[14px] leading-[1.55] text-[#5c6776] text-center max-w-[320px]",children:T.current?.description??K.description})]}),"email"===D&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y.Op,{...J,children:(0,a.jsxs)("form",{onSubmit:e=>void J.handleSubmit(X)(e),className:"flex flex-col gap-3",children:[(0,a.jsx)(m.L,{name:"email",label:N("auth.email"),type:"email"}),(0,a.jsx)(u.R,{type:"submit",loading:R,children:N("auth.next")})]})}),l.oauthProviders.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-4 my-1",children:[(0,a.jsx)("div",{className:"h-px flex-1 bg-gradient-to-r from-transparent via-[#d0d5dd] to-transparent"}),(0,a.jsx)("span",{className:"text-[12px] font-medium text-[#5c6776] select-none",children:N("auth.or")}
1),(0,a.jsx)("div",{className:"h-px flex-1 bg-gradient-to-r from-transparent via-[#d0d5dd] to-transparent"})]}),(0,a.jsx)("div",{className:"flex gap-3",children:p.filter(e=>{let{key:t}=e;return l.oauthProviders.includes(t)}).map(e=>{let{provider:t,icon:r,alt:s}=e;return(0,a.jsx)("button",{type:"button",disabled:null!==F,onClick:()=>{$(t),V.mutate(t,{onError:()=>$(null)})},className:"flex-1 flex items-center justify-center h-[52px] rounded-[12px] bg-[#F7F8FA] transition-[background-color,box-shadow,transform] duration-150 hover:bg-[#EBEDF2] hover:shadow-[0px_1px_3px_rgba(19,21,24,0.06)] active:scale-[0.97] disabled:opacity-50 disabled:pointer-events-none",children:F===t?(0,a.jsx)(n.Spinner,{size:20}):(0,a.jsx)(g.default,{src:r,alt:s,width:22,height:22})},t)})})]})]}),"password"===D&&(0,a.jsx)(y.Op,{...G,children:(0,a.jsxs)("form",{onSubmit:e=>void G.handleSubmit(Q)(e),className:"flex flex-col gap-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 rounded-[12px] bg-[#F7F8FA] px-4 py-3",children:[(0,a.jsx)("span",{className:"text-[14px] text-[#5c6776] truncate flex-1",children:z}),(0,a.jsx)("button",{type:"button",onClick:()=>M("email"),className:"text-[13px] text-barca-btn-primary hover:opacity-80 transition-opacity font-medium",children:N("auth.change_email",{defaultValue:"Change"})})]}),(0,a.jsx)("div",{className:"animate-[expandDown_0.35s_ease-out] origin-top",children:(0,a.jsx)(m.c,{name:"password",label:N("auth.password")})}),(0,a.jsx)("button",{type:"button",className:"w-fit text-[14px] text-barca-btn-primary hover:opacity-80 transition-opacity animate-[fadeIn_0.4s_ease-out_0.15s_both]",onClick:()=>{I.endsWith("/forgot-password")?h.authEvents.emit("forgotPasswordEmail",z):(sessionStorage.setItem("auth_email",z),S.push("/forgot-password")),o()},children:N("auth.forgot_your_password")}),(0,a.jsx)("div",{className:"animate-[fadeIn_0.4s_ease-out_0.2s_both]",children:(0,a.jsx)(u.R,{type:"submit",loading:G.formState.isSubmitting,children:N("auth.signin")})})]})})]})})}},71223:(e,t,r)=>{r.d(t,{L:()=>u,c:()=>m});var a=r(95155),s=r(19749),n=r(12115),o=r(66926),i=r(28362);let l=n.forwardRef((e,t)=>{let{hasValue:r,value:s,defaultValue:n,className:o,...l}=e;return(0,a.jsx)(i.k,{...l,ref:t,value:s,defaultValue:n,className:o})});l.displayName="V2Input";var c=r(8191);let d=n.forwardRef((e,t)=>{let{showToggle:r=!0,requirements:s,className:n,...o}=e;return(0,a.jsxs)("div",{className:(0,c.cn)("w-full",n),children:[(0,a.jsx)(l,{ref:t,...o,type:"password",showPasswordToggle:r,className:"w-full"}),s&&s.length>0&&(0,a.jsx)("ul",{className:"mt-3 space-y-1.5",children:s.map(e=>(0,a.jsxs)("li",{className:"flex items-center gap-2",children:[e.met?(0,a.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("circle",{cx:"8",cy:"8",r:"8",fill:"#2A9B5E"}),(0,a.jsx)("path",{d:"M5 8l2 2 4-4",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}):(0,a.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("circle",{cx:"8",cy:"8",r:"7.5",stroke:"#E6E7EB"})}),(0,a.jsx)("span",{className:(0,c.cn)("text-[13px]",e.met?"text-[#2A9B5E]":"text-[#5c6776]"),children:e.label})]},e.label))})]})});function u(e){let t,r,n,i,c,d,u=(0,s.c)(13);u[0]!==e?({name:t,rules:n,transform:i,...r}=e,u[0]=e,u[1]=t,u[2]=r,u[3]=n,u[4]=i):(t=u[1],r=u[2],n=u[3],i=u[4]);let{control:m}=(0,o.xW)();return u[5]!==r||u[6]!==i?(c=e=>{let{field:t,fieldState:s}=e,n=i?.in?i.in(t.value):String(t.value??"");return(0,a.jsx)(l,{...r,ref:t.ref,name:t.name,value:n,hasValue:n.length>0,error:s.error?.message,onChange:e=>{let r=e.target.value;t.onChange(i?.out?i.out(r):r)},onBlur:t.onBlur})},u[5]=r,u[6]=i,u[7]=c):c=u[7],u[8]!==m||u[9]!==t||u[10]!==n||u[11]!==c?(d=(0,a.jsx)(o.xI,{control:m,name:t,rules:n,render:c}),u[8]=m,u[9]=t,u[10]=n,u[11]=c,u[12]=d):d=u[12],d}function m(e){let t,r,n,i,l,c=(0,s.c)(11);c[0]!==e?({name:t,rules:n,...r}=e,c[0]=e,c[1]=t,c[2]=r,c[3]=n):(t=c[1],r=c[2],n=c[3]);let{control:u}=(0,o.xW)();return c[4]!==r?(i=e=>{let{field:t,fieldState:s}=e,n=String(t.value??"");return(0,a.jsx)(d,{...r,ref:t.ref,name:t.name,value:n,hasValue:n.length>0,error:s.error?.message,onChange:t.onChange,onBlur:t.onBlur})},c[4]=r,c[5]=i):i=c[5],c[6]!==u||c[7]!==t||c[8]!==n||c[9]!==i?(l=(0,a.jsx)(o.xI,{control:u,name:t,rules:n,render:i}),c[6]=u,c[7]=t,c[8]=n,c[9]=i,c[10]=l):l=c[10],l}d.displayName="V2PasswordInput",u.displayName="V2FormField",m.displayName="V2PasswordFormField"},84131:(e,t,r)=>{function a(e,t,r){let a=t+(r?`?${r}`:"");return`${e}?redirect=${encodeURIComponent(a)}`}function s(e){try{return decodeURIComponent(e)}catch{return null}}function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/";if(!e)return t;let r=s(e);if(null===r)return t;let a=r.replace(/[\t\n\r]/g,"");if(/^\/(?![/\\])/.test(a))return a;try{let e=new URL(a);if(e.origin===window.location.origin){let t=`${e.pathname}${e.search}${e.hash}`;if(/^\/(?![/\\])/.test(t))return t}}catch{}return t}function o(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/";if(!e)return r;let a=s(e);return null===a?r:(t=a.replace(/[\t\n\r]/g,""),/^\/(?![/\\])/.test(t))?e:r}r.d(t,{Nn:()=>n,Tj:()=>o,aQ:()=>a})}}]);
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.