1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2044],{32044:(t,e,i)=>{i.d(e,{z:()=>iQ});class s{constructor(t){this.isMounted=!1,this.node=t}update(){}}var n=i(72025),o=i(4287);let r={x:!1,y:!1};function a(t){return[t("x"),t("y")]}var l=i(11048),h=i(56260);function u(t){return t.max-t.min}function d(t,e,i,s=.5){t.origin=s,t.originPoint=(0,h.k)(e.min,e.max,t.origin),t.scale=u(i)/u(e),t.translate=(0,h.k)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function c(t,e,i,s){d(t.x,e.x,i.x,s?s.originX:void 0),d(t.y,e.y,i.y,s?s.originY:void 0)}function m(t,e,i){t.min=i.min+e.min,t.max=t.min+u(e)}function p(t,e,i){t.min=e.min-i.min,t.max=t.min+u(e)}function f(t,e,i){p(t.x,e.x,i.x),p(t.y,e.y,i.y)}var v=i(27933),y=i(28153),g=i(51469);function x(t,e){let i=t.getValue("willChange");if((0,g.S)(i)&&i.add)return i.add(e);if(!i&&y.W.WillChange){let i=new y.W.WillChange("auto");t.addValue("willChange",i),i.add(e)}}function P({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}function w(t){return void 0===t||1===t}function T({scale:t,scaleX:e,scaleY:i}){return!w(t)||!w(e)||!w(i)}function S(t){return T(t)||E(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function E(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function A(t,e,i,s,n){return void 0!==n&&(t=s+n*(t-s)),s+i*(t-s)+e}function D(t,e=0,i=1,s,n){t.min=A(t.min,e,i,s,n),t.max=A(t.max,e,i,s,n)}function k(t,{x:e,y:i}){D(t.x,e.translate,e.scale,e.originPoint),D(t.y,i.translate,i.scale,i.originPoint)}function V(t,e){t.min=t.min+e,t.max=t.max+e}function L(t,e,i,s,n=.5){let o=(0,h.k)(t.min,t.max,n);D(t,e,i,o,s)}function C(t,e){L(t.x,e.x,e.scaleX,e.scale,e.originX),L(t.y,e.y,e.scaleY,e.scale,e.originY)}function R(t,e){return P(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}(t.getBoundingClientRect(),e))}var b=i(38621),j=i(37035),M=i(14405),B=i(47736),U=i(4132),F=i(94712),O=i(75852),I=i(20754),G=i(25903),W=i(1406),N=i(89722);let H={anticipate:G.b,backInOut:W.ZZ,circInOut:N.tn};class X extends O.m{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in H&&(t.ease=H[t.ease])}(t),(0,I.E)(t),super(t),void 0!==t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:s,element:n,...o}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let r=new M.s({...o,autoplay:!1}),a=Math.max(10,j.k.now()-this.startTime),l=(0,F.q)(0,10,a-10);e.setWithVelocity(r.sample(Math.max(0,a-l)).value,r.sample(a).value,l),r.stop()}}var $=i(5556),z=i(70954),K=i(83399);let Y=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(K.f.test(t)||"0"===t)&&!t.startsWith("url("));function q(t){t.duration=0,t.type="keyframes"}var _=i(40660),Q=i(96291);let Z=new Set(["opacity","clipPath","filter","transform"]),J=(0,Q.p)(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class tt extends _.q{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:s=0,repeatDelay:n=0,repeatType:o="loop",keyframes:r,name:a,motionValue:l,element:h,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=j.k.now();const d={autoplay:t,delay:e,type:i,repeat:s,repeatDelay:n,repeatType:o,name:a,motionValue:l,element:h,...u},c=h?.KeyframeResolver||U.h;this.keyframeResolver=new c(r,(t,e,i)=>this.onKeyframesResolved(t,e,d,!i),a,l,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,s){this.keyframeResolver=void 0;let{name:o,type:r,velocity:a,delay:l,isHandoff:h,onUpdate:u}=i;this.resolvedAt=j.k.now(),!function(t,e,i,s){let n=t[0];if(null===n)return!1;if("display"===e||"visibility"===e)return!0;let o=t[t.length-1],r=Y(n,e),a=Y(o,e);return(0,$.$)(r===a,`You are trying to animate ${e} from "${n}" to "${o}". "${r?o:n}" is not an animatable value.`,"value-not-animatable"),!!r&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||(0,z.W)(i))&&s)}(t,o,r,a)&&((y.W.instantAnimations||!l)&&u?.((0,B.X)(t,i,e)),t[0]=t[t.length-1],q(i),i.repeat=0);let d={startTime:s?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},c=!h&&function(t){let{motionValue:e,name:i,repeatDelay:s,repeatType:n,damping:o,type:r}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;
1let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return J()&&i&&Z.has(i)&&("transform"!==i||!l)&&!a&&!s&&"mirror"!==n&&0!==o&&"inertia"!==r}(d),m=d.motionValue?.owner?.current,p=c?new X({...d,element:m}):new M.s(d);p.finished.then(()=>{this.notifyFinished()}).catch(n.l),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(),(0,U.q)()),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()}}var te=i(30123);function ti(t,e){let i=t?.[e]??t?.default??t;return i!==t?(0,te.K)(i,t):i}var ts=i(25952);let tn={type:"spring",stiffness:500,damping:25,restSpeed:10},to={type:"keyframes",duration:.8},tr={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ta=t=>null!==t,tl=(t,e,i,s={},n,o)=>r=>{let a=ti(s,t)||{},l=a.delay||s.delay||0,{elapsed:h=0}=s;h-=(0,b.f)(l);let u={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-h,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:n};!function({when:t,delay:e,delayChildren:i,staggerChildren:s,staggerDirection:n,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:h,...u}){return!!Object.keys(u).length}(a)&&Object.assign(u,((t,{keyframes:e})=>e.length>2?to:ts.f.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:tn:tr)(t,u)),u.duration&&(u.duration=(0,b.f)(u.duration)),u.repeatDelay&&(u.repeatDelay=(0,b.f)(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if(!1!==u.type&&(0!==u.duration||u.repeatDelay)||(q(u),0===u.delay&&(d=!0)),(y.W.instantAnimations||y.W.skipAnimations||n?.shouldSkipAnimations)&&(d=!0,q(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!o&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"}){let s=t.filter(ta),n=e&&"loop"!==i&&e%2==1?0:s.length-1;return s[n]}(u.keyframes,a);if(void 0!==t)return void v.Gt.update(()=>{u.onUpdate(t),u.onComplete()})}return a.isSync?new M.s(u):new tt(u)},th=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),tu=new Set(["INPUT","SELECT","TEXTAREA"]);function td(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}var tc=i(51275);let tm=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function tp(t){return{point:{x:t.pageX,y:t.pageY}}}function tf(t,e,i,s){return td(t,e,t=>tm(t)&&i(t,tp(t)),s)}let tv=({current:t})=>t?t.ownerDocument.defaultView:null;var ty=i(11493),tg=i(34017);let tx=(t,e)=>Math.abs(t-e),tP=new Set(["auto","scroll"]);class tw{constructor(t,e,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:n=!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=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=tE(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,n=(t=i.offset,e={x:0,y:0},Math.sqrt(tx(t.x,e.x)**2+tx(t.y,e.y)**2)>=this.distanceThreshold);if(!s&&!n)return;let{point:o}=i,{timestamp:r}=v.uv;this.history.push({...o,timestamp:r});let{onStart:a,onMove:l}=this.handlers;s||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=tT(e,this.transformPagePoint),v.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:n}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=tE("pointercancel"===t.type?this.lastMoveEventInfo:tT(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,o),s&&s(t,o)},!tm(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=o,this.contextWindow=s||window;const a=tT(tp(t),this.transformPagePoint),{point:l}=a,{timestamp:h}=v.uv;this.history=[{...l,timestamp:h}];const{onSessionStart:u}=e;u&&u(t,tE(a,this.history)),this.removeListeners=(0,tg.F)(tf(this.contextWindow,"pointermove",this.handlePointerMove),tf(this.contextWindow,"pointerup",this.handlePointerUp),tf(this.contextWindow,"pointercancel",this.handlePointerUp)),r&&this.startScrollTracking(r)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(tP.has(t.overflowX)||tP.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}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,s=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},n={x:s.x-e.x,y:s.y-e.y};(0!==n.x||0!==n.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=n.x,this.lastMoveEventInfo.point.y+=n.y):this.history.length>0&&(this.history[0].x-=n.x,this.history[0].y-=n.y),this.scrollPositions.set(t,s),v.Gt.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,v.WG)(this.updatePoint)}}function tT(t,e){return e?{point:e(t.point)}:t}function tS(t,e){return{x:t.x-e.x,y:t.y-e.y}}function tE({point:t},e){return{point:t,delta:tS(t,tA(e)),offset:tS(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,s=tA(t);for(;e>=0&&(i=t[e],!(s.timestamp-i.timestamp>(0,b.f)(.1)));)e--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&s.timestamp-i.timestamp>2*(0,b.f)(.1)&&(i=t[1]);let n=(0,b.X)(s.timestamp-i.timestamp);if(0===n)return{x:0,y:0};let o={x:(s.x-i.x)/n,y:(s.y-i.y)/n};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e)}}function tA(t){return t[t.length-1]}var tD=i(18844);function tk(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function tV(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,s]=[s,i]),{min:i,max:s}}function tL(t,e,i){return{min:tC(t,e),max:tC(t,i)}}function tC(t,e){return"number"==typeof t?t:t[e]||0}let tR=new WeakMap;class tb{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=(0,o.ge)(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:s}=this.visualElement;if(s&&!1===s.isPresent)return;let n=t=>{e&&this.snapToCursor(tp(t).point),this.stopAnimation()},o=(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:n}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(r[t])return null;else return r[t]=!0,()=>{r[t]=!1};return r.x||r.y?null:(r.x=r.y=!0,()=>{r.x=r.y=!1})}(i),!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),a(t=>{let e=this.getAxisMotionValue(t).get()||0;if(l.KN.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=u(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),n&&v.Gt.update(()=>n(t,e),!1,!0),x(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},h=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:n,onDrag:o}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:r}=e;if(s&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(r),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),o&&v.Gt.update(()=>o(t,e),!1,!0)},d=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:m}=this.getProps();
1this.panSession=new tw(t,{onSessionStart:n,onStart:o,onMove:h,onSessionEnd:d,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,distanceThreshold:i,contextWindow:tv(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,s=e||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!s||!i)return;let{velocity:o}=s;this.startAnimation(o);let{onDragEnd:r}=this.getProps();r&&v.Gt.postRender(()=>r(i,s))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:s}=this.getProps();if(!i||!tM(t,s,this.currentDirection))return;let n=this.getAxisMotionValue(t),o=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:i},s){return void 0!==e&&t<e?t=s?(0,h.k)(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?(0,h.k)(i,t,s.max):Math.min(t,i)),t}(o,this.constraints[t],this.elastic[t])),n.set(o)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;t&&(0,ty.X)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:s,right:n}){return{x:tk(t.x,i,n),y:tk(t.y,e,s)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:tL(t,"left","right"),y:tL(t,"top","bottom")}}(e),s!==this.constraints&&!(0,ty.X)(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&a(t=>{var e,s;let n;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],s=this.constraints[t],n={},void 0!==s.min&&(n.min=s.min-e.min),void 0!==s.max&&(n.max=s.max-e.min),n))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!(0,ty.X)(e))return!1;let s=e.current;(0,$.V)(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let o=function(t,e,i){let s=R(t,i),{scroll:n}=e;return n&&(V(s.x,n.offset.x),V(s.y,n.offset.y)),s}(s,n.root,this.visualElement.getTransformPagePoint()),r=(t=n.layout.layoutBox,{x:tV(t.x,o.x),y:tV(t.y,o.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(r));this.hasMutatedConstraints=!!t,t&&(r=P(t))}return r}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:n,dragSnapToOrigin:o,onDragTransitionEnd:r}=this.getProps(),l=this.constraints||{};return Promise.all(a(r=>{if(!tM(r,e,this.currentDirection))return;let a=l&&l[r]||{};o&&(a={min:0,max:0});let h={type:"inertia",velocity:i?t[r]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...a};return this.startAxisValueAnimation(r,h)})).then(r)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return x(this.visualElement,t),i.start(tl(t,i,0,e,this.visualElement,!1))}stopAnimation(){a(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){a(e=>{let{drag:i}=this.getProps();if(!tM(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,n=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:o}=s.layout.layoutBox[e],r=n.get()||0;n.set(t[e]-(0,h.k)(i,o,.5)+r)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!(0,ty.X)(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};a(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,n;let o,r,a,l=e.get();s[t]=(i={min:l,max:l},n=this.constraints[t],o=.5,r=u(i),(a=u(n))>r?o=(0,tD.q)(n.min,n.max-r,i.min):r>a&&(o=(0,tD.q)(i.min,i.max-a,n.min)),(0,F.q)(0,1,o))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),a(e=>{if(!tM(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:o}=this.constraints[e];i.set((0,h.k)(n,o,s[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;tR.set(this.visualElement,this);let e=this.visualElement.current,i=tf(e,"pointerdown",t=>{let{drag:i,dragListener:s=!0}
1=this.getProps(),n=t.target,o=n!==e&&(tu.has(n.tagName)||!0===n.isContentEditable);i&&s&&!o&&this.start(t)}),s=()=>{var i,s,n;let o,r,{dragConstraints:a}=this.getProps();(0,ty.X)(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),t||(i=e,s=a.current,n=()=>this.scalePositionWithinConstraints(),o=(0,tc.X)(i,tj(n)),r=(0,tc.X)(s,tj(n)),t=()=>{o(),r()}))},{projection:n}=this.visualElement,o=n.addEventListener("measure",s);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),v.Gt.read(s);let r=td(window,"resize",()=>this.scalePositionWithinConstraints()),l=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(a(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),i(),o(),l&&l(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:n=!1,dragElastic:o=.35,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:n,dragElastic:o,dragMomentum:r}}}function tj(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function tM(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class tB extends s{constructor(t){super(t),this.removeGroupControls=n.l,this.removeListeners=n.l,this.controls=new tb(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||n.l}update(){let{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(),this.controls.isDragging||this.controls.endPanSession()}}let tU=t=>(e,i)=>{t&&v.Gt.update(()=>t(e,i),!1,!0)};class tF extends s{constructor(){super(...arguments),this.removePointerDownListener=n.l}onPointerDown(t){this.session=new tw(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tv(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:tU(t),onStart:tU(e),onMove:tU(i),onEnd:(t,e)=>{delete this.session,s&&v.Gt.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=tf(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var tO=i(95155);let tI={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var tG=i(38873),tW=i(12115),tN=i(79196),tH=i(39551),tX=i(59299);let t$=!1;class tz extends tW.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:n}=t;n&&(e.group&&e.group.add(n),i&&i.register&&s&&i.register(n),t$&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),tI.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:n}=this.props,{projection:o}=i;return o&&(o.isPresent=n,t.layoutDependency!==e&&o.setOptions({...o.options,layoutDependency:e}),t$=!0,s||t.layoutDependency!==e||void 0===e||t.isPresent!==n?o.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?o.promote():o.relegate()||v.Gt.postRender(()=>{let t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tG.k.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;t$=!0,s&&(s.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function tK(t){let[e,i]=(0,tN.xQ)(),s=(0,tW.useContext)(tH.L);return(0,tO.jsx)(tz,{...t,layoutGroup:s,switchLayoutGroup:(0,tW.useContext)(tX.N),isPresent:e,safeToRemove:i})}var tY=i(73852),tq=i(6900),t_=i(43261);function tQ(t){return t.props[t_.n]}var tZ=i(21872),tJ=i(67026),t0=i(41342),t1=i(69028),t9=i(10583);let t5=["TopLeft","TopRight","BottomLeft","BottomRight"],t2=t5.length,t3=t=>"string"==typeof t?parseFloat(t):t,t4=t=>"number"==typeof t||l.px.test(t);function t7(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let t8=et(0,.5,N.yT),t6=et(.5,.95,n.l);function et(t,e,i){return s=>s<t?0:s>e?1:i((0,tD.q)(t,e,s))}function ee(t,e){t.min=e.min,t.max=e.max}function ei(t,e){ee(t.x,e.x),ee(t.y,e.y)}function es(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function en(t,e,i,s,n){return t-=e,t=s+1/i*(t-s),void 0!==n&&(t=s+1/n*(t-s)),t}function eo(t,e,[i,s,n],o,r){!function(t,e=0,i=1,s=.5,n,o=t,r=t){if(l.KN.test(e)&&(e=parseFloat(e),e=(0,h.k)(r.min,r.max,e/100)-r.min),"number"!=typeof e)return;let a=(0,h.k)(o.min,o.max,s);t===o&&(a-=e),t.min=en(t.min,e,i,a,n),t.max=en(t.max,e,i,a,n)}(t,e[i],e[s],e[n],e.scale,o,r)}let er=["x","scaleX","originX"],ea=["y","scaleY","originY"];function el(t,e,i,s){eo(t.x,e,er,i?i.x:void 0,s?s.x:void 0),eo(t.y,e,ea,i?i.y:void 0,s?s.y:void 0)}function eh(t){return 0===t.translate&&1===t.scale}function eu(t){return eh(t.x)&&eh(t.y)}function ed(t,e){return t.min===e.min&&t.max===e.max}function ec(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function em(t,e){return ec(t.x,e.x)&&ec(t.y,e.y)}function ep(t){return u(t.x)/u(t.y)}function ef(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var ev=i(78170);class ey{constructor(){this.members=[]}add(t){(0,ev.Kq)(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let s=i.instance;s&&!1===s.isConnected&&!1!==i.isPresent&&!i.snapshot&&(0,ev.Ai)(this.members,i)}t.scheduleRender()}remove(t){if((0,ev.Ai)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}
1}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t],s=i.instance;if(!1!==i.isPresent&&(!s||!1!==s.isConnected)){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender();let s=i.options.layoutDependency,n=t.options.layoutDependency;if(void 0===s||void 0===n||s!==n){let s=i.instance;!(s&&!1===s.isConnected&&!i.snapshot)&&(t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0))}let{crossfade:o}=t.options;!1===o&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let eg=(t,e)=>t.depth-e.depth;class ex{constructor(){this.children=[],this.isDirty=!1}add(t){(0,ev.Kq)(this.children,t),this.isDirty=!0}remove(t){(0,ev.Ai)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(eg),this.isDirty=!1,this.children.forEach(t)}}let eP={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},ew=["","X","Y","Z"],eT=0;function eS(t,e,i,s){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),s&&(s[t]=0))}function eE({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:n}){return class{constructor(t={},i=e?.()){this.id=eT++,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,t0.Q.value&&(eP.nodes=eP.calculatedTargetDeltas=eP.calculatedProjections=0),this.nodes.forEach(ek),this.nodes.forEach(eM),this.nodes.forEach(eB),this.nodes.forEach(eV),t0.Q.addProjectionMetrics&&t0.Q.addProjectionMetrics(eP)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new ex)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tY.v),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=(0,t1.x)(e)&&(!(0,t1.x)(e)||"svg"!==e.tagName),this.instance=e;let{layoutId:i,layout:s,visualElement:n}=this.options;if(n&&!n.current&&n.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(s||i)&&(this.isLayoutDirty=!0),t){let i,s=0,n=()=>this.root.updateBlockedByResize=!1;v.Gt.read(()=>{s=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==s){let e,o;s=t,this.root.updateBlockedByResize=!0,i&&i(),e=j.k.now(),o=({timestamp:t})=>{let i=t-e;i>=250&&((0,v.WG)(o),n())},v.Gt.setup(o,!0),i=()=>(0,v.WG)(o),tI.hasAnimatedSinceResize&&(tI.hasAnimatedSinceResize=!1,this.nodes.forEach(ej))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&n&&(i||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||n.getDefaultTransition()||eW,{onLayoutAnimationStart:r,onLayoutAnimationComplete:a}=n.getProps(),l=!this.targetLayout||!em(this.targetLayout,s),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...ti(o,"layout"),onPlay:r,onComplete:a};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h)}else e||ej(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,v.WG)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
1h(eU),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let s=tQ(i);if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",v.Gt,!(t||i))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&t(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(eC);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(eR);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(eb),this.nodes.forEach(eA),this.nodes.forEach(eD)):this.nodes.forEach(eR),this.clearAllSnapshots();let t=j.k.now();v.uv.delta=(0,F.q)(0,1e3/60,t-v.uv.timestamp),v.uv.timestamp=t,v.uv.isProcessing=!0,v.PP.update.process(v.uv),v.PP.preRender.process(v.uv),v.PP.render.process(v.uv),v.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tG.k.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(eL),this.sharedNodes.forEach(eF)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,v.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){v.Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||u(this.snapshot.measuredBox.x)||u(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=(0,o.ge)(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=s(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!n)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!eu(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,o=s!==this.prevTransformTemplateValue;t&&this.instance&&(e||S(this.latestValues)||o)&&(n(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),s=this.removeElementScroll(i);return t&&(s=this.removeTransform(s)),eX((e=s).x),eX(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,o.ge)();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(ez))){let{scroll:t}=this.root;t&&(V(e.x,t.offset.x),V(e.y,t.offset.y))}return e}removeElementScroll(t){let e=(0,o.ge)();if(ei(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let s=this.path[i],{scroll:n,options:o}=s;s!==this.root&&n&&o.layoutScroll&&(n.wasRoot&&ei(e,t),V(e.x,n.offset.x),V(e.y,n.offset.y))}return e}applyTransform(t,e=!1){let i=(0,o.ge)();ei(i,t);for(let t=0;t<this.path.length;t++){let s=this.path[t];!e&&s.options.layoutScroll&&s.scroll&&s!==s.root&&C(i,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),S(s.latestValues)&&C(i,s.latestValues)}return S(this.latestValues)&&C(i,this.latestValues),i}removeTransform(t){let e=(0,o.ge)();ei(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!S(i.latestValues))continue;T(i.latestValues)&&i.updateSnapshot();let s=(0,o.ge)();ei(s,i.measurePageBox()),el(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,s)}return S(this.latestValues)&&el(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!==v.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:s,layoutId:n}=this.options;if(!this.layout||!(s||n))return;this.resolvedRelativeTargetAt=v.uv.timestamp;let r=this.getClosestProjectingParent();if(r&&this.linkedParentVersion!==r.layoutVersion&&!r.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(r&&r.layout?this.createRelativeTarget(r,this.layout.layoutBox,r.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=(0,o.ge)(),this.targetWithTransforms=(0,o.ge)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var a,l,h;this.forceRelativeParentToResolveTarget(),a=this.target,l=this.relativeTarget,h=this.relativeParent.target,m(a.x,l.x,h.x),m(a.y,l.y,h.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ei(this.target,this.layout.layoutBox),k(this.target,this.targetDelta)):ei(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,r&&!!r.resumingFrom==!!this.resumingFrom&&!r.options.layoutScroll&&r.target&&1!==this.animationProgress?this.createRelativeTarget(r,this.target,r.target):this.relativeParent=this.relativeTarget=void 0),t0.Q.value&&eP.calculatedTargetDeltas++}}getClosestProjectingParent(){if(!(!this.parent||T(this.parent.latestValues)||E(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,o.ge)(),this.relativeTargetOrigin=(0,o.ge)(),f(this.relativeTargetOrigin,e,i),ei(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===v.uv.timestamp&&(i=!1),i)return;let{layout:s,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||n))return;ei(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,s=!1){let n,o,r=i.length;if(r){e.x=e.y=1;for(let a=0;a<r;a++){o=(n=i[a]).projectionDelta;let{visualElement:r}=n.options;(!r||!r.props.style||"contents"!==r.props.style.display)&&(s&&n.options.layoutScroll&&n.scroll&&n!==n.root&&C(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,k(t,o)),s&&S(n.latestValues)&&C(t,n.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=(0,o.ge)());let{target:l}=t;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(es(this.prevProjectionDelta.x,this.projectionDelta.x),es(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),c(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&ef(this.projectionDelta.x,this.prevProjectionDelta.x)&&ef(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),t0.Q.value&&eP.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,o.xU)(),this.projectionDelta=(0,o.xU)(),this.projectionDeltaWithTransform=(0,o.xU)()}setAnimationOrigin(t,e=!1){let i,s=this.snapshot,n=s?s.latestValues:{},r={...this.latestValues},a=(0,o.xU)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let u=(0,o.ge)(),d=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),m=!c||c.members.length<=1,p=!!(d&&!m&&!0===this.options.crossfade&&!this.path.some(eG));this.animationProgress=0,this.mixTargetDelta=e=>{let s=e/1e3;if(eO(a.x,t.x,s),eO(a.y,t.y,s),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var c,v,y,g,x,P;f(u,this.layout.layoutBox,this.relativeParent.layout.layoutBox),y=this.relativeTarget,g=this.relativeTargetOrigin,x=u,P=s,eI(y.x,g.x,x.x,P),eI(y.y,g.y,x.y,P),i&&(c=this.relativeTarget,v=i,ed(c.x,v.x)&&ed(c.y,v.y))&&(this.isProjectionDirty=!1),i||(i=(0,o.ge)()),ei(i,this.relativeTarget)}d&&(this.animationValues=r,function(t,e,i,s,n,o){n?(t.opacity=(0,h.k)(0,i.opacity??1,t8(s)),t.opacityExit=(0,h.k)(e.opacity??1,0,t6(s))):o&&(t.opacity=(0,h.k)(e.opacity??1,i.opacity??1,s));for(let n=0;n<t2;n++){let o=`border${t5[n]}Radius`,r=t7(e,o),a=t7(i,o);(void 0!==r||void 0!==a)&&(r||(r=0),a||(a=0),0===r||0===a||t4(r)===t4(a)?(t[o]=Math.max((0,h.k)(t3(r),t3(a),s),0),(l.KN.test(a)||l.KN.test(r))&&(t[o]+="%")):t[o]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,h.k)(e.rotate||0,i.rotate||0,s))}(r,n,this.latestValues,s,p,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=s},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,v.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=v.Gt.update(()=>{var e,i,s;let n;tI.hasAnimatedSinceResize=!0,tJ.q.layout++,this.motionValue||(this.motionValue=(0,tq.OQ)(0)),this.motionValue.jump(0,!1),this.currentAnimation=(e=this.motionValue,i=[0,1e3],s={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{tJ.q.layout--},onComplete:()=>{tJ.q.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}},(n=(0,g.S)(e)?e:(0,tq.OQ)(e)).start(tl("",n,i,s)),n.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:s,latestValues:n}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&e$(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||(0,o.ge)();let e=u(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=u(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}ei(e,i),C(e,n),c(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new ey),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
1return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let s=this.getStack();s&&s.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let s={};i.z&&eS("z",t,s,this.animationValues);for(let e=0;e<ew.length;e++)eS(`rotate${ew[e]}`,t,s,this.animationValues),eS(`skew${ew[e]}`,t,s,this.animationValues);for(let e in t.render(),s)t.setStaticValue(e,s[e]),this.animationValues&&(this.animationValues[e]=s[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=(0,t9.u)(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=(0,t9.u)(e?.pointerEvents)||""),this.hasProjected&&!S(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let n=s.animationValues||s.latestValues;this.applyTransformsToTarget();let o=function(t,e,i){let s="",n=t.x.translate/e.x,o=t.y.translate/e.y,r=i?.z||0;if((n||o||r)&&(s=`translate3d(${n}px, ${o}px, ${r}px) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:n,rotateY:o,skewX:r,skewY:a}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),n&&(s+=`rotateX(${n}deg) `),o&&(s+=`rotateY(${o}deg) `),r&&(s+=`skewX(${r}deg) `),a&&(s+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(s+=`scale(${a}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,n);i&&(o=i(n,o)),t.transform=o;let{x:r,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*r.origin}% ${100*a.origin}% 0`,s.animationValues?t.opacity=s===this?n.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:n.opacityExit:t.opacity=s===this?void 0!==n.opacity?n.opacity:"":void 0!==n.opacityExit?n.opacityExit:0,tZ.H){if(void 0===n[e])continue;let{correct:i,applyTo:r,isCSSVariable:a}=tZ.H[e],l="none"===o?n[e]:i(n[e],s);if(r){let e=r.length;for(let i=0;i<e;i++)t[r[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=s===this?(0,t9.u)(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(eC),this.root.sharedNodes.clear()}}}function eA(t){t.updateLayout()}function eD(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:s}=t.layout,{animationType:n}=t.options,r=e.source!==t.layout.source;"size"===n?a(t=>{let s=r?e.measuredBox[t]:e.layoutBox[t],n=u(s);s.min=i[t].min,s.max=s.min+n}):e$(n,e.layoutBox,i)&&a(s=>{let n=r?e.measuredBox[s]:e.layoutBox[s],o=u(i[s]);n.max=n.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+o)});let l=(0,o.xU)();c(l,i,e.layoutBox);let h=(0,o.xU)();r?c(h,t.applyTransform(s,!0),e.measuredBox):c(h,i,e.layoutBox);let d=!eu(l),m=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:n,layout:r}=s;if(n&&r){let a=(0,o.ge)();f(a,e.layoutBox,n.layoutBox);let l=(0,o.ge)();f(l,i,r.layoutBox),em(a,l)||(m=!0),s.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=a,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:h,layoutDelta:l,hasLayoutChanged:d,hasRelativeLayoutChanged:m})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function ek(t){t0.Q.value&&eP.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
1isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function eV(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function eL(t){t.clearSnapshot()}function eC(t){t.clearMeasurements()}function eR(t){t.isLayoutDirty=!1}function eb(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ej(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function eM(t){t.resolveTargetDelta()}function eB(t){t.calcProjection()}function eU(t){t.resetSkewAndRotation()}function eF(t){t.removeLeadSnapshot()}function eO(t,e,i){t.translate=(0,h.k)(e.translate,0,i),t.scale=(0,h.k)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function eI(t,e,i,s){t.min=(0,h.k)(e.min,i.min,s),t.max=(0,h.k)(e.max,i.max,s)}function eG(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let eW={duration:.45,ease:[.4,0,.1,1]},eN=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),eH=eN("applewebkit/")&&!eN("chrome/")?Math.round:n.l;function eX(t){t.min=eH(t.min),t.max=eH(t.max)}function e$(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(ep(e)-ep(i)))}function ez(t){return t!==t.root&&t.scroll?.wasRoot}let eK=eE({attachResizeListener:(t,e)=>td(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),eY={current:void 0},eq=eE({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!eY.current){let t=new eK({});t.mount(window),t.setOptions({layoutScroll:!0}),eY.current=t}return eY.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});var e_=i(76792);function eQ(t,e,i){let s=t.getProps();return(0,e_.a)(s,e,void 0!==i?i:s.custom,t)}let eZ=new Set(["width","height","top","left","right","bottom",...ts.U]),eJ=t=>Array.isArray(t);function e0(t,e,{delay:i=0,transitionOverride:s,type:n}={}){let{transition:o,transitionEnd:r,...a}=e,l=t.getDefaultTransition();o=o?(0,te.K)(o,l):l;let h=o?.reduceMotion;s&&(o=s);let u=[],d=n&&t.animationState&&t.animationState.getState()[n];for(let e in a){let s=t.getValue(e,t.latestValues[e]??null),n=a[e];if(void 0===n||d&&function({protectedKeys:t,needsAnimating:e},i){let s=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,s}(d,e))continue;let r={delay:i,...ti(o||{},e)},l=s.get();if(void 0!==l&&!s.isAnimating&&!Array.isArray(n)&&n===l&&!r.velocity)continue;let c=!1;if(window.MotionHandoffAnimation){let i=tQ(t);if(i){let t=window.MotionHandoffAnimation(i,e,v.Gt);null!==t&&(r.startTime=t,c=!0)}}x(t,e);let m=h??t.shouldReduceMotion;s.start(tl(e,s,n,m&&eZ.has(e)?{type:!1}:r,t,c));let p=s.animation;p&&u.push(p)}if(r){let e=()=>v.Gt.update(()=>{r&&function(t,e){let{transitionEnd:i={},transition:s={},...n}=eQ(t,e)||{};for(let e in n={...n,...i}){var o;let i=eJ(o=n[e])?o[o.length-1]||0:o;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,tq.OQ)(i))}}(t,r)});u.length?Promise.all(u).then(e):e()}return u}function e1(t,e,i,s=0,n=1){let o=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),r=t.size,a=(r-1)*s;return"function"==typeof i?i(o,r):1===n?o*s:a-o*s}function e9(t,e,i={}){let s=eQ(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:n=t.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(n=i.transitionOverride);let o=s?()=>Promise.all(e0(t,s,i)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(s=0)=>{let{delayChildren:o=0,staggerChildren:r,staggerDirection:a}=n;return function(t,e,i=0,s=0,n=0,o=1,r){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(e9(l,e,{...r,delay:i+("function"==typeof s?0:s)+e1(t.variantChildren,l,s,n,o)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,s,o,r,a,i)}:()=>Promise.resolve(),{when:a}=n;if(!a)return Promise.all([o(),r(i.delay)]);{let[t,e]="beforeChildren"===a?[o,r]:[r,o];return t().then(()=>e())}}var e5=i(63290),e2=i(51129);let e3=e2._.length;var e4=i(26087);function e7(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(e[s]!==t[s])return!1;return!0}let e8=[...e2.U].reverse(),e6=e2.U.length;function it(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ie(){return{animate:it(!0),whileInView:it(),whileHover:it(),whileTap:it(),whileDrag:it(),whileFocus:it(),exit:it()}}class ii extends s{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>
1(function(t,e,i={}){let s;if(t.notify("AnimationStart",e),Array.isArray(e))s=Promise.all(e.map(e=>e9(t,e,i)));else if("string"==typeof e)s=e9(t,e,i);else{let n="function"==typeof e?eQ(t,e,i.custom):e;s=Promise.all(e0(t,n,i))}return s.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=ie(),s=!0,n=e=>(i,s)=>{let n=eQ(t,s,"exit"===e?t.presenceContext?.custom:void 0);if(n){let{transition:t,transitionEnd:e,...s}=n;i={...i,...s,...e}}return i};function o(o){let{props:r}=t,a=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<e3;t++){let s=e2._[t],n=e.props[s];((0,e5.w)(n)||!1===n)&&(i[s]=n)}return i}(t.parent)||{},l=[],h=new Set,u={},d=1/0;for(let e=0;e<e6;e++){var c,m;let p=e8[e],f=i[p],v=void 0!==r[p]?r[p]:a[p],y=(0,e5.w)(v),g=p===o?f.isActive:null;!1===g&&(d=e);let x=v===a[p]&&v!==r[p]&&y;if(x&&s&&t.manuallyAnimateOnMount&&(x=!1),f.protectedKeys={...u},!f.isActive&&null===g||!v&&!f.prevProp||(0,e4.N)(v)||"boolean"==typeof v)continue;if("exit"===p&&f.isActive&&!0!==g){f.prevResolvedValues&&(u={...u,...f.prevResolvedValues});continue}let P=(c=f.prevProp,"string"==typeof(m=v)?m!==c:!!Array.isArray(m)&&!e7(m,c)),w=P||p===o&&f.isActive&&!x&&y||e>d&&y,T=!1,S=Array.isArray(v)?v:[v],E=S.reduce(n(p),{});!1===g&&(E={});let{prevResolvedValues:A={}}=f,D={...A,...E}
1,k=e=>{w=!0,h.has(e)&&(T=!0,h.delete(e)),f.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in D){let e=E[t],i=A[t];if(!u.hasOwnProperty(t))(eJ(e)&&eJ(i)?e7(e,i):e===i)?void 0!==e&&h.has(t)?k(t):f.protectedKeys[t]=!0:null!=e?k(t):h.add(t)}f.prevProp=v,f.prevResolvedValues=E,f.isActive&&(u={...u,...E}),s&&t.blockInitialAnimation&&(w=!1);let V=x&&P,L=!V||T;w&&L&&l.push(...S.map(e=>{let i={type:p};if("string"==typeof e&&s&&!V&&t.manuallyAnimateOnMount&&t.parent){let{parent:s}=t,n=eQ(s,e);if(s.enteringChildren&&n){let{delayChildren:e}=n.transition||{};i.delay=e1(s.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(h.size){let e={};if("boolean"!=typeof r.initial){let i=eQ(t,Array.isArray(r.initial)?r.initial[0]:r.initial);i&&i.transition&&(e.transition=i.transition)}h.forEach(i=>{let s=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=s??null}),l.push({animation:e})}let p=!!l.length;return s&&(!1===r.initial||r.initial===r.animate)&&!t.manuallyAnimateOnMount&&(p=!1),s=!1,p?e(l):Promise.resolve()}return{animateChanges:o,setActive:function(e,s){if(i[e].isActive===s)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,s)),i[e].isActive=s;let n=o(e);for(let t in i)i[t].protectedKeys={};return n},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=ie()}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,e4.N)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let is=0;class io extends s{constructor(){super(...arguments),this.id=is++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let s=this.node.animationState.setActive("exit",!t);e&&!t&&s.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
1e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}var ir=i(58392);function ia(t,e){let i=(0,ir.K)(t),s=new AbortController;return[i,{passive:!0,...e,signal:s.signal},()=>s.abort()]}function il(t,e,i){let{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover","Start"===i);let n=s["onHover"+i];n&&v.Gt.postRender(()=>n(e,tp(e)))}class ih extends s{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[s,n,o]=ia(t,i);return s.forEach(t=>{let i,s=!1,o=!1,a=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",h)},l=t=>{s=!1,window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",l),o&&(o=!1,a(t))},h=t=>{if("touch"!==t.pointerType){if(s){o=!0;return}a(t)}};t.addEventListener("pointerenter",s=>{if("touch"===s.pointerType||r.x||r.y)return;o=!1;let a=e(t,s);"function"==typeof a&&(i=a,t.addEventListener("pointerleave",h,n))},n),t.addEventListener("pointerdown",()=>{s=!0,window.addEventListener("pointerup",l,n),window.addEventListener("pointercancel",l,n)},n)}),o}(t,(t,e)=>(il(this.node,e,"Start"),t=>il(this.node,t,"End"))))}unmount(){}}class iu extends s{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=(0,tg.F)(td(this.node.current,"focus",()=>this.onFocus()),td(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var id=i(78757);let ic=(t,e)=>!!e&&(t===e||ic(t,e.parentElement)),im=new WeakSet;function ip(t){return e=>{"Enter"===e.key&&t(e)}}function iv(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function iy(t){return tm(t)&&!(r.x||r.y)}let ig=new WeakSet;function ix(t,e,i){let{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap","Start"===i);let n=s["onTap"+("End"===i?"":i)];n&&v.Gt.postRender(()=>n(e,tp(e)))}class iP extends s{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e,i={}){let[s,n,o]=ia(t,i),r=t=>{let s=t.currentTarget;if(!iy(t)||ig.has(t))return;im.add(s),i.stopPropagation&&ig.add(t);let o=e(s,t),r=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),im.has(s)&&im.delete(s),iy(t)&&"function"==typeof o&&o(t,{success:e})},a=t=>{r(t,s===window||s===document||i.useGlobalTarget||ic(s,t.target))},l=t=>{r(t,!1)};window.addEventListener("pointerup",a,n),window.addEventListener("pointercancel",l,n)};return s.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",r,n),(0,id.s)(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let s=ip(()=>{if(im.has(i))return;iv(i,"down");let t=ip(()=>{iv(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>iv(i,"cancel"),e)});i.addEventListener("keydown",s,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),e)})(t,n)),th.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),o}(t,(t,e)=>(ix(this.node,e,"Start"),(t,{success:e})=>ix(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}let iw=new WeakMap,iT=new WeakMap,iS=t=>{let e=iw.get(t.target);e&&e(t)},iE=t=>{t.forEach(iS)},iA={some:0,all:1};class iD extends s{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:s,margin:n,amount:o="some",once:r}=i,a={root:s?s.current:void 0,rootMargin:n,threshold:"number"==typeof o?o:iA[o]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:s}=this.node.getProps(),n=e?i:s;n&&n(t)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;iT.has(i)||iT.set(i,{});let s=iT.get(i),n=JSON.stringify(e);return s[n]||(s[n]=new IntersectionObserver(iE,{root:t,...e})),s[n]}(a),iw.set(t,l),e.observe(t),()=>{iw.delete(t),e.unobserve(t)}}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}var ik=i(47888),iV=i(46793),iL=i(74212),iC=i(39896);let iR=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var ib=i(58974),ij=i(21023);
1let iM=new Set(["auto","none","0"]);var iB=i(32766);class iU extends U.h{constructor(t,e,i,s,n){super(t,e,i,s,n,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let s=t[i];if("string"==typeof s&&(s=s.trim(),(0,iC.pG)(s))){let n=function t(e,i,s=1){(0,$.V)(s<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[n,o]=function(t){let e=iR.exec(t);if(!e)return[,];let[,i,s,n]=e;return[`--${i??s}`,n]}(e);if(!n)return;let r=window.getComputedStyle(i).getPropertyValue(n);if(r){let t=r.trim();return(0,iL.i)(t)?parseFloat(t):t}return(0,iC.pG)(o)?t(o,i,s+1):o}(s,e.current);void 0!==n&&(t[i]=n),i===t.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!eZ.has(i)||2!==t.length)return;let[s,n]=t,o=(0,iV.n)(s),r=(0,iV.n)(n);if((0,iC.rm)(s)!==(0,iC.rm)(n)&&iB.Hr[i]){this.needsMeasurement=!0;return}if(o!==r)if((0,iB.E4)(o)&&(0,iB.E4)(r))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else iB.Hr[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var s;(null===t[e]||("number"==typeof(s=t[e])?0===s:null===s||"none"===s||"0"===s||(0,ib.$)(s)))&&i.push(e)}i.length&&function(t,e,i){let s,n=0;for(;n<t.length&&!s;){let e=t[n];"string"==typeof e&&!iM.has(e)&&(0,K.V)(e).values.length&&(s=t[n]),n++}if(s&&i)for(let n of e)t[n]=(0,ij.J)(i,s)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=iB.Hr[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let s=e[e.length-1];void 0!==s&&t.getValue(i,s).jump(s,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let s=t.getValue(e);s&&s.jump(this.measuredOrigin,!1);let n=i.length-1,o=i[n];i[n]=iB.Hr[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}var iF=i(58160);class iO extends iF.BX{constructor(){super(...arguments),this.KeyframeResolver=iU}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,g.S)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}var iI=i(15043),iG=i(44425);let iW=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"]);var iN=i(73148);function iH(t,{style:e,vars:i},s,n){let o,r=t.style;for(o in e)r[o]=e[o];for(o in n?.applyProjectionStyles(r,s),i)r.setProperty(o,i[o])}var iX=i(85068);class i$ extends iO{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=o.ge}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(ts.f.has(e)){let t=(0,ik.D)(e);return t&&t.default||0}return e=iW.has(e)?e:(0,iI.I)(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return(0,iX.x)(t,e,i)}build(t,e,i){(0,iG.B)(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,s){for(let i in iH(t,e,void 0,s),e.attrs)t.setAttribute(iW.has(i)?i:(0,iI.I)(i),e.attrs[i])}mount(t){this.isSVGTag=(0,iN.n)(t.tagName),super.mount(t)}}var iz=i(11698),iK=i(60819),iY=i(43891);class iq extends iO{constructor(){super(...arguments),this.type="html",this.renderInstance=iH}readValueFromInstance(t,e){if(ts.f.has(e))return this.projection?.isProjecting?(0,iz.zs)(e):(0,iz.Ib)(t,e);{let i=window.getComputedStyle(t),s=((0,iC.j4)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:e}){return R(t,e)}build(t,e,i){(0,iK.O)(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return(0,iY.x)(t,e,i)}}var i_=i(95391);let iQ={renderer:(t,e)=>e.isSVG??(0,i_.Q)(t)?new i$(e):new iq(e,{allowProjection:t!==tW.Fragment}),animation:{Feature:ii},exit:{Feature:io},inView:{Feature:iD},tap:{Feature:iP},focus:{Feature:iu},hover:{Feature:ih},pan:{Feature:tF},drag:{Feature:tB,ProjectionNode:eq,MeasureLayout:tK},layout:{ProjectionNode:eq,MeasureLayout:tK}}},78757:(t,e,i)=>{i.d(e,{s:()=>n});var s=i(94601);function n(t){return(0,s.G)(t)&&"offsetHeight"in t}},79196:(t,e,i)=>{i.d(e,{xQ:()=>o});var s=i(12115),n=i(15131);function o(t=!0){let e=(0,s.useContext)(n.t);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:r,register:a}=e,l=(0,s.useId)();(0,s.useEffect)(()=>{if(t)return a(l)},[t]);let h=(0,s.useCallback)(()=>t&&r&&r(l),[l,r,t]);return!i&&r?[!1,h]:[!0]}},94601:(t,e,i)=>{i.d(e,{G:()=>s});function s(t){return"object"==typeof t&&null!==t}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.