1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,8583,e=>{"use strict";var t=e.i(43476),i=e.i(71645);let s="clarity-tag";e.s(["ClarityProvider",0,function({projectId:e,children:n}){return(0,i.useEffect)(()=>{let t;if(!e)return;let i=()=>{t=setTimeout(()=>(e=>{if(document.getElementById(s))return;if(!window.clarity){let e=(...t)=>{(e.q??=[]).push(t)};window.clarity=e}let t=document.createElement("script");t.id=s,t.async=!0,t.src=`https://www.clarity.ms/tag/${encodeURIComponent(e)}`,document.head.appendChild(t)})(e),2e3)};return"complete"===document.readyState?i():window.addEventListener("load",i),()=>{window.removeEventListener("load",i),clearTimeout(t)}},[e]),(0,t.jsx)(t.Fragment,{children:n})}])},69268,e=>{"use strict";var t=e.i(43476),i=e.i(88653),s=e.i(32181),n=e.i(35382),r=e.i(91994),o=e.i(71645);let l={stiffness:900,damping:45,mass:.2},a={stiffness:320,damping:26,mass:.6},c={stiffness:600,damping:18,mass:.5},h={type:"spring",stiffness:420,damping:32},d={type:"spring",stiffness:500,damping:30};e.s(["default",0,()=>{let[e,u]=(0,o.useState)(!1),[p,m]=(0,o.useState)(!1),[f,v]=(0,o.useState)(!1),[g,w]=(0,o.useState)("default"),[b,x]=(0,o.useState)(""),y=(0,n.useMotionValue)(-100),S=(0,n.useMotionValue)(-100),E=(0,r.useSpring)(y,l),j=(0,r.useSpring)(S,l),N=(0,r.useSpring)(y,l),L=(0,r.useSpring)(S,l),k=(0,r.useSpring)(y,a),C=(0,r.useSpring)(S,a),T=(0,r.useSpring)(1,c),M=(0,r.useSpring)(1,c),_=(0,r.useSpring)(0,c),z=(0,r.useSpring)(1,c);if((0,o.useEffect)(()=>{let e=window.matchMedia("(pointer: fine)").matches,t=window.matchMedia("(prefers-reduced-motion: reduce)").matches;if(!e||t)return;requestAnimationFrame(()=>u(!0)),document.documentElement.classList.add("custom-cursor");let i=(e,t="")=>{w(e),x(t)},s=e=>{y.set(e.clientX),S.set(e.clientY),m(!0)},n=e=>(e=>{if(!e||"function"!=typeof e.closest||e.closest("[data-cursor-ignore]"))return i("default");let t=e.closest("[data-cursor]")?.dataset.cursor?.trim();return t?i("label",t):e.closest("input, textarea")?i("text"):e.closest("a, button, [role='button'], [data-hover], select")?i("hover"):void i("default")})(e.target),r=()=>v(!0),o=()=>v(!1),l=()=>{m(!1),i("default")};return window.addEventListener("mousemove",s,{passive:!0}),window.addEventListener("mouseover",n,{passive:!0}),window.addEventListener("mousedown",r,{passive:!0}),window.addEventListener("mouseup",o,{passive:!0}),document.documentElement.addEventListener("mouseleave",l),()=>{document.documentElement.classList.remove("custom-cursor"),window.removeEventListener("mousemove",s),window.removeEventListener("mouseover",n),window.removeEventListener("mousedown",r),window.removeEventListener("mouseup",o),document.documentElement.removeEventListener("mouseleave",l)}},[y,S]),(0,o.useEffect)(()=>{let e=f?.88:1,t="hover"===g?0:"text"===g?.75:1,i="hover"===g?1.3:+("default"===g);T.set(t*e),M.set(i*e),_.set("text"===g?e:0),z.set(e)},[g,f,T,M,_,z]),!e)return null;let I=p?"opacity-100":"opacity-0";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.motion.div,{"aria-hidden":!0,style:{x:E,y:j,scale:T,willChange:"transform"},className:`pointer-events-none fixed left-0 top-0 z-122 ml-[-2.5px] mt-[-2.5px] h-[5px] w-[5px] rounded-full bg-white shadow-[0_0_5px_rgba(0,0,0,0.5)] ${I}`}),(0,t.jsx)(s.motion.div,{"aria-hidden":!0,style:{x:N,y:L,scaleY:_,willChange:"transform"},className:`pointer-events-none fixed left-0 top-0 z-121 -ml-px mt-[-9px] h-[18px] w-px rounded-full bg-white/90 ${I}`}),(0,t.jsxs)(s.motion.div,{"aria-hidden":!0,style:{x:k,y:C,willChange:"transform"},className:`pointer-events-none fixed left-0 top-0 z-120 ${I}`,children:[(0,t.jsx)(s.motion.div,{"aria-hidden":!0,style:{scale:M,willChange:"transform"},className:`ml-[-10px] mt-[-10px] h-5 w-5 rounded-full border transition-colors duration-150 ${"hover"===g?"border-accent/90 bg-accent/8":"border-white/50"}`}),(0,t.jsx)(i.AnimatePresence,{children:"label"===g&&(0,t.jsx)("div",{className:"absolute left-0 top-0 -translate-x-1/2 -translate-y-1/2",children:(0,t.jsx)(s.motion.div,{layout:!0,transition:h,initial:{opacity:0,scale:.6}
1,animate:{opacity:1,scale:1},exit:{opacity:0,scale:.6},style:{backgroundColor:"rgb(var(--accent))",willChange:"transform"},className:"flex h-7 items-center justify-center overflow-hidden rounded-full",children:(0,t.jsx)(i.AnimatePresence,{mode:"popLayout",initial:!1,children:(0,t.jsx)(s.motion.span,{initial:{opacity:0,scale:.6},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.6},transition:d,style:{color:"rgb(var(--accent-contrast))"},className:"whitespace-nowrap px-3 font-mono text-[9px] uppercase tracking-[0.18em]",children:b},b)})})})})]})]})}])},66326,e=>{"use strict";var t=e.i(43476),i=e.i(70703),s=e.i(71645);let n=(0,i.default)(()=>e.A(87017),{loadableGenerated:{modules:[97416]},ssr:!1}),r=(0,i.default)(()=>e.A(25683),{loadableGenerated:{modules:[14595]},ssr:!1}),o=e=>e instanceof HTMLElement&&("INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||e.isContentEditable);e.s(["default",0,({askAiEnabled:e=!0})=>{let[i,l]=(0,s.useState)(null),[a,c]=(0,s.useState)(!1),h=null!==i;return(0,s.useEffect)(()=>{let e=()=>l(e=>e??"idle"),t=window.requestIdleCallback?.(e,{timeout:3e3}),i=void 0===t?window.setTimeout(e,2e3):void 0;return()=>{void 0!==t&&window.cancelIdleCallback?.(t),void 0!==i&&window.clearTimeout(i)}},[]),(0,s.useEffect)(()=>{let e=()=>l("open");return window.addEventListener("command-palette:open",e),()=>window.removeEventListener("command-palette:open",e)},[]),(0,s.useEffect)(()=>{if(h&&a)return;let e=e=>{if(!h&&(e.metaKey||e.ctrlKey)){if("k"!==e.key.toLowerCase())return;e.preventDefault(),e.repeat||l("open");return}if(!h&&"/"===e.key&&!e.metaKey&&!e.ctrlKey&&!e.altKey){o(e.target)||(e.preventDefault(),l("open"));return}a||"`"!==e.key&&"~"!==e.key||o(e.target)||c(!0)};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[h,a]),(0,t.jsxs)(t.Fragment,{children:[i?(0,t.jsx)(n,{defaultOpen:"open"===i,askAiEnabled:e}):null,a?(0,t.jsx)(r,{defaultOpen:!0,askAiEnabled:e}):null]})}])},34107,e=>{"use strict";var t=e.i(43476),i=e.i(3405),s=e.i(66161),n=e.i(47146),r=e.i(36426),o=e.i(88653),l=e.i(32181),a=e.i(72328),c=e.i(71645);let h=[{id:"cyan",label:"Cyan",swatch:"#22d3ee"},{id:"violet",label:"Violet",swatch:"#a78bfa"},{id:"emerald",label:"Emerald",swatch:"#34d399"},{id:"amber",label:"Amber",swatch:"#fbbf24"},{id:"rose",label:"Rose",swatch:"#fb7185"}],d="cyan",u=e=>{try{localStorage.setItem("portfolio-theme",e)}catch{}document.documentElement.dataset.theme=e,window.dispatchEvent(new CustomEvent("themechange",{detail:e}))},p=e=>(window.addEventListener("themechange",e),window.addEventListener("storage",e),()=>{window.removeEventListener("themechange",e),window.removeEventListener("storage",e)}),m=()=>{let e=document.documentElement.dataset.theme;return h.some(t=>t.id===e)?e:d},f=({direction:e="down",align:i="end"})=>{let[s,n]=(0,c.useState)(!1),f=(0,c.useSyncExternalStore)(p,m,()=>d),v=(0,c.useRef)(!1),g=(0,c.useRef)(null),w=(0,c.useRef)(null),b=(0,a.useReducedMotion)(),x=(0,c.useCallback)(()=>{n(!1),w.current?.focus()},[]);return(0,c.useEffect)(()=>{if(!s)return;let e=e=>{"Escape"===e.key&&x()},t=e=>{g.current?.contains(e.target)||x()};return window.addEventListener("keydown",e),window.addEventListener("pointerdown",t),()=>{window.removeEventListener("keydown",e),window.removeEventListener("pointerdown",t)}},[s,x]),(0,t.jsxs)("div",{ref:g,className:"relative",children:[(0,t.jsx)("button",{type:"button",ref:w,onClick:()=>n(e=>!e),"aria-expanded":s,"aria-label":"Pick accent theme",className:"relative inline-flex h-9 w-9 items-center justify-center rounded-full border border-hairline bg-canvas/60 text-faint backdrop-blur-md transition-colors duration-200 before:absolute before:-inset-1.5 before:rounded-full before:content-[''] hover:border-white/20 hover:text-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",children:(0,t.jsx)(r.DropletIcon,{size:16,isAnimated:s})}),(0,t.jsx)(o.AnimatePresence,{children:s&&(0,t.jsx)(l.motion.div,{initial:!b&&{opacity:0,y:-6,scale:.92},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-6,scale:.92},transition:{type:"spring",stiffness:400,damping:28},role:"group","aria-label":"Theme",className:`glass absolute z-50 flex items-center gap-1.5 rounded-full border border-hairline p-1.5 shadow-xl shadow-black/40 ${"up"===e?"bottom-11":"top-11"} ${"start"===i?"left-0":"right-0"}`,children:h.map(e=>(0,t.jsx)("button",{type:"button","aria-pressed":f===e.id,"aria-label":`${e.label} accent`,onClick:t=>((e,t)=>{if(v.current||t===f)return void x();let i=e.currentTarget.getBoundingClientRect(),s=i.left+i.width/2,n=i.top+i.height/2,r=b||window.matchMedia("(prefers-reduced-motion: reduce)").matches;if("function"!=typeof document.startViewTransition||r){u(t),x();return}v.current=!0,x(),document.documentElement.setAttribute("data-theme-wipe","");let o=Math.hypot(Math.max(s,window.innerWidth-s),Math.max(n,window.innerHeight-n)),l=document.startViewTransition(()=>u(t));l.ready.then(()=>{document.documentElement.animate({clipPath:[`circle(0px at ${s}px ${n}px)`,`circle(${o}px at ${s}px ${n}px)`]},{duration:650,easing:"cubic-bezier(0.16, 1, 0.3, 1)",pseudoElement:"::view-transition-new(root)"})}).catch(()=>{}),l.finished.finally(()=>{document.documentElement.removeAttribute("data-theme-wipe"),v.current=!1})})(t,e.id),className:`relative grid h-6 w-6 place-items-center rounded-full transition-transform duration-150 before:absolute before:-inset-2.5 before:rounded-full before:content-[''] hover:scale-110 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent ${f===e.id?"ring-2 ring-white/50":""}`,children:(0,t.jsx)("span",{className:"block h-3.5 w-3.5 rounded-full",style:{backgroundColor:e.swatch}})},e.id))})})]})};var v=e.i(47414);class g{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}
1start(e,t){this.componentControls.forEach(i=>{i.start(e.nativeEvent||e,t)})}cancel(){this.componentControls.forEach(e=>{e.cancel()})}stop(){this.componentControls.forEach(e=>{e.stop()})}}let w=()=>new g;var b=e.i(57688),x=e.i(22016),y=e.i(18566);function S(e,t,i){(0,c.useInsertionEffect)(()=>e.on(t,i),[e,t,i])}var E=e.i(10542);let j=()=>{let{scrollY:e,scrollYProgress:i}=(0,E.useScroll)(),s=(0,a.useReducedMotion)(),[n,h]=(0,c.useState)(!1),[d,u]=(0,c.useState)(0),[p,m]=(0,c.useState)(!1);return S(i,"change",e=>{u(Math.min(100,Math.max(0,Math.round(100*e))))}),S(e,"change",e=>{h(e>240)}),(0,t.jsx)(o.AnimatePresence,{children:n&&(0,t.jsxs)(l.motion.div,{initial:!s&&{opacity:0,x:16},animate:{opacity:1,x:0},exit:{opacity:0,x:16},transition:{type:"spring",stiffness:300,damping:30},className:"fixed bottom-[calc(env(safe-area-inset-bottom)+6rem)] right-4 z-40 flex flex-col items-center gap-3 lg:bottom-6 lg:right-7",children:[(0,t.jsx)("div",{className:"hidden lg:block",children:(0,t.jsx)(f,{direction:"up"})}),(0,t.jsxs)("button",{type:"button",onClick:()=>window.scrollTo({top:0,behavior:s?"auto":"smooth"}),"aria-label":`Back to top, ${d}% of the page read`,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),className:"group relative flex h-11 w-11 items-center justify-center rounded-full bg-[rgb(var(--canvas)/0.72)] backdrop-blur-md transition-colors duration-200 hover:bg-elevated focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",children:[(0,t.jsxs)("svg",{viewBox:"0 0 40 40","aria-hidden":!0,className:"absolute inset-0 h-full w-full -rotate-90",children:[(0,t.jsx)("circle",{cx:"20",cy:"20",r:"18",fill:"none",stroke:"rgba(255,255,255,0.12)",strokeWidth:"1.5"}),(0,t.jsx)(l.motion.circle,{cx:"20",cy:"20",r:"18",fill:"none",stroke:"rgb(var(--accent))",strokeWidth:"1.5",strokeLinecap:"round",style:{pathLength:i}})]}),(0,t.jsx)("span",{className:"relative text-faint transition-colors duration-200 group-hover:text-accent",children:(0,t.jsx)(r.ArrowUpIcon,{size:15,isAnimated:p})})]})]},"companion")})};var N=e.i(85980);let L=["/chat"],k={"/":r.HouseIcon,"/projects":r.LayersIcon,"/writing":r.PencilIcon,"/chat":r.SparklesIcon},C="rgb(var(--accent))",T=[{platform:"github",label:"GitHub",url:i.SOCIALS.github},{platform:"linkedin",label:"LinkedIn",url:i.SOCIALS.linkedin},{platform:"twitter",label:"Twitter/X",url:i.SOCIALS.twitter},{platform:"instagram",label:"Instagram",url:i.SOCIALS.instagram},{platform:"email",label:"Email",url:i.MAIL_URL}],M=(e,t)=>{if("/"===t)return"/"===e;let i=t.replace(/\/$/,"");return e===i||e.startsWith(`${i}/`)},_=()=>window.dispatchEvent(new CustomEvent("command-palette:open")),z=({className:i,iconClassName:s,label:n="Search (Command K)",children:o})=>{let[l,a]=(0,c.useState)(!1),h=()=>{e.A(11549)};return(0,t.jsxs)("button",{type:"button",onClick:_,"aria-label":n,onPointerEnter:h,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),onFocus:()=>{a(!0),h()},onBlur:()=>a(!1),className:i,children:[s?(0,t.jsx)("span",{className:s,children:(0,t.jsx)(r.SearchIcon,{size:18,isAnimated:l})}):(0,t.jsx)(r.SearchIcon,{size:16,isAnimated:l}),o]})},I="inline-flex h-9 items-center justify-center rounded-full px-3.5 text-[13px] font-medium transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",R="relative flex h-12 min-w-0 flex-1 flex-col items-center justify-center gap-1 rounded-full transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",O="relative flex h-[18px] w-[18px] items-center justify-center",A="relative text-[11px] leading-none tracking-tight",P=({size:e,compact:i=!1})=>(0,t.jsx)(t.Fragment,{children:T.map(s=>{let r=(0,n.getSocialIcon)(s.platform);return r?(0,t.jsx)(l.motion.a,{href:s.url,target:"_blank",rel:"noreferrer noopener","aria-label":s.label,whileHover:{scale:1.18,rotate:-8},whileTap:{scale:.92},transition:{type:"spring",stiffness:400,damping:18},className:`inline-flex items-center justify-center rounded-full text-muted transition-colors duration-200 hover:text-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent ${i?"h-9 w-9":"h-11 w-11"}`,children:(0,t.jsx)(r,{size:e})},s.platform):null})}),H=()=>{let e=(0,a.useReducedMotion)();return(0,t.jsx)(l.motion.span,{layoutId:"dock-active","aria-hidden":!0,transition:e?{duration:0}:{type:"spring",stiffness:400,damping:30},className:"absolute inset-0 rounded-full bg-white/8"})},W=({menuOpen:e,active:i,onClick:s,buttonRef:n}
1)=>{let[o,l]=(0,c.useState)(!1),a=i||e;return(0,t.jsxs)("button",{type:"button",ref:n,onClick:s,"aria-expanded":e,"aria-controls":"site-menu-sheet","aria-label":e?"Close menu":"Open menu",onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),onFocus:()=>l(!0),onBlur:()=>l(!1),className:`${R} ${a?"text-accent":"text-faint"}`,children:[i&&!e&&(0,t.jsx)(H,{}),(0,t.jsx)("span",{className:O,children:e?(0,t.jsx)(r.XIcon,{size:18,isAnimated:o}):(0,t.jsx)(r.MenuIcon,{size:18,isAnimated:o})}),(0,t.jsx)("span",{className:A,children:"Menu"})]})},$=({label:e,href:i,hue:s,pathname:n})=>{let o=k[i]??r.HouseIcon,l=M(n,i),h=(0,a.useReducedMotion)(),[d,u]=(0,c.useState)(!1);return(0,t.jsxs)(x.default,{href:i,"aria-current":l?"page":void 0,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),onFocus:()=>u(!0),onBlur:()=>u(!1),onClick:e=>{l&&(e.preventDefault(),window.scrollTo({top:0,behavior:h?"auto":"smooth"}))},style:{"--la":s??C},className:`${R} ${l?"text-[var(--la)]":"text-faint"}`,children:[l&&(0,t.jsx)(H,{}),(0,t.jsx)("span",{className:O,children:(0,t.jsx)(o,{size:18,isAnimated:d})}),(0,t.jsx)("span",{className:A,children:e})]})};e.s(["default",0,({askAiEnabled:e=!0})=>{let i=(0,y.usePathname)()??"/",[n,r]=(0,c.useState)(!1),h=(0,a.useReducedMotion)(),d=(0,v.useConstant)(w),u=(0,c.useRef)(null),p=(0,c.useRef)(null),m=t=>!e&&"/chat"===t.href,g=s.PILL_LINKS.filter(e=>!m(e)),S=s.DOCK_LINKS.filter(e=>!m(e)),E=new Set(s.DOCK_LINKS.map(e=>e.href)),k=s.NAV_PAGES.filter(e=>!E.has(e.href)&&!m(e)),T=k.some(e=>M(i,e.href)),_="/"===i,[H,D]=(0,c.useState)(i);if(H!==i&&(D(i),r(!1)),(0,c.useEffect)(()=>{if(!n)return;let e=e=>{"Escape"===e.key&&r(!1),"Tab"===e.key&&p.current&&(0,N.trapFocus)(e,p.current)};window.addEventListener("keydown",e);let t=document.documentElement,i=t.style.overflow;t.style.overflow="hidden",p.current?.querySelector("a")?.focus();let s=u.current;return()=>{window.removeEventListener("keydown",e),t.style.overflow=i,s?.focus()}},[n]),L.includes(i))return null;let F=_?"nav-hoverable":"";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.motion.header,{initial:!h&&{y:-64,opacity:0},animate:{y:0,opacity:1},transition:{type:"spring",stiffness:260,damping:28,delay:.05},className:"fixed inset-x-0 top-4 z-50 hidden md:top-5 lg:block",children:(0,t.jsxs)("div",{className:"mx-auto flex w-full max-w-6xl items-center justify-between px-6 md:px-8",children:[(0,t.jsx)(o.AnimatePresence,{children:!_&&(0,t.jsx)(l.motion.div,{initial:!h&&{opacity:0,x:-16,scale:.6},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:-16,scale:.6},transition:{type:"spring",stiffness:380,damping:30},children:(0,t.jsx)(x.default,{href:"/","aria-label":"Back to home",className:`nav-aura block h-12 w-12 rounded-full shadow-lg shadow-black/40 transition-transform duration-200 hover:scale-105 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent ${F}`,children:(0,t.jsx)("span",{className:"relative block h-full w-full overflow-hidden rounded-full",children:(0,t.jsx)(b.default,{src:"/me.jpg",alt:"","aria-hidden":!0,fill:!0,sizes:"48px",className:"object-cover object-top"})})})},"nav-avatar")}),(0,t.jsx)("div",{className:`ml-auto nav-aura rounded-full bg-[rgb(var(--canvas)/0.82)] shadow-xl shadow-black/40 backdrop-blur-2xl backdrop-saturate-150 ${F}`,children:(0,t.jsxs)("div",{className:"relative z-2 flex items-center gap-1 rounded-full p-1.5",children:[(0,t.jsx)("nav",{"aria-label":"Primary",className:"flex items-center gap-0.5",children:g.map(e=>{let s=M(i,e.href);return(0,t.jsxs)(x.default,{href:e.href,"aria-current":s?"page":void 0,style:{"--la":e.hue},className:`${I} nav-item relative ${s?"nav-active":""}`,children:[s&&(0,t.jsx)(l.motion.span,{layoutId:"nav-active-pill","aria-hidden":!0,transition:{type:"spring",stiffness:380,damping:32},className:"absolute inset-0 rounded-full bg-white/8"}),(0,t.jsx)("span",{className:"nav-item-label relative",children:e.label})]},e.href)})}),(0,t.jsx)(z,{className:`${I} shrink-0 gap-2 bg-white/4! px-3.5 text-faint hover:bg-white/9! hover:text-ink`,children:(0,t.jsxs)("span",{"aria-hidden":!0,className:"text-[13px] font-medium leading-none tracking-[0.01em]",children:[(0,t.jsx)("span",{className:"align-[-0.06em] text-[15px] leading-none",children:"â"}),"K"]})}
1),(0,t.jsx)("span",{"aria-hidden":!0,className:"mx-0.5 h-5 w-px bg-hairline-strong"}),(0,t.jsx)("div",{className:"flex items-center gap-0.5",children:(0,t.jsx)(P,{size:14,compact:!0})})]})})]})}),(0,t.jsx)(o.AnimatePresence,{children:n&&(0,t.jsxs)(l.motion.div,{"data-lenis-prevent":!0,className:"fixed inset-0 z-60 flex items-end justify-center px-4 pt-4 pb-[calc(env(safe-area-inset-bottom)+5.75rem)] lg:hidden",children:[(0,t.jsx)(l.motion.button,{type:"button","aria-label":"Close menu",onClick:()=>r(!1),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"absolute inset-0 cursor-default bg-black/50"}),(0,t.jsxs)(l.motion.div,{ref:p,role:"dialog","aria-modal":"true","aria-label":"Site menu",id:"site-menu-sheet",initial:h?{opacity:0}:{opacity:0,y:40},animate:{opacity:1,y:0},exit:h?{opacity:0}:{opacity:0,y:40},transition:h?{duration:.15}:{type:"spring",stiffness:380,damping:32},drag:"y",dragControls:d,dragListener:!1,dragConstraints:{top:0,bottom:0},dragElastic:{top:0,bottom:.6},onDragEnd:(e,t)=>{(t.offset.y>80||t.velocity.y>600)&&r(!1)},className:"relative flex max-h-full w-full max-w-sm flex-col overflow-hidden rounded-3xl border border-hairline bg-elevated/95 shadow-xl shadow-black/30 backdrop-blur-xl",children:[(0,t.jsx)("div",{onPointerDown:e=>d.start(e),className:"flex shrink-0 touch-none justify-center pt-3 pb-1",children:(0,t.jsx)("span",{"aria-hidden":!0,className:"h-1 w-9 rounded-full bg-white/20"})}),(0,t.jsx)("nav",{"aria-label":"More",className:"flex min-h-0 flex-1 flex-col overflow-y-auto overscroll-contain p-2",children:k.map(e=>{let s=M(i,e.href);return(0,t.jsx)(x.default,{href:e.href,onClick:()=>r(!1),"aria-current":s?"page":void 0,style:{"--la":e.hue??C},className:`flex min-h-[48px] shrink-0 items-center rounded-2xl px-4 text-base transition-colors duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent ${e.emphasized?"font-semibold text-accent hover:bg-accent/10":s?"bg-white/6 font-medium text-[var(--la)]":"text-muted hover:bg-white/6 hover:text-ink"}`,children:e.label},e.href)})}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-between border-t border-hairline px-3 pt-2 pb-2",children:[(0,t.jsx)(f,{direction:"up",align:"start"}),(0,t.jsx)("span",{"aria-hidden":!0,className:"h-4 w-px bg-hairline-strong"}),(0,t.jsx)(P,{size:18})]})]})]},"sheet")}),(0,t.jsxs)("div",{className:"fixed inset-x-0 bottom-0 z-70 pb-[env(safe-area-inset-bottom)] lg:hidden",children:[(0,t.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 h-28",style:{background:"linear-gradient(to top, rgb(var(--canvas)) 0%, rgb(var(--canvas) / 0.92) 40%, transparent 100%)"}}),(0,t.jsx)("nav",{"aria-label":"Primary",className:`nav-aura relative mx-4 mb-4 max-w-md rounded-full sm:mx-auto bg-[rgb(var(--canvas)/0.85)] shadow-xl shadow-black/40 backdrop-blur-2xl backdrop-saturate-150 ${F}`,children:(0,t.jsxs)("div",{className:"relative z-2 flex items-center gap-1 rounded-full p-1.5",children:[S.map(e=>(0,t.jsx)($,{label:e.label,href:e.href,hue:e.hue,pathname:i},e.href)),(0,t.jsx)(z,{label:"Search",iconClassName:O,className:`${R} text-faint`,children:(0,t.jsx)("span",{className:A,children:"Search"})}),(0,t.jsx)(W,{menuOpen:n,active:T,buttonRef:u,onClick:()=>r(e=>!e)})]})})]}),(0,t.jsx)(j,{})]})}],34107)},47420,e=>{"use strict";var t=e.i(43476),i="1.3.26";function s(e,t,i){return Math.max(e,Math.min(t,i))}var n=class{isRunning=!1;value=0;from=0;to=0;currentTime=0;lerp;duration;easing;onUpdate;advance(e){if(!this.isRunning)return;let t=!1;if(this.duration&&this.easing){this.currentTime+=e;let i=s(0,this.currentTime/this.duration,1),n=(t=i>=1)?1:this.easing(i);this.value=this.from+(this.to-this.from)*n}else if(this.lerp){var i,n,r,o;this.value=(i=this.value,n=this.to,r=60*this.lerp,(1-(o=1-Math.exp(-r*e)))*i+o*n),Math.round(this.value)===Math.round(this.to)&&(this.value=this.to,t=!0)}else this.value=this.to,t=!0;t&&this.stop(),this.onUpdate?.(this.value,t)}stop(){this.isRunning=!1}fromTo(e,t,{lerp:i,duration:s,easing:n,onStart:r,onUpdate:o}){this.from=this.value=e,this.to=t,this.lerp=i,this.duration=s,this.easing=n,this.currentTime=0,this.isRunning=!0,r?.(),this.onUpdate=o}},r=class{width=0;height=0;scrollHeight=0;scrollWidth=0;debouncedResize;wrapperResizeObserver;contentResizeObserver;constructor(e,t,{autoResize:i=!0,debounce:s=250}={}){this.wrapper=e,this.content=t,i&&(this.debouncedResize=function(e,t){let i;return function(...s){clearTimeout(i),i=setTimeout(()=>{i=void 0,e.apply(this,s)},t)}}(this.resize,s),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize)}resize=()=>{this.onWrapperResize(),this.onContentResize()};onWrapperResize=()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)};onContentResize=()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)};get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},o=class{events={};emit(e,...t){let i=this.events[e]||[];for(let e=0,s=i.length;e<s;e++)i[e]?.(...t)}on(e,t){return this.events[e]?this.events[e].push(t):this.events[e]=[t],()=>{this.events[e]=this.events[e]?.filter(e=>t!==e)}}off(e,t){this.events[e]=this.events[e]?.filter(e=>t!==e)}destroy(){this.events={}}};let l=100/6,a={passive:!1};function c(e,t){return 1===e?l:2===e?t:1}var h=class{touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new o;constructor(e,t={wheelMultiplier:1,touchMultiplier:1}){this.element=e,this.options=t,window.addEventListener("resize",this.onWindowResize),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,a),this.element.addEventListener("touchstart",this.onTouchStart,a),this.element.addEventListener("touchmove",this.onTouchMove,a),this.element.addEventListener("touchend",this.onTouchEnd,a)}on(e,t){return this.emitter.on(e,t)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize),this.element.removeEventListener("wheel",this.onWheel,a),this.element.removeEventListener("touchstart",this.onTouchStart,a),this.element.removeEventListener("touchmove",this.onTouchMove,a),this.element.removeEventListener("touchend",this.onTouchEnd,a)}onTouchStart=e=>{let{clientX:t,clientY:i}=e.targetTouches?e.targetTouches[0]:e;this.touchStart.x=t,this.touchStart.y=i,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:e})};onTouchMove=e=>{let{clientX:t,clientY:i}=e.targetTouches?e.targetTouches[0]:e,s=-(t-this.touchStart.x)*this.options.touchMultiplier,n=-(i-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=t,this.touchStart.y=i,this.lastDelta={x:s,y:n},this.emitter.emit("scroll",{deltaX:s,deltaY:n,event:e})};onTouchEnd=e=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:e})};onWheel=e=>{let{deltaX:t,deltaY:i,deltaMode:s}=e,n=c(s,this.window.width),r=c(s,this.window.height);t*=n,i*=r,t*=this.options.wheelMultiplier,i*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:t,deltaY:i,event:e})};onWindowResize=()=>{this.window={width:window.innerWidth,height:window.innerHeight}}};let d=e=>Math.min(1,1.001-2**(-10*e));var u=class{_isScrolling=!1;_isStopped=!1;_isLocked=!1;_preventNextNativeScrollEvent=!1;_resetVelocityTimeout=null;_rafId=null;_isDraggingSelection=!1;reducedMotionMediaQuery=window.matchMedia("(prefers-reduced-motion: reduce)");
1isTouching;isIos;time=0;userData={};lastVelocity=0;velocity=0;direction=0;options;targetScroll;animatedScroll;animate=new n;emitter=new o;dimensions;virtualScroll;constructor({wrapper:e=window,content:t=document.documentElement,eventsTarget:s=e,smoothWheel:n=!0,syncTouch:o=!1,syncTouchLerp:l=.075,touchInertiaExponent:a=1.7,duration:c,easing:u,lerp:p=.1,infinite:m=!1,orientation:f="vertical",gestureOrientation:v="horizontal"===f?"both":"vertical",touchMultiplier:g=1,wheelMultiplier:w=1,autoResize:b=!0,prevent:x,virtualScroll:y,overscroll:S=!0,autoRaf:E=!1,anchors:j=!1,autoToggle:N=!1,allowNestedScroll:L=!1,__experimental__naiveDimensions:k=!1,naiveDimensions:C=k,stopInertiaOnNavigate:T=!1,respectReducedMotion:M=!0}={}){window.lenisVersion=i,window.lenis||(window.lenis={}),window.lenis.version=i,"horizontal"===f&&(window.lenis.horizontal=!0),!0===o&&(window.lenis.touch=!0),this.isIos=/(iPad|iPhone|iPod)/g.test(navigator.userAgent),e&&e!==document.documentElement||(e=window),"number"==typeof c&&"function"!=typeof u?u=d:"function"==typeof u&&"number"!=typeof c&&(c=1),this.options={wrapper:e,content:t,eventsTarget:s,smoothWheel:n,syncTouch:o,syncTouchLerp:l,touchInertiaExponent:a,duration:c,easing:u,lerp:p,infinite:m,gestureOrientation:v,orientation:f,touchMultiplier:g,wheelMultiplier:w,autoResize:b,prevent:x,virtualScroll:y,overscroll:S,autoRaf:E,anchors:j,autoToggle:N,allowNestedScroll:L,naiveDimensions:C,stopInertiaOnNavigate:T,respectReducedMotion:M},this.dimensions=new r(e,t,{autoResize:b}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.addEventListener("click",this.onClick),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown),this.virtualScroll=new h(s,{touchMultiplier:g,wheelMultiplier:w}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&(this.checkOverflow(),this.rootElement.addEventListener("transitionend",this.onTransitionEnd)),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.removeEventListener("click",this.onClick),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this._rafId&&cancelAnimationFrame(this._rafId)}on(e,t){return this.emitter.on(e,t)}off(e,t){return this.emitter.off(e,t)}onScrollEnd=e=>{e instanceof CustomEvent||"smooth"!==this.isScrolling&&!1!==this.isScrolling||e.stopPropagation()};dispatchScrollendEvent=()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))};get overflow(){let e=this.isHorizontal?"overflow-x":"overflow-y";return getComputedStyle(this.rootElement)[e]}checkOverflow(){["hidden","clip"].includes(this.overflow)?this.internalStop():this.internalStart()}onTransitionEnd=e=>{e.propertyName?.includes("overflow")&&e.target===this.rootElement&&this.checkOverflow()};setScroll(e){this.isHorizontal?this.options.wrapper.scrollTo({left:e,behavior:"instant"}):this.options.wrapper.scrollTo({top:e,behavior:"instant"})}onClick=e=>{let t=e.composedPath().filter(e=>e instanceof HTMLAnchorElement&&e.href).map(e=>new URL(e.href)),i=new URL(window.location.href);if(this.options.anchors){let e=t.find(e=>i.host===e.host&&i.pathname===e.pathname&&e.hash);if(e){let t="object"==typeof this.options.anchors&&this.options.anchors?this.options.anchors:void 0,i=decodeURIComponent(e.hash);this.scrollTo(i,t);return}}if(this.options.stopInertiaOnNavigate&&t.some(e=>i.host===e.host&&i.pathname!==e.pathname))return void this.reset()};onPointerDown=e=>{1===e.button&&this.reset()};isTouchOnSelectionHandle(e){let t=window.getSelection();if(!t||t.isCollapsed||0===t.rangeCount)return!1;let i=e.targetTouches[0]??e.changedTouches[0];if(!i)return!1;let s=t.getRangeAt(0).getClientRects();if(0===s.length)return!1;let n=s[0],r=s[s.length-1],o=40>=Math.hypot(i.clientX-n.left,i.clientY-n.top),l=40>=Math.hypot(i.clientX-r.right,i.clientY-r.bottom);return o||l}onVirtualScroll=e=>{if("function"==typeof this.options.virtualScroll&&!1===this.options.virtualScroll(e))return;let{deltaX:t,deltaY:i,event:s}=e;if(this.emitter.emit("virtual-scroll",{deltaX:t,deltaY:i,event:s}),s.ctrlKey||s.lenisStopPropagation)return;let n=s.type.includes("touch"),r=s.type.includes("wheel");if(n&&this.isIos&&("touchstart"===s.type&&(this._isDraggingSelection=this.isTouchOnSelectionHandle(s)),this._isDraggingSelection)){"touchend"===s.type&&(this._isDraggingSelection=!1);return}this.isTouching="touchstart"===s.type||"touchmove"===s.type;let o=0===t&&0===i;if(this.options.syncTouch&&n&&"touchstart"===s.type&&o&&!this.isStopped&&!this.isLocked)return void this.reset();let l="vertical"===this.options.gestureOrientation&&0===i||"horizontal"===this.options.gestureOrientation&&0===t;if(o||l)return;let a=s.composedPath();a=a.slice(0,a.indexOf(this.rootElement));let c=this.options.prevent,h=Math.abs(t)>=Math.abs(i)?"horizontal":"vertical";if(a.find(e=>e instanceof HTMLElement&&("function"==typeof c&&c?.(e)||e.hasAttribute?.("data-lenis-prevent")||"vertical"===h&&e.hasAttribute?.("data-lenis-prevent-vertical")||"horizontal"===h&&e.hasAttribute?.("data-lenis-prevent-horizontal")||n&&e.hasAttribute?.("data-lenis-prevent-touch")||r&&e.hasAttribute?.("data-lenis-prevent-wheel")||this.options.allowNestedScroll&&this.hasNestedScroll(e,{deltaX:t,deltaY:i}
1))))return;if(this.isStopped||this.isLocked){s.cancelable&&s.preventDefault();return}if(!(this.options.syncTouch&&n||this.options.smoothWheel&&r)){this.isScrolling="native",this.animate.stop(),s.lenisStopPropagation=!0;return}let d=i;"both"===this.options.gestureOrientation?d=Math.abs(i)>Math.abs(t)?i:t:"horizontal"===this.options.gestureOrientation&&(d=t),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll<this.limit||0===this.animatedScroll&&i>0||this.animatedScroll===this.limit&&i<0))&&(s.lenisStopPropagation=!0),s.cancelable&&s.preventDefault();let u=n&&this.options.syncTouch,p=n&&"touchend"===s.type;p&&(d=Math.sign(d)*Math.abs(this.velocity)**this.options.touchInertiaExponent),this.scrollTo(this.targetScroll+d,{programmatic:!1,...u?{lerp:p?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})};resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}onNativeScroll=()=>{if(null!==this._resetVelocityTimeout&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(!1===this.isScrolling||"native"===this.isScrolling){let e=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-e,this.direction=Math.sign(this.animatedScroll-e),this.isStopped||(this.isScrolling="native"),this.emit(),0!==this.velocity&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}};reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(this.isStopped){if(this.options.autoToggle)return void this.rootElement.style.removeProperty("overflow");this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle)return void this.rootElement.style.setProperty("overflow","clip");this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}raf=e=>{let t=e-(this.time||e);this.time=e,this.animate.advance(.001*t),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))};scrollTo(e,{offset:t=0,immediate:i=!1,lock:n=!1,programmatic:r=!0,lerp:o=r?this.options.lerp:void 0,duration:l=r?this.options.duration:void 0,easing:a=r?this.options.easing:void 0,onStart:c,onComplete:h,force:u=!1,userData:p}={}){if(this.prefersReducedMotion&&(r?i=!0:(o=1,l=void 0,a=void 0)),(this.isStopped||this.isLocked)&&!u)return;let m=e,f=t;if("string"==typeof m&&["top","left","start","#"].includes(m))m=0;else if("string"==typeof m&&["bottom","right","end"].includes(m))m=this.limit;else{let e=null;if("string"==typeof m?(e=m.startsWith("#")?document.getElementById(m.slice(1)):document.querySelector(m))||("#top"===m?m=0:console.warn("Lenis: Target not found",m)):m instanceof HTMLElement&&m?.nodeType&&(e=m),e){if(this.options.wrapper!==window){let e=this.rootElement.getBoundingClientRect();f-=this.isHorizontal?e.left:e.top}let t=e.getBoundingClientRect(),i=getComputedStyle(e),s=this.isHorizontal?Number.parseFloat(i.scrollMarginLeft):Number.parseFloat(i.scrollMarginTop),n=getComputedStyle(this.rootElement),r=this.isHorizontal?Number.parseFloat(n.scrollPaddingLeft):Number.parseFloat(n.scrollPaddingTop);m=(this.isHorizontal?t.left:t.top)+this.animatedScroll-(Number.isNaN(s)?0:s)-(Number.isNaN(r)?0:r)}}if("number"==typeof m){if(m+=f,this.options.infinite){if(r){this.targetScroll=this.animatedScroll=this.scroll;let e=m-this.animatedScroll;e>this.limit/2?m-=this.limit:e<-this.limit/2&&(m+=this.limit)}}else m=s(0,m,this.limit);if(m===this.targetScroll){c?.(this),h?.(this);return}if(this.userData=p??{},i){this.animatedScroll=this.targetScroll=m,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit
1(),h?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}r||(this.targetScroll=m),"number"==typeof l&&"function"!=typeof a?a=d:"function"==typeof a&&"number"!=typeof l&&(l=1),this.animate.fromTo(this.animatedScroll,m,{duration:l,easing:a,lerp:o,onStart:()=>{n&&(this.isLocked=!0),this.isScrolling="smooth",c?.(this)},onUpdate:(e,t)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=e-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=e,this.setScroll(this.scroll),r&&(this.targetScroll=e),t||this.emit(),t&&(this.reset(),this.emit(),h?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}hasNestedScroll(e,{deltaX:t,deltaY:i}){let s,n,r,o,l,a,c,h,d,u,p,m,f,v,g,w,b=Date.now();e._lenis||(e._lenis={});let x=e._lenis;if(b-(x.time??0)>2e3){x.time=Date.now();let t=window.getComputedStyle(e);if(x.computedStyle=t,s=["auto","overlay","scroll"].includes(t.overflowX),n=["auto","overlay","scroll"].includes(t.overflowY),l=["auto"].includes(t.overscrollBehaviorX),a=["auto"].includes(t.overscrollBehaviorY),x.hasOverflowX=s,x.hasOverflowY=n,!(s||n))return!1;c=e.scrollWidth,h=e.scrollHeight,d=e.clientWidth,u=e.clientHeight,r=c>d,o=h>u,x.isScrollableX=r,x.isScrollableY=o,x.scrollWidth=c,x.scrollHeight=h,x.clientWidth=d,x.clientHeight=u,x.hasOverscrollBehaviorX=l,x.hasOverscrollBehaviorY=a}else r=x.isScrollableX,o=x.isScrollableY,s=x.hasOverflowX,n=x.hasOverflowY,c=x.scrollWidth,h=x.scrollHeight,d=x.clientWidth,u=x.clientHeight,l=x.hasOverscrollBehaviorX,a=x.hasOverscrollBehaviorY;if(!(s&&r||n&&o))return!1;let y=Math.abs(t)>=Math.abs(i)?"horizontal":"vertical";if("horizontal"===y)p=Math.round(e.scrollLeft),m=c-d,f=t,v=s,g=r,w=l;else{if("vertical"!==y)return!1;p=Math.round(e.scrollTop),m=h-u,f=i,v=n,g=o,w=a}return!w&&(p>=m||p<=0)||(f>0?p<m:p>0)&&v&&g}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return"horizontal"===this.options.orientation}get actualScroll(){let e=this.options.wrapper;return this.isHorizontal?e.scrollX??e.scrollLeft:e.scrollY??e.scrollTop}get scroll(){var e;return this.options.infinite?(this.animatedScroll%(e=this.limit)+e)%e:this.animatedScroll}get progress(){return 0===this.limit?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(e){this._isScrolling!==e&&(this._isScrolling=e,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(e){this._isStopped!==e&&(this._isStopped=e,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked!==e&&(this._isLocked=e,this.updateClassName())}get isSmooth(){return"smooth"===this.isScrolling}get prefersReducedMotion(){return this.options.respectReducedMotion&&this.reducedMotionMediaQuery.matches}get className(){let e="lenis";return this.options.autoToggle&&(e+=" lenis-autoToggle"),this.isStopped&&(e+=" lenis-stopped"),this.isLocked&&(e+=" lenis-locked"),this.isScrolling&&(e+=" lenis-scrolling"),"smooth"===this.isScrolling&&(e+=" lenis-smooth"),e}updateClassName(){this.cleanUpClassName(),this.className.split(" ").forEach(e=>{this.rootElement.classList.add(e)})}cleanUpClassName(){for(let e of Array.from(this.rootElement.classList))("lenis"===e||e.startsWith("lenis-"))&&this.rootElement.classList.remove(e)}},p=e.i(71645);let m=(0,p.createContext)(null),f=new class{listeners=[];constructor(e){this.state=e}set(e){for(let t of(this.state=e,this.listeners))t(this.state)}subscribe(e){return this.listeners=[...this.listeners,e],()=>{this.listeners=this.listeners.filter(t=>t!==e)}}get(){return this.state}}(null),v=(0,p.forwardRef)(({children:e,root:i=!1,options:s={},autoRaf:n=!0,className:r="",...o},l)=>{let a=(0,p.useRef)(null),c=(0,p.useRef)(null),[h,d]=(0,p.useState)(void 0);(0,p.useImperativeHandle)(l,()=>({wrapper:a.current,content:c.current,lenis:h}),[h]),(0,p.useEffect)(()=>{let e=new u({...s,...a.current&&c.current&&{wrapper:a.current,content:c.current},autoRaf:s?.autoRaf??n});return d(e),()=>{e.destroy(),d(void 0)}},[n,JSON.stringify({...s,wrapper:null,content:null})]);let v=(0,p.useRef)([]),g=(0,p.useCallback)((e,t)=>{v.current.push({callback:e,priority:t}),v.current.sort((e,t)=>
1e.priority-t.priority)},[]),w=(0,p.useCallback)(e=>{v.current=v.current.filter(t=>t.callback!==e)},[]);return((0,p.useEffect)(()=>{if(i&&h)return f.set({lenis:h,addCallback:g,removeCallback:w}),()=>f.set(null)},[i,h,g,w]),(0,p.useEffect)(()=>{if(!h)return;let e=e=>{for(let{callback:t}of v.current)t(e)};return h.on("scroll",e),()=>{h.off("scroll",e)}},[h]),e)?(0,t.jsx)(m.Provider,{value:{lenis:h,addCallback:g,removeCallback:w},children:i&&"asChild"!==i?e:(0,t.jsx)("div",{ref:a,className:`${r} ${h?.className??""}`.trim(),...o,children:(0,t.jsx)("div",{ref:c,children:e})})}):null}),g={};var w=e.i(18566);let b="nav:pop",x=e=>`scroll:${e}`;function y(){let e=(0,w.usePathname)(),t=function(e=[],t=0){let i=(0,p.useContext)(m),s=function(e){let[t,i]=(0,p.useState)(e.get());return(0,p.useEffect)(()=>e.subscribe(e=>i(e)),[e]),t}(f),{lenis:n,addCallback:r,removeCallback:o}=i??s??g;return(0,p.useEffect)(()=>{},[n,r,o,t,...e,void 0]),n}();return(0,p.useEffect)(()=>{let e=()=>{try{sessionStorage.setItem(b,"1")}catch{}};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[]),(0,p.useEffect)(()=>{let e=0,t=()=>{e||(e=requestAnimationFrame(()=>{e=0;try{sessionStorage.setItem(x(window.location.pathname),String(window.scrollY))}catch{}}))};return window.addEventListener("scroll",t,{passive:!0}),()=>{window.removeEventListener("scroll",t),e&&cancelAnimationFrame(e)}},[]),(0,p.useEffect)(()=>{let i=!1;try{i="1"===sessionStorage.getItem(b),sessionStorage.removeItem(b)}catch{}if(i){let i=Number(sessionStorage.getItem(x(e))??"0"),s=Number.isFinite(i)?i:0;t?t.scrollTo(s,{immediate:!0,force:!0}):window.scrollTo(0,s);return}t?.scrollTo(0,{immediate:!0,force:!0}),document.getElementById("main-content")?.focus({preventScroll:!0})},[e,t]),null}let S="(prefers-reduced-motion: reduce)",E=e=>{let t=window.matchMedia(S);return t.addEventListener("change",e),()=>t.removeEventListener("change",e)},j=()=>window.matchMedia(S).matches;e.s(["default",0,function({children:e}){return(0,p.useSyncExternalStore)(E,j,()=>!1)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(y,{}),e]}):(0,t.jsxs)(v,{root:!0,options:{lerp:.18,autoRaf:!0,anchors:{offset:-88}},children:[(0,t.jsx)(y,{}),e]})}],47420)},8341,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s={cancelIdleCallback:function(){return o},requestIdleCallback:function(){return r}};for(var n in s)Object.defineProperty(i,n,{enumerable:!0,get:s[n]});let r="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},o="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),t.exports=i.default)},19083,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s={ESCAPE_REGEX:function(){return o},htmlEscapeAttributeString:function(){return h},htmlEscapeJsonString:function(){return c}};for(var n in s)Object.defineProperty(i,n,{enumerable:!0,get:s[n]});let r={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},o=/[&><\u2028\u2029]/g,l={"&":"&",'"':""","'":"'","<":"<",">":">"},a=/[&"'<>]/g;function c(e){return e.replace(o,e=>r[e])}function h(e){return e.replace(a,e=>l[e])}},79520,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s={default:function(){return x},handleClientScriptLoad:function(){return g},initScriptLoader:function(){return w}};for(var n in s)Object.defineProperty(i,n,{enumerable:!0,get:s[n]});let r=e.r(55682),o=e.r(90809),l=e.r(43476),a=r._(e.r(74080)),c=o._(e.r(71645)),h=e.r(42732),d=e.r(22737),u=e.r(8341),p=e.r(19083),m=new Map,f=new Set,v=e=>{let{src:t,id:i,onLoad:s=()=>{},onReady:n=null,dangerouslySetInnerHTML:r,children:o="",strategy:l="afterInteractive",onError:c,stylesheets:h}=e,u=i||t;if(u&&f.has(u))return;if(m.has(t)){f.add(u),m.get(t).then(s,c);return}let p=()=>{n&&n(),f.add(u)},v=document.createElement("script"),g=new Promise((e,t)=>
1{v.addEventListener("load",function(t){e(),s&&s.call(this,t),p()}),v.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});r?(v.innerHTML=r.__html||"",p()):o?(v.textContent="string"==typeof o?o:Array.isArray(o)?o.join(""):"",p()):t&&(v.src=t,m.set(t,g)),(0,d.setAttributesFromProps)(v,e),"worker"===l&&v.setAttribute("type","text/partytown"),v.setAttribute("data-nscript",l),h&&(e=>{if(a.default.preinit)return e.forEach(e=>{a.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let i=document.createElement("link");i.type="text/css",i.rel="stylesheet",i.href=e,t.appendChild(i)})}})(h),document.body.appendChild(v)};function g(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>v(e))}):v(e)}function w(e){e.forEach(g),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");f.add(t)})}function b(e){let{id:t,src:i="",onLoad:s=()=>{},onReady:n=null,strategy:r="afterInteractive",onError:o,stylesheets:d,...m}=e,{updateScripts:g,scripts:w,getIsSsr:b,appDir:x,nonce:y}=(0,c.useContext)(h.HeadManagerContext);y=m.nonce||y;let S=(0,c.useRef)(!1);(0,c.useEffect)(()=>{let e=t||i;S.current||(n&&e&&f.has(e)&&n(),S.current=!0)},[n,t,i]);let E=(0,c.useRef)(!1);if((0,c.useEffect)(()=>{if(!E.current){if("afterInteractive"===r)v(e);else"lazyOnload"===r&&("complete"===document.readyState?(0,u.requestIdleCallback)(()=>v(e)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>v(e))}));E.current=!0}},[e,r]),("beforeInteractive"===r||"worker"===r)&&(g?(w[r]=(w[r]||[]).concat([{id:t,src:i,onLoad:s,onReady:n,onError:o,...m,nonce:y}]),g(w)):b&&b()?f.add(t||i):b&&!b()&&v({...e,nonce:y})),x){if(d&&d.forEach(e=>{a.default.preinit(e,{as:"style"})}),"beforeInteractive"===r)if(!i)return m.dangerouslySetInnerHTML&&(m.children=m.dangerouslySetInnerHTML.__html,delete m.dangerouslySetInnerHTML),(0,l.jsx)("script",{nonce:y,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,p.htmlEscapeJsonString)(JSON.stringify([0,{...m,id:t}]))})`}});else return a.default.preload(i,m.integrity?{as:"script",integrity:m.integrity,nonce:y,crossOrigin:m.crossOrigin}:{as:"script",nonce:y,crossOrigin:m.crossOrigin}),(0,l.jsx)("script",{nonce:y,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,p.htmlEscapeJsonString)(JSON.stringify([i,{...m,id:t}]))})`}});"afterInteractive"===r&&i&&a.default.preload(i,m.integrity?{as:"script",integrity:m.integrity,nonce:y,crossOrigin:m.crossOrigin}:{as:"script",nonce:y,crossOrigin:m.crossOrigin})}return null}Object.defineProperty(b,"__nextScript",{value:!0});let x=b;("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),t.exports=i.default)}]);
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.