1import{r as v,j}from"./react-DbTNBFoG.js";const Gt=v.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),$t=v.createContext({}),zt=v.createContext(null),Fe=typeof window<"u",Ht=Fe?v.useLayoutEffect:v.useEffect,Ts=v.createContext({strict:!1}),Xt=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),qi="framerAppearId",Ss="data-"+Xt(qi),Zi={skipAnimations:!1,useManualTiming:!1};function Ji(t){let e=new Set,n=new Set,s=!1,i=!1;const o=new WeakSet;let r={delta:0,timestamp:0,isProcessing:!1};function a(u){o.has(u)&&(l.schedule(u),t()),u(r)}const l={schedule:(u,c=!1,h=!1)=>{const d=h&&s?e:n;return c&&o.add(u),d.has(u)||d.add(u),u},cancel:u=>{n.delete(u),o.delete(u)},process:u=>{if(r=u,s){i=!0;return}s=!0,[e,n]=[n,e],n.clear(),e.forEach(a),s=!1,i&&(i=!1,l.process(u))}};return l}const Lt=["read","resolveKeyframes","update","preRender","render","postRender"],Qi=40;function bs(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=Lt.reduce((x,m)=>(x[m]=Ji(o),x),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:h,postRender:f}=r,d=()=>{const x=performance.now();n=!1,i.delta=s?1e3/60:Math.max(Math.min(x-i.timestamp,Qi),1),i.timestamp=x,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),h.process(i),f.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(d))},p=()=>{n=!0,s=!0,i.isProcessing||t(d)};return{schedule:Lt.reduce((x,m)=>{const g=r[m];return x[m]=(S,b=!1,V=!1)=>(n||p(),g.schedule(S,b,V)),x},{}),cancel:x=>{for(let m=0;m<Lt.length;m++)r[Lt[m]].cancel(x)},state:i,steps:r}}const{schedule:Be,cancel:Ru}=bs(queueMicrotask,!1);function lt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}const As=v.createContext({});let ln=!1;function tr(t,e,n,s,i){const{visualElement:o}=v.useContext($t),r=v.useContext(Ts),a=v.useContext(zt),l=v.useContext(Gt).reducedMotion,u=v.useRef();s=s||r.renderer,!u.current&&s&&(u.current=s(t,{visualState:e,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const c=u.current,h=v.useContext(As);c&&!c.projection&&i&&(c.type==="html"||c.type==="svg")&&nr(u.current,n,i,h),v.useInsertionEffect(()=>{c&&c.update(n,a)});const f=v.useRef(!!(n[Ss]&&!window.HandoffComplete));return Ht(()=>{c&&(c.updateFeatures(),Be.render(c.render),f.current&&c.animationState&&c.animationState.animateChanges())}),v.useEffect(()=>{c&&(!f.current&&c.animationState&&c.animationState.animateChanges(),f.current&&(f.current=!1,ln||(ln=!0,queueMicrotask(er))))}),c}function er(){window.HandoffComplete=!0}function nr(t,e,n,s){const{layoutId:i,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Cs(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||a&<(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:u})}function Cs(t){if(t)return t.options.allowProjection!==!1?t.projection:Cs(t.parent)}function sr(t,e,n){return v.useCallback(s=>{s&&t.mount&&t.mount(s),e&&(s?e.mount(s):e.unmount()),n&&(typeof n=="function"?n(s):lt(n)&&(n.current=s))},[e])}function At(t){return typeof t=="string"||Array.isArray(t)}function Ct(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const ke=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],je=["initial",...ke];function Yt(t){return Ct(t.animate)||je.some(e=>At(t[e]))}function Vs(t){return!!(Yt(t)||t.variants)}function ir(t,e){if(Yt(t)){const{initial:n,animate:s}=t;return{initial:n===!1||At(n)?n:void 0,animate:At(s)?s:void 0}}return t.inherit!==!1?e:{}}function rr(t){const{initial:e,animate:n}=ir(t,v.useContext($t));return v.useMemo(()=>({initial:e,animate:n}),[un(e),un(n)])}function un(t){return Array.isArray(t)?t.join(" "):t}const cn={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"]},dt={};for(const t in cn)dt[t]={isEnabled:e=>cn[t].some(n=>!!e[n])};function or(t){for(const e in t)dt[e]={...dt[e],...t[e]}}const Oe=v.createContext({}),ar=Symbol.for("motionComponentSymbol"),F=t=>t;let ws=F;function lr({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:s,Component:i}){t&&or(t);function o(a,l){let u;const c={...v.useContext(Gt),...a,layoutId:ur(a)},{isStatic:h}=c,f=rr(a),d=s(a,h);if(!h&&Fe){cr();const p=hr(c);u=p.MeasureLayout,f.visualElement=tr(i,d,c,e,p.ProjectionNode)}return j.jsxs($t.Provider,{value:f,children:[u&&f.visualElement?j.jsx(u,{visualElement:f.visualElement,...c}):null,n(i,a,sr(d,f.visualElement,l),d,h,f.visualElement)]})}const r=v.forwardRef(o);return r[ar]=i,r}function ur({layoutId:t}){const e=v.useContext(Oe).id;return e&&t!==void 0?e+"-"+t:t}
1function cr(t,e){v.useContext(Ts).strict}function hr(t){const{drag:e,layout:n}=dt;if(!e&&!n)return{};const s={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function fr(t){function e(s,i={}){return lr(t(s,i))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(s,i)=>(n.has(i)||n.set(i,e(i)),n.get(i))})}const dr=["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 Ie(t){return typeof t!="string"||t.includes("-")?!1:!!(dr.indexOf(t)>-1||/[A-Z]/u.test(t))}const It={};function pr(t){Object.assign(It,t)}const Rt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Q=new Set(Rt);function Rs(t,{layout:e,layoutId:n}){return Q.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!It[t]||t==="opacity")}const L=t=>!!(t&&t.getVelocity),mr={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},gr=Rt.length;function yr(t,e,n){let s="";for(let i=0;i<gr;i++){const o=Rt[i];if(t[o]!==void 0){const r=mr[o]||o;s+=`${r}(${t[o]}) `}}return s=s.trim(),n?s=n(t,e?"":s):e&&(s="none"),s}const Ms=t=>e=>typeof e=="string"&&e.startsWith(t),Ds=Ms("--"),vr=Ms("var(--"),Ne=t=>vr(t)?xr.test(t.split("/*")[0].trim()):!1,xr=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Pr=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Z=(t,e,n)=>n>e?e:n<t?t:n,gt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Pt={...gt,transform:t=>Z(0,1,t)},Ft={...gt,default:1},Tt=t=>Math.round(t*1e5)/1e5,Ue=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,Tr=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Sr=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function Mt(t){return typeof t=="string"}function br(t){return t==null}const Dt=t=>({test:e=>Mt(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),X=Dt("deg"),K=Dt("%"),T=Dt("px"),Ar=Dt("vh"),Cr=Dt("vw"),hn={...K,parse:t=>K.parse(t)/100,transform:t=>K.transform(t*100)},fn={...gt,transform:Math.round},Es={borderWidth:T,borderTopWidth:T,borderRightWidth:T,borderBottomWidth:T,borderLeftWidth:T,borderRadius:T,radius:T,borderTopLeftRadius:T,borderTopRightRadius:T,borderBottomRightRadius:T,borderBottomLeftRadius:T,width:T,maxWidth:T,height:T,maxHeight:T,size:T,top:T,right:T,bottom:T,left:T,padding:T,paddingTop:T,paddingRight:T,paddingBottom:T,paddingLeft:T,margin:T,marginTop:T,marginRight:T,marginBottom:T,marginLeft:T,rotate:X,rotateX:X,rotateY:X,rotateZ:X,scale:Ft,scaleX:Ft,scaleY:Ft,scaleZ:Ft,skew:X,skewX:X,skewY:X,distance:T,translateX:T,translateY:T,translateZ:T,x:T,y:T,z:T,perspective:T,transformPerspective:T,opacity:Pt,originX:hn,originY:hn,originZ:T,zIndex:fn,backgroundPositionX:T,backgroundPositionY:T,fillOpacity:Pt,strokeOpacity:Pt,numOctaves:fn};function Ke(t,e,n){const{style:s,vars:i,transform:o,transformOrigin:r}=t;let a=!1,l=!1,u=!0;for(const c in e){const h=e[c];if(Ds(c)){i[c]=h;continue}const f=Es[c],d=Pr(h,f);if(Q.has(c)){if(a=!0,o[c]=d,!u)continue;h!==(f.default||0)&&(u=!1)}else c.startsWith("origin")?(l=!0,r[c]=d):s[c]=d}if(e.transform||(a||n?s.transform=yr(t.transform,u,n):s.transform&&(s.transform="none")),l){const{originX:c="50%",originY:h="50%",originZ:f=0}=r;s.transformOrigin=`${c} ${h} ${f}`}}const We=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ls(t,e,n){for(const s in e)!L(e[s])&&!Rs(s,n)&&(t[s]=e[s])}function Vr({transformTemplate:t},e){return v.useMemo(()=>{const n=We();return Ke(n,e,t),Object.assign({},n.vars,n.style)},[e])}function wr(t,e){const n=t.style||{},s={};return Ls(s,n,t),Object.assign(s,Vr(t,e)),s}function Rr(t,e){const n={},s=wr(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const Mr=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Nt(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Mr.has(t)}let Fs=t=>!Nt(t);function Dr(t){t&&(Fs=e=>e.startsWith("on")?!Nt(e):t(e))}try{Dr(require("@emotion/is-prop-valid").default)}catch{}function Er(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(Fs(i)||n===!0&&Nt(i)||!e&&!Nt(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}function dn(t,e,n){return typeof t=="string"?t:T.transform(e+n*t)}function Lr(t,e,n){const s=dn(e,t.x,t.width),i=dn(n,t.y,t.height);return`${s} ${i}`}const Fr={offset:"stroke-dashoffset",array:"stroke-dasharray"},Br={offset:"strokeDashoffset",array:"strokeDasharray"};function kr(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?Fr:Br;t[o.offset]=T.transform(-s);const r=T.transform(e),a=T.transform(n);t[o.array]=`${r} ${a}`}function _e(t,{attrX:e,attrY:n,attrScale:s,originX:i,originY:o,pathLength:r,pathSpacing:a=1,pathOffset:l=0,...u}
1,c,h){if(Ke(t,u,h),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:f,style:d,dimensions:p}=t;f.transform&&(p&&(d.transform=f.transform),delete f.transform),p&&(i!==void 0||o!==void 0||d.transform)&&(d.transformOrigin=Lr(p,i!==void 0?i:.5,o!==void 0?o:.5)),e!==void 0&&(f.x=e),n!==void 0&&(f.y=n),s!==void 0&&(f.scale=s),r!==void 0&&kr(f,r,a,l,!1)}const Bs=()=>({...We(),attrs:{}}),Ge=t=>typeof t=="string"&&t.toLowerCase()==="svg";function jr(t,e,n,s){const i=v.useMemo(()=>{const o=Bs();return _e(o,e,Ge(s),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Ls(o,t.style,t),i.style={...o,...i.style}}return i}function Or(t=!1){return(n,s,i,{latestValues:o},r)=>{const l=(Ie(n)?jr:Rr)(s,o,r,n),u=Er(s,typeof n=="string",t),c=n!==v.Fragment?{...u,...l,ref:i}:{},{children:h}=s,f=v.useMemo(()=>L(h)?h.get():h,[h]);return v.createElement(n,{...c,children:f})}}function ks(t,{style:e,vars:n},s,i){Object.assign(t.style,e,i&&i.getProjectionStyles(s));for(const o in n)t.style.setProperty(o,n[o])}const js=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Os(t,e,n,s){ks(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(js.has(i)?i:Xt(i),e.attrs[i])}function $e(t,e,n){var s;const{style:i}=t,o={};for(const r in i)(L(i[r])||e.style&&L(e.style[r])||Rs(r,t)||((s=n==null?void 0:n.getValue(r))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(o[r]=i[r]);return n&&i&&typeof i.willChange=="string"&&(n.applyWillChange=!1),o}function Is(t,e,n){const s=$e(t,e,n);for(const i in t)if(L(t[i])||L(e[i])){const o=Rt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=t[i]}return s}function pn(t){const e=[{},{}];return t==null||t.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function ze(t,e,n,s){if(typeof e=="function"){const[i,o]=pn(s);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=pn(s);e=e(n!==void 0?n:t.custom,i,o)}return e}function qt(t){const e=v.useRef(null);return e.current===null&&(e.current=t()),e.current}const ve=t=>Array.isArray(t),Ir=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),Nr=t=>ve(t)?t[t.length-1]||0:t;function kt(t){const e=L(t)?t.get():t;return Ir(e)?e.toValue():e}const Ns=new Set(["opacity","clipPath","filter","transform"]);function Us(t){if(Q.has(t))return"transform";if(Ns.has(t))return Xt(t)}function Zt(t,e){t.indexOf(e)===-1&&t.push(e)}function Jt(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function Ur({applyWillChange:t=!1,scrapeMotionValuesFromProps:e,createRenderState:n,onMount:s},i,o,r,a){const l={latestValues:Wr(i,o,r,a?!1:t,e),renderState:n()};return s&&(l.mount=u=>s(i,u,l)),l}const Ks=t=>(e,n)=>{const s=v.useContext($t),i=v.useContext(zt),o=()=>Ur(t,e,s,i,n);return n?o():qt(o)};function Kr(t,e){const n=Us(e);n&&Zt(t,n)}function mn(t,e,n){const s=Array.isArray(e)?e:[e];for(let i=0;i<s.length;i++){const o=ze(t,s[i]);if(o){const{transitionEnd:r,transition:a,...l}=o;n(l,r)}}}function Wr(t,e,n,s,i){var o;const r={},a=[],l=s&&((o=t.style)===null||o===void 0?void 0:o.willChange)===void 0,u=i(t,{});for(const P in u)r[P]=kt(u[P]);let{initial:c,animate:h}=t;const f=Yt(t),d=Vs(t);e&&d&&!f&&t.inherit!==!1&&(c===void 0&&(c=e.initial),h===void 0&&(h=e.animate));let p=n?n.initial===!1:!1;p=p||c===!1;const y=p?h:c;return y&&typeof y!="boolean"&&!Ct(y)&&mn(t,y,(P,x)=>{for(const m in P){let g=P[m];if(Array.isArray(g)){const S=p?g.length-1:0;g=g[S]}g!==null&&(r[m]=g)}for(const m in x)r[m]=x[m]}),l&&(h&&c!==!1&&!Ct(h)&&mn(t,h,P=>{for(const x in P)Kr(a,x)}),a.length&&(r.willChange=a.join(","))),r}const{schedule:C,cancel:H,state:D,steps:ie}=bs(typeof requestAnimationFrame<"u"?requestAnimationFrame:F,!0),_r={useVisualState:Ks({scrapeMotionValuesFromProps:Is,createRenderState:Bs,onMount:(t,e,{renderState:n,latestValues:s})=>{C.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),C.render(()=>{_e(n,s,Ge(e.tagName),t.transformTemplate),Os(e,n)})}})},Gr={useVisualState:Ks({applyWillChange:!0,scrapeMotionValuesFromProps:$e,createRenderState:We})};function $r(t,{forwardMotionProps:e=!1},n,s){return{...Ie(t)?_r:Gr,preloadedFeatures:n,useRender:Or(e),createVisualElement:s,Component:t}}function _(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}const Ws=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Qt(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}const zr=t=>e=>Ws(e)&&t(e,Qt(e));function G(t,e,n,s){return _(t,e,zr(n),s)}const Hr=(t,e)=>n=>e(t(n)),$=(...t)=>t.reduce(Hr);function _s(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const gn=_s("dragHorizontal"),yn=_s("dragVertical");function Gs(t){let e=!1;if(t==="y")e=yn();else if(t==="x")e=gn();else{const n=gn(),s=yn();n&&s?e=()=>{n(),s()}:(n&&n(),s&&s())}return e}function $s(){const t=Gs(!0);return t?(t(),!1):!0}class tt{constructor(e){this.isMounted=!1,this.node=e}update(){}}function vn(t,e){const n=e?"pointerenter":"pointerleave",s=e?"onHoverStart":"onHoverEnd",i=(o,r)=>{if(o.pointerType==="touch"||$s())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e);const l=a[s];l&&C.postRender(()=>l(o,r))};return G(t.current,n,i,{passive:!t.getProps()[s]})}class Xr extends tt{mount(){this.unmount=$(vn(this.node,!0),vn(this.node,!1))}unmount(){}}class Yr extends tt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=$(_(this.node.current,"focus",()=>this.onFocus()),_(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const zs=(t,e)=>e?t===e?!0:zs(t,e.parentElement):!1;function re(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,Qt(n))}class qr extends tt{constructor(){super(...arguments),this.removeStartListeners=F,this.removeEndListeners=F,this.removeAccessibleListeners=F,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const s=this.node.getProps(),o=G(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:h}=this.node.getProps(),f=!h&&!zs(this.node.current,a.target)?c:u;f&&C.update(()=>f(a,l))},{passive:!(s.onTap||s.onPointerUp)}),r=G(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(s.onTapCancel||s.onPointerCancel)});this.removeEndListeners=$(o,r),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=o=>{if(o.key!=="Enter"||this.isPressing)return;const r=a=>{a.key!=="Enter"||!this.checkPressEnd()||re("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&C.postRender(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=_(this.node.current,"keyup",r),re("down",(a,l)=>{this.startPress(a,l)})},n=_(this.node.current,"keydown",e),s=()=>
1{this.isPressing&&re("cancel",(o,r)=>this.cancelPress(o,r))},i=_(this.node.current,"blur",s);this.removeAccessibleListeners=$(n,i)}}startPress(e,n){this.isPressing=!0;const{onTapStart:s,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),s&&C.postRender(()=>s(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!$s()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:s}=this.node.getProps();s&&C.postRender(()=>s(e,n))}mount(){const e=this.node.getProps(),n=G(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),s=_(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=$(n,s)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const xe=new WeakMap,oe=new WeakMap,Zr=t=>{const e=xe.get(t.target);e&&e(t)},Jr=t=>{t.forEach(Zr)};function Qr({root:t,...e}){const n=t||document;oe.has(n)||oe.set(n,{});const s=oe.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(Jr,{root:t,...e})),s[i]}function to(t,e,n){const s=Qr(e);return xe.set(t,n),s.observe(t),()=>{xe.delete(t),s.unobserve(t)}}const eo={some:0,all:1};
1class no extends tt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:eo[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:h}=this.node.getProps(),f=u?c:h;f&&f(l)};return to(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(so(e,n))&&this.startObserver()}unmount(){}}function so({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const io={inView:{Feature:no},tap:{Feature:qr},focus:{Feature:Yr},hover:{Feature:Xr}};function Hs(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}function te(t,e,n){const s=t.getProps();return ze(s,e,n!==void 0?n:s.custom,t)}const Y=t=>t*1e3,z=t=>t/1e3,ro={type:"spring",stiffness:500,damping:25,restSpeed:10},oo=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),ao={type:"keyframes",duration:.8},lo={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},uo=(t,{keyframes:e})=>e.length>2?ao:Q.has(t)?t.startsWith("scale")?oo(e[1]):ro:lo;function co({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function He(t,e){return t[e]||t.default||t}const ho=t=>t!==null;function ee(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(ho),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return!o||s===void 0?i[o]:s}let jt;function fo(){jt=void 0}const q={now:()=>(jt===void 0&&q.set(D.isProcessing||Zi.useManualTiming?D.timestamp:performance.now()),jt),set:t=>{jt=t,queueMicrotask(fo)}},Xs=t=>/^0[^.\s]+$/u.test(t);function po(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Xs(t):!0}const Ys=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),mo=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function go(t){const e=mo.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function qs(t,e,n=1){const[s,i]=go(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return Ys(r)?parseFloat(r):r}return Ne(i)?qs(i,e,n+1):i}const yo=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),xn=t=>t===gt||t===T,Pn=(t,e)=>parseFloat(t.split(", ")[e]),Tn=(t,e)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const i=s.match(/^matrix3d\((.+)\)$/u);if(i)return Pn(i[1],e);{const o=s.match(/^matrix\((.+)\)$/u);return o?Pn(o[1],t):0}},vo=new Set(["x","y","z"]),xo=Rt.filter(t=>!vo.has(t));function Po(t){const e=[];return xo.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const pt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Tn(4,13),y:Tn(5,14)};pt.translateX=pt.x;pt.translateY=pt.y;const Zs=t=>e=>e.test(t),To={test:t=>t==="auto",parse:t=>t},Js=[gt,T,K,X,Cr,Ar,To],Sn=t=>Js.find(Zs(t)),ot=new Set;let Pe=!1,Te=!1;function Qs(){if(Te){const t=Array.from(ot).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=Po(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([o,r])=>{var a;(a=s.getValue(o))===null||a===void 0||a.set(r)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Te=!1,Pe=!1,ot.forEach(t=>t.complete()),ot.clear()}function ti(){ot.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Te=!0)})}function So(){ti(),Qs()}class Xe{constructor(e,n,s,i,o,r=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=o,this.isAsync=r}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ot.add(this),Pe||(Pe=!0,C.read(ti),C.resolveKeyframes(Qs))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;for(let o=0;o<e.length;o++)if(e[o]===null)if(o===0){const r=i==null?void 0:i.get(),a=e[e.length-1];if(r!==void 0)e[0]=r;else if(s&&n){const l=s.readValue(n,a);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=a),i&&r===void 0&&i.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ot.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ot.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Ye=(t,e)=>n=>!!(Mt(n)&&Sr.test(n)&&n.startsWith(t)||e&&!br(n)&&Object.prototype.hasOwnProperty.call(n,e)),ei=(t,e,n)=>s=>{if(!Mt(s))return s;const[i,o,r,a]=s.match(Ue);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},bo=t=>Z(0,255,t),ae={...gt,transform:t=>Math.round(bo(t))},rt={test:Ye("rgb","red"),parse:ei("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+ae.transform(t)+", "+ae.transform(e)+", "+ae.transform(n)+", "+Tt(Pt.transform(s))+")"};function Ao(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alph
vendor: 3,994 bytes, line 1
1a:i?parseInt(i,16)/255:1}}const Se={test:Ye("#"),parse:Ao,transform:rt.transform},ut={test:Ye("hsl","hue"),parse:ei("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+K.transform(Tt(e))+", "+K.transform(Tt(n))+", "+Tt(Pt.transform(s))+")"},E={test:t=>rt.test(t)||Se.test(t)||ut.test(t),parse:t=>rt.test(t)?rt.parse(t):ut.test(t)?ut.parse(t):Se.parse(t),transform:t=>Mt(t)?t:t.hasOwnProperty("red")?rt.transform(t):ut.transform(t)};function Co(t){var e,n;return isNaN(t)&&Mt(t)&&(((e=t.match(Ue))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(Tr))===null||n===void 0?void 0:n.length)||0)>0}const ni="number",si="color",Vo="var",wo="var(",bn="${}",Ro=/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 Vt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(Ro,l=>(E.test(l)?(s.color.push(o),i.push(si),n.push(E.parse(l))):l.startsWith(wo)?(s.var.push(o),i.push(Vo),n.push(l)):(s.number.push(o),i.push(ni),n.push(parseFloat(l))),++o,bn)).split(bn);return{values:n,split:a,indexes:s,types:i}}function ii(t){return Vt(t).values}function ri(t){const{split:e,types:n}=Vt(t),s=e.length;return i=>{let o="";for(let r=0;r<s;r++)if(o+=e[r],i[r]!==void 0){const a=n[r];a===ni?o+=Tt(i[r]):a===si?o+=E.transform(i[r]):o+=i[r]}return o}}const Mo=t=>typeof t=="number"?0:t;function Do(t){const e=ii(t);return ri(t)(e.map(Mo))}const J={test:Co,parse:ii,createTransformer:ri,getAnimatableNone:Do},Eo=new Set(["brightness","contrast","saturate","opacity"]);function Lo(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(Ue)||[];if(!s)return t;const i=n.replace(s,"");let o=Eo.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const Fo=/\b([a-z-]*)\(.*?\)/gu,be={...J,getAnimatableNone:t=>{const e=t.match(Fo);return e?e.map(Lo).join(" "):t}},Bo={...Es,color:E,backgroundColor:E,outlineColor:E,fill:E,stroke:E,borderColor:E,borderTopColor:E,borderRightColor:E,borderBottomColor:E,borderLeftColor:E,filter:be,WebkitFilter:be},qe=t=>Bo[t];function oi(t,e){let n=qe(t);return n!==be&&(n=J),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const ko=new Set(["auto","none","0"]);function jo(t,e,n){let s=0,i;for(;s<t.length&&!i;){const o=t[s];typeof o=="string"&&!ko.has(o)&&Vt(o).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=oi(n,i)}class ai extends Xe{constructor(e,n,s,i){super(e,n,s,i,i==null?void 0:i.owner,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let u=e[l];if(typeof u=="string"&&(u=u.trim(),Ne(u))){const c=qs(u,n.current);c!==void 0&&(e[l]=c),l===e.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!yo.has(s)||e.length!==2)return;const[i,o]=e,r=Sn(i),a=Sn(o);if(r!==a)if(xn(r)&&xn(a))for(let l=0;l<e.length;l++){const u=e[l];typeof u=="string"&&(e[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)po(e[i])&&s.push(i);s.length&&jo(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=pt[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){var e;const{element:n,name:s,unresolvedKeyframes:i}=this;if(!n.current)return;const o=n.getValue(s);o&&o.jump(this.measuredOrigin,!1);const r=i.length-1,a=i[r];i[r]=pt[s](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEac
1h(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function li(t){let e;return()=>(e===void 0&&(e=t()),e)}const An=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(J.test(t)||t==="0")&&!t.startsWith("url("));function Oo(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function Io(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=An(i,e),a=An(o,e);return!r||!a?!1:Oo(t)||n==="spring"&&s}class ui{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:o,repeatType:r,...a},this.updateFinishedPromise()}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&So(),this._resolved}onKeyframesResolved(e,n){this.hasAttemptedResolve=!0;const{name:s,type:i,velocity:o,delay:r,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!Io(e,s,i,o))if(r)this.options.duration=0;else{l==null||l(ee(e,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const c=this.initPlayback(e,n);c!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}function ci(t,e){return e?t*(1e3/e):0}const No=5;function hi(t,e,n){const s=Math.max(e-No,0);return ci(n-t(s),e-s)}const le=.001,Uo=.01,Ko=10,Wo=.05,_o=1;function Go({duration:t=800,bounce:e=.25,velocity:n=0,mass:s=1}){let i,o,r=1-e;r=Z(Wo,_o,r),t=Z(Uo,Ko,z(t)),r<1?(i=u=>{const c=u*r,h=c*t,f=c-n,d=Ae(u,r),p=Math.exp(-h);return le-f/d*p},o=u=>{const h=u*r*t,f=h*n+n,d=Math.pow(r,2)*Math.pow(u,2)*t,p=Math.exp(-h),y=Ae(Math.pow(u,2),r);return(-i(u)+le>0?-1:1)*((f-d)*p)/y}):(i=u=>{const c=Math.exp(-u*t),h=(u-n)*t+1;return-le+c*h},o=u=>{const c=Math.exp(-u*t),h=(n-u)*(t*t);return c*h});const a=5/t,l=zo(i,o,a);if(t=Y(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{const u=Math.pow(l,2)*s;return{stiffness:u,damping:r*2*Math.sqrt(s*u),duration:t}}}const $o=12;function zo(t,e,n){let s=n;for(let i=1;i<$o;i++)s=s-t(s)/e(s);return s}function Ae(t,e){return t*Math.sqrt(1-e*e)}const Ho=["duration","bounce"],Xo=["stiffness","damping","mass"];function Cn(t,e){return e.some(n=>t[n]!==void 0)}function Yo(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!Cn(t,Xo)&&Cn(t,Ho)){const n=Go(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function fi({keyframes:t,restDelta:e,restSpeed:n,...s}){const i=t[0],o=t[t.length-1],r={done:!1,value:i},{stiffness:a,damping:l,mass:u,duration:c,velocity:h,isResolvedFromDuration:f}=Yo({...s,velocity:-z(s.velocity||0)}),d=h||0,p=l/(2*Math.sqrt(a*u)),y=o-i,P=z(Math.sqrt(a/u)),x=Math.abs(y)<5;n||(n=x?.01:2),e||(e=x?.005:.5);let m;if(p<1){const g=Ae(P,p);m=S=>{const b=Math.exp(-p*P*S);return o-b*((d+p*P*y)/g*Math.sin(g*S)+y*Math.cos(g*S))}}else if(p===1)m=g=>o-Math.exp(-P*g)*(y+(d+P*y)*g);else{const g=P*Math.sqrt(p*p-1);m=S=>{const b=Math.exp(-p*P*S),V=Math.min(g*S,300);return o-b*((d+p*P*y)*Math.sinh(V)+g*y*Math.cosh(V))/g}}return{calculatedDuration:f&&c||null,next:g=>{const S=m(g);if(f)r.done=g>=c;else{let b=d;g!==0&&(p<1?b=hi(m,g,S):b=0);const V=Math.abs(b)<=n,U=Math.abs(o-S)<=e;r.done=V&&U}return r.value=r.done?o:S,r}}}function Vn({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=t[0],f={done:!1,value:h},d=A=>a!==void 0&&A<a||l!==void 0&&A>l,p=A=>a===void 0?l:l===void 0||Math.abs(a-A)<Math.abs(l-A)?a:l;let y=n*e;const P=h+y,x=r===void 0?P:r(P);x!==P&&(y=x-h);const m=A=>-y*Math.exp(-A/s),g=A=>x+m(A),S=A=>{const M=m(A),B=g(A);f.done=Math.abs(M)<=u,f.value=f.done?x:B};let b,V;const U=A=>{d(f.value)&&(b=A,V=fi({keyframes:[f.value,p(f.value)],velocity:hi(g,A,f.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return U(0),{calculatedDuration:null,next:A=>{let M=!1;return!V&&b===void 0&&(M=!0,S(A),U(A)),b!==void 0&&A>=b?V.next(A-b):(!M&&S(A),f)}}}const di=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,qo=1e-7,Zo=12;function Jo(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=di(r,s,i)-t,o>0?n=r:e=r;
vendor: 4,405 bytes, line 1
1while(Math.abs(o)>qo&&++a<Zo);return r}function Et(t,e,n,s){if(t===e&&n===s)return F;const i=o=>Jo(o,0,1,t,n);return o=>o===0||o===1?o:di(i(o),e,s)}const Qo=Et(.42,0,1,1),ta=Et(0,0,.58,1),pi=Et(.42,0,.58,1),ea=t=>Array.isArray(t)&&typeof t[0]!="number",mi=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,gi=t=>e=>1-t(1-e),Ze=t=>1-Math.sin(Math.acos(t)),yi=gi(Ze),na=mi(Ze),vi=Et(.33,1.53,.69,.99),Je=gi(vi),sa=mi(Je),ia=t=>(t*=2)<1?.5*Je(t):.5*(2-Math.pow(2,-10*(t-1))),ra={linear:F,easeIn:Qo,easeInOut:pi,easeOut:ta,circIn:Ze,circInOut:na,circOut:yi,backIn:Je,backInOut:sa,backOut:vi,anticipate:ia},wn=t=>{if(Array.isArray(t)){ws(t.length===4);const[e,n,s,i]=t;return Et(e,n,s,i)}else if(typeof t=="string")return ra[t];return t},wt=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s},w=(t,e,n)=>t+(e-t)*n;function ue(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function oa({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,o=0,r=0;if(!e)i=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=ue(l,a,t+1/3),o=ue(l,a,t),r=ue(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function Ut(t,e){return n=>n>0?e:t}const ce=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},aa=[Se,rt,ut],la=t=>aa.find(e=>e.test(t));function Rn(t){const e=la(t);if(!e)return!1;let n=e.parse(t);return e===ut&&(n=oa(n)),n}const Mn=(t,e)=>{const n=Rn(t),s=Rn(e);if(!n||!s)return Ut(t,e);const i={...n};return o=>(i.red=ce(n.red,s.red,o),i.green=ce(n.green,s.green,o),i.blue=ce(n.blue,s.blue,o),i.alpha=w(n.alpha,s.alpha,o),rt.transform(i))},Ce=new Set(["none","hidden"]);function ua(t,e){return Ce.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function ca(t,e){return n=>w(t,e,n)}function Qe(t){return typeof t=="number"?ca:typeof t=="string"?Ne(t)?Ut:E.test(t)?Mn:da:Array.isArray(t)?xi:typeof t=="object"?E.test(t)?Mn:ha:Ut}function xi(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>Qe(o)(o,e[r]));return o=>{for(let r=0;r<s;r++)n[r]=i[r](o);return n}}function ha(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=Qe(t[i])(t[i],e[i]));return i=>{for(const o in s)n[o]=s[o](i);return n}}function fa(t,e){var n;const s=[],i={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const r=e.types[o],a=t.indexes[r][i[r]],l=(n=t.values[a])!==null&&n!==void 0?n:0;s[o]=l,i[r]++}return s}const da=(t,e)=>{const n=J.createTransformer(e),s=Vt(t),i=Vt(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Ce.has(t)&&!i.values.length||Ce.has(e)&&!s.values.length?ua(t,e):$(xi(fa(s,i),i.values),n):Ut(t,e)};function Pi(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?w(t,e,n):Qe(t)(t,e)}function pa(t,e,n){const s=[],i=n||Pi,o=t.length-1;for(let r=0;r<o;r++){let a=i(t[r],t[r+1]);if(e){const l=Array.isArray(e)?e[r]||F:e;a=$(l,a)}s.push(a)}return s}function ma(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const o=t.length;if(ws(o===e.length),o===1)return()=>e[0];if(o===2&&t[0]===t[1])return()=>e[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const r=pa(e,s,i),a=r.length,l=u=>{let c=0;if(a>1)for(;c<t.length-2&&!(u<t[c+1]);c++);const h=wt(t[c],t[c+1],u);return r[c](h)};return n?u=>l(Z(t[0],t[o-1],u)):l}function ga(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=wt(0,e,s);t.push(w(n,1,i))}}function ya(t){const e=[0];return ga(e,t.length-1),e}function va(t,e){return t.map(n=>n*e)}function xa(t,e){return t.map(()=>e||pi).splice(0,t.length-1)}function Kt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=ea(s)?s.map(wn):wn(s),o={done:!1,value:e[0]},r=va(n&&n.length===e.length?n:ya(e),t),a=ma(r,e,{ease:Array.isArray(i)?i:xa(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const Dn=2e4;function Pa(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<Dn;)e+=n,s=t.next(e);return e>=Dn?1/0:e}const Ta=t=>{const e=({timestamp:n})=>t(n);return{start:()=>C.update(e,!0),stop:()=>H(e),now:()=>D.isProcessing?D.timestamp:q.now()}},Sa={decay:Vn,inertia:Vn,tween:Kt,keyframes:Kt,spring:fi},ba=t=>t/100;class tn extends ui{constructor({KeyframeResolver:e=Xe,...n}){super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>
1{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:a}=this.options;a&&a()};const{name:s,motionValue:i,keyframes:o}=this.options,r=(a,l)=>this.onKeyframesResolved(a,l);s&&i&&i.owner?this.resolver=i.owner.resolveKeyframes(o,r,s,i):this.resolver=new e(o,r,s,i),this.resolver.scheduleResolve()}initPlayback(e){const{type:n="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=this.options,a=Sa[n]||Kt;let l,u;a!==Kt&&typeof e[0]!="number"&&(l=$(ba,Pi(e[0],e[1])),e=[0,100]);const c=a({...this.options,keyframes:e});o==="mirror"&&(u=a({...this.options,keyframes:[...e].reverse(),velocity:-r})),c.calculatedDuration===null&&(c.calculatedDuration=Pa(c));const{calculatedDuration:h}=c,f=h+i,d=f*(s+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:f,totalDuration:d}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:s}=this;if(!s){const{keyframes:A}=this.options;return{done:!0,value:A[A.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:r,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:h}=s;if(this.startTime===null)return o.next(0);const{delay:f,repeat:d,repeatType:p,repeatDelay:y,onUpdate:P}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const x=this.currentTime-f*(this.speed>=0?1:-1),m=this.speed>=0?x<0:x>c;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let g=this.currentTime,S=o;if(d){const A=Math.min(this.currentTime,c)/h;let M=Math.floor(A),B=A%1;!B&&A>=1&&(B=1),B===1&&M--,M=Math.min(M,d+1),!!(M%2)&&(p==="reverse"?(B=1-B,y&&(B-=y/h)):p==="mirror"&&(S=r)),g=Z(0,1,B)*h}const b=m?{done:!1,value:l[0]}:S.next(g);a&&(b.value=a(b.value));let{done:V}=b;!m&&u!==null&&(V=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const U=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&V);return U&&i!==void 0&&(b.value=ee(l,this.options,i)),P&&P(b.value),U&&this.finish(),b}get duration(){const{resolved:e}=this;return e?z(e.calculatedDuration):0}get time(){return z(this.currentTime)}set time(e){e=Y(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=z(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=Ta,onPlay:n}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=s),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Ti=t=>Array.isArray(t)&&typeof t[0]=="number";function Si(t){return!!(!t||typeof t=="string"&&t in en||Ti(t)||Array.isArray(t)&&t.every(Si))}const vt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,en={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:vt([0,.65,.55,1]),circOut:vt([.55,0,1,.45]),backIn:vt([.31,.01,.66,-.59]),backOut:vt([.33,1.53,.69,.99])};function Aa(t){return bi(t)||en.easeOut}function bi(t){if(t)return Ti(t)?vt(t):Array.isArray(t)?t.map(Aa):en[t]}function Ca(t,e,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a,times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=bi(a);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:s,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"})}const Va=li(()=>
1Object.hasOwnProperty.call(Element.prototype,"animate")),Wt=10,wa=2e4;function Ra(t){return t.type==="spring"||!Si(t.ease)}function Ma(t,e){const n=new tn({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:t[0]};const i=[];let o=0;for(;!s.done&&o<wa;)s=n.sample(o),i.push(s.value),o+=Wt;return{times:void 0,keyframes:i,duration:o-Wt,ease:"linear"}}class En extends ui{constructor(e){super(e);const{name:n,motionValue:s,keyframes:i}=this.options;this.resolver=new ai(i,(o,r)=>this.onKeyframesResolved(o,r),n,s),this.resolver.scheduleResolve()}initPlayback(e,n){var s;let{duration:i=300,times:o,ease:r,type:a,motionValue:l,name:u}=this.options;if(!(!((s=l.owner)===null||s===void 0)&&s.current))return!1;if(Ra(this.options)){const{onComplete:h,onUpdate:f,motionValue:d,...p}=this.options,y=Ma(e,p);e=y.keyframes,e.length===1&&(e[1]=e[0]),i=y.duration,o=y.times,r=y.ease,a="keyframes"}const c=Ca(l.owner.current,u,e,{...this.options,duration:i,times:o,ease:r});return c.startTime=q.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:h}=this.options;l.set(ee(e,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:o,type:a,ease:r,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return z(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return z(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=Y(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return F;const{animation:s}=n;s.timeline=e,s.onfinish=null}return F}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:s,duration:i,type:o,ease:r,times:a}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:h,...f}=this.options,d=new tn({...f,keyframes:s,duration:i,type:o,ease:r,times:a,isGenerator:!0}),p=Y(this.time);u.setWithVelocity(d.sample(p-Wt).value,d.sample(p).value,Wt)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:s,repeatDelay:i,repeatType:o,damping:r,type:a}=e;return Va()&&s&&Ns.has(s)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&r!==0&&a!=="inertia"}}function Da(t,e){let n;const s=()=>{const{currentTime:i}=e,r=(i===null?0:i.value)/100;n!==r&&t(r),n=r};return C.update(s,!0),()=>H(s)}const Ea=li(()=>window.ScrollTimeline!==void 0);class La{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,n){return Promise.all(this.animations).then(e).catch(n)}getAll(e){return this.animations[0][e]}setAll(e,n){for(let s=0;s<this.animations.length;s++)this.animations[s][e]=n}attachTimeline(e){const n=this.animations.map(s=>{if(Ea()&&s.attachTimeline)s.attachTimeline(e);else return s.pause(),Da(i=>{s.time=s.duration*i},e)});return()=>{n.forEach((s,i)=>{s&&s(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const nn=(t,e,n,s={},i,o,r)=>a=>{const l=He(s,t)||{},u=l.delay||s.delay||0;let{elapsed:c=0}=s;c=c-Y(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-c,onUpdate:d=>{e.set(d),l.onUpdate&&l.onUpdate(d)},onComplete:()=>{a(),l.onComplete&&l.onComplete(),r&&r()},onStop:r,name:t,motionValue:e,element:o?void 0:i};co(l)||(h={...h,...uo(t,h)}),h.duration&&(h.duration=Y(h.duration)),h.repeatDelay&&(h.repeatDelay=Y(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let f=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(f=!0)),f&&!o&&e.get()!==void 0){const d=ee(h.keyframes,l);if(d!==void 0)return C.update(()=>{h.onUpdate(d),h.onComplete()}),new La([])}return!o&&En.supports(h)?new En(h):new tn(h)};class sn{constructor(){this.subscriptions=[]}add(e){return Zt(this.subscriptions,e),()=>Jt(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let o=0;o<i;o++){const r=this.subscriptions[o];r&&r(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ln=30,Fa=t=>!isNaN(parseFloat(t));class Ai{constructor(e,n={}){this.version="11.3.17",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,i=!0)=>{const o=q.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=q.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Fa(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new sn);const s=this.events[e].add(n);return e==="change"?()=>{s(),C.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=q.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Ln)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Ln);return ci(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function mt(t,e){return new Ai(t,e)}function Ba(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,mt(n))}function rn(t,e){const n=te(t,e);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=Nr(o[r]);Ba(t,r,a)}}function Ci(t){return t.getProps()[Ss]}class ka extends Ai{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(e){const n=Us(e);if(!n)return;const s=this.counts.get(n)||0;this.counts.set(n,s+1),s===0&&(this.output.push(n),this.update());let i=!1;return()=>{if(i)return;i=!0;const o=this.counts.get(n)-1;this.counts.set(n,o),o===0&&(Jt(this.output,n),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}function ja(t){return!!(L(t)&&t.add)}function Ve(t,e){var n;if(!t.applyWillChange)return;let s=t.getValue("willChange");if(!s&&!(!((n=t.props.style)===null||n===void 0)&&n.willChange)&&(s=new ka("auto"),t.addValue("willChange",s)),ja(s))return s.add(e)}function Oa({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}
vendor: 47,141 bytes, line 1
1function Vi(t,e,{delay:n=0,transitionOverride:s,type:i}={}){var o;let{transition:r=t.getDefaultTransition(),transitionEnd:a,...l}=e;s&&(r=s);const u=[],c=i&&t.animationState&&t.animationState.getState()[i];for(const h in l){const f=t.getValue(h,(o=t.latestValues[h])!==null&&o!==void 0?o:null),d=l[h];if(d===void 0||c&&Oa(c,h))continue;const p={delay:n,elapsed:0,...He(r||{},h)};let y=!1;if(window.HandoffAppearAnimations){const x=Ci(t);if(x){const m=window.HandoffAppearAnimations(x,h,f,C);m!==null&&(p.elapsed=m,y=!0)}}f.start(nn(h,f,d,t.shouldReduceMotion&&Q.has(h)?{type:!1}:p,t,y,Ve(t,h)));const P=f.animation;P&&u.push(P)}return a&&Promise.all(u).then(()=>{C.update(()=>{a&&rn(t,a)})}),u}function we(t,e,n={}){var s;const i=te(t,e,n.type==="exit"?(s=t.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const r=i?()=>Promise.all(Vi(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:h,staggerDirection:f}=o;return Ia(t,e,c+u,h,f,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[u,c]=l==="beforeChildren"?[r,a]:[a,r];return u().then(()=>c())}else return Promise.all([r(),a(n.delay)])}function Ia(t,e,n=0,s=0,i=1,o){const r=[],a=(t.variantChildren.size-1)*s,l=i===1?(u=0)=>u*s:(u=0)=>a-u*s;return Array.from(t.variantChildren).sort(Na).forEach((u,c)=>{u.notify("AnimationStart",e),r.push(we(u,e,{...o,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",e)))}),Promise.all(r)}function Na(t,e){return t.sortNodePosition(e)}function wi(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>we(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=we(t,e,n);else{const i=typeof e=="function"?te(t,e,n.custom):e;s=Promise.all(Vi(t,i,n))}return s.then(()=>{C.postRender(()=>{t.notify("AnimationComplete",e)})})}const Ua=[...ke].reverse(),Ka=ke.length;function Wa(t){return e=>Promise.all(e.map(({animation:n,options:s})=>wi(t,n,s)))}function _a(t){let e=Wa(t),n=Fn(),s=!0;const i=l=>(u,c)=>{var h;const f=te(t,c,l==="exit"?(h=t.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(f){const{transition:d,transitionEnd:p,...y}=f;u={...u,...y,...p}}return u};function o(l){e=l(t)}function r(l){const u=t.getProps(),c=t.getVariantContext(!0)||{},h=[],f=new Set;let d={},p=1/0;for(let P=0;P<Ka;P++){const x=Ua[P],m=n[x],g=u[x]!==void 0?u[x]:c[x],S=At(g),b=x===l?m.isActive:null;b===!1&&(p=P);let V=g===c[x]&&g!==u[x]&&S;if(V&&s&&t.manuallyAnimateOnMount&&(V=!1),m.protectedKeys={...d},!m.isActive&&b===null||!g&&!m.prevProp||Ct(g)||typeof g=="boolean")continue;let A=Ga(m.prevProp,g)||x===l&&m.isActive&&!V&&S||P>p&&S,M=!1;const B=Array.isArray(g)?g:[g];let at=B.reduce(i(x),{});b===!1&&(at={});const{prevResolvedValues:on={}}=m,Yi={...on,...at},an=k=>{A=!0,f.has(k)&&(M=!0,f.delete(k)),m.needsAnimating[k]=!0;const W=t.getValue(k);W&&(W.liveStyle=!1)};for(const k in Yi){const W=at[k],ne=on[k];if(d.hasOwnProperty(k))continue;let se=!1;ve(W)&&ve(ne)?se=!Hs(W,ne):se=W!==ne,se?W!=null?an(k):f.add(k):W!==void 0&&f.has(k)?an(k):m.protectedKeys[k]=!0}m.prevProp=g,m.prevResolvedValues=at,m.isActive&&(d={...d,...at}),s&&t.blockInitialAnimation&&(A=!1),A&&(!V||M)&&h.push(...B.map(k=>({animation:k,options:{type:x}})))}if(f.size){const P={};f.forEach(x=>{const m=t.getBaseTarget(x),g=t.getValue(x);g&&(g.liveStyle=!0),P[x]=m??null}),h.push({animation:P})}let y=!!h.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(y=!1),s=!1,y?e(h):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=t.variantChildren)===null||c===void 0||c.forEach(f=>{var d;return(d=f.animationState)===null||d===void 0?void 0:d.setActive(l,u)}),n[l].isActive=u;const h=r(l);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:r,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Fn(),s=!0}}}function Ga(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Hs(e,t):!1}function et(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Fn(){return{animate:et(!0),whileInView:et(),whileHover:et(),whileTap:et(),whileDrag:et(),whileFocus:et(),exit:et()}}class $a extends tt{constructor(e){super(e),e.animationState||(e.animationState=_a(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Ct(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let za=0;class Ha extends tt{constructor(){super(...arguments),this.id=za++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const Xa={animation:{Feature:$a},exit:{Feature:Ha}},Bn=(t,e)=>Math.abs(t-e);function Ya(t,e){const n=Bn(t.x,e.x),s=Bn(t.y,e.y);return Math.sqrt(n**2+s**2)}class Ri{constructor(e,n,{transformPagePoint:s,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=fe(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,d=Ya(h.offset,{x:0,y:0})>=3;if(!f&&!d)return;const{point:p}=h,{timestamp:y}=D;this.history.push({...p,timestamp:y});const{onStart:P,onMove:x}=this.handlers;f||(P&&P(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,h)},this.handlePointerMove=(h,f)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=he(f,this.transformPagePoint),C.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();const{onEnd:d,onSessionEnd:p,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const P=fe(h.type==="pointercancel"?this.lastMoveEventInfo:he(f,this.transformPagePoint),this.history);this.startEvent&&d&&d(h,P),p&&p(h,P)},!Ws(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.contextWindow=i||window;const r=Qt(e),a=he(r,this.transformPagePoint),{point:l}=a,{timestamp:u}=D;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(e,fe(a,this.history)),this.removeListeners=$(G(this.contextWindow,"pointermove",this.handlePointerMove),G(this.contextWindow,"pointerup",this.handlePointerUp),G(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),H(this.updatePoint)}}function he(t,e){return e?{point:e(t.point)}:t}function kn(t,e){return{x:t.x-e.x,y:t.y-e.y}}function fe({point:t},e){return{point:t,delta:kn(t,Mi(e)),offset:kn(t,qa(e)),velocity:Za(e,.1)}}function qa(t){return t[0]}function Mi(t){return t[t.length-1]}function Za(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=Mi(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>Y(e)));)n--;if(!s)return{x:0,y:0};const o=z(i.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const r={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}const Di=1e-4,Ja=1-Di,Qa=1+Di,Ei=.01,tl=0-Ei,el=0+Ei;function O(t){return t.max-t.min}function nl(t,e,n){return Math.abs(t-e)<=n}function jn(t,e,n,s=.5){t.origin=s,t.originPoint=w(e.min,e.max,t.origin),t.scale=O(n)/O(e),t.translate=w(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Ja&&t.scale<=Qa||isNaN(t.scale))&&(t.scale=1),(t.translate>=tl&&t.translate<=el||isNaN(t.translate))&&(t.translate=0)}function St(t,e,n,s){jn(t.x,e.x,n.x,s?s.originX:void 0),jn(t.y,e.y,n.y,s?s.originY:void 0)}function On(t,e,n){t.min=n.min+e.min,t.max=t.min+O(e)}function sl(t,e,n){On(t.x,e.x,n.x),On(t.y,e.y,n.y)}function In(t,e,n){t.min=e.min-n.min,t.max=t.min+O(e)}function bt(t,e,n){In(t.x,e.x,n.x),In(t.y,e.y,n.y)}function il(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?w(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?w(n,t,s.max):Math.min(t,n)),t}function Nn(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function rl(t,{top:e,left:n,bottom:s,right:i}){return{x:Nn(t.x,n,i),y:Nn(t.y,e,s)}}function Un(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function ol(t,e){return{x:Un(t.x,e.x),y:Un(t.y,e.y)}}function al(t,e){let n=.5;const s=O(t),i=O(e);return i>s?n=wt(e.min,e.max-s,t.min):s>i&&(n=wt(t.min,t.max-i,e.min)),Z(0,1,n)}function ll(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Re=.35;function ul(t=Re){return t===!1?t=0:t===!0&&(t=Re),{x:Kn(t,"left","right"),y:Kn(t,"top","bottom")}}function Kn(t,e,n){return{min:Wn(t,e),max:Wn(t,n)}}function Wn(t,e){return typeof t=="number"?t:t[e]||0}const _n=()=>({translate:0,scale:1,origin:0,originPoint:0}),ct=()=>({x:_n(),y:_n()}),Gn=()=>({min:0,max:0}),R=()=>({x:Gn(),y:Gn()});function N(t){return[t("x"),t("y")]}function Li({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function cl({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function hl(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function de(t){return t===void 0||t===1}function Me({scale:t,scaleX:e,scaleY:n}){return!de(t)||!de(e)||!de(n)}function nt(t){return Me(t)||Fi(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Fi(t){return $n(t.x)||$n(t.y)}function $n(t){return t&&t!=="0%"}function _t(t,e,n){const s=t-n,i=e*s;return n+i}function zn(t,e,n,s,i){return i!==void 0&&(t=_t(t,i,s)),_t(t,n,s)+e}function De(t,e=0,n=1,s,i){t.min=zn(t.min,e,n,s,i),t.max=zn(t.max,e,n,s,i)}function Bi(t,{x:e,y:n}){De(t.x,e.translate,e.scale,e.originPoint),De(t.y,n.translate,n.scale,n.originPoint)}const Hn=.999999999999,Xn=1.0000000000001;function fl(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,r;for(let a=0;a<i;a++){o=n[a],r=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&ft(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,Bi(t,r)),s&&nt(o.latestValues)&&ft(t,o.latestValues))}e.x<Xn&&e.x>Hn&&(e.x=1),e.y<Xn&&e.y>Hn&&(e.y=1)}function ht(t,e){t.min=t.min+e,t.max=t.max+e}function Yn(t,e,n,s,i=.5){const o=w(t.min,t.max,i);De(t,e,n,o,s)}function ft(t,e){Yn(t.x,e.x,e.scaleX,e.scale,e.originX),Yn(t.y,e.y,e.scaleY,e.scale,e.originY)}function ki(t,e){return Li(hl(t.getBoundingClientRect(),e))}function dl(t,e,n){const s=ki(t,n),{scroll:i}=e;return i&&(ht(s.x,i.offset.x),ht(s.y,i.offset.y)),s}const ji=({current:t})=>t?t.ownerDocument.defaultView:null,pl=new WeakMap;class ml{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=R(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Qt(c,"page").point)},o=(c,h)=>{var f;const{drag:d,dragPropagation:p,onDragStart:y}=this.getProps();if(d&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Gs(d),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),N(x=>{let m=this.getAxisMotionValue(x).get()||0;if(K.test(m)){const{projection:g}=this.visualElement;if(g&&g.layout){const S=g.layout.layoutBox[x];S&&(m=O(S)*(parseFloat(m)/100))}}this.originPoint[x]=m}),y&&C.postRender(()=>y(c,h)),(f=this.removeWillChange)===null||f===void 0||f.call(this),this.removeWillChange=Ve(this.visualElement,"transform");const{animationState:P}=this.visualElement;P&&P.setActive("whileDrag",!0)},r=(c,h)=>{const{dragPropagation:f,dragDirectionLock:d,onDirectionLock:p,onDrag:y}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:P}=h;if(d&&this.currentDirection===null){this.currentDirection=gl(P),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",h.point,P),this.updateAxis("y",h.point,P),this.visualElement.render(),y&&y(c,h)},a=(c,h)=>this.stop(c,h),l=()=>N(c=>{var h;return this.getAnimationState(c)==="paused"&&((h=this.getAxisMotionValue(c).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Ri(e,{onSessionStart:i,onStart:o,onMove:r,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:ji(this.visualElement)})}stop(e,n){var s;(s=this.removeWillChange)===null||s===void 0||s.call(this);const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:r}=this.getProps();r&&C.postRender(()=>r(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!Bt(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=il(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:s}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&<(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=rl(i.layoutBox,n):this.constraints=!1,this.elastic=ul(s),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&N(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=ll(i.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!lt(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=dl(s,i.root,this.visualElement.getTransformPagePoint());let r=ol(i.layout.layoutBox,o);if(n){const a=n(cl(r));this.hasMutatedConstraints=!!a,a&&(r=Li(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=N(c=>{if(!Bt(c,n,this.currentDirection))return;let h=l&&l[c]||{};r&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,p={type:"inertia",velocity:s?e[c]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(c,p)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return s.start(nn(e,s,0,n,this.visualElement,!1,Ve(this.visualElement,e)))}stopAnimation(){N(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){N(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){N(n=>{const{drag:s}=this.getProps();if(!Bt(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[n];o.set(e[n]-w(r,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!lt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};N(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const l=a.get();i[r]=al({min:l,max:l},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),N(r=>{if(!Bt(r,e,null))return;const a=this.getAxisMotionValue(r),{min:l,max:u}=this.constraints[r];a.set(w(l,u,i[r]))})}addListeners(){if(!this.visualElement.current)return;pl.set(this.visualElement,this);const e=this.visualElement.current,n=G(e,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();lt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),C.read(s);const r=_(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(N(c=>{const h=this.getAxisMotionValue(c);h&&(this.originPoint[c]+=l[c].translate,h.set(h.get()+l[c].translate))}),this.visualElement.render())});return()=>{r(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=Re,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function Bt(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function gl(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class yl extends tt{constructor(e){super(e),this.removeGroupControls=F,this.removeListeners=F,this.controls=new ml(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||F}unmount(){this.removeGroupControls(),this.removeListeners()}}const qn=t=>(e,n)=>{t&&C.postRender(()=>t(e,n))};class vl extends tt{constructor(){super(...arguments),this.removePointerDownListener=F}onPointerDown(e){this.session=new Ri(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ji(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:qn(e),onStart:qn(n),onMove:s,onEnd:(o,r)=>{delete this.session,i&&C.postRender(()=>i(o,r))}}}mount(){this.removePointerDownListener=G(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function xl(){const t=v.useContext(zt);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:s}=t,i=v.useId();v.useEffect(()=>s(i),[]);const o=v.useCallback(()=>n&&n(i),[i,n]);return!e&&n?[!1,o]:[!0]}const Ot={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Zn(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const yt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(T.test(t))t=parseFloat(t);else return t;const n=Zn(t,e.target.x),s=Zn(t,e.target.y);return`${n}% ${s}%`}},Pl={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=J.parse(t);if(i.length>5)return s;const o=J.createTransformer(t),r=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+r]/=a,i[1+r]/=l;const u=w(a,l,.5);return typeof i[2+r]=="number"&&(i[2+r]/=u),typeof i[3+r]=="number"&&(i[3+r]/=u),o(i)}};class Tl extends v.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=e;pr(Sl),o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Ot.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,r=s.projection;return r&&(r.isPresent=o,i||e.layoutDependency!==n||n===void 0?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||C.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Be.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Oi(t){const[e,n]=xl(),s=v.useContext(Oe);return j.jsx(Tl,{...t,layoutGroup:s,switchLayoutGroup:v.useContext(As),isPresent:e,safeToRemove:n})}const Sl={borderRadius:{...yt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:yt,borderTopRightRadius:yt,borderBottomLeftRadius:yt,borderBottomRightRadius:yt,boxShadow:Pl},Ii=["TopLeft","TopRight","BottomLeft","BottomRight"],bl=Ii.length,Jn=t=>typeof t=="string"?parseFloat(t):t,Qn=t=>typeof t=="number"||T.test(t);function Al(t,e,n,s,i,o){i?(t.opacity=w(0,n.opacity!==void 0?n.opacity:1,Cl(s)),t.opacityExit=w(e.opacity!==void 0?e.opacity:1,0,Vl(s))):o&&(t.opacity=w(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let r=0;r<bl;r++){const a=`border${Ii[r]}Radius`;let l=ts(e,a),u=ts(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Qn(l)===Qn(u)?(t[a]=Math.max(w(Jn(l),Jn(u),s),0),(K.test(u)||K.test(l))&&(t[a]+="%")):t[a]=u}(e.rotate||n.rotate)&&(t.rotate=w(e.rotate||0,n.rotate||0,s))}function ts(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Cl=Ni(0,.5,yi),Vl=Ni(.5,.95,F);function Ni(t,e,n){return s=>s<t?0:s>e?1:n(wt(t,e,s))}function es(t,e){t.min=e.min,t.max=e.max}function I(t,e){es(t.x,e.x),es(t.y,e.y)}function ns(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function ss(t,e,n,s,i){return t-=e,t=_t(t,1/n,s),i!==void 0&&(t=_t(t,1/i,s)),t}function wl(t,e=0,n=1,s=.5,i,o=t,r=t){if(K.test(e)&&(e=parseFloat(e),e=w(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=w(o.min,o.max,s);t===o&&(a-=e),t.min=ss(t.min,e,n,a,i),t.max=ss(t.max,e,n,a,i)}function is(t,e,[n,s,i],o,r){wl(t,e[n],e[s],e[i],e.scale,o,r)}const Rl=["x","scaleX","originX"],Ml=["y","scaleY","originY"];function rs(t,e,n,s){is(t.x,e,Rl,n?n.x:void 0,s?s.x:void 0),is(t.y,e,Ml,n?n.y:void 0,s?s.y:void 0)}function os(t){return t.translate===0&&t.scale===1}function Ui(t){return os(t.x)&&os(t.y)}function as(t,e){return t.min===e.min&&t.max===e.max}function Dl(t,e){return as(t.x,e.x)&&as(t.y,e.y)}function ls(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Ki(t,e){return ls(t.x,e.x)&&ls(t.y,e.y)}function us(t){return O(t.x)/O(t.y)}function cs(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class El{constructor(){this.members=[]}add(e){Zt(this.members,e),e.scheduleRender()}remove(e){if(Jt(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){s=o;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Ll(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y,r=(n==null?void 0:n.z)||0;if((i||o||r)&&(s=`translate3d(${i}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:h,rotateY:f,skewX:d,skewY:p}=n;u&&(s=`perspective(${u}px) ${s}`),c&&(s+=`rotate(${c}deg) `),h&&(s+=`rotateX(${h}deg) `),f&&(s+=`rotateY(${f}deg) `),d&&(s+=`skewX(${d}deg) `),p&&(s+=`skewY(${p}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const Fl=(t,e)=>t.depth-e.depth;class Bl{constructor(){this.children=[],this.isDirty=!1}add(e){Zt(this.children,e),this.isDirty=!0}remove(e){Jt(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Fl),this.isDirty=!1,this.children.forEach(e)}}function kl(t,e){const n=q.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(H(s),t(o-e))};return C.read(s,!0),()=>H(s)}function jl(t){return t instanceof SVGElement&&t.tagName!=="svg"}function Ol(t,e,n){const s=L(t)?t:mt(t);return s.start(nn("",s,e,n)),s.animation}const st={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},xt=typeof window<"u"&&window.MotionDebug!==void 0,pe=["","X","Y","Z"],Il={visibility:"hidden"},hs=1e3;let Nl=0;function me(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function Wi(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return!1;const{visualElement:e}=t.options;return e?Ci(e)?!0:t.parent&&!t.parent.hasCheckedOptimisedAppear?Wi(t.parent):!1:!1}function _i({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e==null?void 0:e()){this.id=Nl++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,xt&&(st.totalNodes=st.resolvedTargetDeltas=st.recalculatedProjection=0),this.nodes.forEach(Wl),this.nodes.forEach(Hl),this.nodes.forEach(Xl),this.nodes.forEach(_l),xt&&window.MotionDebug.record(st)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Bl)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new sn),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const l=this.eventHandlers.get(r);l&&l.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=jl(r),this.instance=r;const{layoutId:l,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),t){let h;const f=()=>this.root.updateBlockedByResize=!1;t(r,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=kl(f,250),Ot.hasAnimatedSinceResize&&(Ot.hasAnimatedSinceResize=!1,this.nodes.forEach(ds))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeTargetChanged:d,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||Ql,{onLayoutAnimationStart:P,onLayoutAnimationComplete:x}=c.getProps(),m=!this.targetLayout||!Ki(this.targetLayout,p)||d,g=!f&&d;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||g||f&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,g);const S={...He(y,"layout"),onPlay:P,onComplete:x};(c.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else f||ds(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,H(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.forEach(Yl),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.HandoffCancelAllAnimations&&Wi(this)&&window.HandoffCancelAllAnimations(),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const h=this.path[c];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(fs);return}this.isUpdating||this.nodes.forEach($l),this.isUpdating=!1,this.nodes.forEach(zl),this.nodes.forEach(Ul),this.nodes.forEach(Kl),this.clearAllSnapshots();const a=q.now();D.delta=Z(0,1e3/60,a-D.timestamp),D.timestamp=a,D.isProcessing=!0,ie.update.process(D),ie.preRender.process(D),ie.render.process(D),D.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Be.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Gl),this.sharedNodes.forEach(ql)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,C.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){C.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutCorrected=R(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a){const l=s(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Ui(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;r&&(a||nt(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return r&&(l=this.removeTransform(l)),tu(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var r;const{visualElement:a}=this.options;if(!a)return R();const l=a.measureViewportBox();if(!(((r=this.scroll)===null||r===void 0?void 0:r.wasRoot)||this.path.some(eu))){const{scroll:c}=this.root;c&&(ht(l.x,c.offset.x),ht(l.y,c.offset.y))}return l}removeElementScroll(r){var a;const l=R();if(I(l,r),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:h,options:f}=c;c!==this.root&&h&&f.layoutScroll&&(h.wasRoot&&I(l,r),ht(l.x,h.offset.x),ht(l.y,h.offset.y))}return l}applyTransform(r,a=!1){const l=R();I(l,r);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&ft(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),nt(c.latestValues)&&ft(l,c.latestValues)}return nt(this.latestValues)&&ft(l,this.latestValues),l}removeTransform(r){const a=R();I(a,r);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!nt(u.latestValues))continue;Me(u.latestValues)&&u.updateSnapshot();const c=R(),h=u.measurePageBox();I(c,h),rs(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return nt(this.latestValues)&&rs(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}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!==D.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(r||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:f}=this.options;if(!(!this.layout||!(h||f))){if(this.resolvedRelativeTargetAt=D.timestamp,!this.targetDelta&&!this.relativeTarget){const d=this.getClosestProjectingParent();d&&d.layout&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=R(),this.relativeTargetOrigin=R(),bt(this.relativeTargetOrigin,this.layout.layoutBox,d.layout.layoutBox),I(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=R(),this.targetWithTransforms=R()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),sl(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):I(this.target,this.layout.layoutBox),Bi(this.target,this.targetDelta)):I(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const d=this.getClosestProjectingParent();d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=R(),this.relativeTargetOrigin=R(),bt(this.relativeTargetOrigin,this.target,d.target),I(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}xt&&st.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Me(this.parent.latestValues)||Fi(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var r;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||!((r=this.parent)===null||r===void 0)&&r.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===D.timestamp&&(u=!1),u)return;const{layout:c,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||h))return;I(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,d=this.treeScale.y;fl(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=R());const{target:p}=a;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ns(this.prevProjectionDelta.x,this.projectionDelta.x),ns(this.prevProjectionDelta.y,this.projectionDelta.y)),St(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==d||!cs(this.projectionDelta.x,this.prevProjectionDelta.x)||!cs(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p)),xt&&st.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),r){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ct(),this.projectionDelta=ct(),this.projectionDeltaWithTransform=ct()}setAnimationOrigin(r,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},h=ct();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=R(),d=l?l.source:void 0,p=this.layout?this.layout.source:void 0,y=d!==p,P=this.getStack(),x=!P||P.members.length<=1,m=!!(y&&!x&&this.options.crossfade===!0&&!this.path.some(Jl));this.animationProgress=0;let g;this.mixTargetDelta=S=>{const b=S/1e3;ps(h.x,r.x,b),ps(h.y,r.y,b),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(bt(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Zl(this.relativeTarget,this.relativeTargetOrigin,f,b),g&&Dl(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=R()),I(g,this.relativeTarget)),y&&(this.animationValues=c,Al(c,u,this.latestValues,b,m,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=b},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(H(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=C.update(()=>{Ot.hasAnimatedSinceResize=!0,this.currentAnimation=Ol(0,hs,{...r,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onComplete:()=>{r.onComplete&&r.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(hs),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=r;if(!(!a||!l||!u)){if(this!==r&&this.layout&&u&&Gi(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||R();const h=O(this.layout.layoutBox.x);l.x.min=r.target.x.min,l.x.max=l.x.min+h;const f=O(this.layout.layoutBox.y);l.y.min=r.target.y.min,l.y.max=l.y.min+f}I(a,l),ft(a,c),St(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new El),this.sharedNodes.get(r).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){var r;const{layoutId:a}=this.options;return a?((r=this.getStack())===null||r===void 0?void 0:r.lead)||this:this}getPrevLead(){var r;const{layoutId:a}=this.options;return a?(r=this.getStack())===null||r===void 0?void 0:r.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:l}=r;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&me("z",r,u,this.animationValues);for(let c=0;c<pe.length;c++)me(`rotate${pe[c]}`,r,u,this.animationValues),me(`skew${pe[c]}`,r,u,this.animationValues);r.render();for(const c in u)r.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);r.scheduleRender()}getProjectionStyles(r){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Il;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=kt(r==null?void 0:r.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const y={};return this.options.layoutId&&(y.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,y.pointerEvents=kt(r==null?void 0:r.pointerEvents)||""),this.hasProjected&&!nt(this.latestValues)&&(y.transform=c?c({},""):"none",this.hasProjected=!1),y}const f=h.animationValues||h.latestValues;this.applyTransformsToTarget(),u.transform=Ll(this.projectionDeltaWithTransform,this.treeScale,f),c&&(u.transform=c(f,u.transform));const{x:d,y:p}=this.projectionDelta;u.transformOrigin=`${d.origin*100}% ${p.origin*100}% 0`,h.animationValues?u.opacity=h===this?(l=(a=f.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:u.opacity=h===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const y in It){if(f[y]===void 0)continue;const{correct:P,applyTo:x}=It[y],m=u.transform==="none"?f[y]:P(f[y],h);if(x){const g=x.length;for(let S=0;S<g;S++)u[x[S]]=m}else u[y]=m}return this.options.layoutId&&(u.pointerEvents=h===this?kt(r==null?void 0:r.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>{var a;return(a=r.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(fs),this.root.sharedNodes.clear()}}}function Ul(t){t.updateLayout()}function Kl(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=t.layout,{animationType:o}=t.options,r=n.source!==t.layout.source;o==="size"?N(h=>{const f=r?n.measuredBox[h]:n.layoutBox[h],d=O(f);f.min=s[h].min,f.max=f.min+d}):Gi(o,n.layoutBox,s)&&N(h=>{const f=r?n.measuredBox[h]:n.layoutBox[h],d=O(s[h]);f.max=f.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+d)});const a=ct();St(a,s,n.layoutBox);const l=ct();r?St(l,t.applyTransform(i,!0),n.measuredBox):St(l,s,n.layoutBox);const u=!Ui(a);let c=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:d}=h;if(f&&d){const p=R();bt(p,n.layoutBox,f.layoutBox);const y=R();bt(y,s,d.layoutBox),Ki(p,y)||(c=!0),h.options.layoutRoot&&(t.relativeTarget=y,t.relativeTargetOrigin=p,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function Wl(t){xt&&st.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function _l(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Gl(t){t.clearSnapshot()}function fs(t){t.clearMeasurements()}function $l(t){t.isLayoutDirty=!1}function zl(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ds(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Hl(t){t.resolveTargetDelta()}function Xl(t){t.calcProjection()}
1function Yl(t){t.resetSkewAndRotation()}function ql(t){t.removeLeadSnapshot()}function ps(t,e,n){t.translate=w(e.translate,0,n),t.scale=w(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function ms(t,e,n,s){t.min=w(e.min,n.min,s),t.max=w(e.max,n.max,s)}function Zl(t,e,n,s){ms(t.x,e.x,n.x,s),ms(t.y,e.y,n.y,s)}function Jl(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Ql={duration:.45,ease:[.4,0,.1,1]},gs=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ys=gs("applewebkit/")&&!gs("chrome/")?Math.round:F;function vs(t){t.min=ys(t.min),t.max=ys(t.max)}function tu(t){vs(t.x),vs(t.y)}function Gi(t,e,n){return t==="position"||t==="preserve-aspect"&&!nl(us(e),us(n),.2)}function eu(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const nu=_i({attachResizeListener:(t,e)=>_(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ge={current:void 0},$i=_i({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ge.current){const t=new nu({});t.mount(window),t.setOptions({layoutScroll:!0}),ge.current=t}return ge.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),su={pan:{Feature:vl},drag:{Feature:yl,ProjectionNode:$i,MeasureLayout:Oi}},Ee={current:null},zi={current:!1};function iu(){if(zi.current=!0,!!Fe)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ee.current=t.matches;t.addListener(e),e()}else Ee.current=!1}function ru(t,e,n){for(const s in e){const i=e[s],o=n[s];if(L(i))t.addValue(s,i);else if(L(o))t.addValue(s,mt(i,{owner:t}));else if(o!==i)if(t.hasValue(s)){const r=t.getValue(s);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=t.getStaticValue(s);t.addValue(s,mt(r!==void 0?r:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const xs=new WeakMap,ou=[...Js,E,J],au=t=>ou.find(Zs(t)),Ps=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],lu=je.length;class uu{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:o,visualState:r},a={}){this.applyWillChange=!1,this.resolveKeyframes=(f,d,p,y)=>new this.KeyframeResolver(f,d,p,y,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Xe,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.isRenderScheduled=!1,this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.isRenderScheduled=!1,this.scheduleRender=()=>{this.isRenderScheduled||(this.isRenderScheduled=!0,C.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=r;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=Yt(n),this.isVariantNode=Vs(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in h){const d=h[f];l[f]!==void 0&&L(d)&&d.set(l[f],!1)}}mount(e){this.current=e,xs.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),zi.current||iu(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ee.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){xs.delete(this.current),this.projection&&this.projection.unmount(),H(this.notifyUpdate),H(this.render),this.valueSubscriptions.forEach(e
1=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){const s=Q.has(e),i=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&C.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in dt){const n=dt[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):R()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<Ps.length;s++){const i=Ps[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,r=e[o];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=ru(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const s=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(s.initial=this.props.initial),s}const n={};for(let s=0;s<lu;s++){const i=je[s],o=this.props[i];(At(o)||o===!1)&&(n[i]=o)}return n}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=mt(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){var s;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(s=this.getBaseTargetFromProps(this.props,e))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(Ys(i)||Xs(i))?i=parseFloat(i):!au(i)&&J.test(n)&&(i=oi(e,n)),this.setBaseTarget(e,L(i)?i.get():i)),L(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:s}=this.props;let i;if(typeof s=="string"||typeof s=="object"){const r=ze(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);r&&(i=r[e])}if(s&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!L(o)?o:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new sn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Hi extends uu{constructor(){super(...arguments),this.KeyframeResolver=ai}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}}function cu(t){return window.getComputedStyle(t)}class hu extends Hi{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=ks}readValueFromInstance(e,n){if(Q.has(n)){const s=qe(n);return s&&s.default||0}else{const s=cu(e),i=(Ds(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return ki(e,n)}build(e,n,s){Ke(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return $e(e,n,s)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;L(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class fu extends Hi{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=R}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Q.has(n)){const s=qe(n);return s&&s.default||0}return n=js.has(n)?n:Xt(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return Is(e,n,s)}build(e,n,s){_e(e,n,this.isSVGTag,s.transformTemplate)}renderInstance(e,n,s,i){Os(e,n,s,i)}mount(e){this.isSVGTag=Ge(e.tagName),super.mount(e)}}const du=(t,e)=>Ie(t)?new fu(e):new hu(e,{allowProjection:t!==v.Fragment}),pu={layout:{ProjectionNode:$i,MeasureLayout:Oi}},mu={...Xa,...io,...su,...pu},Du=fr((t,e)=>$r(t,e,mu,du));function Xi(){const t=v.useRef(!1);return Ht(()=>(t.current=!0,()=>{t.current=!1}),[]),t}function gu(){const t=Xi(),[e,n]=v.useState(0),s=v.useCallback(()=>{t.current&&n(e+1)},[e]);return[v.useCallback(()=>C.postRender(s),[s]),e]}class yu extends v.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function vu({children:t,isPresent:e}){const n=v.useId(),s=v.useRef(null),i=v.useRef({width:0,height:0,top:0,left:0}),{nonce:o}=v.useContext(Gt);return v.useInsertionEffect(()=>{const{width:r,height:a,top:l,left:u}=i.current;if(e||!s.current||!r||!a)return;s.current.dataset.motionPopId=n;const c=document.createElement("style");return o&&(c.nonce=o),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` 2 [data-motion-pop-id="${n}"] { 3 position: absolute !important; 4 width: ${r}px !important; 5 height: ${a}px !important; 6 top: ${l}px !important; 7 left: ${u}px !important; 8 } 9 `),()=>{document.head.removeChild(c)}},[e]),j.jsx(yu,{isPresent:e,childRef:s,sizeRef:i,children:v.cloneElement(t,{ref:s})})}const ye=({children:t,initial:e,isPresent:n,onExitComplete:s,custom:i,presenceAffectsLayout:o,mode:r})=>{const a=qt(xu),l=v.useId(),u=v.useMemo(()=>({id:l,initial:e,isPresent:n,custom:i,onExitComplete:c=>{a.set(c,!0);for(const h of a.values())if(!h)return;s&&s()},register:c=>(a.set(c,!1),()=>a.delete(c))}),o?[Math.random()]:[n]);return v.useMemo(()=>{a.forEach((c,h)=>a.set(h,!1))},[n]),v.useEffect(()=>{!n&&!a.size&&s&&s()},[n]),r==="popLayout"&&(t=j.jsx(vu,{isPresent:n,children:t})),j.jsx(zt.Provider,{value:u,children:t})};function xu(){return new Map}function Pu(t){return v.useEffect(()=>()=>t(),[])}const it=t=>t.key||"";function Tu(t,e){t.forEach(n=>{const s=it(n);e.set(s,n)})}function Su(t){const e=[];
9return v.Children.forEach(t,n=>{v.isValidElement(n)&&e.push(n)}),e}const Eu=({children:t,custom:e,initial:n=!0,onExitComplete:s,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:r="sync"})=>{const a=v.useContext(Oe).forceRender||gu()[0],l=Xi(),u=Su(t);let c=u;const h=v.useRef(new Map).current,f=v.useRef(c),d=v.useRef(new Map).current,p=v.useRef(!0);if(Ht(()=>{p.current=!1,Tu(u,d),f.current=c}),Pu(()=>{p.current=!0,d.clear(),h.clear()}),p.current)return j.jsx(j.Fragment,{children:c.map(m=>j.jsx(ye,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:r,children:m},it(m)))});c=[...c];const y=f.current.map(it),P=u.map(it),x=y.length;for(let m=0;m<x;m++){const g=y[m];P.indexOf(g)===-1&&!h.has(g)&&h.set(g,void 0)}return r==="wait"&&h.size&&(c=[]),h.forEach((m,g)=>{if(P.indexOf(g)!==-1)return;const S=d.get(g);if(!S)return;const b=y.indexOf(g);let V=m;if(!V){const U=()=>{h.delete(g);const A=Array.from(d.keys()).filter(M=>!P.includes(M));if(A.forEach(M=>d.delete(M)),f.current=u.filter(M=>{const B=it(M);return B===g||A.includes(B)}),!h.size){if(l.current===!1)return;a(),s&&s()}};V=j.jsx(ye,{isPresent:!1,onExitComplete:U,custom:e,presenceAffectsLayout:o,mode:r,children:S},it(S)),h.set(g,V)}c.splice(b,0,V)}),c=c.map(m=>{const g=m.key;return h.has(g)?m:j.jsx(ye,{isPresent:!0,presenceAffectsLayout:o,mode:r,children:m},it(m))}),j.jsx(j.Fragment,{children:h.size?c:c.map(m=>v.cloneElement(m))})};function Lu(t){const e=qt(()=>mt(t)),{isStatic:n}=v.useContext(Gt);if(n){const[,s]=v.useState(t);v.useEffect(()=>e.on("change",s),[])}return e}function bu(t){t.values.forEach(e=>e.stop())}function Le(t,e){[...e].reverse().forEach(s=>{const i=t.getVariant(s);i&&rn(t,i),t.variantChildren&&t.variantChildren.forEach(o=>{Le(o,e)})})}function Au(t,e){if(Array.isArray(e))return Le(t,e);if(typeof e=="string")return Le(t,[e]);rn(t,e)}function Cu(){const t=new Set,e={subscribe(n){return t.add(n),()=>void t.delete(n)},start(n,s){const i=[];return t.forEach(o=>{i.push(wi(o,n,{transitionOverride:s}))}),Promise.all(i)},set(n){return t.forEach(s=>{Au(s,n)})},stop(){t.forEach(n=>{bu(n)})},mount(){return()=>{e.stop()}}};return e}function Vu(){const t=qt(Cu);return Ht(t.mount,[]),t}const Fu=Vu;export{Eu as A,Fu as a,Du as m,Lu as u};
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.