PageSourceSearch

https://www.eurostar.com/assets/www/_next/static/chunks/7007-3b91cfb643605457.js

js eurostar.com collected 2026-10-09 22:19:32 UTC 167,668 bytes, 108 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7007],{42110:function(t,e,n){n.d(e,{$:function(){return K}});var i=n(52676),r=n(72847),s=n.n(r),o=n(29933),a=n(4177),l=n(85278),u=n(67747),h=n(98285),c=n(17794),d=n(19215),f=n(47172),p=n(61656),m=n(52727),g=n.n(m),v=n(91523);let y=g().div`
2  display: flex;
3  flex-direction: column;
4  background-color: ${u.default.Shades.TintBlue10};
5  padding: 1rem;
6  border-radius: 0.5rem;
7`,x=g().div`
8  display: flex;
9  justify-content: space-between;
10`,w=g().div`
11  display: grid;
12  grid-template-columns: auto 1fr;
13  grid-template-rows: repeat(3, auto);
14  margin-bottom: 1rem;
15`,T=g()(v.Z)`
16  position: relative;
17  margin-left: 2.1rem;
18`,E=g().div`
19  display: flex;
20  flex-direction: column;
21  justify-content: flex-start;
22  align-items: center;
23  gap: 0.5rem;
24`,S=g().div`
25  display: flex;
26  justify-content: center;
27`,b=g().div`
28  position: relative;
29
30  &::before {
31    border-left: 1px solid ${u.default.Shades.BlueShade20};
32    content: '';
33    display: block;
34    left: -1.05rem;
35    position: absolute;
36    top: 1rem;
37    bottom: ${({isDirect:t})=>t?"-1rem":"-1.5rem"};
38    z-index: 0;
39  }
40`;var P=n(36024),A=n(52036),C=n(22815),R=n(27278),M=n(53780);let D=g().div`
41  display: flex;
42  flex-direction: column;
43  align-items: start;
44
45  &::before {
46    border-radius: 50%;
47    box-sizing: border-box;
48    width: 0.5rem;
49    height: 0.5rem;
50    background: ${u.default.Greyscale.White};
51    border: 1px solid ${u.default.Shades.BlueShade20};
52    content: '';
53    display: block;
54    left: -1.25rem;
55    position: absolute;
56    top: 0.5rem;
57    z-index: 1;
58  }
59
60  @media (min-width: ${M.A.lg}) {
61    flex-direction: row;
62    justify-content: space-between;
63  }
64`,O=g().div`
65  display: flex;
66  flex-direction: column;
67  align-items: start;
68`,k=({station:t,testId:e=""})=>(0,i.jsx)(v.Z,{container:!0,display:"flex",flexWrap:"nowrap","data-testid":`${e}-station`,children:(0,i.jsx)(v.Z,{flexShrink:1,flexGrow:1,position:"relative",children:(0,i.jsx)("div",{children:(0,i.jsx)(D,{children:(0,i.jsx)(O,{children:(0,i.jsx)(a.Z,{as:"p",variant:"BodyMBold",margin:0,children:t})})})})})}),N=(String(Math.round(1e10*Math.random())),s().createContext(!1));function V(){return!1}function L(){return!0}function j(t){return()=>{}}"undefined"!=typeof window&&window.document&&window.document.createElement,new WeakMap,s().useId;let I=new Map;class B{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,e){if("function"==typeof this.formatter.formatRange)return this.formatter.formatRange(t,e);if(e<t)throw RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(e)}`}formatRangeToParts(t,e){if("function"==typeof this.formatter.formatRangeToParts)return this.formatter.formatRangeToParts(t,e);if(e<t)throw RangeError("End date must be >= start date");let n=this.formatter.formatToParts(t),i=this.formatter.formatToParts(e);return[...n.map(t=>({...t,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(t=>({...t,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return null==_&&(_="h12"===new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle),_&&(this.resolvedHourCycle||(this.resolvedHourCycle=function(t,e){if(!e.timeStyle&&!e.hour)return;t=t.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,"");let n=U(t+=(t.includes("-u-")?"":"-u")+"-nu-latn",{...e,timeZone:void 0}),i=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(t=>"hour"===t.type).value,10),r=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(t=>"hour"===t.type).value,10);if(0===i&&23===r)return"h23";if(24===i&&23===r)return"h24";if(0===i&&11===r)return"h11";if(12===i&&11===r)return"h12";throw Error("Unexpected hour cycle result")}(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12="h11"===this.resolvedHourCycle||"h12"===this.resolvedHourCycle),"ethiopic-amete-alem"===t.calendar&&(t.calendar="ethioaa"),t}constructor(t,e={}){this.formatter=U(t,e),this.options=e}}let F={true:{ja:"h11"},false:{}};function U(t,e={}){if("boolean"==typeof e.hour12&&(null==$&&($="24"===new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))),$)){let n=F[String((e={...e}).hour12)][t.split("-")[0]],i=e.hour12?"h12":"h23";e.hourCycle=null!=n?n:i,delete e.hour12}let n=t+(e?Object.entries(e).sort((t,e)=>t[0]<e[0]?-1:1).join():"");if(I.has(n))return I.get(n);let i=new Intl.DateTimeFormat(t,e);return I.set(n,i),i}
68let $=null,_=null,W=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),H=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Y(){let t="undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch(e){t="en-US"}return{locale:t,direction:!function(t){if(Intl.Locale){let e=new Intl.Locale(t).maximize().script;return W.has(e)}let e=t.split("-")[0];return H.has(e)}(t)?"ltr":"rtl"}}let X=Y(),Z=new Set;function z(){for(let t of(X=Y(),Z))t(X)}let G=s().createContext(null),K=({journey:t})=>{let{timing:e,legs:n,searchUrl:m}=t,{duration:g,departureTime:v,departureDate:M}=e,{t:D}=(0,R.$G)("@eurostar/ds-content-route-map/common"),{t:O}=(0,R.$G)("@eurostar/ds-search-train-results/common"),{t:I}=(0,R.$G)("@eurostar/ds-journey-breakdown/common"),F=D("seeAllTrains"),U=I("accessibility",{returnObjects:!0}),$=n?.some(t=>"Lyria"===t.brandCode),_=(0,o.s)(g),W=function(t){let e,n=(0,r.useRef)(null);t&&n.current&&function(t,e){if(t===e)return!0;let n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(let i of n)if(e[i]!==t[i])return!1;return!0}(t,n.current)&&(t=n.current),n.current=t;let{locale:i}=(e=function(){let t="function"==typeof s().useSyncExternalStore?s().useSyncExternalStore(j,V,L):(0,r.useContext)(N),[e,n]=(0,r.useState)(X);return((0,r.useEffect)(()=>(0===Z.size&&window.addEventListener("languagechange",z),Z.add(n),()=>{Z.delete(n),0===Z.size&&window.removeEventListener("languagechange",z)}),[]),t)?{locale:"en-US",direction:"ltr"}:e}(),(0,r.useContext)(G)||e);return(0,r.useMemo)(()=>new B(i,t),[i,t])}({day:"numeric",month:"long"}),H=D("journeyTime",{departureDate:M&&W.format(new Date(M)),departureTime:v}),Y=O("changes",{count:n?.length-1}),K=!(n?.length-1);return(0,i.jsxs)(y,{"data-testid":"journey-breakdown-panel",children:[(0,i.jsxs)(x,{children:[(0,i.jsxs)(a.Z,{as:"span",variant:"BodyXLBold",children:[_?.separator,(0,i.jsx)(l.f,{value:_?.hours,unit:"hours"}),_?.separator,(0,i.jsx)(l.f,{value:_?.minutes,unit:"minutes"}),(0,i.jsxs)(a.Z,{variant:"BodyM",as:"span",textColour:u.default.Greyscale.SteelGrey,margin:[0,0,0,4],children:["(",D("approx"),")"]})]}),(0,i.jsx)(a.Z,{as:"span",variant:"BodyShortM",children:Y})]}),(0,i.jsx)(w,{children:n?.map(({origin:t,destination:e,duration:r,serviceCode:o,brandCode:a,pseudoLegType:l},u)=>{let f=h._({brandCode:a,serviceCode:o});return i.jsxs(s().Fragment,{children:[i.jsx(c.Z,{children:U.journeyBreakdown}),i.jsx(E,{children:i.jsx(S,{children:i.jsx(d.Z,{src:`https://static.eurostar.com/ui/design-system/logos/${f?.logo}`,alt:`${U.operator} ${f?.alt}`,height:f?.height,width:f?.width,mode:"inline",margin:[3,0,0,0]})})}),i.jsxs(T,{padding:0,alignContent:"flex-start",flexShrink:1,flexGrow:1,marginLeft:2.1,children:[i.jsxs(b,{isDirect:K,children:[i.jsx(k,{station:t}),!K&&i.jsx(P.F,{withPictogram:!1,duration:r,messageVariant:l})]}),i.jsx(k,{station:e})]}),n.length>1&&u%2==0&&i.jsx(A.Z,{hideDepatureNotice:!0,transferTime:C.Z(n[u]?.arrivalTime,n[u+1]?.departureTime),destinationStation:n[0].destination,originStation:n[1].origin,originStationUic:n[1].originUic,isLyriaJourney:$})]},u)})}),(0,i.jsx)(a.Z,{as:"p",variant:"BodyShortM",children:H}),(0,i.jsxs)(f.Z,{as:"a",href:m,target:"_blank",variant:"BodyL",display:"flex",isUnderlined:!0,margin:0,children:[F,(0,i.jsx)(p.Z,{variant:"arrowInCircleRightFilled",display:"inline-block",dimension:16,margin:[4,0,0,8]})]})]})}},9999:function(t,e,n){n.d(e,{p:function(){return h}});var i=n(52676),r=n(77374),s=n(11211),o=n(59761),a=n(20732),l=n(59415),u=n(50260);function h(t){let{isInactive:e,startDate:n,selectedDate:h,isDualMonth:c=!1}=t,{locale:d}=(0,r.bU)(),f=(0,o.ut)(),p=n?new u.aw(n[0],n[1],n[2]):void 0,m=h?new u.aw(h[0],h[1],h[2]):void 0,g=(0,l.F)({...t,...n?{minValue:p}:{minValue:f},defaultFocusedValue:m??p,defaultValue:m,visibleDuration:{months:c?2:1},locale:d,createCalendar:s.ZP,isDisabled:e});return(0,i.jsx)(a.u,{...t,calendarState:g,isDualMonth:c})}},248:function(t,e,n){n.d(e,{Z:function(){return h}});var i=n(52676),r=n(72847),s=n(52727),o=n.n(s),a=n(3168),l=n(53780);let u=o().div`
69  position: sticky;
70  top: 0;
71  z-index: ${a.M.header};
72  @media (min-width: ${l.A.xl}) {
73    position: static;
74    z-index: auto;
75  }
76`,h=(0,r.forwardRef)(({children:t},e)=>{let n=(0,r.useRef)(null);return(0,r.useImperativeHandle)(e,()=>({getHeaderHeight:()=>n.current?.offsetHeight||0}),[]),(0,i.jsx)(u,{ref:n,children:t})});h.displayName="SlimlineHeaderWrapperStickyTop"},93362:function(t,e,n){n.d(e,{Z:function(){return c}});var i=n(42160),r=n(97195),s=n(36877),o=n(45387);function a(t,e){let n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}var l=n(32851),u=n(20145);let h=t=>t.reduce((t,e)=>({outboundFares:[...t.outboundFares,...(e.data?.cheapestFaresSearch[0]?.cheapestFares||[]).filter(t=>null!==t).map(t=>({date:t.date,price:t.price,promo:t.promo?{...t.promo,value:t.promo.value??null}:null}))],inboundFares:[...t.inboundFares,...(e.data?.cheapestFaresSearch[1]?.cheapestFares||[]).filter(t=>null!==t).map(t=>({date:t.date,price:t.price,promo:t.promo?{...t.promo,value:t.promo.value??null}:null}))]}),{outboundFares:[],inboundFares:[]});async function c(t,e,n,c,d,f,p,m,g=!1,v,y){let x=Math.ceil(function(t,e,n){let[i,r]=(0,s.d)(void 0,t,e),l=a(i,r),u=Math.abs((0,o.w)(i,r));i.setDate(i.getDate()-l*u);let h=Number(a(i,r)===-l),c=l*(u-h);return 0===c?0:c}(n,e)/62),w=h(await Promise.all(Array.from({length:x},(s,o)=>t.query({query:i.b,variables:{...y&&{productFamiliesSearch:y},currency:m,fares:[{origin:f,destination:d,direction:r.sV.OUTBOUND,journeyType:p,startDate:(0,u.e9)((0,l.E)(e,62*o)),endDate:(0,u.e9)(x===o+1?n:(0,l.E)(e,(o+1)*62-1))},...g?[{origin:d,destination:f,direction:r.sV.INBOUND,journeyType:p,startDate:(0,u.e9)((0,l.E)(e,62*o)),endDate:(0,u.e9)(x===o+1?n:(0,l.E)(e,(o+1)*62-1))}]:[]],numberOfPassenger:c},context:v}))));return g?w:{outboundFares:w.outboundFares}}},3742:function(t,e,n){n.d(e,{Z:function(){return g}});var i=n(52676),r=n(72847),s=n.n(r),o=n(24579),a=n(44799),l=n(52727),u=n.n(l);let h=u().div`
77  display: flex;
78  align-items: center;
79  justify-content: center;
80  width: 100%;
81  height: 100%;
82`,c=u()(a.b6)`
83  width: 100%;
84  height: 100%;
85`,d=(t,e)=>({x:-t/2,y:-e}),f=s().memo(function({marker:t,renderMarker:e,renderMarkerCustomOverlayProps:n,testId:s}){let o=(0,r.useMemo)(()=>({lat:t.lat,lng:t.lng}),[t]),l=(0,r.useMemo)(()=>e(t),[e,t]),u=(0,r.useMemo)(()=>n(t),[n,t]);return(0,i.jsx)(a.Rj,{mapPaneName:a.xT.OVERLAY_MOUSE_TARGET,position:o,getPixelPositionOffset:d,"data-testid":`${s}-marker-overlay-${t.id}`,...u,children:l})});var p=n(67747);let m={strokeColor:p.default.Core.CoreBlue,strokeOpacity:0,icons:[{icon:{path:"M 0,-1 0,1",strokeOpacity:1,strokeColor:p.default.Core.CoreBlue,strokeWeight:3,scale:2},offset:"0",repeat:"10px"}]};var g=(0,r.forwardRef)(function(t,e){let{apiKey:n,markers:s=[],focusMarkers:l,googleMapOptions:u,fitBoundsPadding:d,renderMarker:p,renderMarkerCustomOverlayProps:g=()=>({}),onVisibleMarkersChanged:v,onMapClick:y,onMouseDown:x,testId:w="map",polylineMarkers:T,polylineOptions:E,onZoomChanged:S}=t,[b,P]=(0,r.useState)(null),[A,C]=(0,r.useState)(s),[R,M]=(0,r.useState)(10),{isLoaded:D}=(0,a.Ji)({id:"google-map-script",googleMapsApiKey:n});(0,r.useEffect)(()=>
85{S?.(R)},[S,R]);let O=(0,r.useCallback)(t=>{t?.addListener?.("bounds_changed",()=>{M(t.getZoom()??10)}),P(t)},[]),k=(0,r.useCallback)(()=>P(null),[]),N=(0,r.useCallback)(()=>{if(!v||!b||!s.length)return;let t=b.getBounds(),e=s.filter(e=>t?.contains(e));e.length===A.length&&e.every((t,e)=>t===A[e])||(C(e),v(e))},[v,b,s,A]),V=(0,r.useMemo)(()=>s.slice().sort((t,e)=>String(t.id).localeCompare(String(e.id),void 0,{numeric:!0,sensitivity:"base"})).map(t=>`${t.id}`).join("|"),[s]),L=(0,r.useMemo)(()=>s.map(t=>({lat:t.lat,lng:t.lng})),[V]),j=(0,r.useCallback)(()=>{let t=new window.google.maps.LatLngBounds;if(l?.length)return l.forEach(e=>t.extend(e)),b?.fitBounds(t,d);L.forEach(e=>t.extend(e)),b?.fitBounds(t,d)},[l,L,b,d]);return(0,r.useEffect)(()=>{b&&L.length&&(1==L.length?(b.setCenter(L[0]),b.setZoom(15)):j())},[b,L,j]),(0,r.useImperativeHandle)(e,()=>({fitMarkersIntoMap:j}),[j]),(0,r.useEffect)(()=>{N()},[s,N]),(0,i.jsx)(h,{"data-testid":`${w}-wrapper`,children:D?(0,i.jsx)(c,{onLoad:O,onUnmount:k,onBoundsChanged:N,options:u,mapContainerStyle:{width:"100%",height:"100%"},onClick:y,onMouseDown:x,children:p&&(0,i.jsxs)(i.Fragment,{children:[s.map(t=>(0,i.jsx)(f,{marker:t,renderMarker:p,renderMarkerCustomOverlayProps:g,testId:w},t.id)),T&&(0,i.jsx)(a.dp,{path:T,options:{...m,...E}})]})}):(0,i.jsx)(o.Z,{testId:`${w}-loader`,isLoading:!0})})})},66570:function(t,e,n){n.d(e,{Z:function(){return w}});var i=n(52676),r=n(72847),s=n.n(r),o=n(1992),a=n(40974),l=n(38600),u=n(98786),h=n(90659),c=n(27278),d=n(52727),f=n.n(d);let p=f().div`
86  max-width: 21.875rem;
87  width: 100%;
88`,m=f().div`
89  width: 100%;
90`;var g=n(66171),v=n(22441),y=n(86393),x=n(44880);function w({errors:t,labels:e,onValidate:n,signUpCalendarType:d}){let{t:f}=(0,c.$G)("@eurostar/ds-newsletter-sign-up-form/common"),w=t=>f(t),{market:T,language:E}=(0,o.b)(),S=w("response.error"),b=E.toUpperCase(),P=`${T}-${E}`,[A,C]=(0,r.useState)(g.y.Idle),[R,M]=s().useState(""),{formValues:D,updateFormValues:O}=(0,y.fq)(),{makeSignupRequest:k}=(0,y.dG)(),N=(0,a.Z)(),V={"lff-signup-form":v.s.WHOLEPAGE_LFF_BEYOND_HORIZON,"inpage-lff-signup-form":v.s.INPAGE_LFF_BEYOND_HORIZON,"bm-notification-signup-form":v.s.BOOKING_MAGNET_BEYOND_HORIZON},L={variables:{profile:{firstName:D.firstName,lastName:D.lastName,emailAddress:D.email,preferredLanguage:b,market:P},preferences:[v.o.EUROSTAR_INTERNATIONAL_NEWSLETTER],submittedFrom:V[d]}},j=(0,y.vZ)(!0,d);return A===g.y.Success?(0,i.jsx)(m,{children:(0,i.jsx)(h.Z,{title:(0,i.jsx)(x.Z,{value:e.confirmationMessage}),variant:"success",content:"plain",subText:(0,i.jsx)("div",{"data-cs-mask":!0,children:`${w("bookingMagnetSignUp.confirmationMessage")} ${R}`}),role:"alert"})}):A===g.y.Error?(0,i.jsx)(m,{children:(0,i.jsx)(h.Z,{title:S,variant:"error",content:"plain",role:"alert"})}):(0,i.jsx)(p,{children:(0,i.jsxs)("form",{noValidate:!0,onSubmit:t=>(0,y.R2)({e:t,requestState:A,setRequestState:C,onValidate:n,formValues:D,makeSignupRequest:k,signUpRequestProps:L,setSuccessBannerContent:M,updateFormValues:O,trackingEvents:j,isBookingMagnetCalendar:!0}),children:[(0,i.jsx)(u.ZP,{"data-cs-mask":!0,label:e.firstName,id:`${N}-firstName`,autoComplete:"given-name",type:"text",value:D.firstName,placeholder:w("placeholder.firstName"),error:t.firstName,onBlur:t=>(0,y.u1)({id:"firstName",value:t,formValues:D,onValidate:n}),onChange:t=>O({firstName:t})}),(0,i.jsx)(u.ZP,{"data-cs-mask":!0,label:e.lastName,id:`${N}-lastName`,autoComplete:"family-name",type:"text",value:D.lastName,placeholder:w("placeholder.lastName"),error:t.lastName,onBlur:t=>(0,y.u1)({id:"lastName",value:t,formValues:D,onValidate:n}),onChange:t=>O({lastName:t})}),(0,i.jsx)(u.ZP,{"data-cs-mask":!0,label:e.email,id:`${N}-email`,autoComplete:"email",type:"email",value:D.email,placeholder:w("placeholder.email"),error:t.email,onBlur:t=>(0,y.u1)({id:"email",value:t,formValues:D,onValidate:n}),onChange:t=>O({email:t})}),(0,i.jsx)(l.Z,{as:"button",type:"submit","aria-disabled":A===g.y.Pending,isLoading:A===g.y.Pending,variant:"SecondaryBlue",fullWidth:!0,children:e.ctaLabel})]})})}},22441:function(t,e,n){n.d(e,{o:function(){return s},s:function(){return o}});var i,r,s=((i=s||{}).CLUB_EUROSTAR_NEWSLETTER="CLUB_EUROSTAR_NEWSLETTER",i.EUROSTAR_BUSINESS_TRAVEL_NEWSLETTER="EUROSTAR_BUSINESS_TRAVEL_NEWSLETTER",i.EUROSTAR_HOLIDAYS_NEWSLETTER="EUROSTAR_HOLIDAYS_NEWSLETTER",i.EUROSTAR_INTERNATIONAL_NEWSLETTER="EUROSTAR_INTERNATIONAL_NEWSLETTER",i),o=((r=o||{}).ACCOUNTS_COMMUNICATION_PREFERENCES="ACCOUNTS_COMMUNICATION_PREFERENCES",r.ACCOUNTS_DASHBOARD_NEWSLETTER_BANNER="ACCOUNTS_DASHBOARD_NEWSLETTER_BANNER",r.ACCOUNTS_PROMOTION_BANNER="ACCOUNTS_PROMOTION_BANNER",r.ACCOUNTS_PROMOTION_OVERLAY="ACCOUNTS_PROMOTION_OVERLAY",r.APP_PREFERENCE_CENTER="APP_PREFERENCE_CENTER",r.BANNER_DEALS="BANNER_DEALS",r.BANNER_DESTINATIONS="BANNER_DESTINATIONS",r.BANNER_HOMEPAGE="BANNER_HOMEPAGE",r.BANNER_LOYALTY="BANNER_LOYALTY",r.BANNER_TRAINS_TO="BANNER_TRAINS_TO",r.BANNER_TRAVEL_INFO="BANNER_TRAVEL_INFO",r.BOOKING_MAGNET_BEYOND_HORIZON="BOOKING_MAGNET_BEYOND_HORIZON",r.CHECKOUT="CHECKOUT",r.CHECKOUT_HOTELS="CHECKOUT_HOTELS",r.CHECKOUT_PACKAGES="CHECKOUT_PACKAGES",r.CHECKOUT_PROMOTION="CHECKOUT_PROMOTION",r.CHECKOUT_SNAP="CHECKOUT_SNAP",r.E4B_EMPLOYEE_REGISTRATION="E4B_EMPLOYEE_REGISTRATION",r.E4B_LOGIN="E4B_LOGIN",r.E4B_REGISTRATION="E4B_REGISTRATION",r.INPAGE_LFF_BEYOND_HORIZON="INPAGE_LFF_BEYOND_HORIZON",r.JOIN_CLUB_EUROSTAR="JOIN_CLUB_EUROSTAR",r.NEWSLETTER="NEWSLETTER",r.REGISTRATION="REGISTRATION",r.WHOLEPAGE_LFF_BEYOND_HORIZON="WHOLEPAGE_LFF_BEYOND_HORIZON",r)},66171:function(t,e,n){n.d(e,{y:function(){return r}});var i,r=((i=r||{}).Error="Error",i.Idle="Idle",i.Pending="Pending",i.Success="Success",i)},86393:function(t,e,n){n.d(e,{u1:function(){return c},R2:function(){return p},fq:function(){return d},dG:function(){return f},vZ:function(){return m}});var i=n(72847),r=n(27278),s=n(79097),o=n(28339),a=n(6745);let l=(0,a.Ps)`
91  mutation marketingPreferencesOptIn(
92    $profile: MarketingPreferencesProfile!
93    $preferences: [MarketingPreferencesOptInEnum!]!
94    $submittedFrom: MarketingPreferencesSubmittedFrom!
95  ) {
96    marketingPreferencesOptIn(profile: $profile, submittedFrom: $submittedFrom, preferences: $preferences) {
97      success
98    }
99  }
100`;var u=n(66171);let h={firstName:"",lastName:"",email:"",marketingConsent:!0},c=async({formValues:t,id:e,value:n,onValidate:i})=>{let r={...t,[e]:n};try{await i(r,e)}catch(t){return}},d=()=>{let[t,e]=(0,i.useReducer)((t,e)=>({...t,...e}),h);return{formValues:t,updateFormValues:e}},f=()=>{let[t]=(0,s.D)(l);return{makeSignupRequest:t}},p=async({e:t,requestState:e,setRequestState:n,onValidate:i,formValues:r,makeSignupRequest:s,signUpRequestProps:o,setSuccessBannerContent:a,updateFormValues:l,trackingEvents:c,isBookingMagnetCalendar:d})=>{if(t.preventDefault(),e!==u.y.Pending){c?.signUpClick();try{await i(r)}catch(t){if(null!==t&&"object"==typeof t){let e="inner"in t?t:void 0;if(!e)return;let n=e.inner.map(t=>t.message).join(","),i=e.inner.map(t=>`${d?"validation.":""}${t.path}.${t.type}`).join(", ");c?.validationError({errorMessage:n,eventLabel:i})}return}try{n(u.y.Pending),await s(o),n(u.y.Success),a(r.email),l(h),c?.optInClick()}catch(t){c?.backendError(),n(u.y.Error)}}},m=(t,e="bm-notification-signup-form")=>{let{t:n}=(0,r.$G)("@eurostar/ds-newsletter-sign-up-form/common"),{trackInteractionEvent:i}=(0,o.r)(),s=n("response.error"),a=t?e:"newsletter-sign-up-page";return{signUpClick:()=>{t?i({event:"TealiumLink",eventName:"InteractionEvent",eventCategory:"Newsletter",eventAction:"Click",eventLabel:"Subscribe to Newsletter",isLoggedIn:"false",formName:a}):i({eventName:"InteractionEvent",eventCategory:"Newsletter",eventAction:"Click",eventLabel:"Sign me up"})},optInClick:()=>{i({event:"TealiumLink",eventName:"InteractionEvent",eventCategory:"Newsletter",eventAction:"Click",eventLabel:"Opt-In",formName:a,mktOptions:"true"})},validationError:({errorMessage:t,eventLabel:e})=>{i({event:"TealiumLink",eventName:"ErrorEvent",eventCategory:"Error",eventAction:"Validation error",eventLabel:e,errorMessage:t,formName:a})},backendError:()=>{i({event:"TealiumLink",eventName:"ErrorEvent",eventCategory:"Error",eventAction:"Backend error",eventLabel:"NewsletterOptInFailed",errorMessage:s,formName:a})}}}},48994:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.generateCustomerId=void 0;let i=n(95944);async function r(t,e){let n=new TextEncoder().encode(t.toLowerCase()),r=Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256",n))).map(t=>t.toString(16).padStart(2,"0")).join("");return(null==e?void 0:e.prefix)?(0,i.prefixId)(r):r}e.generateCustomerId=r},76898:function(t,e,n){e.O=void 0;var i=n(48994);Object.defineProperty(e,"O",{enumerable:!0,get:function(){return i.generateCustomerId}})},95944:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.prefixId=void 0,e.prefixId=function(t){return`customer-profile:${t}`}},53395:function(t,e,n){n.d(e,{j:function(){return W}});class i{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let n=0;n<this.animations.length;n++)this.animations[n][t]=e}attachTimeline(t){let e=this.animations.map(e=>e.attachTimeline(t));return()=>{e.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return r(this.animations,"duration")}get iterationDuration(){return r(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(e=>e[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function r(t,e){let n=0;for(let i=0;i<t.length;i++){let r=t[i][e];null!==r&&r>n&&(n=r)}return n}class s extends i{then(t,e){return this.finished.finally(t).then(()=>{})}}var o=n(3668),a=n(87014),l=n(24944),u=n(69097),h=n(21746),c=n(41459),d=n(872),f=n(14083),p=n(40944),m=n(25122);let g=(t,e,n)=>{let i=e-t;return((n-t)%i+i)%i+t};var v=n(74843);
100function y(t,e){return(0,v.N)(t)?t[g(0,t.length,e)]:t}var x=n(13663),w=n(75741);function T(t){return"object"==typeof t&&!Array.isArray(t)}function E(t,e,n,i){return null==t?[]:"string"==typeof t&&T(e)?(0,w.I)(t,n,i):t instanceof NodeList?Array.from(t):Array.isArray(t)?t.filter(t=>null!=t):[t]}function S(t,e,n,i){return"number"==typeof e?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):"<"===e?n:e.startsWith("<")?Math.max(0,n+parseFloat(e.slice(1))):i.get(e)??t}var b=n(31557);function P(t,e){return t.at!==e.at?t.at-e.at:null===t.value?1:null===e.value?-1:0}function A(t,e){return e.has(t)||e.set(t,{}),e.get(t)}function C(t,e){return e[t]||(e[t]=[]),e[t]}let R=t=>"number"==typeof t,M=t=>t.every(R);var D=n(81792),O=n(51908),k=n(21476),N=n(64598),V=n(10426),L=n(62440),j=n(77937),I=n(50603),B=n(89108);class F extends B.l9{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,e){if(e in t){let n=t[e];if("string"==typeof n||"number"==typeof n)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(t,e){delete e.output[t]}measureInstanceViewportBox(){return(0,I.dO)()}build(t,e){Object.assign(t.output,e)}renderInstance(t,{output:e}){Object.assign(t,e)}sortInstanceNodePosition(){return 0}}function U(t){let e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=(0,N.v)(t)&&!(0,V.r)(t)?new L.e(e):new j.W(e);n.mount(t),O.R.set(t,n)}function $(t){let e=new F({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});e.mount(t),O.R.set(t,e)}function _(t,e,n,i){let r=[];if((0,f.i)(t)||"number"==typeof t||"string"==typeof t&&!T(e))r.push((0,D.D)(t,T(e)&&e.default||e,n&&n.default||n));else{if(null==t)return r;let s=E(t,e,i),o=s.length;(0,m.k)(!!o,"No valid elements provided.","no-valid-elements");for(let t=0;t<o;t++){let i=s[t],a=i instanceof Element?U:$;O.R.has(i)||a(i);let l=O.R.get(i),u={...n};"delay"in u&&"function"==typeof u.delay&&(u.delay=u.delay(t,o)),r.push(...(0,k.w)(l,{...e,transition:u},{}))}}return r}let W=function(t={}){let{scope:e,reduceMotion:n}=t;return function(t,i,r){let g,v=[];if(Array.isArray(t)&&t.some(Array.isArray))v=function(t,e,n){let i=[];return(function(t,{defaultTransition:e={},...n}={},i,r){let s=e.duration||.3,a=new Map,l=new Map,g={},v=new Map,w=0,T=0,R=0;for(let n=0;n<t.length;n++){let a=t[n];if("string"==typeof a){v.set(a,T);continue}if(!Array.isArray(a)){v.set(a.name,S(T,a.at,w,v));continue}let[x,P,D={}]=a;void 0!==D.at&&(T=S(T,D.at,w,v));let O=0,k=(t,n,i,a=0,l=0)=>{let f=Array.isArray(t)?t:[t],{delay:g=0,times:v=(0,u.Y)(f),type:x=e.type||"keyframes",repeat:w,repeatType:E,repeatDelay:S=0,...P}=n,{ease:A=e.ease||"easeOut",duration:C}=n,D="function"==typeof g?g(a,l):g,k=f.length,N=(0,h.x)(x)?x:r?.[x||"keyframes"];if(k<=2&&N){let t=100;2===k&&M(f)&&(t=Math.abs(f[1]-f[0]));let n={...e,...P};void 0!==C&&(n.duration=(0,p.w)(C));let i=(0,c.S)(n,t,N);A=i.ease,C=i.duration}C??(C=s);let V=T+D;1===v.length&&0===v[0]&&(v[1]=1);let L=v.length-f.length;if(L>0&&(0,d.c)(v,L),1===f.length&&f.unshift(null),w){(0,m.k)(w<20,"Repeat count too high, must be less than 20","repeat-count-high"),C*=w+1;let t=[...f],e=[...v],n=[...A=Array.isArray(A)?[...A]:[A]];for(let i=0;i<w;i++){f.push(...t);for(let r=0;r<t.length;r++)v.push(e[r]+(i+1)),A.push(0===r?"linear":y(n,r-1))}!function(t,e){for(let n=0;n<t.length;n++)t[n]=t[n]/(e+1)}(v,w)}let j=V+C;(function(t,e,n,i,r,s){!function(t,e,n){for(let i=0;i<t.length;i++){let r=t[i];r.at>e&&r.at<n&&((0,o.cl)(t,r),i--)}}(t,r,s);for(let o=0;o<e.length;o++)t.push({value:e[o],at:(0,b.t)(r,s,i[o]),easing:y(n,o)})})(i,f,A,v,V,j),O=Math.max(D+C,O),R=Math.max(j,R)};if((0,f.i)(x))k(P,D,C("default",A(x,l)));else{let t=E(x,P,i,g),e=t.length;for(let n=0;n<e;n++){let i=A(t[n],l);for(let t in P)k(P[t],D&&D[t]?{...D,...D[t]}:{...D},C(t,i),n,e)}}w=T,T+=O}return l.forEach((t,i)=>{for(let r in t){let s=t[r];s.sort(P);let o=[],l=[],u=[];for(let t=0;t<s.length;t++){let{at:e,value:n,easing:i}=s[t];o.push(n),l.push((0,x.Y)(0,R,e)),u.push(i||"easeOut")}0!==l[0]&&(l.unshift(0),o.unshift(o[0]),u.unshift("easeInOut")),1!==l[l.length-1]&&(l.push(1),o.push(null)),a.has(i)||a.set(i,{keyframes:{},transition:{}});let h=a.get(i);h.keyframes[r]=o;let{type:c,...d}=e;h.transition[r]={...d,duration:R,ease:u,times:l,...n}}}),a})(t.map(t=>{if(Array.isArray(t)&&"function"==typeof t[0]){let e=t[0],n=(0,a.BX)(0);return(n.on("change",e),1===t.length)?[n,[0,1]]:2===t.length?[n,[0,1],t[1]]:[n,t[1],t[2]]}return t}),e,n,{spring:l.S}
100).forEach(({keyframes:t,transition:e},n)=>{i.push(..._(n,t,e))}),i}(t,void 0!==n?{reduceMotion:n,...i}:i,e);else{let{onComplete:s,...o}=r||{};"function"==typeof s&&(g=s),v=_(t,i,void 0!==n?{reduceMotion:n,...o}:o,e)}let w=new s(v);return g&&w.finished.then(g),e&&(e.animations.push(w),w.finished.then(()=>{(0,o.cl)(e.animations,w)})),w}}()},6993:function(t,e,n){n.d(e,{M:function(){return x}});var i=n(52676),r=n(72847),s=n(56197),o=n(72287),a=n(87145),l=n(45842),u=n(32792),h=n(65928);function c(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}class d extends r.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let t=e.offsetParent,n=(0,u.R)(t)&&t.offsetWidth||0,i=(0,u.R)(t)&&t.offsetHeight||0,r=this.props.sizeRef.current;r.height=e.offsetHeight||0,r.width=e.offsetWidth||0,r.top=e.offsetTop,r.left=e.offsetLeft,r.right=n-r.width-r.left,r.bottom=i-r.height-r.top}return null}componentDidUpdate(){}render(){return this.props.children}}function f({children:t,isPresent:e,anchorX:n,anchorY:s,root:o,pop:a}){let l=(0,r.useId)(),u=(0,r.useRef)(null),f=(0,r.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:p}=(0,r.useContext)(h._),m=function(...t){return r.useCallback(function(...t){return e=>{let n=!1,i=t.map(t=>{let i=c(t,e);return n||"function"!=typeof i||(n=!0),i});if(n)return()=>{for(let e=0;e<i.length;e++){let n=i[e];"function"==typeof n?n():c(t[e],null)}}}}(...t),t)}(u,t.props?.ref??t?.ref);return(0,r.useInsertionEffect)(()=>{let{width:t,height:i,top:r,left:h,right:c,bottom:d}=f.current;if(e||!1===a||!u.current||!t||!i)return;let m="left"===n?`left: ${h}`:`right: ${c}`,g="bottom"===s?`bottom: ${d}`:`top: ${r}`;u.current.dataset.motionPopId=l;let v=document.createElement("style");p&&(v.nonce=p);let y=o??document.head;return y.appendChild(v),v.sheet&&v.sheet.insertRule(`
101          [data-motion-pop-id="${l}"] {
102            position: absolute !important;
103            width: ${t}px !important;
104            height: ${i}px !important;
105            ${m}px !important;
106            ${g}px !important;
107          }
108        `),()=>{y.contains(v)&&y.removeChild(v)}},[e]),(0,i.jsx)(d,{isPresent:e,childRef:u,sizeRef:f,pop:a,children:!1===a?t:r.cloneElement(t,{ref:m})})}let p=({children:t,initial:e,isPresent:n,onExitComplete:s,custom:a,presenceAffectsLayout:u,mode:h,anchorX:c,anchorY:d,root:p})=>{let g=(0,o.h)(m),v=(0,r.useId)(),y=!0,x=(0,r.useMemo)(()=>(y=!1,{id:v,initial:e,isPresent:n,custom:a,onExitComplete:t=>{for(let e of(g.set(t,!0),g.values()))if(!e)return;s&&s()},register:t=>(g.set(t,!1),()=>g.delete(t))}),[n,g,s]);return u&&y&&(x={...x}),(0,r.useMemo)(()=>{g.forEach((t,e)=>g.set(e,!1))},[n]),r.useEffect(()=>{n||g.size||!s||s()},[n]),t=(0,i.jsx)(f,{pop:"popLayout"===h,isPresent:n,anchorX:c,anchorY:d,root:p,children:t}),(0,i.jsx)(l.O.Provider,{value:x,children:t})};function m(){return new Map}var g=n(46368);let v=t=>t.key||"";function y(t){let e=[];return r.Children.forEach(t,t=>{(0,r.isValidElement)(t)&&e.push(t)}),e}let x=({children:t,custom:e,initial:n=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:h="sync",propagate:c=!1,anchorX:d="left",anchorY:f="top",root:m})=>{let[x,w]=(0,g.oO)(c),T=(0,r.useMemo)(()=>y(t),[t]),E=c&&!x?[]:T.map(v),S=(0,r.useRef)(!0),b=(0,r.useRef)(T),P=(0,o.h)(()=>new Map),A=(0,r.useRef)(new Set),[C,R]=(0,r.useState)(T),[M,D]=(0,r.useState)(T);(0,a.L)(()=>{S.current=!1,b.current=T;for(let t=0;t<M.length;t++){let e=v(M[t]);E.includes(e)?(P.delete(e),A.current.delete(e)):!0!==P.get(e)&&P.set(e,!1)}},[M,E.length,E.join("-")]);let O=[];if(T!==C){let t=[...T];for(let e=0;e<M.length;e++){let n=M[e],i=v(n);E.includes(i)||(t.splice(e,0,n),O.push(n))}return"wait"===h&&O.length&&(t=O),D(y(t)),R(T),null}let{forceRender:k}=(0,r.useContext)(s.p);return(0,i.jsx)(i.Fragment,{children:M.map(t=>{let r=v(t),s=(!c||!!x)&&(T===M||E.includes(r));return(0,i.jsx)(p,{isPresent:s,initial:(!S.current||!!n)&&void 0,custom:e,presenceAffectsLayout:u,mode:h,root:m,onExitComplete:s?void 0:()=>{if(A.current.has(r)||(A.current.add(r),!P.has(r)))return;P.set(r,!0);let t=!0;
108P.forEach(e=>{e||(t=!1)}),t&&(k?.(),D(b.current),c&&w?.(),l&&l())},anchorX:d,anchorY:f,children:t},r)})})}},46368:function(t,e,n){n.d(e,{oO:function(){return s}});var i=n(72847),r=n(45842);function s(t=!0){let e=(0,i.useContext)(r.O);if(null===e)return[!0,null];let{isPresent:n,onExitComplete:s,register:o}=e,a=(0,i.useId)();(0,i.useEffect)(()=>{if(t)return o(a)},[t]);let l=(0,i.useCallback)(()=>t&&s&&s(a),[a,s,t]);return!n&&s?[!1,l]:[!0]}},56197:function(t,e,n){n.d(e,{p:function(){return i}});let i=(0,n(72847).createContext)({})},65928:function(t,e,n){n.d(e,{_:function(){return i}});let i=(0,n(72847).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},45842:function(t,e,n){n.d(e,{O:function(){return i}});let i=(0,n(72847).createContext)(null)},88510:function(t,e,n){let i,r;n.d(e,{E:function(){return nB}});var s,o=n(62440),a=n(77937),l=n(72847);let u=["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 h(t){if("string"!=typeof t||t.includes("-"));else if(u.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var c=n(52676),d=n(56197);let f=(0,l.createContext)({strict:!1});var p=n(65928);let m=(0,l.createContext)({});var g=n(26651),v=n(17996);function y(t){return Array.isArray(t)?t.join(" "):t}var x=n(14083),w=n(80166),T=n(38297);let E=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function S(t,e,n){for(let i in e)(0,x.i)(e[i])||(0,w.jF)(i,n)||(t[i]=e[i])}var b=n(65133),P=n(13422);let A=()=>({...E(),attrs:{}}),C=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","propagate","ignoreStrict","viewport"]);function R(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||C.has(t)}let M=t=>!R(t);try{s=require("@emotion/is-prop-valid").default,"function"==typeof s&&(M=t=>t.startsWith("on")?!R(t):s(t))}catch{}var D=n(68798);function O(t){return(0,x.i)(t)?t.get():t}var k=n(93403),N=n(18020),V=n(45842),L=n(72287);let j=t=>(e,n)=>{let i=(0,l.useContext)(m),r=(0,l.useContext)(V.O),s=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},n,i,r){return{latestValues:function(t,e,n,i){let r={},s=i(t,{});for(let t in s)r[t]=O(s[t]);let{initial:o,animate:a}=t,l=(0,g.G)(t),u=(0,g.M)(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let h=!!n&&!1===n.initial,c=(h=h||!1===o)?a:o;if(c&&"boolean"!=typeof c&&!(0,k.H)(c)){let e=Array.isArray(c)?c:[c];for(let n=0;n<e.length;n++){let i=(0,N.o)(t,e[n]);if(i){let{transitionEnd:t,transition:e,...n}=i;for(let t in n){let e=n[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let e in t)r[e]=t[e]}}}return r}(n,i,r,t),renderState:e()}})(t,e,i,r);return n?s():(0,L.h)(s)},I=j({scrapeMotionValuesFromProps:D.U,createRenderState:E}),B=j({scrapeMotionValuesFromProps:n(63349).U,createRenderState:A});var F=n(31337),U=n(89108);let $={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"]},_=!1;function W(){return!function(){if(_)return;let t={};for(let e in $)t[e]={isEnabled:t=>$[e].some(e=>!!t[e])};(0,U.v7)(t),_=!0}(),(0,U.uN)()}let H=Symbol.for("motionComponentSymbol");var Y=n(56252);let X=(0,l.createContext)({});function Z(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var z=n(87145);function G(t,{forwardMotionProps:e=!1,type:n}={},i,r){i&&function(t){let e=W();for(let n in t)e[n]={...e[n],...t[n]};(0,U.v7)(e)}(i);let s=n?"svg"===n:h(t),o=s?B:I;function a(n,i){let a;let u={...(0,l.useContext)(p._),...n,layoutId:function({layoutId:t}){let e=(0,l.useContext)(d.p).id;return e&&void 0!==t?e+"-"+t:t}(n)},{isStatic:w}=u,C=function(t){let{initial:e,animate:n}=function(t,e){if((0,g.G)(t)){let{initial:e,animate:n}=t;return{initial:!1===e||(0,v.$)(e)?e:void 0,animate:(0,v.$)(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,(0,l.useContext)(m));return(0,l.useMemo)(()=>({initial:e,animate:n}),[y(e),y(n)])}(n),D=o(n,w);if(!w&&F.j){(0,l.useContext)(f).strict;let e=function(t){let{drag:e,layout:n}=W();if(!e&&!n)return{};let i={...e,...n};return{MeasureLayout:e?.isEnabled(t)||n?.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}
108(u);a=e.MeasureLayout,C.visualElement=function(t,e,n,i,r,s){let{visualElement:o}=(0,l.useContext)(m),a=(0,l.useContext)(f),u=(0,l.useContext)(V.O),h=(0,l.useContext)(p._),c=h.reducedMotion,d=h.skipAnimations,g=(0,l.useRef)(null),v=(0,l.useRef)(!1);i=i||a.renderer,!g.current&&i&&(g.current=i(t,{visualState:e,parent:o,props:n,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:c,skipAnimations:d,isSVG:s}),v.current&&g.current&&(g.current.manuallyAnimateOnMount=!0));let y=g.current,x=(0,l.useContext)(X);y&&!y.projection&&r&&("html"===y.type||"svg"===y.type)&&function(t,e,n,i){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:h}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!o||a&&Z(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:i,crossfade:h,layoutScroll:l,layoutRoot:u})}(g.current,n,r,x);let w=(0,l.useRef)(!1);(0,l.useInsertionEffect)(()=>{y&&w.current&&y.update(n,u)});let T=n[Y.M],E=(0,l.useRef)(!!T&&!window.MotionHandoffIsComplete?.(T)&&window.MotionHasOptimisedAnimation?.(T));return(0,z.L)(()=>{v.current=!0,y&&(w.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),E.current&&y.animationState&&y.animationState.animateChanges())}),(0,l.useEffect)(()=>{y&&(!E.current&&y.animationState&&y.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(T)}),E.current=!1),y.enteringChildren=void 0)}),y}(t,D,u,r,e.ProjectionNode,s)}return(0,c.jsxs)(m.Provider,{value:C,children:[a&&C.visualElement?(0,c.jsx)(a,{visualElement:C.visualElement,...u}):null,function(t,e,n,{latestValues:i},r,s=!1,o){let a=(o??h(t)?function(t,e,n,i){let r=(0,l.useMemo)(()=>{let n=A();return(0,b.i)(n,e,(0,P.a)(i),t.transformTemplate,t.style),{...n.attrs,style:{...n.style}}},[e]);if(t.style){let e={};S(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let n={},i=function(t,e){let n=t.style||{},i={};return S(i,n,t),Object.assign(i,function({transformTemplate:t},e){return(0,l.useMemo)(()=>{let n=E();return(0,T.r)(n,e,t),Object.assign({},n.vars,n.style)},[e])}(t,e)),i}(t,e);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n})(e,i,r,t),u=function(t,e,n){let i={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(M(r)||!0===n&&R(r)||!e&&!R(r)||t.draggable&&r.startsWith("onDrag"))&&(i[r]=t[r]);return i}(e,"string"==typeof t,s),c=t!==l.Fragment?{...u,...a,ref:n}:{},{children:d}=e,f=(0,l.useMemo)(()=>(0,x.i)(d)?d.get():d,[d]);return(0,l.createElement)(t,{...c,children:f})}(t,n,function(t,e,n){let i=(0,l.useRef)(n);(0,l.useInsertionEffect)(()=>{i.current=n});let r=(0,l.useRef)(null);return(0,l.useCallback)(n=>{n&&t.onMount?.(n),e&&(n?e.mount(n):e.unmount());let s=i.current;if("function"==typeof s){if(n){let t=s(n);"function"==typeof t&&(r.current=t)}else r.current?(r.current(),r.current=null):s(n)}else s&&(s.current=n)},[e])}(D,C.visualElement,i),D,w,e,s)]})}a.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let u=(0,l.forwardRef)(a);return u[H]=t,u}class K{constructor(t){this.isMounted=!1,this.node=t}update(){}}var q=n(31740),J=n(21476);function Q(t,e,n,i=0,r=1){let s=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*i;return"function"==typeof n?n(s,o):1===r?s*i:a-s*i}function tt(t,e,n={}){let i=(0,q.x)(t,e,"exit"===n.type?t.presenceContext?.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(r=n.transitionOverride);let s=i?()=>Promise.all((0,J.w)(t,i,n)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(i=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=r;return function(t,e,n=0,i=0,r=0,s=1,o){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(tt(l,e,{...o,delay:n+("function"==typeof i?0:i)+Q(t.variantChildren,l,i,r,s)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,i,s,o,a,n)}:()=>Promise.resolve(),{when:a}=r;if(!a)return Promise.all([s(),o(n.delay)]);{let[t,e]="beforeChildren"===a?[s,o]:[o,s];return t().then(()=>e())}}var te=n(51809);let tn=te.V.length;var ti=n(7560);function tr(t,e){if(!Array.isArray(e))return!1;let n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}let ts=[...te.e].reverse(),to=te.e.length;function ta(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function tl(){return{animate:ta(!0),whileInView:ta(),whileHover:ta(),whileTap:ta(),whileDrag:ta(),whileFocus:ta(),exit:ta()}}class tu extends K{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:n})=>(function(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e))i=Promise.all(e.map(e=>tt(t,e,n)));else if("string"==typeof e)i=tt(t,e,n);else{let r="function"==typeof e?(0,q.x)(t,e,n.custom):e;i=Promise.all((0,J.w)(t,r,n))}return i.then(()=>{t.notify("AnimationComplete",e)})})(t,e,n))),n=tl(),i=!0,r=e=>(n,i)=>{let r=(0,q.x)(t,i,"exit"===e?t.presenceContext?.custom:void 0);if(r){let{transition:t,transitionEnd:e,...i}=r;n={...n,...i,...e}}return n};function s(s){let{props:o}=t,a=function t(e){if(!e)return;if(!e.isControllingVariants){let n=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(n.initial=e.props.initial),n}let n={};for(let t=0;t<tn;t++){let i=te.V[t],r=e.props[i];((0,v.$)(r)||!1===r)&&(n[i]=r)}return n}(t.parent)||{},l=[],u=new Set,h={},c=1/0;for(let e=0;e<to;e++){var d;let f=ts[e],p=n[f],m=void 0!==o[f]?o[f]:a[f],g=(0,v.$)(m),y=f===s?p.isActive:null;!1===y&&(c=e);let x=m===a[f]&&m!==o[f]&&g;if(x&&i&&t.manuallyAnimateOnMount&&(x=!1),p.protectedKeys={...h},!p.isActive&&null===y||!m&&!p.prevProp||(0,k.H)(m)||"boolean"==typeof m)continue;if("exit"===f&&p.isActive&&!0!==y){p.prevResolvedValues&&(h={...h,...p.prevResolvedValues});continue}let w=(d=p.prevProp,"string"==typeof m?m!==d:!!Array.isArray(m)&&!tr(m,d)),T=w||f===s&&p.isActive&&!x&&g||e>c&&g,E=!1,S=Array.isArray(m)?m:[m],b=S.reduce(r(f),{});!1===y&&(b={});let{prevResolvedValues:P={}}=p,A={...P,...b},C=e=>{T=!0,u.has(e)&&(E=!0,u.delete(e)),p.needsAnimating[e]=!0;let n=t.getValue(e);n&&(n.liveStyle=!1)};for(let t in A){let e=b[t],n=P[t];if(!h.hasOwnProperty(t))((0,ti.C)(e)&&(0,ti.C)(n)?tr(e,n):e===n)?void 0!==e&&u.has(t)?C(t):p.protectedKeys[t]=!0:null!=e?C(t):u.add(t)}p.prevProp=m,p.prevResolvedValues=b,p.isActive&&(h={...h,...b}),i&&t.blockInitialAnimation&&(T=!1);let R=x&&w,M=!R||E;T&&M&&l.push(...S.map(e=>{let n={type:f};if("string"==typeof e&&i&&!R&&t.manuallyAnimateOnMount&&t.parent){let{parent:i}=t,r=(0,q.x)(i,e);if(i.enteringChildren&&r){let{delayChildren:e}=r.transition||{};n.delay=Q(i.enteringChildren,t,e)}}return{animation:e,options:n}}))}if(u.size){let e={};if("boolean"!=typeof o.initial){let n=(0,q.x)(t,Array.isArray(o.initial)?o.initial[0]:o.initial);n&&n.transition&&(e.transition=n.transition)}u.forEach(n=>{let i=t.getBaseTarget(n),r=t.getValue(n);r&&(r.liveStyle=!0),e[n]=i??null}),l.push({animation:e})}let f=!!l.length;return i&&(!1===o.initial||o.initial===o.animate)&&!t.manuallyAnimateOnMount&&(f=!1),i=!1,f?e(l):Promise.resolve()}return{animateChanges:s,setActive:function(e,i){if(n[e].isActive===i)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,i)),n[e].isActive=i;let r=s(e);for(let t in n)n[t].protectedKeys={};return r},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=tl()}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,k.H)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let th=0;class tc extends K{constructor(){super(...arguments),this.id=th++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;let i=this.node.animationState.setActive("exit",!t);e&&!t&&i.then(()=>
108{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}var td=n(93622),tf=n(50603);let tp={x:!1,y:!1};function tm(t){return[t("x"),t("y")]}var tg=n(39394),tv=n(31557);function ty(t){return t.max-t.min}function tx(t,e,n,i=.5){t.origin=i,t.originPoint=(0,tv.t)(e.min,e.max,t.origin),t.scale=ty(n)/ty(e),t.translate=(0,tv.t)(n.min,n.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function tw(t,e,n,i){tx(t.x,e.x,n.x,i?i.originX:void 0),tx(t.y,e.y,n.y,i?i.originY:void 0)}function tT(t,e,n){t.min=n.min+e.min,t.max=t.min+ty(e)}function tE(t,e,n){t.min=e.min-n.min,t.max=t.min+ty(e)}function tS(t,e,n){tE(t.x,e.x,n.x),tE(t.y,e.y,n.y)}var tb=n(2670),tP=n(51834),tA=n(21379),tC=n(44170),tR=n(67496);let tM=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),tD=new Set(["INPUT","SELECT","TEXTAREA"]);function tO(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}var tk=n(64598),tN=n(75741);let tV=new WeakMap,tL=(t,e,n)=>(i,r)=>r&&r[0]?r[0][t+"Size"]:(0,tk.v)(i)&&"getBBox"in i?i.getBBox()[e]:i[n],tj=tL("inline","width","offsetWidth"),tI=tL("block","height","offsetHeight");function tB({target:t,borderBoxSize:e}){tV.get(t)?.forEach(n=>{n(t,{get width(){return tj(t,e)},get height(){return tI(t,e)}})})}function tF(t){t.forEach(tB)}let tU=new Set;function t$(t,e){return"function"==typeof t?(tU.add(t),r||(r=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};tU.forEach(e=>e(t))},window.addEventListener("resize",r)),()=>{tU.delete(t),tU.size||"function"!=typeof r||(window.removeEventListener("resize",r),r=void 0)}):function(t,e){i||"undefined"==typeof ResizeObserver||(i=new ResizeObserver(tF));let n=(0,tN.I)(t);return n.forEach(t=>{let n=tV.get(t);n||(n=new Set,tV.set(t,n)),n.add(e),i?.observe(t)}),()=>{n.forEach(t=>{let n=tV.get(t);n?.delete(e),n?.size||i?.unobserve(t)})}}(t,e)}var t_=n(25122);let tW=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function tH(t){return{point:{x:t.pageX,y:t.pageY}}}let tY=t=>e=>tW(e)&&t(e,tH(e));function tX(t,e,n,i){return tO(t,e,tY(n),i)}let tZ=({current:t})=>t?t.ownerDocument.defaultView:null;var tz=n(22782),tG=n(40944);let tK=(t,e)=>Math.abs(t-e),tq=new Set(["auto","scroll"]);class tJ{constructor(t,e,{transformPagePoint:n,contextWindow:i=window,dragSnapToOrigin:r=!1,distanceThreshold:s=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=t1(this.lastMoveEventInfo,this.history),i=null!==this.startEvent,r=(t=n.offset,e={x:0,y:0},Math.sqrt(tK(t.x,e.x)**2+tK(t.y,e.y)**2)>=this.distanceThreshold);if(!i&&!r)return;let{point:s}=n,{timestamp:o}=tb.frameData;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;
108i||(a&&a(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=tQ(e,this.transformPagePoint),tb.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:n,onSessionEnd:i,resumeAnimation:r}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=t1("pointercancel"===t.type?this.lastMoveEventInfo:tQ(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,s),i&&i(t,s)},!tW(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=n,this.distanceThreshold=s,this.contextWindow=i||window;let a=tQ(tH(t),this.transformPagePoint),{point:l}=a,{timestamp:u}=tb.frameData;this.history=[{...l,timestamp:u}];let{onSessionStart:h}=e;h&&h(t,t1(a,this.history)),this.removeListeners=(0,tz.z)(tX(this.contextWindow,"pointermove",this.handlePointerMove),tX(this.contextWindow,"pointerup",this.handlePointerUp),tX(this.contextWindow,"pointercancel",this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(tq.has(t.overflowX)||tq.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let n=t===window,i=n?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},r={x:i.x-e.x,y:i.y-e.y};(0!==r.x||0!==r.y)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(t,i),tb.Wi.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,tb.Pn)(this.updatePoint)}}function tQ(t,e){return e?{point:e(t.point)}:t}function t0(t,e){return{x:t.x-e.x,y:t.y-e.y}}function t1({point:t},e){return{point:t,delta:t0(t,t2(e)),offset:t0(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null,r=t2(t);for(;n>=0&&(i=t[n],!(r.timestamp-i.timestamp>(0,tG.w)(.1)));)n--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&r.timestamp-i.timestamp>2*(0,tG.w)(.1)&&(i=t[1]);let s=(0,tG.X)(r.timestamp-i.timestamp);if(0===s)return{x:0,y:0};let o={x:(r.x-i.x)/s,y:(r.y-i.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function t2(t){return t[t.length-1]}var t3=n(13663),t5=n(87501);function t4(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function t7(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function t9(t,e,n){return{min:t8(t,e),max:t8(t,n)}}function t8(t,e){return"number"==typeof t?t:t[e]||0}let t6=new WeakMap;class et{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,tf.dO)(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:n}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:r}=this.getProps();this.panSession=new tJ(t,{onSessionStart:t=>{e&&this.snapToCursor(tH(t).point),this.stopAnimation()},onStart:(t,e)=>{let{drag:n,dragPropagation:i,onDragStart:r}=this.getProps();if(n&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===n||"y"===n?tp[n]?null:(tp[n]=!0,()=>{tp[n]=!1}):tp.x||tp.y?null:(tp.x=tp.y=!0,()=>{tp.x=tp.y=!1}),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tm(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tg.aQ.test(e)){let{projection:n}=this.visualElement;if(n&&n.layout){let i=n.layout.layoutBox[t];if(i){let t=ty(i);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),r&&tb.Wi.update(()=>r(t,e),!1,!0),(0,tP.K)(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:n,dragDirectionLock:i,onDirectionLock:r,onDrag:s}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=e;if(i&&null===this.currentDirection){this.currentDirection=function(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&tb.W
108i.update(()=>s(t,e),!1,!0)},onSessionEnd:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})}},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,distanceThreshold:n,contextWindow:tZ(this.visualElement),element:this.visualElement.current})}stop(t,e){let n=t||this.latestPointerEvent,i=e||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!i||!n)return;let{velocity:s}=i;this.startAnimation(s);let{onDragEnd:o}=this.getProps();o&&tb.Wi.postRender(()=>o(n,i))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,n){let{drag:i}=this.getProps();if(!n||!en(t,i,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:n},i){return void 0!==e&&t<e?t=i?(0,tv.t)(e,t,i.min):Math.max(t,e):void 0!==n&&t>n&&(t=i?(0,tv.t)(n,t,i.max):Math.min(t,n)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&Z(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=function(t,{top:e,left:n,bottom:i,right:r}){return{x:t4(t.x,n,r),y:t4(t.y,e,i)}}(n.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:t9(t,"left","right"),y:t9(t,"top","bottom")}}(e),i!==this.constraints&&!Z(t)&&n&&this.constraints&&!this.hasMutatedConstraints&&tm(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Z(e))return!1;let i=e.current;(0,t_.k)(null!==i,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let s=(0,tA.z)(i,r.root,this.visualElement.getTransformPagePoint()),o={x:t7((t=r.layout.layoutBox).x,s.x),y:t7(t.y,s.y)};if(n){let t=n((0,tC.z2)(o));this.hasMutatedConstraints=!!t,t&&(o=(0,tC.i8)(t))}return o}startAnimation(t){let{drag:e,dragMomentum:n,dragElastic:i,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(tm(o=>{if(!en(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:n?t[o]:0,bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let n=this.getAxisMotionValue(t);return(0,tP.K)(this.visualElement,t),n.start((0,tR.v)(t,n,0,e,this.visualElement,!1))}stopAnimation(){tm(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps();return n[e]||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){tm(e=>{let{drag:n}=this.getProps();if(!en(e,n,this.currentDirection))return;let{projection:i}=this.visualElement,r=this.getAxisMotionValue(e);if(i&&i.layout){let{min:n,max:s}=i.layout.layoutBox[e],o=r.get()||0;r.set(t[e]-(0,tv.t)(n,s,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!Z(e)||!n||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};tm(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let n=e.get();i[t]=function(t,e){let n=.5,i=ty(t),r=ty(e);return r>i?n=(0,t3.Y)(e.min,e.max-i,t.min):i>r&&(n=(0,t3.Y)(t.min,t.max-r,e.min)),(0,t5.u)(0,1,n)}({min:n,max:n},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),tm(e=>{if(!en(e,t,null))return;let n=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];n.set((0,tv.t)(r,s,i[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;t6.set(this.visualElement,this);let e=this.visualElement.current,n=tX(e,"pointerdown",t=>{let{drag:n,dragListener:i=!0}=this.getProps(),r=t.target,s=r!==e&&(tD.has(r.tagName)||!0===r.isContentEditable);n&&i&&!s&&this.start(t)}),i=()=>{let{dragConstraints:n}=this.getProps();Z(n)&&n.current&&(this.constraints=this.resolveRefConstraints(),t||(t=function(t,e,n){let i=t$(t,ee(n)),r
108=t$(e,ee(n));return()=>{i(),r()}}(e,n.current,()=>this.scalePositionWithinConstraints())))},{projection:r}=this.visualElement,s=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),tb.Wi.read(i);let o=tO(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(tm(e=>{let n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function ee(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function en(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}class ei extends K{constructor(t){super(t),this.removeGroupControls=td.Z,this.removeListeners=td.Z,this.controls=new et(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||td.Z}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}let er=t=>(e,n)=>{t&&tb.Wi.update(()=>t(e,n),!1,!0)};class es extends K{constructor(){super(...arguments),this.removePointerDownListener=td.Z}onPointerDown(t){this.session=new tJ(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tZ(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:er(t),onStart:er(e),onMove:er(n),onEnd:(t,e)=>{delete this.session,i&&tb.Wi.postRender(()=>i(t,e))}}}mount(){this.removePointerDownListener=tX(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let eo={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var ea=n(76725),el=n(46368);let eu=!1;class eh extends l.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:r}=t;r&&(e.group&&e.group.add(r),n&&n.register&&i&&n.register(r),eu&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),eo.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:n,drag:i,isPresent:r}=this.props,{projection:s}=n;return s&&(s.isPresent=r,t.layoutDependency!==e&&s.setOptions({...s.options,layoutDependency:e}),eu=!0,i||t.layoutDependency!==e||void 0===e||t.isPresent!==r?s.willUpdate():this.safeToRemove(),t.isPresent===r||(r?s.promote():s.relegate()||tb.Wi.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ea.g.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;eu=!0,i&&(i.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ec(t){let[e,n]=(0,el.oO)(),i=(0,l.useContext)(d.p);return(0,c.jsx)(eh,{...t,layoutGroup:i,switchLayoutGroup:(0,l.useContext)(X),isPresent:e,safeToRemove:n})}var ed=n(83809),ef=n(81792),ep=n(91615),em=n(42718),eg=n(34039),ev=n(42986),ey=n(13909),ex=n(49885),ew=n(10426),eT=n(87014),eE=n(44488);let eS=["TopLeft","TopRight","BottomLeft","BottomRight"],eb=eS.length,eP=t=>"string"==typeof t?parseFloat(t):t,eA=t=>"number"==typeof t||tg.px.test(t);function eC(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let eR=eD(0,.5,eE.Bn),eM=eD(.5,.95,td.Z);function eD(t,e,n){return i=>i<t?0:i>e?1:n((0,t3.Y)(t,e,i))}function eO(t,e){t.min=e.min,t.max=e.max}function ek(t,e){eO(t.x,e.x),eO(t.y,e.y)}function eN(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var eV=n(59257);function eL(t,e,n,i,r){return t-=e,t=(0,eV.q2)(t,1/n,i),void 0!==r&&(t=(0,eV.q2)(t,1/r,i)),t}function ej(t,e,[n,i,r],s,o){!function(t,e=0,n=1,i=.5,r,s=t,o=t){if(tg.aQ.test(e)&&(e=parseFloat(e),e=(0,tv.t)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,tv.t)(s.min,s.max,i);t===s&&(a-=e),t.min=eL(t.min,e,n,a,r),t.max=eL(t.max,e,n,a,r)}(t,e[n],e[i],e[r],e.scale,s,o)}let eI=["x","scaleX","originX"],eB=["y","scaleY","originY"];function eF(t,e,n,i){ej(t.x,e,eI,n?n.x:void 0,i?i.x:void 0),ej(t.y,e,eB,n?n.y:void 0,i?i.y:void 0)}function eU(t){return 0===t.translate&&1===t.scale}function e$(t){return eU(t.x)&&eU(t.y)}function e_(t,e){return t.min===e.min&&t.max===e.max}function eW(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function eH(t,e){return eW(t.x,e.x)&&eW(t.y,e.y)}function eY(t){return ty(t.x)/ty(t.y)}function eX(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var eZ=n(3668);class ez{constructor(){this.members=[]}add(t){(0,eZ.y4)(this.members,t);for(let e=this.members.length-1;e>=0;e--){let n=this.members[e];if(n===t||n===this.lead||n===this.prevLead)continue;let i=n.instance;i&&!1===i.isConnected&&!1!==n.isPresent&&!n.snapshot&&(0,eZ.cl)(this.members,n)}t.scheduleRender()}remove(t){if((0,eZ.cl)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}
108}relegate(t){let e;let n=this.members.findIndex(e=>t===e);if(0===n)return!1;for(let t=n;t>=0;t--){let n=this.members[t],i=n.instance;if(!1!==n.isPresent&&(!i||!1!==i.isConnected)){e=n;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender();let i=n.options.layoutDependency,r=t.options.layoutDependency;if(!(void 0!==i&&void 0!==r&&i===r)){let i=n.instance;!(i&&!1===i.isConnected&&!n.snapshot)&&(t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0))}let{crossfade:s}=t.options;!1===s&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let eG=(t,e)=>t.depth-e.depth;class eK{constructor(){this.children=[],this.isDirty=!1}add(t){(0,eZ.y4)(this.children,t),this.isDirty=!0}remove(t){(0,eZ.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(eG),this.isDirty=!1,this.children.forEach(t)}}var eq=n(72320);let eJ={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},eQ=["","X","Y","Z"],e0=0;function e1(t,e,n,i){let{latestValues:r}=e;r[t]&&(n[t]=r[t],e.setStaticValue(t,0),i&&(i[t]=0))}function e2({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(t={},n=e?.()){this.id=e0++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ex.f.value&&(eJ.nodes=eJ.calculatedTargetDeltas=eJ.calculatedProjections=0),this.nodes.forEach(e4),this.nodes.forEach(nn),this.nodes.forEach(ni),this.nodes.forEach(e7),ex.f.addProjectionMetrics&&ex.f.addProjectionMetrics(eJ)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new eK)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new ed.L),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=(0,tk.v)(e)&&!(0,ew.r)(e),this.instance=e;let{layoutId:n,layout:i,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(i||n)&&(this.isLayoutDirty=!0),t){let n;let i=0,r=()=>this.root.updateBlockedByResize=!1;tb.Wi.read(()=>{i=window.innerWidth}),t(e,()=>{let t=window.innerWidth;t!==i&&(i=t,this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){let n=eg.X.now(),i=({timestamp:e})=>{let r=e-n;r>=250&&((0,tb.Pn)(i),t(r-250))};return tb.Wi.setup(i,!0),()=>(0,tb.Pn)(i)}(r,0),eo.hasAnimatedSinceResize&&(eo.hasAnimatedSinceResize=!1,this.nodes.forEach(ne)))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&r&&(n||i)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||r.getDefaultTransition()||nu,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!eH(this.targetLayout,i),u=!e&&n;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...(0,em.e)(s,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u)}else e||ne(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,tb.Pn)(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
108h(nr),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:n}=e.options;if(!n)return;let i=(0,ep.s)(n);if(window.MotionHasOptimisedAnimation(i,"transform")){let{layout:t,layoutId:n}=e.options;window.MotionCancelOptimisedAnimation(i,"transform",tb.Wi,!(t||n))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;let i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(e8);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(e6);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(nt),this.nodes.forEach(e3),this.nodes.forEach(e5)):this.nodes.forEach(e6),this.clearAllSnapshots();let t=eg.X.now();tb.frameData.delta=(0,t5.u)(0,1e3/60,t-tb.frameData.timestamp),tb.frameData.timestamp=t,tb.frameData.isProcessing=!0,tb.yL.update.process(tb.frameData),tb.yL.preRender.process(tb.frameData),tb.yL.render.process(tb.frameData),tb.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ea.g.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(e9),this.sharedNodes.forEach(ns)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tb.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tb.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||ty(this.snapshot.measuredBox.x)||ty(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=(0,tf.dO)(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=i(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!e$(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,s=i!==this.prevTransformTemplateValue;t&&this.instance&&(e||(0,eq.ud)(this.latestValues)||s)&&(r(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let n=this.measurePageBox(),i=this.removeElementScroll(n);return t&&(i=this.removeTransform(i)),nd((e=i).x),nd(e.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:i,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,tf.dO)();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(np))){let{scroll:t}=this.root;t&&((0,eV.am)(e.x,t.offset.x),(0,eV.am)(e.y,t.offset.y))}return e}removeElementScroll(t){let e=(0,tf.dO)();if(ek(e,t),this.scroll?.wasRoot)return e;for(let n=0;n<this.path.length;n++){let i=this.path[n],{scroll:r,options:s}=i;i!==this.root&&r&&s.layoutScroll&&(r.wasRoot&&ek(e,t),(0,eV.am)(e.x,r.offset.x),(0,eV.am)(e.y,r.offset.y))}return e}applyTransform(t,e=!1){let n=(0,tf.dO)();ek(n,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(0,eV.D2)(n,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),(0,eq.ud)(i.latestValues)&&(0,eV.D2)(n,i.latestValues)}return(0,eq.ud)(this.latestValues)&&(0,eV.D2)(n,this.latestValues),n}removeTransform(t){let e=(0,tf.dO)();ek(e,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];if(!n.instance||!(0,eq.ud)(n.latestValues))continue;(0,eq.Lj)(n.latestValues)&&n.updateSnapshot();let i=(0,tf.dO)();ek(i,n.measurePageBox()),eF(e,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,i)}return(0,eq.ud)(this.latestValues)&&eF(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.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!==tb.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==e;if(!(t||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:i,layoutId:r}=this.options;if(!this.layout||!(i||r))return;this.resolvedRelativeTargetAt=tb.frameData.timestamp;let s=this.getClosestProjectingParent();if(s&&this.linkedParentVersion!==s.layoutVersion&&!s.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(s&&s.layout?this.createRelativeTarget(s,this.layout.layoutBox,s.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=(0,tf.dO)(),this.targetWithTransforms=(0,tf.dO)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,a,l;this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,l=this.relativeParent.target,tT(o.x,a.x,l.x),tT(o.y,a.y,l.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ek(this.target,this.layout.layoutBox),(0,eV.o2)(this.target,this.targetDelta)):ek(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,s&&!!s.resumingFrom==!!this.resumingFrom&&!s.options.layoutScroll&&s.target&&1!==this.animationProgress?this.createRelativeTarget(s,this.target,s.target):this.relativeParent=this.relativeTarget=void 0),ex.f.value&&eJ.calculatedTargetDeltas++}}getClosestProjectingParent(){return!this.parent||(0,eq.Lj)(this.parent.latestValues)||(0,eq.D_)(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,n){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,tf.dO)(),this.relativeTargetOrigin=(0,tf.dO)(),tS(this.relativeTargetOrigin,e,n),ek(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,n=!0;
108if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===tb.frameData.timestamp&&(n=!1),n)return;let{layout:i,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||r))return;ek(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,o=this.treeScale.y;(0,eV.YY)(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=(0,tf.dO)());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(eN(this.prevProjectionDelta.x,this.projectionDelta.x),eN(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),tw(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===s&&this.treeScale.y===o&&eX(this.projectionDelta.x,this.prevProjectionDelta.x)&&eX(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),ex.f.value&&eJ.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,tf.wc)(),this.projectionDelta=(0,tf.wc)(),this.projectionDeltaWithTransform=(0,tf.wc)()}setAnimationOrigin(t,e=!1){let n;let i=this.snapshot,r=i?i.latestValues:{},s={...this.latestValues},o=(0,tf.wc)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=(0,tf.dO)(),l=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(nl));this.animationProgress=0,this.mixTargetDelta=e=>{let i=e/1e3;if(no(o.x,t.x,i),no(o.y,t.y,i),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,f,p;tS(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,p=this.relativeTargetOrigin,na(f.x,p.x,a.x,i),na(f.y,p.y,a.y,i),n&&(u=this.relativeTarget,d=n,e_(u.x,d.x)&&e_(u.y,d.y))&&(this.isProjectionDirty=!1),n||(n=(0,tf.dO)()),ek(n,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,n,i,r,s){r?(t.opacity=(0,tv.t)(0,n.opacity??1,eR(i)),t.opacityExit=(0,tv.t)(e.opacity??1,0,eM(i))):s&&(t.opacity=(0,tv.t)(e.opacity??1,n.opacity??1,i));for(let r=0;r<eb;r++){let s=`border${eS[r]}Radius`,o=eC(e,s),a=eC(n,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||eA(o)===eA(a)?(t[s]=Math.max((0,tv.t)(eP(o),eP(a),i),0),(tg.aQ.test(a)||tg.aQ.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||n.rotate)&&(t.rotate=(0,tv.t)(e.rotate||0,n.rotate||0,i))}(s,r,this.latestValues,i,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,tb.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tb.Wi.update(()=>{eo.hasAnimatedSinceResize=!0,ey.P.layout++,this.motionValue||(this.motionValue=(0,eT.BX)(0)),this.motionValue.jump(0,!1),this.currentAnimation=(0,ef.D)(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{ey.P.layout--},onComplete:()=>{ey.P.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),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 t=this.getStack();t&&t.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 t=this.getLead(),{targetWithTransforms:e,target:n,layout:i,latestValues:r}=t;
108if(e&&n&&i){if(this!==t&&this.layout&&i&&nf(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||(0,tf.dO)();let e=ty(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;let i=ty(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}ek(e,n),(0,eV.D2)(e,r),tw(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new ez),this.sharedNodes.get(t).add(e);let n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){let i=this.getStack();i&&i.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:n}=t;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(e=!0),!e)return;let i={};n.z&&e1("z",t,i,this.animationValues);for(let e=0;e<eQ.length;e++)e1(`rotate${eQ[e]}`,t,i,this.animationValues),e1(`skew${eQ[e]}`,t,i,this.animationValues);for(let e in t.render(),i)t.setStaticValue(e,i[e]),this.animationValues&&(this.animationValues[e]=i[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=O(e?.pointerEvents)||"",t.transform=n?n(this.latestValues,""):"none";return}let i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=O(e?.pointerEvents)||""),this.hasProjected&&!(0,eq.ud)(this.latestValues)&&(t.transform=n?n({},""):"none",this.hasProjected=!1);return}t.visibility="";let r=i.animationValues||i.latestValues;this.applyTransformsToTarget();let s=function(t,e,n){let i="",r=t.x.translate/e.x,s=t.y.translate/e.y,o=n?.z||0;if((r||s||o)&&(i=`translate3d(${r}px, ${s}px, ${o}px) `),(1!==e.x||1!==e.y)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:s,skewX:o,skewY:a}=n;t&&(i=`perspective(${t}px) ${i}`),e&&(i+=`rotate(${e}deg) `),r&&(i+=`rotateX(${r}deg) `),s&&(i+=`rotateY(${s}deg) `),o&&(i+=`skewX(${o}deg) `),a&&(i+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(i+=`scale(${a}, ${l})`),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);n&&(s=n(r,s)),t.transform=s;let{x:o,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,i.animationValues?t.opacity=i===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:t.opacity=i===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,ev.P){if(void 0===r[e])continue;let{correct:n,applyTo:o,isCSSVariable:a}=ev.P[e],l="none"===s?r[e]:n(r[e],i);if(o){let e=o.length;for(let n=0;n<e;n++)t[o[n]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=i===this?O(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(e8),this.root.sharedNodes.clear()}}}function e3(t){t.updateLayout()}function e5(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:i}=t.layout,{animationType:r}=t.options,s=e.source!==t.layout.source;"size"===r?tm(t=>{let i=s?e.measuredBox[t]:e.layoutBox[t],r=ty(i);i.min=n[t].min,i.max=i.min+r}):nf(r,e.layoutBox,n)&&tm(i=>{let r=s?e.measuredBox[i]:e.layoutBox[i],o=ty(n[i]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[i].max=t.relativeTarget[i].min+o)});let o=(0,tf.wc)();tw(o,n,e.layoutBox);let a=(0,tf.wc)();s?tw(a,t.applyTransform(i,!0),e.measuredBox):tw(a,n,e.layoutBox);let l=!e$(o),u=!1;if(!t.resumeFrom){let i=t.getClosestProjectingParent();if(i&&!i.resumeFrom){let{snapshot:r,layout:s}=i;if(r&&s){let o=(0,tf.dO)();tS(o,e.layoutBox,r.layoutBox);let a=(0,tf.dO)();tS(a,n,s.layoutBox),eH(o,a)||(u=!0),i.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=i)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function e4(t){ex.f.value&&eJ.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
108isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function e7(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function e9(t){t.clearSnapshot()}function e8(t){t.clearMeasurements()}function e6(t){t.isLayoutDirty=!1}function nt(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ne(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function nn(t){t.resolveTargetDelta()}function ni(t){t.calcProjection()}function nr(t){t.resetSkewAndRotation()}function ns(t){t.removeLeadSnapshot()}function no(t,e,n){t.translate=(0,tv.t)(e.translate,0,n),t.scale=(0,tv.t)(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function na(t,e,n,i){t.min=(0,tv.t)(e.min,n.min,i),t.max=(0,tv.t)(e.max,n.max,i)}function nl(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let nu={duration:.45,ease:[.4,0,.1,1]},nh=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),nc=nh("applewebkit/")&&!nh("chrome/")?Math.round:td.Z;function nd(t){t.min=nc(t.min),t.max=nc(t.max)}function nf(t,e,n){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(eY(e)-eY(n)))}function np(t){return t!==t.root&&t.scroll?.wasRoot}let nm=e2({attachResizeListener:(t,e)=>tO(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),ng={current:void 0},nv=e2({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ng.current){let t=new nm({});t.mount(window),t.setOptions({layoutScroll:!0}),ng.current=t}return ng.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function ny(t,e){let n=(0,tN.I)(t),i=new AbortController;return[n,{passive:!0,...e,signal:i.signal},()=>i.abort()]}function nx(t,e,n){let{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover","Start"===n);let r=i["onHover"+n];r&&tb.Wi.postRender(()=>r(e,tH(e)))}class nw extends K{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,n={}){let[i,r,s]=ny(t,n);return i.forEach(t=>{let n,i=!1,s=!1,o=()=>{t.removeEventListener("pointerleave",u)},a=t=>{n&&(n(t),n=void 0),o()},l=t=>{i=!1,window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",l),s&&(s=!1,a(t))},u=t=>{if("touch"!==t.pointerType){if(i){s=!0;return}a(t)}};t.addEventListener("pointerenter",i=>{if("touch"===i.pointerType||tp.x||tp.y)return;s=!1;let o=e(t,i);"function"==typeof o&&(n=o,t.addEventListener("pointerleave",u,r))},r),t.addEventListener("pointerdown",()=>{i=!0,window.addEventListener("pointerup",l,r),window.addEventListener("pointercancel",l,r)},r)}),s}(t,(t,e)=>(nx(this.node,e,"Start"),t=>nx(this.node,t,"End"))))}unmount(){}}class nT extends K{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&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=(0,tz.z)(tO(this.node.current,"focus",()=>this.onFocus()),tO(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var nE=n(32792);let nS=(t,e)=>!!e&&(t===e||nS(t,e.parentElement)),nb=new WeakSet;function nP(t){return e=>{"Enter"===e.key&&t(e)}}function nA(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let nC=(t,e)=>{let n=t.currentTarget;if(!n)return;let i=nP(()=>{if(nb.has(n))return;nA(n,"down");let t=nP(()=>{nA(n,"up")});n.addEventListener("keyup",t,e),n.addEventListener("blur",()=>nA(n,"cancel"),e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)};function nR(t){return tW(t)&&!(tp.x||tp.y)}let nM=new WeakSet;function nD(t,e,n){let{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap","Start"===n);let r=i["onTap"+("End"===n?"":n)];r&&tb.Wi.postRender(()=>r(e,tH(e)))}class nO extends K{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:n}=this.node.props;this.unmount=function(t,e,n={}){let[i,r,s]=ny(t,n),o=t=>{let i=t.currentTarget;if(!nR(t)||nM.has(t))return;nb.add(i),n.stopPropagation&&nM.add(t);let s=e(i,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),nb.has(i)&&nb.delete(i),nR(t)&&"function"==typeof s&&s(t,{success:e})},a=t=>{o(t,i===window||i===document||n.useGlobalTarget||nS(i,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};
108return i.forEach(t=>{(n.useGlobalTarget?window:t).addEventListener("pointerdown",o,r),(0,nE.R)(t)&&(t.addEventListener("focus",t=>nC(t,r)),tM.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),s}(t,(t,e)=>(nD(this.node,e,"Start"),(t,{success:e})=>nD(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:n?.tap===!1})}unmount(){}}let nk=new WeakMap,nN=new WeakMap,nV=t=>{let e=nk.get(t.target);e&&e(t)},nL=t=>{t.forEach(nV)},nj={some:0,all:1};class nI extends K{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i="some",once:r}=t,s={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:nj[i]};return function(t,e,n){let i=function({root:t,...e}){let n=t||document;nN.has(n)||nN.set(n,{});let i=nN.get(n),r=JSON.stringify(e);return i[r]||(i[r]=new IntersectionObserver(nL,{root:t,...e})),i[r]}(e);return nk.set(t,n),i.observe(t),()=>{nk.delete(t),i.unobserve(t)}}(this.node.current,s,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),s=e?n:i;s&&s(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}let nB=function(t,e){if("undefined"==typeof Proxy)return G;let n=new Map,i=(n,i)=>G(n,i,t,e);return new Proxy((t,e)=>i(t,e),{get:(r,s)=>"create"===s?i:(n.has(s)||n.set(s,G(s,void 0,t,e)),n.get(s))})}({animation:{Feature:tu},exit:{Feature:tc},inView:{Feature:nI},tap:{Feature:nO},focus:{Feature:nT},hover:{Feature:nw},pan:{Feature:es},drag:{Feature:ei,ProjectionNode:nv,MeasureLayout:ec},layout:{ProjectionNode:nv,MeasureLayout:ec}},(t,e)=>e.isSVG??h(t)?new o.e(e):new a.W(e,{allowProjection:t!==l.Fragment}))},31337:function(t,e,n){n.d(e,{j:function(){return i}});let i="undefined"!=typeof window},72287:function(t,e,n){n.d(e,{h:function(){return r}});var i=n(72847);function r(t){let e=(0,i.useRef)(null);return null===e.current&&(e.current=t()),e.current}},87145:function(t,e,n){n.d(e,{L:function(){return r}});var i=n(72847);let r=n(31337).j?i.useLayoutEffect:i.useEffect},88168:function(t,e,n){n.d(e,{W:function(){return r}});var i=n(72847);function r(t,e,n){(0,i.useInsertionEffect)(()=>t.on(e,n),[t,e,n])}},76569:function(t,e,n){n.d(e,{c:function(){return a}});var i=n(87014),r=n(72847),s=n(65928),o=n(72287);function a(t){let e=(0,o.h)(()=>(0,i.BX)(t)),{isStatic:n}=(0,r.useContext)(s._);if(n){let[,n]=(0,r.useState)(t);(0,r.useEffect)(()=>e.on("change",n),[])}return e}},33859:function(t,e,n){n.d(e,{H:function(){return function t(e,n,s,o){if("function"==typeof e)return function(t){u.S1.current=[],t();let e=l(u.S1.current,t);return u.S1.current=void 0,e}(e);if(void 0!==s&&!Array.isArray(s)&&"function"!=typeof n)return function(e,n,i,s){let o=(0,r.h)(()=>Object.keys(i)),a=(0,r.h)(()=>({}));for(let r of o)a[r]=t(e,n,i[r],s);return a}(e,n,s,o);let a="function"==typeof n?n:function(...t){let e=!Array.isArray(t[0]),n=e?0:-1,r=t[0+n],s=t[1+n],o=t[2+n],a=t[3+n],l=(0,i.s)(s,o,a);return e?l(r):l}(n,s,o),c=Array.isArray(e)?h(e,a):h([e],([t])=>a(t)),d=Array.isArray(e)?void 0:e.accelerate;return d&&!d.isTransformed&&"function"!=typeof n&&Array.isArray(s)&&o?.clamp!==!1&&(c.accelerate={...d,times:n,keyframes:s,isTransformed:!0,...o?.ease?{ease:o.ease}:{}}),c}}});var i=n(41473),r=n(72287),s=n(2670),o=n(87145),a=n(76569);function l(t,e){let n=(0,a.c)(e()),i=()=>n.set(e());return i(),(0,o.L)(()=>{let e=()=>s.Wi.preRender(i,!1,!0),n=t.map(t=>t.on("change",e));return()=>{n.forEach(t=>t()),(0,s.Pn)(i)}}),n}var u=n(87014);function h(t,e){let n=(0,r.h)(()=>[]);return l(t,()=>{n.length=0;let i=t.length;for(let e=0;e<i;e++)n[e]=t[e].get();return e(n)})}},52837:function(t,e,n){n.d(e,{_:function(){return T}});var i=n(25122),r=n(40944),s=n(93622);let o=t=>t.startsWith("--");var a=n(53950);let l={};function u(t,e){let n=(0,a.X)(t);return()=>l[e]??n()}let h=u(()=>void 0!==window.ScrollTimeline,"scrollTimeline");var c=n(89160),d=n(88877),f=n(13909),p=n(49885),m=n(11621);let g=u(()=>{try{document.createElement("div").animate({opacity:0}
108,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing");var v=n(9804);let y=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,x={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:y([0,.65,.55,1]),circOut:y([.55,0,1,.45]),backIn:y([.31,.01,.66,-.59]),backOut:y([.33,1.53,.69,.99])};var w=n(21746);class T extends d.T{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;let{element:e,name:n,keyframes:r,pseudoElement:s,allowFlatten:a=!1,finalKeyframe:l,onComplete:u}=t;this.isPseudoElement=!!s,this.allowFlatten=a,this.options=t,(0,i.k)("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let h=function({type:t,...e}){return(0,w.x)(t)&&g()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,n,{delay:i=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u){let h={[e]:n};l&&(h.offset=l);let c=function t(e,n){if(e)return"function"==typeof e?g()?(0,v.w)(e,n):"ease-out":(0,m.q)(e)?y(e):Array.isArray(e)?e.map(e=>t(e,n)||x.easeOut):x[e]}(a,r);Array.isArray(c)&&(h.easing=c),p.f.value&&f.P.waapi++;let d={delay:i,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"};u&&(d.pseudoElement=u);let w=t.animate(h,d);return p.f.value&&w.finished.finally(()=>{f.P.waapi--}),w}(e,n,r,h,s),!1===h.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let t=(0,c.$)(r,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(t):o(n)?e.style.setProperty(n,t):e.style[n]=t,this.animation.cancel()}u?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return(0,r.X)(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+(0,r.X)(t)}get time(){return(0,r.X)(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=(0,r.w)(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&h())?(this.animation.timeline=t,s.Z):e(this)}}},81792:function(t,e,n){n.d(e,{D:function(){return o}});var i=n(67496),r=n(87014),s=n(14083);function o(t,e,n){let o=(0,s.i)(t)?t:(0,r.BX)(t);return o.start((0,i.v)("",o,e,n)),o.animation}},24944:function(t,e,n){n.d(e,{S:function(){return m}});var i=n(87501),r=n(40944),s=n(9804),o=n(32019),a=n(41459),l=n(58661);let u={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};var h=n(25122);function c(t,e){return t*Math.sqrt(1-e*e)}let d=["duration","bounce"],f=["stiffness","damping","mass"];function p(t,e){return e.some(e=>void 0!==t[e])}function m(t=u.visualDuration,e=u.bounce){let n;let a="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:m,restDelta:g}=a,v=a.keyframes[0],y=a.keyframes[a.keyframes.length-1],x={done:!1,value:v},{stiffness:w,damping:T,mass:E,duration:S,velocity:b,isResolvedFromDuration:P}=function(t){let e={velocity:u.velocity,stiffness:u.stiffness,damping:u.damping,mass:u.mass,isResolvedFromDuration:!1,...t};if(!p(t,f)&&p(t,d)){if(t.visualDuration){let n=2*Math.PI/(1.2*t.visualDuration),r=n*n,s=2*(0,i.u)(.05,1,1-(t.bounce||0))*Math.sqrt(r);e={...e,mass:u.mass,stiffness:r,damping:s}}else{let n=function({duration:t=u.duration,bounce:e=u.bounce,velocity:n=u.velocity,mass:s=u.mass}){let o,a;(0,h.K)(t<=(0,r.w)(u.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let l=1-e;l=(0,i.u)(u.minDamping,u.maxDamping,l),t=(0,i.u)(u.minDuration,u.maxDuration,(0,r.X)(t)),l<1?(o=e=>{let i=e*l,r=i*t;return .001-(i-n)/c(e,l)*Math.exp(-r)},a=e=>{let i=e*l*t,r=Math.pow(l,2)*Math.pow(e,2)*t,s=c(Math.pow(e,2),l);return(i*n+n-r)*Math.exp(-i)*(-o(e)+.001>0?-1:1)/s}):(o=e=>-.001+Math.exp(-e*t)*((e-n)*t+1),a=e=>t*t*(n-e)*Math.exp(-e*t));let d=function(t,e,n){let i=n;for(let n=1;n<12;n++)i-=t(i)/e(i);return i}(o,a,5/t);if(t=(0,r.w)(t),isNaN(d))return{stiffness:u.stiffness,damping:u.damping,duration:t};{let e=Math.pow(d,2)*s;return{stiffness:e,damping:2*l*Math.sqrt(s*e),duration:t}}}(t);(e={...e,...n,mass:u.mass}).isResolvedFromDuration=!0}}return e}({...a,velocity:-(0,r.X)(a.velocity||0)}),A=b||0,C=T/(2*Math.sqrt(w*E)),R=y-v,M=(0,r.X)(Math.sqrt(w/E)),D=5>Math.abs(R);if(m||(m=D?u.restSpeed.granular:u.restSpeed.default),g||(g=D?u.restDelta.granular:u.restDelta.default),C<1){let t=c(M,C);n=e=>y-Math.exp(-C*M*e)*((A+C*M*R)/t*Math.sin(t*e)+R*Math.cos(t*e))}else if(1===C)n=t=>y-Math.exp(-M*t)*(R+(A+M*R)*t);else{let t=M*Math.sqrt(C*C-1);n=e=>{let n=Math.exp(-C*M*e),i=Math.min(t*e,300);
108return y-n*((A+C*M*R)*Math.sinh(i)+t*R*Math.cosh(i))/t}}let O={calculatedDuration:P&&S||null,next:t=>{let e=n(t);if(P)x.done=t>=S;else{let i=0===t?A:0;C<1&&(i=0===t?(0,r.w)(A):(0,l.P)(n,t,e));let s=Math.abs(i)<=m,o=Math.abs(y-e)<=g;x.done=s&&o}return x.value=x.done?y:e,x},toString:()=>{let t=Math.min((0,o.i)(O),o.E),e=(0,s.w)(e=>O.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return O}m.applyToOptions=t=>{let e=(0,a.S)(t,100,m);return t.ease=e.ease,t.duration=(0,r.w)(e.duration),t.type="keyframes",t}},32019:function(t,e,n){n.d(e,{E:function(){return i},i:function(){return r}});let i=2e4;function r(t){let e=0,n=t.next(e);for(;!n.done&&e<i;)e+=50,n=t.next(e);return e>=i?1/0:e}},41459:function(t,e,n){n.d(e,{S:function(){return s}});var i=n(40944),r=n(32019);function s(t,e=100,n){let s=n({...t,keyframes:[0,e]}),o=Math.min((0,r.i)(s),r.E);return{type:"keyframes",ease:t=>s.next(o*t).value/e,duration:(0,i.X)(o)}}},21746:function(t,e,n){n.d(e,{x:function(){return i}});function i(t){return"function"==typeof t&&"applyToOptions"in t}},58661:function(t,e,n){n.d(e,{P:function(){return r}});var i=n(83140);function r(t,e,n){let r=Math.max(e-5,0);return(0,i.R)(n-t(r),e-r)}},67496:function(t,e,n){n.d(e,{v:function(){return th}});var i=n(40944),r=n(54747),s=n(93622),o=n(34039),a=n(22782),l=n(87501),u=n(13909),h=n(42995),c=n(2670);let d=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>c.Wi.update(e,t),stop:()=>(0,c.Pn)(e),now:()=>c.frameData.isProcessing?c.frameData.timestamp:o.X.now()}};var f=n(24944),p=n(58661);function m({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,d;let m=t[0],g={done:!1,value:m},v=t=>void 0!==a&&t<a||void 0!==l&&t>l,y=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)<Math.abs(l-t)?a:l,x=n*e,w=m+x,T=void 0===o?w:o(w);T!==w&&(x=T-m);let E=t=>-x*Math.exp(-t/i),S=t=>T+E(t),b=t=>{let e=E(t),n=S(t);g.done=Math.abs(e)<=u,g.value=g.done?T:n},P=t=>{v(g.value)&&(c=t,d=(0,f.S)({keyframes:[g.value,y(g.value)],velocity:(0,p.P)(S,t,g.value),damping:r,stiffness:s,restDelta:u,restSpeed:h}))};return P(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,b(t),P(t)),void 0!==c&&t>=c)?d.next(t-c):(e||b(t),g)}}}let g=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function v(t,e,n,i){if(t===e&&n===i)return s.Z;let r=e=>(function(t,e,n,i,r){let s,o;let a=0;do(s=g(o=e+(n-e)/2,i,r)-t)>0?n=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o})(e,0,1,t,n);return t=>0===t||1===t?t:g(r(t),e,i)}let y=v(.42,0,1,1),x=v(0,0,.58,1),w=v(.42,0,.58,1);var T=n(74843),E=n(25122),S=n(43197),b=n(50211);let P=v(.33,1.53,.69,.99),A=(0,b.M)(P),C=(0,S.o)(A),R=t=>(t*=2)<1?.5*A(t):.5*(2-Math.pow(2,-10*(t-1)));var M=n(44488),D=n(11621);let O={linear:s.Z,easeIn:y,easeInOut:w,easeOut:x,circIn:M.Z7,circInOut:M.X7,circOut:M.Bn,backIn:A,backInOut:C,backOut:P,anticipate:R},k=t=>"string"==typeof t,N=t=>{if((0,D.q)(t)){(0,E.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,n,i,r]=t;return v(e,n,i,r)}return k(t)?((0,E.k)(void 0!==O[t],`Invalid easing type '${t}'`,"invalid-easing-type"),O[t]):t};var V=n(41473),L=n(69097);function j({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){let r=(0,T.N)(i)?i.map(N):N(i),s={done:!1,value:e[0]},o=(n&&n.length===e.length?n:(0,L.Y)(e)).map(e=>e*t),a=(0,V.s)(o,e,{ease:Array.isArray(r)?r:e.map(()=>r||w).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=a(e),s.done=e>=t,s)}}var I=n(32019),B=n(89160);let F={decay:m,inertia:m,tween:j,keyframes:j,spring:f.S};function U(t){"string"==typeof t.type&&(t.type=F[t.type])}var $=n(88877);let _=t=>t/100;class W extends $.T{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==o.X.now()&&this.tick(o.X.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},u.P.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;U(t);let{type:e=j,repeat:n=0,repeatDelay:i=0,repeatType:r,velocity:s=0}=t,{keyframes:o}=t,l=e||j;l!==j&&"number"!=typeof o[0]&&(this.mixKeyframes=(0,a.z)(_,(0,h.C)(o[0],o[1])),o=[0,100]);let u=l({...t,keyframes:o});"mirror"===r&&(this.mirroredGenerator=l({...t,keyframes:[...o].reverse(),velocity:-s})),null===u.calculatedDuration&&(u.calculatedDuration=(0,I.i)(u));let{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=u}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:n,totalDuration:i,mixKeyframes:r,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:a}=this;if(null===this.startTime)return n.next(0);let{delay:u=0,keyframes:h,repeat:c,repeatType:d,repeatDelay:f,type:p,onUpdate:g,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?y<0:y>i;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let w=this.currentTime,T=n;if(c){let t=Math.min(this.currentTime,i)/o,e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,(e=Math.min(e,c+1))%2&&("reverse"===d?(n=1-n,f&&(n-=f/o)):"mirror"===d&&(T=s)),w=(0,l.u)(0,1,n)*o}let E=x?{done:!1,value:h[0]}:T.next(w);r&&(E.value=r(E.value));let{done:S}=E;x||null===a||(S=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);let b=null===this.holdTime&&("finished"===this.state||"running"===this.state&&S);return b&&p!==m&&(E.value=(0,B.$)(h,this.options,v,this.speed)),g&&g(E.value),b&&this.finish(),E}then(t,e){return this.finished.then(t,e)}get duration(){return(0,i.X)(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+(0,i.X)(t)}get time(){return(0,i.X)(this.currentTime)}set time(t){t=(0,i.w)(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(o.X.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=(0,i.X)(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=d,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=e??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(o.X.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,u.P.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}var H=n(9600),Y=n(52837);let X={anticipate:R,backInOut:C,circInOut:M.X7};class Z extends Y._{constructor(t){"string"==typeof t.ease&&t.ease in X&&(t.ease=X[t.ease]),U(t),super(t),void 0!==t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:n,onComplete:i,element:r,...s}=this.options;if(!e)return;if(void 0!==t){e.set(t);return}let a=new W({...s,autoplay:!1}),u=Math.max(10,o.X.now()-this.startTime),h=(0,l.u)(0,10,u-10);e.setWithVelocity(a.sample(Math.max(0,u-h)).value,a.sample(u).value,h),a.stop()}}var z=n(21746),G=n(48153);let K=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(G.P.test(t)||"0"===t)&&!t.startsWith("url("));function q(t){t.duration=0,t.type="keyframes"}var J=n(53950);let Q=new Set(["opacity","clipPath","filter","transform"]),tt=(0,J.X)(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class te extends $.T{constructor({autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:s="loop",keyframes:a,name:l,motionValue:u,element:h,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=o.X.now();let d={autoplay:t,delay:e,type:n,repeat:i,repeatDelay:r,repeatType:s,name:l,motionValue:u,element:h,...c}
108,f=h?.KeyframeResolver||H.e;this.keyframeResolver=new f(a,(t,e,n)=>this.onKeyframesResolved(t,e,d,!n),l,u,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,n,i){this.keyframeResolver=void 0;let{name:a,type:l,velocity:u,delay:h,isHandoff:c,onUpdate:d}=n;this.resolvedAt=o.X.now(),!function(t,e,n,i){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=K(r,e),a=K(s,e);return(0,E.K)(o===a,`You are trying to animate ${e} from "${r}" to "${s}". "${o?s:r}" is not an animatable value.`,"value-not-animatable"),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}(t)||("spring"===n||(0,z.x)(n))&&i)}(t,a,l,u)&&((r.c.instantAnimations||!h)&&d?.(B.$(t,n,e)),t[0]=t[t.length-1],q(n),n.repeat=0);let f={startTime:i?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...n,keyframes:t},p=!c&&function(t){let{motionValue:e,name:n,repeatDelay:i,repeatType:r,damping:s,type:o}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return tt()&&n&&Q.has(n)&&("transform"!==n||!l)&&!a&&!i&&"mirror"!==r&&0!==s&&"inertia"!==o}(f),m=f.motionValue?.owner?.current,g=p?new Z({...f,element:m}):new W(f);g.finished.then(()=>{this.notifyFinished()}).catch(s.Z),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),(0,H.m)()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}var tn=n(42718),ti=n(30952);let tr={type:"spring",stiffness:500,damping:25,restSpeed:10},ts=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),to={type:"keyframes",duration:.8},ta={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tl=(t,{keyframes:e})=>e.length>2?to:ti.G.has(t)?t.startsWith("scale")?ts(e[1]):tr:ta,tu=t=>null!==t,th=(t,e,n,s={},o,a)=>l=>{let u=(0,tn.e)(s,t)||{},h=u.delay||s.delay||0,{elapsed:d=0}=s;d-=(0,i.w)(h);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...u,delay:-d,onUpdate:t=>{e.set(t),u.onUpdate&&u.onUpdate(t)},onComplete:()=>{l(),u.onComplete&&u.onComplete()},name:t,motionValue:e,element:a?void 0:o};!function({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:r,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(u)&&Object.assign(f,tl(t,f)),f.duration&&(f.duration=(0,i.w)(f.duration)),f.repeatDelay&&(f.repeatDelay=(0,i.w)(f.repeatDelay)),void 0!==f.from&&(f.keyframes[0]=f.from);let p=!1;if(!1!==f.type&&(0!==f.duration||f.repeatDelay)||(q(f),0!==f.delay||(p=!0)),(r.c.instantAnimations||r.c.skipAnimations||o?.shouldSkipAnimations)&&(p=!0,q(f),f.delay=0),f.allowFlatten=!u.type&&!u.ease,p&&!a&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:n="loop"},i){let r=t.filter(tu),s=e&&"loop"!==n&&e%2==1?0:r.length-1;return r[s]}(f.keyframes,u);if(void 0!==t){c.Wi.update(()=>{f.onUpdate(t),f.onComplete()});return}}return u.isSync?new W(f):new te(f)}},21476:function(t,e,n){n.d(e,{w:function(){return f}});var i=n(42718),r=n(32114),s=n(43041),o=n(87014),a=n(31740),l=n(7560),u=n(51834),h=n(91615),c=n(67496),d=n(2670);function f(t,e,{delay:n=0,transitionOverride:f,type:p}={}){let{transition:m,transitionEnd:g,...v}=e,y=t.getDefaultTransition();m=m?(0,r.r)(m,y):y;let x=m?.reduceMotion;f&&(m=f);let w=[],T=p&&t.animationState&&t.animationState.getState()[p];for(let e in v){let r=t.getValue(e,t.latestValues[e]??null),o=v[e];
108if(void 0===o||T&&function({protectedKeys:t,needsAnimating:e},n){let i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}(T,e))continue;let a={delay:n,...(0,i.e)(m||{},e)},l=r.get();if(void 0!==l&&!r.isAnimating&&!Array.isArray(o)&&o===l&&!a.velocity)continue;let f=!1;if(window.MotionHandoffAnimation){let n=(0,h.s)(t);if(n){let t=window.MotionHandoffAnimation(n,e,d.Wi);null!==t&&(a.startTime=t,f=!0)}}(0,u.K)(t,e);let p=x??t.shouldReduceMotion;r.start((0,c.v)(e,r,o,p&&s.z.has(e)?{type:!1}:a,t,f));let g=r.animation;g&&w.push(g)}if(g){let e=()=>d.Wi.update(()=>{g&&function(t,e){let{transitionEnd:n={},transition:i={},...r}=(0,a.x)(t,e)||{};for(let e in r={...r,...n}){var s;let n=(s=r[e],(0,l.C)(s)?s[s.length-1]||0:s);t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,o.BX)(n))}}(t,g)});w.length?Promise.all(w).then(e):e()}return w}},9600:function(t,e,n){n.d(e,{e:function(){return d},m:function(){return c}});var i=n(77469),r=n(2670);let s=new Set,o=!1,a=!1,l=!1;function u(){if(a){let t=Array.from(s).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),n=new Map;e.forEach(t=>{let e=(0,i.Ei)(t);e.length&&(n.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=n.get(t);e&&e.forEach(([e,n])=>{t.getValue(e)?.set(n)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}a=!1,o=!1,s.forEach(t=>t.complete(l)),s.clear()}function h(){s.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(a=!0)})}function c(){l=!0,h(),u(),l=!1}class d{constructor(t,e,n,i,r,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=i,this.element=r,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(s.add(this),o||(o=!0,r.Wi.read(h),r.Wi.resolveKeyframes(u))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:n,motionValue:i}=this;if(null===t[0]){let r=i?.get(),s=t[t.length-1];if(void 0!==r)t[0]=r;else if(n&&e){let i=n.readValue(e,s);null!=i&&(t[0]=i)}void 0===t[0]&&(t[0]=s),i&&void 0===r&&i.set(t[0])}!function(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),s.delete(this)}cancel(){"scheduled"===this.state&&(s.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}},89160:function(t,e,n){n.d(e,{$:function(){return r}});let i=t=>null!==t;function r(t,{repeat:e,repeatType:n="loop"},r,s=1){let o=t.filter(i),a=s<0||e&&"loop"!==n&&e%2==1?0:o.length-1;return a&&void 0!==r?r:o[a]}},69097:function(t,e,n){n.d(e,{Y:function(){return r}});var i=n(872);function r(t){let e=[0];return(0,i.c)(e,t.length-1),e}},872:function(t,e,n){n.d(e,{c:function(){return s}});var i=n(13663),r=n(31557);function s(t,e){let n=t[t.length-1];for(let s=1;s<=e;s++){let o=(0,i.Y)(0,e,s);t.push((0,r.t)(n,1,o))}}},77469:function(t,e,n){n.d(e,{Ei:function(){return h},lw:function(){return c},mP:function(){return a}});var i=n(78315),r=n(30952),s=n(25259),o=n(39394);let a=t=>t===s.Rx||t===o.px,l=new Set(["x","y","z"]),u=r._.filter(t=>!l.has(t));function h(t){let e=[];return u.forEach(n=>{let i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}let c={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>(0,i.WK)(e,"x"),y:(t,{transform:e})=>(0,i.WK)(e,"y")};c.translateX=c.x,c.translateY=c.y},56252:function(t,e,n){n.d(e,{M:function(){return i}});let i="data-"+(0,n(35070).D)("framerAppearId")},91615:function(t,e,n){n.d(e,{s:function(){return r}});var i=n(56252);function r(t){return t.props[i.M]}},88877:function(t,e,n){n.d(e,{T:function(){return i}});class i{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}},42718:function(t,e,n){n.d(e,{e:function(){return r}});var i=n(32114);function r(t,e){let n=t?.[e]??t?.default??t;return n!==t?(0,i.r)(n,t):n}},12558:function(t,e,n){n.d(e,{V3:function(){return l},f9:function(){return r},tm:function(){return o}});let i=t=>e=>"string"==typeof e&&e.startsWith(t),r=i("--"),s=i("var(--"),o=t=>!!s(t)&&a.test(t.split("/*")[0].trim()),a=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function l(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}},32114:function(t,e,n){n.d(e,{r:function(){return i}});function i(t,e){if(t?.inherit&&e){let{inherit:n,...i}=t;return{...e,...i}}return t}},9804:function(t,e,n){n.d(e,{w:function(){return i}});let i=(t,e,n=10)=>{let i="",r=Math.max(Math.round(e/n),2);for(let e=0;e<r;e++)i+=Math.round(1e4*t(e/(r-1)))/1e4+", ";return`linear(${i.substring(0,i.length-2)})`}},3738:function(t,e,n){n.d(e,{Z:function(){return o}});var i=n(54747);let r=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var s=n(49885);function o(t,e){let n=!1,o=!0,a={delta:0,timestamp:0,isProcessing:!1},l=()=>n=!0,u=r.reduce((t,n)=>(t[n]=function(t,e){let n=new Set,i=new Set,r=!1,o=!1,a=new WeakSet,l={delta:0,timestamp:0,isProcessing:!1},u=0;function h(e){a.has(e)&&(c.schedule(e),t()),u++,e(l)}let c={schedule:(t,e=!1,s=!1)=>{let o=s&&r?n:i;return e&&a.add(t),o.has(t)||o.add(t),t},cancel:t=>{i.delete(t),a.delete(t)},process:t=>{if(l=t,r){o=!0;return}
108r=!0,[n,i]=[i,n],n.forEach(h),e&&s.f.value&&s.f.value.frameloop[e].push(u),u=0,n.clear(),r=!1,o&&(o=!1,c.process(t))}};return c}(l,e?n:void 0),t),{}),{setup:h,read:c,resolveKeyframes:d,preUpdate:f,update:p,preRender:m,render:g,postRender:v}=u,y=()=>{let r=i.c.useManualTiming?a.timestamp:performance.now();n=!1,i.c.useManualTiming||(a.delta=o?1e3/60:Math.max(Math.min(r-a.timestamp,40),1)),a.timestamp=r,a.isProcessing=!0,h.process(a),c.process(a),d.process(a),f.process(a),p.process(a),m.process(a),g.process(a),v.process(a),a.isProcessing=!1,n&&e&&(o=!1,t(y))},x=()=>{n=!0,o=!0,a.isProcessing||t(y)};return{schedule:r.reduce((t,e)=>{let i=u[e];return t[e]=(t,e=!1,r=!1)=>(n||x(),i.schedule(t,e,r)),t},{}),cancel:t=>{for(let e=0;e<r.length;e++)u[r[e]].cancel(t)},state:a,steps:u}}},2670:function(t,e,n){n.d(e,{Pn:function(){return s},Wi:function(){return r},frameData:function(){return o},yL:function(){return a}});var i=n(93622);let{schedule:r,cancel:s,state:o,steps:a}=(0,n(3738).Z)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:i.Z,!0)},76725:function(t,e,n){n.d(e,{g:function(){return i}});let{schedule:i,cancel:r}=(0,n(3738).Z)(queueMicrotask,!1)},34039:function(t,e,n){let i;n.d(e,{X:function(){return a}});var r=n(54747),s=n(2670);function o(){i=void 0}let a={now:()=>(void 0===i&&a.set(s.frameData.isProcessing||r.c.useManualTiming?s.frameData.timestamp:performance.now()),i),set:t=>{i=t,queueMicrotask(o)}}},44170:function(t,e,n){function i({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function r({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function s(t,e){if(!e)return t;let n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}n.d(e,{d7:function(){return s},i8:function(){return i},z2:function(){return r}})},59257:function(t,e,n){n.d(e,{D2:function(){return d},YY:function(){return u},am:function(){return h},o2:function(){return l},q2:function(){return s}});var i=n(31557),r=n(72320);function s(t,e,n){return n+e*(t-n)}function o(t,e,n,i,r){return void 0!==r&&(t=i+r*(t-i)),i+n*(t-i)+e}function a(t,e=0,n=1,i,r){t.min=o(t.min,e,n,i,r),t.max=o(t.max,e,n,i,r)}function l(t,{x:e,y:n}){a(t.x,e.translate,e.scale,e.originPoint),a(t.y,n.translate,n.scale,n.originPoint)}function u(t,e,n,i=!1){let s,o;let a=n.length;if(a){e.x=e.y=1;for(let u=0;u<a;u++){o=(s=n[u]).projectionDelta;let{visualElement:a}=s.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(i&&s.options.layoutScroll&&s.scroll&&s!==s.root&&d(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,l(t,o)),i&&(0,r.ud)(s.latestValues)&&d(t,s.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}function h(t,e){t.min=t.min+e,t.max=t.max+e}function c(t,e,n,r,s=.5){let o=(0,i.t)(t.min,t.max,s);a(t,e,n,o,r)}function d(t,e){c(t.x,e.x,e.scaleX,e.scale,e.originX),c(t.y,e.y,e.scaleY,e.scale,e.originY)}},50603:function(t,e,n){n.d(e,{dO:function(){return o},wc:function(){return r}});let i=()=>({translate:0,scale:1,origin:0,originPoint:0}),r=()=>({x:i(),y:i()}),s=()=>({min:0,max:0}),o=()=>({x:s(),y:s()})},42986:function(t,e,n){n.d(e,{P:function(){return l}});var i=n(39394);function r(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let s={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!i.px.test(t))return t;t=parseFloat(t)}let n=r(t,e.target.x),s=r(t,e.target.y);return`${n}% ${s}%`}};var o=n(48153),a=n(31557);let l={borderRadius:{...s,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:s,borderTopRightRadius:s,borderBottomLeftRadius:s,borderBottomRightRadius:s,boxShadow:{correct:(t,{treeScale:e,projectionDelta:n})=>{let i=o.P.parse(t);if(i.length>5)return t;let r=o.P.createTransformer(t),s="number"!=typeof i[0]?1:0,l=n.x.scale*e.x,u=n.y.scale*e.y;i[0+s]/=l,i[1+s]/=u;let h=(0,a.t)(l,u,.5);return"number"==typeof i[2+s]&&(i[2+s]/=h),"number"==typeof i[3+s]&&(i[3+s]/=h),r(i)}}}},72320:function(t,e,n){function i(t){return void 0===t||1===t}function r({scale:t,scaleX:e,scaleY:n}){return!i(t)||!i(e)||!i(n)}function s(t){return r(t)||o(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function o(t){var e,n;return(e=t.x)&&"0%"!==e||(n=t.y)&&"0%"!==n}n.d(e,{D_:function(){return o},Lj:function(){return r},ud:function(){return s}})},21379:function(t,e,n){n.d(e,{J:function(){return s},z:function(){return o}});var i=n(44170),r=n(59257);function s(t,e){return(0,i.i8)((0,i.d7)(t.getBoundingClientRect(),e))}function o(t,e,n){let i=s(t,n),{scroll:o}=e;return o&&((0,r.am)(i.x,o.offset.x),(0,r.am)(i.y,o.offset.y)),i}},89108:function(t,e,n){n.d(e,{l9:function(){return V},uN:function(){return N},v7:function(){return k}});var i=n(40944),r=n(4378),s=n(59373),o=n(83809),a=n(9600),l=n(52837);let u=new Set(["opacity","clipPath","filter","transform"]);var h=n(76725),c=n(34039),d=n(50603),f=n(87014),p=n(48153),m=n(61930),g=n(75293),v=n(29517),y=n(23535);let x=[...v.$,g.$,p.P],w=t=>x.find((0,y.l)(t));var T=n(14083),E=n(51908),S=n(26651),b=n(30952);let P={current:null},A={current:!1},C="undefined"!=typeof window;var R=n(18020),M=n(2670);let D=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],O={};function k(t){O=t}function N(){return O}class V{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:i,skipAnimations:r,blockInitialAnimation:s,visualState:o},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=a.e,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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 t=c.X.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,M.Wi.render(this.render,!1,!0))};let{latestValues:u,renderState:h}=o;this.latestValues=u,this.baseTarget={...u},this.initialValues=e.initial?{...u}:{},this.renderState=h,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=r,this.options=l,this.blockInitialAnimation=!!s,this.isControllingVariants=(0,S.G)(e),this.isVariantNode=(0,S.M)(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:d,...f}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in f){let e=f[t];void 0!==u[t]&&(0,T.i)(e)&&e.set(u[t])}}mount(t){if(this.hasBeenMounted)for(let t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,E.R.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
108h((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(A.current||function(){if(A.current=!0,C){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>P.current=t.matches;t.addEventListener("change",e),e()}else P.current=!1}}(),this.shouldReduceMotion=P.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),(0,M.Pn)(this.notifyUpdate),(0,M.Pn)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let n;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&u.has(t)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:s,ease:o,duration:a}=e.accelerate,u=new l._({element:this.current,name:t,keyframes:r,times:s,ease:o,duration:(0,i.w)(a)}),h=n(u);this.valueSubscriptions.set(t,()=>{h(),u.cancel()});return}let r=b.G.has(t);r&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&M.Wi.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"undefined"!=typeof window&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),n&&n(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in O){let e=O[t];if(!e)continue;let{isEnabled:n,Feature:i}=e;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,d.dO)()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<D.length;e++){let n=D[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let i=t["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=function(t,e,n){for(let i in e){let r=e[i],s=n[i];if((0,T.i)(r))t.addValue(i,r);else if((0,T.i)(s))t.addValue(i,(0,f.BX)(r,{owner:t}));else if(s!==r){if(t.hasValue(i)){let e=t.getValue(i);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(i);t.addValue(i,(0,f.BX)(void 0!==e?e:r,{owner:t}))}}}for(let i in n)void 0===e[i]&&t.removeValue(i);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=(0,f.BX)(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){let n=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=n&&("string"==typeof n&&((0,r.P)(n)||(0,s.W)(n))?n=p
108arseFloat(n):!w(n)&&p.P.test(e)&&(n=(0,m.T)(t,e)),this.setBaseTarget(t,(0,T.i)(n)?n.get():n)),(0,T.i)(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e;let{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let i=(0,R.o)(this.props,n,this.presenceContext?.custom);i&&(e=i[t])}if(n&&void 0!==e)return e;let i=this.getBaseTargetFromProps(this.props,t);return void 0===i||(0,T.i)(i)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:i}on(t,e){return this.events[t]||(this.events[t]=new o.L),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){h.g.render(this.render)}}},25104:function(t,e,n){n.d(e,{J:function(){return y}});var i=n(14083),r=n(43041),s=n(29517),o=n(25122),a=n(4378),l=n(12558);let u=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var h=n(9600),c=n(59373),d=n(48153),f=n(61930);let p=new Set(["auto","none","0"]);var m=n(77469);class g extends h.e{constructor(t,e,n,i,r){super(t,e,n,i,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let n=0;n<t.length;n++){let i=t[n];if("string"==typeof i&&(i=i.trim(),(0,l.tm)(i))){let r=function t(e,n,i=1){(0,o.k)(i<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,s]=function(t){let e=u.exec(t);if(!e)return[,];let[,n,i,r]=e;return[`--${n??i}`,r]}(e);if(!r)return;let h=window.getComputedStyle(n).getPropertyValue(r);if(h){let t=h.trim();return(0,a.P)(t)?parseFloat(t):t}return(0,l.tm)(s)?t(s,n,i+1):s}(i,e.current);void 0!==r&&(t[n]=r),n===t.length-1&&(this.finalKeyframe=i)}}if(this.resolveNoneKeyframes(),!r.z.has(n)||2!==t.length)return;let[i,h]=t,c=(0,s.C)(i),d=(0,s.C)(h);if((0,l.V3)(i)!==(0,l.V3)(h)&&m.lw[n]){this.needsMeasurement=!0;return}if(c!==d){if((0,m.mP)(c)&&(0,m.mP)(d))for(let e=0;e<t.length;e++){let n=t[e];"string"==typeof n&&(t[e]=parseFloat(n))}else m.lw[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,n=[];for(let e=0;e<t.length;e++){var i;(null===t[e]||("number"==typeof(i=t[e])?0===i:null===i||"none"===i||"0"===i||(0,c.W)(i)))&&n.push(e)}n.length&&function(t,e,n){let i,r=0;for(;r<t.length&&!i;){let e=t[r];"string"==typeof e&&!p.has(e)&&(0,d.V)(e).values.length&&(i=t[r]),r++}if(i&&n)for(let r of e)t[r]=(0,f.T)(n,i)}(t,n,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:n}=this;if(!t||!t.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=m.lw[n](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let i=e[e.length-1];void 0!==i&&t.getValue(n,i).jump(i,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:n}=this;if(!t||!t.current)return;let i=t.getValue(e);i&&i.jump(this.measuredOrigin,!1);let r=n.length-1,s=n[r];n[r]=m.lw[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
108h(([e,n])=>{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}}var v=n(89108);class y extends v.l9{constructor(){super(...arguments),this.KeyframeResolver=g}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let n=t.style;return n?n[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,i.i)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}},78315:function(t,e,n){n.d(e,{E$:function(){return h},RT:function(){return d},WK:function(){return c}});let i=t=>180*t/Math.PI,r=t=>o(i(Math.atan2(t[1],t[0]))),s={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:r,rotateZ:r,skewX:t=>i(Math.atan(t[1])),skewY:t=>i(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},o=t=>((t%=360)<0&&(t+=360),t),a=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),l=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),u={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:a,scaleY:l,scale:t=>(a(t)+l(t))/2,rotateX:t=>o(i(Math.atan2(t[6],t[5]))),rotateY:t=>o(i(Math.atan2(-t[2],t[0]))),rotateZ:r,rotate:r,skewX:t=>i(Math.atan(t[4])),skewY:t=>i(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function h(t){return t.includes("scale")?1:0}function c(t,e){let n,i;if(!t||"none"===t)return h(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)n=u,i=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=s,i=e}if(!i)return h(e);let o=n[e],a=i[1].split(",").map(f);return"function"==typeof o?o(a):a[o]}let d=(t,e)=>{let{transform:n="none"}=getComputedStyle(t);return c(n,e)};function f(t){return parseFloat(t.trim())}},35070:function(t,e,n){n.d(e,{D:function(){return i}});function i(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}},77937:function(t,e,n){n.d(e,{W:function(){return c}});var i=n(12558),r=n(30952),s=n(78315),o=n(21379),a=n(25104),l=n(38297),u=n(77688),h=n(68798);class c extends a.J{constructor(){super(...arguments),this.type="html",this.renderInstance=u.N}readValueFromInstance(t,e){if(r.G.has(e))return this.projection?.isProjecting?(0,s.E$)(e):(0,s.RT)(t,e);{let n=window.getComputedStyle(t),r=((0,i.f9)(e)?n.getPropertyValue(e):n[e])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,o.J)(t,e)}build(t,e,n){(0,l.r)(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return(0,h.U)(t,e,n)}}},38297:function(t,e,n){n.d(e,{r:function(){return u}});let i=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var r=n(34348),s=n(30952),o=n(12558);let a={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},l=s._.length;function u(t,e,n){let{style:u,vars:h,transformOrigin:c}=t,d=!1,f=!1;for(let t in e){let n=e[t];if(s.G.has(t)){d=!0;continue}if((0,o.f9)(t)){h[t]=n;continue}{let e=i(n,r.j[t]);t.startsWith("origin")?(f=!0,c[t]=e):u[t]=e}}if(!e.transform&&(d||n?u.transform=function(t,e,n){let o="",u=!0;for(let h=0;h<l;h++){let l=s._[h],c=t[l];if(void 0===c)continue;let d=!0;if("number"==typeof c)d=c===(l.startsWith("scale")?1:0);else{let t=parseFloat(c);d=l.startsWith("scale")?1===t:0===t}if(!d||n){let t=i(c,r.j[l]);if(!d){u=!1;let e=a[l]||l;o+=`${e}(${t}) `}n&&(e[l]=t)}}return o=o.trim(),n?o=n(e,u?"":o):u&&(o="none"),o}(e,t.transform,n):u.transform&&(u.transform="none")),f){let{originX:t="50%",originY:e="50%",originZ:n=0}=c;u.transformOrigin=`${t} ${e} ${n}`}}},77688:function(t,e,n){n.d(e,{N:function(){return i}});function i(t,{style:e,vars:n},i,r){let s;let o=t.style;for(s in e)o[s]=e[s];for(s in r?.applyProjectionStyles(o,i),n)o.setProperty(s,n[s])}},68798:function(t,e,n){n.d(e,{U:function(){return s}});var i=n(14083),r=n(80166);function s(t,e,n){let s=t.style,o=e?.style,a={};if(!s)return a;for(let e in s)((0,i.i)(s[e])||o&&(0,i.i)(o[e])||(0,r.jF)(e,t)||n?.getValue(e)?.liveStyle!==void 0)&&(a[e]=s[e]);return a}},51908:function(t,e,n){n.d(e,{R:function(){return i}});let i=new WeakMap},62440:function(t,e,n){n.d(e,{e:function(){return f}});var i=n(30952),r=n(54129),s=n(50603),o=n(25104),a=n(35070),l=n(65133);let u=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"]);var h=n(13422),c=n(77688),d=n(63349);class f extends o.J{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=s.dO}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(i.G.has(e)){let t=(0,r.A)(e);return t&&t.default||0}return e=u.has(e)?e:(0,a.D)(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return(0,d.U)(t,e,n)}
108build(t,e,n){(0,l.i)(t,e,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,e,n,i){!function(t,e,n,i){for(let n in(0,c.N)(t,e,void 0,i),e.attrs)t.setAttribute(u.has(n)?n:(0,a.D)(n),e.attrs[n])}(t,e,0,i)}mount(t){this.isSVGTag=(0,h.a)(t.tagName),super.mount(t)}}},65133:function(t,e,n){n.d(e,{i:function(){return a}});var i=n(38297);let r={offset:"stroke-dashoffset",array:"stroke-dasharray"},s={offset:"strokeDashoffset",array:"strokeDasharray"},o=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function a(t,{attrX:e,attrY:n,attrScale:a,pathLength:l,pathSpacing:u=1,pathOffset:h=0,...c},d,f,p){if((0,i.r)(t,c,f),d){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:m,style:g}=t;for(let t of(m.transform&&(g.transform=m.transform,delete m.transform),(g.transform||m.transformOrigin)&&(g.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),g.transform&&(g.transformBox=p?.transformBox??"fill-box",delete m.transformBox),o))void 0!==m[t]&&(g[t]=m[t],delete m[t]);void 0!==e&&(m.x=e),void 0!==n&&(m.y=n),void 0!==a&&(m.scale=a),void 0!==l&&function(t,e,n=1,i=0,o=!0){t.pathLength=1;let a=o?r:s;t[a.offset]=`${-i}`,t[a.array]=`${e} ${n}`}(m,l,u,h,!1)}},13422:function(t,e,n){n.d(e,{a:function(){return i}});let i=t=>"string"==typeof t&&"svg"===t.toLowerCase()},63349:function(t,e,n){n.d(e,{U:function(){return o}});var i=n(14083),r=n(30952),s=n(68798);function o(t,e,n){let o=(0,s.U)(t,e,n);for(let n in t)((0,i.i)(t[n])||(0,i.i)(e[n]))&&(o[-1!==r._.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=t[n]);return o}},93403:function(t,e,n){n.d(e,{H:function(){return i}});function i(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}},26651:function(t,e,n){n.d(e,{G:function(){return o},M:function(){return a}});var i=n(93403),r=n(17996),s=n(51809);function o(t){return(0,i.H)(t.animate)||s.V.some(e=>(0,r.$)(t[e]))}function a(t){return!!(o(t)||t.variants)}},80166:function(t,e,n){n.d(e,{jF:function(){return s}});var i=n(30952),r=n(42986);function s(t,{layout:e,layoutId:n}){return i.G.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!r.P[t]||"opacity"===t)}},7560:function(t,e,n){n.d(e,{C:function(){return i}});let i=t=>Array.isArray(t)},17996:function(t,e,n){n.d(e,{$:function(){return i}});function i(t){return"string"==typeof t||Array.isArray(t)}},43041:function(t,e,n){n.d(e,{z:function(){return i}});let i=new Set(["width","height","top","left","right","bottom",...n(30952)._])},30952:function(t,e,n){n.d(e,{G:function(){return r},_:function(){return i}});let i=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],r=new Set(i)},31740:function(t,e,n){n.d(e,{x:function(){return r}});var i=n(18020);function r(t,e,n){let r=t.getProps();return(0,i.o)(r,e,void 0!==n?n:r.custom,t)}},18020:function(t,e,n){function i(t){let e=[{},{}];return t?.values.forEach((t,n)=>{e[0][n]=t.get(),e[1][n]=t.getVelocity()}),e}function r(t,e,n,r){if("function"==typeof e){let[s,o]=i(r);e=e(void 0!==n?n:t.custom,s,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,o]=i(r);e=e(void 0!==n?n:t.custom,s,o)}return e}n.d(e,{o:function(){return r}})},51809:function(t,e,n){n.d(e,{V:function(){return r},e:function(){return i}});let i=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],r=["initial",...i]},13909:function(t,e,n){n.d(e,{P:function(){return i}});let i={layout:0,mainThread:0,waapi:0}},49885:function(t,e,n){n.d(e,{f:function(){return i}});let i={value:null,addProjectionMetrics:null}},41473:function(t,e,n){n.d(e,{s:function(){return h}});var i=n(54747),r=n(93622),s=n(22782),o=n(25122),a=n(13663),l=n(87501),u=n(42995);function h(t,e,{clamp:n=!0,ease:h,mixer:c}={}){let d=t.length;if((0,o.k)(d===e.length,"Both input and output ranges must be the same length","range-length"),1===d)return()=>e[0];if(2===d&&e[0]===e[1])return()=>e[1];let f=t[0]===t[1];t[0]>t[d-1]&&(t=[...t].reverse(),e=[...e].reverse());let p=function(t,e,n){let o=[],a=n||i.c.mix||u.C,l=t.length-1;for(let n=0;n<l;n++){let i=a(t[n],t[n+1]);if(e){let t=Array.isArray(e)?e[n]||r.Z:e;i=(0,s.z)(t,i)}o.push(i)}return o}(e,h,c),m=p.length,g=n=>{if(f&&n<t[0])return e[0];let i=0;if(m>1)for(;i<t.length-2&&!(n<t[i+1]);i++);let r=(0,a.Y)(t[i],t[i+1],n);return p[i](r)};return n?e=>g((0,l.u)(t[0],t[d-1],e)):g}},32792:function(t,e,n){n.d(e,{R:function(){return r}});var i=n(11004);function r(t){return(0,i.K)(t)&&"offsetHeight"in t}},64598:function(t,e,n){n.d(e,{v:function(){return r}});var i=n(11004);function r(t){return(0,i.K)(t)&&"ownerSVGElement"in t}},10426:function(t,e,n){n.d(e,{r:function(){return r}});var i=n(64598);function r(t){return(0,i.v)(t)&&"svg"===t.tagName}},42995:function(t,e,n){n.d(e,{C:function(){return P}});var i=n(22782),r=n(25122),s=n(12558),o=n(75293),a=n(48153),l=n(12964),u=n(7671);function h(t,e,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?t+(e-t)*6*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}var c=n(50897);function d(t,e){return n=>n>0?e:t}var f=n(31557);let p=(t,e,n)=>{let i=t*t,r=n*(e*e-i)+i;return r<0?0:Math.sqrt(r)},m=[l.$,c.m,u.J],g=t=>m.find(e=>e.test(t));function v(t){let e=g(t);if((0,r.K)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let n=e.parse(t);return e===u.J&&(n=function({hue:t,saturation:e,lightness:n,alpha:i}
108){t/=360,n/=100;let r=0,s=0,o=0;if(e/=100){let i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;r=h(a,i,t+1/3),s=h(a,i,t),o=h(a,i,t-1/3)}else r=s=o=n;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*o),alpha:i}}(n)),n}let y=(t,e)=>{let n=v(t),i=v(e);if(!n||!i)return d(t,e);let r={...n};return t=>(r.red=p(n.red,i.red,t),r.green=p(n.green,i.green,t),r.blue=p(n.blue,i.blue,t),r.alpha=(0,f.t)(n.alpha,i.alpha,t),c.m.transform(r))},x=new Set(["none","hidden"]);function w(t,e){return n=>(0,f.t)(t,e,n)}function T(t){return"number"==typeof t?w:"string"==typeof t?(0,s.tm)(t)?d:o.$.test(t)?y:b:Array.isArray(t)?E:"object"==typeof t?o.$.test(t)?y:S:d}function E(t,e){let n=[...t],i=n.length,r=t.map((t,n)=>T(t)(t,e[n]));return t=>{for(let e=0;e<i;e++)n[e]=r[e](t);return n}}function S(t,e){let n={...t,...e},i={};for(let r in n)void 0!==t[r]&&void 0!==e[r]&&(i[r]=T(t[r])(t[r],e[r]));return t=>{for(let e in i)n[e]=i[e](t);return n}}let b=(t,e)=>{let n=a.P.createTransformer(e),s=(0,a.V)(t),o=(0,a.V)(e);return s.indexes.var.length===o.indexes.var.length&&s.indexes.color.length===o.indexes.color.length&&s.indexes.number.length>=o.indexes.number.length?x.has(t)&&!o.values.length||x.has(e)&&!s.values.length?x.has(t)?n=>n<=0?t:e:n=>n>=1?e:t:(0,i.z)(E(function(t,e){let n=[],i={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){let s=e.types[r],o=t.indexes[s][i[s]],a=t.values[o]??0;n[r]=a,i[s]++}return n}(s,o),o.values),n):((0,r.K)(!0,`Complex values '${t}' and '${e}' 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.`,"complex-values-different"),d(t,e))};function P(t,e,n){return"number"==typeof t&&"number"==typeof e&&"number"==typeof n?(0,f.t)(t,e,n):T(t)(t,e)}},31557:function(t,e,n){n.d(e,{t:function(){return i}});let i=(t,e,n)=>t+(e-t)*n},75741:function(t,e,n){n.d(e,{I:function(){return i}});function i(t,e,n){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let i=document;e&&(i=e.current);let r=n?.[t]??i.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t).filter(t=>null!=t)}},87014:function(t,e,n){n.d(e,{BX:function(){return h},S1:function(){return l}});var i=n(83809),r=n(83140),s=n(34039),o=n(2670);let a=t=>!isNaN(parseFloat(t)),l={current:void 0};class u{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=s.X.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=s.X.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=a(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new i.L);let n=this.events[t].add(e);return"change"===t?()=>{n(),o.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return l.current&&l.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=s.X.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,r.R)(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function h(t,e){return new u(t,e)}},12964:function(t,e,n){n.d(e,{$:function(){return r}});var i=n(50897);let r={test:(0,n(95386).i)("#"),parse:function(t){let e="",n="",i="",r="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),r=t.substring(4,5),e+=e,n+=n,i+=i,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alph
108a:r?parseInt(r,16)/255:1}},transform:i.m.transform}},7671:function(t,e,n){n.d(e,{J:function(){return a}});var i=n(25259),r=n(39394),s=n(3983),o=n(95386);let a={test:(0,o.i)("hsl","hue"),parse:(0,o.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:o=1})=>"hsla("+Math.round(t)+", "+r.aQ.transform((0,s.N)(e))+", "+r.aQ.transform((0,s.N)(n))+", "+(0,s.N)(i.Fq.transform(o))+")"}},75293:function(t,e,n){n.d(e,{$:function(){return o}});var i=n(12964),r=n(7671),s=n(50897);let o={test:t=>s.m.test(t)||i.$.test(t)||r.J.test(t),parse:t=>s.m.test(t)?s.m.parse(t):r.J.test(t)?r.J.parse(t):i.$.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?s.m.transform(t):r.J.transform(t),getAnimatableNone:t=>{let e=o.parse(t);return e.alpha=0,o.transform(e)}}},50897:function(t,e,n){n.d(e,{m:function(){return u}});var i=n(87501),r=n(25259),s=n(3983),o=n(95386);let a=t=>(0,i.u)(0,255,t),l={...r.Rx,transform:t=>Math.round(a(t))},u={test:(0,o.i)("rgb","red"),parse:(0,o.d)("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+l.transform(t)+", "+l.transform(e)+", "+l.transform(n)+", "+(0,s.N)(r.Fq.transform(i))+")"}},95386:function(t,e,n){n.d(e,{i:function(){return s},d:function(){return o}});var i=n(93160);let r=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,s=(t,e)=>n=>!!("string"==typeof n&&r.test(n)&&n.startsWith(t)||e&&null!=n&&Object.prototype.hasOwnProperty.call(n,e)),o=(t,e,n)=>r=>{if("string"!=typeof r)return r;let[s,o,a,l]=r.match(i.K);return{[t]:parseFloat(s),[e]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},17349:function(t,e,n){n.d(e,{h:function(){return l}});var i=n(48153),r=n(93160);let s=new Set(["brightness","contrast","saturate","opacity"]);function o(t){let[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[i]=n.match(r.K)||[];if(!i)return t;let o=n.replace(i,""),a=s.has(e)?1:0;return i!==n&&(a*=100),e+"("+a+o+")"}let a=/\b([a-z-]*)\(.*?\)/gu,l={...i.P,getAnimatableNone:t=>{let e=t.match(a);return e?e.map(o).join(" "):t}}},48153:function(t,e,n){n.d(e,{V:function(){return h},P:function(){return p}});var i=n(75293);let r=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var s=n(93160),o=n(3983);let a="number",l="color",u=/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 h(t){let e=t.toString(),n=[],r={color:[],number:[],var:[]},s=[],o=0,h=e.replace(u,t=>(i.$.test(t)?(r.color.push(o),s.push(l),n.push(i.$.parse(t))):t.startsWith("var(")?(r.var.push(o),s.push("var"),n.push(t)):(r.number.push(o),s.push(a),n.push(parseFloat(t))),++o,"${}")).split("${}");return{values:n,split:h,indexes:r,types:s}}function c(t){return h(t).values}function d(t){let{split:e,types:n}=h(t),r=e.length;return t=>{let s="";for(let u=0;u<r;u++)if(s+=e[u],void 0!==t[u]){let e=n[u];e===a?s+=(0,o.N)(t[u]):e===l?s+=i.$.transform(t[u]):s+=t[u]}return s}}let f=t=>"number"==typeof t?0:i.$.test(t)?i.$.getAnimatableNone(t):t,p={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(s.K)?.length||0)+(t.match(r)?.length||0)>0},parse:c,createTransformer:d,getAnimatableNone:function(t){let e=c(t);return d(t)(e.map(f))}}},1205:function(t,e,n){n.d(e,{s:function(){return r}});var i=n(48153);let r={...i.P,getAnimatableNone:t=>{let e=i.P.parse(t);return i.P.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}}},29517:function(t,e,n){n.d(e,{$:function(){return o},C:function(){return a}});var i=n(25259),r=n(39394),s=n(23535);let o=[i.Rx,r.px,r.aQ,r.RW,r.vw,r.vh,{test:t=>"auto"===t,parse:t=>t}],a=t=>o.find((0,s.l)(t))},54129:function(t,e,n){n.d(e,{A:function(){return a}});var i=n(75293),r=n(17349),s=n(1205);let o={...n(34348).j,color:i.$,backgroundColor:i.$,outlineColor:i.$,fill:i.$,stroke:i.$,borderColor:i.$,borderTopColor:i.$,borderRightColor:i.$,borderBottomColor:i.$,borderLeftColor:i.$,filter:r.h,WebkitFilter:r.h,mask:s.s,WebkitMask:s.s},a=t=>o[t]},34348:function(t,e,n){n.d(e,{j:function(){return a}});var i=n(25259);let r={...i.Rx,transform:Math.round};var s=n(39394);let o={rotate:s.RW,rotateX:s.RW,rotateY:s.RW,rotateZ:s.RW,scale:i.bA,scaleX:i.bA,scaleY:i.bA,scaleZ:i.bA,skew:s.RW,skewX:s.RW,skewY:s.RW,distance:s.px,translateX:s.px,translateY:s.px,translateZ:s.px,x:s.px,y:s.px,z:s.px,perspective:s.px,transformPerspective:s.px,opacity:i.Fq,originX:s.$C,originY:s.$C,originZ:s.px},a={borderWidth:s.px,borderTopWidth:s.px,borderRightWidth:s.px,borderBottomWidth:s.px,borderLeftWidth:s.px,borderRadius:s.px,borderTopLeftRadius:s.px,borderTopRightRadius:s.px,borderBottomRightRadius:s.px,borderBottomLeftRadius:s.px,width:s.px,maxWidth:s.px,height:s.px,maxHeight:s.px,top:s.px,right:s.px,bottom:s.px,left:s.px,inset:s.px,insetBlock:s.px,insetBlockStart:s.px,insetBlockEnd:s.px,insetInline:s.px,insetInlineStart:s.px,insetInlineEnd:s.px,padding:s.px,paddingTop:s.px,paddingRight:s.px,paddingBottom:s.px,paddingLeft:s.px,paddingBlock:s.px,paddingBlockStart:s.px,paddingBlockEnd:s.px,paddingInline:s.px,paddingInlineStart:s.px,paddingInlineEnd:s.px,margin:s.px,marginTop:s.px,marginRight:s.px,marginBottom:s.px,marginLeft:s.px,marginBlock:s.px,marginBlockStart:s.px,marginBlockEnd:s.px,marginInline:s.px,marginInlineStart:s.px,marginInlineEnd:s.px,fontSize:s.px,backgroundPositionX:s.px,backgroundPositionY:s.px,...o,zIndex:r,fillOpacity:i.Fq,strokeOpacity:i.Fq,numOctaves:r}},25259:function(t,e,n){n.d(e,{Fq:function(){return s},Rx:function(){return r},bA:function(){return o}});var i=n(87501);let r={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},s={...r,transform:t=>(0,i.u)(0,1,t)},o={...r,default:1}},39394:function(t,e,n){n.d(e,{$C:function(){return u},RW:function(){return r},aQ:function(){return s},px:function(){return o},vh:function(){return a},vw:function(){return l}});let i=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),r=i("deg"),s=i("%"),o=i("px"),a=i("vh"),l=i("vw"),u={...s,parse:t=>s.parse(t)/100,transform:t=>s.transform(100*t)}},23535:function(t,e,n){n.d(e,{l:function(){return i}});let i=t=>e=>e.test(t)},61930:function(t,e,n){n.d(e,{T:function(){return l}});var i=n(48153),r=n(17349),s=n(1205),o=n(54129);let a=new Set([r.h,s.s]);function l(t,e){let n=(0,o.A)(t);return a.has(n)||(n=i.P),n.getAnimatableNone?n.getAnimatableNone(e):void 0}},93160:function(t,e,n){n.d(e,{K:function(){return i}});let i=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},3983:function(t,e,n){n.d(e,{N:function(){return i}});let i=t=>Math.round(1e5*t)/1e5},14083:function(t,e,n){n.d(e,{i:function(){return i}});let i=t=>!!(t&&t.getVelocity)},51834:function(t,e,n){n.d(e,{K:function(){return s}});var i=n(54747),r=n(14083);function s(t,e){let n=t.getValue("willChange");if((0,r.i)(n)&&n.add)return n.add(e);if(!n&&i.c.WillChange){let n=new i.c.WillChange("auto");t.addValue("willChange",n),n.add(e)}}},3668:function(t,e,n){function i(t,e){-1===t.indexOf(e)&&t.push(e)}function r(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}n.d(e,{cl:function(){return r},y4:function(){return i}})},87501:function(t,e,n){n.d(e,{u:function(){return i}});let i=(t,e,n)=>n>e?e:n<t?t:n},44488:function(t,e,n){n.d(e,{Bn:function(){return o},X7:function(){return a},Z7:function(){return s}});var i=n(43197),r=n(50211);let s=t=>1-Math.sin(Math.acos(t)),o=(0,r.M)(s),a=(0,i.o)(s)},43197:function(t,e,n){n.d(e,{o:function(){return i}});let i=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},50211:function(t,e,n){n.d(e,{M:function(){return i}});let i=t=>e=>1-t(1-e)},11621:function(t,e,n){n.d(e,{q:function(){return i}});let i=t=>Array.isArray(t)&&"number"==typeof t[0]},74843:function(t,e,n){n.d(e,{N:function(){return i}});let i=t=>Array.isArray(t)&&"number"!=typeof t[0]},25122:function(t,e,n){n.d(e,{K:function(){return i},k:function(){return r}}),n(14224);let i=()=>{},r=()=>{}},54747:function(t,e,n){n.d(e,{c:function(){return i}});let i={}}
108,4378:function(t,e,n){n.d(e,{P:function(){return i}});let i=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)},11004:function(t,e,n){n.d(e,{K:function(){return i}});function i(t){return"object"==typeof t&&null!==t}},59373:function(t,e,n){n.d(e,{W:function(){return i}});let i=t=>/^0[^.\s]+$/u.test(t)},53950:function(t,e,n){n.d(e,{X:function(){return i}});function i(t){let e;return()=>(void 0===e&&(e=t()),e)}},93622:function(t,e,n){n.d(e,{Z:function(){return i}});let i=t=>t},22782:function(t,e,n){n.d(e,{z:function(){return r}});let i=(t,e)=>n=>e(t(n)),r=(...t)=>t.reduce(i)},13663:function(t,e,n){n.d(e,{Y:function(){return i}});let i=(t,e,n)=>{let i=e-t;return 0===i?1:(n-t)/i}},83809:function(t,e,n){n.d(e,{L:function(){return r}});var i=n(3668);class r{constructor(){this.subscriptions=[]}add(t){return(0,i.y4)(this.subscriptions,t),()=>(0,i.cl)(this.subscriptions,t)}notify(t,e,n){let i=this.subscriptions.length;if(i){if(1===i)this.subscriptions[0](t,e,n);else for(let r=0;r<i;r++){let i=this.subscriptions[r];i&&i(t,e,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},40944:function(t,e,n){n.d(e,{X:function(){return r},w:function(){return i}});let i=t=>1e3*t,r=t=>t/1e3},83140:function(t,e,n){n.d(e,{R:function(){return i}});function i(t,e){return e?1e3/e*t:0}},86267:function(t,e,n){n.d(e,{d:function(){return r}});var i=n(12801);function r(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let s=i.L.bind(null,t||n.find(t=>"object"==typeof t));return n.map(s)}},92331:function(t,e,n){n.d(e,{j:function(){return r}});var i=n(40291);function r(t,e,n){return(0,i.E)(t,7*e,n)}},73483:function(t,e,n){n.d(e,{w:function(){return l}});var i=n(86975);function r(t){let e=(0,i.Q)(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}var s=n(86267),o=n(74841),a=n(81146);function l(t,e,n){let[i,l]=(0,s.d)(null==n?void 0:n.in,t,e),u=(0,a.b)(i),h=(0,a.b)(l);return Math.round((+u-r(u)-(+h-r(h)))/o.dP)}},68712:function(t,e,n){n.d(e,{j:function(){return s}});var i=n(86267),r=n(73483);function s(t,e,n){let[s,a]=(0,i.d)(null==n?void 0:n.in,t,e),l=o(s,a),u=Math.abs((0,r.w)(s,a));s.setDate(s.getDate()-l*u);let h=Number(o(s,a)===-l),c=l*(u-h);return 0===c?0:c}function o(t,e){let n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}},72694:function(t,e,n){n.d(e,{A:function(){return r}});var i=n(86975);function r(t,e){return+(0,i.Q)(t)>+(0,i.Q)(e)}},72827:function(t,e,n){n.d(e,{J:function(){return r}});var i=n(86975);function r(t){return!(!(t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t))&&"number"!=typeof t||isNaN(+(0,i.Q)(t)))}},61063:function(t,e,n){n.d(e,{D:function(){return o}});var i=n(74841),r=n(12801),s=n(86975);function o(t,e){var n;let o,m;let g=()=>(0,r.L)(null==e?void 0:e.in,NaN),v=null!==(n=null==e?void 0:e.additionalDigits)&&void 0!==n?n:2,y=function(t){let e;let n={},i=t.split(a.dateTimeDelimiter);if(i.length>2)return n;if(/:/.test(i[0])?e=i[0]:(n.date=i[0],e=i[1],a.timeZoneDelimiter.test(n.date)&&(n.date=t.split(a.timeZoneDelimiter)[0],e=t.substr(n.date.length,t.length))),e){let t=a.timezone.exec(e);t?(n.time=e.replace(t[1],""),n.timezone=t[1]):n.time=e}return n}(t);if(y.date){let t=function(t,e){let n=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),i=t.match(n);if(!i)return{year:NaN,restDateString:""};let r=i[1]?parseInt(i[1]):null,s=i[2]?parseInt(i[2]):null;return{year:null===s?r:100*s,restDateString:t.slice((i[1]||i[2]).length)}}(y.date,v);o=function(t,e){if(null===e)return new Date(NaN);let n=t.match(l);if(!n)return new Date(NaN);let i=!!n[4],r=c(n[1]),s=c(n[2])-1,o=c(n[3]),a=c(n[4]),u=c(n[5])-1;if(i)return a>=1&&a<=53&&u>=0&&u<=6?function(t,e,n){let i=new Date(0);i.setUTCFullYear(t,0,4);let r=i.getUTCDay()||7;return i.setUTCDate(i.getUTCDate()+((e-1)*7+n+1-r)),i}(e,a,u):new Date(NaN);{let t=new Date(0);return s>=0&&s<=11&&o>=1&&o<=(f[s]||(p(e)?29:28))&&r>=1&&r<=(p(e)?366:365)?(t.setUTCFullYear(e,s,Math.max(r,o)),t):new Date(NaN)}}(t.restDateString,t.year)}if(!o||isNaN(+o))return g();let x=+o,w=0;if(y.time&&isNaN(w=function(t){let e=t.match(u);if(!e)return NaN;let n=d(e[1]),r=d(e[2]),s=d(e[3]);return(24===n?0===r&&0===s:s>=0&&s<60&&r>=0&&r<60&&n>=0&&n<25)?n*i.vh+r*i.yJ+1e3*s:NaN}(y.time)))return g();if(y.timezone){if(isNaN(m=function(t){if("Z"===t)return 0;let e=t.match(h);if(!e)return 0;let n="+"===e[1]?-1:1,r=parseInt(e[2]),s=e[3]&&parseInt(e[3])||0;return s>=0&&s<=59?n*(r*i.vh+s*i.yJ):NaN}(y.timezone)))return g()}else{let t=new Date(x+w),n=(0,s.Q)(0,null==e?void 0:e.in);return n.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),n.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),n}return(0,s.Q)(x+w+m,null==e?void 0:e.in)}
108let a={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},l=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,u=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,h=/^([+-])(\d{2})(?::?(\d{2}))?$/;function c(t){return t?parseInt(t):1}function d(t){return t&&parseFloat(t.replace(",","."))||0}let f=[31,null,31,30,31,30,31,31,30,31,30,31];function p(t){return t%400==0||t%4==0&&t%100!=0}},16965:function(t,e,n){n.d(e,{N:function(){return r}});var i=n(86975);function r(t,e){let n=(0,i.Q)(t,null==e?void 0:e.in);return n.setDate(1),n.setHours(0,0,0,0),n}}}]);

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.