{"version":3,"file":"LazyMount.DMeffsJa.mjs","names":["useState","React","useRef","useState","useLayoutEffect","useEffect","__esmMin","de","init_ssg_sandbox_shims","ce","window","_e","init_jsx_runtime","le","init_npm_react_18_3_1","c","e","motion","init_framer_motion_DhsWWWsN","addPropertyControls","init_framer_Duogf4LG","RenderTarget","ControlType","BestNumberCounter","props","count","setCount","startNumber","isVisible","setIsVisible","ref","totalSteps","duration","increment","endNumber","observer","entry","entries","intervalId","nextValue","prevCount","loop","formatCount","roundedNumber","number","decimalPlaces","decimalSeparator","NumberCounterStyles","fontSize","font","fontColor","prefix","suffix","init_BestNumberCounter","centringOffset","el","travelLeft","m","cx","cy","sx","sy","heroMark","stage","host","whenMarkLands","raf","near","lastTravel","lastChangeAt","t0","tick","mark","travel","now","LAND_PX","LAND_FRAMES","LAND_STUCK_MS","LAND_TIMEOUT_MS","done","withLazyMount","mounted","setMounted","rect","MARGIN_PX","Component","warmHeroSlideVideos","slideVideosWarmed","probe","canPrefetch","url","HERO_SLIDE_VIDEOS","link","r","firstUrl","values","v","posterAspect","w","h","posterSources","intrinsic","POSTER_WIDTHS","base","widths","srcSet","mid","POSTER_SIZES","withDeferredVideo","started","setStarted","isCanvas","posterImgRef","videoPoster","setVideoPoster","hostRef","useClientLayoutEffect","heroSlidesShown","cancel","REVEAL_FADE_MS","idleId","timerId","loadListening","go","schedule","posterUrl","poster","posterMid","chosen","fit","radius","playing","ratio","EDGE_CLIP","FETCH_PRIORITY_HIGH","init_LazyMount"],"sources":["https:/framerusercontent.com/modules/ZOYHZZrFw3ywrPPhpfuD/u6iHEWtbJGxKHfkTizlt/BestNumberCounter.js","https:/framerusercontent.com/modules/GkMEWbb0HehOSbEFnhEr/BBSHQ522sYHqiMoFKL2K/LazyMount.js"],"sourcesContent":["import{jsxs as _jsxs}from\"react/jsx-runtime\";import React,{useState,useEffect}from\"react\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";const NumberCounterStyles={display:\"flex\",justifyContent:\"left\",alignItems:\"left\"};export default function BestNumberCounter(props){const{startNumber,endNumber,duration,prefix,suffix,loop,decimalSeparator,decimalPlaces,fontSize,font,fontColor}=props;const[count,setCount]=useState(startNumber);const[isVisible,setIsVisible]=useState(false);const ref=React.useRef(null);// Total steps based on duration and frame rate\nconst totalSteps=60*duration// Assuming 60 updates per second\n;const increment=(endNumber-startNumber)/totalSteps// Increment per step\n;useEffect(()=>{const observer=new IntersectionObserver(entries=>{const entry=entries[0];setIsVisible(entry.isIntersecting);});if(ref.current){observer.observe(ref.current);}return()=>{if(ref.current){observer.unobserve(ref.current);}};},[]);useEffect(()=>{if(isVisible&&startNumber!==endNumber){const intervalId=setInterval(()=>{setCount(prevCount=>{const nextValue=prevCount+increment;// Check if we've reached or exceeded the end number\nif(increment>0&&nextValue>=endNumber||increment<0&&nextValue<=endNumber){if(loop){return startNumber;}else{clearInterval(intervalId);return endNumber;}}return nextValue;});},1e3/60)// 60 updates per second\n;return()=>{clearInterval(intervalId);};}},[count,startNumber,endNumber,loop,isVisible,increment]);const formatCount=number=>{// Round to specified decimal places\nconst roundedNumber=Number(number.toFixed(decimalPlaces));if(decimalSeparator===\"comma\"){return roundedNumber.toLocaleString(\"en-US\",{minimumFractionDigits:decimalPlaces,maximumFractionDigits:decimalPlaces});}else if(decimalSeparator===\"period\"){return roundedNumber.toLocaleString(\"en-US\",{minimumFractionDigits:decimalPlaces,maximumFractionDigits:decimalPlaces}).replace(/,/g,\".\");}else{return roundedNumber.toFixed(decimalPlaces);}};return /*#__PURE__*/_jsxs(motion.div,{ref:ref,style:{...NumberCounterStyles,gap:`${fontSize/2}px`,flexDirection:\"row\",alignItems:\"left\",fontSize:`${fontSize}px`,fontFamily:font.fontFamily,fontWeight:font.fontWeight,color:fontColor},children:[prefix,formatCount(count),suffix]});}BestNumberCounter.defaultProps={startNumber:0,endNumber:4.8,duration:5,prefix:\"\",suffix:\"\",loop:false,decimalSeparator:\"comma\",decimalPlaces:1,fontSize:16,font:{fontFamily:\"Arial\",fontWeight:400,systemFont:true},fontColor:\"#707070\"};addPropertyControls(BestNumberCounter,{font:{title:\"Font\",type:ControlType.Font,defaultValue:{fontFamily:\"Arial\",fontWeight:400,systemFont:true}},fontSize:{title:\"Font Size\",type:ControlType.Number,min:8,max:200,step:1},fontColor:{type:ControlType.Color,title:\"Font Color\"},startNumber:{type:ControlType.Number,title:\"Start Number\",defaultValue:0,displayStepper:true,step:.1},endNumber:{type:ControlType.Number,title:\"End Number\",defaultValue:4.8,displayStepper:true,step:.1},decimalPlaces:{type:ControlType.Number,title:\"Decimal Places\",defaultValue:1,min:0,max:5,step:1,displayStepper:true},decimalSeparator:{type:ControlType.Enum,title:\"Decimal Separator\",defaultValue:\"comma\",options:[\"comma\",\"period\",\"none\"],optionTitles:[\"Comma (1,000.0)\",\"Period (1.000,0)\",\"None\"]},duration:{type:ControlType.Number,title:\"Duration (s)\",defaultValue:5,min:.1,max:60,step:.1},prefix:{type:ControlType.String,title:\"Prefix\",defaultValue:\"\"},suffix:{type:ControlType.String,title:\"Suffix\",defaultValue:\"\"},loop:{type:ControlType.Boolean,title:\"Loop Animation\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BestNumberCounter\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BestNumberCounter.map","// LazyMount.tsx\n// Mounts the wrapped layer only when it is on screen or about to scroll into view.\n// Unlike LazyLoad.tsx it renders NOTHING on the server and during the first client\n// render, so heavy components (Lottie, WebGL, video) never start downloading their\n// runtime until they are needed. Hidden layers (display: none, zero size) count as\n// off-screen until they get a size.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useLayoutEffect,useRef,useState}from\"react\";import{RenderTarget}from\"framer\";const MARGIN_PX=300;// useLayoutEffect on the client (runs before paint), a no-op stand-in on the server.\nconst useClientLayoutEffect=typeof window!==\"undefined\"?useLayoutEffect:useEffect;// ─────────────────────────────────────────────────────────────────────────────\n// Hero: a slide's visual appears as the # lands.\n// The # mark (\"logo slot\" in the hero \"stage\") glides between slides with Framer's layout\n// animation (0.9 s). While it glides, its inline transform is the static centring\n// `translate(-50%, -50%)` plus a temporary scale/translate that shrinks to nothing as it lands.\n// Slide visuals (the five slide videos and the intro artwork) stay hidden until the # is within\n// LAND_PX of its resting place, then fade in around it during the last moments of its glide.\n// Before, a visual appeared as soon as its own frame stopped moving: on Operate (same frame as\n// Convert) and on the intro artwork that was immediately, while the # was still resizing over it.\n// ─────────────────────────────────────────────────────────────────────────────\nconst LAND_PX=8// travel left (px, summed over both axes) under which the # counts as landing\n;const LAND_FRAMES=2// …for this many consecutive frames\n;const LAND_STUCK_MS=300// travel left that stops changing counts as landed\n;const LAND_TIMEOUT_MS=1800// never wait longer than this\n;// Set once any slide video has mounted. Before that (the first page load) the intro artwork is\n// never held back, so the hero's first paint stays exactly as it is.\nlet heroSlidesShown=false;/** Static centring Framer applies to %-anchored layers, in px. */function centringOffset(el){const t=el.style.transform||\"\";if(/^translate\\(-50%,\\s*-50%\\)/.test(t))return[-el.offsetWidth/2,-el.offsetHeight/2];if(/^translateX\\(-50%\\)/.test(t))return[-el.offsetWidth/2,0];if(/^translateY\\(-50%\\)/.test(t))return[0,-el.offsetHeight/2];return[0,0];}/** How far (px) a layer still has to travel in its layout animation: translation beyond its\n *  static centring, plus how far its edges move as the remaining scale settles. */function travelLeft(el){if(!(el instanceof HTMLElement))return 0;const t=getComputedStyle(el).transform;if(!t||t===\"none\")return 0;try{const m=new DOMMatrixReadOnly(t);const[cx,cy]=centringOffset(el);const sx=Math.hypot(m.a,m.b);const sy=Math.hypot(m.c,m.d);return Math.abs(m.e-cx)+Math.abs(m.f-cy)+Math.abs(sx-1)*el.offsetWidth/2+Math.abs(sy-1)*el.offsetHeight/2;}catch{return 0;}}function heroMark(host){const stage=host.closest('[data-framer-name=\"stage\"]');return stage?stage.querySelector('[data-framer-name=\"logo slot\"]'):null;}/** Calls `done` once the hero's # has (almost) landed. Returns a cancel function. */function whenMarkLands(host,done){let raf=0;let near=0;let lastTravel=-1;let lastChangeAt=performance.now();const t0=lastChangeAt;const tick=()=>{raf=0;const mark=heroMark(host);const travel=mark?travelLeft(mark)+travelLeft(mark.firstElementChild):0;const now=performance.now();if(lastTravel<0||Math.abs(travel-lastTravel)>.05){lastTravel=travel;lastChangeAt=now;}near=travel<=LAND_PX?near+1:0;if(near>=LAND_FRAMES||now-lastChangeAt>LAND_STUCK_MS||now-t0>LAND_TIMEOUT_MS){done();return;}raf=requestAnimationFrame(tick);};raf=requestAnimationFrame(tick);return()=>{if(raf)cancelAnimationFrame(raf);};}// Hero videos sit at fractional pixel positions inside a Screen-blended group. Chrome composites the\n// video layer's antialiased outer row/column WITHOUT the blend, so the frame's black background leaks\n// through as a 1px dark (or light) hairline around the panel. Clipping the box a couple of pixels\n// inside its own edge turns that edge into a mask edge, which composites cleanly. 2px of the artwork's\n// empty margin is invisible; the hairline is not.\nconst EDGE_CLIP=\"inset(2px)\";export function withLazyMount(Component){return props=>{const ref=useRef(null);const[mounted,setMounted]=useState(false);useEffect(()=>{const el=ref.current;if(!el||mounted)return;const rect=el.getBoundingClientRect();const hasSize=rect.width>0&&rect.height>0;if(hasSize&&rect.top<window.innerHeight+MARGIN_PX&&rect.bottom>-MARGIN_PX){setMounted(true);return;}if(typeof IntersectionObserver===\"undefined\"){setMounted(true);return;}const observer=new IntersectionObserver(entries=>{for(const entry of entries){if(entry.isIntersecting){setMounted(true);observer.disconnect();return;}}},{rootMargin:MARGIN_PX+\"px\",threshold:0});observer.observe(el);return()=>observer.disconnect();},[mounted]);return /*#__PURE__*/_jsx(\"div\",{ref:ref,style:{width:\"100%\",height:\"100%\"},children:mounted?/*#__PURE__*/_jsx(Component,{...props}):null});};}// ─────────────────────────────────────────────────────────────────────────────\n// withDeferredMount\n// For layers that are technically \"in view\" at load but not actually visible\n// yet — e.g. the hero-slide Lottie players that sit in an opacity-0 layer in\n// the steady state and only show after the first slide swap. Renders nothing on\n// the server and on the first client render; mounts the real component on the\n// first sign of scroll intent (wheel / touch / keyboard / pointer / scroll), when\n// the page was opened on a slide hash (/#integrate …), or after a long fallback\n// delay. On the Framer canvas it mounts immediately so designers see the layer.\n// ─────────────────────────────────────────────────────────────────────────────\nconst INTENT_EVENTS=[\"wheel\",\"touchstart\",\"keydown\",\"pointerdown\",\"scroll\"];const FALLBACK_MS=2e4;const SLIDE_HASH=/#(integrate|orchestrate|convert|operate|agentic|end)\\b/i;let intentSeen=false;let intentListening=false;const intentSubscribers=new Set;function onIntent(){intentSeen=true;for(const type of INTENT_EVENTS)window.removeEventListener(type,onIntent,true);intentListening=false;const subs=Array.from(intentSubscribers);intentSubscribers.clear();for(const fn of subs)fn();}function subscribeIntent(fn){intentSubscribers.add(fn);if(!intentListening){intentListening=true;// capture:true so scroll events from nested scroll containers count too\nfor(const type of INTENT_EVENTS)window.addEventListener(type,onIntent,{capture:true,passive:true});}return()=>intentSubscribers.delete(fn);}export function withDeferredMount(Component){return props=>{const[mounted,setMounted]=useState(false);useEffect(()=>{if(mounted)return;if(RenderTarget.current()===RenderTarget.canvas){setMounted(true);return;}if(intentSeen||typeof location!==\"undefined\"&&SLIDE_HASH.test(location.hash)){setMounted(true);return;}const go=()=>setMounted(true);const unsubscribe=subscribeIntent(go);const timer=window.setTimeout(go,FALLBACK_MS);return()=>{unsubscribe();window.clearTimeout(timer);};},[mounted]);return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\"},children:mounted?/*#__PURE__*/_jsx(Component,{...props}):null});};}// ─────────────────────────────────────────────────────────────────────────────\n// withDeferredVideo\n// For the hero stage video (Framer \"Video\" component). Two problems with the\n// stock behaviour: the poster is only discovered late (a <video poster> is not\n// picked up by the preload scanner), and `playing: true` makes the component\n// download the 1 MB webm right after hydration, while fonts, scripts and the\n// LCP image are still loading.\n//\n// This override keeps the Video component mounted exactly as designed (same\n// poster, same box, same blend mode) but:\n//  1. server-renders the poster as an <img fetchpriority=\"high\"> BEHIND the\n//     video, 1px larger than it, using the very same URL — so the poster is\n//     fetched early at high priority, the <video poster> reuses it from cache,\n//     and the LCP element stays a plain server-rendered image;\n//  2. passes `playing: false` until the window `load` event + an idle callback,\n//     then flips it on. Until then the visitor sees the poster, exactly as today.\n// ─────────────────────────────────────────────────────────────────────────────\n// ─────────────────────────────────────────────────────────────────────────────\n// Hero slide videos (integrate / orchestrate / agentic inside the \"illustration\"\n// panel of Home/Hero). They only mount when their slide becomes active, so the\n// browser cannot fetch them ahead of time. They are small (63 / 95 / 167 KB), so\n// once the stage video has started (window load + idle) we warm the HTTP cache\n// for them; when a slide mounts its <video>, the first frame is then decoded\n// almost instantly instead of after a network round-trip.\n// Keep this list in sync with the \"File\" control of those three Video layers.\n// ─────────────────────────────────────────────────────────────────────────────\nconst HERO_SLIDE_VIDEOS=[\"https://framerusercontent.com/assets/mNIrdBrt2YtsVRTDN1YaUJ6Fpc.webm\",\"https://framerusercontent.com/assets/d1plZqK50gfctPw5cHLeHf9vGr0.webm\",\"https://framerusercontent.com/assets/eFVc78WrCMdxTIWI06WkESjjJM.webm\"];let slideVideosWarmed=false;function warmHeroSlideVideos(){if(slideVideosWarmed||typeof document===\"undefined\")return;slideVideosWarmed=true;const probe=document.createElement(\"link\");const canPrefetch=!!(probe.relList&&probe.relList.supports&&probe.relList.supports(\"prefetch\"));for(const url of HERO_SLIDE_VIDEOS){if(canPrefetch){const link=document.createElement(\"link\");link.rel=\"prefetch\";link.href=url;document.head.appendChild(link);}else if(typeof fetch===\"function\"){// Safari: no <link rel=prefetch>; a low-priority fetch fills the cache instead.\ntry{fetch(url,{mode:\"cors\",cache:\"force-cache\",priority:\"low\"}).then(r=>r.arrayBuffer()).catch(()=>undefined);}catch{// ignore\n}}}}// React 18 passes unknown lowercase attributes straight to the DOM.\nconst FETCH_PRIORITY_HIGH={fetchpriority:\"high\"};// ─────────────────────────────────────────────────────────────────────────────\n// Responsive poster. Framer's image CDN resizes on request (`?scale-down-to=N`\n// keeps the aspect ratio and content negotiation), so the poster is offered at\n// several widths and the browser picks the one matching its viewport × DPR\n// instead of always downloading the 2381px master.\n// ─────────────────────────────────────────────────────────────────────────────\nconst POSTER_WIDTHS=[640,800,1024,1200,1440,1600,2048];// The hero stage panel is ~87vw wide (Framer wraps this value in its own breakpoint media\n// queries at render time, so it must stay a single plain length — no media conditions here).\nconst POSTER_SIZES=\"87vw\";function firstUrl(...values){for(const v of values){if(typeof v===\"string\"&&/^https?:\\/\\//.test(v))return v;if(v&&typeof v===\"object\"&&typeof v.src===\"string\")return v.src;}return null;}/** \"2381 / 1580\" from the poster URL's width/height params — the video shares the poster's frame size. */function posterAspect(url){const w=/[?&]width=(\\d+)/.exec(url),h=/[?&]height=(\\d+)/.exec(url);return w&&h&&Number(h[1])>0?`${w[1]} / ${h[1]}`:undefined;}function posterSources(url){const m=/[?&]width=(\\d+)/.exec(url);const intrinsic=m?Number(m[1]):0;if(!intrinsic||intrinsic<=POSTER_WIDTHS[0])return{src:url};const base=url.split(\"?\")[0];const widths=POSTER_WIDTHS.filter(w=>w<intrinsic);const srcSet=[...widths.map(w=>`${base}?scale-down-to=${w} ${w}w`),`${url} ${intrinsic}w`].join(\", \");// Mid-size fallback for the <video poster> before the browser has told us which candidate it chose.\nconst mid=widths.includes(1200)?`${base}?scale-down-to=1200`:url;return{src:url,srcSet,sizes:POSTER_SIZES,mid};}export function withDeferredVideo(Component){return props=>{const[started,setStarted]=useState(false);const isCanvas=RenderTarget.current()===RenderTarget.canvas;const posterImgRef=useRef(null);// null until hydration: the <video> is added on the client with the poster URL the <img> resolved,\n// so both share one cached download and the visible poster is the same pixels on every DPR.\nconst[videoPoster,setVideoPoster]=useState(null);const hostRef=useRef(null);// The intro artwork re-mounts when the hero returns to its first slide. From then on it is\n// held back until the # has landed, like the slide videos (never on the first page load).\nuseClientLayoutEffect(()=>{const host=hostRef.current;if(isCanvas||!host||!heroSlidesShown||!host.closest('[data-framer-name=\"stage\"]'))return;host.style.opacity=\"0\";const cancel=whenMarkLands(host,()=>{host.style.transition=`opacity ${REVEAL_FADE_MS}ms ease-out`;host.style.opacity=\"1\";});return()=>{cancel();host.style.opacity=\"\";host.style.transition=\"\";};},[isCanvas]);useEffect(()=>{if(isCanvas||started)return;let idleId=0;let timerId=0;let loadListening=false;const go=()=>{setStarted(true);warmHeroSlideVideos();};const schedule=()=>{const w=window;if(typeof w.requestIdleCallback===\"function\")idleId=w.requestIdleCallback(go,{timeout:2500});else timerId=window.setTimeout(go,800);};if(document.readyState===\"complete\")schedule();else{loadListening=true;window.addEventListener(\"load\",schedule,{once:true});}return()=>{if(loadListening)window.removeEventListener(\"load\",schedule);const w=window;if(idleId&&typeof w.cancelIdleCallback===\"function\")w.cancelIdleCallback(idleId);if(timerId)window.clearTimeout(timerId);};},[started,isCanvas]);const posterUrl=props.posterEnabled!==false?firstUrl(props.poster,props.image,props.posterImage):null;const poster=posterUrl?posterSources(posterUrl):null;const posterMid=poster?poster.mid||poster.src:\"\";useEffect(()=>{if(isCanvas)return;const chosen=posterImgRef.current?.currentSrc;setVideoPoster(chosen||posterMid);},[isCanvas,posterMid]);if(isCanvas)return /*#__PURE__*/_jsx(Component,{...props});const fit=props.objectFit||\"cover\";const radius=props.borderRadius??0;const playing=started&&props.playing!==false;// Until the <video> mounts on the client nothing gives this box a height, so the poster <img>\n// would paint 2px tall and Chrome would record it at that size for LCP. The poster's own aspect\n// ratio keeps the box at the video's exact frame size from the first paint.\nconst ratio=posterUrl?posterAspect(posterUrl):undefined;return /*#__PURE__*/_jsxs(\"div\",{ref:hostRef,style:{position:\"relative\",width:\"100%\",height:\"100%\",aspectRatio:ratio,clipPath:EDGE_CLIP},children:[poster?/*#__PURE__*/_jsx(\"img\",{ref:posterImgRef,src:poster.src,srcSet:poster.srcSet,sizes:poster.sizes,alt:\"\",\"aria-hidden\":\"true\",...FETCH_PRIORITY_HIGH,decoding:\"async\",style:{position:\"absolute\",top:-1,left:-1,width:\"calc(100% + 2px)\",height:\"calc(100% + 2px)\",objectFit:fit,objectPosition:\"50% 50%\",borderRadius:radius,pointerEvents:\"none\"}}):null,/*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\"},children:poster&&videoPoster===null?null:/*#__PURE__*/_jsx(Component,{...props,playing:playing,poster:poster?videoPoster||posterMid:props.poster})})]});};}// ─────────────────────────────────────────────────────────────────────────────\n// withReadyReveal\n// For the hero slide videos (Framer \"Video\" component inside the integrate /\n// orchestrate / agentic frames). They mount the moment their slide becomes\n// active, so the <video> has no decoded frame yet (and no poster): the browser\n// paints the component's background colour instead, and under the container's\n// Screen blend a navy box on the navy panel shows up as a LIGHTER navy\n// rectangle that the running layout animation drags across the stage until the\n// first frame arrives.\n//\n// This override keeps the video fully transparent until\n//   (a) the first video frame has been decoded,\n//   (b) the layout animation of its ancestors (the slide swap) has settled, and\n//   (c) the # mark has (almost) landed on its spot for this slide,\n// then fades it in. On the canvas it renders the component untouched.\n// ─────────────────────────────────────────────────────────────────────────────\nconst REVEAL_FADE_MS=280;const SETTLE_FRAMES=3// consecutive frames with unchanged ancestor transforms\n;const SETTLE_TIMEOUT_MS=1500// stop waiting for the layout animation after this\n;const READY_TIMEOUT_MS=6e3// stop waiting for the video after this\n;const ANCESTOR_DEPTH=8;function ancestorTransformSignature(el){let sig=\"\";let node=el;for(let depth=0;node&&depth<ANCESTOR_DEPTH;depth++){sig+=getComputedStyle(node).transform+\"|\";node=node.parentElement;}return sig;}export function withReadyReveal(Component){return props=>{const hostRef=useRef(null);const[revealed,setRevealed]=useState(false);const isCanvas=RenderTarget.current()===RenderTarget.canvas;useEffect(()=>{if(isCanvas||revealed)return;const host=hostRef.current;if(!host)return;heroSlidesShown=true;let disposed=false;let frameReady=false;let settled=false;let landed=false;let cancelLanding=()=>{};let rafId=0;let pollId=0;let giveUpId=0;let stable=0;let lastSig=\"\";let video=null;const onReady=()=>{frameReady=true;maybeFinish();};const cleanup=()=>{if(rafId)cancelAnimationFrame(rafId);cancelLanding();if(pollId)window.clearTimeout(pollId);if(giveUpId)window.clearTimeout(giveUpId);if(video){video.removeEventListener(\"loadeddata\",onReady);video.removeEventListener(\"playing\",onReady);}};const finish=()=>{if(disposed)return;disposed=true;cleanup();setRevealed(true);};const maybeFinish=()=>{if(frameReady&&settled&&landed)finish();};// (a) wait for the first decoded frame of the <video> the component renders\nconst attach=v=>{video=v;if(v.readyState>=2){onReady();return;}const anyVideo=v;if(typeof anyVideo.requestVideoFrameCallback===\"function\")anyVideo.requestVideoFrameCallback(onReady);v.addEventListener(\"loadeddata\",onReady,{once:true});v.addEventListener(\"playing\",onReady,{once:true});};const findVideo=()=>{if(disposed)return;const v=host.querySelector(\"video\");if(v)attach(v);else pollId=window.setTimeout(findVideo,50);};// (b) wait until the ancestors stop moving (Framer's layout / FLIP transforms)\nconst t0=performance.now();const tick=()=>{if(disposed)return;const sig=ancestorTransformSignature(host.parentElement);stable=sig===lastSig?stable+1:0;lastSig=sig;if(stable>=SETTLE_FRAMES||performance.now()-t0>SETTLE_TIMEOUT_MS){settled=true;maybeFinish();return;}rafId=requestAnimationFrame(tick);};// (c) wait for the # to land\ncancelLanding=whenMarkLands(host,()=>{landed=true;maybeFinish();});findVideo();rafId=requestAnimationFrame(tick);giveUpId=window.setTimeout(finish,READY_TIMEOUT_MS);return()=>{disposed=true;cleanup();};},[revealed,isCanvas]);if(isCanvas)return /*#__PURE__*/_jsx(Component,{...props});return /*#__PURE__*/_jsx(\"div\",{ref:hostRef,style:{width:\"100%\",height:\"100%\",opacity:revealed?1:0,transition:`opacity ${REVEAL_FADE_MS}ms ease-out`,clipPath:EDGE_CLIP},children:/*#__PURE__*/_jsx(Component,{...props})});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withLazyMount\":{\"type\":\"reactHoc\",\"name\":\"withLazyMount\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withReadyReveal\":{\"type\":\"reactHoc\",\"name\":\"withReadyReveal\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withDeferredVideo\":{\"type\":\"reactHoc\",\"name\":\"withDeferredVideo\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withDeferredMount\":{\"type\":\"reactHoc\",\"name\":\"withDeferredMount\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LazyMount.map"],"mappings":"A,+QAAmQ,SAAwBuB,EAAkB,EAAM,CAAC,GAAK,CAAC,cAAY,YAAU,WAAS,SAAO,SAAO,OAAK,mBAAiB,gBAAc,WAAS,OAAK,aAAWC,EAAW,CAACC,EAAMC,GAAU1B,EAAS2B,CAAW,EAAO,CAACC,EAAUC,GAAc7B,EAAS,EAAK,EAAQ8B,EAAI7B,EAAM,OAAO,IAAI,EACzhB8B,EAAW,GAAGC,EACbC,GAAWC,EAAUP,GAAaI,EACxCtB,MAAc,CAAC,IAAM0B,EAAS,IAAI,qBAAqB,GAAS,CAAC,IAAMC,EAAMC,EAAQ,GAAGR,EAAaO,EAAM,cAAc,CAAE,CAAC,EAAiD,OAA5CN,EAAI,SAASK,EAAS,QAAQL,EAAI,OAAO,MAAa,CAAIA,EAAI,SAASK,EAAS,UAAUL,EAAI,OAAO,CAAG,CAAE,EAAE,CAAC,CAAC,EAAErB,MAAc,CAAC,GAAGmB,GAAWD,IAAcO,EAAU,CAAC,IAAMI,EAAW,gBAAgB,CAACZ,EAAS,GAAW,CAAC,IAAMa,EAAUC,EAAUP,EACjO,OAArJA,EAAU,GAAGM,GAAWL,GAAWD,EAAU,GAAGM,GAAWL,EAAcO,EAAad,GAAkB,cAAcW,CAAU,EAASJ,GAAmBK,CAAU,CAAC,CAAE,EAAE,IAAI,EAAE,EACnL,UAAU,CAAC,cAAcD,CAAU,CAAE,CAAE,CAAC,EAAE,CAACb,EAAME,EAAYO,EAAUO,EAAKb,EA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