PageSourceSearch

https://app.thrivestack.ai/1029.c4bbb4220cde8cd19a86.js

js thrivestack.ai collected 2026-09-25 04:53:45 UTC 172,352 bytes, 3 lines download raw bytes

1/*! For license information please see 1029.c4bbb4220cde8cd19a86.js.LICENSE.txt */
2"use strict";(self.webpackChunkplg_crm=self.webpackChunkplg_crm||[]).push([[1029],{31029(t,e,n){n.r(e),n.d(e,{AnimatePresence:()=>P,AnimateSharedLayout:()=>fd,AsyncMotionValueAnimation:()=>Yo,DOMKeyframesResolver:()=>di,DOMVisualElement:()=>pi,DeprecatedLayoutGroupContext:()=>E,DocumentProjectionNode:()=>yl,DragControls:()=>Uh,Feature:()=>Ui,FlatTree:()=>$a,GroupAnimation:()=>$l,GroupAnimationWithThen:()=>Hl,HTMLProjectionNode:()=>xl,HTMLVisualElement:()=>Fi,JSAnimation:()=>So,KeyframeResolver:()=>Wt,LayoutAnimationBuilder:()=>cc,LayoutGroup:()=>W,LayoutGroupContext:()=>r,LazyMotion:()=>Ke,MotionConfig:()=>tn,MotionConfigContext:()=>p,MotionContext:()=>en,MotionGlobalConfig:()=>M,MotionValue:()=>tt,NativeAnimation:()=>Oo,NativeAnimationExtended:()=>Uo,NativeAnimationWrapper:()=>Xl,NodeStack:()=>Wa,ObjectVisualElement:()=>ac,PopChild:()=>y,PresenceChild:()=>v,PresenceContext:()=>c,Reorder:()=>i,SVGVisualElement:()=>yi,SubscriptionManager:()=>Y,SwitchLayoutGroupContext:()=>qn,ViewTransitionBuilder:()=>oc,VisualElement:()=>$e,WillChangeMotionValue:()=>eh,acceleratedValues:()=>Ql,activeAnimations:()=>es,addAttrValue:()=>iu,addDomEvent:()=>Lr,addPointerEvent:()=>Or,addPointerInfo:()=>Ir,addScaleCorrector:()=>gn,addStyleValue:()=>lu,addUniqueItem:()=>z,addValueToWillChange:()=>_i,alpha:()=>xt,analyseComplexValue:()=>te,animate:()=>kh,animateMini:()=>Bh,animateMotionValue:()=>tr,animateSingleValue:()=>la,animateTarget:()=>nr,animateValue:()=>bo,animateVariant:()=>sr,animateView:()=>rc,animateVisualElement:()=>or,animationControls:()=>dh,animationMapKey:()=>Kl,animations:()=>gr,anticipate:()=>eo,applyAxisDelta:()=>Vi,applyBoxDelta:()=>Ci,applyGeneratorOptions:()=>Io,applyPointDelta:()=>Mi,applyPxDefaults:()=>ql,applyTreeDeltas:()=>Di,aspectRatio:()=>Oa,attachFollow:()=>Iu,attachSpring:()=>$u,attrEffect:()=>su,axisDeltaEquals:()=>Fa,axisEquals:()=>La,axisEqualsRounded:()=>ja,backIn:()=>Qs,backInOut:()=>to,backOut:()=>Js,boxEquals:()=>Ba,boxEqualsRounded:()=>Ia,buildHTMLStyles:()=>Sn,buildProjectionTransform:()=>Ua,buildSVGAttrs:()=>kn,buildSVGPath:()=>Cn,buildTransform:()=>Tn,calcAxisDelta:()=>br,calcBoxDelta:()=>Pr,calcChildStagger:()=>ir,calcGeneratorDuration:()=>ws,calcLength:()=>Tr,calcRelativeAxis:()=>Er,calcRelativeAxisPosition:()=>Mr,calcRelativeBox:()=>Ar,calcRelativePosition:()=>Vr,camelCaseAttributes:()=>mi,camelToDash:()=>Kn,cancelFrame:()=>D,cancelMicrotask:()=>G,cancelSync:()=>yc,checkVariantsDidChange:()=>dr,circIn:()=>no,circInOut:()=>so,circOut:()=>io,clamp:()=>yt,cleanDirtyNodes:()=>Ja,collectMotionValues:()=>Q,color:()=>_t,compareByDepth:()=>Na,complex:()=>se,containsCSSVariable:()=>cn,convertBoundingBoxToBox:()=>vi,convertBoxToBoundingBox:()=>xi,convertOffsetToTimes:()=>po,copyAxisDeltaInto:()=>Pa,copyAxisInto:()=>Sa,copyBoxInto:()=>ba,correctBorderRadius:()=>dn,correctBoxShadow:()=>mn,createAnimationState:()=>hr,createAxis:()=>Se,createAxisDelta:()=>we,createBox:()=>be,createDelta:()=>Te,createGeneratorEasing:()=>Ts,createProjectionNode:()=>Ga,createRenderBatcher:()=>R,createScopedAnimate:()=>Rh,cubicBezier:()=>Xs,cubicBezierAsString:()=>ko,defaultEasing:()=>mo,defaultOffset:()=>ho,defaultTransformValue:()=>ht,defaultValueTypes:()=>ye,degrees:()=>St,delay:()=>ua,delayInSeconds:()=>ca,dimensionValueTypes:()=>re,disableInstantTransitions:()=>Qh,distance:()=>Wr,distance2D:()=>Ur,domAnimation:()=>xc,domMax:()=>wc,domMin:()=>Tc,eachAxis:()=>wr,easeIn:()=>Ys,easeInOut:()=>Gs,easeOut:()=>Ks,easingDefinitionToFunction:()=>ao,fillOffset:()=>co,fillWildcards:()=>it,filterProps:()=>Qe,findDimensionValueType:()=>ae,findValueType:()=>ue,flushKeyframeResolvers:()=>Ft,followValue:()=>ju,frame:()=>k,frameData:()=>L,frameSteps:()=>B,generateLinearEasing:()=>vs,getAnimatableNone:()=>xe,getAnimationMap:()=>Gl,getComputedStyle:()=>hu,getDefaultTransition:()=>qo,getDefaultValueType:()=>ve,getEasingForSegment:()=>ch,getFeatureDefinitions:()=>Ne,getFinalKeyframe:()=>Jo,getMixer:()=>ds,getOptimisedAppearId:()=>qi,getOriginIndex:()=>Du,getValueAsType:()=>vn,getValueTransition:()=>zi,getVariableValue:()=>ui,getVariantContext:()=>ar,getViewAnimationLayerInfo:()=>_u,getViewAnimations:()=>Zu,globalProjectionState:()=>sa,has2DTranslate:()=>Pi,hasReducedMotionListener:()=>Ee,hasScale:()=>Si,hasTransform:()=>bi,hasWarned:()=>rh,hex:()=>Kt,hover:()=>bl,hsla:()=>Gt,hslaToRgba:()=>is,inView:()=>qh,inertia:()=>zs,initPrefersReducedMotion:()=>Me,interpolate:()=>uo,invariant:()=>ri,invisibleValues:()=>us,isAnimationControls:()=>Ce,isBezierDefinition:()=>oo,isBrowser:()=>l,isCSSVariableName:()=>rn,isCSSVariableToken:()=>ln,isControllingVariants:()=>Le,isDeltaZero:()=>Da,isDragActive:()=>vr,isDragging:()=>yr,isEasingArray:()=>_s,isElementKeyboardAccessible:()=>Rr,isElementTextInput:()=>Dr,isForcedMotionValue:()=>yn,isGenerator:()=>jo,isHTMLElement:()=>d,isKeyframesTarget:()=>Hi,isMotionComponent:()=>zh,isMotionValue:()=>nt,isNear:()=>Sr,isNodeOrChild:()=>El,isNumericalString:()=>N,isObject:()=>h,isPrimaryPointer:()=>Br,isSVGElement:()=>ha,isSVGSVGElement:()=>da,isSVGTag:()=>Dn,isTransitionDefined:()=>Qo,isValidMotionProp:()=>qe,isVariantLabel:()=>Re,isVariantNode:()=>Be,isWaapiSupportedEasing:()=>Zl,isWillChangeMotionValue:()=>Gi,isZeroValueString:()=>$,keyframes:()=>fo,m:()=>ii,makeAnimationInstant:()=>$o,makeUseVisualState:()=>Nn,mapEasingToNativeEasing:()=>Lo,mapValue:()=>Uu,maxGeneratorDuration:()=>xs,measurePageBox:()=>Oi,measureViewportBox:()=>Ii,memo:()=>Ao,microtask:()=>K,millisecondsToSeconds:()=>Ji,mirrorEasing:()=>qs,mix:()=>gs,mixArray:()=>ps,mixColor:()=>ls,mixComplex:()=>fs,mixImmediate:()=>ss,mixLinearColor:()=>os,mixNumber:()=>pn,mixObject:()=>ms,mixValues:()=>ya,mixVisibility:()=>cs,motion:()=>Nl,motionValue:()=>et,moveItem:()=>X,nodeGroup:()=>O,noop:()=>A,number:()=>vt,numberValueTypes:()=>ge,observeTimeline:()=>Pu,optimizedAppearDataAttribute:()=>_n,optimizedAppearDataId:()=>Gn,parseAnimateLayoutArgs:()=>hc,parseCSSVariable:()=>li,parseValueFromTransform:()=>dt,percent:()=>bt,pipe:()=>ts,pixelsToPercent:()=>hn,positionalKeys:()=>si,prefersReducedMotion:()=>Pe,press:()=>kl,progress:()=>lo,progressPercentage:()=>Mt,propEffect:()=>ou,propagateDirtyNodes:()=>Za,px:()=>Pt,readTransformValue:()=>pt,recordStats:()=>ku,removeAxisDelta:()=>Aa,removeAxisTransforms:()=>Ma,removeBoxTransforms:()=>Ra,removeItem:()=>H,removePointDelta:()=>Ea,renderHTML:()=>fi,renderSVG:()=>gi,resize:()=>bu,resolveElements:()=>Tl,resolveMotionValue:()=>Wn,resolveTransition:()=>$i,resolveVariant:()=>Ni,resolveVariantFromProps:()=>Oe,reverseEasing:()=>Zs,rgbUnit:()=>Xt,rgba:()=>Yt,rootProjectionNode:()=>vl,scale:()=>wt,scaleCorrectors:()=>fn,scalePoint:()=>Ai,scrapeHTMLMotionValuesFromProps:()=>Fn,scrapeSVGMotionValuesFromProps:()=>zn,scroll:()=>Uc,scrollInfo:()=>Oc,secondsToMilliseconds:()=>Zi,setDragLock:()=>xr,setFeatureDefinitions:()=>Ue,setStyle:()=>Eo,setTarget:()=>Ki,spring:()=>$s,springValue:()=>Nu,stagger:()=>Lu,startOptimizedAppearAnimation:()=>ud,startWaapiAnimation:()=>Bo,statsBuffer:()=>C,steps:()=>uh,styleEffect:()=>uu,supportedWaapiEasing:()=>Do,supportsBrowserAnimation:()=>Xo,supportsFlags:()=>Vo,supportsLinearEasing:()=>Ro,supportsPartialKeyframes:()=>Jl,supportsScrollTimeline:()=>Mo,svgEffect:()=>cu,sync:()=>gc,testValueType:()=>oe,time:()=>Z,transform:()=>Bu,transformAxis:()=>Bi,transformBox:()=>ji,transformBoxPoints:()=>wi,transformPropOrder:()=>ft,transformProps:()=>gt,transformValue:()=>Wu,transformValueTypes:()=>fe,translateAxis:()=>Li,unwrapMotionComponent:()=>Hh,updateMotionValuesFromProps:()=>je,useAnimate:()=>Dh,useAnimateMini:()=>jh,useAnimation:()=>Oh,useAnimationControls:()=>Ih,useAnimationFrame:()=>Jc,useComposedRefs:()=>f,useCycle:()=>Gh,useDeprecatedAnimatedState:()=>pd,useDeprecatedInvertedScale:()=>vd,useDomEvent:()=>Wh,useDragControls:()=>$h,useElementScroll:()=>Hc,useForceUpdate:()=>j,useInView:()=>Zh,useInstantLayoutTransition:()=>Xh,useInstantTransition:()=>Jh,useIsPresent:()=>T,useIsomorphicLayoutEffect:()=>u,useMotionTemplate:()=>Gc,useMotionValue:()=>Yc,useMotionValueEvent:()=>Sc,usePageInView:()=>td,usePresence:()=>w,usePresenceData:()=>Fh,useReducedMotion:()=>ih,useReducedMotionConfig:()=>sh,useResetProjection:()=>Kh,useScroll:()=>zc,useSpring:()=>Zc,useTime:()=>Qc,useTransform:()=>_c,useUnmountEffect:()=>vc,useVelocity:()=>th,useViewportScroll:()=>Xc,useWillChange:()=>nh,variantPriorityOrder:()=>ke,variantProps:()=>De,velocityPerSecond:()=>J,vh:()=>Et,visualElementStore:()=>Ve,vw:()=>At,warnOnce:()=>ah,warning:()=>oi,wrap:()=>lh});var i={};n.r(i),n.d(i,{Group:()=>Td,Item:()=>Dd});var s=n(74848),o=n(44914);const r=(0,o.createContext)({});function a(t){const e=(0,o.useRef)(null);return null===e.current&&(e.current=t()),e.current}const l="undefined"!=typeof window,u=l?o.useLayoutEffect:o.useEffect,c=(0,o.createContext)(null);function h(t){return"object"==typeof t&&null!==t}function d(t){return h(t)&&"offsetHeight"in t}const p=(0,o.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function m(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}function f(...t){return o.useCallback(function(...t){return e=>{let n=!1;const i=t.map(t=>{const i=m(t,e);return n||"function"!=typeof i||(n=!0),i});if(n)return()=>{for(let e=0;e<i.length;e++){const n=i[e];"function"==typeof n?n():m(t[e],null)}}}}(...t),t)}class g extends o.Component{getSnapshotBeforeUpdate(t){const e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){const t=e.offsetParent,n=d(t)&&t.offsetWidth||0,i=this.props.sizeRef.current;i.height=e.offsetHeight||0,i.width=e.offsetWidth||0,i.top=e.offsetTop,i.left=e.offsetLeft,i.right=n-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function y({children:t,isPresent:e,anchorX:n,root:i}){const r=(0,o.useId)(),a=(0,o.useRef)(null),l=(0,o.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:u}=(0,o.useContext)(p),c=t.props?.ref??t?.ref,h=f(a,c);return(0,o.useInsertionEffect)(()=>{const{width:t,height:s,top:o,left:c,right:h}=l.current;if(e||!a.current||!t||!s)return;const d="left"===n?`left: ${c}`:`right: ${h}`;a.current.dataset.motionPopId=r;const p=document.createElement("style");u&&(p.nonce=u);const m=i??document.head;return m.appendChild(p),p.sheet&&p.sheet.insertRule(`\n          [data-motion-pop-id="${r}"] {\n            position: absolute !important;\n            width: ${t}px !important;\n            height: ${s}px !important;\n            ${d}px !important;\n            top: ${o}px !important;\n          }\n        `),()=>{m.contains(p)&&m.removeChild(p)}},[e]),(0,s.jsx)(g,{isPresent:e,childRef:a,sizeRef:l,children:o.cloneElement(t,{ref:h})})}const v=({children:t,initial:e,isPresent:n,onExitComplete:i,custom:r,presenceAffectsLayout:l,mode:u,anchorX:h,root:d})=>{const p=a(x),m=(0,o.useId)();let f=!0,g=(0,o.useMemo)(()=>(f=!1,{id:m,initial:e,isPresent:n,custom:r,onExitComplete:t=>{p.set(t,!0);for(const t of p.values())if(!t)return;i&&i()},register:t=>(p.set(t,!1),()=>p.delete(t))}),[n,p,i]);return l&&f&&(g={...g}),(0,o.useMemo)(()=>{p.forEach((t,e)=>p.set(e,!1))},[n]),o.useEffect(()=>{!n&&!p.size&&i&&i()},[n]),"popLayout"===u&&(t=(0,s.jsx)(y,{isPresent:n,anchorX:h,root:d,children:t})),(0,s.jsx)(c.Provider,{value:g,children:t})};function x(){return new Map}function w(t=!0){const e=(0,o.useContext)(c);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:i,register:s}=e,r=(0,o.useId)();(0,o.useEffect)(()=>
2{if(t)return s(r)},[t]);const a=(0,o.useCallback)(()=>t&&i&&i(r),[r,i,t]);return!n&&i?[!1,a]:[!0]}function T(){return null===(t=(0,o.useContext)(c))||t.isPresent;var t}const S=t=>t.key||"";function b(t){const e=[];return o.Children.forEach(t,t=>{(0,o.isValidElement)(t)&&e.push(t)}),e}const P=({children:t,custom:e,initial:n=!0,onExitComplete:i,presenceAffectsLayout:l=!0,mode:c="sync",propagate:h=!1,anchorX:d="left",root:p})=>{const[m,f]=w(h),g=(0,o.useMemo)(()=>b(t),[t]),y=h&&!m?[]:g.map(S),x=(0,o.useRef)(!0),T=(0,o.useRef)(g),P=a(()=>new Map),E=(0,o.useRef)(new Set),[A,M]=(0,o.useState)(g),[V,C]=(0,o.useState)(g);u(()=>{x.current=!1,T.current=g;for(let t=0;t<V.length;t++){const e=S(V[t]);y.includes(e)?(P.delete(e),E.current.delete(e)):!0!==P.get(e)&&P.set(e,!1)}},[V,y.length,y.join("-")]);const R=[];if(g!==A){let t=[...g];for(let e=0;e<V.length;e++){const n=V[e],i=S(n);y.includes(i)||(t.splice(e,0,n),R.push(n))}return"wait"===c&&R.length&&(t=R),C(b(t)),M(g),null}const{forceRender:k}=(0,o.useContext)(r);return(0,s.jsx)(s.Fragment,{children:V.map(t=>{const o=S(t),r=!(h&&!m)&&(g===V||y.includes(o));return(0,s.jsx)(v,{isPresent:r,initial:!(x.current&&!n)&&void 0,custom:e,presenceAffectsLayout:l,mode:c,root:p,onExitComplete:r?void 0:()=>{if(E.current.has(o))return;if(E.current.add(o),!P.has(o))return;P.set(o,!0);let t=!0;P.forEach(e=>{e||(t=!1)}),t&&(k?.(),C(T.current),h&&f?.(),i&&i())},anchorX:d,children:t},o)})})},E=(0,o.createContext)(null),A=t=>t,M={},V=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],C={value:null,addProjectionMetrics:null};function R(t,e){let n=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=V.reduce((t,n)=>(t[n]=function(t,e){let n=new Set,i=new Set,s=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){r.has(e)&&(c.schedule(e),t()),l++,e(a)}const c={schedule:(t,e=!1,o=!1)=>{const a=o&&s?n:i;return e&&r.add(t),a.has(t)||a.add(t),t},cancel:t=>{i.delete(t),r.delete(t)},process:t=>
2{a=t,s?o=!0:(s=!0,[n,i]=[i,n],n.forEach(u),e&&C.value&&C.value.frameloop[e].push(l),l=0,n.clear(),s=!1,o&&(o=!1,c.process(t)))}};return c}(o,e?n:void 0),t),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:h,preRender:d,render:p,postRender:m}=r,f=()=>{const o=M.useManualTiming?s.timestamp:performance.now();n=!1,M.useManualTiming||(s.delta=i?1e3/60:Math.max(Math.min(o-s.timestamp,40),1)),s.timestamp=o,s.isProcessing=!0,a.process(s),l.process(s),u.process(s),c.process(s),h.process(s),d.process(s),p.process(s),m.process(s),s.isProcessing=!1,n&&e&&(i=!1,t(f))};return{schedule:V.reduce((e,o)=>{const a=r[o];return e[o]=(e,o=!1,r=!1)=>(n||(n=!0,i=!0,s.isProcessing||t(f)),a.schedule(e,o,r)),e},{}),cancel:t=>{for(let e=0;e<V.length;e++)r[V[e]].cancel(t)},state:s,steps:r}}const{schedule:k,cancel:D,state:L,steps:B}=R("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:A,!0);function j(){const t=function(){const t=(0,o.useRef)(!1);return u(()=>(t.current=!0,()=>{t.current=!1}),[]),t}(),[e,n]=(0,o.useState)(0),i=(0,o.useCallback)(()=>{t.current&&n(e+1)},[e]);return[(0,o.useCallback)(()=>k.postRender(i),[i]),e]}const I=t=>!t.isLayoutDirty&&t.willUpdate(!1);function O(){const t=new Set,e=new WeakMap,n=()=>t.forEach(I);return{add:i=>{t.add(i),e.set(i,i.addEventListener("willUpdate",n))},remove:i=>{t.delete(i);const s=e.get(i);s&&(s(),e.delete(i)),n()},dirty:n}}const F=t=>!0===t,W=({children:t,id:e,inherit:n=!0})=>{const i=(0,o.useContext)(r),a=(0,o.useContext)(E),[l,u]=j(),c=(0,o.useRef)(null),h=i.id||a;null===c.current&&((t=>F(!0===t)||"id"===t)(n)&&h&&(e=e?h+"-"+e:h),c.current={id:e,group:F(n)&&i.group||O()});const d=(0,o.useMemo)(()=>({...c.current,forceRender:l}),[u]);return(0,s.jsx)(r.Provider,{value:d,children:t})},U=(0,o.createContext)({strict:!1}),N=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),$=t=>/^0[^.\s]+$/u.test(t);function z(t,e){-1===t.indexOf(e)&&t.push(e)}function H(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function X([...t],e,n){const i=e<0?t.length+e:e;if(i>=0&&i<t.length){const i=n<0?t.length+n:n,[s]=t.splice(e,1);t.splice(i,0,s)}return t}class Y{constructor(){this.subscriptions=[]}add(t){return z(this.subscriptions,t),()=>H(this.subscriptions,t)}notify(t,e,n){const i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,n);else for(let s=0;s<i;s++){const i=this.subscriptions[s];i&&i(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const{schedule:K,cancel:G}=R(queueMicrotask,!1);let _;function q(){_=void 0}const Z={now:()=>(void 0===_&&Z.set(L.isProcessing||M.useManualTiming?L.timestamp:performance.now()),_),set:t=>{_=t,queueMicrotask(q)}};function J(t,e){return e?t*(1e3/e):0}const Q={current:void 0};class tt{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{const e=Z.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){var e;this.current=t,this.updatedAt=Z.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e))))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new Y);const n=this.events[t].add(e);return"change"===t?()=>{n(),k.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return Q.current&&Q.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Z.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return J(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function et(t,e){return new tt(t,e)}const nt=t=>Boolean(t&&t.getVelocity);function it(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const st=t=>180*t/Math.PI,ot=t=>{const e=st(Math.atan2(t[1],t[0]));return at(e)},rt={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:ot,rotateZ:ot,skewX:t=>st(Math.atan(t[1])),skewY:t=>st(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},at=t=>((t%=360)<0&&(t+=360),t),lt=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),ut=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),ct={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:lt,scaleY:ut,scale:t=>(lt(t)+ut(t))/2,rotateX:t=>at(st(Math.atan2(t[6],t[5]))),rotateY:t=>at(st(Math.atan2(-t[2],t[0]))),rotateZ:ot,rotate:ot,skewX:t=>st(Math.atan(t[4])),skewY:t=>st(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function ht(t){return t.includes("scale")?1:0}function dt(t,e){if(!t||"none"===t)return ht(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,s;if(n)i=ct,s=n;else{const e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=rt,s=e}if(!s)return ht(e);const o=i[e],r=s[1].split(",").map(mt);return"function"==typeof o?o(r):r[o]}const pt=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return dt(n,e)};function mt(t){return parseFloat(t.trim())}const ft=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],gt=(()=>new Set(ft))(),yt=(t,e,n)=>n>e?e:n<t?t:n,vt={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},xt={...vt,transform:t=>yt(0,1,t)},wt={...vt,default:1},Tt=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),St=Tt("deg"),bt=Tt("%"),Pt=Tt("px"),Et=Tt("vh"),At=Tt("vw"),Mt=(()=>({...bt,parse:t=>bt.parse(t)/100,transform:t=>bt.transform(100*t)}))(),Vt=t=>t===vt||t===Pt,Ct=new Set(["x","y","z"]),Rt=ft.filter(t=>!Ct.has(t));const kt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>dt(e,"x"),y:(t,{transform:e})=>dt(e,"y")};kt.translateX=kt.x,kt.translateY=kt.y;const Dt=new Set;let Lt=!1,Bt=!1,jt=!1;function It(){if(Bt){const t=Array.from(Dt).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),n=new Map;e.forEach(t=>{const e=function(t){const e=[];return Rt.forEach(n=>{const i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}(t);e.length&&(n.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();const e=n.get(t);e&&e.forEach(([e,n])=>{t.getValue(e)?.set(n)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}Bt=!1,Lt=!1,Dt.forEach(t=>t.complete(jt)),Dt.clear()}function Ot(){Dt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Bt=!0)})}function Ft(){jt=!0,Ot(),It(),jt=!1}class Wt{constructor(t,e,n,i,s,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Dt.add(this),Lt||(Lt=!0,k.read(Ot),k.resolveKeyframes(It))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:n,motionValue:i}=this;if(null===t[0]){const s=i?.get(),o=t[t.length-1];if(void 0!==s)t[0]=s;else if(n&&e){const i=n.readValue(e,o);null!=i&&(t[0]=i)}void 0===t[0]&&(t[0]=o),i&&void 0===s&&i.set(t[0])}it(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Dt.delete(this)}cancel(){"scheduled"===this.state&&(Dt.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}const Ut=t=>Math.round(1e5*t)/1e5,Nt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const $t=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,zt=(t,e)=>n=>Boolean("string"==typeof n&&$t.test(n)&&n.startsWith(t)||e&&!function(t){return null==t}(n)&&Object.prototype.hasOwnProperty.call(n,e)),Ht=(t,e,n)=>i=>{if("string"!=typeof i)return i;const[s,o,r,a]=i.match(Nt);return{[t]:parseFloat(s),[e]:parseFloat(o),[n]:parseFloat(r),alpha:void 0!==a?parseFloat(a):1}},Xt={...vt,transform:t=>Math.round((t=>yt(0,255,t))(t))},Yt={test:zt("rgb","red"),parse:Ht("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Xt.transform(t)+", "+Xt.transform(e)+", "+Xt.transform(n)+", "+Ut(xt.transform(i))+")"};const Kt={test:zt("#"),parse:function(t){let e="",n="",i="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,i+=i,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alph
2a:s?parseInt(s,16)/255:1}},transform:Yt.transform},Gt={test:zt("hsl","hue"),parse:Ht("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+bt.transform(Ut(e))+", "+bt.transform(Ut(n))+", "+Ut(xt.transform(i))+")"},_t={test:t=>Yt.test(t)||Kt.test(t)||Gt.test(t),parse:t=>Yt.test(t)?Yt.parse(t):Gt.test(t)?Gt.parse(t):Kt.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?Yt.transform(t):Gt.transform(t),getAnimatableNone:t=>{const e=_t.parse(t);return e.alpha=0,_t.transform(e)}},qt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const Zt="number",Jt="color",Qt=/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 te(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},s=[];let o=0;const r=e.replace(Qt,t=>(_t.test(t)?(i.color.push(o),s.push(Jt),n.push(_t.parse(t))):t.startsWith("var(")?(i.var.push(o),s.push("var"),n.push(t)):(i.number.push(o),s.push(Zt),n.push(parseFloat(t))),++o,"${}")).split("${}");return{values:n,split:r,indexes:i,types:s}}function ee(t){return te(t).values}function ne(t){const{split:e,types:n}=te(t),i=e.length;return t=>{let s="";for(let o=0;o<i;o++)if(s+=e[o],void 0!==t[o]){const e=n[o];s+=e===Zt?Ut(t[o]):e===Jt?_t.transform(t[o]):t[o]}return s}}const ie=t=>"number"==typeof t?0:_t.test(t)?_t.getAnimatableNone(t):t;const se={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(Nt)?.length||0)+(t.match(qt)?.length||0)>0},parse:ee,createTransformer:ne,getAnimatableNone:function(t){const e=ee(t);return ne(t)(e.map(ie))}},oe=t=>e=>e.test(t),re=[vt,Pt,bt,St,At,Et,{test:t=>"auto"===t,parse:t=>t}],ae=t=>re.find(oe(t)),le=[...re,_t,se],ue=t=>le.find(oe(t)),ce=new Set(["brightness","contrast","saturate","opacity"]);function he(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[i]=n.match(Nt)||[];if(!i)return t;const s=n.replace(i,"");let o=ce.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+s+")"}const de=/\b([a-z-]*)\(.*?\)/gu,pe={...se,getAnimatableNone:t=>{const e=t.match(de);return e?e.map(he).join(" "):t}},me={...vt,transform:Math.round},fe={rotate:St,rotateX:St,rotateY:St,rotateZ:St,scale:wt,scaleX:wt,scaleY:wt,scaleZ:wt,skew:St,skewX:St,skewY:St,distance:Pt,translateX:Pt,translateY:Pt,translateZ:Pt,x:Pt,y:Pt,z:Pt,perspective:Pt,transformPerspective:Pt,opacity:xt,originX:Mt,originY:Mt,originZ:Pt},ge={borderWidth:Pt,borderTopWidth:Pt,borderRightWidth:Pt,borderBottomWidth:Pt,borderLeftWidth:Pt,borderRadius:Pt,borderTopLeftRadius:Pt,borderTopRightRadius:Pt,borderBottomRightRadius:Pt,borderBottomLeftRadius:Pt,width:Pt,maxWidth:Pt,height:Pt,maxHeight:Pt,top:Pt,right:Pt,bottom:Pt,left:Pt,inset:Pt,insetBlock:Pt,insetBlockStart:Pt,insetBlockEnd:Pt,insetInline:Pt,insetInlineStart:Pt,insetInlineEnd:Pt,padding:Pt,paddingTop:Pt,paddingRight:Pt,paddingBottom:Pt,paddingLeft:Pt,paddingBlock:Pt,paddingBlockStart:Pt,paddingBlockEnd:Pt,paddingInline:Pt,paddingInlineStart:Pt,paddingInlineEnd:Pt,margin:Pt,marginTop:Pt,marginRight:Pt,marginBottom:Pt,marginLeft:Pt,marginBlock:Pt,marginBlockStart:Pt,marginBlockEnd:Pt,marginInline:Pt,marginInlineStart:Pt,marginInlineEnd:Pt,fontSize:Pt,backgroundPositionX:Pt,backgroundPositionY:Pt,...fe,zIndex:me,fillOpacity:xt,strokeOpacity:xt,numOctaves:me},ye={...ge,color:_t,backgroundColor:_t,outlineColor:_t,fill:_t,stroke:_t,borderColor:_t,borderTopColor:_t,borderRightColor:_t,borderBottomColor:_t,borderLeftColor:_t,filter:pe,WebkitFilter:pe},ve=t=>ye[t];function xe(t,e){let n=ve(t);return n!==pe&&(n=se),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const we=()=>({translate:0,scale:1,origin:0,originPoint:0}),Te=()=>({x:we(),y:we()}),Se=()=>({min:0,max:0}),be=()=>({x:Se(),y:Se()}),Pe={current:null},Ee={current:!1},Ae="undefined"!=typeof window;function Me(){if(Ee.current=!0,Ae)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Pe.current=t.matches;t.addEventListener("change",e),e()}else Pe.current=!1}const Ve=new WeakMap;function Ce(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function Re(t){return"string"==typeof t||Array.isArray(t)}const ke=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],De=["initial",...ke];function Le(t){return Ce(t.animate)||De.some(e=>Re(t[e]))}function Be(t){return Boolean(Le(t)||t.variants)}function je(t,e,n){for(const i in e){const s=e[i],o=n[i];if(nt(s))t.addValue(i,s);else if(nt(o))t.addValue(i,et(s,{owner:t}));else if(o!==s)if(t.hasValue(i)){const e=t.getValue(i);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{const e=t.getStaticValue(i);t.addValue(i,et(void 0!==e?e:s,{owner:t}))}}for(const i in n)void 0===e[i]&&t.removeValue(i);return e}function Ie(t){const e=[{},{}];
vendor: 4,250 bytes, line 2
2return t?.values.forEach((t,n)=>{e[0][n]=t.get(),e[1][n]=t.getVelocity()}),e}function Oe(t,e,n,i){if("function"==typeof e){const[s,o]=Ie(i);e=e(void 0!==n?n:t.custom,s,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){const[s,o]=Ie(i);e=e(void 0!==n?n:t.custom,s,o)}return e}const Fe=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let We={};function Ue(t){We=t}function Ne(){return We}class $e{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:i,skipAnimations:s,blockInitialAnimation:o,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Wt,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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 t=Z.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,k.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=r;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=s,this.options=a,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=Le(e),this.isVariantNode=Be(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:c,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in h){const e=h[t];void 0!==l[t]&&nt(e)&&e.set(l[t])}}mount(t){if(this.hasBeenMounted)for(const t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,Ve.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(Ee.current||Me(),this.shouldReduceMotion=Pe.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),D(this.notifyUpdate),D(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=gt.has(t);n&&this.onBindTransform&&this.onBindTransform();const i=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&k.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;"undefined"!=typeof window&&window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{i(),s&&s(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in We){const e=We[t];if(!e)continue;const{isEnabled:n,Feature:i}=e;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){const e=this.features[t];
2e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):be()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<Fe.length;e++){const n=Fe[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const i=t["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=je(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){const n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=et(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){let n=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=n&&("string"==typeof n&&(N(n)||$(n))?n=parseFloat(n):!ue(n)&&se.test(e)&&(n=xe(t,e)),this.setBaseTarget(t,nt(n)?n.get():n)),nt(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){const{initial:e}=this.props;let n;if("string"==typeof e||"object"==typeof e){const i=Oe(this.props,e,this.presenceContext?.custom);i&&(n=i[t])}if(e&&void 0!==n)return n;const i=this.getBaseTargetFromProps(this.props,t);return void 0===i||nt(i)?void 0!==this.initialValues[t]&&void 0===n?void 0:this.baseTarget[t]:i}on(t,e){return this.events[t]||(this.events[t]=new Y),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){K.render(this.render)}}const ze={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"]};let He=!1;function Xe(){return function(){if(He)return;const t={};for(const e in ze)t[e]={isEnabled:t=>ze[e].some(e=>!!t[e])};Ue(t),He=!0}(),Ne()}function Ye(t){const e=Xe();for(const n in t)e[n]={...e[n],...t[n]};Ue(e)}function Ke({children:t,features:e,strict:n=!1}){const[,i]=(0,o.useState)(!Ge(e)),r=(0,o.useRef)(void 0);if(!Ge(e)){const{renderer:t,...n}=e;r.current=t,Ye(n)}return(0,o.useEffect)(()=>{Ge(e)&&e().then(({renderer:t,...e})=>{Ye(e),r.current=t,i(!0)})},[]),(0,s.jsx)(U.Provider,{value:{renderer:r.current,strict:n},children:t})}function Ge(t){return"function"==typeof t}const _e=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 qe(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||_e.has(t)}let Ze=t=>!qe(t);function Je(t){"function"==typeof t&&(Ze=e=>e.startsWith("on")?!qe(e):t(e))}try{Je(n(17671).default)}catch{}function Qe(t,e,n){const i={};for(const s in t)"values"===s&&"object"==typeof t.values||(Ze(s)||!0===n&&qe(s)||!e&&!qe(s)||t.draggable&&s.startsWith("onDrag"))&&(i[s]=t[s]);return i}function tn({children:t,isValidProp:e,...n}){e&&Je(e),(n={...(0,o.useContext)(p),...n}).isStatic=a(()=>n.isStatic);const i=(0,o.useMemo)(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion]);return(0,s.jsx)(p.Provider,{value:i,children:t})}const en=(0,o.createContext)({});function nn(t){const{initial:e,animate:n}=function(t,e){if(Le(t)){const{initial:e,animate:n}=t;return{initial:!1===e||Re(e)?e:void 0,animate:Re(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,(0,o.useContext)(en));return(0,o.useMemo)(()=>({initial:e,animate:n}),[sn(e),sn(n)])}function sn(t){return Array.isArray(t)?t.join(" "):t}const on=t=>e=>"string"==typeof e&&e.startsWith(t),rn=on("--"),an=on("var(--"),ln=t=>!!an(t)&&un.test(t.split("/*")[0].trim()),un=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function cn(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}function hn(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const dn={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!Pt.test(t))return t;t=parseFloat(t)}return`${hn(t,e.target.x)}% ${hn(t,e.target.y)}%`}},pn=(t,e,n)=>t+(e-t)*n,mn={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,s=se.parse(t);if(s.length>5)return i;const o=se.createTransformer(t),r="number"!=typeof s[0]?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;s[0+r]/=a,s[1+r]/=l;const u=pn(a,l,.5);return"number"==typeof s[2+r]&&(s[2+r]/=u),"number"==typeof s[3+r]&&(s[3+r]/=u),o(s)}},fn={borderRadius:{...dn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:dn,borderTopRightRadius:dn,borderBottomLeftRadius:dn,borderBottomRightRadius:dn,boxShadow:mn};function gn(t){for(const e in t)fn[e]=t[e],rn(e)&&(fn[e].isCSSVariable=!0)}function yn(t,{layout:e,layoutId:n}){return gt.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!fn[t]||"opacity"===t)}const vn=(t,e)=>e&&"number"==typeof t?e.transform(t):t,xn={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},wn=ft.length;function Tn(t,e,n){let i="",s=!0;for(let o=0;o<wn;o++){const r=ft[o],a=t[r];if(void 0===a)continue;let l=!0;if("number"==typeof a)l=a===(r.startsWith("scale")?1:0);else{const t=parseFloat(a);l=r.startsWith("scale")?1===t:0===t}if(!l||n){const t=vn(a,ge[r]);if(!l){s=!1;i+=`${xn[r]||r}(${t}) `}n&&(e[r]=t)}}return i=i.trim(),n?i=n(e,s?"":i):s&&(i="none"),i}function Sn(t,e,n){const{style:i,vars:s,transformOrigin:o}=t;let r=!1,a=!1;for(const t in e){const n=e[t];if(gt.has(t))r=!0;else if(rn(t))s[t]=n;else{const e=vn(n,ge[t]);t.startsWith("origin")?(a=!0,o[t]=e):i[t]=e}}if(e.transform||(r||n?i.transform=Tn(e,t.transform,n):i.transform&&(i.transform="none")),a){const{originX:t="50%",originY:e="50%",originZ:n=0}=o;i.transformOrigin=`${t} ${e} ${n}`}}const bn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Pn(t,e,n){for(const i in e)nt(e[i])||yn(i,n)||(t[i]=e[i])}function En(t,e){const n={};return Pn(n,t.style||{},t),Object.assign(n,function({transformTemplate:t},e){return(0,o.useMemo)(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{}};return Sn(n,e,t),Object.assign({},n.vars,n.style)},[e])}(t,e)),n}function An(t,e){const n={},i=En(t,e);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}const Mn={offset:"stroke-dashoffset",array:"stroke-dasharray"},Vn={offset:"strokeDashoffset",array:"strokeDasharray"};function Cn(t,e,n=1,i=0,s=!0){t.pathLength=1;const o=s?Mn:Vn;t[o.offset]=""+-i,t[o.array]=`${e} ${n}`}const Rn=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function kn(t,{attrX:e,attrY:n,attrScale:i,pathLength:s,pathSpacing:o=1,pathOffset:r=0,...a},l,u,c){if(Sn(t,a,u),l)return void(t.style.viewBox&&(t.attrs.viewB
2ox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:h,style:d}=t;h.transform&&(d.transform=h.transform,delete h.transform),(d.transform||h.transformOrigin)&&(d.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),d.transform&&(d.transformBox=c?.transformBox??"fill-box",delete h.transformBox);for(const t of Rn)void 0!==h[t]&&(d[t]=h[t],delete h[t]);void 0!==e&&(h.x=e),void 0!==n&&(h.y=n),void 0!==i&&(h.scale=i),void 0!==s&&Cn(h,s,o,r,!1)}const Dn=t=>"string"==typeof t&&"svg"===t.toLowerCase(),Ln=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}});function Bn(t,e,n,i){const s=(0,o.useMemo)(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return kn(n,e,Dn(i),t.transformTemplate,t.style),{...n.attrs,style:{...n.style}}},[e]);if(t.style){const e={};Pn(e,t.style,t),s.style={...e,...s.style}}return s}const jn=["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 In(t){return"string"==typeof t&&!t.includes("-")&&!!(jn.indexOf(t)>-1||/[A-Z]/u.test(t))}function On(t,e,n,{latestValues:i},s,r=!1,a){const l=(a??In(t)?Bn:An)(e,i,s,t),u=Qe(e,"string"==typeof t,r),c=t!==o.Fragment?{...u,...l,ref:n}:{},{children:h}=e,d=(0,o.useMemo)(()=>nt(h)?h.get():h,[h]);return(0,o.createElement)(t,{...c,children:d})}function Fn(t,e,n){const i=t.style,s=e?.style,o={};if(!i)return o;for(const e in i)(nt(i[e])||s&&nt(s[e])||yn(e,t)||void 0!==n?.getValue(e)?.liveStyle)&&(o[e]=i[e]);return o}function Wn(t){return nt(t)?t.get():t}function Un(t,e,n,i){const s={},o=i(t,{});for(const t in o)s[t]=Wn(o[t]);let{initial:r,animate:a}=t;const l=Le(t),u=Be(t);e&&u&&!l&&!1!==t.inherit&&(void 0===r&&(r=e.initial),void 0===a&&(a=e.animate));let c=!!n&&!1===n.initial;c=c||!1===r;const h=c?a:r;if(h&&"boolean"!=typeof h&&!Ce(h)){const e=Array.isArray(h)?h:[h];for(let n=0;n<e.length;n++){const i=Oe(t,e[n]);if(i){const{transitionEnd:t,transition:e,...n}=i;for(const t in n){let e=n[t];if(Array.isArray(e)){e=e[c?e.length-1:0]}null!==e&&(s[t]=e)}for(const e in t)s[e]=t[e]}}}return s}const Nn=t=>(e,n)=>{const i=(0,o.useContext)(en),s=(0,o.useContext)(c),r=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e},n,i,s){return{latestValues:Un(n,i,s,t),renderState:e()}}(t,e,i,s);return n?r():a(r)},$n=Nn({scrapeMotionValuesFromProps:Fn,createRenderState:bn});function zn(t,e,n){const i=Fn(t,e,n);for(const n in t)if(nt(t[n])||nt(e[n])){i[-1!==ft.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=t[n]}return i}const Hn=Nn({scrapeMotionValuesFromProps:zn,createRenderState:Ln}),Xn=Symbol.for("motionComponentSymbol");function Yn(t,e,n){const i=(0,o.useRef)(n);(0,o.useInsertionEffect)(()=>{i.current=n});const s=(0,o.useRef)(null);return(0,o.useCallback)(n=>{n&&t.onMount?.(n),e&&(n?e.mount(n):e.unmount());const o=i.current;if("function"==typeof o)if(n){const t=o(n);"function"==typeof t&&(s.current=t)}else s.current?(s.current(),s.current=null):o(n);else o&&(o.current=n)},[e])}function Kn(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const Gn="framerAppearId",_n="data-"+Kn(Gn),qn=(0,o.createContext)({});function Zn(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function Jn(t,e,n,i,s,r){const{visualElement:a}=(0,o.useContext)(en),l=(0,o.useContext)(U),h=(0,o.useContext)(c),d=(0,o.useContext)(p).reducedMotion,m=(0,o.useRef)(null);i=i||l.renderer,!m.current&&i&&(m.current=i(t,{visualState:e,parent:a,props:n,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:d,isSVG:r}));const f=m.current,g=(0,o.useContext)(qn);!f||f.projection||!s||"html"!==f.type&&"svg"!==f.type||function(t,e,n,i){const{layoutId:s,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Qn(t.parent)),t.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:Boolean(r)||a&&Zn(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:i,crossfade:c,layoutScroll:l,layoutRoot:u})}(m.current,n,s,g);const y=(0,o.useRef)(!1);(0,o.useInsertionEffect)(()=>{f&&y.current&&f.update(n,h)});const v=n[_n],x=(0,o.useRef)(Boolean(v)&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return u(()=>{f&&(y.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),x.current&&f.animationState&&f.animationState.animateChanges())}),(0,o.useEffect)(()=>{f&&(!x.current&&f.animationState&&f.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),x.current=!1),f.enteringChildren=void 0)}),f}function Qn(t){if(t)return!1!==t.options.allowProjection?t.projection:Qn(t.parent)}function ti(t,{forwardMotionProps:e=!1,type:n}={},i,r){i&&Ye(i);const a=n?"svg"===n:In(t),u=a?Hn:$n;function c(n,i){let c;const h={...(0,o.useContext)(p),...n,layoutId:ei(n)},{isStatic:d}=h,m=nn(n),f=u(n,d);if(!d&&l){!function(){(0,o.useContext)(U).strict;0}();const e=function(t){const e=Xe(),{drag:n,layout:i}=e;if(!n&&!i)return{};const s={...n,...i};return{MeasureLayout:n?.isEnabled(t)||i?.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}
2(h);c=e.MeasureLayout,m.visualElement=Jn(t,f,h,r,e.ProjectionNode,a)}return(0,s.jsxs)(en.Provider,{value:m,children:[c&&m.visualElement?(0,s.jsx)(c,{visualElement:m.visualElement,...h}):null,On(t,n,Yn(f,m.visualElement,i),f,d,e,a)]})}c.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;const h=(0,o.forwardRef)(c);return h[Xn]=t,h}function ei({layoutId:t}){const e=(0,o.useContext)(r).id;return e&&void 0!==t?e+"-"+t:t}function ni(t,e){if("undefined"==typeof Proxy)return ti;const n=new Map,i=(n,i)=>ti(n,i,t,e);return new Proxy((t,e)=>i(t,e),{get:(s,o)=>"create"===o?i:(n.has(o)||n.set(o,ti(o,void 0,t,e)),n.get(o))})}const ii=ni(),si=new Set(["width","height","top","left","right","bottom",...ft]);let oi=()=>{},ri=()=>{};const ai=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function li(t){const e=ai.exec(t);if(!e)return[,];const[,n,i,s]=e;return[`--${n??i}`,s]}function ui(t,e,n=1){ri(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[i,s]=li(t);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const t=o.trim();return N(t)?parseFloat(t):t}return ln(s)?ui(s,e,n+1):s}function ci(t){return"number"==typeof t?0===t:null===t||("none"===t||"0"===t||$(t))}const hi=new Set(["auto","none","0"]);class di extends Wt{constructor(t,e,n,i,s){super(t,e,n,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let n=0;n<t.length;n++){let i=t[n];if("string"==typeof i&&(i=i.trim(),ln(i))){const s=ui(i,e.current);void 0!==s&&(t[n]=s),n===t.length-1&&(this.finalKeyframe=i)}}if(this.resolveNoneKeyframes(),!si.has(n)||2!==t.length)return;const[i,s]=t,o=ae(i),r=ae(s);if(cn(i)!==cn(s)&&kt[n])this.needsMeasurement=!0;else if(o!==r)if(Vt(o)&&Vt(r))for(let e=0;e<t.length;e++){const n=t[e];"string"==typeof n&&(t[e]=parseFloat(n))}else kt[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:e}=this,n=[];for(let e=0;e<t.length;e++)(null===t[e]||ci(t[e]))&&n.push(e);n.length&&function(t,e,n){let i,s=0;for(;s<t.length&&!i;){const e=t[s];"string"==typeof e&&!hi.has(e)&&te(e).values.length&&(i=t[s]),s++}if(i&&n)for(const s of e)t[s]=xe(n,i)}(t,n,e)}measureInitialState(){const{element:t,unresolvedKeyframes:e,name:n}=this;if(!t||!t.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=kt[n](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;const i=e[e.length-1];void 0!==i&&t.getValue(n,i).jump(i,!1)}measureEndState(){const{element:t,name:e,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const i=t.getValue(e);i&&i.jump(this.measuredOrigin,!1);const s=n.length-1,o=n[s];n[s]=kt[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEac
2h(([e,n])=>{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}}class pi extends $e{constructor(){super(...arguments),this.KeyframeResolver=di}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){const n=t.style;return n?n[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;nt(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}const mi=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 fi(t,{style:e,vars:n},i,s){const o=t.style;let r;for(r in e)o[r]=e[r];for(r in s?.applyProjectionStyles(o,i),n)o.setProperty(r,n[r])}function gi(t,e,n,i){fi(t,e,void 0,i);for(const n in e.attrs)t.setAttribute(mi.has(n)?n:Kn(n),e.attrs[n])}class yi extends pi{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=be}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(gt.has(e)){const t=ve(e);return t&&t.default||0}return e=mi.has(e)?e:Kn(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return zn(t,e,n)}
vendor: 5,376 bytes, line 2
2build(t,e,n){kn(t,e,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,e,n,i){gi(t,e,0,i)}mount(t){this.isSVGTag=Dn(t.tagName),super.mount(t)}}function vi({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function xi({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function wi(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function Ti(t){return void 0===t||1===t}function Si({scale:t,scaleX:e,scaleY:n}){return!Ti(t)||!Ti(e)||!Ti(n)}function bi(t){return Si(t)||Pi(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Pi(t){return Ei(t.x)||Ei(t.y)}function Ei(t){return t&&"0%"!==t}function Ai(t,e,n){return n+e*(t-n)}function Mi(t,e,n,i,s){return void 0!==s&&(t=Ai(t,s,i)),Ai(t,n,i)+e}function Vi(t,e=0,n=1,i,s){t.min=Mi(t.min,e,n,i,s),t.max=Mi(t.max,e,n,i,s)}function Ci(t,{x:e,y:n}){Vi(t.x,e.translate,e.scale,e.originPoint),Vi(t.y,n.translate,n.scale,n.originPoint)}const Ri=.999999999999,ki=1.0000000000001;function Di(t,e,n,i=!1){const s=n.length;if(!s)return;let o,r;e.x=e.y=1;for(let a=0;a<s;a++){o=n[a],r=o.projectionDelta;const{visualElement:s}=o.options;s&&s.props.style&&"contents"===s.props.style.display||(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&ji(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,Ci(t,r)),i&&bi(o.latestValues)&&ji(t,o.latestValues))}e.x<ki&&e.x>Ri&&(e.x=1),e.y<ki&&e.y>Ri&&(e.y=1)}function Li(t,e){t.min=t.min+e,t.max=t.max+e}function Bi(t,e,n,i,s=.5){Vi(t,e,n,pn(t.min,t.max,s),i)}function ji(t,e){Bi(t.x,e.x,e.scaleX,e.scale,e.originX),Bi(t.y,e.y,e.scaleY,e.scale,e.originY)}function Ii(t,e){return vi(wi(t.getBoundingClientRect(),e))}function Oi(t,e,n){const i=Ii(t,n),{scroll:s}=e;return s&&(Li(i.x,s.offset.x),Li(i.y,s.offset.y)),i}class Fi extends pi{constructor(){super(...arguments),this.type="html",this.renderInstance=fi}readValueFromInstance(t,e){if(gt.has(e))return this.projection?.isProjecting?ht(e):pt(t,e);{const i=(n=t,window.getComputedStyle(n)),s=(rn(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return Ii(t,e)}build(t,e,n){Sn(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return Fn(t,e,n)}}const Wi=(t,e)=>e.isSVG??In(t)?new yi(e):new Fi(e,{allowProjection:t!==o.Fragment});class Ui{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Ni(t,e,n){const i=t.getProps();return Oe(i,e,void 0!==n?n:i.custom,t)}function $i(t,e){if(t?.inherit&&e){const{inherit:n,...i}=t;return{...e,...i}}return t}function zi(t,e){const n=t?.[e]??t?.default??t;return n!==t?$i(n,t):n}const Hi=t=>Array.isArray(t);function Xi(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,et(n))}function Yi(t){return Hi(t)?t[t.length-1]||0:t}function Ki(t,e){const n=Ni(t,e);let{transitionEnd:i={},transition:s={},...o}=n||{};o={...o,...i};for(const e in o){Xi(t,e,Yi(o[e]))}}function Gi(t){return Boolean(nt(t)&&t.add)}function _i(t,e){const n=t.getValue("willChange");if(Gi(n))return n.add(e);if(!n&&M.WillChange){const n=new M.WillChange("auto");t.addValue("willChange",n),n.add(e)}}function qi(t){return t.props[_n]}const Zi=t=>1e3*t,Ji=t=>t/1e3,Qi=(t,e)=>n=>e(t(n)),ts=(...t)=>t.reduce(Qi),es={layout:0,mainThread:0,waapi:0};function ns(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function is({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let s=0,o=0,r=0;if(e/=100){const i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;s=ns(a,i,t+1/3),o=ns(a,i,t),r=ns(a,i,t-1/3)}else s=o=r=n;return{red:Math.round(255*s),green:Math.round(255*o),blue:Math.round(255*r),alpha:i}}function ss(t,e){return n=>n>0?e:t}const os=(t,e,n)=>{const i=t*t,s=n*(e*e-i)+i;return s<0?0:Math.sqrt(s)},rs=[Kt,Yt,Gt];function as(t){const e=(n=t,rs.find(t=>t.test(n)));var n;if(oi(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!Boolean(e))return!1;let i=e.parse(t);return e===Gt&&(i=is(i)),i}const ls=(t,e)=>{const n=as(t),i=as(e);if(!n||!i)return ss(t,e);const s={...n};return t=>(s.red=os(n.red,i.red,t),s.green=os(n.green,i.green,t),s.blue=os(n.blue,i.blue,t),s.alpha=pn(n.alpha,i.alpha,t),Yt.transform(s))},us=new Set(["none","hidden"]);function cs(t,e){return us.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function hs(t,e){return n=>pn(t,e,n)}function ds(t){return"number"==typeof t?hs:"string"==typeof t?ln(t)?ss:_t.test(t)?ls:fs:Array.isArray(t)?ps:"object"==typeof t?_t.test(t)?ls:ms:ss}function ps(t,e){const n=[...t],i=n.length,s=t.map((t,n)=>ds(t)(t,e[n]));return t=>{for(let e=0;e<i;e++)n[e]=s[e](t);return n}}function ms(t,e){const n={...t,...e},i={};for(const s in n)void 0!==t[s]&&void 0!==e[s]&&(i[s]=ds(t[s])(t[s],e[s]));return t=>{for(const e in i)n[e]=i[e](t);return n}}const fs=(t,e)=>{const n=se.createTransformer(e),i=te(t),s=te(e);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?us.has(t)&&!s.values.length||us.has(e)&&!i.values.length?cs(t,e):ts(ps(function(t,e){const n=[],i={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){const o=e.types[s],r=t.indexes[o][i[o]],a=t.values[r]??0;n[s]=a,i[o]++}return n}(i,s),s.values),n):(oi(!0,`Complex values '${t}' and '${e}
2' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),ss(t,e))};function gs(t,e,n){if("number"==typeof t&&"number"==typeof e&&"number"==typeof n)return pn(t,e,n);return ds(t)(t,e)}const ys=t=>{const e=({timestamp:e})=>t(e);return{start:(t=!0)=>k.update(e,t),stop:()=>D(e),now:()=>L.isProcessing?L.timestamp:Z.now()}},vs=(t,e,n=10)=>{let i="";const s=Math.max(Math.round(e/n),2);for(let e=0;e<s;e++)i+=Math.round(1e4*t(e/(s-1)))/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},xs=2e4;function ws(t){let e=0;let n=t.next(e);for(;!n.done&&e<xs;)e+=50,n=t.next(e);return e>=xs?1/0:e}function Ts(t,e=100,n){const i=n({...t,keyframes:[0,e]}),s=Math.min(ws(i),xs);return{type:"keyframes",ease:t=>i.next(s*t).value/e,duration:Ji(s)}}function Ss(t,e,n){const i=Math.max(e-5,0);return J(n-t(i),e-i)}const bs=100,Ps=10,Es=1,As=0,Ms=800,Vs=.3,Cs=.3,Rs={granular:.01,default:2},ks={granular:.005,default:.5},Ds=.01,Ls=10,Bs=.05,js=1,Is=.001;function Os({duration:t=Ms,bounce:e=Vs,velocity:n=As,mass:i=Es}){let s,o;oi(t<=Zi(Ls),"Spring duration must be 10 seconds or less","spring-duration-limit");let r=1-e;r=yt(Bs,js,r),t=yt(Ds,Ls,Ji(t)),r<1?(s=e=>{const i=e*r,s=i*t,o=i-n,a=Fs(e,r),l=Math.exp(-s);return Is-o/a*l},o=e=>{const i=e*r*t,o=i*n+n,a=Math.pow(r,2)*Math.pow(e,2)*t,l=Math.exp(-i),u=Fs(Math.pow(e,2),r);return(-s(e)+Is>0?-1:1)*((o-a)*l)/u}):(s=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,o=e=>Math.exp(-e*t)*(t*t*(n-e)));const a=function(t,e,n){let i=n;for(let n=1;n<12;n++)i-=t(i)/e(i);return i}(s,o,5/t);if(t=Zi(t),isNaN(a))return{stiffness:bs,damping:Ps,duration:t};{const e=Math.pow(a,2)*i;return{stiffness:e,damping:2*r*Math.sqrt(i*e),duration:t}}}function Fs(t,e){return t*Math.sqrt(1-e*e)}const Ws=["duration","bounce"],Us=["stiffness","damping","mass"];function Ns(t,e){return e.some(e=>void 0!==t[e])}function $s(t=Cs,e=Vs){const n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:s}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:h,velocity:d,isResolvedFromDuration:p}=function(t){let e={velocity:As,stiffness:bs,damping:Ps,mass:Es,isResolvedFromDuration:!1,...t};if(!Ns(t,Us)&&Ns(t,Ws))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(1.2*n),s=i*i,o=2*yt(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:Es,stiffness:s,damping:o}}else{const n=Os(t);e={...e,...n,mass:Es},e.isResolvedFromDuration=!0}return e}({...n,velocity:-Ji(n.velocity||0)}),m=d||0,f=u/(2*Math.sqrt(l*c)),g=r-o,y=Ji(Math.sqrt(l/c)),v=Math.abs(g)<5;let x;if(i||(i=v?Rs.granular:Rs.default),s||(s=v?ks.granular:ks.default),f<1){const t=Fs(y,f);x=e=>{const n=Math.exp(-f*y*e);return r-n*((m+f*y*g)/t*Math.sin(t*e)+g*Math.cos(t*e))}}else if(1===f)x=t=>r-Math.exp(-y*t)*(g+(m+y*g)*t);else{const t=y*Math.sqrt(f*f-1);x=e=>{const n=Math.exp(-f*y*e),i=Math.min(t*e,300);return r-n*((m+f*y*g)*Math.sinh(i)+t*g*Math.cosh(i))/t}}const w={calculatedDuration:p&&h||null,next:t=>{const e=x(t);if(p)a.done=t>=h;else{let n=0===t?m:0;f<1&&(n=0===t?Zi(m):Ss(x,t,e));const o=Math.abs(n)<=i,l=Math.abs(r-e)<=s;a.done=o&&l}return a.value=a.done?r:e,a},toString:()=>{const t=Math.min(ws(w),xs),e=vs(e=>w.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return w}function zs({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=t[0],d={done:!1,value:h},p=t=>void 0===a?l:void 0===l||Math.abs(a-t)<Math.abs(l-t)?a:l;let m=n*e;const f=h+m,g=void 0===r?f:r(f);g!==f&&(m=g-h);const y=t=>-m*Math.exp(-t/i),v=t=>g+y(t),x=t=>{const e=y(t),n=v(t);d.done=Math.abs(e)<=u,d.value=d.done?g:n};let w,T;const S=t=>{var e;(e=d.value,void 0!==a&&e<a||void 0!==l&&e>l)&&(w=t,T=$s({keyframes:[d.value,p(d.value)],velocity:Ss(v,t,d.value),damping:s,stiffness:o,restDelta:u,restSpeed:c}))};return S(0),{calculatedDuration:null,next:t=>{let e=!1;return T||void 0!==w||(e=!0,x(t),S(t)),void 0!==w&&t>=w?T.next(t-w):(!e&&x(t),d)}}}$s.applyToOptions=t=>{const e=Ts(t,100,$s);return t.ease=e.ease,t.duration=Zi(e.duration),t.type="keyframes",t};const Hs=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function Xs(t,e,n,i){if(t===e&&n===i)return A;const s=e=>function(t,e,n,i,s){let o,r,a=0;do{r=e+(n-e)/2,o=Hs(r,i,s)-t,o>0?n=r:e=r}while(Math.abs(o)>1e-7&&++a<12);return r}(e,0,1,t,n);return t=>0===t||1===t?t:Hs(s(t),e,i)}const Ys=Xs(.42,0,1,1),Ks=Xs(0,0,.58,1),Gs=Xs(.42,0,.58,1),_s=t=>Array.isArray(t)&&"number"!=typeof t[0],qs=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Zs=t=>e=>1-t(1-e),Js=Xs(.33,1.53,.69,.99),Qs=Zs(Js),to=qs(Qs),eo=t=>(t*=2)<1?.5*Qs(t):.5*(2-Math.pow(2,-10*(t-1))),no=t=>1-Math.sin(Math.acos(t)),io=Zs(no),so=qs(no),oo=t=>Array.isArray(t)&&"number"==typeof t[0],ro={linear:A,easeIn:Ys,easeInOut:Gs,easeOut:Ks,circIn:no,circInOut:so,circOut:io,backIn:Qs,backInOut:to,backOut:Js,anticipate:eo},ao=t=>{if(oo(t)){ri(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[e,n,i,s]=t;return Xs(e,n,i,s)}return"string"==typeof t?(ri(void 0!==ro[t],`Invalid easing type '${t}
2'`,"invalid-easing-type"),ro[t]):t},lo=(t,e,n)=>{const i=e-t;return 0===i?1:(n-t)/i};function uo(t,e,{clamp:n=!0,ease:i,mixer:s}={}){const o=t.length;if(ri(o===e.length,"Both input and output ranges must be the same length","range-length"),1===o)return()=>e[0];if(2===o&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=function(t,e,n){const i=[],s=n||M.mix||gs,o=t.length-1;for(let n=0;n<o;n++){let o=s(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]||A:e;o=ts(t,o)}i.push(o)}return i}(e,i,s),l=a.length,u=n=>{if(r&&n<t[0])return e[0];let i=0;if(l>1)for(;i<t.length-2&&!(n<t[i+1]);i++);const s=lo(t[i],t[i+1],n);return a[i](s)};return n?e=>u(yt(t[0],t[o-1],e)):u}function co(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const s=lo(0,e,i);t.push(pn(n,1,s))}}function ho(t){const e=[0];return co(e,t.length-1),e}function po(t,e){return t.map(t=>t*e)}function mo(t,e){return t.map(()=>e||Gs).splice(0,t.length-1)}function fo({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const s=_s(i)?i.map(ao):ao(i),o={done:!1,value:e[0]},r=uo(po(n&&n.length===e.length?n:ho(e),t),e,{ease:Array.isArray(s)?s:mo(e,s)});return{calculatedDuration:t,next:e=>(o.value=r(e),o.done=e>=t,o)}}const go=t=>null!==t;function yo(t,{repeat:e,repeatType:n="loop"},i,s=1){const o=t.filter(go),r=s<0||e&&"loop"!==n&&e%2==1?0:o.length-1;return r&&void 0!==i?i:o[r]}const vo={decay:zs,inertia:zs,tween:fo,keyframes:fo,spring:$s};function xo(t){"string"==typeof t.type&&(t.type=vo[t.type])}class wo{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}const To=t=>t/100;class So extends wo{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:t}=this.options;t&&t.updatedAt!==Z.now()&&this.tick(Z.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},es.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){const{options:t}=this;xo(t);const{type:e=fo,repeat:n=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=t;let{keyframes:r}=t;const a=e||fo;a!==fo&&"number"!=typeof r[0]&&(this.mixKeyframes=ts(To,gs(r[0],r[1])),r=[0,100]);const l=a({...t,keyframes:r});"mirror"===s&&(this.mirroredGenerator=a({...t,keyframes:[...r].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=ws(l));const{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=l}updateTime(t){const e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){const{generator:n,totalDuration:i,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:r,calculatedDuration:a}=this;if(null===this.startTime)return n.next(0);const{delay:l=0,keyframes:u,repeat:c,repeatType:h,repeatDelay:d,type:p,onUpdate:m,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);const g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let v=this.currentTime,x=n;if(c){const t=Math.min(this.currentTime,i)/r;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,c+1);Boolean(e%2)&&("reverse"===h?(n=1-n,d&&(n-=d/r)):"mirror"===h&&(x=o)),v=yt(0,1,n)*r}const w=y?{done:!1,value:u[0]}:x.next(v);s&&(w.value=s(w.value));let{done:T}=w;y||null===a||(T=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&T);return S&&p!==zs&&(w.value=yo(u,this.options,f,this.speed)),m&&m(w.value),S&&this.finish(),w}then(t,e){return this.finished.then(t,e)}get duration(){return Ji(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ji(t)}get time(){return Ji(this.currentTime)}set time(t){t=Zi(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Z.now());const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=Ji(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=ys,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();const n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=e??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Z.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,es.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function bo(t){return new So(t)}const Po=t=>t.startsWith("--");function Eo(t,e,n){Po(e)?t.style.setProperty(e,n):t.style[e]=n}function Ao(t){let e;return()=>(void 0===e&&(e=t()),e)}const Mo=Ao(()=>void 0!==window.ScrollTimeline),Vo={};function Co(t,e){const n=Ao(t);return()=>Vo[e]??n()}const Ro=Co(()=>{try{document.createElement("div").animate({opacity:0}
2,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),ko=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,Do={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ko([0,.65,.55,1]),circOut:ko([.55,0,1,.45]),backIn:ko([.31,.01,.66,-.59]),backOut:ko([.33,1.53,.69,.99])};function Lo(t,e){return t?"function"==typeof t?Ro()?vs(t,e):"ease-out":oo(t)?ko(t):Array.isArray(t)?t.map(t=>Lo(t,e)||Do.easeOut):Do[t]:void 0}function Bo(t,e,n,{delay:i=0,duration:s=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[e]:n};l&&(c.offset=l);const h=Lo(a,s);Array.isArray(h)&&(c.easing=h),C.value&&es.waapi++;const d={delay:i,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:"reverse"===r?"alternate":"normal"};u&&(d.pseudoElement=u);const p=t.animate(c,d);return C.value&&p.finished.finally(()=>{es.waapi--}),p}function jo(t){return"function"==typeof t&&"applyToOptions"in t}function Io({type:t,...e}){return jo(t)&&Ro()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class Oo extends wo{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:n,keyframes:i,pseudoElement:s,allowFlatten:o=!1,finalKeyframe:r,onComplete:a}=t;this.isPseudoElement=Boolean(s),this.allowFlatten=o,this.options=t,ri("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=Io(t);this.animation=Bo(e,n,i,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const t=yo(i,this.options,r,this.speed);this.updateMotionValue?this.updateMotionValue(t):Eo(e,n,t),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Ji(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ji(t)}get time(){return Ji(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Zi(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&Mo()?(this.animation.timeline=t,A):e(this)}}const Fo={anticipate:eo,backInOut:to,circInOut:so};function Wo(t){"string"==typeof t.ease&&t.ease in Fo&&(t.ease=Fo[t.ease])}class Uo extends Oo{constructor(t){Wo(t),xo(t),super(t),void 0!==t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:e,onUpdate:n,onComplete:i,element:s,...o}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);const r=new So({...o,autoplay:!1}),a=Math.max(10,Z.now()-this.startTime),l=yt(0,10,a-10);e.setWithVelocity(r.sample(Math.max(0,a-l)).value,r.sample(a).value,l),r.stop()}}const No=(t,e)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!se.test(t)&&"0"!==t||t.startsWith("url(")));function $o(t){t.duration=0,t.type="keyframes"}const zo=new Set(["opacity","clipPath","filter","transform"]),Ho=Ao(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Xo(t){const{motionValue:e,name:n,repeatDelay:i,repeatType:s,damping:o,type:r}=t,a=e?.owner?.current;if(!(a instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=e.owner.getProps();return Ho()&&n&&zo.has(n)&&("transform"!==n||!u)&&!l&&!i&&"mirror"!==s&&0!==o&&"inertia"!==r}class Yo extends wo{constructor({autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:
2o="loop",keyframes:r,name:a,motionValue:l,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Z.now();const h={autoplay:t,delay:e,type:n,repeat:i,repeatDelay:s,repeatType:o,name:a,motionValue:l,element:u,...c},d=u?.KeyframeResolver||Wt;this.keyframeResolver=new d(r,(t,e,n)=>this.onKeyframesResolved(t,e,h,!n),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,n,i){this.keyframeResolver=void 0;const{name:s,type:o,velocity:r,delay:a,isHandoff:l,onUpdate:u}=n;this.resolvedAt=Z.now(),function(t,e,n,i){const s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;const o=t[t.length-1],r=No(s,e),a=No(o,e);return oi(r===a,`You are trying to animate ${e} from "${s}" to "${o}". "${r?o:s}" is not an animatable value.`,"value-not-animatable"),!(!r||!a)&&(function(t){const e=t[0];if(1===t.length)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}(t)||("spring"===n||jo(n))&&i)}(t,s,o,r)||(!M.instantAnimations&&a||u?.(yo(t,n,e)),t[0]=t[t.length-1],$o(n),n.repeat=0);const c={startTime:i?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...n,keyframes:t},h=!l&&Xo(c),d=c.motionValue?.owner?.current,p=h?new Uo({...c,element:d}):new So(c);p.finished.then(()=>{this.notifyFinished()}).catch(A),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Ft()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const Ko={type:"spring",stiffness:500,damping:25,restSpeed:10},Go={type:"keyframes",duration:.8},_o={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},qo=(t,{keyframes:e})=>e.length>2?Go:gt.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:Ko:_o,Zo=t=>null!==t;function Jo(t,{repeat:e,repeatType:n="loop"},i){const s=t.filter(Zo),o=e&&"loop"!==n&&e%2==1?0:s.length-1;return o&&void 0!==i?i:s[o]}function Qo({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const tr=(t,e,n,i={},s,o)=>r=>{const a=zi(i,t)||{},l=a.delay||i.delay||0;let{elapsed:u=0}=i;u-=Zi(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:s};Qo(a)||Object.assign(c,qo(t,c)),c.duration&&(c.duration=Zi(c.duration)),c.repeatDelay&&(c.repeatDelay=Zi(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let h=!1;if((!1===c.type||0===c.duration&&!c.repeatDelay)&&($o(c),0===c.delay&&(h=!0)),(M.instantAnimations||M.skipAnimations||s?.shouldSkipAnimations)&&(h=!0,$o(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,h&&!o&&void 0!==e.get()){const t=Jo(c.keyframes,a);if(void 0!==t)return void k.update(()=>{c.onUpdate(t),c.onComplete()})}return a.isSync?new So(c):new Yo(c)};function er({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}function nr(t,e,{delay:n=0,transitionOverride:i,type:s}={}){let{transition:o,transitionEnd:r,...a}=e;const l=t.getDefaultTransition();o=o?$i(o,l):l;const u=o?.reduceMotion;i&&(o=i);const c=[],h=s&&t.animationState&&t.animationState.getState()[s];for(const e in a){const i=t.getValue(e,t.latestValues[e]??null),s=a[e];if(void 0===s||h&&er(h,e))continue;const r={delay:n,...zi(o||{},e)},l=i.get();if(void 0!==l&&!i.isAnimating&&!Array.isArray(s)&&s===l&&!r.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){const n=qi(t);if(n){const t=window.MotionHandoffAnimation(n,e,k);null!==t&&(r.startTime=t,d=!0)}}_i(t,e);const p=u??t.shouldReduceMotion;i.start(tr(e,i,s,p&&si.has(e)?{type:!1}:r,t,d));const m=i.animation;m&&c.push(m)}if(r){const e=()=>k.update(()=>{r&&Ki(t,r)});c.length?Promise.all(c).then(e):e()}return c}function ir(t,e,n,i=0,s=1){const o=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),r=t.size,a=(r-1)*i;return"function"==typeof n?n(o,r):1===s?o*i:a-o*i}function sr(t,e,n={}){const i=Ni(t,e,"exit"===n.type?t.presenceContext?.custom:void 0);let{transition:s=t.getDefaultTransition()||{}}=i||{};
vendor: 17,324 bytes, line 2
2n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(nr(t,i,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(i=0)=>{const{delayChildren:o=0,staggerChildren:r,staggerDirection:a}=s;return function(t,e,n=0,i=0,s=0,o=1,r){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),a.push(sr(l,e,{...r,delay:n+("function"==typeof i?0:i)+ir(t.variantChildren,l,i,s,o)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,i,o,r,a,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[t,e]="beforeChildren"===a?[o,r]:[r,o];return t().then(()=>e())}return Promise.all([o(),r(n.delay)])}function or(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e)){const s=e.map(e=>sr(t,e,n));i=Promise.all(s)}else if("string"==typeof e)i=sr(t,e,n);else{const s="function"==typeof e?Ni(t,e,n.custom):e;i=Promise.all(nr(t,s,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}const rr=De.length;function ar(t){if(!t)return;if(!t.isControllingVariants){const e=t.parent&&ar(t.parent)||{};return void 0!==t.props.initial&&(e.initial=t.props.initial),e}const e={};for(let n=0;n<rr;n++){const i=De[n],s=t.props[i];(Re(s)||!1===s)&&(e[i]=s)}return e}function lr(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}const ur=[...ke].reverse(),cr=ke.length;function hr(t){let e=function(t){return e=>Promise.all(e.map(({animation:e,options:n})=>or(t,e,n)))}(t),n=mr(),i=!0;const s=e=>(n,i)=>{const s=Ni(t,i,"exit"===e?t.presenceContext?.custom:void 0);if(s){const{transition:t,transitionEnd:e,...i}=s;n={...n,...i,...e}}return n};function o(o){const{props:r}=t,a=ar(t.parent)||{},l=[],u=new Set;let c={},h=1/0;for(let e=0;e<cr;e++){const d=ur[e],p=n[d],m=void 0!==r[d]?r[d]:a[d],f=Re(m),g=d===o?p.isActive:null;!1===g&&(h=e);let y=m===a[d]&&m!==r[d]&&f;if(y&&i&&t.manuallyAnimateOnMount&&(y=!1),p.protectedKeys={...c},!p.isActive&&null===g||!m&&!p.prevProp||Ce(m)||"boolean"==typeof m)continue;const v=dr(p.prevProp,m);let x=v||d===o&&p.isActive&&!y&&f||e>h&&f,w=!1;const T=Array.isArray(m)?m:[m];let S=T.reduce(s(d),{});!1===g&&(S={});const{prevResolvedValues:b={}}=p,P={...b,...S},E=e=>{x=!0,u.has(e)&&(w=!0,u.delete(e)),p.needsAnimating[e]=!0;const n=t.getValue(e);n&&(n.liveStyle=!1)};for(const t in P){const e=S[t],n=b[t];if(c.hasOwnProperty(t))continue;let i=!1;i=Hi(e)&&Hi(n)?!lr(e,n):e!==n,i?null!=e?E(t):u.add(t):void 0!==e&&u.has(t)?E(t):p.protectedKeys[t]=!0}p.prevProp=m,p.prevResolvedValues=S,p.isActive&&(c={...c,...S}),i&&t.blockInitialAnimation&&(x=!1);const A=y&&v;x&&(!A||w)&&l.push(...T.map(e=>{const n={type:d};if("string"==typeof e&&i&&!A&&t.manuallyAnimateOnMount&&t.parent){const{parent:i}=t,s=Ni(i,e);if(i.enteringChildren&&s){const{delayChildren:e}=s.transition||{};n.delay=ir(i.enteringChildren,t,e)}}return{animation:e,options:n}}))}if(u.size){const e={};if("boolean"!=typeof r.initial){const n=Ni(t,Array.isArray(r.initial)?r.initial[0]:r.initial);n&&n.transition&&(e.transition=n.transition)}u.forEach(n=>{const i=t.getBaseTarget(n),s=t.getValue(n);s&&(s.liveStyle=!0),e[n]=i??null}),l.push({animation:e})}let d=Boolean(l.length);return!i||!1!==r.initial&&r.initial!==r.animate||t.manuallyAnimateOnMount||(d=!1),i=!1,d?e(l):Promise.resolve()}return{animateChanges:o,setActive:function(e,i){if(n[e].isActive===i)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,i)),n[e].isActive=i;const s=o(e);for(const t in n)n[t].protectedKeys={};return s},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=mr()}}}function dr(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!lr(e,t)}function pr(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function mr(){return{animate:pr(!0),whileInView:pr(),whileHover:pr(),whileTap:pr(),whileDrag:pr(),whileFocus:pr(),exit:pr()}}let fr=0;const gr={animation:{Feature:class extends Ui{constructor(t){super(t),t.animationState||(t.animationState=hr(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ce(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends Ui{constructor(){super(...arguments),this.id=fr++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const i=this.node.animationState.setActive("exit",!t);e&&!t&&i.then(()=>{e(this.id)})}mount(){const{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}}},yr={x:!1,y:!1};function vr(){return yr.x||yr.y}function xr(t){return"x"===t||"y"===t?yr[t]?null:(yr[t]=!0,()=>{yr[t]=!1}):yr.x||yr.y?null:(yr.x=yr.y=!0,()=>{yr.x=yr.y=!1})}function wr(t){return[t("x"),t("y")]}function Tr(t){return t.max-t.min}function Sr(t,e,n){return Math.abs(t-e)<=n}function br(t,e,n,i=.5){t.origin=i,t.originPoint=pn(e.min,e.max,t.origin),t.scale=Tr(n)/Tr(e),t.translate=pn(n.min,n.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function Pr(t,e,n,i){br(t.x,e.x,n.x,i?i.originX:void 0),br(t.y,e.y,n.y,i?i.originY:void 0)}function Er(t,e,n){t.min=n.min+e.min,t.max=t.min+Tr(e)}function Ar(t,e,n){Er(t.x,e.x,n.x),Er(t.y,e.y,n.y)}function Mr(t,e,n){t.min=e.min-n.min,t.max=t.min+Tr(e)}function Vr(t,e,n){Mr(t.x,e.x,n.x),Mr(t.y,e.y,n.y)}const Cr=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Rr(t){return Cr.has(t.tagName)||!0===t.isContentEditable}const kr=new Set(["INPUT","SELECT","TEXTAREA"]);function Dr(t){return kr.has(t.tagName)||!0===t.isContentEditable}function Lr(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}const Br=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function jr(t){return{point:{x:t.pageX,y:t.pageY}}}const Ir=t=>e=>Br(e)&&t(e,jr(e));function Or(t,e,n,i){return Lr(t,e,Ir(n),i)}const Fr=({current:t})=>t?t.ownerDocument.defaultView:null,Wr=(t,e)=>Math.abs(t-e);function Ur(t,e){const n=Wr(t.x,e.x),i=Wr(t.y,e.y);return Math.sqrt(n**2+i**2)}const Nr=new Set(["auto","scroll"]);class $r{constructor(t,e,{transformPagePoint:n,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:o=3,element:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=Xr(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=Ur(t.offset,{x:0,y:0})>=this.distanceThreshold;if(!e&&!n)return;const{point:i}=t,{timestamp:s}=L;this.history.push({...i,timestamp:s});const{onStart:o,onMove:r}=this.handlers;e||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),r&&r(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=zr(e,this.transformPagePoint),k.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:i,resumeAnimation:s}=this.handlers;if(!this.dragSnapToOrigin&&this.startEvent||s&&s(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=Xr("pointercancel"===t.type?this.lastMoveEventInfo:zr(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),i&&i(t,o)},!Br(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=i||window;const a=zr(jr(t),this.transformPagePoint),{point:l}=a,{timestamp:u}=L;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=e;c&&c(t,Xr(a,this.history)),this.removeListeners=ts(Or(this.contextWindow,"pointermove",this.handlePointerMove),Or(this.contextWindow,"pointerup",this.handlePointerUp),Or(this.contextWindow,"pointercancel",this.handlePointerUp)),r&&this.startScrollTracking(r)}startScrollTracking(t){let e=t.parentElement;for(;e;){const t=getComputedStyle(e);(Nr.has(t.overflowX)||Nr.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const e=this.scrollPositions.get(t);if(!e)return;const n=t===window,i=n?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s=i.x-e.x,o=i.y-e.y;0===s&&0===o||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s,this.lastMoveEventInfo.point.y+=o):this.history.length>0&&(this.history[0].x-=s,this.history[0].y-=o),this.scrollPositions.set(t,i),k.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),D(this.updatePoint)}}function zr(t,e){return e?{point:e(t.point)}:t}function Hr(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Xr({point:t},e){return{point:t,delta:Hr(t,Kr(e)),offset:Hr(t,Yr(e)),velocity:Gr(e,.1)}}function Yr(t){return t[0]}function Kr(t){return t[t.length-1]}function Gr(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const s=Kr(t);for(;n>=0&&(i=t[n],!(s.timestamp-i.timestamp>Zi(e)));)n--;if(!i)return{x:0,y:0};const o=Ji(s.timestamp-i.timestamp);if(0===o)return{x:0,y:0};const r={x:(s.x-i.x)/o,y:(s.y-i.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function _r(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function qr(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}const Zr=.35;function Jr(t,e,n){return{min:Qr(t,e),max:Qr(t,n)}}function Qr(t,e){return"number"==typeof t?t:t[e]||0}const ta=new WeakMap;class ea{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=be(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:n}={}){const{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;const{dragSnapToOrigin:s}=this.getProps();this.panSession=new $r(t,{onSessionStart:t=>{e?(this.stopAnimation(),this.snapToCursor(jr(t).point)):this.pauseAnimation()},onStart:(t,e)=>{this.stopAnimation();const{drag:n,dragPropagation:i,onDragStart:s}=this.getProps();if(n&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock=xr(n),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),wr(t=>{let e=this.getAxisMotionValue(t).get()||0;if(bt.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const i=n.layout.layoutBox[t];if(i){e=Tr(i)*(parseFloat(e)/100)}}}this.originPoint[t]=e}),s&&k.postRender(()=>s(t,e)),_i(this.visualElement,"transform");const{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;const{dragPropagation:n,dragDirectionLock:i,onDirectionLock:s,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:r}=e;if(i&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(r),void(null!==this.currentDirection&&s&&s(this.currentDirection));this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>wr(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,distanceThreshold:n,contextWindow:Fr(this.visualElement),element:this.visualElement.current})}stop(t,e){const n=t||this.latestPointerEvent,i=e||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!n)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:r}=this.getProps();r&&k.postRender(()=>r(n,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){const{drag:i}=this.getProps();if(!n||!na(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:n},i){return void 0!==e&&t<e?t=i?pn(e,t,i.min):Math.max(t,e):void 0!==n&&t>n&&(t=i?pn(n,t,i.max):Math.min(t,n)),t}(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){const{dragConstraints:t,dragElastic:e}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&Zn(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!n)&&function(t,{top:e,left:n,bottom:i,right:s}){return{x:_r(t.x,n,s),y:_r(t.y,e,i)}}(n.layoutBox,t),this.elastic=function(t=Zr){return!1===t?t=0:!0===t&&(t=Zr),{x:Jr(t,"left","right"),y:Jr(t,"top","bottom")}}(e),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&wr(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!Zn(t))return!1;const n=t.current;ri(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=Oi(n,i.root,this.visualElement.getTransformPagePoint());let o=function(t,e){return{x:qr(t.x,e.x),y:qr(t.y,e.y)}}(i.layout.layoutBox,s);if(e){const t=e(xi(o));this.hasMutatedConstraints=!!t,t&&(o=vi(t))}return o}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},l=wr(r=>{if(!na(r,e,this.currentDirection))return;let l=a&&a[r]||{};o&&(l={min:0,max:0});const u=i?200:1e6,c=i?40:1e7,h={type:"inertia",velocity:n?t[r]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(r,h)});return Promise.all(l).then(r)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return _i(this.visualElement,t),n.start(tr(t,n,0,e,this.visualElement,!1))}stopAnimation(){wr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){wr(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const e=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),i=n[e];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){wr(e=>{const{drag:n}=this.getProps();if(!na(e,n,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(e);if(i&&i.layout){const{min:n,max:o}=i.layout.layoutBox[e],r=s.get()||0;s.set(t[e]-pn(n,o,.5)+r)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!Zn(e)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};wr(t=>{const e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){const n=e.get();i[t]=function(t,e){let n=.5;const i=Tr(t),s=Tr(e);return s>i?n=lo(e.min,e.max-i,t.min):i>s&&(n=lo(t.min,t.max-s,e.min)),yt(0,1,n)}({min:n,max:n},this.constraints[t])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),wr(e=>{if(!na(e,t,null))return;const n=this.getAxisMotionValue(e),{min:s,max:o}=this.constraints[e];n.set(pn(s,o,i[e]))})}addListeners(){if(!this.visualElement.current)return;ta.set(this.visualElement,this);const t=Or(this.visualElement.current,"pointerdown",t=>{const{drag:e,dragListener:n=!0}
2=this.getProps();e&&n&&!Rr(t.target)&&this.start(t)}),e=()=>{const{dragConstraints:t}=this.getProps();Zn(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),k.read(e);const s=Lr(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(wr(e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),t(),i(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=Zr,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:r}}}function na(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const ia=t=>(e,n)=>{t&&k.postRender(()=>t(e,n))};const sa={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let oa=!1;class ra extends o.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:s}=t;s&&(e.group&&e.group.add(s),n&&n.register&&i&&n.register(s),oa&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),sa.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:i,isPresent:s}=this.props,{projection:o}=n;return o?(o.isPresent=s,oa=!0,i||t.layoutDependency!==e||void 0===e||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||k.postRender(()=>{const t=o.getStack();t&&t.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),K.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;oa=!0,i&&(i.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function aa(t){const[e,n]=w(),i=(0,o.useContext)(r);return(0,s.jsx)(ra,{...t,layoutGroup:i,switchLayoutGroup:(0,o.useContext)(qn),isPresent:e,safeToRemove:n})}function la(t,e,n){const i=nt(t)?t:et(t);return i.start(tr("",i,e,n)),i.animation}function ua(t,e){const n=Z.now(),i=({timestamp:s})=>{const o=s-n;o>=e&&(D(i),t(o-e))};return k.setup(i,!0),()=>D(i)}function ca(t,e){return ua(t,Zi(e))}function ha(t){return h(t)&&"ownerSVGElement"in t}function da(t){return ha(t)&&"svg"===t.tagName}const pa=["TopLeft","TopRight","BottomLeft","BottomRight"],ma=pa.length,fa=t=>"string"==typeof t?parseFloat(t):t,ga=t=>"number"==typeof t||Pt.test(t);function ya(t,e,n,i,s,o){s?(t.opacity=pn(0,n.opacity??1,xa(i)),t.opacityExit=pn(e.opacity??1,0,wa(i))):o&&(t.opacity=pn(e.opacity??1,n.opacity??1,i));for(let s=0;s<ma;s++){const o=`border${pa[s]}Radius`;let r=va(e,o),a=va(n,o);if(void 0===r&&void 0===a)continue;r||(r=0),a||(a=0);0===r||0===a||ga(r)===ga(a)?(t[o]=Math.max(pn(fa(r),fa(a),i),0),(bt.test(a)||bt.test(r))&&(t[o]+="%")):t[o]=a}(e.rotate||n.rotate)&&(t.rotate=pn(e.rotate||0,n.rotate||0,i))}function va(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const xa=Ta(0,.5,io),wa=Ta(.5,.95,A);function Ta(t,e,n){return i=>i<t?0:i>e?1:n(lo(t,e,i))}function Sa(t,e){t.min=e.min,t.max=e.max}function ba(t,e){Sa(t.x,e.x),Sa(t.y,e.y)}function Pa(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Ea(t,e,n,i,s){return t=Ai(t-=e,1/n,i),void 0!==s&&(t=Ai(t,1/s,i)),t}function Aa(t,e=0,n=1,i=.5,s,o=t,r=t){if(bt.test(e)){e=parseFloat(e);e=pn(r.min,r.max,e/100)-r.min}if("number"!=typeof e)return;let a=pn(o.min,o.max,i);t===o&&(a-=e),t.min=Ea(t.min,e,n,a,s),t.max=Ea(t.max,e,n,a,s)}function Ma(t,e,[n,i,s],o,r){Aa(t,e[n],e[i],e[s],e.scale,o,r)}const Va=["x","scaleX","originX"],Ca=["y","scaleY","originY"];function Ra(t,e,n,i){Ma(t.x,e,Va,n?n.x:void 0,i?i.x:void 0),Ma(t.y,e,Ca,n?n.y:void 0,i?i.y:void 0)}function ka(t){return 0===t.translate&&1===t.scale}function Da(t){return ka(t.x)&&ka(t.y)}function La(t,e){return t.min===e.min&&t.max===e.max}function Ba(t,e){return La(t.x,e.x)&&La(t.y,e.y)}function ja(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Ia(t,e){return ja(t.x,e.x)&&ja(t.y,e.y)}function Oa(t){return Tr(t.x)/Tr(t.y)}function Fa(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Wa{constructor(){this.members=[]}add(t){z(this.members,t),t.scheduleRender()}remove(t){if(H(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}
2}relegate(t){const e=this.members.findIndex(e=>t===e);if(0===e)return!1;let n;for(let t=e;t>=0;t--){const e=this.members[t];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(t,e){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender();const i=n.options.layoutDependency,s=t.options.layoutDependency;void 0!==i&&void 0!==s&&i===s||(t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0));const{crossfade:o}=t.options;!1===o&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Ua(t,e,n){let i="";const s=t.x.translate/e.x,o=t.y.translate/e.y,r=n?.z||0;if((s||o||r)&&(i=`translate3d(${s}px, ${o}px, ${r}px) `),1===e.x&&1===e.y||(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:t,rotate:e,rotateX:s,rotateY:o,skewX:r,skewY:a}=n;t&&(i=`perspective(${t}px) ${i}`),e&&(i+=`rotate(${e}deg) `),s&&(i+=`rotateX(${s}deg) `),o&&(i+=`rotateY(${o}deg) `),r&&(i+=`skewX(${r}deg) `),a&&(i+=`skewY(${a}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return 1===a&&1===l||(i+=`scale(${a}, ${l})`),i||"none"}const Na=(t,e)=>t.depth-e.depth;class $a{constructor(){this.children=[],this.isDirty=!1}add(t){z(this.children,t),this.isDirty=!0}remove(t){H(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Na),this.isDirty=!1,this.children.forEach(t)}}const za={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Ha=["","X","Y","Z"];let Xa=0;function Ya(t,e,n,i){const{latestValues:s}=e;s[t]&&(n[t]=s[t],e.setStaticValue(t,0),i&&(i[t]=0))}function Ka(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:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",k,!(e||i))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&Ka(i)}function Ga({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(t={},n=e?.()){this.id=Xa++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,C.value&&(za.nodes=za.calculatedTargetDeltas=za.calculatedProjections=0),this.nodes.forEach(Za),this.nodes.forEach(sl),this.nodes.forEach(ol),this.nodes.forEach(Ja),C.addProjectionMetrics&&C.addProjectionMetrics(za)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new $a)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new Y),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=ha(e)&&!da(e),this.instance=e;const{layoutId:n,layout:i,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(i||n)&&(this.isLayoutDirty=!0),t){let n,i=0;const s=()=>this.root.updateBlockedByResize=!1;k.read(()=>{i=window.innerWidth}),t(e,()=>{const t=window.innerWidth;t!==i&&(i=t,this.root.updateBlockedByResize=!0,n&&n(),n=ua(s,250),sa.hasAnimatedSinceResize&&(sa.hasAnimatedSinceResize=!1,this.nodes.forEac
vendor: 5,305 bytes, line 2
2h(il)))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&s&&(n||i)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||s.getDefaultTransition()||hl,{onLayoutAnimationStart:r,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!Ia(this.targetLayout,i),u=!e&&n;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const e={...zi(o,"layout"),onPlay:r,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u)}else e||il(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),D(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(rl),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ka(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){const e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;const i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(tl);if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(el);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(nl),this.nodes.forEach(_a),this.nodes.forEach(qa)):this.nodes.forEach(el),this.clearAllSnapshots();const t=Z.now();L.delta=yt(0,1e3/60,t-L.timestamp),L.timestamp=t,L.isProcessing=!0,B.update.process(L),B.preRender.process(L),B.render.process(L),L.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,K.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Qa),this.sharedNodes.forEach(al)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,k.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){k.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||Tr(this.snapshot.measuredBox.x)||Tr(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++){this.path[t].updateScroll()}const t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=be(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){const e=i(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!s)return;const t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!Da(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,o=i!==this.prevTransformTemplateValue;t&&this.instance&&(e||bi(this.latestValues)||o)&&(s(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var i;return t&&(n=this.removeTransform(n)),ml((i=n).x),ml(i.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return be();const e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(gl))){const{scroll:t}=this.root;t&&(Li(e.x,t.offset.x),Li(e.y,t.offset.y))}return e}
2removeElementScroll(t){const e=be();if(ba(e,t),this.scroll?.wasRoot)return e;for(let n=0;n<this.path.length;n++){const i=this.path[n],{scroll:s,options:o}=i;i!==this.root&&s&&o.layoutScroll&&(s.wasRoot&&ba(e,t),Li(e.x,s.offset.x),Li(e.y,s.offset.y))}return e}applyTransform(t,e=!1){const n=be();ba(n,t);for(let t=0;t<this.path.length;t++){const i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&ji(n,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),bi(i.latestValues)&&ji(n,i.latestValues)}return bi(this.latestValues)&&ji(n,this.latestValues),n}removeTransform(t){const e=be();ba(e,t);for(let t=0;t<this.path.length;t++){const n=this.path[t];if(!n.instance)continue;if(!bi(n.latestValues))continue;Si(n.latestValues)&&n.updateSnapshot();const i=be();ba(i,n.measurePageBox()),Ra(e,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,i)}return bi(this.latestValues)&&Ra(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==L.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){const e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);const n=Boolean(this.resumingFrom)||this!==e;if(!(t||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:i,layoutId:s}=this.options;if(!this.layout||!i&&!s)return;this.resolvedRelativeTargetAt=L.timestamp;const o=this.getClosestProjectingParent();o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=be(),this.targetWithTransforms=be()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Ar(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):ba(this.target,this.layout.layoutBox),Ci(this.target,this.targetDelta)):ba(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,o&&Boolean(o.resumingFrom)===Boolean(this.resumingFrom)&&!o.options.layoutScroll&&o.target&&1!==this.animationProgress?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0),C.value&&za.calculatedTargetDeltas++)}getClosestProjectingParent(){if(this.parent&&!Si(this.parent.latestValues)&&!Pi(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,n){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=be(),this.relativeTargetOrigin=be(),Vr(this.relativeTargetOrigin,e,n),ba(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const t=this.getLead(),e=Boolean(this.resumingFrom)||this!==t;let n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===L.timestamp&&(n=!1),n)return;const{layout:i,layoutId:s}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!i&&!s)return;ba(this.layoutCorrected,this.layout.layoutBox);const o=this.treeScale.x,r=this.treeScale.y;Di(this.layoutCorrected,this.treeScale,this.path,e),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms=be());const{target:a}=t;a?(this.projectionDelta&&this.prevProjectionDelta?(Pa(this.prevProjectionDelta.x,this.projectionDelta.x),Pa(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),Pr(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===o&&this.treeScale.y===r&&Fa(this.projectionDelta.x,this.prevProjectionDelta.x)&&Fa(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),C.value&&za.calculatedProjections++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Te(),this.projectionDelta=Te(),this.projectionDeltaWithTransform=Te()}setAnimationOrigin(t,e=!1){const n=this.snapshot,i=n?n.latestValues:{},s={...this.latestValues},o=Te();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const r=be(),a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,c=Boolean(a&&!u&&!0===this.options.crossfade&&!this.path.some(cl));let h;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var l,d,p,m;
2ll(o.x,t.x,n),ll(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Vr(r,this.layout.layoutBox,this.relativeParent.layout.layoutBox),l=this.relativeTarget,d=this.relativeTargetOrigin,p=r,m=n,ul(l.x,d.x,p.x,m),ul(l.y,d.y,p.y,m),h&&Ba(this.relativeTarget,h)&&(this.isProjectionDirty=!1),h||(h=be()),ba(h,this.relativeTarget)),a&&(this.animationValues=s,ya(s,i,this.latestValues,n,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(D(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=k.update(()=>{sa.hasAnimatedSinceResize=!0,es.layout++,this.motionValue||(this.motionValue=et(0)),this.currentAnimation=la(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{es.layout--},onComplete:()=>{es.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:i,latestValues:s}=t;if(e&&n&&i){if(this!==t&&this.layout&&i&&fl(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||be();const e=Tr(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const i=Tr(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}ba(e,n),ji(e,s),Pr(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new Wa);this.sharedNodes.get(t).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){const{layoutId:t}=this.options;
vendor: 4,618 bytes, line 2
2return t&&this.getStack()?.lead||this}getPrevLead(){const{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const i=this.getStack();i&&i.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(e=!0),!e)return;const i={};n.z&&Ya("z",t,i,this.animationValues);for(let e=0;e<Ha.length;e++)Ya(`rotate${Ha[e]}`,t,i,this.animationValues),Ya(`skew${Ha[e]}`,t,i,this.animationValues);t.render();for(const e in i)t.setStaticValue(e,i[e]),this.animationValues&&(this.animationValues[e]=i[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible)return void(t.visibility="hidden");const n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=Wn(e?.pointerEvents)||"",void(t.transform=n?n(this.latestValues,""):"none");const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target)return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=Wn(e?.pointerEvents)||""),void(this.hasProjected&&!bi(this.latestValues)&&(t.transform=n?n({},""):"none",this.hasProjected=!1));t.visibility="";const s=i.animationValues||i.latestValues;this.applyTransformsToTarget();let o=Ua(this.projectionDeltaWithTransform,this.treeScale,s);n&&(o=n(s,o)),t.transform=o;const{x:r,y:a}=this.projectionDelta;t.transformOrigin=`${100*r.origin}% ${100*a.origin}% 0`,i.animationValues?t.opacity=i===this?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:t.opacity=i===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(const e in fn){if(void 0===s[e])continue;const{correct:n,applyTo:r,isCSSVariable:a}=fn[e],l="none"===o?s[e]:n(s[e],i);if(r){const e=r.length;for(let n=0;n<e;n++)t[r[n]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=i===this?Wn(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(tl),this.root.sharedNodes.clear()}}}function _a(t){t.updateLayout()}function qa(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=t.layout,{animationType:s}=t.options,o=e.source!==t.layout.source;"size"===s?wr(t=>{const i=o?e.measuredBox[t]:e.layoutBox[t],s=Tr(i);i.min=n[t].min,i.max=i.min+s}):fl(s,e.layoutBox,n)&&wr(i=>{const s=o?e.measuredBox[i]:e.layoutBox[i],r=Tr(n[i]);s.max=s.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[i].max=t.relativeTarget[i].min+r)});const r=Te();Pr(r,n,e.layoutBox);const a=Te();o?Pr(a,t.applyTransform(i,!0),e.measuredBox):Pr(a,n,e.layoutBox);const l=!Da(r);let u=!1;if(!t.resumeFrom){const i=t.getClosestProjectingParent();if(i&&!i.resumeFrom){const{snapshot:s,layout:o}=i;if(s&&o){const r=be();Vr(r,e.layoutBox,s.layoutBox);const a=be();Vr(a,n,o.layoutBox),Ia(r,a)||(u=!0),i.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=r,t.relativeParent=i)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function Za(t){C.value&&za.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Ja(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Qa(t){t.clearSnapshot()}function tl(t){t.clearMeasurements()}function el(t){t.isLayoutDirty=!1}function nl(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function il(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function sl(t){t.resolveTargetDelta()}function ol(t){t.calcProjection()}
vendor: 4,525 bytes, line 2
2function rl(t){t.resetSkewAndRotation()}function al(t){t.removeLeadSnapshot()}function ll(t,e,n){t.translate=pn(e.translate,0,n),t.scale=pn(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function ul(t,e,n,i){t.min=pn(e.min,n.min,i),t.max=pn(e.max,n.max,i)}function cl(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const hl={duration:.45,ease:[.4,0,.1,1]},dl=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),pl=dl("applewebkit/")&&!dl("chrome/")?Math.round:A;function ml(t){t.min=pl(t.min),t.max=pl(t.max)}function fl(t,e,n){return"position"===t||"preserve-aspect"===t&&!Sr(Oa(e),Oa(n),.2)}function gl(t){return t!==t.root&&t.scroll?.wasRoot}const yl=Ga({attachResizeListener:(t,e)=>Lr(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),vl={current:void 0},xl=Ga({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!vl.current){const t=new yl({});t.mount(window),t.setOptions({layoutScroll:!0}),vl.current=t}return vl.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),wl={pan:{Feature:class extends Ui{constructor(){super(...arguments),this.removePointerDownListener=A}onPointerDown(t){this.session=new $r(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Fr(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:ia(t),onStart:ia(e),onMove:n,onEnd:(t,e)=>{delete this.session,i&&k.postRender(()=>i(t,e))}}}mount(){this.removePointerDownListener=Or(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Ui{constructor(t){super(t),this.removeGroupControls=A,this.removeListeners=A,this.controls=new ea(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||A}update(){const{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:xl,MeasureLayout:aa}};function Tl(t,e,n){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let i=document;e&&(i=e.current);const s=n?.[t]??i.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t).filter(t=>null!=t)}function Sl(t,e){const n=Tl(t),i=new AbortController;return[n,{passive:!0,...e,signal:i.signal},()=>i.abort()]}function bl(t,e,n={}){const[i,s,o]=Sl(t,n);return i.forEach(t=>{let n,i=!1,o=!1;const r=e=>{n&&(n(e),n=void 0),t.removeEventListener("pointerleave",l)},a=t=>{i=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),o&&(o=!1,r(t))},l=t=>{"touch"!==t.pointerType&&(i?o=!0:r(t))};t.addEventListener("pointerenter",i=>{if("touch"===i.pointerType||vr())return;o=!1;const r=e(t,i);"function"==typeof r&&(n=r,t.addEventListener("pointerleave",l,s))},s),t.addEventListener("pointerdown",()=>{i=!0,window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",a,s)},s)}),o}function Pl(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover","Start"===n);const s=i["onHover"+n];s&&k.postRender(()=>s(e,jr(e)))}const El=(t,e)=>!!e&&(t===e||El(t,e.parentElement)),Al=new WeakSet;function Ml(t){return e=>{"Enter"===e.key&&t(e)}}function Vl(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function Cl(t){return Br(t)&&!vr()}const Rl=new WeakSet;function kl(t,e,n={}){const[i,s,o]=Sl(t,n),r=t=>{const i=t.currentTarget;if(!Cl(t))return;if(Rl.has(t))return;Al.add(i),n.stopPropagation&&Rl.add(t);const o=e(i,t),r=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),Al.has(i)&&Al.delete(i),Cl(t)&&"function"==typeof o&&o(t,{success:e})},a=t=>{r(t,i===window||i===document||n.useGlobalTarget||El(i,t.target))},l=t=>{r(t,!1)};window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",l,s)};
2return i.forEach(t=>{(n.useGlobalTarget?window:t).addEventListener("pointerdown",r,s),d(t)&&(t.addEventListener("focus",t=>((t,e)=>{const n=t.currentTarget;if(!n)return;const i=Ml(()=>{if(Al.has(n))return;Vl(n,"down");const t=Ml(()=>{Vl(n,"up")});n.addEventListener("keyup",t,e),n.addEventListener("blur",()=>Vl(n,"cancel"),e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)})(t,s)),Rr(t)||t.hasAttribute("tabindex")||(t.tabIndex=0))}),o}function Dl(t,e,n){const{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap","Start"===n);const s=i["onTap"+("End"===n?"":n)];s&&k.postRender(()=>s(e,jr(e)))}const Ll=new WeakMap,Bl=new WeakMap,jl=t=>{const e=Ll.get(t.target);e&&e(t)},Il=t=>{t.forEach(jl)};function Ol(t,e,n){const i=function({root:t,...e}){const n=t||document;Bl.has(n)||Bl.set(n,{});const i=Bl.get(n),s=JSON.stringify(e);return i[s]||(i[s]=new IntersectionObserver(Il,{root:t,...e})),i[s]}(e);return Ll.set(t,n),i.observe(t),()=>{Ll.delete(t),i.unobserve(t)}}const Fl={some:0,all:1};const Wl={inView:{Feature:class extends Ui{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i="some",once:s}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:Fl[i]};return Ol(this.node.current,o,t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,s&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),o=e?n:i;o&&o(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Ui{mount(){const{current:t}=this.node;t&&(this.unmount=kl(t,(t,e)=>(Dl(this.node,e,"Start"),(t,{success:e})=>Dl(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends Ui{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ts(Lr(this.node.current,"focus",()=>this.onFocus()),Lr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends Ui{mount(){const{current:t}=this.node;t&&(this.unmount=bl(t,(t,e)=>(Pl(this.node,e,"Start"),t=>Pl(this.node,t,"End"))))}unmount(){}}}},Ul={layout:{ProjectionNode:xl,MeasureLayout:aa}},Nl=ni({...gr,...Wl,...wl,...Ul},Wi);class $l{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let n=0;n<this.animations.length;n++)this.animations[n][t]=e}attachTimeline(t){const e=this.animations.map(e=>e.attachTimeline(t));return()=>{e.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return zl(this.animations,"duration")}get iterationDuration(){return zl(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(e=>e[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function zl(t,e){let n=0;for(let i=0;i<t.length;i++){const s=t[i][e];null!==s&&s>n&&(n=s)}return n}class Hl extends $l{then(t,e){return this.finished.finally(t).then(()=>{})}}class Xl extends Oo{constructor(t){super(),this.animation=t,t.onfinish=()=>{this.finishedTime=this.time,this.notifyFinished()}}}const Yl=new WeakMap,Kl=(t,e="")=>`${t}:${e}`;function Gl(t){const e=Yl.get(t)||new Map;return Yl.set(t,e),e}const _l=new Set(["borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius","width","maxWidth","height","maxHeight","top","right","bottom","left","inset","insetBlock","insetBlockStart","insetBlockEnd","insetInline","insetInlineStart","insetInlineEnd","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingBlock","paddingBlockStart","paddingBlockEnd","paddingInline","paddingInlineStart","paddingInlineEnd","margin","marginTop","marginRight","marginBottom","marginLeft","marginBlock","marginBlockStart","marginBlockEnd","marginInline","marginInlineStart","marginInlineEnd","fontSize","backgroundPositionX","backgroundPositionY"]);function ql(t,e){for(let n=0;n<t.length;n++)"number"==typeof t[n]&&_l.has(e)&&(t[n]=t[n]+"px")}function Zl(t){return Boolean("function"==typeof t&&Ro()||!t||"string"==typeof t&&(t in Do||Ro())||oo(t)||Array.isArray(t)&&t.every(Zl))}const Jl=Ao(()=>{try{document.createElement("div").animate({opacity:[1]})}catch(t){return!1}return!0}),Ql=new Set(["opacity","clipPath","filter","transform"]);function tu(t){return(e,n)=>{const i=Tl(e),s=[];for(const e of i){const i=t(e,n);s.push(i)}return()=>{for(const t of s)t()}}}class eu{constructor(){this.latest={},this.values=new Map}set(t,e,n,i,s=!0){const o=this.values.get(t);o&&o.onRemove();const r=()=>{const i=e.get();this.latest[t]=s?vn(i,ge[t]):i,n&&k.render(n)};r();const a=e.on("change",r);i&&e.addDependent(i);const l=()=>{a(),n&&D(n),this.values.delete(t),i&&e.removeDependent(i)};return this.values.set(t,{value:e,onRemove:l}),l}get(t){return this.values.get(t)?.value}destroy(){for(const t of this.values.values())t.onRemove()}}function nu(t){const e=new WeakMap,n=[];return(i,s)=>{const o=e.get(i)??new eu;e.set(i,o);for(const e in s){const r=s[e],a=t(i,o,e,r);n.push(a)}return()=>{for(const t of n)t()}}}const iu=(t,e,n,i)=>{const s=function(t,e){if(!(e in t))return!1;const n=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),e)||Object.getOwnPropertyDescriptor(t,e);return n&&"function"==typeof n.set}(t,n),o=s?n:n.startsWith("data")||n.startsWith("aria")?Kn(n):n,r=s?()=>{t[o]=e.latest[n]}:()=>{const i=e.latest[n];null==i?t.removeAttribute(o):t.setAttribute(o,String(i))};return e.set(n,i,r)},su=tu(nu(iu)),ou=nu((t,e,n,i)=>e.set(n,i,()=>{t[n]=e.latest[n]},void 0,!1)),ru={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};const au=new Set(["originX","originY","originZ"]),lu=(t,e,n,i)=>{let s,o;return gt.has(n)?(e.get("transform")||(d(t)||e.get("transformBox")||lu(t,e,"transformBox",new tt("fill-box")),e.set("transform",new tt("none"),()=>{t.style.transform=function(t){let e="",n=!0;for(let i=0;i<ft.length;i++){const s=ft[i],o=t.latest[s];if(void 0===o)continue;let r=!0;if("number"==typeof o)r=o===(s.startsWith("scale")?1:0);else{const t=parseFloat(o);r=s.startsWith("scale")?1===t:0===t}r||(n=!1,e+=`${ru[s]||s}(${t.latest[s]}) `)}return n?"none":e.trim()}(e)})),o=e.get("transform")):au.has(n)?(e.get("transformOrigin")||e.set("transformOrigin",new tt(""),()=>{const n=e.latest.originX??"50%",i=e.latest.originY??"50%",s=e.latest.originZ??0;t.style.transformOrigin=`${n} ${i} ${s}`}),o=e.get("transformOrigin")):s=Po(n)?()=>{t.style.setProperty(n,e.latest[n])}:()=>{t.style[n]=e.latest[n]},e.set(n,i,s,o)},uu=tu(nu(lu));const cu=tu(nu((t,e,n,i)=>{if(n.startsWith("path"))return function(t,e,n,i){return k.render(()=>t.setAttribute("pathLength","1")),"pathOffset"===n?e.set(n,i,()=>{const i=e.latest[n];t.setAttribute("stroke-dashoffset",""+-i)}):(e.get("stroke-dasharray")||e.set("stroke-dasharray",new tt("1 1"),()=>{const{pathLength:n=1,pathSpacing:i}=e.latest;t.setAttribute("stroke-dasharray",`${n} ${i??1-Number(n)}`)}),e.set(n,i,void 0,e.get("stroke-dasharray")))}(t,e,n,i);if(n.startsWith("attr"))return iu(t,e,function(t){return t.replace(/^attr([A-Z])/,(t,e)=>e.toLowerCase())}(n),i);return(n in t.style?lu:iu)(t,e,n,i)}));function hu(t,e){const n=window.getComputedStyle(t);return Po(e)?n.getPropertyValue(e):n[e]}const du=new WeakMap;let pu;const mu=(t,e,n)=>(i,s)=>s&&s[0]?s[0][t+"Size"]:ha(i)&&"getBBox"in i?i.getBBox()[e]:i[n],fu=mu("inline","width","offsetWidth"),gu=mu("block","height","offsetHeight");function yu({target:t,borderBoxSize:e}){du.get(t)?.forEach(n=>
2{n(t,{get width(){return fu(t,e)},get height(){return gu(t,e)}})})}function vu(t){t.forEach(yu)}function xu(t,e){pu||"undefined"!=typeof ResizeObserver&&(pu=new ResizeObserver(vu));const n=Tl(t);return n.forEach(t=>{let n=du.get(t);n||(n=new Set,du.set(t,n)),n.add(e),pu?.observe(t)}),()=>{n.forEach(t=>{const n=du.get(t);n?.delete(e),n?.size||pu?.unobserve(t)})}}const wu=new Set;let Tu;function Su(t){return wu.add(t),Tu||(Tu=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};wu.forEach(e=>e(t))},window.addEventListener("resize",Tu)),()=>{wu.delete(t),wu.size||"function"!=typeof Tu||(window.removeEventListener("resize",Tu),Tu=void 0)}}function bu(t,e){return"function"==typeof t?Su(t):xu(t,e)}function Pu(t,e){let n;const i=()=>{const{currentTime:i}=e,s=(null===i?0:i.value)/100;n!==s&&t(s),n=s};return k.preUpdate(i,!0),()=>D(i)}function Eu(){const{value:t}=C;null!==t?(t.frameloop.rate.push(L.delta),t.animations.mainThread.push(es.mainThread),t.animations.waapi.push(es.waapi),t.animations.layout.push(es.layout)):D(Eu)}function Au(t){return t.reduce((t,e)=>t+e,0)/t.length}function Mu(t,e=Au){return 0===t.length?{min:0,max:0,avg:0}:{min:Math.min(...t),max:Math.max(...t),avg:e(t)}}const Vu=t=>Math.round(1e3/t);function Cu(){C.value=null,C.addProjectionMetrics=null}function Ru(){const{value:t}=C;if(!t)throw new Error("Stats are not being measured");Cu(),D(Eu);const e={frameloop:{setup:Mu(t.frameloop.setup),rate:Mu(t.frameloop.rate),read:Mu(t.frameloop.read),resolveKeyframes:Mu(t.frameloop.resolveKeyframes),preUpdate:Mu(t.frameloop.preUpdate),update:Mu(t.frameloop.update),preRender:Mu(t.frameloop.preRender),render:Mu(t.frameloop.render),postRender:Mu(t.frameloop.postRender)},animations:{mainThread:Mu(t.animations.mainThread),waapi:Mu(t.animations.waapi),layout:Mu(t.animations.layout)},layoutProjection:{nodes:Mu(t.layoutProjection.nodes),calculatedTargetDeltas:Mu(t.layoutProjection.calculatedTargetDeltas),calculatedProjections:Mu(t.layoutProjection.calculatedProjections)}},{rate:n}=e.frameloop;return n.min=Vu(n.min),n.max=Vu(n.max),n.avg=Vu(n.avg),[n.min,n.max]=[n.max,n.min],e}function ku(){if(C.value)throw Cu(),new Error("Stats are already being measured");const t=C;return t.value={frameloop:{setup:[],rate:[],read:[],resolveKeyframes:[],preUpdate:[],update:[],preRender:[],render:[],postRender:[]},animations:{mainThread:[],waapi:[],layout:[]},layoutProjection:{nodes:[],calculatedTargetDeltas:[],calculatedProjections:[]}}
2,t.addProjectionMetrics=e=>{const{layoutProjection:n}=t.value;n.nodes.push(e.nodes),n.calculatedTargetDeltas.push(e.calculatedTargetDeltas),n.calculatedProjections.push(e.calculatedProjections)},k.postRender(Eu,!0),Ru}function Du(t,e){if("first"===t)return 0;{const n=e-1;return"last"===t?n:n/2}}function Lu(t=.1,{startDelay:e=0,from:n=0,ease:i}={}){return(s,o)=>{const r="number"==typeof n?n:Du(n,o),a=Math.abs(r-s);let l=t*a;if(i){const e=o*t;l=ao(i)(l/e)*e}return e+l}}function Bu(...t){const e=!Array.isArray(t[0]),n=e?0:-1,i=t[0+n],s=uo(t[1+n],t[2+n],t[3+n]);return e?s(i):s}function ju(t,e){const n=et(nt(t)?t.get():t);return Iu(n,t,e),n}function Iu(t,e,n={}){const i=t.get();let s,o=null,r=i;const a="string"==typeof i?i.replace(/[\d.-]/g,""):void 0,l=()=>{o&&(o.stop(),o=null)};if(t.attach((e,i)=>{r=e,s=t=>i(Ou(t,a)),k.postRender(()=>{(()=>{l();const e=Fu(t.get()),i=Fu(r);e!==i&&(o=new So({keyframes:[e,i],velocity:t.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...n,onUpdate:s}))})(),t.events.animationStart?.notify(),o?.then(()=>{t.events.animationComplete?.notify()})})},l),nt(e)){const n=e.on("change",e=>t.set(Ou(e,a))),i=t.on("destroy",n);return()=>{n(),i()}}return l}function Ou(t,e){return e?t+e:t}function Fu(t){return"number"==typeof t?t:parseFloat(t)}function Wu(t){const e=[];Q.current=e;const n=t();Q.current=void 0;const i=et(n);return function(t,e,n){const i=()=>e.set(n()),s=()=>k.preRender(i,!1,!0),o=t.map(t=>t.on("change",s));e.on("destroy",()=>{o.forEach(t=>t()),D(i)})}(e,i,t),i}function Uu(t,e,n,i){const s=Bu(e,n,i);return Wu(()=>s(t.get()))}function Nu(t,e){return ju(t,{type:"spring",...e})}function $u(t,e,n){return Iu(t,e,{type:"spring",...n})}function zu(t){return"layout"===t?"group":"enter"===t||"new"===t?"new":"exit"===t||"old"===t?"old":"group"}let Hu={},Xu=null;const Yu=(t,e)=>{Hu[t]=e},Ku=()=>{Xu||(Xu=document.createElement("style"),Xu.id="motion-view");let t="";for(const e in Hu){const n=Hu[e];t+=`${e} {\n`;for(const[e,i]of Object.entries(n))t+=`  ${e}: ${i};\n`;t+="}\n"}Xu.textContent=t,document.head.appendChild(Xu),Hu={}},Gu=()=>{Xu&&Xu.parentElement&&Xu.parentElement.removeChild(Xu)};function _u(t){const e=t.match(/::view-transition-(old|new|group|image-pair)\((.*?)\)/);return e?{layer:e[2],type:e[1]}:null}function qu(t){const{effect:e}=t;return!!e&&(e.target===document.documentElement&&e.pseudoElement?.startsWith("::view-transition"))}function Zu(){return document.getAnimations().filter(qu)}const Ju=["layout","enter","exit","new","old"];function Qu(t){const{update:e,targets:n,options:i}=t;if(!document.startViewTransition)return new Promise(async t=>{await e(),t(new $l([]))});(function(t,e){return e.has(t)&&Object.keys(e.get(t)).length>0})("root",n)||Yu(":root",{"view-transition-name":"none"}),Yu("::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*)",{"animation-timing-function":"linear !important"}),Ku();const s=document.startViewTransition(async()=>{await e()});return s.finished.finally(()=>{Gu()}),new Promise(t=>{s.ready.then(()=>{const e=Zu(),s=[];n.forEach((t,e)=>{for(const n of Ju){if(!t[n])continue;const{keyframes:o,options:r}=t[n];for(let[t,a]of Object.entries(o)){if(!a)continue;const o={...zi(i,t),...zi(r,t)},l=zu(n);if("opacity"===t&&!Array.isArray(a)){a=["new"===l?0:1,a]}"function"==typeof o.delay&&(o.delay=o.delay(0,1)),o.duration&&(o.duration=Zi(o.duration)),o.delay&&(o.delay=Zi(o.delay));const u=new Oo({...o,element:document.documentElement,name:t,pseudoElement:`::view-transition-${l}(${e})`,keyframes:a});s.push(u)}}});for(const t of e){if("finished"===t.playState)continue;const{effect:e}=t;if(!(e&&e instanceof KeyframeEffect))continue;const{pseudoElement:o}=e;if(!o)continue;const r=_u(o);if(!r)continue;const a=n.get(r.layer);if(a)tc(a,"enter")&&tc(a,"exit")&&e.getKeyframes().some(t=>t.mixBlendMode)?s.push(new Xl(t)):t.cancel();else{const n="group"===r.type?"layout":"";let o={...zi(i,n)};o.duration&&(o.duration=Zi(o.duration)),o=Io(o);const a=Lo(o.ease,o.duration);e.updateTiming({delay:Zi(o.delay??0),duration:o.duration,easing:a}),s.push(new Xl(t))}}t(new $l(s))})})}function tc(t,e){return t?.[e]?.keyframes.opacity}let ec=[],nc=null;function ic(){nc=null;const[t]=ec;var e;t&&(H(ec,e=t),nc=e,Qu(e).then(t=>{e.notifyReady(t),t.finished.finally(ic)}))}function sc(){for(let t=ec.length-1;t>=0;t--){const e=ec[t],{interrupt:n}=e.options;if("immediate"===n){const n=ec.slice(0,t+1).map(t=>t.update),i=ec.slice(t+1);e.update=()=>
2{n.forEach(t=>t())},ec=[e,...i];break}}nc&&"immediate"!==ec[0]?.options.interrupt||ic()}class oc{constructor(t,e={}){var n;this.currentSubject="root",this.targets=new Map,this.notifyReady=A,this.readyPromise=new Promise(t=>{this.notifyReady=t}),this.update=t,this.options={interrupt:"wait",...e},n=this,ec.push(n),K.render(sc)}get(t){return this.currentSubject=t,this}layout(t,e){return this.updateTarget("layout",t,e),this}new(t,e){return this.updateTarget("new",t,e),this}old(t,e){return this.updateTarget("old",t,e),this}enter(t,e){return this.updateTarget("enter",t,e),this}exit(t,e){return this.updateTarget("exit",t,e),this}crossfade(t){return this.updateTarget("enter",{opacity:1},t),this.updateTarget("exit",{opacity:0},t),this}updateTarget(t,e,n={}){const{currentSubject:i,targets:s}=this;s.has(i)||s.set(i,{});s.get(i)[t]={keyframes:e,options:n}}then(t,e){return this.readyPromise.then(t,e)}}function rc(t,e={}){return new oc(t,e)}class ac extends $e{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,e){if(function(t,e){return t in e}(e,t)){const n=t[e];if("string"==typeof n||"number"==typeof n)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(t,e){delete e.output[t]}measureInstanceViewportBox(){return be()}build(t,e){Object.assign(t.output,e)}renderInstance(t,{output:e}){Object.assign(t,e)}sortInstanceNodePosition(){return 0}}const lc="[data-layout], [data-layout-id]",uc=()=>{};class cc{constructor(t,e,n){this.sharedTransitions=new Map,this.notifyReady=uc,this.rejectReady=uc,this.scope=t,this.updateDom=e,this.defaultOptions=n,this.readyPromise=new Promise((t,e)=>{this.notifyReady=t,this.rejectReady=e}),k.postRender(()=>{this.start().then(this.notifyReady).catch(this.rejectReady)})}shared(t,e){return this.sharedTransitions.set(t,e),this}then(t,e){return this.readyPromise.then(t,e)}async start(){const t=dc(this.scope),e=this.buildRecords(t);e.forEach(({projection:t})=>{const e=Boolean(t.currentAnimation),n=Boolean(t.options.layoutId);if(e&&n){const e=function(t){const e=t.targetWithTransforms||t.target;if(!e)return;const n=be(),i=be();return ba(n,e),ba(i,e),{animationId:t.root?.animationId??0,measuredBox:n,layoutBox:i,latestValues:t.animationValues||t.latestValues||{},source:t.id}}(t);e?t.snapshot=e:t.snapshot&&(t.snapshot=void 0)}else t.snapshot&&(t.currentAnimation||t.isProjecting())&&(t.snapshot=void 0);t.isPresent=!0,t.willUpdate()}),await this.updateDom();const n=dc(this.scope),i=this.buildRecords(n);this.handleExitingElements(e,i),i.forEach(({projection:t})=>{const e=t.instance,n=t.resumeFrom?.instance;if(!e||!n)return;if(!("style"in e))return;const i=e.style.transform,s=n.style.transform;i&&s&&i===s&&(e.style.transform="",e.style.transformOrigin="")}),i.forEach(({projection:t})=>{t.isPresent=!0});const s=function(t,e){const n=t[0]||e[0];return n?.projection.root}(i,e);s?.didUpdate(),await new Promise(t=>{k.postRender(()=>t())});const o=function(t){const e=new Set;return t.forEach(t=>{const n=t.projection.currentAnimation;n&&e.add(n)}),Array.from(e)}(i);return new $l(o)}buildRecords(t){const e=[],n=new Map;for(const i of t){const t=fc(i,n,this.scope),{layout:s,layoutId:o}=pc(i),r=(o?this.sharedTransitions.get(o):void 0)||this.defaultOptions,a=mc(i,t?.projection,{layout:s,layoutId:o,animationType:"string"==typeof s?s:"both",transition:r});n.set(i,a),e.push(a)}return e}handleExitingElements(t,e){const n=new Set(e.map(t=>t.element));t.forEach(t=>{n.has(t.element)||(t.projection.options.layoutId&&(t.projection.isPresent=!1,t.projection.relegate()),t.visualElement.unmount(),Ve.delete(t.element))});const i=new Set(t.map(t=>t.element));e.forEach(({element:t,projection:e})=>{i.has(t)&&e.resumeFrom&&!e.resumeFrom.instance&&!e.isLead()&&(e.resumeFrom=void 0,e.snapshot=void 0)})}}function hc(t,e,n){if("function"==typeof t)return{scope:document,updateDom:t,defaultOptions:e};return{scope:Tl(t)[0]||document,updateDom:e,defaultOptions:n}}function dc(t){const e=Array.from(t.querySelectorAll(lc));return t instanceof Element&&t.matches(lc)&&(e.includes(t)||e.unshift(t)),e}function pc(t){const e=t.getAttribute("data-layout-id")||void 0,n=t.getAttribute("data-layout");let i;return""===n||"true"===n?i=!0:n&&(i=n),{layout:i,layoutId:e}}function mc(t,e,n){const i=Ve.get(t),s=i??new Fi({props:{},presenceContext:null,visualState:{latestValues:{},renderState:{transform:{},transformOrigin:{},style:{},vars:{}}}},{allowProjection:!0}
2);return i&&s.projection||(s.projection=new xl(s.latestValues,e)),s.projection.setOptions({...n,visualElement:s}),s.current?s.projection.instance||s.projection.mount(t):s.mount(t),i||Ve.set(t,s),{element:t,visualElement:s,projection:s.projection}}function fc(t,e,n){let i=t.parentElement;for(;i;){const t=e.get(i);if(t)return t;if(i===n)break;i=i.parentElement}}const gc=k,yc=V.reduce((t,e)=>(t[e]=t=>D(t),t),{});function vc(t){return(0,o.useEffect)(()=>()=>t(),[])}const xc={renderer:Wi,...gr,...Wl},wc={...xc,...wl,...Ul},Tc={renderer:Wi,...gr};function Sc(t,e,n){(0,o.useInsertionEffect)(()=>t.on(e,n),[t,e,n])}const bc={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function Pc(t,e,n,i){const s=n[e],{length:o,position:r}=bc[e],a=s.current,l=n.time;s.current=t[`scroll${r}`],s.scrollLength=t[`scroll${o}`]-t[`client${o}`],s.offset.length=0,s.offset[0]=0,s.offset[1]=s.scrollLength,s.progress=lo(0,s.scrollLength,s.current);const u=i-l;s.velocity=u>50?0:J(s.current-a,u)}const Ec={start:0,center:.5,end:1};function Ac(t,e,n=0){let i=0;if(t in Ec&&(t=Ec[t]),"string"==typeof t){const e=parseFloat(t);t.endsWith("px")?i=e:t.endsWith("%")?t=e/100:t.endsWith("vw")?i=e/100*document.documentElement.clientWidth:t.endsWith("vh")?i=e/100*document.documentElement.clientHeight:t=e}return"number"==typeof t&&(i=e*t),n+i}const Mc=[0,0];function Vc(t,e,n,i){let s=Array.isArray(t)?t:Mc,o=0,r=0;return"number"==typeof t?s=[t,t]:"string"==typeof t&&(s=(t=t.trim()).includes(" ")?t.split(" "):[t,Ec[t]?t:"0"]),o=Ac(s[0],n,i),r=Ac(s[1],e),o-r}const Cc={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},Rc={x:0,y:0};function kc(t,e,n){const{offset:i=Cc.All}=n,{target:s=t,axis:o="y"}=n,r="y"===o?"height":"width",a=s!==t?function(t,e){const n={x:0,y:0};let i=t;for(;i&&i!==e;)if(d(i))n.x+=i.offsetLeft,n.y+=i.offsetTop,i=i.offsetParent;else if("svg"===i.tagName){const t=i.getBoundingClientRect();i=i.parentElement;const e=i.getBoundingClientRect();n.x+=t.left-e.left,n.y+=t.top-e.top}else{if(!(i instanceof SVGGraphicsElement))break;{const{x:t,y:e}=i.getBBox();n.x+=t,n.y+=e;let s=null,o=i.parentNode;for(;!s;)"svg"===o.tagName&&(s=o),o=i.parentNode;i=s}}return n}(s,t):Rc,l=s===t?{width:t.scrollWidth,height:t.scrollHeight}:function(t){return"getBBox"in t&&"svg"!==t.tagName?t.getBBox():{width:t.clientWidth,height:t.clientHeight}}(s),u={width:t.clientWidth,height:t.clientHeight};e[o].offset.length=0;let c=!e[o].interpolate;const h=i.length;for(let t=0;t<h;t++){const n=Vc(i[t],u[r],l[r],a[o]);c||n===e[o].interpolatorOffsets[t]||(c=!0),e[o].offset[t]=n}c&&(e[o].interpolate=uo(e[o].offset,ho(i),{clamp:!1}),e[o].interpolatorOffsets=[...e[o].offset]),e[o].progress=yt(0,1,e[o].interpolate(e[o].current))}function Dc(t,e,n,i={}){return{measure:e=>{!function(t,e=t,n){if(n.x.targetOffset=0,n.y.targetOffset=0,e!==t){let i=e;for(;i&&i!==t;)n.x.targetOffset+=i.offsetLeft,n.y.targetOffset+=i.offsetTop,i=i.offsetParent}n.x.targetLength=e===t?e.scrollWidth:e.clientWidth,n.y.targetLength=e===t?e.scrollHeight:e.clientHeight,n.x.containerLength=t.clientWidth,n.y.containerLength=t.clientHeight}(t,i.target,n),function(t,e,n){Pc(t,"x",e,n),Pc(t,"y",e,n),e.time=n}(t,n,e),(i.offset||i.target)&&kc(t,n,i)},notify:()=>e(n)}}const Lc=new WeakMap,Bc=new WeakMap,jc=new WeakMap,Ic=t=>t===document.scrollingElement?window:t;function Oc(t,{container:e=document.scrollingElement,...n}={}){if(!e)return A;let i=jc.get(e);i||(i=new Set,jc.set(e,i));const s=Dc(e,t,{time:0,x:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0},y:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}},n);if(i.add(s),!Lc.has(e)){const t=()=>{for(const t of i)t.measure(L.timestamp);k.preUpdate(n)},n=()=>{for(const t of i)t.notify()},s=()=>k.read(t);Lc.set(e,s);const o=Ic(e);window.addEventListener("resize",s,{passive:!0}),e!==document.documentElement&&Bc.set(e,bu(e,s)),o.addEventListener("scroll",s,{passive:!0}),s()}const o=Lc.get(e);return k.read(o,!1,!0),()=>{D(o);const t=jc.get(e);if(!t)return;if(t.delete(s),t.size)return;const n=Lc.get(e);Lc.delete(e),n&&(Ic(e).removeEventListener("scroll",n),Bc.get(e)?.(),window.removeEventListener("resize",n))}}const Fc=new Map;function Wc({source:t,container:e,...n}){const{axis:i}=n;t&&(e=t);const s=Fc.get(e)??new Map;Fc.set(e,s);const o=n.target??"self",r=s.get(o)??{},a=i+(n.offset??[]).join(",");return r[a]||(r[a]=!n.target&&Mo()?new ScrollTimeline({source:e,axis:i}):function(t){const e={value:0},n=Oc(n=>{e.value=100*n[t.axis].progress},t);return{currentTime:e,cancel:n}}({container:e,...n})),r[a]}function Uc(t,{axis:e="y",container:n=document.scrollingElement,...i}={}){if(!n)return A;const s={axis:e,container:n,...i};return"function"==typeof t?function(t,e){return function(t){return 2===t.length}(t)?Oc(n=>
2{t(n[e.axis].progress,n)},e):Pu(t,Wc(e))}(t,s):function(t,e){const n=Wc(e);return t.attachTimeline({timeline:e.target?void 0:n,observe:t=>(t.pause(),Pu(e=>{t.time=t.iterationDuration*e},n))})}(t,s)}const Nc=()=>({scrollX:et(0),scrollY:et(0),scrollXProgress:et(0),scrollYProgress:et(0)}),$c=t=>!!t&&!t.current;function zc({container:t,target:e,...n}={}){const i=a(Nc),s=(0,o.useRef)(null),r=(0,o.useRef)(!1),l=(0,o.useCallback)(()=>(s.current=Uc((t,{x:e,y:n})=>{i.scrollX.set(e.current),i.scrollXProgress.set(e.progress),i.scrollY.set(n.current),i.scrollYProgress.set(n.progress)},{...n,container:t?.current||void 0,target:e?.current||void 0}),()=>{s.current?.()}),[t,e,JSON.stringify(n.offset)]);return u(()=>(r.current=!1,$c(t)||$c(e)?void(r.current=!0):l()),[l]),(0,o.useEffect)(()=>r.current?(ri(!$c(t),"Container ref is defined but not hydrated","use-scroll-ref"),ri(!$c(e),"Target ref is defined but not hydrated","use-scroll-ref"),l()):void 0,[l]),i}function Hc(t){return zc({container:t})}function Xc(){return zc()}function Yc(t){const e=a(()=>et(t)),{isStatic:n}=(0,o.useContext)(p);if(n){const[,n]=(0,o.useState)(t);(0,o.useEffect)(()=>e.on("change",n),[])}return e}function Kc(t,e){const n=Yc(e()),i=()=>n.set(e());return i(),u(()=>{const e=()=>k.preRender(i,!1,!0),n=t.map(t=>t.on("change",e));return()=>{n.forEach(t=>t()),D(i)}}),n}function Gc(t,...e){const n=t.length;return Kc(e.filter(nt),function(){let i="";for(let s=0;s<n;s++){i+=t[s];const n=e[s];n&&(i+=nt(n)?n.get():n)}return i})}function _c(t,e,n,i){if("function"==typeof t)return function(t){Q.current=[],t();const e=Kc(Q.current,t);return Q.current=void 0,e}(t);if(void 0!==n&&!Array.isArray(n)&&"function"!=typeof e)return function(t,e,n,i){const s=a(()=>Object.keys(n)),o=a(()=>({}));for(const r of s)o[r]=_c(t,e,n[r],i);return o}(t,e,n,i);const s="function"==typeof e?e:Bu(e,n,i);return Array.isArray(t)?qc(t,s):qc([t],([t])=>s(t))}function qc(t,e){const n=a(()=>[]);return Kc(t,()=>{n.length=0;const i=t.length;for(let e=0;e<i;e++)n[e]=t[e].get();return e(n)})}function Zc(t,e={}){const{isStatic:n}=(0,o.useContext)(p),i=()=>nt(t)?t.get():t;if(n)return _c(i);const s=Yc(i());return(0,o.useInsertionEffect)(()=>$u(s,t,e),[s,JSON.stringify(e)]),s}function Jc(t){const e=(0,o.useRef)(0),{isStatic:n}=(0,o.useContext)(p);(0,o.useEffect)(()=>{if(n)return;const i=({timestamp:n,delta:i})=>{e.current||(e.current=n),t(n-e.current,i)};return k.update(i,!0),()=>D(i)},[t])}function Qc(){const t=Yc(0);return Jc(e=>t.set(e)),t}function th(t){const e=Yc(t.getVelocity()),n=()=>{const i=t.getVelocity();e.set(i),i&&k.update(n)};return Sc(t,"change",()=>{k.update(n,!1,!0)}),e}class eh extends tt{constructor(){super(...arguments),this.isEnabled=!1}add(t){(gt.has(t)||Ql.has(t))&&(this.isEnabled=!0,this.update())}update(){this.set(this.isEnabled?"transform":"auto")}}function nh(){return a(()=>new eh("auto"))}function ih(){!Ee.current&&Me();const[t]=(0,o.useState)(Pe.current);return t}function sh(){const t=ih(),{reducedMotion:e}=(0,o.useContext)(p);return"never"!==e&&("always"===e||t)}const oh=new Set;function rh(t){return oh.has(t)}function ah(t,e,n){t||oh.has(e)||(console.warn(function(t,e){return e?`${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}`:t}(e,n)),oh.add(e))}const lh=(t,e,n)=>{const i=e-t;return((n-t)%i+i)%i+t};function uh(t,e="end"){return n=>{const i=(n="end"===e?Math.min(n,.999):Math.max(n,.001))*t,s="end"===e?Math.floor(i):Math.ceil(i);return yt(0,1,s/t)}}function ch(t,e){return _s(t)?t[lh(0,t.length,e)]:t}function hh(t,e){[...e].reverse().forEach(n=>{const i=t.getVariant(n);i&&Ki(t,i),t.variantChildren&&t.variantChildren.forEach(t=>{hh(t,e)})})}function dh(){let t=!1;const e=new Set,n={subscribe:t=>(e.add(t),()=>{e.delete(t)}),start(n,i){ri(t,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");const s=[];return e.forEach(t=>{s.push(or(t,n,{transitionOverride:i}))}),Promise.all(s)},set:n=>(ri(t,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),e.forEach(t=>{!function(t,e){Array.isArray(e)?hh(t,e):"string"==typeof e?hh(t,[e]):Ki(t,e)}(t,n)})),stop(){e.forEach(t=>
2{!function(t){t.values.forEach(t=>t.stop())}(t)})},mount:()=>(t=!0,()=>{t=!1,n.stop()})};return n}function ph(t){return"object"==typeof t&&!Array.isArray(t)}function mh(t,e,n,i){return"string"==typeof t&&ph(e)?Tl(t,n,i):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}function fh(t,e,n){return t*(e+1)}function gh(t,e,n,i){return"number"==typeof e?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):"<"===e?n:e.startsWith("<")?Math.max(0,n+parseFloat(e.slice(1))):i.get(e)??t}function yh(t,e,n,i,s,o){!function(t,e,n){for(let i=0;i<t.length;i++){const s=t[i];s.at>e&&s.at<n&&(H(t,s),i--)}}(t,s,o);for(let r=0;r<e.length;r++)t.push({value:e[r],at:pn(s,o,i[r]),easing:ch(n,r)})}function vh(t,e){for(let n=0;n<t.length;n++)t[n]=t[n]/(e+1)}function xh(t,e){return t.at===e.at?null===t.value?1:null===e.value?-1:0:t.at-e.at}function wh(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function Th(t,e){return e[t]||(e[t]=[]),e[t]}function Sh(t){return Array.isArray(t)?t:[t]}function bh(t,e){return t&&t[e]?{...t,...t[e]}:{...t}}const Ph=t=>"number"==typeof t,Eh=t=>t.every(Ph);function Ah(t){const e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=ha(t)&&!da(t)?new yi(e):new Fi(e);n.mount(t),Ve.set(t,n)}function Mh(t){const e=new ac({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});e.mount(t),Ve.set(t,e)}function Vh(t,e,n,i){const s=[];if(function(t,e){return nt(t)||"number"==typeof t||"string"==typeof t&&!ph(e)}(t,e))s.push(la(t,ph(e)&&e.default||e,n&&n.default||n));else{const o=mh(t,e,i),r=o.length;ri(Boolean(r),"No valid elements provided.","no-valid-elements");for(let t=0;t<r;t++){const i=o[t];ri(null!==i,"You're trying to perform an animation on null. Ensure that selectors are correctly finding elements and refs are correctly hydrated.","animate-null");const a=i instanceof Element?Ah:Mh;Ve.has(i)||a(i);const l=Ve.get(i),u={...n};"delay"in u&&"function"==typeof u.delay&&(u.delay=u.delay(t,r)),s.push(...nr(l,{...e,transition:u},{}))}}return s}function Ch(t,e,n){const i=[],s=function(t,{defaultTransition:e={},...n}={},i,s){const o=e.duration||.3,r=new Map,a=new Map,l={},u=new Map;let c=0,h=0,d=0;for(let n=0;n<t.length;n++){const r=t[n];if("string"==typeof r){u.set(r,h);continue}if(!Array.isArray(r)){u.set(r.name,gh(h,r.at,c,u));continue}let[p,m,f={}]=r;void 0!==f.at&&(h=gh(h,f.at,c,u));let g=0;const y=(t,n,i,r=0,a=0)=>{const l=Sh(t),{delay:u=0,times:c=ho(l),type:p="keyframes",repeat:m,repeatType:f,repeatDelay:y=0,...v}=n;let{ease:x=e.ease||"easeOut",duration:w}=n;const T="function"==typeof u?u(r,a):u,S=l.length,b=jo(p)?p:s?.[p||"keyframes"];if(S<=2&&b){let t=100;if(2===S&&Eh(l)){const e=l[1]-l[0];t=Math.abs(e)}const e={...v};void 0!==w&&(e.duration=Zi(w));const n=Ts(e,t,b);x=n.ease,w=n.duration}w??(w=o);const P=h+T;1===c.length&&0===c[0]&&(c[1]=1);const E=c.length-l.length;if(E>0&&co(c,E),1===l.length&&l.unshift(null),m){ri(m<20,"Repeat count too high, must be less than 20","repeat-count-high"),w=fh(w,m);const t=[...l],e=[...c];x=Array.isArray(x)?[...x]:[x];const n=[...x];for(let i=0;i<m;i++){l.push(...t);for(let s=0;s<t.length;s++)c.push(e[s]+(i+1)),x.push(0===s?"linear":ch(n,s-1))}vh(c,m)}const A=P+w;yh(i,l,x,c,P,A),g=Math.max(T+w,g),d=Math.max(A,d)};if(nt(p))y(m,f,Th("default",wh(p,a)));else{const t=mh(p,m,i,l),e=t.length;for(let n=0;n<e;n++){const i=wh(t[n],a);for(const t in m)y(m[t],bh(f,t),Th(t,i),n,e)}}c=h,h+=g}return a.forEach((t,i)=>{for(const s in t){const o=t[s];o.sort(xh);const a=[],l=[],u=[];for(let t=0;t<o.length;t++){const{at:e,value:n,easing:i}=o[t];a.push(n),l.push(lo(0,d,e)),u.push(i||"easeOut")}0!==l[0]&&(l.unshift(0),a.unshift(a[0]),u.unshift("easeInOut")),1!==l[l.length-1]&&(l.push(1),a.push(null)),r.has(i)||r.set(i,{keyframes:{},transition:{}});const c=r.get(i);c.keyframes[s]=a,c.transition[s]={...e,duration:d,ease:u,times:l,...n}}}),r}(t,e,n,{spring:$s});return s.forEach(({keyframes:t,transition:e},n)=>{i.push(...Vh(n,t,e))}),i}function Rh(t){return function(e,n,i){let s,o=[];if(r=e,Array.isArray(r)&&r.some(Array.isArray))o=Ch(e,n,t);else{const{onComplete:r,...a}=i||{};"function"==typeof r&&(s=r),o=Vh(e,n,a,t)}var r;const a=new Hl(o);return s&&a.finished.then(s),t&&(t.animations.push(a),a.finished.then(()=>{H(t.animations,a)})),a}}const kh=Rh();function Dh(){const t=a(()=>({current:null,animations:[]})),e=a(()=>Rh(t));
2return vc(()=>{t.animations.forEach(t=>t.stop()),t.animations.length=0}),[t,e]}const Lh=t=>function(e,n,i){return new Hl(function(t,e,n,i){const s=Tl(t,i),o=s.length;ri(Boolean(o),"No valid elements provided.","no-valid-elements");const r=[];for(let t=0;t<o;t++){const i=s[t],a={...n};"function"==typeof a.delay&&(a.delay=a.delay(t,o));for(const t in e){let n=e[t];Array.isArray(n)||(n=[n]);const s={...zi(a,t)};s.duration&&(s.duration=Zi(s.duration)),s.delay&&(s.delay=Zi(s.delay));const o=Gl(i),l=Kl(t,s.pseudoElement||""),u=o.get(l);u&&u.stop(),r.push({map:o,key:l,unresolvedKeyframes:n,options:{...s,element:i,name:t,allowFlatten:!a.type&&!a.ease}})}}for(let t=0;t<r.length;t++){const{unresolvedKeyframes:e,options:n}=r[t],{element:i,name:s,pseudoElement:o}=n;o||null!==e[0]||(e[0]=hu(i,s)),it(e),ql(e,s),!o&&e.length<2&&e.unshift(hu(i,s)),n.keyframes=e}const a=[];for(let t=0;t<r.length;t++){const{map:e,key:n,options:i}=r[t],s=new Oo(i);e.set(n,s),s.finished.finally(()=>e.delete(n)),a.push(s)}return a}(e,n,i,t))},Bh=Lh();function jh(){const t=a(()=>({current:null,animations:[]})),e=a(()=>Lh(t));return vc(()=>{t.animations.forEach(t=>t.stop())}),[t,e]}function Ih(){const t=a(dh);return u(t.mount,[]),t}const Oh=Ih;function Fh(){const t=(0,o.useContext)(c);return t?t.custom:void 0}function Wh(t,e,n,i){(0,o.useEffect)(()=>{const s=t.current;if(n&&s)return Lr(s,e,n,i)},[t,e,n,i])}class Uh{constructor(){this.componentControls=new Set}subscribe(t){return this.componentControls.add(t),()=>this.componentControls.delete(t)}start(t,e){this.componentControls.forEach(n=>{n.start(t.nativeEvent||t,e)})}cancel(){this.componentControls.forEach(t=>{t.cancel()})}stop(){this.componentControls.forEach(t=>{t.stop()})}}const Nh=()=>new Uh;function $h(){return a(Nh)}function zh(t){return null!==t&&"object"==typeof t&&Xn in t}function Hh(t){if(zh(t))return t[Xn]}function Xh(){return Yh}function Yh(t){vl.current&&(vl.current.isUpdating=!1,vl.current.blockUpdate(),t&&t())}function Kh(){return(0,o.useCallback)(()=>{const t=vl.current;t&&t.resetTree()},[])}function Gh(...t){const e=(0,o.useRef)(0),[n,i]=(0,o.useState)(t[e.current]),s=(0,o.useCallback)(n=>{e.current="number"!=typeof n?lh(0,t.length,e.current+1):n,i(t[e.current])},[t.length,...t]);return[n,s]}const _h={some:0,all:1};function qh(t,e,{root:n,margin:i,amount:s="some"}={}){const o=Tl(t),r=new WeakMap,a=new IntersectionObserver(t=>{t.forEach(t=>{const n=r.get(t.target);if(t.isIntersecting!==Boolean(n))if(t.isIntersecting){const n=e(t.target,t);"function"==typeof n?r.set(t.target,n):a.unobserve(t.target)}else"function"==typeof n&&(n(t),r.delete(t.target))})},{root:n,rootMargin:i,threshold:"number"==typeof s?s:_h[s]});return o.forEach(t=>a.observe(t)),()=>a.disconnect()}function Zh(t,{root:e,margin:n,amount:i,once:s=!1,initial:r=!1}={}){const[a,l]=(0,o.useState)(r);return(0,o.useEffect)(()=>{if(!t.current||s&&a)return;const o={root:e&&e.current||void 0,margin:n,amount:i};return qh(t.current,()=>(l(!0),s?void 0:()=>l(!1)),o)},[e,t,n,s,i]),a}function Jh(){const[t,e]=j(),n=Xh(),i=(0,o.useRef)(-1);return(0,o.useEffect)(()=>{k.postRender(()=>k.postRender(()=>{e===i.current&&(M.instantAnimations=!1)}))},[e]),s=>{n(()=>{M.instantAnimations=!0,t(),s(),i.current=e+1})}}function Qh(){M.instantAnimations=!1}function td(){const[t,e]=(0,o.useState)(!0);return(0,o.useEffect)(()=>{const t=()=>e(!document.hidden);return document.hidden&&t(),document.addEventListener("visibilitychange",t),()=>{document.removeEventListener("visibilitychange",t)}},[]),t}const ed=new Map,nd=new Map,id=(t,e)=>`${t}: ${gt.has(e)?"transform":e}`;function sd(t,e,n){const i=id(t,e),s=ed.get(i);if(!s)return null;const{animation:o,startTime:r}=s;function a(){window.MotionCancelOptimisedAnimation?.(t,e,n)}return o.onfinish=a,null===r||window.MotionHandoffIsComplete?.(t)?(a(),null):r}let od,rd;const ad=new Set;
2function ld(){ad.forEach(t=>{t.animation.play(),t.animation.startTime=t.startTime}),ad.clear()}function ud(t,e,n,i,s){if(window.MotionIsMounted)return;const o=t.dataset[Gn];if(!o)return;window.MotionHandoffAnimation=sd;const r=id(o,e);rd||(rd=Bo(t,e,[n[0],n[0]],{duration:1e4,ease:"linear"}),ed.set(r,{animation:rd,startTime:null}),window.MotionHandoffAnimation=sd,window.MotionHasOptimisedAnimation=(t,e)=>{if(!t)return!1;if(!e)return nd.has(t);const n=id(t,e);return Boolean(ed.get(n))},window.MotionHandoffMarkAsComplete=t=>{nd.has(t)&&nd.set(t,!0)},window.MotionHandoffIsComplete=t=>!0===nd.get(t),window.MotionCancelOptimisedAnimation=(t,e,n,i)=>{const s=id(t,e),o=ed.get(s);o&&(n&&void 0===i?n.postRender(()=>{n.postRender(()=>{o.animation.cancel()})}):o.animation.cancel(),n&&i?(ad.add(o),n.render(ld)):(ed.delete(s),ed.size||(window.MotionCancelOptimisedAnimation=void 0)))},window.MotionCheckAppearSync=(t,e,n)=>{const i=qi(t);if(!i)return;const s=window.MotionHasOptimisedAnimation?.(i,e),o=t.props.values?.[e];if(!s||!o)return;const r=n.on("change",t=>{o.get()!==t&&(window.MotionCancelOptimisedAnimation?.(i,e),r())});return r});const a=()=>{rd.cancel();const o=Bo(t,e,n,i);void 0===od&&(od=performance.now()),o.startTime=od,ed.set(r,{animation:o,startTime:od}),s&&s(o)};nd.set(o,!1),rd.ready?rd.ready.then(a).catch(A):a()}const cd=()=>({});class hd extends $e{constructor(){super(...arguments),this.measureInstanceViewportBox=be}build(){}resetTransform(){}restoreTransform(){}removeValueFromRenderState(){}renderInstance(){}scrapeMotionValuesFromProps(){return{}}getBaseTargetFromProps(){}readValueFromInstance(t,e,n){return n.initialState[e]||0}sortInstanceNodePosition(){return 0}}const dd=Nn({scrapeMotionValuesFromProps:cd,createRenderState:cd});function pd(t){const[e,n]=(0,o.useState)(t),i=dd({},!1),s=a(()=>new hd({props:{onUpdate:t=>{n({...t})}},visualState:i,presenceContext:null},{initialState:t}));(0,o.useLayoutEffect)(()=>(s.mount({}),()=>s.unmount()),[s]);return[e,a(()=>t=>or(s,t))]}let md=0;const fd=({children:t})=>(o.useEffect(()=>{ri(!1,"AnimateSharedLayout is deprecated: https://www.framer.com/docs/guide-upgrade/##shared-layout-animations")},[]),(0,s.jsx)(W,{id:a(()=>"asl-"+md++),children:t})),gd=t=>t>.001?1/t:1e5;let yd=!1;function vd(t){let e=Yc(1),n=Yc(1);const{visualElement:i}=(0,o.useContext)(en);ri(!(!t&&!i),"If no scale values are provided, useInvertedScale must be used within a child of another motion component."),oi(yd,"useInvertedScale is deprecated and will be removed in 3.0. Use the layout prop instead."),yd=!0,t?(e=t.scaleX||e,n=t.scaleY||n):i&&(e=i.getValue("scaleX",1),n=i.getValue("scaleY",1));return{scaleX:_c(e,gd),scaleY:_c(n,gd)}}const xd=(0,o.createContext)(null);function wd({children:t,as:e="ul",axis:n="y",onReorder:i,values:r,...l},u){const c=a(()=>Nl[e]),h=[],d=(0,o.useRef)(!1),p=(0,o.useRef)(null);ri(Boolean(r),"Reorder.Group must be provided a values prop","reorder-values");const m={axis:n,groupRef:p,registerItem:(t,e)=>{const i=h.findIndex(e=>t===e.value);-1!==i?h[i].layout=e[n]:h.push({value:t,layout:e[n]}),h.sort(bd)},updateOrder:(t,e,n)=>{if(d.current)return;const s=function(t,e,n,i){if(!i)return t;const s=t.findIndex(t=>t.value===e);if(-1===s)return t;const o=i>0?1:-1,r=t[s+o];if(!r)return t;const a=t[s],l=r.layout,u=pn(l.min,l.max,.5);return 1===o&&a.layout.max+n>
2u||-1===o&&a.layout.min+n<u?X(t,s,s+o):t}(h,t,e,n);h!==s&&(d.current=!0,i(s.map(Sd).filter(t=>-1!==r.indexOf(t))))}};(0,o.useEffect)(()=>{d.current=!1});const f={overflowAnchor:"none",...l.style};return(0,s.jsx)(c,{...l,style:f,ref:t=>{p.current=t,"function"==typeof u?u(t):u&&(u.current=t)},ignoreStrict:!0,children:(0,s.jsx)(xd.Provider,{value:m,children:t})})}const Td=(0,o.forwardRef)(wd);function Sd(t){return t.value}function bd(t,e){return t.layout.min-e.layout.min}const Pd=new Set(["auto","scroll"]),Ed=new WeakMap,Ad=new WeakMap;let Md=null;function Vd(t,e){const n=getComputedStyle(t),i="x"===e?n.overflowX:n.overflowY;return Pd.has(i)}function Cd(t,e){let n=t?.parentElement;for(;n;){if(Vd(n,e))return n;n=n.parentElement}return null}function Rd(t,e=0){return nt(t)?t:Yc(e)}function kd({children:t,style:e={},value:n,as:i="li",onDrag:r,onDragEnd:l,layout:u=!0,...c},h){const d=a(()=>Nl[i]),p=(0,o.useContext)(xd),m={x:Rd(e.x),y:Rd(e.y)},f=_c([m.x,m.y],([t,e])=>t||e?1:"unset");ri(Boolean(p),"Reorder.Item must be a child of Reorder.Group","reorder-item-child");const{axis:g,registerItem:y,updateOrder:v,groupRef:x}=p;return(0,s.jsx)(d,{drag:g,...c,dragSnapToOrigin:!0,style:{...e,x:m.x,y:m.y,zIndex:f},layout:u,onDrag:(t,e)=>{const{velocity:i,point:s}=e,o=m[g].get();v(n,o,i[g]),function(t,e,n,i){if(!t)return;Md=t;const s=Cd(t,n);if(!s)return;const{amount:o,edge:r}=function(t,e,n){const i=e.getBoundingClientRect(),s=t-("x"===n?i.left:i.top),o=("x"===n?i.right:i.bottom)-t;if(s<50){const t=1-s/50;return{amount:-25*t*t,edge:"start"}}if(o<50){const t=1-o/50;return{amount:25*t*t,edge:"end"}}return{amount:0,edge:null}}(e,s,n);if(null===r)return Ad.delete(s),void Ed.delete(s);if(Ad.get(s)!==r){if(!("start"===r&&i<0||"end"===r&&i>0))return;Ad.set(s,r);const t="x"===n?s.scrollWidth-s.clientWidth:s.scrollHeight-s.clientHeight;Ed.set(s,t)}if(o>0){const t=Ed.get(s);if(("x"===n?s.scrollLeft:s.scrollTop)>=t)return}"x"===n?s.scrollLeft+=o:s.scrollTop+=o}(x.current,s[g],g,i[g]),r&&r(t,e)},onDragEnd:(t,e)=>{!function(){if(Md){const t=Cd(Md,"y");t&&(Ad.delete(t),Ed.delete(t));const e=Cd(Md,"x");e&&e!==t&&(Ad.delete(e),Ed.delete(e)),Md=null}}(),l&&l(t,e)},onLayoutMeasure:t=>{y(n,t)},ref:h,ignoreStrict:!0,children:t})}const Dd=(0,o.forwardRef)(kd)},21020(t,e,n){var i=n(44914),s=Symbol.for("react.element"),o=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,a=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(t,e,n){var i,o={},u=null,c=null;
vendor: 392 bytes, lines 2-3
2for(i in void 0!==n&&(u=""+n),void 0!==e.key&&(u=""+e.key),void 0!==e.ref&&(c=e.ref),e)r.call(e,i)&&!l.hasOwnProperty(i)&&(o[i]=e[i]);if(t&&t.defaultProps)for(i in e=t.defaultProps)void 0===o[i]&&(o[i]=e[i]);return{$$typeof:s,type:t,key:u,ref:c,props:o,_owner:a.current}}e.Fragment=o,e.jsx=u,e.jsxs=u},74848(t,e,n){t.exports=n(21020)}}]);
3//# sourceMappingURL=1029.c4bbb4220cde8cd19a86.js.map

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.