1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f4b86985-59f8-41ab-971a-ff4819263a89",e._sentryDebugIdIdentifier="sentry-dbid-f4b86985-59f8-41ab-971a-ff4819263a89")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[864],{1835:(e,t,r)=>{"use strict";r.d(t,{$c:()=>a,Bq:()=>s,UR:()=>d,qQ:()=>i});let n={idle:{sizes:[128,320]},thinking:{sizes:[128]},excited:{sizes:[128],oneShotMs:1583},giggling:{sizes:[128,320],oneShotMs:1583},greeting:{sizes:[320],oneShotMs:1583}},a="idle";function s(e){return n[e].oneShotMs??null}function o(e,t){let{sizes:r}=n[e];return r.includes(t)?t:r[r.length-1]}function i(e,t,r){return r?`/onboarding/knowie/knowie-${e}-${o(e,t)}-still.webp`:`/onboarding/knowie/knowie-${e}-${o(e,t)}.webp`}let l=new Set;function d(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=i(e,t,r);l.has(n)||(l.add(n),new Image().src=n)}},12264:(e,t,r)=>{"use strict";r.d(t,{Q:()=>o});var n=r(23798),a=r(53989);let s={capture:"w-[149.5%] h-[149.5%] left-[-31.1%] top-[-23.9%]"};function o(e){let{framing:t="capture",children:r}=e;return(0,n.jsx)("div",{className:"absolute inset-0",children:(0,n.jsx)("div",{className:(0,a.cn)("absolute",s[t]),children:r})})}},12785:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/reset-password",function(){return r(67843)}])},26080:(e,t,r)=>{"use strict";r.d(t,{vD:()=>s,xu:()=>o});var n=r(51424),a=r.n(n);let s=a()(()=>Promise.all([r.e(6593),r.e(4837),r.e(1359),r.e(9580),r.e(3410)]).then(r.bind(r,93410)).then(e=>e.KnowieCharacter),{loadableGenerated:{webpack:()=>[93410]},ssr:!1}),o=a()(()=>Promise.all([r.e(6593),r.e(4837),r.e(1359),r.e(9580),r.e(896)]).then(r.bind(r,40896)).then(e=>e.KnowieAiChatLoader),{loadableGenerated:{webpack:()=>[40896]},ssr:!1});a()(()=>Promise.all([r.e(6593),r.e(4837),r.e(1359),r.e(9580),r.e(1920)]).then(r.bind(r,11920)).then(e=>e.KnowieLoadingCharacter),{loadableGenerated:{webpack:()=>[11920]},ssr:!1})},34204:(e,t,r)=>{"use strict";r.d(t,{L:()=>o,S:()=>i});var n=r(23798),a=r(21462);let s=(0,a.createContext)(!1);function o(e){let{enabled:t,children:r}=e;return(0,n.jsx)(s.Provider,{value:t,children:r})}function i(){return(0,a.useContext)(s)}},41980:(e,t,r)=>{"use strict";r.d(t,{L:()=>f});var n=r(23798),a=r(21462),s=r(12264),o=r(26080),i=r(91864),l=r(53989),d=r(34204),c=r(1835),u=r(83550);let m={idle:"idle",thinking:"thinking",excited:"excited",giggling:"giggling",greeting:"waving"},h=!1;function f(e){let{mood:t,size:r,restMood:f=c.$c,replayKey:w=0,className:p,ariaLabel:g}=e,[x,b]=(0,a.useState)(t),v=(0,u.j)(),E=(0,d.S)(),[y,k]=(0,a.useState)(!1),[j,N]=(0,a.useState)(!1);(0,a.useEffect)(()=>k(!0),[]);let P=E&&!j&&!h,S=P&&y&&!v,_=(0,i.R)(S&&128===r),C=(0,c.qQ)(x,r,v),L=`${C}|${w}`,[$,T]=(0,a.useState)([{id:0,source:C,signature:L}]),V=(0,a.useRef)(1),z=$[$.length-1].signature;return(0,a.useEffect)(()=>{b(t);let e=(0,c.Bq)(t);if(null===e)return;let r=setTimeout(()=>b(f),e);return()=>clearTimeout(r)},[t,w,f]),(0,a.useEffect)(()=>{(0,c.UR)(f,r,v)},[f,r,v]),(0,a.useEffect)(()=>{if(P||z===L)return;let e=!1,t=!1,r=()=>{e||t||(t=!0,T(e=>[...e,{id:V.current++,source:C,signature:L}]))},n=new Image;n.src=C,n.decode?n.decode().then(r,r):(n.onload=r,n.onerror=r);let a=setTimeout(r,200);return()=>{e=!0,clearTimeout(a)}},[P,L,z,C]),(0,a.useEffect)(()=>{if($.length<2)return;let e=setTimeout(()=>T(e=>e.slice(-1)),160);return()=>clearTimeout(e)},[$]),(0,n.jsx)("div",{className:(0,l.cn)("relative select-none pointer-events-none [view-transition-name:knowie-mascot]",p),role:g?"img":void 0,"aria-label":g,children:P?S&&(0,n.jsx)(s.Q,{children:(0,n.jsx)(o.vD,{preset:m[x],replayKey:w,pinGaze:!0,sleepAfterMs:128===r?1e4:void 0,wakeKey:`${x}|${w}|${_}`,onError:()=>{h=!0,N(!0)},className:"absolute inset-0"})}):$.map((e,t)=>(0,n.jsx)("img",{src:e.source,alt:"","aria-hidden":!0,width:r,height:r,decoding:"sync",className:(0,l.cn)("absolute inset-0 w-full h-full object-contain",t>0&&!v&&"animate-[knowie-mood-in_160ms_ease-out]")},e.id))})}},53989:(e,t,r)=>{"use strict";r.d(t,{cn:()=>l});var n=r(71623),a=r(69097);let s=["stroke-border","stroke-heavyBorder"],o=Object.fromEntries(["","-x","-y","-s","-e","-t","-r","-b","-l"].map(e=>[`border-w${e}`,[{[`border${e}`]:s}
1]])),i=(0,a.zu)({extend:{classGroups:{...o,"ring-w":[{ring:s}]}}});function l(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return i((0,n.$)(t))}},63942:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(23798),a=r(41980);function s(e){let{mood:t,heading:r,description:s,children:o,footer:i}=e;return(0,n.jsx)("div",{className:"flex flex-col items-center justify-center bg-background-page text-white px-4 py-16 md:py-24 min-h-[calc(100vh-var(--navbar-height))]",children:(0,n.jsxs)("div",{className:"w-full max-w-[420px] flex flex-col items-center gap-6 bg-surface-card border border-white/10 rounded-3xl px-6 py-8 md:px-10 md:py-10",children:[(0,n.jsx)(a.L,{mood:t,size:320,className:"w-[112px] h-[112px] md:w-32 md:h-32 shrink-0"}),(0,n.jsxs)("div",{className:"flex flex-col gap-2 text-center",children:[(0,n.jsx)("h1",{className:"text-[24px] leading-8 md:text-[28px] md:leading-9 font-semibold text-white",children:r}),(0,n.jsx)("p",{className:"text-[15px] leading-6 font-normal text-white/[0.68]",children:s})]}),o,i]})})}},67843:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>P,default:()=>S});var n=r(23798),a=r(21462),s=r(44075),o=r.n(s),i=r(24078),l=r(95659),d=r(37580),c=r(89365),u=r(28745),m=r(66259),h=r(63942),f=r(21247),w=r(28066),p=r(19541),g=r(13711),x=r(46350),b=r(70259),v=r(91040),E=r(57162);let y="ku_password_reset_token",k=()=>(0,E.deleteCookie)(y,{path:"/auth/reset-password"});var j=r(66110),N=r(53989),P=!0;let S=function(){let{t:e}=(0,l.useTranslation)("auth"),{t:t}=(0,l.useTranslation)("common"),r=(0,i.useRouter)(),s=(0,b.sj)(r),[P,S]=(0,a.useState)(""),[_,C]=(0,a.useState)(""),[L,$]=(0,a.useState)({}),[T,V]=(0,a.useState)(!1),[z,I]=(0,a.useState)(!1),M=n=>{let a=(()=>{let e=(0,E.getCookie)(y);return"string"==typeof e&&e?e:null})();if(!a)return void c.toast.error(e("auth/resetPasswordInvalidLinkError"));I(!0),(0,d.$h)(w.A.resetPassword(a,P,n).then(()=>{k(),c.toast.success(e("auth/resetPasswordSuccessToast")),r.replace((0,x.ox)({referrerScreen:s}))}).catch(n=>{if(!(n instanceof p.hD))throw n;n.type===g.w.RequiresCaptcha?V(!0):n.type===g.w.InvalidCaptcha?(c.toast.error(e("auth/captchaVerifyError")),V(!0)):n.type===g.w.NotFound?(k(),c.toast.warn(e("auth/resetPasswordInvalidLinkError")),r.replace((0,x.Om)({referrerScreen:s}))):n.type===g.w.FormValidation?$((0,v.o8)(t,n)):n.handleUnknownError(t,"auth.resetPassword")}).finally(()=>I(!1)))},D=z||T;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.A,{title:e("auth/resetPasswordPageTitle"),description:e("auth/resetPasswordPageDescription"),noIndex:!0,noReferrer:!0}),(0,n.jsxs)(h.A,{mood:"idle",heading:e("auth/resetPasswordPageHeading"),description:e("auth/resetPasswordInstructionText"),footer:(0,n.jsx)(o(),{href:(0,x.ox)({referrerScreen:s}),prefetch:!1,className:"text-[14px] leading-5 font-semibold text-brand hover:opacity-80 transition-opacity",children:e("auth/loginButton")}),children:[(0,n.jsxs)("form",{onSubmit:t=>{if(t.preventDefault(),!D){if($({}),P!==_)return void $({passwordConfirm:e("auth/resetPasswordMatchingPasswordsError")});M(null)}},className:"w-full flex flex-col gap-3",children:[(0,n.jsx)("input",{name:"password",type:"password",autoComplete:"new-password",placeholder:t("common/authEmailFormPasswordLabel"),value:P,onChange:e=>S(e.target.value),className:f.H,required:!0}),L.password&&(0,n.jsx)("p",{className:"text-[13px] leading-5 text-error",children:L.password}),(0,n.jsx)("input",{name:"passwordConfirm",type:"password",autoComplete:"new-password",placeholder:e("auth/resetPasswordNewPasswordLabel"),value:_,onChange:e=>C(e.target.value),className:f.H,required:!0}),L.passwordConfirm&&(0,n.jsx)("p",{className:"text-[13px] leading-5 text-error",children:L.passwordConfirm}),(0,n.jsx)("button",{type:"submit",disabled:D||!P.trim()||!_.trim(),className:(0,N.cn)((0,j.r)(),f.r,"w-full"),children:D?(0,n.jsx)("span",{className:"w-5 h-5 border-2 border-white/30 border-t-white rounded-full animate-spin",role:"status","aria-label":t("common/loading")}):e("auth/resetPasswordSubmitButton")})]}),(0,n.jsx)(m.A,{show:T,onVerify:t=>{if(V(!1),!t)return void c.toast.error(e("auth/captchaVerifyError"));M(t)}})]})]})}},83550:(e,t,r)=>{"use strict";r.d(t,{j:()=>a});var n=r(21462);
1function a(){let[e,t]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let e=window.matchMedia("(prefers-reduced-motion: reduce)");t(e.matches);let r=e=>t(e.matches);return e.addEventListener("change",r),()=>e.removeEventListener("change",r)},[]),e}},91040:(e,t,r)=>{"use strict";r.d(t,{Xp:()=>s,o8:()=>a});var n=r(89365);function a(e,t){let r=t.data,n={};for(let t in r){let a=r[t];switch(a.type){case"required":n[t]=e("common/formValidationRequiredError");break;case"size":a.min&&1===a.min?n[t]=e("common/formValidationSizeMin1Error"):a.min?n[t]=e("common/formValidationSizeMinError",{min:a.min}):n[t]=e("common/formValidationSizeMaxError",{max:a.max});break;case"length":a.min?n[t]=e("common/formValidationLengthMinError",{min:a.min}):n[t]=e("common/formValidationLengthMaxError",{max:a.max});break;case"email":n[t]=e("common/formValidationEmailError");break;case"e164":n[t]=e("common/formValidationE164Error");break;default:n[t]=e("common/formValidationUnknownError")}}return n}function s(e,t,r){if(!r)return;let s=a(e,t);for(let t in s)Object.prototype.hasOwnProperty.call(r.getData(),t)||n.toast.error(`${e("common/formValidationUnknownFieldError")} (${t}).`),r.setFieldError(t,s[t])}},91864:(e,t,r)=>{"use strict";r.d(t,{R:()=>a});var n=r(21462);function a(e){let[t,r]=(0,n.useState)(0);return(0,n.useEffect)(()=>{if(!e)return;let t=0,n=()=>{let e=Date.now();e-t<5e3||(t=e,r(e=>e+1))};return window.addEventListener("pointermove",n,{passive:!0}),window.addEventListener("pointerdown",n,{passive:!0}),window.addEventListener("keydown",n,{passive:!0}),()=>{window.removeEventListener("pointermove",n),window.removeEventListener("pointerdown",n),window.removeEventListener("keydown",n)}},[e]),t}}},e=>{e.O(0,[1359,1325,6716,5437,636,6593,8792],()=>e(e.s=12785)),_N_E=e.O()}]);
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.