1var Ho=Object.defineProperty;var o=(t,e)=>Ho(t,"name",{value:e,configurable:!0});import{j as Te}from"./C8EeKvrq.js";import{r as A}from"./DjJLEu1G.js";const xi=A.createContext({});function Xo(t){const e=A.useRef(null);return e.current===null&&(e.current=t()),e.current}o(Xo,"useConstant");const en=A.createContext(null),Ti=A.createContext({transformPagePoint:o(t=>t,"transformPagePoint"),isStatic:!1,reducedMotion:"never"});function Go(t=!0){const e=A.useContext(en);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,r=A.useId();A.useEffect(()=>{t&&i(r)},[t]);const u=A.useCallback(()=>t&&s&&s(r),[r,s,t]);return!n&&s?[!1,u]:[!0]}o(Go,"usePresence");const nn=typeof window<"u",Yo=nn?A.useLayoutEffect:A.useEffect,I=o(t=>t,"noop");let Pi=I;function sn(t){let e;return()=>(e===void 0&&(e=t()),e)}o(sn,"memo");const ht=o((t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s},"progress"),X=o(t=>t*1e3,"secondsToMilliseconds"),G=o(t=>t/1e3,"millisecondsToSeconds"),qo={useManualTiming:!1};function Zo(t){let e=new Set,n=new Set,s=!1,i=!1;const r=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function a(c){r.has(c)&&(l.schedule(c),t()),c(u)}o(a,"triggerCallback");const l={schedule:o((c,h=!1,f=!1)=>{const p=f&&s?e:n;return h&&r.add(c),p.has(c)||p.add(c),c},"schedule"),cancel:o(c=>{n.delete(c),r.delete(c)},"cancel"),process:o(c=>{if(u=c,s){i=!0;return}s=!0,[e,n]=[n,e],e.forEach(a),e.clear(),s=!1,i&&(i=!1,l.process(c))},"process")};return l}o(Zo,"createRenderStep");const jt=["read","resolveKeyframes","update","preRender","render","postRender"],Jo=40;function Si(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=o(()=>n=!0,"flagRunNextFrame"),u=jt.reduce((v,x)=>(v[x]=Zo(r),v),{}),{read:a,resolveKeyframes:l,update:c,preRender:h,render:f,postRender:d}=u,p=o(()=>{const v=performance.now();n=!1,i.delta=s?1e3/60:Math.max(Math.min(v-i.timestamp,Jo),1),i.timestamp=v,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),h.process(i),f.process(i),d.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(p))},"processBatch"),m=o(()=>{n=!0,s=!0,i.isProcessing||t(p)},"wake");return{schedule:jt.reduce((v,x)=>{const S=u[x];return v[x]=(V,P=!1,w=!1)=>(n||m(),S.schedule(V,P,w)),v},{}),cancel:o(v=>{for(let x=0;x<jt.length;x++)u[jt[x]].cancel(v)},"cancel"),state:i,steps:u}}o(Si,"createRenderBatcher");const{schedule:C,cancel:Z,state:L,steps:ae}=Si(typeof requestAnimationFrame<"u"?requestAnimationFrame:I,!0),Ai=A.createContext({strict:!1}),rs={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"]},ft={};for(const t in rs)ft[t]={isEnabled:o(e=>rs[t].some(n=>!!e[n]),"isEnabled")};function Qo(t){for(const e in t)ft[e]={...ft[e],...t[e]}}o(Qo,"loadFeatures");const tr=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 Wt(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||tr.has(t)}o(Wt,"isValidMotionProp");let bi=o(t=>!Wt(t),"shouldForward");function er(t){t&&(bi=o(e=>e.startsWith("on")?!Wt(e):t(e),"shouldForward"))}o(er,"loadExternalIsValidProp");try{er(require("@emotion/is-prop-valid").default)}catch{}function nr(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(bi(i)||n===!0&&Wt(i)||!e&&!Wt(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}o(nr,"filterProps");function sr(t){if(typeof Proxy>"u")return t;const e=new Map,n=o((...s)=>t(...s),"deprecatedFactoryFunction");return new Proxy(n,{get:o((s,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i)),"get")})}o(sr,"createDOMMotionComponentProxy");const te=A.createContext({});function bt(t){return typeof t=="string"||Array.isArray(t)}o(bt,"isVariantLabel");function ee(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}o(ee,"isAnimationControls");const on=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],rn=["initial",...on];function ne(t){return ee(t.animate)||rn.some(e=>bt(t[e]))}o(ne,"isControllingVariants");function wi(t){return!!(ne(t)||t.variants)}o(wi,"isVariantNode");function ir(t,e){if(ne(t)){const{initial:n,animate:s}=t;return{initial:n===!1||bt(n)?n:void 0,animate:bt(s)?s:void 0}}return t.inherit!==!1?e:{}}o(ir,"getCurrentTreeVariants");function or(t){const{initial:e,animate:n}=ir(t,A.useContext(te));return A.useMemo(()=>({initial:e,animate:n}),[as(e),as(n)])}o(or,"useCreateMotionContext");function as(t){return Array.isArray(t)?t.join(" "):t}o(as,"variantLabelsAsDependency");const rr=Symbol.for("motionComponentSymbol");function rt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}o(rt,"isRefObject");function ar(t,e,n){return A.useCallback(s=>{s&&t.onMount&&t.onMount(s),e&&(s?e.mount(s):e.unmount()),n&&(typeof n=="function"?n(s):rt(n)&&(n.current=s))},[e])}o(ar,"useMotionRef");const an=o(t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),"camelToDash"),lr="framerAppearId",Vi="data-"+an(lr),{schedule:ln}=Si(queueMicrotask,!1),Ci=A.createContext({});function ur(t,e,n,s,i){var r,u;
1const{visualElement:a}=A.useContext(te),l=A.useContext(Ai),c=A.useContext(en),h=A.useContext(Ti).reducedMotion,f=A.useRef(null);s=s||l.renderer,!f.current&&s&&(f.current=s(t,{visualState:e,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:h}));const d=f.current,p=A.useContext(Ci);d&&!d.projection&&i&&(d.type==="html"||d.type==="svg")&&cr(f.current,n,i,p);const m=A.useRef(!1);A.useInsertionEffect(()=>{d&&m.current&&d.update(n,c)});const y=n[Vi],g=A.useRef(!!y&&!(!((r=window.MotionHandoffIsComplete)===null||r===void 0)&&r.call(window,y))&&((u=window.MotionHasOptimisedAnimation)===null||u===void 0?void 0:u.call(window,y)));return Yo(()=>{d&&(m.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),ln.render(d.render),g.current&&d.animationState&&d.animationState.animateChanges())}),A.useEffect(()=>{d&&(!g.current&&d.animationState&&d.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)===null||v===void 0||v.call(window,y)}),g.current=!1))}),d}o(ur,"useVisualElement");function cr(t,e,n,s){const{layoutId:i,layout:r,drag:u,dragConstraints:a,layoutScroll:l,layoutRoot:c}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Di(t.parent)),t.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:!!u||a&&rt(a),visualElement:t,animationType:typeof r=="string"?r:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:c})}o(cr,"createProjectionNode$1");function Di(t){if(t)return t.options.allowProjection!==!1?t.projection:Di(t.parent)}o(Di,"getClosestProjectingNode");function hr({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:s,Component:i}){var r,u;t&&Qo(t);function a(c,h){let f;const d={...A.useContext(Ti),...c,layoutId:fr(c)},{isStatic:p}=d,m=or(c),y=s(c,p);if(!p&&nn){dr();const g=pr(d);f=g.MeasureLayout,m.visualElement=ur(i,y,d,e,g.ProjectionNode)}return Te.jsxs(te.Provider,{value:m,children:[f&&m.visualElement?Te.jsx(f,{visualElement:m.visualElement,...d}):null,n(i,c,ar(y,m.visualElement,h),y,p,m.visualElement)]})}o(a,"MotionComponent"),a.displayName=`motion.${typeof i=="string"?i:`create(${(u=(r=i.displayName)!==null&&r!==void 0?r:i.name)!==null&&u!==void 0?u:""})`}`;const l=A.forwardRef(a);return l[rr]=i,l}o(hr,"createRendererMotionComponent");function fr({layoutId:t}){const e=A.useContext(xi).id;return e&&t!==void 0?e+"-"+t:t}o(fr,"useLayoutId");function dr(t,e){A.useContext(Ai).strict}o(dr,"useStrictMode");function pr(t){const{drag:e,layout:n}=ft;if(!e&&!n)return{};const s={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}o(pr,"getProjectionFunctionality");const mr=["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 un(t){return typeof t!="string"||t.includes("-")?!1:!!(mr.indexOf(t)>-1||/[A-Z]/u.test(t))}o(un,"isSVGComponent");function ls(t){const e=[{},{}];return t==null||t.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}o(ls,"getValueState");function cn(t,e,n,s){if(typeof e=="function"){const[i,r]=ls(s);e=e(n!==void 0?n:t.custom,i,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,r]=ls(s);e=e(n!==void 0?n:t.custom,i,r)}return e}o(cn,"resolveVariantFromProps");const Pe=o(t=>Array.isArray(t),"isKeyframesTarget"),gr=o(t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),"isCustomValue"),yr=o(t=>Pe(t)?t[t.length-1]||0:t,"resolveFinalValueInKeyframes"),F=o(t=>!!(t&&t.getVelocity),"isMotionValue");function Nt(t){const e=F(t)?t.get():t;return gr(e)?e.toValue():e}o(Nt,"resolveMotionValue");function vr({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},s,i,r){const u={latestValues:xr(s,i,r,t),renderState:e()};return n&&(u.onMount=a=>n({props:s,current:a,...u}),u.onUpdate=a=>n(a)),u}o(vr,"makeState");const Mi=o(t=>(e,n)=>{const s=A.useContext(te),i=A.useContext(en),r=o(()=>vr(t,e,s,i),"make");return n?r():Xo(r)},"makeUseVisualState");function xr(t,e,n,s){const i={},r=s(t,{});for(const d in r)i[d]=Nt(r[d]);let{initial:u,animate:a}=t;const l=ne(t),c=wi(t);e&&c&&!l&&t.inherit!==!1&&(u===void 0&&(u=e.initial),a===void 0&&(a=e.animate));let h=n?n.initial===!1:!1;h=h||u===!1;const f=h?a:u;if(f&&typeof f!="boolean"&&!ee(f)){const d=Array.isArray(f)?f:[f];for(let p=0;p<d.length;p++){const m=cn(t,d[p]);if(m){const{transitionEnd:y,transition:g,...v}=m;for(const x in v){let S=v[x];if(Array.isArray(S)){const V=h?S.length-1:0;S=S[V]}S!==null&&(i[x]=S)}for(const x in y)i[x]=y[x]}}}return i}o(xr,"makeLatestValues");const pt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],it=new Set(pt),Ri=o(t=>e=>typeof e=="string"&&e.startsWith(t),"checkStringStartsWith"),Ei=Ri("--"),Tr=Ri("var(--"),hn=o(t=>Tr(t)?Pr.test(t.split("/*")[0].trim()):!1,"isCSSVariableToken"),Pr=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Li=o((t,e)=>e&&typeof t=="number"?e.transform(t):t,"getValueAsType"),Y=o((t,e,n)=>n>e?e:n<t?t:n,"clamp"),mt={test:o(t=>typeof t=="number","test"),parse:parseFloat,transform:o(t=>t,"transform")},wt={...mt,transform:o(t=>Y(0,1,t),"transform")},It={...mt,default:1},Lt=o(t=>({test:o(e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,"test"),parse:parseFloat,transform:o(e=>`${e}${t}`,"transform")}),"createUnitType"),q=Lt("deg"),$=Lt("%"),T=Lt("px"),Sr=Lt("vh"),Ar=Lt("vw"),us={...$,parse:o(t=>$.parse(t)/100,"parse"),transform:o(t=>$.transform(t*100),"transform")},br={borderWidth:T,borderTopWidth:T,borderRightWidth:T,borderBottomWidth:T,borderLeftWidth:T,borderRadius:T,radiu
1s: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},wr={rotate:q,rotateX:q,rotateY:q,rotateZ:q,scale:It,scaleX:It,scaleY:It,scaleZ:It,skew:q,skewX:q,skewY:q,distance:T,translateX:T,translateY:T,translateZ:T,x:T,y:T,z:T,perspective:T,transformPerspective:T,opacity:wt,originX:us,originY:us,originZ:T},cs={...mt,transform:Math.round},fn={...br,...wr,zIndex:cs,size:T,fillOpacity:wt,strokeOpacity:wt,numOctaves:cs},Vr={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Cr=pt.length;function Dr(t,e,n){let s="",i=!0;for(let r=0;r<Cr;r++){const u=pt[r],a=t[u];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(u.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=Li(a,fn[u]);if(!l){i=!1;const h=Vr[u]||u;s+=`${h}(${c}) `}n&&(e[u]=c)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}o(Dr,"buildTransform");function dn(t,e,n){const{style:s,vars:i,transformOrigin:r}=t;let u=!1,a=!1;for(const l in e){const c=e[l];if(it.has(l)){u=!0;continue}else if(Ei(l)){i[l]=c;continue}else{const h=Li(c,fn[l]);l.startsWith("origin")?(a=!0,r[l]=h):s[l]=h}}if(e.transform||(u||n?s.transform=Dr(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:h=0}=r;s.transformOrigin=`${l} ${c} ${h}`}}o(dn,"buildHTMLStyles");const Mr={offset:"stroke-dashoffset",array:"stroke-dasharray"},Rr={offset:"strokeDashoffset",array:"strokeDasharray"};function Er(t,e,n=1,s=0,i=!0){t.pathLength=1;const r=i?Mr:Rr;t[r.offset]=T.transform(-s);const u=T.transform(e),a=T.transform(n);t[r.array]=`${u} ${a}`}o(Er,"buildSVGPath");function hs(t,e,n){return typeof t=="string"?t:T.transform(e+n*t)}o(hs,"calcOrigin$1");function Lr(t,e,n){const s=hs(e,t.x,t.width),i=hs(n,t.y,t.height);return`${s} ${i}`}o(Lr,"calcSVGTransformOrigin");function pn(t,{attrX:e,attrY:n,attrScale:s,originX:i,originY:r,pathLength:u,pathSpacing:a=1,pathOffset:l=0,...c},h,f){if(dn(t,c,f),h){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:d,style:p,dimensions:m}=t;d.transform&&(m&&(p.transform=d.transform),delete d.transform),m&&(i!==void 0||r!==void 0||p.transform)&&(p.transformOrigin=Lr(m,i!==void 0?i:.5,r!==void 0?r:.5)),e!==void 0&&(d.x=e),n!==void 0&&(d.y=n),s!==void 0&&(d.scale=s),u!==void 0&&Er(d,u,a,l,!1)}o(pn,"buildSVGAttrs");const mn=o(()=>({style:{},transform:{},transformOrigin:{},vars:{}}),"createHtmlRenderState"),Bi=o(()=>({...mn(),attrs:{}}),"createSvgRenderState"),gn=o(t=>typeof t=="string"&&t.toLowerCase()==="svg","isSVGTag");function Fi(t,{style:e,vars:n},s,i){Object.assign(t.style,e,i&&i.getProjectionStyles(s));for(const r in n)t.style.setProperty(r,n[r])}o(Fi,"renderHTML");const ki=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 ji(t,e,n,s){Fi(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(ki.has(i)?i:an(i),e.attrs[i])}o(ji,"renderSVG");const $t={};function Br(t){Object.assign($t,t)}o(Br,"addScaleCorrector");function Ii(t,{layout:e,layoutId:n}){return it.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!$t[t]||t==="opacity")}o(Ii,"isForcedMotionValue");function yn(t,e,n){var s;const{style:i}=t,r={};for(const u in i)(F(i[u])||e.style&&F(e.style[u])||Ii(u,t)||((s=n==null?void 0:n.getValue(u))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(r[u]=i[u]);return r}o(yn,"scrapeMotionValuesFromProps$1");function Oi(t,e,n){const s=yn(t,e,n);for(const i in t)if(F(t[i])||F(e[i])){const r=pt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=t[i]}return s}o(Oi,"scrapeMotionValuesFromProps");function Fr(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}o(Fr,"updateSVGDimensions");const fs=["x","y","width","height","cx","cy","r"],kr={useVisualState:Mi({scrapeMotionValuesFromProps:Oi,createRenderState:Bi,onUpdate:o(({props:t,prevProps:e,current:n,renderState:s,latestValues:i})=>{if(!n)return;let r=!!t.drag;if(!r){for(const a in i)if(it.has(a)){r=!0;break}}if(!r)return;let u=!e;if(e)for(let a=0;a<fs.length;a++){const l=fs[a];t[l]!==e[l]&&(u=!0)}u&&C.read(()=>{Fr(n,s),C.render(()=>{pn(s,i,gn(n.tagName),t.transformTemplate),ji(n,s)})})},"onUpdate")})},jr={useVisualState:Mi({scrapeMotionValuesFromProps:yn,createRenderState:mn})};function Ni(t,e,n){for(const s in e)!F(e[s])&&!Ii(s,n)&&(t[s]=e[s])}o(Ni,"copyRawValuesOnly");function Ir({transformTemplate:t},e){return A.useMemo(()=>{const n=mn();return dn(n,e,t),Object.assign({},n.vars,n.style)},[e])}o(Ir,"useInitialMotionValues");function Or(t,e){const n=t.style||{},s={};return Ni(s,n,t),Object.assign(s,Ir(t,e)),s}o(Or,"useStyle");function Nr(t,e){const n={},s=Or(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}o(Nr,"useHTMLProps");function Ur(t,e,n,s){const i=A.useMemo(()=>{const r=Bi();return pn(r,e,gn(s),t.transformTemplate),{...r.attrs,style:{...r.style}}},[e]);if(t.style){const r={};Ni(r,t.style,t),i.style={...r,...i.style}}return i}o(Ur,"useSVGProps");function Kr(t=!1){return o((n,s,i,{latestValues:r},u)=>{const l=(un(n)?Ur:Nr)(s,r,u,n),c=nr(s,typeof n=="string",t),h=n!==A.Fragment?{...c,...l,ref:i}:{},{children:f}=s,d=A.useMemo(()=>F(f)?f.get():f,[f]);return A.createElement(n,{...h,children:d})},"useRender")}o(Kr,"createUseRender");function Wr(t,e){return o(function(s,{forwardMotionProps:i}={forwardMotionProps:!1}){const u={...un(s)?kr:jr,preloadedFeatures:t,useRender:Kr(i),createVisualElement:e,Component:s};return hr(u)},"createMotionComponent")}o(Wr,"createMotionComponentFactory");function Ui(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}o(Ui,"shallowCompare");function se(t,e,n){const s=t.getProps();return cn(s,e,n!==void 0?n:s.custom,t)}o(se,"resolveVariant");const $r=sn(()=>window.ScrollTimeline!==void 0),En=class En{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let s=0;s<this.animations.length;s++)this.animations[s][e]=n}attachTimeline(e,n){const s=this.animations.map(i=>{if($r()&&i.attachTimeline)return i.attachTimeline(e);if(typeof n=="function")return n(i)});return()=>
1{s.forEach((i,r)=>{i&&i(),this.animations[r].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}};o(En,"BaseGroupPlaybackControls");let Se=En;const Ln=class Ln extends Se{then(e,n){return Promise.all(this.animations).then(e).catch(n)}};o(Ln,"GroupPlaybackControls");let Ae=Ln;function vn(t,e){return t?t[e]||t.default||t:void 0}o(vn,"getValueTransition");const be=2e4;function Ki(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<be;)e+=n,s=t.next(e);return e>=be?1/0:e}o(Ki,"calcGeneratorDuration");function xn(t){return typeof t=="function"}o(xn,"isGenerator");function ds(t,e){t.timeline=e,t.onfinish=null}o(ds,"attachTimeline");const Tn=o(t=>Array.isArray(t)&&typeof t[0]=="number","isBezierDefinition"),_r={linearEasing:void 0};function zr(t,e){const n=sn(t);return()=>{var s;return(s=_r[e])!==null&&s!==void 0?s:n()}}o(zr,"memoSupports");const _t=zr(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Wi=o((t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let r=0;r<i;r++)s+=t(ht(0,i-1,r))+", ";return`linear(${s.substring(0,s.length-2)})`},"generateLinearEasing");function $i(t){return!!(typeof t=="function"&&_t()||!t||typeof t=="string"&&(t in we||_t())||Tn(t)||Array.isArray(t)&&t.every($i))}o($i,"isWaapiSupportedEasing");const yt=o(([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,"cubicBezierAsString"),we={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:yt([0,.65,.55,1]),circOut:yt([.55,0,1,.45]),backIn:yt([.31,.01,.66,-.59]),backOut:yt([.33,1.53,.69,.99])};function _i(t,e){if(t)return typeof t=="function"&&_t()?Wi(t,e):Tn(t)?yt(t):Array.isArray(t)?t.map(n=>_i(n,e)||we.easeOut):we[t]}o(_i,"mapEasingToNativeEasing");const W={x:!1,y:!1};function zi(){return W.x||W.y}o(zi,"isDragActive");function Hr(t,e,n){var s;if(t instanceof Element)return[t];if(typeof t=="string"){let i=document;const r=(s=void 0)!==null&&s!==void 0?s:i.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t)}o(Hr,"resolveElements");function Hi(t,e){const n=Hr(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,o(()=>s.abort(),"cancel")]}o(Hi,"setupGesture");function ps(t){return e=>{e.pointerType==="touch"||zi()||t(e)}}o(ps,"filterEvents$1");function Xr(t,e,n={}){const[s,i,r]=Hi(t,n),u=ps(a=>{const{target:l}=a,c=e(a);if(typeof c!="function"||!l)return;const h=ps(f=>{c(f),l.removeEventListener("pointerleave",h)});l.addEventListener("pointerleave",h,i)});return s.forEach(a=>{a.addEventListener("pointerenter",u,i)}),r}o(Xr,"hover");const Xi=o((t,e)=>e?t===e?!0:Xi(t,e.parentElement):!1,"isNodeOrChild"),Pn=o(t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,"isPrimaryPointer"),Gr=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Yr(t){return Gr.has(t.tagName)||t.tabIndex!==-1}o(Yr,"isElementKeyboardAccessible");const vt=new WeakSet;function ms(t){return e=>{e.key==="Enter"&&t(e)}}o(ms,"filterEvents");function le(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}o(le,"firePointerEvent");const qr=o((t,e)=>{const n=t.currentTarget;if(!n)return;const s=ms(()=>{if(vt.has(n))return;le(n,"down");const i=ms(()=>{le(n,"up")}),r=o(()=>le(n,"cancel"),"handleBlur");n.addEventListener("keyup",i,e),n.addEventListener("blur",r,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)},"enableKeyboardPress");function gs(t){return Pn(t)&&!zi()}o(gs,"isValidPressEvent");function Zr(t,e,n={}){const[s,i,r]=Hi(t,n),u=o(a=>{const l=a.currentTarget;if(!gs(a)||vt.has(l))return;vt.add(l);const c=e(a),h=o((p,m)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),!(!gs(p)||!vt.has(l))&&(vt.delete(l),typeof c=="function"&&c(p,{success:m}))},"onPointerEnd"),f=o(p=>{h(p,n.useGlobalTarget||Xi(l,p.target))},"onPointerUp"),d=o(p=>{h(p,!1)},"onPointerCancel");window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",d,i)},"startPress");return s.forEach(a=>{!Yr(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",u,i),a.addEventListener("focus",c=>qr(c,i),i)}),r}o(Zr,"press");function Jr(t){return t==="x"||t==="y"?W[t]?null:(W[t]=!0,()=>{W[t]=!1}):W.x||W.y?null:(W.x=W.y=!0,()=>{W.x=W.y=!1})}o(Jr,"setDragLock");const Gi=new Set(["width","height","top","left","right","bottom",...pt]);let Ut;function Qr(){Ut=void 0}o(Qr,"clearTime");const _={now:o(()=>(Ut===void 0&&_.set(L.isProcessing||qo.useManualTiming?L.timestamp:performance.now()),Ut),"now"),set:o(t=>{Ut=t,queueMicrotask(Qr)},"set")};function Sn(t,e){t.indexOf(e)===-1&&t.push(e)}o(Sn,"addUniqueItem");function An(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}o(An,"removeItem");const Bn=class Bn{constructor(){this.subscriptions=[]}add(e){return Sn(this.subscriptions,e),()=>An(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let r=0;r<i;r++){const u=this.subscriptions[r];u&&u(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};o(Bn,"SubscriptionManager");let Vt=Bn;function Yi(t,e){return e?t*(1e3/e):0}o(Yi,"velocityPerSecond");const ys=30,ta=o(t=>!isNaN(parseFloat(t)),"isFloat"),Fn=class Fn{constructor(e,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,i=!0)=>{const r=_.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=_.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=ta(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Vt);const s=this.events[e].add(n);return e==="change"?()=>{s(),C.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=_.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>ys)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ys);return Yi(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};o(Fn,"MotionValue");let Ve=Fn;function Ct(t,e){return new Ve(t,e)}o(Ct,"motionValue");function ea(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Ct(n))}o(ea,"setMotionValue");function na(t,e){const n=se(t,e);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const u in r){const a=yr(r[u]);ea(t,u,a)}}o(na,"setTarget");function sa(t){return!!(F(t)&&t.add)}o(sa,"isWillChangeMotionValue");function Ce(t,e){const n=t.getValue("willChange");if(sa(n))return n.add(e)}o(Ce,"addValueToWillChange");function qi(t){return t.props[Vi]}o(qi,"getOptimisedAppearId");const Zi=o((t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,"calcBezier"),ia=1e-7,oa=12;function ra(t,e,n,s,i){let r,u,a=0;do u=e+(n-e)/2,r=Zi(u,s,i)-t,r>0?n=u:e=u;
1while(Math.abs(r)>ia&&++a<oa);return u}o(ra,"binarySubdivide");function Bt(t,e,n,s){if(t===e&&n===s)return I;const i=o(r=>ra(r,0,1,t,n),"getTForX");return r=>r===0||r===1?r:Zi(i(r),e,s)}o(Bt,"cubicBezier");const Ji=o(t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,"mirrorEasing"),Qi=o(t=>e=>1-t(1-e),"reverseEasing"),to=Bt(.33,1.53,.69,.99),bn=Qi(to),eo=Ji(bn),no=o(t=>(t*=2)<1?.5*bn(t):.5*(2-Math.pow(2,-10*(t-1))),"anticipate"),wn=o(t=>1-Math.sin(Math.acos(t)),"circIn"),so=Qi(wn),io=Ji(wn),oo=o(t=>/^0[^.\s]+$/u.test(t),"isZeroValueString");function aa(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||oo(t):!0}o(aa,"isNone");const Tt=o(t=>Math.round(t*1e5)/1e5,"sanitize"),Vn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function la(t){return t==null}o(la,"isNullish");const ua=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Cn=o((t,e)=>n=>!!(typeof n=="string"&&ua.test(n)&&n.startsWith(t)||e&&!la(n)&&Object.prototype.hasOwnProperty.call(n,e)),"isColorString"),ro=o((t,e,n)=>s=>{if(typeof s!="string")return s;const[i,r,u,a]=s.match(Vn);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(u),alpha:a!==void 0?parseFloat(a):1}},"splitColor"),ca=o(t=>Y(0,255,t),"clampRgbUnit"),ue={...mt,transform:o(t=>Math.round(ca(t)),"transform")},nt={test:Cn("rgb","red"),parse:ro("red","green","blue"),transform:o(({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+ue.transform(t)+", "+ue.transform(e)+", "+ue.transform(n)+", "+Tt(wt.transform(s))+")","transform")};function ha(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}o(ha,"parseHex");const De={test:Cn("#"),parse:ha,transform:nt.transform},at={test:Cn("hsl","hue"),parse:ro("hue","saturation","lightness"),transform:o(({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+$.transform(Tt(e))+", "+$.transform(Tt(n))+", "+Tt(wt.transform(s))+")","transform")},B={test:o(t=>nt.test(t)||De.test(t)||at.test(t),"test"),parse:o(t=>nt.test(t)?nt.parse(t):at.test(t)?at.parse(t):De.parse(t),"parse"),transform:o(t=>typeof t=="string"?t:t.hasOwnProperty("red")?nt.transform(t):at.transform(t),"transform")},fa=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function da(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Vn))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(fa))===null||n===void 0?void 0:n.length)||0)>0}o(da,"test");const ao="number",lo="color",pa="var",ma="var(",vs="${}",ga=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Dt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(ga,l=>(B.test(l)?(s.color.push(r),i.push(lo),n.push(B.parse(l))):l.startsWith(ma)?(s.var.push(r),i.push(pa),n.push(l)):(s.number.push(r),i.push(ao),n.push(parseFloat(l))),++r,vs)).split(vs);return{values:n,split:a,indexes:s,types:i}}o(Dt,"analyseComplexValue");function uo(t){return Dt(t).values}o(uo,"parseComplexValue");function co(t){const{split:e,types:n}=Dt(t),s=e.length;return i=>{let r="";for(let u=0;u<s;u++)if(r+=e[u],i[u]!==void 0){const a=n[u];a===ao?r+=Tt(i[u]):a===lo?r+=B.transform(i[u]):r+=i[u]}return r}}o(co,"createTransformer");const ya=o(t=>typeof t=="number"?0:t,"convertNumbersToZero");function va(t){const e=uo(t);return co(t)(e.map(ya))}o(va,"getAnimatableNone$1");const J={test:da,parse:uo,createTransformer:co,getAnimatableNone:va},xa=new Set(["brightness","contrast","saturate","opacity"]);function Ta(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(Vn)||[];if(!s)return t;const i=n.replace(s,"");let r=xa.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}o(Ta,"applyDefaultFilter");const Pa=/\b([a-z-]*)\(.*?\)/gu,Me={...J,getAnimatableNone:o(t=>{const e=t.match(Pa);return e?e.map(Ta).join(" "):t},"getAnimatableNone")},Sa={...fn,color:B,backgroundColor:B,outlineColor:B,fill:B,stroke:B,borderColor:B,borderTopColor:B,borderRightColor:B,borderBottomColor:B,borderLeftColor:B,filter:Me,WebkitFilter:Me},Dn=o(t=>Sa[t],"getDefaultValueType");function ho(t,e){let n=Dn(t);return n!==Me&&(n=J),n.getAnimatableNone?n.getAnimatableNone(e):void 0}o(ho,"getAnimatableNone");
1const Aa=new Set(["auto","none","0"]);function ba(t,e,n){let s=0,i;for(;s<t.length&&!i;){const r=t[s];typeof r=="string"&&!Aa.has(r)&&Dt(r).values.length&&(i=t[s]),s++}if(i&&n)for(const r of e)t[r]=ho(n,i)}o(ba,"makeNoneKeyframesAnimatable");const xs=o(t=>t===mt||t===T,"isNumOrPxType"),Ts=o((t,e)=>parseFloat(t.split(", ")[e]),"getPosFromMatrix"),Ps=o((t,e)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const i=s.match(/^matrix3d\((.+)\)$/u);if(i)return Ts(i[1],e);{const r=s.match(/^matrix\((.+)\)$/u);return r?Ts(r[1],t):0}},"getTranslateFromMatrix"),wa=new Set(["x","y","z"]),Va=pt.filter(t=>!wa.has(t));function Ca(t){const e=[];return Va.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}o(Ca,"removeNonTranslationalTransform");const dt={width:o(({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),"width"),height:o(({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),"height"),top:o((t,{top:e})=>parseFloat(e),"top"),left:o((t,{left:e})=>parseFloat(e),"left"),bottom:o(({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),"bottom"),right:o(({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),"right"),x:Ps(4,13),y:Ps(5,14)};dt.translateX=dt.x;dt.translateY=dt.y;const st=new Set;let Re=!1,Ee=!1;function fo(){if(Ee){const t=Array.from(st).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=Ca(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([r,u])=>{var a;(a=s.getValue(r))===null||a===void 0||a.set(u)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Ee=!1,Re=!1,st.forEach(t=>t.complete()),st.clear()}o(fo,"measureAllKeyframes");function po(){st.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Ee=!0)})}o(po,"readAllKeyframes");function Da(){po(),fo()}o(Da,"flushKeyframeResolvers");const kn=class kn{constructor(e,n,s,i,r,u=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=u}scheduleResolve(){this.isScheduled=!0,this.isAsync?(st.add(this),Re||(Re=!0,C.read(po),C.resolveKeyframes(fo))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;for(let r=0;r<e.length;r++)if(e[r]===null)if(r===0){const u=i==null?void 0:i.get(),a=e[e.length-1];if(u!==void 0)e[0]=u;else if(s&&n){const l=s.readValue(n,a);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=a),i&&u===void 0&&i.set(e[0])}else e[r]=e[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),st.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,st.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};o(kn,"KeyframeResolver");let Mt=kn;const mo=o(t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),"isNumericalString"),Ma=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ra(t){const e=Ma.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}o(Ra,"parseCSSVariable");function go(t,e,n=1){const[s,i]=Ra(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const u=r.trim();return mo(u)?parseFloat(u):u}return hn(i)?go(i,e,n+1):i}o(go,"getVariableValue");const yo=o(t=>e=>e.test(t),"testValueType"),Ea={test:o(t=>t==="auto","test"),parse:o(t=>t,"parse")},vo=[mt,T,$,q,Ar,Sr,Ea],Ss=o(t=>vo.find(yo(t)),"findDimensionValueType"),jn=class jn extends Mt{constructor(e,n,s,i,r){super(e,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let c=e[l];if(typeof c=="string"&&(c=c.trim(),hn(c))){const h=go(c,n.current);h!==void 0&&(e[l]=h),l===e.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!Gi.has(s)||e.length!==2)return;const[i,r]=e,u=Ss(i),a=Ss(r);if(u!==a)if(xs(u)&&xs(a))for(let l=0;l<e.length;l++){const c=e[l];typeof c=="string"&&(e[l]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)aa(e[i])&&s.push(i);s.length&&ba(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=dt[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){var e;const{element:n,name:s,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const r=n.getValue(s);r&&r.jump(this.measuredOrigin,!1);const u=i.length-1,a=i[u];i[u]=dt[s](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEac
1h(([l,c])=>{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}};o(jn,"DOMKeyframesResolver");let zt=jn;const As=o((t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(J.test(t)||t==="0")&&!t.startsWith("url(")),"isAnimatable");function La(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}o(La,"hasKeyframesChanged");function Ba(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const r=t[t.length-1],u=As(i,e),a=As(r,e);return!u||!a?!1:La(t)||(n==="spring"||xn(n))&&s}o(Ba,"canAnimate");const Fa=o(t=>t!==null,"isNotNull");function ie(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(Fa),r=e&&n!=="loop"&&e%2===1?0:i.length-1;return!r||s===void 0?i[r]:s}o(ie,"getFinalKeyframe");const ka=40,In=class In{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:u="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=_.now(),this.options={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:u,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>ka?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Da(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=_.now(),this.hasAttemptedResolve=!0;const{name:s,type:i,velocity:r,delay:u,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!Ba(e,s,i,r))if(u)this.options.duration=0;else{l&&l(ie(e,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const h=this.initPlayback(e,n);h!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...h},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}};o(In,"BaseAnimation");let Ht=In;const D=o((t,e,n)=>t+(e-t)*n,"mixNumber$1");function ce(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}o(ce,"hueToRgb");function ja({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,r=0,u=0;if(!e)i=r=u=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=ce(l,a,t+1/3),r=ce(l,a,t),u=ce(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(u*255),alpha:s}}o(ja,"hslaToRgba");function Xt(t,e){return n=>n>0?e:t}o(Xt,"mixImmediate");const he=o((t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},"mixLinearColor"),Ia=[De,nt,at],Oa=o(t=>Ia.find(e=>e.test(t)),"getColorType");function bs(t){const e=Oa(t);if(!e)return!1;let n=e.parse(t);return e===at&&(n=ja(n)),n}o(bs,"asRGBA");const ws=o((t,e)=>{const n=bs(t),s=bs(e);if(!n||!s)return Xt(t,e);const i={...n};return r=>(i.red=he(n.red,s.red,r),i.green=he(n.green,s.green,r),i.blue=he(n.blue,s.blue,r),i.alpha=D(n.alpha,s.alpha,r),nt.transform(i))},"mixColor"),Na=o((t,e)=>n=>e(t(n)),"combineFunctions"),Ft=o((...t)=>t.reduce(Na),"pipe"),Le=new Set(["none","hidden"]);function Ua(t,e){return Le.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}o(Ua,"mixVisibility");function Ka(t,e){return n=>D(t,e,n)}o(Ka,"mixNumber");function Mn(t){return typeof t=="number"?Ka:typeof t=="string"?hn(t)?Xt:B.test(t)?ws:_a:Array.isArray(t)?xo:typeof t=="object"?B.test(t)?ws:Wa:Xt}o(Mn,"getMixer");function xo(t,e){const n=[...t],s=n.length,i=t.map((r,u)=>Mn(r)(r,e[u]));return r=>{for(let u=0;u<s;u++)n[u]=i[u](r);return n}}o(xo,"mixArray");function Wa(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=Mn(t[i])(t[i],e[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}o(Wa,"mixObject");function $a(t,e){var n;const s=[],i={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){const u=e.types[r],a=t.indexes[u][i[u]],l=(n=t.values[a])!==null&&n!==void 0?n:0;s[r]=l,i[u]++}return s}o($a,"matchOrder");const _a=o((t,e)=>{const n=J.createTransformer(e),s=Dt(t),i=Dt(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Le.has(t)&&!i.values.length||Le.has(e)&&!s.values.length?Ua(t,e):Ft(xo($a(s,i),i.values),n):Xt(t,e)},"mixComplex");function To(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?D(t,e,n):Mn(t)(t,e)}o(To,"mix");const za=5;function Po(t,e,n){const s=Math.max(e-za,0);return Yi(n-t(s),e-s)}o(Po,"calcGeneratorVelocity");const M={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},fe=.001;function Ha({duration:t=M.duration,bounce:e=M.bounce,velocity:n=M.velocity,mass:s=M.mass}){let i,r,u=1-e;u=Y(M.minDamping,M.maxDamping,u),t=Y(M.minDuration,M.maxDuration,G(t)),u<1?(i=o(c=>{const h=c*u,f=h*t,d=h-n,p=Be(c,u),m=Math.exp(-f);return fe-d/p*m},"envelope"),r=o(c=>{const f=c*u*t,d=f*n+n,p=Math.pow(u,2)*Math.pow(c,2)*t,m=Math.exp(-f),y=Be(Math.pow(c,2),u);return(-i(c)+fe>0?-1:1)*((d-p)*m)/y},"derivative")):(i=o(c=>{const h=Math.exp(-c*t),f=(c-n)*t+1;return-fe+h*f},"envelope"),r=o(c=>{const h=Math.exp(-c*t),f=(n-c)*(t*t);return h*f},"derivative"));const a=5/t,l=Ga(i,r,a);if(t=X(t),isNaN(l))return{stiffness:M.stiffness,damping:M.damping,duration:t};{const c=Math.pow(l,2)*s;return{stiffness:c,damping:u*2*Math.sqrt(s*c),duration:t}}}o(Ha,"findSpring");const Xa=12;function Ga(t,e,n){let s=n;for(let i=1;i<Xa;i++)s=s-t(s)/e(s);return s}o(Ga,"approximateRoot");function Be(t,e){return t*Math.sqrt(1-e*e)}o(Be,"calcAngularFreq");const Ya=["duration","bounce"],qa=["stiffness","damping","mass"];function Vs(t,e){return e.some(n=>t[n]!==void 0)}o(Vs,"isSpringType");function Za(t){let e={velocity:M.velocity,stiffness:M.stiffness,damping:M.damping,mass:M.mass,isResolvedFromDuration:!1,...t};if(!Vs(t,qa)&&Vs(t,Ya))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*Y(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:M.mass,stiffness:i,damping:r}}else{const n=Ha(t);e={...e,...n,mass:M.mass},e.isResolvedFromDuration=!0}return e}o(Za,"getSpringOptions");function So(t=M.visualDuration,e=M.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const r=n.keyframes[0],u=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:c,mass:h,duration:f,velocity:d,isResolvedFromDuration:p}=Za({...n,velocity:-G(n.velocity||0)}),m=d||0,y=c/(2*Math.sqrt(l*h)),g=u-r,v=G(Math.sqrt(l/h)),x=Math.abs(g)<5;s||(s=x?M.restSpeed.granular:M.restSpeed.default),i||(i=x?M.restDelta.granular:M.restDelta.default);let S;if(y<1){const P=Be(v,y);S=o(w=>{const E=Math.exp(-y*v*w);return u-E*((m+y*v*g)/P*Math.sin(P*w)+g*Math.cos(P*w))},"resolveSpring")}else if(y===1)S=o(P=>u-Math.exp(-v*P)*(g+(m+v*g)*P),"resolveSpring");else{const P=v*Math.sqrt(y*y-1);S=o(w=>{const E=Math.exp(-y*v*w),b=Math.min(P*w,300);return u-E*((m+y*v*g)*Math.sinh(b)+P*g*Math.cosh(b))/P},"resolveSpring")}const V={calculatedDuration:p&&f||null,next:o(P=>{const w=S(P);if(p)a.done=P>=f;else{let E=0;y<1&&(E=P===0?X(m):Po(S,P,w));const b=Math.abs(E)<=s,j=Math.abs(u-w)<=i;a.done=b&&j}return a.value=a.done?u:w,a},"next"),toString:o(()=>{const P=Math.min(Ki(V),be),w=Wi(E=>V.next(P*E).value,P,30);return P+"ms "+w},"toString")};return V}o(So,"spring");function Cs({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:u,min:a,max:l,restDelta:c=.5,restSpeed:h}){const f=t[0],d={done:!1,value:f},p=o(b=>a!==void 0&&b<a||l!==void 0&&b>l,"isOutOfBounds"),m=o(b=>a===void 0?l:l===void 0||Math.abs(a-b)<Math.abs(l-b)?a:l,"nearestBoundary");let y=n*e;const g=f+y,v=u===void 0?g:u(g);v!==g&&(y=v-f);const x=o(b=>-y*Math.exp(-b/s),"calcDelta"),S=o(b=>v+x(b),"calcLatest"),V=o(b=>{const j=x(b),N=S(b);d.done=Math.abs(j)<=c,d.value=d.done?v:N},"applyFriction");let P,w;const E=o(b=>{p(d.value)&&(P=b,w=So({keyframes:[d.value,m(d.value)],velocity:Po(S,b,d.value),damping:i,stiffness:r,restDelta:c,restSpeed:h}
1))},"checkCatchBoundary");return E(0),{calculatedDuration:null,next:o(b=>{let j=!1;return!w&&P===void 0&&(j=!0,V(b),E(b)),P!==void 0&&b>=P?w.next(b-P):(!j&&V(b),d)},"next")}}o(Cs,"inertia");const Ja=Bt(.42,0,1,1),Qa=Bt(0,0,.58,1),Ao=Bt(.42,0,.58,1),tl=o(t=>Array.isArray(t)&&typeof t[0]!="number","isEasingArray"),el={linear:I,easeIn:Ja,easeInOut:Ao,easeOut:Qa,circIn:wn,circInOut:io,circOut:so,backIn:bn,backInOut:eo,backOut:to,anticipate:no},Ds=o(t=>{if(Tn(t)){Pi(t.length===4);const[e,n,s,i]=t;return Bt(e,n,s,i)}else if(typeof t=="string")return el[t];return t},"easingDefinitionToFunction");function nl(t,e,n){const s=[],i=n||To,r=t.length-1;for(let u=0;u<r;u++){let a=i(t[u],t[u+1]);if(e){const l=Array.isArray(e)?e[u]||I:e;a=Ft(l,a)}s.push(a)}return s}o(nl,"createMixers");function sl(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const r=t.length;if(Pi(r===e.length),r===1)return()=>e[0];if(r===2&&e[0]===e[1])return()=>e[1];const u=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=nl(e,s,i),l=a.length,c=o(h=>{if(u&&h<t[0])return e[0];let f=0;if(l>1)for(;f<t.length-2&&!(h<t[f+1]);f++);const d=ht(t[f],t[f+1],h);return a[f](d)},"interpolator");return n?h=>c(Y(t[0],t[r-1],h)):c}o(sl,"interpolate");function il(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=ht(0,e,s);t.push(D(n,1,i))}}o(il,"fillOffset");function ol(t){const e=[0];return il(e,t.length-1),e}o(ol,"defaultOffset");function rl(t,e){return t.map(n=>n*e)}o(rl,"convertOffsetToTimes");function al(t,e){return t.map(()=>e||Ao).splice(0,t.length-1)}o(al,"defaultEasing");function Gt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=tl(s)?s.map(Ds):Ds(s),r={done:!1,value:e[0]},u=rl(n&&n.length===e.length?n:ol(e),t),a=sl(u,e,{ease:Array.isArray(i)?i:al(e,i)});return{calculatedDuration:t,next:o(l=>(r.value=a(l),r.done=l>=t,r),"next")}}o(Gt,"keyframes");const ll=o(t=>{const e=o(({timestamp:n})=>t(n),"passTimestamp");return{start:o(()=>C.update(e,!0),"start"),stop:o(()=>Z(e),"stop"),now:o(()=>L.isProcessing?L.timestamp:_.now(),"now")}},"frameloopDriver"),ul={decay:Cs,inertia:Cs,tween:Gt,keyframes:Gt,spring:So},cl=o(t=>t/100,"percentToProgress"),On=class On extends Ht{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:s,element:i,keyframes:r}=this.options,u=(i==null?void 0:i.KeyframeResolver)||Mt,a=o((l,c)=>this.onKeyframesResolved(l,c),"onResolved");this.resolver=new u(r,a,n,s,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:u=0}=this.options,a=xn(n)?n:ul[n]||Gt;let l,c;a!==Gt&&typeof e[0]!="number"&&(l=Ft(cl,To(e[0],e[1])),e=[0,100]);const h=a({...this.options,keyframes:e});r==="mirror"&&(c=a({...this.options,keyframes:[...e].reverse(),velocity:-u})),h.calculatedDuration===null&&(h.calculatedDuration=Ki(h));const{calculatedDuration:f}=h,d=f+i,p=d*(s+1)-i;return{generator:h,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:d,totalDuration:p}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:s}=this;if(!s){const{keyframes:b}=this.options;return{done:!0,value:b[b.length-1]}}const{finalKeyframe:i,generator:r,mirroredGenerator:u,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:h,resolvedDuration:f}=s;if(this.startTime===null)return r.next(0);const{delay:d,repeat:p,repeatType:m,repeatDelay:y,onUpdate:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-h/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const v=this.currentTime-d*(this.speed>=0?1:-1),x=this.speed>=0?v<0:v>h;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let S=this.currentTime,V=r;if(p){const b=Math.min(this.currentTime,h)/f;let j=Math.floor(b),N=b%1;!N&&b>=1&&(N=1),N===1&&j--,j=Math.min(j,p+1),!!(j%2)&&(m==="reverse"?(N=1-N,y&&(N-=y/f)):m==="mirror"&&(V=u)),S=Y(0,1,N)*f}const P=x?{done:!1,value:l[0]}:V.next(S);a&&(P.value=a(P.value));let{done:w}=P;!x&&c!==null&&(w=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&w);return E&&i!==void 0&&(P.value=ie(l,this.options,i)),g&&g(P.value),E&&this.finish(),P}get duration(){const{resolved:e}=this;return e?G(e.calculatedDuration):0}
vendor: 4,514 bytes, line 1
1get time(){return G(this.currentTime)}set time(e){e=X(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=G(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=ll,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=e(r=>this.tick(r))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=s??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}};o(On,"MainThreadAnimation");let Rt=On;const hl=new Set(["opacity","clipPath","filter","transform"]);function fl(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:u="loop",ease:a="easeInOut",times:l}={}){const c={[e]:n};l&&(c.offset=l);const h=_i(a,i);return Array.isArray(h)&&(c.easing=h),t.animate(c,{delay:s,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:r+1,direction:u==="reverse"?"alternate":"normal"})}o(fl,"startWaapiAnimation");const dl=sn(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Yt=10,pl=2e4;function ml(t){return xn(t.type)||t.type==="spring"||!$i(t.ease)}o(ml,"requiresPregeneratedKeyframes");function gl(t,e){const n=new Rt({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:t[0]};const i=[];let r=0;for(;!s.done&&r<pl;)s=n.sample(r),i.push(s.value),r+=Yt;return{times:void 0,keyframes:i,duration:r-Yt,ease:"linear"}}o(gl,"pregenerateKeyframes");const bo={anticipate:no,backInOut:eo,circInOut:io};function yl(t){return t in bo}o(yl,"isUnsupportedEase");const Nn=class Nn extends Ht{constructor(e){super(e);const{name:n,motionValue:s,element:i,keyframes:r}=this.options;this.resolver=new zt(r,(u,a)=>this.onKeyframesResolved(u,a),n,s,i),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:s=300,times:i,ease:r,type:u,motionValue:a,name:l,startTime:c}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof r=="string"&&_t()&&yl(r)&&(r=bo[r]),ml(this.options)){const{onComplete:f,onUpdate:d,motionValue:p,element:m,...y}=this.options,g=gl(e,y);e=g.keyframes,e.length===1&&(e[1]=e[0]),s=g.duration,i=g.times,r=g.ease,u="keyframes"}const h=fl(a.owner.current,l,e,{...this.options,duration:s,times:i,ease:r});return h.startTime=c??this.calcStartTime(),this.pendingTimeline?(ds(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:f}=this.options;a.set(ie(e,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:s,times:i,type:u,ease:r,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return G(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return G(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=X(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return I;const{animation:s}=n;ds(s,e)}return I}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;
1n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:s,duration:i,type:r,ease:u,times:a}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:h,onComplete:f,element:d,...p}=this.options,m=new Rt({...p,keyframes:s,duration:i,type:r,ease:u,times:a,isGenerator:!0}),y=X(this.time);c.setWithVelocity(m.sample(y-Yt).value,m.sample(y).value,Yt)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:s,repeatDelay:i,repeatType:r,damping:u,type:a}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=n.owner.getProps();return dl()&&s&&hl.has(s)&&!l&&!c&&!i&&r!=="mirror"&&u!==0&&a!=="inertia"}};o(Nn,"AcceleratedAnimation");let qt=Nn;const vl={type:"spring",stiffness:500,damping:25,restSpeed:10},xl=o(t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),"criticallyDampedSpring"),Tl={type:"keyframes",duration:.8},Pl={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Sl=o((t,{keyframes:e})=>e.length>2?Tl:it.has(t)?t.startsWith("scale")?xl(e[1]):vl:Pl,"getDefaultTransition");function Al({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:r,repeatType:u,repeatDelay:a,from:l,elapsed:c,...h}){return!!Object.keys(h).length}o(Al,"isTransitionDefined");const Rn=o((t,e,n,s={},i,r)=>u=>{const a=vn(s,t)||{},l=a.delay||s.delay||0;let{elapsed:c=0}=s;c=c-X(l);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:o(d=>{e.set(d),a.onUpdate&&a.onUpdate(d)},"onUpdate"),onComplete:o(()=>{u(),a.onComplete&&a.onComplete()},"onComplete"),name:t,motionValue:e,element:r?void 0:i};Al(a)||(h={...h,...Sl(t,h)}),h.duration&&(h.duration=X(h.duration)),h.repeatDelay&&(h.repeatDelay=X(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let f=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(f=!0)),f&&!r&&e.get()!==void 0){const d=ie(h.keyframes,a);if(d!==void 0)return C.update(()=>{h.onUpdate(d),h.onComplete()}),new Ae([])}return!r&&qt.supports(h)?new qt(h):new Rt(h)},"animateMotionValue");function bl({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}o(bl,"shouldBlockAnimation");function wo(t,e,{delay:n=0,transitionOverride:s,type:i}={}){var r;let{transition:u=t.getDefaultTransition(),transitionEnd:a,...l}=e;s&&(u=s);const c=[],h=i&&t.animationState&&t.animationState.getState()[i];for(const f in l){const d=t.getValue(f,(r=t.latestValues[f])!==null&&r!==void 0?r:null),p=l[f];if(p===void 0||h&&bl(h,f))continue;const m={delay:n,...vn(u||{},f)};let y=!1;if(window.MotionHandoffAnimation){const v=qi(t);if(v){const x=window.MotionHandoffAnimation(v,f,C);x!==null&&(m.startTime=x,y=!0)}}Ce(t,f),d.start(Rn(f,d,p,t.shouldReduceMotion&&Gi.has(f)?{type:!1}:m,t,y));const g=d.animation;g&&c.push(g)}return a&&Promise.all(c).then(()=>{C.update(()=>{a&&na(t,a)})}),c}o(wo,"animateTarget");function Fe(t,e,n={}){var s;const i=se(t,e,n.type==="exit"?(s=t.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:r=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(r=n.transitionOverride);const u=i?()=>Promise.all(wo(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:h=0,staggerChildren:f,staggerDirection:d}=r;return wl(t,e,h+c,f,d,n)}:()=>Promise.resolve(),{when:l}=r;if(l){const[c,h]=l==="beforeChildren"?[u,a]:[a,u];return c().then(()=>h())}else return Promise.all([u(),a(n.delay)])}o(Fe,"animateVariant");function wl(t,e,n=0,s=0,i=1,r){const u=[],a=(t.variantChildren.size-1)*s,l=i===1?(c=0)=>c*s:(c=0)=>a-c*s;return Array.from(t.variantChildren).sort(Vl).forEach((c,h)=>{c.notify("AnimationStart",e),u.push(Fe(c,e,{...r,delay:n+l(h)}).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(u)}o(wl,"animateChildren");function Vl(t,e){return t.sortNodePosition(e)}o(Vl,"sortByTreeOrder");function Cl(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(r=>Fe(t,r,n));s=Promise.all(i)}else if(typeof e=="string")s=Fe(t,e,n);else{const i=typeof e=="function"?se(t,e,n.custom):e;s=Promise.all(wo(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}o(Cl,"animateVisualElement");const Dl=rn.length;function Vo(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Vo(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Dl;n++){const s=rn[n],i=t.props[s];(bt(i)||i===!1)&&(e[s]=i)}return e}o(Vo,"getVariantContext");const Ml=[...on].reverse(),Rl=on.length;function El(t){return e=>Promise.all(e.map(({animation:n,options:s})=>Cl(t,n,s)))}o(El,"animateList");function Ll(t){let e=El(t),n=Ms(),s=!0;const i=o(l=>(c,h)=>{var f;const d=se(t,h,l==="exit"?(f=t.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(d){const{transition:p,transitionEnd:m,...y}=d;c={...c,...y,...m}}return c}
1,"buildResolvedTypeValues");function r(l){e=l(t)}o(r,"setAnimateFunction");function u(l){const{props:c}=t,h=Vo(t.parent)||{},f=[],d=new Set;let p={},m=1/0;for(let g=0;g<Rl;g++){const v=Ml[g],x=n[v],S=c[v]!==void 0?c[v]:h[v],V=bt(S),P=v===l?x.isActive:null;P===!1&&(m=g);let w=S===h[v]&&S!==c[v]&&V;if(w&&s&&t.manuallyAnimateOnMount&&(w=!1),x.protectedKeys={...p},!x.isActive&&P===null||!S&&!x.prevProp||ee(S)||typeof S=="boolean")continue;const E=Bl(x.prevProp,S);let b=E||v===l&&x.isActive&&!w&&V||g>m&&V,j=!1;const N=Array.isArray(S)?S:[S];let ot=N.reduce(i(v),{});P===!1&&(ot={});const{prevResolvedValues:is={}}=x,zo={...is,...ot},os=o(k=>{b=!0,d.has(k)&&(j=!0,d.delete(k)),x.needsAnimating[k]=!0;const H=t.getValue(k);H&&(H.liveStyle=!1)},"markToAnimate");for(const k in zo){const H=ot[k],oe=is[k];if(p.hasOwnProperty(k))continue;let re=!1;Pe(H)&&Pe(oe)?re=!Ui(H,oe):re=H!==oe,re?H!=null?os(k):d.add(k):H!==void 0&&d.has(k)?os(k):x.protectedKeys[k]=!0}x.prevProp=S,x.prevResolvedValues=ot,x.isActive&&(p={...p,...ot}),s&&t.blockInitialAnimation&&(b=!1),b&&(!(w&&E)||j)&&f.push(...N.map(k=>({animation:k,options:{type:v}})))}if(d.size){const g={};d.forEach(v=>{const x=t.getBaseTarget(v),S=t.getValue(v);S&&(S.liveStyle=!0),g[v]=x??null}),f.push({animation:g})}let y=!!f.length;return s&&(c.initial===!1||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(y=!1),s=!1,y?e(f):Promise.resolve()}o(u,"animateChanges");function a(l,c){var h;if(n[l].isActive===c)return Promise.resolve();(h=t.variantChildren)===null||h===void 0||h.forEach(d=>{var p;return(p=d.animationState)===null||p===void 0?void 0:p.setActive(l,c)}),n[l].isActive=c;const f=u(l);for(const d in n)n[d].protectedKeys={};return f}return o(a,"setActive"),{animateChanges:u,setActive:a,setAnimateFunction:r,getState:o(()=>n,"getState"),reset:o(()=>{n=Ms(),s=!0},"reset")}}o(Ll,"createAnimationState");function Bl(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Ui(e,t):!1}o(Bl,"checkVariantsDidChange");function Q(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}o(Q,"createTypeState");function Ms(){return{animate:Q(!0),whileInView:Q(),whileHover:Q(),whileTap:Q(),whileDrag:Q(),whileFocus:Q(),exit:Q()}}o(Ms,"createState");const Un=class Un{constructor(e){this.isMounted=!1,this.node=e}update(){}};o(Un,"Feature");let z=Un;const Kn=class Kn extends z{constructor(e){super(e),e.animationState||(e.animationState=Ll(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();ee(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}};o(Kn,"AnimationFeature");let ke=Kn,Fl=0;const Wn=class Wn extends z{constructor(){super(...arguments),this.id=Fl++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}};o(Wn,"ExitAnimationFeature");let je=Wn;const kl={animation:{Feature:ke},exit:{Feature:je}};function Et(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}o(Et,"addDomEvent");function kt(t){return{point:{x:t.pageX,y:t.pageY}}}o(kt,"extractEventInfo");const jl=o(t=>e=>Pn(e)&&t(e,kt(e)),"addPointerInfo");function Pt(t,e,n,s){return Et(t,e,jl(n),s)}o(Pt,"addPointerEvent");const Rs=o((t,e)=>Math.abs(t-e),"distance");function Il(t,e){const n=Rs(t.x,e.x),s=Rs(t.y,e.y);return Math.sqrt(n**2+s**2)}o(Il,"distance2D");const $n=class $n{constructor(e,n,{transformPagePoint:s,contextWindow:i,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;const f=pe(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,p=Il(f.offset,{x:0,y:0})>=3;if(!d&&!p)return;const{point:m}=f,{timestamp:y}=L;this.history.push({...m,timestamp:y}
1);const{onStart:g,onMove:v}=this.handlers;d||(g&&g(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=de(d,this.transformPagePoint),C.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:p,onSessionEnd:m,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=pe(f.type==="pointercancel"?this.lastMoveEventInfo:de(d,this.transformPagePoint),this.history);this.startEvent&&p&&p(f,g),m&&m(f,g)},!Pn(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=s,this.contextWindow=i||window;const u=kt(e),a=de(u,this.transformPagePoint),{point:l}=a,{timestamp:c}=L;this.history=[{...l,timestamp:c}];const{onSessionStart:h}=n;h&&h(e,pe(a,this.history)),this.removeListeners=Ft(Pt(this.contextWindow,"pointermove",this.handlePointerMove),Pt(this.contextWindow,"pointerup",this.handlePointerUp),Pt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Z(this.updatePoint)}};o($n,"PanSession");let Zt=$n;function de(t,e){return e?{point:e(t.point)}:t}o(de,"transformPoint");function Es(t,e){return{x:t.x-e.x,y:t.y-e.y}}o(Es,"subtractPoint");function pe({point:t},e){return{point:t,delta:Es(t,Co(e)),offset:Es(t,Ol(e)),velocity:Nl(e,.1)}}o(pe,"getPanInfo");function Ol(t){return t[0]}o(Ol,"startDevicePoint");function Co(t){return t[t.length-1]}o(Co,"lastDevicePoint");function Nl(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=Co(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>X(e)));)n--;if(!s)return{x:0,y:0};const r=G(i.timestamp-s.timestamp);if(r===0)return{x:0,y:0};const u={x:(i.x-s.x)/r,y:(i.y-s.y)/r};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}o(Nl,"getVelocity");const Do=1e-4,Ul=1-Do,Kl=1+Do,Mo=.01,Wl=0-Mo,$l=0+Mo;function O(t){return t.max-t.min}o(O,"calcLength");function _l(t,e,n){return Math.abs(t-e)<=n}o(_l,"isNear");function Ls(t,e,n,s=.5){t.origin=s,t.originPoint=D(e.min,e.max,t.origin),t.scale=O(n)/O(e),t.translate=D(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Ul&&t.scale<=Kl||isNaN(t.scale))&&(t.scale=1),(t.translate>=Wl&&t.translate<=$l||isNaN(t.translate))&&(t.translate=0)}o(Ls,"calcAxisDelta");function St(t,e,n,s){Ls(t.x,e.x,n.x,s?s.originX:void 0),Ls(t.y,e.y,n.y,s?s.originY:void 0)}o(St,"calcBoxDelta");function Bs(t,e,n){t.min=n.min+e.min,t.max=t.min+O(e)}o(Bs,"calcRelativeAxis");function zl(t,e,n){Bs(t.x,e.x,n.x),Bs(t.y,e.y,n.y)}o(zl,"calcRelativeBox");function Fs(t,e,n){t.min=e.min-n.min,t.max=t.min+O(e)}o(Fs,"calcRelativeAxisPosition");function At(t,e,n){Fs(t.x,e.x,n.x),Fs(t.y,e.y,n.y)}o(At,"calcRelativePosition");function Hl(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?D(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?D(n,t,s.max):Math.min(t,n)),t}o(Hl,"applyConstraints");function ks(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}o(ks,"calcRelativeAxisConstraints");function Xl(t,{top:e,left:n,bottom:s,right:i}){return{x:ks(t.x,n,i),y:ks(t.y,e,s)}}o(Xl,"calcRelativeConstraints");function js(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}o(js,"calcViewportAxisConstraints");function Gl(t,e){return{x:js(t.x,e.x),y:js(t.y,e.y)}}o(Gl,"calcViewportConstraints");function Yl(t,e){let n=.5;const s=O(t),i=O(e);return i>s?n=ht(e.min,e.max-s,t.min):s>i&&(n=ht(t.min,t.max-i,e.min)),Y(0,1,n)}o(Yl,"calcOrigin");function ql(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}o(ql,"rebaseAxisConstraints");const Ie=.35;function Zl(t=Ie){return t===!1?t=0:t===!0&&(t=Ie),{x:Is(t,"left","right"),y:Is(t,"top","bottom")}}o(Zl,"resolveDragElastic");function Is(t,e,n){return{min:Os(t,e),max:Os(t,n)}}o(Is,"resolveAxisElastic");function Os(t,e){return typeof t=="number"?t:t[e]||0}o(Os,"resolvePointElastic");const Ns=o(()=>({translate:0,scale:1,origin:0,originPoint:0}),"createAxisDelta"),lt=o(()=>({x:Ns(),y:Ns()}),"createDelta"),Us=o(()=>({min:0,max:0}),"createAxis"),R=o(()=>({x:Us(),y:Us()}),"createBox");function K(t){return[t("x"),t("y")]}o(K,"eachAxis");function Ro({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}o(Ro,"convertBoundingBoxToBox");function Jl({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}o(Jl,"convertBoxToBoundingBox");function Ql(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}o(Ql,"transformBoxPoints");function me(t){return t===void 0||t===1}o(me,"isIdentityScale");function Oe({scale:t,scaleX:e,scaleY:n}){return!me(t)||!me(e)||!me(n)}o(Oe,"hasScale");function tt(t){return Oe(t)||Eo(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}o(tt,"hasTransform");function Eo(t){return Ks(t.x)||Ks(t.y)}o(Eo,"has2DTranslate");function Ks(t){return t&&t!=="0%"}o(Ks,"is2DTranslate");function Jt(t,e,n){const s=t-n,i=e*s;return n+i}
vendor: 9,431 bytes, line 1
1o(Jt,"scalePoint");function Ws(t,e,n,s,i){return i!==void 0&&(t=Jt(t,i,s)),Jt(t,n,s)+e}o(Ws,"applyPointDelta");function Ne(t,e=0,n=1,s,i){t.min=Ws(t.min,e,n,s,i),t.max=Ws(t.max,e,n,s,i)}o(Ne,"applyAxisDelta");function Lo(t,{x:e,y:n}){Ne(t.x,e.translate,e.scale,e.originPoint),Ne(t.y,n.translate,n.scale,n.originPoint)}o(Lo,"applyBoxDelta");const $s=.999999999999,_s=1.0000000000001;function tu(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let r,u;for(let a=0;a<i;a++){r=n[a],u=r.projectionDelta;const{visualElement:l}=r.options;l&&l.props.style&&l.props.style.display==="contents"||(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&ct(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),u&&(e.x*=u.x.scale,e.y*=u.y.scale,Lo(t,u)),s&&tt(r.latestValues)&&ct(t,r.latestValues))}e.x<_s&&e.x>$s&&(e.x=1),e.y<_s&&e.y>$s&&(e.y=1)}o(tu,"applyTreeDeltas");function ut(t,e){t.min=t.min+e,t.max=t.max+e}o(ut,"translateAxis");function zs(t,e,n,s,i=.5){const r=D(t.min,t.max,i);Ne(t,e,n,r,s)}o(zs,"transformAxis");function ct(t,e){zs(t.x,e.x,e.scaleX,e.scale,e.originX),zs(t.y,e.y,e.scaleY,e.scale,e.originY)}o(ct,"transformBox");function Bo(t,e){return Ro(Ql(t.getBoundingClientRect(),e))}o(Bo,"measureViewportBox");function eu(t,e,n){const s=Bo(t,n),{scroll:i}=e;return i&&(ut(s.x,i.offset.x),ut(s.y,i.offset.y)),s}o(eu,"measurePageBox");const Fo=o(({current:t})=>t?t.ownerDocument.defaultView:null,"getContextWindow"),nu=new WeakMap,_n=class _n{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=R(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=o(h=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(kt(h).point)},"onSessionStart"),r=o((h,f)=>{const{drag:d,dragPropagation:p,onDragStart:m}=this.getProps();if(d&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Jr(d),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),K(g=>{let v=this.getAxisMotionValue(g).get()||0;if($.test(v)){const{projection:x}=this.visualElement;if(x&&x.layout){const S=x.layout.layoutBox[g];S&&(v=O(S)*(parseFloat(v)/100))}}this.originPoint[g]=v}),m&&C.postRender(()=>m(h,f)),Ce(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},"onStart"),u=o((h,f)=>{const{dragPropagation:d,dragDirectionLock:p,onDirectionLock:m,onDrag:y}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:g}=f;if(p&&this.currentDirection===null){this.currentDirection=su(g),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",f.point,g),this.updateAxis("y",f.point,g),this.visualElement.render(),y&&y(h,f)},"onMove"),a=o((h,f)=>this.stop(h,f),"onSessionEnd"),l=o(()=>K(h=>{var f;return this.getAnimationState(h)==="paused"&&((f=this.getAxisMotionValue(h).animation)===null||f===void 0?void 0:f.play())}),"resumeAnimation"),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Zt(e,{onSessionStart:i,onStart:r,onMove:u,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:Fo(this.visualElement)})}stop(e,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:r}=this.getProps();r&&C.postRender(()=>r(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!Ot(e,i,this.currentDirection))return;const r=this.getAxisMotionValue(e);let u=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(u=Hl(u,this.constraints[e],this.elastic[e])),r.set(u)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:s}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,r=this.constraints;n&&rt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Xl(i.layoutBox,n):this.constraints=!1,this.elastic=Zl(s),r!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&K(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=ql(i.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!rt(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const r=eu(s,i.root,this.visualElement.getTransformPagePoint());let u=Gl(i.layout.layoutBox,r);if(n){const a=n(Jl(u));this.hasMutatedConstraints=!!a,a&&(u=Ro(a))}return u}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:r,dragSnapToOrigin:u,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=K(h=>{if(!Ot(h,n,this.currentDirection))return;let f=l&&l[h]||{};u&&(f={min:0,max:0});const d=i?200:1e6,p=i?40:1e7,m={type:"inertia",velocity:s?e[h]:0,bounceStiffness:d,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...r,...f};return this.startAxisValueAnimation(h,m)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return Ce(this.visualElement,e),s.start(Rn(e,s,0,n,this.visualElement,!1))}stopAnimation(){K(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){K(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){K(n=>{const{drag:s}=this.getProps();if(!Ot(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,r=this.getAxisMotionValue(n);if(i&&i.layout){const{min:u,max:a}=i.layout.layoutBox[n];r.set(e[n]-D(u,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!rt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};K(u=>{const a=this.getAxisMotionValue(u);if(a&&this.constraints!==!1){const l=a.get();i[u]=Yl({min:l,max:l},this.constraints[u])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),K(u=>{if(!Ot(u,e,null))return;const a=this.getAxisMotionValue(u),{min:l,max:c}=this.constraints[u];a.set(D(l,c,i[u]))})}addListeners(){if(!this.visualElement.current)return;nu.set(this.visualElement,this);const e=this.visualElement.current,n=Pt(e,"pointerdown",l=>{const{drag:c,dragListener:h=!0}=this.getProps();c&&h&&this.start(l)}),s=o(()=>{const{dragConstraints:l}=this.getProps();rt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},"measureDragConstraints"),{projection:i}=this.visualElement,r=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),C.read(s);const u=Et(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(K(h=>{const f=this.getAxisMotionValue(h);f&&(this.originPoint[h]+=l[h].translate,f.set(f.get()+l[h].translate))}),this.visualElement.render())}));return()=>{u(),n(),r(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:u=Ie,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:r,dragElastic:u,dragMomentum:a}}};o(_n,"VisualElementDragControls");let Ue=_n;function Ot(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}o(Ot,"shouldDrag");function su(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}o(su,"getCurrentDirection");const zn=class zn extends z{constructor(e){super(e),this.removeGroupControls=I,this.removeListeners=I,this.controls=new Ue(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||I}unmount(){this.removeGroupControls(),this.removeListeners()}};o(zn,"DragGesture");let Ke=zn;const Hs=o(t=>(e,n)=>{t&&C.postRender(()=>t(e,n))},"asyncHandler"),Hn=class Hn extends z{constructor(){super(...arguments),this.removePointerDownListener=I}onPointerDown(e){this.session=new Zt(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Fo(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:Hs(e),onStart:Hs(n),onMove:s,onEnd:o((r,u)=>{delete this.session,i&&C.postRender(()=>i(r,u))},"onEnd")}
1}mount(){this.removePointerDownListener=Pt(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};o(Hn,"PanGesture");let We=Hn;const Kt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Xs(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}o(Xs,"pixelsToPercent");const gt={correct:o((t,e)=>{if(!e.target)return t;if(typeof t=="string")if(T.test(t))t=parseFloat(t);else return t;const n=Xs(t,e.target.x),s=Xs(t,e.target.y);return`${n}% ${s}%`},"correct")},iu={correct:o((t,{treeScale:e,projectionDelta:n})=>{const s=t,i=J.parse(t);if(i.length>5)return s;const r=J.createTransformer(t),u=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+u]/=a,i[1+u]/=l;const c=D(a,l,.5);return typeof i[2+u]=="number"&&(i[2+u]/=c),typeof i[3+u]=="number"&&(i[3+u]/=c),r(i)},"correct")},Xn=class Xn extends A.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:r}=e;Br(ou),r&&(n.group&&n.group.add(r),s&&s.register&&i&&s.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:o(()=>this.safeToRemove(),"onExitComplete")})),Kt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:r}=this.props,u=s.projection;return u&&(u.isPresent=r,i||e.layoutDependency!==n||n===void 0?u.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?u.promote():u.relegate()||C.postRender(()=>{const a=u.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),ln.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}};o(Xn,"MeasureLayoutWithContext");let $e=Xn;function ko(t){const[e,n]=Go(),s=A.useContext(xi);return Te.jsx($e,{...t,layoutGroup:s,switchLayoutGroup:A.useContext(Ci),isPresent:e,safeToRemove:n})}o(ko,"MeasureLayout");const ou={borderRadius:{...gt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:gt,borderTopRightRadius:gt,borderBottomLeftRadius:gt,borderBottomRightRadius:gt,boxShadow:iu};function ru(t,e,n){const s=F(t)?t:Ct(t);return s.start(Rn("",s,e,n)),s.animation}o(ru,"animateSingleValue");function au(t){return t instanceof SVGElement&&t.tagName!=="svg"}o(au,"isSVGElement");const lu=o((t,e)=>t.depth-e.depth,"compareByDepth"),Gn=class Gn{constructor(){this.children=[],this.isDirty=!1}add(e){Sn(this.children,e),this.isDirty=!0}remove(e){An(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(lu),this.isDirty=!1,this.children.forEach(e)}};o(Gn,"FlatTree");let _e=Gn;function uu(t,e){const n=_.now(),s=o(({timestamp:i})=>{const r=i-n;r>=e&&(Z(s),t(r-e))},"checkElapsed");return C.read(s,!0),()=>Z(s)}o(uu,"delay");const jo=["TopLeft","TopRight","BottomLeft","BottomRight"],cu=jo.length,Gs=o(t=>typeof t=="string"?parseFloat(t):t,"asNumber"),Ys=o(t=>typeof t=="number"||T.test(t),"isPx");function hu(t,e,n,s,i,r){i?(t.opacity=D(0,n.opacity!==void 0?n.opacity:1,fu(s)),t.opacityExit=D(e.opacity!==void 0?e.opacity:1,0,du(s))):r&&(t.opacity=D(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let u=0;u<cu;u++){const a=`border${jo[u]}Radius`;let l=qs(e,a),c=qs(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Ys(l)===Ys(c)?(t[a]=Math.max(D(Gs(l),Gs(c),s),0),($.test(c)||$.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=D(e.rotate||0,n.rotate||0,s))}o(hu,"mixValues");function qs(t,e){return t[e]!==void 0?t[e]:t.borderRadius}o(qs,"getRadius");const fu=Io(0,.5,so),du=Io(.5,.95,I);function Io(t,e,n){return s=>s<t?0:s>e?1:n(ht(t,e,s))}o(Io,"compress");function Zs(t,e){t.min=e.min,t.max=e.max}o(Zs,"copyAxisInto");function U(t,e){Zs(t.x,e.x),Zs(t.y,e.y)}o(U,"copyBoxInto");function Js(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}o(Js,"copyAxisDeltaInto");function Qs(t,e,n,s,i){return t-=e,t=Jt(t,1/n,s),i!==void 0&&(t=Jt(t,1/i,s)),t}o(Qs,"removePointDelta");function pu(t,e=0,n=1,s=.5,i,r=t,u=t){if($.test(e)&&(e=parseFloat(e),e=D(u.min,u.max,e/100)-u.min),typeof e!="number")return;let a=D(r.min,r.max,s);t===r&&(a-=e),t.min=Qs(t.min,e,n,a,i),t.max=Qs(t.max,e,n,a,i)}o(pu,"removeAxisDelta");function ti(t,e,[n,s,i],r,u){pu(t,e[n],e[s],e[i],e.scale,r,u)}o(ti,"removeAxisTransforms");const mu=["x","scaleX","originX"],gu=["y","scaleY","originY"];function ei(t,e,n,s){ti(t.x,e,mu,n?n.x:void 0,s?s.x:void 0),ti(t.y,e,gu,n?n.y:void 0,s?s.y:void 0)}o(ei,"removeBoxTransforms");function ni(t){return t.translate===0&&t.scale===1}o(ni,"isAxisDeltaZero");function Oo(t){return ni(t.x)&&ni(t.y)}o(Oo,"isDeltaZero");function si(t,e){return t.min===e.min&&t.max===e.max}o(si,"axisEquals");function yu(t,e){return si(t.x,e.x)&&si(t.y,e.y)}o(yu,"boxEquals");function ii(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}o(ii,"axisEqualsRounded");function No(t,e){return ii(t.x,e.x)&&ii(t.y,e.y)}o(No,"boxEqualsRounded");function oi(t){return O(t.x)/O(t.y)}o(oi,"aspectRatio");function ri(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}o(ri,"axisDeltaEquals");const Yn=class Yn{constructor(){this.members=[]}add(e){Sn(this.members,e),e.scheduleRender()}remove(e){if(An(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const r=this.members[i];if(r.isPresent!==!1){s=r;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&s.hide()}}
vendor: 20,309 bytes, line 1
1exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};o(Yn,"NodeStack");let ze=Yn;function vu(t,e,n){let s="";const i=t.x.translate/e.x,r=t.y.translate/e.y,u=(n==null?void 0:n.z)||0;if((i||r||u)&&(s=`translate3d(${i}px, ${r}px, ${u}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:c,rotate:h,rotateX:f,rotateY:d,skewX:p,skewY:m}=n;c&&(s=`perspective(${c}px) ${s}`),h&&(s+=`rotate(${h}deg) `),f&&(s+=`rotateX(${f}deg) `),d&&(s+=`rotateY(${d}deg) `),p&&(s+=`skewX(${p}deg) `),m&&(s+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}o(vu,"buildProjectionTransform");const et={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},xt=typeof window<"u"&&window.MotionDebug!==void 0,ge=["","X","Y","Z"],xu={visibility:"hidden"},ai=1e3;let Tu=0;function ye(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}o(ye,"resetDistortingTransform");function Uo(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=qi(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",C,!(i||r))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&Uo(s)}o(Uo,"cancelTreeOptimisedTransformAnimations");function Ko({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){var r;return r=class{constructor(a={},l=e==null?void 0:e()){this.id=Tu++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,xt&&(et.totalNodes=et.resolvedTargetDeltas=et.recalculatedProjection=0),this.nodes.forEach(Au),this.nodes.forEach(Du),this.nodes.forEach(Mu),this.nodes.forEach(bu),xt&&window.MotionDebug.record(et)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new _e)}addEventListener(a,l){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Vt),this.eventHandlers.get(a).add(l)}notifyListeners(a,...l){const c=this.eventHandlers.get(a);c&&c.notify(...l)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=au(a),this.instance=a;const{layoutId:c,layout:h,visualElement:f}=this.options;if(f&&!f.current&&f.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(h||c)&&(this.isLayoutDirty=!0),t){let d;const p=o(()=>this.root.updateBlockedByResize=!1,"resizeUnblockUpdate");t(a,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=uu(p,250),Kt.hasAnimatedSinceResize&&(Kt.hasAnimatedSinceResize=!1,this.nodes.forEach(ui))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&f&&(c||h)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:p,hasRelativeTargetChanged:m,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||f.getDefaultTransition()||Fu,{onLayoutAnimationStart:v,onLayoutAnimationComplete:x}=f.getProps(),S=!this.targetLayout||!No(this.targetLayout,y)||m,V=!p&&m;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||V||p&&(S||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,V);const P={...vn(g,"layout"),onPlay:v,onComplete:x};(f.shouldReduceMotion||this.options.layoutRoot)&&(P.delay=0,P.type=!1),this.startAnimation(P)}else p||ui(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Z(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ru),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Uo(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){const d=this.path[f];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(li);return}this.isUpdating||this.nodes.forEach(Vu),this.isUpdating=!1,this.nodes.forEach(Cu),this.nodes.forEach(Pu),this.nodes.forEach(Su),this.clearAllSnapshots();const l=_.now();L.delta=Y(0,1e3/60,l-L.timestamp),L.timestamp=l,L.isProcessing=!0,ae.update.process(L),ae.preRender.process(L),ae.render.process(L),L.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ln.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(wu),this.sharedNodes.forEach(Eu)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,C.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){C.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=R(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(l=!1),l){const c=s(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!Oo(this.projectionDelta),c=this.getTransformTemplate(),h=c?c(this.latestValues,""):void 0,f=h!==this.prevTransformTemplateValue;a&&(l||tt(this.latestValues)||f)&&(i(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return a&&(c=this.removeTransform(c)),ku(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:l}=this.options;if(!l)return R();const c=l.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(ju))){const{scroll:f}=this.root;f&&(ut(c.x,f.offset.x),ut(c.y,f.offset.y))}return c}removeElementScroll(a){var l;const c=R();if(U(c,a),!((l=this.scroll)===null||l===void 0)&&l.wasRoot)return c;for(let h=0;h<this.path.length;h++){const f=this.path[h],{scroll:d,options:p}=f;f!==this.root&&d&&p.layoutScroll&&(d.wasRoot&&U(c,a),ut(c.x,d.offset.x),ut(c.y,d.offset.y))}return c}applyTransform(a,l=!1){const c=R();U(c,a);for(let h=0;h<this.path.length;h++){const f=this.path[h];!l&&f.options.layoutScroll&&f.scroll&&f!==f.root&&ct(c,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),tt(f.latestValues)&&ct(c,f.latestValues)}return tt(this.latestValues)&&ct(c,this.latestValues),c}removeTransform(a){const l=R();U(l,a);for(let c=0;c<this.path.length;c++){const h=this.path[c];if(!h.instance||!tt(h.latestValues))continue;Oe(h.latestValues)&&h.updateSnapshot();const f=R(),d=h.measurePageBox();U(f,d),ei(l,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,f)}return tt(this.latestValues)&&ei(l,this.latestValues),l}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==L.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var l;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const h=!!this.resumingFrom||this!==c;if(!(a||h&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:p}=this.options;if(!(!this.layout||!(d||p))){if(this.resolvedRelativeTargetAt=L.timestamp,!this.targetDelta&&!this.relativeTarget){const m=this.getClosestProjectingParent();m&&m.layout&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=R(),this.relativeTargetOrigin=R(),At(this.relativeTargetOrigin,this.layout.layoutBox,m.layout.layoutBox),U(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=R(),this.targetWithTransforms=R()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),zl(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):U(this.target,this.layout.layoutBox),Lo(this.target,this.targetDelta)):U(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const m=this.getClosestProjectingParent();m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=R(),this.relativeTargetOrigin=R(),At(this.relativeTargetOrigin,this.target,m.target),U(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}xt&&et.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Oe(this.parent.latestValues)||Eo(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let h=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(h=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(h=!1),this.resolvedRelativeTargetAt===L.timestamp&&(h=!1),h)return;const{layout:f,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||d))return;U(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,m=this.treeScale.y;tu(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=R());const{target:y}=l;if(!y){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Js(this.prevProjectionDelta.x,this.projectionDelta.x),Js(this.prevProjectionDelta.y,this.projectionDelta.y)),St(this.projectionDelta,this.layoutCorrected,y,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==m||!ri(this.projectionDelta.x,this.prevProjectionDelta.x)||!ri(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y)),xt&&et.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var l;if((l=this.options.visualElement)===null||l===void 0||l.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=lt(),this.projectionDelta=lt(),this.projectionDeltaWithTransform=lt()}setAnimationOrigin(a,l=!1){const c=this.snapshot,h=c?c.latestValues:{},f={...this.latestValues},d=lt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const p=R(),m=c?c.source:void 0,y=this.layout?this.layout.source:void 0,g=m!==y,v=this.getStack(),x=!v||v.members.length<=1,S=!!(g&&!x&&this.options.crossfade===!0&&!this.path.some(Bu));this.animationProgress=0;let V;this.mixTargetDelta=P=>{const w=P/1e3;ci(d.x,a.x,w),ci(d.y,a.y,w),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(At(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Lu(this.relativeTarget,this.relativeTargetOrigin,p,w),V&&yu(this.relativeTarget,V)&&(this.isProjectionDirty=!1),V||(V=R()),U(V,this.relativeTarget)),g&&(this.animationValues=f,hu(f,h,this.latestValues,w,S,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Z(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=C.update(()=>{Kt.hasAnimatedSinceResize=!0,this.currentAnimation=ru(0,ai,{...a,onUpdate:o(l=>{this.mixTargetDelta(l),a.onUpdate&&a.onUpdate(l)},"onUpdate"),onComplete:o(()=>{a.onComplete&&a.onComplete(),this.completeAnimation()},"onComplete")}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ai),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:l,target:c,layout:h,latestValues:f}=a;if(!(!l||!c||!h)){if(this!==a&&this.layout&&h&&Wo(this.options.animationType,this.layout.layoutBox,h.layoutBox)){c=this.target||R();const d=O(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+d;const p=O(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+p}U(l,c),ct(l,f),St(this.projectionDeltaWithTransform,this.layoutCorrected,l,f)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new ze),this.sharedNodes.get(a).add(l);const h=l.options.initialPromotionConfig;l.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(l):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:l}=this.options;return l?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:l}=this.options;return l?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:l,preserveFollowOpacity:c}={}){const h=this.getStack();h&&h.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let l=!1;const{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const h={};c.z&&ye("z",a,h,this.animationValues);for(let f=0;f<ge.length;f++)ye(`rotate${ge[f]}`,a,h,this.animationValues),ye(`skew${ge[f]}`,a,h,this.animationValues);a.render();for(const f in h)a.setStaticValue(f,h[f]),this.animationValues&&(this.animationValues[f]=h[f]);a.scheduleRender()}getProjectionStyles(a){var l,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return xu;const h={visibility:""},f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,h.opacity="",h.pointerEvents=Nt(a==null?void 0:a.pointerEvents)||"",h.transform=f?f(this.latestValues,""):"none",h;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=Nt(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!tt(this.latestValues)&&(g.transform=f?f({},""):"none",this.hasProjected=!1),g}const p=d.animationValues||d.latestValues;this.applyTransformsToTarget(),h.transform=vu(this.projectionDeltaWithTransform,this.treeScale,p),f&&(h.transform=f(p,h.transform));const{x:m,y}=this.projectionDelta;h.transformOrigin=`${m.origin*100}% ${y.origin*100}% 0`,d.animationValues?h.opacity=d===this?(c=(l=p.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:h.opacity=d===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const g in $t){if(p[g]===void 0)continue;const{correct:v,applyTo:x}=$t[g],S=h.transform==="none"?p[g]:v(p[g],d);if(x){const V=x.length;for(let P=0;P<V;P++)h[x[P]]=S}else h[g]=S}return this.options.layoutId&&(h.pointerEvents=d===this?Nt(a==null?void 0:a.pointerEvents)||"":"none"),h}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var l;return(l=a.currentAnimation)===null||l===void 0?void 0:l.stop()}
1),this.root.nodes.forEach(li),this.root.sharedNodes.clear()}},o(r,"ProjectionNode"),r}o(Ko,"createProjectionNode");function Pu(t){t.updateLayout()}o(Pu,"updateLayout");function Su(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=t.layout,{animationType:r}=t.options,u=n.source!==t.layout.source;r==="size"?K(f=>{const d=u?n.measuredBox[f]:n.layoutBox[f],p=O(d);d.min=s[f].min,d.max=d.min+p}):Wo(r,n.layoutBox,s)&&K(f=>{const d=u?n.measuredBox[f]:n.layoutBox[f],p=O(s[f]);d.max=d.min+p,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[f].max=t.relativeTarget[f].min+p)});const a=lt();St(a,s,n.layoutBox);const l=lt();u?St(l,t.applyTransform(i,!0),n.measuredBox):St(l,s,n.layoutBox);const c=!Oo(a);let h=!1;if(!t.resumeFrom){const f=t.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:p}=f;if(d&&p){const m=R();At(m,n.layoutBox,d.layoutBox);const y=R();At(y,s,p.layoutBox),No(m,y)||(h=!0),f.options.layoutRoot&&(t.relativeTarget=y,t.relativeTargetOrigin=m,t.relativeParent=f)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:h})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}o(Su,"notifyLayoutUpdate");function Au(t){xt&&et.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))}o(Au,"propagateDirtyNodes");function bu(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}o(bu,"cleanDirtyNodes");function wu(t){t.clearSnapshot()}o(wu,"clearSnapshot");function li(t){t.clearMeasurements()}o(li,"clearMeasurements");function Vu(t){t.isLayoutDirty=!1}o(Vu,"clearIsLayoutDirty");function Cu(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}o(Cu,"resetTransformStyle");function ui(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}o(ui,"finishAnimation");function Du(t){t.resolveTargetDelta()}o(Du,"resolveTargetDelta");function Mu(t){t.calcProjection()}o(Mu,"calcProjection");function Ru(t){t.resetSkewAndRotation()}o(Ru,"resetSkewAndRotation");function Eu(t){t.removeLeadSnapshot()}o(Eu,"removeLeadSnapshots");function ci(t,e,n){t.translate=D(e.translate,0,n),t.scale=D(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}o(ci,"mixAxisDelta");function hi(t,e,n,s){t.min=D(e.min,n.min,s),t.max=D(e.max,n.max,s)}o(hi,"mixAxis");function Lu(t,e,n,s){hi(t.x,e.x,n.x,s),hi(t.y,e.y,n.y,s)}o(Lu,"mixBox");function Bu(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}o(Bu,"hasOpacityCrossfade");const Fu={duration:.45,ease:[.4,0,.1,1]},fi=o(t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),"userAgentContains"),di=fi("applewebkit/")&&!fi("chrome/")?Math.round:I;function pi(t){t.min=di(t.min),t.max=di(t.max)}o(pi,"roundAxis");function ku(t){pi(t.x),pi(t.y)}o(ku,"roundBox");function Wo(t,e,n){return t==="position"||t==="preserve-aspect"&&!_l(oi(e),oi(n),.2)}o(Wo,"shouldAnimatePositionOnly");function ju(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}o(ju,"checkNodeWasScrollRoot");const Iu=Ko({attachResizeListener:o((t,e)=>Et(t,"resize",e),"attachResizeListener"),measureScroll:o(()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),"measureScroll"),checkIsScrollRoot:o(()=>!0,"checkIsScrollRoot")}),ve={current:void 0},$o=Ko({measureScroll:o(t=>({x:t.scrollLeft,y:t.scrollTop}),"measureScroll"),defaultParent:o(()=>{if(!ve.current){const t=new Iu({});t.mount(window),t.setOptions({layoutScroll:!0}),ve.current=t}return ve.current},"defaultParent"),resetTransform:o((t,e)=>{t.style.transform=e!==void 0?e:"none"},"resetTransform"),checkIsScrollRoot:o(t=>window.getComputedStyle(t).position==="fixed","checkIsScrollRoot")}),Ou={pan:{Feature:We},drag:{Feature:Ke,ProjectionNode:$o,MeasureLayout:ko}};function mi(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,r=s[i];r&&C.postRender(()=>
1r(e,kt(e)))}o(mi,"handleHoverEvent");const qn=class qn extends z{mount(){const{current:e}=this.node;e&&(this.unmount=Xr(e,n=>(mi(this.node,n,"Start"),s=>mi(this.node,s,"End"))))}unmount(){}};o(qn,"HoverGesture");let He=qn;const Zn=class Zn extends z{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ft(Et(this.node.current,"focus",()=>this.onFocus()),Et(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};o(Zn,"FocusGesture");let Xe=Zn;function gi(t,e,n){const{props:s}=t;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),r=s[i];r&&C.postRender(()=>r(e,kt(e)))}o(gi,"handlePressEvent");const Jn=class Jn extends z{mount(){const{current:e}=this.node;e&&(this.unmount=Zr(e,n=>(gi(this.node,n,"Start"),(s,{success:i})=>gi(this.node,s,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};o(Jn,"PressGesture");let Ge=Jn;const Ye=new WeakMap,xe=new WeakMap,Nu=o(t=>{const e=Ye.get(t.target);e&&e(t)},"fireObserverCallback"),Uu=o(t=>{t.forEach(Nu)},"fireAllObserverCallbacks");function Ku({root:t,...e}){const n=t||document;xe.has(n)||xe.set(n,{});const s=xe.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(Uu,{root:t,...e})),s[i]}o(Ku,"initIntersectionObserver");function Wu(t,e,n){const s=Ku(e);return Ye.set(t,n),s.observe(t),()=>{Ye.delete(t),s.unobserve(t)}}o(Wu,"observeIntersection");const $u={some:0,all:1},Qn=class Qn extends z{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:r}=e,u={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:$u[i]},a=o(l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,r&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:h,onViewportLeave:f}=this.node.getProps(),d=c?h:f;d&&d(l)},"onIntersectionUpdate");return Wu(this.node.current,u,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(_u(e,n))&&this.startObserver()}unmount(){}};o(Qn,"InViewFeature");let qe=Qn;function _u({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}o(_u,"hasViewportOptionChanged");const zu={inView:{Feature:qe},tap:{Feature:Ge},focus:{Feature:Xe},hover:{Feature:He}},Hu={layout:{ProjectionNode:$o,MeasureLayout:ko}},Ze={current:null},_o={current:!1};function Xu(){if(_o.current=!0,!!nn)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=o(()=>Ze.current=t.matches,"setReducedMotionPreferences");t.addListener(e),e()}else Ze.current=!1}o(Xu,"initPrefersReducedMotion");const Gu=[...vo,B,J],Yu=o(t=>Gu.find(yo(t)),"findValueType"),yi=new WeakMap;function qu(t,e,n){for(const s in e){const i=e[s],r=n[s];if(F(i))t.addValue(s,i);else if(F(r))t.addValue(s,Ct(i,{owner:t}));else if(r!==i)if(t.hasValue(s)){const u=t.getValue(s);u.liveStyle===!0?u.jump(i):u.hasAnimated||u.set(i)}else{const u=t.getStaticValue(s);t.addValue(s,Ct(u!==void 0?u:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}o(qu,"updateMotionValuesFromProps");const vi=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ts=class ts{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:r,visualState:u},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Mt,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=_.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,C.render(this.render,!1,!0))};const{latestValues:l,renderState:c,onUpdate:h}=u;this.onUpdate=h,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=ne(n),this.isVariantNode=wi(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:f,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in d){const m=d[p];l[p]!==void 0&&F(m)&&m.set(l[p],!1)}}mount(e){this.current=e,yi.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
vendor: 5,429 bytes, line 1
1h((n,s)=>this.bindToMotionValue(s,n)),_o.current||Xu(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ze.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){yi.delete(this.current),this.projection&&this.projection.unmount(),Z(this.notifyUpdate),Z(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=it.has(e),i=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&C.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),r=n.on("renderRequest",this.scheduleRender);let u;window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),r(),u&&u(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in ft){const n=ft[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):R()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<vi.length;s++){const i=vi[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,u=e[r];u&&(this.propEventSubscriptions[i]=this.on(i,u))}this.prevMotionValues=qu(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=Ct(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){var s;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(s=this.getBaseTargetFromProps(this.props,e))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(mo(i)||oo(i))?i=parseFloat(i):!Yu(i)&&J.test(n)&&(i=ho(e,n)),this.setBaseTarget(e,F(i)?i.get():i)),F(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:s}=this.props;let i;if(typeof s=="string"||typeof s=="object"){const u=cn(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);u&&(i=u[e])}if(s&&i!==void 0)return i;const r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!F(r)?r:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Vt),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}};o(ts,"VisualElement");let Je=ts;const es=class es extends Je{constructor(){super(...arguments),this.KeyframeResolver=zt}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;F(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};o(es,"DOMVisualElement");let Qt=es;function Zu(t){return window.getComputedStyle(t)}o(Zu,"getComputedStyle$1");const ns=class ns extends Qt{constructor(){super(...arguments),this.type="html",this.renderInstance=Fi}readValueFromInstance(e,n){if(it.has(n)){const s=Dn(n);return s&&s.default||0}else{const s=Zu(e),i=(Ei(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}
1){return Bo(e,n)}build(e,n,s){dn(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return yn(e,n,s)}};o(ns,"HTMLVisualElement");let Qe=ns;const ss=class ss extends Qt{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=R}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(it.has(n)){const s=Dn(n);return s&&s.default||0}return n=ki.has(n)?n:an(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return Oi(e,n,s)}build(e,n,s){pn(e,n,this.isSVGTag,s.transformTemplate)}renderInstance(e,n,s,i){ji(e,n,s,i)}mount(e){this.isSVGTag=gn(e.tagName),super.mount(e)}};o(ss,"SVGVisualElement");let tn=ss;const Ju=o((t,e)=>un(t)?new tn(e):new Qe(e,{allowProjection:t!==A.Fragment}),"createDomVisualElement"),Qu=Wr({...kl,...zu,...Ou,...Hu},Ju),oc=sr(Qu);export{oc as m};
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.