PageSourceSearch

https://segment8.com/assets/vendor-framer-DZq8tq46.js

js segment8.com collected 2026-10-08 05:45:18 UTC 123,540 bytes, 9 lines download raw bytes

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