1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,77105,t=>{"use strict";var e=t.i(22016),i=t.i(18566),n=t.i(71645),s=t.i(61745);t.i(47167);var r=t.i(43476),a=(0,n.forwardRef)(function({href:t,locale:n,localeCookie:a,onClick:o,prefetch:l,...h},u){let d=(0,s.useLocale)(),c=null!=n&&n!==d,p=(0,i.usePathname)();return c&&(l=!1),(0,r.jsx)(e.default,{ref:u,href:t,hrefLang:c?n:void 0,onClick:function(t){(function(t,e,i,n){if(!t||n===i||null==n||!e)return;let s=function(t,e=window.location.pathname){return"/"===t?e:e.replace(t,"")}(e),{name:r,...a}=t;a.path||(a.path=""!==s?s:"/");let o=`${r}=${n};`;for(let[t,e]of Object.entries(a))o+=`${"maxAge"===t?"max-age":t}`,"boolean"!=typeof e&&(o+="="+e),o+=";";document.cookie=o})(a,p,d,n),o&&o(t)},prefetch:l,...h})});t.s(["default",0,a],77105)},97826,t=>{"use strict";var e=t.i(71645);t.s(["useScrollToHeader",0,function(){let t=(0,e.useRef)(!0),i=(0,e.useSyncExternalStore)(function(t){return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},()=>window.innerWidth<960,()=>!1);return(0,e.useEffect)(()=>{let e=document.getElementById("site-banner");if(!e){t.current=!1;return}let i=new IntersectionObserver(([e])=>{t.current=e.isIntersecting},{threshold:0});return i.observe(e),()=>i.disconnect()},[]),{scrollToHeader:()=>{if(!i||!t.current)return;let e=document.getElementById("site-header");e&&window.scrollTo({top:e.offsetTop,behavior:"instant"})},isMobile:i}}])},75553,t=>{"use strict";let e;var i=t.i(71645);let n=t=>{let e,i=new Set,n=(t,n)=>{let s="function"==typeof t?t(e):t;if(!Object.is(s,e)){let t=e;e=(null!=n?n:"object"!=typeof s||null===s)?s:Object.assign({},e,s),i.forEach(i=>i(e,t))}},s=()=>e,r={setState:n,getState:s,getInitialState:()=>a,subscribe:t=>(i.add(t),()=>i.delete(t))},a=e=t(n,s,r);return r},s=t=>{let e=t?n(t):n,s=t=>(function(t,e=t=>t){let n=i.default.useSyncExternalStore(t.subscribe,i.default.useCallback(()=>e(t.getState()),[t,e]),i.default.useCallback(()=>e(t.getInitialState()),[t,e]));return i.default.useDebugValue(n),n})(e,t);return Object.assign(s,e),s},r=(e=t=>({isOpen:!1,navPath:[],setNavPath:e=>t({navPath:e}),goBack:()=>t(t=>({navPath:t.navPath.slice(0,-1)})),setIsOpen:e=>t({isOpen:e}),isLanguageOpen:!1,setIsLanguageOpen:e=>t({isLanguageOpen:e}),isLocationSelectorOpen:!1,setIsLocationSelectorOpen:e=>t({isLocationSelectorOpen:e})}))?s(e):s;t.s(["useBurgerStore",0,r],75553)},88476,t=>{"use strict";var e=t.i(43476),i=t.i(18566),n=t.i(71645);let s=(0,t.i(55742).default)((0,e.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");var r=t.i(7670),a=t.i(97826),o=t.i(26999),l=t.i(25913),h=t.i(75157);let u=o.Root,d=o.Trigger,c=o.Portal,p=n.forwardRef(({className:t,...i},n)=>(0,e.jsx)(o.Overlay,{className:(0,h.cn)("fixed inset-0 top-[80px] z-50 bg-black/75 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 min-[960px]:top-0 min-[960px]:bg-black/25",t),...i,ref:n}));p.displayName=o.Overlay.displayName;let m=(0,l.cva)("fixed z-50 gap-4 bg-background p-6 pb-0 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500 inset-y-0 right-0 data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm",{variants:{side:{right:"inset-y-0 right-0 h-[calc(100%-80px)] min-[960px]:h-full data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right"}},defaultVariants:{side:"right"}}),f=n.forwardRef(({side:t="right",className:i,children:n,...s},r)=>(0,e.jsxs)(c,{children:[(0,e.jsx)(p,{}),(0,e.jsxs)(o.Content,{ref:r,className:(0,h.cn)(m({side:t}),"top-[80px] w-full max-w-[290px] overflow-hidden rounded-tl-[30px] bg-off-white px-0 pt-[90px] min-[960px]:top-0 min-[960px]:max-w-[470px]",i),...s,children:[(0,e.jsx)(o.Title,{className:"sr-only"}),(0,e.jsx)(o.Description,{className:"sr-only"}),n]})]}));f.displayName=o.Content.displayName;var g=t.i(75553);t.s(["BurgerMenu",0,function({children:t}){let o=(0,i.usePathname)(),l=(0,g.useBurgerStore)(t=>t.isOpen),h=(0,g.useBurgerStore)(t=>t.setIsOpen),c=(0,g.useBurgerStore)(t=>t.setNavPath),p=(0,g.useBurgerStore)(t=>t.setIsLanguageOpen),m=(0,g.useBurgerStore)(t=>t.setIsLocationSelectorOpen),{scrollToHeader:y}=(0,a.useScrollToHeader)();return(0,n.useEffect)(()=>{h(!1),c([]),p(!1),m(!1)},[o,h,c,p,m]),(0,e.jsxs)(u,{open:l,onOpenChange:t=>{t&&y(),requestAnimationFrame(()=>h(t))},children:[(0,e.jsx)(d,{asChild:!0,children:(0,e.jsx)("button",{className:(0,r.default)("flex h-[80px] w-[80px] items-center justify-center min-[960px]:gap-1",{"bg-off-white min-[960px]:bg-transparent":l}),"aria-label":"Menu",children:(0,e.jsx)(s,{})})}),(0,e.jsx)(f,{children:t})]})}],88476)},35798,t=>{"use strict";let e,i,n,s;var r,a=t.i(43476),o=t.i(22016),l=t.i(18566),h=t.i(71645),u=t.i(55742);let d=(0,u.default)((0,a.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),c=(0,u.default)((0,a.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");var p=t.i(83012),m=t.i(26999),f=t.i(47167);let g=(0,h.createContext)({});function y(t){let e=(0,h.useRef)(null);return null===e.current&&(e.current=t()),e.current}let v="u">typeof window?h.useLayoutEffect:h.useEffect,x=(0,h.createContext)(null);function w(t){return"object"==typeof t&&null!==t}function b(t){return w(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}var S=h;let T=(0,h.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function P(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}class C extends S.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(b(e)&&t.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let t=e.offsetParent,
1i=b(t)&&t.offsetWidth||0,n=b(t)&&t.offsetHeight||0,s=getComputedStyle(e),r=this.props.sizeRef.current;r.height=parseFloat(s.height),r.width=parseFloat(s.width),r.top=e.offsetTop,r.left=e.offsetLeft,r.right=i-r.width-r.left,r.bottom=n-r.height-r.top}return null}componentDidUpdate(){}render(){return this.props.children}}function E({children:t,isPresent:e,anchorX:i,anchorY:n,root:s,pop:r}){let o=(0,S.useId)(),l=(0,S.useRef)(null),u=(0,S.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:d}=(0,S.useContext)(T),c=function(...t){return h.useCallback(function(...t){return e=>{let i=!1,n=t.map(t=>{let n=P(t,e);return i||"function"!=typeof n||(i=!0),n});if(i)return()=>{for(let e=0;e<n.length;e++){let i=n[e];"function"==typeof i?i():P(t[e],null)}}}}(...t),t)}(l,t.props?.ref??t?.ref);return(0,S.useInsertionEffect)(()=>{let{width:t,height:a,top:h,left:c,right:p,bottom:m}=u.current;if(e||!1===r||!l.current||!t||!a)return;let f="left"===i?`left: ${c}`:`right: ${p}`,g="bottom"===n?`bottom: ${m}`:`top: ${h}`;l.current.dataset.motionPopId=o;let y=document.createElement("style");d&&(y.nonce=d);let v=s??document.head;return v.appendChild(y),y.sheet&&y.sheet.insertRule(` 2 [data-motion-pop-id="${o}"] { 3 position: absolute !important; 4 width: ${t}px !important; 5 height: ${a}px !important; 6 ${f}px !important; 7 ${g}px !important; 8 } 9 `),()=>{l.current?.removeAttribute("data-motion-pop-id"),v.contains(y)&&v.removeChild(y)}},[e]),(0,a.jsx)(C,{isPresent:e,childRef:l,sizeRef:u,pop:r,children:!1===r?t:S.cloneElement(t,{ref:c})})}let A=({children:t,initial:e,isPresent:i,onExitComplete:n,custom:s,presenceAffectsLayout:r,mode:o,anchorX:l,anchorY:u,root:d})=>{let c=y(j),p=(0,h.useId)(),m=!0,f=(0,h.useMemo)(()=>(m=!1,{id:p,initial:e,isPresent:i,custom:s,onExitComplete:t=>{for(let e of(c.set(t,!0),c.values()))if(!e)return;n&&n()},register:t=>(c.set(t,!1),()=>c.delete(t))}),[i,c,n]);return r&&m&&(f={...f}),(0,h.useMemo)(()=>{c.forEach((t,e)=>c.set(e,!1))},[i]),h.useEffect(()=>{i||c.size||!n||n()},[i]),t=(0,a.jsx)(E,{pop:"popLayout"===o,isPresent:i,anchorX:l,anchorY:u,root:d,children:t}),(0,a.jsx)(x.Provider,{value:f,children:t})};function j(){return new Map}function M(t=!0){let e=(0,h.useContext)(x);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:s}=e,r=(0,h.useId)();(0,h.useEffect)(()=>{if(t)return s(r)},[t]);let a=(0,h.useCallback)(()=>t&&n&&n(r),[r,n,t]);return!i&&n?[!1,a]:[!0]}let k=t=>t.key||"";function V(t){let e=[];return h.Children.forEach(t,t=>{(0,h.isValidElement)(t)&&e.push(t)}),e}let R=({children:t,custom:e,initial:i=!0,onExitComplete:n,presenceAffectsLayout:s=!0,mode:r="sync",propagate:o=!1,anchorX:l="left",anchorY:u="top",root:d})=>{let[c,p]=M(o),m=(0,h.useMemo)(()=>V(t),[t]),f=o&&!c?[]:m.map(k),x=(0,h.useRef)(!0),w=(0,h.useRef)(m),b=y(()=>new Map),S=(0,h.useRef)(new Set),[T,P]=(0,h.useState)(m),[C,E]=(0,h.useState)(m);v(()=>{x.current=!1,w.current=m;for(let t=0;t<C.length;t++){let e=k(C[t]);f.includes(e)?(b.delete(e),S.current.delete(e)):!0!==b.get(e)&&b.set(e,!1)}},[C,f.length,f.join("-")]);let j=[];if(m!==T){let t=[...m];for(let e=0;e<C.length;e++){let i=C[e],n=k(i);f.includes(n)||(t.splice(e,0,i),j.push(i))}return"wait"===r&&j.length&&(t=j),E(V(t)),P(m),null}let{forceRender:R}=(0,h.useContext)(g);return(0,a.jsx)(a.Fragment,{children:C.map(t=>{let h=k(t),g=(!o||!!c)&&(m===C||f.includes(h));return(0,a.jsx)(A,{isPresent:g,initial:(!x.current||!!i)&&void 0,custom:e,presenceAffectsLayout:s,mode:r,root:d,onExitComplete:g?void 0:()=>{if(S.current.has(h)||!b.has(h))return;S.current.add(h),b.set(h,!0);let t=!0;b.forEach(e=>{e||(t=!1)}),t&&(R?.(),E(w.current),o&&p?.(),n&&n())},anchorX:l,anchorY:u,children:t},h)})})},D=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],L=new Set(D),B=(t,e,i)=>i>e?e:i<t?t:i,N={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},I={...N,transform:t=>B(0,1,t)},O={...N,default:1},F=t=>Math.round(1e5*t)/1e5,U=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,$=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,H=(t,e)=>i=>!!("string"==typeof i&&$.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),W=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[s,r,a,o]=n.match(U);return{[t]:parseFloat(s),[e]:parseFloat(r),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},z={...N,transform:t=>Math.round(B(0,255,t))},Y={test:H("rgb","red"),parse:W("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+z.transform(t)+", "+z.transform(e)+", "+z.transform(i)+", "+F(I.transform(n))+")"},X={test:H("#"),parse:function(t){let e="",i="",n="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alph
9a:s?parseInt(s,16)/255:1}},transform:Y.transform},G=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),K=G("deg"),q=G("%"),_=G("px"),Z=G("vh"),J=G("vw"),Q={...q,parse:t=>q.parse(t)/100,transform:t=>q.transform(100*t)},tt={test:H("hsl","hue"),parse:W("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+q.transform(F(e))+", "+q.transform(F(i))+", "+F(I.transform(n))+")"},te={test:t=>Y.test(t)||X.test(t)||tt.test(t),parse:t=>Y.test(t)?Y.parse(t):tt.test(t)?tt.parse(t):X.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?Y.transform(t):tt.transform(t),getAnimatableNone:t=>{let e=te.parse(t);return e.alpha=0,te.transform(e)}},ti=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tn="number",ts="color",tr=/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 ta(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},s=[],r=0,a=e.replace(tr,t=>(te.test(t)?(n.color.push(r),s.push(ts),i.push(te.parse(t))):t.startsWith("var(")?(n.var.push(r),s.push("var"),i.push(t)):(n.number.push(r),s.push(tn),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:a,indexes:n,types:s}}function to({split:t,types:e}){let i=t.length;return n=>{let s="";for(let r=0;r<i;r++)if(s+=t[r],void 0!==n[r]){let t=e[r];t===tn?s+=F(n[r]):t===ts?s+=te.transform(n[r]):s+=n[r]}return s}}let tl={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(U)?.length||0)+(t.match(ti)?.length||0)>0},parse:function(t){return ta(t).values},createTransformer:function(t){return to(ta(t))},getAnimatableNone:function(t){let e=ta(t);return to(e)(e.values.map((t,i)=>((t,e)=>"number"==typeof t?e?.trim().endsWith("/")?t:0:"number"==typeof t?0:te.test(t)?te.getAnimatableNone(t):t)(t,e.split[i])))}},th=new Set(["brightness","contrast","saturate","opacity"]);function tu(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(U)||[];if(!n)return t;let s=i.replace(n,""),r=+!!th.has(e);return n!==i&&(r*=100),e+"("+r+s+")"}let td=/\b([a-z-]*)\(.*?\)/gu,tc={...tl,getAnimatableNone:t=>{let e=t.match(td);return e?e.map(tu).join(" "):t}},tp={...tl,getAnimatableNone:t=>{let e=tl.parse(t);return tl.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},tm={...N,transform:Math.round},tf={borderWidth:_,borderTopWidth:_,borderRightWidth:_,borderBottomWidth:_,borderLeftWidth:_,borderRadius:_,borderTopLeftRadius:_,borderTopRightRadius:_,borderBottomRightRadius:_,borderBottomLeftRadius:_,width:_,maxWidth:_,height:_,maxHeight:_,top:_,right:_,bottom:_,left:_,inset:_,insetBlock:_,insetBlockStart:_,insetBlockEnd:_,insetInline:_,insetInlineStart:_,insetInlineEnd:_,padding:_,paddingTop:_,paddingRight:_,paddingBottom:_,paddingLeft:_,paddingBlock:_,paddingBlockStart:_,paddingBlockEnd:_,paddingInline:_,paddingInlineStart:_,paddingInlineEnd:_,margin:_,marginTop:_,marginRight:_,marginBottom:_,marginLeft:_,marginBlock:_,marginBlockStart:_,marginBlockEnd:_,marginInline:_,marginInlineStart:_,marginInlineEnd:_,fontSize:_,backgroundPositionX:_,backgroundPositionY:_,rotate:K,rotateX:K,rotateY:K,rotateZ:K,scale:O,scaleX:O,scaleY:O,scaleZ:O,skew:K,skewX:K,skewY:K,distance:_,translateX:_,translateY:_,translateZ:_,x:_,y:_,z:_,perspective:_,transformPerspective:_,opacity:I,originX:Q,originY:Q,originZ:_,zIndex:tm,fillOpacity:I,strokeOpacity:I,numOctaves:tm},tg={...tf,color:te,backgroundColor:te,outlineColor:te,fill:te,stroke:te,borderColor:te,borderTopColor:te,borderRightColor:te,borderBottomColor:te,borderLeftColor:te,filter:tc,WebkitFilter:tc,mask:tp,WebkitMask:tp},ty=t=>tg[t],tv=()=>({translate:0,scale:1,origin:0,originPoint:0}),tx=()=>({x:tv(),y:tv()}),tw=()=>({min:0,max:0}),tb=()=>({x:tw(),y:tw()}),tS=t=>!!(t&&t.getVelocity),tT=new Set(["width","height","top","left","right","bottom",...D]),tP=t=>e=>e.test(t),tC=[N,_,q,K,J,Z,{test:t=>"auto"===t,parse:t=>t}],tE=t=>tC.find(tP(t)),tA=()=>{},tj=()=>{};f.default;let tM=t=>e=>"string"==typeof e&&e.startsWith(t),tk=tM("--"),tV=tM("var(--"),tR=t=>!!tV(t)&&tD.test(t.split("/*")[0].trim()),tD=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function tL(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let tB=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tN=t=>180*t/Math.PI,tI=t=>tF(tN(Math.atan2(t[1],t[0]))),tO={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:tI,rotateZ:tI,skewX:t=>tN(Math.atan(t[1])),skewY:t=>tN(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tF=t=>((t%=360)<0&&(t+=360),t),tU=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),t$=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tH={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tU,scaleY:t$,scale:t=>(tU(t)+t$(t))/2,rotateX:t=>tF(tN(Math.atan2(t[6],t[5]))),rotateY:t=>tF(tN(Math.atan2(-t[2],t[0]))),rotateZ:tI,rotate:tI,skewX:t=>tN(Math.atan(t[4])),skewY:t=>tN(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function tW(t){return+!!t.includes("scale")}function tz(t,e){let i,n;if(!t||"none"===t)return tW(e);let s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(s)i=tH,n=s;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=tO,n=e}if(!n)return tW(e);let r=i[e],a=n[1].split(",").map(tY);return"function"==typeof r?r(a):a[r]}function tY(t){return parseFloat(t.trim())}let tX=t=>t===N||t===_,tG=new Set(["x","y","z"]),tK=D.filter(t=>!tG.has(t)),tq={width:({x:t},{paddingLeft:e="0",paddingRight:i="0",boxSizing:n})=>{let s=t.max-t.min;return"border-box"===n?s:s-parseFloat(e)-parseFloat(i)},height:({y:t},{paddingTop:e="0",paddingBottom:i="0",boxSizing:n})=>{let s=t.max-t.min;return"border-box"===n?s:s-parseFloat(e)-parseFloat(i)},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})=>tz(e,"x"),y:(t,{transform:e})=>tz(e,"y")};tq.translateX=tq.x,tq.translateY=tq.y;let t_=t=>t,tZ={},tJ=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tQ(t,e){let i=!1,n=!0,s={delta:0,timestamp:0,isProcessing:!1},r=()=>i=!0,a=tJ.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,s=!1,r=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1},l=0;function h(e){a.has(e)&&(u.schedule(e),t()),l++,e(o)}let u={schedule:(t,e=!1,r=!1)=>{let o=r&&s?i:n;return e&&a.add(t),o.add(t),t},cancel:t=>{n.delete(t),a.delete(t)},process:t=>{if(o=t,s){r=!0;return}s=!0;let a=i;
9i=n,n=a,i.forEach(h),e,l=0,i.clear(),s=!1,r&&(r=!1,u.process(t))}};return u}(r,e?i:void 0),t),{}),{setup:o,read:l,resolveKeyframes:h,preUpdate:u,update:d,preRender:c,render:p,postRender:m}=a,f=()=>{let r=tZ.useManualTiming,a=r?s.timestamp:performance.now();i=!1,r||(s.delta=n?1e3/60:Math.max(Math.min(a-s.timestamp,40),1)),s.timestamp=a,s.isProcessing=!0,o.process(s),l.process(s),h.process(s),u.process(s),d.process(s),c.process(s),p.process(s),m.process(s),s.isProcessing=!1,i&&e&&(n=!1,t(f))};return{schedule:tJ.reduce((e,r)=>{let o=a[r];return e[r]=(e,r=!1,a=!1)=>(!i&&(i=!0,n=!0,s.isProcessing||t(f)),o.schedule(e,r,a)),e},{}),cancel:t=>{for(let e=0;e<tJ.length;e++)a[tJ[e]].cancel(t)},state:s,steps:a}}let{schedule:t0,cancel:t1,state:t5,steps:t2}=tQ("u">typeof requestAnimationFrame?requestAnimationFrame:t_,!0),t3=new Set,t4=!1,t6=!1,t9=!1;function t7(){if(t6){let t=Array.from(t3).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,n=(e=[],tK.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e);n.length&&(i.set(t,n),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}t6=!1,t4=!1,t3.forEach(t=>t.complete(t9)),t3.clear()}function t8(){t3.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(t6=!0)})}class et{constructor(t,e,i,n,s,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=s,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(t3.add(this),t4||(t4=!0,t0.read(t8),t0.resolveKeyframes(t7))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let s=n?.get(),r=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){let n=i.readValue(e,r);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=r),n&&void 0===s&&n.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),t3.delete(this)}cancel(){"scheduled"===this.state&&(t3.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let ee=new Set([tc,tp]);function ei(t,e){let i=ty(t);return ee.has(i)||(i=tl),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let en=new Set(["auto","none","0"]);class es extends et{constructor(t,e,i,n,s){super(t,e,i,n,s,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&tR(n=n.trim())){let s=function t(e,i,n=1){tj(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[s,r]=function(t){let e=tB.exec(t);if(!e)return[,];let[,i,n,s]=e;return[`--${i??n}`,s]}(e);if(!s)return;let a=window.getComputedStyle(i).getPropertyValue(s);if(a){let t=a.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return tR(r)?t(r,i,n+1):r}(n,e.current);void 0!==s&&(t[i]=s),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!tT.has(i)||2!==t.length)return;let[n,s]=t,r=tE(n),a=tE(s);if(tL(n)!==tL(s)&&tq[i]){this.needsMeasurement=!0;return}if(r!==a)if(tX(r)&&tX(a))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else tq[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(null===t[e]||function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)}(t[e]))&&i.push(e);i.length&&function(t,e,i){let n,s=0;for(;s<t.length&&!n;){let e=t[s];"string"==typeof e&&!en.has(e)&&ta(e).values.length&&(n=t[s]),s++}if(n&&i)for(let s of e)t[s]=ei(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tq[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let s=i.length-1,r=i[s];i[s]=tq[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEac
9h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let er=t=>1e3*t;function ea(t,e){-1===t.indexOf(e)&&t.push(e)}function eo(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class el{constructor(){this.subscriptions=[]}add(t){return ea(this.subscriptions,t),()=>eo(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let s=0;s<n;s++){let n=this.subscriptions[s];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function eh(t,e,i){e.startsWith("--")?t.style.setProperty(e,i):t.style[e]=i}function eu(t){let e;return()=>(void 0===e&&(e=t()),e)}let ed={};function ec(t,e){let i=eu(t);return()=>ed[e]??i()}let ep=ec(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),em=t=>null!==t;function ef(t,{repeat:e,repeatType:i="loop"},n,s=1){let r=t.filter(em),a=s<0||e&&"loop"!==i&&e%2==1?0:r.length-1;return a&&void 0!==n?n:r[a]}class eg{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)}}let ey={layout:0,mainThread:0,waapi:0},ev=t=>Array.isArray(t)&&"number"==typeof t[0],ex=ec(()=>{try{document.createElement("div").animate({opacity:0}
9,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),ew=(t,e,i=10)=>{let n="",s=Math.max(Math.round(e/i),2);for(let e=0;e<s;e++)n+=Math.round(1e4*t(e/(s-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},eb=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,eS={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:eb([0,.65,.55,1]),circOut:eb([.55,0,1,.45]),backIn:eb([.31,.01,.66,-.59]),backOut:eb([.33,1.53,.69,.99])};function eT(t){return"function"==typeof t&&"applyToOptions"in t}class eP extends eg{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:n,pseudoElement:s,allowFlatten:r=!1,finalKeyframe:a,onComplete:o}=t;this.isPseudoElement=!!s,this.allowFlatten=r,this.options=t,tj("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:t,...e}){return eT(t)&&ex()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:s=300,repeat:r=0,repeatType:a="loop",ease:o="easeOut",times:l}={},h){let u={[e]:i};l&&(u.offset=l);let d=function t(e,i){if(e)return"function"==typeof e?ex()?ew(e,i):"ease-out":ev(e)?eb(e):Array.isArray(e)?e.map(e=>t(e,i)||eS.easeOut):eS[e]}(o,s);Array.isArray(d)&&(u.easing=d);let c={delay:n,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:r+1,direction:"reverse"===a?"alternate":"normal"};h&&(c.pseudoElement=h);let p=t.animate(u,c);return p}(e,i,n,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let t=ef(n,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(t),eh(e,i,t),this.animation.cancel()}o?.(),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(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=er(t),e&&this.animation.pause()}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,rangeStart:e,rangeEnd:i,observe:n}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&ep())?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),i&&(this.animation.rangeEnd=i),t_):n(this)}}let eC=new Set(["opacity","clipPath","filter","transform"]),{schedule:eE}=tQ(queueMicrotask,!1);function eA(){e=void 0}let ej={now:()=>(void 0===e&&ej.set(t5.isProcessing||tZ.useManualTiming?t5.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(eA)}};class eM{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=ej.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=ej.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(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 el);let i=this.events[t].add(e);return"change"===t?()=>{i(),t0.read(()=>{this.events.change.getSize()||this.stop()})}:i}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,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}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 s&&s.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=ej.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}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 ek(t,e){return new eM(t,e)}let eV=[...tC,te,tl],eR=new WeakMap;function eD(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function eL(t){return"string"==typeof t||Array.isArray(t)}let eB=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],eN=["initial",...eB];function eI(t){return eD(t.animate)||eN.some(e=>eL(t[e]))}function eO(t){return!!(eI(t)||t.variants)}let eF={current:null},eU={current:!1},e$="u">typeof window;function eH(t){let e=[{},{}];
9return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function eW(t,e,i,n){if("function"==typeof e){let[s,r]=eH(n);e=e(void 0!==i?i:t.custom,s,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,r]=eH(n);e=e(void 0!==i?i:t.custom,s,r)}return e}let ez=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],eY={};class eX{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,skipAnimations:s,blockInitialAnimation:r,visualState:a},o={}){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=et,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=ej.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,t0.render(this.render,!1,!0))};const{latestValues:l,renderState:h}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=h,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=s,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=eI(e),this.isVariantNode=eO(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in d){const e=d[t];void 0!==l[t]&&tS(e)&&e.set(l[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,eR.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.forEach((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(eU.current||function(){if(eU.current=!0,e$)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>eF.current=t.matches;t.addEventListener("change",e),e()}else eF.current=!1}(),this.shouldReduceMotion=eF.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(),t1(this.notifyUpdate),t1(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 i;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&eC.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:n,times:s,ease:r,duration:a}=e.accelerate,o=new eP({element:this.current,name:t,keyframes:n,times:s,ease:r,duration:er(a)}),l=i(o);this.valueSubscriptions.set(t,()=>{l(),o.cancel()});return}let n=L.has(t);n&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&t0.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),i&&i(),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 eY){let e=eY[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];
9e.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):tb()}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<ez.length;e++){let i=ez[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let s=e[n],r=i[n];if(tS(s))t.addValue(n,s);else if(tS(r))t.addValue(n,ek(s,{owner:t}));else if(r!==s)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(n);t.addValue(n,ek(void 0!==e?e:s,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);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 i=this.values.get(t);e!==i&&(i&&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 i=this.values.get(t);return void 0===i&&void 0!==e&&(i=ek(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=i){let n,s;if("string"==typeof i&&(n=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n)||(s=i,/^0[^.\s]+$/u.test(s))))i=parseFloat(i);else{let n;n=i,!eV.find(tP(n))&&tl.test(e)&&(i=ei(t,e))}this.setBaseTarget(t,tS(i)?i.get():i)}return tS(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=eW(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||tS(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new el),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){eE.render(this.render)}}class eG extends eX{constructor(){super(...arguments),this.KeyframeResolver=es}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;tS(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function eK(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let eq=(t,e)=>e&&"number"==typeof t?e.transform(t):t,e_={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eZ=D.length;function eJ(t,e,i){let{style:n,vars:s,transformOrigin:r}=t,a=!1,o=!1;for(let t in e){let i=e[t];if(L.has(t)){a=!0;continue}if(tk(t)){s[t]=i;continue}{let e=eq(i,tf[t]);t.startsWith("origin")?(o=!0,r[t]=e):n[t]=e}}
9if(!e.transform&&(a||i?n.transform=function(t,e,i){let n="",s=!0;for(let r=0;r<eZ;r++){let a=D[r],o=t[a];if(void 0===o)continue;let l=!0;if("number"==typeof o)l=o===+!!a.startsWith("scale");else{let t=parseFloat(o);l=a.startsWith("scale")?1===t:0===t}if(!l||i){let t=eq(o,tf[a]);if(!l){s=!1;let e=e_[a]||a;n+=`${e}(${t}) `}i&&(e[a]=t)}}return n=n.trim(),i?n=i(e,s?"":n):s&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),o){let{originX:t="50%",originY:e="50%",originZ:i=0}=r;n.transformOrigin=`${t} ${e} ${i}`}}let eQ={offset:"stroke-dashoffset",array:"stroke-dasharray"},e0={offset:"strokeDashoffset",array:"strokeDasharray"},e1=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function e5(t,{attrX:e,attrY:i,attrScale:n,pathLength:s,pathSpacing:r=1,pathOffset:a=0,...o},l,h,u){if(eJ(t,o,h),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:c}=t;for(let t of(d.transform&&(c.transform=d.transform,delete d.transform),(c.transform||d.transformOrigin)&&(c.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),c.transform&&(c.transformBox=u?.transformBox??"fill-box",delete d.transformBox),e1))void 0!==d[t]&&(c[t]=d[t],delete d[t]);void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==n&&(d.scale=n),void 0!==s&&function(t,e,i=1,n=0,s=!0){t.pathLength=1;let r=s?eQ:e0;t[r.offset]=`${-n}`,t[r.array]=`${e} ${i}`}(d,s,r,a,!1)}let e2=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"]),e3=t=>"string"==typeof t&&"svg"===t.toLowerCase();function e4(t,{style:e,vars:i},n,s){let r,a=t.style;for(r in e)a[r]=e[r];for(r in s?.applyProjectionStyles(a,n),i)a.setProperty(r,i[r])}function e6(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let e9={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!_.test(t))return t;else t=parseFloat(t);let i=e6(t,e.target.x),n=e6(t,e.target.y);return`${i}% ${n}%`}},e7=(t,e,i)=>t+(e-t)*i,e8={borderRadius:{...e9,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:e9,borderTopRightRadius:e9,borderBottomLeftRadius:e9,borderBottomRightRadius:e9,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=tl.parse(t);if(n.length>5)return t;let s=tl.createTransformer(t),r=+("number"!=typeof n[0]),a=i.x.scale*e.x,o=i.y.scale*e.y;n[0+r]/=a,n[1+r]/=o;let l=e7(a,o,.5);return"number"==typeof n[2+r]&&(n[2+r]/=l),"number"==typeof n[3+r]&&(n[3+r]/=l),s(n)}}};function it(t,{layout:e,layoutId:i}){return L.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!e8[t]||"opacity"===t)}function ie(t,e,i){let n=t.style,s=e?.style,r={};if(!n)return r;for(let e in n)(tS(n[e])||s&&tS(s[e])||it(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(r[e]=n[e]);return r}function ii(t,e,i){let n=ie(t,e,i);for(let i in t)(tS(t[i])||tS(e[i]))&&(n[-1!==D.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}class is extends eG{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=tb}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(L.has(e)){let t=ty(e);return t&&t.default||0}return e=e2.has(e)?e:eK(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return ii(t,e,i)}build(t,e,i){e5(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in e4(t,e,void 0,n),e.attrs)t.setAttribute(e2.has(i)?i:eK(i),e.attrs[i])}mount(t){this.isSVGTag=e3(t.tagName),super.mount(t)}}function ir({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function ia(t){return void 0===t||1===t}function io({scale:t,scaleX:e,scaleY:i}){return!ia(t)||!ia(e)||!ia(i)}function il(t){return io(t)||ih(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function ih(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function iu(t,e,i,n,s){return void 0!==s&&(t=n+s*(t-n)),n+i*(t-n)+e}function id(t,e=0,i=1,n,s){t.min=iu(t.min,e,i,n,s),t.max=iu(t.max,e,i,n,s)}function ic(t,{x:e,y:i}){id(t.x,e.translate,e.scale,e.originPoint),id(t.y,i.translate,i.scale,i.originPoint)}function ip(t,e){t.min+=e,t.max+=e}function im(t,e,i,n,s=.5){let r=e7(t.min,t.max,s);id(t,e,i,r,n)}function ig(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function iy(t,e,i){let n=i??t;im(t.x,ig(e.x,n.x),e.scaleX,e.scale,e.originX),im(t.y,ig(e.y,n.y),e.scaleY,e.scale,e.originY)}function iv(t,e){return ir(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}class ix extends eG{constructor(){super(...arguments),this.type="html",this.renderInstance=e4}readValueFromInstance(t,e){if(L.has(e))return this.projection?.isProjecting?tW(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return tz(i,e)})(t,e);{let i=window.getComputedStyle(t),n=(tk(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return iv(t,e)}build(t,e,i){eJ(t,e,i.transformTemplate)}
9scrapeMotionValuesFromProps(t,e,i){return ie(t,e,i)}}let iw=["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 ib(t){if("string"!=typeof t||t.includes("-"));else if(iw.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let iS=(0,h.createContext)({strict:!1}),iT=(0,h.createContext)({});function iP(t){return Array.isArray(t)?t.join(" "):t}let iC=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function iE(t,e,i){for(let n in e)tS(e[n])||it(n,i)||(t[n]=e[n])}let iA=()=>({...iC(),attrs:{}}),ij=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 iM(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ij.has(t)}let ik=t=>!iM(t);try{r=t.r(34537).default,"function"==typeof r&&(ik=t=>t.startsWith("on")?!iM(t):r(t))}catch{}function iV(t){return tS(t)?t.get():t}let iR=t=>(e,i)=>{let n=(0,h.useContext)(iT),s=(0,h.useContext)(x),r=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,s){return{latestValues:function(t,e,i,n){let s={},r=n(t,{});for(let t in r)s[t]=iV(r[t]);let{initial:a,animate:o}=t,l=eI(t),h=eO(t);e&&h&&!l&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===o&&(o=e.animate));let u=!!i&&!1===i.initial,d=(u=u||!1===a)?o:a;if(d&&"boolean"!=typeof d&&!eD(d)){let e=Array.isArray(d)?d:[d];for(let i=0;i<e.length;i++){let n=eW(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=u?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(i,n,s,t),renderState:e()}})(t,e,n,s);return i?r():y(r)},iD=iR({scrapeMotionValuesFromProps:ie,createRenderState:iC}),iL=iR({scrapeMotionValuesFromProps:ii,createRenderState:iA}),iB={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"]},iN=!1;function iI(){return!function(){if(iN)return;let t={};for(let e in iB)t[e]={isEnabled:t=>iB[e].some(e=>!!t[e])};eY=t,iN=!0}(),eY}let iO=Symbol.for("motionComponentSymbol"),iF="data-"+eK("framerAppearId"),iU=(0,h.createContext)({});function i$(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function iH(t,{forwardMotionProps:e=!1,type:i}={},n,s){n&&function(t){let e=iI();for(let i in t)e[i]={...e[i],...t[i]};eY=e}(n);let r=i?"svg"===i:ib(t),o=r?iL:iD;function l(i,n){var l;let u,d,c,p={...(0,h.useContext)(T),...i,layoutId:function({layoutId:t}){let e=(0,h.useContext)(g).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:m}=p,f=function(t){let{initial:e,animate:i}=function(t,e){if(eI(t)){let{initial:e,animate:i}=t;return{initial:!1===e||eL(e)?e:void 0,animate:eL(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,h.useContext)(iT));return(0,h.useMemo)(()=>({initial:e,animate:i}),[iP(e),iP(i)])}(i),y=o(i,m);if(!m&&"u">typeof window){(0,h.useContext)(iS).strict;let e=function(t){let{drag:e,layout:i}=iI();if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(p);u=e.MeasureLayout,f.visualElement=function(t,e,i,n,s,r){let{visualElement:a}=(0,h.useContext)(iT),o=(0,h.useContext)(iS),l=(0,h.useContext)(x),u=(0,h.useContext)(T),d=u.reducedMotion,c=u.skipAnimations,p=(0,h.useRef)(null),m=(0,h.useRef)(!1);n=n||o.renderer,!p.current&&n&&(p.current=n(t,{visualState:e,parent:a,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:d,skipAnimations:c,isSVG:r}),m.current&&p.current&&(p.current.manuallyAnimateOnMount=!0));let f=p.current,g=(0,h.useContext)(iU);f&&!f.projection&&s&&("html"===f.type||"svg"===f.type)&&function(t,e,
9i,n){let{layoutId:s,layout:r,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:h,layoutAnchor:u,layoutCrossfade:d}=e;t.projection=new i(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:s,layout:r,alwaysMeasureLayout:!!a||o&&i$(o),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,crossfade:d,layoutScroll:l,layoutRoot:h,layoutAnchor:u})}(p.current,i,s,g);let y=(0,h.useRef)(!1);(0,h.useInsertionEffect)(()=>{f&&y.current&&f.update(i,l)});let w=i[iF],b=(0,h.useRef)(!!w&&"u">typeof window&&!window.MotionHandoffIsComplete?.(w)&&window.MotionHasOptimisedAnimation?.(w));return v(()=>{m.current=!0,f&&(y.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),b.current&&f.animationState&&f.animationState.animateChanges())}),(0,h.useEffect)(()=>{f&&(!b.current&&f.animationState&&f.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(w)}),b.current=!1),f.enteringChildren=void 0)}),f}(t,y,p,s,e.ProjectionNode,r)}return(0,a.jsxs)(iT.Provider,{value:f,children:[u&&f.visualElement?(0,a.jsx)(u,{visualElement:f.visualElement,...p}):null,function(t,e,i,{latestValues:n},s,r=!1,a){let o=(a??ib(t)?function(t,e,i,n){let s=(0,h.useMemo)(()=>{let i=iA();return e5(i,e,e3(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};iE(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e){let i,n,s={},r=(i=t.style||{},iE(n={},i,t),Object.assign(n,function({transformTemplate:t},e){return(0,h.useMemo)(()=>{let i=iC();return eJ(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n);return t.drag&&!1!==t.dragListener&&(s.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(s.tabIndex=0),s.style=r,s})(e,n,s,t),l=function(t,e,i){let n={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&!tS(t[s])&&(ik(s)||!0===i&&iM(s)||!e&&!iM(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}(e,"string"==typeof t,r),u=t!==h.Fragment?{...l,...o,ref:i}:{},{children:d}=e,c=(0,h.useMemo)(()=>tS(d)?d.get():d,[d]);return(0,h.createElement)(t,{...u,children:c})}(t,i,(l=f.visualElement,d=(0,h.useRef)(n),(0,h.useInsertionEffect)(()=>{d.current=n}),c=(0,h.useRef)(null),(0,h.useCallback)(t=>{t&&y.onMount?.(t);let e=d.current;if("function"==typeof e)if(t){let i=e(t);"function"==typeof i&&(c.current=i)}else c.current?(c.current(),c.current=null):e(t);else e&&(e.current=t);l&&(t?l.mount(t):l.unmount())},[l])),y,m,e,r)]})}l.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let u=(0,h.forwardRef)(l);return u[iO]=t,u}class iW{constructor(t){this.isMounted=!1,this.node=t}update(){}}function iz(t,e,i){let n=t.getProps();return eW(n,e,void 0!==i?i:n.custom,t)}function iY(t,e){if(t?.inherit&&e){let{inherit:i,...n}=t;return{...e,...n}}return t}function iX(t,e){let i=t?.[e]??t?.default??t;return i!==t?iY(i,t):i}let iG=t=>Array.isArray(t);function iK(t,e){let i=t.getValue("willChange");if(tS(i)&&i.add)return i.add(e);if(!i&&tZ.WillChange){let i=new tZ.WillChange("auto");t.addValue("willChange",i),i.add(e)}}let iq=(t,e)=>i=>e(t(i)),i_=(...t)=>t.reduce(iq);function iZ(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function iJ(t,e){return i=>i>0?e:t}let iQ=(t,e,i)=>{let n=t*t,s=i*(e*e-n)+n;return s<0?0:Math.sqrt(s)},i0=[X,Y,tt];function i1(t){let e=i0.find(e=>e.test(t));if(tA(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===tt&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let s=0,r=0,a=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,o=2*i-n;s=iZ(o,n,t+1/3),r=iZ(o,n,t),a=iZ(o,n,t-1/3)}else s=r=a=i;return{red:Math.round(255*s),green:Math.round(255*r),blue:Math.round(255*a),alpha:n}}(i)),i}let i5=(t,e)=>{let i=i1(t),n=i1(e);if(!i||!n)return iJ(t,e);let s={...i};return t=>(s.red=iQ(i.red,n.red,t),s.green=iQ(i.green,n.green,t),s.blue=iQ(i.blue,n.blue,t),s.alpha=e7(i.alpha,n.alpha,t),Y.transform(s))}
9,i2=new Set(["none","hidden"]);function i3(t,e){return i=>e7(t,e,i)}function i4(t){return"number"==typeof t?i3:"string"==typeof t?tR(t)?iJ:te.test(t)?i5:i7:Array.isArray(t)?i6:"object"==typeof t?te.test(t)?i5:i9:iJ}function i6(t,e){let i=[...t],n=i.length,s=t.map((t,i)=>i4(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=s[e](t);return i}}function i9(t,e){let i={...t,...e},n={};for(let s in i)void 0!==t[s]&&void 0!==e[s]&&(n[s]=i4(t[s])(t[s],e[s]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let i7=(t,e)=>{let i=tl.createTransformer(e),n=ta(t),s=ta(e);if(!(n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length))return tA(!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"),iJ(t,e);if(i2.has(t)&&!s.values.length||i2.has(e)&&!n.values.length)return i2.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return i_(i6(function(t,e){let i=[],n={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let r=e.types[s],a=t.indexes[r][n[r]],o=t.values[a]??0;i[s]=o,n[r]++}return i}(n,s),s.values),i)};function i8(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?e7(t,e,i):i4(t)(t,e)}let nt=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>t0.update(e,t),stop:()=>t1(e),now:()=>t5.isProcessing?t5.timestamp:ej.now()}};function ne(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}let ni=.01,nn=2,ns=.005,nr=.5;function na(t,e){return t*Math.sqrt(1-e*e)}let no=["duration","bounce"],nl=["stiffness","damping","mass"];function nh(t,e){return e.some(e=>void 0!==t[e])}function nu(t=.3,e=.3){let i,n,s,r,a,o,l="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:h,restDelta:u}=l,d=l.keyframes[0],c=l.keyframes[l.keyframes.length-1],p={done:!1,value:d},{stiffness:m,damping:f,mass:g,duration:y,velocity:v,isResolvedFromDuration:x}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!nh(t,nl)&&nh(t,no))if(e.velocity=0,t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,s=2*B(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:1,stiffness:n,damping:s}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:n=1}){let s,r;tA(t<=er(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-e;a=B(.05,1,a),t=B(.01,10,t/1e3),a<1?(s=e=>{let n=e*a,s=n*t;return .001-(n-i)/na(e,a)*Math.exp(-s)},r=e=>{let n=e*a*t,r=Math.pow(a,2)*Math.pow(e,2)*t,o=Math.exp(-n),l=na(Math.pow(e,2),a);return(n*i+i-r)*o*(-s(e)+.001>0?-1:1)/l}):(s=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),r=e=>t*t*(i-e)*Math.exp(-e*t));let o=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(s,r,5/t);if(t=er(t),isNaN(o))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(o,2)*n;return{stiffness:e,damping:2*a*Math.sqrt(n*e),duration:t}}}({...t,velocity:0});(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...l,velocity:-((l.velocity||0)/1e3)}),w=v||0,b=f/(2*Math.sqrt(m*g)),S=c-d,T=Math.sqrt(m/g)/1e3,P=5>Math.abs(S);if(h||(h=P?ni:nn),u||(u=P?ns:nr),b<1)s=na(T,b),r=(w+b*T*S)/s,i=t=>c-Math.exp(-b*T*t)*(r*Math.sin(s*t)+S*Math.cos(s*t)),a=b*T*r+S*s,o=b*T*S-r*s,n=t=>Math.exp(-b*T*t)*(a*Math.sin(s*t)+o*Math.cos(s*t));else if(1===b){i=t=>c-Math.exp(-T*t)*(S+(w+T*S)*t);let t=w+T*S;n=e=>Math.exp(-T*e)*(T*t*e-w)}else{let t=T*Math.sqrt(b*b-1);i=e=>{let i=Math.exp(-b*T*e),n=Math.min(t*e,300);return c-i*((w+b*T*S)*Math.sinh(n)+t*S*Math.cosh(n))/t};let e=(w+b*T*S)/t,s=b*T*e-S*t,r=b*T*S-e*t;n=e=>{let i=Math.exp(-b*T*e),n=Math.min(t*e,300);return i*(s*Math.sinh(n)+r*Math.cosh(n))}}let C={calculatedDuration:x&&y||null,velocity:t=>er(n(t)),next:t=>{if(!x&&b<1){let e=Math.exp(-b*T*t),i=Math.sin(s*t),n=Math.cos(s*t),l=c-e*(r*i+S*n);return p.done=Math.abs(er(e*(a*i+o*n)))<=h&&Math.abs(c-l)<=u,p.value=p.done?c:l,p}let e=i(t);return x?p.done=t>=y:p.done=Math.abs(er(n(t)))<=h&&Math.abs(c-e)<=u,p.value=p.done?c:e,p},toString:()=>{let t=Math.min(ne(C),2e4),e=ew(e=>C.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return C}
9function nd(t,e,i){var n,s;let r=Math.max(e-5,0);return n=i-t(r),(s=e-r)?1e3/s*n:0}function nc({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:a,min:o,max:l,restDelta:h=.5,restSpeed:u}){let d,c,p=t[0],m={done:!1,value:p},f=i*e,g=p+f,y=void 0===a?g:a(g);y!==g&&(f=y-p);let v=t=>-f*Math.exp(-t/n),x=t=>y+v(t),w=t=>{let e=v(t),i=x(t);m.done=Math.abs(e)<=h,m.value=m.done?y:i},b=t=>{let e;if(e=m.value,void 0!==o&&e<o||void 0!==l&&e>l){var i;d=t,c=nu({keyframes:[m.value,(i=m.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:nd(x,t,m.value),damping:s,stiffness:r,restDelta:h,restSpeed:u})}};return b(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,w(t),b(t)),void 0!==d&&t>=d)?c.next(t-d):(e||w(t),m)}}}nu.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),s=Math.min(ne(n),2e4);return{type:"keyframes",ease:t=>n.next(s*t).value/e,duration:s/1e3}}(t,100,nu);return t.ease=e.ease,t.duration=er(e.duration),t.type="keyframes",t};let np=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function nm(t,e,i,n){return t===e&&i===n?t_:s=>0===s||1===s?s:np(function(t,e,i,n,s){let r,a,o=0;do(r=np(a=e+(i-e)/2,n,s)-t)>0?i=a:e=a;while(Math.abs(r)>1e-7&&++o<12)return a}(s,0,1,t,i),e,n)}let nf=nm(.42,0,1,1),ng=nm(0,0,.58,1),ny=nm(.42,0,.58,1),nv=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,nx=t=>e=>1-t(1-e),nw=nm(.33,1.53,.69,.99),nb=nx(nw),nS=nv(nb),nT=t=>t>=1?1:(t*=2)<1?.5*nb(t):.5*(2-Math.pow(2,-10*(t-1))),nP=t=>1-Math.sin(Math.acos(t)),nC=nx(nP),nE=nv(nP),nA={linear:t_,easeIn:nf,easeInOut:ny,easeOut:ng,circIn:nP,circInOut:nE,circOut:nC,backIn:nb,backInOut:nS,backOut:nw,anticipate:nT},nj=t=>{if(ev(t)){tj(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,s]=t;return nm(e,i,n,s)}return"string"==typeof t?(tj(void 0!==nA[t],`Invalid easing type '${t}'`,"invalid-easing-type"),nA[t]):t},nM=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n};function nk({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var s;let r,a=Array.isArray(n)&&"number"!=typeof n[0]?n.map(nj):nj(n),o={done:!1,value:e[0]},l=function(t,e,{clamp:i=!0,ease:n,mixer:s}={}){let r=t.length;if(tj(r===e.length,"Both input and output ranges must be the same length","range-length"),1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];let a=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let o=function(t,e,i){let n=[],s=i||tZ.mix||i8,r=t.length-1;for(let i=0;i<r;i++){let r=s(t[i],t[i+1]);e&&(r=i_(Array.isArray(e)?e[i]||t_:e,r)),n.push(r)}return n}(e,n,s),l=o.length,h=i=>{if(a&&i<t[0])return e[0];let n=0;if(l>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let s=nM(t[n],t[n+1],i);return o[n](s)};return i?e=>h(B(t[0],t[r-1],e)):h}((s=i&&i.length===e.length?i:(!function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let s=nM(0,e,n);t.push(e7(i,1,s))}}(r=[0],e.length-1),r),s.map(e=>e*t)),e,{ease:Array.isArray(a)?a:e.map(()=>a||ny).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=l(e),o.done=e>=t,o)}}let nV={decay:nc,inertia:nc,tween:nk,keyframes:nk,spring:nu};function nR(t){"string"==typeof t.type&&(t.type=nV[t.type])}let nD=t=>t/100;class nL extends eg{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==ej.now()&&this.tick(ej.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},ey.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;nR(t);let{type:e=nk,repeat:i=0,repeatDelay:n=0,repeatType:s,velocity:r=0}=t,{keyframes:a}=t,o=e||nk;o!==nk&&"number"!=typeof a[0]&&(this.mixKeyframes=i_(nD,i8(a[0],a[1])),a=[0,100]);let l=o({...t,keyframes:a});"mirror"===s&&(this.mirroredGenerator=o({...t,keyframes:[...a].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=ne(l));let{calculatedDuration:h}=l;this.calculatedDuration=h,this.resolvedDuration=h+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}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 i,{generator:n,totalDuration:s,mixKeyframes:r,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:l}=this;if(null===this.startTime)return n.next(0);
9let{delay:h=0,keyframes:u,repeat:d,repeatType:c,repeatDelay:p,type:m,onUpdate:f,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let y=this.currentTime-h*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?y<0:y>s;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=s);let x=this.currentTime,w=n;if(d){let t=Math.min(this.currentTime,s)/o,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===c?(i=1-i,p&&(i-=p/o)):"mirror"===c&&(w=a)),x=B(0,1,i)*o}v?(this.delayState.value=u[0],i=this.delayState):i=w.next(x),r&&!v&&(i.value=r(i.value));let{done:b}=i;v||null===l||(b=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return S&&m!==nc&&(i.value=ef(u,this.options,g,this.speed)),f&&f(i.value),S&&this.finish(),i}then(t,e){return this.finished.then(t,e)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return this.currentTime/1e3}set time(t){t=er(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?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let e=this.generator.next(t).value;return nd(t=>this.generator.next(t).value,t,e)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(ej.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=nt,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"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(ej.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,ey.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)}}let nB={anticipate:nT,backInOut:nS,circInOut:nE};
9class nN extends eP{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in nB&&(t.ease=nB[t.ease])}(t),nR(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:s,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let a=new nL({...r,autoplay:!1}),o=Math.max(10,ej.now()-this.startTime),l=B(0,10,o-10),h=a.sample(o).value,{name:u}=this.options;s&&u&&eh(s,u,h),e.setWithVelocity(a.sample(Math.max(0,o-l)).value,h,l),a.stop()}}let nI=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tl.test(t)||"0"===t)&&!t.startsWith("url("));function nO(t){t.duration=0,t.type="keyframes"}let nF=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,nU=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),n$=eu(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class nH extends eg{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:r="loop",keyframes:a,name:o,motionValue:l,element:h,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ej.now();const d={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:s,repeatType:r,name:o,motionValue:l,element:h,...u},c=h?.KeyframeResolver||et;this.keyframeResolver=new c(a,(t,e,i)=>this.onKeyframesResolved(t,e,d,!i),o,l,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){let s;this.keyframeResolver=void 0;let{name:r,type:a,velocity:o,delay:l,isHandoff:h,onUpdate:u}=i;this.resolvedAt=ej.now();let d=!0;!function(t,e,i,n){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],a=nI(s,e),o=nI(r,e);return tA(a===o,`You are trying to animate ${e} from "${s}" to "${r}". "${a?r:s}" is not an animatable value.`,"value-not-animatable"),!!a&&!!o&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||eT(i))&&n)}(t,r,a,o)&&(d=!1,(tZ.instantAnimations||!l)&&u?.(ef(t,i,e)),t[0]=t[t.length-1],nO(i),i.repeat=0);let c={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},p=d&&!h&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:s,damping:r,type:a,keyframes:o}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:h}=e.owner.getProps();return n$()&&i&&(eC.has(i)||nU.has(i)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&nF.test(t[e]))return!0;return!1}(o))&&("transform"!==i||!h)&&!l&&!n&&"mirror"!==s&&0!==r&&"inertia"!==a}(c),m=c.motionValue?.owner?.current;if(p)try{s=new nN({...c,element:m})}catch{s=new nL(c)}else s=new nL(c);s.finished.then(()=>{this.notifyFinished()}).catch(t_),this.pendingTimeline&&(this.stopTimeline=s.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=s}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(),t9=!0,t8(),t7(),t9=!1),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()}}let nW={type:"spring",stiffness:500,damping:25,restSpeed:10},nz={type:"keyframes",duration:.8},nY={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nX=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),nG=(t,e,i,n={},s,r)=>a=>{let o=iX(n,t)||{}
9,l=o.delay||n.delay||0,{elapsed:h=0}=n;h-=er(l);let u={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...o,delay:-h,onUpdate:t=>{e.set(t),o.onUpdate&&o.onUpdate(t)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:t,motionValue:e,element:r?void 0:s};!function(t){for(let e in t)if(!nX.has(e))return!0;return!1}(o)&&Object.assign(u,((t,{keyframes:e})=>e.length>2?nz:L.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:nW:nY)(t,u)),u.duration&&(u.duration=er(u.duration)),u.repeatDelay&&(u.repeatDelay=er(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if(!1!==u.type&&(0!==u.duration||u.repeatDelay)||(nO(u),0===u.delay&&(d=!0)),(tZ.instantAnimations||tZ.skipAnimations||s?.shouldSkipAnimations)&&(d=!0,nO(u),u.delay=0),u.allowFlatten=!o.type&&!o.ease,d&&!r&&void 0!==e.get()){let t=ef(u.keyframes,o);if(void 0!==t)return void t0.update(()=>{u.onUpdate(t),u.onComplete()})}return o.isSync?new nL(u):new nH(u)};function nK(t,e,{delay:i=0,transitionOverride:n,type:s}={}){let{transition:r,transitionEnd:a,...o}=e,l=t.getDefaultTransition();r=r?iY(r,l):l;let h=r?.reduceMotion;n&&(r=n);let u=[],d=s&&t.animationState&&t.animationState.getState()[s];for(let e in o){let n=t.getValue(e,t.latestValues[e]??null),s=o[e];if(void 0===s||d&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(d,e))continue;let a={delay:i,...iX(r||{},e)},l=n.get();if(void 0!==l&&!n.isAnimating()&&!Array.isArray(s)&&s===l&&!a.velocity){t0.update(()=>n.set(s));continue}let c=!1;if(window.MotionHandoffAnimation){let i=t.props[iF];if(i){let t=window.MotionHandoffAnimation(i,e,t0);null!==t&&(a.startTime=t,c=!0)}}iK(t,e);let p=h??t.shouldReduceMotion;n.start(nG(e,n,s,p&&tT.has(e)?{type:!1}:a,t,c));let m=n.animation;m&&u.push(m)}if(a){let e=()=>t0.update(()=>{a&&function(t,e){let{transitionEnd:i={},transition:n={},...s}=iz(t,e)||{};for(let e in s={...s,...i}){var r;let i=iG(r=s[e])?r[r.length-1]||0:r;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,ek(i))}}(t,a)});u.length?Promise.all(u).then(e):e()}return u}function nq(t,e,i,n=0,s=1){let r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),a=t.size,o=(a-1)*n;return"function"==typeof i?i(r,a):1===s?r*n:o-r*n}function n_(t,e,i={}){let n=iz(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let r=n?()=>Promise.all(nK(t,n,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:a,staggerDirection:o}=s;return function(t,e,i=0,n=0,s=0,r=1,a){let o=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),o.push(n_(l,e,{...a,delay:i+("function"==typeof n?0:n)+nq(t.variantChildren,l,n,s,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(o)}(t,e,n,r,a,o,i)}:()=>Promise.resolve(),{when:o}=s;if(!o)return Promise.all([r(),a(i.delay)]);{let[t,e]="beforeChildren"===o?[r,a]:[a,r];return t().then(()=>e())}}let nZ=eN.length;function nJ(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}let nQ=[...eB].reverse(),n0=eB.length;function n1(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function n5(){return{animate:n1(!0),whileInView:n1(),whileHover:n1(),whileTap:n1(),whileDrag:n1(),whileFocus:n1(),exit:n1()}}let n2=0;function n3(t){return[t("x"),t("y")]}function n4(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let n6={x:!1,y:!1};function n9(t){return t.max-t.min}function n7(t,e,i,n=.5){t.origin=n,t.originPoint=e7(e.min,e.max,t.origin),t.scale=n9(i)/n9(e),t.translate=e7(i.min,i.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 n8(t,e,i,n){n7(t.x,e.x,i.x,n?n.originX:void 0),n7(t.y,e.y,i.y,n?n.originY:void 0)}function st(t,e,i,n=0){t.min=(n?e7(i.min,i.max,n):i.min)+e.min,t.max=t.min+n9(e)}function se(t,e,i,n=0){let s=n?e7(i.min,i.max,n):i.min;t.min=e.min-s,t.max=t.min+n9(e)}
9function si(t,e,i,n){se(t.x,e.x,i.x,n?.x),se(t.y,e.y,i.y,n?.y)}function sn(t){return w(t)&&"ownerSVGElement"in t}function ss(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let n=document;e&&(n=e.current);let s=i?.[t]??n.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t).filter(t=>null!=t)}let sr=new WeakMap,sa=(t,e,i)=>(n,s)=>s&&s[0]?s[0][t+"Size"]:sn(n)&&"getBBox"in n?n.getBBox()[e]:n[i],so=sa("inline","width","offsetWidth"),sl=sa("block","height","offsetHeight");function sh({target:t,borderBoxSize:e}){sr.get(t)?.forEach(i=>{i(t,{get width(){return so(t,e)},get height(){return sl(t,e)}})})}function su(t){t.forEach(sh)}let sd=new Set;function sc(t,e){let s;return"function"==typeof t?(sd.add(t),n||(n=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};sd.forEach(e=>e(t))},window.addEventListener("resize",n)),()=>{sd.delete(t),sd.size||"function"!=typeof n||(window.removeEventListener("resize",n),n=void 0)}):(!i&&"u">typeof ResizeObserver&&(i=new ResizeObserver(su)),(s=ss(t)).forEach(t=>{let n=sr.get(t);n||(n=new Set,sr.set(t,n)),n.add(e),i?.observe(t)}),()=>{s.forEach(t=>{let n=sr.get(t);n?.delete(e),n?.size||i?.unobserve(t)})})}let sp=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),sm=new Set(["INPUT","SELECT","TEXTAREA"]),sf=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function sg(t){return{point:{x:t.pageX,y:t.pageY}}}function sy(t,e,i,n){return n4(t,e,t=>
9sf(t)&&i(t,sg(t)),n)}let sv=({current:t})=>t?t.ownerDocument.defaultView:null,sx=(t,e)=>Math.abs(t-e),sw=new Set(["auto","scroll"]);class sb{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:s=!1,distanceThreshold:r=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=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;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=sS(this.lastRawMoveEventInfo,this.transformPagePoint));let i=sP(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,s=(t=i.offset,e={x:0,y:0},Math.sqrt(sx(t.x,e.x)**2+sx(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!s)return;let{point:r}=i,{timestamp:a}=t5;this.history.push({...r,timestamp:a});let{onStart:o,onMove:l}=this.handlers;n||(o&&o(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=sS(e,this.transformPagePoint),t0.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=sP("pointercancel"===t.type?this.lastMoveEventInfo:sS(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),n&&n(t,r)},!sf(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=n||window;const o=sS(sg(t),this.transformPagePoint),{point:l}=o,{timestamp:h}=t5;this.history=[{...l,timestamp:h}];const{onSessionStart:u}=e;u&&u(t,sP(o,this.history)),this.removeListeners=i_(sy(this.contextWindow,"pointermove",this.handlePointerMove),sy(this.contextWindow,"pointerup",this.handlePointerUp),sy(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(sw.has(t.overflowX)||sw.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}),window.addEventListener("scroll",this.onWindowScroll),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 i=t===window,n=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:n.x-e.x,y:n.y-e.y};(0!==s.x||0!==s.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,n),t0.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),t1(this.updatePoint)}}function sS(t,e){return e?{point:e(t.point)}:t}function sT(t,e){return{x:t.x-e.x,y:t.y-e.y}}function sP({point:t},e){return{point:t,delta:sT(t,sC(e)),offset:sT(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,n=sC(t);for(;e>=0&&(i=t[e],!(n.timestamp-i.timestamp>er(.1)));)e--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&n.timestamp-i.timestamp>2*er(.1)&&(i=t[1]);let s=(n.timestamp-i.timestamp)/1e3;if(0===s)return{x:0,y:0};let r={x:(n.x-i.x)/s,y:(n.y-i.y)/s};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(e)}}function sC(t){return t[t.length-1]}function sE(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function sA(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}
9function sj(t,e,i){return{min:sM(t,e),max:sM(t,i)}}function sM(t,e){return"number"==typeof t?t:t[e]||0}let sk=new WeakMap;class sV{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=tb(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let s=t=>{e&&this.snapToCursor(sg(t).point),this.stopAnimation()},r=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(n6[t])return null;else return n6[t]=!0,()=>{n6[t]=!1};return n6.x||n6.y?null:(n6.x=n6.y=!0,()=>{n6.x=n6.y=!1})}(i),!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),n3(t=>{let e=this.getAxisMotionValue(t).get()||0;if(q.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=n9(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&t0.update(()=>s(t,e),!1,!0),iK(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(a),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),r&&t0.update(()=>r(t,e),!1,!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:h}=this.getProps();this.panSession=new sb(t,{onSessionStart:s,onStart:r,onMove:a,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:i,contextWindow:sv(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!n||!i)return;let{velocity:r}=n;this.startAnimation(r);let{onDragEnd:a}=this.getProps();a&&t0.postRender(()=>a(i,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&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,i){let{drag:n}=this.getProps();if(!i||!sD(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?e7(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?e7(i,t,n.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),s.set(r)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&i$(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:sE(t.x,i,s),y:sE(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:sj(t,"left","right"),y:sj(t,"top","bottom")}}(e),n!==this.constraints&&!i$(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&n3(t=>{var e,n;let s;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],n=this.constraints[t],s={},void 0!==n.min&&(s.min=n.min-e.min),void 0!==n.max&&(s.max=n.max-e.min),s))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!i$(e))return!1;let n=e.current;tj(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;
9let r=function(t,e,i){let n=iv(t,i),{scroll:s}=e;return s&&(ip(n.x,s.offset.x),ip(n.y,s.offset.y)),n}(n,s.root,this.visualElement.getTransformPagePoint()),a=(t=s.layout.layoutBox,{x:sA(t.x,r.x),y:sA(t.y,r.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(a));this.hasMutatedConstraints=!!t,t&&(a=ir(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(n3(a=>{if(!sD(a,e,this.currentDirection))return;let l=o&&o[a]||{};(!0===r||r===a)&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(a,h)})).then(a)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return iK(this.visualElement,t),i.start(nG(t,i,0,e,this.visualElement,!1))}stopAnimation(){n3(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){n3(e=>{let{drag:i}=this.getProps();if(!sD(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:r}=n.layout.layoutBox[e],a=s.get()||0;s.set(t[e]-e7(i,r,.5)+a)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!i$(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};n3(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,s;let r,a,o,l=e.get();n[t]=(i={min:l,max:l},s=this.constraints[t],r=.5,a=n9(i),(o=n9(s))>a?r=nM(s.min,s.max-a,i.min):a>o&&(r=nM(i.min,i.max-o,s.min)),B(0,1,r))}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),n3(e=>{if(!sD(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:r}=this.constraints[e];i.set(e7(s,r,n[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;sk.set(this.visualElement,this);let e=this.visualElement.current,i=sy(e,"pointerdown",t=>{let{drag:i,dragListener:n=!0}=this.getProps(),s=t.target,r=s!==e&&(sm.has(s.tagName)||!0===s.isContentEditable);i&&n&&!r&&this.start(t)}),n=()=>{var i,n,s;let r,a,{dragConstraints:o}=this.getProps();i$(o)&&o.current&&(this.constraints=this.resolveRefConstraints(),t||(i=e,n=o.current,r=sc(i,sR(s=()=>this.scalePositionWithinConstraints())),a=sc(n,sR(s)),t=()=>{r(),a()}))},{projection:s}=this.visualElement,r=s.addEventListener("measure",n);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),t0.read(n);let a=n4(window,"resize",()=>this.scalePositionWithinConstraints()),o=s.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(n3(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{a(),i(),r(),o&&o(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:r=.35,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:r,dragMomentum:a}}}function sR(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function sD(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let sL=t=>(e,i)=>{t&&t0.update(()=>t(e,i),!1,!0)},sB={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var sN=h;let sI=!1;class sO extends sN.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),sI&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),sB.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,{projection:r}=i;return r&&(r.isPresent=s,t.layoutDependency!==e&&r.setOptions({...r.options,layoutDependency:e}),sI=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?r.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?r.promote():r.relegate()||t0.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:e}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=e,i.root.didUpdate(),eE.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;sI=!0,n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function sF(t){let[e,i]=M(),n=(0,sN.useContext)(g);return(0,a.jsx)(sO,{...t,layoutGroup:n,switchLayoutGroup:(0,sN.useContext)(iU),isPresent:e,safeToRemove:i})}let sU=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],s$=sU.length,sH=t=>"string"==typeof t?parseFloat(t):t,sW=t=>"number"==typeof t||_.test(t);function sz(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let sY=sG(0,.5,nC),sX=sG(.5,.95,t_);function sG(t,e,i){return n=>n<t?0:n>e?1:i(nM(t,e,n))}function sK(t,e){t.min=e.min,t.max=e.max}function sq(t,e){sK(t.x,e.x),sK(t.y,e.y)}function s_(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function sZ(t,e,i,n,s){return t-=e,t=n+1/i*(t-n),void 0!==s&&(t=n+1/s*(t-n)),t}function sJ(t,e,[i,n,s],r,a){!function(t,e=0,i=1,n=.5,s,r=t,a=t){if(q.test(e)&&(e=parseFloat(e),e=e7(a.min,a.max,e/100)-a.min),"number"!=typeof e)return;let o=e7(r.min,r.max,n);t===r&&(o-=e),t.min=sZ(t.min,e,i,o,s),t.max=sZ(t.max,e,i,o,s)}(t,e[i],e[n],e[s],e.scale,r,a)}let sQ=["x","scaleX","originX"],s0=["y","scaleY","originY"];function s1(t,e,i,n){sJ(t.x,e,sQ,i?i.x:void 0,n?n.x:void 0),sJ(t.y,e,s0,i?i.y:void 0,n?n.y:void 0)}function s5(t){return 0===t.translate&&1===t.scale}function s2(t){return s5(t.x)&&s5(t.y)}function s3(t,e){return t.min===e.min&&t.max===e.max}function s4(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function s6(t,e){return s4(t.x,e.x)&&s4(t.y,e.y)}function s9(t){return n9(t.x)/n9(t.y)}function s7(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class s8{constructor(){this.members=[]}add(t){ea(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let n=i.instance;n&&!1!==n.isConnected||i.snapshot||(eo(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if(eo(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)}
9}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:n}=i.options,{layoutDependency:s}=t.options;(void 0===n||n!==s)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let rt=(t,e)=>t.depth-e.depth;class re{constructor(){this.children=[],this.isDirty=!1}add(t){ea(this.children,t),this.isDirty=!0}remove(t){eo(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rt),this.isDirty=!1,this.children.forEach(t)}}let ri=["","X","Y","Z"],rn=0;function rs(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function rr({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=e?.()){this.id=rn++,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,this.nodes.forEach(rl),this.nodes.forEach(ry),this.nodes.forEach(rv),this.nodes.forEach(rh)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new re)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new el),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=sn(e)&&!(sn(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i,n=0,s=()=>this.root.updateBlockedByResize=!1;t0.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==n){let e,r;n=t,this.root.updateBlockedByResize=!0,i&&i(),e=ej.now(),r=({timestamp:t})=>{let i=t-e;i>=250&&(t1(r),s(i-250))},t0.setup(r,!0),i=()=>t1(r),sB.hasAnimatedSinceResize&&(sB.hasAnimatedSinceResize=!1,this.nodes.forEach(rg))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||rP,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=s.getProps(),l=!this.targetLayout||!s6(this.targetLayout,n),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...iX(r,"layout"),onPlay:a,onComplete:o};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h)}else e||rg(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}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(),t1(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
9h(rx),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:i}=e.options;if(!i)return;let n=i.props[iF];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",t0,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(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,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEach(rc),this.nodes.forEach(rd);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(rp);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(rm),this.nodes.forEach(rf),this.nodes.forEach(ra),this.nodes.forEach(ro)):this.nodes.forEach(rp),this.clearAllSnapshots();let t=ej.now();t5.delta=B(0,1e3/60,t-t5.timestamp),t5.timestamp=t,t5.isProcessing=!0,t2.update.process(t5),t2.preRender.process(t5),t2.render.process(t5),t5.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,eE.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ru),this.sharedNodes.forEach(rw)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,t0.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){t0.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||n9(this.snapshot.measuredBox.x)||n9(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||(this.layoutCorrected=tb()),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=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!s)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!s2(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,r=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||il(this.latestValues)||r)&&(s(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),rA((e=n).x),rA(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return tb();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(rM))){let{scroll:t}=this.root;t&&(ip(e.x,t.offset.x),ip(e.y,t.offset.y))}return e}removeElementScroll(t){let e=tb();if(sq(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:s,options:r}=n;n!==this.root&&s&&r.layoutScroll&&(s.wasRoot&&sq(e,t),ip(e.x,s.offset.x),ip(e.y,s.offset.y))}return e}applyTransform(t,e=!1,i){let n=i||tb();sq(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&&(ip(n.x,-i.scroll.offset.x),ip(n.y,-i.scroll.offset.y)),il(i.latestValues)&&iy(n,i.latestValues,i.layout?.layoutBox)}return il(this.latestValues)&&iy(n,this.latestValues,this.layout?.layoutBox),n}removeTransform(t){let e=tb();sq(e,t);for(let t=0;t<this.path.length;t++){let i,n=this.path[t];il(n.latestValues)&&(n.instance&&(io(n.latestValues)&&n.updateSnapshot(),sq(i=tb(),n.measurePageBox())),s1(e,n.latestValues,n.snapshot?.layoutBox,i))}return il(this.latestValues)&&s1(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!==t5.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 i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:s}=this.options;if(!this.layout||!(n||s))return;this.resolvedRelativeTargetAt=t5.timestamp;let r=this.getClosestProjectingParent();if(r&&this.linkedParentVersion!==r.layoutVersion&&!r.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&r&&r.layout?this.createRelativeTarget(r,this.layout.layoutBox,r.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=tb(),this.targetWithTransforms=tb()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var a,o,l,h;this.forceRelativeParentToResolveTarget(),a=this.target,o=this.relativeTarget,l=this.relativeParent.target,h=this.options.layoutAnchor||void 0,st(a.x,o.x,l.x,h?.x),st
9(a.y,o.y,l.y,h?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):sq(this.target,this.layout.layoutBox),ic(this.target,this.targetDelta)):sq(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&r&&!!r.resumingFrom==!!this.resumingFrom&&!r.options.layoutScroll&&r.target&&1!==this.animationProgress?this.createRelativeTarget(r,this.target,r.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||io(this.parent.latestValues)||ih(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=tb(),this.relativeTargetOrigin=tb(),si(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),sq(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===t5.timestamp&&(i=!1),i)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||s))return;sq(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,n=!1){let s,r,a=i.length;if(a){e.x=e.y=1;for(let o=0;o<a;o++){r=(s=i[o]).projectionDelta;let{visualElement:a}=s.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(ip(t.x,-s.scroll.offset.x),ip(t.y,-s.scroll.offset.y)),r&&(e.x*=r.x.scale,e.y*=r.y.scale,ic(t,r)),n&&il(s.latestValues)&&iy(t,s.latestValues,s.layout?.layoutBox))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(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=tb());let{target:o}=t;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(s_(this.prevProjectionDelta.x,this.projectionDelta.x),s_(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),n8(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&s7(this.projectionDelta.x,this.prevProjectionDelta.x)&&s7(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}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=tx(),this.projectionDelta=tx(),this.projectionDeltaWithTransform=tx()}setAnimationOrigin(t,e=!1){let i,n=this.snapshot,s=n?n.latestValues:{},r={...this.latestValues},a=tx();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let o=tb(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),u=!h||h.members.length<=1,d=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(rT));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(rb(a.x,t.x,n),rb(a.y,t.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,c,p,m,f,g;si(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),p=this.relativeTarget,m=this.relativeTargetOrigin,f=o,g=n,rS(p.x,m.x,f.x,g),rS(p.y,m.y,f.y,g),i&&(h=this.relativeTarget,c=i,s3(h.x,c.x)&&s3(h.y,c.y))&&(this.isProjectionDirty=!1),i||(i=tb()),sq(i,this.relativeTarget)}
9l&&(this.animationValues=r,function(t,e,i,n,s,r){s?(t.opacity=e7(0,i.opacity??1,sY(n)),t.opacityExit=e7(e.opacity??1,0,sX(n))):r&&(t.opacity=e7(e.opacity??1,i.opacity??1,n));for(let s=0;s<s$;s++){let r=sU[s],a=sz(e,r),o=sz(i,r);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||sW(a)===sW(o)?(t[r]=Math.max(e7(sH(a),sH(o),n),0),(q.test(o)||q.test(a))&&(t[r]+="%")):t[r]=o)}(e.rotate||i.rotate)&&(t.rotate=e7(e.rotate||0,i.rotate||0,n))}(r,s,this.latestValues,n,d,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(t1(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=t0.update(()=>{var e,i,n;let s;sB.hasAnimatedSinceResize=!0,ey.layout++,this.motionValue||(this.motionValue=ek(0)),this.motionValue.jump(0,!1),this.currentAnimation=(e=this.motionValue,i=[0,1e3],n={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{ey.layout--},onComplete:()=>{ey.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}},(s=tS(e)?e:ek(e)).start(nG("",s,i,n)),s.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let 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:i,layout:n,latestValues:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&rj(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||tb();let e=n9(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=n9(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}sq(e,i),iy(e,s),n8(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new s8),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
9return 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:i}={}){let n=this.getStack();n&&n.promote(this,i),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:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&rs("z",t,n,this.animationValues);for(let e=0;e<ri.length;e++)rs(`rotate${ri[e]}`,t,n,this.animationValues),rs(`skew${ri[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=iV(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=iV(e?.pointerEvents)||""),this.hasProjected&&!il(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let s=n.animationValues||n.latestValues;this.applyTransformsToTarget();let r=function(t,e,i){let n="",s=t.x.translate/e.x,r=t.y.translate/e.y,a=i?.z||0;if((s||r||a)&&(n=`translate3d(${s}px, ${r}px, ${a}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:s,rotateY:r,skewX:a,skewY:o}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),s&&(n+=`rotateX(${s}deg) `),r&&(n+=`rotateY(${r}deg) `),a&&(n+=`skewX(${a}deg) `),o&&(n+=`skewY(${o}deg) `)}let o=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==o||1!==l)&&(n+=`scale(${o}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,s);i&&(r=i(s,r)),t.transform=r;let{x:a,y:o}=this.projectionDelta;for(let e in t.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,n.animationValues?t.opacity=n===this?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:t.opacity=n===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,e8){if(void 0===s[e])continue;let{correct:i,applyTo:a,isCSSVariable:o}=e8[e],l="none"===r?s[e]:i(s[e],n);if(a){let e=a.length;for(let i=0;i<e;i++)t[a[i]]=l}else o?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?iV(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(rd),this.root.sharedNodes.clear()}}}function ra(t){t.updateLayout()}function ro(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:s}=t.options,r=e.source!==t.layout.source;if("size"===s)n3(t=>{let n=r?e.measuredBox[t]:e.layoutBox[t],s=n9(n);n.min=i[t].min,n.max=n.min+s});else if("x"===s||"y"===s){let t="x"===s?"y":"x";sK(r?e.measuredBox[t]:e.layoutBox[t],i[t])}else rj(s,e.layoutBox,i)&&n3(n=>{let s=r?e.measuredBox[n]:e.layoutBox[n],a=n9(i[n]);s.max=s.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+a)});let a=tx();n8(a,i,e.layoutBox);let o=tx();r?n8(o,t.applyTransform(n,!0),e.measuredBox):n8(o,i,e.layoutBox);let l=!s2(a),h=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let a=t.options.layoutAnchor||void 0,o=tb();si(o,e.layoutBox,s.layoutBox,a);let l=tb();si(l,i,r.layoutBox,a),s6(o,l)||(h=!0),n.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function rl(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
9isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function rh(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ru(t){t.clearSnapshot()}function rd(t){t.clearMeasurements()}function rc(t){t.isLayoutDirty=!0,t.updateLayout()}function rp(t){t.isLayoutDirty=!1}function rm(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function rf(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function rg(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ry(t){t.resolveTargetDelta()}function rv(t){t.calcProjection()}function rx(t){t.resetSkewAndRotation()}function rw(t){t.removeLeadSnapshot()}function rb(t,e,i){t.translate=e7(e.translate,0,i),t.scale=e7(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function rS(t,e,i,n){t.min=e7(e.min,i.min,n),t.max=e7(e.max,i.max,n)}function rT(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let rP={duration:.45,ease:[.4,0,.1,1]},rC=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),rE=rC("applewebkit/")&&!rC("chrome/")?Math.round:t_;function rA(t){t.min=rE(t.min),t.max=rE(t.max)}function rj(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(s9(e)-s9(i)))}function rM(t){return t!==t.root&&t.scroll?.wasRoot}let rk=rr({attachResizeListener:(t,e)=>n4(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),rV={current:void 0},rR=rr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!rV.current){let t=new rk({});t.mount(window),t.setOptions({layoutScroll:!0}),rV.current=t}return rV.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function rD(t,e){let i=ss(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function rL(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&t0.postRender(()=>s(e,sg(e)))}let rB=(t,e)=>!!e&&(t===e||rB(t,e.parentElement)),rN=new WeakSet;function rI(t){return e=>{"Enter"===e.key&&t(e)}}function rO(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function rF(t){return sf(t)&&!(n6.x||n6.y)}let rU=new WeakSet;function r$(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let s=n["onTap"+("End"===i?"":i)];s&&t0.postRender(()=>s(e,sg(e)))}let rH=new WeakMap,rW=new WeakMap,rz=t=>{let e=rH.get(t.target);e&&e(t)},rY=t=>{t.forEach(rz)},rX={some:0,all:1},rG=function(t,e){if("u"<typeof Proxy)return iH;let i=new Map,n=(i,n)=>iH(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(s,r)=>"create"===r?n:(i.has(r)||i.set(r,iH(r,void 0,t,e)),i.get(r))})}({animation:{Feature:class extends iW{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>n_(t,e,i)));else if("string"==typeof e)n=n_(t,e,i);else{let s="function"==typeof e?iz(t,e,i.custom):e;n=Promise.all(nK(t,s,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=n5(),n=!0,s=!1,r=e=>(i,n)=>{let s=iz(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function a(a){let{props:o}=t,l=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<nZ;t++){let n=eN[t],s=e.props[n];(eL(s)||!1===s)&&(i[n]=s)}return i}(t.parent)||{},h=[],u=new Set,d={},c=1/0;for(let e=0;e<n0;e++){var p,m;let f=nQ[e],g=i[f],y=void 0!==o[f]?o[f]:l[f],v=eL(y),x=f===a?g.isActive:null;!1===x&&(c=e);let w=y===l[f]&&y!==o[f]&&v;if(w&&(n||s)&&t.manuallyAnimateOnMount&&(w=!1),g.protectedKeys={...d},!g.isActive&&null===x||!y&&!g.prevProp||eD(y)||"boolean"==typeof y)continue;if("exit"===f&&g.isActive&&!0!==x){g.prevResolvedValues&&(d={...d,...g.prevResolvedValues});continue}let b=(p=g.prevProp,"string"==typeof(m=y)?m!==p:!!Array.isArray(m)&&!nJ(m,p)),S=b||f===a&&g.isActive&&!w&&v||e>c&&v,T=!1,P=Array.isArray(y)?y:[y],C=P.reduce(r(f),{});!1===x&&(C={});let{prevResolvedValues:E={}}=g,A={...E,...C},j=e=>{S=!0,u.has(e)&&(T=!0,u.delete(e)),g.needsAnimating[e]=!0;let i=t.getValue(e);
9i&&(i.liveStyle=!1)};for(let t in A){let e=C[t],i=E[t];if(!d.hasOwnProperty(t))(iG(e)&&iG(i)?nJ(e,i):e===i)?void 0!==e&&u.has(t)?j(t):g.protectedKeys[t]=!0:null!=e?j(t):u.add(t)}g.prevProp=y,g.prevResolvedValues=C,g.isActive&&(d={...d,...C}),(n||s)&&t.blockInitialAnimation&&(S=!1);let M=w&&b,k=!M||T;S&&k&&h.push(...P.map(e=>{let i={type:f};if("string"==typeof e&&(n||s)&&!M&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,s=iz(n,e);if(n.enteringChildren&&s){let{delayChildren:e}=s.transition||{};i.delay=nq(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(u.size){let e={};if("boolean"!=typeof o.initial){let i=iz(t,Array.isArray(o.initial)?o.initial[0]:o.initial);i&&i.transition&&(e.transition=i.transition)}u.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=n??null}),h.push({animation:e})}let f=!!h.length;return n&&(!1===o.initial||o.initial===o.animate)&&!t.manuallyAnimateOnMount&&(f=!1),n=!1,s=!1,f?e(h):Promise.resolve()}return{animateChanges:a,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let s=a(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=n5(),s=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();eD(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?.()}}},exit:{Feature:class extends iW{constructor(){super(...arguments),this.id=n2++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;if(t&&!1===i){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t){let i=iz(this.node,t,e);if(i){let{transition:t,transitionEnd:e,...n}=i;for(let t in n)this.node.getValue(t)?.jump(n[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
9e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends iW{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.stopObserver?.();let{viewport:i={}}=this.node.getProps(),{root:n,margin:s,amount:r="some",once:a}=i,o={root:n?n.current:void 0,rootMargin:s,threshold:"number"==typeof r?r:rX[r]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,a&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)};this.stopObserver=(t=this.node.current,e=function({root:t,...e}){let i=t||document;rW.has(i)||rW.set(i,{});let n=rW.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(rY,{root:t,...e})),n[s]}(o),rH.set(t,l),e.observe(t),()=>{rH.delete(t),e.unobserve(t)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends iW{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e,i={}){let[n,s,r]=rD(t,i),a=t=>{let n=t.currentTarget;if(!rF(t)||rU.has(t))return;rN.add(n),i.stopPropagation&&rU.add(t);let r=e(n,t),a=(t,e)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),rN.has(n)&&rN.delete(n),rF(t)&&"function"==typeof r&&r(t,{success:e})},o=t=>{a(t,n===window||n===document||i.useGlobalTarget||rB(n,t.target))},l=t=>{a(t,!1)};window.addEventListener("pointerup",o,s),window.addEventListener("pointercancel",l,s)};return n.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",a,s),b(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=rI(()=>{if(rN.has(i))return;rO(i,"down");let t=rI(()=>{rO(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>rO(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,s)),sp.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(r$(this.node,e,"Start"),(t,{success:e})=>r$(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends iW{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=i_(n4(this.node.current,"focus",()=>this.onFocus()),n4(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends iW{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,r]=rD(t,i);return n.forEach(t=>{let i,n=!1,r=!1,a=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},o=t=>{n=!1,window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",o),r&&(r=!1,a(t))},l=t=>{if("touch"!==t.pointerType){if(n){r=!0;return}a(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||n6.x||n6.y)return;r=!1;let a=e(t,n);"function"==typeof a&&(i=a,t.addEventListener("pointerleave",l,s))},s),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",o,s),window.addEventListener("pointercancel",o,s)},s)}),r}(t,(t,e)=>(rL(this.node,e,"Start"),t=>rL(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends iW{constructor(){super(...arguments),this.removePointerDownListener=t_}onPointerDown(t){this.session=new sb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:sv(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:sL(t),onStart:sL(e),onMove:sL(i),onEnd:(t,e)=>{delete this.session,n&&t0.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=sy(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends iW{constructor(t){super(t),this.removeGroupControls=t_,this.removeListeners=t_,this.controls=new sV(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||t_}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()}},ProjectionNode:rR,MeasureLayout:sF},layout:{ProjectionNode:rR,MeasureLayout:sF}},(t,e)=>e.isSVG??ib(t)?new is(e):new ix(e,{allowProjection:t!==h.Fragment}));var rK=t.i(17595),rq=t.i(61745),r_=t.i(48148),rZ=t.i(59684),rJ=t.i(85149),rQ=t.i(75157),r0=t.i(75553);let r1={hidden:{x:"100%",opacity:0}
9,visible:{x:"0%",opacity:1,transition:{type:"tween",duration:.2,ease:"easeOut"}},exit:{x:"-100%",opacity:0,transition:{type:"tween",duration:.2,ease:"easeIn"}}},r5=({item:t,className:e,handleClick:i,defaultLocale:n})=>{let s=(0,l.usePathname)(),r=(0,r0.useBurgerStore)(t=>t.setIsOpen);return(0,a.jsx)("div",{className:(0,rQ.cn)("text-primary solvalla:text-primary-dark solvalla:font-bold flex text-base/5",e),children:t.Children.length?(0,a.jsxs)("button",{onClick:i,className:"hover:bg-primary-light-25 focus-visible:bg-primary-light-25 flex w-full justify-between px-4 py-3 text-start focus:outline-hidden",children:[t.Text,(0,a.jsx)(c,{className:"text-primary-light font-normal"})]}):(0,a.jsxs)(o.default,{href:t.Href,className:"hover:bg-primary-light-25 focus-visible:bg-primary-light-25 flex w-full justify-between px-4 py-3 text-start focus:outline-hidden",onClick:()=>{`/${n}${s}`===t.Href&&r(!1)},prefetch:!1,children:[t.Text,(0,a.jsx)(c,{className:"text-primary-light font-normal"})]})})},r2=({defaultLocale:t})=>{let e=(0,r0.useBurgerStore)(t=>t.navPath),i=(0,r0.useBurgerStore)(t=>t.setNavPath),n=e[e.length-1];return n?(0,a.jsx)(R,{mode:"wait",children:(0,a.jsxs)(rG.div,{className:"flex flex-col",variants:r1,initial:"hidden",animate:"visible",exit:"exit",children:[(0,a.jsx)(o.default,{className:"text-primary solvalla:text-primary-dark hover:bg-primary-light-25 focus-visible:bg-primary-light-25 solvalla:font-extrabold px-4 py-3 text-lg/5 font-bold focus:outline-hidden lg:text-[22px]/6",href:n.Href,prefetch:!1,children:n.Text}),n.Children.map((n,s)=>(0,a.jsx)(r5,{item:n,defaultLocale:t,handleClick:()=>{i([...e,n])}},s))]},n.Href)}):null},r3=({MainNavigation:t,SecondaryNavigation:e,defaultLocale:i})=>{let n=(0,r0.useBurgerStore)(t=>t.navPath),s=(0,r0.useBurgerStore)(t=>t.setNavPath),r=(0,l.usePathname)();(0,rq.useLocale)();let o=(0,h.useMemo)(()=>r,[r]),u=(0,h.useCallback)(()=>{let e="/"===o?[]:function t(e,i){for(let n of e)if(n.Href===i)return[n];else if(n.Children&&n.Children.length>0){let e=t(n.Children,i);if(e.length>0)return[n,...e]}return[]}(t,o);return e.length&&!e[e.length-1].Children?.length&&(e=e.slice(0,-1)),e},[t,o]);return(0,h.useEffect)(()=>{s(u())},[t,r,o,s,u]),(0,a.jsx)("div",{className:"relative flex flex-col",children:(0,a.jsx)(R,{mode:"wait",initial:!1,children:0===n.length?(0,a.jsxs)(rG.div,{className:"flex flex-col",initial:{x:"0%"},animate:{x:"0%"},exit:{x:"-100%",opacity:0,transition:{duration:.2,ease:"easeIn"}},children:[(0,a.jsx)("div",{className:"flex flex-col",children:t.map((t,e)=>(0,a.jsx)(r5,{item:t,className:"solvalla:font-extrabold text-lg/5 font-bold",defaultLocale:i,handleClick:()=>{s([t])}},e))}),(0,a.jsx)("div",{className:"flex flex-col text-base/5",children:e.map((t,e)=>(0,a.jsx)(r5,{item:t,defaultLocale:i,handleClick:()=>{s([t])}},e))})]},"main-menu"):(0,a.jsx)(r2,{defaultLocale:i},n[n.length-1].Href)})})},r4=({children:t,onClick:e,headline:i})=>{let n=(0,r_.useTranslations)();return(0,a.jsxs)("div",{className:"absolute top-0 left-0 z-10 h-full w-full bg-white",children:[(0,a.jsxs)("div",{className:"has-[.back-button:focus-visible]:bg-primary-light-25 has-[.back-button:hover]:bg-primary-light-25 absolute top-4 right-0 flex w-full items-center justify-end gap-1 px-4 py-3",children:[(0,a.jsxs)("button",{onClick:e,className:"back-button text-primary solvalla:text-primary-dark flex h-full grow items-center justify-between gap-1 text-sm/6 focus:outline-hidden",children:[(0,a.jsx)(d,{}),(0,a.jsx)("span",{className:"grow",children:i})]}),(0,a.jsxs)(m.Close,{className:"text-primary solvalla:text-primary-dark",children:[(0,a.jsx)(p.default,{}),(0,a.jsx)("span",{className:"sr-only",children:n("Common.Close")})]})]}),(0,a.jsx)("div",{className:"h-full pt-[90px]",children:(0,a.jsx)(rZ.ScrollArea,{className:"h-full",children:t})})]})},r6=({languages:t,relativePath:e,regions:i,selectedRegionGuid:n,hideLanguages:s})=>{let r=(0,r_.useTranslations)(),l=(0,r0.useBurgerStore)(t=>t.isLanguageOpen),h=(0,r0.useBurgerStore)(t=>t.setIsLanguageOpen),u=(0,r0.useBurgerStore)(t=>t.isLocationSelectorOpen),d=(0,r0.useBurgerStore)(t=>t.setIsLocationSelectorOpen),p=t=>{if("all"===t){rK.default.remove(rJ.REGION_COOKIE.guid),window.location.reload();return}rK.default.set(rJ.REGION_COOKIE.guid,t,{expires:365}),window.location.reload()};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"solvalla:font-bold flex flex-col py-3",children:[s?null:(0,a.jsxs)("button",{className:"text-primary solvalla:text-primary-dark focus-visible:bg-primary-light-25 flex w-full justify-between px-4 py-3 text-start focus:outline-hidden",onClick:()=>h(!0),children:[t?.find(t=>t.Url===e)?.DisplayName,(0,a.jsx)(c,{className:"text-primary-light font-normal"})]}),i.length?(0,a.jsxs)("button",{className:"text-primary solvalla:text-primary-dark focus-visible:bg-primary-light-25 flex w-full justify-between px-4 py-3 text-start focus:outline-hidden",onClick:()=>d(!0),children:[n?i.find(t=>t.Guid===n)?.Region:r("Header.SelectYourRegion"),(0,a.jsx)(c,{className:"text-primary-light font-normal"})]}):null]}),l&&(0,a.jsx)(r4,{onClick:()=>h(!1),headline:r("Burger.SelectLanguage"),children:t?.map(t=>(0,a.jsx)(o.default,{href:t.Url,className:(0,rQ.cn)("text-primary solvalla:text-primary-dark focus-visible:bg-primary-light-25 solvalla:font-bold flex w-full justify-between px-4 py-3 text-start focus:outline-hidden",{"solvalla:font-extrabold text-lg/5 font-bold":t.Url===e}),prefetch:!1,children:t.DisplayName},t.Name))}),u&&(0,a.jsxs)(r4,{onClick:()=>d(!1),headline:r("Header.SelectYourRegion"),children:[n?(0,a.jsx)("button",{onClick:()=>p("all"),className:"text-primary solvalla:text-primary-dark focus-visible:bg-primary-light-25 flex w-full justify-between px-4 py-3 text-start focus:outline-hidden",children:r("Header.AllFinland")}
9):null,i?.map(t=>(0,a.jsx)("button",{onClick:()=>p(t.Guid),className:(0,rQ.cn)("text-primary solvalla:text-primary-dark focus-visible:bg-primary-light-25 flex w-full justify-between px-4 py-3 text-start focus:outline-hidden",{"solvalla:font-extrabold text-lg/5 font-bold":t.Guid===n}),children:t.Region},t.Guid))]})]})};t.s(["BurgerMenuNav",0,function({MainNavigation:t,SecondaryNavigation:e,languages:i,relativePath:n,regions:s,selectedRegionGuid:r,defaultLocale:o,hideLanguages:l}){let h=(0,r_.useTranslations)(),u=(0,r0.useBurgerStore)(t=>t.navPath),c=(0,r0.useBurgerStore)(t=>t.goBack),f=u[u.length-2];return(0,a.jsxs)("div",{className:"flex h-full flex-col",children:[(0,a.jsx)(rZ.ScrollArea,{className:"grow",children:(0,a.jsx)("div",{className:"flex flex-col gap-4",children:(0,a.jsx)(r3,{MainNavigation:t,SecondaryNavigation:e,defaultLocale:o})})}),!l||s.length?(0,a.jsx)("div",{className:"border-divider border-t bg-white min-[960px]:hidden",children:(0,a.jsx)(r6,{languages:i,relativePath:n,regions:s,selectedRegionGuid:r,hideLanguages:l})}):null,(0,a.jsxs)("div",{className:"has-[.back-button:focus-visible]:bg-primary-light-25 has-[.back-button:hover]:bg-primary-light-25 absolute top-4 right-0 flex w-full items-center justify-end gap-1 px-4 py-3",children:[u.length>0&&(0,a.jsxs)("button",{onClick:c,className:"back-button text-primary solvalla:text-primary-dark flex h-full grow items-center justify-between gap-1 text-sm/6 focus:outline-hidden",children:[(0,a.jsx)(d,{}),(0,a.jsx)("span",{className:"grow",children:f?.Text??h("Burger.All")})]}),(0,a.jsxs)(m.Close,{className:"text-primary solvalla:text-primary-dark",children:[(0,a.jsx)(p.default,{}),(0,a.jsx)("span",{className:"sr-only",children:h("Common.Close")})]})]})]})}],35798)},19545,t=>{"use strict";var e=t.i(43476),i=t.i(71645);let n=(0,t.i(55742).default)((0,e.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");var s=t.i(29402),r=t.i(75157);let a=s.Root,o=s.Value,l=i.forwardRef(({className:t,children:i,...a},o)=>(0,e.jsxs)(s.Trigger,{ref:o,className:(0,r.cn)("rounded-0 text-gray hover:text-primary-medium flex h-10 items-center px-1 py-0 text-sm/4 whitespace-nowrap disabled:cursor-not-allowed disabled:opacity-50",t),...a,children:[i,(0,e.jsx)(s.Icon,{asChild:!0,children:(0,e.jsx)(n,{className:"min-h-[5px] min-w-[10px]"})})]}));l.displayName=s.Trigger.displayName;let h=i.forwardRef(({className:t,children:i,position:n="popper",...a},o)=>(0,e.jsx)(s.Portal,{children:(0,e.jsx)(s.Content,{ref:o,className:(0,r.cn)("relative z-50 min-w-[130px] overflow-hidden rounded-[15px] bg-white px-0 py-3",t),position:n,...a,children:(0,e.jsx)(s.Viewport,{children:i})})}));h.displayName=s.Content.displayName;let u=i.forwardRef(({className:t,children:i,...n},a)=>(0,e.jsx)(s.Item,{ref:a,className:(0,r.cn)("text-secondary solvalla:font-bold relative flex w-full cursor-pointer items-center px-3 py-1 leading-5 font-medium outline-hidden select-none","hover:bg-tertiary-light","data-highlighted:bg-tertiary-light","data-[state=checked]:text-primary-medium",t),...n,children:(0,e.jsx)(s.ItemText,{children:(0,e.jsx)("span",{children:i})})}));u.displayName=s.Item.displayName,t.s(["HeaderSelect",0,a,"HeaderSelectContent",0,h,"HeaderSelectItem",0,u,"HeaderSelectTrigger",0,l,"HeaderSelectValue",0,o],19545)},95333,t=>{"use strict";var e=t.i(43476),i=t.i(18566),n=t.i(19545);t.s(["LanguageSelector",0,function({languages:t,relativePath:s}){let r=(0,i.useRouter)();return(0,e.jsxs)(n.HeaderSelect,{onValueChange:t=>{r.push(t)},defaultValue:s,onOpenChange:e=>{e&&t?.forEach(t=>{t&&r.prefetch(t.Url)})},children:[(0,e.jsx)(n.HeaderSelectTrigger,{"aria-label":t?.find(t=>t.Url===s)?.DisplayName??"",children:(0,e.jsx)(n.HeaderSelectValue,{})}),(0,e.jsx)(n.HeaderSelectContent,{children:t?.map(t=>t&&(0,e.jsx)(n.HeaderSelectItem,{value:t.Url,children:t.DisplayName},t.Name))})]})}])},16018,t=>{"use strict";var e=t.i(43476),i=t.i(71645),n=t.i(17595),s=t.i(48148),r=t.i(85149),a=t.i(19545);t.s(["RegionSelector",0,function({regions:t,selectedRegionGuid:o}){let[l,h]=(0,i.useState)(o),u=(0,s.useTranslations)("Header");return(0,e.jsxs)(a.HeaderSelect,{onValueChange:t=>{if(h("all"===t?void 0:t),"all"===t){n.default.remove(r.REGION_COOKIE.guid),window.location.reload();return}n.default.set(r.REGION_COOKIE.guid,t,{expires:365}),window.location.reload()},value:l,children:[(0,e.jsx)(a.HeaderSelectTrigger,{"aria-label":void 0===l?u("SelectYourRegion"):t.find(t=>t.Guid===l)?.Region,children:(0,e.jsx)(a.HeaderSelectValue,{placeholder:u("SelectYourRegion")})}),(0,e.jsxs)(a.HeaderSelectContent,{children:[l?(0,e.jsx)(a.HeaderSelectItem,{value:"all",children:u("AllFinland")}
9):null,t.map(t=>(0,e.jsx)(a.HeaderSelectItem,{value:t.Guid,children:t.Region},t.Guid))]})]},"region-select"+l)}])},59326,t=>{"use strict";var e=t.i(43476),i=t.i(71645),n=t.i(83012),s=t.i(84500),r=t.i(7670),a=t.i(48148),o=t.i(67815),l=t.i(93479),h=t.i(26999),u=t.i(75157);let d=h.Root,c=h.Trigger,p=h.Portal,m=i.forwardRef(({className:t,...i},n)=>(0,e.jsx)(h.Overlay,{ref:n,className:(0,u.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 top-[80px] z-50 bg-black/75 min-[960px]:bg-black/25",t),...i}));m.displayName=h.Overlay.displayName;let f=i.forwardRef(({className:t,children:i,...s},r)=>(0,e.jsxs)(p,{children:[(0,e.jsx)(m,{}),(0,e.jsxs)(h.Content,{ref:r,className:(0,u.cn)("border-secondary-light bg-off-white data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed top-[80px] left-0 z-50 flex h-[445px] w-full flex-col gap-4 border-t py-[60px] min-[960px]:top-0 min-[960px]:bg-white min-[960px]:py-[100px]",t),...s,children:[i,(0,e.jsxs)(h.Close,{className:"text-primary absolute top-4 right-4 rounded-xs",children:[(0,e.jsx)(n.default,{}),(0,e.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));f.displayName=h.Content.displayName;let g=i.forwardRef(({className:t,...i},n)=>(0,e.jsx)(h.Title,{ref:n,className:(0,u.cn)("font-heading text-primary mb-4 text-left text-[38px] leading-none font-normal min-[960px]:text-[48px]",t),...i}));g.displayName=h.Title.displayName;var y=t.i(97826);t.s(["SearchBar",0,function({searchUrl:t}){let h=(0,a.useTranslations)("Header"),[u,p]=i.useState(!1),[m,v]=i.useState(""),{scrollToHeader:x}=(0,y.useScrollToHeader)();return(0,e.jsxs)(d,{open:u,onOpenChange:t=>{t&&x(),requestAnimationFrame(()=>p(t))},children:[(0,e.jsx)(c,{asChild:!0,children:(0,e.jsxs)("button",{className:(0,r.default)("flex h-[80px] w-[80px] items-center justify-center min-[960px]:gap-1",{"bg-off-white min-[960px]:bg-transparent":u}),children:[(0,e.jsx)("span",{className:"solvalla:font-semibold sr-only text-sm/4 min-[960px]:not-sr-only",children:h("Search")}),(0,e.jsx)(s.default,{})]})}),(0,e.jsx)(f,{children:(0,e.jsxs)("div",{className:"container min-[960px]:px-[200px]",children:[(0,e.jsx)(g,{children:h("SearchPlaceholder")}),(0,e.jsx)("form",{className:"grid gap-4",onSubmit:e=>{e.preventDefault(),m.trim()&&(window.location.href=`${t}?q=${encodeURIComponent(m.trim())}`)},children:(0,e.jsxs)("div",{className:"flex flex-col gap-4 min-[960px]:flex-row",children:[(0,e.jsxs)("div",{className:"relative w-full min-[960px]:grow",children:[(0,e.jsx)(l.Input,{id:"search",name:"search",placeholder:h("Search"),type:"text",value:m,onChange:t=>{v(t.target.value)},className:"border-secondary-light h-[50px] rounded-[50px]"}),m?(0,e.jsxs)("button",{type:"button",onClick:()=>{v("")},className:"text-secondary absolute top-1/2 right-4 -translate-y-1/2 transform min-[960px]:top-[25px]",children:[(0,e.jsx)(n.default,{}),(0,e.jsx)("span",{className:"sr-only",children:h("Clear")})]}):(0,e.jsx)(s.default,{className:"text-secondary absolute top-1/2 right-4 -translate-y-1/2 transform min-[960px]:top-[25px]"})]}),(0,e.jsx)(o.Button,{type:"submit",className:"w-[123px]",children:h("Search")})]})})]})})]})}],59326)}]);
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.