{"version":3,"file":"shared-lib.DFIsJ49i.mjs","names":["useLayoutEffect","useEffect","__esmMin","le","init_ssg_sandbox_shims","init_npm_react_18_3_1","ce","init_jsx_runtime","c","window","init_framer_DKgW_P28","RenderTarget","addPropertyControls","ControlType","pageTransitionActive","fadeHeaderWithPage","name","header","vtNames","style","VT_STYLE_ID","css","n","HDR_FADE","parseColor","m","s","a","luminance","f","x","v","surfaceIsLight","stack","y","i","el","skip","cs","mr","tag","picture","r","minSize","threshold","bodyC","htmlC","pageBackgroundIsLight","layoutSurfaces","out","all","maxY","findHeader","fixedAncestor","node","p","found","h","spritePaint","raw","icon","iconIsLight","uses","svg","resolved","own","ref","target","shapes","SHAPES","j","paints","k","tagLightElements","texts","root","t","paths","icons","light","innerBar","menuIsOpen","inner","rect","maxHeight","barIsClear","barBlur","setBarBlur","value","BLUR_VAR","BLUR_ATTR","barClip","o","top","bottom","setClip","CLIP_VAR","CLIP_ATTR","setDim","on","DIM_ATTR","DIM_VAR","color","HeaderTheme","props","onCanvas","useIsoLayoutEffect","html","STYLE_ID","minViewportWidth","ATTR","duration","OPEN_ATTR","CLASS","backing","blur","textColor","ICON_DIM","darkBacking","INSTANT_ATTR","dimC","dimOn","watched","frame","followFrame","followUntil","barHeight","handOffUntil","grew","ro","changed","mo","watch","handOff","w","clip","rest","check","open","maxHeaderHeight","clampY","clampX","midY","box","textPoints","lightBits","barPoints","surfaces","lightAt","sf","anyTextOnLight","dark","useLight","dim","schedule","follow","before","now","first","instantFrame","timer","init_HeaderTheme"],"sources":["https:/framerusercontent.com/modules/Hr7wOksadmvGS7ckbc5B/IgK0H70uESvCi1sUFCXZ/HeaderTheme.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useLayoutEffect}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";const CLASS=\"vd-header-on-light\";const ATTR=\"data-vd-header\";const STYLE_ID=\"vd-header-theme-style\";const BLUR_ATTR=\"data-vd-blur\";const BLUR_VAR=\"--vd-bar-blur\";const CLIP_ATTR=\"data-vd-clip\";const CLIP_VAR=\"--vd-bar-clip\";const OPEN_ATTR=\"data-vd-open\";const DIM_ATTR=\"data-vd-dim\";const DIM_VAR=\"--vd-dim-bg\";const INSTANT_ATTR=\"data-vd-instant\";const VT_STYLE_ID=\"vd-header-vt-style\";const SHAPES=\"path, circle, rect, polygon, ellipse, line, polyline\";// brightness(0.15) turns the cream icons (#FFFBF7) into roughly the dark text\n// color, since a filter can't set an exact color.\nconst ICON_DIM=.15;// Runs before paint, so a new page is themed before its first frame shows.\nconst useIsoLayoutEffect=typeof window!==\"undefined\"?useLayoutEffect:useEffect;// Is a page transition (the browser's View Transitions) running? While one is,\n// the page is drawn from snapshots and \"what is at this point\" can come back\n// empty, so what sits under the header can't be read reliably.\nfunction pageTransitionActive(){try{return document.documentElement.matches(\":active-view-transition\");}catch(e){return false;}}// Framer keeps the header out of the page fade by drawing BOTH its old picture\n// and its new state at full strength for the whole transition. They normally\n// look the same, but when the old picture is the open mobile menu it hangs\n// over the new page until the fade ends, and a light bar stays on a dark page\n// (or the reverse) and then snaps. So the old picture fades out and the new\n// state fades in, in step with the page: the site's page effect is a fade\n// that does most of its change in about 0.4 s after a 0.1 s pause. The name\n// is read from the header itself (each layout template has its own) and\n// remembered, so the picture of the header being left is covered too.\nconst HDR_FADE=\"0.45s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s\";const vtNames=[];function fadeHeaderWithPage(header){let name=\"\";try{name=window.getComputedStyle(header).getPropertyValue(\"view-transition-name\").trim();}catch(e){}if(!name||name===\"none\"||!/^[\\w-]+$/.test(name))return;if(vtNames.indexOf(name)<0)vtNames.push(name);let style=document.getElementById(VT_STYLE_ID);if(!style){style=document.createElement(\"style\");style.id=VT_STYLE_ID;document.head.appendChild(style);}const css=\"@keyframes vd-hdr-out { from { opacity: 1 } to { opacity: 0 } }\\n\"+\"@keyframes vd-hdr-in { from { opacity: 0 } to { opacity: 1 } }\\n\"+vtNames.map(n=>`::view-transition-old(${n}) { animation: vd-hdr-out ${HDR_FADE} both !important; }\n`+`::view-transition-new(${n}) { animation: vd-hdr-in ${HDR_FADE} both !important; }`).join(\"\\n\");if(style.textContent!==css)style.textContent=css;}function parseColor(s){const m=(s||\"\").match(/rgba?\\(\\s*([\\d.]+)[\\s,]+([\\d.]+)[\\s,]+([\\d.]+)(?:[\\s,/]+([\\d.]+%?))?\\s*\\)/i);if(!m)return null;let a=1;if(m[4]!==undefined)a=m[4].endsWith(\"%\")?parseFloat(m[4])/100:parseFloat(m[4]);return{r:+m[1],g:+m[2],b:+m[3],a};}function luminance(c){const f=v=>{const x=v/255;return x<=.03928?x/12.92:Math.pow((x+.055)/1.055,2.4);};return .2126*f(c.r)+.7152*f(c.g)+.0722*f(c.b);}// Is the surface under this point light? Looks through everything drawn at\n// the point, top first and skipping the header, until something paints a real\n// background. Pictures and video count as dark, even when they are a separate\n// layer behind the text rather than one of its parents (like a hero video).\n// Things smaller than minSize either way (a logo chip in a moving strip, a\n// button) sit on the surface rather than being it, so they are looked past.\nfunction surfaceIsLight(x,y,skip,threshold,minSize){const stack=document.elementsFromPoint(x,y);for(let i=0;i<stack.length;i++){const el=stack[i];if(skip.contains(el))continue;if(el===document.body||el===document.documentElement)break;const cs=window.getComputedStyle(el);if(cs.visibility===\"hidden\"||cs.opacity===\"0\")continue;// the gold fade under a Features page opening: light from its middle down\nif(el.hasAttribute&&el.hasAttribute(\"data-vd-melt\")){const mr=el.getBoundingClientRect();return(y-mr.top)/Math.max(1,mr.height)>.5;}const tag=el.tagName;const picture=tag===\"IMG\"||tag===\"VIDEO\"||tag===\"CANVAS\"||tag===\"PICTURE\"||!!cs.backgroundImage&&cs.backgroundImage!==\"none\";const c=picture?null:parseColor(cs.backgroundColor);if(!picture&&!(c&&c.a>=.5))continue;const r=el.getBoundingClientRect();if(r.width<minSize||r.height<minSize)continue;return c?luminance(c)>threshold:false;}// Nothing painted was found here. Mid page-transition that means the page\n// is being drawn from snapshots, not that the header sits on the bare page\n// background: say \"don't know\" (the caller then reads the page's layout).\nif(pageTransitionActive())return null;const bodyC=parseColor(window.getComputedStyle(document.body).backgroundColor);if(bodyC&&bodyC.a>=.5)return luminance(bodyC)>threshold;const htmlC=parseColor(window.getComputedStyle(document.documentElement).backgroundColor);if(htmlC&&htmlC.a>=.5)return luminance(htmlC)>threshold;return true;}// The page's own background, for a spot nothing else paints.\nfunction pageBackgroundIsLight(threshold){const bodyC=parseColor(window.getComputedStyle(document.body).backgroundColor);if(bodyC&&bodyC.a>=.5)return luminance(bodyC)>threshold;const htmlC=parseColor(window.getComputedStyle(document.documentElement).backgroundColor);if(htmlC&&htmlC.a>=.5)return luminance(htmlC)>threshold;return true;}// Everything that paints a real surface across the top band of the page,\n// last-drawn first, worked out from the page's layout alone. Used only while\n// a page transition is running, when the browser can't say what is at a\n// point. Later elements are taken to be on top; stacking order is ignored,\n// which is right for what a header sits on: page sections, hero pictures and\n// videos.\nfunction layoutSurfaces(skip,threshold,minSize,maxY){const out=[];const all=document.body.getElementsByTagName(\"*\");for(let i=all.length-1;i>=0;i--){const el=all[i];const r=el.getBoundingClientRect();if(r.bottom<0||r.top>maxY)continue;if(r.width<minSize||r.height<minSize)continue;if(skip.contains(el))continue;const cs=window.getComputedStyle(el);if(cs.visibility===\"hidden\"||cs.display===\"none\")continue;if(el.hasAttribute(\"data-vd-melt\")){out.push({r,light:false,melt:true});continue;}const tag=el.tagName;const picture=tag===\"IMG\"||tag===\"VIDEO\"||tag===\"CANVAS\"||tag===\"PICTURE\"||!!cs.backgroundImage&&cs.backgroundImage!==\"none\";const c=picture?null:parseColor(cs.backgroundColor);if(!picture&&!(c&&c.a>=.5))continue;out.push({r,light:c?luminance(c)>threshold:false,melt:false});}return out;}function findHeader(){const fixedAncestor=node=>{let el=node;while(el&&el!==document.body){const p=window.getComputedStyle(el).position;if(p===\"fixed\"||p===\"sticky\")return el;el=el.parentElement;}return null;};const hit=document.elementFromPoint(Math.floor(window.innerWidth/2),8);let found=fixedAncestor(hit);if(!found){const h=document.querySelector(\"header\");found=fixedAncestor(h)||h;}return found;}// The color a sprite shape's fill or stroke attribute draws with inside this\n// icon. Sprite shapes usually take it from a variable that only the icon sets\n// (stroke=\"var(--x, black)\"), so the variable is read from the icon.\nfunction spritePaint(raw,icon){if(!raw)return null;if(/^\\s*currentcolor\\s*$/i.test(raw))return parseColor(window.getComputedStyle(icon).color);const m=raw.match(/^\\s*var\\(\\s*(--[\\w-]+)\\s*(?:,\\s*(.*))?\\)\\s*$/);if(!m)return parseColor(raw);const v=window.getComputedStyle(icon).getPropertyValue(m[1]).trim();return parseColor(v||m[2]||\"\");}// Is this icon drawn in a light color? Framer draws most icons from a shared\n// SVG sprite (<use href=\"#...\">), so the color sits on the shapes the icon\n// points to, outside the header. Null means the sprite isn't there yet.\nfunction iconIsLight(svg){const uses=svg.querySelectorAll(\"use\");let resolved=false;for(let i=0;i<uses.length;i++){const own=parseColor(window.getComputedStyle(uses[i]).fill);if(own&&own.a>0&&luminance(own)>.5)return true;const ref=uses[i].getAttribute(\"href\")||uses[i].getAttribute(\"xlink:href\");if(!ref||ref.charAt(0)!==\"#\")continue;const target=document.getElementById(ref.slice(1));if(!target)continue;resolved=true;const shapes=target.querySelectorAll(SHAPES);for(let j=0;j<shapes.length;j++){const cs=window.getComputedStyle(shapes[j]);const paints=[spritePaint(shapes[j].getAttribute(\"fill\"),svg),spritePaint(shapes[j].getAttribute(\"stroke\"),svg),parseColor(cs.fill),parseColor(cs.stroke)];for(let k=0;k<paints.length;k++){const p=paints[k];if(p&&p.a>0&&luminance(p)>.5)return true;}}}return resolved?false:null;}// Remember which header texts and icons are light by design, so only those\n// get recolored. Anything that is already dark (like the button label or a\n// dropdown) is left alone.\nfunction tagLightElements(root){const texts=root.querySelectorAll(\".framer-text\");for(let i=0;i<texts.length;i++){const t=texts[i];if(t.hasAttribute(\"data-vd-text\"))continue;const c=parseColor(window.getComputedStyle(t).color);t.setAttribute(\"data-vd-text\",c&&luminance(c)>.5?\"light\":\"dark\");}const paths=root.querySelectorAll(\"svg path, svg circle, svg rect, svg polygon\");for(let i=0;i<paths.length;i++){const p=paths[i];if(p.hasAttribute(\"data-vd-fill\"))continue;const c=parseColor(window.getComputedStyle(p).fill);p.setAttribute(\"data-vd-fill\",c&&luminance(c)>.5?\"light\":\"dark\");}const icons=root.querySelectorAll(\"svg\");for(let i=0;i<icons.length;i++){const s=icons[i];if(s.hasAttribute(\"data-vd-icon\"))continue;if(!s.querySelector(\"use\")){s.setAttribute(\"data-vd-icon\",\"inline\");continue;}const light=iconIsLight(s);if(light===null)continue;s.setAttribute(\"data-vd-icon\",light?\"light\":\"dark\");}}// The header element inside the fixed wrapper, the one that paints the bar.\n// Framer can leave hidden copies for other breakpoints in the page, so the\n// first one that takes up space wins.\nfunction innerBar(header){if(header.tagName===\"HEADER\")return header;const all=header.querySelectorAll(\"header\");for(let i=0;i<all.length;i++){const h=all[i];if(h.offsetWidth>0||h.offsetHeight>0)return h;}return all[0]||null;}// The mobile menu is open when the header's variant says so, or when the\n// header is taller than a closed bar. offsetHeight is the final height even\n// while Framer is still animating the menu open.\nfunction menuIsOpen(header,rect,maxHeight){const inner=innerBar(header);const name=inner&&inner.getAttribute(\"data-framer-name\")||\"\";if(/\\bopen\\b/i.test(name))return true;return Math.max(header.offsetHeight||0,rect.height)>maxHeight;}// Is the bar see-through, like the transparent bar over the hero? Read from\n// the variant's name, because right after a switch the bar's color is still\n// fading; a bar without a name is judged by its color.\nfunction barIsClear(header){const inner=innerBar(header);if(!inner)return false;const name=inner.getAttribute(\"data-framer-name\");if(name)return/transparent/i.test(name);const c=parseColor(window.getComputedStyle(inner).backgroundColor);return!c||c.a<.5;}// The blur the bar's variant asks for (the open mobile menu has one), or \"\"\n// for none. Framer gives the fixed wrapper a view-transition-name so the\n// header stays put during page transitions, and in Chrome that makes the\n// wrapper the backdrop root for everything inside it: the menu's blur only\n// sees the wrapper's own empty layer, so the page shows through it sharp. The\n// same blur set on the wrapper itself does reach the page, and the wrapper is\n// exactly the bar's size, so the blur is copied there. Sizes are layout sizes:\n// Framer grows the menu with a scale transform, so its on-screen box only\n// matches the wrapper once the animation ends.\nfunction barBlur(header){const inner=innerBar(header);if(!inner||inner===header)return\"\";const cs=window.getComputedStyle(inner);const v=cs.getPropertyValue(\"backdrop-filter\")||cs.getPropertyValue(\"-webkit-backdrop-filter\");if(!v||v===\"none\"||/^blur\\(0(px)?\\)$/.test(v))return\"\";if(Math.abs(header.offsetWidth-inner.offsetWidth)>2||Math.abs(header.offsetHeight-inner.offsetHeight)>2)return\"\";return v;}function setBarBlur(header,value){if(value){if(header.style.getPropertyValue(BLUR_VAR)!==value)header.style.setProperty(BLUR_VAR,value);if(!header.hasAttribute(BLUR_ATTR))header.setAttribute(BLUR_ATTR,\"\");}else if(header.hasAttribute(BLUR_ATTR)){header.removeAttribute(BLUR_ATTR);header.style.removeProperty(BLUR_VAR);}}// While Framer grows the mobile menu open, the wrapper already has the menu's\n// full size but the menu is still a short strip at the top (it is scaled up\n// into place). The wrapper paints the backing and the blur, which would wash\n// over the page below that strip, so until the menu is in place the wrapper is\n// clipped to the part the menu covers.\nfunction barClip(header){const inner=innerBar(header);if(!inner||inner===header)return\"\";const r=inner.getBoundingClientRect();if(r.height>=inner.offsetHeight-1)return\"\";const o=header.getBoundingClientRect();const top=Math.round(Math.max(0,r.top-o.top)*10)/10;const bottom=Math.round(Math.max(0,o.bottom-r.bottom)*10)/10;if(top===0&&bottom===0)return\"\";return`inset(${top}px 0 ${bottom}px 0)`;}function setClip(header,value){if(value){if(header.style.getPropertyValue(CLIP_VAR)!==value)header.style.setProperty(CLIP_VAR,value);if(!header.hasAttribute(CLIP_ATTR))header.setAttribute(CLIP_ATTR,\"\");}else if(header.hasAttribute(CLIP_ATTR)){header.removeAttribute(CLIP_ATTR);header.style.removeProperty(CLIP_VAR);}}// The dark backing: on, in its own color or in the one given (while it is\n// handed over to the opening menu), or off.\nfunction setDim(header,on,color=\"\"){if(on){if(!header.hasAttribute(DIM_ATTR))header.setAttribute(DIM_ATTR,\"\");if(header.style.getPropertyValue(DIM_VAR)===color)return;if(color)header.style.setProperty(DIM_VAR,color);else header.style.removeProperty(DIM_VAR);}else if(header.hasAttribute(DIM_ATTR)){header.removeAttribute(DIM_ATTR);header.style.removeProperty(DIM_VAR);}}/**\n * Header Theme: an invisible helper that watches what is behind the fixed\n * site header while the page scrolls. As soon as any of the header's light\n * text or icons would sit over a light background, the header gets dark text\n * and a soft backing (replacing any solid bar the variant paints); over dark\n * backgrounds it is left as designed, except that a see-through bar gets a\n * dark backing once the page scrolls under it, so the content passing beneath\n * doesn't run into the header's text. The open mobile menu keeps its colors;\n * only its blur is moved onto the fixed wrapper so that it shows (barBlur),\n * while the menu grows open the wrapper is clipped to it (barClip), and a\n * dark backing it opens from is handed over to it (handOff).\n * Put one instance on each page.\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n * @framerIntrinsicWidth 1\n * @framerIntrinsicHeight 1\n */export default function HeaderTheme(props){const{textColor=\"#26221D\",backing=\"rgba(247, 243, 238, 0.85)\",darkBacking=\"rgba(38, 34, 29, 0.75)\",blur=10,minViewportWidth=0,duration=.25,maxHeaderHeight=160,threshold=.5}=props;const onCanvas=RenderTarget.current()===RenderTarget.canvas;useIsoLayoutEffect(()=>{if(onCanvas||typeof window===\"undefined\")return;const html=document.documentElement;let style=document.getElementById(STYLE_ID);if(!style){style=document.createElement(\"style\");style.id=STYLE_ID;document.head.appendChild(style);}style.textContent=[`@media (min-width: ${minViewportWidth}px) {`,`  [${ATTR}] { transition: background-color ${duration}s ease, backdrop-filter ${duration}s ease, -webkit-backdrop-filter ${duration}s ease; }`,// Only the color: Framer animates the bar's own blur itself.\n`  [${ATTR}] header { transition: background-color ${duration}s ease; }`,`  [${ATTR}] [data-vd-text=\"light\"] { transition: color ${duration}s ease; }`,`  [${ATTR}] [data-vd-fill=\"light\"] { transition: fill ${duration}s ease; }`,`  [${ATTR}] [data-vd-icon=\"light\"] { transition: filter ${duration}s ease; }`,// While the menu is open Framer animates the bar itself, and the\n// fades would trail behind it (a washed-out menu as it opens).\n`  [${ATTR}][${OPEN_ATTR}], [${ATTR}][${OPEN_ATTR}] header, [${ATTR}][${OPEN_ATTR}] [data-vd-text=\"light\"], [${ATTR}][${OPEN_ATTR}] [data-vd-fill=\"light\"], [${ATTR}][${OPEN_ATTR}] [data-vd-icon=\"light\"] { transition: none; }`,`  html.${CLASS} [${ATTR}] { background-color: ${backing} !important; backdrop-filter: blur(${blur}px); -webkit-backdrop-filter: blur(${blur}px); }`,`  html.${CLASS} [${ATTR}] header, html.${CLASS} header[${ATTR}] { background-color: transparent !important; }`,`  html.${CLASS} header[${ATTR}] { background-color: ${backing} !important; }`,`  html.${CLASS} [${ATTR}] [data-vd-text=\"light\"] { color: ${textColor} !important; --framer-text-color: ${textColor} !important; }`,`  html.${CLASS} [${ATTR}] [data-vd-fill=\"light\"] { fill: ${textColor} !important; }`,`  html.${CLASS} [${ATTR}] [data-vd-icon=\"light\"] { filter: brightness(${ICON_DIM}) !important; }`,`  [${ATTR}][${DIM_ATTR}] { background-color: var(${DIM_VAR}, ${darkBacking}) !important; backdrop-filter: blur(${blur}px); -webkit-backdrop-filter: blur(${blur}px); }`,`}`,`[${ATTR}][${INSTANT_ATTR}], [${ATTR}][${INSTANT_ATTR}] header, [${ATTR}][${INSTANT_ATTR}] [data-vd-text=\"light\"], [${ATTR}][${INSTANT_ATTR}] [data-vd-fill=\"light\"], [${ATTR}][${INSTANT_ATTR}] [data-vd-icon=\"light\"] { transition: none !important; }`,`[${ATTR}][${BLUR_ATTR}] { backdrop-filter: var(${BLUR_VAR}); -webkit-backdrop-filter: var(${BLUR_VAR}); }`,`[${ATTR}][${CLIP_ATTR}] { clip-path: var(${CLIP_VAR}); }`].join(\"\\n\");const dimC=parseColor(darkBacking);const dimOn=!dimC||dimC.a>0;let header=null;let watched=null;let frame=0;let followFrame=0;let followUntil=0;let barHeight=0;let handOffUntil=0;let grew=false;// React as soon as the header changes size or variant (the mobile\n// menu opening or closing), before the next frame is painted.\nconst ro=typeof ResizeObserver!==\"undefined\"?new ResizeObserver(()=>changed()):null;const mo=typeof MutationObserver!==\"undefined\"?new MutationObserver(()=>changed()):null;const watch=el=>{if(el===watched)return;watched=el;if(ro){ro.disconnect();ro.observe(el);}if(mo){mo.disconnect();mo.observe(el,{subtree:true,childList:true,attributes:true,attributeFilter:[\"data-framer-name\"]});}};// The menu's own color fades in from clear, so when it opens from the\n// dark backing, the backing stays and fades out as the menu darkens\n// (the bar never gets lighter in between). Meanwhile it is kept to the\n// menu: to the bar's height until the menu starts to grow, then to its\n// box, since the wrapper takes the open menu's full size at once.\nconst handOff=h=>{if(!dimC||!h.hasAttribute(DIM_ATTR))return false;if(performance.now()>handOffUntil)return false;const inner=innerBar(h);const c=inner&&parseColor(window.getComputedStyle(inner).backgroundColor);const a=c?c.a:1;if(a>=dimC.a)return false;const w=Math.round((1-(1-dimC.a)/(1-a))*1e3)/1e3;setDim(h,true,`rgba(${dimC.r}, ${dimC.g}, ${dimC.b}, ${w})`);const clip=barClip(h);if(clip)grew=true;const rest=Math.max(0,h.offsetHeight-barHeight);setClip(h,clip||(!grew&&barHeight>0&&rest>0?`inset(0px 0px ${rest}px 0px)`:\"\"));return true;};const check=()=>{if(frame)cancelAnimationFrame(frame);frame=0;if(!header||!header.isConnected){header=findHeader();if(!header)return;header.setAttribute(ATTR,\"\");}fadeHeaderWithPage(header);watch(header);tagLightElements(header);const rect=header.getBoundingClientRect();const open=menuIsOpen(header,rect,maxHeaderHeight);if(open!==header.hasAttribute(OPEN_ATTR)){header.toggleAttribute(OPEN_ATTR,open);if(open){handOffUntil=performance.now()+1e3;grew=false;}}if(!open&&rect.height>0)barHeight=rect.height;if(window.innerWidth<minViewportWidth||rect.height===0||open){html.classList.remove(CLASS);if(!(open&&handOff(header)))setDim(header,false);setBarBlur(header,header.hasAttribute(DIM_ATTR)?\"\":barBlur(header));return;}const clampY=v=>Math.max(1,Math.min(window.innerHeight-1,v));const clampX=v=>Math.max(1,Math.min(window.innerWidth-1,v));const midY=clampY(rect.top+rect.height/2);const box=header;// Only something at least as tall as the bar counts as what the\n// bar sits on.\nconst minSize=rect.height;// Points under the header's own light text and icons (logo,\n// links, menu button)...\nconst textPoints=[];const lightBits=header.querySelectorAll('[data-vd-text=\"light\"], [data-vd-fill=\"light\"], [data-vd-icon=\"light\"]');for(let i=0;i<lightBits.length&&textPoints.length<16;i++){const r=lightBits[i].getBoundingClientRect();if(r.width<2||r.height<2)continue;textPoints.push([clampX(r.left+r.width/2),clampY(r.top+r.height/2)]);}// ...plus three fixed points across the bar.\nconst barPoints=[.15,.5,.85].map(f=>[clampX(rect.left+rect.width*f),midY]);// Is the surface at a point light? Normally the browser says what\n// is there. Mid page-transition it answers with nothing (the page\n// is drawn from snapshots), which used to read as \"light\" and\n// flashed the light bar over dark pages; then the answer is read\n// from the new page's own layout instead.\nlet surfaces=null;const lightAt=(x,y)=>{const r=surfaceIsLight(x,y,box,threshold,minSize);if(r!==null)return r;if(!surfaces)surfaces=layoutSurfaces(box,threshold,minSize,rect.bottom+1);for(let i=0;i<surfaces.length;i++){const sf=surfaces[i];if(x<sf.r.left||x>sf.r.right||y<sf.r.top||y>sf.r.bottom)continue;return sf.melt?(y-sf.r.top)/Math.max(1,sf.r.height)>.5:sf.light;}return pageBackgroundIsLight(threshold);};let anyTextOnLight=false;let light=0;let dark=0;for(let i=0;i<textPoints.length;i++){const[x,y]=textPoints[i];if(lightAt(x,y)){anyTextOnLight=true;break;}}if(!anyTextOnLight){for(let i=0;i<barPoints.length;i++){const[x,y]=barPoints[i];if(lightAt(x,y))light++;else dark++;}}const useLight=anyTextOnLight||textPoints.length===0&&light>dark;if(useLight)html.classList.add(CLASS);else html.classList.remove(CLASS);// Over dark, once the page has moved under a see-through bar, the\n// bar gets the dark backing (at the very top it stays clear).\nconst dim=dimOn&&!useLight&&window.scrollY>2&&barIsClear(header);setDim(header,dim);// Either backing brings its own blur.\nsetBarBlur(header,useLight||dim?\"\":barBlur(header));};const schedule=()=>{if(!frame)frame=requestAnimationFrame(check);};// Framer animates a variant change for a few hundred milliseconds\n// (the bar's blur, and the menu's height as a scale), so for a short\n// while, and for as long as either keeps moving, the wrapper's copy of\n// the blur and its clip are refreshed every frame.\nconst follow=()=>{followFrame=0;if(!header||!header.isConnected)return;const before=header.style.getPropertyValue(BLUR_VAR)+header.style.getPropertyValue(CLIP_VAR)+header.style.getPropertyValue(DIM_VAR);const open=header.hasAttribute(OPEN_ATTR);if(!(open&&handOff(header))){if(open)setDim(header,false);setClip(header,barClip(header));}setBarBlur(header,html.classList.contains(CLASS)||header.hasAttribute(DIM_ATTR)?\"\":barBlur(header));const now=performance.now();const after=header.style.getPropertyValue(BLUR_VAR)+header.style.getPropertyValue(CLIP_VAR)+header.style.getPropertyValue(DIM_VAR);if(after!==before)followUntil=Math.max(followUntil,now+300);if(now<followUntil)followFrame=requestAnimationFrame(follow);};const changed=()=>{check();// While the backing is being handed over, handOff sets the clip.\nif(header&&!(header.hasAttribute(OPEN_ATTR)&&header.hasAttribute(DIM_ATTR)))setClip(header,barClip(header));followUntil=Math.max(followUntil,performance.now()+600);if(!followFrame)followFrame=requestAnimationFrame(follow);};// A new page gets its first theme at once instead of fading in.\nconst first=findHeader();if(first)first.setAttribute(INSTANT_ATTR,\"\");check();let instantFrame=requestAnimationFrame(()=>{instantFrame=requestAnimationFrame(()=>{instantFrame=0;if(first)first.removeAttribute(INSTANT_ATTR);});});window.addEventListener(\"scroll\",schedule,{passive:true});window.addEventListener(\"resize\",schedule);document.addEventListener(\"scroll\",schedule,{passive:true,capture:true});const timer=window.setInterval(check,400);return()=>{window.removeEventListener(\"scroll\",schedule);window.removeEventListener(\"resize\",schedule);document.removeEventListener(\"scroll\",schedule,{capture:true});clearInterval(timer);if(frame)cancelAnimationFrame(frame);if(followFrame)cancelAnimationFrame(followFrame);if(ro)ro.disconnect();if(mo)mo.disconnect();if(instantFrame)cancelAnimationFrame(instantFrame);if(first)first.removeAttribute(INSTANT_ATTR);// The header keeps its look: the next page takes it over, and\n// resetting it here flashed the raw dark bar between pages.\n};},[onCanvas,textColor,backing,darkBacking,blur,minViewportWidth,duration,maxHeaderHeight,threshold]);return /*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{width:1,height:1,opacity:0,pointerEvents:\"none\",background:onCanvas?\"rgba(201, 154, 62, 0.5)\":\"transparent\"}});}addPropertyControls(HeaderTheme,{textColor:{type:ControlType.Color,title:\"Dark text\",defaultValue:\"#26221D\"},backing:{type:ControlType.Color,title:\"Light backing\",defaultValue:\"rgba(247, 243, 238, 0.85)\"},darkBacking:{type:ControlType.Color,title:\"Dark backing\",defaultValue:\"rgba(38, 34, 29, 0.75)\",description:\"Behind a see-through bar once the page scrolls over dark sections. Fully transparent turns it off.\"},blur:{type:ControlType.Number,title:\"Blur\",defaultValue:10,min:0,max:40,unit:\"px\"},// Not named minWidth: instances placed before Oct 9 stored 810 under that\n// name, which kept phones from ever switching.\nminViewportWidth:{type:ControlType.Number,title:\"Min width\",defaultValue:0,min:0,max:2e3,unit:\"px\",description:\"Below this screen width the header is left alone. 0 switches at every width; the open mobile menu always keeps its colors.\"},duration:{type:ControlType.Number,title:\"Fade\",defaultValue:.25,min:0,max:2,step:.05,unit:\"s\"},maxHeaderHeight:{type:ControlType.Number,title:\"Menu height\",defaultValue:160,min:60,max:1e3,unit:\"px\",description:\"When the header is taller than this the menu is open and the switch is skipped.\"},threshold:{type:ControlType.Number,title:\"Light cutoff\",defaultValue:.5,min:0,max:1,step:.05}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HeaderTheme\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"1\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicWidth\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata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