PageSourceSearch

https://www.dental21-sternschanze.de/_next/static/chunks/6053.03a399a0ec4727be.js

js dental21-sternschanze.de collected 2026-10-09 23:19:25 UTC 141,368 bytes, 9 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6053],{66053:(t,e,i)=>{let n,r,s,o,a;i.r(e),i.d(e,{AcceleratedAnimation:()=>nU,AnimatePresence:()=>A,AnimateSharedLayout:()=>aZ,DeprecatedLayoutGroupContext:()=>E,DragControls:()=>aA,FlatTree:()=>r_,LayoutGroup:()=>U,LayoutGroupContext:()=>c,LazyMotion:()=>H,MotionConfig:()=>Z,MotionConfigContext:()=>m,MotionContext:()=>Q,MotionGlobalConfig:()=>C,MotionValue:()=>eZ,PresenceContext:()=>p,Reorder:()=>l,SwitchLayoutGroupContext:()=>tm,VisualElement:()=>oe,addPointerEvent:()=>n7,addPointerInfo:()=>n8,addScaleCorrector:()=>t7,animate:()=>ah,animateMini:()=>aw,animateValue:()=>nj,animateVisualElement:()=>nq,animationControls:()=>o2,animations:()=>n9,anticipate:()=>it,backIn:()=>e8,backInOut:()=>e7,backOut:()=>e4,buildTransform:()=>t_,calcLength:()=>ra,cancelFrame:()=>k,cancelSync:()=>a7,circIn:()=>ie,circInOut:()=>ir,circOut:()=>ii,clamp:()=>tj,color:()=>iv,complex:()=>iE,createBox:()=>rw,createRendererMotionComponent:()=>tf,createScopedAnimate:()=>au,cubicBezier:()=>e3,delay:()=>rZ,disableInstantTransitions:()=>aI,distance:()=>rt,distance2D:()=>re,domAnimation:()=>oa,domMax:()=>ol,domMin:()=>ou,easeIn:()=>nw,easeInOut:()=>nb,easeOut:()=>nP,filterProps:()=>_,findSpring:()=>np,frame:()=>D,frameData:()=>L,frameSteps:()=>j,inView:()=>aF,inertia:()=>nx,interpolate:()=>nE,invariant:()=>iG,isBrowser:()=>T,isDragActive:()=>eD,isMotionComponent:()=>aC,isMotionValue:()=>tT,isValidMotionProp:()=>G,keyframes:()=>nV,m:()=>el,makeUseVisualState:()=>tA,mirrorEasing:()=>e9,mix:()=>nh,motion:()=>oo,motionValue:()=>eJ,noop:()=>M,optimizedAppearDataAttribute:()=>tc,pipe:()=>nn,progress:()=>eE,px:()=>t$,resolveMotionValue:()=>tS,reverseEasing:()=>e6,scroll:()=>oL,scrollInfo:()=>oV,spring:()=>ny,stagger:()=>a4,startOptimizedAppearAnimation:()=>aY,steps:()=>lt,sync:()=>a8,time:()=>eH,transform:()=>oK,unwrapMotionComponent:()=>aV,useAnimate:()=>ac,useAnimateMini:()=>aP,useAnimation:()=>aT,useAnimationControls:()=>ab,useAnimationFrame:()=>oH,useCycle:()=>aL,useDeprecatedAnimatedState:()=>aq,useDeprecatedInvertedScale:()=>a0,useDomEvent:()=>aS,useDragControls:()=>aM,useElementScroll:()=>oO,useForceUpdate:()=>F,useInView:()=>aB,useInstantLayoutTransition:()=>aR,useInstantTransition:()=>aO,useIsPresent:()=>w,useIsomorphicLayoutEffect:()=>S,useMotionTemplate:()=>o$,useMotionValue:()=>oU,useMotionValueEvent:()=>oh,usePresence:()=>x,useReducedMotion:()=>o0,useReducedMotionConfig:()=>o1,useResetProjection:()=>ak,useScroll:()=>oB,useSpring:()=>oz,useTime:()=>oY,useTransform:()=>oq,useUnmountEffect:()=>o3,useVelocity:()=>oZ,useViewportScroll:()=>oI,useWillChange:()=>oQ,visualElementStore:()=>s7,wrap:()=>o9});var l={};i.r(l),i.d(l,{Group:()=>a5,Item:()=>a6});var u=i(4930),h=i(65162);let c=(0,h.createContext)({});function d(t){let e=(0,h.useRef)(null);return null===e.current&&(e.current=t()),e.current}let p=(0,h.createContext)(null),m=(0,h.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class f extends h.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function g({children:t,isPresent:e}){let i=(0,h.useId)(),n=(0,h.useRef)(null),r=(0,h.useRef)({width:0,height:0,top:0,left:0}),{nonce:s}=(0,h.useContext)(m);return(0,h.useInsertionEffect)(()=>{let{width:t,height:o,top:a,left:l}=r.current;if(e||!n.current||!t||!o)return;n.current.dataset.motionPopId=i;let u=document.createElement("style");return s&&(u.nonce=s),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
2          [data-motion-pop-id="${i}"] {
3            position: absolute !important;
4            width: ${t}px !important;
5            height: ${o}px !important;
6            top: ${a}px !important;
7            left: ${l}px !important;
8          }
9        `),()=>{document.head.removeChild(u)}},[e]),(0,u.jsx)(f,{isPresent:e,childRef:n,sizeRef:r,children:h.cloneElement(t,{ref:n})})}let v=({children:t,initial:e,isPresent:i,onExitComplete:n,custom:r,presenceAffectsLayout:s,mode:o})=>{let a=d(y),l=(0,h.useId)(),c=(0,h.useCallback)(t=>
9{for(let e of(a.set(t,!0),a.values()))if(!e)return;n&&n()},[a,n]),m=(0,h.useMemo)(()=>({id:l,initial:e,isPresent:i,custom:r,onExitComplete:c,register:t=>(a.set(t,!1),()=>a.delete(t))}),s?[Math.random(),c]:[i,c]);return(0,h.useMemo)(()=>{a.forEach((t,e)=>a.set(e,!1))},[i]),h.useEffect(()=>{i||a.size||!n||n()},[i]),"popLayout"===o&&(t=(0,u.jsx)(g,{isPresent:i,children:t})),(0,u.jsx)(p.Provider,{value:m,children:t})};function y(){return new Map}function x(t=!0){let e=(0,h.useContext)(p);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:r}=e,s=(0,h.useId)();(0,h.useEffect)(()=>{t&&r(s)},[t]);let o=(0,h.useCallback)(()=>t&&n&&n(s),[s,n,t]);return!i&&n?[!1,o]:[!0]}function w(){var t;return null===(t=(0,h.useContext)(p))||t.isPresent}let P=t=>t.key||"";function b(t){let e=[];return h.Children.forEach(t,t=>{(0,h.isValidElement)(t)&&e.push(t)}),e}let T="undefined"!=typeof window,S=T?h.useLayoutEffect:h.useEffect,A=({children:t,custom:e,initial:i=!0,onExitComplete:n,presenceAffectsLayout:r=!0,mode:s="sync",propagate:o=!1})=>{let[a,l]=x(o),p=(0,h.useMemo)(()=>b(t),[t]),m=o&&!a?[]:p.map(P),f=(0,h.useRef)(!0),g=(0,h.useRef)(p),y=d(()=>new Map),[w,T]=(0,h.useState)(p),[A,E]=(0,h.useState)(p);S(()=>{f.current=!1,g.current=p;for(let t=0;t<A.length;t++){let e=P(A[t]);m.includes(e)?y.delete(e):!0!==y.get(e)&&y.set(e,!1)}},[A,m.length,m.join("-")]);let M=[];if(p!==w){let t=[...p];for(let e=0;e<A.length;e++){let i=A[e],n=P(i);m.includes(n)||(t.splice(e,0,i),M.push(i))}"wait"===s&&M.length&&(t=M),E(b(t)),T(p);return}let{forceRender:C}=(0,h.useContext)(c);return(0,u.jsx)(u.Fragment,{children:A.map(t=>{let h=P(t),c=(!o||!!a)&&(p===A||m.includes(h));return(0,u.jsx)(v,{isPresent:c,initial:(!f.current||!!i)&&void 0,custom:c?void 0:e,presenceAffectsLayout:r,mode:s,onExitComplete:c?void 0:()=>{if(!y.has(h))return;y.set(h,!0);let t=!0;y.forEach(e=>{e||(t=!1)}),t&&(null==C||C(),E(g.current),o&&(null==l||l()),n&&n())},children:t},h)})})},E=(0,h.createContext)(null),M=t=>t,C={skipAnimations:!1,useManualTiming:!1},V=["read","resolveKeyframes","update","preRender","render","postRender"];function R(t,e){let i=!1,n=!0,r={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,o=V.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,n=!1,r=!1,s=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(e){s.has(e)&&(l.schedule(e),t()),e(o)}let l={schedule:(t,r=!1,o=!1)=>{let a=o&&n?e:i;return r&&s.add(t),a.has(t)||a.add(t),t},cancel:t=>{i.delete(t),s.delete(t)},process:t=>{if(o=t,n){r=!0;return}n=!0,[e,i]=[i,e],e.forEach(a),e.clear(),n=!1,r&&(r=!1,l.process(t))}};return l}(s),t),{}),{read:a,resolveKeyframes:l,update:u,preRender:h,render:c,postRender:d}=o,p=()=>{let s=C.useManualTiming?r.timestamp:performance.now();i=!1,r.delta=n?1e3/60:Math.max(Math.min(s-r.timestamp,40),1),r.timestamp=s,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),h.process(r),c.process(r),d.process(r),r.isProcessing=!1,i&&e&&(n=!1,t(p))},m=()=>{i=!0,n=!0,r.isProcessing||t(p)};return{schedule:V.reduce((t,e)=>{let n=o[e];return t[e]=(t,e=!1,r=!1)=>(i||m(),n.schedule(t,e,r)),t},{}),cancel:t=>{for(let e=0;e<V.length;e++)o[V[e]].cancel(t)},state:r,steps:o}}let{schedule:D,cancel:k,state:L,steps:j}=R("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:M,!0);function F(){let t=function(){let t=(0,h.useRef)(!1);return S(()=>(t.current=!0,()=>{t.current=!1}),[]),t}(),[e,i]=(0,h.useState)(0),n=(0,h.useCallback)(()=>{t.current&&i(e+1)},[e]);return[(0,h.useCallback)(()=>D.postRender(n),[n]),e]}let B=t=>!t.isLayoutDirty&&t.willUpdate(!1),O=t=>!0===t,I=t=>O(!0===t)||"id"===t,U=({children:t,id:e,inherit:i=!0})=>{let n=(0,h.useContext)(c),r=(0,h.useContext)(E),[s,o]=F(),a=(0,h.useRef)(null),l=n.id||r;null===a.current&&(I(i)&&l&&(e=e?l+"-"+e:l),a.current={id:e,group:O(i)&&n.group||function(){let t=new Set,e=new WeakMap,i=()=>t.forEach(B);return{add:n=>{t.add(n),e.set(n,n.addEventListener("willUpdate",i))},remove:n=>{t.delete(n);let r=e.get(n);r&&(r(),e.delete(n)),i()},dirty:i}}()});let d=(0,h.useMemo)(()=>({...a.current,forceRender:s}),[o]);return(0,u.jsx)(c.Provider,{value:d,children:t})},W=(0,h.createContext)({strict:!1}),$={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"]},N={};for(let t in $)N[t]={isEnabled:e=>$[t].some(t=>!!e[t])};function z(t){for(let e in t)N[e]={...N[e],...t[e]}}function H({children:t,features:e,strict:i=!1}){let[,n]=(0,h.useState)(!Y(e)),r=(0,h.useRef)(void 0);if(!Y(e)){let{renderer:t,...i}=e;r.current=t,z(i)}return(0,h.useEffect)(()=>{Y(e)&&e().then(({renderer:t,...e})=>{z(e),r.current=t,n(!0)})},[]),(0,u.jsx)(W.Provider,{value:{renderer:r.current,strict:i},children:t})}function Y(t){return"function"==typeof t}let X=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 G(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||X.has(t)}let K=t=>!G(t);function q(t){t&&(K=e=>e.startsWith("on")?!G(e):t(e))}try{q(require("@emotion/is-prop-valid").default)}catch(t){}function _(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(K(r)||!0===i&&G(r)||!e&&!G(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}function Z({children:t,isValidProp:e,...i}){e&&q(e),(i={...(0,h.useContext)(m),...i}).isStatic=d(()=>i.isStatic);let n=(0,h.useMemo)(()=>i,[JSON.stringify(i.transition),i.transformPagePoint,i.reducedMotion]);return(0,u.jsx)(m.Provider,{value:n,children:t})}function J(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,n)=>"create"===n?t:(e.has(n)||e.set(n,t(n)),e.get(n))})}let Q=(0,h.createContext)({});function tt(t){return"string"==typeof t||Array.isArray(t)}function te(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}let ti=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tn=["initial",...ti];function tr(t){return te(t.animate)||tn.some(e=>tt(t[e]))}function ts(t){return!!(tr(t)||t.variants)}function to(t){return Array.isArray(t)?t.join(" "):t}let ta=Symbol.for("motionComponentSymbol");function tl(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let tu=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),th="framerAppearId",tc="data-"+tu(th),{schedule:td,cancel:tp}=R(queueMicrotask,!1),tm=(0,h.createContext)({});function tf({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:n,Component:r}){var s,o;function a(t,s){var o,a,l;let d,f={...(0,h.useContext)(m),...t,layoutId:function({layoutId:t}){let e=(0,h.useContext)(c).id;return e&&void 0!==t?e+"-"+t:t}(t)},{isStatic:g}=f,v=function(t){let{initial:e,animate:i}=function(t,e){if(tr(t)){let{initial:e,animate:i}=t;return{initial:!1===e||tt(e)?e:void 0,animate:tt(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,h.useContext)(Q));return(0,h.useMemo)(()=>({initial:e,animate:i}),[to(e),to(i)])}(t),y=n(t,g);if(!g&&T){a=0,l=0,(0,h.useContext)(W).strict;let t=function(t){let{drag:e,layout:i}=N;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}
9(f);d=t.MeasureLayout,v.visualElement=function(t,e,i,n,r){var s,o;let{visualElement:a}=(0,h.useContext)(Q),l=(0,h.useContext)(W),u=(0,h.useContext)(p),c=(0,h.useContext)(m).reducedMotion,d=(0,h.useRef)(null);n=n||l.renderer,!d.current&&n&&(d.current=n(t,{visualState:e,parent:a,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:c}));let f=d.current,g=(0,h.useContext)(tm);f&&!f.projection&&r&&("html"===f.type||"svg"===f.type)&&function(t,e,i,n){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!o||a&&tl(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:u})}(d.current,i,r,g);let v=(0,h.useRef)(!1);(0,h.useInsertionEffect)(()=>{f&&v.current&&f.update(i,u)});let y=i[tc],x=(0,h.useRef)(!!y&&!(null==(s=window.MotionHandoffIsComplete)?void 0:s.call(window,y))&&(null==(o=window.MotionHasOptimisedAnimation)?void 0:o.call(window,y)));return S(()=>{f&&(v.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),td.render(f.render),x.current&&f.animationState&&f.animationState.animateChanges())}),(0,h.useEffect)(()=>{f&&(!x.current&&f.animationState&&f.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var t;null==(t=window.MotionHandoffMarkAsComplete)||t.call(window,y)}),x.current=!1))}),f}(r,y,f,e,t.ProjectionNode)}return(0,u.jsxs)(Q.Provider,{value:v,children:[d&&v.visualElement?(0,u.jsx)(d,{visualElement:v.visualElement,...f}):null,i(r,t,(o=v.visualElement,(0,h.useCallback)(t=>{t&&y.onMount&&y.onMount(t),o&&(t?o.mount(t):o.unmount()),s&&("function"==typeof s?s(t):tl(s)&&(s.current=t))},[o])),y,g,v.visualElement)]})}t&&z(t),a.displayName=`motion.${"string"==typeof r?r:`create(${null!=(o=null!=(s=r.displayName)?s:r.name)?o:""})`}`;let l=(0,h.forwardRef)(a);return l[ta]=r,l}let tg=["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 tv(t){if("string"!=typeof t||t.includes("-"));else if(tg.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}function ty(t){let e=[{},{}];return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function tx(t,e,i,n){if("function"==typeof e){let[r,s]=ty(n);e=e(void 0!==i?i:t.custom,r,s)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,s]=ty(n);e=e(void 0!==i?i:t.custom,r,s)}return e}let tw=t=>Array.isArray(t),tP=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),tb=t=>tw(t)?t[t.length-1]||0:t,tT=t=>!!(t&&t.getVelocity);function tS(t){let e=tT(t)?t.get():t;return tP(e)?e.toValue():e}let tA=t=>(e,i)=>{let n=(0,h.useContext)(Q),r=(0,h.useContext)(p),s=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:i},n,r,s){let o={latestValues:function(t,e,i,n){let r={},s=n(t,{});for(let t in s)r[t]=tS(s[t]);let{initial:o,animate:a}=t,l=tr(t),u=ts(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let h=!!i&&!1===i.initial,c=(h=h||!1===o)?a:o;if(c&&"boolean"!=typeof c&&!te(c)){let e=Array.isArray(c)?c:[c];for(let i=0;i<e.length;i++){let n=tx(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let e in t)r[e]=t[e]}}}return r}(n,r,s,t),renderState:e()};return i&&(o.onMount=t=>i({props:n,current:t,...o}),o.onUpdate=t=>i(t)),o})(t,e,n,r);return i?s():d(s)},tE=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],tM=new Set(tE),tC=t=>e=>"string"==typeof e&&e.startsWith(t),tV=tC("--"),tR=tC("var(--"),tD=t=>!!tR(t)&&tk.test(t.split("/*")[0].trim()),tk=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,tL=(t,e)=>
9e&&"number"==typeof t?e.transform(t):t,tj=(t,e,i)=>i>e?e:i<t?t:i,tF={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},tB={...tF,transform:t=>tj(0,1,t)},tO={...tF,default:1},tI=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),tU=tI("deg"),tW=tI("%"),t$=tI("px"),tN=tI("vh"),tz=tI("vw"),tH={...tW,parse:t=>tW.parse(t)/100,transform:t=>tW.transform(100*t)},tY={borderWidth:t$,borderTopWidth:t$,borderRightWidth:t$,borderBottomWidth:t$,borderLeftWidth:t$,borderRadius:t$,radius:t$,borderTopLeftRadius:t$,borderTopRightRadius:t$,borderBottomRightRadius:t$,borderBottomLeftRadius:t$,width:t$,maxWidth:t$,height:t$,maxHeight:t$,top:t$,right:t$,bottom:t$,left:t$,padding:t$,paddingTop:t$,paddingRight:t$,paddingBottom:t$,paddingLeft:t$,margin:t$,marginTop:t$,marginRight:t$,marginBottom:t$,marginLeft:t$,backgroundPositionX:t$,backgroundPositionY:t$},tX={...tF,transform:Math.round},tG={...tY,rotate:tU,rotateX:tU,rotateY:tU,rotateZ:tU,scale:tO,scaleX:tO,scaleY:tO,scaleZ:tO,skew:tU,skewX:tU,skewY:tU,distance:t$,translateX:t$,translateY:t$,translateZ:t$,x:t$,y:t$,z:t$,perspective:t$,transformPerspective:t$,opacity:tB,originX:tH,originY:tH,originZ:t$,zIndex:tX,size:t$,fillOpacity:tB,strokeOpacity:tB,numOctaves:tX},tK={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tq=tE.length;function t_(t,e,i){let n="",r=!0;for(let s=0;s<tq;s++){let o=tE[s],a=t[o];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===+!!o.startsWith("scale"):0===parseFloat(a))||i){let t=tL(a,tG[o]);if(!l){r=!1;let e=tK[o]||o;n+=`${e}(${t}) `}i&&(e[o]=t)}}return n=n.trim(),i?n=i(e,r?"":n):r&&(n="none"),n}function tZ(t,e,i){let{style:n,vars:r,transformOrigin:s}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(tM.has(t)){o=!0;continue}if(tV(t)){r[t]=i;continue}{let e=tL(i,tG[t]);t.startsWith("origin")?(a=!0,s[t]=e):n[t]=e}}if(!e.transform&&(o||i?n.transform=t_(e,t.transform,i):n.transform&&(n.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=s;n.transformOrigin=`${t} ${e} ${i}`}}let tJ={offset:"stroke-dashoffset",array:"stroke-dasharray"},tQ={offset:"strokeDashoffset",array:"strokeDasharray"};function t0(t,e,i){return"string"==typeof t?t:t$.transform(e+i*t)}function t1(t,{attrX:e,attrY:i,attrScale:n,originX:r,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},h,c){if(tZ(t,u,c),h){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:p,dimensions:m}=t;d.transform&&(m&&(p.transform=d.transform),delete d.transform),m&&(void 0!==r||void 0!==s||p.transform)&&(p.transformOrigin=function(t,e,i){let n=t0(e,t.x,t.width),r=t0(i,t.y,t.height);return`${n} ${r}`}(m,void 0!==r?r:.5,void 0!==s?s:.5)),void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==n&&(d.scale=n),void 0!==o&&function(t,e,i=1,n=0,r=!0){t.pathLength=1;let s=r?tJ:tQ;t[s.offset]=t$.transform(-n);let o=t$.transform(e),a=t$.transform(i);t[s.array]=`${o} ${a}`}(d,o,a,l,!1)}let t5=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),t2=()=>({...t5(),attrs:{}}),t3=t=>"string"==typeof t&&"svg"===t.toLowerCase();function t9(t,{style:e,vars:i},n,r){for(let s in Object.assign(t.style,e,r&&r.getProjectionStyles(n)),i)t.style.setProperty(s,i[s])}let t6=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 t4(t,e,i,n){for(let i in t9(t,e,void 0,n),e.attrs)t.setAttribute(t6.has(i)?i:tu(i),e.attrs[i])}let t8={};function t7(t){Object.assign(t8,t)}function et(t,{layout:e,layoutId:i}){return tM.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!t8[t]||"opacity"===t)}function ee(t,e,i){var n;let{style:r}=t,s={};for(let o in r)(tT(r[o])||e.style&&tT(e.style[o])||et(o,t)||(null==(n=null==i?void 0:i.getValue(o))?void 0:n.liveStyle)!==void 0)&&(s[o]=r[o]);return s}function ei(t,e,i){let n=ee(t,e,i);for(let i in t)(tT(t[i])||tT(e[i]))&&(n[-1!==tE.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}let en=["x","y","width","height","cx","cy","r"],er={useVisualState:tA({scrapeMotionValuesFromProps:ei,createRenderState:t2,onUpdate:({props:t,prevProps:e,current:i,renderState:n,latestValues:r})=>{if(!i)return;let s=!!t.drag;if(!s){for(let t in r)if(tM.has(t)){s=!0;break}}if(!s)return;let o=!e;if(e)for(let i=0;i<en.length;i++){let n=en[i];t[n]!==e[n]&&(o=!0)}o&&D.read(()=>{!function(t,e){try{e.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(t){e.dimensions={x:0,y:0,width:0,height:0}}}(i,n),D.render(()=>{t1(n,r,t3(i.tagName),t.transformTemplate),t4(i,n)})})}})},es={useVisualState:tA({scrapeMotionValuesFromProps:ee,createRenderState:t5})};
9function eo(t,e,i){for(let n in e)tT(e[n])||et(n,i)||(t[n]=e[n])}function ea(t,e){return function(i,{forwardMotionProps:n}={forwardMotionProps:!1}){let r={...tv(i)?er:es,preloadedFeatures:t,useRender:function(t=!1){return(e,i,n,{latestValues:r},s)=>{let o=(tv(e)?function(t,e,i,n){let r=(0,h.useMemo)(()=>{let i=t2();return t1(i,e,t3(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};eo(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return eo(n,i,t),Object.assign(n,function({transformTemplate:t},e){return(0,h.useMemo)(()=>{let i=t5();return tZ(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(i,r,s,e),a=_(i,"string"==typeof e,t),l=e!==h.Fragment?{...a,...o,ref:n}:{},{children:u}=i,c=(0,h.useMemo)(()=>tT(u)?u.get():u,[u]);return(0,h.createElement)(e,{...l,children:c})}}(n),createVisualElement:e,Component:i};return tf(r)}}let el=J(ea());function eu(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}function eh(t,e,i){let n=t.getProps();return tx(n,e,void 0!==i?i:n.custom,t)}function ec(t){let e;return()=>(void 0===e&&(e=t()),e)}let ed=ec(()=>void 0!==window.ScrollTimeline);class ep{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t,e){let i=this.animations.map(i=>ed()&&i.attachTimeline?i.attachTimeline(t):"function"==typeof e?e(i):void 0);return()=>{i.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach(e=>e[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class em extends ep{then(t,e){return Promise.all(this.animations).then(t).catch(e)}}function ef(t,e){return t?t[e]||t.default||t:void 0}function eg(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}let ev=t=>1e3*t,ey=t=>t/1e3;function ex(t,e=100,i){let n=i({...t,keyframes:[0,e]}),r=Math.min(eg(n),2e4);return{type:"keyframes",ease:t=>n.next(r*t).value/e,duration:ey(r)}}function ew(t){return"function"==typeof t}function eP(t,e){t.timeline=e,t.onfinish=null}class eb{constructor(t){this.animation=t}get duration(){var t,e,i;return ey(Number((null==(e=null==(t=this.animation)?void 0:t.effect)?void 0:e.getComputedTiming().duration)||(null==(i=this.options)?void 0:i.duration)||300))}get time(){var t;return this.animation?ey((null==(t=this.animation)?void 0:t.currentTime)||0):0}set time(t){this.animation&&(this.animation.currentTime=ev(t))}get speed(){return this.animation?this.animation.playbackRate:1}set speed(t){this.animation&&(this.animation.playbackRate=t)}get state(){return this.animation?this.animation.playState:"finished"}get startTime(){return this.animation?this.animation.startTime:null}get finished(){return this.animation?this.animation.finished:Promise.resolve()}play(){this.animation&&this.animation.play()}pause(){this.animation&&this.animation.pause()}stop(){this.animation&&"idle"!==this.state&&"finished"!==this.state&&(this.animation.commitStyles&&this.animation.commitStyles(),this.cancel())}flatten(){var t;this.animation&&(null==(t=this.animation.effect)||t.updateTiming({easing:"linear"}))}attachTimeline(t){return this.animation&&eP(this.animation,t),M}complete(){this.animation&&this.animation.finish()}cancel(){try{this.animation&&this.animation.cancel()}catch(t){}}}let eT=t=>Array.isArray(t)&&"number"==typeof t[0],eS={linearEasing:void 0},eA=function(t,e){let i=ec(t);return()=>{var t;return null!=(t=eS[e])?t:i()}}(()=>{try{document.createElement("div").animate({opacity:0}
9,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),eE=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n},eM=(t,e,i=10)=>{let n="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)n+=t(eE(0,r-1,e))+", ";return`linear(${n.substring(0,n.length-2)})`},eC=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,eV={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:eC([0,.65,.55,1]),circOut:eC([.55,0,1,.45]),backIn:eC([.31,.01,.66,-.59]),backOut:eC([.33,1.53,.69,.99])},eR={x:!1,y:!1};function eD(){return eR.x||eR.y}function ek(t,e,i){var n;if(t instanceof Element)return[t];if("string"==typeof t){let r=document;e&&(r=e.current);let s=null!=(n=null==i?void 0:i[t])?n:r.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t)}function eL(t,e){let i=ek(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function ej(t){return e=>{"touch"===e.pointerType||eD()||t(e)}}let eF=(t,e)=>!!e&&(t===e||eF(t,e.parentElement)),eB=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary,eO=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),eI=new WeakSet;function eU(t){return e=>{"Enter"===e.key&&t(e)}}function eW(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let e$=(t,e)=>{let i=t.currentTarget;if(!i)return;let n=eU(()=>{if(eI.has(i))return;eW(i,"down");let t=eU(()=>{eW(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>eW(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)},eN=new Set(["width","height","top","left","right","bottom",...tE]);function ez(){n=void 0}let eH={now:()=>(void 0===n&&eH.set(L.isProcessing||C.useManualTiming?L.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(ez)}};function eY(t,e){-1===t.indexOf(e)&&t.push(e)}function eX(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class eG{constructor(){this.subscriptions=[]}add(t){return eY(this.subscriptions,t),()=>eX(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function eK(t,e){return e?1e3/e*t:0}let eq=t=>!isNaN(parseFloat(t)),e_={current:void 0};class eZ{constructor(t,e={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=eH.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=eH.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=eq(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new eG);let i=this.events[t].add(e);return"change"===t?()=>{i(),D.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return e_.current&&e_.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=eH.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return eK(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function eJ(t,e){return new eZ(t,e)}function eQ(t,e){let{transitionEnd:i={},transition:n={},...r}=eh(t,e)||{};for(let e in r={...r,...i}){let i=tb(r[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,eJ(i))}}function e0(t,e){let i=t.getValue("willChange");if(tT(i)&&i.add)return i.add(e)}function e1(t){return t.props[tc]}let e5={current:!1},e2=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function e3(t,e,i,n){if(t===e&&i===n)return M;let r=e=>
9(function(t,e,i,n,r){let s,o,a=0;do(s=e2(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o})(e,0,1,t,i);return t=>0===t||1===t?t:e2(r(t),e,n)}let e9=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,e6=t=>e=>1-t(1-e),e4=e3(.33,1.53,.69,.99),e8=e6(e4),e7=e9(e8),it=t=>(t*=2)<1?.5*e8(t):.5*(2-Math.pow(2,-10*(t-1))),ie=t=>1-Math.sin(Math.acos(t)),ii=e6(ie),ir=e9(ie),is=t=>/^0[^.\s]+$/u.test(t),io=t=>Math.round(1e5*t)/1e5,ia=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,il=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,iu=(t,e)=>i=>!!("string"==typeof i&&il.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),ih=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[r,s,o,a]=n.match(ia);return{[t]:parseFloat(r),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},ic=t=>tj(0,255,t),id={...tF,transform:t=>Math.round(ic(t))},ip={test:iu("rgb","red"),parse:ih("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+id.transform(t)+", "+id.transform(e)+", "+id.transform(i)+", "+io(tB.transform(n))+")"},im={test:iu("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:ip.transform},ig={test:iu("hsl","hue"),parse:ih("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+tW.transform(io(e))+", "+tW.transform(io(i))+", "+io(tB.transform(n))+")"},iv={test:t=>ip.test(t)||im.test(t)||ig.test(t),parse:t=>ip.test(t)?ip.parse(t):ig.test(t)?ig.parse(t):im.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?ip.transform(t):ig.transform(t)},iy=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,ix="number",iw="color",iP=/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 ib(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},r=[],s=0,o=e.replace(iP,t=>(iv.test(t)?(n.color.push(s),r.push(iw),i.push(iv.parse(t))):t.startsWith("var(")?(n.var.push(s),r.push("var"),i.push(t)):(n.number.push(s),r.push(ix),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:o,indexes:n,types:r}}function iT(t){return ib(t).values}function iS(t){let{split:e,types:i}=ib(t),n=e.length;return t=>{let r="";for(let s=0;s<n;s++)if(r+=e[s],void 0!==t[s]){let e=i[s];e===ix?r+=io(t[s]):e===iw?r+=iv.transform(t[s]):r+=t[s]}return r}}let iA=t=>"number"==typeof t?0:t,iE={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null==(e=t.match(ia))?void 0:e.length)||0)+((null==(i=t.match(iy))?void 0:i.length)||0)>0},parse:iT,createTransformer:iS,getAnimatableNone:function(t){let e=iT(t);return iS(t)(e.map(iA))}},iM=new Set(["brightness","contrast","saturate","opacity"]);function iC(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(ia)||[];if(!n)return t;let r=i.replace(n,""),s=+!!iM.has(e);return n!==i&&(s*=100),e+"("+s+r+")"}let iV=/\b([a-z-]*)\(.*?\)/gu,iR={...iE,getAnimatableNone:t=>{let e=t.match(iV);return e?e.map(iC).join(" "):t}},iD={...tG,color:iv,backgroundColor:iv,outlineColor:iv,fill:iv,stroke:iv,borderColor:iv,borderTopColor:iv,borderRightColor:iv,borderBottomColor:iv,borderLeftColor:iv,filter:iR,WebkitFilter:iR},ik=t=>iD[t];function iL(t,e){let i=ik(t);return i!==iR&&(i=iE),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let ij=new Set(["auto","none","0"]),iF=t=>t===tF||t===t$,iB=(t,e)=>parseFloat(t.split(", ")[e]),iO=(t,e)=>(i,{transform:n})=>{if("none"===n||!n)return 0;let r=n.match(/^matrix3d\((.+)\)$/u);if(r)return iB(r[1],e);{let e=n.match(/^matrix\((.+)\)$/u);return e?iB(e[1],t):0}}
9,iI=new Set(["x","y","z"]),iU=tE.filter(t=>!iI.has(t)),iW={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:iO(4,13),y:iO(5,14)};iW.translateX=iW.x,iW.translateY=iW.y;let i$=new Set,iN=!1,iz=!1;function iH(){if(iz){let t=Array.from(i$).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return iU.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{var n;null==(n=t.getValue(e))||n.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}iz=!1,iN=!1,i$.forEach(t=>t.complete()),i$.clear()}function iY(){i$.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(iz=!0)})}class iX{constructor(t,e,i,n,r,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(i$.add(this),iN||(iN=!0,D.read(iY),D.resolveKeyframes(iH))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;for(let r=0;r<t.length;r++)if(null===t[r])if(0===r){let r=null==n?void 0:n.get(),s=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let n=i.readValue(e,s);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=s),n&&void 0===r&&n.set(t[0])}else t[r]=t[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),i$.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,i$.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let iG=M,iK=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),iq=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,i_=t=>e=>e.test(t),iZ=[tF,t$,tW,tU,tz,tN,{test:t=>"auto"===t,parse:t=>t}],iJ=t=>iZ.find(i_(t));class iQ extends iX{constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&tD(n=n.trim())){let r=function t(e,i,n=1){iG(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,s]=function(t){let e=iq.exec(t);if(!e)return[,];let[,i,n,r]=e;return[`--${null!=i?i:n}`,r]}(e);if(!r)return;let o=window.getComputedStyle(i).getPropertyValue(r);if(o){let t=o.trim();return iK(t)?parseFloat(t):t}return tD(s)?t(s,i,n+1):s}(n,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!eN.has(i)||2!==t.length)return;let[n,r]=t,s=iJ(n),o=iJ(r);if(s!==o)if(iF(s)&&iF(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var n;("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||is(n))&&i.push(e)}i.length&&function(t,e,i){let n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!ij.has(e)&&ib(e).values.length&&(n=t[r]),r++}if(n&&i)for(let r of e)t[r]=iL(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=iW[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){var t;let{element:e,name:i,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(i);r&&r.jump(this.measuredOrigin,!1);let s=n.length-1,o=n[s];n[s]=iW[i](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null==(t=this.removedTransforms)?void 0:t.length)&&this.removedTransforms.forEac
9h(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}let i0=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(iE.test(t)||"0"===t)&&!t.startsWith("url(")),i1=t=>null!==t;function i5(t,{repeat:e,repeatType:i="loop"},n){let r=t.filter(i1),s=e&&"loop"!==i&&e%2==1?0:r.length-1;return s&&void 0!==n?n:r[s]}class i2{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=eH.now(),this.options={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:s,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(iY(),iH()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=eH.now(),this.hasAttemptedResolve=!0;let{name:i,type:n,velocity:r,delay:s,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(t,e,i,n){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=i0(r,e),a=i0(s,e);return M(o===a,`You are trying to animate ${e} from "${r}" to "${s}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${s} via the \`style\` property.`),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||ew(i))&&n)}(t,i,n,r))if(e5.current||!s){a&&a(i5(t,this.options,e)),o&&o(),this.resolveFinishedPromise();return}else this.options.duration=0;let u=this.initPlayback(t,e);!1!==u&&(this._resolved={keyframes:t,finalKeyframe:e,...u},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}let i3=(t,e,i)=>t+(e-t)*i;function i9(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function i6(t,e){return i=>i>0?e:t}let i4=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},i8=[im,ip,ig],i7=t=>i8.find(e=>e.test(t));function nt(t){let e=i7(t);if(M(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===ig&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,s=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;r=i9(a,n,t+1/3),s=i9(a,n,t),o=i9(a,n,t-1/3)}else r=s=o=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*o),alpha:n}}(i)),i}let ne=(t,e)=>{let i=nt(t),n=nt(e);if(!i||!n)return i6(t,e);let r={...i};return t=>(r.red=i4(i.red,n.red,t),r.green=i4(i.green,n.green,t),r.blue=i4(i.blue,n.blue,t),r.alpha=i3(i.alpha,n.alpha,t),ip.transform(r))},ni=(t,e)=>i=>e(t(i)),nn=(...t)=>t.reduce(ni),nr=new Set(["none","hidden"]);function ns(t,e){return i=>i3(t,e,i)}function no(t){return"number"==typeof t?ns:"string"==typeof t?tD(t)?i6:iv.test(t)?ne:nu:Array.isArray(t)?na:"object"==typeof t?iv.test(t)?ne:nl:i6}function na(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>no(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function nl(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=no(t[r])(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let nu=(t,e)=>{let i=iE.createTransformer(e),n=ib(t),r=ib(e);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?nr.has(t)&&!r.values.length||nr.has(e)&&!n.values.length?function(t,e){return nr.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):nn(na(function(t,e){var i;let n=[],r={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let o=e.types[s],a=t.indexes[o][r[o]],l=null!=(i=t.values[a])?i:0;n[s]=l,r[o]++}return n}(n,r),r.values),i):(M(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),i6(t,e))};function nh(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?i3(t,e,i):no(t)(t,e)}function nc(t,e,i){let n=Math.max(e-5,0);return eK(i-t(n),e-n)}let nd={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};function np({duration:t=nd.duration,bounce:e=nd.bounce,velocity:i=nd.velocity,mass:n=nd.mass}){let r,s;M(t<=ev(nd.maxDuration),"Spring duration must be 10 seconds or less");let o=1-e;o=tj(nd.minDamping,nd.maxDamping,o),t=tj(nd.minDuration,nd.maxDuration,ey(t)),o<1?(r=e=>{let n=e*o,r=n*t;return .001-(n-i)/nm(e,o)*Math.exp(-r)},s=e=>{let n=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-n),l=nm(Math.pow(e,2),o);return(n*i+i-s)*a*(-r(e)+.001>0?-1:1)/l}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));
9let a=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(r,s,5/t);if(t=ev(t),isNaN(a))return{stiffness:nd.stiffness,damping:nd.damping,duration:t};{let e=Math.pow(a,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}function nm(t,e){return t*Math.sqrt(1-e*e)}let nf=["duration","bounce"],ng=["stiffness","damping","mass"];function nv(t,e){return e.some(e=>void 0!==t[e])}function ny(t=nd.visualDuration,e=nd.bounce){let i,n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:r,restDelta:s}=n,o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:u,damping:h,mass:c,duration:d,velocity:p,isResolvedFromDuration:m}=function(t){let e={velocity:nd.velocity,stiffness:nd.stiffness,damping:nd.damping,mass:nd.mass,isResolvedFromDuration:!1,...t};if(!nv(t,ng)&&nv(t,nf))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,r=2*tj(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:nd.mass,stiffness:n,damping:r}}else{let i=np(t);(e={...e,...i,mass:nd.mass}).isResolvedFromDuration=!0}return e}({...n,velocity:-ey(n.velocity||0)}),f=p||0,g=h/(2*Math.sqrt(u*c)),v=a-o,y=ey(Math.sqrt(u/c)),x=5>Math.abs(v);if(r||(r=x?nd.restSpeed.granular:nd.restSpeed.default),s||(s=x?nd.restDelta.granular:nd.restDelta.default),g<1){let t=nm(y,g);i=e=>a-Math.exp(-g*y*e)*((f+g*y*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}else if(1===g)i=t=>a-Math.exp(-y*t)*(v+(f+y*v)*t);else{let t=y*Math.sqrt(g*g-1);i=e=>{let i=Math.exp(-g*y*e),n=Math.min(t*e,300);return a-i*((f+g*y*v)*Math.sinh(n)+t*v*Math.cosh(n))/t}}let w={calculatedDuration:m&&d||null,next:t=>{let e=i(t);if(m)l.done=t>=d;else{let n=0;g<1&&(n=0===t?ev(f):nc(i,t,e));let o=Math.abs(a-e)<=s;l.done=Math.abs(n)<=r&&o}return l.value=l.done?a:e,l},toString:()=>{let t=Math.min(eg(w),2e4),e=eM(e=>w.next(t*e).value,t,30);return t+"ms "+e}};return w}function nx({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,d,p=t[0],m={done:!1,value:p},f=t=>void 0!==a&&t<a||void 0!==l&&t>l,g=t=>void 0===a?l:void 0===l||Math.abs(a-t)<Math.abs(l-t)?a:l,v=i*e,y=p+v,x=void 0===o?y:o(y);x!==y&&(v=x-p);let w=t=>-v*Math.exp(-t/n),P=t=>x+w(t),b=t=>{let e=w(t),i=P(t);m.done=Math.abs(e)<=u,m.value=m.done?x:i},T=t=>{f(m.value)&&(c=t,d=ny({keyframes:[m.value,g(m.value)],velocity:nc(P,t,m.value),damping:r,stiffness:s,restDelta:u,restSpeed:h}))};return T(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,b(t),T(t)),void 0!==c&&t>=c)?d.next(t-c):(e||b(t),m)}}}let nw=e3(.42,0,1,1),nP=e3(0,0,.58,1),nb=e3(.42,0,.58,1),nT=t=>Array.isArray(t)&&"number"!=typeof t[0],nS={linear:M,easeIn:nw,easeInOut:nb,easeOut:nP,circIn:ie,circInOut:ir,circOut:ii,backIn:e8,backInOut:e7,backOut:e4,anticipate:it},nA=t=>
9{if(eT(t)){iG(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,r]=t;return e3(e,i,n,r)}return"string"==typeof t?(iG(void 0!==nS[t],`Invalid easing type '${t}'`),nS[t]):t};function nE(t,e,{clamp:i=!0,ease:n,mixer:r}={}){let s=t.length;if(iG(s===e.length,"Both input and output ranges must be the same length"),1===s)return()=>e[0];if(2===s&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let n=[],r=i||nh,s=t.length-1;for(let i=0;i<s;i++){let s=r(t[i],t[i+1]);e&&(s=nn(Array.isArray(e)?e[i]||M:e,s)),n.push(s)}return n}(e,n,r),l=a.length,u=i=>{if(o&&i<t[0])return e[0];let n=0;if(l>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let r=eE(t[n],t[n+1],i);return a[n](r)};return i?e=>u(tj(t[0],t[s-1],e)):u}function nM(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let r=eE(0,e,n);t.push(i3(i,1,r))}}function nC(t){let e=[0];return nM(e,t.length-1),e}function nV({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var r;let s=nT(n)?n.map(nA):nA(n),o={done:!1,value:e[0]},a=nE((r=i&&i.length===e.length?i:nC(e),r.map(e=>e*t)),e,{ease:Array.isArray(s)?s:e.map(()=>s||nb).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}let nR=t=>{let e=({timestamp:e})=>t(e);return{start:()=>D.update(e,!0),stop:()=>k(e),now:()=>L.isProcessing?L.timestamp:eH.now()}},nD={decay:nx,inertia:nx,tween:nV,keyframes:nV,spring:ny},nk=t=>t/100;class nL extends i2{constructor(t){super(t),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,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};let{name:e,motionValue:i,element:n,keyframes:r}=this.options,s=(null==n?void 0:n.KeyframeResolver)||iX;this.resolver=new s(r,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let e,i,{type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:o,velocity:a=0}=this.options,l=ew(n)?n:nD[n]||nV;l!==nV&&"number"!=typeof t[0]&&(e=nn(nk,nh(t[0],t[1])),t=[0,100]);let u=l({...this.options,keyframes:t});"mirror"===o&&(i=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=eg(u));let{calculatedDuration:h}=u,c=h+s;return{generator:u,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:h,resolvedDuration:c,totalDuration:c*(r+1)-s}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:n,generator:r,mirroredGenerator:s,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=i;if(null===this.startTime)return r.next(0);let{delay:c,repeat:d,repeatType:p,repeatDelay:m,onUpdate:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let g=this.currentTime-c*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=r;if(d){let t=Math.min(this.currentTime,u)/h,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/h)):"mirror"===p&&(x=s)),y=tj(0,1,i)*h}let w=v?{done:!1,value:a[0]}:x.next(y);o&&(w.value=o(w.value));let{done:P}=w;v||null===l||(P=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let b=null===this.holdTime&&("finished"===this.state||"running"===this.state&&P);return b&&void 0!==n&&(w.value=i5(a,this.options,n)),f&&f(w.value),b&&this.finish(),w}get duration(){let{resolved:t}=this;return t?ey(t.calculatedDuration):0}
9get time(){return ey(this.currentTime)}set time(t){t=ev(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=ey(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=nR,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=n):this.startTime=null!=i?i:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!=(t=this.currentTime)?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&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(t){return this.startTime=0,this.tick(t,!0)}}function nj(t){return new nL(t)}let nF=new Set(["opacity","clipPath","filter","transform"]);function nB(t,e,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){let u={[e]:i};l&&(u.offset=l);let h=function t(e,i){if(e)return"function"==typeof e&&eA()?eM(e,i):eT(e)?eC(e):Array.isArray(e)?e.map(e=>t(e,i)||eV.easeOut):eV[e]}(a,r);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:n,duration:r,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"})}let nO=ec(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),nI={anticipate:it,backInOut:e7,circInOut:ir};class nU extends i2{constructor(t){super(t);let{name:e,motionValue:i,element:n,keyframes:r}=this.options;this.resolver=new iQ(r,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}initPlayback(t,e){var i;let{duration:n=300,times:r,ease:s,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if("string"==typeof s&&eA()&&s in nI&&(s=nI[s]),ew((i=this.options).type)||"spring"===i.type||!function t(e){return!!("function"==typeof e&&eA()||!e||"string"==typeof e&&(e in eV||eA())||eT(e)||Array.isArray(e)&&e.every(t))}(i.ease)){let{onComplete:e,onUpdate:i,motionValue:a,element:l,...u}=this.options,h=function(t,e){let i=new nL({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:t[0]},r=[],s=0;for(;!n.done&&s<2e4;)r.push((n=i.sample(s)).value),s+=10;return{times:void 0,keyframes:r,duration:s-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),n=h.duration,r=h.times,s=h.ease,o="keyframes"}let h=nB(a.owner.current,l,t,{...this.options,duration:n,times:r,ease:s});return h.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?(eP(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{let{onComplete:i}=this.options;a.set(i5(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:n,times:r,type:o,ease:s,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return ey(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return ey(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=ev(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return M;let{animation:i}=e;eP(i,t)}else this.pendingTimeline=t;return M}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;
9"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:n,type:r,ease:s,times:o}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:a,element:l,...u}=this.options,h=new nL({...u,keyframes:i,duration:n,type:r,ease:s,times:o,isGenerator:!0}),c=ev(this.time);t.setWithVelocity(h.sample(c-10).value,h.sample(c).value,10)}let{onStop:a}=this.options;a&&a(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:o}=t;if(!e||!e.owner||!(e.owner.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return nO()&&i&&nF.has(i)&&!a&&!l&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}}let nW={type:"spring",stiffness:500,damping:25,restSpeed:10},n$=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),nN={type:"keyframes",duration:.8},nz={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nH=(t,{keyframes:e})=>e.length>2?nN:tM.has(t)?t.startsWith("scale")?n$(e[1]):nW:nz,nY=(t,e,i,n={},r,s)=>o=>{let a=ef(n,t)||{},l=a.delay||n.delay||0,{elapsed:u=0}=n;u-=ev(l);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:r};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(a)&&(h={...h,...nH(t,h)}),h.duration&&(h.duration=ev(h.duration)),h.repeatDelay&&(h.repeatDelay=ev(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let c=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(h.duration=0,0===h.delay&&(c=!0)),(e5.current||C.skipAnimations)&&(c=!0,h.duration=0,h.delay=0),c&&!s&&void 0!==e.get()){let t=i5(h.keyframes,a);if(void 0!==t)return D.update(()=>{h.onUpdate(t),h.onComplete()}),new em([])}return!s&&nU.supports(h)?new nU(h):new nL(h)};function nX(t,e,{delay:i=0,transitionOverride:n,type:r}={}){var s;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;n&&(o=n);let u=[],h=r&&t.animationState&&t.animationState.getState()[r];for(let e in l){let n=t.getValue(e,null!=(s=t.latestValues[e])?s:null),r=l[e];if(void 0===r||h&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(h,e))continue;let a={delay:i,...ef(o||{},e)},c=!1;if(window.MotionHandoffAnimation){let i=e1(t);if(i){let t=window.MotionHandoffAnimation(i,e,D);null!==t&&(a.startTime=t,c=!0)}}e0(t,e),n.start(nY(e,n,r,t.shouldReduceMotion&&eN.has(e)?{type:!1}:a,t,c));let d=n.animation;d&&u.push(d)}return a&&Promise.all(u).then(()=>{D.update(()=>{a&&eQ(t,a)})}),u}function nG(t,e,i={}){var n;let r=eh(t,e,"exit"===i.type?null==(n=t.presenceContext)?void 0:n.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(s=i.transitionOverride);let o=r?()=>Promise.all(nX(t,r,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=s;return function(t,e,i=0,n=0,r=1,s){let o=[],a=(t.variantChildren.size-1)*n,l=1===r?(t=0)=>t*n:(t=0)=>a-t*n;return Array.from(t.variantChildren).sort(nK).forEach((t,n)=>{t.notify("AnimationStart",e),o.push(nG(t,e,{...s,delay:i+l(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,r+n,o,a,i)}:()=>Promise.resolve(),{when:l}=s;if(!l)return Promise.all([o(),a(i.delay)]);{let[t,e]="beforeChildren"===l?[o,a]:[a,o];return t().then(()=>e())}}function nK(t,e){return t.sortNodePosition(e)}function nq(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>nG(t,e,i)));else if("string"==typeof e)n=nG(t,e,i);else{let r="function"==typeof e?eh(t,e,i.custom):e;n=Promise.all(nX(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})}let n_=tn.length,nZ=[...ti].reverse(),nJ=ti.length;function nQ(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function n0(){return{animate:nQ(!0),whileInView:nQ(),whileHover:nQ(),whileTap:nQ(),whileDrag:nQ(),whileFocus:nQ(),exit:nQ()}}class n1{constructor(t){this.isMounted=!1,this.node=t}update(){}}class n5 extends n1{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>nq(t,e,i))),i=n0(),n=!0,r=e=>(i,n)=>{var r;let s=eh(t,n,"exit"===e?null==(r=t.presenceContext)?void 0:r.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function s(s){let{props:o}=t,a=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<n_;t++){let n=tn[t],r=e.props[n];(tt(r)||!1===r)&&(i[n]=r)}return i}(t.parent)||{},l=[],u=new Set,h={},c=1/0;for(let e=0;e<nJ;e++){var d,p;let m=nZ[e],f=i[m],g=void 0!==o[m]?o[m]:a[m],v=tt(g),y=m===s?f.isActive:null;!1===y&&(c=e);let x=g===a[m]&&g!==o[m]&&v;if(x&&n&&t.manuallyAnimateOnMount&&(x=!1),f.protectedKeys={...h},!f.isActive&&null===y||!g&&!f.prevProp||te(g)||"boolean"==typeof g)continue;let w=(d=f.prevProp,"string"==typeof(p=g)?p!==d:!!Array.isArray(p)&&!eu(p,d)),P=w||m===s&&f.isActive&&!x&&v||e>c&&v,b=!1,T=Array.isArray(g)?g:[g],S=T.reduce(r(m),{});!1===y&&(S={});let{prevResolvedValues:A={}}=f,E={...A,...S},M=e=>{P=!0,u.has(e)&&(b=!0,u.delete(e)),f.needsAnimating[e]=!0;let i=t.getValue(e);
9i&&(i.liveStyle=!1)};for(let t in E){let e=S[t],i=A[t];if(h.hasOwnProperty(t))continue;let n=!1;(tw(e)&&tw(i)?eu(e,i):e===i)?void 0!==e&&u.has(t)?M(t):f.protectedKeys[t]=!0:null!=e?M(t):u.add(t)}f.prevProp=g,f.prevResolvedValues=S,f.isActive&&(h={...h,...S}),n&&t.blockInitialAnimation&&(P=!1);let C=!(x&&w)||b;P&&C&&l.push(...T.map(t=>({animation:t,options:{type:m}})))}if(u.size){let e={};u.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=null!=n?n:null}),l.push({animation:e})}let m=!!l.length;return n&&(!1===o.initial||o.initial===o.animate)&&!t.manuallyAnimateOnMount&&(m=!1),n=!1,m?e(l):Promise.resolve()}return{animateChanges:s,setActive:function(e,n){var r;if(i[e].isActive===n)return Promise.resolve();null==(r=t.variantChildren)||r.forEach(t=>{var i;return null==(i=t.animationState)?void 0:i.setActive(e,n)}),i[e].isActive=n;let o=s(e);for(let t in i)i[t].protectedKeys={};return o},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=n0(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();te(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null==(t=this.unmountControls)||t.call(this)}}let n2=0;class n3 extends n1{constructor(){super(...arguments),this.id=n2++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}let n9={animation:{Feature:n5},exit:{Feature:n3}};function n6(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}function n4(t){return{point:{x:t.pageX,y:t.pageY}}}let n8=t=>e=>eB(e)&&t(e,n4(e));function n7(t,e,i,n){return n6(t,e,n8(i),n)}let rt=(t,e)=>Math.abs(t-e);function re(t,e){return Math.sqrt(rt(t.x,e.x)**2+rt(t.y,e.y)**2)}class ri{constructor(t,e,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=rs(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=re(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:n}=t,{timestamp:r}=L;this.history.push({...n,timestamp:r});let{onStart:s,onMove:o}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=rn(e,this.transformPagePoint),D.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=rs("pointercancel"===t.type?this.lastMoveEventInfo:rn(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!eB(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let s=rn(n4(t),this.transformPagePoint),{point:o}=s,{timestamp:a}=L;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,rs(s,this.history)),this.removeListeners=nn(n7(this.contextWindow,"pointermove",this.handlePointerMove),n7(this.contextWindow,"pointerup",this.handlePointerUp),n7(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),k(this.updatePoint)}}function rn(t,e){return e?{point:e(t.point)}:t}function rr(t,e){return{x:t.x-e.x,y:t.y-e.y}}function rs({point:t},e){return{point:t,delta:rr(t,ro(e)),offset:rr(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=ro(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>ev(.1)));)i--;if(!n)return{x:0,y:0};let s=ey(r.timestamp-n.timestamp);if(0===s)return{x:0,y:0};let o={x:(r.x-n.x)/s,y:(r.y-n.y)/s}
9;return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function ro(t){return t[t.length-1]}function ra(t){return t.max-t.min}function rl(t,e,i,n=.5){t.origin=n,t.originPoint=i3(e.min,e.max,t.origin),t.scale=ra(i)/ra(e),t.translate=i3(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function ru(t,e,i,n){rl(t.x,e.x,i.x,n?n.originX:void 0),rl(t.y,e.y,i.y,n?n.originY:void 0)}function rh(t,e,i){t.min=i.min+e.min,t.max=t.min+ra(e)}function rc(t,e,i){t.min=e.min-i.min,t.max=t.min+ra(e)}function rd(t,e,i){rc(t.x,e.x,i.x),rc(t.y,e.y,i.y)}function rp(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function rm(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function rf(t,e,i){return{min:rg(t,e),max:rg(t,i)}}function rg(t,e){return"number"==typeof t?t:t[e]||0}let rv=()=>({translate:0,scale:1,origin:0,originPoint:0}),ry=()=>({x:rv(),y:rv()}),rx=()=>({min:0,max:0}),rw=()=>({x:rx(),y:rx()});function rP(t){return[t("x"),t("y")]}function rb({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function rT(t){return void 0===t||1===t}function rS({scale:t,scaleX:e,scaleY:i}){return!rT(t)||!rT(e)||!rT(i)}function rA(t){return rS(t)||rE(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function rE(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function rM(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function rC(t,e=0,i=1,n,r){t.min=rM(t.min,e,i,n,r),t.max=rM(t.max,e,i,n,r)}function rV(t,{x:e,y:i}){rC(t.x,e.translate,e.scale,e.originPoint),rC(t.y,i.translate,i.scale,i.originPoint)}function rR(t,e){t.min=t.min+e,t.max=t.max+e}function rD(t,e,i,n,r=.5){let s=i3(t.min,t.max,r);rC(t,e,i,s,n)}function rk(t,e){rD(t.x,e.x,e.scaleX,e.scale,e.originX),rD(t.y,e.y,e.scaleY,e.scale,e.originY)}function rL(t,e){return rb(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}let rj=({current:t})=>t?t.ownerDocument.defaultView:null,rF=new WeakMap;class rB{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=rw(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new ri(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(n4(t).point)},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(eR[t])return null;else return eR[t]=!0,()=>{eR[t]=!1};return eR.x||eR.y?null:(eR.x=eR.y=!0,()=>{eR.x=eR.y=!1})}(i),!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),rP(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tW.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=ra(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&D.postRender(()=>r(t,e)),e0(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>rP(t=>{var e;return"paused"===this.getAnimationState(t)&&(null==(e=this.getAxisMotionValue(t).animation)?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:rj(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:r}=this.getProps();r&&D.postRender(()=>r(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!rO(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?i3(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?i3(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(t=this.visualElement.projection)?void 0:t.layout,r=this.constraints;e&&tl(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:rp(t.x,i,r),y:rp(t.y,e,n)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:rf(t,"left","right"),y:rf(t,"top","bottom")}}(i),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&rP(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!tl(e))return!1;let n=e.current;iG(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;
9let s=function(t,e,i){let n=rL(t,i),{scroll:r}=e;return r&&(rR(n.x,r.offset.x),rR(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),o=(t=r.layout.layoutBox,{x:rm(t.x,s.x),y:rm(t.y,s.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=rb(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(rP(o=>{if(!rO(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return e0(this.visualElement,t),i.start(nY(t,i,0,e,this.visualElement,!1))}stopAnimation(){rP(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){rP(t=>{var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.pause()})}getAnimationState(t){var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){rP(e=>{let{drag:i}=this.getProps();if(!rO(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e];r.set(t[e]-i3(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!tl(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};rP(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=ra(t),r=ra(e);return r>n?i=eE(e.min,e.max-n,t.min):n>r&&(i=eE(t.min,t.max-r,e.min)),tj(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),rP(e=>{if(!rO(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set(i3(r,s,n[e]))})}addListeners(){if(!this.visualElement.current)return;rF.set(this.visualElement,this);let t=n7(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();tl(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),D.read(e);let r=n6(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(rP(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),n(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function rO(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class rI extends n1{constructor(t){super(t),this.removeGroupControls=M,this.removeListeners=M,this.controls=new rB(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||M}unmount(){this.removeGroupControls(),this.removeListeners()}}let rU=t=>(e,i)=>{t&&D.postRender(()=>t(e,i))};class rW extends n1{constructor(){super(...arguments),this.removePointerDownListener=M}onPointerDown(t){this.session=new ri(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rj(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:rU(t),onStart:rU(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&D.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=n7(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let r$={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rN(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let rz={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!t$.test(t))return t;else t=parseFloat(t);let i=rN(t,e.target.x),n=rN(t,e.target.y);return`${i}% ${n}%`}};class rH extends h.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;t7(rX),r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),r$.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,s=i.projection;return s&&(s.isPresent=r,n||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?s.promote():s.relegate()||D.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),td.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function rY(t){let[e,i]=x(),n=(0,h.useContext)(c);return(0,u.jsx)(rH,{...t,layoutGroup:n,switchLayoutGroup:(0,h.useContext)(tm),isPresent:e,safeToRemove:i})}let rX={borderRadius:{...rz,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rz,borderTopRightRadius:rz,borderBottomLeftRadius:rz,borderBottomRightRadius:rz,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=iE.parse(t);if(n.length>5)return t;let r=iE.createTransformer(t),s=+("number"!=typeof n[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+s]/=o,n[1+s]/=a;let l=i3(o,a,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}};function rG(t,e,i){let n=tT(t)?t:eJ(t);return n.start(nY("",n,e,i)),n.animation}function rK(t){return t instanceof SVGElement&&"svg"!==t.tagName}let rq=(t,e)=>t.depth-e.depth;class r_{constructor(){this.children=[],this.isDirty=!1}add(t){eY(this.children,t),this.isDirty=!0}remove(t){eX(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rq),this.isDirty=!1,this.children.forEac
9h(t)}}function rZ(t,e){let i=eH.now(),n=({timestamp:r})=>{let s=r-i;s>=e&&(k(n),t(s-e))};return D.read(n,!0),()=>k(n)}let rJ=["TopLeft","TopRight","BottomLeft","BottomRight"],rQ=rJ.length,r0=t=>"string"==typeof t?parseFloat(t):t,r1=t=>"number"==typeof t||t$.test(t);function r5(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let r2=r9(0,.5,ii),r3=r9(.5,.95,M);function r9(t,e,i){return n=>n<t?0:n>e?1:i(eE(t,e,n))}function r6(t,e){t.min=e.min,t.max=e.max}function r4(t,e){r6(t.x,e.x),r6(t.y,e.y)}function r8(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function r7(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function st(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(tW.test(e)&&(e=parseFloat(e),e=i3(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=i3(s.min,s.max,n);t===s&&(a-=e),t.min=r7(t.min,e,i,a,r),t.max=r7(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let se=["x","scaleX","originX"],si=["y","scaleY","originY"];function sn(t,e,i,n){st(t.x,e,se,i?i.x:void 0,n?n.x:void 0),st(t.y,e,si,i?i.y:void 0,n?n.y:void 0)}function sr(t){return 0===t.translate&&1===t.scale}function ss(t){return sr(t.x)&&sr(t.y)}function so(t,e){return t.min===e.min&&t.max===e.max}function sa(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function sl(t,e){return sa(t.x,e.x)&&sa(t.y,e.y)}function su(t){return ra(t.x)/ra(t.y)}function sh(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class sc{constructor(){this.members=[]}add(t){eY(this.members,t),t.scheduleRender()}remove(t){if(eX(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let sd={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},sp="undefined"!=typeof window&&void 0!==window.MotionDebug,sm=["","X","Y","Z"],sf={visibility:"hidden"},sg=0;function sv(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function sy({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=null==e?void 0:e()){this.id=sg++,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,sp&&(sd.totalNodes=sd.resolvedTargetDeltas=sd.recalculatedProjection=0),this.nodes.forEach(sP),this.nodes.forEach(sC),this.nodes.forEach(sV),this.nodes.forEach(sb),sp&&window.MotionDebug.record(sd)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new r_)}
vendor: 7,736 bytes, line 9
9addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new eG),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=rK(e),this.instance=e;let{layoutId:n,layout:r,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(r||n)&&(this.isLayoutDirty=!0),t){let i,n=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=rZ(n,250),r$.hasAnimatedSinceResize&&(r$.hasAnimatedSinceResize=!1,this.nodes.forEach(sM))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&s&&(n||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||sF,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!sl(this.targetLayout,n)||i,u=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...ef(r,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||sM(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,k(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(sR),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=e1(i);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",D,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(sS);return}this.isUpdating||this.nodes.forEach(sA),this.isUpdating=!1,this.nodes.forEach(sE),this.nodes.forEach(sx),this.nodes.forEach(sw),this.clearAllSnapshots();let t=eH.now();L.delta=tj(0,1e3/60,t-L.timestamp),L.timestamp=t,L.isProcessing=!0,j.update.process(L),j.preRender.process(L),j.render.process(L),L.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,td.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(sT),this.sharedNodes.forEach(sD)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,D.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){D.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 t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=rw(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!ss(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&(e||rA(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),sI((e=n).x),sI(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return rw();let i=e.measureViewportBox();if(!((null==(t=this.scroll)?void 0:t.wasRoot)||this.path.some(sW))){let{scroll:t}=this.root;t&&(rR(i.x,t.offset.x),rR(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=rw();if(r4(i,t),null==(e=this.scroll)?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let n=this.path[e],{scroll:r,options:s}=n;n!==this.root&&r&&s.layoutScroll&&(r.wasRoot&&r4(i,t),rR(i.x,r.offset.x),rR(i.y,r.offset.y))}return i}applyTransform(t,e=!1){let i=rw();r4(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&rk(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),rA(n.latestValues)&&rk(i,n.latestValues)}return rA(this.latestValues)&&rk(i,this.latestValues),i}removeTransform(t){let e=rw();r4(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!rA(i.latestValues))continue;rS(i.latestValues)&&i.updateSnapshot();let n=rw();r4(n,i.measurePageBox()),sn(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return rA(this.latestValues)&&sn(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==L.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,n,r;let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isS
9haredProjectionDirty);let o=!!this.resumingFrom||this!==s;if(!(t||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=L.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rw(),this.relativeTargetOrigin=rw(),rd(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),r4(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=rw(),this.targetWithTransforms=rw()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,n=this.relativeTarget,r=this.relativeParent.target,rh(i.x,n.x,r.x),rh(i.y,n.y,r.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):r4(this.target,this.layout.layoutBox),rV(this.target,this.targetDelta)):r4(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rw(),this.relativeTargetOrigin=rw(),rd(this.relativeTargetOrigin,this.target,t.target),r4(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}sp&&sd.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||rS(this.parent.latestValues)||rE(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty))&&(n=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===L.timestamp&&(n=!1),n)return;let{layout:r,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||s))return;r4(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,n=!1){let r,s,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(r=i[a]).projectionDelta;let{visualElement:o}=r.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&rk(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,rV(t,s)),n&&rA(r.latestValues)&&rk(t,r.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=rw());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(r8(this.prevProjectionDelta.x,this.projectionDelta.x),r8(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),ru(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&sh(this.projectionDelta.x,this.prevProjectionDelta.x)&&sh(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),sp&&sd.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null==(e=this.options.visualElement)||e.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ry(),this.projectionDelta=ry(),this.projectionDeltaWithTransform=ry()}setAnimationOrigin(t,e=!1){let i,n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},o=ry();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=rw(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&
9!0===this.options.crossfade&&!this.path.some(sj));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(sk(o.x,t.x,n),sk(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,m,f,g;rd(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,g=n,sL(p.x,m.x,f.x,g),sL(p.y,m.y,f.y,g),i&&(u=this.relativeTarget,d=i,so(u.x,d.x)&&so(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=rw()),r4(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=i3(0,void 0!==i.opacity?i.opacity:1,r2(n)),t.opacityExit=i3(void 0!==e.opacity?e.opacity:1,0,r3(n))):s&&(t.opacity=i3(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,n));for(let r=0;r<rQ;r++){let s=`border${rJ[r]}Radius`,o=r5(e,s),a=r5(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||r1(o)===r1(a)?(t[s]=Math.max(i3(r0(o),r0(a),n),0),(tW.test(a)||tW.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=i3(e.rotate||0,i.rotate||0,n))}(s,r,this.latestValues,n,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(k(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=D.update(()=>{r$.hasAnimatedSinceResize=!0,this.currentAnimation=rG(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.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);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&sU(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||rw();let e=ra(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=ra(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}r4(e,i),rk(e,r),ru(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new sc),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null==(t=this.getStack())?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null==(t=this.getStack())?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&sv("z",t,n,this.animationValues);for(let e=0;e<sm.length;e++)sv(`rotate${sm[e]}`,t,n,this.animationValues),sv(`skew${sm[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return sf;let n={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=tS(null==t?void 0:t.pointerEvents)||"",n.transform=r?r(this.latestValues,""):"none",n;let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=tS(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!rA(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1),e}let o=s.animationValues||s.latestValues;
9this.applyTransformsToTarget(),n.transform=function(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y,o=(null==i?void 0:i.z)||0;if((r||s||o)&&(n=`translate3d(${r}px, ${s}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:s,skewX:o,skewY:a}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),r&&(n+=`rotateX(${r}deg) `),s&&(n+=`rotateY(${s}deg) `),o&&(n+=`skewX(${o}deg) `),a&&(n+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,o),r&&(n.transform=r(o,n.transform));let{x:a,y:l}=this.projectionDelta;for(let t in n.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,s.animationValues?n.opacity=s===this?null!=(i=null!=(e=o.opacity)?e:this.latestValues.opacity)?i:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:n.opacity=s===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,t8){if(void 0===o[t])continue;let{correct:e,applyTo:i}=t8[t],r="none"===n.transform?o[t]:e(o[t],s);if(i){let t=i.length;for(let e=0;e<t;e++)n[i[e]]=r}else n[t]=r}return this.options.layoutId&&(n.pointerEvents=s===this?tS(null==t?void 0:t.pointerEvents)||"":"none"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null==(e=t.currentAnimation)?void 0:e.stop()}),this.root.nodes.forEach(sS),this.root.sharedNodes.clear()}}}function sx(t){t.updateLayout()}function sw(t){var e;let i=(null==(e=t.resumeFrom)?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:n}=t.layout,{animationType:r}=t.options,s=i.source!==t.layout.source;"size"===r?rP(t=>{let n=s?i.measuredBox[t]:i.layoutBox[t],r=ra(n);n.min=e[t].min,n.max=n.min+r}):sU(r,i.layoutBox,e)&&rP(n=>{let r=s?i.measuredBox[n]:i.layoutBox[n],o=ra(e[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=ry();ru(o,e,i.layoutBox);let a=ry();s?ru(a,t.applyTransform(n,!0),i.measuredBox):ru(a,e,i.layoutBox);let l=!ss(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=rw();rd(o,i.layoutBox,r.layoutBox);let a=rw();rd(a,e,s.layoutBox),sl(o,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function sP(t){sp&&sd.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 sb(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function sT(t){t.clearSnapshot()}function sS(t){t.clearMeasurements()}function sA(t){t.isLayoutDirty=!1}function sE(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function sM(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function sC(t){t.resolveTargetDelta()}function sV(t){t.calcProjection()}function sR(t){t.resetSkewAndRotation()}function sD(t){t.removeLeadSnapshot()}function sk(t,e,i){t.translate=i3(e.translate,0,i),t.scale=i3(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}
9function sL(t,e,i,n){t.min=i3(e.min,i.min,n),t.max=i3(e.max,i.max,n)}function sj(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let sF={duration:.45,ease:[.4,0,.1,1]},sB=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),sO=sB("applewebkit/")&&!sB("chrome/")?Math.round:M;function sI(t){t.min=sO(t.min),t.max=sO(t.max)}function sU(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(su(e)-su(i)))}function sW(t){var e;return t!==t.root&&(null==(e=t.scroll)?void 0:e.wasRoot)}let s$=sy({attachResizeListener:(t,e)=>n6(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sN={current:void 0},sz=sy({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!sN.current){let t=new s$({});t.mount(window),t.setOptions({layoutScroll:!0}),sN.current=t}return sN.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),sH={pan:{Feature:rW},drag:{Feature:rI,ProjectionNode:sz,MeasureLayout:rY}};function sY(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&D.postRender(()=>r(e,n4(e)))}class sX extends n1{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,r,s]=eL(t,i),o=ej(t=>{let{target:i}=t,n=e(t);if("function"!=typeof n||!i)return;let s=ej(t=>{n(t),i.removeEventListener("pointerleave",s)});i.addEventListener("pointerleave",s,r)});return n.forEach(t=>{t.addEventListener("pointerenter",o,r)}),s}(t,t=>(sY(this.node,t,"Start"),t=>sY(this.node,t,"End"))))}unmount(){}}class sG extends n1{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=nn(n6(this.node.current,"focus",()=>this.onFocus()),n6(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function sK(t,e,i){let{props:n}=t;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&D.postRender(()=>r(e,n4(e)))}class sq extends n1{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,r,s]=eL(t,i),o=t=>{let n=t.currentTarget;if(!(eB(t)&&!eD())||eI.has(n))return;eI.add(n);let s=e(t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),eB(t)&&!eD()&&eI.has(n)&&(eI.delete(n),"function"==typeof s&&s(t,{success:e}))},a=t=>{o(t,i.useGlobalTarget||eF(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};return n.forEach(t=>{eO.has(t.tagName)||-1!==t.tabIndex||null!==t.getAttribute("tabindex")||(t.tabIndex=0),(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,r),t.addEventListener("focus",t=>e$(t,r),r)}),s}(t,t=>(sK(this.node,t,"Start"),(t,{success:e})=>sK(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let s_=new WeakMap,sZ=new WeakMap,sJ=t=>{let e=s_.get(t.target);e&&e(t)},sQ=t=>{t.forEach(sJ)},s0={some:0,all:1};class s1 extends n1{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:r}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:s0[n]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;sZ.has(i)||sZ.set(i,{});let n=sZ.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(sQ,{root:t,...e})),n[r]}(e);return s_.set(t,i),n.observe(t),()=>{s_.delete(t),n.unobserve(t)}}(this.node.current,s,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let s5={inView:{Feature:s1},tap:{Feature:sq},focus:{Feature:sG},hover:{Feature:sX}},s2={layout:{ProjectionNode:sz,MeasureLayout:rY}},s3={current:null},s9={current:!1};function s6(){if(s9.current=!0,T)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>s3.current=t.matches;t.addListener(e),e()}else s3.current=!1}let s4=[...iZ,iv,iE],s8=t=>s4.find(i_(t)),s7=new WeakMap,ot=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];
9class oe{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:r,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=iX,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=()=>{let t=eH.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,D.render(this.render,!1,!0))};let{latestValues:a,renderState:l,onUpdate:u}=s;this.onUpdate=u,this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=tr(e),this.isVariantNode=ts(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:h,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in c){let e=c[t];void 0!==a[t]&&tT(e)&&e.set(a[t],!1)}}mount(t){this.current=t,s7.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),s9.current||s6(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||s3.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in s7.delete(this.current),this.projection&&this.projection.unmount(),k(this.notifyUpdate),k(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=tM.has(t),r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&D.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),s(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in N){let e=N[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):rw()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<ot.length;e++){let i=ot[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let r=e[n],s=i[n];if(tT(r))t.addValue(n,r);else if(tT(s))t.addValue(n,eJ(r,{owner:t}));else if(s!==r)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(n);t.addValue(n,eJ(void 0!==e?e:r,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
9addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=eJ(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let n=void 0===this.latestValues[t]&&this.current?null!=(i=this.getBaseTargetFromProps(this.props,t))?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=n&&("string"==typeof n&&(iK(n)||is(n))?n=parseFloat(n):!s8(n)&&iE.test(e)&&(n=iL(t,e)),this.setBaseTarget(t,tT(n)?n.get():n)),tT(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=tx(this.props,n,null==(e=this.presenceContext)?void 0:e.custom);r&&(i=r[t])}if(n&&void 0!==i)return i;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||tT(r)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new eG),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class oi extends oe{constructor(){super(...arguments),this.KeyframeResolver=iQ}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;tT(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}class on extends oi{constructor(){super(...arguments),this.type="html",this.renderInstance=t9}readValueFromInstance(t,e){if(tM.has(e)){let t=ik(e);return t&&t.default||0}{let i=window.getComputedStyle(t),n=(tV(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return rL(t,e)}build(t,e,i){tZ(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return ee(t,e,i)}}class or extends oi{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=rw}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(tM.has(e)){let t=ik(e);return t&&t.default||0}return e=t6.has(e)?e:tu(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return ei(t,e,i)}build(t,e,i){t1(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,n){t4(t,e,i,n)}mount(t){this.isSVGTag=t3(t.tagName),super.mount(t)}}let os=(t,e)=>tv(t)?new or(e):new on(e,{allowProjection:t!==h.Fragment}),oo=J(ea({...n9,...s5,...sH,...s2},os)),oa={renderer:os,...n9,...s5},ol={...oa,...sH,...s2},ou={renderer:os,...n9};function oh(t,e,i){(0,h.useInsertionEffect)(()=>t.on(e,i),[t,e,i])}function oc(t,e){let i,n=()=>{let{currentTime:n}=e,r=(null===n?0:n.value)/100;i!==r&&t(r),i=r};return D.update(n,!0),()=>k(n)}let od=new WeakMap;function op({target:t,contentRect:e,borderBoxSize:i}){var n;null==(n=od.get(t))||n.forEach(n=>{n({target:t,contentSize:e,get size(){if(i){let{inlineSize:t,blockSize:e}=i[0];return{width:t,height:e}}if(t instanceof SVGElement&&"getBBox"in t)return t.getBBox();return{width:t.offsetWidth,height:t.offsetHeight}}})})}function om(t){t.forEach(op)}let of=new Set,og=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),ov=()=>({time:0,x:og(),y:og()}),oy={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function ox(t,e,i,n){let r=i[e],{length:s,position:o}=oy[e],a=r.current,l=i.time;r.current=t[`scroll${o}`],r.scrollLength=t[`scroll${s}`]-t[`client${s}`],r.offset.length=0,r.offset[0]=0,r.offset[1]=r.scrollLength,r.progress=eE(0,r.scrollLength,r.current);let u=n-l;r.velocity=u>50?0:eK(r.current-a,u)}let ow={start:0,center:.5,end:1};function oP(t,e,i=0){let n=0;if(t in ow&&(t=ow[t]),"string"==typeof t){let e=parseFloat(t);t.endsWith("px")?n=e:t.endsWith("%")?t=e/100:t.endsWith("vw")?n=e/100*document.documentElement.clientWidth:t.endsWith("vh")?n=e/100*document.documentElement.clientHeight:t=e}return"number"==typeof t&&(n=e*t),i+n}let ob=[0,0],oT={All:[[0,0],[1,1]]},oS={x:0,y:0},oA=new WeakMap,oE=new WeakMap,oM=new WeakMap,oC=t=>t===document.documentElement?window:t;function oV(t,{container:e=document.documentElement,...i}={}){let n=oM.get(e);n||(n=new Set,oM.set(e,n));
9let o=function(t,e,i,n={}){return{measure:()=>(function(t,e=t,i){if(i.x.targetOffset=0,i.y.targetOffset=0,e!==t){let n=e;for(;n&&n!==t;)i.x.targetOffset+=n.offsetLeft,i.y.targetOffset+=n.offsetTop,n=n.offsetParent}i.x.targetLength=e===t?e.scrollWidth:e.clientWidth,i.y.targetLength=e===t?e.scrollHeight:e.clientHeight,i.x.containerLength=t.clientWidth,i.y.containerLength=t.clientHeight})(t,n.target,i),update:e=>{ox(t,"x",i,e),ox(t,"y",i,e),i.time=e,(n.offset||n.target)&&function(t,e,i){let{offset:n=oT.All}=i,{target:r=t,axis:s="y"}=i,o="y"===s?"height":"width",a=r!==t?function(t,e){let i={x:0,y:0},n=t;for(;n&&n!==e;)if(n instanceof HTMLElement)i.x+=n.offsetLeft,i.y+=n.offsetTop,n=n.offsetParent;else if("svg"===n.tagName){let t=n.getBoundingClientRect(),e=(n=n.parentElement).getBoundingClientRect();i.x+=t.left-e.left,i.y+=t.top-e.top}else if(n instanceof SVGGraphicsElement){let{x:t,y:e}=n.getBBox();i.x+=t,i.y+=e;let r=null,s=n.parentNode;for(;!r;)"svg"===s.tagName&&(r=s),s=n.parentNode;n=r}else break;return i}(r,t):oS,l=r===t?{width:t.scrollWidth,height:t.scrollHeight}:"getBBox"in r&&"svg"!==r.tagName?r.getBBox():{width:r.clientWidth,height:r.clientHeight},u={width:t.clientWidth,height:t.clientHeight};e[s].offset.length=0;let h=!e[s].interpolate,c=n.length;for(let t=0;t<c;t++){let i=function(t,e,i,n){let r=Array.isArray(t)?t:ob,s=0,o=0;return"number"==typeof t?r=[t,t]:"string"==typeof t&&(r=(t=t.trim()).includes(" ")?t.split(" "):[t,ow[t]?t:"0"]),(s=oP(r[0],i,n))-oP(r[1],e)}(n[t],u[o],l[o],a[s]);h||i===e[s].interpolatorOffsets[t]||(h=!0),e[s].offset[t]=i}h&&(e[s].interpolate=nE(e[s].offset,nC(n),{clamp:!1}),e[s].interpolatorOffsets=[...e[s].offset]),e[s].progress=tj(0,1,e[s].interpolate(e[s].current))}(t,i,n)},notify:()=>e(i)}}(e,t,ov(),i);if(n.add(o),!oA.has(e)){let t=()=>{for(let t of n)t.measure()},i=()=>{for(let t of n)t.update(L.timestamp)},o=()=>{for(let t of n)t.notify()},a=()=>{D.read(t,!1,!0),D.read(i,!1,!0),D.update(o,!1,!0)};oA.set(e,a);let l=oC(e);window.addEventListener("resize",a,{passive:!0}),e!==document.documentElement&&oE.set(e,"function"==typeof e?(of.add(e),s||(s=()=>{let t={width:window.innerWidth,height:window.innerHeight},e={target:window,size:t,contentSize:t};of.forEach(t=>t(e))},window.addEventListener("resize",s)),()=>{of.delete(e),!of.size&&s&&(s=void 0)}):function(t,e){r||"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(om));let i=ek(t);return i.forEach(t=>{let i=od.get(t);i||(i=new Set,od.set(t,i)),i.add(e),null==r||r.observe(t)}),()=>{i.forEach(t=>{let i=od.get(t);null==i||i.delete(e),(null==i?void 0:i.size)||null==r||r.unobserve(t)})}}(e,a)),l.addEventListener("scroll",a,{passive:!0})}let a=oA.get(e);return D.read(a,!1,!0),()=>{var t;k(a);let i=oM.get(e);if(!i||(i.delete(o),i.size))return;let n=oA.get(e);oA.delete(e),n&&(oC(e).removeEventListener("scroll",n),null==(t=oE.get(e))||t(),window.removeEventListener("resize",n))}}let oR=new Map;function oD({source:t,container:e=document.documentElement,axis:i="y"}={}){t&&(e=t),oR.has(e)||oR.set(e,{});let n=oR.get(e);return n[i]||(n[i]=ed()?new ScrollTimeline({source:e,axis:i}):function({source:t,container:e,axis:i="y"}){t&&(e=t);let n={value:0},r=oV(t=>{n.value=100*t[i].progress},{container:e,axis:i});return{currentTime:n,cancel:r}}({source:e,axis:i})),n[i]}function ok(t){return t&&(t.target||t.offset)}function oL(t,{axis:e="y",...i}={}){var n,r;let s={axis:e,...i};return"function"==typeof t?(n=t,r=s,2===n.length||ok(r)?oV(t=>{n(t[r.axis].progress,t)},r):oc(n,oD(r))):function(t,e){if(t.flatten(),ok(e))return t.pause(),oV(i=>{t.time=t.duration*i[e.axis].progress},e);{let i=oD(e);return t.attachTimeline?t.attachTimeline(i,t=>(t.pause(),oc(e=>{t.time=t.duration*e},i))):M}}(t,s)}function oj(t,e){M(!!(!e||e.current),`You have defined a ${t} options but the provided ref is not yet hydrated, probably because it's defined higher up the tree. Try calling useScroll() in the same component as the ref, or setting its \`layoutEffect: false\` option.`)}let oF=()=>({scrollX:eJ(0),scrollY:eJ(0),scrollXProgress:eJ(0),scrollYProgress:eJ(0)});function oB({container:t,target:e,layoutEffect:i=!0,...n}={}){let r=d(oF);return(i?S:h.useEffect)(()=>(oj("target",e),oj("container",t),oL((t,{x:e,y:i})=>{r.scrollX.set(e.current),r.scrollXProgress.set(e.progress),r.scrollY.set(i.current),r.scrollYProgress.set(i.progress)}
9,{...n,container:(null==t?void 0:t.current)||void 0,target:(null==e?void 0:e.current)||void 0})),[t,e,JSON.stringify(n.offset)]),r}function oO(t){return oB({container:t})}function oI(){return oB()}function oU(t){let e=d(()=>eJ(t)),{isStatic:i}=(0,h.useContext)(m);if(i){let[,i]=(0,h.useState)(t);(0,h.useEffect)(()=>e.on("change",i),[])}return e}function oW(t,e){let i=oU(e()),n=()=>i.set(e());return n(),S(()=>{let e=()=>D.preRender(n,!1,!0),i=t.map(t=>t.on("change",e));return()=>{i.forEach(t=>t()),k(n)}}),i}function o$(t,...e){let i=t.length;return oW(e.filter(tT),function(){let n="";for(let r=0;r<i;r++){n+=t[r];let i=e[r];i&&(n+=tT(i)?i.get():i)}return n})}function oN(t){return"number"==typeof t?t:parseFloat(t)}function oz(t,e={}){let{isStatic:i}=(0,h.useContext)(m),n=(0,h.useRef)(null),r=oU(tT(t)?oN(t.get()):t),s=(0,h.useRef)(r.get()),o=(0,h.useRef)(()=>{}),a=()=>{let t=n.current;t&&0===t.time&&t.sample(L.delta),l(),n.current=nj({keyframes:[r.get(),s.current],velocity:r.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...e,onUpdate:o.current})},l=()=>{n.current&&n.current.stop()};return(0,h.useInsertionEffect)(()=>r.attach((t,e)=>i?e(t):(s.current=t,o.current=e,D.update(a),r.get()),l),[JSON.stringify(e)]),S(()=>{if(tT(t))return t.on("change",t=>r.set(oN(t)))},[r]),r}function oH(t){let e=(0,h.useRef)(0),{isStatic:i}=(0,h.useContext)(m);(0,h.useEffect)(()=>{if(i)return;let n=({timestamp:i,delta:n})=>{e.current||(e.current=i),t(i-e.current,n)};return D.update(n,!0),()=>k(n)},[t])}function oY(){let t=oU(0);return oH(e=>t.set(e)),t}let oX=t=>t&&"object"==typeof t&&t.mix,oG=t=>oX(t)?t.mix:void 0;function oK(...t){let e=!Array.isArray(t[0]),i=e?0:-1,n=t[0+i],r=t[1+i],s=t[2+i],o=t[3+i],a=nE(r,s,{mixer:oG(s[0]),...o});return e?a(n):a}function oq(t,e,i,n){if("function"==typeof t){e_.current=[],t();let e=oW(e_.current,t);return e_.current=void 0,e}let r="function"==typeof e?e:oK(e,i,n);return Array.isArray(t)?o_(t,r):o_([t],([t])=>r(t))}function o_(t,e){let i=d(()=>[]);return oW(t,()=>{i.length=0;let n=t.length;for(let e=0;e<n;e++)i[e]=t[e].get();return e(i)})}function oZ(t){let e=oU(t.getVelocity()),i=()=>{let n=t.getVelocity();e.set(n),n&&D.update(i)};return oh(t,"change",()=>{D.update(i,!1,!0)}),e}class oJ extends eZ{constructor(){super(...arguments),this.values=[]}add(t){let e=tM.has(t)?"transform":nF.has(t)?tu(t):void 0;e&&(eY(this.values,e),this.update())}update(){this.set(this.values.length?this.values.join(", "):"auto")}}function oQ(){return d(()=>new oJ("auto"))}function o0(){s9.current||s6();let[t]=(0,h.useState)(s3.current);return t}function o1(){let t=o0(),{reducedMotion:e}=(0,h.useContext)(m);return"never"!==e&&("always"===e||t)}function o5(t,e){[...e].reverse().forEach(i=>{let n=t.getVariant(i);n&&eQ(t,n),t.variantChildren&&t.variantChildren.forEach(t=>{o5(t,e)})})}function o2(){let t=!1,e=new Set,i={subscribe:t=>(e.add(t),()=>void e.delete(t)),start(i,n){iG(t,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");let r=[];return e.forEach(t=>{r.push(nq(t,i,{transitionOverride:n}))}),Promise.all(r)},set:i=>(iG(t,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),e.forEach(t=>{var e,n;e=t,Array.isArray(n=i)?o5(e,n):"string"==typeof n?o5(e,[n]):eQ(e,n)})),stop(){e.forEach(t=>{t.values.forEach(t=>t.stop())})},mount:()=>(t=!0,()=>{t=!1,i.stop()})};return i}function o3(t){return(0,h.useEffect)(()=>()=>t(),[])}let o9=(t,e,i)=>{let n=e-t;return((i-t)%n+n)%n+t};function o6(t,e){return nT(t)?t[o9(0,t.length,e)]:t}function o4(t){return"object"==typeof t&&!Array.isArray(t)}function o8(t,e,i,n){return"string"==typeof t&&o4(e)?ek(t,i,n):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}function o7(t,e,i,n){var r;return"number"==typeof e?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):"<"===e?i:null!=(r=n.get(e))?r:t}function at(t,e){return t.at!==e.at?t.at-e.at:null===t.value?1:null===e.value?-1:0}function ae(t,e){return e.has(t)||e.set(t,{}),e.get(t)}function ai(t,e){return e[t]||(e[t]=[]),e[t]}let an=t=>"number"==typeof t,ar=t=>t.every(an);class as extends oe{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,e){if(e in t){let i=t[e];if("string"==typeof i||"number"==typeof i)return i}}getBaseTargetFromProps(){}removeValueFromRenderState(t,e){delete e.output[t]}measureInstanceViewportBox(){return rw()}build(t,e){Object.assign(t.output,e)}renderInstance(t,{output:e}){Object.assign(t,e)}sortInstanceNodePosition(){return 0}}function ao(t){let e={presenceContext:null,props:{}
9,visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},i=rK(t)?new or(e):new on(e);i.mount(t),s7.set(t,i)}function aa(t){let e=new as({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});e.mount(t),s7.set(t,e)}function al(t,e,i,n){let r=[];if(tT(t)||"number"==typeof t||"string"==typeof t&&!o4(e))r.push(rG(t,o4(e)&&e.default||e,i&&i.default||i));else{let s=o8(t,e,n),o=s.length;iG(!!o,"No valid elements provided.");for(let t=0;t<o;t++){let n=s[t],a=n instanceof Element?ao:aa;s7.has(n)||a(n);let l=s7.get(n),u={...i};"delay"in u&&"function"==typeof u.delay&&(u.delay=u.delay(t,o)),r.push(...nX(l,{...e,transition:u},{}))}}return r}function au(t){return function(e,i,n){let r=[],s=new em(r=Array.isArray(e)&&e.some(Array.isArray)?function(t,e,i){let n=[];return(function(t,{defaultTransition:e={},...i}={},n,r){let s=e.duration||.3,o=new Map,a=new Map,l={},u=new Map,h=0,c=0,d=0;for(let i=0;i<t.length;i++){let o=t[i];if("string"==typeof o){u.set(o,c);continue}if(!Array.isArray(o)){u.set(o.name,o7(c,o.at,h,u));continue}let[f,g,v={}]=o;void 0!==v.at&&(c=o7(c,v.at,h,u));let y=0,x=(t,i,n,o=0,a=0)=>{var l;let u=Array.isArray(l=t)?l:[l],{delay:h=0,times:p=nC(u),type:m="keyframes",repeat:f,repeatType:g,repeatDelay:v=0,...x}=i,{ease:w=e.ease||"easeOut",duration:P}=i,b="function"==typeof h?h(o,a):h,T=u.length,S=ew(m)?m:null==r?void 0:r[m];if(T<=2&&S){let t=100;2===T&&ar(u)&&(t=Math.abs(u[1]-u[0]));let e={...x};void 0!==P&&(e.duration=ev(P));let i=ex(e,t,S);w=i.ease,P=i.duration}null!=P||(P=s);let A=c+b;1===p.length&&0===p[0]&&(p[1]=1);let E=p.length-u.length;if(E>0&&nM(p,E),1===u.length&&u.unshift(null),f){iG(f<20,"Repeat count too high, must be less than 20");P*=f+1;let t=[...u],e=[...p],i=[...w=Array.isArray(w)?[...w]:[w]];for(let n=0;n<f;n++){u.push(...t);for(let r=0;r<t.length;r++)p.push(e[r]+(n+1)),w.push(0===r?"linear":o6(i,r-1))}for(let t=0;t<p.length;t++)p[t]=p[t]/(f+1)}let M=A+P;!function(t,e,i,n,r,s){for(let e=0;e<t.length;e++){let i=t[e];i.at>r&&i.at<s&&(eX(t,i),e--)}for(let o=0;o<e.length;o++)t.push({value:e[o],at:i3(r,s,n[o]),easing:o6(i,o)})}(n,u,w,p,A,M),y=Math.max(b+P,y),d=Math.max(M,d)};if(tT(f))x(g,v,ai("default",ae(f,a)));else{let t=o8(f,g,n,l),e=t.length;for(let i=0;i<e;i++){let n=ae(t[i],a);for(let t in g){var p,m;x(g[t],(p=v,m=t,p&&p[m]?{...p,...p[m]}:{...p}),ai(t,n),i,e)}}}h=c,c+=y}return a.forEach((t,n)=>{for(let r in t){let s=t[r];s.sort(at);let a=[],l=[],u=[];for(let t=0;t<s.length;t++){let{at:e,value:i,easing:n}=s[t];a.push(i),l.push(eE(0,d,e)),u.push(n||"easeOut")}0!==l[0]&&(l.unshift(0),a.unshift(a[0]),u.unshift("easeInOut")),1!==l[l.length-1]&&(l.push(1),a.push(null)),o.has(n)||o.set(n,{keyframes:{},transition:{}});let h=o.get(n);h.keyframes[r]=a,h.transition[r]={...e,duration:d,ease:u,times:l,...i}}}),o})(t,e,i,{spring:ny}).forEach(({keyframes:t,transition:e},i)=>{n.push(...al(i,t,e))}),n}(e,i,t):al(e,i,n,t));return t&&t.animations.push(s),s}}let ah=au();function ac(){let t=d(()=>({current:null,animations:[]})),e=d(()=>au(t));return o3(()=>{t.animations.forEach(t=>t.stop())}),[t,e]}function ad(t,e,i){t.style.setProperty(`--${e}`,i)}function ap(t,e,i){t.style[e]=i}let am=ec(()=>{try{document.createElement("div").animate({opacity:[1]})}catch(t){return!1}return!0}),af=new WeakMap,ag="easeOut";function av(t){let e=af.get(t)||new Map;return af.set(t,e),af.get(t)}class ay extends eb{constructor(t,e,i,n){let r=e.startsWith("--");iG("string"!=typeof n.type,'animateMini doesn\'t support "type" as a string. Did you mean to import { spring } from "framer-motion"?');let s=av(t).get(e);if(s&&s.stop(),Array.isArray(i)||(i=[i]),!function(t,e,i){for(let n=0;n<e.length;n++)null===e[n]&&(e[n]=0===n?i():e[n-1]),"number"==typeof e[n]&&tY[t]&&(e[n]=tY[t].transform(e[n]));!am()&&e.length<2&&e.unshift(i())}(e,i,()=>e.startsWith("--")?t.style.getPropertyValue(e):window.getComputedStyle(t)[e]),ew(n.type)){let t=ex(n,100,n.type);n.ease=eA()?t.ease:ag,n.duration=ev(t.duration),n.type="keyframes"}else n.ease=n.ease||ag;let o=()=>{this.setValue(t,e,i5(i,n)),this.cancel(),this.resolveFinishedProm
9ise()},a=()=>{this.setValue=r?ad:ap,this.options=n,this.updateFinishedPromise(),this.removeAnimation=()=>{let i=af.get(t);i&&i.delete(e)}};nO()?(super(nB(t,e,i,n)),a(),!1===n.autoplay&&this.animation.pause(),this.animation.onfinish=o,av(t).set(e,this)):(super(),a(),o())}then(t,e){return this.currentFinishedPromise.then(t,e)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}play(){"finished"===this.state&&this.updateFinishedPromise(),super.play()}cancel(){this.removeAnimation(),super.cancel()}}let ax=t=>function(e,i,n){return new em(function(t,e,i,n){let r=ek(t,n),s=r.length;iG(!!s,"No valid element provided.");let o=[];for(let t=0;t<s;t++){let n=r[t],a={...i};for(let i in"function"==typeof a.delay&&(a.delay=a.delay(t,s)),e){let t=e[i],r={...ef(a,i)};r.duration=r.duration?ev(r.duration):r.duration,r.delay=ev(r.delay||0),o.push(new ay(n,i,t,r))}}return o}(e,i,n,t))},aw=ax();function aP(){let t=d(()=>({current:null,animations:[]})),e=d(()=>ax(t));return o3(()=>{t.animations.forEach(t=>t.stop())}),[t,e]}function ab(){let t=d(o2);return S(t.mount,[]),t}let aT=ab;function aS(t,e,i,n){(0,h.useEffect)(()=>{let r=t.current;if(i&&r)return n6(r,e,i,n)},[t,e,i,n])}class aA{constructor(){this.componentControls=new Set}subscribe(t){return this.componentControls.add(t),()=>this.componentControls.delete(t)}start(t,e){this.componentControls.forEach(i=>{i.start(t.nativeEvent||t,e)})}}let aE=()=>new aA;function aM(){return d(aE)}function aC(t){return null!==t&&"object"==typeof t&&ta in t}function aV(t){if(aC(t))return t[ta]}function aR(){return aD}function aD(t){sN.current&&(sN.current.isUpdating=!1,sN.current.blockUpdate(),t&&t())}function ak(){return(0,h.useCallback)(()=>{let t=sN.current;t&&t.resetTree()},[])}function aL(...t){let e=(0,h.useRef)(0),[i,n]=(0,h.useState)(t[e.current]);return[i,(0,h.useCallback)(i=>{e.current="number"!=typeof i?o9(0,t.length,e.current+1):i,n(t[e.current])},[t.length,...t])]}let aj={some:0,all:1};function aF(t,e,{root:i,margin:n,amount:r="some"}={}){let s=ek(t),o=new WeakMap,a=new IntersectionObserver(t=>{t.forEach(t=>{let i=o.get(t.target);if(!!i!==t.isIntersecting)if(t.isIntersecting){let i=e(t);"function"==typeof i?o.set(t.target,i):a.unobserve(t.target)}else"function"==typeof i&&(i(t),o.delete(t.target))})},{root:i,rootMargin:n,threshold:"number"==typeof r?r:aj[r]});return s.forEach(t=>a.observe(t)),()=>a.disconnect()}function aB(t,{root:e,margin:i,amount:n,once:r=!1}={}){let[s,o]=(0,h.useState)(!1);return(0,h.useEffect)(()=>{if(!t.current||r&&s)return;let a={root:e&&e.current||void 0,margin:i,amount:n};return aF(t.current,()=>(o(!0),r?void 0:()=>o(!1)),a)},[e,t,i,r,n]),s}function aO(){let[t,e]=F(),i=(0,h.useRef)(-1);return(0,h.useEffect)(()=>{D.postRender(()=>D.postRender(()=>{e===i.current&&(e5.current=!1)}))},[e]),n=>{aD(()=>{e5.current=!0,t(),n(),i.current=e+1})}}function aI(){e5.current=!1}let aU=(t,e)=>{let i=tM.has(e)?"transform":e;return`${t}: ${i}`},aW=new Map,a$=new Map;function aN(t,e,i){var n;let r=aU(t,e),s=aW.get(r);if(!s)return null;let{animation:o,startTime:a}=s;function l(){var n;null==(n=window.MotionCancelOptimisedAnimation)||n.call(window,t,e,i)}return(o.onfinish=l,null===a||(null==(n=window.MotionHandoffIsComplete)?void 0:n.call(window,t)))?(l(),null):a}let az=new Set;function aH(){az.forEach(t=>{t.animation.play(),t.animation.startTime=t.startTime}),az.clear()}function aY(t,e,i,n,r){if(window.MotionIsMounted)return;let s=t.dataset[th];if(!s)return;window.MotionHandoffAnimation=aN;let l=aU(s,e);a||(a=nB(t,e,[i[0],i[0]],{duration:1e4,ease:"linear"}),aW.set(l,{animation:a,startTime:null}),window.MotionHandoffAnimation=aN,window.MotionHasOptimisedAnimation=(t,e)=>{if(!t)return!1;if(!e)return a$.has(t);let i=aU(t,e);return!!aW.get(i)},window.MotionHandoffMarkAsComplete=t=>{a$.has(t)&&a$.set(t,!0)},window.MotionHandoffIsComplete=t=>!0===a$.get(t),window.MotionCancelOptimisedAnimation=(t,e,i,n)=>{let r=aU(t,e),s=aW.get(r);s&&(i&&void 0===n?i.postRender(()=>{i.postRender(()=>{s.animation.cancel()})}):s.animation.cancel(),i&&n?(az.add(s),i.render(aH)):(aW.delete(r),aW.size||(window.MotionCancelOptimisedAnimation=void 0)))},window.MotionCheckAppearSync=(t,e,i)=>{var n,r;let s=e1(t);if(!s)return;let o=null==(n=window.MotionHasOptimisedAnimation)?void 0:n.call(window,s,e),a=null==(r=t.props.values)?void 0:r[e];if(!o||!a)return;let l=i.on("change",t=>{var i;a.get()!==t&&(null==(i=window.MotionCancelOptimisedAnimation)||i.call(window,s,e),l())});return l});let u=()=>{a.cancel();let s=nB(t,e,i,n);void 0===o&&(o=performance.now()),s.startTime=o,aW.set(l,{animation:s,startTime:o}),r&&r(s)};a$.set(s,!1),a.ready?a.ready.then(u).catch(M):u()}let aX=()=>({});class aG extends oe{constructor(){super(...arguments),this.measureInstanceViewportBox=rw}build(){}resetTransform(){}restoreTransform(){}removeValueFromRenderState(){}renderInstance(){}scrapeMotionValuesFromProps(){return aX()}getBaseTargetFromProps(){}readValueFromInstance(t,e,i){return i.initialState[e]||0}sortInstanceNodePosition(){return 0}}let aK=tA({scrapeMotionValuesFromProps:aX,createRenderState:aX});function aq(t){let[e,i]=(0,h.useState)(t),n=aK({},!1),r=d(()=>new aG({props:{onUpdate:t=>{i({...t})}},visualState:n,presenceContext:null},{initialState:t}));return(0,h.useLayoutEffect)(()=>(r.mount({}),()=>r.unmount()),[r]),[e,d(()=>t=>nq(r,t))]}let a_=0,aZ=({children:t})=>(h.useEffect(()=>{iG(!1,"AnimateSharedLayout is deprecated: https://www.framer.com/docs/guide-upgrade/##shared-layout-animations")},[]),(0,u.jsx)(U,{id:d(()=>`asl-${a_++}`),children:t})),aJ=t=>t>.001?1/t:1e5,aQ=!1;function a0(t){let e=oU(1),i=oU(1),{visualElement:n}=(0,h.useContext)(Q);return iG(!!(t||n),"If no scale values are provided, useInvertedScale must be used within a child of another motion component."),M(aQ,"useInvertedScale is deprecated and will be removed in 3.0. Use the layout prop instead."),aQ=!0,t?(e=t.scaleX||e,i=t.scaleY||i):n&&(e=n.getValue("scaleX",1),i=n.getValue("scaleY",1)),{scaleX:oq(e,aJ),scaleY:oq(i,aJ)}}let a1=(0,h.createContext)(null),a5=(0,h.forwardRef)(function({children:t,as:e="ul",axis:i="y",onReorder:n,values:r,...s},o){let a=d(()=>oo[e]),l=[],c=(0,h.useRef)(!1);return iG(!!r,"Reorder.Group must be provided a values prop"),(0,h.useEffect)(()=>{c.current=!1}),(0,u.jsx)(a,{...s,ref:o,ignoreStrict:!0,children:(0,u.jsx)(a1.Provider,{value:{axis:i,registerItem:(t,e)=>{let n=l.findIndex(e=>t===e.value);-1!==n?l[n].layout=e[i]:l.push({value:t,layout:e[i]}),l.sort(a3)},updateOrder:(t,e,i)=>{if(c.current)return;
9let s=function(t,e,i,n){if(!n)return t;let r=t.findIndex(t=>t.value===e);if(-1===r)return t;let s=n>0?1:-1,o=t[r+s];if(!o)return t;let a=t[r],l=o.layout,u=i3(l.min,l.max,.5);return 1===s&&a.layout.max+i>u||-1===s&&a.layout.min+i<u?function([...t],e,i){let n=e<0?t.length+e:e;if(n>=0&&n<t.length){let n=i<0?t.length+i:i,[r]=t.splice(e,1);t.splice(n,0,r)}return t}(t,r,r+s):t}(l,t,e,i);l!==s&&(c.current=!0,n(s.map(a2).filter(t=>-1!==r.indexOf(t))))}},children:t})})});function a2(t){return t.value}function a3(t,e){return t.layout.min-e.layout.min}function a9(t,e=0){return tT(t)?t:oU(e)}let a6=(0,h.forwardRef)(function({children:t,style:e={},value:i,as:n="li",onDrag:r,layout:s=!0,...o},a){let l=d(()=>oo[n]),c=(0,h.useContext)(a1),p={x:a9(e.x),y:a9(e.y)},m=oq([p.x,p.y],([t,e])=>t||e?1:"unset");iG(!!c,"Reorder.Item must be a child of Reorder.Group");let{axis:f,registerItem:g,updateOrder:v}=c;return(0,u.jsx)(l,{drag:f,...o,dragSnapToOrigin:!0,style:{...e,x:p.x,y:p.y,zIndex:m},layout:s,onDrag:(t,e)=>{let{velocity:n}=e;n[f]&&v(i,p[f].get(),n[f]),r&&r(t,e)},onLayoutMeasure:t=>g(i,t),ref:a,ignoreStrict:!0,children:t})});function a4(t=.1,{startDelay:e=0,from:i=0,ease:n}={}){return(r,s)=>{let o=t*Math.abs(("number"==typeof i?i:function(t,e){if("first"===t)return 0;{let i=e-1;return"last"===t?i:i/2}}(i,s))-r);if(n){let e=s*t;o=nA(n)(o/e)*e}return e+o}}let a8=D,a7=V.reduce((t,e)=>(t[e]=t=>k(t),t),{});function lt(t,e="end"){return i=>{let n=(i="end"===e?Math.min(i,.999):Math.max(i,.001))*t;return tj(0,1,("end"===e?Math.floor(n):Math.ceil(n))/t)}}}}]);

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.