PageSourceSearch

https://convoi.ai/_next/static/chunks/040v5tnfsdbds.js

js convoi.ai collected 2026-10-05 12:02:38 UTC 40,333 bytes, 9 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,809754,e=>{"use strict";var t=e.i(247167);let i={name:"Convoi AI",description:"Build and manage human-like voice AI agents with Convoi AI — multilingual, scalable, no code.",url:"https://convoi.ai".trim()||"http://localhost:3000",bookingsUrl:t.default.env.NEXT_PUBLIC_BOOKINGS_URL?.trim()||"https://bookings.cloud.microsoft/bookwithme/user/7693cc7000e44aaabae89873d5583bcd%40convoi.ai/meetingtype/I0xxSgZ1i0KiQFGRxYb83w2?anonymous&ismsaljsauthenabled",dashboardUrl:t.default.env.NEXT_PUBLIC_DASHBOARD_URL?.trim()||"https://go.convoi.ai/",locale:"en"};e.s(["siteConfig",0,i])},475254,e=>{"use strict";var t=e.i(271645);let i=(...e)=>e.filter((e,t,i)=>!!e&&""!==e.trim()&&i.indexOf(e)===t).join(" ").trim(),o=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,i)=>i?i.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var s={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let n=(0,t.createContext)({}),r=(0,t.forwardRef)(({color:e,size:o,strokeWidth:r,absoluteStrokeWidth:l,className:a="",children:c,iconNode:h,...u},d)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:f=!1,color:v="currentColor",className:g=""}=(0,t.useContext)(n)??{},w=l??f?24*Number(r??m)/Number(o??p):r??m;return(0,t.createElement)("svg",{ref:d,...s,width:o??p??s.width,height:o??p??s.height,stroke:e??v,strokeWidth:w,className:i("lucide",g,a),...!c&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(u)&&{"aria-hidden":"true"},...u},[...h.map(([e,i])=>(0,t.createElement)(e,i)),...Array.isArray(c)?c:[c]])});e.s(["default",0,(e,s)=>{let n=(0,t.forwardRef)(({className:n,...l},a)=>(0,t.createElement)(r,{ref:a,iconNode:s,className:i(`lucide-${o(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,n),...l}));return n.displayName=o(e),n}],475254)},791844,e=>{"use strict";e.s(["convoiHomeAssets",0,{heroAnimVideo:"/convoi-home/HP-Hero-Anim.webm",trainOnceAnimVideo:"/convoi-home/Demosection-Anim.webm",integrationsAnimVideo:"/convoi-home/Integration-ANim.webm",integrationsHandPng:"/convoi-home/img/female-hand-holding-blank-business-card-isolated-white-background.webp",demoOrb:"/convoi-home/img/GettyImages-1290639275-1.webp",demoCircleAnimVideo:"/convoi-home/Circle-Anim.webm",faqAside:"/convoi-home/img/freepik__a-focused-midshot-of-a-young-white-male-wearing-be__42356-1.webp",featureMultilingual:"/convoi-home/img/Property-1-Multilingual-Voice-Intelligence.webp",featureIllustrations:"/convoi-home/img/Feature-Illustrations.webp",featureTrainableAi:"/convoi-home/img/feature-trainable-ai.webp",featureSmartIntegrations:"/convoi-home/img/feature-smart-integrations.webp",featureRealTimeAnalytics:"/convoi-home/img/feature-real-time-analytics.webp",featureLocalCallInfrastructure:"/convoi-home/img/feature-local-call-infrastructure.webp",featureComplianceGlobalLocal:"/convoi-home/img/feature-compliance-global-local.webp",trainOnceCardPhoto:"/convoi-home/img/train-once-card.webp",serviceHeroBackground:"/convoi-home/img/service-hero-bg.webp",appointmentHeroCalendar:"/convoi-home/img/appointment-hero-calendar.webp",appointmentHeroConnector:"/convoi-home/icons/vector-7809.svg",trustedLogosStrip:"/convoi-home/img/trusted-logos-strip.webp",leadQualificationHeroVisual:"/convoi-home/img/lead-qualification-hero-figma.webp",appointmentBookingHeroVisual:"/convoi-home/img/appointment-booking-hero-visual.webp",customerSupportHeroVisual:"/convoi-home/img/customer-support-hero-figma.webp",trustedStripOverlay:"/convoi-home/img/trusted-strip-overlay.webp",appointmentHeroDemoCard:"/convoi-home/img/appointment-hero-demo-card.webp",appointmentHeroPerson:"/convoi-home/img/appointment-hero-person.webp",appointmentDemoCalloutBackground:"/convoi-home/img/appointment-demo-callout-bg.webp",serviceMetricsBackground:"/convoi-home/img/metric-bg.webp",serviceFinalCtaFramedBackground:"/convoi-home/img/service-final-cta-framed-bg.webp",moreServicesApp
1ointmentBookingCard:"/convoi-home/img/more-services-appointment-booking.webp",moreServicesLeadQualificationCard:"/convoi-home/img/more-services-lead-qualification.webp",moreServicesCustomerSupportCard:"/convoi-home/img/more-services-customer-support.webp",faqSectionAppointmentBooking:"/convoi-home/img/faq-appointment-booking.webp",faqSectionLeadQualification:"/convoi-home/img/faq-lead-qualification.webp",faqSectionCustomerSupport:"/convoi-home/img/faq-customer-support.webp",hubIcon:"/convoi-home/icons/ConvoiAI-Icon.svg",metricsCardShell:"/convoi-home/icons/metrics-card-shell.svg",metricsCardShell60:"/convoi-home/icons/metrics-card-shell-60.svg",metricsCardShell80:"/convoi-home/icons/metrics-card-shell-80.svg",metricsCardFull40:"/convoi-home/icons/metrics-card-full-40.svg",metricsCardFull60:"/convoi-home/icons/metrics-card-full-60.svg",metricsCardFull80:"/convoi-home/icons/metrics-card-full-80.svg",metricsCardLead3x:"/convoi-home/icons/metrics-card-lead-3x.svg",metricsCardLead80:"/convoi-home/icons/metrics-card-lead-80.svg",metricsCardLead65:"/convoi-home/icons/metrics-card-lead-65.svg",metricsCardCs5x:"/convoi-home/icons/metrics-card-cs-5x.svg",metricsCardCs90:"/convoi-home/icons/metrics-card-cs-90.svg",metricsCardCs80:"/convoi-home/icons/metrics-card-cs-80.svg",serviceDemoCalloutArt:{waves:"/convoi-home/icons/waves.svg",blur:"/convoi-home/icons/blur.svg",vector1137:"/convoi-home/icons/Vector-1137.svg",vector1140:"/convoi-home/icons/Vector-1140.svg",unionSparkle:"/convoi-home/icons/Union.svg"},integrationsSubtractSvg:"/integrations-icons/Subtract.svg",solutionFinancialServicesLooperSvg:"/convoi-home/icons/financial-services-looper.svg",solutionHealthcareHeartSvg:"/convoi-home/icons/heart.svg",solutionHomeServicesTopologySvg:"/convoi-home/icons/home-services-topology.svg",solutionRetailEcommerceTopologySvg:"/convoi-home/icons/retail-ecommerce-topology.svg",solutionInsuranceLooperSvg:"/convoi-home/icons/insurance-looper.svg",solutionTravelHospitalityLooperSvg:"/convoi-home/icons/travel-hospitality-looper.svg"},"trainOnceCardPhotoPx",0,{width:656,height:968}])},190309,313326,e=>{"use strict";var t=e.i(247167);class i extends Error{status;payload;constructor(e,t,i){super(e),this.status=t,this.payload=i,this.name="ConvoiPublicApiError"}}async function o(e){let t,o={public_slug:e.publicSlug,participant_name:e.participantName};e.turnstileToken&&(o.turnstile_token=e.turnstileToken);let s=await fetch("/api/session",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)}),n=await s.text();try{t=n?JSON.parse(n):null}catch{t=n}if(!s.ok)throw new i(function(e,t){let i=function(e){if(!e||"object"!=typeof e)return;let t=e.detail??e.message??e.error;return"string"==typeof t?t:Array.isArray(t)&&t.every(e=>"string"==typeof e)?t.join(" "):void 0}(t);switch(e){case 400:return i??"Verification failed or is required. Please refresh and try again.";case 404:return i??"This demo is not available right now.";case 429:return i??"Too many attempts. Please wait a moment and try again.";case 500:return i??"Something went wrong on our end. Please try again later.";default:return i??`Request failed (${e}).`}}(s.status,t),s.status,t);var r=t;if(!r||"object"!=typeof r)throw new i("Unexpected response body.",502,r);for(let e of["room_id","agent_id","livekit_url","livekit_access_token","participant_identity"])if("string"!=typeof r[e]||!r[e].length)throw new i(`Response missing valid "${e}".`,502,r);if(null!=r.connection_access_token&&"string"!=typeof r.connection_access_token)throw new i('Response has invalid "connection_access_token".',502,r);return r}e.s(["ConvoiPublicApiError",0,i],313326),e.s(["resolveLiveKitServerUrl",0,function(e){let o=e.livekit_url?.trim();if(o)return o;let s=t.default.env.NEXT_PUBLIC_LIVEKIT_URL?.trim();if(s)return s;throw new i("No LiveKit URL in the session response and NEXT_PUBLIC_LIVEKIT_URL is not set.",502,e)},"startPublicWebSession",0,o],190309)},667585,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"BailoutToCSR",{enumerable:!0,get:function(){return s}});let o=e.r(132061);function s({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new o.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,
1configurable:!0});return t}},309885,(e,t,i)=>{"use strict";function o(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"encodeURIPath",{enumerable:!0,get:function(){return o}})},652157,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"PreloadChunks",{enumerable:!0,get:function(){return a}});let o=e.r(843476),s=e.r(174080),n=e.r(563599),r=e.r(309885),l=e.r(543369);function a({moduleIds:e}){if("u">typeof window)return null;let t=n.workAsyncStorage.getStore();if(void 0===t)return null;let i=[];if(t.reactLoadableManifest&&e){let o=t.reactLoadableManifest;for(let t of e){if(!o[t])continue;let e=o[t].files;i.push(...e)}}if(0===i.length)return null;let c=(0,l.getAssetTokenQuery)();return(0,o.jsx)(o.Fragment,{children:i.map(e=>{let i=`${t.assetPrefix}/_next/${(0,r.encodeURIPath)(e)}${c}`;return e.endsWith(".css")?(0,o.jsx)("link",{precedence:"dynamic",href:i,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,s.preload)(i,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},869093,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return c}});let o=e.r(843476),s=e.r(271645),n=e.r(667585),r=e.r(652157);function l(e){return{default:e&&"default"in e?e.default:e}}let a={loader:()=>Promise.resolve(l(()=>null)),loading:null,ssr:!0},c=function(e){let t={...a,...e},i=(0,s.lazy)(()=>t.loader().then(l)),c=t.loading;function h(e){let l=c?(0,o.jsx)(c,{isLoading:!0,pastDelay:!0,error:null}):null,a=!t.ssr||!!t.loading,h=a?s.Suspense:s.Fragment,u=t.ssr?(0,o.jsxs)(o.Fragment,{children:["u"<typeof window?(0,o.jsx)(r.PreloadChunks,{moduleIds:t.modules}):null,(0,o.jsx)(i,{...e})]}):(0,o.jsx)(n.BailoutToCSR,{reason:"next/dynamic",children:(0,o.jsx)(i,{...e})});return(0,o.jsx)(h,{...a?{fallback:l}:{},children:u})}return h.displayName="LoadableComponent",h}},770703,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return s}});let o=e.r(555682)._(e.r(869093));function s(e,t){let i={};"function"==typeof e&&(i.loader=e);let s={...i,...t};return(0,o.default)({...s,modules:s.loadableGenerated?.modules})}("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)},748114,e=>{"use strict";var t=e.i(247167),i=e.i(843476),o=e.i(770703),s=e.i(271645),n=e.i(313326),r=e.i(809754);async function l(e,i){var o;let s,l,a,c={room_id:e.roomId,agent_id:e.agentId,call_type:e.callType??"web"},h={"Content-Type":"application/json"},u=i?.bearerToken?.trim();u&&(h.Authorization=`Bearer ${u}`);let d=await fetch((o="/api/v1/connections",l=function(){let e="https://go.convoi.ai/backend".trim();if(e)return e.replace(/\/$/,"");let i=t.default.env.NEXT_PUBLIC_CONVOI_API_BASE_URL?.trim();return i?i.replace(/\/$/,""):r.siteConfig.url.replace(/\/$/,"")}(),a=o.startsWith("/")?o:`/${o}`,`${l}${a}`),{method:"POST",headers:h,body:JSON.stringify(c)}),p=await d.text();try{s=p?JSON.parse(p):null}catch{s=p}if(!d.ok){let e=function(e){if(!e||"object"!=typeof e)return;let t=e.detail??e.message??e.error;return"string"==typeof t?t:Array.isArray(t)&&t.every(e=>"string"==typeof e)?t.join(" "):void 0}(s);throw new n.ConvoiPublicApiError(e??`Create connection failed (${d.status}).`,d.status,s)}return s}var a=e.i(190309);Symbol.for("convoi.suppressLivekitDatachannelErrors");let c=(0,o.default)(()=>e.A(762334),{loadableGenerated:{modules:[781075]},ssr:!1,loading:()=>null}),h=(0,s.createContext)(null),u=t.default.env.NEXT_PUBLIC_VOICE_DEMO_PUBLIC_SLUG?.trim()||"demo";e.s(["VoiceDemoProvider",0,function({children:e}
1){let[t,o]=(0,s.useState)("idle"),[r,d]=(0,s.useState)(null),[p,m]=(0,s.useState)(null),[f,v]=(0,s.useState)(0),g=(0,s.useRef)(!1),w=(0,s.useRef)(!1),S=(0,s.useRef)(null),b=(0,s.useCallback)(()=>{g.current=!0,S.current?.(),d(null),o("idle"),m(null),v(0)},[]),y=(0,s.useCallback)(()=>{g.current||(d(null),o("idle"),v(0))},[]),E=(0,s.useCallback)(async()=>{if(!w.current){w.current=!0,g.current=!1,m(null),v(0),o("starting");try{let e=await (0,a.startPublicWebSession)({publicSlug:u,participantName:"Website visitor"});if(g.current)return;let t=e.connection_access_token?.trim();if(t&&await l({roomId:e.room_id,agentId:e.agent_id,callType:"web"},{bearerToken:t}),g.current)return;d(e),o("in_room")}catch(e){if(g.current)return;d(null),o("idle"),m(e instanceof n.ConvoiPublicApiError||e instanceof Error?e.message:"Could not start the demo.")}finally{w.current=!1}}},[]),C=(0,s.useMemo)(()=>({phase:t,elapsed:f,banner:p,beginVoiceDemo:E,endCall:b}),[t,f,p,E,b]);return(0,i.jsxs)(h.Provider,{value:C,children:[e,"in_room"===t&&r?(0,i.jsx)(c,{session:r,onError:m,onElapsed:v,onDisconnected:y,disconnectRef:S}):null]})},"useVoiceDemo",0,function(){let e=(0,s.useContext)(h);if(!e)throw Error("useVoiceDemo must be used within VoiceDemoProvider");return e}],748114)},730442,e=>{"use strict";
1let t=[{slug:"appointment-booking",title:"Appointment Booking",description:"Automate scheduling and reminders with a human-like AI voice agent.",featured:!1},{slug:"lead-qualification",title:"Lead Qualification",description:"Automate cold calls, screen prospects, and route only the best leads.",featured:!1},{slug:"customer-support",title:"Customer Support",description:"Deliver 24/7 support with AI voice agents that never go on hold.",featured:!0}],i=t.filter(e=>!e.featured),o=t.find(e=>e.featured);e.s(["featuredService",0,o,"services",0,t,"servicesListItems",0,i,"solutions",0,[{slug:"healthcare",title:"Healthcare",description:"Book appointments and send patient reminders automatically."},{slug:"financial-services",title:"Financial Services",description:"Qualify leads and handle account queries 24/7."},{slug:"home-services",title:"Home Services",description:"Automate job bookings, follow-ups, and service calls."},{slug:"insurance",title:"Insurance",description:"Manage claims, renewals, and customer queries with voice AI."},{slug:"travel-hospitality",title:"Travel & Hospitality",description:"Manage bookings, cancellations, and guest support instantly."},{slug:"retail-ecommerce",title:"Retail & E-com",description:"Handle orders, returns, and promotions with voice automation."}]])},88653,e=>{"use strict";e.i(247167);var t=e.i(843476),i=e.i(271645),o=e.i(231178),s=e.i(947414),n=e.i(674008),r=e.i(821476),l=e.i(772846),a=i,c=e.i(737806);function h(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class u extends a.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if((0,l.isHTMLElement)(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,i=(0,l.isHTMLElement)(e)&&e.offsetWidth||0,o=(0,l.isHTMLElement)(e)&&e.offsetHeight||0,s=getComputedStyle(t),n=this.props.sizeRef.current;n.height=parseFloat(s.height),n.width=parseFloat(s.width),n.top=t.offsetTop,n.left=t.offsetLeft,n.right=i-n.width-n.left,n.bottom=o-n.height-n.top}return null}componentDidUpdate(){}render(){return this.props.children}}function d({children:e,isPresent:o,anchorX:s,anchorY:n,root:r,pop:l}){let p=(0,a.useId)(),m=(0,a.useRef)(null),f=(0,a.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:v}=(0,a.useContext)(c.MotionConfigContext),g=function(...e){return i.useCallback(function(...e){return t=>{let i=!1,o=e.map(e=>{let o=h(e,t);return i||"function"!=typeof o||(i=!0),o});if(i)return()=>{for(let t=0;t<o.length;t++){let i=o[t];"function"==typeof i?i():h(e[t],null)}}}}(...e),e)}(m,e.props?.ref??e?.ref);return(0,a.useInsertionEffect)(()=>{let{width:e,height:t,top:i,left:a,right:c,bottom:h}=f.current;if(o||!1===l||!m.current||!e||!t)return;let u="left"===s?`left: ${a}`:`right: ${c}`,d="bottom"===n?`bottom: ${h}`:`top: ${i}`;m.current.dataset.motionPopId=p;let g=document.createElement("style");v&&(g.nonce=v);let w=r??document.head;return w.appendChild(g),g.sheet&&g.sheet.insertRule(`
2          [data-motion-pop-id="${p}"] {
3            position: absolute !important;
4            width: ${e}px !important;
5            height: ${t}px !important;
6            ${u}px !important;
7            ${d}px !important;
8          }
9        `),()=>{m.current?.removeAttribute("data-motion-pop-id"),w.contains(g)&&w.removeChild(g)}},[o]),(0,t.jsx)(u,{isPresent:o,childRef:m,sizeRef:f,pop:l,children:!1===l?e:a.cloneElement(e,{ref:g})})}let p=({children:e,initial:o,isPresent:n,onExitComplete:l,custom:a,presenceAffectsLayout:c,mode:h,anchorX:u,anchorY:p,root:f})=>{let v=(0,s.useConstant)(m),g=(0,i.useId)(),w=!0,S=(0,i.useMemo)(()=>(w=!1,{id:g,initial:o,isPresent:n,custom:a,onExitComplete:e=>
9{for(let t of(v.set(e,!0),v.values()))if(!t)return;l&&l()},register:e=>(v.set(e,!1),()=>v.delete(e))}),[n,v,l]);return c&&w&&(S={...S}),(0,i.useMemo)(()=>{v.forEach((e,t)=>v.set(t,!1))},[n]),i.useEffect(()=>{n||v.size||!l||l()},[n]),e=(0,t.jsx)(d,{pop:"popLayout"===h,isPresent:n,anchorX:u,anchorY:p,root:f,children:e}),(0,t.jsx)(r.PresenceContext.Provider,{value:S,children:e})};function m(){return new Map}var f=e.i(464978);let v=e=>e.key||"";function g(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}e.s(["AnimatePresence",0,({children:e,custom:r,initial:l=!0,onExitComplete:a,presenceAffectsLayout:c=!0,mode:h="sync",propagate:u=!1,anchorX:d="left",anchorY:m="top",root:w})=>{let[S,b]=(0,f.usePresence)(u),y=(0,i.useMemo)(()=>g(e),[e]),E=u&&!S?[]:y.map(v),C=(0,i.useRef)(!0),_=(0,i.useRef)(y),T=(0,s.useConstant)(()=>new Map),L=(0,i.useRef)(new Set),[R,k]=(0,i.useState)(y),[N,O]=(0,i.useState)(y);(0,n.useIsomorphicLayoutEffect)(()=>{C.current=!1,_.current=y;for(let e=0;e<N.length;e++){let t=v(N[e]);E.includes(t)?(T.delete(t),L.current.delete(t)):!0!==T.get(t)&&T.set(t,!1)}},[N,E.length,E.join("-")]);let x=[];if(y!==R){let e=[...y];for(let t=0;t<N.length;t++){let i=N[t],o=v(i);E.includes(o)||(e.splice(t,0,i),x.push(i))}return"wait"===h&&x.length&&(e=x),O(g(e)),k(y),null}let{forceRender:P}=(0,i.useContext)(o.LayoutGroupContext);return(0,t.jsx)(t.Fragment,{children:N.map(e=>{let i=v(e),o=(!u||!!S)&&(y===N||E.includes(i));return(0,t.jsx)(p,{isPresent:o,initial:(!C.current||!!l)&&void 0,custom:r,presenceAffectsLayout:c,mode:h,root:w,onExitComplete:o?void 0:()=>{if(L.current.has(i)||!T.has(i))return;L.current.add(i),T.set(i,!0);let e=!0;T.forEach(t=>{t||(e=!1)}),e&&(P?.(),O(_.current),u&&b?.(),a&&a())},anchorX:d,anchorY:m,children:e},i)})})}],88653)},618566,(e,t,i)=>{t.exports=e.r(976562)},708335,e=>{"use strict";e.s(["CONVOI_LENIS_REMEASURE",0,"convoi:lenis-remeasure","CONVOI_ROUTE_EXIT_COMPLETE",0,"convoi:route-exit-complete"])},347053,255667,e=>{"use strict";var t=e.i(618566),i=e.i(271645),o="1.3.21";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),o=(t=i>=1)?1:this.easing(i);this.value=this.from+(this.to-this.from)*o}else if(this.lerp){var i,o,n,r;this.value=(i=this.value,o=this.to,n=60*this.lerp,(1-(r=1-Math.exp(-n*e)))*i+r*o),Math.round(this.value)===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:o,easing:s,onStart:n,onUpdate:r}){this.from=this.value=e,this.to=t,this.lerp=i,this.duration=o,this.easing=s,this.currentTime=0,this.isRunning=!0,n?.(),this.onUpdate=r}},r=class{width=0;height=0;scrollHeight=0;scrollWidth=0;debouncedResize;wrapperResizeObserver;contentResizeObserver;constructor(e,t,{autoResize:i=!0,debounce:o=250}={}){this.wrapper=e,this.content=t,i&&(this.debouncedResize=function(e,t){let i;return function(...o){clearTimeout(i),i=setTimeout(()=>{i=void 0,e.apply(this,o)},t)}}(this.resize,o),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}}},l=class{events={};emit(e,...t){let i=this.events[e]||[];for(let e=0,o=i.length;e<o;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 a=100/6,c={passive:!1};function h(e,t){return 1===e?a:2===e?t:1}var u=class{touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new l;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,c),this.element.addEventListener("touchstart",this.onTouchStart,c),this.element.addEventListener("touchmove",this.onTouchMove,c),this.element.addEventListener("touchend",this.onTouchEnd,c)}on(e,t){return this.emitter.on(e,t)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize),this.element.removeEventListener("wheel",this.onWheel,c),this.element.removeEventListener("touchstart",this.onTouchStart,c),this.element.removeEventListener("touchmove",this.onTouchMove,c),this.element.removeEventListener("touchend",this.onTouchEnd,c)}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,o=-(t-this.touchStart.x)*this.options.touchMultiplier,s=-(i-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=t,this.touchStart.y=i,this.lastDelta={x:o,y:s},this.emitter.emit("scroll",{deltaX:o,deltaY:s,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:o}=e,s=h(o,this.window.width),n=h(o,this.window.height);
9t*=s,i*=n,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 p=class{_isScrolling=!1;_isStopped=!1;_isLocked=!1;_preventNextNativeScrollEvent=!1;_resetVelocityTimeout=null;_rafId=null;isTouching;time=0;userData={};lastVelocity=0;velocity=0;direction=0;options;targetScroll;animatedScroll;animate=new n;emitter=new l;dimensions;virtualScroll;constructor({wrapper:e=window,content:t=document.documentElement,eventsTarget:i=e,smoothWheel:s=!0,syncTouch:n=!1,syncTouchLerp:l=.075,touchInertiaExponent:a=1.7,duration:c,easing:h,lerp:p=.1,infinite:m=!1,orientation:f="vertical",gestureOrientation:v="horizontal"===f?"both":"vertical",touchMultiplier:g=1,wheelMultiplier:w=1,autoResize:S=!0,prevent:b,virtualScroll:y,overscroll:E=!0,autoRaf:C=!1,anchors:_=!1,autoToggle:T=!1,allowNestedScroll:L=!1,__experimental__naiveDimensions:R=!1,naiveDimensions:k=R,stopInertiaOnNavigate:N=!1}={}){window.lenisVersion=o,window.lenis||(window.lenis={}),window.lenis.version=o,"horizontal"===f&&(window.lenis.horizontal=!0),!0===n&&(window.lenis.touch=!0),e&&e!==document.documentElement||(e=window),"number"==typeof c&&"function"!=typeof h?h=d:"function"==typeof h&&"number"!=typeof c&&(c=1),this.options={wrapper:e,content:t,eventsTarget:i,smoothWheel:s,syncTouch:n,syncTouchLerp:l,touchInertiaExponent:a,duration:c,easing:h,lerp:p,infinite:m,gestureOrientation:v,orientation:f,touchMultiplier:g,wheelMultiplier:w,autoResize:S,prevent:b,virtualScroll:y,overscroll:E,autoRaf:C,anchors:_,autoToggle:T,allowNestedScroll:L,naiveDimensions:k,stopInertiaOnNavigate:N},this.dimensions=new r(e,t,{autoResize:S}),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 u(i,{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=`#${e.hash.split("#")[1]}`;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()};onVirtualScroll=e=>{if("function"==typeof this.options.virtualScroll&&!1===this.options.virtualScroll(e))return;let{deltaX:t,deltaY:i,event:o}=e;if(this.emitter.emit("virtual-scroll",{deltaX:t,deltaY:i,event:o}),o.ctrlKey||o.lenisStopPropagation)return;let s=o.type.includes("touch"),n=o.type.includes("wheel");this.isTouching="touchstart"===o.type||"touchmove"===o.type;let r=0===t&&0===i;if(this.options.syncTouch&&s&&"touchstart"===o.type&&r&&!this.isStopped&&!this.isLocked)return void this.reset();let l="vertical"===this.options.gestureOrientation&&0===i||"horizontal"===this.options.gestureOrientation&&0===t;if(r||l)return;let a=o.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")||s&&e.hasAttribute?.("data-lenis-prevent-touch")||n&&e.hasAttribute?.("data-lenis-prevent-wheel")||this.options.allowNestedScroll&&this.hasNestedScroll(e,{deltaX:t,deltaY:i}
9))))return;if(this.isStopped||this.isLocked){o.cancelable&&o.preventDefault();return}if(!(this.options.syncTouch&&s||this.options.smoothWheel&&n)){this.isScrolling="native",this.animate.stop(),o.lenisStopPropagation=!0;return}let u=i;"both"===this.options.gestureOrientation?u=Math.abs(i)>Math.abs(t)?i:t:"horizontal"===this.options.gestureOrientation&&(u=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))&&(o.lenisStopPropagation=!0),o.cancelable&&o.preventDefault();let d=s&&this.options.syncTouch,p=s&&"touchend"===o.type;p&&(u=Math.sign(this.velocity)*Math.abs(this.velocity)**this.options.touchInertiaExponent),this.scrollTo(this.targetScroll+u,{programmatic:!1,...d?{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:o=!1,programmatic:n=!0,lerp:r=n?this.options.lerp:void 0,duration:l=n?this.options.duration:void 0,easing:a=n?this.options.easing:void 0,onStart:c,onComplete:h,force:u=!1,userData:p}={}){if((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=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),o=this.isHorizontal?Number.parseFloat(i.scrollMarginLeft):Number.parseFloat(i.scrollMarginTop),s=getComputedStyle(this.rootElement),n=this.isHorizontal?Number.parseFloat(s.scrollPaddingLeft):Number.parseFloat(s.scrollPaddingTop);m=(this.isHorizontal?t.left:t.top)+this.animatedScroll-(Number.isNaN(o)?0:o)-(Number.isNaN(n)?0:n)}}if("number"==typeof m){if(m+=f,m=Math.round(m),this.options.infinite){if(n){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(),h?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}n||(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:r,onStart:()=>{o&&(this.isLocked=!0),this.isScrolling="smooth",c?.(this)},onUpdate:(e,t)=>
9{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),n&&(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 o,s,n,r,l,a,c,h,u,d,p,m,f,v,g,w,S=Date.now();e._lenis||(e._lenis={});let b=e._lenis;if(S-(b.time??0)>2e3){b.time=Date.now();let t=window.getComputedStyle(e);if(b.computedStyle=t,o=["auto","overlay","scroll"].includes(t.overflowX),s=["auto","overlay","scroll"].includes(t.overflowY),l=["auto"].includes(t.overscrollBehaviorX),a=["auto"].includes(t.overscrollBehaviorY),b.hasOverflowX=o,b.hasOverflowY=s,!(o||s))return!1;c=e.scrollWidth,h=e.scrollHeight,u=e.clientWidth,d=e.clientHeight,n=c>u,r=h>d,b.isScrollableX=n,b.isScrollableY=r,b.scrollWidth=c,b.scrollHeight=h,b.clientWidth=u,b.clientHeight=d,b.hasOverscrollBehaviorX=l,b.hasOverscrollBehaviorY=a}else n=b.isScrollableX,r=b.isScrollableY,o=b.hasOverflowX,s=b.hasOverflowY,c=b.scrollWidth,h=b.scrollHeight,u=b.clientWidth,d=b.clientHeight,l=b.hasOverscrollBehaviorX,a=b.hasOverscrollBehaviorY;if(!(o&&n||s&&r))return!1;let y=Math.abs(t)>=Math.abs(i)?"horizontal":"vertical";if("horizontal"===y)p=Math.round(e.scrollLeft),m=c-u,f=t,v=o,g=n,w=l;else{if("vertical"!==y)return!1;p=Math.round(e.scrollTop),m=h-d,f=i,v=s,g=r,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 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.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}},m=e.i(843476);let f=(0,i.createContext)(null),v=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),g=(0,i.forwardRef)(({children:e,root:t=!1,options:o={},autoRaf:s=!0,className:n="",...r},l)=>{let a=(0,i.useRef)(null),c=(0,i.useRef)(null),[h,u]=(0,i.useState)(void 0);(0,i.useImperativeHandle)(l,()=>({wrapper:a.current,content:c.current,lenis:h}),[h]),(0,i.useEffect)(()=>{let e=new p({...o,...a.current&&c.current&&{wrapper:a.current,content:c.current},autoRaf:o?.autoRaf??s});return u(e),()=>{e.destroy(),u(void 0)}},[s,JSON.stringify({...o,wrapper:null,content:null})]);let d=(0,i.useRef)([]),g=(0,i.useCallback)((e,t)=>{d.current.push({callback:e,priority:t}),d.current.sort((e,t)=>
9e.priority-t.priority)},[]),w=(0,i.useCallback)(e=>{d.current=d.current.filter(t=>t.callback!==e)},[]);return((0,i.useEffect)(()=>{if(t&&h)return v.set({lenis:h,addCallback:g,removeCallback:w}),()=>v.set(null)},[t,h,g,w]),(0,i.useEffect)(()=>{if(!h)return;let e=e=>{for(let{callback:t}of d.current)t(e)};return h.on("scroll",e),()=>{h.off("scroll",e)}},[h]),e)?(0,m.jsx)(f.Provider,{value:{lenis:h,addCallback:g,removeCallback:w},children:t&&"asChild"!==t?e:(0,m.jsx)("div",{ref:a,className:`${n} ${h?.className??""}`.trim(),...r,children:(0,m.jsx)("div",{ref:c,children:e})})}):null}),w={};function S(e,t=[],o=0){let s=(0,i.useContext)(f),n=function(e){let[t,o]=(0,i.useState)(e.get());return(0,i.useEffect)(()=>e.subscribe(e=>o(e)),[e]),t}(v),{lenis:r,addCallback:l,removeCallback:a}=s??n??w;return(0,i.useEffect)(()=>{if(e&&l&&a&&r)return l(e,o),e(r),()=>{a(e)}},[r,l,a,o,...t,e]),r}e.s(["ReactLenis",0,g,"useLenis",0,S],255667);var b=e.i(708335);function y(e){let t=e??null;if(t){try{t.start?.()}catch{}try{t.resize?.()}catch{}}}function E(e){try{e?.scrollTo(0,{immediate:!0})}catch{}window.scrollTo(0,0);let t=document.documentElement;t&&(t.scrollTop=0),document.body&&(document.body.scrollTop=0)}e.s(["RouteAnimationSync",0,function(){let e=(0,t.usePathname)(),o=S();return(0,i.useEffect)(()=>{let e=!1,t=0,i=0,s=0,n=()=>{e||(y(o),E(o))};return E(o),t=requestAnimationFrame(()=>{i=requestAnimationFrame(n)}),s=window.setTimeout(()=>{e||(y(o),E(o))},140),()=>{e=!0,i&&cancelAnimationFrame(i),t&&cancelAnimationFrame(t),window.clearTimeout(s)}},[e,o]),(0,i.useEffect)(()=>{let e=0,t=()=>{window.clearTimeout(e),e=window.setTimeout(()=>y(o),120)},i=()=>t();window.addEventListener("resize",i);let s=null;"u">typeof ResizeObserver&&"u">typeof document&&(s=new ResizeObserver(()=>t())).observe(document.documentElement);let n=!1,r=0;"u">typeof document&&document.fonts?.ready&&document.fonts.ready.then(()=>{n||(n=!0,r=window.setTimeout(()=>y(o),300))});let l=()=>y(o);window.addEventListener(b.CONVOI_LENIS_REMEASURE,l);let a=()=>{y(o),E(o)};return window.addEventListener(b.CONVOI_ROUTE_EXIT_COMPLETE,a),()=>{window.removeEventListener("resize",i),s?.disconnect(),window.removeEventListener(b.CONVOI_LENIS_REMEASURE,l),window.removeEventListener(b.CONVOI_ROUTE_EXIT_COMPLETE,a),window.clearTimeout(e),r&&window.clearTimeout(r)}},[o]),null},"dispatchLenisRemeasure",0,function(){window.dispatchEvent(new Event(b.CONVOI_LENIS_REMEASURE))},"scrollDocumentTop",0,E],347053)},762334,e=>{e.v(t=>Promise.all(["static/chunks/0zta2lahxho~p.css","static/chunks/0n59npk6jitq2.js","static/chunks/0dkgojk6n8fjg.js"].map(t=>e.l(t))).then(()=>t(781075)))}]);

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.