PageSourceSearch

https://forus.com/_next/static/chunks/15s-g20jj8l9w.js?dpl=dpl_7S1CUoqZgdvh6zRzW6oMN1sQEfUJ

js forus.com collected 2026-09-25 19:05:19 UTC 217,919 bytes, 28 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,512471,e=>{"use strict";var t=e.i(843476),n=e.i(945060),r=e.i(521110);let i={"1-1":"aspect-square","4-5":"aspect-4/5","16-9":"aspect-video","3-2":"aspect-3/2"};function l(e){return!!e&&("video"===e._type||[e.src,e.url,e.asset?.url].some(e=>"string"==typeof e&&(e.endsWith(".mp4")||e.endsWith(".webm"))))}let a="block size-full object-cover";function o(e,{loading:i,fetchPriority:s,sizes:c,alt:u,className:d}){if(l(e)){let r=e.src??e.asset?.url??e.url;return r?(0,t.jsx)("video",{className:(0,n.cn)(a,d),src:r,autoPlay:!0,muted:!0,playsInline:!0,loop:!0,preload:"metadata"}):null}return(0,t.jsx)(r.SanityImage,{image:e,alt:u??"",loading:i,fetchPriority:s,sizes:c,className:(0,n.cn)(a,d)})}e.s(["Image",0,function({media:e,mediaMobile:r,ratio:a="auto",loading:s="lazy",fetchPriority:c,sizes:u="100vw",alt:d,className:f}){if(!e)return null;let p=(0,n.cn)("relative overflow-hidden",l(e)&&"js-video-bg","auto"!==a&&i[a],f),m={loading:s,fetchPriority:c,sizes:u,alt:d};return r?(0,t.jsxs)("div",{className:p,children:[(0,t.jsx)("div",{className:"size-full max-[600px]:hidden",children:o(e,{...m})}),(0,t.jsx)("div",{className:"size-full min-[601px]:hidden",children:o(r,{...m})})]}):(0,t.jsx)("div",{className:p,children:o(e,m)})}])},701178,(e,t,n)=>{let r;{let e=e=>function(){throw Error(`\`${e}\` is only available in a Server Component.`)};r={unstable_cache:function(e){return"function"!=typeof e?e:function(){return e.apply(this,arguments)}},unstable_noStore:function(){},updateTag:e("updateTag"),revalidateTag:e("revalidateTag"),revalidatePath:e("revalidatePath"),refresh:e("refresh"),cacheLife:e("cacheLife"),cacheTag:e("cacheTag")}}let i=!1,l=!1;r.unstable_cacheLife=function(){return i||(i=!0,console.error(Error("`unstable_cacheLife` was recently stabilized and should be imported as `cacheLife`. The `unstable` prefixed form will be removed in a future version of Next.js."))),r.cacheLife.apply(this,arguments)},r.unstable_cacheTag=function(){return l||(l=!0,console.error(Error("`unstable_cacheTag` was recently stabilized and should be imported as `cacheTag`. The `unstable` prefixed form will be removed in a future version of Next.js."))),r.cacheTag.apply(this,arguments)},t.exports=r,n.unstable_cache=r.unstable_cache,n.revalidatePath=r.revalidatePath,n.revalidateTag=r.revalidateTag,n.updateTag=r.updateTag,n.unstable_noStore=r.unstable_noStore,n.cacheLife=r.cacheLife,n.unstable_cacheLife=r.unstable_cacheLife,n.cacheTag=r.cacheTag,n.unstable_cacheTag=r.unstable_cacheTag,n.refresh=r.refresh},272754,e=>{"use strict";var t=e.i(843476),n=e.i(236726),r=e.i(522016),i=e.i(272072),l=e.i(739814);e.i(976186);var a=e.i(957222),o=e.i(701178),s=e.i(247167),c=e.i(340990),u=e.i(317616),d=e.i(767227);let f=new Set(u.HUBSPOT_TRACKING_FIELDS.map(e=>e.name.toLowerCase()));function p(e){let t=e.name?.trim();return!(!t||e.hidden||f.has(t.toLowerCase()))}async function m(e){let t=s.default.env.HUBSPOT_PRIVATE_APP_TOKEN?.trim()||void 0;if(!t)return null;let n=await fetch(`https://api.hubapi.com/marketing/v3/forms/${e}`,{headers:{Authorization:`Bearer ${t}`,"Content-Type":"application/json"},cache:"no-store"});return n.ok?await n.json():null}async function h(e,t){let n=t?.trim()||(0,d.getInboundTouchpointSlug)(),r=e.trim()||(0,a.getDefaultDemoFormId)();if(n)try{let e=await (0,d.fetchPublicTouchpointFormFields)(n),t=e?.form_id?.trim();if(e?.fields?.length&&(!t||t===r)){let t=(0,d.mapPublicDemoFormFields)(e.fields);return(0,c.applyDemoFormSiteDefaults)(t)}}catch{}let i=await m(r);if(!i)return[];let l=(i.fieldGroups?.flatMap(e=>e.fields??[])??[]).filter(p).map(e=>{var t,n;let r,i,l,a=e.name.trim(),o="email"===(r=(e.fieldType??"text").trim().toLowerCase())?"email":"phonenumber"===r||"phone"===r?"phonenumber":"number"===r?"number":"dropdown"===r||"radio"===r||"select"===r?"select":"text",s="select"===o?function(e){if(!e.options?.length)return;let t=e.options.map(e=>{let t=e.label?.trim(),n=e.value?.trim();return t&&n?{label:t,value:n}:null}).filter(e=>!!e);return t.length?t:void 0}(e):void 0;return{key:a,name:a,propertyReference:(i=e.objectTypeId?.trim())?`${i}/${a}`:a,label:(t=e.label?.trim()||a,c.DEMO_FORM_FIELD_LABEL_OVERRIDES[a.toLowerCase()]??t),fieldType:o,required:!!e.required,options:s,placeholder:(n=e.placeholder,(l=c.DEMO_FORM_FIELD_PLACEHOLDER_OVERRIDES[a.toLowerCase()])||n?.trim()||void 0)}});return l.length?(0,c.applyDemoFormSiteDefaults)(l):[]}async function g({formId:e,portalId:n,...r}){let l,s,c,u=await (l=e.trim()||(0,a.getDefaultDemoFormId)(),s=(0,a.resolveHubspotPortalId)(n),c=(0,d.getInboundTouchpointSlug)(),(0,o.unstable_cache)(async()=>h(l,c),["hubspot-demo-form-fields",l,s,c],{revalidate:!1,tags:[`hubspot-form-${l}`]})());return(0,t.jsx)(i.HubspotExpandableDemoForm,{formId:e,portalId:(0,a.resolveHubspotPortalId)(n),fields:u,...r})}var x=e.i(521110),v=e.i(225913),b=e.i(945060);let y=(0,v.cva)("my-6 overflow-x-auto rounded-md",{variants:{variant:{light:"bg-greige-100",dark:"bg-black-500"},background:{true:"",false:""}},compoundVariants:[{variant:"light",background:!1,className:"bg-transparent"},{variant:"dark",background:!1,className:"bg-transparent"}],defaultVariants:{variant:"light",background:!0}}),w=(0,v.cva)("min-w-40 text-left",{variants:{variant:{light:"text-body-2 text-muted-foreground",dark:"text-body-2 text-greige-300"}},defaultVariants:{variant:"light"}}),j=(0,v.cva)("min-w-40 text-left align-top",{variants:{variant:{light:"text-foreground",dark:"text-white"},cellStyle:{figures:"font-serif text-headline-3",body:"text-body-2"}},defaultVariants:{variant:"light",cellStyle:"figures"}}),N=(0,v.cva)("border-t",{variants:{variant:{light:"border-border",dark:"border-black-200"}},defaultVariants:{variant:"light"}}),S=(0,v.cva)("mt-4",{variants:{variant:{light:"text-caption-1 text-muted-foreground",dark:"text-caption-1 text-greige-300"}},defaultVariants:{variant:"light"}});function k({rows:e,footnote:n,variant:r="light",background:i=!0,cellStyle:l="figures"}){if(!e.length)return null;let[a,...o]=e,s=a.length;return(0,t.jsxs)("div",{className:(0,b.cn)(y({variant:r,background:i}
1)),children:[(0,t.jsxs)("table",{className:"w-full table-fixed border-collapse",style:{minWidth:`${10*s}rem`},children:[(0,t.jsx)("thead",{children:(0,t.jsx)("tr",{children:a.map(e=>(0,t.jsx)("th",{scope:"col",className:(0,b.cn)("py-2 font-normal",w({variant:r})),children:e},e))})}),(0,t.jsx)("tbody",{children:o.map((e,n)=>(0,t.jsx)("tr",{className:N({variant:r}),children:e.map((e,n)=>(0,t.jsx)("td",{className:(0,b.cn)("py-4",0===n?w({variant:r}):j({variant:r,cellStyle:l})),children:e},n))},n))})]}),n?(0,t.jsx)("p",{className:S({variant:r}),children:n}):null]})}var E=e.i(769234),C=e.i(596687);function T({value:e}){return e?Array.isArray(e)?(0,t.jsx)(_,{value:e}):e:null}let R={block:{normal:({children:e})=>(0,t.jsx)("p",{children:e}),h2:({children:e})=>(0,t.jsx)("h2",{className:"font-serif text-headline-2",children:e}),h3:({children:e})=>(0,t.jsx)("h3",{className:"font-serif text-headline-3",children:e}),h4:({children:e})=>(0,t.jsx)("h4",{className:"font-serif text-subhead-1",children:e}),blockquote:({children:e})=>(0,t.jsx)("blockquote",{className:"font-serif text-body-1",children:e}),hr:()=>(0,t.jsx)("hr",{className:"mt-[1em] mb-2.5 border-border border-t"})},marks:{strong:({children:e})=>(0,t.jsx)("strong",{children:e}),em:({children:e})=>(0,t.jsx)("em",{children:e}),code:({children:e})=>(0,t.jsx)("code",{className:"font-mono",children:e}),underline:({children:e})=>(0,t.jsx)("u",{children:e}),link:({value:e,children:n})=>{let i=(0,l.resolveLink)(e);return i?i.href.startsWith("/")&&!i.href.startsWith("//")?(0,t.jsx)(r.default,{className:"underline",href:i.href,target:i.target,rel:i.rel,children:n}):(0,t.jsx)("a",{className:"underline",href:i.href,target:i.target,rel:i.rel,children:n}):(0,t.jsx)(t.Fragment,{children:n})},footnote:({value:e,children:n,markKey:r})=>{if(!e)return(0,t.jsx)(t.Fragment,{children:n});let i=Number.isFinite(e.reference)?Number(e.reference):1,l={_id:r??e._key??`footnote-${i}`,reference:i};return(0,t.jsxs)(t.Fragment,{children:[n,(0,t.jsx)("sup",{children:(0,t.jsxs)("a",{className:"reference__link text-foreground no-underline hover:text-link-hover",href:`#footnote-${l.reference}-${l._id}`,id:`reference-${l.reference}-${l._id}`,children:["[",i,"]"]})})]})}},list:{bullet:({children:e})=>(0,t.jsx)("ul",{className:"ms-[1.75em] mb-[1.5em] list-disc pl-0",children:e}),number:({children:e})=>(0,t.jsx)("ol",{className:"ms-[1.75em] mb-[1.5em] list-decimal pl-0",children:e})},listItem:{bullet:({children:e})=>(0,t.jsx)("li",{className:"[&+li]:mt-4",children:e}),number:({children:e})=>(0,t.jsx)("li",{className:"[&+li]:mt-4",children:e})},types:{image:({value:e})=>(0,t.jsx)("figure",{className:"my-6 overflow-hidden rounded-xs",children:(0,t.jsx)(x.SanityImage,{image:e,sizes:"(min-width: 768px) 720px, 100vw"})}),blogVideo:({value:e})=>e?.url?(0,t.jsx)("figure",{className:"my-6 overflow-hidden rounded-xs",children:(0,t.jsx)(E.VideoEmbed,{url:e.url,title:e.title??"Video"})}):null,embeddedQuote:({value:e})=>(0,t.jsxs)("figure",{className:"embedded-quote",children:[e.media?(0,t.jsx)("div",{className:"embedded-quote__media",children:(0,t.jsx)("div",{className:"relative aspect-video overflow-hidden",children:(0,t.jsx)(x.SanityImage,{image:e.media,sizes:"(min-width: 768px) 480px, 100vw",className:"block size-full object-cover"})})}):null,(0,t.jsxs)("div",{className:"embedded-quote__content space-y-4 text-center",children:[(0,t.jsx)("blockquote",{className:"font-serif text-headline-2",children:(0,t.jsx)(T,{value:e.quote})}),e.author||e.authorTitle?(0,t.jsxs)("figcaption",{className:"flex justify-center gap-2 text-body-2",children:[e.author?(0,t.jsx)("cite",{className:"not-italic",children:e.author}):null,e.authorTitle?(0,t.jsx)("p",{className:"quote-description text-muted-foreground",children:e.authorTitle}):null]}):null]})]}),postInfoBanner:({value:e})=>(0,t.jsx)("aside",{className:"embedded-info-banner grid grid-cols-1 gap-4 rounded-xs bg-greige-0 p-8 text-black lg:grid-cols-3",children:e.infos?.map(e=>(0,t.jsxs)("div",{children:[e.title?(0,t.jsx)("p",{className:"text-body-2 text-muted-foreground",children:(0,t.jsx)(T,{value:e.title})}):null,e.text?(0,t.jsx)("p",{className:"font-serif text-subhead-2",children:(0,t.jsx)(T,{value:e.text})}):null]},`${JSON.stringify(e.title??"info")}-${JSON.stringify(e.text??"")}`))}),hubspotForm:({value:e})=>e?.formId?(0,t.jsx)("div",{className:"theme-light hubspot-form-panel my-8 rounded-sm bg-background p-6 text-foreground lg:p-8",children:(0,t.jsx)(g,{formId:e.formId,portalId:e.portalId})}):null,customTable:({value:e})=>{let n=(e.table?.rows??[]).map(e=>e.cells??[]);return 0===n.length?null:(0,t.jsx)(k,{rows:n,footnote:e.footnote,variant:"light",cellStyle:e.style??"body"})},engineeringHtmlBlock:({value:e})=>(0,t.jsx)(C.HtmlEmbedBlock,{value:e})}},M={...R,block:{normal:({children:e})=>(0,t.jsx)(t.Fragment,{children:e}),h2:({children:e})=>(0,t.jsx)(t.Fragment,{children:e}),h3:({children:e})=>(0,t.jsx)(t.Fragment,{children:e}),h4:({children:e})=>(0,t.jsx)(t.Fragment,{children:e}),blockquote:({children:e})=>(0,t.jsx)(t.Fragment,{children:e})}};function _({value:e}){return e&&Array.isArray(e)?(0,t.jsx)(t.Fragment,{children:e.map((e,r)=>(0,t.jsxs)("span",{children:[r>0?(0,t.jsx)("br",{}):null,(0,t.jsx)(n.PortableText,{value:[e],components:M})]},e._key??r))}):null}e.s(["InlineValue",0,T,"PortableText",0,function({value:e}){return e&&Array.isArray(e)?(0,t.jsx)(n.PortableText,{value:e,components:R}):null},"hasContent",0,function(e){return"string"==typeof e?e.trim().length>0:!!Array.isArray(e)&&e.length>0}],272754)},406573,e=>{"use strict";var t=e.i(843476),n=e.i(272754);e.s(["RichText",0,function({value:e,className:r}){return Array.isArray(e)&&0!==e.length?(0,t.jsx)("div",{"data-reveal-child":!0,className:r,children:(0,t.jsx)(n.PortableText,{value:e})}):null}])},263930,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(320351),i=e.i(512471),l=e.i(406573),a=e.i(893880),o=e.i(945060),s=e.i(272754);function c({isOpen:e}){return(0,t.jsxs)("span",{className:"relative block size-3 shrink-0 lg:size-4","aria-hidden":"true",children:[(0,t.jsx)("span",{className:(0,o.cn)("absolute top-1/2 left-0 h-0.5 w-full -translate-y-1/2 roun
1ded-full bg-current transition-[opacity,transform] duration-[350ms] ease-in-out",e?"-rotate-90 opacity-0":"rotate-0 opacity-100")}),(0,t.jsx)("span",{className:(0,o.cn)("absolute top-1/2 left-0 h-0.5 w-full -translate-y-1/2 rounded-full bg-current transition-transform duration-[350ms] ease-in-out",e?"rotate-0":"rotate-90")})]})}let u=["h1","h2","h3","h4","h5","h6"];e.s(["Accordion",0,function({sectionId:e,theme:d,items:f,openItems:p="first",semanticLevel:m="h2",eyebrow:h,title:g,subhead:x,body:v,cta:b}){let y=(0,s.hasContent)(g)?function(e){if(!e)return"h3";let t=u.indexOf(e);return t<0||t>=u.length-1?e:u[t+1]}(m):m,[w,j]=(0,n.useState)("all"===p?-2:"none"===p?-1:0),[N,S]=(0,n.useState)("all"===p),[k,E]=(0,n.useState)(!1);(0,n.useEffect)(()=>{let e=()=>E(!0),t=()=>E(!1);return window.addEventListener("beforeprint",e),window.addEventListener("afterprint",t),()=>{window.removeEventListener("beforeprint",e),window.removeEventListener("afterprint",t)}},[]);let C=N||k,T=(0,s.hasContent)(g)||(0,s.hasContent)(v);return f?.length||(0,s.hasContent)(g)?(0,t.jsx)(a.Section,{id:e,theme:d,reveal:!0,children:(0,t.jsxs)("div",{className:"page-grid container space-y-12 lg:px-6",children:[T?(0,t.jsxs)("div",{className:"reveal lg:grid-span-2 space-y-4","data-reveal":!0,children:[(0,s.hasContent)(h)?(0,t.jsx)("p",{className:"text-eyebrow-1",children:(0,t.jsx)(s.InlineValue,{value:h})}):null,(0,s.hasContent)(g)?(0,t.jsx)(m,{className:"word-break-words font-serif text-headline-2 lg:text-headline-1",children:(0,t.jsx)(s.InlineValue,{value:g})}):null,(0,t.jsx)(l.RichText,{className:"font-serif text-subhead-1",value:x}),(0,t.jsx)(l.RichText,{className:"text-body-1",value:v}),(0,t.jsx)(r.CtaList,{items:b})]}):null,f?.length?(0,t.jsx)("div",{className:"col-span-full divide-y divide-border lg:col-span-10 lg:col-start-4 [&>*:last-child]:border-b-0","data-reveal-children":!0,children:f.map((e,n)=>{let r=C||w===n;return(0,t.jsxs)("div",{className:"reveal","data-reveal-child":!0,children:[(0,t.jsx)("details",{open:r||void 0,children:(0,t.jsxs)("summary",{className:"flex cursor-pointer list-none items-center justify-between gap-4 py-6",onClick:e=>{e.preventDefault(),C?(S(!1),E(!1),j(n)):w===n?j(-1):j(n)},children:[(0,t.jsx)(y,{className:"text-body-2 lg:text-body-1",children:e.title}),(0,t.jsx)(c,{isOpen:r})]})}),(0,t.jsx)("div",{className:"grid transition-[grid-template-rows] duration-300 ease-in-out",style:{gridTemplateRows:r?"1fr":"0fr"},children:(0,t.jsx)("div",{className:"overflow-hidden",children:(0,t.jsxs)("div",{className:(0,o.cn)("pb-6 transition-opacity duration-300 ease-in-out",r?"opacity-100":"opacity-0",e.media&&"grid grid-cols-1 gap-6 lg:grid-cols-[1fr_2fr]"),role:"region",children:[e.media?(0,t.jsx)(i.Image,{media:e.media,ratio:"1-1"}):null,e.body?(0,t.jsx)("div",{className:"space-y-4 text-body-3 lg:text-body-2",children:(0,t.jsx)(s.PortableText,{value:e.body})}):null]})})})]},e._key??e.title??String(n))})}):null]})}):null}])},883495,e=>{"use strict";var t,n,r,i,l,a,o,s,c,u,d,f,p,m=function(){return t||"u">typeof window&&(t=window.gsap)&&t.registerPlugin&&t},h=1,g=[],x=[],v=[],b=Date.now,y=function(e,t){return t},w=function(){var e=c.core,t=e.bridge||{},n=e._scrollers,r=e._proxies;n.push.apply(n,x),r.push.apply(r,v),x=n,v=r,y=function(e,n){return t[e](n)}},j=function(e,t){return~v.indexOf(e)&&v[v.indexOf(e)+1][t]},N=function(e){return!!~u.indexOf(e)},S=function(e,t,n,r,i){return e.addEventListener(t,n,{passive:!1!==r,capture:!!i})},k=function(e,t,n,r){return e.removeEventListener(t,n,!!r)},E="scrollLeft",C="scrollTop",T=function(){return d&&d.isPressed||x.cache++},R=function(e,t){var n=function n(i){if(i||0===i){h&&(r.history.scrollRestoration="manual");var l=d&&d.isPressed;e(i=n.v=Math.round(i)||(d&&d.iOS?1:0)),n.cacheID=x.cache,l&&y("ss",i)}else(t||x.cache!==n.cacheID||y("ref"))&&(n.cacheID=x.cache,n.v=e());return n.v+n.offset};return n.offset=0,e&&n},M={s:E,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:R(function(e){return arguments.length?r.scrollTo(e,_.sc()):r.pageXOffset||i[E]||l[E]||a[E]||0})},_={s:C,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:M,sc:R(function(e){return arguments.length?r.scrollTo(M.sc(),e):r.pageYOffset||i[C]||l[C]||a[C]||0})},P=function(e,n){return(n&&n._ctx&&n._ctx.selector||t.utils.toArray)(e)[0]||("string"==typeof e&&!1!==t.config().nullTargetWarn?console.warn("Element not found:",e):null)},D=function(e,t){for(var n=t.length;n--;)if(t[n]===e||t[n].contains(e))return!0;return!1},I=function(e,n){var r=n.s,a=n.sc;N(e)&&(e=i.scrollingElement||l);var o=x.indexOf(e),s=a===_.sc?1:2;~o||(o=x.push(e)-1),x[o+s]||S(e,"scroll",T);var c=x[o+s],u=c||(x[o+s]=R(j(e,r),!0)||(N(e)?a:R(function(t){return arguments.length?e[r]=t:e[r]})));return u.target=e,c||(u.smooth="smooth"===t.getProperty(e,"scrollBehavior")),u},A=function(e,t,n){var r=e,i=e,l=b(),a=l,o=t||50,s=Math.max(500,3*o),c=function(e,t){var s=b();t||s-l>o?(i=r,r=e,a=l,l=s):n?r+=e:r=i+(e-i)/(s-a)*(l-a)};return{update:c,reset:function(){i=r=n?0:r,a=l=0},getVelocity:function(e){var t=a,o=i,u=b();return(e||0===e)&&e!==r&&c(e),l===a||u-a>s?0:(r+(n?o:-o))/((n?u:l)-t)*1e3}}},O=function(e,t){return t&&!e._gsapAllow&&!1!==e.cancelable&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},L=function(e){var t=Math.max.apply(Math,e),n=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(n)?t:n},F=function(){(c=t.core.globals().ScrollTrigger)&&c.core&&w()},z=function(e){return t=e||m(),!n&&t&&"u">typeof document&&document.body&&(r=window,l=(i=document).documentElement,a=i.body,u=[r,i,l,a],t.utils.clamp,p=t.core.context||function(){},s="onpointerenter"in a?"pointer":"mouse",o=B.isTouch=r.matchMedia&&r.matchMedia("(hover: none), (pointer: coarse)").matches?1:2*("ontouchstart"in r||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),f=B.eventTypes=("ontouchstart"in l?"touchstart,touchmove,touchcancel,touchend":!("onpointerdown"in l)?"mousedown,mousemove,mouseup,mouseup":"pointerdown,pointermove,pointercancel,pointerup").split(","),setTimeout(function(){return h=0},500),n=1),c||F(),n};M.op=_,x.cache=0;var B=function(){var e;function u(e){this.init(e)}return u.prototype.init=function(e){n||z(t)||console.warn("Please gsap.registerPlugin(Observer)"),c||F();var u=e.tolerance,m=e.dragMinimum,h=e.type,x=e.target,v=e.lineHeight,y=e.debounce,w=e.preventDefault,j=e.onStop,E=e.onStopDelay,C=e.ignore,R=e.wheelSpeed,B=e.event,V=e.onDragStart,H=e.onDragEnd,Y=e.onDrag,W=e.onPress,$=e.onRelease,X=e.onRight,q=e.onLeft,U=e.onUp,G=e.onDown,K=e.onCh
vendor: 1,496 bytes, line 1
1angeX,Z=e.onChangeY,J=e.onChange,Q=e.onToggleX,ee=e.onToggleY,et=e.onHover,en=e.onHoverEnd,er=e.onMove,ei=e.ignoreCheck,el=e.isNormalizer,ea=e.onGestureStart,eo=e.onGestureEnd,es=e.onWheel,ec=e.onEnable,eu=e.onDisable,ed=e.onClick,ef=e.scrollSpeed,ep=e.capture,em=e.allowClicks,eh=e.lockAxis,eg=e.onLockAxis;this.target=x=P(x)||l,this.vars=e,C&&(C=t.utils.toArray(C)),u=u||1e-9,m=m||0,R=R||1,ef=ef||1,h=h||"wheel,touch,pointer",y=!1!==y,v||(v=parseFloat(r.getComputedStyle(a).lineHeight)||22);var ex,ev,eb,ey,ew,ej,eN,eS=this,ek=0,eE=0,eC=e.passive||!w&&!1!==e.passive,eT=I(x,M),eR=I(x,_),eM=eT(),e_=eR(),eP=~h.indexOf("touch")&&!~h.indexOf("pointer")&&"pointerdown"===f[0],eD=N(x),eI=x.ownerDocument||i,eA=[0,0,0],eO=[0,0,0],eL=0,eF=function(){return eL=b()},ez=function(e,t){return(eS.event=e)&&C&&D(e.target,C)||t&&eP&&"touch"!==e.pointerType||ei&&ei(e,t)},eB=function(){var e=eS.deltaX=L(eA),t=eS.deltaY=L(eO),n=Math.abs(e)>=u,r=Math.abs(t)>=u;J&&(n||r)&&J(eS,e,t,eA,eO),n&&(X&&eS.deltaX>0&&X(eS),q&&eS.deltaX<0&&q(eS),K&&K(eS),Q&&eS.deltaX<0!=ek<0&&Q(eS),ek=eS.deltaX,eA[0]=eA[1]=eA[2]=0),r&&(G&&eS.deltaY>0&&G(eS),U&&eS.deltaY<0&&U(eS),Z&&Z(eS),ee&&eS.deltaY<0!=eE<0&&ee(eS),eE=eS.deltaY,eO[0]=eO[1]=eO[2]=0),(ey||eb)&&(er&&er(eS),eb&&(V&&1===eb&&V(eS),Y&&Y(eS),eb=0),ey=!1),ej&&(ej=!1,1)&&eg&&eg(eS),ew&&(es(eS),ew=!1),ex=0},eV=function(e,t,n){eA[n]+=e,eO[n]+=t,eS._vx.update(e),eS._vy.update(t),y?ex||(ex=requestAnimationFrame(eB)):eB()},eH=function(e,t){eh&&!eN&&(eS.axis=eN=Math.abs(e)>
vendor: 24,261 bytes, line 1
1Math.abs(t)?"x":"y",ej=!0),"y"!==eN&&(eA[2]+=e,eS._vx.update(e,!0)),"x"!==eN&&(eO[2]+=t,eS._vy.update(t,!0)),y?ex||(ex=requestAnimationFrame(eB)):eB()},eY=function(e){if(!ez(e,1)){var t=(e=O(e,w)).clientX,n=e.clientY,r=t-eS.x,i=n-eS.y,l=eS.isDragging;eS.x=t,eS.y=n,(l||(r||i)&&(Math.abs(eS.startX-t)>=m||Math.abs(eS.startY-n)>=m))&&(eb||(eb=l?2:1),l||(eS.isDragging=!0),eH(r,i))}},eW=eS.onPress=function(e){ez(e,1)||e&&e.button||(eS.axis=eN=null,ev.pause(),eS.isPressed=!0,e=O(e),ek=eE=0,eS.startX=eS.x=e.clientX,eS.startY=eS.y=e.clientY,eS._vx.reset(),eS._vy.reset(),S(el?x:eI,f[1],eY,eC,!0),eS.deltaX=eS.deltaY=0,W&&W(eS))},e$=eS.onRelease=function(e){if(!ez(e,1)){k(el?x:eI,f[1],eY,!0);var n=!isNaN(eS.y-eS.startY),i=eS.isDragging,l=i&&(Math.abs(eS.x-eS.startX)>3||Math.abs(eS.y-eS.startY)>3),a=O(e);!l&&n&&(eS._vx.reset(),eS._vy.reset(),w&&em&&t.delayedCall(.08,function(){if(b()-eL>300&&!e.defaultPrevented){if(e.target.click)e.target.click();else if(eI.createEvent){var t=eI.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,r,1,a.screenX,a.screenY,a.clientX,a.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(t)}}})),eS.isDragging=eS.isGesturing=eS.isPressed=!1,j&&i&&!el&&ev.restart(!0),eb&&eB(),H&&i&&H(eS),$&&$(eS,l)}},eX=function(e){return e.touches&&e.touches.length>1&&(eS.isGesturing=!0)&&ea(e,eS.isDragging)},eq=function(){return eS.isGesturing=!1,eo(eS)},eU=function(e){if(!ez(e)){var t=eT(),n=eR();eV((t-eM)*ef,(n-e_)*ef,1),eM=t,e_=n,j&&ev.restart(!0)}},eG=function(e){if(!ez(e)){e=O(e,w),es&&(ew=!0);var t=(1===e.deltaMode?v:2===e.deltaMode?r.innerHeight:1)*R;eV(e.deltaX*t,e.deltaY*t,0),j&&!el&&ev.restart(!0)}},eK=function(e){if(!ez(e)){var t=e.clientX,n=e.clientY,r=t-eS.x,i=n-eS.y;eS.x=t,eS.y=n,ey=!0,j&&ev.restart(!0),(r||i)&&eH(r,i)}},eZ=function(e){eS.event=e,et(eS)},eJ=function(e){eS.event=e,en(eS)},eQ=function(e){return ez(e)||O(e,w)&&ed(eS)};ev=eS._dc=t.delayedCall(E||.25,function(){eS._vx.reset(),eS._vy.reset(),ev.pause(),j&&j(eS)}).pause(),eS.deltaX=eS.deltaY=0,eS._vx=A(0,50,!0),eS._vy=A(0,50,!0),eS.scrollX=eT,eS.scrollY=eR,eS.isDragging=eS.isGesturing=eS.isPressed=!1,p(this),eS.enable=function(e){return!eS.isEnabled&&(S(eD?eI:x,"scroll",T),h.indexOf("scroll")>=0&&S(eD?eI:x,"scroll",eU,eC,ep),h.indexOf("wheel")>=0&&S(x,"wheel",eG,eC,ep),(h.indexOf("touch")>=0&&o||h.indexOf("pointer")>=0)&&(S(x,f[0],eW,eC,ep),S(eI,f[2],e$),S(eI,f[3],e$),em&&S(x,"click",eF,!0,!0),ed&&S(x,"click",eQ),ea&&S(eI,"gesturestart",eX),eo&&S(eI,"gestureend",eq),et&&S(x,s+"enter",eZ),en&&S(x,s+"leave",eJ),er&&S(x,s+"move",eK)),eS.isEnabled=!0,eS.isDragging=eS.isGesturing=eS.isPressed=ey=eb=!1,eS._vx.reset(),eS._vy.reset(),eM=eT(),e_=eR(),e&&e.type&&eW(e),ec&&ec(eS)),eS},eS.disable=function(){eS.isEnabled&&(g.filter(function(e){return e!==eS&&N(e.target)}).length||k(eD?eI:x,"scroll",T),eS.isPressed&&(eS._vx.reset(),eS._vy.reset(),k(el?x:eI,f[1],eY,!0)),k(eD?eI:x,"scroll",eU,ep),k(x,"wheel",eG,ep),k(x,f[0],eW,ep),k(eI,f[2],e$),k(eI,f[3],e$),k(x,"click",eF,!0),k(x,"click",eQ),k(eI,"gesturestart",eX),k(eI,"gestureend",eq),k(x,s+"enter",eZ),k(x,s+"leave",eJ),k(x,s+"move",eK),eS.isEnabled=eS.isPressed=eS.isDragging=!1,eu&&eu(eS))},eS.kill=eS.revert=function(){eS.disable();var e=g.indexOf(eS);e>=0&&g.splice(e,1),d===eS&&(d=0)},g.push(eS),el&&N(x)&&(d=eS),eS.enable(B)},e=[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(u.prototype,e),u}();B.version="3.15.0",B.create=function(e){return new B(e)},B.register=z,B.getAll=function(){return g.slice()},B.getById=function(e){return g.filter(function(t){return t.vars.id===e})[0]},m()&&t.registerPlugin(B);var V,H,Y,W,$,X,q,U,G,K,Z,J,Q,ee,et,en,er,ei,el,ea,eo,es,ec,eu,ed,ef,ep,em,eh,eg,ex,ev,eb,ey,ew,ej,eN,eS,ek=1,eE=Date.now,eC=eE(),eT=0,eR=0,eM=function(e,t,n){var r=eW(e)&&("clamp("===e.substr(0,6)||e.indexOf("max")>-1);return n["_"+t+"Clamp"]=r,r?e.substr(6,e.length-7):e},e_=function(e,t){return t&&(!eW(e)||"clamp("!==e.substr(0,6))?"clamp("+e+")":e},eP=function(){return ee=1},eD=function(){return ee=0},eI=function(e){return e},eA=function(e){return Math.round(1e5*e)/1e5||0},eO=function(){return"u">typeof window},eL=function(){return V||eO()&&(V=window.gsap)&&V.registerPlugin&&V},eF=function(e){return!!~q.indexOf(e)},ez=function(e){return("Height"===e?ex:Y["inner"+e])||$["client"+e]||X["client"+e]},eB=function(e){return j(e,"getBoundingClientRect")||(eF(e)?function(){return tq.width=Y.innerWidth,tq.height=ex,tq}:function(){return tn(e)})},eV=function(e,t,n){var r=n.d,i=n.d2,l=n.a;return(l=j(e,"getBoundingClientRect"))?function(){return l()[r]}:function(){return(t?ez(i):e["client"+i])||0}},eH=function(e,t){var n=t.s,r=t.d2,i=t.d,l=t.a;return Math.max(0,(l=j(e,n="scroll"+r))?l()-eB(e)()[i]:eF(e)?($[n]||X[n])-ez(r):e[n]-e["offset"+r])},eY=function(e,t){for(var n=0;n<el.length;n+=3)(!t||~t.indexOf(el[n+1]))&&e(el[n],el[n+1],el[n+2])},eW=function(e){return"string"==typeof e},e$=function(e){return"function"==typeof e},eX=function(e){return"number"==typeof e},eq=function(e){return"object"==typeof e},eU=function(e,t,n){return e&&e.progress(+!t)&&n&&e.pause()},eG=function(e,t,n){if(e.enabled){var r=e._ctx?e._ctx.add(function(){return t(e,n)}):t(e,n);r&&r.totalTime&&(e.callbackAnimation=r)}},eK=Math.abs,eZ="left",eJ="right",eQ="bottom",e0="width",e1="height",e2="Right",e5="Left",e3="Bottom",e4="padding",e6="margin",e8="Width",e7="Height",e9=function(e){return Y.getComputedStyle(e.nodeType===Node.DOCUMENT_NODE?e.scrollingElement:e)},te=function(e){var t=e9(e).position;e.style.position="absolute"===t||"fixed"===t?t:"relative"},tt=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},tn=function(e,t){var n=t&&"matrix(1, 0, 0, 1, 0, 0)"!==e9(e)[et]&&V.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),r=e.getBoundingClientRect?e.getBoundingClientRect():e.scrollingElement.getBoundingClientRect();return n&&n.progress(0).kill(),r},tr=function(e,t){var n=t.d2;return e["offset"+n]||e["client"+n]||0},ti=function(e){var t,n=[],r=e.labels,i=e.duration();for(t in r)n.push(r[t]/i);return n},tl=function(e){var t=V.utils.snap(e),n=Array.isArray(e)&&e.slice(0).sort(function(e,t){return e-t});return n?function(e,r,i){var l;if(void 0===i&&(i=.001),!r)return t(e);if(r>0){for(e-=i,l=0;l<n.length;l++)if(n[l]>=e)return n[l];return n[l-1]}for(l=n.length,e+=i;l--;)if(n[l]<=e)return n[l];return n[0]}:function(n,r,i){void 0===i&&(i=.001);var l=t(n);return!r||Math.abs(l-n)<i||l-n<0==r<0?l:t(r<0?n-e:n+e)}},ta=function(e,t,n,r){return n.split(",").forEach(function(n){return e(t,n,r)})},to=function(e,t,n,r,i){return e.addEventListener(t,n,{passive:!r,capture:!!i})},ts=function(e,t,n,r){return e.removeEventListener(t,n,!!r)},tc=function(e,t,n){(n=n&&n.wheelHandler)&&(e(t,"wheel",n),e(t,"touchmove",n))},tu={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},td={toggleActions:"play",anticipatePin:0},tf={top:0,left:0,center:.5,bottom:1,right:1},tp=function(e,t){if(eW(e)){var n=e.indexOf("="),r=~n?(e.charAt(n-1)+1)*parseFloat(e.substr(n+1)):0;~n&&(e.indexOf("%")>n&&(r*=t/100),e=e.substr(0,n-1)),e=r+(e in tf?tf[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e},tm=function(e,t,n,r,i,l,a,o){var s=i.startColor,c=i.endColor,u=i.fontSize,d=i.indent,f=i.fontWeight,p=W.createElement("div"),m=eF(n)||"fixed"===j(n,"pinType"),h=-1!==e.indexOf("scroller"),g=m?X:"IFRAME"===n.tagName?n.contentDocument.body:n,x=-1!==e.indexOf("start"),v=x?s:c,b="border-color:"+v+";font-size:"+u+";color:"+v+";font-weight:"+f+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return b+="position:"+((h||o)&&m?"fixed;":"absolute;"),(h||o||!m)&&(b+=(r===_?eJ:eQ)+":"+(l+parseFloat(d))+"px;"),a&&(b+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),p._isStart=x,p.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),p.style.cssText=b,p.innerText=t||0===t?e+"-"+t:e,g.children[0]?g.insertBefore(p,g.children[0]):g.appendChild(p),p._offset=p["offset"+r.op.d2],th(p,0,r,x),p},th=function(e,t,n,r){var i={display:"block"},l=n[r?"os2":"p2"],a=n[r?"p2":"os2"];e._isFlipped=r,i[n.a+"Percent"]=r?-100:0,i[n.a]=r?"1px":0,i["border"+l+e8]=1,i["border"+a+e8]=0,i[n.p]=t+"px",V.set(e,i)},tg=[],tx={},tv=function(){return eE()-eT>34&&(ew||(ew=requestAnimationFrame(tF)))},tb=function(){ec&&ec.isPressed&&!(ec.startX>X.clientWidth)||(x.cache++,ec?ew||(ew=requestAnimationFrame(tF)):tF(),eT||tk("scrollStart"),eT=eE())},ty=function(){ef=Y.innerWidth,ed=Y.innerHeight},tw=function(e){x.cache++,(!0===e||!Q&&!es&&!W.fullscreenElement&&!W.webkitFullscreenElement&&(!eu||ef!==Y.innerWidth||Math.abs(Y.innerHeight-ed)>.25*Y.innerHeight))&&U.restart(!0)},tj={},tN=[],tS=function e(){return ts(t0,"scrollEnd",e)||tA(!0)},tk=function(e){return tj[e]&&tj[e].map(function(e){return e()})||tN},tE=[],tC=function(e){for(var t=0;t<tE.length;t+=5)(!e||tE[t+4]&&tE[t+4].query===e)&&(tE[t].style.cssText=tE[t+1],tE[t].getBBox&&tE[t].setAttribute("transform",tE[t+2]||""),tE[t+3].uncache=1)},tT=function(){return x.forEach(function(e){return e$(e)&&++e.cacheID&&(e.rec=e())})},tR=function(e,t){var n;for(en=0;en<tg.length;en++)(n=tg[en])&&(!t||n._ctx===t)&&(e?n.kill(1):n.revert(!0,!0));ev=!0,t&&tC(t),t||tk("revert")},tM=function(e,t){x.cache++,(t||!ej)&&x.forEach(function(e){return e$(e)&&e.cacheID++&&(e.rec=0)}),eW(e)&&(Y.history.scrollRestoration=eh=e)},t_=0,tP=function(){if(eN!==t_){var e=eN=t_;requestAnimationFrame(function(){return e===t_&&tA(!0)})}},tD=function(){X.appendChild(eg),ex=!ec&&eg.offsetHeight||Y.innerHeight,X.removeChild(eg)},tI=function(e){return G(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(t){return t.style.display=e?"none":"block"})},tA=function(e,t){if($=W.documentElement,X=W.body,q=[Y,W,$,X],eT&&!e&&!ev)return void to(t0,"scrollEnd",tS);tD(),ej=t0.isRefreshing=!0,ev||tT();var n=tk("refreshInit");ea&&t0.sort(),t||tR(),x.forEach(function(e){e$(e)&&(e.smooth&&(e.target.style.scrollBehavior="auto"),e(0))}),tg.slice(0).forEach(function(e){return e.refresh()}),ev=!1,tg.forEach(function(e){if(e._subPinOffset&&e.pin){var t=e.vars.horizontal?"offsetWidth":"offsetHeight",n=e.pin[t];e.revert(!0,1),e.adjustPinSpacing(e.pin[t]-n),e.refresh()}}),eb=1,tI(!0),tg.forEach(function(e){var t=eH(e.scroller,e._dir),n="max"===e.vars.end||e._endClamp&&e.end>t,r=e._startClamp&&e.start>=t;(n||r)&&e.setPositions(r?t-1:e.start,n?Math.max(r?t:e.start+1,t):e.end,!0)}),tI(!1),eb=0,n.forEach(function(e){return e&&e.render&&e.render(-1)}),x.forEach(function(e){e$(e)&&(e.smooth&&requestAnimationFrame(function(){return e.target.style.scrollBehavior="smooth"}),e.rec&&e(e.rec))}),tM(eh,1),U.pause(),t_++,ej=2,tF(2),tg.forEach(function(e){return e$(e.vars.onRefresh)&&e.vars.onRefresh(e)}),ej=t0.isRefreshing=!1,tk("refresh")},tO=0,tL=1,tF=function(e){if(2===e||!ej&&!ev){t0.isUpdating=!0,eS&&eS.update(0);var t=tg.length,n=eE(),r=n-eC>=50,i=t&&tg[0].scroll();if(tL=tO>i?-1:1,ej||(tO=i),r&&(eT&&!ee&&n-eT>200&&(eT=0,tk("scrollEnd")),Z=eC,eC=n),tL<0){for(en=t;en-- >0;)tg[en]&&tg[en].update(0,r);tL=1}else for(en=0;en<t;en++)tg[en]&&tg[en].update(0,r);t0.isUpdating=!1}ew=0},tz=[eZ,"top",eQ,eJ,e6+e3,e6+e2,e6+"Top",e6+e5,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],tB=tz.concat([e0,e1,"boxSizing","max"+e8,"max"+e7,"position",e6,e4,e4+"Top",e4+e2,e4+e3,e4+e5]),tV=function(e,t,n){tW(n);var r=e._gsap;if(r.spacerIsNative)tW(r.spacerState);else if(e._gsap.swappedIn){var i=t.parentNode;i&&(i.insertBefore(e,t),i.removeChild(t))}e._gsap.swappedIn=!1},tH=function(e,t,n,r){if(!e._gsap.swappedIn){for(var i,l=tz.length,a=t.style,o=e.style;l--;)a[i=tz[l]]=n[i];a.position="absolute"===n.position?"absolute":"relative","inline"===n.display&&(a.display="inline-block"),o[eQ]=o[eJ]="auto",a.flexBasis=n.flexBasis||"auto",a.overflow="visible",a.boxSizing="border-box",a[e0]=tr(e,M)+"px",a[e1]=tr(e,_)+"px",a[e4]=o[e6]=o.top=o[eZ]="0",tW(r),o[e0]=o["max"+e8]=n[e0],o[e1]=o["max"+e7]=n[e1],o[e4]=n[e4],e.parentNode!==t&&(e.parentNode.insertBefore(t,e),t.appendChild(e)),e._gsap.swappedIn=!0}},tY=/([A-Z])/g,tW=function(e){if(e){var t,n,r=e.t.style,i=e.length,l=0;for((e.t._gsap||V.core.getCache(e.t)).uncache=1;l<i;l+=2)n=e[l+1],t=e[l],n?r[t]=n:r[t]&&r.removeProperty(t.replace(tY,"-$1").toLowerCase())}},t$=function(e){for(var t=tB.length,n=e.style,r=[],i=0;i<t;i++)r.push(tB[i],n[tB[i]]);return r.t=e,r},tX=function(e,t,n){for(var r,i=[],l=e.length,a=8*!!n;a<l;a+=2)r=e[a],i.push(r,r in t?t[r]:e[a+1]);return i.t=e.t,i},tq={left:0,top:0},tU=function(e,t,n,r,i,l,a,o,s,c,u,d,f,p){e$(e)&&(e=e(o)),eW(e)&&"max"===e.substr(0,3)&&(e=d+("="===e.charAt(4)?tp("0"+e.substr(3),n):0));var m,h,g,x=f?f.time():0;if(f&&f.seek(0),isNaN(e)||(e*=1),eX(e))f&&(e=V.utils.mapRange(f.scrollTrigger.start,f.scrollTrigger.end,0,d,e)),a&&th(a,n,r,!0);else{e$(t)&&(t=t(o));var v,b,y,w,j=(e||"0").split(" ");(v=tn(g=P(t,o)||X)||{}).left||v.top||"none"!==e9(g).display||(w=g.style.display,g.style.display="block",v=tn(g),w?g.style.display=w:g.style.removeProperty("display")),b=tp(j[0],v[r.d]),y=tp(j[1]||"0",n),e=v[r.p]-s[r.p]-c+b+i-y,a&&th(a,y,r,n-y<20||a._isStart&&y>20),n-=n-y}if(p&&(o[p]=e||-.001,e<0&&(e=0)),l){var N=e+n,S=l._isStart;m="scroll"+r.d2,th(l,N,r,S&&N>20||!S&&(u?Math.max(X[m],$[m]):l.parentNode[m])<=N+1),u&&(s=tn(a),u&&(l.style[r.op.p]=s[r.op.p]-r.op.m-l._offset+"px"))}return f&&g&&(m=tn(g),f.seek(d),h=tn(g),f._caScrollDist=m[r.p]-h[r.p],e=e/f._caScrollDist*d),f&&f.seek(x),f?e:Math.round(e)},tG=/(webkit|moz|length|cssText|inset)/i,tK=function(e,t,n,r){if(e.parentNode!==t){var i,l,a=e.style;if(t===X){for(i in e._stOrig=a.cssText,l=e9(e))+i||tG.test(i)||!l[i]||"string"!=typeof a[i]||"0"===i||(a[i]=l[i]);a.top=n,a.left=r}else a.cssText=e._stOrig;V.core.getCache(e).uncache=1,t.appendChild(e)}},tZ=function(e,t,n){var r=t,i=r;return function(t){var l=Math.round(e());return l!==r&&l!==i&&Math.abs(l-r)>3&&Math.abs(l-i)>3&&(t=l,n&&n()),i=r,r=Math.round(t)}},tJ=function(e,t,n){var r={};r[t.p]="+="+n,V.set(e,r)},tQ=function(e,t){var n=I(e,t),r="_scroll"+t.p2,i=function t(i,l,a,o,s){var c=t.tween,u=l.onComplete,d={};a=a||n();var f=tZ(n,a,function(){c.kill(),t.tween=0});return s=o&&s||0,o=o||i-a,c&&c.kill(),l[r]=i,l.inherit=!1,l.modifiers=d,d[r]=function(){return f(a+o*c.ratio+s*c.ratio*c.ratio)},l.onUpdate=function(){x.cache++,t.tween&&tF()},l.onComplete=function(){t.tween=0,u&&u.call(c)},c=t.tween=V.to(e,l)};return e[r]=n,n.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},to(e,"wheel",n.wheelHandler),t0.isTouch&&to(e,"touchmove",n.wheelHandler),i},t0=function(){function e(t,n){H||e.register(V)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),em(this),this.init(t,n)}return e.prototype.init=function(t,n){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!eR){this.update=this.refresh=this.kill=eI;return}var r,i,l,a,o,s,c,u,d,f,p,m,h,g,b,y,w,N,S,k,E,C,T,R,D,A,O,L,F,z,B,H,q,U,J,et,er,ei,el,es,ec,eu=t=tt(eW(t)||eX(t)||t.nodeType?{trigger:t}:t,td),ed=eu.onUpdate,ef=eu.toggleClass,ep=eu.id,em=eu.onToggle,eh=eu.onRefresh,eg=eu.scrub,ex=eu.trigger,ev=eu.pin,ew=eu.pinSpacing,eN=eu.invalidateOnRefresh,eC=eu.anticipatePin,eP=eu.onScrubComplete,eD=eu.onSnapComplete,eO=eu.once,eL=eu.snap,ez=eu.pinReparent,eY=eu.pinSpacer,eZ=eu.containerAnimation,eJ=eu.fastScrollEnd,eQ=eu.preventOverlaps,ta=t.horizontal||t.containerAnimation&&!1!==t.horizontal?M:_,tc=!eg&&0!==eg,tf=P(t.scroller||Y),th=V.core.getCache(tf),tv=eF(tf),ty=("pinType"in t?t.pinType:j(tf,"pinType")||tv&&"fixed")==="fixed",tj=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],tN=tc&&t.toggleActions.split(" "),tk="markers"in t?t.markers:td.markers,tE=tv?0:parseFloat(e9(tf)["border"+ta.p2+e8])||0,tC=this,tT=t.onRefreshInit&&function(){return t.onRefreshInit(tC)},tR=eV(tf,tv,ta),tM=!tv||~v.indexOf(tf)?eB(tf):function(){return tq},t_=0,tD=0,tI=0,tA=I(tf,ta);if(tC._startClamp=tC._endClamp=!1,tC._dir=ta,eC*=45,tC.scroller=tf,tC.scroll=eZ?eZ.time.bind(eZ):tA,s=tA(),tC.vars=t,n=n||t.animation,"refreshPriority"in t&&(ea=1,-9999===t.refreshPriority&&(eS=tC)),th.tweenScroll=th.tweenScroll||{top:tQ(tf,_),left:tQ(tf,M)},tC.tweenTo=l=th.tweenScroll[ta.p],tC.scrubDuration=function(e){(J=eX(e)&&e)?U?U.duration(e):U=V.to(n,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:J,paused:!0,onComplete:function(){return eP&&eP(tC)}}):(U&&U.progress(1).kill(),U=0)},n&&(n.vars.lazy=!1,n._initted&&!tC.isReverted||!1!==n.vars.immediateRender&&!1!==t.immediateRender&&n.duration()&&n.render(0,!0,!0),tC.animation=n.pause(),n.scrollTrigger=tC,tC.scrubDuration(eg),H=0,ep||(ep=n.vars.id)),eL&&((!eq(eL)||eL.push)&&(eL={snapTo:eL}),"scrollBehavior"in X.style&&V.set(tv?[X,$]:tf,{scrollBehavior:"auto"}),x.forEach(function(e){return e$(e)&&e.target===(tv?W.scrollingElement||$:tf)&&(e.smooth=!1)}),o=e$(eL.snapTo)?eL.snapTo:"labels"===eL.snapTo?(r=n,function(e){return V.utils.snap(ti(r),e)}):"labelsDirectional"===eL.snapTo?(i=n,function(e,t){return tl(ti(i))(e,t.direction)}):!1!==eL.directional?function(e,t){return tl(eL.snapTo)(e,eE()-tD<500?0:t.direction)}:V.utils.snap(eL.snapTo),et=eq(et=eL.duration||{min:.1,max:2})?K(et.min,et.max):K(et,et),er=V.delayedCall(eL.delay||J/2||.1,function(){var e=tA(),t=eE()-tD<500,r=l.tween;if((t||10>Math.abs(tC.getVelocity()))&&!r&&!ee&&t_!==e){var i,a,s=(e-u)/y,c=n&&!tc?n.totalProgress():s,f=t?0:(c-q)/(eE()-Z)*1e3||0,p=V.utils.clamp(-s,1-s,eK(f/2)*f/.185),m=s+(!1===eL.inertia?0:p),h=eL,g=h.onStart,x=h.onInterrupt,v=h.onComplete;if(eX(i=o(m,tC))||(i=m),a=Math.max(0,Math.round(u+i*y)),e<=d&&e>=u&&a!==e){if(r&&!r._initted&&r.data<=eK(a-e))return;!1===eL.inertia&&(p=i-s),l(a,{duration:et(eK(.185*Math.max(eK(m-c),eK(i-c))/f/.05||0)),ease:eL.ease||"power3",data:eK(a-e),onInterrupt:function(){return er.restart(!0)&&x&&eG(tC,x)},onComplete:function(){tC.update(),t_=tA(),n&&!tc&&(U?U.resetTo("totalProgress",i,n._tTime/n._tDur):n.progress(i)),H=q=n&&!tc?n.totalProgress():tC.progress,eD&&eD(tC),v&&eG(tC,v)}},e,p*y,a-e-p*y),g&&eG(tC,g,l.tween)}}else tC.isActive&&t_!==e&&er.restart(!0)}).pause()),ep&&(tx[ep]=tC),(ec=(ex=tC.trigger=P(ex||!0!==ev&&ev))&&ex._gsap&&ex._gsap.stRevert)&&(ec=ec(tC)),ev=!0===ev?ex:P(ev),eW(ef)&&(ef={targets:ex,className:ef}),ev&&(!1===ew||ew===e6||(ew=(!!ew||!ev.parentNode||!ev.parentNode.style||"flex"!==e9(ev.parentNode).display)&&e4),tC.pin=ev,(a=V.core.getCache(ev)).spacer?w=a.pinState:(eY&&((eY=P(eY))&&!eY.nodeType&&(eY=eY.current||eY.nativeElement),a.spacerIsNative=!!eY,eY&&(a.spacerState=t$(eY))),a.spacer=k=eY||W.createElement("div"),k.classList.add("pin-spacer"),ep&&k.classList.add("pin-spacer-"+ep),a.pinState=w=t$(ev)),!1!==t.force3D&&V.set(ev,{force3D:!0}),tC.spacer=k=a.spacer,A=(B=e9(ev))[ew+ta.os2],C=V.getProperty(ev),T=V.quickSetter(ev,ta.a,"px"),tH(ev,k,B),S=t$(ev)),tk){g=eq(tk)?tt(tk,tu):tu,m=tm("scroller-start",ep,tf,ta,g,0),h=tm("scroller-end",ep,tf,ta,g,0,m),E=m["offset"+ta.op.d2];var tO=P(j(tf,"content")||tf);f=this.markerStart=tm("start",ep,tO,ta,g,E,0,eZ),p=this.markerEnd=tm("end",ep,tO,ta,g,E,0,eZ),eZ&&(es=V.quickSetter([f,p],ta.a,"px")),ty||v.length&&!0===j(tf,"fixedMarkers")||(te(tv?X:tf),V.set([m,h],{force3D:!0}),L=V.quickSetter(m,ta.a,"px"),z=V.quickSetter(h,ta.a,"px"))}if(eZ){var tF=eZ.vars.onUpdate,tz=eZ.vars.onUpdateParams;eZ.eventCallback("onUpdate",function(){tC.update(0,0,1),tF&&tF.apply(eZ,tz||[])})}if(tC.previous=function(){return tg[tg.indexOf(tC)-1]},tC.next=function(){return tg[tg.indexOf(tC)+1]},tC.revert=function(e,t){if(!t)return tC.kill(!0);var r=!1!==e||!tC.enabled,i=Q;r!==tC.isReverted&&(r&&(ei=Math.max(tA(),tC.scroll.rec||0),tI=tC.progress,el=n&&n.progress()),f&&[f,p,m,h].forEach(function(e){return e.style.display=r?"none":"block"}),r&&(Q=tC,tC.update(r)),!ev||ez&&tC.isActive||(r?tV(ev,k,w):tH(ev,k,e9(ev),O)),r||tC.update(r),Q=i,tC.isReverted=r)},tC.refresh=function(r,i,a,o){if(!Q&&tC.enabled||i){if(ev&&r&&eT)return void to(e,"scrollEnd",tS);!ej&&tT&&tT(tC),Q=tC,l.tween&&!a&&(l.tween.kill(),l.tween=0),U&&U.pause(),eN&&n&&(n.revert({kill:!1}).invalidate(),n.getChildren?n.getChildren(!0,!0,!1).forEach(function(e){return e.vars.immediateRender&&e.render(0,!0,!0)}):n.vars.immediateRender&&n.render(0,!0,!0)),tC.isReverted||tC.revert(!0,!0),tC._subPinOffset=!1;var g,x,v,j,E,T,A,L,z,B,H,Y,q,G=tR(),K=tM(),Z=eZ?eZ.duration():eH(tf,ta),J=y<=.01||!y,ee=0,et=o||0,en=eq(a)?a.end:t.end,ea=t.endTrigger||ex,es=eq(a)?a.start:t.start||(0!==t.start&&ex?ev?"0 0":"0 100%":0),ec=tC.pinnedContainer=t.pinnedContainer&&P(t.pinnedContainer,tC),eu=ex&&Math.max(0,tg.indexOf(tC))||0,ed=eu;for(tk&&eq(a)&&(Y=V.getProperty(m,ta.p),q=V.getProperty(h,ta.p));ed-- >0;)(T=tg[ed]).end||T.refresh(0,1)||(Q=tC),(A=T.pin)&&(A===ex||A===ev||A===ec)&&!T.isReverted&&(B||(B=[]),B.unshift(T),T.revert(!0,!0)),T!==tg[ed]&&(eu--,ed--);for(e$(es)&&(es=es(tC)),u=tU(es=eM(es,"start",tC),ex,G,ta,tA(),f,m,tC,K,tE,ty,Z,eZ,tC._startClamp&&"_startClamp")||(ev?-.001:0),e$(en)&&(en=en(tC)),eW(en)&&!en.indexOf("+=")&&(~en.indexOf(" ")?en=(eW(es)?es.split(" ")[0]:"")+en:(ee=tp(en.substr(2),G),en=eW(es)?es:(eZ?V.utils.mapRange(0,eZ.duration(),eZ.scrollTrigger.start,eZ.scrollTrigger.end,u):u)+ee,ea=ex)),en=eM(en,"end",tC),d=Math.max(u,tU(en||(ea?"100% 0":Z),ea,G,ta,tA()+ee,p,h,tC,K,tE,ty,Z,eZ,tC._endClamp&&"_endClamp"))||-.001,ee=0,ed=eu;ed--;)(A=(T=tg[ed]||{}).pin)&&T.start-T._pinPush<=u&&!eZ&&T.end>0&&(g=T.end-(tC._startClamp?Math.max(0,T.start):T.start),(A===ex&&T.start-T._pinPush<u||A===ec)&&isNaN(es)&&(ee+=g*(1-T.progress)),A===ev&&(et+=g));if(u+=ee,d+=ee,tC._startClamp&&(tC._startClamp+=ee),tC._endClamp&&!ej&&(tC._endClamp=d||-.001,d=Math.min(d,eH(tf,ta))),y=d-u||(u-=.01)&&.001,J&&(tI=V.utils.clamp(0,1,V.utils.normalize(u,d,ei))),tC._pinPush=et,f&&ee&&((g={})[ta.a]="+="+ee,ec&&(g[ta.p]="-="+tA()),V.set([f,p],g)),ev&&!(eb&&tC.end>=eH(tf,ta)))g=e9(ev),j=ta===_,v=tA(),R=parseFloat(C(ta.a))+et,!Z&&d>1&&(H={style:H=(tv?W.scrollingElement||$:tf).style,value:H["overflow"+ta.a.toUpperCase()]},tv&&"scroll"!==e9(X)["overflow"+ta.a.toUpperCase()]&&(H.style["overflow"+ta.a.toUpperCase()]="scroll")),tH(ev,k,g),S=t$(ev),x=tn(ev,!0),L=ty&&I(tf,j?M:_)(),ew?((O=[ew+ta.os2,y+et+"px"]).t=k,(ed=ew===e4?tr(ev,ta)+y+et:0)&&(O.push(ta.d,ed+"px"),"auto"!==k.style.flexBasis&&(k.style.flexBasis=ed+"px")),tW(O),ec&&tg.forEach(function(e){e.pin===ec&&!1!==e.vars.pinSpacing&&(e._subPinOffset=!0)}),ty&&tA(ei)):(ed=tr(ev,ta))&&"auto"!==k.style.flexBasis&&(k.style.flexBasis=ed+"px"),ty&&((E={top:x.top+(j?v-u:L)+"px",left:x.left+(j?L:v-u)+"px",boxSizing:"border-box",position:"fixed"})[e0]=E["max"+e8]=Math.ceil(x.width)+"px",E[e1]=E["max"+e7]=Math.ceil(x.height)+"px",E[e6]=E[e6+"Top"]=E[e6+e2]=E[e6+e3]=E[e6+e5]="0",E[e4]=g[e4],E[e4+"Top"]=g[e4+"Top"],E[e4+e2]=g[e4+e2],E[e4+e3]=g[e4+e3],E[e4+e5]=g[e4+e5],N=tX(w,E,ez),ej&&tA(0)),n?(z=n._initted,eo(1),n.render(n.duration(),!0,!0),D=C(ta.a)-R+y+et,F=Math.abs(y-D)>1,ty&&F&&N.splice(N.length-2,2),n.render(0,!0,!0),z||n.invalidate(!0),n.parent||n.totalTime(n.totalTime()),eo(0)):D=y,H&&(H.value?H.style["overflow"+ta.a.toUpperCase()]=H.value:H.style.removeProperty("overflow-"+ta.a));else if(ex&&tA()&&!eZ)for(x=ex.parentNode;x&&x!==X;)x._pinOffset&&(u-=x._pinOffset,d-=x._pinOffset),x=x.parentNode;B&&B.forEach(function(e){return e.revert(!1,!0)}),tC.start=u,tC.end=d,s=c=ej?ei:tA(),eZ||ej||(s<ei&&tA(ei),tC.scroll.rec=0),tC.revert(!1,!0),tD=eE(),er&&(t_=-1,er.restart(!0)),Q=0,n&&tc&&(n._initted||el)&&n.progress()!==el&&n.progress(el||0,!0).render(n.time(),!0,!0),(J||tI!==tC.progress||eZ||eN||n&&!n._initted)&&(n&&!tc&&(n._initted||tI||!1!==n.vars.immediateRender)&&n.totalProgress(eZ&&u<-.001&&!tI?V.utils.normalize(u,d,0):tI,!0),tC.progress=J||(s-u)/y===tI?0:tI),ev&&ew&&(k._pinOffset=Math.round(tC.progress*D)),U&&U.invalidate(),isNaN(Y)||(Y-=V.getProperty(m,ta.p),q-=V.getProperty(h,ta.p),tJ(m,ta,Y),tJ(f,ta,Y-(o||0)),tJ(h,ta,q),tJ(p,ta,q-(o||0))),J&&!ej&&tC.update(),!eh||ej||b||(b=!0,eh(tC),b=!1)}}
vendor: 6,209 bytes, line 1
1,tC.getVelocity=function(){return(tA()-c)/(eE()-Z)*1e3||0},tC.endAnimation=function(){eU(tC.callbackAnimation),n&&(U?U.progress(1):n.paused()?tc||eU(n,tC.direction<0,1):eU(n,n.reversed()))},tC.labelToScroll=function(e){return n&&n.labels&&(u||tC.refresh()||u)+n.labels[e]/n.duration()*y||0},tC.getTrailing=function(e){var t=tg.indexOf(tC),n=tC.direction>0?tg.slice(0,t).reverse():tg.slice(t+1);return(eW(e)?n.filter(function(t){return t.vars.preventOverlaps===e}):n).filter(function(e){return tC.direction>0?e.end<=u:e.start>=d})},tC.update=function(e,t,r){if(!eZ||r||e){var i,a,o,f,p,h,g,x=!0===ej?ei:tC.scroll(),v=e?0:(x-u)/y,b=v<0?0:v>1?1:v||0,w=tC.progress;if(t&&(c=s,s=eZ?tA():x,eL&&(q=H,H=n&&!tc?n.totalProgress():b)),eC&&ev&&!Q&&!ek&&eT&&(!b&&u<x+(x-c)/(eE()-Z)*eC?b=1e-4:1===b&&d>x+(x-c)/(eE()-Z)*eC&&(b=.9999)),b!==w&&tC.enabled){if(f=(p=(i=tC.isActive=!!b&&b<1)!=(!!w&&w<1))||!!b!=!!w,tC.direction=b>w?1:-1,tC.progress=b,f&&!Q&&(a=b&&!w?0:1===b?1:1===w?2:3,tc&&(o=!p&&"none"!==tN[a+1]&&tN[a+1]||tN[a],g=n&&("complete"===o||"reset"===o||o in n))),eQ&&(p||g)&&(g||eg||!n)&&(e$(eQ)?eQ(tC):tC.getTrailing(eQ).forEach(function(e){return e.endAnimation()})),!tc&&(!U||Q||ek?n&&n.totalProgress(b,!!(Q&&(tD||e))):(U._dp._time-U._start!==U._time&&U.render(U._dp._time-U._start),U.resetTo?U.resetTo("totalProgress",b,n._tTime/n._tDur):(U.vars.totalProgress=b,U.invalidate().restart()))),ev)if(e&&ew&&(k.style[ew+ta.os2]=A),ty){if(f){if(h=!e&&b>w&&d+1>x&&x+1>=eH(tf,ta),ez)if(!e&&(i||h)){var j=tn(ev,!0),E=x-u;tK(ev,X,j.top+(ta===_?E:0)+"px",j.left+(ta===_?0:E)+"px")}else tK(ev,k);tW(i||h?N:S),F&&b<1&&i||T(R+(1!==b||h?0:D))}}else T(eA(R+D*b));!eL||l.tween||Q||ek||er.restart(!0),ef&&(p||eO&&b&&(b<1||!ey))&&G(ef.targets).forEach(function(e){return e.classList[i||eO?"add":"remove"](ef.className)}),!ed||tc||e||ed(tC),f&&!Q?(tc&&(g&&("complete"===o?n.pause().totalProgress(1):"reset"===o?n.restart(!0).pause():"restart"===o?n.restart(!0):n[o]()),ed&&ed(tC)),(p||!ey)&&(em&&p&&eG(tC,em),tj[a]&&eG(tC,tj[a]),eO&&(1===b?tC.kill(!1,1):tj[a]=0),!p&&tj[a=1===b?1:3]&&eG(tC,tj[a])),eJ&&!i&&Math.abs(tC.getVelocity())>(eX(eJ)?eJ:2500)&&(eU(tC.callbackAnimation),U?U.progress(1):eU(n,"reverse"===o?1:!b,1))):tc&&ed&&!Q&&ed(tC)}if(z){var C=eZ?x/eZ.duration()*(eZ._caScrollDist||0):x;L(C+ +!!m._isFlipped),z(C)}es&&es(-x/eZ.duration()*(eZ._caScrollDist||0))}},tC.enable=function(t,n){tC.enabled||(tC.enabled=!0,to(tf,"resize",tw),tv||to(tf,"scroll",tb),tT&&to(e,"refreshInit",tT),!1!==t&&(tC.progress=tI=0,s=c=t_=tA()),!1!==n&&tC.refresh())},tC.getTween=function(e){return e&&l?l.tween:U},tC.setPositions=function(e,t,n,r){if(eZ){var i=eZ.scrollTrigger,l=eZ.duration(),a=i.end-i.start;e=i.start+a*e/l,t=i.start+a*t/l}tC.refresh(!1,!1,{start:e_(e,n&&!!tC._startClamp),end:e_(t,n&&!!tC._endClamp)},r),tC.update()},tC.adjustPinSpacing=function(e){if(O&&e){var t=O.indexOf(ta.d)+1;O[t]=parseFloat(O[t])+e+"px",O[1]=parseFloat(O[1])+e+"px",tW(O)}},tC.disable=function(t,n){if(!1!==t&&tC.revert(!0,!0),tC.enabled&&(tC.enabled=tC.isActive=!1,n||U&&U.pause(),ei=0,a&&(a.uncache=1),tT&&ts(e,"refreshInit",tT),er&&(er.pause(),l.tween&&l.tween.kill()&&(l.tween=0)),!tv)){for(var r=tg.length;r--;)if(tg[r].scroller===tf&&tg[r]!==tC)return;ts(tf,"resize",tw),tv||ts(tf,"scroll",tb)}},tC.kill=function(e,r){tC.disable(e,r),U&&!r&&U.kill(),ep&&delete tx[ep];var i=tg.indexOf(tC);i>=0&&tg.splice(i,1),i===en&&tL>0&&en--,i=0,tg.forEach(function(e){return e.scroller===tC.scroller&&(i=1)}),i||ej||(tC.scroll.rec=0),n&&(n.scrollTrigger=null,e&&n.revert({kill:!1}),r||n.kill()),f&&[f,p,m,h].forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),eS===tC&&(eS=0),ev&&(a&&(a.uncache=1),i=0,tg.forEach(function(e){return e.pin===ev&&i++}),i||(a.spacer=0)),t.onKill&&t.onKill(tC)},tg.push(tC),tC.enable(!1,!1),ec&&ec(tC),n&&n.add&&!y){var tB=tC.update;tC.update=function(){tC.update=tB,x.cache++,u||d||tC.refresh()},V.delayedCall(.01,tC.update),y=.01,u=d=0}else tC.refresh();ev&&tP()},e.register=function(t){return H||(V=t||eL(),eO()&&window.document&&e.enable(),H=eR),H},e.defaults=function(e){if(e)for(var t in e)td[t]=e[t];return td},e.disable=function(e,t){eR=0,tg.forEach(function(n){return n[t?"kill":"disable"](e)}),ts(Y,"wheel",tb),ts(W,"scroll",tb),clearInterval(J),ts(W,"touchcancel",eI),ts(X,"touchstart",eI),ta(ts,W,"pointerdown,touchstart,mousedown",eP),ta(ts,W,"pointerup,touchend,mouseup",eD),U.kill(),eY(ts);for(var n=0;n<x.length;n+=3)tc(ts,x[n],x[n+1]),tc(ts,x[n],x[n+2])},e.enable=function(){if(Y=window,$=(W=document).documentElement,X=W.body,V)if(G=V.utils.toArray,K=V.utils.clamp,em=V.core.context||eI,eo=V.core.suppressOverwrites||eI,eh=Y.history.scrollRestoration||"auto",tO=Y.pageYOffset||0,V.core.globals("ScrollTrigger",e),X){eR=1,(eg=document.createElement("div")).style.height="100vh",eg.style.position="absolute",tD(),function e(){return eR&&requestAnimationFrame(e)}(),B.register(V),e.isTouch=B.isTouch,ep=B.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),eu=1===B.isTouch,to(Y,"wheel",tb),q=[Y,W,$,X],V.matchMedia?(e.matchMedia=function(e){var t,n=V.matchMedia();for(t in e)n.add(t,e[t]);return n},V.addEventListener("matchMediaInit",function(){tT(),tR()}),V.addEventListener("matchMediaRevert",function(){return tC()}),V.addEventListener("matchMedia",function(){tA(0,1),tk("matchMedia")}),V.matchMedia().add("(orientation: portrait)",function(){return ty(),ty})):console.warn("Requires GSAP 3.11.0 or later"),ty(),to(W,"scroll",tb);var t,n,r=X.hasAttribute("style"),i=X.style,l=i.borderTopStyle,a=V.core.Animation.prototype;for(a.revert||Object.defineProperty(a,"revert",{value:function(){return this.time(-.01,!0)}}),i.borderTopStyle="solid",_.m=Math.round((t=tn(X)).top+_.sc())||0,M.m=Math.round(t.left+M.sc())||0,l?i.borderTopStyle=l:i.removeProperty("border-top-style"),r||(X.setAttribute("style",""),X.removeAttribute("style")),J=setInterval(tv,250),V.delayedCall(.5,function(){return ek=0}),to(W,"touchcancel",eI),to(X,"touchstart",eI),ta(to,W,"pointerdown,touchstart,mousedown",eP),ta(to,W,"pointerup,touchend,mouseup",eD),et=V.utils.checkPrefix("transform"),tB.push(et),H=eE(),U=V.delayedCall(.2,tA).pause(),el=[W,"visibilitychange",function(){var e=Y.innerWidth,t=Y.innerHe
vendor: 4,464 bytes, line 1
1ight;W.hidden?(er=e,ei=t):(er!==e||ei!==t)&&tw()},W,"DOMContentLoaded",tA,Y,"load",tA,Y,"resize",tw],eY(to),tg.forEach(function(e){return e.enable(0,1)}),n=0;n<x.length;n+=3)tc(ts,x[n],x[n+1]),tc(ts,x[n],x[n+2])}else W&&W.addEventListener("DOMContentLoaded",function t(){e.enable(),W.removeEventListener("DOMContentLoaded",t)})},e.config=function(t){"limitCallbacks"in t&&(ey=!!t.limitCallbacks);var n=t.syncInterval;n&&clearInterval(J)||(J=n)&&setInterval(tv,n),"ignoreMobileResize"in t&&(eu=1===e.isTouch&&t.ignoreMobileResize),"autoRefreshEvents"in t&&(eY(ts)||eY(to,t.autoRefreshEvents||"none"),es=-1===(t.autoRefreshEvents+"").indexOf("resize"))},e.scrollerProxy=function(e,t){var n=P(e),r=x.indexOf(n),i=eF(n);~r&&x.splice(r,i?6:2),t&&(i?v.unshift(Y,t,X,t,$,t):v.unshift(n,t))},e.clearMatchMedia=function(e){tg.forEach(function(t){return t._ctx&&t._ctx.query===e&&t._ctx.kill(!0,!0)})},e.isInViewport=function(e,t,n){var r=(eW(e)?P(e):e).getBoundingClientRect(),i=r[n?e0:e1]*t||0;return n?r.right-i>0&&r.left+i<Y.innerWidth:r.bottom-i>0&&r.top+i<Y.innerHeight},e.positionInViewport=function(e,t,n){eW(e)&&(e=P(e));var r=e.getBoundingClientRect(),i=r[n?e0:e1],l=null==t?i/2:t in tf?tf[t]*i:~t.indexOf("%")?parseFloat(t)*i/100:parseFloat(t)||0;return n?(r.left+l)/Y.innerWidth:(r.top+l)/Y.innerHeight},e.killAll=function(e){if(tg.slice(0).forEach(function(e){return"ScrollSmoother"!==e.vars.id&&e.kill()}),!0!==e){var t=tj.killAll||[];tj={},t.forEach(function(e){return e()})}},e}();t0.version="3.15.0",t0.saveStyles=function(e){return e?G(e).forEach(function(e){if(e&&e.style){var t=tE.indexOf(e);t>=0&&tE.splice(t,5),tE.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),V.core.getCache(e),em())}}):tE},t0.revert=function(e,t){return tR(!e,t)},t0.create=function(e,t){return new t0(e,t)},t0.refresh=function(e){return e?tw(!0):(H||t0.register())&&tA(!0)},t0.update=function(e){return++x.cache&&tF(2*(!0===e))},t0.clearScrollMemory=tM,t0.maxScroll=function(e,t){return eH(e,t?M:_)},t0.getScrollFunc=function(e,t){return I(P(e),t?M:_)},t0.getById=function(e){return tx[e]},t0.getAll=function(){return tg.filter(function(e){return"ScrollSmoother"!==e.vars.id})},t0.isScrolling=function(){return!!eT},t0.snapDirectional=tl,t0.addEventListener=function(e,t){var n=tj[e]||(tj[e]=[]);~n.indexOf(t)||n.push(t)},t0.removeEventListener=function(e,t){var n=tj[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},t0.batch=function(e,t){var n,r=[],i={},l=t.interval||.016,a=t.batchMax||1e9,o=function(e,t){var n=[],r=[],i=V.delayedCall(l,function(){t(n,r),n=[],r=[]}).pause();return function(e){n.length||i.restart(!0),n.push(e.trigger),r.push(e),a<=n.length&&i.progress(1)}};for(n in t)i[n]="on"===n.substr(0,2)&&e$(t[n])&&"onRefreshInit"!==n?o(n,t[n]):t[n];return e$(a)&&(a=a(),to(t0,"refresh",function(){return a=t.batchMax()})),G(e).forEach(function(e){var t={};for(n in i)t[n]=i[n];t.trigger=e,r.push(t0.create(t))}),r};var t1,t2=function(e,t,n,r){return t>r?e(r):t<0&&e(0),n>r?(r-t)/(n-t):n<0?t/(t-n):1},t5=function e(t,n){!0===n?t.style.removeProperty("touch-action"):t.style.touchAction=!0===n?"auto":n?"pan-"+n+(B.isTouch?" pinch-zoom":""):"none",t===$&&e(X,n)},t3={auto:1,scroll:1},t4=function(e){var t,n=e.event,r=e.target,i=e.axis,l=(n.changedTouches?n.changedTouches[0]:n).target,a=l._gsap||V.core.getCache(l),o=eE();if(!a._isScrollT||o-a._isScrollT>2e3){for(;l&&l!==X&&(l.scrollHeight<=l.clientHeight&&l.scrollWidth<=l.clientWidth||!(t3[(t=e9(l)).overflowY]||t3[t.overflowX]));)l=l.parentNode;a._isScroll=l&&l!==r&&!eF(l)&&(t3[(t=e9(l)).overflowY]||t3[t.overflowX]),a._isScrollT=o}(a._isScroll||"x"===i)&&(n.stopPropagation(),n._gsapAllow=!0)},t6=function(e,t,n,r){return B.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:r=r&&t4,onPress:r,onDrag:r,onScroll:r,onEnable:function(){return n&&to(W,B.eventTypes[0],t7,!1,!0)},onDisable:function(){return ts(W,B.eventTypes[0],t7,!0)}})},t8=/(input|label|select|textarea)/i,t7=function(e){var t=t8.test(e.target.tagName);(t||t1)&&(e._gsapAllow=!0,t1=t)},t9=function(e){eq(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var t,n,r,i,l,a,o,s,c=e,u=c.normalizeScrollX,d=c.momentum,f=c.allowNestedScroll,p=c.onRelease,m=P(e.target)||$,h=V.core.globals().ScrollSmoother,g=h&&h.get(),v=ep&&(e.content&&P(e.content)||g&&!1!==e.content&&!g.smooth()&&g.content()),b=I(m,_),y=I(m,M),w=1,j=(B.isTouch&&Y.visualVie
1wport?Y.visualViewport.scale*Y.visualViewport.width:Y.outerWidth)/Y.innerWidth,N=0,S=e$(d)?function(){return d(t)}:function(){return d||2.8},k=t6(m,e.type,!0,f),E=function(){return i=!1},C=eI,T=eI,R=function(){n=eH(m,_),T=K(+!!ep,n),u&&(C=K(0,eH(m,M))),r=t_},D=function(){v._gsap.y=eA(parseFloat(v._gsap.y)+b.offset)+"px",v.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(v._gsap.y)+", 0, 1)",b.offset=b.cacheID=0},A=function(){if(i){requestAnimationFrame(E);var e=eA(t.deltaY/2),n=T(b.v-e);if(v&&n!==b.v+b.offset){b.offset=n-b.v;var r=eA((parseFloat(v&&v._gsap.y)||0)-b.offset);v.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+r+", 0, 1)",v._gsap.y=r+"px",b.cacheID=x.cache,tF()}return!0}b.offset&&D(),i=!0},O=function(){R(),l.isActive()&&l.vars.scrollY>n&&(b()>n?l.progress(1)&&b(n):l.resetTo("scrollY",n))};return v&&V.set(v,{y:"+=0"}),e.ignoreCheck=function(e){return ep&&"touchmove"===e.type&&A(e)||w>1.05&&"touchstart"!==e.type||t.isGesturing||e.touches&&e.touches.length>1},e.onPress=function(){i=!1;var e=w;w=eA((Y.visualViewport&&Y.visualViewport.scale||1)/j),l.pause(),e!==w&&t5(m,w>1.01||!u&&"x"),a=y(),o=b(),R(),r=t_},e.onRelease=e.onGestureStart=function(e,t){if(b.offset&&D(),t){x.cache++;var r,i,a=S();u&&(i=(r=y())+-(.05*a*e.velocityX)/.227,a*=t2(y,r,i,eH(m,M)),l.vars.scrollX=C(i)),i=(r=b())+-(.05*a*e.velocityY)/.227,a*=t2(b,r,i,eH(m,_)),l.vars.scrollY=T(i),l.invalidate().duration(a).play(.01),(ep&&l.vars.scrollY>=n||r>=n-1)&&V.to({},{onUpdate:O,duration:a})}else s.restart(!0);p&&p(e)},e.onWheel=function(){l._ts&&l.pause(),eE()-N>1e3&&(r=0,N=eE())},e.onChange=function(e,t,n,i,l){if(t_!==r&&R(),t&&u&&y(C(i[2]===t?a+(e.startX-e.x):y()+t-i[1])),n){b.offset&&D();var s=l[2]===n,c=s?o+e.startY-e.y:b()+n-l[1],d=T(c);s&&c!==d&&(o+=d-c),b(d)}(n||t)&&tF()},e.onEnable=function(){t5(m,!u&&"x"),t0.addEventListener("refresh",O),to(Y,"resize",O),b.smooth&&(b.target.style.scrollBehavior="auto",b.smooth=y.smooth=!1),k.enable()},e.onDisable=function(){t5(m,!0),ts(Y,"resize",O),t0.removeEventListener("refresh",O),k.kill()},e.lockAxis=!1!==e.lockAxis,(t=new B(e)).iOS=ep,ep&&!b()&&b(1),ep&&V.ticker.add(eI),s=t._dc,l=V.to(t,{ease:"power4",paused:!0,inherit:!1,scrollX:u?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:tZ(b,b(),function(){return l.pause()})},onUpdate:tF,onComplete:s.vars.onComplete}),t};t0.sort=function(e){if(e$(e))return tg.sort(e);var t=Y.pageYOffset||0;return t0.getAll().forEach(function(e){return e._sortY=e.trigger?t+e.trigger.getBoundingClientRect().top:e.start+Y.innerHeight}),tg.sort(e||function(e,t){return -1e6*(e.vars.refreshPriority||0)+(e.vars.containerAnimation?1e6:e._sortY)-((t.vars.containerAnimation?1e6:t._sortY)+-1e6*(t.vars.refreshPriority||0))})},t0.observe=function(e){return new B(e)},t0.normalizeScroll=function(e){if(void 0===e)return ec;if(!0===e&&ec)return ec.enable();if(!1===e){ec&&ec.kill(),ec=e;return}var t=e instanceof B?e:t9(e);return ec&&ec.target===t.target&&ec.kill(),eF(t.target)&&(ec=t),t},t0.core={_getVelocityProp:A,_inputObserver:t6,_scrollers:x,_proxies:v,bridge:{ss:function(){eT||tk("scrollStart"),eT=eE()},ref:function(){return Q}}},eL()&&V.registerPlugin(t0),e.s(["ScrollTrigger",0,t0],883495)},645101,e=>{"use strict";var t=e.i(843476),n=e.i(989970),r=e.i(883495),i=e.i(271645),l=e.i(945060),a=e.i(739814),o=e.i(125027);n.default.registerPlugin(r.ScrollTrigger),window.matchMedia("(min-width: 60rem)").matches&&r.ScrollTrigger.normalizeScroll({allowNestedScroll:!0}),e.s(["AsideNote",0,function({title:e,link:s,theme:c,number:u,className:d}){let f=s?(0,a.resolveLink)(s):null,p=(0,i.useRef)(null),m=(0,i.useRef)(null);return(0,i.useLayoutEffect)(()=>{let e=p.current;if(!e)return;let t=Array.from(document.querySelectorAll("[data-aside-note]")),n=t.indexOf(e),r=n===t.length-1;e.style.zIndex=String(50+n),m.current&&(m.current.textContent=String(n+1)),r&&(e.classList.remove("lg:static","lg:top-0"),e.classList.add("lg:sticky","lg:top-(--nav-height)"))},[]),(0,i.useEffect)(()=>{let e=p.current;if(!e)return;let t=Array.from(document.querySelectorAll("[data-aside-note]")),i=t.indexOf(e),l=t[i+1],a=n.default.matchMedia();return a.add("(max-width: 59.999rem)",()=>{let t=e.closest("section")??e.parentElement;if(!t)return;n.default.set(e,{yPercent:0,y:12,opacity:0,scale:1,pointerEvents:"none"});let i=n.default.to(e,{yPercent:0,opacity:1,y:0,pointerEvents:"auto",duration:.25,ease:"power2.inOut",paused:!0}),l=n.default.to(e,{opacity:0,scale:.95,y:-6,pointerEvents:"none",duration:.25,ease:"power2.inOut",paused:!0}),a=r.ScrollTrigger.create({trigger:t,start:"top top",end:"bottom top",onEnter:()=>i.play(),onLeave:()=>l.play(),onEnterBack:()=>l.reverse(),onLeaveBack:()=>i.reverse()});return()=>{a.kill(),i.kill(),l.kill()}}),a.add("(min-width: 60rem)",()=>{let t=()=>{let e=getComputedStyle(document.documentElement).getPropertyValue("--nav-height").trim();return e.endsWith("rem")?16*parseFloat(e):parseFloat(e)||0},i=l?r.ScrollTrigger.create({trigger:e,start:()=>`top top+=${t()}`,endTrigger:l,end:()=>`top top+=${t()}`,pin:!0,pinSpacing:!1,onUpdate:()=>{let t=e.getBoundingClientRect().bottom-l.getBoundingClientRect().bottom;e.style.clipPath=t>0?`inset(0 0 ${Math.round(t)+4}px 0)`:""},onLeave:()=>{e.style.clipPath="",n.default.set(e,{opacity:0}
1)},onEnterBack:()=>{e.style.clipPath="",n.default.set(e,{opacity:1})}}):r.ScrollTrigger.create({trigger:e.closest("section")??e.parentElement??e,start:()=>`bottom top+=${t()+e.offsetHeight}`,onEnter:()=>n.default.to(e,{opacity:0,duration:.3}),onLeaveBack:()=>n.default.to(e,{opacity:1,duration:.3})});return()=>{i.kill()}}),()=>{a.revert()}},[]),(0,t.jsx)("div",{ref:p,"data-aside-note":!0,className:(0,l.cn)("pointer-events-none fixed right-4 bottom-4 left-4 opacity-0","lg:pointer-events-auto lg:static lg:top-0 lg:right-0 lg:left-0 lg:col-span-2 lg:col-start-9 lg:row-start-1 lg:block lg:self-start lg:opacity-100 xl:col-start-11",d),children:(0,t.jsxs)("aside",{className:(0,l.cn)("flex w-full flex-col gap-2 rounded-xs bg-background p-6 text-foreground lg:min-h-53",c&&`theme-${c}`),children:[null!=u?(0,t.jsx)("p",{ref:m,className:"text-body-3 text-link before:content-['['] after:content-[']']"}):null,e?(0,t.jsx)("p",{className:"font-serif text-body-1 leading-[1.2]",children:e}):null,f?(0,t.jsxs)("a",{href:f.href,className:"mt-auto inline-flex items-center gap-2 text-link no-underline hover:text-link-hover",target:f.target,rel:f.rel,children:[(0,t.jsx)(o.Icon,{name:"dots"}),"Read more"]}):null]})})}])},931680,e=>{"use strict";var t=e.i(843476),n=e.i(225913),r=e.i(945060);let i=(0,n.cva)("mx-auto grid w-full max-w-9xl gap-4 px-4 lg:px-6",{variants:{cols:{page:"grid-cols-4 md:grid-cols-8 lg:grid-cols-10 xl:grid-cols-12",stack:"grid-cols-1 lg:grid-cols-10 xl:grid-cols-12",8:"grid-cols-1 md:grid-cols-8","lg-8":"grid-cols-1 lg:grid-cols-8",2:"grid-cols-1 md:grid-cols-2","lg-2":"grid-cols-1 lg:grid-cols-2"},container:{false:""}},defaultVariants:{cols:"page",container:!0}});e.s(["PageGrid",0,function({className:e,cols:n,container:l,...a}){return(0,t.jsx)("div",{className:(0,r.cn)(i({cols:n,container:l}),e),...a})},"pageGridVariants",0,i])},164328,e=>{"use strict";e.s(["selectMedia",0,function(e){if(!e||"object"!=typeof e)return null;if("image"===e.type&&e.image)return{kind:"image",image:e.image};if("video"===e.type&&e.video){let t=e.video.asset?.url??e.video.url;if(t)return{kind:"video",src:t}}return null}])},832867,e=>{"use strict";var t=e.i(843476),n=e.i(989970),r=e.i(883495),i=e.i(271645),l=e.i(645101),a=e.i(512471),o=e.i(931680),s=e.i(893880),c=e.i(945060),u=e.i(272754),d=e.i(164328);function f({selected:e}){return e?"video"===e.kind?(0,t.jsx)("video",{src:e.src,autoPlay:!0,muted:!0,playsInline:!0,loop:!0,preload:"metadata"}):(0,t.jsx)(a.Image,{media:e.image,loading:"lazy",sizes:"(min-width: 60rem) 34vw, 100vw",alt:""}):null}let p=(e,t)=>-((2*e+1)*50)/t;e.s(["Automation",0,function({sectionId:e,theme:a,accessibleTitle:m,automatingWords:h,paragraph:g,textRight:x,media:v,asideNote:b}){let y=(0,d.selectMedia)(v),w=Array.isArray(h)?h.map(e=>"string"==typeof e?e.trim():"").filter(Boolean):null,j=w?.length??0,N=(0,i.useRef)(null),S=(0,i.useRef)(null),k=(0,i.useRef)(null),E=(0,i.useRef)([]),C=(0,i.useRef)(null);return(0,i.useEffect)(()=>{n.default.registerPlugin(r.ScrollTrigger);let e=N.current,t=S.current,i=k.current,l=E.current.filter(e=>null!==e),a=C.current,o=l.length;if(!e||!t||!i||0===o)return;function s(){e.style.height=`calc(100svh + ${(o-1)*l[0].offsetHeight}px)`}s();let c=Array.from({length:o}).fill(-1),u=Array.from({length:o}).fill(-1);function d(e,t){let n=Math.min(1,e/.03);for(let r=0;r<o;r++){let i=e-r/Math.max(1,o-1),a=i>0?.8*i:.6*Math.abs(i),s=Math.round(Math.max(0,1-a*(o-1)*.4)*(0===r?1:n)*100)/100,d=l[r];if(s!==c[r]&&(d.style.opacity=String(s),c[r]=s),!t)continue;let f=Math.round(16*a)/2;f!==u[r]&&(d.style.filter=`blur(${f}px)`,u[r]=f)}}n.default.set(i,{yPercent:p(0,o),force3D:!0});let f=p(0,o),m=p(o-1,o),h=n.default.matchMedia();return h.add("(min-width: 1024px)",()=>{let t,o;return r.ScrollTrigger.addEventListener("refreshInit",s),d(0,!0),t=-1,o=r.ScrollTrigger.create({trigger:e,start:"top top",end:"bottom bottom",invalidateOnRefresh:!0,onUpdate:e=>{let r=Math.round(1e3*e.progress)/1e3;if(r!==t&&(t=r,n.default.set(i,{yPercent:f+(m-f)*r,force3D:!0}),d(r,!0),a)){let e=r<=.1?1:Math.max(0,1-(r-.1)*10);n.default.set(a,{yPercent:10*r,opacity:e})}}}),()=>{for(let e of(r.ScrollTrigger.removeEventListener("refreshInit",s),o.kill(),c.fill(-1),u.fill(-1),l))e.style.filter=""}}),h.add("(max-width: 1023px)",()=>{d(0,!1);let r=1;function l(){s();
1let n=parseFloat(getComputedStyle(t).marginBottom)||0;r=Math.max(1,e.clientHeight-t.offsetHeight-n)}l(),window.addEventListener("resize",l),window.addEventListener("orientationchange",l);let a=NaN,o=-1,c=()=>{let l=Math.min(1,Math.max(0,(t.getBoundingClientRect().top-e.getBoundingClientRect().top)/r));o<0&&(o=l),o+=(l-o)*.18,2e-4>Math.abs(l-o)&&(o=l);let s=Math.round((f+(m-f)*o)*20)/20;s!==a&&(a=s,n.default.set(i,{yPercent:s,force3D:!0})),d(o,!1)},u=new IntersectionObserver(([e])=>{n.default.ticker.remove(c),e.isIntersecting&&n.default.ticker.add(c)},{rootMargin:"100px"});return u.observe(e),()=>{u.disconnect(),n.default.ticker.remove(c),window.removeEventListener("resize",l),window.removeEventListener("orientationchange",l)}}),()=>{for(let t of(h.revert(),e.style.height="",l))t.style.opacity="",t.style.filter=""}},[j]),(0,t.jsxs)(s.Section,{id:e,theme:a,className:"bg-muted text-foreground lg:pb-0",padding:"flush-block",children:[(0,t.jsx)("div",{className:(0,c.cn)((0,o.pageGridVariants)({container:!1}),"bg-muted"),children:b?.title?(0,t.jsx)(l.AsideNote,{title:b.title,theme:b.theme,link:b.link,number:b.number}):null}),(0,t.jsx)("div",{ref:N,className:(0,c.cn)((0,o.pageGridVariants)({container:!1}),"relative"),children:(0,t.jsxs)("div",{ref:S,className:"sticky top-(--nav-height) col-span-full mb-(--nav-height) grid h-[calc(100svh-var(--nav-height)*2)] grid-cols-subgrid grid-rows-[auto_1fr_auto] overflow-hidden bg-transparent lg:row-start-1 lg:grid-rows-1 lg:pb-0",children:[m?(0,t.jsx)("h2",{className:"col-span-full row-[1/2] text-body-1 md:max-xl:text-body-2 lg:col-span-2 lg:col-start-1 lg:mb-0 lg:self-center lg:justify-self-start",children:m}):null,y?(0,t.jsx)("div",{ref:C,className:"mask-oval-cutout hidden! lg:block! aspect-square w-full scale-[1.7] self-center bg-muted lg:col-[4/8] lg:row-[1/2] xl:col-[5/9] [&_video]:block [&_video]:h-full [&_video]:w-full [&_video]:object-cover [&_video]:mix-blend-darken [&_video]:brightness-100",children:(0,t.jsx)(f,{selected:y})}):null,w?.length?(0,t.jsx)("div",{className:"relative col-span-full row-[2/3] h-full w-full lg:col-[3/9] lg:row-[1/2] xl:col-[4/10]",children:(0,t.jsx)("ul",{ref:k,className:"absolute top-1/2 right-0 left-0 m-0 h-auto w-full list-none p-0 font-serif text-4xl will-change-transform md:text-5xl lg:text-center xl:text-headline-1",children:w.map((e,n)=>(0,t.jsx)("li",{ref:e=>{E.current[n]=e},style:{lineHeight:1.3},className:"text-left max-lg:will-change-[opacity] lg:text-center",children:e},`${e}-${n}`))})}):null,x?(0,t.jsx)("div",{className:"col-span-full mt-16 hidden text-body-1 md:max-xl:text-body-2 lg:col-[9/11] lg:row-[1/2] lg:mt-0 lg:block lg:self-center lg:justify-self-start xl:col-[11/13]",children:(0,t.jsx)(u.PortableText,{value:x})}):null,g?(0,t.jsx)("div",{className:(0,c.cn)((0,o.pageGridVariants)({container:!1}),"col-span-full px-0 lg:hidden"),children:(0,t.jsx)("div",{className:"col-span-full max-w-143.75 text-balance text-left text-body-1 lg:col-start-4 lg:col-end-10 xl:text-center",children:(0,t.jsx)(u.PortableText,{value:g})})}):null]})}),g?(0,t.jsx)("div",{className:(0,c.cn)((0,o.pageGridVariants)({container:!1}),"col-span-full pb-0 max-lg:hidden lg:pb-32 xl:-mt-40 xl:px-0"),children:(0,t.jsx)("div",{className:"col-span-full mx-auto max-w-143.75 text-balance text-left text-body-1 lg:text-center",children:(0,t.jsx)(u.PortableText,{value:g})})}):null]})}])},233287,e=>{"use strict";var t=e.i(843476),n=e.i(989970),r=e.i(271645),i=e.i(645101),l=e.i(320351),a=e.i(406573),o=e.i(931680),s=e.i(893880),c=e.i(272754);e.s(["CareersListClient",0,function({sectionId:e,theme:u,careersData:d,department:f,location:p,asideNote:m,hideFilters:h,eyebrow:g,title:x,subhead:v,body:b,cta:y,semanticLevel:w="h2"}){let j=h??!0,[N,S]=(0,r.useState)(f??"Any"),[k,E]=(0,r.useState)(p??"Any"),C=(0,r.useRef)(null),T=(0,r.useRef)(null);(0,r.useEffect)(()=>{C.current&&n.default.set(C.current,{scale:0})},[]);let R=e=>{let t=e.currentTarget,r=T.current;if(!r||!C.current)return;let i=t.getBoundingClientRect(),l=r.getBoundingClientRect(),a=i.top-l.top+i.height/2-2;n.default.to(C.current,{y:a,duration:.6,ease:"elastic.out(1, 0.8)",overwrite:"auto"}
1),n.default.to(C.current,{scale:1,opacity:1,duration:.25,ease:"back.out(2)",overwrite:"auto"})},M=d.departments??[],_=d.departmentList??[],P=d.locations??[],D=_.includes("Any")?_:["Any",..._],I=P.includes("Any")?P:["Any",...P],A=!j&&!f&&D.length>2,O=!j&&!p&&I.length>2,L=(0,r.useMemo)(()=>{let e=f??N,t=p??k;return M.map(n=>({...n,jobs:n.jobs.filter(r=>("Any"===e||n.name===e)&&("Any"===t||r.location?.name===t))})).filter(e=>e.jobs.length>0)},[M,f,p,N,k]);return(0,t.jsx)(s.Section,{reveal:!0,id:e,theme:u,aside:m?.title?(0,t.jsx)(i.AsideNote,{title:m.title,theme:m.theme,link:m.link,number:m.number}):null,children:(0,t.jsxs)(o.PageGrid,{"data-reveal-children":!0,className:"w-full max-w-9xl gap-y-15 px-4 lg:px-6",children:[(0,t.jsxs)("div",{"data-reveal-child":!0,className:"reveal col-span-full lg:col-span-5 lg:self-start xl:sticky xl:top-(--nav-height)",children:[(0,c.hasContent)(g)?(0,t.jsx)("p",{className:"mb-4 text-eyebrow-1",children:(0,t.jsx)(c.InlineValue,{value:g})}):null,(0,t.jsx)(w,{className:"wrap-break-words font-serif text-headline-3 lg:text-headline-2",children:(0,c.hasContent)(x)?(0,t.jsx)(c.InlineValue,{value:x}):"Open positions"}),(0,t.jsx)(a.RichText,{className:"mt-4 font-serif text-subhead-1",value:v}),(0,t.jsx)(a.RichText,{className:"mt-4 text-body-2 lg:text-body-1",value:b}),y?.length?(0,t.jsx)(l.CtaList,{items:y,className:"mt-6"}):null]}),(0,t.jsxs)("div",{ref:T,"data-reveal-child":!0,className:"reveal relative col-span-full space-y-10 xl:col-span-7",onMouseLeave:()=>{n.default.to(C.current,{scale:0,opacity:0,duration:.3,ease:"back.in(1.5)",overwrite:"auto"})},children:[(0,t.jsx)("div",{ref:C,className:"pointer-events-none absolute top-0 size-1 rounded-full bg-foreground opacity-0 lg:-left-4 xl:-left-5","aria-hidden":"true"}),A||O?(0,t.jsxs)("form",{className:"flex flex-wrap gap-4",children:[A?(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("label",{htmlFor:"careers-department",className:"block text-body-3",children:"Filter by Department"}),(0,t.jsx)("select",{id:"careers-department",value:N,onChange:e=>S(e.target.value),className:"rounded-xs border border-border bg-background px-3 py-2 text-foreground",children:D.map(e=>(0,t.jsx)("option",{value:e,children:e},e))})]}):null,O?(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("label",{htmlFor:"careers-location",className:"block text-body-2",children:"Filter by Location"}),(0,t.jsx)("select",{id:"careers-location",value:k,onChange:e=>E(e.target.value),className:"rounded-xs border border-border bg-background px-3 py-2 text-foreground",children:I.map(e=>(0,t.jsx)("option",{value:e,children:e},e))})]}):null]}):null,0===L.length?(0,t.jsx)("p",{className:"text-body-1 text-muted-foreground",children:"No open positions at this time."}):L.map(e=>(0,t.jsxs)("div",{"data-department-group":e.name,children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 border-muted-foreground/30 border-t pt-3",children:[(0,t.jsx)("span",{className:"text-sm",children:e.name}),(0,t.jsx)("span",{className:"inline-flex size-4 shrink-0 items-center justify-center rounded-xxs bg-muted-foreground/10 text-xs tabular-nums",children:e.jobs.length})]}),(0,t.jsx)("ul",{className:"mt-10",children:e.jobs.map(n=>(0,t.jsx)("li",{className:"border-muted-foreground/10 border-t","data-department":e.name,"data-location":n.location?.name,children:(0,t.jsxs)("a",{href:n.absolute_url,target:"_blank",className:"flex items-center justify-between gap-1 py-3 text-foreground no-underline",onMouseEnter:R,rel:"noopener",children:[(0,t.jsx)("span",{className:"shrink-0 text-balance text-body-2 tracking-tight max-lg:max-w-[50%]",children:n.title}),n.location?.name?(0,t.jsx)("span",{className:"min-w-0 text-body-2 text-muted-foreground tracking-tight",children:n.location.name}):null]})},`${e.name}-${n.id??n.title}`))})]},e.id??e.name))]})]})})}])},130013,e=>{"use strict";var t=e.i(271645);function n(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function r(e,t){let i=Object.keys(e),l=Object.keys(t);return i.length===l.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&i.every(i=>{let l=e[i],a=t[i];return"function"==typeof l?`${l}`==`${a}`:n(l)&&n(a)?r(l,a):l===a})}function i(e){return e.concat().sort((e,t)=>
1e.name>t.name?1:-1).map(e=>e.options)}function l(e){return"number"==typeof e}function a(e){return"string"==typeof e}function o(e){return"boolean"==typeof e}function s(e){return"[object Object]"===Object.prototype.toString.call(e)}function c(e){return Math.abs(e)}function u(e){return Math.sign(e)}function d(e){return h(e).map(Number)}function f(e){return e[p(e)]}function p(e){return Math.max(0,e.length-1)}function m(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function h(e){return Object.keys(e)}function g(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function x(){let e=[],t={add:function(n,r,i,l={passive:!0}){let a;return"addEventListener"in n?(n.addEventListener(r,i,l),a=()=>n.removeEventListener(r,i,l)):(n.addListener(i),a=()=>n.removeListener(i)),e.push(a),t},clear:function(){e=e.filter(e=>e())}};return t}function v(e=0,t=0){let n=c(e-t);function r(n){return n<e||n>t}return{length:n,max:t,min:e,constrain:function(n){return r(n)?n<e?e:t:n},reachedAny:r,reachedMax:function(e){return e>t},reachedMin:function(t){return t<e},removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}}}function b(e){let t=e;function n(e){return l(e)?e:e.get()}return{get:function(){return t},set:function(e){t=n(e)},add:function(e){t+=n(e)},subtract:function(e){t-=n(e)}}}function y(e,t){let n="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},r=t.style,i=null,l=!1;return{clear:function(){!l&&(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(l)return;let a=Math.round(100*e.direction(t))/100;a!==i&&(r.transform=n(a),i=a)},toggleActive:function(e){l=!e}}}let w={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function j(e,t,n){let r,i,N,S,k,E,C,T,R=e.ownerDocument,M=R.defaultView,_=function(e){function t(e,t){return function e(t,n){return[t,n].reduce((t,n)=>(h(n).forEach(r=>{let i=t[r],l=n[r],a=s(i)&&s(l);t[r]=a?e(i,l):l}),t),{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){let r=n.breakpoints||{},i=h(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{});return t(n,i)},optionsMediaQueries:function(t){return t.map(e=>h(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}}}(M),P=(T=[],{init:function(e,t){return(T=t.filter(({options:e})=>!1!==_.optionsAtMedia(e).active)).forEach(t=>t.init(e,_)),t.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){T=T.filter(e=>e.destroy())}}),D=x(),I=(i={},N={init:function(e){r=e},emit:function(e){return(i[e]||[]).forEach(t=>t(r,e)),N},off:function(e,t){return i[e]=(i[e]||[]).filter(e=>e!==t),N},on:function(e,t){return i[e]=(i[e]||[]).concat([t]),N},clear:function(){i={}}}),{mergeOptions:A,optionsAtMedia:O,optionsMediaQueries:L}=_,{on:F,off:z,emit:B}=I,V=!1,H=A(w,j.globalOptions),Y=A(H),W=[];function $(t,n){V||(Y=O(H=A(H,t)),W=n||W,function(){let{container:t,slides:n}=Y;E=(a(t)?e.querySelector(t):t)||e.children[0];let r=a(n)?E.querySelectorAll(n):n;C=[].slice.call(r||E.children)}(),S=function t(n){let r=function(e,t,n,r,i,s,w){var j,N;let S,k,E,C,T,R,M,_,P,D,I,A,O,L,{align:F,axis:z,direction:B,startIndex:V,loop:H,duration:Y,dragFree:W,dragThreshold:$,inViewThreshold:X,slidesToScroll:q,skipSnaps:U,containScroll:G,watchResize:K,watchSlides:Z,watchDrag:J,watchFocus:Q}=s,ee={measure:function(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;return{top:t,right:n+r,bottom:t+i,left:n,width:r,height:i}}},et=ee.measure(t),en=n.map(ee.measure),er=(k="rtl"===B,C=(E="y"===z)||!k?1:-1,T=E?"top":k?"right":"left",R=E?"bottom":k?"left":"right",{scroll:E?"y":"x",cross:E?"x":"y",startEdge:T,endEdge:R,measureSize:function(e){let{height:t,width:n}=e;return E?t:n},direction:function(e){return e*C}}),ei=er.measureSize(et),el={measure:function(e){return e/100*ei}},ea=(j=F,N=ei,S={start:function(){return 0},center:function(e){return(N-e)/2},end:function(e){return N-e}},{measure:function(e,t){return a(j)?S[j](e):j(N,e,t)}}),eo=!H&&!!G,{slideSizes:es,slideSizesWithGaps:ec,startGap:eu,endGap:ed}=function(e,t,n,r,i,l){let{measureSize:a,startEdge:o,endEdge:s}=e,u=n[0]&&i,d=function(){if(!u)return 0;let e=n[0];return c(t[o]-e[o])}
1(),m=u?parseFloat(l.getComputedStyle(f(r)).getPropertyValue(`margin-${s}`)):0,h=n.map(a),g=n.map((e,t,n)=>{let r=t===p(n);return t?r?h[t]+m:n[t+1][o]-e[o]:h[t]+d}).map(c);return{slideSizes:h,slideSizesWithGaps:g,startGap:d,endGap:m}}(er,et,en,n,H||!!G,i),ef=function(e,t,n,r,i,a,o,s){let{startEdge:u,endEdge:m,direction:h}=e,g=l(n);return{groupSlides:function(e){return g?d(e).filter(e=>e%n==0).map(t=>e.slice(t,t+n)):e.length?d(e).reduce((n,l,d)=>{let g=f(n)||0,x=l===p(e),v=i[u]-a[g][u],b=i[u]-a[l][m],y=r||0!==g?0:h(o),w=c(b-(!r&&x?h(s):0)-(v+y));return d&&w>t+2&&n.push(l),x&&n.push(e.length),n},[]).map((t,n,r)=>{let i=Math.max(r[n-1]||0);return e.slice(i,t)}):[]}}}(er,ei,q,H,et,en,eu,ed),{snaps:ep,snapsAligned:em}=function(e,t,n,r,i){let{startEdge:l,endEdge:a}=e,{groupSlides:o}=i,s=o(r).map(e=>f(e)[a]-e[0][l]).map(c).map(t.measure),u=r.map(e=>n[l]-e[l]).map(e=>-c(e)),d=o(u).map(e=>e[0]).map((e,t)=>e+s[t]);return{snaps:u,snapsAligned:d}}(er,ea,et,en,ef),eh=-f(ep)+f(ec),{snapsContained:eg,scrollContainLimit:ex}=function(e,t,n,r){let i,l,a=v(-t+e,0),o=n.map((e,t)=>{let{min:r,max:i}=a,l=a.constrain(e),o=t===p(n);return t?o||function(e,t){return 1>=c(e-t)}(r,l)?r:function(e,t){return 1>=c(e-t)}(i,l)?i:l:i}).map(e=>parseFloat(e.toFixed(3))),s=(i=o[0],l=f(o),v(o.lastIndexOf(i),o.indexOf(l)+1));return{snapsContained:function(){if(t<=e+2)return[a.max];if("keepSnaps"===r)return o;let{min:n,max:i}=s;return o.slice(n,i)}(),scrollContainLimit:s}}(ei,eh,em,G),ev=eo?eg:em,{limit:eb}=(M=ev[0],{limit:v(H?M-eh:f(ev),M)}),ey=function e(t,n,r){let{constrain:i}=v(0,t),l=t+1,a=o(n);function o(e){return r?c((l+e)%l):i(e)}function s(){return e(t,a,r)}let u={get:function(){return a}
1,set:function(e){return a=o(e),u},add:function(e){return s().set(a+e)},clone:s};return u}(p(ev),V,H),ew=ey.clone(),ej=d(n),eN=function(e,t,n,r){let i=x(),l=1e3/60,a=null,o=0,s=0;function c(e){if(!s)return;a||(a=e,n(),n());let i=e-a;for(a=e,o+=i;o>=l;)n(),o-=l;r(o/l),s&&(s=t.requestAnimationFrame(c))}function u(){t.cancelAnimationFrame(s),a=null,o=0,s=0}return{init:function(){i.add(e,"visibilitychange",()=>{e.hidden&&(a=null,o=0)})},destroy:function(){u(),i.clear()},start:function(){s||(s=t.requestAnimationFrame(c))},stop:u,update:n,render:r}}(r,i,()=>(({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(e.pointerDown()),t.seek()})(eL),e=>(({scrollBody:e,translate:t,location:n,offsetLocation:r,previousLocation:i,scrollLooper:l,slideLooper:a,dragHandler:o,animation:s,eventHandler:c,scrollBounds:u,options:{loop:d}},f)=>{let p=e.settled(),m=!u.shouldConstrain(),h=d?p:p&&m,g=h&&!o.pointerDown();g&&s.stop();let x=n.get()*f+i.get()*(1-f);r.set(x),d&&(l.loop(e.direction()),a.loop()),t.to(r.get()),g&&c.emit("settle"),h||c.emit("scroll")})(eL,e)),eS=ev[ey.get()],ek=b(eS),eE=b(eS),eC=b(eS),eT=b(eS),eR=function(e,t,n,r,i){let l=0,a=0,o=i,s=.68,d=e.get(),f=0;function p(e){return o=e,h}function m(e){return s=e,h}let h={direction:function(){return a},duration:function(){return o},velocity:function(){return l},seek:function(){let t=r.get()-e.get(),i=0;return o?(n.set(e),l+=t/o,l*=s,d+=l,e.add(l),i=d-f):(l=0,n.set(r),e.set(r),i=t),a=u(i),f=d,h},settled:function(){return .001>c(r.get()-t.get())},useBaseFriction:function(){return m(.68)},useBaseDuration:function(){return p(i)},useFriction:m,useDuration:p};return h}(ek,eC,eE,eT,Y),eM=function(e,t,n,r,i){let{reachedAny:l,removeOffset:a,constrain:o}=r;function s(e){return e.concat().sort((e,t)=>c(e)-c(t))[0]}function d(t,r){let i=[t,t+n,t-n];if(!e)return t;if(!r)return s(i);let l=i.filter(e=>u(e)===r);return l.length?s(l):f(i)-n}return{byDistance:function(n,r){let s=i.get()+n,{index:u,distance:f}=function(n){let r=e?a(n):o(n),{index:i}=t.map((e,t)=>({diff:d(e-r,0),index:t})).sort((e,t)=>c(e.diff)-c(t.diff))[0];return{index:i,distance:r}}(s),p=!e&&l(s);if(!r||p)return{index:u,distance:n};let m=n+d(t[u]-f,0);return{index:u,distance:m}},byIndex:function(e,n){let r=d(t[e]-i.get(),n);return{index:e,distance:r}},shortcut:d}}(H,ev,eh,eb,eT),e_=function(e,t,n,r,i,l,a){function o(i){let o=i.distance,s=i.index!==t.get();
1l.add(o),o&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),s&&(n.set(t.get()),t.set(i.index),a.emit("select"))}return{distance:function(e,t){o(i.byDistance(e,t))},index:function(e,n){let r=t.clone().set(e);o(i.byIndex(r.get(),n))}}}(eN,ey,ew,eR,eM,eT,w),eP=function(e){let{max:t,length:n}=e;return{get:function(e){return n?-((e-t)/n):0}}}(eb),eD=x(),eI=(P={},D=null,I=null,A=!1,{init:function(){_=new IntersectionObserver(e=>{A||(e.forEach(e=>{P[n.indexOf(e.target)]=e}),D=null,I=null,w.emit("slidesInView"))},{root:t.parentElement,threshold:X}),n.forEach(e=>_.observe(e))},destroy:function(){_&&_.disconnect(),A=!0},get:function(e=!0){if(e&&D)return D;if(!e&&I)return I;let t=h(P).reduce((t,n)=>{let r=parseInt(n),{isIntersecting:i}=P[r];return(e&&i||!e&&!i)&&t.push(r),t},[]);return e&&(D=t),e||(I=t),t}}),{slideRegistry:eA}=function(e,t,n,r,i,l){let a,{groupSlides:o}=i,{min:s,max:c}=r;return{slideRegistry:(a=o(l),1===n.length?[l]:e&&"keepSnaps"!==t?a.slice(s,c).map((e,t,n)=>{let r=t===p(n);return t?r?m(p(l)-f(n)[0]+1,f(n)[0]):e:m(f(n[0])+1)}):a)}}(eo,G,ev,ex,ef,ej),eO=function(e,t,n,r,i,a,s,c){let u={passive:!0,capture:!0},d=0;function f(e){"Tab"===e.code&&(d=new Date().getTime())}return{init:function(p){c&&(a.add(document,"keydown",f,!1),t.forEach((t,f)=>{a.add(t,"focus",t=>{(o(c)||c(p,t))&&function(t){if(new Date().getTime()-d>10)return;s.emit("slideFocusStart"),e.scrollLeft=0;let a=n.findIndex(e=>e.includes(t));l(a)&&(i.useDuration(0),r.index(a,0),s.emit("slideFocus"))}(f)},u)}))}}}(e,n,eA,e_,eR,eD,w,Q),eL={ownerDocument:r,ownerWindow:i,eventHandler:w,containerRect:et,slideRects:en,animation:eN,axis:er,dragHandler:function(e,t,n,r,i,l,a,s,d,f,p,m,h,b,y,w,j,N){let{cross:S,direction:k}=e,E=["INPUT","SELECT","TEXTAREA"],C={passive:!1},T=x(),R=x(),M=v(50,225).constrain(b.measure(20)),_={mouse:300,touch:400},P={mouse:500,touch:600},D=y?43:25,I=!1,A=0,O=0,L=!1,F=!1,z=!1,B=!1;function V(e){if(!g(e,r)&&e.touches.length>=2)return H(e);let t=l.readPoint(e),n=l.readPoint(e,S),a=c(t-A),o=c(n-O);if(!F&&!B&&(!e.cancelable||!(F=a>o)))return H(e);let u=l.pointerMove(e);a>w&&(z=!0),f.useFriction(.3).useDuration(.75),s.start(),i.add(k(u)),e.preventDefault()}function H(e){var t;let n,r,i=p.byDistance(0,!1).index!==m.get(),a=l.pointerUp(e)*(y?P:_)[B?"mouse":"touch"],o=(t=k(a),n=m.add(-1*u(t)),r=p.byDistance(t,!y).distance,y||c(t)<M?r:j&&i?.5*r:p.byIndex(n.get(),0).distance),s=function(e,t){var n,r;if(0===e||0===t||c(e)<=c(t))return 0;let i=(n=c(e),r=c(t),c(n-r));return c(i/e)}(a,o);F=!1,L=!1,R.clear(),f.useDuration(D-10*s).useFriction(.68+s/50),d.distance(o,!y),B=!1,h.emit("pointerUp")}function Y(e){z&&(e.stopPropagation(),e.preventDefault(),z=!1)}return{init:function(e){N&&T.add(t,"dragstart",e=>e.preventDefault(),C).add(t,"touchmove",()=>void 0,C).add(t,"touchend",()=>void 0).add(t,"touchstart",s).add(t,"mousedown",s).add(t,"touchcancel",H).add(t,"contextmenu",H).add(t,"click",Y,!0);function s(s){(o(N)||N(e,s))&&function(e){let o,s=g(e,r);if((B=s,z=y&&s&&!e.buttons&&I,I=c(i.get()-a.get())>=2,!s||0===e.button)&&(o=e.target.nodeName||"",!E.includes(o))){let r;L=!0,l.pointerDown(e),f.useFriction(0).useDuration(0),i.set(a),r=B?n:t,R.add(r,"touchmove",V,C).add(r,"touchend",H).add(r,"mousemove",V,C).add(r,"mouseup",H),A=l.readPoint(e),O=l.readPoint(e,S),h.emit("pointerDown")}}(s)}},destroy:function(){T.clear(),R.clear()},pointerDown:function(){return L}}}(er,e,r,i,eT,function(e,t){let n,r;function i(e){return e.timeStamp}function l(n,r){let i=r||e.scroll,l=`client${"x"===i?"X":"Y"}`;return(g(n,t)?n:n.touches[0])[l]}return{pointerDown:function(e){return n=e,r=e,l(e)},pointerMove:function(e){let t=l(e)-l(r),a=i(e)-i(n)>170;return r=e,a&&(n=e),t},pointerUp:function(e){if(!n||!r)return 0;let t=l(r)-l(n),a=i(e)-i(n),o=i(e)-i(r)>170,s=t/a;return a&&!o&&c(s)>.1?s:0},readPoint:l}}(er,i),ek,eN,e_,eR,eM,ey,w,el,W,$,U,J),eventStore:eD,percentOfView:el,index:ey,indexPrevious:ew,limit:eb,location:ek,offsetLocation:eC,previousLocation:eE,options:s,resizeHandler:function(e,t,n,r,i,l,a){let s,u,d=[e].concat(r),f=[],p=!1;function m(e){return i.measureSize(a.measure(e))}return{init:function(i){l&&(u=m(e),f=r.map(m),s=new ResizeObserver(n=>{(o(l)||l(i,n))&&function(n){for(let l of n){if(p)return;let n=l.target===e,a=r.indexOf(l.target),o=n?u:f[a];if(c(m(n?e:r[a])-o)>=.5){i.reInit(),t.emit("resize");break}}}(n)}),n.requestAnimationFrame(()=>
1{d.forEach(e=>s.observe(e))}))},destroy:function(){p=!0,s&&s.disconnect()}}}(t,w,i,n,er,K,ee),scrollBody:eR,scrollBounds:function(e,t,n,r,i){let l=i.measure(10),a=i.measure(50),o=v(.1,.99),s=!1;function u(){return!s&&!!e.reachedAny(n.get())&&!!e.reachedAny(t.get())}return{shouldConstrain:u,constrain:function(i){if(!u())return;let s=e.reachedMin(t.get())?"min":"max",d=c(e[s]-t.get()),f=n.get()-t.get(),p=o.constrain(d/a);n.subtract(f*p),!i&&c(f)<l&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())},toggleActive:function(e){s=!e}}}(eb,eC,eT,eR,el),scrollLooper:function(e,t,n,r){let{reachedMin:i,reachedMax:l}=v(t.min+.1,t.max+.1);return{loop:function(t){if(!(1===t?l(n.get()):-1===t&&i(n.get())))return;let a=-1*t*e;r.forEach(e=>e.add(a))}}}(eh,eb,eC,[ek,eC,eE,eT]),scrollProgress:eP,scrollSnapList:ev.map(eP.get),scrollSnaps:ev,scrollTarget:eM,scrollTo:e_,slideLooper:function(e,t,n,r,i,l,a,o,s){let c=d(i),u=d(i).reverse(),f=h(m(u,a[0]),n,!1).concat(h(m(c,t-a[0]-1),-n,!0));function p(e,t){return e.reduce((e,t)=>e-i[t],t)}function m(e,t){return e.reduce((e,n)=>p(e,t)>0?e.concat([n]):e,[])}function h(i,a,c){let u=l.map((e,n)=>({start:e-r[n]+.5+a,end:e+t-.5+a}));return i.map(t=>{let r=c?0:-n,i=c?n:0,l=u[t][c?"end":"start"];return{index:t,loopPoint:l,slideLocation:b(-1),translate:y(e,s[t]),target:()=>o.get()>l?r:i}})}return{canLoop:function(){return f.every(({index:e})=>.1>=p(c.filter(t=>t!==e),t))},clear:function(){f.forEach(e=>e.translate.clear())},loop:function(){f.forEach(e=>{let{target:t,translate:n,slideLocation:r}=e,i=t();i!==r.get()&&(n.to(i),r.set(i))})},loopPoints:f}}(er,ei,eh,es,ec,ep,ev,eC,n),slideFocus:eO,slidesHandler:(L=!1,{init:function(e){Z&&(O=new MutationObserver(t=>{!L&&(o(Z)||Z(e,t))&&function(t){for(let n of t)if("childList"===n.type){e.reInit(),w.emit("slidesChanged");break}}(t)})).observe(t,{childList:!0})},destroy:function(){O&&O.disconnect(),L=!0}}),slidesInView:eI,slideIndexes:ej,slideRegistry:eA,slidesToScroll:ef,target:eT,translate:y(er,t)};return eL}(e,E,C,R,M,n,I);return n.loop&&!r.slideLooper.canLoop()?t(Object.assign({},n,{loop:!1})):r}(Y),L([H,...W.map(({options:e})=>e)]).forEach(e=>D.add(e,"change",X)),Y.active&&(S.translate.to(S.location.get()),S.animation.init(),S.slidesInView.init(),S.slideFocus.init(K),S.eventHandler.init(K),S.resizeHandler.init(K),S.slidesHandler.init(K),S.options.loop&&S.slideLooper.loop(),E.offsetParent&&C.length&&S.dragHandler.init(K),k=P.init(K,W)))}function X(e,t){let n=G();q(),$(A({startIndex:n},e),t),I.emit("reInit")}function q(){S.dragHandler.destroy(),S.eventStore.clear(),S.translate.clear(),S.slideLooper.clear(),S.resizeHandler.destroy(),S.slidesHandler.destroy(),S.slidesInView.destroy(),S.animation.destroy(),P.destroy(),D.clear()}function U(e,t,n){Y.active&&!V&&(S.scrollBody.useBaseFriction().useDuration(!0===t?0:Y.duration),S.scrollTo.index(e,n||0))}function G(){return S.index.get()}let K={canScrollNext:function(){return S.index.add(1).get()!==G()},canScrollPrev:function(){return S.index.add(-1).get()!==G()},containerNode:function(){return E},internalEngine:function(){return S},destroy:function(){V||(V=!0,D.clear(),q(),I.emit("destroy"),I.clear())},off:z,on:F,emit:B,plugins:function(){return k},previousScrollSnap:function(){return S.indexPrevious.get()},reInit:X,rootNode:function(){return e},scrollNext:function(e){U(S.index.add(1).get(),e,-1)},scrollPrev:function(e){U(S.index.add(-1).get(),e,1)},scrollProgress:function(){return S.scrollProgress.get(S.offsetLocation.get())},scrollSnapList:function(){return S.scrollSnapList},scrollTo:U,selectedScrollSnap:G,slideNodes:function(){return C},slidesInView:function(){return S.slidesInView.get()},slidesNotInView:function(){return S.slidesInView.get(!1)}};return $(t,n),setTimeout(()=>I.emit("init"),0),K}function N(e={},n=[]){let l=(0,t.useRef)(e),a=(0,t.useRef)(n),[o,s]=(0,t.useState)(),[c,u]=(0,t.useState)(),d=(0,t.useCallback)(()=>{o&&o.reInit(l.current,a.current)},[o]);return(0,t.useEffect)(()=>{r(l.current,e)||(l.current=e,d())},[e,d]),(0,t.useEffect)(()=>{!function(e,t){if(e.length!==t.length)return!1;let n=i(e),l=i(t);return n.every((e,t)=>r(e,l[t]))}(a.current,n)&&(a.current=n,d())},[n,d]),(0,t.useEffect)(()=>
1{if("u">typeof window&&window.document&&window.document.createElement&&c){j.globalOptions=N.globalOptions;let e=j(c,l.current,a.current);return s(e),()=>e.destroy()}s(void 0)},[c,s]),[u,o]}j.globalOptions=void 0,N.globalOptions=void 0,e.s(["default",0,N],130013)},460630,e=>{"use strict";var t=e.i(271645);e.s(["useReducedMotion",0,function(){let[e,n]=(0,t.useState)(()=>window.matchMedia("(prefers-reduced-motion: reduce)").matches);return(0,t.useEffect)(()=>{let e=window.matchMedia("(prefers-reduced-motion: reduce)"),t=e=>n(e.matches);return e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]),e}])},963003,e=>{"use strict";var t=e.i(843476),n=e.i(130013),r=e.i(271645),i=e.i(320351),l=e.i(125027),a=e.i(512471),o=e.i(931680),s=e.i(893880),c=e.i(460630),u=e.i(945060);let d="inline-flex aspect-square h-9 w-9 cursor-pointer items-center justify-center rounded-full border-0 bg-[color-mix(in_srgb,var(--color-greige-300)_16%,transparent)] leading-none disabled:pointer-events-none disabled:[&_svg]:opacity-30 [&_svg]:h-3.5 [&_svg]:text-greige-300";function f(e,t,n){return Math.min(Math.max(e,t),n)}function p({item:e}){return(0,t.jsxs)("figure",{className:"flex aspect-[4/5] w-full flex-col justify-between rounded-xs bg-greige-100 p-8 lg:p-10",children:[e.text?(0,t.jsx)("blockquote",{className:"font-serif text-2xl not-italic leading-[1.2] tracking-tight lg:text-headline-3",children:e.text}):null,(0,t.jsxs)("figcaption",{className:"mt-8 flex items-end justify-between gap-3",children:[(0,t.jsxs)("div",{className:"space-y-1.5",children:[e.citation?(0,t.jsx)("p",{className:"text-body-2 leading-snug",children:e.citation}):null,e.citationDescriptor?(0,t.jsx)("p",{className:"text-body-3 text-muted-foreground",children:e.citationDescriptor}):null]}),e.photo||e.logo?(0,t.jsxs)("div",{className:"flex shrink-0 items-center pr-2",children:[e.photo?(0,t.jsx)(a.Image,{media:e.photo,ratio:"1-1",sizes:"72px",className:"-mr-2 size-18 shrink-0 overflow-hidden rounded-full [&_img]:object-cover"}):null,e.logo?(0,t.jsx)("span",{className:"z-10 -mr-2 flex size-18 items-center justify-center rounded-full bg-greige-200",children:(0,t.jsx)(a.Image,{media:e.logo,sizes:"72px",className:"w-full max-w-10 shrink-0 overflow-hidden [&_img]:object-contain"})}):null]}):null]})]})}function m({item:e}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"hidden w-full overflow-hidden rounded-lg lg:flex lg:aspect-2/1",children:[(0,t.jsxs)("div",{className:"flex w-full flex-col justify-between gap-10 bg-greige-100 p-6",children:[e.quote?(0,t.jsx)("p",{className:"font-serif text-2xl leading-[1.05] tracking-tight",children:e.quote}):null,e.stats?.length?(0,t.jsx)("div",{className:"flex gap-4",children:e.stats.map((e,n)=>(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-2 border-muted-foreground/20 border-t pt-2",children:[e.value?(0,t.jsx)("p",{className:"font-serif text-2xl leading-[1.05] tracking-tight",children:e.value}):null,e.label?(0,t.jsx)("p",{className:"text-body-3 text-muted-foreground leading-snug",children:e.label}):null]},n))}):null,e.citation||e.citationDescriptor?(0,t.jsxs)("div",{className:"space-y-1.5 border-muted-foreground/20 border-t pt-2",children:[e.citation?(0,t.jsx)("p",{className:"text-body-2",children:e.citation}):null,e.citationDescriptor?(0,t.jsx)("p",{className:"text-body-3 text-muted-foreground",children:e.citationDescriptor}):null]}):null]}),e.photo?(0,t.jsxs)("div",{className:"relative w-1/2",children:[(0,t.jsx)(a.Image,{media:e.photo,ratio:"1-1",sizes:"450px",className:"size-full [&_img]:object-cover"}),e.cta?.length?(0,t.jsx)(i.CtaList,{items:e.cta,className:"absolute inset-x-6 bottom-6 [&>*]:w-full [&>*]:justify-between"}):null]}):null]}),(0,t.jsxs)("div",{className:"flex min-h-[440px] w-full flex-col justify-between gap-6 rounded-md bg-greige-100 p-5 lg:hidden",children:[e.quote?(0,t.jsx)("p",{className:"font-serif text-xl leading-[1.05] tracking-tight",children:e.quote}):null,e.stats?.length?(0,t.jsxs)("div",{className:"flex flex-col justify-end gap-4",children:[e.citation||e.citationDescriptor||e.photo?(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[e.citation||e.citationDescriptor?(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-1",children:[e.citation?(0,t.jsx)("p",{className:"text-body-3",children:e.citation}):null,e.citationDescriptor?(0,t.jsx)("p",{className:"text-caption-1 text-muted-foreground",children:e.citationDescriptor}):null]}):null,e.photo?(0,t.jsx)(a.Image,{media:e.photo,ratio:"1-1",sizes:"48px",className:"size-12 shrink-0 overflow-hidden rounded-full [&_img]:object-cover"}):null]}):null,(0,t.jsx)("div",{className:"flex flex-1 gap-4",children:e.stats.map((e,n)=>(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-2 border-muted-foreground
1/20 border-t pt-2",children:[e.value?(0,t.jsx)("p",{className:"font-serif text-xl leading-[1.05] tracking-tight",children:e.value}):null,e.label?(0,t.jsx)("p",{className:"text-caption-1 text-muted-foreground leading-snug",children:e.label}):null]},n))}),e.cta?.length?(0,t.jsx)(i.CtaList,{items:e.cta,className:"[&>*]:w-full [&>*]:justify-between"}):null]}):null]})]})}e.s(["Carousel",0,function({sectionId:e,theme:i,title:a,items:h,variant:g="single",autoplay:x=!1,centerTitleMobile:v,semanticLevel:b="h2"}){let y=h??[],w="coverflow"===g,j=(0,c.useReducedMotion)(),N=!!x&&y.length>1&&!j,[S,k]=(0,n.default)({align:"center",loop:w,containScroll:!w&&"trimSnaps"}),[E,C]=(0,r.useState)(0),[T,R]=(0,r.useState)([]),[M,_]=(0,r.useState)(0),P=(0,r.useRef)(Date.now()),D=(0,r.useRef)(null),I=(0,r.useRef)(null),A=(0,r.useRef)(!1),O=(0,r.useRef)(0),L=(0,r.useRef)([]),F=(0,r.useCallback)(e=>{L.current=e.slideNodes().map(e=>e.firstElementChild)},[]),z=(0,r.useCallback)(e=>{O.current=.35*e.scrollSnapList().length},[]),B=(0,r.useCallback)(e=>{let t=e.internalEngine(),n=e.scrollProgress();e.scrollSnapList().forEach((e,r)=>{let i=e-n;t.slideRegistry[r].forEach(r=>{t.options.loop&&t.slideLooper.loopPoints.forEach(t=>{let l=t.target();r===t.index&&0!==l&&(-1===Math.sign(l)&&(i=e-(1+n)),1===Math.sign(l)&&(i=e+(1-n)))});let l=1-Math.abs(i*O.current),a=L.current[r];a&&(a.style.transform=`scale(${f(l,.85,1)})`,a.style.opacity=String(f(l,.4,1)))})})},[]);(0,r.useEffect)(()=>{if(k&&w)return F(k),z(k),B(k),k.on("reInit",F).on("reInit",z).on("reInit",B).on("scroll",B).on("slideFocus",B),()=>{k.off("reInit",F).off("reInit",z).off("reInit",B).off("scroll",B).off("slideFocus",B)}},[k,w,F,z,B]);let V=(0,r.useCallback)(()=>{k&&(C(k.selectedScrollSnap()),N&&(P.current=Date.now(),_(0)))},[k,N]);if((0,r.useEffect)(()=>{if(k)return R(k.scrollSnapList()),V(),k.on("select",V),k.on("reInit",V),()=>{k.off("select",V),k.off("reInit",V)}},[k,V]),(0,r.useEffect)(()=>{if(!N)return;let e=I.current;if(!e)return;let t=new IntersectionObserver(([e])=>{A.current=e.isIntersecting,e.isIntersecting&&(P.current=Date.now(),_(0))},{threshold:.1});return t.observe(e),()=>t.disconnect()},[N]),(0,r.useEffect)(()=>{if(!N||!k)return;P.current=Date.now();let e=()=>{if(A.current){let e=Math.min((Date.now()-P.current)/8e3,1);_(e),e>=1&&k.scrollNext()}D.current=requestAnimationFrame(e)};return D.current=requestAnimationFrame(e),()=>{null!==D.current&&cancelAnimationFrame(D.current)}},[N,k]),!y.length)return null;let H=(0,t.jsxs)("div",{className:"mt-6 flex items-center justify-center gap-2",children:[N?null:(0,t.jsx)("button",{type:"button",className:d,onClick:()=>k?.scrollPrev(),"aria-label":"Previous slide",children:(0,t.jsx)(l.Icon,{name:"chevronLeft"})}),(0,t.jsx)("div",{"data-carousel-progress":N||void 0,className:"inline-flex items-center rounded-xs border border-greige-100 px-5 py-4.5",children:(0,t.jsx)("div",{role:"group","aria-label":"Slide navigation",className:"flex items-center gap-1",children:T.map((e,n)=>{let r=n===E;return(0,t.jsxs)("button",{type:"button","aria-label":`Show slide ${n+1}`,"aria-current":r?"true":void 0,onClick:()=>k?.scrollTo(n),className:(0,u.cn)("relative cursor-pointer overflow-hidden rounded-full border-0 p-0 transition-[width,background-color] duration-300",r&&N?"h-1.5 w-10":"h-1.5 w-1.5",r&&!N?"bg-greige-700":"bg-greige-300"),children:[N&&r?(0,t.jsx)("span",{"aria-hidden":"true",className:"absolute inset-0 rounded-full bg-greige-700 transition-none",style:{width:`${100*M}%`}}):null,(0,t.jsxs)("span",{className:"sr-only",children:["Slide ",n+1]})]},n)})})}),N?null:(0,t.jsx)("button",{type:"button",className:d,onClick:()=>k?.scrollNext(),"aria-label":"Next slide",children:(0,t.jsx)(l.Icon,{name:"chevronRight"})})]});return w?(0,t.jsx)(s.Section,{id:e,theme:i,padding:"flush-inline",className:"overflow-hidden",children:(0,t.jsxs)("div",{ref:I,className:"relative space-y-10",children:[(0,t.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-y-0 left-0 z-10 w-[min(160px,15vw)] bg-linear-to-r from-background to-transparent"}),(0,t.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-y-0 right-0 z-10 w-[min(160px,15vw)] bg-linear-to-l from-background to-transparent"}),a?(0,t.jsx)(o.PageGrid,{className:"container",children:(0,t.jsx)(b,{className:(0,u.cn)("relative z-30 col-span-full font-serif text-headline-2",v&&"max-lg:text-center"),children:a})}):null,(0,t.jsx)("div",{className:"overflow-hidden",children:(0,t.jsx)("div",{ref:S,"data-carousel-coverflow":!0,children:(0,t.jsx)("div",{className:"flex",children:y.map((e,n)=>{let r="caseStudySlide"===e._type;return(0,t.jsx)("div",{className:(0,u.cn)("min-w-0 shrink-0",r?"basis-[88vw] lg:basis-[calc(8*var(--grid-col-width)+7*var(--space-gutter))]":"basis-[min(442px,82vw)]"),role:"group","aria-roledescription":"slide","aria-label":`${n+1} of ${y.length}`,children:(0,t.jsx)("div",{children:r?(0,t.jsx)(m,{item:e}):(0,t.jsx)(p,{item:e})})},n)})})})}),(0,t.jsx)("div",{className:"container",children:H})]})}):(0,t.jsx)(s.Section,{id:e,theme:i,children:(0,t.jsxs)("div",{ref:I,className:"container space-y-10",children:[a?(0,t.jsx)(b,{className:(0,u.cn)("font-serif text-headline-2",v&&"max-lg:text-center"),children:a}):null,(0,t.jsx)("div",{ref:S,className:"overflow-hidden",children:(0,t.jsx)("div",{className:"flex",children:y.map((e,n)=>(0,t.jsx)("div",{className:"min-w-0 shrink-0 grow-0 basis-full",role:"group","aria-roledescription":"slide","aria-label":`${n+1} of ${y.length}`,children:"caseStudySlide"===e._type?(0,t.jsx)(m,{item:e}):(0,t.jsx)(p,{item:e})},n))})}),H]})})}])},985637,e=>{"use strict";var t=e.i(843476),n=e.i(320351),r=e.i(512471),i=e.i(271645),l=e.i(945060);function a(e){let t=e.replace("#",""),n=parseInt(3===t.length?t.split("").map(e=>e+e).join(""):t,16);return[n>>16&255,n>>8&255,255&n]}let o=Math.PI/180,s=2*Math.PI,c=["#7A7270","#A86880","#CC4090","#8828A8"];function u({arm1Radius:e=.5,arm1Speed:n=1,arm1Phase:r=0,arm2Radius:d=.38,arm2Speed:f=5,arm2Phase:p=0,arm3Radius:m=.12,arm3Speed:h=17,arm3Phase:g=0,arm4Radius:x=0,arm4Speed:v=0,arm4Phase:b=0,revolutions:y=5,layerCount:w=40,layerSpread:j=.3,layerOpacity:N=.28,strokeWidth:S=.6,colorStops:k=c,mouseDisplacement:E=.01,bloomStrength:C=.4,rotationSpeed:T=.2,sizeScale:R=.88,className:M}){let _=(0,i.useRef)(null),P=(0,i.useRef)({x:.5,y:.5}),D=(0,i.useRef)(0),I=(0,i.useRef)(0),A=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let t=_.current;if(!t)return;let i=t.getContext("2d");if(!i)return;null===A.current&&(I.current=0,A.current=performance.now());let l=()=>{let e=window.devicePixelRatio??1;t.width=t.offsetWidth*e,t.height=t.offsetHeight*e,i.setTransform(e,0,0,e,0,0)};l();let c=new ResizeObserver(l);c.observe(t);let u=(e,n)=>{let r=t.getBoundingClientRect();P.current={x:(e-r.left)/r.width,y:(n-r.top)/r.height}},M=e=>u(e.clientX,e.clientY),O=e=>{e.touches[0]&&u(e.touches[0].clientX,e.touches[0].clientY)};window.addEventListener("mousemove",M),window.addEventListener("touchmove",O,{passive:!0});let L=k.map(a),F=[{r:e,s:n,p:r*o}
1,{r:d,s:f,p:p*o},{r:m,s:h,p:g*o},{r:x,s:v,p:b*o}].filter(e=>e.r>0),z=F.reduce((e,t)=>e+t.r,0)||1,B=Math.min(2e4,Math.round(Math.max(600,80*F.reduce((e,t)=>Math.max(e,Math.abs(t.s)),1))*y)),V=e=>{let n=(e-A.current)/1e3,r=t.offsetWidth,l=t.offsetHeight;I.current+=(1-I.current)*.055;let a=I.current,{x:o,y:c}=P.current,u=(o-.5)*E,d=(c-.5)*E,f=Math.cos(d),p=Math.sin(d),m=Math.cos(u),h=Math.sin(u),g=Math.sqrt(u*u+d*d),x=E*Math.SQRT2*.5,v=1+(x>0?Math.min(1,g/x):0)*C,b=Math.min(r,l)/2*R/z;i.clearRect(0,0,r,l),i.lineCap="round",i.lineJoin="round",i.save(),i.translate(r/2,l/2),i.rotate(n*T),i.scale(a,a);for(let e=0;e<w;e++){let t=w>1?e/(w-1):.5,n=(1+(t-.5)*j*v)*v*b;i.globalAlpha=N,i.lineWidth=S,i.strokeStyle=function(e,t){var n,r,i;if(1===e.length)return`rgb(${e[0].join(",")})`;let l=Math.max(0,Math.min(1,t))*(e.length-1),a=Math.min(Math.floor(l),e.length-2);return n=e[a],r=e[a+1],i=l-a,`rgb(${Math.round(n[0]+(r[0]-n[0])*i)},${Math.round(n[1]+(r[1]-n[1])*i)},${Math.round(n[2]+(r[2]-n[2])*i)})`}(L,t),i.beginPath();for(let e=0;e<=B;e++){let t=e/B*y*s,r=0,l=0;for(let e of F){let n=e.s*t+e.p;r+=e.r*Math.cos(n),l+=e.r*Math.sin(n)}let a=m*r,o=f*l+h*p*r,c=1.8/(1.8+(-p*l+h*f*r)),u=a*n*c,d=o*n*c;0===e?i.moveTo(u,d):i.lineTo(u,d)}i.stroke()}i.restore(),i.globalAlpha=1,D.current=requestAnimationFrame(V)};return D.current=requestAnimationFrame(V),()=>{cancelAnimationFrame(D.current),window.removeEventListener("mousemove",M),window.removeEventListener("touchmove",O),c.disconnect()}},[e,n,r,d,f,p,m,h,g,x,v,b,y,w,j,N,S,k,E,C,T,R]),(0,t.jsx)("canvas",{ref:_,className:(0,l.cn)("absolute inset-0 z-0 h-full w-full select-none",M),style:{pointerEvents:"none"},"aria-hidden":"true",tabIndex:-1})}var d=e.i(931680),f=e.i(893880),p=e.i(487997),m=e.i(517860),h=e.i(164328);let g=["#7A7270","#A86880","#CC4090","#8828A8"];function x({selected:e}){return e?"video"===e.kind?(0,t.jsx)("video",{src:e.src,autoPlay:!0,muted:!0,playsInline:!0,loop:!0,preload:"metadata",className:"mix-blend-lighten"}):(0,t.jsx)(r.Image,{media:e.image,loading:"lazy",sizes:"(min-width: 60rem) 34vw, 100vw",alt:""}):null}e.s(["CompanyHero",0,function({sectionId:e,theme:r,headline:i,subheadline:l,openRolesText:a,media:o,cta:s,spirograph:c}){let{openRolesCount:v}=(0,p.useAshbyJobs)(),b=(0,m.useDraftMode)(),y=(0,h.selectMedia)(o),w=c?.enabled&&!b?{arm1Radius:c.arm1?.radius??.5,arm1Speed:c.arm1?.speed??1,arm1Phase:c.arm1?.phase??0,arm2Radius:c.arm2?.radius??.38,arm2Speed:c.arm2?.speed??5,arm2Phase:c.arm2?.phase??0,arm3Radius:c.arm3?.radius??.12,arm3Speed:c.arm3?.speed??17,arm3Phase:c.arm3?.phase??0,arm4Radius:c.arm4?.radius??0,arm4Speed:c.arm4?.speed??0,arm4Phase:c.arm4?.phase??0,revolutions:c.revolutions??5,layerCount:c.layers?.layerCount??40,layerSpread:c.layers?.layerSpread??.3,layerOpacity:c.layers?.layerOpacity??.28,strokeWidth:c.layers?.strokeWidth??.6,colorStops:c.colorStops??g,rotationSpeed:c.animation?.rotationSpeed??.016,bloomStrength:c.animation?.bloomStrength??.4,mouseDisplacement:c.animation?.mouseDisplacement??.15,sizeScale:c.animation?.sizeScale??1.8}:null;return(0,t.jsxs)(f.Section,{id:e,theme:r,className:"-mt-(--nav-height) pt-30 pb-10 xl:pt-[calc(var(--nav-height)+3.5rem)] xl:pb-0",padding:"flush-block",reveal:!0,children:[w?(0,t.jsx)(u,{...w}):null,(0,t.jsxs)(d.PageGrid,{"data-reveal-children":!0,className:"relative w-full max-w-9xl items-center px-4 lg:gap-y-0 lg:px-6",children:[i?(0,t.jsx)("h2",{"data-reveal-child":!0,className:"reveal col-span-full text-balance text-center font-serif text-headline-2 lg:col-span-6 lg:col-start-3 lg:row-start-1 xl:col-start-4 xl:mb-10 xl:text-5xl",children:i}):null,y?(0,t.jsx)("div",{"data-reveal-child":!0,className:"reveal mask-[radial-gradient(black_50%,transparent_70%)] col-span-full col-start-1 mix-blend-lighten lg:col-span-6 lg:col-start-3 xl:col-start-4",children:(0,t.jsx)(x,{selected:y})}):null,l?(0,t.jsxs)("div",{"data-reveal-child":!0,className:"reveal col-span-full row-start-2 px-4 lg:col-span-6 lg:col-start-3 lg:px-6 xl:col-start-4 xl:px-20",children:[(0,t.jsx)("p",{className:"mb-6 text-balance text-center text-body-1 lg:text-wrap",children:l}),(0,t.jsxs)("div",{className:"flex w-full items-center justify-center gap-6",children:[(0,t.jsxs)("p",{className:"flex items-center gap-2 justify-self-end text-body-2",children:[(0,t.jsx)("span",{className:"inline-flex size-7 items-center justify-center rounded-xxs bg-white/10 px-1 text-primary-foreground text-sm",children:v}),a]}),(0,t.jsx)(n.CtaList,{items:s,className:"justify-self-start"})]})]}):null]})]})}],985637)},786060,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(512471),i=e.i(893880),l=e.i(945060);e.s(["CustomerTestimonialCarousel",0,function({sectionId:e,theme:a,autoplay:o=!1,items:s}
1){let c=(0,n.useRef)(null),[u,d]=(0,n.useState)(0),[f,p]=(0,n.useState)(0),m=(0,n.useRef)(Date.now()),h=(0,n.useRef)(null),g=!!o&&(s?.length??0)>1,x=(0,n.useCallback)(e=>{d(e),m.current=Date.now(),g?p(0):p(1)},[g]);return((0,n.useEffect)(()=>{let e=c.current;if(!e)return;let t=e.querySelectorAll("button")[u];t&&e.scrollTo({left:t.offsetLeft-e.offsetLeft,behavior:"smooth"})},[u]),(0,n.useEffect)(()=>{if(!g||!s?.length)return;m.current=Date.now(),p(0);let e=()=>{let t=Math.min((Date.now()-m.current)/6e3,1);p(t),t>=1&&(d(e=>(e+1)%s.length),m.current=Date.now(),p(0)),h.current=requestAnimationFrame(e)};return h.current=requestAnimationFrame(e),()=>{null!==h.current&&cancelAnimationFrame(h.current)}},[g,s?.length]),(0,n.useEffect)(()=>{g||p(1)},[g]),s?.length)?(0,t.jsx)(i.Section,{id:e,theme:a,children:(0,t.jsxs)("div",{className:"container space-y-16 lg:space-y-20",children:[(0,t.jsx)("div",{ref:c,className:"flex gap-(--space-gutter) overflow-x-auto [scrollbar-width:none] lg:grid lg:overflow-visible [&::-webkit-scrollbar]:hidden",style:{gridTemplateColumns:`repeat(${s.length}, minmax(0, 1fr))`},role:"tablist","aria-label":"Testimonial navigation",children:s.map((e,n)=>(0,t.jsxs)("button",{type:"button",role:"tab","aria-selected":u===n,"aria-label":`View testimonial ${n+1}`,className:"flex min-w-[44%] shrink-0 flex-col gap-2 text-left transition-opacity duration-500 lg:min-w-0",onClick:()=>x(n),children:[s.length>1?(0,t.jsx)("div",{className:"relative h-px w-full bg-greige-200",children:(0,t.jsx)("div",{className:"absolute inset-y-0 left-0 bg-foreground transition-none",style:{width:u===n?`${100*f}%`:"0%"}})}):null,e.logo?(0,t.jsx)("div",{className:"h-10 w-full",children:(0,t.jsx)(r.Image,{media:e.logo,sizes:"160px",className:(0,l.cn)("h-auto w-full max-w-30 overflow-hidden [&_img]:h-full [&_img]:w-auto [&_img]:object-contain [&_img]:object-left",u===n?"opacity-100":"opacity-30 hover:opacity-60")})}):(0,t.jsx)("div",{className:"h-10","aria-hidden":"true"})]},n))}),(0,t.jsx)("section",{style:{display:"grid",gridTemplate:"1fr / 1fr"},"aria-label":"Testimonials",children:s.map((e,n)=>(0,t.jsx)("div",{style:{gridArea:"1 / 1"},className:(0,l.cn)("transition-opacity duration-500",u===n?"relative z-10 opacity-100":"pointer-events-none z-0 opacity-0"),role:"tabpanel","aria-label":`Testimonial ${n+1}`,"aria-hidden":u!==n,children:(0,t.jsxs)("div",{className:"page-grid items-start xs:gap-y-15",children:[(0,t.jsxs)("figure",{className:"col-span-12 flex h-full flex-col justify-between gap-5 lg:col-span-6 lg:gap-16",children:[e.quote?(0,t.jsx)("blockquote",{className:"text-balance font-serif text-headline-3 not-italic leading-[1.05] tracking-tight before:content-['“'] after:content-['”'] lg:text-headline-2",children:e.quote}):null,(0,t.jsxs)("figcaption",{className:"space-y-1.5",children:[e.citation?(0,t.jsx)("p",{className:"text-body-2",children:e.citation}):null,e.citationDescriptor?(0,t.jsx)("p",{className:"text-body-3 text-muted-foreground",children:e.citationDescriptor}):null]})]}),e.photo?(0,t.jsx)(r.Image,{media:e.photo,ratio:"1-1",sizes:"(max-width: 1024px) 100vw, 328px",className:"order-first col-span-3 col-start-1 w-full overflow-hidden rounded-lg lg:order-1 lg:col-start-10 [&_img]:object-cover"}):null]})},n))})]})}):null}])},603319,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(272072),i=e.i(512471),l=e.i(945060);function a({items:e,speed:n,className:r,itemClassName:o,sizes:s="(min-width: 960px) 200px, 150px"}){return e?.length?(0,t.jsx)("div",{className:(0,l.cn)("overflow-hidden [mask-image:linear-gradient(to_right,transparent,black_20%,black_80%,transparent)]",r),children:(0,t.jsx)("div",{className:"flex w-max animate-marquee items-center gap-6 motion-reduce:animate-none",style:{animationDuration:`${n??30}s`},children:[...e,...e].map((n,r)=>(0,t.jsx)("div",{"aria-hidden":r>=e.length||void 0,className:(0,l.cn)("w-[170px] shrink-0",o),children:n.media?(0,t.jsx)(i.Image,{media:n.media,sizes:s,alt:n.label??""}):null},r))})}):null}var o=e.i(406573),s=e.i(521110),c=e.i(320351),u=e.i(125027),d=e.i(739814);function f({items:e,showCtas:n,compactCta:r,labelClassName:i,valueClassName:a}){return e?.length?(0,t.jsx)("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-3",children:e.map((e,o)=>{let s=r&&n?(0,d.resolveLink)(e.cta):null;return(0,t.jsxs)("div",{className:"flex h-full flex-col space-y-2 border-current/30 border-t pt-2",children:[(0,t.jsx)("p",{className:(0,l.cn)("mb-1 font-serif",r?"text-headline-3 sm:text-headline-1":"text-headline-1",a),children:e.value}),(0,t.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,t.jsx)("p",{className:(0,l.cn)("max-w-52 text-pretty text-body-2 leading-snug",i),children:e.label}),r&&s?(0,t.jsx)("a",{href:s.href,target:s.target,rel:s.rel,"aria-label":e.cta?.label??void 0,className:"flex size-8 shrink-0 items-center justify-center rounded-xs bg-btn-green text-black-400 transition-colors hover:bg-btn-green-hover lg:hidden",children:(0,t.jsx)(u.Icon,{name:"arrowRight",className:"size-5"})}):null]}),n&&e.cta?(0,t.jsx)(c.CtaList,{items:[e.cta],fullWidth:!0,className:(0,l.cn)("mt-auto pt-4",r&&"hidden lg:flex")}):null]},o)})}):null}var p=e.i(931680),m=e.i(893880),h=e.i(272754);e.s(["DemoFormBanner",0,function({sectionId:e,theme:i,title:l,body:c,backgroundImage:u,stats:d,logos:g,demoFormFields:x,semanticLevel:v="h2"}){let b=(0,n.useRef)(null);return(0,h.hasContent)(l)||(0,h.hasContent)(c)?(0,t.jsxs)(m.Section,{ref:b,id:e,theme:i,padding:"flush-block",className:"-mt-(--nav-height) flex h-auto w-full flex-col justify-end overflow-visible pt-[calc(var(--nav-height)+2.5rem)] pb-5 md:pb-16 lg:min-h-screen lg:before:absolute lg:before:inset-y-0 lg:before:right-0 lg:before:left-1/2 lg:before:z-1 lg:before:bg-linear-to-b lg:before:from-black/30 lg:before:to-transparent",children:[(0,t.jsx)("div",{"aria-hidden":"true",className:"absolute inset-0 z-0 bg-greige-100 lg:w-1/2"}),u?(0,t.jsx)("div",{className:"absolute inset-y-0 right-0 z-0 hidden w-1/2 lg:block",children:(0,t.jsx)(s.SanityImage,{image:u,alt:"",fill:!0,priority:!0,sizes:"50vw",className:"object-cover"})}):null,(0,t.jsxs)(p.PageGrid,{className:"relative grid min-h-0 w-full flex-1 justify-between bg-transparent px-4 lg:items-center lg:px-6",children:[(0,t.jsxs)("div",{className:"relative z-10 col-span-full space-y-4 text-black-400 lg:col-span-5 lg:max-w-2xl lg:flex-1 lg:pr-8",children:[(0,h.hasContent)(l)?(0,t.jsx)(v,{className:"wrap-break-word text-balance font-serif text-headline-2 tracking-tight lg:text-headline-1",children:(0,t.jsx)(h.InlineValue,{value:l})}):null,(0,t.jsx)(o.RichText,{className:"text-balance text-body-2 lg:text-body-1",value:c}),d?.length?(0,t.jsx)("div",{className:"pt-8 lg:pt-20",children:(0,t.jsx)(f,{items:d,valueClassName:"text-headline-2",labelClassName:"text-greige-700"})}):null,g?.length?(0,t.jsx)(a,{items:g,className:"pt-10",itemClassName:"w-[120px]",sizes:"120px"}):null]}
1),(0,t.jsxs)("div",{className:"relative z-10 col-span-full self-end pt-16 lg:z-12 lg:col-span-5 lg:col-start-6 lg:self-center lg:pt-0 lg:pl-8 xl:col-start-8 xl:pl-0",children:[u?(0,t.jsx)("div",{"aria-hidden":"true",className:"absolute top-0 -bottom-5 left-1/2 z-0 w-screen -translate-x-1/2 overflow-hidden lg:hidden",children:(0,t.jsx)(s.SanityImage,{image:u,alt:"",fill:!0,priority:!0,sizes:"100vw",className:"object-cover"})}):null,(0,t.jsx)("div",{id:"book-demo",className:"demo-form-banner-panel theme-light hubspot-form-panel rounded-sm bg-background p-4 text-foreground w-full lg:shrink-0 lg:p-5 relative z-10 min-h-fit w-full scroll-mt-[calc(var(--nav-height)+1rem)]",children:(0,t.jsx)(r.HubspotExpandableDemoForm,{layout:"hero",fields:x,dismissBoundaryRef:b,alwaysExpanded:!0,hideHeaderOnMobile:!0})})]})]})]}):null}],603319)},403902,e=>{"use strict";var t=e.i(843476),n=e.i(618566),r=e.i(271645),i=e.i(945060),l=e.i(227746),a=e.i(563991),o=e.i(957222),s=e.i(769113),c=e.i(840126),u=e.i(552233),d=e.i(767227);let f={key:"email",name:"email",propertyReference:"email",label:"Your work email",fieldType:"email",required:!0};e.s(["EmailCaptureForm",0,function({buttonLabel:e,buttonVariant:p="green",className:m}){let h=(0,n.useRouter)(),[g,x]=(0,r.useState)(""),[v,b]=(0,r.useState)("idle"),[y,w]=(0,r.useState)(null);return(0,r.useEffect)(()=>{let e=(0,o.getDefaultDemoFormId)(),t=(0,d.getInboundTouchpointSlug)();(0,c.trackHubspotFormReady)(e,t)},[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("form",{onSubmit:e=>{if(e.preventDefault(),"navigating"===v)return;let t=(0,o.getDefaultDemoFormId)(),n=(0,d.getInboundTouchpointSlug)();if(!(0,u.isValidEmail)(g)){b("error"),w(s.DEMO_FORM_INVALID_EMAIL_ERROR),(0,c.trackHubspotFieldError)(t,f,s.DEMO_FORM_INVALID_EMAIL_ERROR,n);return}b("navigating"),w(null),(0,c.trackHubspotFieldComplete)(t,f,n),(0,l.trackDemoFunnelEvent)("demo_cta_clicked",{ctaLocation:window.location.pathname,formId:t,touchpointId:n}),(0,l.trackDemoFunnelEvent)("inbound_form_expand",{formId:t,touchpointId:n}),(0,a.stashFormShellEntryUrl)(),h.push((0,a.buildFormShellHandoffUrl)(g.trim()))}
1,noValidate:!0,className:(0,i.cn)("flex items-center gap-4 rounded-md bg-greige-100 py-2 pr-2 pl-4",m),children:[(0,t.jsx)("input",{type:"email",required:!0,value:g,onChange:e=>x(e.target.value),onFocus:()=>(0,c.trackHubspotFieldFocus)((0,o.getDefaultDemoFormId)(),f,(0,d.getInboundTouchpointSlug)()),placeholder:"Your work email","aria-label":"Your work email",className:"min-w-0 flex-1 bg-transparent text-body-2 outline-none placeholder:text-foreground"}),(0,t.jsx)("button",{type:"submit",disabled:"navigating"===v,className:(0,i.cn)("shrink-0 cursor-pointer whitespace-nowrap rounded-xs px-4 py-2.75 text-body-2 transition-colors duration-200 ease-out disabled:cursor-not-allowed disabled:opacity-70","black"===p?"bg-btn-black text-white hover:bg-btn-black-hover":"bg-btn-green text-black-400 hover:bg-green-400"),children:"navigating"===v?s.DEFAULT_DEMO_FORM_SUBMITTING_LABEL:e})]}),"error"===v&&y?(0,t.jsx)("p",{className:"text-body-3 text-fuschia-800",role:"alert",children:y}):null]})}])},512099,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(945060);let i=[[0,600],[1,1800],[2,1600],[3,1100],[4,2800]];function l(e,t="left"){return(0,r.cn)("pointer-events-none",e?(0,r.cn)("animate-[chatBubbleIn_0.5s_linear_both]","left"===t?"[transform-origin:bottom_left]":"[transform-origin:bottom_right]"):"opacity-0")}function a({text:e,variant:n="default",pill:i=!1,width:l,selfEnd:o=!1}){return(0,t.jsx)("div",{className:(0,r.cn)("text-balance px-4 py-[14px] font-medium font-sans text-[18px] leading-5",i?"whitespace-nowrap rounded-full":"rounded-[20px]","reply"===n?"bg-green-300 text-green-800":"bg-greige-100 text-black-600",o&&"self-end"),style:l?{width:l}:void 0,children:e})}function o(){return(0,t.jsx)("div",{className:"flex w-fit items-center gap-[5px] rounded-full bg-greige-100 px-5 py-4",children:[0,1,2].map(e=>(0,t.jsx)("span",{className:"block h-2 w-2 rounded-full bg-black-600",style:{animation:`chatDot 1.2s ${.18*e}s ease-in-out infinite`}},e))})}e.s(["ChatIllustration",0,function({className:e}){let[s,c]=(0,n.useState)(0);return(0,n.useEffect)(()=>{if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return void c(4);let e=!1;return async function(){for(;!e;)for(let[t,n]of i){if(e)return;c(t),await new Promise(e=>setTimeout(e,n))}}(),()=>{e=!0}},[]),(0,t.jsxs)("div",{className:(0,r.cn)("featureBento__graphic",e),children:[(0,t.jsx)("style",{children:`
2        @keyframes chatDot {
3          0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
4          40% { transform: translateY(-5px); opacity: 1; }
5        }
6        @keyframes chatBubbleIn {
7          0%   { opacity: 0; transform: scale(0.7); }
8          55%  { opacity: 1; transform: scale(1.07); }
9          75%  { transform: scale(0.96); }
10          100% { transform: scale(1); }
11        }
12      `}),(0,t.jsxs)("div",{className:"flex w-full max-w-[350px] flex-col items-start gap-3",children:[(0,t.jsx)("div",{className:l(s>=1),children:(0,t.jsx)(a,{text:"Good news! Your insurance approved coverage for your medication",width:"255px"})}),(0,t.jsx)("div",{className:(0,r.cn)(l(s>=2,"right"),"self-end"),children:(0,t.jsx)(a,{text:"Amazing, thanks!",variant:"reply",pill:!0})}),(0,t.jsxs)("div",{className:"grid items-start",children:[(0,t.jsx)("div",{className:(0,r.cn)("col-start-1 row-start-1",l(3===s)),children:(0,t.jsx)(o,{})}),(0,t.jsx)("div",{className:(0,r.cn)("col-start-1 row-start-1",l(s>=4)),children:(0,t.jsx)(a,{text:"Your prescription was sent to CVS Specialty Pharmacy. They confirmed it'll be ready for pickup by 5pm today.",width:"260px"})})]})]})]})}])},32019,e=>{"use strict";var t=e.i(843476),n=e.i(989970),r=e.i(883495);let i,l,a="function"==typeof Symbol?Symbol():"_split",o,s="u">typeof Intl&&"Segmenter"in Intl?new Intl.Segmenter:0,c=e=>e?"string"==typeof e?c(document.querySelectorAll(e)):"length"in e?Array.from(e).reduce((e,t)=>("string"==typeof t?e.push(...c(t)):e.push(t),e),[]):[e]:[],u=e=>c(e).filter(e=>e&&1===e.nodeType),d=[],f=function(){},p={add:e=>e()},m=/\s+/g,h=RegExp("\\p{RI}\\p{RI}|\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?(\\u{200D}\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?)*|.","gu"),g={left:0,top:0,width:0,height:0},x=(e,t)=>{for(;++t<e.length&&e[t]===g;);return e[t]||g},v=({element:e,html:t,ariaL:n,ariaH:r})=>{e.innerHTML=t,n?e.setAttribute("aria-label",n):e.removeAttribute("aria-label"),r?e.setAttribute("aria-hidden",r):e.removeAttribute("aria-hidden")},b=(e,t)=>{if(t){let n=new Set(e.join("").match(t)||d),r=e.length,i,l,a,o;if(n.size){for(;--r>-1;)for(a of(l=e[r],n))if(a.startsWith(l)&&a.length>l.length){for(i=0,o=l;a.startsWith(o+=e[r+ ++i])&&o.length<a.length;);if(i&&o.length===a.length){e[r]=a,e.splice(r+1,i);break}}}}return e},y=e=>"inline"===window.getComputedStyle(e).display&&(e.style.display="inline-block"),w=(e,t,n)=>t.insertBefore("string"==typeof e?document.createTextNode(e):e,n),j=(e,t,n)=>{let r=t[e+"sClass"]||"",{tag:i="div",aria:l="auto",propIndex:a=!1}
12=t,o="line"===e?"block":"inline-block",s=r.indexOf("++")>-1,c=t=>{let c=document.createElement(i),u=n.length+1;return r&&(c.className=r+(s?" "+r+u:"")),a&&c.style.setProperty("--"+e,u+""),"none"!==l&&c.setAttribute("aria-hidden","true"),"span"!==i&&(c.style.position="relative",c.style.display=o),c.textContent=t,n.push(c),c};return s&&(r=r.replace("++","")),c.collection=n,c},N=(e,t,n,r,i,l,a,o,c,u)=>{var f;let p=Array.from(e.childNodes),h=0,{wordDelimiter:g,reduceWhiteSpace:x=!0,prepareText:v}=t,j=e.getBoundingClientRect(),S=j,k=!x&&"pre"===window.getComputedStyle(e).whiteSpace.substring(0,3),E=0,C=n.collection,T,R,M,_,P,D,I,A,O,L,F,z,B,V,H,Y,W,$;for("object"==typeof g?(M=g.delimiter||g,R=g.replaceWith||""):R=""===g?"":g||" ",T=" "!==R;h<p.length;h++)if(3===(_=p[h]).nodeType){for(H=_.textContent||"",x?H=H.replace(m," "):k&&(H=H.replace(/\n/g,R+"\n")),v&&(H=v(H,e)),_.textContent=H,W=(P=R||M?H.split(M||R):H.match(o)||d)[P.length-1],A=T?" "===W.slice(-1):!W,W||P.pop(),S=j,(I=T?" "===P[0].charAt(0):!P[0])&&w(" ",e,_),P[0]||P.shift(),b(P,c),l&&u||(_.textContent=""),O=1;O<=P.length;O++)if(Y=P[O-1],!x&&k&&"\n"===Y.charAt(0)&&(null==(f=_.previousSibling)||f.remove(),w(document.createElement("br"),e,_),Y=Y.slice(1)),x||""!==Y)if(" "===Y)e.insertBefore(document.createTextNode(" "),_);else{if(T&&" "===Y.charAt(0)&&w(" ",e,_),E&&1===O&&!I&&C.indexOf(E.parentNode)>-1?(D=C[C.length-1]).appendChild(document.createTextNode(r?"":Y)):(w(D=n(r?"":Y),e,_),E&&1===O&&!I&&D.insertBefore(E,D.firstChild)),r)for($=0,F=s?b([...s.segment(Y)].map(e=>e.segment),c):Y.match(o)||d;$<F.length;$++)D.appendChild(" "===F[$]?document.createTextNode(" "):r(F[$]));if(l&&u){if(H=_.textContent=H.substring(Y.length+1,H.length),(L=D.getBoundingClientRect()).top>S.top&&L.left<=S.left){for(z=e.cloneNode(),B=e.childNodes[0];B&&B!==D;)V=B,B=B.nextSibling,z.appendChild(V);e.parentNode.insertBefore(z,e),i&&y(z)}S=L}(O<P.length||A)&&w(O>=P.length?" ":T&&" "===Y.slice(-1)?" "+R:R,e,_)}else w(R,e,_);e.removeChild(_),E=0}else 1===_.nodeType&&(a&&a.indexOf(_)>-1?(C.indexOf(_.previousSibling)>-1&&C[C.length-1].appendChild(_),E=_):(N(_,t,n,r,i,l,a,o,c,!0),E=0),i&&y(_))},S=class e{constructor(e,t){this.isSplit=!1,o||k.register(window.gsap),this.elements=u(e),this.chars=[],this.words=[],this.lines=[],this.masks=[],this.vars=t,this.elements.forEach(e=>{var n;!1!==t.overwrite&&(null==(n=e[a])||n._data.orig.filter(({element:t})=>t===e).forEach(v)),e[a]=this}),this._split=()=>this.isSplit&&this.split(this.vars);let n=[],r,i=()=>{let e=n.length,t;for(;e--;){let r=(t=n[e]).element.offsetWidth;if(r!==t.width){t.width=r,this._split();return}}};this._data={orig:n,obs:"u">typeof ResizeObserver&&new ResizeObserver(()=>{clearTimeout(r),r=setTimeout(i,200)})},f(this),this.split(t)}split(e){return(this._ctx||p).add(()=>{this.isSplit&&this.revert(),this.vars=e=e||this.vars||{};let{type:t="chars,words,lines",aria:n="auto",deepSlice:r=!0,smartWrap:i,onSplit:a,autoSplit:o=!1,specialChars:s,mask:d}=this.vars,f=t.indexOf("lines")>-1,p=t.indexOf("chars")>-1,m=t.indexOf("words")>-1,v=p&&!m&&!f,b=s&&("push"in s?RegExp("(?:"+s.join("|")+")","gu"):s),y=b?RegExp(b.source+"|"+h.source,"gu"):h,w=!!e.ignore&&u(e.ignore),{orig:S,animTime:k,obs:E}=this._data,C;(p||m||f)&&(this.elements.forEach((t,l)=>{S[l]={element:t,html:t.innerHTML,ariaL:t.getAttribute("aria-label"),ariaH:t.getAttribute("aria-hidden")},"auto"===n?t.setAttribute("aria-label",(t.textContent||"").trim()):"hidden"===n&&t.setAttribute("aria-hidden","true");let a=[],o=[],s=[],u=p?j("char",e,a):null,d=j("word",e,o),h,k,E,C;if(N(t,e,d,u,v,r&&(f||v),w,y,b,!1),f){let n,r,i=c(t.childNodes),l=(n=j("line",e,s),r=window.getComputedStyle(t).textAlign||"left",(e,l)=>{let a=n("");for(a.style.textAlign=r,t.insertBefore(a,i[e]);e<l;e++)a.appendChild(i[e]);a.normalize()}),a,o=[],u=0,d=i.map(e=>1===e.nodeType?e.getBoundingClientRect():g),f=g,p;for(h=0;h<i.length;h++)1===(a=i[h]).nodeType&&("BR"===a.nodeName?(h&&"BR"===i[h-1].nodeName||(o.push(a),l(u,h+1)),u=h+1,f=x(d,h)):(p=d[h],h&&p.top>f.top&&p.left<f.left+f.width-1&&(l(u,h),u=h),f=p));u<h&&l(u,h),o.forEach(e=>{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})}if(!m){for(h=0;h<o.length;h++)if(k=o[h],p||!k.nextSibling||3!==k.nextSibling.nodeType)if(i&&!f){for((E=document.createElement("span")).style.whiteSpace="nowrap";k.firstChild;)E.appendChild(k.firstChild);k.replaceWith(E)}else k.replaceWith(...k.childNodes);else(C=k.nextSibling)&&3===C.nodeType&&(C.textContent=(k.textContent||"")+(C.textContent||""),k.remove());o.length=0,t.normalize()}this.lines.push(...s),this.words.push(...o),this.chars.push(...a)}),d&&this[d]&&this.masks.push(...this[d].map(e=>{let t=e.cloneNode();return e.replaceWith(t),t.appendChild(e),e.className&&(t.className=e.className.trim().split(" ").map(e=>e+"-mask").join(" ")),t.style.overflow="clip",t}))),this.isSplit=!0,l&&f&&o&&l.addEventListener("loadingdone",this._split),(C=a&&a(this))&&C.totalTime&&(this._data.anim=k?C.totalTime(k):C),f&&o&&this.elements.forEac
12h((e,t)=>{S[t].width=e.offsetWidth,E&&E.observe(e)})}),this}kill(){let{obs:e}=this._data;e&&e.disconnect(),null==l||l.removeEventListener("loadingdone",this._split)}revert(){var e,t;if(this.isSplit){let{orig:n,anim:r}=this._data;this.kill(),n.forEach(v),this.chars.length=this.words.length=this.lines.length=n.length=this.masks.length=0,this.isSplit=!1,r&&(this._data.animTime=r.totalTime(),r.revert()),null==(t=(e=this.vars).onRevert)||t.call(e,this)}return this}static create(t,n){return new e(t,n)}static register(e){(i=i||e||window.gsap)&&(c=i.utils.toArray,f=i.core.context||f),!o&&window.innerWidth>0&&(l=document.fonts,o=!0)}};S.version="3.15.0";let k=S;var E=e.i(271645),C=e.i(945060),T=e.i(517860);n.default.registerPlugin(r.ScrollTrigger,k),e.s(["TextHighlight",0,function({children:e,animate:r,scrollSpeed:i,as:l="div",className:a}){let o=(0,E.useRef)(null),s=(0,T.useDraftMode)();return((0,E.useEffect)(()=>{let e=o.current;if(s||!r||!e||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let t=n.default.context(()=>{let t=k.create(e,{type:"words,chars"}),r=document.createElement("span");r.style.cssText="position:absolute;visibility:hidden;color:var(--color-muted-foreground)",e.appendChild(r);let l=window.getComputedStyle(r).color,a=window.getComputedStyle(e).color;e.removeChild(r),n.default.set(t.chars,{color:l,opacity:.5});let o=n.default.timeline({scrollTrigger:{trigger:e,start:"center bottom",end:`top+=${(i??1)*100}vh center`,scrub:!0}});o.to({},{duration:.25}),o.to(t.chars,{color:a,opacity:1,duration:0,stagger:{amount:1.2,from:"start",ease:"none"}})},e);return()=>t.revert()},[r,i,s]),e)?(0,t.jsx)(l,{ref:o,className:(0,C.cn)(a),children:e}):null}],32019)},898918,e=>{"use strict";var t=e.i(843476),n=e.i(989970),r=e.i(271645),i=e.i(945060);function l({colorClass:e,lineAbove:n=!0,lineBelow:r=!0}){return(0,t.jsxs)("div",{className:"relative h-[58px] w-[26px] shrink-0",children:[n?(0,t.jsx)("div",{className:(0,i.cn)("absolute top-0 left-[12.5px] h-[22px] w-px",e)}):null,(0,t.jsx)("div",{className:(0,i.cn)("absolute top-1/2 left-1/2 h-[6px] w-[6px] -translate-x-1/2 -translate-y-1/2 rounded-full",e)}),r?(0,t.jsx)("div",{className:(0,i.cn)("absolute bottom-0 left-[12.5px] h-[22px] w-px",e)}):null]})}function a({borderClass:e,circle:n,children:r}){return(0,t.jsxs)("div",{className:"relative inline-flex shrink-0",children:[(0,t.jsx)("div",{className:(0,i.cn)("pointer-events-none absolute -inset-0.5 animate-[btnPing_1.8s_ease-out_infinite] border",n?"rounded-full":"rounded",e)}),r]})}function o({colorClass:e,title:n,subtitle:r,action:s,actionNode:c,onAction:u,bold:d=!0,isLast:f=!1,className:p}){let m=e.replace(/^bg-/,"border-");return(0,t.jsxs)("div",{className:(0,i.cn)("flex h-[58px] items-center gap-2.5 px-[18px]",p),children:[(0,t.jsx)(l,{colorClass:e,lineAbove:!0,lineBelow:!f}),(0,t.jsxs)("div",{className:(0,i.cn)("flex h-[58px] flex-1 items-center justify-between",!f&&"border-black/10 border-b"),children:[(0,t.jsxs)("div",{className:"flex flex-col justify-center",children:[(0,t.jsx)("span",{className:(0,i.cn)("font-sans text-[13px] leading-[18px] lg:text-[15px]",d?"font-bold text-black-600":"font-normal text-black"),children:n}),r?(0,t.jsx)("span",{className:"line-clamp-1 font-sans text-[#5a5865] text-[15px] leading-[18px]",children:r}):null]}),c??(s?(0,t.jsx)(a,{borderClass:m,children:(0,t.jsx)("button",{type:"button",onClick:u,className:"relative h-9 shrink-0 cursor-pointer rounded border border-greige-200 bg-transparent px-2 font-sans text-[13px] text-black leading-[18px] transition-colors duration-150 hover:bg-[#F7F6F7] lg:text-[15px]",children:s})}):null)]})]})}function s(){return(0,t.jsx)("div",{className:"h-5 w-5 shrink-0 animate-[trackerSpin_0.75s_linear_infinite] rounded-full border-2 border-black/[0.12] border-t-blue-800"})}function c({colorClass:e,icon:n,title:r,status:l,showCheck:a=!1,isOpen:o,onToggle:s}){return(0,t.jsxs)("button",{type:"button",onClick:s,className:(0,i.cn)("flex h-[50px] w-full cursor-pointer items-center gap-2.5 border-none bg-transparent px-[18px] text-left transition-colors duration-150","hover:bg-[#F7F6F7]"),children:[(0,t.jsxs)("div",{className:"relative h-[50px] w-[26px] shrink-0",children:[(0,t.jsx)("div",{className:(0,i.cn)("absolute top-[42px] left-[12.5px] h-2 w-px transition-opacity duration-300",e,o?"opacity-100":"opacity-0")}),(0,t.jsx)("div",{className:(0,i.cn)("absolute top-3 left-0 grid h-[26px] w-[26px] place-items-center overflow-clip rounded-[100px] opacity-80",e),children:(0,t.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none","aria-hidden":"true",focusable:"false",children:n})})]}),(0,t.jsxs)("div",{className:"flex h-12.5 flex-1 items-center justify-between",children:[(0,t.jsx)("span",{className:"font-bold font-sans text-[13px] text-black-600 leading-4.5 lg:text-[15px]",children:r}),(0,t.jsxs)("div",{className:"flex items-center gap-1.25",children:[(0,t.jsx)("span",{className:(0,i.cn)("text-right font-sans text-[13px] text-black-600 leading-4.5 lg:text-[15px]",a?"animate-[trackerReveal_0.4s_ease_both] font-bold":""),children:l},l),a?(0,t.jsx)("svg",{className:"shrink-0 animate-[trackerReveal_0.4s_0.1s_ease_both]",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none","aria-hidden":"true",focusable:"false",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.506 2.506C4.111 0.901 6.287 0 8.557 0C10.826 0 13.002 0.901 14.607 2.506C16.212 4.111 17.113 6.287 17.113 8.557C17.113 10.826 16.212 13.002 14.607 14.607C13.002 16.212 10.826 17.113 8.557 17.113C6.287 17.113 4.111 16.212 2.506 14.607C0.901 13.002 0 10.826 0 8.557C0 6.287 0.901 4.111 2.506 2.506ZM7.754 12.654L12.779 6.373L11.108 5.036L7.577 9.451L5.926 7.8L4.413 9.313L7.754 12.654Z",fill:"#91CA08"})},"check"):null,(0,t.jsx)("div",{className:(0,i.cn)("transition-transform duration-300 ease-in-out",o?"rotate-180":"rotate-0"),children:(0,t.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:(0,t.jsx)("path",{d:"M2.08592 4.49219L6.41772 8.82399L10.7495 4.49219",stroke:"#5A5865",strokeWidth:"1.60437"})})})]})]})]})}let u={approval:"/illustrations/approval-letter.svg",denial:"/illustrations/denied-letter.svg",financial:"/illustrations/financial-letter.svg"};function d({type:e,onClose:n,fading:r}){let l=(0,t.jsx)("img",{src:u[e],alt:"","aria-hidden":"true",className:"block h-auto w-full"});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button","aria-label":"Close",onClick:n,className:"fixed inset-0 z-30"}),(0,t.jsxs)("div",{onClick:n,className:(0,i.cn)("absolute z-30","top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 lg:-right-1/2 lg:-translate-x-10","w-[min(546px,90vw)]","transition-opacity duration-[350ms]",r?"opacity-0":"animate-[trackerPopupIn_0.2s_ease] opacity-100"),children:[(0,t.jsx)("object",{type:"image/svg+xml",data:u[e],tabIndex:-1,"aria-hidden":"true",className:"block h-auto w-full",children:l}),(0,t.jsx)("div",{className:"absolute top-[5.1%] right-[7.1%] z-40 lg:top-[5%] lg:right-[7%]",children:(0,t.jsx)(a,{borderClass:"border-greige-400",circle:!0,children:(0,t.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),n()},className:"size-6 cursor-pointer rounded-full border border-greige-200 bg-transparent transition-colors duration-150 hover:bg-black/5 lg:size-9","aria-label":"Close document"})})})]})]})}let f=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("mask",{id:"coverage-mask",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"17",height:"17",children:(0,t.jsx)("path",{d:"M16.258 0.856H0.856V16.258H16.258V0.856Z",fill:"#fff"})}),(0,t.jsx)("g",{mask:"url(#coverage-mask)",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.537 1.01L16.104 4.576L10.505 10.175H6.938V6.609L12.537 1.01ZM1.01 2.929H8.755L5.621 6.063V11.493H11.05L14.184 8.359V16.104H1.01V2.929Z",fill:"#FFFFFF"})})]}),p=(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.633 2.353H3.481V5.173H13.633V2.353ZM2.353 8.605L4.657 6.301H12.456L14.76 8.605V14.76H2.353V8.605ZM11.941 9.685H5.173V11.941H11.941V9.685Z",fill:"#FFFFFF"}),m=(0,t.jsx)("path",{d:"M13.691 12.835H14.974V5.99H16.258V15.402H0.856V1.711H13.691V12.835ZM4.279 10.268V11.551H10.268V10.268H4.279ZM4.279 7.701V8.985H10.268V7.701H4.279ZM4.279 5.134V6.417H10.268V5.134H4.279Z",fill:"#FFFFFF"});e.s(["PrescriptionIllustration",0,function({className:e}){let n=(0,t.jsx)("img",{src:"/illustrations/prescription.svg",alt:"",width:500,height:218});return(0,t.jsx)("div",{className:(0,i.cn)("featureBento__graphic relative",e),children:(0,t.jsx)("object",{type:"image/svg+xml",data:"/illustrations/prescription.svg",children:n})})},"TrackerIllustration",0,function({className:e}){let[l,u]=(0,r.useState)(new Set),[h,g]=(0,r.useState)(null),[x,v]=(0,r.useState)(!1),[b,y]=(0,r.useState)("select"),w=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=w.current;if(!e)return;let t=new IntersectionObserver(([e])=>{e.isIntersecting&&(setTimeout(()=>u(new Set(["coverage"])),400),t.disconnect())},{threshold:.4});return t.observe(e),()=>t.disconnect()},[]);let j=e=>u(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}),N=e=>{v(!1),g(e)};(0,r.useEffect)(()=>{let e=w.current;e&&(null!==h?n.default.to(e,{scale:.9,opacity:.8,duration:.8,ease:"power3.out",transformOrigin:"center center",delay:.2}
12):n.default.to(e,{scale:1,opacity:1,duration:.4,ease:"power3.out",transformOrigin:"center center"}))},[h]);let S="grid transition-[grid-template-rows,opacity] duration-300 ease-in-out";return(0,t.jsxs)("div",{className:(0,i.cn)("featureBento__graphic pointer-events-auto relative",e),children:[(0,t.jsx)("style",{children:`
13        @keyframes trackerReveal {
14          from { opacity: 0; transform: translateY(6px); }
15          to   { opacity: 1; transform: translateY(0); }
16        }
17        @keyframes trackerPopupIn {
18          from { opacity: 0; transform: scale(0.92); }
19          to   { opacity: 1; transform: scale(1);    }
20        }
21        @keyframes trackerSpin {
22          to { transform: rotate(360deg); }
23        }
24        @keyframes btnPing {
25          0%   { transform: scale(1);    opacity: 0.7; }
26          100% { transform: scale(1.12); opacity: 0; }
27        }
28      `}),(0,t.jsxs)("div",{ref:w,className:"flex flex-col gap-2 lg:w-125",children:[(0,t.jsxs)("div",{className:"flex flex-col overflow-clip rounded-md bg-greige-0 shadow-[0_4px_20px_rgba(0,0,0,0.12)]",children:[(0,t.jsx)(c,{colorClass:"bg-blue-800",icon:f,title:"Coverage",status:"submitted"===b?"Approved for 1 year":"",showCheck:"submitted"===b,isOpen:l.has("coverage"),onToggle:()=>j("coverage")}),(0,t.jsx)("div",{className:(0,i.cn)(S,l.has("coverage")?"opacity-100":"opacity-0"),style:{gridTemplateRows:l.has("coverage")?"1fr":"0fr"},children:(0,t.jsxs)("div",{className:"overflow-hidden",children:[(0,t.jsx)(o,{colorClass:"bg-blue-800",title:"PA submitted"}),(0,t.jsx)(o,{colorClass:"bg-blue-800",title:"Contacted plan to check PA status",subtitle:"Reference ID: 1425438 — PA is still processing. We will contact again in two days.",bold:!1}),(0,t.jsx)(o,{colorClass:"bg-blue-800",title:"PA denied",subtitle:"denial-letter.pdf",action:"View",onAction:()=>N("denial")}),"select"===b&&(0,t.jsx)(o,{colorClass:"bg-blue-800",title:"PA denied - Select next step",bold:!1,isLast:!0,actionNode:(0,t.jsx)(a,{borderClass:"border-[#5c25d2]",children:(0,t.jsx)("button",{type:"button",onClick:()=>{y("processing"),setTimeout(()=>y("submitted"),1200)},className:"relative h-9 cursor-pointer whitespace-nowrap rounded border-none bg-[#5c25d2] px-3 font-medium font-sans text-[14px] text-purple-200 transition-[background-color] duration-150 hover:bg-[#4e1eb8]",children:"Initiate appeal"})})}),"processing"===b&&(0,t.jsx)(o,{colorClass:"bg-blue-800",title:"Submitting appeal…",bold:!1,isLast:!0,actionNode:(0,t.jsx)(s,{})}),"submitted"===b&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o,{colorClass:"bg-blue-800",title:"Appeal submitted",className:"animate-[trackerReveal_0.4s_ease_both]"}),(0,t.jsx)(o,{colorClass:"bg-blue-800",title:"Appeal approved",subtitle:"approval-letter.pdf",action:"View",onAction:()=>N("approval"),isLast:!0,className:"animate-[trackerReveal_0.4s_0.15s_ease_both]"})]})]})})]}),(0,t.jsxs)("div",{className:"flex flex-col overflow-clip rounded-md bg-greige-0 shadow-[0_4px_20px_rgba(0,0,0,0.12)]",children:[(0,t.jsx)(c,{colorClass:"bg-[#857F38]",icon:p,title:"Pharmacy",status:"Sent to CVS Specialty Pharmacy",showCheck:!0,isOpen:l.has("pharmacy"),onToggle:()=>j("pharmacy")}),(0,t.jsx)("div",{className:(0,i.cn)(S,l.has("pharmacy")?"opacity-100":"opacity-0"),style:{gridTemplateRows:l.has("pharmacy")?"1fr":"0fr"},children:(0,t.jsx)("div",{className:"overflow-hidden",children:(0,t.jsx)(o,{colorClass:"bg-[#857F38]",title:"Prescription sent to CVS Specialty Pharmacy",isLast:!0})})})]}),(0,t.jsxs)("div",{className:"flex flex-col overflow-clip rounded-md bg-greige-0 shadow-[0_4px_20px_rgba(0,0,0,0.12)]",children:[(0,t.jsx)(c,{colorClass:"bg-fuschia-800",icon:m,title:"Financial assistance",status:"Form submitted",isOpen:l.has("financial"),onToggle:()=>j("financial")}),(0,t.jsx)("div",{className:(0,i.cn)(S,l.has("financial")?"opacity-100":"opacity-0"),style:{gridTemplateRows:l.has("financial")?"1fr":"0fr"},children:(0,t.jsx)("div",{className:"overflow-hidden",children:(0,t.jsx)(o,{colorClass:"bg-fuschia-800",title:"Form submitted",subtitle:"financial-assistance.pdf",action:"View",onAction:()=>N("financial"),isLast:!0})})})]})]}),null!==h&&(0,t.jsx)(d,{type:h,onClose:()=>
28{v(!0),setTimeout(()=>{g(null),v(!1)},250)},fading:x})]})}])},40584,e=>{"use strict";var t,n,r,i,l,a,o,s,c=e.i(843476),u=e.i(130013),d=e.i(989970),f=function(){return"u">typeof window},p=function(){return t||f()&&(t=window.gsap)&&t.registerPlugin&&t},m=function(e){return"string"==typeof e},h=function(e){return"function"==typeof e},g=function(e,t){var n="x"===t?"Width":"Height",a="scroll"+n,o="client"+n;return e===r||e===i||e===l?Math.max(i[a],l[a])-(r["inner"+n]||i[o]||l[o]):e[a]-e["offset"+n]},x=function(e,t){var n="scroll"+("x"===t?"Left":"Top");return e===r&&(null!=e.pageXOffset?n="page"+t.toUpperCase()+"Offset":e=null!=i[n]?i:l),function(){return e[n]}},v=function(e,t,n,r){if(h(e)&&(e=e(t,n,r)),"object"!=typeof e)return m(e)&&"max"!==e&&"="!==e.charAt(1)?{x:e,y:e}:{y:e};if(e.nodeType)return{y:e,x:e};var i,l={};for(i in e)l[i]="onAutoKill"!==i&&h(e[i])?e[i](t,n,r):e[i];return l},b=function(e,t){if(!(e=a(e)[0])||!e.getBoundingClientRect)return console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0};var n=e.getBoundingClientRect(),o=!t||t===r||t===l,s=o?{top:i.clientTop-(r.pageYOffset||i.scrollTop||l.scrollTop||0),left:i.clientLeft-(r.pageXOffset||i.scrollLeft||l.scrollLeft||0)}:t.getBoundingClientRect(),c={x:n.left-s.left,y:n.top-s.top};return!o&&t&&(c.x+=x(t,"x")(),c.y+=x(t,"y")()),c},y=function(e,t,n,r,i){return isNaN(e)||"object"==typeof e?m(e)&&"="===e.charAt(1)?parseFloat(e.substr(2))*("-"===e.charAt(0)?-1:1)+r-i:"max"===e?g(t,n)-i:Math.min(g(t,n),b(e,t)[n]-i):parseFloat(e)-i},w=function(){t=p(),f()&&t&&"u">typeof document&&document.body&&(r=window,l=document.body,i=document.documentElement,a=t.utils.toArray,t.config({autoKillThreshold:7}),o=t.config(),n=1)},j={version:"3.15.0",name:"scrollTo",rawVars:1,register:function(e){t=e,w()},init:function(e,i,l,a,c){n||w();var u=t.getProperty(e,"scrollSnapType");this.isWin=e===r,this.target=e,this.tween=l,i=v(i,a,e,c),this.vars=i,this.autoKill=!!("autoKill"in i?i:o).autoKill,this.getX=x(e,"x"),this.getY=x(e,"y"),this.x=this.xPrev=this.getX(),this.y=this.yPrev=this.getY(),s||(s=t.core.globals().ScrollTrigger),"smooth"===t.getProperty(e,"scrollBehavior")&&t.set(e,{scrollBehavior:"auto"}),u&&"none"!==u&&(this.snap=1,this.snapInline=e.style.scrollSnapType,e.style.scrollSnapType="none"),null!=i.x?(this.add(this,"x",this.x,y(i.x,e,"x",this.x,i.offsetX||0),a,c),this._props.push("scrollTo_x")):this.skipX=1,null!=i.y?(this.add(this,"y",this.y,y(i.y,e,"y",this.y,i.offsetY||0),a,c),this._props.push("scrollTo_y")):this.skipY=1},render:function(e,t){for(var n,i,l,a,c,u=t._pt,d=t.target,f=t.tween,p=t.autoKill,m=t.xPrev,h=t.yPrev,x=t.isWin,v=t.snap,b=t.snapInline;u;)u.r(e,u.d),u=u._next;n=x||!t.skipX?t.getX():m,l=(i=x||!t.skipY?t.getY():h)-h,a=n-m,c=o.autoKillThreshold,t.x<0&&(t.x=0),t.y<0&&(t.y=0),p&&(!t.skipX&&(a>c||a<-c)&&n<g(d,"x")&&(t.skipX=1),!t.skipY&&(l>c||l<-c)&&i<g(d,"y")&&(t.skipY=1),t.skipX&&t.skipY&&(f.kill(),t.vars.onAutoKill&&t.vars.onAutoKill.apply(f,t.vars.onAutoKillParams||[]))),x?r.scrollTo(t.skipX?n:t.x,t.skipY?i:t.y):(t.skipY||(d.scrollTop=t.y),t.skipX||(d.scrollLeft=t.x)),v&&(1===e||0===e)&&(i=d.scrollTop,n=d.scrollLeft,b?d.style.scrollSnapType=b:d.style.removeProperty("scroll-snap-type"),d.scrollTop=i+1,d.scrollLeft=n+1,d.scrollTop=i,d.scrollLeft=n),t.xPrev=t.x,t.yPrev=t.y,s&&s.update()},kill:function(e){var t="scrollTo"===e,n=this._props.indexOf(e);return(t||"scrollTo_x"===e)&&(this.skipX=1),(t||"scrollTo_y"===e)&&(this.skipY=1),n>-1&&this._props.splice(n,1),!this._props.length}};j.max=g,j.getOffset=b,j.buildGetter=x,j.config=function(e){for(var n in o||w()||(o=t.config()),e)o[n]=e[n]},p()&&t.registerPlugin(j);var N=e.i(883495),S=e.i(271645),k=e.i(320351),E=e.i(403902),C=e.i(512471),T=e.i(406573),R=e.i(893880),M=e.i(460630),_=e.i(945060),P=e.i(272754),D=e.i(164328);function I({src:e}){if(!e)return null;let t=e.startsWith("https://cdn.sanity.io/")?`/api/svg-proxy?url=${encodeURIComponent(e)}`:e,n=(0,c.jsx)("img",{src:t,alt:"","aria-hidden":"true",className:"pointer-events-none absolute inset-0 block size-full"});return(0,c.jsx)("object",{type:"image/svg+xml",data:t,tabIndex:-1,"aria-hidden":"true",className:"pointer-events-none absolute inset-0 block size-full",children:n})}function A({items:e,cta:t,emailCapture:n}){let r=(0,M.useReducedMotion)(),[i,l]=(0,u.default)({align:"start",loop:!0}),[a,o]=(0,S.useState)(0),{fillProgress:s,containerElRef:d}=function({emblaApi:e,itemCount:t,delay:n=8e3,enabled:r=!0}){let[i,l]=(0,S.useState)(0),a=(0,S.useRef)(Date.now()),o=(0,S.useRef)(null),s=(0,S.useRef)(!1),c=(0,S.useRef)(null),u=r&&t>1;return(0,S.useEffect)(()=>
28{if(!e)return;let t=()=>{u&&(a.current=Date.now(),l(0))};return t(),e.on("select",t),e.on("reInit",t),()=>{e.off("select",t),e.off("reInit",t)}},[e,u]),(0,S.useEffect)(()=>{if(!u||!c.current)return;let e=c.current,t=new IntersectionObserver(([e])=>{s.current=e.isIntersecting,e.isIntersecting&&(a.current=Date.now(),l(0))},{threshold:.1});return t.observe(e),()=>t.disconnect()},[u]),(0,S.useEffect)(()=>{if(!u||!e)return;a.current=Date.now();let t=()=>{if(s.current){let t=Math.min((Date.now()-a.current)/n,1);l(t),t>=1&&e.scrollNext()}o.current=requestAnimationFrame(t)};return o.current=requestAnimationFrame(t),()=>{null!==o.current&&cancelAnimationFrame(o.current)}},[u,e,n]),{fillProgress:i,containerElRef:c}}({emblaApi:l,itemCount:e.length,enabled:!r});return(0,S.useEffect)(()=>{if(!l)return;let e=()=>o(l.selectedScrollSnap());return e(),l.on("select",e),l.on("reInit",e),()=>{l.off("select",e),l.off("reInit",e)}},[l]),(0,c.jsxs)("div",{ref:d,className:"space-y-6",children:[(0,c.jsx)("div",{ref:i,className:"overflow-hidden",children:(0,c.jsx)("div",{className:"flex gap-3",children:e.map((e,t)=>{let n=t<a,r=t===a,i=n?"100%":r?`${100*s}%`:"0%";return(0,c.jsxs)("button",{type:"button",onClick:()=>l?.scrollTo(t),"aria-current":r?"true":void 0,"aria-label":e.label??void 0,className:"flex shrink-0 basis-[82%] cursor-pointer flex-col items-start gap-2 text-left",children:[(0,c.jsx)("div",{className:"relative h-px w-full bg-greige-200",children:(0,c.jsx)("div",{"aria-hidden":"true",className:"absolute inset-y-0 left-0 bg-foreground",style:{width:i}})}),(0,c.jsxs)("div",{className:(0,_.cn)("flex flex-col gap-2",r?"opacity-100":"opacity-25"),children:[(0,c.jsx)("p",{className:"text-caption-1",children:e.label}),(0,c.jsx)(T.RichText,{className:"font-serif text-body-2 leading-5",value:e.body})]})]},t)})})}),(0,c.jsx)("div",{className:"relative",style:{display:"grid",gridTemplate:"1fr / 1fr"},children:e.map((e,t)=>{let n=(0,D.selectMedia)(e.media);return(0,c.jsxs)("div",{style:{gridArea:"1 / 1"},className:(0,_.cn)("relative transition-opacity duration-500",a===t?"z-10 opacity-100":"pointer-events-none z-0 opacity-0"),"aria-hidden":a!==t,children:[n?.kind==="image"?(0,c.jsx)(C.Image,{media:n.image,ratio:"auto",className:"overflow-hidden rounded-md"}):null,n?.kind==="video"?(0,c.jsx)("video",{className:"block size-full object-cover",src:n.src,autoPlay:!0,muted:!0,playsInline:!0,loop:!0,preload:"metadata"}):null,(0,c.jsx)(I,{src:e.animatedOverlay},a===t?"active":"idle")]},t)})}),t?.length?(0,c.jsx)(k.CtaList,{items:t}):null,n?(0,c.jsx)(E.EmailCaptureForm,{buttonLabel:"Book a demo",buttonVariant:"black",className:"w-full"}):null]})}e.s(["FeatureTabs",0,function({sectionId:e,theme:t,title:n,body:r,items:i,cta:l,emailCapture:a,scrollPin:o,semanticLevel:s="h2"}){let[u,f]=(0,S.useState)(0),[p,m]=(0,S.useState)(null),h=(0,S.useRef)(null),g=(0,S.useRef)(null),x=(0,S.useRef)([]),v=(0,S.useRef)(!1),b=(0,S.useRef)(null),y=(0,S.useRef)(!1),w=(0,S.useRef)(null),[O,L]=(0,S.useState)(!1),F=(0,M.useReducedMotion)(),z=!!i?.length,B=p??u,V=!!(o&&O&&!F);return((0,S.useEffect)(()=>{let e=x.current[B],t=g.current,n=h.current;if(!e||!t||!n)return;let r=()=>{let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return n.top-r.top+n.height/2-2};if(!v.current){d.default.set(n,{y:r(),opacity:1}),v.current=!0;return}if(y.current){d.default.to(n,{opacity:0,duration:.15,overwrite:"auto"});let e=e=>{"grid-template-rows"===e.propertyName&&(d.default.set(n,{y:r()}),d.default.to(n,{opacity:1,duration:.2,overwrite:"auto"}))};return t.addEventListener("transitionend",e),()=>t.removeEventListener("transitionend",e)}d.default.to(n,{y:r(),duration:.6,ease:"elastic.out(1, 0.8)",overwrite:"auto"});let i=e=>{"grid-template-rows"===e.propertyName&&d.default.to(n,{y:r(),duration:.6,ease:"elastic.out(1, 0.8)",overwrite:"auto"})};return t.addEventListener("transitionend",i),()=>t.removeEventListener("transitionend",i)},[B]),(0,S.useEffect)(()=>{let e=window.matchMedia("(min-width: 1024px) and (min-height: 800px)"),t=()=>L(e.matches);return t(),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]),(0,S.useEffect)(()=>
28{if(!V)return;d.default.registerPlugin(N.ScrollTrigger,j);let e=b.current,t=i?.length??0;if(!e||t<2)return;y.current=!0,e.style.height=`calc(100dvh + ${(t-1)*80}dvh)`;let n=N.ScrollTrigger.create({trigger:e,start:"top top",end:"bottom bottom",invalidateOnRefresh:!0,onUpdate:e=>{f(Math.min(t-1,Math.round(e.progress*(t-1)))),m(null)}});return w.current=n,()=>{y.current=!1,w.current=null,e.style.height="",n.kill()}},[V,i?.length]),(0,P.hasContent)(n)||(0,P.hasContent)(r)||z)?(0,c.jsxs)(R.Section,{id:e,theme:t,reveal:!0,children:[(0,c.jsx)("div",{ref:b,className:"relative hidden lg:block",children:(0,c.jsxs)("div",{className:(0,_.cn)("container grid grid-cols-1 gap-(--space-gutter) lg:grid-cols-12",V&&"sticky top-(--nav-height) h-[calc(100dvh-var(--nav-height))] items-center pb-30"),children:[(0,P.hasContent)(n)||(0,P.hasContent)(r)?(0,c.jsxs)("div",{"data-reveal":!0,className:"reveal col-span-full mb-8 space-y-4",children:[(0,P.hasContent)(n)?(0,c.jsx)(s,{className:"max-w-200 text-balance font-serif text-headline-1",children:(0,c.jsx)(P.InlineValue,{value:n})}):null,(0,c.jsx)(T.RichText,{className:"text-body-1",value:r})]}):null,(0,c.jsxs)("div",{className:"order-2 col-span-full flex flex-col items-start justify-between lg:order-0 lg:col-span-4 lg:h-full",children:[z?(0,c.jsxs)("div",{ref:g,"data-reveal":!0,className:"reveal relative",onMouseLeave:()=>m(null),children:[(0,c.jsx)("div",{ref:h,className:"absolute top-0 -left-4 hidden size-1 rounded-full bg-foreground lg:inline-block","aria-hidden":"true"}),i?.map((e,t)=>{let n=u===t,r=B===t;return(0,c.jsxs)("div",{className:"border-muted-foreground/20 border-t last:border-b",children:[(0,c.jsx)("button",{type:"button",ref:e=>{x.current[t]=e},className:(0,_.cn)("block w-full cursor-pointer py-4 text-left text-body-2 transition-colors",r?"font-medium text-foreground":"text-muted-foreground"),onMouseEnter:()=>{y.current||m(t)},onClick:()=>{let e=w.current;if(y.current&&e){let n=i?.length??0;if(n<2)return;let r=t/(n-1),l=e.start+(e.end-e.start)*r;d.default.to(window,{duration:.8,scrollTo:{y:l,autoKill:!1},ease:"power2.inOut",overwrite:"auto"});return}f(t)},"aria-expanded":n,children:e.label}),(0,c.jsx)("div",{className:"grid transition-[grid-template-rows] duration-300 ease-in-out",style:{gridTemplateRows:n?"1fr":"0fr"},children:(0,c.jsx)("div",{className:"overflow-hidden",children:(0,c.jsx)("div",{className:(0,_.cn)("pb-4 transition-opacity duration-300 ease-in-out",n?"opacity-100":"opacity-0"),children:(0,c.jsx)(T.RichText,{className:"font-serif text-2xl tracking-tight",value:e.body})})})})]},t)})]}):null,l?.length?(0,c.jsx)(k.CtaList,{items:l,className:"mt-8"}):null,a?(0,c.jsx)(E.EmailCaptureForm,{buttonLabel:"Book a demo",buttonVariant:"black",className:"w-full"}):null]}),z?(0,c.jsx)("div",{"data-reveal":!0,className:"reveal relative col-span-full items-start lg:col-span-8 lg:h-full lg:pl-12",style:{display:"grid",gridTemplate:"1fr / 1fr"},children:i?.map((e,t)=>{let n=(0,D.selectMedia)(e.media);return(0,c.jsxs)("div",{style:{gridArea:"1 / 1"},className:(0,_.cn)("relative h-full transition-opacity duration-500",u===t?"z-10 opacity-100":"pointer-events-none z-0 opacity-0"),"aria-hidden":u!==t,children:[n?.kind==="image"?(0,c.jsx)(C.Image,{media:n.image,ratio:"auto",className:"h-full overflow-hidden rounded-md"}):null,n?.kind==="video"?(0,c.jsx)("video",{className:"block size-full object-cover",src:n.src,autoPlay:!0,muted:!0,playsInline:!0,loop:!0,preload:"metadata"}):null,(0,c.jsx)(I,{src:e.animatedOverlay},u===t?"active":"idle")]},t)})}):null]})}),z?(0,c.jsx)("div",{className:"container lg:hidden",children:(0,c.jsx)(A,{items:i??[],cta:l,emailCapture:a})}):null]}):null}],40584)},991435,e=>{"use strict";var t,n,r,i=e.i(843476);e.s([],275704),e.i(275704),e.i(247167);var l=e.i(271645),a=e.i(367805);let o=l.createContext(void 0);function s(e){let t=l.useContext(o);if(!1===e&&void 0===t)throw Error((0,a.default)(27));return t}var c=e.i(269095),u=e.i(383590),d=e.i(814060);let f={...u.popupStateMapping,...d.transitionStatusMapping},p=l.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:l=!1,...a}=e,{store:o}=s(),u=o.useState("open"),d=o.useState("nested"),p=o.useState("mounted"),m=o.useState("transitionStatus");return(0,c.useRenderElement)("div",e,{state:{open:u,transitionStatus:m},ref:[o.context.backdropRef,t],stateAttributesMapping:f,props:[{role:"presentation",hidden:!p,style:{userSelect:"none",WebkitUserSelect:"none"}},a],enabled:l||!d})});var m=e.i(853402),h=e.i(931888),g=e.i(871403);let x=l.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,nativeButton:l=!0,style:a,...o}=e,{store:u}=s(),d=u.useState("open"),{getButtonProps:f,buttonRef:p}=(0,m.useButton)({disabled:i,native:l});return(0,c.useRenderElement)("button",e,{state:{disabled:i},ref:[t,p],props:[{onClick:function(e){d&&u.setOpen(!1,(0,h.createChangeEventDetails)(g.REASONS.closePress,e.nativeEvent))}},o,f]})});var v=e.i(986790);let b=l.forwardRef(function(e,t){let{render:n,className:r,style:i,id:l,...a}=e,{store:o}=s(),u=(0,v.useBaseUiId)(l);return o.useSyncedValueWithCleanup("descriptionElementId",u),(0,c.useRenderElement)("p",e,{ref:t,props:[{id:u},a]})});var y=e.i(229315),w=e.i(760620),j=e.i(605335),N=e.i(226292),S=e.i(400231),k=e.i(676477),E=e.i(500977),C=e.i(566745),T=e.i(757666),R=e.i(647135),M=e.i(290219),_=e.i(333848),P=e.i(672408),D=e.i(930780),I=e.i(362834),A=e.i(282033),O=e.i(559266),L=e.i(587612),F=e.i(743801),z=e.i(132652),B=e.i(417514);let V=0;function H(e,t={}){let{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(V);let l=()=>e?.focus({preventScroll:n});if(i)return l(),B.NOOP;let a=requestAnimationFrame(l);return V=a,()=>{V===a&&(cancelAnimationFrame(a),V=0)}}let Y={inert:new WeakMap,"aria-hidden":new WeakMap},W="data-base-ui-inert",$={inert:new WeakSet,"aria-hidden":new WeakSet},X=new WeakMap,q=0,U=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=function e(t){return t?(0,y.isShadowRoot)(t)?t.host:e(t.parentNode):null}(t);return e.contains(n)?n:null}).filter(e=>null!=e),G=e=>{let t=new Set;
28return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},K=(e,t,n)=>{let r=[],i=e=>{!e||n.has(e)||Array.from(e.children).forEach(e=>{"script"!==(0,y.getNodeName)(e)&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function Z(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0,markerIgnoreElements:l=[]}=t,a=(0,M.ownerDocument)(e[0]).body;return function(e,t,n,r,{mark:i=!0,markerIgnoreElements:l=[]}){let a=r?"inert":n?"aria-hidden":null,o=null,s=null,c=U(t,e),u=new Set(i?U(t,l):[]),d=i?K(t,G(c),new Set(c)).filter(e=>!u.has(e)):[],f=[],p=[];if(a){let e=Y[a],n=$[a];s=n,o=e;let r=U(t,Array.from(t.querySelectorAll("[aria-live]"))),i=c.concat(r);K(t,G(i),new Set(i)).forEach(t=>{let r=t.getAttribute(a),i=null!==r&&"false"!==r,l=(e.get(t)||0)+1;e.set(t,l),f.push(t),1===l&&i&&n.add(t),i||t.setAttribute(a,"inert"===a?"":"true")})}return i&&d.forEach(e=>{let t=(X.get(e)||0)+1;X.set(e,t),p.push(e),1===t&&e.setAttribute(W,"")}),q+=1,()=>{o&&f.forEach(e=>{let t=(o.get(e)||0)-1;o.set(e,t),t||(!s?.has(e)&&a&&e.removeAttribute(a),s?.delete(e))}),i&&p.forEach(e=>{let t=(X.get(e)||0)-1;X.set(e,t),t||e.removeAttribute(W)}),(q-=1)||(Y.inert=new WeakMap,Y["aria-hidden"]=new WeakMap,$.inert=new WeakSet,$["aria-hidden"]=new WeakSet,X=new WeakMap)}}(e,a,n,r,{mark:i,markerIgnoreElements:l})}var J=e.i(937692),Q=e.i(151665),ee=e.i(905066),et=e.i(819414);let en=[];function er(){en=en.filter(e=>e.deref()?.isConnected)}function ei(){return er(),en[en.length-1]?.deref()}function el(e,t){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!t.current.includes("floating")&&!e.getAttribute("role")?.includes("dialog"))return;let n=(0,O.focusable)(e).filter(e=>{let t=e.getAttribute("data-tabindex")||"";return(0,O.isTabbable)(e)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),r=e.getAttribute("tabindex");t.current.includes("floating")||0===n.length?"0"!==r&&e.setAttribute("tabindex","0"):("-1"!==r||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function ea(e){let{context:t,children:n,disabled:r=!1,initialFocus:a=!0,returnFocus:o=!0,restoreFocus:s=!1,modal:c=!0,closeOnFocusOut:u=!0,openInteractionType:d="",nextFocusableElement:f,previousFocusableElement:p,beforeContentFocusGuardRef:m,externalTree:x,getInsideElements:v}=e,b="rootStore"in t?t.rootStore:t,B=b.useState("open"),V=b.useState("domReferenceElement"),Y=b.useState("floatingElement"),{events:W,dataRef:$}=b.context,X=(0,k.useStableCallback)(()=>$.current.floatingContext?.nodeId),q=!1===a,U=(0,I.isTypeableCombobox)(V)&&q,G=l.useRef(["content"]),K=(0,S.useValueAsRef)(a),ea=(0,S.useValueAsRef)(o),eo=(0,S.useValueAsRef)(d),es=(0,Q.useFloatingTree)(x),ec=(0,J.usePortalContext)(),eu=l.useRef(!1),ed=l.useRef(!1),ef=l.useRef(!1),ep=l.useRef(null),em=l.useRef(""),eh=l.useRef(""),eg=l.useRef(null),ex=l.useRef(null),ev=(0,N.useMergedRefs)(eg,m,ec?.beforeInsideRef),eb=(0,N.useMergedRefs)(ex,ec?.afterInsideRef),ey=(0,C.useTimeout)(),ew=(0,C.useTimeout)(),ej=(0,R.useAnimationFrame)(),eN=null!=ec,eS=(0,I.getFloatingFocusElement)(Y),ek=(0,k.useStableCallback)((e=eS)=>e?(0,O.tabbable)(e):[]),eE=(0,k.useStableCallback)(()=>v?.().filter(e=>null!=e)??[]);l.useEffect(()=>{if(r||!c)return;let e=(0,M.ownerDocument)(eS);return(0,w.addEventListener)(e,"keydown",function(e){"Tab"===e.key&&(0,D.contains)(eS,(0,D.activeElement)((0,M.ownerDocument)(eS)))&&0===ek().length&&!U&&(0,A.stopEvent)(e)})},[r,V,eS,c,G,U,ek]),l.useEffect(()=>{if(r||!B)return;let e=(0,M.ownerDocument)(eS);function t(){ef.current=!1}return(0,j.mergeCleanups)((0,w.addEventListener)(e,"pointerdown",function(e){let t=(0,D.getTarget)(e),n=eE();ef.current=!((0,D.contains)(Y,t)||(0,D.contains)(V,t)||(0,D.contains)(ec?.portalNode,t)||n.some(e=>e===t||(0,D.contains)(e,t))),eh.current=e.pointerType||"keyboard",t?.closest(`[${ee.CLICK_TRIGGER_IDENTIFIER}]`)&&(ed.current=!0)},!0),(0,w.addEventListener)(e,"pointerup",t,!0),(0,w.addEventListener)(e,"pointercancel",t,!0),(0,w.addEventListener)(e,"keydown",function(){eh.current="keyboard"},!0))},[r,Y,V,eS,B,ec,eE]),l.useEffect(()=>{if(r||!u)return;let e=(0,M.ownerDocument)(eS);function t(t){let n=t.relatedTarget,r=t.currentTarget,i=(0,D.getTarget)(t);queueMicrotask(()=>{let l=X(),a=b.context.triggerElements,o=eE(),u=n?.hasAttribute((0,z.createAttribute)("focus-guard"))&&[eg.current,ex.current,ec?.beforeInsideRef.current,ec?.afterInsideRef.current,ec?.beforeOutsideRef.current,ec?.afterOutsideRef.current,(0,et.resolveRef)(p),(0,et.resolveRef)(f)].includes(n),d=!((0,D.contains)(V,n)||(0,D.contains)(Y,n)||(0,D.contains)(n,Y)||(0,D.contains)(ec?.portalNode,n)||o.some(e=>
28e===n||(0,D.contains)(e,n))||null!=n&&a.hasElement(n)||a.hasMatchingElement(e=>(0,D.contains)(e,n))||u||es&&((0,L.getNodeChildren)(es.nodesRef.current,l).find(e=>(0,D.contains)(e.context?.elements.floating,n)||(0,D.contains)(e.context?.elements.domReference,n))||(0,L.getNodeAncestors)(es.nodesRef.current,l).find(e=>[e.context?.elements.floating,(0,I.getFloatingFocusElement)(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(r===V&&eS&&el(eS,G),s&&r!==V&&!(0,F.isElementVisible)(i)&&(0,D.activeElement)(e)===e.body){if((0,y.isHTMLElement)(eS)&&(eS.focus(),"popup"===s))return void ej.request(()=>{eS.focus()});let e=ek(),t=ep.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||eS;(0,y.isHTMLElement)(n)&&n.focus()}if($.current.insideReactTree){$.current.insideReactTree=!1;return}(U||!c)&&n&&d&&!ed.current&&(U||n!==ei())&&(eu.current=!0,b.setOpen(!1,(0,h.createChangeEventDetails)(g.REASONS.focusOut,t)))})}let n=(0,y.isHTMLElement)(V)?V:null;if(Y||n)return(0,j.mergeCleanups)(n&&(0,w.addEventListener)(n,"focusout",t),n&&(0,w.addEventListener)(n,"pointerdown",function(){ed.current=!0,ew.start(0,()=>{ed.current=!1})}),Y&&(0,w.addEventListener)(Y,"focusin",function(e){let t=(0,D.getTarget)(e);(0,O.isTabbable)(t)&&(ep.current=t)}),Y&&(0,w.addEventListener)(Y,"focusout",t),Y&&ec&&(0,w.addEventListener)(Y,"focusout",function(){ef.current||($.current.insideReactTree=!0,ey.start(0,()=>{$.current.insideReactTree=!1}))},!0))},[r,V,Y,eS,c,es,ec,b,u,s,ek,U,X,G,$,ey,ew,ej,f,p,eE]),l.useEffect(()=>{if(r||!Y||!B)return;let e=Array.from(ec?.portalNode?.querySelectorAll(`[${(0,z.createAttribute)("portal")}]`)||[]),t=es?(0,L.getNodeAncestors)(es.nodesRef.current,X()):[],n=t.find(e=>(0,I.isTypeableCombobox)(e.context?.elements.domReference||null))?.context?.elements.domReference,i=Z([Y,...e,eg.current,ex.current,ec?.beforeOutsideRef.current,ec?.afterOutsideRef.current,...eE(),n,(0,et.resolveRef)(p),(0,et.resolveRef)(f),U?V:null].filter(e=>null!=e),{ariaHidden:c||U,mark:!1}),l=Z([Y,...e].filter(e=>null!=e));return()=>{l(),i()}},[B,r,V,Y,c,G,ec,U,es,X,f,p,eE]),(0,E.useIsoLayoutEffect)(()=>{if(!B||r||!(0,y.isHTMLElement)(eS))return;let e=(0,M.ownerDocument)(eS),t=(0,D.activeElement)(e);queueMicrotask(()=>{let e,n=K.current,r="function"==typeof n?n(eo.current||""):n;if(void 0===r||!1===r||(0,D.contains)(eS,t))return;let i=null,l=()=>(null==i&&(i=ek(eS)),i[0]||eS);H(e=(e=!0===r||null===r?l():(0,et.resolveRef)(r))||l(),{preventScroll:e===eS})})},[r,B,eS,q,ek,K,eo]),(0,E.useIsoLayoutEffect)(()=>{var e;if(r||!eS)return;let t=(0,M.ownerDocument)(eS);function n(e){var t,n;let r;if(e.open||(t=e.nativeEvent,n=eh.current,r=(0,_.ownerWindow)((0,D.getTarget)(t)),em.current=t instanceof r.KeyboardEvent?"keyboard":t instanceof r.FocusEvent?n||"keyboard":"pointerType"in t?t.pointerType||"keyboard":"touches"in t?"touch":t instanceof r.MouseEvent?n||(0===t.detail?"keyboard":"mouse"):""),e.reason===g.REASONS.triggerHover&&"mouseleave"===e.nativeEvent.type&&(eu.current=!0),e.reason===g.REASONS.outsidePress)if(e.nested)eu.current=!1;else if((0,A.isVirtualClick)(e.nativeEvent)||(0,A.isVirtualPointerEvent)(e.nativeEvent))eu.current=!1;else{let e=!1;(0,M.ownerDocument)(eS).createElement("div").focus({get preventScroll(){return e=!0,!1}}),e?eu.current=!1:eu.current=!0}}return e=(0,D.activeElement)(t),er(),e&&"body"!==(0,y.getNodeName)(e)&&(en.push(new WeakRef(e)),en.length>20&&(en=en.slice(-20))),W.on("openchange",n),()=>{W.off("openchange",n);let e=(0,D.activeElement)(t),r=eE(),i=(0,D.contains)(Y,e)||r.some(t=>t===e||(0,D.contains)(t,e))||es&&(0,L.getNodeChildren)(es.nodesRef.current,X(),!1).some(t=>(0,D.contains)(t.context?.elements.floating,e)),l=ea.current,a=function(){let e=ea.current,t="function"==typeof e?e(em.current):e;if(void 0===t||!1===t)return null;if(null===t&&(t=!0),"boolean"==typeof t){let e=V||ei();return e&&e.isConnected?e:null}let n=V||ei();return(0,et.resolveRef)(t)||n||null}();queueMicrotask(()=>{let n=a?(0,O.isTabbable)(a)?a:(0,O.tabbable)(a)[0]||a:null;l&&!eu.current&&(0,y.isHTMLElement)(n)&&("boolean"!=typeof l||n===e||e===t.body||i)&&n.focus({preventScroll:!0}),eu.current=!1})}},[r,Y,eS,ea,$,W,es,V,X,eE]),(0,E.useIsoLayoutEffect)(()=>
28{if(!T.isWebKit||B||!Y)return;let e=(0,D.activeElement)((0,M.ownerDocument)(Y));(0,y.isHTMLElement)(e)&&(0,I.isTypeableElement)(e)&&(0,D.contains)(Y,e)&&e.blur()},[B,Y]),(0,E.useIsoLayoutEffect)(()=>{if(!r&&ec)return ec.setFocusManagerState({modal:c,closeOnFocusOut:u,open:B,onOpenChange:b.setOpen,domReference:V}),()=>{ec.setFocusManagerState(null)}},[r,ec,c,B,b,u,V]),(0,E.useIsoLayoutEffect)(()=>{if(!r&&eS)return el(eS,G),()=>{queueMicrotask(er)}},[r,eS,G]);let eC=!r&&(!c||!U)&&(eN||c);return(0,i.jsxs)(l.Fragment,{children:[eC&&(0,i.jsx)(P.FocusGuard,{"data-type":"inside",ref:ev,onFocus:e=>{if(c){let e=ek();H(e[e.length-1])}else if(ec?.portalNode)if(eu.current=!1,(0,O.isOutsideEvent)(e,ec.portalNode)){let e=(0,O.getNextTabbable)(V);e?.focus()}else(0,et.resolveRef)(p??ec.beforeOutsideRef)?.focus()}}),n,eC&&(0,i.jsx)(P.FocusGuard,{"data-type":"inside",ref:eb,onFocus:e=>{if(c)H(ek()[0]);else if(ec?.portalNode)if(u&&(eu.current=!0),(0,O.isOutsideEvent)(e,ec.portalNode)){let e=(0,O.getPreviousTabbable)(V);e?.focus()}else(0,et.resolveRef)(f??ec.afterOutsideRef)?.focus()}})]})}let eo=((t={}).nestedDialogs="--nested-dialogs",t),es=((n={})[n.open=u.CommonPopupDataAttributes.open]="open",n[n.closed=u.CommonPopupDataAttributes.closed]="closed",n[n.startingStyle=u.CommonPopupDataAttributes.startingStyle]="startingStyle",n[n.endingStyle=u.CommonPopupDataAttributes.endingStyle]="endingStyle",n.nested="data-nested",n.nestedDialogOpen="data-nested-dialog-open",n),ec=l.createContext(void 0);function eu(){let e=l.useContext(ec);if(void 0===e)throw Error((0,a.default)(26));return e}var ed=e.i(223715),ef=e.i(496374);let ep={...u.popupStateMapping,...d.transitionStatusMapping,nestedDialogOpen:e=>e?{[es.nestedDialogOpen]:""}:null},em=l.forwardRef(function(e,t){let{className:n,finalFocus:r,initialFocus:l,render:a,style:o,...u}=e,{store:d}=s(),f=d.useState("descriptionElementId"),p=d.useState("disablePointerDismissal"),m=d.useState("floatingRootContext"),h=d.useState("popupProps"),g=d.useState("modal"),x=d.useState("mounted"),v=d.useState("nested"),b=d.useState("nestedOpenDialogCount"),y=d.useState("open"),w=d.useState("openMethod"),j=d.use
28State("titleElementId"),N=d.useState("transitionStatus"),S=d.useState("role");eu(),(0,ed.useOpenChangeComplete)({open:y,ref:d.context.popupRef,onComplete(){y&&d.context.onOpenChangeComplete?.(!0)}});let k=void 0===l?function(e){return"touch"!==e||d.context.popupRef.current}:l,E=(0,c.useRenderElement)("div",e,{state:{open:y,nested:v,transitionStatus:N,nestedDialogOpen:b>0},props:[h,{"aria-labelledby":j??void 0,"aria-describedby":f??void 0,role:S,tabIndex:-1,hidden:!x,onKeyDown(e){ef.COMPOSITE_KEYS.has(e.key)&&e.stopPropagation()},style:{[eo.nestedDialogs]:b}},u],ref:[t,d.context.popupRef,d.useStateSetter("popupElement")],stateAttributesMapping:ep});return(0,i.jsx)(ea,{context:m,openInteractionType:w,disabled:!x,closeOnFocusOut:!p,initialFocus:k,returnFocus:r,modal:!1!==g,restoreFocus:"popup",children:E})});var eh=e.i(658130);let eg=l.forwardRef(function(e,t){let n,{cutout:r,...l}=e;if(r){let e=r.getBoundingClientRect();n=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,i.jsx)("div",{ref:t,role:"presentation","data-base-ui-inert":"",...l,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:n}})}),ex=l.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:l}=s(),a=l.useState("mounted"),o=l.useState("modal"),c=l.useState("open");return a||n?(0,i.jsx)(ec.Provider,{value:n,children:(0,i.jsxs)(J.FloatingPortal,{ref:t,...r,children:[a&&!0===o&&(0,i.jsx)(eg,{ref:l.context.internalBackdropRef,inert:(0,eh.inertValue)(!c)}),e.children]})}):null}),ev={},eb={},ey="";class ew{lockCount=0;restore=null;timeoutLock=C.Timeout.create();timeoutUnlock=C.Timeout.create();acquire(e){return this.lockCount+=1,1===this.lockCount&&null===this.restore&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{this.lockCount-=1,0===this.lockCount&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{0===this.lockCount&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){let t,n,r,i,l;if(0===this.lockCount||null!==this.restore)return;let a=(0,M.ownerDocument)(e).documentElement,o=(0,_.ownerWindow)(a).getComputedStyle(a).overflowY;if("hidden"===o||"clip"===o){this.restore=B.NOOP;return}let s=T.isIOS||!function(e){if("u"<typeof document)return!1;let t=(0,M.ownerDocument)(e);return(0,_.ownerWindow)(t).innerWidth-t.documentElement.clientWidth>0}(e);this.restore=s?(n=(t=(0,M.ownerDocument)(e)).documentElement,r=t.body,l={overflowY:(i=(0,y.isOverflowElement)(n)?n:r).style.overflowY,overflowX:i.style.overflowX},Object.assign(i.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(i.style,l)}):function(e){let t=(0,M.ownerDocument)(e),n=t.documentElement,r=t.body,i=(0,_.ownerWindow)(n),l=0,a=0,o=!1,s=R.AnimationFrame.create();if(T.isWebKit&&(i.visualViewport?.scale??1)!==1)return()=>{};function c(){let t=i.getComputedStyle(n),s=i.getComputedStyle(r),c=(t.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";l=n.scrollTop,a=n.scrollLeft,ev={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},ey=n.style.scrollBehavior,eb={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f="scroll"===t.overflowY||"scroll"===s.overflowY,p="scroll"===t.overflowX||"scroll"===s.overflowX,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(s.marginTop)+parseFloat(s.marginBottom),x=parseFloat(s.marginLeft)+parseFloat(s.marginRight),v=(0,y.isOverflowElement)(n)?n:r;if(o=function(e){if(!("u">typeof CSS&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||"u"<typeof document)return!1;let t=(0,M.ownerDocument)(e),n=t.documentElement,r=t.body,i=(0,y.isOverflowElement)(n)?n:r,l=i.style.overflowY,a=n.style.scrollbarGutter;n.style.scrollbarGutter="stable",i.style.overflowY="scroll";let o=i.offsetWidth;i.style.overflowY="hidden";let s=i.offsetWidth;return i.style.overflowY=l,n.style.scrollbarGutter=a,o===s}(e)){n.style.scrollbarGutter=c,v.style.overflowY="hidden",v.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:c,overflowY:"hidden",overflowX:"hidden"}),(u||f)&&(n.style.overflowY="scroll"),(d||p)&&(n.style.overflowX="scroll"),Object.assign(r.style,{position:"relative",height:g||h?`calc(100dvh - ${g+h}px)`:"100dvh",width:x||m?`calc(100vw - ${x+m}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),r.scrollTop=l,r.scrollLeft=a,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function u(){Object.assign(n.style,ev),Object.assign(r.style,eb),o||(n.scrollTop=l,n.scrollLeft=a,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=ey)}c();let d=(0,w.addEventListener)(i,"resize",function(){u(),s.request(c)});return()=>{s.cancel(),u(),"function"==typeof i.removeEventListener&&d()}}(e)}}let ej=new ew;var eN=e.i(933605),eS=e.i(789633),ek=e.i(383799);let eE=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);var eC=e.i(630628),eT=e.i(524019),eR=e.i(361463),eM=e.i(783921),e_=e.i(598263),eP=e.i(528836);let eD=(0,eM.createSelector)(e=>e.triggerIdProp??e.activeTriggerId),eI={open:(0,eM.createSelector)(e=>e.openProp??e.open),mounted:(0,eM.createSelector)(e=>e.mounted),transitionStatus:(0,eM.createSelector)(e=>e.transitionStatus),floatingRootContext:(0,eM.createSelector)(e=>e.floatingRootContext),preventUnmountingOnClose:(0,eM.createSelector)(e=>e.preventUnmountingOnClose),payload:(0,eM.createSelector)(e=>e.payload),activeTriggerId:eD,activeTriggerElement:(0,eM.createSelector)(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:(0,eM.createSelector)((e,t)=>void 0!==t&&eD(e)===t),isOpenedByTrigger:(0,eM.createSelector)((e,t)=>void 0!==t&&eD(e)===t&&e.open),isMountedByTrigger:(0,eM.createSelector)((e,t)=>void 0!==t&&eD(e)===t&&e.mounted),triggerProps:(0,eM.createSelector)((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:(0,eM.createSelector)(e=>e.popupProps),popupElement:(0,eM.createSelector)(e=>e.popupElement),positionerElement:(0,eM.createSelector)(e=>e.positionerElement)};var eA=e.i(769375);let eO={...eI,modal:(0,eM.createSelector)(e=>e.modal),nested:(0,eM.createSelector)(e=>e.nested),nestedOpenDialogCount:(0,eM.createSelector)(e=>e.nestedOpenDialogCount),nestedOpenDrawerCount:(0,eM.createSelector)(e=>e.nestedOpenDrawerCount),disablePointerDismissal:(0,eM.createSelector)(e=>e.disablePointerDismissal),openMethod:(0,eM.createSelector)(e=>e.openMethod),descriptionElementId:(0,eM.createSelector)(e=>e.descriptionElementId),titleElementId:(0,eM.createSelector)(e=>e.titleElementId),viewportElement:(0,eM.createSelector)(e=>e.viewportElement),role:(0,eM.createSelector)(e=>e.role)};class eL extends e_.ReactStore{constructor(e){super(function(e={}){return{...{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:(0,eP.getEmptyRootContext)(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:B.EMPTY_OBJECT,inactiveTriggerProps:B.EMPTY_OBJECT,popupProps:B.EMPTY_OBJECT},modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...e}}(e),{popupRef:l.createRef(),backdropRef:l.createRef(),internalBackdropRef:l.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:new eA.PopupTriggerMap,onOpenChange:void 0,onOpenChangeComplete:void 0},eO)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},e||null!=t.trigger||null==this.state.activeTriggerId||(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let n={open:e},r=t.trigger?.id??null;(r||e)&&(n.activeTriggerId=r,n.activeTriggerElement=t.trigger??null),this.update(n)};static useStore(e,t){let n=(0,eC.useRefWithInit)(()=>new eL(t)).current;return e??n}}let eF=l.createContext(!1),ez=((r={})[r.open=u.CommonPopupDataAttributes.open]="open",r[r.closed=u.CommonPopupDataAttributes.closed]="closed",r[r.startingStyle=u.CommonPopupDataAttributes.startingStyle]="startingStyle",r[r.endingStyle=u.CommonPopupDataAttributes.endingStyle]="endingStyle",r.nested="data-nested",r.nestedDialogOpen="data-nested-dialog-open",r),eB={...u.popupStateMapping,...d.transitionStatusMapping,nested:e=>e?{[ez.nested]:""}:null,nestedDialogOpen:e=>e?{[ez.nestedDialogOpen]:""}:null},eV=l.forwardRef(function(e,t){let{className:n,render:r,children:i,style:l,...a}=e,o=eu(),{store:u}=s(),d=u.useState("open"),f=u.useState("nested"),p=u.useState("transitionStatus"),m=u.useState("nestedOpenDialogCount"),h=u.useState("mounted");return(0,c.useRenderElement)("div",e,{enabled:o||h,state:{open:d,nested:f,transitionStatus:p,nestedDialogOpen:m>0},ref:[t,u.useStateSetter("viewportElement")],stateAttributesMapping:eB,props:[{role:"presentation",hidden:!h,style:{pointerEvents:d?void 0:"none"},children:i},a]})}),eH=l.forwardRef(function(e,t){let{render:n,className:r,style:i,id:l,...a}=e,{store:o}=s(),u=(0,v.useBaseUiId)(l);return o.useSyncedValueWithCleanup("titleElementId",u),(0,c.useRenderElement)("h2",e,{ref:t,props:[{id:u},a]})});var eY=e.i(804012);let eW=l.forwardRef(function(e,t){var n;let r,i,o,d,f,{render:p,className:h,disabled:g=!1,nativeButton:x=!0,id:b,payload:y,handle:w,style:j,...N}=e,S=s(!0),C=w?.store??S?.store;if(!C)throw Error((0,a.default)(79));let T=(0,v.useBaseUiId)(b),R=C.useState("floatingRootContext"),M=C.useState("isOpenedByTrigger",T),_=l.useRef(null),{registerTrigger:P,isMountedByThisTrigger:D}=(n={payload:y},r=C.useState("isMountedByTrigger",T),i=l.useRef(null),o=l.useRef(null),d=l.useCallback(e=>{if(void 0!==T){if(null!==i.current){let e=i.current,t=o.current,n=C.context.triggerElements.getById(e);t&&n===t&&C.context.triggerElements.delete(e),i.current=null,o.current=null}null!==e&&(i.current=T,o.current=e,C.context.triggerElements.add(T,e))}},[C,T]),f=(0,k.useStableCallback)(e=>{if(d(e),!e||!C.select("open"))return;let t=C.select("activeTriggerId");t===T?C.update({activeTriggerElement:e,...n}):null==t&&C.update({activeTriggerId:T,activeTriggerElement:e,...n})}),(0,E.useIsoLayoutEffect)(()=>{r&&C.update({activeTriggerElement:_.current,...n})},[r,C,_,...Object.values(n)]),{registerTrigger:f,isMountedByThisTrigger:r}),{getButtonProps:I,buttonRef:A}=(0,m.useButton)({disabled:g,native:x}),O=(0,eY.useClick)(R,{enabled:null!=R}),L=(0,eS.useInteractions)([O]),F=C.useState("triggerProps",D);return(0,c.useRenderElement)("button",e,{state:{disabled:g,open:M},ref:[A,t,P,_],props:[L.getReferenceProps(),F,{[ee.CLICK_TRIGGER_IDENTIFIER]:"",id:T},N,I],stateAttributesMapping:u.triggerOpenStateMapping})});class e${constructor(e){this.store=e??new eL}open(e){let t=e?this.store.context.triggerElements.getById(e):void 0;this.store.setOpen(!0,(0,h.createChangeEventDetails)(g.REASONS.imperativeAction,void 0,t))}openWithPayload(e){this.store.set("payload",e),this.store.setOpen(!0,(0,h.createChangeEventDetails)(g.REASONS.imperativeAction,void 0,void 0))}close(){this.store.setOpen(!1,(0,h.createChangeEventDetails)(g.REASONS.imperativeAction,void 0,void 0))}get isOpen(){return this.store.state.open}}e.s(["Backdrop",0,p,"Close",0,x,"Description",0,b,"Handle",0,e$,"Popup",0,em,"Portal",0,ex,"Root",0,function(e){let t,{children:n,open:r,defaultOpen:a=!1,onOpenChange:c,onOpenChangeComplete:u,disablePointerDismissal:d=!1,modal:f=!0,actionsRef:p,handle:m,triggerId:x,defaultTr
28iggerId:v=null}=e,b=s(!0),w=l.useContext(eF),j=!!b,N=eL.useStore(m?.store,{open:a,openProp:r,activeTriggerId:v,triggerIdProp:x,modal:f,disablePointerDismissal:d,nested:j});(t=l.useRef(!0)).current&&(t.current=!1,(()=>{void 0===r&&!1===N.state.open&&!0===a&&N.update({open:!0,activeTriggerId:v})})()),N.useControlledProp("openProp",r),N.useControlledProp("triggerIdProp",x),N.useSyncedValues({disablePointerDismissal:d,nested:j,modal:f}),N.useContextCallback("onOpenChange",c),N.useContextCallback("onOpenChangeComplete",u);let S=N.useState("payload");!function(e){let t,{store:n,parentContext:r,actionsRef:i,isDrawer:a}=e,o=n.useState("open"),s=n.useState("disablePointerDismissal"),c=n.useState("modal"),u=n.useState("popupElement"),{openMethod:d,triggerProps:f}=function(e){let t,n,r,i,[a,o]=l.useState(null),s=(0,k.useStableCallback)((t,n)=>{e||o(n||(T.isIOS?"touch":""))});t=l.useRef(e),n=(0,k.useStableCallback)(t=>{t&&!e&&o(null)}),(0,E.useIsoLayoutEffect)(()=>{t.current!==e&&n(t.current)},[e,n]),(0,E.useIsoLayoutEffect)(()=>{t.current=e},[e]);let{onClick:c,onPointerDown:u}=(r=l.useRef(""),i=l.useCallback(e=>{e.defaultPrevented||(r.current=e.pointerType,s(e,e.pointerType))},[s]),{onClick:l.useCallback(e=>{0===e.detail?s(e,"keyboard"):(s(e,"pointerType"in e?e.pointerType:r.current),r.current="")},[s]),onPointerDown:i});return l.useMemo(()=>({openMethod:a,triggerProps:{onClick:c,onPointerDown:u}}),[a,c,u])}(o);t=n.useState("open"),(0,E.useIsoLayoutEffect)(()=>{if(t&&!n.select("activeTriggerId")&&1===n.context.triggerElements.size){let e=n.context.triggerElements.entries().next();if(!e.done){let[t,r]=e.value;n.update({activeTriggerId:t,activeTriggerElement:r})}}},[t,n]);let{forceUnmount:p}=function(e,t){let{mounted:n,setMounted:r,transitionStatus:i}=(0,eR.useTransitionStatus)(e);t.useSyncedValues({mounted:n,transitionStatus:i});let l=(0,k.useStableCallback)(()=>{r(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),t.context.onOpenChangeComplete?.(!1)}),a=t.useState("preventUnmountingOnClose");return(0,ed.useOpenChangeComplete)({enabled:!a,open:e,ref:t.context.popupRef,onComplete(){e||l()}}),{forceUnmount:l,transitionStatus:i}}(o,n),m=l.useCallback(()=>{n.setOpen(!1,(0,h.createChangeEventDetails)(g.REASONS.imperativeAction))},[n]);l.useImperativeHandle(i,()=>({unmount:p,close:m}),[p,m]);let x=function(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,onOpenChange:r}=e,i=(0,ek.useId)(),l=null!=(0,Q.useFloatingParentNodeId)(),a=t.useState("open"),o=t.useState("activeTriggerElement"),s=t.useState(n?"popupElement":"positionerElement"),c=t.context.triggerElements,u=(0,eC.useRefWithInit)(()=>new eT.FloatingRootStore({open:a,transitionStatus:void 0,referenceElement:o,floatingElement:s,triggerElements:c,onOpenChange:r,floatingId:i,syncOnly:!0,nested:l})).current;return(0,E.useIsoLayoutEffect)(()=>{let e={open:a,floatingId:i,referenceElement:o,floatingElement:s};(0,y.isElement)(o)&&(e.domReferenceElement=o),u.state.positionReference===u.state.referenceElement&&(e.positionReference=o),u.update(e)},[a,i,o,s,u]),u.context.onOpenChange=r,u.context.nested=l,u}({popupStore:n,onOpenChange:n.setOpen,treatPopupAsFloatingElement:!0}),[v,b]=l.useState(0),[w,j]=l.useState(0),N=0===v,S=function(e,t={}){let n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingId"),a=n.useState("domReferenceElement"),o=n.useState("floatingElement"),{role:s="dialog"}=t,c=(0,ek.useId)(),u=a?.id||c,d=l.useMemo(()=>(0,I.getFloatingFocusElement)(o)?.id||i,[o,i]),f=eE.get(s)??s,p=null!=(0,Q.useFloatingParentNodeId)(),m=l.useMemo(()=>"tooltip"===f||"label"===s?B.EMPTY_OBJECT:{"aria-haspopup":"alertdialog"===f?"dialog":f,"aria-expanded":"false",..."listbox"===f&&{role:"combobox"},..."menu"===f&&p&&{role:"menuitem"},..."select"===s&&{"aria-autocomplete":"none"},..."combobox"===s&&{"aria-autocomplete":"list"}},[f,p,s]),h=l.useMemo(()=>"tooltip"===f||"label"===s?{[`aria-${"label"===s?"labelledby":"describedby"}`]:r?d:void 0}:{...m,"aria-expanded":r?"true":"false","aria-controls":r?d:void 0,..."menu"===f&&{id:u}},[f,d,r,u,s,m]),g=l.useMemo(()=>
28{let e={id:d,...f&&{role:f}};return"tooltip"===f||"label"===s?e:{...e,..."menu"===f&&{"aria-labelledby":u}}},[f,d,u,s]),x=l.useCallback(({active:e,selected:t})=>{let n={role:"option",...e&&{id:`${d}-fui-option`}};switch(s){case"select":case"combobox":return{...n,"aria-selected":t}}return{}},[d,s]);return l.useMemo(()=>({reference:h,floating:g,item:x,trigger:m}),[h,g,m,x])}(x),C=(0,eN.useDismiss)(x,{outsidePressEvent:()=>n.context.internalBackdropRef.current||n.context.backdropRef.current?"intentional":{mouse:"trap-focus"===c?"sloppy":"intentional",touch:"sloppy"},outsidePress(e){if(!n.context.outsidePressEnabledRef.current||"button"in e&&0!==e.button||"touches"in e&&1!==e.touches.length)return!1;let t=(0,D.getTarget)(e);return!!N&&!s&&(!c||!n.context.internalBackdropRef.current&&!n.context.backdropRef.current||n.context.internalBackdropRef.current===t||n.context.backdropRef.current===t||(0,D.contains)(t,u)&&!t?.hasAttribute("data-base-ui-portal"))},escapeKey:N});!function(e=!0,t=null){(0,E.useIsoLayoutEffect)(()=>{if(e)return ej.acquire(t)},[e,t])}(o&&!0===c,u);let{getReferenceProps:R,getFloatingProps:M,getTriggerProps:_}=(0,eS.useInteractions)([S,C]);n.useContextCallback("onNestedDialogOpen",(e,t)=>{b(e),j(t)}),n.useContextCallback("onNestedDialogClose",()=>{b(0),j(0)}),l.useEffect(()=>(r?.onNestedDialogOpen&&o&&r.onNestedDialogOpen(v+1,w+ +!!a),r?.onNestedDialogClose&&!o&&r.onNestedDialogClose(),()=>{r?.onNestedDialogClose&&o&&r.onNestedDialogClose()}),[a,o,v,w,r]);let P=l.useMemo(()=>R(f),[R,f]),A=l.useMemo(()=>_(f),[_,f]),O=l.useMemo(()=>M(),[M]);n.useSyncedValues({openMethod:d,activeTriggerProps:P,inactiveTriggerProps:A,popupProps:O,floatingRootContext:x,nestedOpenDialogCount:v,nestedOpenDrawerCount:w})}({store:N,actionsRef:p,parentContext:b?.store.context,isDrawer:w,onOpenChange:c,triggerIdProp:x});let C=l.useMemo(()=>({store:N}),[N]);return(0,i.jsx)(eF.Provider,{value:!1,children:(0,i.jsx)(o.Provider,{value:C,children:"function"==typeof n?n({payload:S}):n})})},"Title",0,eH,"Trigger",0,eW,"Viewport",0,eV,"createHandle",0,function(){return new e$}],387913);var eX=e.i(387913),eX=eX,eq=e.i(945060),eU=e.i(125027);function eG({...e}){return(0,i.jsx)(eX.Portal,{"data-slot":"dialog-portal",...e})}function eK({className:e,onPointerDown:t,...n}){return(0,i.jsx)(eX.Backdrop,{"data-slot":"dialog-overlay",className:(0,eq.cn)("data-open:fade-in-0 data-closed:fade-out-0 fixed inset-0 z-1000 bg-black/80 duration-200 data-closed:pointer-events-none data-closed:animate-out data-open:animate-in",e),onPointerDown:t,...n})}e.s(["Dialog",0,function({...e}){return(0,i.jsx)(eX.Root,{...e})},"DialogClose",0,function({...e}){return(0,i.jsx)(eX.Close,{"data-slot":"dialog-close",...e})},"DialogContent",0,function({className:e,children:t,showCloseButton:n=!0,closeLabel:r="Close",closeButtonClassName:l,onBackdropPointerDown:a,...o}){return(0,i.jsxs)(eG,{children:[(0,i.jsx)(eK,{onPointerDown:e=>{e.target===e.currentTarget&&a?.(e)}}),(0,i.jsxs)(eX.Popup,{"data-slot":"dialog-content",className:(0,eq.cn)("data-open:fade-in-0 data-open:zoom-in-95 data-closed:fade-out-0 data-closed:zoom-out-95 fixed top-1/2 left-1/2 z-1000 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-md bg-background p-6 text-foreground outline-none duration-200 data-closed:animate-out data-open:animate-in sm:max-w-2xl",e),...o,children:[t,n?(0,i.jsx)(eX.Close,{"aria-label":r,className:(0,eq.cn)("absolute top-4 right-4 cursor-pointer border-0 bg-transparent p-2 text-inherit leading-none",l),children:(0,i.jsx)(eU.Icon,{name:"cross",className:"h-4 w-4"})}):null]})]})},"DialogTitle",0,function({className:e,...t}){return(0,i.jsx)(eX.Title,{"data-slot":"dialog-title",className:(0,eq.cn)("font-serif text-subhead-2 leading-none",e),...t})}],991435)},938465,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(914702),i=e.i(320351),l=e.i(991435),a=e.i(272072),o=e.i(406573),s=e.i(521110),c=e.i(945060);function u({label:e,x:n,y:r,className:i,visible:l=!0}){return(0,t.jsx)("span",{"aria-hidden":"true",className:(0,c.cn)("pointer-events-none fixed z-2 hidden whitespace-nowrap px-1.5 py-1.5 text-ui-2 leading-none transition-opacity duration-300 ease-out lg:block","rounded-xs bg-btn-neutral text-black-400 shadow-sm",l?"opacity-100":"opacity-0",i),style:{left:n+12,top:r+12},children:e})}var d=e.i(460630),f=e.i(164328);let p={x:0,y:0};function m({ariaLabel:e,onClick:r,className:i,children:l,hoverLabel:a="Watch the film"}){let o=(0,d.useReducedMotion)(),s=(0,n.useRef)(null),[f,h]=(0,n.use
28State)(!1),[g,x]=(0,n.useState)(null),{isSettled:v,onPointerMove:b,reset:y}=function(){let[e,t]=(0,n.useState)(!1),r=(0,n.useRef)({x:0,y:0,t:0}),i=(0,n.useRef)(null);return{isSettled:e,onPointerMove:(0,n.useCallback)((e,n)=>{let l=performance.now(),a=r.current,o=Math.max(l-a.t,8),s=Math.hypot(e-a.x,n-a.y)/o;r.current={x:e,y:n,t:l},i.current&&clearTimeout(i.current),s>.3&&t(!1),i.current=setTimeout(()=>t(!0),300)},[]),reset:(0,n.useCallback)(()=>{i.current&&(clearTimeout(i.current),i.current=null),t(!1),r.current={x:0,y:0,t:0}},[])}}(),w=(e,t)=>{p.x=e,p.y=t,x({x:e,y:t}),b(e,t)};(0,n.useLayoutEffect)(()=>{let e=s.current;e?.matches(":hover")&&(h(!0),w(p.x,p.y))},[]),(0,n.useEffect)(()=>{if(!f)return;let e=e=>{p.x=e.clientX,p.y=e.clientY};return window.addEventListener("mousemove",e,{passive:!0}),()=>window.removeEventListener("mousemove",e)},[f]);let j=f&&(o||v);return(0,t.jsxs)("button",{ref:s,type:"button",onClick:r,"aria-label":e,onMouseEnter:()=>h(!0),onMouseMove:e=>{w(e.clientX,e.clientY)},onMouseLeave:()=>{h(!1),x(null),y()},className:(0,c.cn)(i,"max-lg:pointer-events-none lg:cursor-pointer","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/70 focus-visible:ring-inset"),children:[l,f&&g?(0,t.jsx)(u,{label:a,x:g.x,y:g.y,visible:j}):null]})}function h({media:e,priority:n=!1,opacity:r=80,className:i,onPlayClick:l,playAriaLabel:a,playHoverLabel:o="Watch the film"}){let u=(0,f.selectMedia)(e??null);if(!u)return null;let d=!!l,p=(0,c.cn)("absolute inset-0 w-full bg-background","after:pointer-events-none after:absolute after:inset-0 after:bg-linear-to-t after:from-black/50 after:to-transparent",d&&"group border-0 p-0 text-left",i),g="h-full w-full object-cover",x={opacity:r/100},v="image"===u.kind?(0,t.jsx)(s.SanityImage,{image:u.image,alt:"",className:g,style:x,priority:n,sizes:"100vw"}):(0,t.jsx)("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:n?"auto":"metadata",className:g,style:x,src:u.src});return d?(0,t.jsx)(m,{onClick:l,ariaLabel:a,hoverLabel:o,className:p,children:v}):(0,t.jsx)("div",{className:p,"aria-hidden":"true",children:v})}var g=e.i(931680),x=e.i(893880),v=e.i(618566),b=e.i(184318),y=e.i(769113),w=e.i(272754),j=e.i(125027);let N="hero-demo-form-panel theme-light hubspot-form-panel rounded-sm bg-background p-4 text-foreground w-full lg:shrink-0 lg:p-5",S="z-10 col-span-full self-end lg:pointer-events-auto lg:col-start-8 lg:col-end-[-1] lg:justify-self-end xl:col-start-9";function k({media:e,priority:n,onPlayClick:r,playAriaLabel:i,playHoverLabel:l}){let a=(0,f.selectMedia)(e??null);if(!a)return null;let o=!!r,u=(0,c.cn)("relative mx-auto mb-10 w-full max-w-175 opacity-80",o&&"border-0 bg-transparent p-0 text-left max-lg:pointer-events-none"),d="image"===a.kind?(0,t.jsx)(s.SanityImage,{image:a.image,alt:"",className:"h-auto w-full rounded-sm",priority:n,sizes:"700px"}):(0,t.jsx)("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:n?"auto":"metadata",className:"block h-auto w-full rounded-sm",src:a.src});return o?(0,t.jsx)(m,{onClick:r,ariaLabel:i,hoverLabel:l,className:u,children:d}):(0,t.jsx)("div",{className:u,"aria-hidden":"true",children:d})}function E({label:e,eyebrow:n,thumbnail:i,ariaLabel:l,onClick:a,className:o}){return(0,t.jsxs)("button",{type:"button",onClick:a,"aria-label":l,className:(0,c.cn)((0,r.buttonVariants)({variant:"neutral"}),"theme-light z-10 grid w-full min-w-0 cursor-pointer grid-cols-[2fr_1fr] items-stretch rounded-sm bg-background p-1 text-foreground",o??"col-span-full self-end lg:col-span-3 lg:col-start-8 xl:col-span-3 xl:col-start-10"),children:[(0,t.jsxs)("div",{className:"min-w-0 space-y-0.5 overflow-hidden px-3 py-3.5 text-left",children:[(0,t.jsx)("span",{className:"block text-body-3 text-greige-400",children:n}),(0,t.jsx)("p",{className:"text-pretty font-serif text-body-2 leading-[1.1]",children:e})]}),i?(0,t.jsxs)("div",{className:"grid aspect-auto min-w-0 grid-cols-1 grid-rows-1 overflow-hidden rounded-xs",children:[(0,t.jsx)(s.SanityImage,{image:i,alt:"",sizes:"200px",width:400,className:"col-[1/1] row-[1/1] h-full w-full object-cover"}),(0,t.jsxs)("svg",{className:"col-[1/1] row-[1/1] place-self-ce
28nter",width:"14",height:"19",viewBox:"0 0 14 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-labelledby":"titleID",children:[(0,t.jsx)("title",{id:"titleID",children:"Play"}),(0,t.jsx)("path",{d:"M14 9.5L0 19L-8.30516e-07 0L14 9.5Z",fill:"#FCFBFA"})]})]}):null]})}e.s(["Hero",0,function({eyebrow:e,title:r,subhead:s,body:u,cta:d,media:f,theme:p,alignment:m,video2:C,video2Thumbnail:T,video2ButtonText:R,hubspotFormId:M,hubspotPortalId:_,demoFormTitle:P,demoFormSubtitle:D,demoFormSubmitLabel:I,demoFormSuccessMessage:A,demoFormRoleLabel:O,demoFormPatientRedirectPath:L,demoFormRoleOptions:F,demoFormFields:z}){let[B,V]=(0,n.useState)(!1),H=function(){let e=(0,v.usePathname)(),[t,r]=(0,n.useState)(!1);return(0,n.useLayoutEffect)(()=>{r((0,b.readBookDemoExpandedFromDom)());let e=e=>{let t=e.detail;r(!!t?.expanded)};return window.addEventListener(b.BOOK_DEMO_EXPANDED_EVENT,e),()=>window.removeEventListener(b.BOOK_DEMO_EXPANDED_EVENT,e)},[e]),t}(),Y=(0,n.useRef)(null),W=(0,n.useRef)(null),$=(0,n.useRef)(0),X=(0,n.useCallback)(e=>{e||($.current=function(e,t=400){return e+t}(performance.now()))},[]),q=(0,y.resolveHubspotDemoFormCopy)({demoFormTitle:P,demoFormSubtitle:D,demoFormSubmitLabel:I,demoFormSuccessMessage:A,demoFormRoleLabel:O,demoFormPatientRedirectPath:L,demoFormRoleOptions:F}),U={title:q.title,subtitle:q.subtitle,submitLabel:q.submitLabel,defaultSuccessMessage:q.successMessage,roleLabel:q.roleLabel,roleOptions:q.roleOptions,patientRoleValue:q.patientRoleValue,patientRedirectPath:q.patientRedirectPath,fields:z,onExpandedChange:X,dismissBoundaryRef:W},G=(0,n.useCallback)(()=>{performance.now()<$.current||H||V(!0)},[H]);(0,n.useEffect)(()=>{let e=Y.current;if(!e)return;if(!B){e.pause(),e.currentTime=0;return}let t=()=>{e.play().catch(()=>{})};t(),e.addEventListener("canplay",t);let n=window.setTimeout(t,150);return()=>{e.removeEventListener("canplay",t),window.clearTimeout(n)}},[B]);let K="center"===m,Z=C?.asset?.url??C?.url??null,J=R??"Watch the film",Q=!!f&&!K,ee=!!M?.trim(),et=ee?null:d,en=!!(Z&&!K),er=!!(Z&&K),ei=ee&&!K&&Q,el=!!(Z&&!K),ea=Z?(0,t.jsx)(E,{label:"How Forus is accelerating access to medicine.",eyebrow:J,thumbnail:T,onClick:G,ariaLabel:J,className:(0,c.cn)("lg:hidden",ei?"w-full max-w-lg":void 0)}):null,eo=(0,t.jsxs)("div",{className:(0,c.cn)("space-y-4","center"===m&&"text-center","right"===m&&"text-right"),children:[(0,w.hasContent)(e)?(0,t.jsx)("p",{className:"text-eyebrow-1",children:(0,t.jsx)(w.InlineValue,{value:e})}):null,(0,w.hasContent)(r)?(0,t.jsx)("h1",{className:"wrap-break-word text-balance font-serif text-5xl tracking-tight md:text-headline-1",children:(0,t.jsx)(w.InlineValue,{value:r})}):null,(0,w.hasContent)(s)?(0,t.jsx)(o.RichText,{className:"font-serif text-subhead-1",value:s}):null,(0,t.jsx)(o.RichText,{className:(0,c.cn)("mt-3 text-pretty text-body-2 leading-[1.1] md:mt-8 md:text-body-1",K?"text-muted-foreground lg:max-w-[50%]":"lg:max-w-[80%]"),value:u}),et?.length?(0,t.jsx)(i.CtaList,{items:et,className:K?"mt-8 justify-center":"mt-6.5 md:mt-12"}):null,ee&&K?(0,t.jsx)("div",{id:"book-demo",className:(0,c.cn)(N,"mx-auto mt-8 lg:mt-10"),children:(0,t.jsx)(a.HubspotExpandableDemoForm,{formId:M??"",portalId:_,...U})}):null,er?(0,t.jsx)("div",{className:"mx-auto mt-4 w-full max-w-md",children:ea}):null]});return(0,t.jsxs)(x.Section,{ref:W,className:(0,c.cn)("-mt-(--nav-height) pt-[calc(var(--nav-height)+2.5rem)] pb-5 md:pb-16",K?"grid overflow-hidden text-center":ei?(0,c.cn)("hero-demo-form-section flex w-full flex-col justify-end overflow-visible",H&&"hero-demo-form-section--expanded","min-h-[min(100svh,calc(100vw*5/3))] md:min-h-[min(100svh,calc(100vw*5/4))] lg:min-h-[min(100svh,calc(100vw*9/16))]","h-auto"):(0,c.cn)("flex items-end overflow-hidden lg:min-h-120"),Q&&!ei&&"aspect-3/5 max-h-dvh w-full md:aspect-4/5 lg:aspect-video"),theme:p,padding:"flush-block",children:[K?(0,t.jsx)(k,{media:f,priority:!0,onPlayClick:Z?G:void 0,playAriaLabel:J,playHoverLabel:J}):(0,t.jsx)(h,{media:f,priority:!0,className:"z-0 lg:pointer-events-auto",onPlayClick:el?G:void 0,playAriaLabel:J,playHoverLabel:J}
28),(0,t.jsxs)(g.PageGrid,{className:(0,c.cn)("relative w-full max-w-9xl bg-transparent px-4 lg:px-6",(ee||ei)&&"hero-demo-form-grid",ei?"grid min-h-0 w-full flex-1 items-end gap-y-6":ee?"gap-y-8 lg:gap-y-10":"gap-y-12",!K&&!ei&&"items-end",el&&"lg:pointer-events-none"),children:[ei&&en?(0,t.jsx)("div",{className:"relative z-10 col-span-full self-end lg:pointer-events-auto lg:col-span-6 lg:row-start-2 lg:max-w-xl xl:col-span-5",children:(0,t.jsx)("div",{className:(0,c.cn)("mb-6 w-full lg:absolute lg:bottom-full lg:left-0 lg:mb-6","right"===m&&"text-right"),children:eo})}):(0,t.jsx)("div",{className:(0,c.cn)("relative z-10 col-span-full",K?"lg:col-span-12":"lg:col-span-6 xl:col-span-5",ei&&"lg:row-start-1","center"===m&&"text-center","right"===m&&"text-right",el&&"lg:pointer-events-auto"),children:eo}),ei?(0,t.jsx)("div",{id:"book-demo",className:(0,c.cn)(N,S,"min-h-0 scroll-mt-[calc(var(--nav-height)+1rem)] lg:row-start-2"),children:(0,t.jsx)(a.HubspotExpandableDemoForm,{formId:M??"",portalId:_,layout:"hero",...U})}):null,ei&&en?(0,t.jsx)("div",{className:"relative z-10 col-span-full self-end lg:pointer-events-auto",children:ea}):null,ei||!ee||K?null:(0,t.jsx)("div",{id:"book-demo",className:(0,c.cn)(N,S),children:(0,t.jsx)(a.HubspotExpandableDemoForm,{formId:M??"",portalId:_,...U})}),!ei&&ee&&!K&&en?(0,t.jsx)("div",{className:"relative z-10 col-span-full self-end lg:pointer-events-auto",children:ea}):null,ei||ee||!en?null:(0,t.jsx)("div",{className:"relative z-10 col-span-full lg:pointer-events-auto lg:col-span-3 lg:col-start-8 xl:col-span-3 xl:col-start-10",children:ea})]}),Z?(0,t.jsx)(l.Dialog,{open:B,onOpenChange:V,children:(0,t.jsxs)(l.DialogContent,{className:"translate-none pointer-events-none top-0 left-0 flex h-dvh w-dvw max-w-none items-center justify-center border-0 bg-transparent p-0! text-white shadow-none outline-none sm:max-w-none",showCloseButton:!1,onBackdropPointerDown:()=>V(!1),children:[(0,t.jsx)(l.DialogTitle,{className:"sr-only",children:J}),(0,t.jsx)("div",{className:"pointer-events-auto flex h-full w-full items-center justify-center p-6 md:p-10",onPointerDown:e=>{e.target===e.currentTarget&&V(!1)},children:(0,t.jsxs)("div",{className:"relative flex max-h-[calc(100dvh-3rem)] w-full max-w-[calc(100vw-3rem)] items-center justify-center md:max-h-[calc(100dvh-5rem)] md:max-w-[calc(100vw-5rem)]",onPointerDown:e=>{e.target===e.currentTarget&&V(!1)},children:[(0,t.jsx)(l.DialogClose,{className:"pointer-events-auto absolute -top-8 right-0 z-10 cursor-pointer md:-top-10",children:(0,t.jsx)(j.Icon,{name:"cross",className:"h-4 w-4 md:h-5 md:w-5"})}),(0,t.jsx)("video",{ref:Y,autoPlay:!0,playsInline:!0,controls:!0,controlsList:"nodownload",preload:"auto",className:"pointer-events-auto max-h-[calc(100dvh-3rem)] max-w-full rounded-lg object-contain md:max-h-[calc(100dvh-5rem)]",src:Z})]})})]})}):null]})}],938465)},170393,e=>{"use strict";var t=e.i(843476),n=e.i(989970),r=e.i(883495),i=e.i(271645),l=e.i(521110),a=e.i(893880),o=e.i(945060),s=e.i(517860);function c({media:e}){return e?.videoUrl?(0,t.jsx)("video",{src:e.videoUrl,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,preload:"metadata",className:"h-full w-full object-cover","aria-label":e.alt??void 0}):e?.image?(0,t.jsx)(l.SanityImage,{image:e.image,alt:e.alt??"",sizes:"100vw",className:"h-full w-full object-cover",preload:!0}):(0,t.jsx)("div",{className:"h-full w-full bg-muted"})}n.default.registerPlugin(r.ScrollTrigger),e.s(["ImageExpand",0,function({sectionId:e,theme:r,media:l,initialWidth:u,initialInset:d,initialRadius:f,scrollMultiplier:p,nextTheme:m}){let h=(0,i.useRef)(null),g=(0,i.useRef)(null),x=(0,i.useRef)(null),v=(0,i.useRef)(null),b=(100-(u??90))/2,y=d?.y??4,w=f??1.5,j=(0,s.useDraftMode)();return(0,i.useEffect)(()=>{if(j||!h.current||!g.current||!x.current)return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return void n.default.set(g.current,{left:"0%",right:"0%",clearProps:"clipPath"});let e=`inset(${y}% 0% ${y+12}% 0% round ${w}rem)`,t=n.default.context(()=>{n.default.set(x.current,{transformOrigin:"top center"});let t=n.default.timeline({scrollTrigger:{trigger:h.current,start:"top top",end:"bottom bottom",scrub:1.5,invalidateOnRefresh:!0}});t.fromTo(g.current,{left:`${b}%`,right:`${b}%`,clipPath:e},{left:"0%",right:"0%",clipPath:"inset(0% 0% 0% 0% round 0rem)",ease:"none"},0),t.fromTo(x.current,{scale:1.08},{scale:1,ease:"none"},0);let r=h.current.previousElementSibling,i=r?getComputedStyle(r).backgroundColor:null;if(v.current){let e=getComputedStyle(v.current).backgroundColor,n=getComputedStyle(h.current).backgroundColor;t.fromTo(h.current,{backgroundColor:n},{backgroundColor:e,ease:"none"},0),r&&i&&t.fromTo(r,{backgroundColor:i},{backgroundColor:e,ease:"none"},0)}},h);return()=>{try{t.revert()}catch{}}},[]),(0,t.jsxs)("div",{ref:h,id:e??void 0,style:{height:`${100+(p??1.5)*100}vh`},className:(0,o.cn)("bg-background",r&&`theme-${r}`),children:[m&&(0,t.jsx)("span",{ref:v,"aria-hidden":"true",className:(0,o.cn)("pointer-events-none absolute bg-background opacity-0",`theme-${m}`)}),(0,t.jsx)(a.Section,{id:e,theme:r,className:(0,o.cn)("sticky top-0 h-[80vh] overflow-hidden bg-transparent xl:h-screen",r&&`theme-${r}`),children:(0,t.jsx)("div",{ref:g,className:"absolute top-0 bottom-0",style:{left:`${b}%`,right:`${b}%`},children:(0,t.jsx)("div",{ref:x,className:"absolute inset-0 top-0",children:(0,t.jsx)(c,{media:l})})})})]})}])},145385,e=>{"use strict";var t=e.i(843476),n=e.i(989970),r=e.i(883495),i=e.i(271645),l=e.i(512471),a=e.i(406573),o=e.i(893880),s=e.i(272754);n.default.registerPlugin(r.ScrollTrigger);let c=[{positionClass:"left-[-55px] md:left-[-90px] lg:left-auto lg:right-[calc(50%_+_23.5rem)]",widthClass:"w-[100px] md:w-[180px] lg:w-[280px]",to
28p:"50%",rotation:-6,fromY:-.7,toY:.7,zFront:!1,hiddenBelow:null},{positionClass:"right-[-55px] md:right-[-90px] lg:right-auto lg:left-[calc(50%_+_21rem_+_40px)]",widthClass:"w-[100px] md:w-[200px] lg:w-[310px]",top:"50%",rotation:7,fromY:.8,toY:-.8,zFront:!0,hiddenBelow:null},{positionClass:"lg:right-[calc(50%_+_21rem_-_50px)]",widthClass:"lg:w-[260px]",top:"50%",rotation:-4,fromY:-.6,toY:.6,zFront:!0,hiddenBelow:"lg"},{positionClass:"lg:left-[calc(50%_+_21rem_-_50px)]",widthClass:"lg:w-[295px]",top:"50%",rotation:5,fromY:.7,toY:-.7,zFront:!1,hiddenBelow:"lg"}];e.s(["ImageScroll",0,function({sectionId:e,theme:r,eyebrow:u,title:d,body:f,images:p,semanticLevel:m="h2"}){let h=(0,i.useRef)(null),g=(0,i.useRef)([]),x=p?.filter(e=>e.image)??[];return((0,i.useEffect)(()=>{let e=g.current.filter(Boolean),t=h.current;if(!t||!e.length||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;e.forEach((e,t)=>{let r=c[t%c.length];n.default.set(e,{y:r.fromY*window.innerHeight,rotation:r.rotation})});let r=e.map(e=>n.default.quickTo(e,"y",{duration:.9,ease:"power3.out"})),i=()=>{let i=t.getBoundingClientRect(),l=window.innerHeight,a=n.default.utils.clamp(0,1,1-i.bottom/(l+i.height));e.forEach((e,t)=>{let i=c[t%c.length];r[t](n.default.utils.interpolate(i.fromY*l,i.toY*l,a))})};return n.default.ticker.add(i),()=>{n.default.ticker.remove(i),e.forEach(e=>{n.default.set(e,{clearProps:"transform"})})}},[]),(0,s.hasContent)(d)||u||p?.length)?(0,t.jsx)(o.Section,{id:e,theme:r,className:"py-0",children:(0,t.jsxs)("div",{ref:h,className:"relative isolate flex min-h-dvh items-center justify-center overflow-hidden lg:min-h-[80vh]",children:[(0,t.jsxs)("div",{className:"pointer-events-none relative z-10 max-w-2xl px-8 text-center",children:[u?(0,t.jsx)("p",{className:"mb-6 text-body-3 text-muted-foreground",children:u}):null,(0,s.hasContent)(d)?(0,t.jsx)(m,{className:"max-w-2xl text-balance font-serif text-headline-2",children:(0,t.jsx)(s.InlineValue,{value:d})}):null,(0,t.jsx)(a.RichText,{className:"mt-6 max-w-xl text-balance font-serif text-black-200 text-headline-3 lg:text-headline-2",value:f})]}),x.slice(0,c.length).map((e,n)=>{if(!e.image)return null;let r=c[n];return(0,t.jsx)("div",{ref:e=>{g.current[n]=e},className:`absolute overflow-hidden rounded-lg ${"lg"===r.hiddenBelow?"hidden lg:block":""} ${r.positionClass} ${r.widthClass} ${r.zFront?"z-20":"z-0"}`,style:{top:r.top},children:(0,t.jsx)(l.Image,{media:e.image,ratio:"1-1",sizes:"(max-width: 1024px) 40vw, 328px",className:"[&_img]:object-cover [&_img]:mix-blend-lighten"})},n)})]})}):null}])},736912,e=>{"use strict";var t=e.i(843476),n=e.i(130013);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e,t){if(e.length!==t.length)throw Error("vectors must be same length");return e.map(function(e,n){return e+t[n]})}function l(e){return Math.max.apply(Math,e.map(Math.abs))}function a(e){return Object.freeze(e),Object.values(e).forEach(function(e){null===e||"object"!=typeof e||Object.isFrozen(e)||a(e)}),e}e.i(247167);var o=[1,18,"u">typeof window&&window.innerHeight||800],s=[-1,-1,-1],c=a({preventWheelAction:!0,reverseSign:[!0,!0,!1]});function u(){return{isStarted:!1,isStartPublished:!1,isMomentum:!1,startTime:0,lastAbsDelta:1/0,axisMovement:[0,0,0],axisVelocity:[0,0,0],accelerationFactors:[],scrollPoints:[],scrollPointsToMerge:[],willEndTimeout:400}}let d=function(e){void 0===e&&(e={});var t,n,d,f,p,m=function(){var e={};function t(t,n){e[t]=(e[t]||[]).filter(function(e){return e!==n})}return a({on:function(n,r){return e[n]=(e[n]||[]).concat(r),function(){return t(n,r)}},off:t,dispatch:function(t,n){t in e&&e[t].forEach(function(e){return e(n)})}})}(),h=m.on,g=m.off,x=m.dispatch,v=c,b=u(),y=!1,w=function(e){Array.isArray(e)?e.forEach(function(e){return k(e)}):k(e)},j=function(e){return(void 0===e&&(e={}),Object.values(e).some(function(e){return null==e}))?v:v=a(r({},c,v,e))},N=function(e){var t=r({event:f,isStart:!1,isEnding:!1,isMomentumCancel:!1,isMomentum:b.isMomentum,axisDelta:[0,0,0],axisVelocity:b.axisVelocity,axisMovement:b.axisMovement,get axisMovementProjection(){return i(t.axisMovement,t.axisVelocity.map(function(e){var t;return void 0===t&&(t=.996),e*t/(1-t)}))}},e);x("wheel",r({},t,{previous:p})),p=t},S=function(e,t){var n=v.preventWheelAction,r=t[0],i=t[1],l=t[2];if("boolean"==typeof n)return n;switch(n){case"x":return Math.abs(r)>=e;case"y":return Math.abs(i)>=e;case"z":return Math.abs(l)>=e;default:return!1}},k=function(e){var t,n,a,c,u=(c=function(e,t){if(!t)return e;var n=!0===t?s:t.map(function(e){return e?-1:1});return r({},e,{axisDelta:e.axisDelta.map(function(e,t){return e*n[t]})})}((t=e.deltaX*o[e.deltaMode],n=e.deltaY*o[e.deltaMode],a=(e.deltaZ||0)*o[e.deltaMode],{timeStamp:e.timeStamp,axisDelta:[t,n,a]}),v.reverseSign),r({},c,{axisDelta:c.axisDelta.map(function(e){return Math.min(Math.max(-700,e),700)})})),d=u.axisDelta,p=u.timeStamp,m=l(d);if(e.preventDefault&&S(m,d)&&e.preventDefault(),b.isStarted?b.isMomentum&&m>Math.max(2,2*b.lastAbsDelta)&&(A(!0),D()):D(),0===m&&Object.is&&Object.is(e.deltaX,-0)){y=!0;return}f=e,b.axisMovement=i(b.axisMovement,d),b.lastAbsDelta=m,b.scrollPointsToMerge.push({axisDelta:d,timeStamp:p}),E(),N({axisDelta:d,isStart:!b.isStartPublished}),b.isStartPublished=!0,I()},E=function(){if(2===b.scrollPointsToMerge.length){var e;b.scrollPoints.unshift({axisDeltaSum:b.scrollPointsToMerge.map(function(e){return e.axisDelta}).reduce(i),timeStamp:(e=b.scrollPointsToMerge.map(function(e){return e.timeStamp})).reduce(function(e,t){return e+t})/e.length}),T(),b.scrollPointsToMerge.length=0,b.scrollPoints.length=1,b.isMomentum||_()}else b.isStartPublished||C()},C=function(){var e;b.axisVelocity=(e=b.scrollPointsToMerge)[e.length-1].axisDelta.map(function(e){return e/b.willEndTimeout})},T=function(){var e=b.scrollPoints,t=e[0],n=e[1];if(n&&t){var r=t.timeStamp-n.timeStamp;if(r<=0)return;var i=t.axisDeltaSum.map(function(e){return e/r}
28),l=i.map(function(e,t){return e/(b.axisVelocity[t]||1)});b.axisVelocity=i,b.accelerationFactors.push(l),R(r)}},R=function(e){var t=10*Math.ceil(e/10)*1.2;b.isMomentum||(t=Math.max(100,2*t)),b.willEndTimeout=Math.min(1e3,Math.round(t))},M=function(e){return 0===e||e<=.96&&e>=.6},_=function(){if(b.accelerationFactors.length>=5){if(y&&(y=!1,l(b.axisVelocity)>=.2))return void P();var e=b.accelerationFactors.slice(-5);e.every(function(e){var t=!!e.reduce(function(e,t){return e&&e<1&&e===t?1:0}),n=e.filter(M).length===e.length;return t||n})&&P(),b.accelerationFactors=e}},P=function(){b.isMomentum=!0},D=function(){(b=u()).isStarted=!0,b.startTime=Date.now(),p=void 0,y=!1},I=function(){clearTimeout(t),t=setTimeout(A,b.willEndTimeout)},A=function(e){void 0===e&&(e=!1),b.isStarted&&(b.isMomentum&&e?N({isEnding:!0,isMomentumCancel:!0}):N({isEnding:!0}),b.isMomentum=!1,b.isStarted=!1)},O=(n=[],a({observe:function(e){return e.addEventListener("wheel",w,{passive:!1}),n.push(e),function(){return d(e)}},unobserve:d=function(e){e.removeEventListener("wheel",w),n=n.filter(function(t){return t!==e})},disconnect:function(){n.forEach(d)}})),L=O.observe,F=O.unobserve,z=O.disconnect;return j(e),a({on:h,off:g,observe:L,unobserve:F,disconnect:z,feedWheel:w,updateOptions:j})};var f={active:!0,breakpoints:{},wheelDraggingClass:"is-wheel-dragging",forceWheelAxis:void 0,target:void 0};function p(e){void 0===e&&(e={});var t,n=function(){};return{name:"wheelGestures",options:e,init:function(r,i){var l,a,o,s=i.mergeOptions,c=i.optionsAtMedia,u=s(f,p.globalOptions);t=c(s(u,e));var m=r.internalEngine(),h=null!=(l=t.target)?l:r.containerNode().parentNode,g=null!=(a=t.forceWheelAxis)?a:m.options.axis,x=d({preventWheelAction:g,reverseSign:[!0,!0,!1]});function v(){N=("x"===g?m.containerRect.width:m.containerRect.height)/2}var b=x.observe(h),y=x.on("wheel",function(e){var r=e.axisDelta,i=r[0],l=r[1],a="x"===g?i:l,s="x"===g?l:i,c=e.isMomentum&&e.previous&&!e.previous.isMomentum,u=e.isEnding&&!e.isMomentum||c;!(Math.abs(a)>Math.abs(s))||w||e.isMomentum||S||function(e){try{o=new MouseEvent("mousedown",e.event),R(o)}catch(e){return n()}w=!0,j=0,document.documentElement.addEventListener("mousemove",C,!0),document.documentElement.addEventListener("mouseup",C,!0),document.documentElement.addEventListener("mousedown",C,!0),t.wheelDraggingClass&&h.classList.add(t.wheelDraggingClass)}(e),S&&e.isEnding&&(S=!1),w&&!function(e){var t=M(e),n=t.isAtBoundary,r=t.primaryAxisDelta;if(n&&!e.isMomentum){if((j+=Math.abs(r))>N)return S=!0,k(e),!0}else j=0;return!1}(e)&&(u?k(e):R(T("mousemove",e)))}),w=!1,j=0,N=0,S=!1;function k(e){w=!1,R(T("mouseup",e)),E(),t.wheelDraggingClass&&h.classList.remove(t.wheelDraggingClass)}function E(){document.documentElement.removeEventListener("mousemove",C,!0),document.documentElement.removeEventListener("mouseup",C,!0),document.documentElement.removeEventListener("mousedown",C,!0)}function C(e){w&&e.isTrusted&&e.stopImmediatePropagation()}function T(e,t){if(g===m.options.axis){var n,r,i=t.axisMovement;n=i[0],r=i[1]}else{var l=t.axisMovement;r=l[0],n=l[1]}if(M(t).isAtBoundary){var a=Math.min(j/N,1),s=j*(n>0?-1:1)*(.25+.5*a);n+=s,r+=s}if(!m.options.skipSnaps&&!m.options.dragFree){var c=m.containerRect.width,u=m.containerRect.height;n=n<0?Math.max(n,-c):Math.min(n,c),r=r<0?Math.max(r,-u):Math.min(r,u)}return new MouseEvent(e,{clientX:o.clientX+n,clientY:o.clientY+r,screenX:o.screenX+n,screenY:o.screenY+r,movementX:n,movementY:r,button:0,bubbles:!0,cancelable:!0,composed:!0})}function R(e){r.containerNode().dispatchEvent(e)}function M(e){var t=e.axisDelta,n=t[0],i=t[1],l=r.scrollProgress(),a="x"===g?n:i;return{isAtBoundary:a<0&&!(l<1)||a>0&&!(l>0),primaryAxisDelta:a}}v(),r.on("resize",v),n=function(){b(),y(),r.off("resize",v),E()}},destroy:function(){return n()}}}p.globalOptions=void 0;var m=e.i(271645),h=e.i(914702),g=e.i(125027),x=e.i(945060);let v=(0,m.createContext)(null);function b(){let e=(0,m.useContext)(v);if(!e)throw Error("useCarousel must be used within a <Carousel />");return e}e.s(["Carousel",0,function({orientation:e="horizontal",opts:r,setApi:i,className:l,children:a,...o}){let[s,c]=(0,n.default)({...r,axis:"horizontal"===e?"x":"y"},[p()]),[u,d]=(0,m.useState)(!1),[f,h]=(0,m.useState)(!1),[g,b]=(0,m.useState)(0),y=(0,m.useCallback)(e=>{e&&(d(e.canScrollPrev()),h(e.canScrollNext()),b(e.selectedScrollSnap()))},[]),w=(0,m.useCallback)(()=>{c?.scrollPrev()},[c]),j=(0,m.useCallback)(()=>{c?.scrollNext()},[c]),N=(0,m.useCallback)(e=>{"ArrowLeft"===e.key?(e.preventDefault(),w()):"ArrowRight"===e.key&&(e.preventDefault(),j())},[w,j]);return(0,m.useEffect)(()=>{c&&i&&i(c)},[c,i]),(0,m.useEffect)(()=>
28{if(c)return y(c),c.on("reInit",y),c.on("select",y),()=>{c?.off("select",y)}},[c,y]),(0,t.jsx)(v.Provider,{value:{carouselRef:s,api:c,opts:r,orientation:e||(r?.axis==="y"?"vertical":"horizontal"),scrollPrev:w,scrollNext:j,canScrollPrev:u,canScrollNext:f,selectedIndex:g},children:(0,t.jsx)("div",{onKeyDownCapture:N,className:(0,x.cn)("relative",l),role:"region","aria-roledescription":"carousel","data-slot":"carousel",...o,children:a})})},"CarouselContent",0,function({className:e,viewportClassName:n,...r}){let{carouselRef:i,orientation:l}=b();return(0,t.jsx)("div",{ref:i,className:(0,x.cn)("overflow-hidden",n),"data-slot":"carousel-content",children:(0,t.jsx)("div",{className:(0,x.cn)("flex","horizontal"===l?"-ml-4":"-mt-4 flex-col",e),...r})})},"CarouselItem",0,function({className:e,index:n,...r}){let{orientation:i,selectedIndex:l}=b(),a=void 0===n?void 0:n===l;return(0,t.jsx)("div",{role:"group","aria-roledescription":"slide","data-slot":"carousel-item","data-active":void 0===a?void 0:a?"true":"false","aria-current":a?"true":void 0,className:(0,x.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===i?"3xl:pl-9 pl-4 lg:pl-6":"pt-6",e),...r})},"CarouselNext",0,function({className:e,variant:n="secondary",shape:r="control",...i}){let{orientation:l,scrollNext:a,canScrollNext:o}=b();return(0,t.jsx)(h.Button,{"data-slot":"carousel-next",variant:n,shape:r,className:(0,x.cn)("absolute touch-manipulation rounded-full","horizontal"===l?"top-1/2 -right-12 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!o,onClick:a,ariaLabel:"Next slide",...i,children:(0,t.jsx)(g.Icon,{name:"chevronRight"})})},"CarouselPrevious",0,function({className:e,variant:n="secondary",shape:r="control",...i}){let{orientation:l,scrollPrev:a,canScrollPrev:o}=b();return(0,t.jsx)(h.Button,{"data-slot":"carousel-previous",variant:n,shape:r,className:(0,x.cn)("absolute touch-manipulation rounded-full","horizontal"===l?"top-1/2 -left-12 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!o,onClick:a,ariaLabel:"Previous slide",...i,children:(0,t.jsx)(g.Icon,{name:"chevronLeft"})})},"CarouselProgress",0,function({className:e,...n}){let{api:r,selectedIndex:i}=b(),[l,a]=(0,m.useState)([]),o=(0,m.useCallback)(e=>{e&&a(e.scrollSnapList())},[]);return((0,m.useEffect)(()=>{if(r)return o(r),r.on("reInit",o),()=>{r.off("reInit",o)}},[r,o]),l.length<=1)?null:(0,t.jsx)("div",{"data-slot":"carousel-dots",className:(0,x.cn)("flex items-center justify-center",e),...n,children:l.map((e,n)=>{let l=n===i;return(0,t.jsx)("button",{type:"button",onClick:()=>r?.scrollTo(n),"aria-label":`Go to slide ${n+1}`,"aria-current":l?"true":void 0,className:(0,x.cn)("h-0.5 w-full touch-manipulation rounded-full transition-colors",l?"bg-black-500":"bg-greige-400 hover:bg-greige-500")},n)})})},"useCarousel",0,b],736912)},320199,e=>{"use strict";var t=e.i(843476),n=e.i(236726),r=e.i(32019),i=e.i(893880);let l={block:{normal:({children:e})=>(0,t.jsx)(t.Fragment,{children:e})},marks:{highlight:({children:e})=>(0,t.jsx)("span",{className:"text-foreground",children:e})}},a={block:{normal:({children:e})=>(0,t.jsx)(t.Fragment,{children:e})},marks:{highlight:({children:e})=>(0,t.jsx)(t.Fragment,{children:e})}};e.s(["TextHighlight",0,function({sectionId:e,theme:o,text:s,animate:c,scrollSpeed:u,semanticLevel:d="h2"}){return s?.length?(0,t.jsx)(i.Section,{id:e,theme:o,children:(0,t.jsx)("div",{className:"page-grid container grid-cols-1 lg:grid-cols-12",children:(0,t.jsx)("div",{className:"col-span-full lg:col-span-6 lg:col-start-4",children:(0,t.jsx)(r.TextHighlight,{animate:c,scrollSpeed:u,as:d,className:`text-center font-serif text-headline-3 leading-8 lg:text-headline-2 ${c?"text-foreground":"text-muted-foreground"}`,children:(0,t.jsx)(n.PortableText,{value:s,components:c?a:l})})})})}):null}])},481244,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(914702),i=e.i(991435),l=e.i(125027),a=e.i(512471),o=e.i(406573),s=e.i(893880),c=e.i(945060),u=e.i(272754);e.s(["VideoBlock",0,function({sectionId:e,theme:d,title:f,body:p,video:m,videoThumbnail:h,buttonText:g,centerTitleMobile:x,semanticLevel:v="h2"}
28){let[b,y]=(0,n.useState)(!1),w=(0,n.useRef)(null),j=m?.asset?.url??m?.url??null,N=g??"Play video";return((0,n.useEffect)(()=>{let e=w.current;if(!e)return;if(!b){e.pause(),e.currentTime=0;return}let t=()=>{e.play().catch(()=>{})};t(),e.addEventListener("canplay",t);let n=window.setTimeout(t,150);return()=>{e.removeEventListener("canplay",t),window.clearTimeout(n)}},[b]),(0,u.hasContent)(f)||(0,u.hasContent)(p)||j)?(0,t.jsxs)(s.Section,{id:e,theme:d,reveal:!0,children:[(0,t.jsxs)("div",{className:"container grid grid-cols-1 gap-(--space-gutter) lg:grid-cols-12",children:[(0,u.hasContent)(f)||(0,u.hasContent)(p)?(0,t.jsxs)("div",{"data-reveal":!0,className:"reveal col-span-full flex flex-col justify-center gap-6 lg:col-span-5",children:[(0,u.hasContent)(f)?(0,t.jsx)(v,{className:(0,c.cn)("font-serif text-headline-2 lg:text-headline-1",x&&"max-lg:text-center"),children:(0,t.jsx)(u.InlineValue,{value:f})}):null,(0,t.jsx)(o.RichText,{className:(0,c.cn)("text-balance text-body-3 max-lg:m-auto max-lg:max-w-120 lg:max-w-160 lg:text-body-1",x&&"max-lg:text-center"),value:p})]}):null,j?(0,t.jsxs)("div",{"data-reveal":!0,className:"reveal relative col-span-full mt-15 aspect-video overflow-hidden rounded-md lg:col-span-6 lg:col-start-7 lg:mt-0",children:[h?(0,t.jsx)(a.Image,{media:h,ratio:"auto"}):null,(0,t.jsx)("button",{type:"button",onClick:()=>y(!0),"aria-label":N,className:"absolute inset-0 flex items-center justify-center",children:(0,t.jsx)("span",{className:(0,r.buttonVariants)({variant:"white"}),children:N})})]}):null]}),j?(0,t.jsx)(i.Dialog,{open:b,onOpenChange:y,children:(0,t.jsxs)(i.DialogContent,{className:"translate-none pointer-events-none top-0 left-0 flex h-dvh w-dvw max-w-none items-center justify-center border-0 bg-transparent p-0! text-white shadow-none outline-none sm:max-w-none",showCloseButton:!1,onBackdropPointerDown:()=>y(!1),children:[(0,t.jsx)(i.DialogTitle,{className:"sr-only",children:N}),(0,t.jsx)("div",{className:"pointer-events-auto flex h-full w-full items-center justify-center p-6 md:p-10",onPointerDown:e=>{e.target===e.currentTarget&&y(!1)},children:(0,t.jsxs)("div",{className:"relative flex max-h-[calc(100dvh-3rem)] w-full max-w-[calc(100vw-3rem)] items-center justify-center md:max-h-[calc(100dvh-5rem)] md:max-w-[calc(100vw-5rem)]",onPointerDown:e=>{e.target===e.currentTarget&&y(!1)},children:[(0,t.jsx)(i.DialogClose,{className:"pointer-events-auto absolute -top-8 right-0 z-10 cursor-pointer md:-top-10",children:(0,t.jsx)(l.Icon,{name:"cross",className:"h-4 w-4 md:h-5 md:w-5"})}),(0,t.jsx)("video",{ref:w,autoPlay:!0,playsInline:!0,controls:!0,controlsList:"nodownload",preload:"auto",poster:h?.url??h?.asset?.url??void 0,className:"pointer-events-auto max-h-[calc(100dvh-3rem)] max-w-full rounded-lg object-contain md:max-h-[calc(100dvh-5rem)]",src:j})]})})]})}):null]}):null}])}]);

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.