PageSourceSearch

https://flecs.tech/wp-content/plugins/flecs-landing-runtime/releas…/1.7.3-dadaa96e94fc/assets/Hero-CVQS2Jvy.js

js flecs.tech collected 2026-10-09 22:41:12 UTC 125,493 bytes, 13 lines download raw bytes

vendor: 33,747 bytes, lines 1-10
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Hero3D-DntbCCbk.js","./hybridContent-DS3p3aT4.js","./hybridContent-DIR2R44z.css"])))=>i.map(i=>d[i]);
2var hr=Object.defineProperty;var dr=(t,e,n)=>e in t?hr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var pn=(t,e,n)=>dr(t,typeof e!="symbol"?e+"":e,n);import{r as x,j as m,v as fr,_ as mr}from"./hybridContent-DS3p3aT4.js";import{C as gn,I as K,B as yn,S as pr,u as vn}from"./solutionSections-Caao6tx_.js";const Ee=x.createContext({});function Le(t){const e=x.useRef(null);return e.current===null&&(e.current=t()),e.current}const Xt=x.createContext(null),je=x.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class gr extends x.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 yr({children:t,isPresent:e}){const n=x.useId(),s=x.useRef(null),i=x.useRef({width:0,height:0,top:0,left:0}),{nonce:o}=x.useContext(je);return x.useInsertionEffect(()=>{const{width:r,height:a,top:l,left:c}=i.current;if(e||!s.current||!r||!a)return;s.current.dataset.motionPopId=n;const u=document.createElement("style");return o&&(u.nonce=o),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
3          [data-motion-pop-id="${n}"] {
4            position: absolute !important;
5            width: ${r}px !important;
6            height: ${a}px !important;
7            top: ${l}px !important;
8            left: ${c}px !important;
9          }
10        `),()=>{document.head.removeChild(u)}},[e]),m.jsx(gr,{isPresent:e,childRef:s,sizeRef:i,children:x.cloneElement(t,{ref:s})})}const vr=({children:t,initial:e,isPresent:n,onExitComplete:s,custom:i,presenceAffectsLayout:o,mode:r})=>{const a=Le(xr),l=x.useId(),c=x.useCallback(h=>{a.set(h,!0);for(const d of a.values())if(!d)return;s&&s()},[a,s]),u=x.useMemo(()=>({id:l,initial:e,isPresent:n,custom:i,onExitComplete:c,register:h=>(a.set(h,!1),()=>a.delete(h))}),o?[Math.random(),c]:[n,c]);return x.useMemo(()=>{a.forEach((h,d)=>a.set(d,!1))},[n]),x.useEffect(()=>{!n&&!a.size&&s&&s()},[n]),r==="popLayout"&&(t=m.jsx(yr,{isPresent:n,children:t})),m.jsx(Xt.Provider,{value:u,children:t})};function xr(){return new Map}function Fs(t=!0){const e=x.useContext(Xt);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,o=x.useId();x.useEffect(()=>{t&&i(o)},[t]);const r=x.useCallback(()=>t&&s&&s(o),[o,s,t]);return!n&&s?[!1,r]:[!0]}const kt=t=>t.key||"";function xn(t){const e=[];return x.Children.forEach(t,n=>{x.isValidElement(n)&&e.push(n)}),e}const ke=typeof window<"u",Bs=ke?x.useLayoutEffect:x.useEffect,Tr=({children:t,custom:e,initial:n=!0,onExitComplete:s,presenceAffectsLayout:i=!0,mode:o="sync",propagate:r=!1})=>{const[a,l]=Fs(r),c=x.useMemo(()=>xn(t),[t]),u=r&&!a?[]:c.map(kt),h=x.useRef(!0),d=x.useRef(c),f=Le(()=>new Map),[p,g]=x.useState(c),[v,y]=x.useState(c);Bs(()=>{h.current=!1,d.current=c;for(let A=0;A<v.length;A++){const T=kt(v[A]);u.includes(T)?f.delete(T):f.get(T)!==!0&&f.set(T,!1)}},[v,u.length,u.join("-")]);const b=[];if(c!==p){let A=[...c];for(let T=0;T<v.length;T++){const C=v[T],R=kt(C);u.includes(R)||(A.splice(T,0,C),b.push(C))}o==="wait"&&b.length&&(A=b),y(xn(A)),g(c);return}const{forceRender:P}=x.useContext(Ee);return m.jsx(m.Fragment,{children:v.map(A=>{const T=kt(A),C=r&&!a?!1:c===v||u.includes(T),R=()=>{if(f.has(T))f.set(T,!0);else return;let S=!0;f.forEach(j=>{j||(S=!1)}),S&&(P==null||P(),y(d.current),r&&(l==null||l()),s&&s())};return m.jsx(vr,{isPresent:C,initial:!h.current||n?void 0:!1,custom:C?void 0:e,presenceAffectsLayout:i,mode:o,onExitComplete:C?void 0:R,children:A},T)})})},I=t=>t;let Is=I;const br={useManualTiming:!1};function Pr(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(c){o.has(c)&&(l.schedule(c),t()),c(r)}const l={schedule:(c,u=!1,h=!1)=>{const f=h&&s?e:n;return u&&o.add(c),f.has(c)||f.add(c),c},cancel:c=>{n.delete(c),o.delete(c)},process:c=>{if(r=c,s){i=!0;return}s=!0,[e,n]=[n,e],e.forEach(a),e.clear(),s=!1,i&&(i=!1,l.process(c))}};return l}const Ft=["read","resolveKeyframes","update","preRender","render","postRender"],wr=40;function Os(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=Ft.reduce((y,b)=>(y[b]=Pr(o),y),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:h,postRender:d}=r,f=()=>{const y=performance.now();n=!1,i.delta=s?1e3/60:Math.max(Math.min(y-i.timestamp,wr),1),i.timestamp=y,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),u.process(i),h.process(i),d.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(f))},p=()=>{n=!0,s=!0,i.isProcessing||t(f)};return{schedule:Ft.reduce((y,b)=>{const P=r[b];return y[b]=(A,T=!1,C=!1)=>(n||p(),P.schedule(A,T,C)),y},{}),cancel:y=>{for(let b=0;b<Ft.length;b++)r[Ft[b]].cancel(y)},state:i,steps:r}}const{schedule:V,cancel:Z,state:L,steps:se}=Os(typeof requestAnimationFrame<"u"?requestAnimationFrame:I,!0),Ns=x.createContext({strict:!1}),Tn={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 Tn)dt[t]={isEnabled:e=>Tn[t].some(n=>!!e[n])};function Sr(t){for(const e in t)dt[e]={...dt[e],...t[e]}}const Ar=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 Ut(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Ar.has(t)}let _s=t=>!Ut(t);function Cr(t){t&&(_s=e=>e.startsWith("on")?!Ut(e):t(e))}try{Cr(require("@emotion/is-prop-valid").default)}catch{}function Vr(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(_s(i)||n===!0&&Ut(i)||!e&&!Ut(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}function Dr(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...s)=>t(...s);return new Proxy(n,{get:(s,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}const Yt=x.createContext({});function At(t){return typeof t=="string"||Array.isArray(t)}function Zt(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Fe=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Be=["initial",...Fe];function Qt(t){return Zt(t.animate)||Be.some(e=>At(t[e]))}function Us(t){return!!(Qt(t)||t.variants)}function Mr(t,e){if(Qt(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}=Mr(t,x.useContext(Yt));return x.useMemo(()=>({initial:e,animate:n}),[bn(e),bn(n)])}function bn(t){return Array.isArray(t)?t.join(" "):t}const Er=Symbol.for("motionComponentSymbol");function at(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Lr(t,e,n){return x.useCallback(s=>{s&&t.onMount&&t.onMount(s),e&&(s?e.mount(s):e.unmount()),n&&(typeof n=="function"?n(s):at(n)&&(n.current=s))},[e])}const Ie=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),jr="framerAppearId",Ws="data-"+Ie(jr),{schedule:Oe}=Os(queueMicrotask,!1),Ks=x.createContext({});function kr(t,e,n,s,i){var o,r;const{visualElement:a}=x.useContext(Yt),l=x.useContext(Ns),c=x.useContext(Xt),u=x.useContext(je).reducedMotion,h=x.useRef(null);s=s||l.renderer,!h.current&&s&&(h.current=s(t,{visualState:e,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u}));const d=h.current,f=x.useContext(Ks);d&&!d.projection&&i&&(d.type==="html"||d.type==="svg")&&Fr(h.current,n,i,f);const p=x.useRef(!1);x.useInsertionEffect(()=>{d&&p.current&&d.update(n,c)});const g=n[Ws],v=x.useRef(!!g&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,g))&&((r=window.MotionHasOptimisedAnimation)===null||r===void 0?void 0:r.call(window,g)));return Bs(()=>{d&&(p.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),Oe.render(d.render),v.current&&d.animationState&&d.animationState.animateChanges())}),x.useEffect(()=>{d&&(!v.current&&d.animationState&&d.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var y;(y=window.MotionHandoffMarkAsComplete)===null||y===void 0||y.call(window,g)}),v.current=!1))}),d}function Fr(t,e,n,s){const{layoutId:i,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:c}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Gs(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||a&&at(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:c})}function Gs(t){if(t)return t.options.allowProjection!==!1?t.projection:Gs(t.parent)}function Br({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:s,Component:i}){var o,r;t&&Sr(t);function a(c,u){let h;const d={...x.useContext(je),...c,layoutId:Ir(c)},{isStatic:f}=d,p=Rr(c),g=s(c,f);if(!f&&ke){Or();const v=Nr(d);h=v.MeasureLayout,p.visualElement=kr(i,g,d,e,v.ProjectionNode)}return m.jsxs(Yt.Provider,{value:p,children:[h&&p.visualElement?m.jsx(h,{visualElement:p.visualElement,...d}):null,n(i,c,Lr(g,p.visualElement,u),g,f,p.visualElement)]})}a.displayName=`motion.${typeof i=="string"?i:`create(${(r=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&r!==void 0?r:""})`}`;const l=x.forwardRef(a);return l[Er]=i,l}function Ir({layoutId:t}){const e=x.useContext(Ee).id;return e&&t!==void 0?e+"-"+t:t}function Or(t,e){x.useContext(Ns).strict}function Nr(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}}const _r=["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 Ne(t){return typeof t!="string"||t.includes("-")?!1:!!(_r.indexOf(t)>-1||/[A-Z]/u.test(t))}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 _e(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}const ge=t=>Array.isArray(t),Ur=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),Wr=t=>ge(t)?t[t.length-1]||0:t,F=t=>!!(t&&t.getVelocity);function Ot(t){const e=F(t)?t.get():t;return Ur(e)?e.toValue():e}function Kr({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},s,i,o){const r={latestValues:Gr(s,i,o,t),renderState:e()};return n&&(r.onMount=a=>n({props:s,current:a,...r}),r.onUpdate=a=>n(a)),r}const $s=t=>(e,n)=>{const s=x.useContext(Yt),i=x.useContext(Xt),o=()=>Kr(t,e,s,i);return n?o():Le(o)};function Gr(t,e,n,s){const i={},o=s(t,{});for(const d in o)i[d]=Ot(o[d]);let{initial:r,animate:a}=t;const l=Qt(t),c=Us(t);e&&c&&!l&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||r===!1;const h=u?a:r;if(h&&typeof h!="boolean"&&!Zt(h)){const d=Array.isArray(h)?h:[h];for(let f=0;f<d.length;f++){const p=_e(t,d[f]);if(p){const{transitionEnd:g,transition:v,...y}=p;for(const b in y){let P=y[b];if(Array.isArray(P)){const A=u?P.length-1:0;P=P[A]}P!==null&&(i[b]=P)}for(const b in g)i[b]=g[b]}}}return i}const pt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],rt=new Set(pt),zs=t=>e=>typeof e=="string"&&e.startsWith(t),Hs=zs("--"),$r=zs("var(--"),Ue=t=>$r(t)?zr.test(t.split("/*")[0].trim()):!1,zr=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,qs=(t,e)=>e&&typeof t=="number"?e.transform(t):t,X=(t,e,n)=>n>e?e:n<t?t:n,gt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Ct={...gt,transform:t=>X(0,1,t)},Bt={...gt,default:1},Rt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Y=Rt("deg"),G=Rt("%"),w=Rt("px"),Hr=Rt("vh"),qr=Rt("vw"),wn={...G,parse:t=>G.parse(t)/100,transform:t=>G.transform(t*100)},Xr={borderWidth:w,borderTopWidth:w,borderRightWidth:w,borderBottomWidth:w,borderLeftWidth:w,borderRadius:w,radius:w,borderTopLeftRadius:w,borderTopRightRadius:w,borderBottomRightRadius:w,borderBottomLeftRadius:w,width:w,maxWidth:w,height:w,maxHeight:w,top:w,right:w,bottom:w,left:w,padding:w,paddingTop:w,paddingRight:w,paddingBottom:w,paddingLeft:w,margin:w,marginTop:w,marginRight:w,marginBottom:w,marginLeft:w,backgroundPositionX:w,backgroundPositionY:w},Yr={rotate:Y,rotateX:Y,rotateY:Y,rotateZ:Y,scale:Bt,scaleX:Bt,scaleY:Bt,scaleZ:Bt,skew:Y,skewX:Y,skewY:Y,distance:w,translateX:w,translateY:w,translateZ:w,x:w,y:w,z:w,perspective:w,transformPerspective:w,opacity:Ct,originX:wn,originY:wn,originZ:w},Sn={...gt,transform:Math.round},We={...Xr,...Yr,zIndex:Sn,size:w,fillOpacity:Ct,strokeOpacity:Ct,numOctaves:Sn},Zr={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Qr=pt.length;function Jr(t,e,n){let s="",i=!0;for(let o=0;o<Qr;o++){const r=pt[o],a=t[r];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(r.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=qs(a,We[r]);if(!l){i=!1;const u=Zr[r]||r;s+=`${u}(${c}) `}n&&(e[r]=c)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function Ke(t,e,n){const{style:s,vars:i,transformOrigin:o}=t;let r=!1,a=!1;for(const l in e){const c=e[l];if(rt.has(l)){r=!0;continue}else if(Hs(l)){i[l]=c;continue}else{const u=qs(c,We[l]);l.startsWith("origin")?(a=!0,o[l]=u):s[l]=u}}if(e.transform||(r||n?s.transform=Jr(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=o;s.transformOrigin=`${l} ${c} ${u}`}}const to={offset:"stroke-dashoffset",array:"stroke-dasharray"},eo={offset:"strokeDashoffset",array:"strokeDasharray"};function no(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?to:eo;t[o.offset]=w.transform(-s);const r=w.transform(e),a=w.transform(n);t[o.array]=`${r} ${a}`}function An(t,e,n){return typeof t=="string"?t:w.transform(e+n*t)}function so(t,e,n){const s=An(e,t.x,t.width),i=An(n,t.y,t.height);return`${s} ${i}`}function Ge(t,{attrX:e,attrY:n,attrScale:s,originX:i,originY:o,pathLength:r,pathSpacing:a=1,pathOffset:l=0,...c},u,h){if(Ke(t,c,h),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:d,style:f,dimensions:p}=t;d.transform&&(p&&(f.transform=d.transform),delete d.transform),p&&(i!==void 0||o!==void 0||f.transform)&&(f.transformOrigin=so(p,i!==void 0?i:.5,o!==void 0?o:.5)),e!==void 0&&(d.x=e),n!==void 0&&(d.y=n),s!==void 0&&(d.scale=s),r!==void 0&&no(d,r,a,l,!1)}const $e=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Xs=()=>({...$e(),attrs:{}}),ze=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Ys(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 Zs=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 Qs(t,e,n,s){Ys(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(Zs.has(i)?i:Ie(i),e.attrs[i])}const Wt={};function io(t){Object.assign(Wt,t)}function Js(t,{layout:e,layoutId:n}){return rt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Wt[t]||t==="opacity")}function He(t,e,n){var s;const{style:i}=t,o={};for(const r in i)(F(i[r])||e.style&&F(e.style[r])||Js(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 o}function ti(t,e,n){const s=He(t,e,n);for(const i in t)if(F(t[i])||F(e[i])){const o=pt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=t[i]}return s}function ro(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}const Cn=["x","y","width","height","cx","cy","r"],oo={useVisualState:$s({scrapeMotionValuesFromProps:ti,createRenderState:Xs,onUpdate:({props:t,prevProps:e,current:n,renderState:s,latestValues:i})=>{if(!n)return;let o=!!t.drag;if(!o){for(const a in i)if(rt.has(a)){o=!0;break}}if(!o)return;let r=!e;if(e)for(let a=0;a<Cn.length;a++){const l=Cn[a];t[l]!==e[l]&&(r=!0)}r&&V.read(()=>{ro(n,s),V.render(()=>{Ge(s,i,ze(n.tagName),t.transformTemplate),Qs(n,s)})})}})},ao={useVisualState:$s({scrapeMotionValuesFromProps:He,createRenderState:$e})};function ei(t,e,n){for(const s in e)!F(e[s])&&!Js(s,n)&&(t[s]=e[s])}function lo({transformTemplate:t},e){return x.useMemo(()=>{const n=$e();return Ke(n,e,t),Object.assign({},n.vars,n.style)},[e])}function co(t,e){const n=t.style||{},s={};return ei(s,n,t),Object.assign(s,lo(t,e)),s}function uo(t,e){const n={},s=co(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}function ho(t,e,n,s){const i=x.useMemo(()=>{const o=Xs();return Ge(o,e,ze(s),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};ei(o,t.style,t),i.style={...o,...i.style}}return i}function fo(t=!1){return(n,s,i,{latestValues:o},r)=>{const l=(Ne(n)?ho:uo)(s,o,r,n),c=Vr(s,typeof n=="string",t),u=n!==x.Fragment?{...c,...l,ref:i}:{},{children:h}=s,d=x.useMemo(()=>F(h)?h.get():h,[h]);return x.createElement(n,{...u,children:d})}}function mo(t,e){return function(s,{forwardMotionProps:i}={forwardMotionProps:!1}){const r={...Ne(s)?oo:ao,preloadedFeatures:t,useRender:fo(i),createVisualElement:e,Component:s};return Br(r)}}function ni(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 Jt(t,e,n){const s=t.getProps();return _e(s,e,n!==void 0?n:s.custom,t)}function qe(t,e){return t?t[e]||t.default||t:void 0}const si=new Set(["width","height","top","left","right","bottom",...pt]);let Nt;function po(){Nt=void 0}const $={now:()=>(Nt===void 0&&$.set(L.isProcessing||br.useManualTiming?L.timestamp:performance.now()),Nt),set:t=>{Nt=t,queueMicrotask(po)}};function Xe(t,e){t.indexOf(e)===-1&&t.push(e)}function Ye(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Ze{constructor(){this.subscriptions=[]}add(e){return Xe(this.subscriptions,e),()=>Ye(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}}function ii(t,e){return e?t*(1e3/e):0}const Vn=30,go=t=>!isNaN(parseFloat(t));class yo{constructor(e,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,i=!0)=>{const o=$.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=$.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=go(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 Ze);const s=this.events[e].add(n);return e==="change"?()=>{s(),V.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=$.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Vn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Vn);return ii(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 Vt(t,e){return new yo(t,e)}function vo(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Vt(n))}function xo(t,e){const n=Jt(t,e);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=Wr(o[r]);vo(t,r,a)}}function To(t){return!!(F(t)&&t.add)}function ye(t,e){const n=t.getValue("willChange");if(To(n))return n.add(e)}function ri(t){return t.props[Ws]}function Qe(t){let e;return()=>(e===void 0&&(e=t()),e)}const bo=Qe(()=>window.ScrollTimeline!==void 0);class Po{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let s=0;s<this.animations.length;s++)this.animations[s][e]=n}attachTimeline(e,n){const s=this.animations.map(i=>{if(bo()&&i.attachTimeline)return i.attachTimeline(e);if(typeof n=="function")return n(i)});return()=>{s.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let 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]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class wo extends Po{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}const H=t=>t*1e3,q=t=>t/1e3;function Je(t){return typeof t=="function"}function Dn(t,e){t.timeline=e,t.onfinish=null}const tn=t=>Array.isArray(t)&&typeof t[0]=="number",So={linearEasing:void 0};function Ao(t,e){const n=Qe(t);return()=>{var s;return(s=So[e])!==null&&s!==void 0?s:n()}}const Kt=Ao(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ft=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s},oi=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)s+=t(ft(0,i-1,o))+", ";return`linear(${s.substring(0,s.length-2)})`};function ai(t){return!!(typeof t=="function"&&Kt()||!t||typeof t=="string"&&(t in ve||Kt())||tn(t)||Array.isArray(t)&&t.every(ai))}const vt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,ve={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 li(t,e){if(t)return typeof t=="function"&&Kt()?oi(t,e):tn(t)?vt(t):Array.isArray(t)?t.map(n=>li(n,e)||ve.easeOut):ve[t]}const ci=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Co=1e-7,Vo=12;function Do(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=ci(r,s,i)-t,o>0?n=r:e=r;while(Math.abs(o)>Co&&++a<Vo);return r}function Et(t,e,n,s){if(t===e&&n===s)return I;const i=o=>Do(o,0,1,t,n);return o=>o===0||o===1?o:ci(i(o),e,s)}const ui=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,hi=t=>e=>1-t(1-e),di=Et(.33,1.53,.69,.99),en=hi(di),fi=ui(en),mi=t=>(t*=2)<1?.5*en(t):.5*(2-Math.pow(2,-10*(t-1))),nn=t=>1-Math.sin(Math.acos(t)),pi=hi(nn),gi=ui(nn),yi=t=>/^0[^.\s]+$/u.test(t);function Mo(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||yi(t):!0}const bt=t=>Math.round(t*1e5)/1e5,sn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ro(t){return t==null}const Eo=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,rn=(t,e)=>n=>!!(typeof n=="string"&&Eo.test(n)&&n.startsWith(t)||e&&!Ro(n)&&Object.prototype.hasOwnProperty.call(n,e)),vi=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,o,r,a]=s.match(sn);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},Lo=t=>X(0,255,t),ie={...gt,transform:t=>Math.round(Lo(t))},st={test:rn("rgb","red"),parse:vi("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+ie.transform(t)+", "+ie.transform(e)+", "+ie.transform(n)+", "+bt(Ct.transform(s))+")"};function jo(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),alpha:i?parseInt(i,16)/255:1}}const xe={test:rn("#"),parse:jo,transform:st.transform},lt={test:rn("hsl","hue"),parse:vi("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+G.transform(bt(e))+", "+G.transform(bt(n))+", "+bt(Ct.transform(s))+")"},k={test:t=>st.test(t)||xe.test(t)||lt.test(t),parse:t=>st.test(t)?st.parse(t):lt.test(t)?lt.parse(t):xe.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?st.transform(t):lt.transform(t)},ko=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Fo(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(sn))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(ko))===null||n===void 0?void 0:n.length)||0)>0}const xi="number",Ti="color",Bo="var",Io="var(",Mn="${}",Oo=/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 Dt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(Oo,l=>(k.test(l)?(s.color.push(o),i.push(Ti),n.push(k.parse(l))):l.startsWith(Io)?(s.var.push(o),i.push(Bo),n.push(l)):(s.number.push(o),i.push(xi),n.push(parseFloat(l))),++o,Mn)).split(Mn);return{values:n,split:a,indexes:s,types:i}}function bi(t){return Dt(t).values}function Pi(t){const{split:e,types:n}=Dt(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===xi?o+=bt(i[r]):a===Ti?o+=k.transform(i[r]):o+=i[r]}return o}}const No=t=>typeof t=="number"?0:t;function _o(t){const e=bi(t);return Pi(t)(e.map(No))}const Q={test:Fo,parse:bi,createTransformer:Pi,getAnimatableNone:_o},Uo=new Set(["brightness","contrast","saturate","opacity"]);function Wo(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(sn)||[];if(!s)return t;const i=n.replace(s,"");let o=Uo.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const Ko=/\b([a-z-]*)\(.*?\)/gu,Te={...Q,getAnimatableNone:t=>{const e=t.match(Ko);return e?e.map(Wo).join(" "):t}},Go={...We,color:k,backgroundColor:k,outlineColor:k,fill:k,stroke:k,borderColor:k,borderTopColor:k,borderRightColor:k,borderBottomColor:k,borderLeftColor:k,filter:Te,WebkitFilter:Te},on=t=>Go[t];function wi(t,e){let n=on(t);return n!==Te&&(n=Q),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const $o=new Set(["auto","none","0"]);function zo(t,e,n){let s=0,i;for(;s<t.length&&!i;){const o=t[s];typeof o=="string"&&!$o.has(o)&&Dt(o).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=wi(n,i)}const Rn=t=>t===gt||t===w,En=(t,e)=>parseFloat(t.split(", ")[e]),Ln=(t,e)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const i=s.match(/^matrix3d\((.+)\)$/u);if(i)return En(i[1],e);{const o=s.match(/^matrix\((.+)\)$/u);return o?En(o[1],t):0}},Ho=new Set(["x","y","z"]),qo=pt.filter(t=>!Ho.has(t));function Xo(t){const e=[];return qo.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const mt={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:Ln(4,13),y:Ln(5,14)};mt.translateX=mt.x;mt.translateY=mt.y;const it=new Set;let be=!1,Pe=!1;function Si(){if(Pe){const t=Array.from(it).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=Xo(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)})}Pe=!1,be=!1,it.forEach(t=>t.complete()),it.clear()}function Ai(){it.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Pe=!0)})}function Yo(){Ai(),Si()}class an{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?(it.add(this),be||(be=!0,V.read(Ai),V.resolveKeyframes(Si))):(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),it.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,it.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Ci=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Zo=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Qo(t){const e=Zo.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function Vi(t,e,n=1){const[s,i]=Qo(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return Ci(r)?parseFloat(r):r}return Ue(i)?Vi(i,e,n+1):i}const Di=t=>e=>e.test(t),Jo={test:t=>t==="auto",parse:t=>t},Mi=[gt,w,G,Y,qr,Hr,Jo],jn=t=>Mi.find(Di(t));class Ri extends an{constructor(e,n,s,i,o){super(e,n,s,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let c=e[l];if(typeof c=="string"&&(c=c.trim(),Ue(c))){const u=Vi(c,n.current);u!==void 0&&(e[l]=u),l===e.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!si.has(s)||e.length!==2)return;const[i,o]=e,r=jn(i),a=jn(o);if(r!==a)if(Rn(r)&&Rn(a))for(let l=0;l<e.length;l++){const c=e[l];typeof c=="string"&&(e[l]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)Mo(e[i])&&s.push(i);s.length&&zo(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=mt[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||!n.current)return;const o=n.getValue(s);o&&o.jump(this.measuredOrigin,!1);const r=i.length-1,a=i[r];i[r]=mt[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
vendor: 4,758 bytes, line 10
10h(([l,c])=>{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const kn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Q.test(t)||t==="0")&&!t.startsWith("url("));function ta(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 ea(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=kn(i,e),a=kn(o,e);return!r||!a?!1:ta(t)||(n==="spring"||Je(n))&&s}const na=t=>t!==null;function te(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(na),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return!o||s===void 0?i[o]:s}const sa=40;class Ei{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.createdAt=$.now(),this.options={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:o,repeatType:r,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>sa?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Yo(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=$.now(),this.hasAttemptedResolve=!0;const{name:s,type:i,velocity:o,delay:r,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!ea(e,s,i,o))if(r)this.options.duration=0;else{l&&l(te(e,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const u=this.initPlayback(e,n);u!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const we=2e4;function Li(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<we;)e+=n,s=t.next(e);return e>=we?1/0:e}const D=(t,e,n)=>t+(e-t)*n;function re(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 ia({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=re(l,a,t+1/3),o=re(l,a,t),r=re(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function Gt(t,e){return n=>n>0?e:t}const oe=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},ra=[xe,st,lt],oa=t=>ra.find(e=>e.test(t));function Fn(t){const e=oa(t);if(!e)return!1;let n=e.parse(t);return e===lt&&(n=ia(n)),n}const Bn=(t,e)=>{const n=Fn(t),s=Fn(e);if(!n||!s)return Gt(t,e);const i={...n};return o=>(i.red=oe(n.red,s.red,o),i.green=oe(n.green,s.green,o),i.blue=oe(n.blue,s.blue,o),i.alpha=D(n.alpha,s.alpha,o),st.transform(i))},aa=(t,e)=>n=>e(t(n)),Lt=(...t)=>t.reduce(aa),Se=new Set(["none","hidden"]);function la(t,e){return Se.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function ca(t,e){return n=>D(t,e,n)}function ln(t){return typeof t=="number"?ca:typeof t=="string"?Ue(t)?Gt:k.test(t)?Bn:da:Array.isArray(t)?ji:typeof t=="object"?k.test(t)?Bn:ua:Gt}function ji(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>ln(o)(o,e[r]));return o=>{for(let r=0;r<s;r++)n[r]=i[r](o);return n}}function ua(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=ln(t[i])(t[i],e[i]));return i=>{for(const o in s)n[o]=s[o](i);return n}}function ha(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=Q.createTransformer(e),s=Dt(t),i=Dt(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?Se.has(t)&&!i.values.length||Se.has(e)&&!s.values.length?la(t,e):Lt(ji(ha(s,i),i.values),n):Gt(t,e)};function ki(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?D(t,e,n):ln(t)(t,e)}const fa=5;function Fi(t,e,n){const s=Math.max(e-fa,0);return ii(n-t(s),e-s)}const M={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},ae=.001;function ma({duration:t=M.duration,bounce:e=M.bounce,velocity:n=M.velocity,mass:s=M.mass}){let i,o,r=1-e;r=X(M.minDamping,M.maxDamping,r),t=X(M.minDuration,M.maxDuration,q(t)),r<1?(i=c=>{const u=c*r,h=u*t,d=u-n,f=Ae(c,r),p=Math.exp(-h);return ae-d/f*p},o=c=>{const h=c*r*t,d=h*n+n,f=Math.pow(r,2)*Math.pow(c,2)*t,p=Math.exp(-h),g=Ae(Math.pow(c,2),r);return(-i(c)+ae>0?-1:1)*((d-f)*p)/g}):(i=c=>{const u=Math.exp(-c*t),h=(c-n)*t+1;
vendor: 8,515 bytes, line 10
10return-ae+u*h},o=c=>{const u=Math.exp(-c*t),h=(n-c)*(t*t);return u*h});const a=5/t,l=ga(i,o,a);if(t=H(t),isNaN(l))return{stiffness:M.stiffness,damping:M.damping,duration:t};{const c=Math.pow(l,2)*s;return{stiffness:c,damping:r*2*Math.sqrt(s*c),duration:t}}}const pa=12;function ga(t,e,n){let s=n;for(let i=1;i<pa;i++)s=s-t(s)/e(s);return s}function Ae(t,e){return t*Math.sqrt(1-e*e)}const ya=["duration","bounce"],va=["stiffness","damping","mass"];function In(t,e){return e.some(n=>t[n]!==void 0)}function xa(t){let e={velocity:M.velocity,stiffness:M.stiffness,damping:M.damping,mass:M.mass,isResolvedFromDuration:!1,...t};if(!In(t,va)&&In(t,ya))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,o=2*X(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:M.mass,stiffness:i,damping:o}}else{const n=ma(t);e={...e,...n,mass:M.mass},e.isResolvedFromDuration=!0}return e}function Bi(t=M.visualDuration,e=M.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:c,mass:u,duration:h,velocity:d,isResolvedFromDuration:f}=xa({...n,velocity:-q(n.velocity||0)}),p=d||0,g=c/(2*Math.sqrt(l*u)),v=r-o,y=q(Math.sqrt(l/u)),b=Math.abs(v)<5;s||(s=b?M.restSpeed.granular:M.restSpeed.default),i||(i=b?M.restDelta.granular:M.restDelta.default);let P;if(g<1){const T=Ae(y,g);P=C=>{const R=Math.exp(-g*y*C);return r-R*((p+g*y*v)/T*Math.sin(T*C)+v*Math.cos(T*C))}}else if(g===1)P=T=>r-Math.exp(-y*T)*(v+(p+y*v)*T);else{const T=y*Math.sqrt(g*g-1);P=C=>{const R=Math.exp(-g*y*C),S=Math.min(T*C,300);return r-R*((p+g*y*v)*Math.sinh(S)+T*v*Math.cosh(S))/T}}const A={calculatedDuration:f&&h||null,next:T=>{const C=P(T);if(f)a.done=T>=h;else{let R=0;g<1&&(R=T===0?H(p):Fi(P,T,C));const S=Math.abs(R)<=s,j=Math.abs(r-C)<=i;a.done=S&&j}return a.value=a.done?r:C,a},toString:()=>{const T=Math.min(Li(A),we),C=oi(R=>A.next(T*R).value,T,30);return T+"ms "+C}};return A}function On({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:c=.5,restSpeed:u}){const h=t[0],d={done:!1,value:h},f=S=>a!==void 0&&S<a||l!==void 0&&S>l,p=S=>a===void 0?l:l===void 0||Math.abs(a-S)<Math.abs(l-S)?a:l;let g=n*e;const v=h+g,y=r===void 0?v:r(v);y!==v&&(g=y-h);const b=S=>-g*Math.exp(-S/s),P=S=>y+b(S),A=S=>{const j=b(S),N=P(S);d.done=Math.abs(j)<=c,d.value=d.done?y:N};let T,C;const R=S=>{f(d.value)&&(T=S,C=Bi({keyframes:[d.value,p(d.value)],velocity:Fi(P,S,d.value),damping:i,stiffness:o,restDelta:c,restSpeed:u}))};return R(0),{calculatedDuration:null,next:S=>{let j=!1;return!C&&T===void 0&&(j=!0,A(S),R(S)),T!==void 0&&S>=T?C.next(S-T):(!j&&A(S),d)}}}const Ta=Et(.42,0,1,1),ba=Et(0,0,.58,1),Ii=Et(.42,0,.58,1),Pa=t=>Array.isArray(t)&&typeof t[0]!="number",wa={linear:I,easeIn:Ta,easeInOut:Ii,easeOut:ba,circIn:nn,circInOut:gi,circOut:pi,backIn:en,backInOut:fi,backOut:di,anticipate:mi},Nn=t=>{if(tn(t)){Is(t.length===4);const[e,n,s,i]=t;return Et(e,n,s,i)}else if(typeof t=="string")return wa[t];return t};function Sa(t,e,n){const s=[],i=n||ki,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]||I:e;a=Lt(l,a)}s.push(a)}return s}function Aa(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const o=t.length;if(Is(o===e.length),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Sa(e,s,i),l=a.length,c=u=>{if(r&&u<t[0])return e[0];let h=0;if(l>1)for(;h<t.length-2&&!(u<t[h+1]);h++);const d=ft(t[h],t[h+1],u);return a[h](d)};return n?u=>c(X(t[0],t[o-1],u)):c}function Ca(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=ft(0,e,s);t.push(D(n,1,i))}}function Va(t){const e=[0];return Ca(e,t.length-1),e}function Da(t,e){return t.map(n=>n*e)}function Ma(t,e){return t.map(()=>e||Ii).splice(0,t.length-1)}function $t({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=Pa(s)?s.map(Nn):Nn(s),o={done:!1,value:e[0]},r=Da(n&&n.length===e.length?n:Va(e),t),a=Aa(r,e,{ease:Array.isArray(i)?i:Ma(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const Ra=t=>{const e=({timestamp:n})=>t(n);return{start:()=>V.update(e,!0),stop:()=>Z(e),now:()=>L.isProcessing?L.timestamp:$.now()}},Ea={decay:On,inertia:On,tween:$t,keyframes:$t,spring:Bi},La=t=>t/100;class cn extends Ei{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:s,element:i,keyframes:o}=this.options,r=(i==null?void 0:i.KeyframeResolver)||an,a=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new r(o,a,n,s,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=this.options,a=Je(n)?n:Ea[n]||$t;let l,c;a!==$t&&typeof e[0]!="number"&&(l=Lt(La,ki(e[0],e[1])),e=[0,100]);const u=a({...this.options,keyframes:e});o==="mirror"&&(c=a({...this.options,keyframes:[...e].reverse(),velocity:-r})),u.calculatedDuration===null&&(u.calculatedDuration=Li(u));const{calculatedDuration:h}=u,d=h+i,f=d*(s+1)-i;return{generator:u,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:d,totalDuration:f}}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:S}=this.options;return{done:!0,value:S[S.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:r,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:u,resolvedDuration:h}=s;if(this.startTime===null)return o.next(0);const{delay:d,repeat:f,repeatType:p,repeatDelay:g,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const y=this.currentTime-d*(this.speed>=0?1:-1),b=this.speed>=0?y<0:y>u;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let P=this.currentTime,A=o;if(f){const S=Math.min(this.currentTime,u)/h;let j=Math.floor(S),N=S%1;!N&&S>=1&&(N=1),N===1&&j--,j=Math.min(j,f+1),!!(j%2)&&(p==="reverse"?(N=1-N,g&&(N-=g/h)):p==="mirror"&&(A=r)),P=X(0,1,N)*h}const T=b?{done:!1,value:l[0]}:A.next(P);a&&(T.value=a(T.value));let{done:C}=T;!b&&c!==null&&(C=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return R&&i!==void 0&&(T.value=te(l,this.options,i)),v&&v(T.value),R&&this.finish(),T}get duration(){const{resolved:e}=this;return e?q(e.calculatedDuration):0}get time(){return q(this.currentTime)}set time(e){e=H(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=q(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=Ra,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=s??this.calcStartTime(),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.updateFinishedProm
vendor: 5,331 bytes, line 10
10ise()}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 ja=new Set(["opacity","clipPath","filter","transform"]);function ka(t,e,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a="easeInOut",times:l}={}){const c={[e]:n};l&&(c.offset=l);const u=li(a,i);return Array.isArray(u)&&(c.easing=u),t.animate(c,{delay:s,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"})}const Fa=Qe(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),zt=10,Ba=2e4;function Ia(t){return Je(t.type)||t.type==="spring"||!ai(t.ease)}function Oa(t,e){const n=new cn({...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<Ba;)s=n.sample(o),i.push(s.value),o+=zt;return{times:void 0,keyframes:i,duration:o-zt,ease:"linear"}}const Oi={anticipate:mi,backInOut:fi,circInOut:gi};function Na(t){return t in Oi}class _n extends Ei{constructor(e){super(e);const{name:n,motionValue:s,element:i,keyframes:o}=this.options;this.resolver=new Ri(o,(r,a)=>this.onKeyframesResolved(r,a),n,s,i),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:s=300,times:i,ease:o,type:r,motionValue:a,name:l,startTime:c}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof o=="string"&&Kt()&&Na(o)&&(o=Oi[o]),Ia(this.options)){const{onComplete:h,onUpdate:d,motionValue:f,element:p,...g}=this.options,v=Oa(e,g);e=v.keyframes,e.length===1&&(e[1]=e[0]),s=v.duration,i=v.times,o=v.ease,r="keyframes"}const u=ka(a.owner.current,l,e,{...this.options,duration:s,times:i,ease:o});return u.startTime=c??this.calcStartTime(),this.pendingTimeline?(Dn(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:h}=this.options;a.set(te(e,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:s,times:i,type:r,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return q(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return q(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=H(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}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return I;const{animation:s}=n;Dn(s,e)}return I}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;this.resolveFinishedPromise(),this.updateFinishedPromise();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:c,onUpdate:u,onComplete:h,element:d,...f}=this.options,p=new cn({...f,keyframes:s,duration:i,type:o,ease:r,times:a,isGenerator:!0}),g=H(this.time);c.setWithVelocity(p.sample(g-zt).value,p.sample(g).value,zt)}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;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=n.owner.getProps();return Fa()&&s&&ja.has(s)&&!l&&!c&&!i&&o!=="mirror"&&r!==0&&a!=="inertia"}}const _a={type:"spring",stiffness:500,damping:25,restSpeed:10},Ua=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Wa={type:"keyframes",duration:.8},Ka={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ga=(t,{keyframes:e})=>e.length>2?Wa:rt.has(t)?t.startsWith("scale")?Ua(e[1]):_a:Ka;function $a({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const un=(t,e,n,s={},i,o)=>r=>{const a=qe(s,t)||{},l=a.delay||s.delay||0;let{elapsed:c=0}=s;c=c-H(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:d=>{e.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};$a(a)||(u={...u,...Ga(t,u)}),u.duration&&(u.duration=H(u.duration)),u.repeatDelay&&(u.repeatDelay=H(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(h=!0)),h&&!o&&e.get()!==void 0){const d=te(u.keyframes,a);if(d!==void 0)return V.update(()=>{u.onUpdate(d),u.onComplete()}
vendor: 62,480 bytes, line 10
10),new wo([])}return!o&&_n.supports(u)?new _n(u):new cn(u)};function za({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function Ni(t,e,{delay:n=0,transitionOverride:s,type:i}={}){var o;let{transition:r=t.getDefaultTransition(),transitionEnd:a,...l}=e;s&&(r=s);const c=[],u=i&&t.animationState&&t.animationState.getState()[i];for(const h in l){const d=t.getValue(h,(o=t.latestValues[h])!==null&&o!==void 0?o:null),f=l[h];if(f===void 0||u&&za(u,h))continue;const p={delay:n,...qe(r||{},h)};let g=!1;if(window.MotionHandoffAnimation){const y=ri(t);if(y){const b=window.MotionHandoffAnimation(y,h,V);b!==null&&(p.startTime=b,g=!0)}}ye(t,h),d.start(un(h,d,f,t.shouldReduceMotion&&si.has(h)?{type:!1}:p,t,g));const v=d.animation;v&&c.push(v)}return a&&Promise.all(c).then(()=>{V.update(()=>{a&&xo(t,a)})}),c}function Ce(t,e,n={}){var s;const i=Jt(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(Ni(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:h,staggerDirection:d}=o;return Ha(t,e,u+c,h,d,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[c,u]=l==="beforeChildren"?[r,a]:[a,r];return c().then(()=>u())}else return Promise.all([r(),a(n.delay)])}function Ha(t,e,n=0,s=0,i=1,o){const r=[],a=(t.variantChildren.size-1)*s,l=i===1?(c=0)=>c*s:(c=0)=>a-c*s;return Array.from(t.variantChildren).sort(qa).forEach((c,u)=>{c.notify("AnimationStart",e),r.push(Ce(c,e,{...o,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(r)}function qa(t,e){return t.sortNodePosition(e)}function Xa(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>Ce(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=Ce(t,e,n);else{const i=typeof e=="function"?Jt(t,e,n.custom):e;s=Promise.all(Ni(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const Ya=Be.length;function _i(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?_i(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Ya;n++){const s=Be[n],i=t.props[s];(At(i)||i===!1)&&(e[s]=i)}return e}const Za=[...Fe].reverse(),Qa=Fe.length;function Ja(t){return e=>Promise.all(e.map(({animation:n,options:s})=>Xa(t,n,s)))}function tl(t){let e=Ja(t),n=Un(),s=!0;const i=l=>(c,u)=>{var h;const d=Jt(t,u,l==="exit"?(h=t.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(d){const{transition:f,transitionEnd:p,...g}=d;c={...c,...g,...p}}return c};function o(l){e=l(t)}function r(l){const{props:c}=t,u=_i(t.parent)||{},h=[],d=new Set;let f={},p=1/0;for(let v=0;v<Qa;v++){const y=Za[v],b=n[y],P=c[y]!==void 0?c[y]:u[y],A=At(P),T=y===l?b.isActive:null;T===!1&&(p=v);let C=P===u[y]&&P!==c[y]&&A;if(C&&s&&t.manuallyAnimateOnMount&&(C=!1),b.protectedKeys={...f},!b.isActive&&T===null||!P&&!b.prevProp||Zt(P)||typeof P=="boolean")continue;const R=el(b.prevProp,P);let S=R||y===l&&b.isActive&&!C&&A||v>p&&A,j=!1;const N=Array.isArray(P)?P:[P];let ot=N.reduce(i(y),{});T===!1&&(ot={});const{prevResolvedValues:fn={}}=b,ur={...fn,...ot},mn=B=>{S=!0,d.has(B)&&(j=!0,d.delete(B)),b.needsAnimating[B]=!0;const z=t.getValue(B);z&&(z.liveStyle=!1)};for(const B in ur){const z=ot[B],ee=fn[B];if(f.hasOwnProperty(B))continue;let ne=!1;ge(z)&&ge(ee)?ne=!ni(z,ee):ne=z!==ee,ne?z!=null?mn(B):d.add(B):z!==void 0&&d.has(B)?mn(B):b.protectedKeys[B]=!0}b.prevProp=P,b.prevResolvedValues=ot,b.isActive&&(f={...f,...ot}),s&&t.blockInitialAnimation&&(S=!1),S&&(!(C&&R)||j)&&h.push(...N.map(B=>({animation:B,options:{type:y}})))}if(d.size){const v={};d.forEach(y=>{const b=t.getBaseTarget(y),P=t.getValue(y);P&&(P.liveStyle=!0),v[y]=b??null}),h.push({animation:v})}let g=!!h.length;return s&&(c.initial===!1||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(g=!1),s=!1,g?e(h):Promise.resolve()}function a(l,c){var u;if(n[l].isActive===c)return Promise.resolve();(u=t.variantChildren)===null||u===void 0||u.forEach(d=>{var f;return(f=d.animationState)===null||f===void 0?void 0:f.setActive(l,c)}),n[l].isActive=c;const h=r(l);for(const d in n)n[d].protectedKeys={};return h}return{animateChanges:r,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Un(),s=!0}}}function el(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!ni(e,t):!1}function tt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Un(){return{animate:tt(!0),whileInView:tt(),whileHover:tt(),whileTap:tt(),whileDrag:tt(),whileFocus:tt(),exit:tt()}}class J{constructor(e){this.isMounted=!1,this.node=e}update(){}}class nl extends J{constructor(e){super(e),e.animationState||(e.animationState=tl(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Zt(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 sl=0;class il extends J{constructor(){super(...arguments),this.id=sl++}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 rl={animation:{Feature:nl},exit:{Feature:il}},W={x:!1,y:!1};function Ui(){return W.x||W.y}function ol(t){return t==="x"||t==="y"?W[t]?null:(W[t]=!0,()=>{W[t]=!1}):W.x||W.y?null:(W.x=W.y=!0,()=>{W.x=W.y=!1})}const hn=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Mt(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}function jt(t){return{point:{x:t.pageX,y:t.pageY}}}const al=t=>e=>hn(e)&&t(e,jt(e));function Pt(t,e,n,s){return Mt(t,e,al(n),s)}const Wn=(t,e)=>Math.abs(t-e);function ll(t,e){const n=Wn(t.x,e.x),s=Wn(t.y,e.y);return Math.sqrt(n**2+s**2)}class Wi{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=ce(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,f=ll(h.offset,{x:0,y:0})>=3;if(!d&&!f)return;const{point:p}=h,{timestamp:g}=L;this.history.push({...p,timestamp:g});const{onStart:v,onMove:y}=this.handlers;d||(v&&v(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,h)},this.handlePointerMove=(h,d)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=le(d,this.transformPagePoint),V.update(this.updatePoint,!0)},this.handlePointerUp=(h,d)=>{this.end();const{onEnd:f,onSessionEnd:p,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=ce(h.type==="pointercancel"?this.lastMoveEventInfo:le(d,this.transformPagePoint),this.history);this.startEvent&&f&&f(h,v),p&&p(h,v)},!hn(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.contextWindow=i||window;const r=jt(e),a=le(r,this.transformPagePoint),{point:l}=a,{timestamp:c}=L;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=n;u&&u(e,ce(a,this.history)),this.removeListeners=Lt(Pt(this.contextWindow,"pointermove",this.handlePointerMove),Pt(this.contextWindow,"pointerup",this.handlePointerUp),Pt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Z(this.updatePoint)}}function le(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 ce({point:t},e){return{point:t,delta:Kn(t,Ki(e)),offset:Kn(t,cl(e)),velocity:ul(e,.1)}}function cl(t){return t[0]}function Ki(t){return t[t.length-1]}function ul(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=Ki(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>H(e)));)n--;if(!s)return{x:0,y:0};const o=q(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 Gi=1e-4,hl=1-Gi,dl=1+Gi,$i=.01,fl=0-$i,ml=0+$i;function O(t){return t.max-t.min}function pl(t,e,n){return Math.abs(t-e)<=n}function Gn(t,e,n,s=.5){t.origin=s,t.originPoint=D(e.min,e.max,t.origin),t.scale=O(n)/O(e),t.translate=D(n.min,n.max,t.origin)-t.originPoint,(t.scale>=hl&&t.scale<=dl||isNaN(t.scale))&&(t.scale=1),(t.translate>=fl&&t.translate<=ml||isNaN(t.translate))&&(t.translate=0)}function wt(t,e,n,s){Gn(t.x,e.x,n.x,s?s.originX:void 0),Gn(t.y,e.y,n.y,s?s.originY:void 0)}function $n(t,e,n){t.min=n.min+e.min,t.max=t.min+O(e)}function gl(t,e,n){$n(t.x,e.x,n.x),$n(t.y,e.y,n.y)}function zn(t,e,n){t.min=e.min-n.min,t.max=t.min+O(e)}function St(t,e,n){zn(t.x,e.x,n.x),zn(t.y,e.y,n.y)}function yl(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?D(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?D(n,t,s.max):Math.min(t,n)),t}function Hn(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 vl(t,{top:e,left:n,bottom:s,right:i}){return{x:Hn(t.x,n,i),y:Hn(t.y,e,s)}}function qn(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 xl(t,e){return{x:qn(t.x,e.x),y:qn(t.y,e.y)}}function Tl(t,e){let n=.5;const s=O(t),i=O(e);return i>s?n=ft(e.min,e.max-s,t.min):s>i&&(n=ft(t.min,t.max-i,e.min)),X(0,1,n)}function bl(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 Ve=.35;function Pl(t=Ve){return t===!1?t=0:t===!0&&(t=Ve),{x:Xn(t,"left","right"),y:Xn(t,"top","bottom")}}function Xn(t,e,n){return{min:Yn(t,e),max:Yn(t,n)}}function Yn(t,e){return typeof t=="number"?t:t[e]||0}const Zn=()=>({translate:0,scale:1,origin:0,originPoint:0}),ct=()=>({x:Zn(),y:Zn()}),Qn=()=>({min:0,max:0}),E=()=>({x:Qn(),y:Qn()});function U(t){return[t("x"),t("y")]}function zi({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function wl({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Sl(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 ue(t){return t===void 0||t===1}function De({scale:t,scaleX:e,scaleY:n}){return!ue(t)||!ue(e)||!ue(n)}function et(t){return De(t)||Hi(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Hi(t){return Jn(t.x)||Jn(t.y)}function Jn(t){return t&&t!=="0%"}function Ht(t,e,n){const s=t-n,i=e*s;return n+i}function ts(t,e,n,s,i){return i!==void 0&&(t=Ht(t,i,s)),Ht(t,n,s)+e}function Me(t,e=0,n=1,s,i){t.min=ts(t.min,e,n,s,i),t.max=ts(t.max,e,n,s,i)}function qi(t,{x:e,y:n}){Me(t.x,e.translate,e.scale,e.originPoint),Me(t.y,n.translate,n.scale,n.originPoint)}const es=.999999999999,ns=1.0000000000001;function Al(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&&ht(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,qi(t,r)),s&&et(o.latestValues)&&ht(t,o.latestValues))}e.x<ns&&e.x>es&&(e.x=1),e.y<ns&&e.y>es&&(e.y=1)}function ut(t,e){t.min=t.min+e,t.max=t.max+e}function ss(t,e,n,s,i=.5){const o=D(t.min,t.max,i);Me(t,e,n,o,s)}function ht(t,e){ss(t.x,e.x,e.scaleX,e.scale,e.originX),ss(t.y,e.y,e.scaleY,e.scale,e.originY)}function Xi(t,e){return zi(Sl(t.getBoundingClientRect(),e))}function Cl(t,e,n){const s=Xi(t,n),{scroll:i}=e;return i&&(ut(s.x,i.offset.x),ut(s.y,i.offset.y)),s}const Yi=({current:t})=>t?t.ownerDocument.defaultView:null,Vl=new WeakMap;class Dl{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=E(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=u=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(jt(u).point)},o=(u,h)=>{const{drag:d,dragPropagation:f,onDragStart:p}=this.getProps();if(d&&!f&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ol(d),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),U(v=>{let y=this.getAxisMotionValue(v).get()||0;if(G.test(y)){const{projection:b}=this.visualElement;if(b&&b.layout){const P=b.layout.layoutBox[v];P&&(y=O(P)*(parseFloat(y)/100))}}this.originPoint[v]=y}),p&&V.postRender(()=>p(u,h)),ye(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},r=(u,h)=>{const{dragPropagation:d,dragDirectionLock:f,onDirectionLock:p,onDrag:g}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:v}=h;if(f&&this.currentDirection===null){this.currentDirection=Ml(v),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",h.point,v),this.updateAxis("y",h.point,v),this.visualElement.render(),g&&g(u,h)},a=(u,h)=>this.stop(u,h),l=()=>U(u=>{var h;return this.getAnimationState(u)==="paused"&&((h=this.getAxisMotionValue(u).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Wi(e,{onSessionStart:i,onStart:o,onMove:r,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:Yi(this.visualElement)})}stop(e,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&V.postRender(()=>o(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.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!It(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=yl(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&&at(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=vl(i.layoutBox,n):this.constraints=!1,this.elastic=Pl(s),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&U(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=bl(i.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!at(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=Cl(s,i.root,this.visualElement.getTransformPagePoint());let r=xl(i.layout.layoutBox,o);if(n){const a=n(wl(r));this.hasMutatedConstraints=!!a,a&&(r=zi(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=U(u=>{if(!It(u,n,this.currentDirection))return;let h=l&&l[u]||{};r&&(h={min:0,max:0});const d=i?200:1e6,f=i?40:1e7,p={type:"inertia",velocity:s?e[u]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(u,p)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return ye(this.visualElement,e),s.start(un(e,s,0,n,this.visualElement,!1))}stopAnimation(){U(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){U(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){U(n=>{const{drag:s}=this.getProps();if(!It(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]-D(r,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!at(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};U(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const l=a.get();i[r]=Tl({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(),U(r=>{if(!It(r,e,null))return;const a=this.getAxisMotionValue(r),{min:l,max:c}=this.constraints[r];a.set(D(l,c,i[r]))})}addListeners(){if(!this.visualElement.current)return;Vl.set(this.visualElement,this);const e=this.visualElement.current,n=Pt(e,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();at(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()),V.read(s);const r=Mt(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(U(u=>{const h=this.getAxisMotionValue(u);h&&(this.originPoint[u]+=l[u].translate,h.set(h.get()+l[u].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=Ve,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function It(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Ml(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Rl extends J{constructor(e){super(e),this.removeGroupControls=I,this.removeListeners=I,this.controls=new Dl(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||I}unmount(){this.removeGroupControls(),this.removeListeners()}}const is=t=>(e,n)=>{t&&V.postRender(()=>t(e,n))};class El extends J{constructor(){super(...arguments),this.removePointerDownListener=I}onPointerDown(e){this.session=new Wi(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Yi(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:is(e),onStart:is(n),onMove:s,onEnd:(o,r)=>{delete this.session,i&&V.postRender(()=>i(o,r))}}}mount(){this.removePointerDownListener=Pt(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const _t={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rs(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(w.test(t))t=parseFloat(t);else return t;const n=rs(t,e.target.x),s=rs(t,e.target.y);return`${n}% ${s}%`}},Ll={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=Q.parse(t);if(i.length>5)return s;const o=Q.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 c=D(a,l,.5);return typeof i[2+r]=="number"&&(i[2+r]/=c),typeof i[3+r]=="number"&&(i[3+r]/=c),o(i)}};class jl extends x.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=e;io(kl),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()})),_t.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()||V.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Oe.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 Zi(t){const[e,n]=Fs(),s=x.useContext(Ee);return m.jsx(jl,{...t,layoutGroup:s,switchLayoutGroup:x.useContext(Ks),isPresent:e,safeToRemove:n})}const kl={borderRadius:{...yt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:yt,borderTopRightRadius:yt,borderBottomLeftRadius:yt,borderBottomRightRadius:yt,boxShadow:Ll};function Fl(t,e,n){const s=F(t)?t:Vt(t);return s.start(un("",s,e,n)),s.animation}function Bl(t){return t instanceof SVGElement&&t.tagName!=="svg"}const Il=(t,e)=>t.depth-e.depth;class Ol{constructor(){this.children=[],this.isDirty=!1}add(e){Xe(this.children,e),this.isDirty=!0}remove(e){Ye(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Il),this.isDirty=!1,this.children.forEach(e)}}function Nl(t,e){const n=$.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(Z(s),t(o-e))};return V.read(s,!0),()=>Z(s)}const Qi=["TopLeft","TopRight","BottomLeft","BottomRight"],_l=Qi.length,os=t=>typeof t=="string"?parseFloat(t):t,as=t=>typeof t=="number"||w.test(t);function Ul(t,e,n,s,i,o){i?(t.opacity=D(0,n.opacity!==void 0?n.opacity:1,Wl(s)),t.opacityExit=D(e.opacity!==void 0?e.opacity:1,0,Kl(s))):o&&(t.opacity=D(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let r=0;r<_l;r++){const a=`border${Qi[r]}Radius`;let l=ls(e,a),c=ls(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||as(l)===as(c)?(t[a]=Math.max(D(os(l),os(c),s),0),(G.test(c)||G.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=D(e.rotate||0,n.rotate||0,s))}function ls(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Wl=Ji(0,.5,pi),Kl=Ji(.5,.95,I);function Ji(t,e,n){return s=>s<t?0:s>e?1:n(ft(t,e,s))}function cs(t,e){t.min=e.min,t.max=e.max}function _(t,e){cs(t.x,e.x),cs(t.y,e.y)}function us(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function hs(t,e,n,s,i){return t-=e,t=Ht(t,1/n,s),i!==void 0&&(t=Ht(t,1/i,s)),t}function Gl(t,e=0,n=1,s=.5,i,o=t,r=t){if(G.test(e)&&(e=parseFloat(e),e=D(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=D(o.min,o.max,s);t===o&&(a-=e),t.min=hs(t.min,e,n,a,i),t.max=hs(t.max,e,n,a,i)}function ds(t,e,[n,s,i],o,r){Gl(t,e[n],e[s],e[i],e.scale,o,r)}const $l=["x","scaleX","originX"],zl=["y","scaleY","originY"];function fs(t,e,n,s){ds(t.x,e,$l,n?n.x:void 0,s?s.x:void 0),ds(t.y,e,zl,n?n.y:void 0,s?s.y:void 0)}function ms(t){return t.translate===0&&t.scale===1}function tr(t){return ms(t.x)&&ms(t.y)}function ps(t,e){return t.min===e.min&&t.max===e.max}function Hl(t,e){return ps(t.x,e.x)&&ps(t.y,e.y)}function gs(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function er(t,e){return gs(t.x,e.x)&&gs(t.y,e.y)}function ys(t){return O(t.x)/O(t.y)}function vs(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class ql{constructor(){this.members=[]}add(e){Xe(this.members,e),e.scheduleRender()}remove(e){if(Ye(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 Xl(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:c,rotate:u,rotateX:h,rotateY:d,skewX:f,skewY:p}=n;c&&(s=`perspective(${c}px) ${s}`),u&&(s+=`rotate(${u}deg) `),h&&(s+=`rotateX(${h}deg) `),d&&(s+=`rotateY(${d}deg) `),f&&(s+=`skewX(${f}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 nt={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},xt=typeof window<"u"&&window.MotionDebug!==void 0,he=["","X","Y","Z"],Yl={visibility:"hidden"},xs=1e3;let Zl=0;function de(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function nr(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=ri(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",V,!(i||o))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&nr(s)}function sr({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e==null?void 0:e()){this.id=Zl++,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&&(nt.totalNodes=nt.resolvedTargetDeltas=nt.recalculatedProjection=0),this.nodes.forEach(tc),this.nodes.forEach(rc),this.nodes.forEach(oc),this.nodes.forEach(ec),xt&&window.MotionDebug.record(nt)},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 Ol)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new Ze),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=Bl(r),this.instance=r;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(c||l)&&(this.isLayoutDirty=!0),t){let h;const d=()=>this.root.updateBlockedByResize=!1;t(r,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=Nl(d,250),_t.hasAnimatedSinceResize&&(_t.hasAnimatedSinceResize=!1,this.nodes.forEach(bs))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:d,hasRelativeTargetChanged:f,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||u.getDefaultTransition()||hc,{onLayoutAnimationStart:v,onLayoutAnimationComplete:y}=u.getProps(),b=!this.targetLayout||!er(this.targetLayout,p)||f,P=!d&&f;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||P||d&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,P);const A={...qe(g,"layout"),onPlay:v,onComplete:y};(u.shouldReduceMotion||this.options.layoutRoot)&&(A.delay=0,A.type=!1),this.startAnimation(A)}else d||bs(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,Z(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(ac),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.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&nr(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const h=this.path[u];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 c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ts);return}this.isUpdating||this.nodes.forEach(sc),this.isUpdating=!1,this.nodes.forEach(ic),this.nodes.forEach(Ql),this.nodes.forEach(Jl),this.clearAllSnapshots();const a=$.now();L.delta=X(0,1e3/60,a-L.timestamp),L.timestamp=a,L.isProcessing=!0,se.update.process(L),se.preRender.process(L),se.render.process(L),L.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Oe.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(nc),this.sharedNodes.forEach(lc)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,V.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){V.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=E(),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&&!tr(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;r&&(a||et(this.latestValues)||u)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return r&&(l=this.removeTransform(l)),dc(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var r;const{visualElement:a}=this.options;if(!a)return E();const l=a.measureViewportBox();if(!(((r=this.scroll)===null||r===void 0?void 0:r.wasRoot)||this.path.some(fc))){const{scroll:u}=this.root;u&&(ut(l.x,u.offset.x),ut(l.y,u.offset.y))}return l}removeElementScroll(r){var a;const l=E();if(_(l,r),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:h,options:d}=u;u!==this.root&&h&&d.layoutScroll&&(h.wasRoot&&_(l,r),ut(l.x,h.offset.x),ut(l.y,h.offset.y))}return l}applyTransform(r,a=!1){const l=E();_(l,r);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&ht(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),et(u.latestValues)&&ht(l,u.latestValues)}return et(this.latestValues)&&ht(l,this.latestValues),l}removeTransform(r){const a=E();_(a,r);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!et(c.latestValues))continue;De(c.latestValues)&&c.updateSnapshot();const u=E(),h=c.measurePageBox();_(u,h),fs(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return et(this.latestValues)&&fs(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!==L.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 c=!!this.resumingFrom||this!==l;if(!(r||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:d}=this.options;if(!(!this.layout||!(h||d))){if(this.resolvedRelativeTargetAt=L.timestamp,!this.targetDelta&&!this.relativeTarget){const f=this.getClosestProjectingParent();f&&f.layout&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=E(),this.relativeTargetOrigin=E(),St(this.relativeTargetOrigin,this.layout.layoutBox,f.layout.layoutBox),_(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=E(),this.targetWithTransforms=E()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),gl(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):_(this.target,this.layout.layoutBox),qi(this.target,this.targetDelta)):_(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const f=this.getClosestProjectingParent();f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=E(),this.relativeTargetOrigin=E(),St(this.relativeTargetOrigin,this.target,f.target),_(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}xt&&nt.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||De(this.parent.latestValues)||Hi(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 c=!0;if((this.isProjectionDirty||!((r=this.parent)===null||r===void 0)&&r.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===L.timestamp&&(c=!1),c)return;const{layout:u,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||!(u||h))return;_(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;Al(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=E());const{target:p}=a;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(us(this.prevProjectionDelta.x,this.projectionDelta.x),us(this.prevProjectionDelta.y,this.projectionDelta.y)),wt(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!vs(this.projectionDelta.x,this.prevProjectionDelta.x)||!vs(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p)),xt&&nt.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,c=l?l.latestValues:{},u={...this.latestValues},h=ct();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=E(),f=l?l.source:void 0,p=this.layout?this.layout.source:void 0,g=f!==p,v=this.getStack(),y=!v||v.members.length<=1,b=!!(g&&!y&&this.options.crossfade===!0&&!this.path.some(uc));this.animationProgress=0;let P;this.mixTargetDelta=A=>{const T=A/1e3;Ps(h.x,r.x,T),Ps(h.y,r.y,T),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(St(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),cc(this.relativeTarget,this.relativeTargetOrigin,d,T),P&&Hl(this.relativeTarget,P)&&(this.isProjectionDirty=!1),P||(P=E()),_(P,this.relativeTarget)),g&&(this.animationValues=u,Ul(u,c,this.latestValues,T,b,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},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&&(Z(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=V.update(()=>{_t.hasAnimatedSinceResize=!0,this.currentAnimation=Fl(0,xs,{...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(xs),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=r;if(!(!a||!l||!c)){if(this!==r&&this.layout&&c&&ir(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||E();const h=O(this.layout.layoutBox.x);l.x.min=r.target.x.min,l.x.max=l.x.min+h;const d=O(this.layout.layoutBox.y);l.y.min=r.target.y.min,l.y.max=l.y.min+d}_(a,l),ht(a,u),wt(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new ql),this.sharedNodes.get(r).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.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 c=this.getStack();c&&c.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 c={};l.z&&de("z",r,c,this.animationValues);for(let u=0;u<he.length;u++)de(`rotate${he[u]}`,r,c,this.animationValues),de(`skew${he[u]}`,r,c,this.animationValues);r.render();for(const u in c)r.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);r.scheduleRender()}getProjectionStyles(r){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Yl;const c={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=Ot(r==null?void 0:r.pointerEvents)||"",c.transform=u?u(this.latestValues,""):"none",c;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=Ot(r==null?void 0:r.pointerEvents)||""),this.hasProjected&&!et(this.latestValues)&&(g.transform=u?u({},""):"none",this.hasProjected=!1),g}const d=h.animationValues||h.latestValues;this.applyTransformsToTarget(),c.transform=Xl(this.projectionDeltaWithTransform,this.treeScale,d),u&&(c.transform=u(d,c.transform));const{x:f,y:p}=this.projectionDelta;c.transformOrigin=`${f.origin*100}% ${p.origin*100}% 0`,h.animationValues?c.opacity=h===this?(l=(a=d.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:c.opacity=h===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const g in Wt){if(d[g]===void 0)continue;const{correct:v,applyTo:y}=Wt[g],b=c.transform==="none"?d[g]:v(d[g],h);if(y){const P=y.length;for(let A=0;A<P;A++)c[y[A]]=b}else c[g]=b}return this.options.layoutId&&(c.pointerEvents=h===this?Ot(r==null?void 0:r.pointerEvents)||"":"none"),c}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(Ts),this.root.sharedNodes.clear()}}}function Ql(t){t.updateLayout()}function Jl(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"?U(h=>{const d=r?n.measuredBox[h]:n.layoutBox[h],f=O(d);d.min=s[h].min,d.max=d.min+f}):ir(o,n.layoutBox,s)&&U(h=>{const d=r?n.measuredBox[h]:n.layoutBox[h],f=O(s[h]);d.max=d.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+f)});const a=ct();wt(a,s,n.layoutBox);const l=ct();r?wt(l,t.applyTransform(i,!0),n.measuredBox):wt(l,s,n.layoutBox);const c=!tr(a);let u=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:d,layout:f}=h;if(d&&f){const p=E();St(p,n.layoutBox,d.layoutBox);const g=E();St(g,s,f.layoutBox),er(p,g)||(u=!0),h.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=p,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function tc(t){xt&&nt.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 ec(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function nc(t){t.clearSnapshot()}function Ts(t){t.clearMeasurements()}function sc(t){t.isLayoutDirty=!1}function ic(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function bs(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function rc(t){t.resolveTargetDelta()}function oc(t){t.calcProjection()}function ac(t){t.resetSkewAndRotation()}function lc(t){t.removeLeadSnapshot()}function Ps(t,e,n){t.translate=D(e.translate,0,n),t.scale=D(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function ws(t,e,n,s){t.min=D(e.min,n.min,s),t.max=D(e.max,n.max,s)}function cc(t,e,n,s){ws(t.x,e.x,n.x,s),ws(t.y,e.y,n.y,s)}function uc(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const hc={duration:.45,ease:[.4,0,.1,1]},Ss=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),As=Ss("applewebkit/")&&!Ss("chrome/")?Math.round:I;function Cs(t){t.min=As(t.min),t.max=As(t.max)}function dc(t){Cs(t.x),Cs(t.y)}function ir(t,e,n){return t==="position"||t==="preserve-aspect"&&!pl(ys(e),ys(n),.2)}function fc(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const mc=sr({attachResizeListener:(t,e)=>Mt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),fe={current:void 0},rr=sr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!fe.current){const t=new mc({});t.mount(window),t.setOptions({layoutScroll:!0}),fe.current=t}return fe.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),pc={pan:{Feature:El},drag:{Feature:Rl,ProjectionNode:rr,MeasureLayout:Zi}};function gc(t,e,n){var s;if(t instanceof Element)return[t];if(typeof t=="string"){let i=document;const o=(s=void 0)!==null&&s!==void 0?s:i.querySelectorAll(t);return o?Array.from(o):[]}return Array.from(t)}function or(t,e){const n=gc(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function Vs(t){return e=>{e.pointerType==="touch"||Ui()||t(e)}}function yc(t,e,n={}){const[s,i,o]=or(t,n),r=Vs(a=>{const{target:l}=a,c=e(a);if(typeof c!="function"||!l)return;const u=Vs(h=>{c(h),l.removeEventListener("pointerleave",u)});l.addEventListener("pointerleave",u,i)});return s.forEach(a=>{a.addEventListener("pointerenter",r,i)}),o}function Ds(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=s[i];o&&V.postRender(()=>o(e,jt(e)))}class vc extends J{mount(){const{current:e}=this.node;e&&(this.unmount=yc(e,n=>(Ds(this.node,n,"Start"),s=>Ds(this.node,s,"End"))))}unmount(){}}class xc extends J{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=Lt(Mt(this.node.current,"focus",()=>this.onFocus()),Mt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const ar=(t,e)=>e?t===e?!0:ar(t,e.parentElement):!1,Tc=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function bc(t){return Tc.has(t.tagName)||t.tabIndex!==-1}const Tt=new WeakSet;function Ms(t){return e=>{e.key==="Enter"&&t(e)}}function me(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Pc=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=Ms(()=>{if(Tt.has(n))return;me(n,"down");const i=Ms(()=>{me(n,"up")}),o=()=>me(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function Rs(t){return hn(t)&&!Ui()}function wc(t,e,n={}){const[s,i,o]=or(t,n),r=a=>{const l=a.currentTarget;if(!Rs(a)||Tt.has(l))return;Tt.add(l);const c=e(a),u=(f,p)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",d),!(!Rs(f)||!Tt.has(l))&&(Tt.delete(l),typeof c=="function"&&c(f,{success:p}))},h=f=>{u(f,n.useGlobalTarget||ar(l,f.target))},d=f=>{u(f,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",d,i)};return s.forEach(a=>{!bc(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,i),a.addEventListener("focus",c=>Pc(c,i),i)}),o}function Es(t,e,n){const{props:s}=t;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=s[i];o&&V.postRender(()=>o(e,jt(e)))}class Sc extends J{mount(){const{current:e}=this.node;e&&(this.unmount=wc(e,n=>(Es(this.node,n,"Start"),(s,{success:i})=>Es(this.node,s,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Re=new WeakMap,pe=new WeakMap,Ac=t=>{const e=Re.get(t.target);e&&e(t)},Cc=t=>{t.forEach(Ac)};function Vc({root:t,...e}){const n=t||document;pe.has(n)||pe.set(n,{});const s=pe.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(Cc,{root:t,...e})),s[i]}function Dc(t,e,n){const s=Vc(e);return Re.set(t,n),s.observe(t),()=>{Re.delete(t),s.unobserve(t)}}const Mc={some:0,all:1};class Rc extends J{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:Mc[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:h}=this.node.getProps(),d=c?u:h;d&&d(l)};return Dc(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(Ec(e,n))&&this.startObserver()}unmount(){}}function Ec({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Lc={inView:{Feature:Rc},tap:{Feature:Sc},focus:{Feature:xc},hover:{Feature:vc}},jc={layout:{ProjectionNode:rr,MeasureLayout:Zi}},qt={current:null},dn={current:!1};function lr(){if(dn.current=!0,!!ke)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>qt.current=t.matches;t.addListener(e),e()}else qt.current=!1}const kc=[...Mi,k,Q],Fc=t=>kc.find(Di(t)),Ls=new WeakMap;function Bc(t,e,n){for(const s in e){const i=e[s],o=n[s];if(F(i))t.addValue(s,i);else if(F(o))t.addValue(s,Vt(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,Vt(r!==void 0?r:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const js=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ic{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:o,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=an,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=$.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,V.render(this.render,!1,!0))};const{latestValues:l,renderState:c,onUpdate:u}=r;this.onUpdate=u,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,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=Qt(n),this.isVariantNode=Us(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const p=d[f];l[f]!==void 0&&F(p)&&p.set(l[f],!1)}}mount(e){this.current=e,Ls.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)),dn.current||lr(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:qt.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Ls.delete(this.current),this.projection&&this.projection.unmount(),Z(this.notifyUpdate),Z(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),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){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=rt.has(e),i=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&V.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o(),r&&r(),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):E()}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<js.length;s++){const i=js[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=Bc(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){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=Vt(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"&&(Ci(i)||yi(i))?i=parseFloat(i):!Fc(i)&&Q.test(n)&&(i=wi(e,n)),this.setBaseTarget(e,F(i)?i.get():i)),F(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=_e(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&&!F(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 Ze),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class cr extends Ic{constructor(){super(...arguments),this.KeyframeResolver=Ri}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]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;F(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Oc(t){return window.getComputedStyle(t)}class Nc extends cr{constructor(){super(...arguments),this.type="html",this.renderInstance=Ys}readValueFromInstance(e,n){if(rt.has(n)){const s=on(n);return s&&s.default||0}else{const s=Oc(e),i=(Hs(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Xi(e,n)}build(e,n,s){Ke(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return He(e,n,s)}}class _c extends cr{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=E}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(rt.has(n)){const s=on(n);return s&&s.default||0}return n=Zs.has(n)?n:Ie(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return ti(e,n,s)}build(e,n,s){Ge(e,n,this.isSVGTag,s.transformTemplate)}renderInstance(e,n,s,i){Qs(e,n,s,i)}mount(e){this.isSVGTag=ze(e.tagName),super.mount(e)}}const Uc=(t,e)=>Ne(t)?new _c(e):new Nc(e,{allowProjection:t!==x.Fragment}),Wc=mo({...rl,...Lc,...pc,...jc},Uc),Kc=Dr(Wc);function Gc(){!dn.current&&lr();
10const[t]=x.useState(qt.current);return t}function $c({id:t}){return m.jsx("svg",{"aria-hidden":"true",className:"absolute h-0 w-0",focusable:"false",children:m.jsxs("filter",{id:t,colorInterpolationFilters:"sRGB",x:"0",y:"0",width:"100%",height:"100%",children:[m.jsx("feColorMatrix",{in:"SourceGraphic",result:"lightness-knockout",values:`0 0 0 0 1
11                  0 0 0 0 1
12                  0 0 0 0 1
13                 -1 -1 -1 0 2.95`}),m.jsx("feComponentTransfer",{in:"lightness-knockout",result:"thresholded-mark",children:m.jsx("feFuncA",{type:"discrete",tableValues:"0 0 1 1"})}),m.jsx("feComposite",{in:"thresholded-mark",in2:"SourceGraphic",operator:"in"})]})})}const zc=[[62,231],[112,269],[168,246],[208,302],[126,335],[192,370],[282,353]],ks="M62 231L112 269L168 246L208 302L282 353L192 370L126 335L62 231M112 269L126 335M168 246L126 335M208 302L192 370";function Hc(){return m.jsx("div",{"aria-hidden":"true",className:"mobile-hero-globe-shell pointer-events-none absolute -right-[48%] top-[80px] z-[1] block aspect-square w-[440px] opacity-[0.29] sm:-right-[30%] sm:top-[92px] sm:w-[480px] md:hidden",children:m.jsxs("svg",{className:"mobile-hero-globe h-full w-full overflow-visible",viewBox:"0 0 420 420",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsxs("defs",{children:[m.jsx("clipPath",{id:"mobile-hero-globe-clip",children:m.jsx("circle",{cx:"210",cy:"210",r:"181"})}),m.jsxs("linearGradient",{id:"mobile-hero-globe-surface",x1:"28",y1:"210",x2:"392",y2:"392",gradientUnits:"userSpaceOnUse",children:[m.jsx("stop",{stopColor:"#ff2e63"}),m.jsx("stop",{offset:"0.4",stopColor:"#ae55e8"}),m.jsx("stop",{offset:"0.72",stopColor:"#527cff"}),m.jsx("stop",{offset:"1",stopColor:"#315fe3"})]})]}),m.jsxs("g",{className:"mobile-hero-globe-sphere",children:[m.jsx("g",{clipPath:"url(#mobile-hero-globe-clip)",children:m.jsx("path",{d:"M28 210C28 248.66 109.49 280 210 280C310.51 280 392 248.66 392 210C392 310.51 310.51 392 210 392C109.49 392 28 310.51 28 210Z",fill:"url(#mobile-hero-globe-surface)",fillOpacity:"0.5"})}),m.jsx("circle",{cx:"210",cy:"210",r:"182",stroke:"#7892ff",strokeWidth:"0.8"}),m.jsx("ellipse",{cx:"210",cy:"210",rx:"182",ry:"70",stroke:"#718cff",strokeWidth:"0.55"}),m.jsx("ellipse",{cx:"210",cy:"210",rx:"182",ry:"128",stroke:"#ff5a83",strokeWidth:"0.5"}),m.jsxs("g",{className:"mobile-hero-globe-meridians",children:[m.jsx("ellipse",{cx:"210",cy:"210",rx:"72",ry:"182",stroke:"#6d88ff",strokeWidth:"0.55"}),m.jsx("ellipse",{cx:"210",cy:"210",rx:"126",ry:"182",stroke:"#9279ff",strokeWidth:"0.5"}),m.jsx("ellipse",{className:"mobile-hero-globe-signal mobile-hero-globe-signal--blue",cx:"210",cy:"210",rx:"126",ry:"182",pathLength:"360",stroke:"#6f8cff",strokeWidth:"0.8",strokeLinecap:"round",strokeDasharray:"10 170"})]}),m.jsx("ellipse",{className:"mobile-hero-globe-signal mobile-hero-globe-signal--primary",cx:"210",cy:"210",rx:"182",ry:"128",pathLength:"360",stroke:"#ff2e63",strokeWidth:"0.9",strokeLinecap:"round",strokeDasharray:"14 166"}),m.jsxs("g",{className:"mobile-hero-globe-network",clipPath:"url(#mobile-hero-globe-clip)",children:[m.jsx("path",{d:ks,fill:"none",stroke:"#718cff",strokeOpacity:"0.48",strokeWidth:"0.65"}),m.jsx("path",{className:"mobile-hero-globe-network-signal",d:ks,pathLength:"480",fill:"none",stroke:"#ff2e63",strokeWidth:"1.15",strokeLinecap:"round",strokeDasharray:"12 108"}),zc.map(([t,e],n)=>m.jsxs("g",{children:[m.jsx("circle",{className:"mobile-hero-globe-node-halo",cx:t,cy:e,r:"5.5",stroke:n%2===0?"#ff2e63":"#718cff",strokeWidth:"0.7",style:{animationDelay:`${n*-.8}s`}}),m.jsx("circle",{className:"mobile-hero-globe-node",cx:t,cy:e,r:"2.1",fill:n%2===0?"#ff6f91":"#9aabff",style:{animationDelay:`${n*-.8}s`}})]},`${t}-${e}`))]})]})]})})}class qc{static isWebGL2Available(){try{const e=document.createElement("canvas");return!!(window.WebGL2RenderingContext&&e.getContext("webgl2"))}catch{return!1}}static isColorSpaceAvailable(e){try{const n=document.createElement("canvas"),s=window.WebGL2RenderingContext&&n.getContext("webgl2");return s.drawingBufferColorSpace=e,s.drawingBufferColorSpace===e}catch{return!1}}static getWebGL2ErrorMessage(){return this._getErrorMessage(2)}static _getErrorMessage(e){const n={1:"WebGL",2:"WebGL 2"},s={1:window.WebGLRenderingContext,2:window.WebGL2RenderingContext};
13let i='Your $0 does not seem to support <a href="http://khronos.org/webgl/wiki/Getting_a_WebGL_Implementation" style="color:#000">$1</a>';const o=document.createElement("div");return o.id="webglmessage",o.style.fontFamily="monospace",o.style.fontSize="13px",o.style.fontWeight="normal",o.style.textAlign="center",o.style.background="#fff",o.style.color="#000",o.style.padding="1.5em",o.style.width="400px",o.style.margin="5em auto 0",s[e]?i=i.replace("$0","graphics card"):i=i.replace("$0","browser"),i=i.replace("$1",n[e]),o.innerHTML=i,o}}const Xc=""+new URL("hero-network-poster-DNQ4_HTM.webp",import.meta.url).href,Yc=x.lazy(()=>mr(()=>import("./Hero3D-DntbCCbk.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(t=>({default:t.Hero3D})));function Zc({content:t=fr}){return m.jsxs("section",{className:"hero-section relative flex min-h-0 flex-col overflow-hidden site-hero-shell md:min-h-[86svh]",children:[m.jsx(nu,{}),m.jsx(Hc,{}),m.jsx(Qc,{}),m.jsx("div",{className:"relative z-10 flex flex-1 items-start site-hero-copy",children:m.jsx(gn,{className:"hero-container",children:m.jsxs("div",{className:"max-w-[1120px] lg:ml-[7%]",children:[m.jsx(tu,{content:t}),m.jsxs("h1",{className:"hero-heading text-display mb-7 text-balance sm:mb-9",children:[m.jsxs("span",{className:"hero-heading-primary",children:[m.jsx(K,{path:["headingLead"],children:t.headingLead})," ",m.jsxs("span",{className:"hero-heading-accent",children:[m.jsx(K,{path:["accent"],children:t.accent}),m.jsx(K,{path:["headingTail"],children:t.headingTail})]})]})," ",m.jsx("span",{className:"hero-heading-secondary",children:m.jsx(K,{path:["supportLead"],children:t.supportLead})}),m.jsx("span",{className:"hero-heading-emphasis",children:m.jsx(K,{path:["supportAccent"],children:t.supportAccent})}),m.jsx("span",{className:"hero-heading-tail",children:m.jsx(K,{path:["supportTail"],children:t.supportTail})})]}),m.jsxs("div",{className:"hero-actions flex flex-wrap gap-2 sm:gap-3",children:[m.jsx(yn,{href:t.primary.href,size:"lg",arrow:!0,className:"hero-cta",children:m.jsx(K,{path:["primary","label"],children:t.primary.label})}),m.jsxs(yn,{href:t.secondary.href,target:"_blank",rel:"noreferrer",variant:"ghost",size:"lg",className:"hero-cta",children:[m.jsx(pr,{}),m.jsx(K,{path:["secondary","label"],children:t.secondary.label})]})]})]})})}),m.jsx("div",{className:"relative z-[5] mt-24 border-y border-line/60 sm:mt-28 md:mt-auto",children:m.jsx(gn,{className:"hero-logo-container",children:m.jsx(eu,{content:t})})})]})}function Qc(){const[t,e]=x.useState(!1),[n,s]=x.useState(!1),[i,o]=x.useState(!1),r=vn("(min-width: 768px)"),a=vn("(prefers-reduced-motion: reduce)");x.useEffect(()=>{if(!r||a||i){e(!1),s(!1);return}const c=()=>{qc.isWebGL2Available()?e(!0):o(!0)},u=Reflect.get(window,"requestIdleCallback"),h=Reflect.get(window,"cancelIdleCallback");if(u&&h){const f=u(c,{timeout:800});return()=>h(f)}const d=window.setTimeout(c,1);return()=>window.clearTimeout(d)},[r,a,i]);const l=m.jsx("div",{className:"hero-static-fallback","aria-hidden":"true",children:m.jsxs("picture",{children:[m.jsx("source",{media:"(min-width: 768px)",srcSet:Xc}),m.jsx("img",{src:"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1' height='1'/%3E",width:"1000",height:"500",alt:""})]})});return!r||!t||a||i?l:m.jsxs(Jc,{fallback:l,children:[!n&&l,m.jsx(x.Suspense,{fallback:null,children:m.jsx(Yc,{onReady:()=>s(!0),onUnavailable:()=>o(!0)})})]})}class Jc extends x.Component{constructor(){super(...arguments);pn(this,"state",{failed:!1})}static getDerivedStateFromError(){return{failed:!0}}render(){return this.state.failed?this.props.fallback:this.props.children}}function tu({content:t}){const e=Gc(),[n,s]=x.useState(0);return x.useEffect(()=>{if(e)return;const i=window.setInterval(()=>s(o=>(o+1)%t.signals.length),2800);return()=>window.clearInterval(i)},[e,t.signals.length]),m.jsxs("div",{className:"hero-signal mb-5 flex min-h-6 items-center gap-x-1.5 whitespace-nowrap text-xs leading-6 sm:mb-8 sm:text-sm",children:[m.jsx("span",{className:"font-semibold text-ink",children:m.jsx(K,{path:["signalLead"],children:t.signalLead})}),m.jsx("span",{className:"sr-only",children:t.signals.join(", ")}),m.jsx("span",{"aria-hidden":"true",className:"relative grid h-6 w-[180px] max-w-full overflow-hidden text-muted sm:w-[230px]",children:m.jsx(Tr,{mode:"popLayout",initial:!1,children:m.jsx(Kc.span,{className:"col-start-1 row-start-1 font-medium text-ink-2",initial:e?!1:{y:"100%",opacity:0}
13,animate:{y:0,opacity:1},exit:e?void 0:{y:"-100%",opacity:0},transition:{duration:.4,ease:[.2,.8,.2,1]},children:m.jsx(K,{path:["signals",n],children:t.signals[n]})},t.signals[n])})})]})}function eu({content:t}){return m.jsxs("div",{className:"hero-logo-marquee relative overflow-hidden [mask-image:linear-gradient(to_right,transparent,black_6%,black_94%,transparent)]",children:[m.jsx($c,{id:"hero-logo-knockout-white"}),m.jsx("div",{className:"hero-logo-marquee-track flex w-max animate-[marquee_40s_linear_infinite]",children:[0,1].map(e=>m.jsx("ul",{className:"flex shrink-0 items-center","aria-hidden":e===1,children:t.customerLogos.map(n=>m.jsx("li",{className:"flex h-[70px] w-[148px] shrink-0 items-stretch sm:h-[76px] sm:w-[164px] md:h-[84px] md:w-[180px]",children:m.jsx("a",{className:"hero-logo-tile",href:n.href,tabIndex:e===1?-1:void 0,children:m.jsx("img",{src:n.src,alt:e===0?n.alt:"",className:`hero-customer-logo hero-customer-logo--${n.id}`})})},n.alt))},e))})]})}function nu(){return m.jsxs("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 z-0 overflow-hidden",children:[m.jsx("div",{className:"absolute -right-[12%] -top-[25%] hidden h-[150%] w-[68%] animate-[spin_60s_linear_infinite] opacity-40 blur-[90px] [background:conic-gradient(from_140deg_at_60%_50%,#ff2e63_0%,#ff5a83_36%,#ff2e63_62%,#a855f7_82%,#3b82f6_91%,#ff2e63_100%)] [mask-image:radial-gradient(closest-side,black,transparent)] md:block"}),m.jsx("div",{className:"absolute -bottom-[10%] right-[2%] h-[85%] w-[60%] opacity-35 blur-[90px] [background:radial-gradient(circle_at_58%_62%,rgba(255,46,99,0.55),rgba(168,85,247,0.14)_45%,transparent_72%)] md:w-[48%] md:opacity-75 md:blur-[70px]"})]})}const cu=Object.freeze(Object.defineProperty({__proto__:null,Hero:Zc},Symbol.toStringTag,{value:"Module"}));export{Tr as A,Zc as H,$c as L,cu as a,Kc as m,gc as r,Gc 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.