1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[735],{2735:function(t,e,i){i.d(e,{g:function(){return iR}});class s{constructor(t){this.isMounted=!1,this.node=t}update(){}}var n=i(1662),o=i(5487);let r=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function a(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}let l=t=>e=>r(e)&&t(e,a(e));var h=i(6917);function u(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}function d(t,e,i,s){return u(t,e,l(i),s)}var c=i(3624);let p=(t,e)=>Math.abs(t-e);var m=i(6166);class v{constructor(t,e,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:n=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=y(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,n=(t=i.offset,e={x:0,y:0},Math.sqrt(p(t.x,e.x)**2+p(t.y,e.y)**2)>=3);if(!s&&!n)return;let{point:o}=i,{timestamp:r}=m.frameData;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=f(e,this.transformPagePoint),m.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:n}=this.handlers;if(this.dragSnapToOrigin&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=y("pointercancel"===t.type?this.lastMoveEventInfo:f(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,o),s&&s(t,o)},!r(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.contextWindow=s||window;let o=f(a(t),this.transformPagePoint),{point:l}=o,{timestamp:h}=m.frameData;this.history=[{...l,timestamp:h}];let{onSessionStart:u}=e;u&&u(t,y(o,this.history)),this.removeListeners=(0,c.z)(d(this.contextWindow,"pointermove",this.handlePointerMove),d(this.contextWindow,"pointerup",this.handlePointerUp),d(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,m.Pn)(this.updatePoint)}}function f(t,e){return e?{point:e(t.point)}:t}function g(t,e){return{x:t.x-e.x,y:t.y-e.y}}function y({point:t},e){return{point:t,delta:g(t,x(e)),offset:g(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null,n=x(t);for(;i>=0&&(s=t[i],!(n.timestamp-s.timestamp>(0,h.w)(.1)));)i--;if(!s)return{x:0,y:0};let o=(0,h.X)(n.timestamp-s.timestamp);if(0===o)return{x:0,y:0};let r={x:(n.x-s.x)/o,y:(n.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(e,0)}}function x(t){return t[t.length-1]}function P(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let T=P("dragHorizontal"),S=P("dragVertical");function V(t){let e=!1;if("y"===t)e=S();else if("x"===t)e=T();else{let t=T(),i=S();t&&i?e=()=>{t(),i()}:(t&&t(),i&&i())}return e}function A(){let t=V(!0);return!t||(t(),!1)}var w=i(1804),D=i(3967),E=i(179);function b(t){return t.max-t.min}function R(t,e,i,s=.5){t.origin=s,t.originPoint=(0,E.t)(e.min,e.max,t.origin),t.scale=b(i)/b(e),t.translate=(0,E.t)(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 L(t,e,i,s){R(t.x,e.x,i.x,s?s.originX:void 0),R(t.y,e.y,i.y,s?s.originY:void 0)}function C(t,e,i){t.min=i.min+e.min,t.max=t.min+b(e)}function j(t,e,i){t.min=e.min-i.min,t.max=t.min+b(e)}function M(t,e,i){j(t.x,e.x,i.x),j(t.y,e.y,i.y)}var B=i(4169);function k(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 F(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 U(t,e,i){return{min:I(t,e),max:I(t,i)}}function I(t,e){return"number"==typeof t?t:t[e]||0}let O=()=>({translate:0,scale:1,origin:0,originPoint:0}),W=()=>({x:O(),y:O()}),N=()=>({min:0,max:0}),$=()=>({x:N(),y:N()});function z(t){return[t("x"),t("y")]}function G({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}function X(t){return void 0===t||1===t}function H({scale:t,scaleX:e,scaleY:i}){return!X(t)||!X(e)||!X(i)}function Y(t){return H(t)||Z(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Z(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function K(t,e,i,s,n){return void 0!==n&&(t=s+n*(t-s)),s+i*(t-s)+e}function _(t,e=0,i=1,s,n){t.min=K(t.min,e,i,s,n),t.max=K(t.max,e,i,s,n)}function Q(t,{x:e,y:i}){_(t.x,e.translate,e.scale,e.originPoint),_(t.y,i.translate,i.scale,i.originPoint)}function q(t,e){t.min=t.min+e,t.max=t.max+e}function J(t,e,i,s,n=.5){let o=(0,E.t)(t.min,t.max,n);_(t,e,i,o,s)}function tt(t,e){J(t.x,e.x,e.scaleX,e.scale,e.originX),J(t.y,e.y,e.scaleY,e.scale,e.originY)}function te(t,e){return G(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 ti=i(6190),ts=i(7557);let tn=({current:t})=>t?t.ownerDocument.defaultView:null;var to=i(607);let tr=new WeakMap;class ta{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=$(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:s}=this.getProps();this.panSession=new v(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(a(t,"page").point)},onStart:(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:n}=this.getProps();if(i&&!s&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=V(i),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),z(t=>{let e=this.getAxisMotionValue(t).get()||0;if(ti.aQ.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];if(s){let t=b(s);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),n&&m.Wi.postRender(()=>n(t,e)),(0,to.K)(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:n,onDrag:o}=this.getProps();if(!i&&!this.openGlobalLock)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&&o(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>z(t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,contextWindow:tn(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:s}=e;this.startAnimation(s);let{onDragEnd:n}=this.getProps();n&&m.Wi.postRender(()=>n(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:s}=this.getProps();if(!i||!tl(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,E.t)(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?(0,E.t)(i,t,s.max):Math.min(t,i)),t}(o,this.constraints[t],this.elastic[t])),n.set(o)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,n=this.constraints;e&&(0,w.I)(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=function(t,{top:e,left:i,bottom:s,right:n}){return{x:k(t.x,i,n),y:k(t.y,e,s)}}(s.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:U(t,"left","right"),y:U(t,"top","bottom")}}(i),n!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&z(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(s.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!(0,w.I)(e))return!1;let s=e.current;(0,o.k)(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;
1let r=function(t,e,i){let s=te(t,i),{scroll:n}=e;return n&&(q(s.x,n.offset.x),q(s.y,n.offset.y)),s}(s,n.root,this.visualElement.getTransformPagePoint()),a={x:F((t=n.layout.layoutBox).x,r.x),y:F(t.y,r.y)};if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(a));this.hasMutatedConstraints=!!t,t&&(a=G(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:n,dragSnapToOrigin:o,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{};return Promise.all(z(r=>{if(!tl(r,e,this.currentDirection))return;let l=a&&a[r]||{};o&&(l={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,...l};return this.startAxisValueAnimation(r,h)})).then(r)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,to.K)(this.visualElement,t),i.start((0,ts.v)(t,i,0,e,this.visualElement,!1))}stopAnimation(){z(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){z(t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()})}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){z(e=>{let{drag:i}=this.getProps();if(!tl(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];n.set(t[e]-(0,E.t)(i,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!(0,w.I)(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};z(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();s[t]=function(t,e){let i=.5,s=b(t),n=b(e);return n>s?i=(0,D.Y)(e.min,e.max-s,t.min):s>n&&(i=(0,D.Y)(t.min,t.max-n,e.min)),(0,B.u)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),z(e=>{if(!tl(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:o}=this.constraints[e];i.set((0,E.t)(n,o,s[e]))})}addListeners(){if(!this.visualElement.current)return;tr.set(this.visualElement,this);let t=d(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();(0,w.I)(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),m.Wi.read(e);let n=u(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(z(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{n(),t(),s(),o&&o()}}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 tl(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class th extends s{constructor(t){super(t),this.removeGroupControls=n.Z,this.removeListeners=n.Z,this.controls=new ta(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||n.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let tu=t=>(e,i)=>{t&&m.Wi.postRender(()=>t(e,i))};class td extends s{constructor(){super(...arguments),this.removePointerDownListener=n.Z}onPointerDown(t){this.session=new v(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tn(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:tu(t),onStart:tu(e),onMove:i,onEnd:(t,e)=>{delete this.session,s&&m.Wi.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=d(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 tc=i(5893),tp=i(7294),tm=i(240),tv=i(5364),tf=i(1705);let tg={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ty(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let tx={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!ti.px.test(t))return t;t=parseFloat(t)}let i=ty(t,e.target.x),s=ty(t,e.target.y);return`${i}% ${s}%`}};var tP=i(6737),tT=i(4561),tS=i(3582);class tV extends tp.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:n}=t;(0,tT.B)(tw),n&&(e.group&&e.group.add(n),i&&i.register&&s&&i.register(n),n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),tg.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:n}=this.props,o=i.projection;return o&&(o.isPresent=n,s||t.layoutDependency!==e||void 0===e?o.willUpdate():this.safeToRemove(),t.isPresent===n||(n?o.promote():o.relegate()||m.Wi.postRender(()=>
1{let t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tS.g.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;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 tA(t){let[e,i]=function(){let t=(0,tp.useContext)(tm.O);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:i,register:s}=t,n=(0,tp.useId)();(0,tp.useEffect)(()=>s(n),[]);let o=(0,tp.useCallback)(()=>i&&i(n),[n,i]);return!e&&i?[!1,o]:[!0]}(),s=(0,tp.useContext)(tv.p);return(0,tc.jsx)(tV,{...t,layoutGroup:s,switchLayoutGroup:(0,tp.useContext)(tf.g),isPresent:e,safeToRemove:i})}let tw={borderRadius:{...tx,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tx,borderTopRightRadius:tx,borderBottomLeftRadius:tx,borderBottomRightRadius:tx,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let s=tP.P.parse(t);if(s.length>5)return t;let n=tP.P.createTransformer(t),o="number"!=typeof s[0]?1:0,r=i.x.scale*e.x,a=i.y.scale*e.y;s[0+o]/=r,s[1+o]/=a;let l=(0,E.t)(r,a,.5);return"number"==typeof s[2+o]&&(s[2+o]/=l),"number"==typeof s[3+o]&&(s[3+o]/=l),n(s)}}};var tD=i(1560),tE=i(7255);let tb=["TopLeft","TopRight","BottomLeft","BottomRight"],tR=tb.length,tL=t=>"string"==typeof t?parseFloat(t):t,tC=t=>"number"==typeof t||ti.px.test(t);function tj(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let tM=tk(0,.5,tE.Bn),tB=tk(.5,.95,n.Z);function tk(t,e,i){return s=>s<t?0:s>e?1:i((0,D.Y)(t,e,s))}function tF(t,e){t.min=e.min,t.max=e.max}function tU(t,e){tF(t.x,e.x),tF(t.y,e.y)}function tI(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function tO(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 tW(t,e,[i,s,n],o,r){!function(t,e=0,i=1,s=.5,n,o=t,r=t){if(ti.aQ.test(e)&&(e=parseFloat(e),e=(0,E.t)(r.min,r.max,e/100)-r.min),"number"!=typeof e)return;let a=(0,E.t)(o.min,o.max,s);t===o&&(a-=e),t.min=tO(t.min,e,i,a,n),t.max=tO(t.max,e,i,a,n)}(t,e[i],e[s],e[n],e.scale,o,r)}let tN=["x","scaleX","originX"],t$=["y","scaleY","originY"];function tz(t,e,i,s){tW(t.x,e,tN,i?i.x:void 0,s?s.x:void 0),tW(t.y,e,t$,i?i.y:void 0,s?s.y:void 0)}var tG=i(3918);function tX(t){return 0===t.translate&&1===t.scale}function tH(t){return tX(t.x)&&tX(t.y)}function tY(t,e){return t.min===e.min&&t.max===e.max}function tZ(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function tK(t,e){return tZ(t.x,e.x)&&tZ(t.y,e.y)}function t_(t){return b(t.x)/b(t.y)}function tQ(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var tq=i(10);class tJ{constructor(){this.members=[]}add(t){(0,tq.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,tq.cl)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;let i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:s}=t.options;!1===s&&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 t0=(t,e)=>t.depth-e.depth;class t1{constructor(){this.children=[],this.isDirty=!1}add(t){(0,tq.y4)(this.children,t),this.isDirty=!0}remove(t){(0,tq.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(t0),this.isDirty=!1,this.children.forEac
1h(t)}}var t9=i(6399),t5=i(1117),t3=i(3234),t4=i(406),t2=i(3785);let t6={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},t7="undefined"!=typeof window&&void 0!==window.MotionDebug,t8=["","X","Y","Z"],et={visibility:"hidden"},ee=0;function ei(t,e,i,s){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),s&&(s[t]=0))}function es({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:n}){return class{constructor(t={},i=null==e?void 0:e()){this.id=ee++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,t7&&(t6.totalNodes=t6.resolvedTargetDeltas=t6.recalculatedProjection=0),this.nodes.forEach(er),this.nodes.forEach(ep),this.nodes.forEach(em),this.nodes.forEach(ea),t7&&window.MotionDebug.record(t6)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new t1)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tD.L),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:s,layout:n,visualElement:o}=this.options;if(o&&!o.current&&o.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(n||s)&&(this.isLayoutDirty=!0),t){let i;let s=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=t5.X.now(),s=({timestamp:e})=>{let n=e-i;n>=250&&((0,m.Pn)(s),t(n-250))};return m.Wi.read(s,!0),()=>(0,m.Pn)(s)}(s,0),tg.hasAnimatedSinceResize&&(tg.hasAnimatedSinceResize=!1,this.nodes.forEach(ec))})}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&o&&(s||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let n=this.options.transition||o.getDefaultTransition()||eP,{onLayoutAnimationStart:r,onLayoutAnimationComplete:a}=o.getProps(),l=!this.targetLayout||!tK(this.targetLayout,s)||i,h=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,h);let e={...(0,tG.e)(n,"layout"),onPlay:r,onComplete:a};(o.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||ec(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,(0,m.Pn)(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(ev),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=(0,t2.s)(i);if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",m.Wi,!(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(eh);return}this.isUpdating||this.nodes.forEach(eu),this.isUpdating=!1,this.nodes.forEach(ed),this.nodes.forEach(en),this.nodes.forEach(eo),this.clearAllSnapshots();let t=t5.X.now();m.frameData.delta=(0,B.u)(0,1e3/60,t-m.frameData.timestamp),m.frameData.timestamp=t,m.frameData.isProcessing=!0,m.yL.update.process(m.frameData),m.yL.preRender.process(m.frameData),m.yL.render.process(m.frameData),m.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tS.g.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(el),this.sharedNodes.forEach(ef)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,m.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){m.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=$(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){let e=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&&!tH(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,o=s!==this.prevTransformTemplateValue;t&&(e||Y(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)),eV((e=s).x),eV(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return $();let i=e.measureViewportBox();if(!((null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)||this.path.some(ew))){let{scroll:t}=this.root;t&&(q(i.x,t.offset.x),q(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=$();if(tU(i,t),null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let s=this.path[e],{scroll:n,options:o}=s;s!==this.root&&n&&o.layoutScroll&&(n.wasRoot&&tU(i,t),q(i.x,n.offset.x),q(i.y,n.offset.y))}return i}applyTransform(t,e=!1){let i=$();tU(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&&tt(i,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),Y(s.latestValues)&&tt(i,s.latestValues)}return Y(this.latestValues)&&tt(i,this.latestValues),i}removeTransform(t){let e=$();tU(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!Y(i.latestValues))continue;H(i.latestValues)&&i.updateSnapshot();let s=$();tU(s,i.measurePageBox()),tz(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,s)}return Y(this.latestValues)&&tz(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!==m.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,s,n;let o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let r=!!this.resumingFrom||this!==o;if(!(t||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=m.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=$(),this.relativeTargetOrigin=$(
1),M(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),tU(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=$(),this.targetWithTransforms=$()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,s=this.relativeTarget,n=this.relativeParent.target,C(i.x,s.x,n.x),C(i.y,s.y,n.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):tU(this.target,this.layout.layoutBox),Q(this.target,this.targetDelta)):tU(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=$(),this.relativeTargetOrigin=$(),M(this.relativeTargetOrigin,this.target,t.target),tU(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}t7&&t6.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||H(this.parent.latestValues)||Z(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,s=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(s=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(s=!1),this.resolvedRelativeTargetAt===m.frameData.timestamp&&(s=!1),s)return;let{layout:n,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||o))return;tU(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,s=!1){let n,o;let 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&&tt(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,Q(t,o)),s&&Y(n.latestValues)&&tt(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,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=$());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(tI(this.prevProjectionDelta.x,this.projectionDelta.x),tI(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),L(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&tQ(this.projectionDelta.x,this.prevProjectionDelta.x)&&tQ(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),t7&&t6.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null===(e=this.options.visualElement)||void 0===e||e.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=W(),this.projectionDelta=W(),this.projectionDeltaWithTransform=W()}setAnimationOrigin(t,e=!1){let i;let s=this.snapshot,n=s?s.latestValues:{},o={...this.latestValues},r=W();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=$(),l=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),u=!h||h.members.length<=1,d=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(ex));this.animationProgress=0,this.mixTargetDelta=e=>{let s=e/1e3;if(eg(r.x,t.x,s),eg(r.y,t.y,s),this.setTargetDelta(r),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,c,p,m;M(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,ey(p.x,m.x,a.x,s),ey(p.y,m.y,a.y,s),i&&(h=this.relativeTarget,c=i,tY(h.x,c.x)&&tY(h.y,c.y))&&(this.isProjectionDirty=!1),i||(i=$()),tU(i,this.relativeTarget)}
1l&&(this.animationValues=o,function(t,e,i,s,n,o){n?(t.opacity=(0,E.t)(0,void 0!==i.opacity?i.opacity:1,tM(s)),t.opacityExit=(0,E.t)(void 0!==e.opacity?e.opacity:1,0,tB(s))):o&&(t.opacity=(0,E.t)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,s));for(let n=0;n<tR;n++){let o=`border${tb[n]}Radius`,r=tj(e,o),a=tj(i,o);(void 0!==r||void 0!==a)&&(r||(r=0),a||(a=0),0===r||0===a||tC(r)===tC(a)?(t[o]=Math.max((0,E.t)(tL(r),tL(a),s),0),(ti.aQ.test(a)||ti.aQ.test(r))&&(t[o]+="%")):t[o]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,E.t)(e.rotate||0,i.rotate||0,s))}(o,n,this.latestValues,s,d,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=s},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,m.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=m.Wi.update(()=>{tg.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,i){let s=(0,t4.i)(0)?0:(0,t3.BX)(0);return s.start((0,ts.v)("",s,1e3,i)),s.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:s,latestValues:n}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&eA(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||$();let e=b(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=b(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}tU(e,i),tt(e,n),L(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new tJ),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let 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&&ei("z",t,s,this.animationValues);for(let e=0;e<t8.length;e++)ei(`rotate${t8[e]}`,t,s,this.animationValues),ei(`skew${t8[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()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return et;let s={visibility:""},n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=(0,t9.b)(null==t?void 0:t.pointerEvents)||"",s.transform=n?n(this.latestValues,""):"none",s;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=(0,t9.b)(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!Y(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1),e}let r=o.animationValues||o.latestValues;
1this.applyTransformsToTarget(),s.transform=function(t,e,i){let s="",n=t.x.translate/e.x,o=t.y.translate/e.y,r=(null==i?void 0: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,r),n&&(s.transform=n(r,s.transform));let{x:a,y:l}=this.projectionDelta;for(let t in s.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,o.animationValues?s.opacity=o===this?null!==(i=null!==(e=r.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:s.opacity=o===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,tT.P){if(void 0===r[t])continue;let{correct:e,applyTo:i}=tT.P[t],n="none"===s.transform?r[t]:e(r[t],o);if(i){let t=i.length;for(let e=0;e<t;e++)s[i[e]]=n}else s[t]=n}return this.options.layoutId&&(s.pointerEvents=o===this?(0,t9.b)(null==t?void 0:t.pointerEvents)||"":"none"),s}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(eh),this.root.sharedNodes.clear()}}}function en(t){t.updateLayout()}function eo(t){var e;let i=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:s}=t.layout,{animationType:n}=t.options,o=i.source!==t.layout.source;"size"===n?z(t=>{let s=o?i.measuredBox[t]:i.layoutBox[t],n=b(s);s.min=e[t].min,s.max=s.min+n}):eA(n,i.layoutBox,e)&&z(s=>{let n=o?i.measuredBox[s]:i.layoutBox[s],r=b(e[s]);n.max=n.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+r)});let r=W();L(r,e,i.layoutBox);let a=W();o?L(a,t.applyTransform(s,!0),i.measuredBox):L(a,e,i.layoutBox);let l=!tH(r),h=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:n,layout:o}=s;if(n&&o){let r=$();M(r,i.layoutBox,n.layoutBox);let a=$();M(a,e,o.layoutBox),tK(r,a)||(h=!0),s.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=r,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeTargetChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function er(t){t7&&t6.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ea(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function el(t){t.clearSnapshot()}function eh(t){t.clearMeasurements()}function eu(t){t.isLayoutDirty=!1}function ed(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ec(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ep(t){t.resolveTargetDelta()}function em(t){t.calcProjection()}function ev(t){t.resetSkewAndRotation()}function ef(t){t.removeLeadSnapshot()}function eg(t,e,i){t.translate=(0,E.t)(e.translate,0,i),t.scale=(0,E.t)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function ey(t,e,i,s){t.min=(0,E.t)(e.min,i.min,s),t.max=(0,E.t)(e.max,i.max,s)}function ex(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let eP={duration:.45,ease:[.4,0,.1,1]},eT=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),eS=eT("applewebkit/")&&!eT("chrome/")?Math.round:n.Z;function eV(t){t.min=eS(t.min),t.max=eS(t.max)}function eA(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(t_(e)-t_(i)))}function ew(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}let eD=es({attachResizeListener:(t,e)=>u(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),eE={current:void 0},eb=es({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!eE.current){let t=new eD({});t.mount(window),t.setOptions({layoutScroll:!0}),eE.current=t}return eE.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});var eR=i(2445),eL=i(8488);function eC(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}var ej=i(7732),eM=i(2248),eB=i(2963),ek=i(6432);let eF=eB.V.length,eU=[...eB.e].reverse(),eI=eB.e.length;function eO(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function eW(){return{animate:eO(!0),whileInView:eO(),whileHover:eO(),whileTap:eO(),whileDrag:eO(),whileFocus:eO(),exit:eO()}}class eN extends s{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(0,ek.d)(t,e,i))),i=eW(),s=!0,n=e=>(i,s)=>{var n;let o=(0,eM.x)(t,s,"exit"===e?null===(n=t.presenceContext)||void 0===n?void 0:n.custom:void 0);if(o){let{transition:t,transitionEnd:e,...s}=o;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<eF;t++){let s=eB.V[t],n=e.props[s];
1((0,ej.$)(n)||!1===n)&&(i[s]=n)}return i}(t.parent)||{},l=[],h=new Set,u={},d=1/0;for(let e=0;e<eI;e++){var c;let p=eU[e],m=i[p],v=void 0!==r[p]?r[p]:a[p],f=(0,ej.$)(v),g=p===o?m.isActive:null;!1===g&&(d=e);let y=v===a[p]&&v!==r[p]&&f;if(y&&s&&t.manuallyAnimateOnMount&&(y=!1),m.protectedKeys={...u},!m.isActive&&null===g||!v&&!m.prevProp||(0,eR.H)(v)||"boolean"==typeof v)continue;let x=(c=m.prevProp,"string"==typeof v?v!==c:!!Array.isArray(v)&&!eC(v,c)),P=x||p===o&&m.isActive&&!y&&f||e>d&&f,T=!1,S=Array.isArray(v)?v:[v],V=S.reduce(n(p),{});!1===g&&(V={});let{prevResolvedValues:A={}}=m,w={...A,...V},D=e=>{P=!0,h.has(e)&&(T=!0,h.delete(e)),m.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in w){let e=V[t],i=A[t];if(!u.hasOwnProperty(t))((0,eL.C)(e)&&(0,eL.C)(i)?eC(e,i):e===i)?void 0!==e&&h.has(t)?D(t):m.protectedKeys[t]=!0:null!=e?D(t):h.add(t)}m.prevProp=v,m.prevResolvedValues=V,m.isActive&&(u={...u,...V}),s&&t.blockInitialAnimation&&(P=!1);let E=!(y&&x)||T;P&&E&&l.push(...S.map(t=>({animation:t,options:{type:p}})))}if(h.size){let e={};h.forEach(i=>{let s=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=null!=s?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){var n;if(i[e].isActive===s)return Promise.resolve();null===(n=t.variantChildren)||void 0===n||n.forEach(t=>{var i;return null===(i=t.animationState)||void 0===i?void 0:i.setActive(e,s)}),i[e].isActive=s;let r=o(e);for(let t in i)i[t].protectedKeys={};return r},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=eW(),s=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,eR.H)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}let e$=0;class ez extends s{constructor(){super(...arguments),this.id=e$++}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}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}function eG(t,e){let i=e?"onHoverStart":"onHoverEnd";return d(t.current,e?"pointerenter":"pointerleave",(s,n)=>{if("touch"===s.pointerType||A())return;let o=t.getProps();t.animationState&&o.whileHover&&t.animationState.setActive("whileHover",e);let r=o[i];r&&m.Wi.postRender(()=>r(s,n))},{passive:!t.getProps()[i]})}class eX extends s{mount(){this.unmount=(0,c.z)(eG(this.node,!0),eG(this.node,!1))}unmount(){}}class eH 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,c.z)(u(this.node.current,"focus",()=>this.onFocus()),u(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let eY=(t,e)=>!!e&&(t===e||eY(t,e.parentElement));function eZ(t,e){if(!e)return;let i=new PointerEvent("pointer"+t);e(i,a(i))}class eK extends s{constructor(){super(...arguments),this.removeStartListeners=n.Z,this.removeEndListeners=n.Z,this.removeAccessibleListeners=n.Z,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();let i=this.node.getProps(),s=d(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:i,onTapCancel:s,globalTapTarget:n}=this.node.getProps(),o=n||eY(this.node.current,t.target)?i:s;o&&m.Wi.update(()=>o(t,e))},{passive:!(i.onTap||i.onPointerUp)}),n=d(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=(0,c.z)(s,n),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=u(this.node.current,"keydown",t=>{"Enter"!==t.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=u(this.node.current,"keyup",t=>{"Enter"===t.key&&this.checkPressEnd()&&eZ("up",(t,e)=>{let{onTap:i}=this.node.getProps();i&&m.Wi.postRender(()=>i(t,e))})}),eZ("down",(t,e)=>{this.startPress(t,e)}))}),e=u(this.node.current,"blur",()=>{this.isPressing&&eZ("cancel",(t,e)=>this.cancelPress(t,e))});this.removeAccessibleListeners=(0,c.z)(t,e)}}startPress(t,e){this.isPressing=!0;let{onTapStart:i,whileTap:s}=this.node.getProps();s&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&m.Wi.postRender(()=>i(t,e))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!A()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:i}=this.node.getProps();i&&m.Wi.postRender(()=>i(t,e))}mount(){let t=this.node.getProps(),e=d(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=u(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=(0,c.z)(e,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let e_=new WeakMap,eQ=new WeakMap,eq=t=>{let e=e_.get(t.target);e&&e(t)}
1,eJ=t=>{t.forEach(eq)},e0={some:0,all:1};class e1 extends s{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:s="some",once:n}=t,o={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof s?s:e0[s]};return function(t,e,i){let s=function({root:t,...e}){let i=t||document;eQ.has(i)||eQ.set(i,{});let s=eQ.get(i),n=JSON.stringify(e);return s[n]||(s[n]=new IntersectionObserver(eJ,{root:t,...e})),s[n]}(e);return e_.set(t,i),s.observe(t),()=>{e_.delete(t),s.unobserve(t)}}(this.node.current,o,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,n&&!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(),o=e?i:s;o&&o(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}var e9=i(8057),e5=i(7630),e3=i(3139),e4=i(189),e2=i(4242),e6=i(2728),e7=i(1741);let e8={current:null},it={current:!1};var ie=i(7504),ii=i(9432),is=i(9442);let io=new WeakMap;var ir=i(1568),ia=i(3441),il=i(681),ih=i(5385),iu=i(6440),id=i(8340);let ic=[...iu.$,ih.$,tP.P],ip=t=>ic.find((0,id.l)(t));var im=i(9135);let iv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ig{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:n,visualState:o},r={}){this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ir.e,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=t5.X.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,m.Wi.render(this.render,!1,!0))};let{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=r,this.blockInitialAnimation=!!n,this.isControllingVariants=(0,ie.G)(e),this.isVariantNode=(0,ie.M)(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:h,...u}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in u){let e=u[t];void 0!==a[t]&&(0,t4.i)(e)&&e.set(a[t],!1)}}mount(t){this.current=t,io.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)),it.current||function(){if(it.current=!0,e7.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>e8.current=t.matches;t.addListener(e),e()}else e8.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||e8.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in io.delete(this.current),this.projection&&this.projection.unmount(),(0,m.Pn)(this.notifyUpdate),(0,m.Pn)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let s=e3.G.has(t),n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&m.Wi.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),o=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{n(),o(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in is.featureDefinitions){let e=is.featureDefinitions[t];if(!e)continue;let{isEnabled:i,Feature:s}=e;if(!this.features[t]&&s&&i(this.props)&&(this.features[t]=new s(this)),this.features[t]){let e=this.features[t];
1e.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):$()}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<iv.length;e++){let i=iv[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let s=t["on"+i];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=function(t,e,i){for(let s in e){let n=e[s],o=i[s];if((0,t4.i)(n))t.addValue(s,n);else if((0,t4.i)(o))t.addValue(s,(0,t3.BX)(n,{owner:t}));else if(o!==n){if(t.hasValue(s)){let e=t.getValue(s);!0===e.liveStyle?e.jump(n):e.hasAnimated||e.set(n)}else{let e=t.getStaticValue(s);t.addValue(s,(0,t3.BX)(void 0!==e?e:n,{owner:t}))}}}for(let s in i)void 0===e[s]&&t.removeValue(s);return e}(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){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=(0,t3.BX)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let s=void 0===this.latestValues[t]&&this.current?null!==(i=this.getBaseTargetFromProps(this.props,t))&&void 0!==i?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=s&&("string"==typeof s&&((0,ia.P)(s)||(0,il.W)(s))?s=parseFloat(s):!ip(s)&&tP.P.test(e)&&(s=(0,im.T)(t,e)),this.setBaseTarget(t,(0,t4.i)(s)?s.get():s)),(0,t4.i)(s)?s.get():s}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i;let{initial:s}=this.props;if("string"==typeof s||"object"==typeof s){let n=(0,ii.o)(this.props,s,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);n&&(i=n[t])}if(s&&void 0!==i)return i;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||(0,t4.i)(n)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new tD.L),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}var iy=i(204);class ix extends ig{constructor(){super(...arguments),this.KeyframeResolver=iy.s}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}}class iP extends ix{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=e2.N}readValueFromInstance(t,e){if(e3.G.has(e)){let t=(0,e6.A)(e);return t&&t.default||0}{let i=window.getComputedStyle(t),s=((0,e5.f)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:e}){return te(t,e)}build(t,e,i){(0,e9.r)(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return(0,e4.U)(t,e,i)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,t4.i)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}var iT=i(6832),iS=i(5415),iV=i(3193),iA=i(7302),iw=i(8504),iD=i(9854);class iE extends ix{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=$}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(e3.G.has(e)){let t=(0,e6.A)(e);return t&&t.default||0}return e=iA.s.has(e)?e:(0,iV.D)(e),t.getAttribute(e)}
1scrapeMotionValuesFromProps(t,e,i){return(0,iT.U)(t,e,i)}build(t,e,i){(0,iS.i)(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,s){(0,iw.K)(t,e,i,s)}mount(t){this.isSVGTag=(0,iD.a)(t.tagName),super.mount(t)}}var ib=i(2627);let iR={renderer:(t,e)=>(0,ib.q)(t)?new iE(e):new iP(e,{allowProjection:t!==tp.Fragment}),animation:{Feature:eN},exit:{Feature:ez},inView:{Feature:e1},tap:{Feature:eK},focus:{Feature:eH},hover:{Feature:eX},pan:{Feature:td},drag:{Feature:th,ProjectionNode:eb,MeasureLayout:tA},layout:{ProjectionNode:eb,MeasureLayout:tA}}}}]); 2//# sourceMappingURL=735.c86af75089c8c101.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.