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