1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,987129,e=>{"use strict";var t=e.i(843476),i=e.i(511232),r=e.i(271645),n=Object.prototype.hasOwnProperty;function s(e,t,i){for(i of e.keys())if(a(i,t))return i}function a(e,t){var i,r,o;if(e===t)return!0;if(e&&t&&(i=e.constructor)===t.constructor){if(i===Date)return e.getTime()===t.getTime();if(i===RegExp)return e.toString()===t.toString();if(i===Array){if((r=e.length)===t.length)for(;r--&&a(e[r],t[r]););return -1===r}if(i===Set){if(e.size!==t.size)return!1;for(r of e)if((o=r)&&"object"==typeof o&&!(o=s(t,o))||!t.has(o))return!1;return!0}if(i===Map){if(e.size!==t.size)return!1;for(r of e)if((o=r[0])&&"object"==typeof o&&!(o=s(t,o))||!a(r[1],t.get(o)))return!1;return!0}if(i===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(i===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return -1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return -1===r}if(!i||"object"==typeof e){for(i in r=0,e)if(n.call(e,i)&&++r&&!n.call(t,i)||!(i in t)||!a(e[i],t[i]))return!1;return Object.keys(t).length===r}}return e!=e&&t!=t}var o=function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)0>t.indexOf(r[n])&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(i[r[n]]=e[r[n]]);return i},l=e.i(167881),u=e.i(522016),c=e.i(919737);let d=()=>(0,t.jsx)(c.Carousel,{className:"2xl:container 2xl:px-14",opts:{align:"start",loop:!0},children:(0,t.jsx)(c.CarouselContent,{className:"mx-4 gap-4 lg:mx-8 xl:mx-14 2xl:mx-0",children:[void 0,void 0,void 0,void 0].map((e,i)=>(0,t.jsxs)(c.CarouselItem,{className:"basis-[95%] sm:basis-[75%] md:basis-[45%] lg:basis-[38%] xl:basis-[30%]",children:[(0,t.jsx)("div",{className:"grid aspect-video place-content-center rounded-md bg-muted"}),(0,t.jsx)("div",{className:"mt-4 h-4 w-[160px] rounded-md bg-muted"}),(0,t.jsx)("div",{className:"mt-2 h-4 w-[80px] rounded-md bg-muted"}),(0,t.jsx)("div",{className:"mt-2 h-4 w-[160px] rounded-md bg-muted"})]},i))})});var h=e.i(112334),m=e.i(95187);let p=(0,m.createServerReference)("c0d8269f7837e52e8fd5f7e76c3e106f87ba9ff054",m.callServer,void 0,m.findSourceMapURL,"getCachedCategories");function f(e){return()=>{throw Error(`\`${e}\` is not supported in Client Components.`)}}f("getFormatter"),f("getNow"),f("getTimeZone"),f("getMessages");let v=f("getLocale"),g=(f("getExtracted"),f("getTranslations"));f("setRequestLocale");var x=e.i(406190);let y=(0,m.createServerReference)("80ba2370417c82cdf24e1bda5f435f3685972bfa6b",m.callServer,void 0,m.findSourceMapURL,"getCachedEventGroups"),b=async e=>{let t=e.filter(e=>"EventRecord"===e.__typename&&"eventId"in e).map(e=>e.eventId);if(0===t.length)return[];let{data:i}=await (0,x.getEvents)({event_ids:t});return(i??[]).filter(e=>!e.is_hidden)},j=async e=>{let t=e.filter(e=>"EventGroupRecord"===e.__typename).map(e=>e.eventGroupId);return 0===t.length?[]:(await Promise.all(t.map(e=>(0,x.getEvents)({event_group_ids:[e]})))).flatMap(e=>e.data??[]).filter(e=>!e.is_hidden)},w=async({events:e})=>{let t=await y(),i=await b(e),r=await j(e);return e.map(e=>{let n="EventRecord"===e.__typename?i.find(t=>t.id===e.eventId):r.find(t=>t.event_group_id===e.eventGroupId);return n?{__typename:e.__typename,cms:t.find(t=>Number(t.eventGroupId)===e.eventGroupId),...n}:null}).filter(e=>null!==e)};var C=e.i(681990);let S=async e=>{let t=await y();return e.map(e=>({__typename:"EventRecord",cms:t.find(t=>Number(t.eventGroupId)===e.event_group_id),...e}))},T=async(e,t)=>{try{let i=new URL(e),r=i.searchParams.get("langs")?.split(",")??[t],n=Number(i.searchParams.get("limit")??12),s=i.searchParams.get("sort")??void 0,a=i.searchParams.get("category_ids")?i.searchParams.get("category_ids").split(",").map(Number):void 0,{data:o}=await (0,x.getEvents)({langs:r,limit:n,...s&&{sort:s},...a&&{category_ids:a}});if(!o?.length)return[];return S(o)}catch{return[]}},k=async({events:e,isVertical:i=!1,searchQuery:r})=>{let n,s=await v();n=e.length>0?await w({events:e}
1):r?await T(r,s):[];let a=await p(s);return i?(0,t.jsx)(C.default,{events:n,categories:a||[]}):(0,t.jsx)(h.default,{events:n,categories:a||[]})},P=({data:e,draft:i})=>(0,t.jsxs)("div",{className:"animate-in",children:[(0,t.jsxs)("div",{className:"charlie-darwin-full-width mb-2 flex items-center justify-between",children:[(0,t.jsx)("h2",{className:"font-medium",children:e.title}),e.link&&(0,t.jsx)(l.Button,{asChild:!0,variant:"link",className:"-mr-4 font-normal opacity-50",children:(0,t.jsx)(u.default,{href:e.link.url,target:e.link.openInNewTab?"_blank":void 0,children:e.link.label})})]}),(0,t.jsx)(r.Suspense,{fallback:(0,t.jsx)(d,{}),children:i?(0,t.jsx)(d,{}):(0,t.jsx)(k,{events:e.events,searchQuery:e.searchQuery})})]});var F=e.i(118959);let A=async e=>{let t=e.filter(e=>"EventRecord"===e.__typename&&"eventId"in e).map(e=>e.eventId),i=e.filter(e=>"EventGroupRecord"===e.__typename).map(e=>e.eventGroupId),[r,...n]=await Promise.all([t.length>0?(0,x.getEvents)({event_ids:t,show_hidden:!0}):Promise.resolve({data:[]}),...i.map(e=>(0,x.getEvents)({event_group_ids:[e],show_hidden:!0}))]),s=[...r.data??[],...n.flatMap(e=>e.data??[])],a=new Set;return s.filter(e=>!a.has(e.id)&&(a.add(e.id),!0)).sort((e,t)=>e.unix_time_from-t.unix_time_from)},N=async({events:e})=>{let i=await A(e);return 0===i.length?null:(0,t.jsx)("div",{className:"charlie-darwin-container",children:(0,t.jsx)("ul",{className:"space-y-2 divide-y md:divide-none",children:i.map((e,i)=>(0,t.jsx)("li",{children:(0,t.jsx)(F.default,{event:e})},i))})})};var E=e.i(416189),V=e.i(647163);let M={h1:"font-druk text-[2.5rem] font-normal uppercase leading-[0.9] [font-kerning:normal] lg:text-[3.5rem]",h2:"font-bold text-[1.43rem] leading-none lg:text-[2rem]",h3:"font-bold text-[1.09rem] leading-none lg:text-[1.5rem]"},L=({data:e})=>{let i=e.size??"h3";return(0,t.jsx)(i,{className:(0,V.default)("mb-4",M[i]),children:e.title})},R=({heading:e,subtitle:i,className:r})=>{let n=e||null;return n?.title||i?(0,t.jsxs)("div",{className:(0,V.default)("mb-6 text-center",r),children:[n?.title&&(0,t.jsx)(L,{data:n}),i&&(0,t.jsx)("p",{className:"text-pretty leading-[1.65] lg:text-[1.2rem]",children:i})]}):null},D=({data:e,draft:i})=>(0,t.jsxs)("div",{className:"animate-in",children:[(0,t.jsx)(R,{heading:e.heading,subtitle:e.subtitle,className:"charlie-darwin-full-width"}),(0,t.jsx)(r.Suspense,{fallback:(0,t.jsx)(E.default,{}),children:i?(0,t.jsx)(E.default,{}):(0,t.jsx)(N,{events:e.events})})]}),I=e=>"EventRecord"===e.__typename?(0,t.jsxs)("div",{children:[(0,t.jsxs)("p",{className:"font-mono",children:["event ID: ",e.eventId,(0,t.jsx)("br",{}),"tour ID: ",e.eventGroupId]}),(0,t.jsx)("p",{className:"font-semibold",children:e.title})]}):(0,t.jsxs)("div",{children:[(0,t.jsxs)("p",{className:"font-mono",children:["tour ID: ",e.eventGroupId]}),(0,t.jsx)("p",{className:"font-semibold",children:e.title})]}),_=({events:e})=>(0,t.jsx)(c.Carousel,{opts:{align:"start",loop:!0},children:(0,t.jsx)(c.CarouselContent,{className:"-ml-4",children:e?.map((e,i)=>(0,t.jsx)(c.CarouselItem,{className:"pl-4 sm:basis-1/2 md:basis-1/3 2xl:basis-1/4",children:(0,t.jsx)("div",{className:"relative grid aspect-[0.71/1] place-content-center bg-white",children:I(e)})},i))})});var O=e.i(234378);let B=async({events:e})=>{let i=await w({events:e});return(0,t.jsx)(O.default,{events:i})},U=({draft:e,data:i})=>(0,t.jsxs)("div",{className:"bg-muted py-24",children:[(0,t.jsxs)("div",{className:"charlie-darwin-full-width mb-2 flex items-center justify-between",children:[(0,t.jsx)("h2",{className:"font-medium",children:i.title}),i.link&&(0,t.jsx)(l.Button,{asChild:!0,variant:"link",className:"-mr-4 font-normal opacity-50",children:(0,t.jsx)(u.default,{href:i.link.url,target:i.link.openInNewTab?"_blank":void 0,children:i.link.label})})]}),(0,t.jsx)(r.Suspense,{fallback:(0,t.jsx)(_,{}),children:e?(0,t.jsx)(_,{events:i.events}):(0,t.jsx)(B,{events:i.events})})]});var z=e.i(819815),$=e.i(295777);let W=async()=>{let e=await v(),i=await p(e);return(0,t.jsx)($.default,{categories:i||[]})},G=()=>(0,t.jsx)("div",{className:"charlie-darwin-container grid w-full grid-cols-5 ga
1p-4",children:[1,2,3,4,5].map(e=>(0,t.jsx)("div",{className:"aspect-square animate-pulse rounded-lg bg-muted"},e))}),H=({data:e,draft:i})=>(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"charlie-darwin-container mb-2",children:(0,t.jsx)("h2",{className:"font-medium",children:e.title})}),(0,t.jsx)(r.Suspense,{fallback:(0,t.jsx)(G,{}),children:i?(0,t.jsx)(G,{}):(0,t.jsx)(W,{})})]}),X=({data:e})=>(0,t.jsxs)("div",{className:"mx-auto max-w-3xl px-4",children:[(0,t.jsx)("h1",{className:(0,V.default)("mb-4",M.h1),children:e.title}),(0,t.jsx)("div",{className:"prose prose-body lg:prose-2xl",children:e.paragraph&&(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:e.paragraph}})})]}),Y=({events:e})=>(0,t.jsx)(c.Carousel,{opts:{align:"start",loop:!0},children:(0,t.jsx)(c.CarouselContent,{children:void 0===e?Array.from({length:4}).map((e,i)=>(0,t.jsx)(c.CarouselItem,{className:"sm:basis-1/2 lg:basis-1/3 2xl:basis-1/4",children:(0,t.jsx)("div",{className:"grid aspect-video animate-pulse place-content-center rounded-md bg-muted"})},i)):e.map((e,i)=>(0,t.jsx)(c.CarouselItem,{className:"sm:basis-1/2 lg:basis-1/3 2xl:basis-1/4",children:(0,t.jsx)("div",{className:"grid aspect-video place-content-center rounded-md bg-muted",children:I(e)})},`event-${i}`))})}),q=(0,m.createServerReference)("4079b1561d06e6ef90e269bf74a732197f0d9760fd",m.callServer,void 0,m.findSourceMapURL,"default"),Z=({data:e,draft:i})=>(0,t.jsx)("div",{children:(0,t.jsx)(r.Suspense,{fallback:(0,t.jsx)(Y,{}),children:i?(0,t.jsx)(Y,{}):(0,t.jsx)(q,{data:e})})});var K=e.i(657688);let Q=({data:e})=>(0,t.jsxs)("div",{className:"charlie-darwin-container",children:[e.title&&(0,t.jsx)("h2",{className:"mb-2 truncate font-medium",children:e.title}),(0,t.jsx)("div",{className:(0,V.default)("grid gap-6",e.components.length>1&&"md:grid-cols-2"),children:e.components.map((i,r)=>(0,t.jsxs)("div",{className:(0,V.default)("relative w-full rounded-lg lg:max-h-[680px]",1===e.components.length?"aspect-[0.67/1] lg:aspect-video":"aspect-[0.67/1] lg:aspect-square",i.textColor?"text-black":"text-white",(e=>{if(!e)return"";switch(e){case"bg-brand-pink":return"bg-brand-pink";case"bg-brand-yellow":return"bg-brand-yellow";default:return""}})(i.backgroundColor)),children:[i.backgroundImage?.responsiveImage&&(0,t.jsx)(K.default,{fill:!0,src:i.backgroundImage.responsiveImage.src,alt:i.backgroundImage.responsiveImage.alt??"",sizes:"(min-width: 768px) 50vw, 100vw",className:"rounded-lg object-contain object-bottom",placeholder:i.backgroundImage.responsiveImage.base64?"blur":void 0,blurDataURL:i.backgroundImage.responsiveImage.base64??void 0}),(0,t.jsxs)("div",{className:"absolute flex flex-col gap-4 p-12",children:[i.title&&(0,t.jsx)("h3",{className:"max-w-sm font-druk text-[40px] uppercase leading-none",children:i.title}),i.text&&(0,t.jsx)("div",{className:(0,V.default)("prose max-w-sm list-disc text-14",i.textColor?"text-black marker:text-black":"text-white marker:text-white"),dangerouslySetInnerHTML:{__html:i.text}}),i.cta&&(0,t.jsx)("div",{children:(0,t.jsx)(l.Button,{asChild:!0,variant:"black",children:(0,t.jsx)(u.default,{href:i.cta.url,target:i.cta.openInNewTab?"_blank":"_self",children:i.cta.label})})})]})]},r))})]});var J=e.i(256340),ee=e.i(34);let et=async({data:e})=>{let i=await v(),{data:r}=await (0,x.getEvents)({text_query:"*",langs:[i],limit:10,all_fields:!0});return(0,t.jsx)("div",{className:"charlie-darwin-container",children:(0,t.jsxs)("div",{className:"grid lg:aspect-video w-full grid-cols-1 gap-6 overflow-hidden rounded-lg bg-[#F9F9F9] lg:max-h-[750px] lg:grid-cols-2 lg:place-content-center lg:justify-items-center",children:[(0,t.jsxs)("div",{className:"mx-auto mb-12 max-w-md px-4 py-8 lg:mb-0 lg:px-0",children:[(0,t.jsx)(R,{heading:e.heading,subtitle:e.subtitle}),(0,t.jsx)(J.default,{})]}),(0,t.jsx)(ee.default,{events:r||[]})]})})},ei=()=>(0,t.jsx)(c.Carousel,{opts:{align:"start",loop:!0},className:"xl:container xl:px-10",children:(0,t.jsx)(c.CarouselContent,{children:[1,2,3,4].map((e,i)=>(0,t.jsx)(c.CarouselItem,{className:"basis-[90%]",children:(0,t.jsx)("div",{className:"pl-4 lg:pl-8 xl:pl-4",children:(0,t.jsx)("div",{className:"relative z-0 grid h-[65vh] max-h-[720px] animate-pulse place-content-center rounded-md bg-muted sm:h-[50vh] lg:h-[60vh] 2xl:h-[70vh]"})})},i))})});var er=e.i(718256);let en=async({events:e})=>{let i=await w({events:e}),r=await v(),n=await p(r);return(0,t.jsx)(er.default,{events:i,categories:n||[]})},es=({data:e,draft:i})=>(0,t.jsx)("div",{className:"animate-in",children:(0,t.jsx)(r.Suspense,{fallback:(0,t.jsx)(ei,{}),children:i?(0,t.jsx)(ei,{}):(0,t.jsx)(en,{events:e.events})})}),ea=({data:e})=>(0,t.jsx)("div",{className:"charlie-darwin-container relative mb-2 h-[90vh] max-h-[1000px] min-h-[800px]",children:e.media.responsiveImage&&(0,t.jsxs)("div",{className:"clip-path relative h-full",children:[(0,t.jsx)(K.default,{fill:!0,src:e.media.responsiveImage.src,alt:e.media.responsiveImage.alt??"",sizes:"100vw",className:"rounded-lg object-cover",style:{objectPosition:(0,V.getPositionFromFocalPoint)(e.media.focalPoint)},placeholder:e.media.responsiveImage.base64?"blur":void 0,blurDataURL:e.media.responsiveImage.base64??void 0}),(0,t.jsxs)("div",{className:"absolute mx-4 flex h-full flex-col justify-center md:mx-8 xl:mx-20",children:[e.kicker&&(0,t.jsx)("p",{className:"mb-14 max-w-md text-background opacity-75",style:{color:`${e.textColor?.hex}`},children:e.kicker}),(0,t.jsx)("h2",{className:"max-w-xl font-druk text-[52px] uppercase leading-none text-background lg:text-[72px]",style:{color:`${e.textColor?.hex}`},children:e.title}),e.description&&(0,t.jsx)("div",{className:"prose mt-7 max-w-md list-disc leading-snug text-background",style:{color:`${e.textColor?.hex}`},dangerouslySetInnerHTML:{__html:e.description}}),e.cta&&(0,t.jsx)(l.Button,{className:"mt-7 w-fit font-medium",size:"lg",asChild:!0,children:(0,t.jsx)(u.default,{href:e.cta.url,target:e.cta.openInNewTab?"_blank":void 0,children:e.cta.label})})]})]})}),eo=({data:e})=>(0,t.jsx)("div",{className:"charlie-darwin-container relative mb-2",children:e.portraitImage.responsiveImage&&e.landscapeImage.responsiveImage&&(0,t.jsxs)("div",{className:"clip-path relative h-[54vh] max-h-[600px] min-h-[480px] sm:h-[90vh] sm:max-h-[1000px] sm:min-h-[800px]",children:[(0,t.jsx)("div",{className:"relative h-[54vh] max-h-[600px] min-h-[480px] sm:hidden",children:(0,t.jsx)(K.default,{fill:!0,src:e.portraitImage.responsiveImage.src,alt:e.portraitImage.responsiveImage.alt??"",sizes:"100vw",className:"rounded-lg object-cover",style:{objectPosition:(0,V.getPositionFromFocalPoint)(e.portraitImage.focalPoint)},placeholder:e.portraitImage.responsiveImage.base64?"blur":void 0,blurDataURL:e.portraitImage.responsiveImage.base64??void 0})}),(0,t.jsx)("div",{className:"relative hidden h-[90vh] max-h-[1000px] min-h-[800px] sm:block",children:(0,t.jsx)(K.default,{fill:!0,src:e.landscapeImage.responsiveImage.src,alt:e.landscapeImage.responsiveImage.alt??"",sizes:"100vw",className:"rounded-lg object-cover",style:{objectPosition:(0,V.getPositionFromFocalPoint)(e.landscapeImage.focalPoint)},placeholder:e.landscapeImage.responsiveImage.base64?"blur":void 0,blurDataURL:e.landscapeImage.responsiveImage.base64??void 0})}),(0,t.jsxs)("div",{className:"absolute inset-0 z-10 mx-4 flex h-full flex-col justify-center md:mx-8 xl:mx-20",children:[e.kicker&&(0,t.jsx)("p",{className:"mb-14 max-w-md text-background opacity-75",style:{color:`${e.textColor?.hex}`},children:e.kicker}),(0,t.jsx)("h2",{className:"max-w-xl font-druk text-[52px] uppercase leading-none text-background lg:text-[72px]",style:{color:`${e.textColor?.hex}`},children:e.title}),e.description&&(0,t.jsx)("div",{className:"prose mt-7 max-w-md list-disc leading-snug text-background",style:{color:`${e.textColor?.hex}`},dangerouslySetInnerHTML:{__html:e.description}}),e.cta&&(0,t.jsx)(l.Button,{className:"mt-7 w-fit font-medium",size:"lg",asChild:!0,children:(0,t.jsx)(u.default,{href:e.cta.url,target:e.cta.openInNewTab?"_blank":void 0,children:e.cta.label})})]})]})});var el=e.i(130233),eu=e.i(718400);let ec=async({data:e})=>{let{data:i}=await (0,eu.getUser)();if(!i?.company?.vat_no)return(0,t.jsx)("div",{style:{backgroundColor:V.BRAND_COLORS[e.backgroundColor]},children:(0,t.jsxs)("div",{className:"charlie-darwin-container grid gap-x-6 gap-y-12 py-16 md:grid-cols-2",children:[(0,t.jsxs)("div",{className:"max-w-md
1self-center",children:[(0,t.jsx)("h2",{className:"mb-6 font-druk text-[40px] uppercase leading-none",children:e.title}),e.description&&(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:e.description},className:"prose mb-6 list-disc leading-snug"}),e.cta&&(0,t.jsx)(l.Button,{asChild:!0,children:(0,t.jsx)(u.default,{href:e.cta.url,target:e.cta.openInNewTab?"_blank":void 0,children:e.cta.label})})]}),(0,t.jsx)("div",{className:"rounded-xl border bg-white p-9 shadow-xl",children:(0,t.jsx)(el.default,{})})]})})};var ed=e.i(101539),eh=e.i(655183);let em=async()=>{let e=await g("cancel-insurance-cancellation");return(0,t.jsx)("div",{className:"charlie-darwin-container py-12 lg:py-20",children:(0,t.jsx)("div",{className:"mx-auto w-full max-w-xl",children:(0,t.jsxs)("div",{className:"rounded-lg bg-[#F9F9F9] px-6 py-12 lg:px-12",children:[(0,t.jsx)("h1",{className:"mb-4 text-center font-druk text-[32px] uppercase leading-none lg:text-[40px]",children:e("title")}),(0,t.jsx)("p",{className:"mb-8 text-pretty text-center text-14 text-muted-foreground",children:e("subtitle")}),(0,t.jsx)(eh.default,{})]})})})};var ep=e.i(572226);let ef=({data:e})=>{let i=V.BRAND_COLORS[e.backgroundColor]??"#000000",r=V.BRAND_TEXT_COLORS[e.backgroundColor]??"#ffffff";return(0,t.jsx)("div",{className:"mx-auto max-w-3xl px-4",children:(0,t.jsxs)(u.default,{href:e.url,target:e.openInNewTab?"_blank":void 0,className:"inline-flex items-center gap-4 roun
1ded-lg px-6 py-4 text-lg font-bold transition-opacity hover:opacity-90",style:{backgroundColor:i,color:r},children:[(0,t.jsx)("span",{children:e.label}),(0,t.jsx)(ep.ChevronRightIcon,{className:"h-5 w-5 flex-shrink-0",stroke:"currentColor",strokeWidth:.75})]})})},ev=({data:e,draft:i})=>{let n=e.button?e.button:null;return(0,t.jsx)("div",{className:"charlie-darwin-container",children:(0,t.jsxs)("div",{className:"relative rounded-lg bg-[#F9F9F9] px-4 py-8 lg:px-8",children:[e.link&&(0,t.jsx)(l.Button,{asChild:!0,variant:"link",className:"absolute right-4 top-4 font-normal opacity-50 lg:right-8",children:(0,t.jsx)(u.default,{href:e.link.url,target:e.link.openInNewTab?"_blank":void 0,children:e.link.label})}),(0,t.jsx)(R,{heading:e.heading,subtitle:e.subtitle}),(0,t.jsx)(r.Suspense,{fallback:(0,t.jsx)(d,{}),children:i?(0,t.jsx)(d,{}):(0,t.jsx)(k,{events:e.events,isVertical:!0,searchQuery:e.searchQuery})}),n&&(0,t.jsxs)(u.default,{href:n.url,target:n.openInNewTab?"_blank":void 0,className:"mt-6 flex w-full items-center justify-center gap-4 roun
1ded-lg px-6 py-4 text-lg font-bold transition-opacity hover:opacity-90",style:{backgroundColor:V.BRAND_COLORS[n.backgroundColor]??"#000000",color:V.BRAND_TEXT_COLORS[n.backgroundColor]??"#ffffff"},children:[(0,t.jsx)("span",{children:n.label}),(0,t.jsx)(ep.ChevronRightIcon,{className:"h-5 w-5 flex-shrink-0",stroke:"currentColor",strokeWidth:.75})]})]})})},eg=({data:e})=>{let i=e.heading?e.heading:null,r=e.button?e.button:null;return(0,t.jsxs)("div",{className:"mx-auto max-w-3xl px-4",children:[i&&(0,t.jsx)(L,{data:i}),(0,t.jsx)("div",{className:"prose prose-body lg:prose-2xl",children:e.paragraph&&(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:e.paragraph}})}),r&&(0,t.jsxs)(u.default,{href:r.url,target:r.openInNewTab?"_blank":void 0,className:"mt-6 inline-flex items-center gap-4 rounded-lg px-6 py-4 text-lg font-bold transition-opacity hover:opacity-90",style:{backgroundColor:V.BRAND_COLORS[r.backgroundColor]??"#000000",color:V.BRAND_TEXT_COLORS[r.backgroundColor]??"#ffffff"},children:[(0,t.jsx)("span",{children:r.label}),(0,t.jsx)(ep.ChevronRightIcon,{className:"h-5 w-5 flex-shrink-0",stroke:"currentColor",strokeWidth:.75})]})]})},ex=({content:e,draft:i})=>(0,t.jsx)("div",{className:"mb-28 mt-8 space-y-16 lg:space-y-24",children:e?.map((e,r)=>{switch(e.__typename){case"ShowCarouselRecord":return(0,t.jsx)(P,{data:e,draft:i},r);case"EventGridBlockRecord":return(0,t.jsx)(D,{data:e,draft:i},r);case"CarouselVerticalBlockRecord":return(0,t.jsx)(ev,{data:e,draft:i},r);case"HeroCarouselRecord":return(0,t.jsx)(es,{data:e,draft:i},r);case"HighlightShowsBlockRecord":return(0,t.jsx)(U,{data:e,draft:i},r);case"WelcomeMessageRecord":return(0,t.jsx)(z.default,{data:e},r);case"CategoriesBlockRecord":return(0,t.jsx)(H,{data:e,draft:i},r);case"CarouselLocationBlockRecord":return(0,t.jsx)(Z,{data:e},r);case"ParagraphBlockRecord":return(0,t.jsx)(X,{data:e},r);case"ColumnBlockRecord":return(0,t.jsx)(Q,{data:e},r);case"EventsSpecificCitiesBlockRecord":return(0,t.jsx)(ed.default,{data:e},r);case"NewsletterBlockRecord":return(0,t.jsx)(et,{data:e},r);case"B2bContactBlockRecord":return(0,t.jsx)(ec,{data:e},r);case"HeroBlockRecord":return(0,t.jsx)(ea,{data:e},r);case"ResponsiveHeroBlockRecord":return(0,t.jsx)(eo,{data:e},r);case"CancellationInsuranceCancellationBlockRecord":return(0,t.jsx)(em,{},r);case"ButtonBlockRecord":return(0,t.jsx)(ef,{data:e},r);case"ParagraphButtonBlockRecord":return(0,t.jsx)(eg,{data:e},r);default:return null}})});var ey=e.i(577854);e.s(["default",0,({subscription:e})=>{let{data:n,status:s,error:c}=function(e){var t,n,s,l;let{enabled:u,initialData:c}=e,d=o(e,["enabled","initialData"]),[h,m]=(0,r.useState)(null),[p,f]=(0,r.useState)(null),[v,g]=(0,r.useState)(u?"connecting":"closed");return t=()=>{let e;return!1===u?(g("closed"),()=>{}):(!function(){var t,r,n,s;t=this,r=void 0,n=void 0,s=function*(){e=yield(0,i.subscribeToQuery)(Object.assign(Object.assign({},d),{onStatusChange:e=>{g(e)},onUpdate:e=>{m(null),f(e.response.data)},onChannelError:e=>{f(null),m(e)}}))},new(n||(n=Promise))(function(e,i){function a(e){try{l(s.next(e))}catch(e){i(e)}}function o(e){try{l(s.throw(e))}catch(e){i(e)}}function l(t){var i;t.done?e(t.value):((i=t.value)instanceof n?i:new n(function(e){e(i)})).then(a,o)}l((s=s.apply(t,r||[])).next())})}(),()=>{e&&e()})},n=[d],r.useEffect(t,(s=r.useRef(n),l=r.useRef(0),a(n,s.current)||(s.current=n,l.current+=1),r.useMemo(function(){return s.current},[l.current]))),{error:h,status:v,data:p||c}}(e);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"fixed bottom-6 z-50 mx-auto flex w-screen items-center justify-center",children:(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2 rounded-full border border-border/50 bg-muted/20 px-2 py-2 text-14 backdrop-blur-md",children:[(0,t.jsxs)("div",{className:"relative -mt-2.5 ml-3 mr-5",children:[(0,t.jsx)("div",{className:"absolute h-2.5 w-2.5 animate-ping rounded-full bg-destructive-foreground"}),(0,t.jsx)("div",{className:"absolute h-2.5 w-2.5 rounded-full bg-destructive-foreground"})]}),(0,t.jsx)("p",{className:"font-semibold",children:"Preview mode"}),(0,t.jsx)("p",{className:"capitalize opacity-50",children:s}),c&&(0,t.jsx)("p",{className:"text-destructive-foreground",children:c.message}),(0,t.jsx)(l.Button,{size:"icon",variant:"ghost",className:"rounded-full",asChild:!0,children:(0,t.jsx)(u.default,{href:"/api/exit-draft",children:(0,t.jsx)(ey.X,{})})})]})}),n&&(0,t.jsx)(ex,{content:n.page?.content,draft:!0})]})}],987129)},499212,e=>{"use strict";var t=e.i(843476),i=e.i(994179),r=e.i(948148);
1e.s(["default",0,({variant:e,...n})=>{let s=(0,r.useTranslations)("event");return(0,t.jsx)(i.Badge,{variant:e,className:"gap-1 truncate text-14",...n,children:(0,t.jsxs)("span",{className:"truncate",children:[s("card-few-tickets"),"!"]})})}])},130233,e=>{"use strict";var t=e.i(843476),i=e.i(167881),r=e.i(625959),n=e.i(874946),s=e.i(23750),a=e.i(307145),o=e.i(95187);let l=(0,o.createServerReference)("402ab225b0a54fd5e8101b681802bbb8a75c5a46da",o.callServer,void 0,o.findSourceMapURL,"submitInteraction");var u=e.i(50270),c=e.i(994814),d=e.i(817389),h=e.i(45723),m=e.i(948148),p=e.i(522016),f=e.i(271645),v=e.i(653145),g=e.i(846696);e.s(["default",0,()=>{let e=(0,m.useTranslations)("user-settings"),o=(0,m.useTranslations)("error"),x=u.z.object({full_name:u.z.string().min(1,{message:e("full-name-error")}),job_title:u.z.string().min(1,{message:e("job-title-error")}),company_name:u.z.string().min(1,{message:e("company-name-error")}),zip_code:u.z.string().min(1,{message:e("zip-code-error")}),email:u.z.string().email({message:e("email-error")}),phone:u.z.string().min(8,{message:e("phone-error")}),consent:u.z.boolean().optional()}).refine(e=>!0===e.consent,{message:e("marketing-consent-error"),path:["consent"]}),[y,b]=(0,f.useState)(!1),[j,w]=(0,f.useState)(!1),C=(0,v.useForm)({resolver:(0,c.zodResolver)(x),defaultValues:{full_name:"",job_title:"",company_name:"",email:"",phone:"",consent:!1}}),S=async e=>{try{delete e.consent,b(!0);let{error:t}=await l(e);if(t)throw Error(t);b(!1),w(!0)}catch(e){console.error(e),g.toast.error(o("b2b-sign-up"),{description:o("b2b-sign-up-description")})}finally{b(!1)}};return j?(0,t.jsxs)("div",{className:"grid h-full w-full place-content-center text-center animate-in",children:[(0,t.jsx)(d.CheckCircle,{className:"mx-auto mb-8 text-primary",weight:"fill",size:64}),(0,t.jsx)("h2",{className:"max-w-sm font-druk text-[40px] uppercase",children:e("b2b-success")}),(0,t.jsx)("p",{className:"max-w-sm text-muted-foreground",children:e("b2b-success-description")})]}):(0,t.jsx)(n.Form,{...C,children:(0,t.jsxs)("form",{onSubmit:C.handleSubmit(S),className:"space-y-6",children:[(0,t.jsx)(n.FormField,{control:C.control,name:"full_name",render:({field:i})=>(0,t.jsxs)(n.FormItem,{children:[(0,t.jsx)(n.FormLabel,{children:e("full-name")}),(0,t.jsx)(n.FormControl,{children:(0,t.jsx)(s.Input,{disabled:y,type:"text",placeholder:e("full-name-placeholder"),...i})}),(0,t.jsx)(n.FormMessage,{})]})}),(0,t.jsx)(n.FormField,{control:C.control,name:"job_title",render:({field:i})=>(0,t.jsxs)(n.FormItem,{children:[(0,t.jsx)(n.FormLabel,{children:e("job-title")}),(0,t.jsx)(n.FormControl,{children:(0,t.jsx)(s.Input,{disabled:y,type:"text",placeholder:e("job-title-placeholder"),...i})}),(0,t.jsx)(n.FormMessage,{})]})}),(0,t.jsx)(n.FormField,{control:C.control,name:"company_name",render:({field:i})=>(0,t.jsxs)(n.FormItem,{children:[(0,t.jsx)(n.FormLabel,{children:e("company-name")}),(0,t.jsx)(n.FormControl,{children:(0,t.jsx)(s.Input,{disabled:y,type:"text",placeholder:e("company-name-placeholder"),...i})}),(0,t.jsx)(n.FormMessage,{})]})}),(0,t.jsx)(n.FormField,{control:C.control,name:"email",render:({field:i})=>(0,t.jsxs)(n.FormItem,{children:[(0,t.jsx)(n.FormLabel,{children:e("email")}),(0,t.jsx)(n.FormControl,{children:(0,t.jsx)(s.Input,{disabled:y,type:"email",placeholder:e("email-placeholder"),...i})}),(0,t.jsx)(n.FormMessage,{})]})}),(0,t.jsx)(n.FormField,{control:C.control,name:"phone",render:({field:i})=>(0,t.jsxs)(n.FormItem,{children:[(0,t.jsx)(n.FormLabel,{children:e("phone")}),(0,t.jsx)(n.FormControl,{children:(0,t.jsx)(a.default,{disabled:y,placeholder:e("phone-placeholder"),...i})}),(0,t.jsx)(n.FormMessage,{})]})}),(0,t.jsx)(n.FormField,{control:C.control,name:"zip_code",render:({field:i})=>(0,t.jsxs)(n.FormItem,{children:[(0,t.jsx)(n.FormLabel,{children:e("zip-code")}),(0,t.jsx)(n.FormControl,{children:(0,t.jsx)(s.Input,{disabled:y,type:"text",placeholder:e("zip-code-placeholder"),...i})}),(0,t.jsx)(n.FormMessage,{})]})}),(0,t.jsx)(n.FormField,{control:C.control,name:"consent",render:({field:i})=>(0,t.jsxs)(n.FormItem,{className:"flex items-start gap-2",children:[(0,t.jsx)(n.FormControl,{children:(0,t.jsx)(r.Checkbox,{className:"mt-2.5",disabled:y,checked:i.value,onCheckedChange:i.onChange})}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)(n.FormLabel,{className:"-mt-0.5 font-normal leading-5",children:e("consent-cta-label")}),(0,t.jsx)(n.FormDescription,{className:"flex flex-col items-start gap-1.5",children:(0,t.jsx)(p.default,{href:e("marketing-consent-cta-slug"),className:"font-medium underline hover:text-primary",children:e("newsletter-cta-label")})}),(0,t.jsx)(n.FormMessage,{})]})]})}),(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsxs)(i.Button,{disabled:y,type:"submit",size:"lg",className:"gap-2",children:[y&&(0,t.jsx)(h.Spinner,{className:"animate-spin",weight:"bold",size:16}),e("b2b-cta")]})})]})})}],130233)},655183,e=>{"use strict";var t=e.i(843476),i=e.i(167881),r=e.i(874946),n=e.i(23750),s=e.i(50270),a=e.i(95187);let o=(0,a.createServerReference)("40ae7b1a3be1c095e23b01faaeb18c5f0b65ba346f",a.callServer,void 0,a.findSourceMapURL,"requestCancellationInsuranceCancellation");var l=e.i(994814),u=e.i(817389),c=e.i(45723),d=e.i(948148),h=e.i(271645),m=e.i(653145),p=e.i(846696);e.s(["default",0,()=>{let[e,a]=(0,h.useState)(!1),[f,v]=(0,h.useState)(!1),g=(0,d.useTranslations)("cancel-insurance-cancellation"),x=s.z.object({name:s.z.string().min(1,{message:g("name-error")}),email:s.z.string().min(1,{message:g("email-error")}).email({message:g("email-invalid-error")}),phone:s.z.string().min(1,{message:g("phone-error")}),order_id:s.z.string().min(1,{message:g("order-id-error")}).regex(/^\d+$/,{message:g("order-id-invalid-error")})}),y=(0,m.useForm)({resolver:(0,l.zodResolver)(x),mode:"onChange",defaultValues:{name:"",email:"",ph
1one:"",order_id:""}}),b=async e=>{try{if(a(!0),(await o(e)).error)return void p.toast.error(g("error-title"),{description:g("error-description")});v(!0),y.reset()}catch(e){console.error(e),p.toast.error(g("error-title"),{description:g("error-description")})}finally{a(!1)}},j=y.watch(),w=""!==j.name.trim()&&""!==j.email.trim()&&""!==j.phone.trim()&&""!==j.order_id.trim();return f?(0,t.jsxs)("div",{className:"grid place-content-center py-8 text-center animate-in",children:[(0,t.jsx)("div",{className:"mb-6 grid h-12 w-12 place-content-center justify-self-center rounded-full bg-primary",children:(0,t.jsx)(u.CheckCircle,{weight:"fill",size:24,className:"text-background"})}),(0,t.jsx)("p",{className:"mb-2 font-medium",children:g("success-title")}),(0,t.jsx)("p",{className:"max-w-[384px] text-14 text-muted-foreground",children:g("success-text")})]}):(0,t.jsx)(r.Form,{...y,children:(0,t.jsxs)("form",{onSubmit:y.handleSubmit(b),className:"space-y-4",children:[(0,t.jsx)(r.FormField,{control:y.control,name:"name",render:({field:e})=>(0,t.jsxs)(r.FormItem,{children:[(0,t.jsx)(r.FormLabel,{children:g("name-label")}),(0,t.jsx)(r.FormControl,{children:(0,t.jsx)(n.Input,{type:"text",autoComplete:"name",placeholder:g("name-placeholder"),...e})}),(0,t.jsx)(r.FormMessage,{})]})}),(0,t.jsx)(r.FormField,{control:y.control,name:"email",render:({field:e})=>(0,t.jsxs)(r.FormItem,{children:[(0,t.jsx)(r.FormLabel,{children:g("email-label")}),(0,t.jsx)(r.FormControl,{children:(0,t.jsx)(n.Input,{type:"email",autoComplete:"email",placeholder:g("email-placeholder"),...e})}),(0,t.jsx)(r.FormMessage,{})]})}),(0,t.jsx)(r.FormField,{control:y.control,name:"phone",render:({field:e})=>(0,t.jsxs)(r.FormItem,{children:[(0,t.jsx)(r.FormLabel,{children:g("phone-label")}),(0,t.jsx)(r.FormControl,{children:(0,t.jsx)(n.Input,{type:"tel",autoComplete:"tel",placeholder:g("phone-placeholder"),...e})}),(0,t.jsx)(r.FormMessage,{})]})}),(0,t.jsx)(r.FormField,{control:y.control,name:"order_id",render:({field:e})=>(0,t.jsxs)(r.FormItem,{children:[(0,t.jsx)(r.FormLabel,{children:g("order-id-label")}),(0,t.jsx)(r.FormControl,{children:(0,t.jsx)(n.Input,{type:"text",inputMode:"numeric",placeholder:g("order-id-placeholder"),...e})}),(0,t.jsx)(r.FormMessage,{})]})}),(0,t.jsx)("div",{className:"h-2"}),(0,t.jsxs)(i.Button,{disabled:e||!w,type:"submit",size:"lg",className:"w-full gap-2",children:[e&&(0,t.jsx)(c.Spinner,{weight:"bold",className:"animate-spin"}),g("submit")]})]})})}],655183)},112334,e=>{"use strict";var t=e.i(843476),i=e.i(23538),r=e.i(919737),n=e.i(784593);e.s(["default",0,({events:e,categories:s})=>(0,t.jsx)(r.Carousel,{className:"overflow-hidden",opts:{loop:!0,dragFree:!0,align:"start",containScroll:!1},plugins:[(0,n.WheelGesturesPlugin)()],children:(0,t.jsx)(r.CarouselContent,{className:"ml-4 lg:ml-8 xl:ml-14",children:e.map((e,n)=>(0,t.jsx)(r.CarouselItem,{className:"mr-4 basis-[95%] sm:basis-[75%] md:basis-[45%] lg:basis-[38%] xl:basis-[30%]",children:(0,t.jsx)(i.default,{event:e,type:"EventRecord"===e.__typename?"event":"eventGroup",category:s?.find(t=>t.id===e.category.id)})},n))})})])},681990,e=>{"use strict";var t=e.i(843476),i=e.i(23538);e.s(["default",0,({events:e,categories:r})=>(0,t.jsx)("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-3 lg:gap-8",children:e.map((e,n)=>(0,t.jsx)("div",{children:(0,t.jsx)(i.default,{event:e,variant:"card",type:"EventRecord"===e.__typename?"event":"eventGroup",category:r?.find(t=>t.id===e.category.id)})},n))})])},718256,e=>{"use strict";let t,i,r;var n,s,a,o=e.i(843476),l=e.i(167881),u=e.i(919737),c=e.i(128952),d=e.i(737762),h=e.i(271645),m=e.i(522016),p=e.i(88606),f=e.i(694284),v=e.i(7920),g=e.i(381681),x=e.i(948148),y=e.i(499212),b=e.i(647163),j=e.i(657688);let w=({event:e,category:t})=>{let i=(0,x.useTranslations)("event"),[r,n]=(0,h.useState)(!1),[s,a]=(0,h.useState)(!1),u="EventGroupRecord"===e.__typename,c=e.cms?.eventLogo?.responsiveImage;return(0,o.jsxs)("div",{className:"relative z-0 aspect-video max-h-[760px] min-h-[660px] md:min-h-[760px] w-full rounded-md",children:[(0,o.jsx)(j.default,{priority:!0,sizes:"(max-width: 768px) 0vw, 80vw",src:(0,b.imageOrPlaceholder)("3840x1492",e.title,u?e.event_group_info.images:e.images),alt:"image",className:"absolute hidden rounded-[5px] object-cover object-[70%_20%] md:block",fill:!0}),(0,o.jsx)(j.default,{priority:!0,sizes:"(max-width: 768px) 80vw, 0vw",src:(0,b.imageOrPlaceholder)("2250x3000",e.title,u?e.event_group_info.images:e.images),alt:"image",className:"absolute rounded-[5px] object-cover object-[70%_20%] md:hidden",fill:!0}),(0,o.jsx)("div",{className:"absolute inset-0 hidden rounded-md md:block",style:{backgroundImage:`linear-gradient(to left, transparent 50%, ${e.cms?.backgroundColor?.hex})`,opacity:.4}}),(0,o.jsx)("div",{className:"absolute inset-0 block rounded-md md:hidden",style:{backgroundImage:`linear-gradient(to bottom, transparent 40%, ${e.cms?.backgroundColor?.hex})`,opacity:.8}}),(0,o.jsxs)("div",{className:"absolute inset-0 flex flex-col rounded-md px-4 py-6 lg:px-10 lg:py-10",children:[c?(0,o.jsx)(j.default,{src:c.src,alt:c.alt??"",width:350,height:175,priority:!0,sizes:"350px",className:"mb-4 mt-auto xl:mt-0 object-contain object-left max-w-[240px] xl:max-w-[350px]",placeholder:c.base64?"blur":void 0,blurDataURL:c.base64??void 0}):(0,o.jsx)("h2",{className:"mb-4 mt-auto max-w-3xl font-druk text-[40px] uppercase leading-none sm:text-[60px] md:mt-0 lg:text-[80px]",style:{color:e?.cms?.textColor?.hex||"#FFF"},children:"EventGroupRecord"===e.__typename?e.event_group_info.title:e.title}),(0,o.jsx)("p",{className:"max-w-sm text-16 md:mt-4 md:text-22",style:{color:e?.cms?.textColor?.hex||"#FFF"},children:"EventGroupRecord"===e.__typename?e.event_group_info.sub_title:e.sub_title}),(0,o.jsx)("p",{className:"md:typography-16 typography-14 mb-4 opacity-50 md:mb-9",style:{color:e?.cms?.textColor?.hex||"#FFF",opacity:.5},children:e.speaker}),(0,o.jsxs)("div",{className:"flex flex-col-reverse gap-4 sm:flex-col",children:[(0,o.jsxs)("div",{className:"flex gap-2",children:[(0,o.jsx)(p.default,{eventGroupId:"EventGroupRecord"===e.__typename?e.event_group_id:void 0,label:i("hero-card-find-tickets"),event:e,variant:"ghost",className:(0,b.default)("h-11 w-full px-4 text-16 font-semibold transition-all duration-150 ease-in-out sm:w-auto"),onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),style:{background:e?.cms?.textColor?.hex||"#FFF",color:e?.cms?.backgroundColor?.hex||"#000",...r&&{boxShadow:"inset 0 0 10px #00000050"}}}),(0,o.jsx)(l.Button,{size:"lg",variant:"outline",className:"h-11 w-full bg-transparent px-5 text-16 font-semibold transition-all duration-150 ease-in-out sm:w-auto",asChild:!0,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),style:{borderColor:e?.cms?.textColor?.hex||"#FFF",color:e?.cms?.textColor?.hex||"#FFF",...s&&{backgroundColor:e?.cms?.textColor?.hex||"#FFF",color:e?.cms?.backgroundColor?.hex||"#000",boxShadow:"inset 0 0 10px #00000050"}},children:(0,o.jsx)(m.default,{href:"EventGroupRecord"===e.__typename?(0,b.constructEventGroupUrl)(e):(0,b.constructEventUrl)(e),children:i("hero-card-about-event")})})]}),(0,o.jsxs)("div",{className:"flex gap-2",children:[(0,o.jsx)(f.default,{style:{backgroundColor:e?.cms?.textColor?.hex?`${e?.cms?.textColor?.hex}20`:"#FFFFFF20",borderColor:e?.cms?.textColor?.hex?`${e?.cms?.textColor?.hex}40`:"#FFFFFF40",color:e?.cms?.textColor?.hex||"#FFF"},variant:"ghost",event:e,type:"EventRecord"===e.__typename?"event":"eventGroup"}),"EventRecord"===e.__typename&&(0,o.jsx)(v.default,{variant:"ghost",event:e,style:{backgroundColor:e?.cms?.textColor?.hex?`${e?.cms?.textColor?.hex}20`:"#FFFFFF20",borderColor:e?.cms?.textColor?.hex?`${e?.cms?.textColor?.hex}40`:"#FFFFFF40",color:e?.cms?.textColor?.hex||"#FFF"}}
1),"EventRecord"===e.__typename&&e.few_tickets_left&&!1===e.sold_out&&(0,o.jsx)(y.default,{variant:"ghost",style:{backgroundColor:e?.cms?.textColor?.hex?`${e?.cms?.textColor?.hex}20`:"#FFFFFF20",borderColor:e?.cms?.textColor?.hex?`${e?.cms?.textColor?.hex}40`:"#FFFFFF40",color:e?.cms?.textColor?.hex||"#FFF"}}),(0,o.jsx)(g.DynamicEventCategoryBadge,{variant:"ghost",category:t,style:{backgroundColor:e?.cms?.textColor?.hex?`${e?.cms?.textColor?.hex}20`:"#FFFFFF20",borderColor:e?.cms?.textColor?.hex?`${e?.cms?.textColor?.hex}40`:"#FFFFFF40",color:e?.cms?.textColor?.hex||"#FFF"},hexColor:e?.cms?.textColor?.hex||"#FFF"})]})]})]})]})};function C(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}let S=e=>Array.isArray(e);function T(e,t){if(!Array.isArray(t))return!1;let i=t.length;if(i!==e.length)return!1;for(let r=0;r<i;r++)if(t[r]!==e[r])return!1;return!0}function k(e){return"string"==typeof e||Array.isArray(e)}function P(e){let t=[{},{}];return null==e||e.values.forEach((e,i)=>{t[0][i]=e.get(),t[1][i]=e.getVelocity()}),t}function F(e,t,i,r){if("function"==typeof t){let[n,s]=P(r);t=t(void 0!==i?i:e.custom,n,s)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[n,s]=P(r);t=t(void 0!==i?i:e.custom,n,s)}return t}function A(e,t,i){let r=e.getProps();return F(r,t,void 0!==i?i:r.custom,e)}let N=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],E=["initial",...N],V=e=>e;function M(e){let t;return()=>(void 0===t&&(t=e()),t)}let L=M(()=>void 0!==window.ScrollTimeline);class R{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let i=0;i<this.animations.length;i++)this.animations[i][e]=t}attachTimeline(e,t){let i=this.animations.map(i=>L()&&i.attachTimeline?i.attachTimeline(e):"function"==typeof t?t(i):void 0);return()=>{i.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class D extends R{then(e,t){return Promise.all(this.animations).then(e).catch(t)}}let I=e=>1e3*e;function _(e){let t=0,i=e.next(t);for(;!i.done&&t<2e4;)t+=50,i=e.next(t);return t>=2e4?1/0:t}function O(e,t){e.timeline=t,e.onfinish=null}let B=e=>Array.isArray(e)&&"number"==typeof e[0],U,z=(i=M(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(e){return!1}return!0}),()=>{var e;return null!=(e=U)?e:i()}),$=(e,t,i)=>{let r=t-e;return 0===r?1:(i-e)/r},W=(e,t,i=10)=>{let r="",n=Math.max(Math.round(t/i),2);for(let t=0;t<n;t++)r+=e($(0,n-1,t))+", ";return`linear(${r.substring(0,r.length-2)})`},G=([e,t,i,r])=>`cubic-bezier(${e}, ${t}, ${i}, ${r})`,H={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:G([0,.65,.55,1]),circOut:G([.55,0,1,.45]),backIn:G([.31,.01,.66,-.59]),backOut:G([.33,1.53,.69,.99])};function X(e,t){return e?e[t]||e.default||e:void 0}function Y(e){return"function"==typeof e}let q=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Z=new Set(q),K=new Set(["width","height","top","left","right","bottom",...q]),Q=e=>S(e)?e[e.length-1]||0:e,J=["read","resolveKeyframes","update","preRender","render","postRender"];function ee(e,t){let i=!1,r=!0,n={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,a=J.reduce((e,t)=>(e[t]=function(e){let t=new Set,i=new Set,r=!1,n=!1,s=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1};function o(t){s.has(t)&&(l.schedule(t),e()),t(a)}let l={schedule:(e,n=!1,a=!1)=>{let o=a&&r?t:i;return n&&s.add(e),o.has(e)||o.add(e),e},cancel:e=>{i.delete(e),s.delete(e)},process:e=>{if(a=e,r){n=!0;return}r=!0,[t,i]=[i,t],t.forEach(o),t.clear(),r=!1,n&&(n=!1,l.process(e))}};return l}(s),e),{}),{read:o,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:h}=a,m=()=>{let s=performance.now();i=!1,n.delta=r?1e3/60:Math.max(Math.min(s-n.timestamp,40),1),n.timestamp=s,n.isProcessing=!0,o.process(n),l.process(n),u.process(n),c.process(n),d.process(n),h.process(n),n.isProcessing=!1,i&&t&&(r=!1,e(m))};return{schedule:J.reduce((t,s)=>{let o=a[s];return t[s]=(t,s=!1,a=!1)=>(!i&&(i=!0,r=!0,n.isProcessing||e(m)),o.schedule(t,s,a)),t},{}),cancel:e=>{for(let t=0;t<J.length;t++)a[J[t]].cancel(e)},state:n,steps:a}}let{schedule:et,cancel:ei,state:er,steps:en}=ee("u">typeof requestAnimationFrame?requestAnimationFrame:V,!0);function es(){t=void 0}let ea={now:()=>(void 0===t&&ea.set(er.isProcessing?er.timestamp:performance.now()),t),set:e=>{t=e,queueMicrotask(es)}};function eo(e,t){-1===e.indexOf(t)&&e.push(t)}function el(e,t){let i=e.indexOf(t);i>-1&&e.splice(i,1)}class eu{constructor(){this.subscriptions=[]}add(e){return eo(this.subscriptions,e),()=>el(this.subscriptions,e)}notify(e,t,i){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,i);else for(let n=0;n<r;n++){let r=this.subscriptions[n];r&&r(e,t,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}class ec{constructor(e,t={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{let i=ea.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=ea.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new eu);let i=this.events[e].add(t);return"change"===e?()=>{i(),et.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,i){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return r&&r.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=ea.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*e:0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ed(e,t){return new ec(e,t)}let eh=e=>!!(e&&e.getVelocity);function em(e,t){let i=e.getValue("willChange");if(eh(i)&&i.add)return i.add(t)}let ep=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ef="data-"+ep("framerAppearId"),ev=(e,t,i)=>(((1-3*i+3*t)*e+(3*i-6*t))*e+3*t)*e;function eg(e,t,i,r){return e===t&&i===r?V:n=>0===n||1===n?n:ev(function(e,t,i,r,n){let s,a,o=0;do(s=ev(a=t+(i-t)/2,r,n)-e)>0?i=a:t=a;while(Math.abs(s)>1e-7&&++o<12)return a}(n,0,1,e,i),t,r)}let ex=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ey=e=>t=>1-e(1-t),eb=eg(.33,1.53,.69,.99),ej=ey(eb),ew=ex(ej),eC=e=>(e*=2)<1?.5*ej(e):.5*(2-Math.pow(2,-10*(e-1))),eS=e=>1-Math.sin(Math.acos(e)),eT=ey(eS),ek=ex(eS),eP=(e,t,i)=>i>t?t:i<e?e:i,eF={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},eA={...eF,transform:e=>eP(0,1,e)},eN={...eF,default:1},eE=e=>Math.round(1e5*e)/1e5,eV=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,eM=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,eL=(e,t)=>i=>!!("string"==typeof i&&eM.test(i)&&i.startsWith(e)||t&&null!=i&&Object.prototype.hasOwnProperty.call(i,t)),eR=(e,t,i)=>r=>{if("string"!=typeof r)return r;let[n,s,a,o]=r.match(eV);return{[e]:parseFloat(n),[t]:parseFloat(s),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},eD={...eF,transform:e=>Math.round(eP(0,255,e))},eI={test:eL("rgb","red"),parse:eR("red","green","blue"),transform:({red:e,green:t,blue:i,alpha:r=1})=>"rgba("+eD.transform(e)+", "+eD.transform(t)+", "+eD.transform(i)+", "+eE(eA.transform(r))+")"},e_={test:eL("#"),parse:function(e){let t="",i="",r="",n="";return e.length>5?(t=e.substring(1,3),i=e.substring(3,5),r=e.substring(5,7),n=e.substring(7,9)):(t=e.substring(1,2),i=e.substring(2,3),r=e.substring(3,4),n=e.substring(4,5),t+=t,i+=i,r+=r,n+=n),{red:parseInt(t,16),green:parseInt(i,16),blue:parseInt(r,16),alph
1a:n?parseInt(n,16)/255:1}},transform:eI.transform},eO=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),eB=eO("deg"),eU=eO("%"),ez=eO("px"),e$=eO("vh"),eW=eO("vw"),eG={...eU,parse:e=>eU.parse(e)/100,transform:e=>eU.transform(100*e)},eH={test:eL("hsl","hue"),parse:eR("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:i,alpha:r=1})=>"hsla("+Math.round(e)+", "+eU.transform(eE(t))+", "+eU.transform(eE(i))+", "+eE(eA.transform(r))+")"},eX={test:e=>eI.test(e)||e_.test(e)||eH.test(e),parse:e=>eI.test(e)?eI.parse(e):eH.test(e)?eH.parse(e):e_.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?eI.transform(e):eH.transform(e)},eY=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,eq="number",eZ="color",eK=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function eQ(e){let t=e.toString(),i=[],r={color:[],number:[],var:[]},n=[],s=0,a=t.replace(eK,e=>(eX.test(e)?(r.color.push(s),n.push(eZ),i.push(eX.parse(e))):e.startsWith("var(")?(r.var.push(s),n.push("var"),i.push(e)):(r.number.push(s),n.push(eq),i.push(parseFloat(e))),++s,"${}")).split("${}");return{values:i,split:a,indexes:r,types:n}}function eJ(e){return eQ(e).values}function e0(e){let{split:t,types:i}=eQ(e),r=t.length;return e=>{let n="";for(let s=0;s<r;s++)if(n+=t[s],void 0!==e[s]){let t=i[s];t===eq?n+=eE(e[s]):t===eZ?n+=eX.transform(e[s]):n+=e[s]}return n}}let e1=e=>"number"==typeof e?0:e,e2={test:function(e){var t,i;return isNaN(e)&&"string"==typeof e&&((null==(t=e.match(eV))?void 0:t.length)||0)+((null==(i=e.match(eY))?void 0:i.length)||0)>0},parse:eJ,createTransformer:e0,getAnimatableNone:function(e){let t=eJ(e);return e0(e)(t.map(e1))}},e4=new Set(["brightness","contrast","saturate","opacity"]);function e5(e){let[t,i]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=i.match(eV)||[];if(!r)return e;let n=i.replace(r,""),s=+!!e4.has(t);return r!==i&&(s*=100),t+"("+s+n+")"}let e3=/\b([a-z-]*)\(.*?\)/gu,e6={...e2,getAnimatableNone:e=>{let t=e.match(e3);return t?t.map(e5).join(" "):e}},e8={...eF,transform:Math.round},e9={borderWidth:ez,borderTopWidth:ez,borderRightWidth:ez,borderBottomWidth:ez,borderLeftWidth:ez,borderRadius:ez,radius:ez,borderTopLeftRadius:ez,borderTopRightRadius:ez,borderBottomRightRadius:ez,borderBottomLeftRadius:ez,width:ez,maxWidth:ez,height:ez,maxHeight:ez,top:ez,right:ez,bottom:ez,left:ez,padding:ez,paddingTop:ez,paddingRight:ez,paddingBottom:ez,paddingLeft:ez,margin:ez,marginTop:ez,marginRight:ez,marginBottom:ez,marginLeft:ez,backgroundPositionX:ez,backgroundPositionY:ez,rotate:eB,rotateX:eB,rotateY:eB,rotateZ:eB,scale:eN,scaleX:eN,scaleY:eN,scaleZ:eN,skew:eB,skewX:eB,skewY:eB,distance:ez,translateX:ez,translateY:ez,translateZ:ez,x:ez,y:ez,z:ez,perspective:ez,transformPerspective:ez,opacity:eA,originX:eG,originY:eG,originZ:ez,zIndex:e8,size:ez,fillOpacity:eA,strokeOpacity:eA,numOctaves:e8},e7={...e9,color:eX,backgroundColor:eX,outlineColor:eX,fill:eX,stroke:eX,borderColor:eX,borderTopColor:eX,borderRightColor:eX,borderBottomColor:eX,borderLeftColor:eX,filter:e6,WebkitFilter:e6},te=e=>e7[e];function tt(e,t){let i=te(e);return i!==e6&&(i=e2),i.getAnimatableNone?i.getAnimatableNone(t):void 0}let ti=new Set(["auto","none","0"]),tr=e=>e===eF||e===ez,tn=(e,t)=>parseFloat(e.split(", ")[t]),ts=(e,t)=>(i,{transform:r})=>{if("none"===r||!r)return 0;let n=r.match(/^matrix3d\((.+)\)$/u);if(n)return tn(n[1],t);{let t=r.match(/^matrix\((.+)\)$/u);return t?tn(t[1],e):0}},ta=new Set(["x","y","z"]),to=q.filter(e=>!ta.has(e)),tl={width:({x:e},{paddingLeft:t="0",paddingRight:i="0"})=>e.max-e.min-parseFloat(t)-parseFloat(i),height:({y:e},{paddingTop:t="0",paddingBottom:i="0"})=>e.max-e.min-parseFloat(t)-parseFloat(i),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:ts(4,13),y:ts(5,14)};tl.translateX=tl.x,tl.translateY=tl.y;let tu=new Set,tc=!1,td=!1;function th(){if(td){let e=Array.from(tu).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),i=new Map;
1t.forEach(e=>{let t,r=(t=[],to.forEach(i=>{let r=e.getValue(i);void 0!==r&&(t.push([i,r.get()]),r.set(+!!i.startsWith("scale")))}),t);r.length&&(i.set(e,r),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=i.get(e);t&&t.forEach(([t,i])=>{var r;null==(r=e.getValue(t))||r.set(i)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}td=!1,tc=!1,tu.forEach(e=>e.complete()),tu.clear()}function tm(){tu.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(td=!0)})}class tp{constructor(e,t,i,r,n,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=i,this.motionValue=r,this.element=n,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(tu.add(this),tc||(tc=!0,et.read(tm),et.resolveKeyframes(th))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:i,motionValue:r}=this;for(let n=0;n<e.length;n++)if(null===e[n])if(0===n){let n=null==r?void 0:r.get(),s=e[e.length-1];if(void 0!==n)e[0]=n;else if(i&&t){let r=i.readValue(t,s);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=s),r&&void 0===n&&r.set(e[0])}else e[n]=e[n-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),tu.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,tu.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let tf=e=>t=>"string"==typeof t&&t.startsWith(e),tv=tf("--"),tg=tf("var(--"),tx=e=>
1!!tg(e)&&ty.test(e.split("/*")[0].trim()),ty=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,tb=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tj=e=>t=>t.test(e),tw=[eF,ez,eU,eB,eW,e$,{test:e=>"auto"===e,parse:e=>e}],tC=e=>tw.find(tj(e));class tS extends tp{constructor(e,t,i,r,n){super(e,t,i,r,n,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:i}=this;if(!t||!t.current)return;super.readKeyframes();for(let i=0;i<e.length;i++){let r=e[i];if("string"==typeof r&&tx(r=r.trim())){let n=function e(t,i,r=1){V(r<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[n,s]=function(e){let t=tb.exec(e);if(!t)return[,];let[,i,r,n]=t;return[`--${null!=i?i:r}`,n]}(t);if(!n)return;let a=window.getComputedStyle(i).getPropertyValue(n);if(a){let e=a.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return tx(s)?e(s,i,r+1):s}(r,t.current);void 0!==n&&(e[i]=n),i===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!K.has(i)||2!==e.length)return;let[r,n]=e,s=tC(r),a=tC(n);if(s!==a)if(tr(s)&&tr(a))for(let t=0;t<e.length;t++){let i=e[t];"string"==typeof i&&(e[t]=parseFloat(i))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,i=[];for(let t=0;t<e.length;t++)(function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)})(e[t])&&i.push(t);i.length&&function(e,t,i){let r,n=0;for(;n<e.length&&!r;){let t=e[n];"string"==typeof t&&!ti.has(t)&&eQ(t).values.length&&(r=e[n]),n++}if(r&&i)for(let n of t)e[n]=tt(i,r)}(e,i,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:i}=this;if(!e||!e.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tl[i](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];void 0!==r&&e.getValue(i,r).jump(r,!1)}measureEndState(){var e;let{element:t,name:i,unresolvedKeyframes:r}=this;if(!t||!t.current)return;let n=t.getValue(i);n&&n.jump(this.measuredOrigin,!1);let s=r.length-1,a=r[s];r[s]=tl[i](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),(null==(e=this.removedTransforms)?void 0:e.length)&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let tT=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(e2.test(e)||"0"===e)&&!e.startsWith("url(")),tk=e=>null!==e;function tP(e,{repeat:t,repeatType:i="loop"},r){let n=e.filter(tk),s=t&&"loop"!==i&&t%2==1?0:n.length-1;return s&&void 0!==r?r:n[s]}class tF{constructor({autoplay:e=!0,delay:t=0,type:i="keyframes",repeat:r=0,repeatDelay:n=0,repeatType:s="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=ea.now(),this.options={autoplay:e,delay:t,type:i,repeat:r,repeatDelay:n,repeatType:s,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(tm(),th()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=ea.now(),this.hasAttemptedResolve=!0;let{name:i,type:r,velocity:n,delay:s,onComplete:a,onUpdate:o,isGenerator:l}=this.options;if(!l&&!function(e,t,i,r){let n=e[0];if(null===n)return!1;if("display"===t||"visibility"===t)return!0;let s=e[e.length-1],a=tT(n,t),o=tT(s,t);return V(a===o,`You are trying to animate ${t} from "${n}" to "${s}". ${n} is not an animatable value - to enable this animation set ${n} to a value animatable to ${s} via the \`style\` property.`),!!a&&!!o&&(function(e){let t=e[0];if(1===e.length)return!0;for(let i=0;i<e.length;i++)if(e[i]!==t)return!0}(e)||("spring"===i||Y(i))&&r)}(e,i,r,n))if(s)this.options.duration=0;else{o&&o(tP(e,this.options,t)),a&&a(),this.resolveFinishedPromise();return}let u=this.initPlayback(e,t);!1!==u&&(this._resolved={keyframes:e,finalKeyframe:t,...u},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}let tA=(e,t,i)=>e+(t-e)*i;function tN(e,t,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?e+(t-e)*6*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function tE(e,t){return i=>i>0?t:e}let tV=(e,t,i)=>{let r=e*e,n=i*(t*t-r)+r;return n<0?0:Math.sqrt(n)},tM=[e_,eI,eH];function tL(e){let t=tM.find(t=>t.test(e));if(V(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let i=t.parse(e);return t===eH&&(i=function({hue:e,saturation:t,lightness:i,alpha:r}){e/=360,i/=100;let n=0,s=0,a=0;if(t/=100){let r=i<.5?i*(1+t):i+t-i*t,o=2*i-r;n=tN(o,r,e+1/3),s=tN(o,r,e),a=tN(o,r,e-1/3)}else n=s=a=i;return{red:Math.round(255*n),green:Math.round(255*s),blue:Math.round(255*a),alpha:r}}(i)),i}let tR=(e,t)=>{let i=tL(e),r=tL(t);if(!i||!r)return tE(e,t);let n={...i};return e=>(n.red=tV(i.red,r.red,e),n.green=tV(i.green,r.green,e),n.blue=tV(i.blue,r.blue,e),n.alpha=tA(i.alpha,r.alpha,e),eI.transform(n))},tD=(e,t)=>i=>t(e(i)),tI=(...e)=>e.reduce(tD),t_=new Set(["none","hidden"]);function tO(e,t){return i=>tA(e,t,i)}function tB(e){return"number"==typeof e?tO:"string"==typeof e?tx(e)?tE:eX.test(e)?tR:t$:Array.isArray(e)?tU:"object"==typeof e?eX.test(e)?tR:tz:tE}function tU(e,t){let i=[...e],r=i.length,n=e.map((e,i)=>tB(e)(e,t[i]));return e=>{for(let t=0;t<r;t++)i[t]=n[t](e);return i}}function tz(e,t){let i={...e,...t},r={};for(let n in i)void 0!==e[n]&&void 0!==t[n]&&(r[n]=tB(e[n])(e[n],t[n]));return e=>{for(let t in r)i[t]=r[t](e);return i}}let t$=(e,t)=>{let i=e2.createTransformer(t),r=eQ(e),n=eQ(t);if(!(r.indexes.var.length===n.indexes.var.length&&r.indexes.color.length===n.indexes.color.length&&r.indexes.number.length>=n.indexes.number.length))return V(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),tE(e,t);if(t_.has(e)&&!n.values.length||t_.has(t)&&!r.values.length)return t_.has(e)?i=>i<=0?e:t:i=>i>=1?t:e;return tI(tU(function(e,t){var i;let r=[],n={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){let a=t.types[s],o=e.indexes[a][n[a]],l=null!=(i=e.values[o])?i:0;r[s]=l,n[a]++}return r}(r,n),n.values),i)};function tW(e,t,i){return"number"==typeof e&&"number"==typeof t&&"number"==typeof i?tA(e,t,i):tB(e)(e,t)}function tG(e,t,i){var r,n;let s=Math.max(t-5,0);return r=i-e(s),(n=t-s)?1e3/n*r:0}let tH=.01,tX=2,tY=.005,tq=.5;function tZ(e,t){return e*Math.sqrt(1-t*t)}let tK=["duration","bounce"],tQ=["stiffness","damping","mass"];function tJ(e,t){return t.some(t=>void 0!==e[t])}function t0(e=.3,t=.3){let i,r="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:n,restDelta:s}=r,a=r.keyframes[0],o=r.keyframes[r.keyframes.length-1],l={done:!1,value:a},{stiffness:u,damping:c,mass:d,duration:h,velocity:m,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!tJ(e,tQ)&&tJ(e,tK))if(e.visualDuration){let i=2*Math.PI/(1.2*e.visualDuration),r=i*i,n=2*eP(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:1,stiffness:r,damping:n}}else{let i=function({duration:e=800,bounce:t=.3,velocity:i=0,mass:r=1}){let n,s;V(e<=I(10));let a=1-t;a=eP(.05,1,a),e=eP(.01,10,e/1e3),a<1?(n=t=>{let r=t*a,n=r*e;return .001-(r-i)/tZ(t,a)*Math.exp(-n)},s=t=>{let r=t*a*e,s=Math.pow(a,2)*Math.pow(t,2)*e,o=Math.exp(-r),l=tZ(Math.pow(t,2),a);return(r*i+i-s)*o*(-n(t)+.001>0?-1:1)/l}):(n=t=>-.001+Math.exp(-t*e)*((t-i)*e+1),s=t=>e*e*(i-t)*Math.exp(-t*e));let o=function(e,t,i){let r=i;for(let i=1;i<12;i++)r-=e(r)/t(r);return r}(n,s,5/e);if(e=I(e),isNaN(o))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(o,2)*r;
1return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}(e);(t={...t,...i,mass:1}).isResolvedFromDuration=!0}return t}({...r,velocity:-((r.velocity||0)/1e3)}),f=m||0,v=c/(2*Math.sqrt(u*d)),g=o-a,x=Math.sqrt(u/d)/1e3,y=5>Math.abs(g);if(n||(n=y?tH:tX),s||(s=y?tY:tq),v<1){let e=tZ(x,v);i=t=>o-Math.exp(-v*x*t)*((f+v*x*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}else if(1===v)i=e=>o-Math.exp(-x*e)*(g+(f+x*g)*e);else{let e=x*Math.sqrt(v*v-1);i=t=>{let i=Math.exp(-v*x*t),r=Math.min(e*t,300);return o-i*((f+v*x*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}let b={calculatedDuration:p&&h||null,next:e=>{let t=i(e);if(p)l.done=e>=h;else{let r=0;v<1&&(r=0===e?I(f):tG(i,e,t));let a=Math.abs(o-t)<=s;l.done=Math.abs(r)<=n&&a}return l.value=l.done?o:t,l},toString:()=>{let e=Math.min(_(b),2e4),t=W(t=>b.next(e*t).value,e,30);return e+"ms "+t}};return b}function t1({keyframes:e,velocity:t=0,power:i=.8,timeConstant:r=325,bounceDamping:n=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:c}){let d,h,m=e[0],p={done:!1,value:m},f=i*t,v=m+f,g=void 0===a?v:a(v);g!==v&&(f=g-m);let x=e=>-f*Math.exp(-e/r),y=e=>g+x(e),b=e=>{let t=x(e),i=y(e);p.done=Math.abs(t)<=u,p.value=p.done?g:i},j=e=>{let t;if(t=p.value,void 0!==o&&t<o||void 0!==l&&t>l){var i;d=e,h=t0({keyframes:[p.value,(i=p.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:tG(y,e,p.value),damping:n,stiffness:s,restDelta:u,restSpeed:c})}};return j(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==d||(t=!0,b(e),j(e)),void 0!==d&&e>=d)?h.next(e-d):(t||b(e),p)}}}let t2=eg(.42,0,1,1),t4=eg(0,0,.58,1),t5=eg(.42,0,.58,1),t3={linear:V,easeIn:t2,easeInOut:t5,easeOut:t4,circIn:eS,circInOut:ek,circOut:eT,backIn:ej,backInOut:ew,backOut:eb,anticipate:eC},t6=e=>{if(B(e)){V(4===e.length);let[t,i,r,n]=e;return eg(t,i,r,n)}return"string"==typeof e?(V(void 0!==t3[e],`Invalid easing type '${e}'`),t3[e]):e};function t8({duration:e=300,keyframes:t,times:i,ease:r="easeInOut"}){var n;let s,a=Array.isArray(r)&&"number"!=typeof r[0]?r.map(t6):t6(r),o={done:!1,value:t[0]},l=function(e,t,{clamp:i=!0,ease:r,mixer:n}={}){let s=e.length;if(V(s===t.length),1===s)return()=>t[0];if(2===s&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());let o=function(e,t,i){let r=[],n=i||tW,s=e.length-1;for(let i=0;i<s;i++){let s=n(e[i],e[i+1]);t&&(s=tI(Array.isArray(t)?t[i]||V:t,s)),r.push(s)}return r}(t,r,n),l=o.length,u=i=>{if(a&&i<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(i<e[r+1]);r++);let n=$(e[r],e[r+1],i);return o[r](n)};return i?t=>u(eP(e[0],e[s-1],t)):u}((n=i&&i.length===t.length?i:(!function(e,t){let i=e[e.length-1];for(let r=1;r<=t;r++){let n=$(0,t,r);e.push(tA(i,1,n))}}(s=[0],t.length-1),s),n.map(t=>t*e)),t,{ease:Array.isArray(a)?a:t.map(()=>a||t5).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=l(t),o.done=t>=e,o)}}let t9=e=>{let t=({timestamp:t})=>e(t);return{start:()=>et.update(t,!0),stop:()=>ei(t),now:()=>er.isProcessing?er.timestamp:ea.now()}},t7={decay:t1,inertia:t1,tween:t8,keyframes:t8,spring:t0},ie=e=>e/100;class it extends tF{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:e}=this.options;e&&e()};const{name:t,motionValue:i,element:r,keyframes:n}=this.options,s=(null==r?void 0:r.KeyframeResolver)||tp,a=(e,t)=>this.onKeyframesResolved(e,t);this.resolver=new s(n,a,t,i,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){let t,i,{type:r="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:a,velocity:o=0}=this.options,l=Y(r)?r:t7[r]||t8;l!==t8&&"number"!=typeof e[0]&&(t=tI(ie,tW(e[0],e[1])),e=[0,100]);let u=l({...this.options,keyframes:e});"mirror"===a&&(i=l({...this.options,keyframes:[...e].reverse(),velocity:-o})),null===u.calculatedDuration&&(u.calculatedDuration=_(u));let{calculatedDuration:c}=u,d=c+s;return{generator:u,mirroredGenerator:i,mapPercentToKeyframes:t,calculatedDuration:c,resolvedDuration:d,totalDuration:d*(n+1)-s}}onPostResolved(){let{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){let{resolved:i}=this;if(!i){let{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}let{finalKeyframe:r,generator:n,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:o,c
1alculatedDuration:l,totalDuration:u,resolvedDuration:c}=i;if(null===this.startTime)return n.next(0);let{delay:d,repeat:h,repeatType:m,repeatDelay:p,onUpdate:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;let v=this.currentTime-d*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let x=this.currentTime,y=n;if(h){let e=Math.min(this.currentTime,u)/c,t=Math.floor(e),i=e%1;!i&&e>=1&&(i=1),1===i&&t--,(t=Math.min(t,h+1))%2&&("reverse"===m?(i=1-i,p&&(i-=p/c)):"mirror"===m&&(y=s)),x=eP(0,1,i)*c}let b=g?{done:!1,value:o[0]}:y.next(x);a&&(b.value=a(b.value));let{done:j}=b;g||null===l||(j=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let w=null===this.holdTime&&("finished"===this.state||"running"===this.state&&j);return w&&void 0!==r&&(b.value=tP(o,this.options,r)),f&&f(b.value),w&&this.finish(),b}get duration(){let{resolved:e}=this;return e?e.calculatedDuration/1e3:0}get time(){return this.currentTime/1e3}set time(e){e=I(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=this.currentTime/1e3)}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=t9,onPlay:t,startTime:i}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),t&&t();let r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!=i?i:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!=(e=this.currentTime)?e:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}let ii=new Set(["opacity","clipPath","filter","transform"]),ir=M(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),is={anticipate:eC,backInOut:ew,circInOut:ek};class ia extends tF{constructor(e){super(e);const{name:t,motionValue:i,element:r,keyframes:n}=this.options;this.resolver=new tS(n,(e,t)=>this.onKeyframesResolved(e,t),t,i,r),this.resolver.scheduleResolve()}initPlayback(e,t){var i;let{duration:r=300,times:n,ease:s,type:a,motionValue:o,name:l,startTime:u}=this.options;if(!o.owner||!o.owner.current)return!1;if("string"==typeof s&&z()&&s in is&&(s=is[s]),Y((i=this.options).type)||"spring"===i.type||!function e(t){return!!("function"==typeof t&&z()||!t||"string"==typeof t&&(t in H||z())||B(t)||Array.isArray(t)&&t.every(e))}(i.ease)){let{onComplete:t,onUpdate:i,motionValue:o,element:l,...u}=this.options,c=function(e,t){let i=new it({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),r={done:!1,value:e[0]},n=[],s=0;for(;!r.done&&s<2e4;)n.push((r=i.sample(s)).value),s+=10;return{times:void 0,keyframes:n,duration:s-10,ease:"linear"}}(e,u);1===(e=c.keyframes).length&&(e[1]=e[0]),r=c.duration,n=c.times,s=c.ease,a="keyframes"}let c=function(e,t,i,{delay:r=0,duration:n=300,repeat:s=0,repeatType:a="loop",ease:o="easeInOut",times:l}={}){let u={[t]:i};l&&(u.offset=l);
1let c=function e(t,i){if(t)return"function"==typeof t&&z()?W(t,i):B(t)?G(t):Array.isArray(t)?t.map(t=>e(t,i)||H.easeOut):H[t]}(o,n);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:n,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:"reverse"===a?"alternate":"normal"})}(o.owner.current,l,e,{...this.options,duration:r,times:n,ease:s});return c.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?(O(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:i}=this.options;o.set(tP(e,this.options,t)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:n,type:a,ease:s,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return t/1e3}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return(t.currentTime||0)/1e3}set time(e){let{resolved:t}=this;if(!t)return;let{animation:i}=t;i.currentTime=I(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:t}=e;return t.playbackRate}set speed(e){let{resolved:t}=this;if(!t)return;let{animation:i}=t;i.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return"idle";let{animation:t}=e;return t.playState}get startTime(){let{resolved:e}=this;if(!e)return null;let{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){let{resolved:t}=this;if(!t)return V;let{animation:i}=t;O(i,e)}else this.pendingTimeline=e;return V}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:i,duration:r,type:n,ease:s,times:a}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){let{motionValue:e,onUpdate:t,onComplete:o,element:l,...u}=this.options,c=new it({...u,keyframes:i,duration:r,type:n,ease:s,times:a,isGenerator:!0}),d=I(this.time);e.setWithVelocity(c.sample(d-10).value,c.sample(d).value,10)}let{onStop:o}=this.options;o&&o(),this.cancel()}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}static supports(e){let{motionValue:t,name:i,repeatDelay:r,repeatType:n,damping:s,type:a}=e;if(!t||!t.owner||!(t.owner.current instanceof HTMLElement))return!1;let{onUpdate:o,transformTemplate:l}=t.owner.getProps();return ir()&&i&&ii.has(i)&&!o&&!l&&!r&&"mirror"!==n&&0!==s&&"inertia"!==a}}let io={type:"spring",stiffness:500,damping:25,restSpeed:10},il={type:"keyframes",duration:.8},iu={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ic=(e,t,i,r={},n,s)=>a=>{let o=X(r,e)||{},l=o.delay||r.delay||0,{elapsed:u=0}=r;u-=I(l);let c={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-u,onUpdate:e=>{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:s?void 0:n};!function({when:e,delay:t,delayChildren:i,staggerChildren:r,staggerDirection:n,repeat:s,repeatType:a,repeatDelay:o,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(o)&&(c={...c,...((e,{keyframes:t})=>t.length>2?il:Z.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:io:iu)(e,c)}),c.duration&&(c.duration=I(c.duration)),c.repeatDelay&&(c.repeatDelay=I(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(c.duration=0,0===c.delay&&(d=!0)),d&&!s&&void 0!==t.get()){let e=tP(c.keyframes,o);if(void 0!==e)return et.update(()=>{c.onUpdate(e),c.onComplete()}),new D([])}return!s&&ia.supports(c)?new ia(c):new it(c)};function id(e,t,{delay:i=0,transitionOverride:r,type:n}={}){var s;let{transition:a=e.getDefaultTransition(),transitionEnd:o,...l}=t;r&&(a=r);let u=[],c=n&&e.animationState&&e.animationState.getState()[n];for(let t in l){let r=e.getValue(t,null!=(s=e.latestValues[t])?s:null),n=l[t];if(void 0===n||c&&function({protectedKeys:e,needsAnimating:t},i){let r=e.hasOwnProperty(i)&&!0!==t[i];return t[i]=!1,r}(c,t))continue;let o={delay:i,...X(a||{},t)},d=!1;if(window.MotionHandoffAnimation){let i=e.props[ef];if(i){let e=window.MotionHandoffAnimation(i,t,et);null!==e&&(o.startTime=e,d=!0)}}em(e,t),r.start(ic(t,r,n,e.shouldReduceMotion&&K.has(t)?{type:!1}:o,e,d));let h=r.animation;h&&u.push(h)}return o&&Promise.all(u).then(()=>{et.update(()=>{o&&function(e,t){let{transitionEnd:i={},transition:r={},...n}=A(e,t)||{};for(let t in n={...n,...i}){let i=Q(n[t]);e.hasValue(t)?e.getValue(t).set(i):e.addValue(t,ed(i))}}(e,o)})}),u}function ih(e,t,i={}){var r;let n=A(e,t,"exit"===i.type?null==(r=e.presenceContext)?void 0:r.custom:void 0),{transition:s=e.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let a=n?()=>Promise.all(id(e,n,i)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:n=0,staggerChildren:a,staggerDirection:o}=s;return function(e,t,i=0,r=0,n=1,s){let a=[],o=(e.variantChildren.size-1)*r,l=1===n?(e=0)=>e*r:(e=0)=>o-e*r;return Array.from(e.variantChildren).sort(im).forEach((e,r)=>{e.notify("AnimationStart",t),a.push(ih(e,t,{...s,delay:i+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,n+r,a,o,i)}:()=>Promise.resolve(),{when:l}=s;if(!l)return Promise.all([a(),o(i.delay)]);{let[e,t]="beforeChildren"===l?[a,o]:[o,a];return e().then(()=>t())}}function im(e,t){return e.sortNodePosition(t)}let ip=E.length,iv=[...N].reverse(),ig=N.length;function ix(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function iy(){return{animate:ix(!0),whileInView:ix(),whileHover:ix(),whileTap:ix(),whileDrag:ix(),whileFocus:ix(),exit:ix()}}class ib{constructor(e){this.isMounted=!1,this.node=e}update(){}}let ij=0,iw={x:!1,y:!1},iC=e=>
1"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function iS(e,t,i,r={passive:!0}){return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i)}function iT(e){return{point:{x:e.pageX,y:e.pageY}}}function ik(e,t,i,r){return iS(e,t,e=>iC(e)&&i(e,iT(e)),r)}let iP=(e,t)=>Math.abs(e-t);class iF{constructor(e,t,{transformPagePoint:i,contextWindow:r,dragSnapToOrigin:n=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=iE(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,n=(e=i.offset,t={x:0,y:0},Math.sqrt(iP(e.x,t.x)**2+iP(e.y,t.y)**2)>=3);if(!r&&!n)return;let{point:s}=i,{timestamp:a}=er;this.history.push({...s,timestamp:a});let{onStart:o,onMove:l}=this.handlers;r||(o&&o(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=iA(t,this.transformPagePoint),et.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:i,onSessionEnd:r,resumeAnimation:n}=this.handlers;if(this.dragSnapToOrigin&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=iE("pointercancel"===e.type?this.lastMoveEventInfo:iA(t,this.transformPagePoint),this.history);this.startEvent&&i&&i(e,s),r&&r(e,s)},!iC(e))return;this.dragSnapToOrigin=n,this.handlers=t,this.transformPagePoint=i,this.contextWindow=r||window;const s=iA(iT(e),this.transformPagePoint),{point:a}=s,{timestamp:o}=er;this.history=[{...a,timestamp:o}];const{onSessionStart:l}=t;l&&l(e,iE(s,this.history)),this.removeListeners=tI(ik(this.contextWindow,"pointermove",this.handlePointerMove),ik(this.contextWindow,"pointerup",this.handlePointerUp),ik(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),ei(this.updatePoint)}}function iA(e,t){return t?{point:t(e.point)}:e}function iN(e,t){return{x:e.x-t.x,y:e.y-t.y}}function iE({point:e},t){return{point:e,delta:iN(e,iV(t)),offset:iN(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,i=null,r=iV(e);for(;t>=0&&(i=e[t],!(r.timestamp-i.timestamp>I(.1)));)t--;if(!i)return{x:0,y:0};let n=(r.timestamp-i.timestamp)/1e3;if(0===n)return{x:0,y:0};let s={x:(r.x-i.x)/n,y:(r.y-i.y)/n};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(t)}}function iV(e){return e[e.length-1]}function iM(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function iL(e){return e.max-e.min}function iR(e,t,i,r=.5){e.origin=r,e.originPoint=tA(t.min,t.max,e.origin),e.scale=iL(i)/iL(t),e.translate=tA(i.min,i.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function iD(e,t,i,r){iR(e.x,t.x,i.x,r?r.originX:void 0),iR(e.y,t.y,i.y,r?r.originY:void 0)}function iI(e,t,i){e.min=i.min+t.min,e.max=e.min+iL(t)}function i_(e,t,i){e.min=t.min-i.min,e.max=e.min+iL(t)}function iO(e,t,i){i_(e.x,t.x,i.x),i_(e.y,t.y,i.y)}function iB(e,t,i){return{min:void 0!==t?e.min+t:void 0,max:void 0!==i?e.max+i-(e.max-e.min):void 0}}function iU(e,t){let i=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([i,r]=[r,i]),{min:i,max:r}}function iz(e,t,i){return{min:i$(e,t),max:i$(e,i)}}function i$(e,t){return"number"==typeof e?e:e[t]||0}let iW=()=>({translate:0,scale:1,origin:0,originPoint:0}),iG=()=>({x:iW(),y:iW()}),iH=()=>({min:0,max:0}),iX=()=>({x:iH(),y:iH()});function iY(e){return[e("x"),e("y")]}function iq({top:e,left:t,right:i,bottom:r}){return{x:{min:t,max:i},y:{min:e,max:r}}}function iZ(e){return void 0===e||1===e}function iK({scale:e,scaleX:t,scaleY:i}){return!iZ(e)||!iZ(t)||!iZ(i)}function iQ(e){return iK(e)||iJ(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function iJ(e){var t,i;return(t=e.x)&&"0%"!==t||(i=e.y)&&"0%"!==i}function i0(e,t,i,r,n){return void 0!==n&&(e=r+n*(e-r)),r+i*(e-r)+t}function i1(e,t=0,i=1,r,n){e.min=i0(e.min,t,i,r,n),e.max=i0(e.max,t,i,r,n)}function i2(e,{x:t,y:i}){i1(e.x,t.translate,t.scale,t.originPoint),i1(e.y,i.translate,i.scale,i.originPoint)}function i4(e,t){e.min=e.min+t,e.max=e.max+t}function i5(e,t,i,r,n=.5){let s=tA(e.min,e.max,n);i1(e,t,i,s,r)}function i3(e,t){i5(e.x,t.x,t.scaleX,t.scale,t.originX),i5(e.y,t.y,t.scaleY,t.scale,t.originY)}function i6(e,t){return iq(function(e,t){if(!t)return e;let i=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:i.y,left:i.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}let i8=({current:e})=>e?e.ownerDocument.defaultView:null,i9=new WeakMap;class i7{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=iX(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let r=e=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(iT(e).point)},n=(e,t)=>{let{drag:i,dragPropagation:r,onDragStart:n}=this.getProps();if(i&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"
1y"===e)if(iw[e])return null;else return iw[e]=!0,()=>{iw[e]=!1};return iw.x||iw.y?null:(iw.x=iw.y=!0,()=>{iw.x=iw.y=!1})}(i),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),iY(e=>{let t=this.getAxisMotionValue(e).get()||0;if(eU.test(t)){let{projection:i}=this.visualElement;if(i&&i.layout){let r=i.layout.layoutBox[e];r&&(t=iL(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),n&&et.postRender(()=>n(e,t)),em(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},s=(e,t)=>{let{dragPropagation:i,dragDirectionLock:r,onDirectionLock:n,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let i=null;return Math.abs(e.y)>t?i="y":Math.abs(e.x)>t&&(i="x"),i}(a),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),s&&s(e,t)},a=(e,t)=>this.stop(e,t),o=()=>iY(e=>{var t;return"paused"===this.getAnimationState(e)&&(null==(t=this.getAxisMotionValue(e).animation)?void 0:t.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new iF(e,{onSessionStart:r,onStart:n,onMove:s,onSessionEnd:a,resumeAnimation:o},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:i8(this.visualElement)})}stop(e,t){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:n}=this.getProps();n&&et.postRender(()=>n(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,i){let{drag:r}=this.getProps();if(!i||!re(e,r,this.currentDirection))return;let n=this.getAxisMotionValue(e),s=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(s=function(e,{min:t,max:i},r){return void 0!==t&&e<t?e=r?tA(t,e,r.min):Math.max(e,t):void 0!==i&&e>i&&(e=r?tA(i,e,r.max):Math.min(e,i)),e}(s,this.constraints[e],this.elastic[e])),n.set(s)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:i}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(e=this.visualElement.projection)?void 0:e.layout,n=this.constraints;t&&iM(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=function(e,{top:t,left:i,bottom:r,right:n}){return{x:iB(e.x,i,n),y:iB(e.y,t,r)}}(r.layoutBox,t):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:iz(e,"left","right"),y:iz(e,"top","bottom")}}(i),n!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&iY(e=>{var t,i;let n;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=r.layoutBox[e],i=this.constraints[e],n={},void 0!==i.min&&(n.min=i.min-t.min),void 0!==i.max&&(n.max=i.max-t.min),n))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:i}=this.getProps();if(!t||!iM(t))return!1;let r=t.current;V(null!==r);let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let s=function(e,t,i){let r=i6(e,i),{scroll:n}=t;return n&&(i4(r.x,n.offset.x),i4(r.y,n.offset.y)),r}(r,n.root,this.visualElement.getTransformPagePoint()),a=(e=n.layout.layoutBox,{x:iU(e.x,s.x),y:iU(e.y,s.y)});if(i){let e=i(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=iq(e))}return a}startAnimation(e){let{drag:t,dragMomentum:i,dragElastic:r,dragTransition:n,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(iY(a=>{if(!re(a,t,this.currentDirection))return;let l=o&&o[a]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(e,t){let i=this.getAxisMotionValue(e);return em(this.visualElement,e),i.start(ic(e,i,0,t,this.visualElement,!1))}stopAnimation(){iY(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){iY(e=>{var t;return null==(t=this.getAxisMotionValue(e).animation)?void 0:t.pause()})}getAnimationState(e){var t;return null==(t=this.getAxisMotionValue(e).animation)?void 0:t.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps();return i[t]||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){iY(t=>{let{drag:i}=this.getProps();if(!re(t,i,this.currentDirection))return;let{projection:r}=this.visualElement,n=this.getAxisMotionValue(t);if(r&&r.layout){let{min:i,max:s}=r.layout.layoutBox[t];n.set(e[t]-tA(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:i}=this.visualElement;if(!iM(t)||!i||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};iY(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var i,n;let s,a,o,l=t.get();r[e]=(i={min:l,max:l},n=this.constraints[e],s=.5,a=iL(i),(o=iL(n))>a?s=$(n.min,n.max-a,i.min):a>o&&(s=$(i.min,i.max-o,n.min)),eP(0,1,s))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),iY(t=>{if(!re(t,e,null))return;let i=this.getAxisMotionValue(t),{min:n,max:s}=this.constraints[t];i.set(tA(n,s,r[t]))})}addListeners(){if(!this.visualElement.current)return;i9.set(this.visualElement,this);let e=ik(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:i=!0}=this.getProps();t&&i&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();iM(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",t);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),et.read(t);let n=iS(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(iY(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{n(),e(),r(),s&&s()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:n=!1,dragElastic:s=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:i,dragPropagation:r,dragConstraints:n,dragElastic:s,dragMomentum:a}}}function re(e,t,i){return(!0===t||t===e)&&(null===i||i===e)}let rt=e=>(t,i)=>{e&&et.postRender(()=>e(t,i))};var ri=h;let rr=(0,h.createContext)(null),rn=(0,h.createContext)({}),rs=(0,h.createContext)({}),ra={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ro(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let rl={correct:(e,t)=>
1{if(!t.target)return e;if("string"==typeof e)if(!ez.test(e))return e;else e=parseFloat(e);let i=ro(e,t.target.x),r=ro(e,t.target.y);return`${i}% ${r}%`}},ru={},{schedule:rc,cancel:rd}=ee(queueMicrotask,!1);class rh extends ri.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i,layoutId:r}=this.props,{projection:n}=e;Object.assign(ru,rp),n&&(t.group&&t.group.add(n),i&&i.register&&r&&i.register(n),n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),ra.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:i,drag:r,isPresent:n}=this.props,s=i.projection;return s&&(s.isPresent=n,r||e.layoutDependency!==t||void 0===t?s.willUpdate():this.safeToRemove(),e.isPresent!==n&&(n?s.promote():s.relegate()||et.postRender(()=>{let e=s.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),rc.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function rm(e){let[t,i]=function(e=!0){let t=(0,h.useContext)(rr);if(null===t)return[!0,null];let{isPresent:i,onExitComplete:r,register:n}=t,s=(0,h.useId)();(0,h.useEffect)(()=>{e&&n(s)},[e]);let a=(0,h.useCallback)(()=>e&&r&&r(s),[s,r,e]);return!i&&r?[!1,a]:[!0]}(),r=(0,ri.useContext)(rn);return(0,o.jsx)(rh,{...e,layoutGroup:r,switchLayoutGroup:(0,ri.useContext)(rs),isPresent:t,safeToRemove:i})}let rp={borderRadius:{...rl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rl,borderTopRightRadius:rl,borderBottomLeftRadius:rl,borderBottomRightRadius:rl,boxShadow:{correct:(e,{treeScale:t,projectionDelta:i})=>{let r=e2.parse(e);if(r.length>5)return e;let n=e2.createTransformer(e),s=+("number"!=typeof r[0]),a=i.x.scale*t.x,o=i.y.scale*t.y;r[0+s]/=a,r[1+s]/=o;let l=tA(a,o,.5);return"number"==typeof r[2+s]&&(r[2+s]/=l),"number"==typeof r[3+s]&&(r[3+s]/=l),n(r)}}},rf=(e,t)=>e.depth-t.depth;class rv{constructor(){this.children=[],this.isDirty=!1}add(e){eo(this.children,e),this.isDirty=!0}remove(e){el(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(rf),this.isDirty=!1,this.children.forEach(e)}}function rg(e){let t=eh(e)?e.get():e;return t&&"object"==typeof t&&t.mix&&t.toValue?t.toValue():t}let rx=["TopLeft","TopRight","BottomLeft","BottomRight"],ry=rx.length,rb=e=>"string"==typeof e?parseFloat(e):e,rj=e=>"number"==typeof e||ez.test(e);function rw(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let rC=rT(0,.5,eT),rS=rT(.5,.95,V);function rT(e,t,i){return r=>r<e?0:r>t?1:i($(e,t,r))}function rk(e,t){e.min=t.min,e.max=t.max}function rP(e,t){rk(e.x,t.x),rk(e.y,t.y)}function rF(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function rA(e,t,i,r,n){return e-=t,e=r+1/i*(e-r),void 0!==n&&(e=r+1/n*(e-r)),e}function rN(e,t,[i,r,n],s,a){!function(e,t=0,i=1,r=.5,n,s=e,a=e){if(eU.test(t)&&(t=parseFloat(t),t=tA(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let o=tA(s.min,s.max,r);e===s&&(o-=t),e.min=rA(e.min,t,i,o,n),e.max=rA(e.max,t,i,o,n)}(e,t[i],t[r],t[n],t.scale,s,a)}let rE=["x","scaleX","originX"],rV=["y","scaleY","originY"];function rM(e,t,i,r){rN(e.x,t,rE,i?i.x:void 0,r?r.x:void 0),rN(e.y,t,rV,i?i.y:void 0,r?r.y:void 0)}function rL(e){return 0===e.translate&&1===e.scale}function rR(e){return rL(e.x)&&rL(e.y)}function rD(e,t){return e.min===t.min&&e.max===t.max}function rI(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function r_(e,t){return rI(e.x,t.x)&&rI(e.y,t.y)}function rO(e){return iL(e.x)/iL(e.y)}function rB(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class rU{constructor(){this.members=[]}add(e){eo(this.members,e),e.scheduleRender()}remove(e){if(el(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t,i=this.members.findIndex(t=>e===t);if(0===i)return!1;for(let e=i;e>=0;e--){let i=this.members[e];if(!1!==i.isPresent){t=i;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,t&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;!1===r&&i.hide()}}
1exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:i}=e;t.onExitComplete&&t.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let rz={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},r$="u">typeof window&&void 0!==window.MotionDebug,rW=["","X","Y","Z"],rG={visibility:"hidden"},rH=0;function rX(e,t,i,r){let{latestValues:n}=t;n[e]&&(i[e]=n[e],t.setStaticValue(e,0),r&&(r[e]=0))}function rY({attachResizeListener:e,defaultParent:t,measureScroll:i,checkIsScrollRoot:r,resetTransform:n}){return class{constructor(e={},i=null==t?void 0:t()){this.id=rH++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,r$&&(rz.totalNodes=rz.resolvedTargetDeltas=rz.recalculatedProjection=0),this.nodes.forEach(rK),this.nodes.forEach(r5),this.nodes.forEach(r3),this.nodes.forEach(rQ),r$&&window.MotionDebug.record(rz)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new rv)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new eu),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let i=this.eventHandlers.get(e);i&&i.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:r,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(n||r)&&(this.isLayoutDirty=!0),e){let i,r=()=>this.root.updateBlockedByResize=!1;e(t,()=>{let e,t;this.root.updateBlockedByResize=!0,i&&i(),e=ea.now(),t=({timestamp:i})=>{let n=i-e;n>=250&&(ei(t),r())},et.read(t,!0),i=()=>ei(t),ra.hasAnimatedSinceResize&&(ra.hasAnimatedSinceResize=!1,this.nodes.forEach(r4))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&s&&(r||n)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:i,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let n=this.options.transition||s.getDefaultTransition()||nt,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=s.getProps(),l=!this.targetLayout||!r_(this.targetLayout,r)||i,u=!t&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);let t={...X(n,"layout"),onPlay:a,onComplete:o};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||r4(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,ei(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
1h(r6),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:i}=t.options;if(!i)return;let r=i.props[ef];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",et,!(e||i))}let{parent:n}=t;n&&!n.hasCheckedOptimisedAppear&&e(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:i}=this.options;if(void 0===t&&!i)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(r0);return}this.isUpdating||this.nodes.forEach(r1),this.isUpdating=!1,this.nodes.forEach(r2),this.nodes.forEach(rq),this.nodes.forEach(rZ),this.clearAllSnapshots();let e=ea.now();er.delta=eP(0,1e3/60,e-er.timestamp),er.timestamp=e,er.isProcessing=!0,en.update.process(er),en.preRender.process(er),en.render.process(er),er.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,rc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rJ),this.sharedNodes.forEach(r8)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,et.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){et.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=iX(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!n)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!rR(this.projectionDelta),i=this.getTransformTemplate(),r=i?i(this.latestValues,""):void 0,s=r!==this.prevTransformTemplateValue;e&&(t||iQ(this.latestValues)||s)&&(n(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let i=this.measurePageBox(),r=this.removeElementScroll(i);return e&&(r=this.removeTransform(r)),nn((t=r).x),nn(t.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){var e;let{visualElement:t}=this.options;if(!t)return iX();let i=t.measureViewportBox();if(!((null==(e=this.scroll)?void 0:e.wasRoot)||this.path.some(na))){let{scroll:e}=this.root;e&&(i4(i.x,e.offset.x),i4(i.y,e.offset.y))}return i}removeElementScroll(e){var t;let i=iX();if(rP(i,e),null==(t=this.scroll)?void 0:t.wasRoot)return i;for(let t=0;t<this.path.length;t++){let r=this.path[t],{scroll:n,options:s}=r;r!==this.root&&n&&s.layoutScroll&&(n.wasRoot&&rP(i,e),i4(i.x,n.offset.x),i4(i.y,n.offset.y))}return i}applyTransform(e,t=!1){let i=iX();rP(i,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&i3(i,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),iQ(r.latestValues)&&i3(i,r.latestValues)}return iQ(this.latestValues)&&i3(i,this.latestValues),i}removeTransform(e){let t=iX();rP(t,e);for(let e=0;e<this.path.length;e++){let i=this.path[e];if(!i.instance||!iQ(i.latestValues))continue;iK(i.latestValues)&&i.updateSnapshot();let r=iX();rP(r,i.measurePageBox()),rM(t,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,r)}return iQ(this.latestValues)&&rM(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==er.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t,i,r,n;let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isS
1haredProjectionDirty);let a=!!this.resumingFrom||this!==s;if(!(e||a&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:o,layoutId:l}=this.options;if(this.layout&&(o||l)){if(this.resolvedRelativeTargetAt=er.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iX(),this.relativeTargetOrigin=iX(),iO(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),rP(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=iX(),this.targetWithTransforms=iX()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,r=this.relativeTarget,n=this.relativeParent.target,iI(i.x,r.x,n.x),iI(i.y,r.y,n.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rP(this.target,this.layout.layoutBox),i2(this.target,this.targetDelta)):rP(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iX(),this.relativeTargetOrigin=iX(),iO(this.relativeTargetOrigin,this.target,e.target),rP(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}r$&&rz.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||iK(this.parent.latestValues)||iJ(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;let t=this.getLead(),i=!!this.resumingFrom||this!==t,r=!0;if((this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty))&&(r=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===er.timestamp&&(r=!1),r)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||s))return;rP(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;!function(e,t,i,r=!1){let n,s,a=i.length;if(a){t.x=t.y=1;for(let o=0;o<a;o++){s=(n=i[o]).projectionDelta;let{visualElement:a}=n.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(r&&n.options.layoutScroll&&n.scroll&&n!==n.root&&i3(e,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,i2(e,s)),r&&iQ(n.latestValues)&&i3(e,n.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,i),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=iX());let{target:l}=t;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rF(this.prevProjectionDelta.x,this.projectionDelta.x),rF(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),iD(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&rB(this.projectionDelta.x,this.prevProjectionDelta.x)&&rB(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),r$&&rz.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null==(t=this.options.visualElement)||t.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=iG(),this.projectionDelta=iG(),this.projectionDeltaWithTransform=iG()}setAnimationOrigin(e,t=!1){let i,r=this.snapshot,n=r?r.latestValues:{},s={...this.latestValues},a=iG();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=iX(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(ne));this.animationProgress=0,this.mixTargetDelta=t=>{let r=t/1e3;if(r9(a.x,e.x,r),r9(a.y,e.y,r),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,h,m,p,f,v;iO(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),m=this.relativeTarget,p=this.relativeTargetOrigin,f=o,v=r,r7(m.x,p.x,f.x,v),r7(m.y,p.y,f.y,v),i&&(u=this.relativeTarget,h=i,rD(u.x,h.x)&&rD(u.y,h.y))&&(this.isProjectionDirty=!1),i||(i=iX()),rP(i,this.relativeTarget)}l&&(this.animationValues=s,function(e,t,i,r,n,s){n?(e.opacity=tA(0,void 0!==i.opacity?i.opacity:1,rC(r)),e.opacityExit=tA(void 0!==t.opacity?t.opacity:1,0,rS(r))):s&&(e.opacity=tA(void 0!==t.opacity?t.opacity:1,void 0!==i.opacity?i.opacity:1,r));for(let n=0;n<ry;n++){let s=`border${rx[n]}Radius`,a=rw(t,s),o=rw(i,s);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||rj(a)===rj(o)?(e[s]=Math.max(tA(rb(a),rb(o),r),0),(eU.test(o)||eU.test(a))&&(e[s]+="
1%")):e[s]=o)}(t.rotate||i.rotate)&&(e.rotate=tA(t.rotate||0,i.rotate||0,r))}(s,n,this.latestValues,r,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(ei(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=et.update(()=>{var t;let i;ra.hasAnimatedSinceResize=!0,this.currentAnimation=(t={...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}},(i=eh(0)?0:ed(0)).start(ic("",i,1e3,t)),i.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:i,layout:r,latestValues:n}=e;if(t&&i&&r){if(this!==e&&this.layout&&r&&ns(this.options.animationType,this.layout.layoutBox,r.layoutBox)){i=this.target||iX();let t=iL(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let r=iL(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+r}rP(t,i),i3(t,n),iD(this.projectionDeltaWithTransform,this.layoutCorrected,t,n)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new rU),this.sharedNodes.get(e).add(t);let i=t.options.initialPromotionConfig;t.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null==(e=this.getStack())?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null==(e=this.getStack())?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:i}={}){let r=this.getStack();r&&r.promote(this,i),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:i}=e;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(t=!0),!t)return;let r={};i.z&&rX("z",e,r,this.animationValues);for(let t=0;t<rW.length;t++)rX(`rotate${rW[t]}`,e,r,this.animationValues),rX(`skew${rW[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}getProjectionStyles(e){var t,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return rG;let r={visibility:""},n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=rg(null==e?void 0:e.pointerEvents)||"",r.transform=n?n(this.latestValues,""):"none",r;let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=rg(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!iQ(this.latestValues)&&(t.transform=n?n({},""):"none",this.hasProjected=!1),t}let a=s.animationValues||s.latestValues;this.applyTransformsToTarget(),r.transform=function(e,t,i){let r="",n=e.x.translate/t.x,s=e.y.translate/t.y,a=(null==i?void 0:i.z)||0;if((n||s||a)&&(r=`translate3d(${n}px, ${s}px, ${a}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),i){let{transformPerspective:e,rotate:t,rotateX:n,rotateY:s,skewX:a,skewY:o}=i;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),n&&(r+=`rotateX(${n}deg) `),s&&(r+=`rotateY(${s}deg) `),a&&(r+=`skewX(${a}deg) `),o&&(r+=`skewY(${o}deg) `)}let o=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==o||1!==l)&&(r+=`scale(${o}, ${l}
1)`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,a),n&&(r.transform=n(a,r.transform));let{x:o,y:l}=this.projectionDelta;for(let e in r.transformOrigin=`${100*o.origin}% ${100*l.origin}% 0`,s.animationValues?r.opacity=s===this?null!=(i=null!=(t=a.opacity)?t:this.latestValues.opacity)?i:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=s===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,ru){if(void 0===a[e])continue;let{correct:t,applyTo:i}=ru[e],n="none"===r.transform?a[e]:t(a[e],s);if(i){let e=i.length;for(let t=0;t<e;t++)r[i[t]]=n}else r[e]=n}return this.options.layoutId&&(r.pointerEvents=s===this?rg(null==e?void 0:e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null==(t=e.currentAnimation)?void 0:t.stop()}),this.root.nodes.forEach(r0),this.root.sharedNodes.clear()}}}function rq(e){e.updateLayout()}function rZ(e){var t;let i=(null==(t=e.resumeFrom)?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:r}=e.layout,{animationType:n}=e.options,s=i.source!==e.layout.source;"size"===n?iY(e=>{let r=s?i.measuredBox[e]:i.layoutBox[e],n=iL(r);r.min=t[e].min,r.max=r.min+n}):ns(n,i.layoutBox,t)&&iY(r=>{let n=s?i.measuredBox[r]:i.layoutBox[r],a=iL(t[r]);n.max=n.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)});let a=iG();iD(a,t,i.layoutBox);let o=iG();s?iD(o,e.applyTransform(r,!0),i.measuredBox):iD(o,t,i.layoutBox);let l=!rR(a),u=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:n,layout:s}=r;if(n&&s){let a=iX();iO(a,i.layoutBox,n.layoutBox);let o=iX();iO(o,t,s.layoutBox),r_(a,o)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=o,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:i,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function rK(e){r$&&rz.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function rQ(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function rJ(e){e.clearSnapshot()}function r0(e){e.clearMeasurements()}function r1(e){e.isLayoutDirty=!1}function r2(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function r4(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function r5(e){e.resolveTargetDelta()}function r3(e){e.calcProjection()}function r6(e){e.resetSkewAndRotation()}function r8(e){e.removeLeadSnapshot()}function r9(e,t,i){e.translate=tA(t.translate,0,i),e.scale=tA(t.scale,1,i),e.origin=t.origin,e.originPoint=t.originPoint}function r7(e,t,i,r){e.min=tA(t.min,i.min,r),e.max=tA(t.max,i.max,r)}function ne(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let nt={duration:.45,ease:[.4,0,.1,1]},ni=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),nr=ni("applewebkit/")&&!ni("chrome/")?Math.round:V;function nn(e){e.min=nr(e.min),e.max=nr(e.max)}function ns(e,t,i){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(rO(t)-rO(i)))}function na(e){var t;return e!==e.root&&(null==(t=e.scroll)?void 0:t.wasRoot)}let no=rY({attachResizeListener:(e,t)=>iS(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),nl={current:void 0},nu=rY({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!nl.current){let e=new no({});e.mount(window),e.setOptions({layoutScroll:!0}),nl.current=e}return nl.current},resetTransform:(e,t)=>
1{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function nc(e,t){let i=function(e){if(e instanceof Element)return[e];if("string"==typeof e){let t=document.querySelectorAll(e);return t?Array.from(t):[]}return Array.from(e)}(e),r=new AbortController;return[i,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function nd(e){return t=>{"touch"===t.pointerType||iw.x||iw.y||e(t)}}function nh(e,t,i){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===i);let n=r["onHover"+i];n&&et.postRender(()=>n(t,iT(t)))}let nm=(e,t)=>!!t&&(e===t||nm(e,t.parentElement)),np=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),nf=new WeakSet;function nv(e){return t=>{"Enter"===t.key&&e(t)}}function ng(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function nx(e){return iC(e)&&!(iw.x||iw.y)}function ny(e,t,i){let{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===i);let n=r["onTap"+("End"===i?"":i)];n&&et.postRender(()=>n(t,iT(t)))}let nb=new WeakMap,nj=new WeakMap,nw=e=>{let t=nb.get(e.target);t&&t(e)},nC=e=>{e.forEach(nw)},nS={some:0,all:1},nT=(0,h.createContext)({strict:!1}),nk=(0,h.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),nP=(0,h.createContext)({});function nF(e){return C(e.animate)||E.some(t=>k(e[t]))}function nA(e){return!!(nF(e)||e.variants)}function nN(e){return Array.isArray(e)?e.join(" "):e}let nE="u">typeof window,nV={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},nM={};for(let e in nV)nM[e]={isEnabled:t=>nV[e].some(e=>!!t[e])};let nL=Symbol.for("motionComponentSymbol"),nR=nE?h.useLayoutEffect:h.useEffect,nD=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function nI(e){if("string"!=typeof e||e.includes("-"));else if(nD.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let n_=e=>(t,i)=>{let r,n=(0,h.useContext)(nP),s=(0,h.useContext)(rr),a=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:i},r,n,s){let a={latestValues:function(e,t,i,r){let n={},s=r(e,{});for(let e in s)n[e]=rg(s[e]);let{initial:a,animate:o}=e,l=nF(e),u=nA(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===o&&(o=t.animate));let c=!!i&&!1===i.initial,d=(c=c||!1===a)?o:a;if(d&&"boolean"!=typeof d&&!C(d)){let t=Array.isArray(d)?d:[d];for(let i=0;i<t.length;i++){let r=F(e,t[i]);if(r){let{transitionEnd:e,transition:t,...i}=r;for(let e in i){let t=i[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(n[e]=t)}for(let t in e)n[t]=e[t]}}}return n}(r,n,s,e),renderState:t()};return i&&(a.onMount=e=>i({props:r,current:e,...a}),a.onUpdate=e=>i(e)),a})(e,t,n,s);return i?a():(null===(r=(0,h.useRef)(null)).current&&(r.current=a()),r.current)},nO=(e,t)=>t&&"number"==typeof e?t.transform(e):e,nB={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nU=q.length;function nz(e,t,i){let{style:r,vars:n,transformOrigin:s}=e,a=!1,o=!1;for(let e in t){let i=t[e];if(Z.has(e)){a=!0;continue}if(tv(e)){n[e]=i;continue}{let t=nO(i,e9[e]);e.startsWith("origin")?(o=!0,s[e]=t):r[e]=t}}if(!t.transform&&(a||i?r.transform=function(e,t,i){let r="",n=!0;for(let s=0;s<nU;s++){let a=q[s],o=e[a];if(void 0===o)continue;let l=!0;if(!(l="number"==typeof o?o===+!!a.startsWith("scale"):0===parseFloat(o))||i){let e=nO(o,e9[a]);if(!l){n=!1;let t=nB[a]||a;r+=`${t}(${e}) `}i&&(t[a]=e)}}return r=r.trim(),i?r=i(t,n?"":r):n&&(r="none"),r}(t,e.transform,i):r.transform&&(r.transform="none")),o){let{originX:e="50%",originY:t="50%",originZ:i=0}=s;r.transformOrigin=`${e} ${t} ${i}`}}let n$={offset:"stroke-dashoffset",array:"stroke-dasharray"},nW={offset:"strokeDashoffset",array:"strokeDasharray"};function nG(e,t,i){return"string"==typeof e?e:ez.transform(t+i*e)}function nH(e,{attrX:t,attrY:i,attrScale:r,originX:n,originY:s,pathLength:a,pathSpacing:o=1,pathOffset:l=0,...u},c,d){let h,m;
1if(nz(e,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:p,style:f,dimensions:v}=e;p.transform&&(v&&(f.transform=p.transform),delete p.transform),v&&(void 0!==n||void 0!==s||f.transform)&&(h=nG(void 0!==n?n:.5,v.x,v.width),m=nG(void 0!==s?s:.5,v.y,v.height),f.transformOrigin=`${h} ${m}`),void 0!==t&&(p.x=t),void 0!==i&&(p.y=i),void 0!==r&&(p.scale=r),void 0!==a&&function(e,t,i=1,r=0,n=!0){e.pathLength=1;let s=n?n$:nW;e[s.offset]=ez.transform(-r);let a=ez.transform(t),o=ez.transform(i);e[s.array]=`${a} ${o}`}(p,a,o,l,!1)}let nX=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),nY=()=>({...nX(),attrs:{}}),nq=e=>"string"==typeof e&&"svg"===e.toLowerCase();function nZ(e,{style:t,vars:i},r,n){for(let s in Object.assign(e.style,t,n&&n.getProjectionStyles(r)),i)e.style.setProperty(s,i[s])}let nK=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function nQ(e,t,i,r){for(let i in nZ(e,t,void 0,r),t.attrs)e.setAttribute(nK.has(i)?i:ep(i),t.attrs[i])}function nJ(e,{layout:t,layoutId:i}){return Z.has(e)||e.startsWith("origin")||(t||void 0!==i)&&(!!ru[e]||"opacity"===e)}function n0(e,t,i){var r;let{style:n}=e,s={};for(let a in n)(eh(n[a])||t.style&&eh(t.style[a])||nJ(a,e)||(null==(r=null==i?void 0:i.getValue(a))?void 0:r.liveStyle)!==void 0)&&(s[a]=n[a]);return s}function n1(e,t,i){let r=n0(e,t,i);for(let i in e)(eh(e[i])||eh(t[i]))&&(r[-1!==q.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=e[i]);return r}let n2=["x","y","width","height","cx","cy","r"],n4={useVisualState:n_({scrapeMotionValuesFromProps:n1,createRenderState:nY,onUpdate:({props:e,prevProps:t,current:i,renderState:r,latestValues:n})=>{if(!i)return;let s=!!e.drag;if(!s){for(let e in n)if(Z.has(e)){s=!0;break}}if(!s)return;let a=!t;if(t)for(let i=0;i<n2.length;i++){let r=n2[i];e[r]!==t[r]&&(a=!0)}a&&et.read(()=>{try{r.dimensions="function"==typeof i.getBBox?i.getBBox():i.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}et.render(()=>{nH(r,n,nq(i.tagName),e.transformTemplate),nQ(i,r)})})}})},n5={useVisualState:n_({scrapeMotionValuesFromProps:n0,createRenderState:nX})};function n3(e,t,i){for(let r in t)eh(t[r])||nJ(r,i)||(e[r]=t[r])}let n6=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function n8(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||n6.has(e)}let n9=e=>!n8(e);try{(n=(()=>{let e=Error("Cannot find module '@emotion/is-prop-valid'");throw e.code="MODULE_NOT_FOUND",e})().default)&&(n9=e=>e.startsWith("on")?!n8(e):n(e))}catch(e){}let n7={current:null},se={current:!1},st=[...tw,eX,e2],si=new WeakMap,sr=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class sn{scrapeMotionValuesFromProps(e,t,i){return{}}constructor({parent:e,props:t,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:n,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tp,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=ea.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,et.render(this.render,!1,!0))};const{latestValues:o,renderState:l,onUpdate:u}=s;this.onUpdate=u,this.latestValues=o,this.baseTarget={...o},this.initialValues=t.initial?{...o}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=!!n,this.isControllingVariants=nF(t),this.isVariantNode=nA(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in d){const t=d[e];void 0!==o[e]&&eh(t)&&t.set(o[e],!1)}}mount(e){this.current=e,si.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
1h((e,t)=>this.bindToMotionValue(t,e)),se.current||function(){if(se.current=!0,nE)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>n7.current=e.matches;e.addListener(t),t()}else n7.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||n7.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in si.delete(this.current),this.projection&&this.projection.unmount(),ei(this.notifyUpdate),ei(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){let i;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let r=Z.has(e),n=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&et.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=t.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{n(),s(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in nM){let t=nM[e];if(!t)continue;let{isEnabled:i,Feature:r}=t;if(!this.features[e]&&r&&i(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):iX()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<sr.length;t++){let i=sr[t];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let r=e["on"+i];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=function(e,t,i){for(let r in t){let n=t[r],s=i[r];if(eh(n))e.addValue(r,n);else if(eh(s))e.addValue(r,ed(n,{owner:e}));else if(s!==n)if(e.hasValue(r)){let t=e.getValue(r);!0===t.liveStyle?t.jump(n):t.hasAnimated||t.set(n)}else{let t=e.getStaticValue(r);e.addValue(r,ed(void 0!==t?t:n,{owner:e}))}}for(let r in i)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let i=this.values.get(e);t!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return void 0===i&&void 0!==t&&(i=ed(null===t?void 0:t,{owner:this}),this.addValue(e,i)),i}readValue(e,t){var i;let r=void 0===this.latestValues[e]&&this.current?null!=(i=this.getBaseTargetFromProps(this.props,e))?i:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=r){let i,n;if("string"==typeof r&&(i=r,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(i)||(n=r,/^0[^.\s]+$/u.test(n))))r=parseFloat(r);else{let i;i=r,!st.find(tj(i))&&e2.test(t)&&(r=tt(e,t))}this.setBaseTarget(e,eh(r)?r.get():r)}return eh(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let i,{initial:r}=this.props;if("string"==typeof r||"object"==typeof r){let n=F(this.props,r,null==(t=this.presenceContext)?void 0:t.custom);n&&(i=n[e])}if(r&&void 0!==i)return i;let n=this.getBaseTargetFromProps(this.props,e);return void 0===n||eh(n)?void 0!==this.initialValues[e]&&void 0===i?void 0:this.baseTarget[e]:n}on(e,t){return this.events[e]||(this.events[e]=new eu),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class ss extends sn{constructor(){super(...arguments),this.KeyframeResolver=tS}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:i}){delete t[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;eh(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}class sa extends ss{constructor(){super(...arguments),this.type="html",this.renderInstance=nZ}readValueFromInstance(e,t){if(Z.has(t)){let e=te(t);return e&&e.default||0}{let i=window.getComputedStyle(e),r=(tv(t)?i.getPropertyValue(t):i[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return i6(e,t)}build(e,t,i){nz(e,t,i.transformTemplate)}scrapeMotionValuesFromProps(e,t,i){return n0(e,t,i)}}class so extends ss{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=iX}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Z.has(t)){let e=te(t);return e&&e.default||0}return t=nK.has(t)?t:ep(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,i){return n1(e,t,i)}build(e,t,i){nH(e,t,this.isSVGTag,i.transformTemplate)}renderInstance(e,t,i,r){nQ(e,t,i,r)}mount(e){this.isSVGTag=nq(e.tagName),super.mount(e)}}let sl=function(e){if("u"<typeof Proxy)return e;let t=new Map;return new Proxy((...t)=>e(...t),{get:(i,r)=>"create"===r?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}((s={animation:{Feature:class extends ib{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:i})=>(function(e,t,i={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>ih(e,t,i)));else if("string"==typeof t)r=ih(e,t,i);else{let n="function"==typeof t?A(e,t,i.custom):t;r=Promise.all(id(e,n,i))}return r.then(()=>
1{e.notify("AnimationComplete",t)})})(e,t,i))),i=iy(),r=!0,n=t=>(i,r)=>{var n;let s=A(e,r,"exit"===t?null==(n=e.presenceContext)?void 0:n.custom:void 0);if(s){let{transition:e,transitionEnd:t,...r}=s;i={...i,...r,...t}}return i};function s(s){let{props:a}=e,o=function e(t){if(!t)return;if(!t.isControllingVariants){let i=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(i.initial=t.props.initial),i}let i={};for(let e=0;e<ip;e++){let r=E[e],n=t.props[r];(k(n)||!1===n)&&(i[r]=n)}return i}(e.parent)||{},l=[],u=new Set,c={},d=1/0;for(let t=0;t<ig;t++){var h,m;let p=iv[t],f=i[p],v=void 0!==a[p]?a[p]:o[p],g=k(v),x=p===s?f.isActive:null;!1===x&&(d=t);let y=v===o[p]&&v!==a[p]&&g;if(y&&r&&e.manuallyAnimateOnMount&&(y=!1),f.protectedKeys={...c},!f.isActive&&null===x||!v&&!f.prevProp||C(v)||"boolean"==typeof v)continue;let b=(h=f.prevProp,"string"==typeof(m=v)?m!==h:!!Array.isArray(m)&&!T(m,h)),j=b||p===s&&f.isActive&&!y&&g||t>d&&g,w=!1,P=Array.isArray(v)?v:[v],F=P.reduce(n(p),{});!1===x&&(F={});let{prevResolvedValues:A={}}=f,N={...A,...F},E=t=>{j=!0,u.has(t)&&(w=!0,u.delete(t)),f.needsAnimating[t]=!0;let i=e.getValue(t);i&&(i.liveStyle=!1)};for(let e in N){let t=F[e],i=A[e];if(!c.hasOwnProperty(e))(S(t)&&S(i)?T(t,i):t===i)?void 0!==t&&u.has(e)?E(e):f.protectedKeys[e]=!0:null!=t?E(e):u.add(e)}f.prevProp=v,f.prevResolvedValues=F,f.isActive&&(c={...c,...F}),r&&e.blockInitialAnimation&&(j=!1);let V=!(y&&b)||w;j&&V&&l.push(...P.map(e=>({animation:e,options:{type:p}})))}if(u.size){let t={};u.forEach(i=>{let r=e.getBaseTarget(i),n=e.getValue(i);n&&(n.liveStyle=!0),t[i]=null!=r?r:null}),l.push({animation:t})}let p=!!l.length;return r&&(!1===a.initial||a.initial===a.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,p?t(l):Promise.resolve()}return{animateChanges:s,setActive:function(t,r){var n;if(i[t].isActive===r)return Promise.resolve();null==(n=e.variantChildren)||n.forEach(e=>{var i;return null==(i=e.animationState)?void 0:i.setActive(t,r)}),i[t].isActive=r;let a=s(t);for(let e in i)i[e].protectedKeys={};return a},setAnimateFunction:function(i){t=i(e)},getState:()=>i,reset:()=>{i=iy(),r=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();C(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null==(e=this.unmountControls)||e.call(this)}}},exit:{Feature:class extends ib{constructor(){super(...arguments),this.id=ij++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends ib{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:r,margin:n,amount:s="some",once:a}=i,o={root:r?r.current:void 0,rootMargin:n,threshold:"number"==typeof s?s:nS[s]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,a&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:i,onViewportLeave:r}=this.node.getProps(),n=t?i:r;n&&n(e)};return e=this.node.current,t=function({root:e,...t}){let i=e||document;nj.has(i)||nj.set(i,{});let r=nj.get(i),n=JSON.stringify(t);return r[n]||(r[n]=new IntersectionObserver(nC,{root:e,...t})),r[n]}(o),nb.set(e,l),t.observe(e),()=>{nb.delete(e),t.unobserve(e)}}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return i=>e[i]!==t[i]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends ib{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,i={}){let[r,n,s]=nc(e,i),a=e=>{let r=e.currentTarget;if(!nx(e)||nf.has(r))return;nf.add(r);let s=t(e),a=(e,t)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),nx(e)&&nf.has(r)&&(nf.delete(r),"function"==typeof s&&s(e,{success:t}))},o=e=>{a(e,i.useGlobalTarget||nm(r,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",o,n),window.addEventListener("pointercancel",l,n)};
1return r.forEach(e=>{np.has(e.tagName)||-1!==e.tabIndex||null!==e.getAttribute("tabindex")||(e.tabIndex=0),(i.useGlobalTarget?window:e).addEventListener("pointerdown",a,n),e.addEventListener("focus",e=>((e,t)=>{let i=e.currentTarget;if(!i)return;let r=nv(()=>{if(nf.has(i))return;ng(i,"down");let e=nv(()=>{ng(i,"up")});i.addEventListener("keyup",e,t),i.addEventListener("blur",()=>ng(i,"cancel"),t)});i.addEventListener("keydown",r,t),i.addEventListener("blur",()=>i.removeEventListener("keydown",r),t)})(e,n),n)}),s}(e,e=>(ny(this.node,e,"Start"),(e,{success:t})=>ny(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends ib{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=tI(iS(this.node.current,"focus",()=>this.onFocus()),iS(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends ib{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,i={}){let[r,n,s]=nc(e,i),a=nd(e=>{let{target:i}=e,r=t(e);if("function"!=typeof r||!i)return;let s=nd(e=>{r(e),i.removeEventListener("pointerleave",s)});i.addEventListener("pointerleave",s,n)});return r.forEach(e=>{e.addEventListener("pointerenter",a,n)}),s}(e,e=>(nh(this.node,e,"Start"),e=>nh(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends ib{constructor(){super(...arguments),this.removePointerDownListener=V}onPointerDown(e){this.session=new iF(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:i8(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:rt(e),onStart:rt(t),onMove:i,onEnd:(e,t)=>{delete this.session,r&&et.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=ik(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends ib{constructor(e){super(e),this.removeGroupControls=V,this.removeListeners=V,this.controls=new i7(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||V}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:nu,MeasureLayout:rm},layout:{ProjectionNode:nu,MeasureLayout:rm}},a=(e,t)=>nI(e)?new so(t):new sa(t,{allowProjection:e!==h.Fragment}),function(e,{forwardMotionProps:t}={forwardMotionProps:!1}){return function({preloadedFeatures:e,createVisualElement:t,useRender:i,useVisualState:r,Component:n}){var s,a;function l(e,s){var a;let l,u={...(0,h.useContext)(nk),...e,layoutId:function({layoutId:e}){let t=(0,h.useContext)(rn).id;return t&&void 0!==e?t+"-"+e:e}(e)},{isStatic:c}=u,d=function(e){let{initial:t,animate:i}=function(e,t){if(nF(e)){let{initial:t,animate:i}=e;return{initial:!1===t||k(t)?t:void 0,animate:k(i)?i:void 0}}return!1!==e.inherit?t:{}}(e,(0,h.useContext)(nP));return(0,h.useMemo)(()=>({initial:t,animate:i}),[nN(t),nN(i)])}(e),m=r(e,c);if(!c&&nE){(0,h.useContext)(nT).strict;let e=function(e){let{drag:t,layout:i}=nM;if(!t&&!i)return{};let r={...t,...i};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==i?void 0:i.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(u);l=e.MeasureLayout,d.visualElement=function(e,t,i,r,n){var s,a;let{visualElement:o}=(0,h.useContext)(nP),l=(0,h.useContext)(nT),u=(0,h.useContext)(rr),c=(0,h.useContext)(nk).reducedMotion,d=(0,h.useRef)(null);r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:o,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:c}));let m=d.current,p=(0,h.useContext)(rs);m&&!m.projection&&n&&("html"===m.type||"svg"===m.type)&&function(e,t,i,r){let{layoutId:n,layout:s,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:u}=t;e.projection=new i(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:n,layout:s,alwaysMeasureLayout:!!a||o&&iM(o),visualElement:e,animationType:"string"==typeof s?s:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}(d.current,i,n,p);let f=(0,h.useRef)(!1);(0,h.useInsertionEffect)(()=>{m&&f.current&&m.update(i,u)});let v=i[ef],g=(0,h.useRef)(!!v&&!(null==(s=window.MotionHandoffIsComplete)?void 0:s.call(window,v))&&(null==(a=window.MotionHasOptimisedAnimation)?void 0:a.call(window,v)));return nR(()=>{m&&(f.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),rc.render(m.render),g.current&&m.animationState&&m.animationState.animateChanges())}),(0,h.useEffect)(()=>{m&&(!g.current&&m.animationState&&m.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var e;null==(e=window.MotionHandoffMarkAsComplete)||e.call(window,v)}),g.current=!1))}),m}(n,m,u,t,e.ProjectionNode)}return(0,o.jsxs)(nP.Provider,{value:d,children:[l&&d.visualElement?(0,o.jsx)(l,{visualElement:d.visualElement,...u}):null,i(n,e,(a=d.visualElement,(0,h.useCallback)(e=>{e&&m.onMount&&m.onMount(e),a&&(e?a.mount(e):a.unmount()),s&&("function"==typeof s?s(e):iM(s)&&(s.current=e))},[a])),m,c,d.visualElement)]})}e&&function(e){for(let t in e)nM[t]={...nM[t],...e[t]}}(e),l.displayName=`motion.${"string"==typeof n?n:`create(${null!=(a=null!=(s=n.displayName)?s:n.name)?a:""})`}`;let u=(0,h.forwardRef)(l);return u[nL]=n,u}
1({...nI(e)?n4:n5,preloadedFeatures:s,useRender:function(e=!1){return(t,i,r,{latestValues:n},s)=>{let a=(nI(t)?function(e,t,i,r){let n=(0,h.useMemo)(()=>{let i=nY();return nH(i,t,nq(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){let t={};n3(t,e.style,e),n.style={...t,...n.style}}return n}:function(e,t){let i,r,n={},s=(i=e.style||{},n3(r={},i,e),Object.assign(r,function({transformTemplate:e},t){return(0,h.useMemo)(()=>{let i=nX();return nz(i,t,e),Object.assign({},i.vars,i.style)},[t])}(e,t)),r);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=s,n})(i,n,s,t),o=function(e,t,i){let r={};for(let n in e)("values"!==n||"object"!=typeof e.values)&&(n9(n)||!0===i&&n8(n)||!t&&!n8(n)||e.draggable&&n.startsWith("onDrag"))&&(r[n]=e[n]);return r}(i,"string"==typeof t,e),l=t!==h.Fragment?{...o,...a,ref:r}:{},{children:u}=i,c=(0,h.useMemo)(()=>eh(u)?u.get():u,[u]);return(0,h.createElement)(t,{...l,children:c})}}(t),createVisualElement:a,Component:e})})),su=({duration:e,showProgressBar:t})=>{let i=16*Math.PI;return(0,o.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",children:[(0,o.jsx)("circle",{cx:"10",cy:"10",r:8,fill:"none",className:"stroke-black/20 md:stroke-white/20",strokeWidth:"1"}),!1===t&&(0,o.jsx)(sl.circle,{cx:"10",cy:"10",r:8,fill:"none",className:"stroke-black md:stroke-white",strokeWidth:"2",strokeDasharray:i,strokeDashoffset:i,animate:{strokeDashoffset:0},transition:{duration:e,ease:"easeIn"},strokeLinecap:"round"}),(0,o.jsx)("circle",{cx:"10",cy:"10",r:"3",className:"fill-black md:fill-white"})]})};e.s(["default",0,({events:e,categories:t})=>{let[i,r]=(0,h.useState)(),[n,s]=(0,h.useState)(0),[a,m]=(0,h.useState)(!1);return(0,h.useEffect)(()=>{i&&(s(i.selectedScrollSnap()+1),i.on("select",()=>{s(i.selectedScrollSnap()+1)}),i.on("pointerDown",()=>{m(!0)}))},[i]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(u.Carousel,{className:"overflow-hidden",setApi:r,opts:{align:"start",containScroll:!1,loop:!0},plugins:[(0,d.default)({delay:6e3})],children:(0,o.jsx)(u.CarouselContent,{className:"ml-4 lg:ml-8 xl:ml-14",children:e.map((e,i)=>(0,o.jsx)(u.CarouselItem,{className:"mr-6 basis-[90%]",children:(0,o.jsx)(w,{event:e,category:t?.find(t=>t.id===e.category.id)})},i))})}),(0,o.jsx)("div",{className:"charlie-darwin-container flex justify-center md:justify-start",children:(0,o.jsx)("ul",{className:"absolute mt-3 flex items-center gap-1 md:-mt-16 md:ml-7",children:e.map((e,t)=>(0,o.jsx)("li",{children:(0,o.jsx)(l.Button,{"aria-label":`Go to slide ${t+1}`,size:"icon",variant:"ghost",className:"relative rounded-full lg:hover:bg-white/20",onClick:()=>{i?.scrollTo(t),m(!0)},children:t+1===n?(0,o.jsx)(su,{duration:5.5,showProgressBar:a}):(0,o.jsx)(c.Circle,{className:"text-black/30 md:text-white/30",size:8,weight:"fill"},t)})},t))})})]})}],718256)},234378,e=>{"use strict";var t=e.i(843476),i=e.i(919737),r=e.i(499212),n=e.i(694284),s=e.i(7920),a=e.i(88606),o=e.i(647163),l=e.i(657688),u=e.i(522016);let c=({data:e,title:i,width:r,height:n,className:s})=>{if(!e.cms?.eventLogo?.responsiveImage)return(0,t.jsx)("div",{className:"absolute bottom-16 grid h-full w-full content-end justify-center px-4",children:(0,t.jsx)("h2",{className:"line-clamp-2 text-center font-druk text-[40px] uppercase leading-none text-white",children:i})});let a=e.cms.eventLogo.responsiveImage;return(0,t.jsx)("div",{className:(0,o.default)(s,"grid h-full content-end justify-center"),children:(0,t.jsx)(l.default,{src:a.src,alt:a.alt??"",width:r,height:n,sizes:`${r}px`,className:"mb-10 object-contain object-center",placeholder:a.base64?"blur":void 0,blurDataURL:a.base64??void 0})})},d=({event:e})=>{let i="EventGroupRecord"===e.__typename;return(0,t.jsxs)("div",{className:"group relative",children:[(0,t.jsxs)(u.default,{href:i?(0,o.constructEventGroupUrl)(e):(0,o.constructEventUrl)(e),children:[(0,t.jsxs)("div",{className:"relative mb-2 aspect-[0.71/1]",children:[(0,t.jsxs)("div",{className:"absolute h-full w-full",style:{clipPath:"url(#clipPathId)",WebkitClipPath:"url(#clipPathId)"},children:[(0,t.jsx)(l.default,{src:(0,o.imageOrPlaceholder)("2250x3000",e.title,i?e.event_group_info.images:e.images),alt:e.title,fill:!0,sizes:"(min-width: 1536px) 30vw, (min-width: 1024px) 50vw, (min-width: 640px) 90vw, 25vw",className:"object-cover"}),(0,t.jsx)("div",{className:"absolute inset-0",style:{backgroundImage:`linear-gradient(to bottom, transparent 50%, ${e.cms?.backgroundColor?.hex})`,opacity:.6}})]}),(0,t.jsx)("svg",{width:"0",height:"0",children:(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clipPathId",clipPathUnits:"objectBoundingBox",children:(0,t.jsx)("path",{d:"M0.48,0.0003 C0.48,0.0003 0.482,0.0003 0.483,0 H0.986 C0.995,0 1,0.005 1,0.014 V0.432 V0.903 C1,0.910 0.996,0.916 0.990,0.919 L0.520,1 C0.519,1 0.517,1 0.516,1 H0.013 C0.005,1 0,0.995 0,0.986 V0.432 V0.095 C0,0.091 0.004,0.086 0.010,0.086 L0.480,0.0003 Z"})})})}),(0,t.jsxs)("svg",{style:{position:"absolute",top:0,left:0,width:"24%"},viewBox:"0 0 70 26",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M10.0109 17.5115C10.0109 21.524 8.24293 24.2513 5.42878 24.9787L4.63194 25.1848C1.61858 25.9636 0 23.8644 0 19.4158V7.2419C0.000311265 2.827
154 1.34498 0 4.60735 0H5.4045C8.69146 0 10.0112 2.58132 10.0112 6.53159L10.0109 17.5115ZM5.7525 6.28071C5.7525 5.36933 5.50348 4.9264 5.00577 4.95192C4.43304 4.98118 4.25873 5.45275 4.25873 6.37814V18.9688C4.25873 19.7289 4.45825 20.1504 5.03067 20.0321C5.5536 19.9241 5.7525 19.4273 5.7525 18.679V6.28071Z"}),(0,t.jsx)("path",{d:"M14.9413 22.1963L10.8326 23.2431V0.308098L17.2824 0.28631C19.1002 0.280085 20.3452 1.46352 20.3452 3.89325V6.59908C20.3452 8.50434 19.4488 9.46304 18.7266 9.91188C19.4239 10.1363 20.3452 10.8793 20.3452 12.398V19.1907C20.3452 19.9636 20.4697 20.3467 20.5942 20.6185V20.7564L16.5353 21.7904C16.3607 21.5744 16.2116 21.1187 16.2116 20.3352V14.0691C16.2116 13.3439 16.0871 13.0438 15.5144 13.1307L14.9417 13.2175L14.9413 22.1963ZM14.9413 9.09637L15.4643 9.04189C15.9875 8.98742 16.2113 8.70262 16.2113 7.91978V5.01879C16.2113 4.23596 16.1117 4.00811 15.539 4.03488L14.9413 4.06289V9.09637Z"}),(0,t.jsx)("path",{d:"M25.3249 19.5512L21.2162 20.598V0.272949L25.3249 0.258942V19.5512Z"}),(0,t.jsx)("path",{d:"M29.6324 18.6986C27.3166 19.2962 26.1711 17.5917 26.1711 15.2582V4.84665C26.1711 2.28214 27.3166 -6.10352e-05 30.7035 -6.10352e-05H31.4007C35.0114 -6.10352e-05 35.858 1.9911 35.858 4.00437V5.92799L31.8735 6.2847V4.2926C31.8735 3.7233 31.7244 3.37468 31.1265 3.40332C30.6534 3.42604 30.4296 3.75131 30.4296 4.38069V14.0386C30.4296 14.7402 30.7035 15.0216 31.2513 14.9064C31.824
114.786 32.0979 14.3972 32.0979 13.7355V10.4728L30.9525 10.6443V7.35234L36.0323 6.82724V16.8232L33.3676 17.5021C33.3181 17.1662 33.0688 16.3426 32.8696 16.0155C32.3961 16.8786 31.5 18.2161 29.8316 18.6469L29.6321 18.6983L29.6324 18.6986Z"}),(0,t.jsx)("path",{d:"M40.9625 15.5676L36.8538 16.6143V0.220306L40.9625 0.206299V15.5676Z"}),(0,t.jsx)("path",{d:"M45.8425 0.189794L47.9595 6.76434V0.182635L51.4705 0.170807V12.8907L47.8595 13.8105L45.4192 7.00526V14.4321L41.8583 15.3391V0.203178L45.8425 0.189794Z"}),(0,t.jsx)("path",{d:"M57.6205 9.68712L55.728 10.0996L55.4541 11.8759L51.8932 12.783L54.2589 0.161468L59.3138 0.144348L61.9035 10.2331L57.919 11.2481L57.6205 9.68712ZM56.1016 7.73487L57.2473 7.54219L56.6743 4.17212L56.1016 7.73487Z"}),(0,t.jsx)("path",{d:"M66.3854 0.120392V7.18612L69.7471 6.50912V8.23477L62.2767 10.1378V0.134399L66.3854 0.120392Z"})]}),(0,t.jsxs)("svg",{viewBox:"0 0 46 21",xmlns:"http://www.w3.org/2000/svg",style:{position:"absolute",bottom:0,right:0,width:"20%"},children:[(0,t.jsx)("path",{d:"M8.71543 8.59421V11.1214L6.39962 11.574V20.8114L2.31582 20.8248V12.3723L0 12.8249V10.7348L8.71543 8.59421Z"}),(0,t.jsx)("path",{d:"M13.4463 18.832L11.5538 18.9055L11.2799 20.7958L7.71902 20.8073L10.0846 8.2577L15.1399 7.01606L17.7296 20.7746L13.7451 20.7877L13.4463 18.832ZM11.9273 16.3248L13.0728 16.2255L12.5001 12.2877L11.9273 16.3248Z"}),(0,t.jsx)("path",{d:"M22.2113 5.27954V17.4727L25.5729 17.2888V20.7494L18.1026 20.7737V6.28866L22.2113 5.27954Z"}),(0,t.jsx)("path",{d:"M30.354 20.7339L26.2453 20.7472V4.28876L30.354 3.27964V9.44986L32.2714 2.8087L36.3555 1.80549L33.8405 10.5891L36.5049 20.7139L32.197 20.7279L30.3543 13.7662L30.354 20.7339Z"}),(0,t.jsx)("path",{d:"M41.7836 0.200324C44.7967 -0.549514 45.8923 0.860519 45.8923 3.51312V6.05149L41.933 6.72601V4.54746C41.933 4.00305 41.8085 3.70206 41.3105 3.80509C40.8371 3.90314 40.688 4.2558 40.688 4.81888V5.32873C40.688 6.16012 40.8623 6.6127 41.5844 7.21936L43.701 8.9833C45.5686 10.6819 46.1413 12.0446 46.1413 14.361V15.4193C46.1413 18.7374 44.722 20.9683 41.5595 20.9683H40.6631C37.7994 20.9683 36.3552 19.5707 36.3552 16.8004V13.7759L40.3892 13.4039V16.157C40.3892 16.8253 40.5635 17.1914 41.0864 17.1674C41.5844 17.1447 41.7587 16.7288 41.7587 15.941V15.3972C41.7587 14.2561 41.684 13.746 40.7876 12.9376L38.6461 11.1317C37.0773 9.88722 36.5295 8.4361 36.5295 6.50034V5.60856C36.5295 3.087 37.9737 1.14844 40.8623 0.429416L41.7836 0.200324Z"})]}),e.cms&&(0,t.jsx)(c,{width:300,height:150,data:e,title:e.title})]}),(0,t.jsx)("p",{className:"truncate text-16 font-medium",children:i?e.event_group_info.title:e.title}),(0,t.jsx)("p",{className:"mb-2 truncate text-14 opacity-50",children:e.speaker}),(0,t.jsxs)("div",{className:"flex gap-2 overflow-x-auto",children:["EventRecord"===e.__typename&&e.few_tickets_left&&!1===e.sold_out&&(0,t.jsx)(r.default,{variant:"grey-transparent"}),(0,t.jsx)(n.default,{variant:"grey-transparent",event:e,type:"EventRecord"===e.__typename?"event":"eventGroup"}),"EventRecord"===e.__typename&&(0,t.jsx)(s.default,{variant:"grey-transparent",event:e})]})]}),(0,t.jsx)(a.default,{className:"absolute right-0 top-0 m-2 hidden h-9 rounded-sm bg-white/40 px-4 py-1 text-14 font-semibold text-primary-foreground backdrop-blur-sm hover:bg-primary hover:text-background group-hover:block",variant:"ghost",event:e,eventGroupId:i?e.event_group_info.id:void 0})]})},h=({event:e})=>(0,t.jsx)(d,{event:e});var m=e.i(784593);e.s(["default",0,({events:e})=>(0,t.jsx)(i.Carousel,{className:"overflow-hidden",opts:{align:"start",loop:!0,dragFree:!0},plugins:[(0,m.WheelGesturesPlugin)()],children:(0,t.jsx)(i.CarouselContent,{className:"ml-4 lg:ml-8 xl:ml-14",children:e.map(e=>(0,t.jsx)(i.CarouselItem,{className:"mr-6 basis-[90%] sm:basis-[45%] md:basis-[30%] 2xl:basis-[23%]",children:(0,t.jsx)(h,{event:e,type:"event"})},e.id))})})],234378)},138673,e=>{"use strict";var t=e.i(843476),i=e.i(95187);let r=(0,i.createServerReference)("c0863406ef8b62c5f2ae5af0de4b905c54246712d5",i.callServer,void 0,i.findSourceMapURL,"getCities");var n=e.i(406190),s=e.i(861745),a=e.i(271645),o=e.i(919737),l=e.i(23538),u=e.i(167881),c=e.i(522016),d=e.i(62870),h=e.i(784593);e.s(["default",0,({categories:e,data:i})=>{let[m,p]=(0,a.useState)(!0),[f,v]=(0,a.useState)(),[g,x]=(0,a.useState)([]),[y,b]=(0,a.useState)([]),j=(0,s.useLocale)();return(0,a.useEffect)(()=>{(async()=>{let{data:e}=await r(j);x(e||[])})()},[j]),(0,a.useEffect)(()=>{(async()=>
1{if(p(!0),f){let{data:e}=await (0,n.getEvents)({langs:[j],text_query:f,venue_city:!0});b(e||[])}else{let{data:e}=await (0,n.getEvents)({text_query:"*",all_fields:!0,limit:12,langs:[j]});b(e||[])}p(!1)})()},[f,j]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"charlie-darwin-full-width mb-4 flex items-center",children:[(0,t.jsx)("h2",{className:"mr-4 truncate font-medium",children:i.dropdownLabel}),(0,t.jsxs)(d.Select,{onValueChange:v,children:[(0,t.jsx)(d.SelectTrigger,{"aria-label":"Select an area to find events",className:"h-8 w-[220px] rounded-full px-5 text-16 font-medium",children:(0,t.jsx)(d.SelectValue,{placeholder:i.dropdownPlaceholder||"",className:"truncate"})}),(0,t.jsx)(d.SelectContent,{className:"w-56",children:(0,t.jsx)(d.SelectGroup,{children:g?.filter(e=>e.city).map(e=>(0,t.jsx)(d.SelectItem,{value:e.city,children:e.city},e.city))})})]}),i.cta&&(0,t.jsx)(u.Button,{asChild:!0,variant:"link",className:"-mr-4 ml-auto font-normal opacity-50",children:(0,t.jsx)(c.default,{href:i.cta.url,target:i.cta.openInNewTab?"_blank":void 0,children:i.cta.label})})]}),i?.isVertical?(0,t.jsx)("div",{className:"ml-4 flex flex-col gap-4 lg:ml-8 lg:!grid lg:grid-cols-3 xl:ml-14",children:m?Array.from({length:6}).map((e,i)=>(0,t.jsx)("div",{className:"mr-4 basis-[95%] sm:basis-[75%] md:basis-[45%] lg:basis-[38%] xl:basis-[30%]",children:(0,t.jsx)("div",{className:"aspect-video rounded-[5px] bg-muted"})},i)):y.map((i,r)=>(0,t.jsx)("div",{className:"mr-4 basis-[95%] sm:basis-[75%] md:basis-[45%] lg:basis-[38%] xl:basis-[30%]",children:(0,t.jsx)(l.default,{event:i,type:"event",category:e?.find(e=>e.id===i.category.id)})},r))}):(0,t.jsx)(o.Carousel,{className:"overflow-hidden",opts:{loop:!0,dragFree:!0,align:"start",containScroll:!1},plugins:[(0,h.WheelGesturesPlugin)()],children:(0,t.jsx)(o.CarouselContent,{className:"ml-4 lg:ml-8 xl:ml-14",children:m?Array.from({length:4}).map((e,i)=>(0,t.jsx)(o.CarouselItem,{className:"mr-4 basis-[95%] sm:basis-[75%] md:basis-[45%] lg:basis-[38%] xl:basis-[30%]",children:(0,t.jsx)("div",{className:"aspect-video rounded-[5px] bg-muted"})},i)):y.map((i,r)=>(0,t.jsx)(o.CarouselItem,{className:"mr-4 basis-[95%] sm:basis-[75%] md:basis-[45%] lg:basis-[38%] xl:basis-[30%]",children:(0,t.jsx)(l.default,{event:i,type:"event",category:e?.find(e=>e.id===i.category.id)})},`event-${r}`))})})]})}],138673)},295777,e=>{"use strict";var t=e.i(843476),i=e.i(919737),r=e.i(784593),n=e.i(657688),s=e.i(522016);e.s(["default",0,({categories:e})=>{let a=e?.slice(0,10);return(0,t.jsx)(i.Carousel,{opts:{align:"start",containScroll:!1,dragFree:!0,loop:!0},plugins:[(0,r.WheelGesturesPlugin)()],className:"overflow-hidden",children:(0,t.jsx)(i.CarouselContent,{className:"ml-4 lg:ml-8 xl:ml-14",children:a?.map(e=>(0,t.jsx)(i.CarouselItem,{className:"mr-4 basis-1/2 sm:basis-1/3 md:basis-1/4 lg:basis-1/5",children:(0,t.jsxs)(s.default,{href:`/events?category=${e.id}`,className:"grid aspect-[0.80/1] place-content-center justify-items-center rounded-lg border hover:bg-muted lg:aspect-square",children:[(0,t.jsx)(n.default,{src:e.icon.url,alt:`category: ${e.name}`,width:40,height:40,className:"mb-4"}),(0,t.jsx)("h3",{className:"text-14",children:e.name})]},e.id)},e.id))})})}])},101539,e=>{"use strict";var t=e.i(843476),i=e.i(406190),r=e.i(861745),n=e.i(948148),s=e.i(271645),a=e.i(45723),o=e.i(118959);let l=()=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"h-11 w-[180px] rounded-sm bg-muted"}),(0,t.jsx)("div",{className:"h-11 w-[300px] rounded-sm bg-muted"}),(0,t.jsx)("div",{className:"ml-auto h-11 w-[180px] rounded-sm bg-muted"})]});e.s(["default",0,({data:e})=>
1{let[u,c]=(0,s.useState)([]),[d,h]=(0,s.useState)(!1),m=(0,r.useLocale)(),p=(0,n.useTranslations)("search"),f=(0,n.useTranslations)("event");return(0,s.useEffect)(()=>{(async()=>{if(e?.cities!==null){h(!0);try{let{data:t}=await (0,i.getEvents)({langs:[m],text_query:e?.cities,venue_city:!0});c(t||[])}catch(e){console.error("Error fetching events:",e)}finally{h(!1)}}})()},[e?.cities,m]),(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"charlie-darwin-container",children:[d?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(a.Spinner,{className:"animate-spin",size:20}),(0,t.jsx)("p",{className:"text-14 opacity-50",children:"Loading ..."})]}):(0,t.jsx)("div",{className:"flex h-20 items-center",children:(0,t.jsxs)("p",{className:"flex items-center gap-1",children:[u.length," ",p("results")]})}),d?(0,t.jsx)("div",{className:"mt-10",children:(0,t.jsx)(l,{})}):u.length>0?(0,t.jsx)("ul",{className:"space-y-2 divide-y md:divide-none",children:u.map((e,i)=>(0,t.jsx)("li",{children:(0,t.jsx)(o.default,{event:e})},i))}):(0,t.jsx)("p",{children:f("no-events-found-city")})]})})}])},256340,e=>{"use strict";var t=e.i(843476),i=e.i(167881),r=e.i(625959),n=e.i(874946),s=e.i(23750),a=e.i(95187);let o=(0,a.createServerReference)("400da54e3e3a295d5dd3281e2bf8a750ae716db9ec",a.callServer,void 0,a.findSourceMapURL,"newsletterSignup");var l=e.i(50270),u=e.i(994814),c=e.i(817389),d=e.i(45723),h=e.i(948148),m=e.i(522016),p=e.i(271645),f=e.i(653145),v=e.i(846696);e.s(["default",0,()=>{let[e,a]=(0,p.useState)(!1),[g,x]=(0,p.useState)(!1),y=(0,h.useTranslations)("user-settings"),b=(0,h.useTranslations)("newsletter"),j=(0,h.useTranslations)("error"),w=l.z.object({email:l.z.string().min(1,{message:y("email-error")}),full_name:l.z.string().min(1,{message:y("full-name-error")}),zip_code:l.z.string().min(1,{message:y("zip-code-error")}),consent:l.z.boolean().refine(e=>!0===e,{message:y("marketing-consent-error")})}),C=(0,f.useForm)({resolver:(0,u.zodResolver)(w),defaultValues:{email:"",full_name:"",zip_code:""}}),S=async e=>{try{if(a(!0),(await o(e)).error)return void v.toast.error(j("newsletter"),{description:j("newsletter-description")});x(!0)}catch(e){console.error(e)}finally{a(!1)}};return g?(0,t.jsx)("div",{className:"grid h-[100px] w-full place-content-center animate-in",children:(0,t.jsxs)("div",{className:"flex items-center gap-6",children:[(0,t.jsx)(c.CheckCircle,{size:48,weight:"fill"}),b("sign-up-success")]})}):(0,t.jsx)(n.Form,{...C,children:(0,t.jsxs)("form",{className:"space-y-2",onSubmit:C.handleSubmit(S),children:[(0,t.jsx)(n.FormField,{control:C.control,name:"email",render:({field:e})=>(0,t.jsxs)(n.FormItem,{children:[(0,t.jsx)(n.FormLabel,{children:y("email")}),(0,t.jsx)(n.FormControl,{children:(0,t.jsx)(s.Input,{type:"email",placeholder:y("email-placeholder"),...e})}),(0,t.jsx)(n.FormMessage,{})]})}),(0,t.jsx)(n.FormField,{control:C.control,name:"full_name",render:({field:e})=>(0,t.jsxs)(n.FormItem,{children:[(0,t.jsx)(n.FormLabel,{children:y("full-name")}),(0,t.jsx)(n.FormControl,{children:(0,t.jsx)(s.Input,{type:"name",placeholder:y("full-name-placeholder"),...e})}),(0,t.jsx)(n.FormMessage,{})]})}),(0,t.jsx)(n.FormField,{control:C.control,name:"zip_code",render:({field:e})=>(0,t.jsxs)(n.FormItem,{children:[(0,t.jsx)(n.FormLabel,{children:y("zip-code")}),(0,t.jsx)(n.FormControl,{children:(0,t.jsx)(s.Input,{type:"text",className:"mb-2",placeholder:y("zip-code-placeholder"),...e})}),(0,t.jsx)(n.FormMessage,{})]})}),(0,t.jsx)(n.FormField,{control:C.control,name:"consent",render:({field:i})=>(0,t.jsxs)(n.FormItem,{className:"flex items-start gap-2",children:[(0,t.jsx)(n.FormControl,{children:(0,t.jsx)(r.Checkbox,{className:"mt-2.5",disabled:e,checked:i.value,onCheckedChange:i.onChange})}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsxs)(n.FormDescription,{className:"flex flex-col items-start gap-1.5",children:[y("newsletter-consent-cta-label"),(0,t.jsx)(m.default,{href:y("marketing-consent-cta-slug"),className:"font-medium underline hover:text-primary",children:y("newsletter-cta-label")})]}),(0,t.jsx)(n.FormMessage,{})]})]})}),(0,t.jsx)("div",{className:"h-2"}),(0,t.jsx)("div",{className:"h-2"}),(0,t.jsxs)(i.Button,{disabled:e,type:"submit",size:"lg",className:"w-full",children:[e&&(0,t.jsx)(d.Spinner,{className:"mr-2 animate-spin"}),b("sign-up-button")]})]})})}],256340)},819815,e=>{"use strict";var t=e.i(843476),i=e.i(179413),r=e.i(647163);let n=(e,t)=>t?.first_name&&e.loggedInTitle?e.loggedInTitle?.replace("{{name}}",t.first_name):e.title;e.s(["default",0,({data:e})=>{let{user:s,loading:a}=(0,i.useUser)();
1return s||e.welcomeMessage?(0,t.jsx)("div",{className:"charlie-darwin-container",children:(0,t.jsxs)("div",{className:"-mb-16 mt-8 max-w-md",children:[(0,t.jsx)("h1",{className:(0,r.default)("mb-1 text-22 font-medium "),children:a?(0,t.jsx)("span",{className:"opacity-0",children:n(e,s)}):(0,t.jsx)("span",{className:"animate-in-right",children:n(e,s)})}),(0,t.jsx)("p",{className:"text-18",children:a?(0,t.jsx)("span",{className:"opacity-0",children:e.welcomeMessage}):(0,t.jsx)("span",{className:"animate-in-right",children:e.welcomeMessage})})]})}):null}])},462273,(e,t,i)=>{Object.defineProperty(i,"__esModule",{value:!0});class r extends Error{constructor(e,t,i,r,n,s,a){super(e),this.name="GraphQLError",this.message=e,n&&(this.path=n),t&&(this.nodes=Array.isArray(t)?t:[t]),i&&(this.source=i),r&&(this.positions=r),s&&(this.originalError=s);var o=a;if(!o&&s){var l=s.extensions;l&&"object"==typeof l&&(o=l)}this.extensions=o||{}}toJSON(){return{...this,message:this.message}}toString(){return this.message}get[Symbol.toStringTag](){return"GraphQLError"}}function n(e){return new r(`Syntax Error: Unexpected token at ${o} in ${e}`)}function s(e){if(e.lastIndex=o,e.test(a))return a.slice(o,o=e.lastIndex)}var a,o,l=/ +(?=[^\s])/y;function u(){for(var e=0|a.charCodeAt(o++);9===e||10===e||13===e||32===e||35===e||44===e||65279===e;e=0|a.charCodeAt(o++))if(35===e)for(;(e=0|a.charCodeAt(o++))&&10!==e&&13!==e;);o--}function c(){for(var e=o,t=0|a.charCodeAt(o++);t>=48&&t<=57||t>=65&&t<=90||95===t||t>=97&&t<=122;t=0|a.charCodeAt(o++));if(e===o-1)throw n("Name");var i=a.slice(e,--o);return u(),i}function d(){return{kind:"Name",value:c()}}var h=/(?:"""|(?:[\s\S]*?[^\\])""")/y,m=/(?:(?:\.\d+)?[eE][+-]?\d+|\.\d+)/y;function p(e){var t;switch(a.charCodeAt(o)){case 91:o++,u();for(var i=[];93!==a.charCodeAt(o);)i.push(p(e));return o++,u(),{kind:"ListValue",values:i};case 123:o++,u();for(var r=[];125!==a.charCodeAt(o);){var f=d();if(58!==a.charCodeAt(o++))throw n("ObjectField");u(),r.push({kind:"ObjectField",name:f,value:p(e)})}return o++,u(),{kind:"ObjectValue",fields:r};case 36:if(e)throw n("Variable");return o++,{kind:"Variable",name:d()};case 34:if(34===a.charCodeAt(o+1)&&34===a.charCodeAt(o+2)){if(o+=3,null==(t=s(h)))throw n("StringValue");return u(),{kind:"StringValue",value:function(e){for(var t=e.split("\n"),i="",r=0,n=0,s=t.length-1,a=0;a<t.length;a++)l.lastIndex=0,l.test(t[a])&&(a&&(!r||l.lastIndex<r)&&(r=l.lastIndex),n=n||a,s=a);for(var o=n;o<=s;o++)o!==n&&(i+="\n"),i+=t[o].slice(r).replace(/\\"""/g,'"""');return i}(t.slice(0,-3)),block:!0}}var v,g=o;o++;var x=!1;for(v=0|a.charCodeAt(o++);92===v&&(o++,x=!0)||10!==v&&13!==v&&34!==v&&v;v=0|a.charCodeAt(o++));if(34!==v)throw n("StringValue");return t=a.slice(g,o),u(),{kind:"StringValue",value:x?JSON.parse(t):t.slice(1,-1),block:!1};case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:for(var y,b=o++;(y=0|a.charCodeAt(o++))>=48&&y<=57;);var j=a.slice(b,--o);if(46!==(y=a.charCodeAt(o))&&69!==y&&101!==y)return u(),{kind:"IntValue",value:j};if(null==(t=s(m)))throw n("FloatValue");return u(),{kind:"FloatValue",value:j+t};case 110:if(117===a.charCodeAt(o+1)&&108===a.charCodeAt(o+2)&&108===a.charCodeAt(o+3))return o+=4,u(),{kind:"NullValue"};break;case 116:if(114===a.charCodeAt(o+1)&&117===a.charCodeAt(o+2)&&101===a.charCodeAt(o+3))return o+=4,u(),{kind:"BooleanValue",value:!0};break;case 102:if(97===a.charCodeAt(o+1)&&108===a.charCodeAt(o+2)&&115===a.charCodeAt(o+3)&&101===a.charCodeAt(o+4))return o+=5,u(),{kind:"BooleanValue",value:!1}}return{kind:"EnumValue",value:c()}}function f(e){if(40===a.charCodeAt(o)){var t=[];o++,u();do{var i=d();if(58!==a.charCodeAt(o++))throw n("Argument");u(),t.push({kind:"Argument",name:i,value:p(e)})}while(41!==a.charCodeAt(o))return o++,u(),t}}function v(e){if(64===a.charCodeAt(o)){var t=[];do o++,t.push({kind:"Directive",name:d(),arguments:f(e)});while(64===a.charCodeAt(o))return t}}function g(){for(var e=0;91===a.charCodeAt(o);)e++,o++,u();var t={kind:"NamedType",name:d()};do if(33===a.charCodeAt(o)&&(o++,u(),t={kind:"NonNullType",type:t}
1),e){if(93!==a.charCodeAt(o++))throw n("NamedType");u(),t={kind:"ListType",type:t}}while(e--)return t}function x(){if(123!==a.charCodeAt(o++))throw n("SelectionSet");return u(),y()}function y(){var e=[];do if(46===a.charCodeAt(o)){if(46!==a.charCodeAt(++o)||46!==a.charCodeAt(++o))throw n("SelectionSet");switch(o++,u(),a.charCodeAt(o)){case 64:e.push({kind:"InlineFragment",typeCondition:void 0,directives:v(!1),selectionSet:x()});break;case 111:110===a.charCodeAt(o+1)?(o+=2,u(),e.push({kind:"InlineFragment",typeCondition:{kind:"NamedType",name:d()},directives:v(!1),selectionSet:x()})):e.push({kind:"FragmentSpread",name:d(),directives:v(!1)});break;case 123:o++,u(),e.push({kind:"InlineFragment",typeCondition:void 0,directives:void 0,selectionSet:y()});break;default:e.push({kind:"FragmentSpread",name:d(),directives:v(!1)})}}else{var t=d(),i=void 0;58===a.charCodeAt(o)&&(o++,u(),i=t,t=d());var r=f(!1),s=v(!1),l=void 0;123===a.charCodeAt(o)&&(o++,u(),l=y()),e.push({kind:"Field",alias:i,name:t,arguments:r,directives:s,selectionSet:l})}while(125!==a.charCodeAt(o))return o++,u(),{kind:"SelectionSet",selections:e}}function b(){var e=[];do{var t=void 0;if(34===a.charCodeAt(o)&&(t=p(!0)),123===a.charCodeAt(o)){if(t)throw n("Document");o++,u(),e.push({kind:"OperationDefinition",operation:"query",name:void 0,variableDefinitions:void 0,directives:void 0,selectionSet:y()})}else{var i=c();switch(i){case"fragment":e.push(function(e){var t=d();if(111!==a.charCodeAt(o++)||110!==a.charCodeAt(o++))throw n("FragmentDefinition");u();var i={kind:"FragmentDefinition",name:t,typeCondition:{kind:"NamedType",name:d()},directives:v(!1),selectionSet:x()};return e&&(i.description=e),i}(t));break;case"query":case"mutation":case"subscription":var r,s=void 0;40!==(r=a.charCodeAt(o))&&64!==r&&123!==r&&(s=d());var l={kind:"OperationDefinition",operation:i,name:s,variableDefinitions:function(){if(u(),40===a.charCodeAt(o)){var e=[];o++,u();do{var t=void 0;if(34===a.charCodeAt(o)&&(t=p(!0)),36!==a.charCodeAt(o++))throw n("Variable");var i=d();if(58!==a.charCodeAt(o++))throw n("VariableDefinition");u();var r=g(),s=void 0;61===a.charCodeAt(o)&&(o++,u(),s=p(!0)),u();var l={kind:"VariableDefinition",variable:{kind:"Variable",name:i},type:r,defaultValue:s,directives:v(!0)};t&&(l.description=t),e.push(l)}while(41!==a.charCodeAt(o))return o++,u(),e}}(),directives:v(!1),selectionSet:x()};t&&(l.description=t),e.push(l);break;default:throw n("Document")}}}while(o<a.length)return e}var j={};function w(e,t,i){for(var r="",n=0;n<e.length;n++)n&&(r+=t),r+=i(e[n]);return r}function C(e){return JSON.stringify(e)}function S(e){return'"""\n'+e.replace(/"""/g,'\\"""')+'\n"""'}var T="\n",k={OperationDefinition(e){var t="";e.description&&(t+=k.StringValue(e.description)+"\n"),t+=e.operation,e.name&&(t+=" "+e.name.value),e.variableDefinitions&&e.variableDefinitions.length&&(e.name||(t+=" "),t+="("+w(e.variableDefinitions,", ",k.VariableDefinition)+")"),e.directives&&e.directives.length&&(t+=" "+w(e.directives," ",k.Directive));var i=k.SelectionSet(e.selectionSet);return"query"!==t?t+" "+i:i},VariableDefinition(e){var t="";return e.description&&(t+=k.StringValue(e.description)+" "),t+=k.Variable(e.variable)+": "+P(e.type),e.defaultValue&&(t+=" = "+P(e.defaultValue)),e.directives&&e.directives.length&&(t+=" "+w(e.directives," ",k.Directive)),t},Field(e){var t=e.alias?e.alias.value+": "+e.name.value:e.name.value;if(e.arguments&&e.arguments.length){var i=w(e.arguments,", ",k.Argument);t.length+i.length+2>80?t+="("+(T+=" ")+w(e.arguments,T,k.Argument)+(T=T.slice(0,-2))+")":t+="("+i+")"}return e.directives&&e.directives.length&&(t+=" "+w(e.directives," ",k.Directive)),e.selectionSet&&e.selectionSet.selections.length&&(t+=" "+k.SelectionSet(e.selectionSet)),t}
1,StringValue:e=>e.block?S(e.value).replace(/\n/g,T):C(e.value),BooleanValue:e=>""+e.value,NullValue:e=>"null",IntValue:e=>e.value,FloatValue:e=>e.value,EnumValue:e=>e.value,Name:e=>e.value,Variable:e=>"$"+e.name.value,ListValue:e=>"["+w(e.values,", ",P)+"]",ObjectValue:e=>"{"+w(e.fields,", ",k.ObjectField)+"}",ObjectField:e=>e.name.value+": "+P(e.value),Document:e=>e.definitions&&e.definitions.length?w(e.definitions,"\n\n",P):"",SelectionSet:e=>"{"+(T+=" ")+w(e.selections,T,P)+(T=T.slice(0,-2))+"}",Argument:e=>e.name.value+": "+P(e.value),FragmentSpread(e){var t="..."+e.name.value;return e.directives&&e.directives.length&&(t+=" "+w(e.directives," ",k.Directive)),t},InlineFragment(e){var t="...";return e.typeCondition&&(t+=" on "+e.typeCondition.name.value),e.directives&&e.directives.length&&(t+=" "+w(e.directives," ",k.Directive)),t+" "+k.SelectionSet(e.selectionSet)},FragmentDefinition(e){var t="";return e.description&&(t+=k.StringValue(e.description)+"\n"),t+="fragment "+e.name.value+" on "+e.typeCondition.name.value,e.directives&&e.directives.length&&(t+=" "+w(e.directives," ",k.Directive)),t+" "+k.SelectionSet(e.selectionSet)},Directive(e){var t="@"+e.name.value;return e.arguments&&e.arguments.length&&(t+="("+w(e.arguments,", ",k.Argument)+")"),t},NamedType:e=>
1e.name.value,ListType:e=>"["+P(e.type)+"]",NonNullType:e=>P(e.type)+"!"},P=e=>k[e.kind](e);function F(e,t){switch(e.kind){case"NullValue":return null;case"IntValue":return parseInt(e.value,10);case"FloatValue":return parseFloat(e.value);case"StringValue":case"EnumValue":case"BooleanValue":return e.value;case"ListValue":for(var i=[],r=0,n=e.values.length;r<n;r++)i.push(F(e.values[r],t));return i;case"ObjectValue":for(var s=Object.create(null),a=0,o=e.fields.length;a<o;a++){var l=e.fields[a];s[l.name.value]=F(l.value,t)}return s;case"Variable":return t&&t[e.name.value]}}i.BREAK=j,i.GraphQLError=r,i.Kind={NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType"},i.OperationTypeNode={QUERY:"query",MUTATION:"mutation",SUBSCRIPTION:"subscription"},i.Source=function(e,t,i){return{body:e,name:t,locationOffset:i||{line:1,column:1}}},i.isSelectionNode=function(e){return"Field"===e.kind||"FragmentSpread"===e.kind||"InlineFragment"===e.kind},i.parse=function(e,t){return(a=e.body?e.body:e,o=0,u(),t&&t.noLocation)?{kind:"Document",definitions:b()}:{kind:"Document",definitions:b(),loc:{start:0,end:a.length,startToken:void 0,endToken:void 0,source:{body:a,name:"graphql.web",locationOffset:{line:1,column:1}}}}},i.parseType=function(e,t){return a=e.body?e.body:e,o=0,g()},i.parseValue=function(e,t){return a=e.body?e.body:e,o=0,u(),p(!1)},i.print=function(e){return T="\n",k[e.kind]?k[e.kind](e):""},i.printBlockString=S,i.printString=C,i.valueFromASTUntyped=F,i.valueFromTypeNode=function e(t,i,r){if("Variable"===t.kind)return r?e(r[t.name.value],i,r):void 0;if("NonNullType"===i.kind)return"NullValue"!==t.kind?e(t,i,r):void 0;if("NullValue"===t.kind)return null;if("ListType"===i.kind){if("ListValue"===t.kind){for(var n=[],s=0,a=t.values.length;s<a;s++){var o=e(t.values[s],i.type,r);if(void 0===o)return;n.push(o)}return n}}else if("NamedType"===i.kind)switch(i.name.value){case"Int":case"Float":case"String":case"Bool":return i.name.value+"Value"===t.kind?F(t,r):void 0;default:return F(t,r)}},i.visit=function(e,t){var i=[],r=[];try{var n=function e(n,s,a){var o,l=!1,u=t[n.kind]&&t[n.kind].enter||t[n.kind]||t.enter,c=u&&u.call(t,n,s,a,r,i);if(!1===c)return n;if(null===c)return null;if(c===j)throw j;c&&"string"==typeof c.kind&&(l=c!==n,n=c);a&&i.push(a);var d={...n};for(var h in n){r.push(h);var m=n[h];if(Array.isArray(m)){for(var p=[],f=0;f<m.length;f++)null!=m[f]&&"string"==typeof m[f].kind&&((i.push(n),r.push(f),o=e(m[f],f,m),r.pop(),i.pop(),null==o)?l=!0:(l=l||o!==m[f],p.push(o)));m=p}else null!=m&&"string"==typeof m.kind&&void 0!==(o=e(m,h,n))&&(l=l||m!==o,m=o);r.pop(),l&&(d[h]=m)}a&&i.pop();var v=t[n.kind]&&t[n.kind].leave||t.leave,g=v&&v.call(t,n,s,a,r,i);if(g===j)throw j;return void 0!==g?g:void 0!==c?l?d:c:l?d:n}(e);return void 0!==n&&!1!==n?n:e}catch(t){if(t!==j)throw t;return e}}},648321,(e,t,i)=>{"use strict";var r,n=e.e&&e.e.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=e.e&&e.e.__assign||function(){return(s=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)}
1,a=e.e&&e.e.__awaiter||function(e,t,i,r){return new(i||(i=Promise))(function(n,s){function a(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(a,o)}l((r=r.apply(e,t||[])).next())})},o=e.e&&e.e.__generator||function(e,t){var i,r,n,s,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){var l=[s,o];if(i)throw TypeError("Generator is already executing.");for(;a;)try{if(i=1,r&&(n=2&l[0]?r.return:l[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,l[1])).done)return n;switch(r=0,n&&(l=[2&l[0],n.value]),l[0]){case 0:case 1:n=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(n=(n=a.trys).length>0&&n[n.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!n||l[1]>n[0]&&l[1]<n[3])){a.label=l[1];break}if(6===l[0]&&a.label<n[1]){a.label=n[1],n=l;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(l);break}n[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],r=0}finally{i=n=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}};i.__esModule=!0,i.subscribeToQuery=i.InvalidResponseError=i.Response400Error=i.Response500Error=void 0;var l=e.r(462273),u="u">typeof MessageEvent?MessageEvent:function(e,t){this.type=e,this.data=null==t?void 0:t.data},c=function(e){function t(i,r){var n=e.call(this,i)||this;return Object.setPrototypeOf(n,t.prototype),n.response=r,n}return n(t,e),t}(Error);i.Response500Error=c;var d=function(e){function t(i,r){var n=e.call(this,i)||this;return Object.setPrototypeOf(n,t.prototype),n.response=r,n}return n(t,e),t}(Error);i.Response400Error=d;var h=function(e){function t(i,r){var n=e.call(this,i)||this;return Object.setPrototypeOf(n,t.prototype),n.response=r,n}return n(t,e),t}(Error);i.InvalidResponseError=h,i.subscribeToQuery=function e(t){return a(this,void 0,void 0,function(){var i,r,n,m,p,f,v,g,x,y,b,j,w,C,S,T,k,P,F,A,N,E,V,M,L,R,D=this;return o(this,function(I){switch(I.label){case 0:i=t.query,r=t.token,n=t.variables,m=t.preview,p=t.includeDrafts,f=t.excludeInvalid,v=t.environment,g=t.fetcher,x=t.eventSourceClass,y=t.onStatusChange,b=t.onUpdate,j=t.onChannelError,w=t.onError,C=t.onEvent,S=t.reconnectionPeriod,T=t.baseUrl,k=g||window.fetch,P=x||window.EventSource,F=Math.min(S||1e3,2e4),A=T||"https://graphql-listen.datocms.com",N=function(){return a(D,void 0,void 0,function(){return o(this,function(i){switch(i.label){case 0:return[4,new Promise(function(e){return setTimeout(e,F)})];case 1:return i.sent(),[2,e(s(s({},t),{reconnectionPeriod:2*F*(1+(.2*Math.random()-.1))}))]}})})},y&&y("connecting"),I.label=1;case 1:return I.trys.push([1,4,,5]),V="string"==typeof i?i:(0,l.print)(i),[4,k(A,{headers:s(s(s({Authorization:"Bearer ".concat(r),Accept:"application/json"},v?{"X-Environment":v}:{}),p||m?{"X-Include-Drafts":"true"}:{}),f?{"X-Exclude-Invalid":"true"}:{}),method:"POST",body:JSON.stringify({query:V,variables:n})})];case 2:if((M=I.sent()).status>=300&&M.status<500)throw new d("Invalid status code: ".concat(M.status," ").concat(M.statusText),M);if(M.status>=500)throw new c("Invalid status code: ".concat(M.status," ").concat(M.statusText),M);if("application/json"!==M.headers.get("Content-Type"))throw new h("Invalid content type: ".concat(M.headers.get("Content-Type")),M);return[4,M.json()];case 3:return E=I.sent().url,C&&C({status:"connecting",channelUrl:E,message:"Received channel URL",response:M}),[3,5];case 4:if(L=I.sent(),w&&(R=new u("FetchError",{data:L}),w(R)),L instanceof d)throw L;return y&&y("closed"),[2,N()];case 5:return[2,new Promise(function(e){var t=new P(E),i=!1,r=function(){2!==t.readyState&&(i=!0,t.close())};t.addEventListener("open",function(){y&&y("connected"),e(r)});var n=setInterval(function(){2===t.readyState&&(clearInterval(n),y&&y("closed"),i||N())},300);t.addEventListener("update",function(e){var t=JSON.parse(e.data);b(t)}),t.addEventListener("channelError",function(e){var r=JSON.parse(e.data);r.fatal&&(i=!0),j&&j(r),t.close()}),t.addEventListener("onerror",function(e){w&&w(e),t.close()})})]}})})}},511232,(e,t,i)=>{"use strict";var r=e.e&&e.e.__createBinding||(Object.create?function(e,t,i,r){void 0===r&&(r=i);var n=Object.getOwnPropertyDescriptor(t,i);
1(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,r,n)}:function(e,t,i,r){void 0===r&&(r=i),e[r]=t[i]}),n=e.e&&e.e.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||r(t,e,i)};i.__esModule=!0,n(e.r(648321),i)},784593,e=>{"use strict";function t(){return(t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[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,i){return e+t[i]})}function r(e){return Math.max.apply(Math,e.map(Math.abs))}function n(e){return Object.freeze(e),Object.values(e).forEach(function(e){null===e||"object"!=typeof e||Object.isFrozen(e)||n(e)}),e}var s=[1,18,"u">typeof window&&window.innerHeight||800],a=[-1,-1,-1],o=n({preventWheelAction:!0,reverseSign:[!0,!0,!1]});function l(){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 u=function(e){void 0===e&&(e={});var u,c,d,h,m,p=function(){var e={};function t(t,i){e[t]=(e[t]||[]).filter(function(e){return e!==i})}return n({on:function(i,r){return e[i]=(e[i]||[]).concat(r),function(){return t(i,r)}},off:t,dispatch:function(t,i){t in e&&e[t].forEach(function(e){return e(i)})}})}(),f=p.on,v=p.off,g=p.dispatch,x=o,y=l(),b=!1,j=function(e){Array.isArray(e)?e.forEach(function(e){return T(e)}):T(e)},w=function(e){return(void 0===e&&(e={}),Object.values(e).some(function(e){return null==e}))?x:x=n(t({},o,x,e))},C=function(e){var r=t({event:h,isStart:!1,isEnding:!1,isMomentumCancel:!1,isMomentum:y.isMomentum,axisDelta:[0,0,0],axisVelocity:y.axisVelocity,axisMovement:y.axisMovement,get axisMovementProjection(){return i(r.axisMovement,r.axisVelocity.map(function(e){var t;return void 0===t&&(t=.996),e*t/(1-t)}))}},e);g("wheel",t({},r,{previous:m})),m=r},S=function(e,t){var i=x.preventWheelAction,r=t[0],n=t[1],s=t[2];if("boolean"==typeof i)return i;switch(i){case"x":return Math.abs(r)>=e;case"y":return Math.abs(n)>=e;case"z":return Math.abs(s)>=e;default:return!1}},T=function(e){var n,o,l,u,c=(u=function(e,i){if(!i)return e;var r=!0===i?a:i.map(function(e){return e?-1:1});return t({},e,{axisDelta:e.axisDelta.map(function(e,t){return e*r[t]})})}((n=e.deltaX*s[e.deltaMode],o=e.deltaY*s[e.deltaMode],l=(e.deltaZ||0)*s[e.deltaMode],{timeStamp:e.timeStamp,axisDelta:[n,o,l]}),x.reverseSign),t({},u,{axisDelta:u.axisDelta.map(function(e){return Math.min(Math.max(-700,e),700)})})),d=c.axisDelta,m=c.timeStamp,p=r(d);if(e.preventDefault&&S(p,d)&&e.preventDefault(),y.isStarted?y.isMomentum&&p>Math.max(2,2*y.lastAbsDelta)&&(R(!0),M()):M(),0===p&&Object.is&&Object.is(e.deltaX,-0)){b=!0;return}h=e,y.axisMovement=i(y.axisMovement,d),y.lastAbsDelta=p,y.scrollPointsToMerge.push({axisDelta:d,timeStamp:m}),k(),C({axisDelta:d,isStart:!y.isStartPublished}),y.isStartPublished=!0,L()},k=function(){if(2===y.scrollPointsToMerge.length){var e;y.scrollPoints.unshift({axisDeltaSum:y.scrollPointsToMerge.map(function(e){return e.axisDelta}).reduce(i),timeStamp:(e=y.scrollPointsToMerge.map(function(e){return e.timeStamp})).reduce(function(e,t){return e+t})/e.length}),F(),y.scrollPointsToMerge.length=0,y.scrollPoints.length=1,y.isMomentum||E()}else y.isStartPublished||P()},P=function(){var e;y.axisVelocity=(e=y.scrollPointsToMerge)[e.length-1].axisDelta.map(function(e){return e/y.willEndTimeout})},F=function(){var e=y.scrollPoints,t=e[0],i=e[1];if(i&&t){var r=t.timeStamp-i.timeStamp;if(r<=0)return;var n=t.axisDeltaSum.map(function(e){return e/r}),s=n.map(function(e,t){return e/(y.axisVelocity[t]||1)});y.axisVelocity=n,y.accelerationFactors.push(s),A(r)}},A=function(e){var t=10*Math.ceil(e/10)*1.2;y.isMomentum||(t=Math.max(100,2*t)),y.willEndTimeout=Math.min(1e3,Math.round(t))},N=function(e){return 0===e||e<=.96&&e>=.6},E=function(){if(y.accelerationFactors.length>=5){if(b&&(b=!1,r(y.axisVelocity)>=.2))return void V();var e=y.accelerationFactors.slice(-5);e.every(function(e){var t=!!e.reduce(function(e,t){return e&&e<1&&e===t?1:0}),i=e.filter(N).length===e.length;return t||i})&&V(),y.accelerationFactors=e}},V=function(){y.isMomentum=!0}
1,M=function(){(y=l()).isStarted=!0,y.startTime=Date.now(),m=void 0,b=!1},L=function(){clearTimeout(u),u=setTimeout(R,y.willEndTimeout)},R=function(e){void 0===e&&(e=!1),y.isStarted&&(y.isMomentum&&e?C({isEnding:!0,isMomentumCancel:!0}):C({isEnding:!0}),y.isMomentum=!1,y.isStarted=!1)},D=(c=[],n({observe:function(e){return e.addEventListener("wheel",j,{passive:!1}),c.push(e),function(){return d(e)}},unobserve:d=function(e){e.removeEventListener("wheel",j),c=c.filter(function(t){return t!==e})},disconnect:function(){c.forEach(d)}})),I=D.observe,_=D.unobserve,O=D.disconnect;return w(e),n({on:f,off:v,observe:I,unobserve:_,disconnect:O,feedWheel:j,updateOptions:w})};var c={active:!0,breakpoints:{},wheelDraggingClass:"is-wheel-dragging",forceWheelAxis:void 0,target:void 0};function d(e){void 0===e&&(e={});var t,i=function(){};return{name:"wheelGestures",options:e,init:function(r,n){var s,a,o,l=n.mergeOptions,h=n.optionsAtMedia,m=l(c,d.globalOptions);t=h(l(m,e));var p=r.internalEngine(),f=null!=(s=t.target)?s:r.containerNode().parentNode,v=null!=(a=t.forceWheelAxis)?a:p.options.axis,g=u({preventWheelAction:v,reverseSign:[!0,!0,!1]});function x(){C=("x"===v?p.containerRect.width:p.containerRect.height)/2}var y=g.observe(f),b=g.on("wheel",function(e){var r=e.axisDelta,n=r[0],s=r[1],a="x"===v?n:s,l="x"===v?s:n,u=e.isMomentum&&e.previous&&!e.previous.isMomentum,c=e.isEnding&&!e.isMomentum||u;!(Math.abs(a)>Math.abs(l))||j||e.isMomentum||S||function(e){try{o=new MouseEvent("mousedown",e.event),A(o)}catch(e){return i()}j=!0,w=0,document.documentElement.addEventListener("mousemove",P,!0),document.documentElement.addEventListener("mouseup",P,!0),document.documentElement.addEventListener("mousedown",P,!0),t.wheelDraggingClass&&f.classList.add(t.wheelDraggingClass)}(e),S&&e.isEnding&&(S=!1),j&&!function(e){var t=N(e),i=t.isAtBoundary,r=t.primaryAxisDelta;if(i&&!e.isMomentum){if((w+=Math.abs(r))>C)return S=!0,T(e),!0}else w=0;return!1}(e)&&(c?T(e):A(F("mousemove",e)))}),j=!1,w=0,C=0,S=!1;function T(e){j=!1,A(F("mouseup",e)),k(),t.wheelDraggingClass&&f.classList.remove(t.wheelDraggingClass)}function k(){document.documentElement.removeEventListener("mousemove",P,!0),document.documentElement.removeEventListener("mouseup",P,!0),document.documentElement.removeEventListener("mousedown",P,!0)}function P(e){j&&e.isTrusted&&e.stopImmediatePropagation()}function F(e,t){if(v===p.options.axis){var i,r,n=t.axisMovement;i=n[0],r=n[1]}else{var s=t.axisMovement;r=s[0],i=s[1]}if(N(t).isAtBoundary){var a=Math.min(w/C,1),l=w*(i>0?-1:1)*(.25+.5*a);i+=l,r+=l}if(!p.options.skipSnaps&&!p.options.dragFree){var u=p.containerRect.width,c=p.containerRect.height;i=i<0?Math.max(i,-u):Math.min(i,u),r=r<0?Math.max(r,-c):Math.min(r,c)}return new MouseEvent(e,{clientX:o.clientX+i,clientY:o.clientY+r,screenX:o.screenX+i,screenY:o.screenY+r,movementX:i,movementY:r,button:0,bubbles:!0,cancelable:!0,composed:!0})}function A(e){r.containerNode().dispatchEvent(e)}function N(e){var t=e.axisDelta,i=t[0],n=t[1],s=r.scrollProgress(),a="x"===v?i:n;return{isAtBoundary:a<0&&!(s<1)||a>0&&!(s>0),primaryAxisDelta:a}}x(),r.on("resize",x),i=function(){y(),b(),r.off("resize",x),k()}},destroy:function(){return i()}}}d.globalOptions=void 0,e.s(["WheelGesturesPlugin",0,d],784593)}]);
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.