1!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="3045a0e8-7a39-4057-8cb5-5ddbc045bd33",t._sentryDebugIdIdentifier="sentry-dbid-3045a0e8-7a39-4057-8cb5-5ddbc045bd33")}catch(t){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8999],{18999:(t,e,i)=>{i.d(e,{P:()=>iD});var n=i(34576),s=i(3729),o=i(12115);let r=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function a(t){if("string"!=typeof t||t.includes("-"));else if(r.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var l=i(95155),h=i(60296);let u=(0,o.createContext)({strict:!1});var d=i(53127);let c=(0,o.createContext)({});var p=i(28033),m=i(19461);function f(t){return Array.isArray(t)?t.join(" "):t}var v=i(33182),y=i(93709),g=i(38708);let x=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function P(t,e,i){for(let n in e)(0,v.S)(e[n])||(0,y.zK)(n,i)||(t[n]=e[n])}var w=i(31439),E=i(36795);let T=()=>({...x(),attrs:{}});var S=i(59132),A=i(76066);function D(t){return(0,v.S)(t)?t.get():t}var L=i(36874),b=i(10883),C=i(59686),R=i(94416);let k=t=>(e,i)=>{let n=(0,o.useContext)(c),s=(0,o.useContext)(C.t),r=()=>(function(t,e,i,n){let{scrapeMotionValuesFromProps:s,createRenderState:o}=t;return{latestValues:function(t,e,i,n){let s={},o=n(t,{});for(let t in o)s[t]=D(o[t]);let{initial:r,animate:a}=t,l=(0,p.e)(t),h=(0,p.O)(t);e&&h&&!l&&!1!==t.inherit&&(void 0===r&&(r=e.initial),void 0===a&&(a=e.animate));let u=!!i&&!1===i.initial,d=(u=u||!1===r)?a:r;if(d&&"boolean"!=typeof d&&!(0,L.N)(d)){let e=Array.isArray(d)?d:[d];for(let i=0;i<e.length;i++){let n=(0,b.a)(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=u?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(e,i,n,s),renderState:o()}})(t,e,n,s);return i?r():(0,R.M)(r)},V=k({scrapeMotionValuesFromProps:A.x,createRenderState:x}),j=k({scrapeMotionValuesFromProps:i(35043).x,createRenderState:T});var M=i(12583);let B={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},U=!1;function I(){return!function(){if(U)return;let t={};for(let e in B)t[e]={isEnabled:t=>B[e].some(e=>!!t[e])};(0,M.lr)(t),U=!0}(),(0,M.vK)()}let O=Symbol.for("motionComponentSymbol");var F=i(99256);let W=(0,o.createContext)({});function G(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var H=i(46436);function N(t){var e,i;let{forwardMotionProps:n=!1,type:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,y=arguments.length>3?arguments[3]:void 0;r&&function(t){let e=I();for(let i in t)e[i]={...e[i],...t[i]};(0,M.lr)(e)}(r);let A=s?"svg"===s:a(t),D=A?j:V;function L(e,i){let s,r={...(0,o.useContext)(d.Q),...e,layoutId:function(t){let{layoutId:e}=t,i=(0,o.useContext)(h.L).id;return i&&void 0!==e?i+"-"+e:e}(e)},{isStatic:L}=r,b=function(t){let{initial:e,animate:i}=function(t,e){if((0,p.e)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,m.w)(e)?e:void 0,animate:(0,m.w)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,o.useContext)(c));return(0,o.useMemo)(()=>({initial:e,animate:i}),[f(e),f(i)])}(e),R=D(e,L);if(!L&&"undefined"!=typeof window){(0,o.useContext)(u).strict;let e=function(t){let{drag:e,layout:i}=I();if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}
1(r);s=e.MeasureLayout,b.visualElement=function(t,e,i,n,s,r){var a,l,h,p;let{visualElement:m}=(0,o.useContext)(c),f=(0,o.useContext)(u),v=(0,o.useContext)(C.t),y=(0,o.useContext)(d.Q),g=y.reducedMotion,x=y.skipAnimations,P=(0,o.useRef)(null),w=(0,o.useRef)(!1);n=n||f.renderer,!P.current&&n&&(P.current=n(t,{visualState:e,parent:m,props:i,presenceContext:v,blockInitialAnimation:!!v&&!1===v.initial,reducedMotionConfig:g,skipAnimations:x,isSVG:r}),w.current&&P.current&&(P.current.manuallyAnimateOnMount=!0));let E=P.current,T=(0,o.useContext)(W);E&&!E.projection&&s&&("html"===E.type||"svg"===E.type)&&function(t,e,i,n){let{layoutId:s,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:h,layoutAnchor:u,layoutCrossfade:d}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:!!r||a&&G(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:n,crossfade:d,layoutScroll:l,layoutRoot:h,layoutAnchor:u})}(P.current,i,s,T);let S=(0,o.useRef)(!1);(0,o.useInsertionEffect)(()=>{E&&S.current&&E.update(i,v)});let A=i[F.n],D=(0,o.useRef)(!!A&&"undefined"!=typeof window&&!(null==(a=(l=window).MotionHandoffIsComplete)?void 0:a.call(l,A))&&(null==(h=(p=window).MotionHasOptimisedAnimation)?void 0:h.call(p,A)));return(0,H.E)(()=>{w.current=!0,E&&(S.current=!0,window.MotionIsMounted=!0,E.updateFeatures(),E.scheduleRenderMicrotask(),D.current&&E.animationState&&E.animationState.animateChanges())}),(0,o.useEffect)(()=>{E&&(!D.current&&E.animationState&&E.animationState.animateChanges(),D.current&&(queueMicrotask(()=>{var t,e;null==(t=(e=window).MotionHandoffMarkAsComplete)||t.call(e,A)}),D.current=!1),E.enteringChildren=void 0)}),E}(t,R,r,y,e.ProjectionNode,A)}return(0,l.jsxs)(c.Provider,{value:b,children:[s&&b.visualElement?(0,l.jsx)(s,{visualElement:b.visualElement,...r}):null,function(t,e,i,n,s){let{latestValues:r}=n,l=arguments.length>5&&void 0!==arguments[5]&&arguments[5],h=arguments.length>6?arguments[6]:void 0,u=((null!=h?h:a(t))?function(t,e,i,n){let s=(0,o.useMemo)(()=>{let i=T();return(0,w.B)(i,e,(0,E.n)(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};P(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return P(n,i,t),Object.assign(n,function(t,e){let{transformTemplate:i}=t;return(0,o.useMemo)(()=>{let t=x();return(0,g.O)(t,e,i),Object.assign({},t.vars,t.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":"pan-".concat("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(e,r,s,t),d=(0,S.J)(e,"string"==typeof t,l),c=t!==o.Fragment?{...d,...u,ref:i}:{},{children:p}=e,m=(0,o.useMemo)(()=>(0,v.S)(p)?p.get():p,[p]);return(0,o.createElement)(t,{...c,children:m})}(t,e,function(t,e,i){let n=(0,o.useRef)(i);(0,o.useInsertionEffect)(()=>{n.current=i});let s=(0,o.useRef)(null);return(0,o.useCallback)(i=>{if(i){var o;null==(o=t.onMount)||o.call(t,i)}e&&(i?e.mount(i):e.unmount());let r=n.current;if("function"==typeof r)if(i){let t=r(i);"function"==typeof t&&(s.current=t)}else s.current?(s.current(),s.current=null):r(i);else r&&(r.current=i)},[e])}(R,b.visualElement,i),R,L,n,A)]})}L.displayName="motion.".concat("string"==typeof t?t:"create(".concat(null!=(i=null!=(e=t.displayName)?e:t.name)?i:"",")"));let b=(0,o.forwardRef)(L);return b[O]=t,b}class z{constructor(t){this.isMounted=!1,this.node=t}update(){}}var $=i(35471),K=i(93746),X=i(52036);let Q=X._.length;var q=i(7112),_=i(21767);function Y(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}let J=[...X.U].reverse(),Z=X.U.length;function tt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function te(){return{animate:tt(!0),whileInView:tt(),whileHover:tt(),whileTap:tt(),whileDrag:tt(),whileFocus:tt(),exit:tt()}}class ti extends z{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>
1(0,$._)(t,e,i))),i=te(),n=!0,s=!1,o=e=>(i,n)=>{let s=(0,_.K)(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function r(r){let{props:a}=t,l=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<Q;t++){let n=X._[t],s=e.props[n];((0,m.w)(s)||!1===s)&&(i[n]=s)}return i}(t.parent)||{},h=[],u=new Set,d={},c=1/0;for(let e=0;e<Z;e++){var p,f;let v=J[e],y=i[v],g=void 0!==a[v]?a[v]:l[v],x=(0,m.w)(g),P=v===r?y.isActive:null;!1===P&&(c=e);let w=g===l[v]&&g!==a[v]&&x;if(w&&(n||s)&&t.manuallyAnimateOnMount&&(w=!1),y.protectedKeys={...d},!y.isActive&&null===P||!g&&!y.prevProp||(0,L.N)(g)||"boolean"==typeof g)continue;if("exit"===v&&y.isActive&&!0!==P){y.prevResolvedValues&&(d={...d,...y.prevResolvedValues});continue}let E=(p=y.prevProp,"string"==typeof(f=g)?f!==p:!!Array.isArray(f)&&!Y(f,p)),T=E||v===r&&y.isActive&&!w&&x||e>c&&x,S=!1,A=Array.isArray(g)?g:[g],D=A.reduce(o(v),{});!1===P&&(D={});let{prevResolvedValues:b={}}=y,C={...b,...D},R=e=>{T=!0,u.has(e)&&(S=!0,u.delete(e)),y.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in C){let e=D[t],i=b[t];if(!d.hasOwnProperty(t))((0,q.p)(e)&&(0,q.p)(i)?!Y(e,i)||E:e!==i)?null!=e?R(t):u.add(t):void 0!==e&&u.has(t)?R(t):y.protectedKeys[t]=!0}y.prevProp=g,y.prevResolvedValues=D,y.isActive&&(d={...d,...D}),(n||s)&&t.blockInitialAnimation&&(T=!1);let k=w&&E,V=!k||S;T&&V&&h.push(...A.map(e=>{let i={type:v};if("string"==typeof e&&(n||s)&&!k&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,s=(0,_.K)(n,e);if(n.enteringChildren&&s){let{delayChildren:e}=s.transition||{};i.delay=(0,K.L)(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(u.size){let e={};if("boolean"!=typeof a.initial){let i=(0,_.K)(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}u.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=n??null}),h.push({animation:e})}let v=!!h.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(v=!1),n=!1,s=!1,v?e(h):Promise.resolve()}return{animateChanges:r,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let s=r(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=te(),s=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,L.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 tn=0;class ts extends z{constructor(){super(...arguments),this.id=tn++,this.isExitComplete=!1}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;if(t&&!1===i){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t||"object"==typeof t&&null!==t&&!Array.isArray(t)){let i=(0,_.K)(this.node,t,e);if(i){let{transition:t,transitionEnd:e,...n}=i;for(let t in n)this.node.getValue(t)?.jump(n[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
1e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}var to=i(6500),tr=i(39622);let ta={x:!1,y:!1};function tl(t){return[t("x"),t("y")]}var th=i(92419),tu=i(39361);function td(t){return t.max-t.min}function tc(t,e,i,n=.5){t.origin=n,t.originPoint=(0,tu.k)(e.min,e.max,t.origin),t.scale=td(i)/td(e),t.translate=(0,tu.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 tp(t,e,i,n){tc(t.x,e.x,i.x,n?n.originX:void 0),tc(t.y,e.y,i.y,n?n.originY:void 0)}function tm(t,e,i,n=0){t.min=(n?(0,tu.k)(i.min,i.max,n):i.min)+e.min,t.max=t.min+td(e)}function tf(t,e,i,n=0){let s=n?(0,tu.k)(i.min,i.max,n):i.min;t.min=e.min-s,t.max=t.min+td(e)}function tv(t,e,i,n){tf(t.x,e.x,i.x,n?.x),tf(t.y,e.y,i.y,n?.y)}var ty=i(73934),tg=i(23781),tx=i(68745),tP=i(33152),tw=i(77217);let tE=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),tT=new Set(["INPUT","SELECT","TEXTAREA"]);function tS(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}var tA=i(90236),tD=i(78041);let tL=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function tb(t){return{point:{x:t.pageX,y:t.pageY}}}function tC(t,e,i,n){return tS(t,e,t=>tL(t)&&i(t,tb(t)),n)}let tR=({current:t})=>t?t.ownerDocument.defaultView:null;var tk=i(23656),tV=i(27290);let tj=(t,e)=>Math.abs(t-e),tM=new Set(["auto","scroll"]);class tB{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:s=!1,distanceThreshold:o=3,element:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=tU(this.lastRawMoveEventInfo,this.transformPagePoint));let t=tO(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(tj(t.x,e.x)**2+tj(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=this.distanceThreshold;if(!e&&!i)return;let{point:n}=t,{timestamp:s}=ty.uv;this.history.push({...n,timestamp:s});let{onStart:o,onMove:r}=this.handlers;e||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),r&&r(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=tU(e,this.transformPagePoint),ty.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=tO("pointercancel"===t.type?this.lastMoveEventInfo:tU(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,o),n&&n(t,o)},!tL(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=o,this.contextWindow=n||window;let a=tU(tb(t),this.transformPagePoint),{point:l}=a,{timestamp:h}=ty.uv;this.history=[{...l,timestamp:h}];let{onSessionStart:u}=e;u&&u(t,tO(a,this.history)),this.removeListeners=(0,tk.F)(tC(this.contextWindow,"pointermove",this.handlePointerMove),tC(this.contextWindow,"pointerup",this.handlePointerUp),tC(this.contextWindow,"pointercancel",this.handlePointerUp)),r&&this.startScrollTracking(r)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(tM.has(t.overflowX)||tM.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,n=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:n.x-e.x,y:n.y-e.y};(0!==s.x||0!==s.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,n),ty.Gt.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,ty.WG)(this.updatePoint)}}function tU(t,e){return e?{point:e(t.point)}:t}function tI(t,e){return{x:t.x-e.x,y:t.y-e.y}}function tO({point:t},e){return{point:t,delta:tI(t,tF(e)),offset:tI(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,s=tF(t);for(;i>=0&&(n=t[i],!(s.timestamp-n.timestamp>(0,tV.f)(.1)));)i--;if(!n)return{x:0,y:0};n===t[0]&&t.length>2&&s.timestamp-n.timestamp>2*(0,tV.f)(e)&&(n=t[1]);let o=(0,tV.X)(s.timestamp-n.timestamp);if(0===o)return{x:0,y:0};let r={x:(s.x-n.x)/o,y:(s.y-n.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(e,.1)}}function tF(t){return t[t.length-1]}var tW=i(91225),tG=i(48895);
1function tH(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 tN(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function tz(t,e,i){return{min:t$(t,e),max:t$(t,i)}}function t$(t,e){return"number"==typeof t?t:t[e]||0}let tK=new WeakMap;class tX{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,tr.ge)(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let s=t=>{e&&this.snapToCursor(tb(t).point),this.stopAnimation()},o=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(ta[t])return null;else return ta[t]=!0,()=>{ta[t]=!1};return ta.x||ta.y?null:(ta.x=ta.y=!0,()=>{ta.x=ta.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),tl(t=>{let e=this.getAxisMotionValue(t).get()||0;if(th.KN.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=td(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&ty.Gt.update(()=>s(t,e),!1,!0),(0,tg.g)(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},r=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:o}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:r}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(r),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),o&&ty.Gt.update(()=>o(t,e),!1,!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:h}=this.getProps();this.panSession=new tB(t,{onSessionStart:s,onStart:o,onMove:r,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:i,contextWindow:tR(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!n||!i)return;let{velocity:o}=n;this.startAnimation(o);let{onDragEnd:r}=this.getProps();r&&ty.Gt.postRender(()=>r(i,n))}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:n}=this.getProps();if(!i||!tq(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),o=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?(0,tu.k)(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?(0,tu.k)(i,t,n.max):Math.min(t,i)),t}(o,this.constraints[t],this.elastic[t])),s.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,n=this.constraints;t&&G(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:tH(t.x,i,s),y:tH(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:tz(t,"left","right"),y:tz(t,"top","bottom")}}(e),n!==this.constraints&&!G(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&tl(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}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!G(e))return!1;let n=e.current;(0,tD.V)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;s.root&&(s.root.scroll=void 0,s.root.updateScroll());let o=(0,tx.L)(n,s.root,this.visualElement.getTransformPagePoint()),r=(t=s.layout.layoutBox,{x:tN(t.x,o.x),y:tN(t.y,o.y)});if(i){let t=i((0,tP.pA)(r));this.hasMutatedConstraints=!!t,t&&(r=(0,tP.FY)(t))}return r}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{};return Promise.all(tl(r=>{if(!tq(r,e,this.currentDirection))return;let l=a&&a[r]||{};(!0===o||o===r)&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[r]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(r,h)})).then(r)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,tg.g)(this.visualElement,t),i.start((0,tw.f)(t,i,0,e,this.visualElement,!1))}stopAnimation(){tl(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`;return this.visualElement.getProps()[e]||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){tl(e=>{let{drag:i}=this.getProps();if(!tq(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:o}=n.layout.layoutBox[e],r=s.get()||0;s.set(t[e]-(0,tu.k)(i,o,.5)+r)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!G(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};tl(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=td(t),s=td(e);return s>n?i=(0,tW.q)(e.min,e.max-n,t.min):n>s&&(i=(0,tW.q)(t.min,t.max-s,e.min)),(0,tG.q)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),tl(e=>{if(!tq(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:o}=this.constraints[e];i.set((0,tu.k)(s,o,n[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;tK.set(this.visualElement,this);let e=this.visualElement.current,i=tC(e,"pointerdown",t=>{let{drag:i,dragListener:n=!0}
1=this.getProps(),s=t.target,o=s!==e&&(tT.has(s.tagName)||!0===s.isContentEditable);i&&n&&!o&&this.start(t)}),n=()=>{let{dragConstraints:i}=this.getProps();G(i)&&i.current&&(this.constraints=this.resolveRefConstraints(),t||(t=function(t,e,i){let n=(0,tA.X)(t,tQ(i)),s=(0,tA.X)(e,tQ(i));return()=>{n(),s()}}(e,i.current,()=>this.scalePositionWithinConstraints())))},{projection:s}=this.visualElement,o=s.addEventListener("measure",n);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),ty.Gt.read(n);let r=tS(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(tl(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(),a&&a(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:o=.35,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:o,dragMomentum:r}}}function tQ(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function tq(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class t_ extends z{constructor(t){super(t),this.removeGroupControls=to.l,this.removeListeners=to.l,this.controls=new tX(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||to.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 tY=t=>(e,i)=>{t&&ty.Gt.update(()=>t(e,i),!1,!0)};class tJ extends z{constructor(){super(...arguments),this.removePointerDownListener=to.l}onPointerDown(t){this.session=new tB(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tR(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:tY(t),onStart:tY(e),onMove:tY(i),onEnd:(t,e)=>{delete this.session,n&&ty.Gt.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=tC(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let tZ={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var t0=i(38358),t1=i(75601);let t3=!1;class t5 extends o.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),t3&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),tZ.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,{projection:o}=i;return o&&(o.isPresent=s,t.layoutDependency!==e&&o.setOptions({...o.options,layoutDependency:e}),t3=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||ty.Gt.postRender(()=>{let t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:e}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=e,i.root.didUpdate(),t0.k.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;t3=!0,n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function t2(t){let[e,i]=(0,t1.xQ)(),n=(0,o.useContext)(h.L);return(0,l.jsx)(t5,{...t,layoutGroup:n,switchLayoutGroup:(0,o.useContext)(W),isPresent:e,safeToRemove:i})}var t6=i(8453),t9=i(78616),t4=i(60738),t7=i(63354),t8=i(27424),et=i(45385),ee=i(62213),ei=i(23867),en=i(29089),es=i(25188),eo=i(22039),er=i(69809);let ea=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],el=ea.length,eh=t=>"string"==typeof t?parseFloat(t):t,eu=t=>"number"==typeof t||th.px.test(t);function ed(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let ec=em(0,.5,er.yT),ep=em(.5,.95,to.l);function em(t,e,i){return n=>n<t?0:n>e?1:i((0,tW.q)(t,e,n))}function ef(t,e){t.min=e.min,t.max=e.max}function ev(t,e){ef(t.x,e.x),ef(t.y,e.y)}function ey(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var eg=i(17727);function ex(t,e,i,n,s){return t-=e,t=(0,eg.hq)(t,1/i,n),void 0!==s&&(t=(0,eg.hq)(t,1/s,n)),t}function eP(t,e,[i,n,s],o,r){!function(t,e=0,i=1,n=.5,s,o=t,r=t){if(th.KN.test(e)&&(e=parseFloat(e),e=(0,tu.k)(r.min,r.max,e/100)-r.min),"number"!=typeof e)return;let a=(0,tu.k)(o.min,o.max,n);t===o&&(a-=e),t.min=ex(t.min,e,i,a,s),t.max=ex(t.max,e,i,a,s)}(t,e[i],e[n],e[s],e.scale,o,r)}let ew=["x","scaleX","originX"],eE=["y","scaleY","originY"];function eT(t,e,i,n){eP(t.x,e,ew,i?i.x:void 0,n?n.x:void 0),eP(t.y,e,eE,i?i.y:void 0,n?n.y:void 0)}function eS(t){return 0===t.translate&&1===t.scale}function eA(t){return eS(t.x)&&eS(t.y)}function eD(t,e){return t.min===e.min&&t.max===e.max}function eL(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function eb(t,e){return eL(t.x,e.x)&&eL(t.y,e.y)}function eC(t){return td(t.x)/td(t.y)}function eR(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var ek=i(16105);class eV{constructor(){this.members=[]}add(t){(0,ek.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 n=i.instance;n&&!1!==n.isConnected||i.snapshot||((0,ek.Ai)(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if((0,ek.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){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:n}=i.options,{layoutDependency:s}=t.options;(void 0===n||n!==s)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let ej=(t,e)=>t.depth-e.depth;class eM{constructor(){this.children=[],this.isDirty=!1}add(t){(0,ek.Kq)(this.children,t),this.isDirty=!0}remove(t){(0,ek.Ai)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(ej),this.isDirty=!1,this.children.forEach(t)}}var eB=i(42418);let eU={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},eI=["","X","Y","Z"],eO=0;function eF(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function eW({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=e?.()){this.id=eO++,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,ei.Q.value&&(eU.nodes=eU.calculatedTargetDeltas=eU.calculatedProjections=0),this.nodes.forEach(eN),this.nodes.forEach(eJ),this.nodes.forEach(eZ),this.nodes.forEach(ez),ei.Q.addProjectionMetrics&&ei.Q.addProjectionMetrics(eU)},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 eM)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new t6.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,en.x)(e)&&!(0,es.h)(e),this.instance=e;let{layoutId:i,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i,n=0,s=()=>this.root.updateBlockedByResize=!1;ty.Gt.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;t!==n&&(n=t,this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=t8.k.now(),n=({timestamp:e})=>{let s=e-i;s>=250&&((0,ty.WG)(n),t(s-250))};return ty.Gt.setup(n,!0),()=>(0,ty.WG)(n)}(s,250),tZ.hasAnimatedSinceResize&&(tZ.hasAnimatedSinceResize=!1,this.nodes.forEach(eY)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||s.getDefaultTransition()||e6,{onLayoutAnimationStart:r,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!eb(this.targetLayout,n),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={...(0,t7.r)(o,"layout"),onPlay:r,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h,e.path)}else e||eY(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,ty.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(e0),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=(0,t4.P)(i);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ty.Gt,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(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,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEach(eX),this.nodes.forEach(eK);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(eQ);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(eq),this.nodes.forEach(e_),this.nodes.forEach(eG),this.nodes.forEach(eH)):this.nodes.forEach(eQ),this.clearAllSnapshots();let t=t8.k.now();ty.uv.delta=(0,tG.q)(0,1e3/60,t-ty.uv.timestamp),ty.uv.timestamp=t,ty.uv.isProcessing=!0,ty.PP.update.process(ty.uv),ty.PP.preRender.process(ty.uv),ty.PP.render.process(ty.uv),ty.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,t0.k.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(e$),this.sharedNodes.forEach(e1)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ty.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ty.Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||td(this.snapshot.measuredBox.x)||td(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||(this.layoutCorrected=(0,tr.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=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!s)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!eA(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,o=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||(0,eB.HD)(this.latestValues)||o)&&(s(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),e7((e=n).x),e7(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,tr.ge)();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(it))){let{scroll:t}=this.root;t&&((0,eg.Ql)(e.x,t.offset.x),(0,eg.Ql)(e.y,t.offset.y))}return e}removeElementScroll(t){let e=(0,tr.ge)();if(ev(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:s,options:o}=n;n!==this.root&&s&&o.layoutScroll&&(s.wasRoot&&ev(e,t),(0,eg.Ql)(e.x,s.offset.x),(0,eg.Ql)(e.y,s.offset.y))}return e}applyTransform(t,e=!1,i){let n=i||(0,tr.ge)();ev(n,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&((0,eg.Ql)(n.x,-i.scroll.offset.x),(0,eg.Ql)(n.y,-i.scroll.offset.y)),(0,eB.HD)(i.latestValues)&&(0,eg.Ww)(n,i.latestValues,i.layout?.layoutBox)}return(0,eB.HD)(this.latestValues)&&(0,eg.Ww)(n,this.latestValues,this.layout?.layoutBox),n}removeTransform(t){let e=(0,tr.ge)();ev(e,t);for(let t=0;t<this.path.length;t++){let i,n=this.path[t];(0,eB.HD)(n.latestValues)&&(n.instance&&((0,eB.vk)(n.latestValues)&&n.updateSnapshot(),ev(i=(0,tr.ge)(),n.measurePageBox())),eT(e,n.latestValues,n.snapshot?.layoutBox,i))}return(0,eB.HD)(this.latestValues)&&eT(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!==ty.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:n,layoutId:s}=this.options;if(!this.layout||!(n||s))return;this.resolvedRelativeTargetAt=ty.uv.timestamp;let o=this.getClosestProjectingParent();if(o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=(0,tr.ge)(),this.targetWithTransforms=(0,tr.ge)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var r,a,l,h;this.forceRelativeParentToResolveTarget(),r=this.target,a=this.relativeTarget,l=this.relativeParent.target,h=this.options.layoutAnchor||void 0,tm(r.x,a.x,l.x,h?.x),tm(r.y,a.y,l.y,h?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):ev(this.target,this.layout.layoutBox),(0,eg.o4)(this.target,this.targetDelta)):ev(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&o&&!!o.resumingFrom==!!this.resumingFrom&&!o.options.layoutScroll&&o.target&&1!==this.animationProgress?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0),ei.Q.value&&eU.calculatedTargetDeltas++}}getClosestProjectingParent(){if(!(!this.parent||(0,eB.vk)(this.parent.latestValues)||(0,eB.vF)(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,tr.ge)(),this.relativeTargetOrigin=(0,tr.ge)(),tv(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),ev(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===ty.uv.timestamp&&(i=!1),i)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||s))return;ev(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,r=this.treeScale.y;(0,eg.OU)(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,tr.ge)());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(ey(this.prevProjectionDelta.x,this.projectionDelta.x),ey(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),tp(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===o&&this.treeScale.y===r&&eR(this.projectionDelta.x,this.prevProjectionDelta.x)&&eR(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),ei.Q.value&&eU.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,tr.xU)(),this.projectionDelta=(0,tr.xU)(),this.projectionDeltaWithTransform=(0,tr.xU)()}setAnimationOrigin(t,e=!1,i){let n,s=this.snapshot,o=s?s.latestValues:{},r={...this.latestValues},a=(0,tr.xU)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let l=(0,tr.ge)(),h=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),d=!u||u.members.length<=1,c=!!(h&&!d&&!0===this.options.crossfade&&!this.path.some(e2));this.animationProgress=0;let p=i?.interpolateProjection(t);this.mixTargetDelta=e=>{let i=e/1e3,s=p?.(i);if(s?(a.x.translate=s.x,a.x.scale=(0,tu.k)(t.x.scale,1,i),a.x.origin=t.x.origin,a.x.originPoint=t.x.originPoint,a.y.translate=s.y,a.y.scale=(0,tu.k)(t.y.scale,1,i),a.y.origin=t.y.origin,a.y.originPoint=t.y.originPoint):(e3(a.x,t.x,i),e3(a.y,t.y,i)),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,m,f,v,y,g;tv(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),f=this.relativeTarget,v=this.relativeTargetOrigin,y=l,g=i,e5(f.x,v.x,y.x,g),e5(f.y,v.y,y.y,g),n&&(u=this.relativeTarget,m=n,eD(u.x,m.x)&&eD(u.y,m.y))&&(this.isProjectionDirty=!1),n||(n=(0,tr.ge)()),ev(n,this.relativeTarget)}h&&(this.animationValues=r,function(t,e,i,n,s,o){s?(t.opacity=(0,tu.k)(0,i.opacity??1,ec(n)),t.opacityExit=(0,tu.k)(e.opacity??1,0,ep(n))):o&&(t.opacity=(0,tu.k)(e.opacity??1,i.opacity??1,n));for(let s=0;s<el;s++){let o=ea[s],r=ed(e,o),a=ed(i,o);(void 0!==r||void 0!==a)&&(r||(r=0),a||(a=0),0===r||0===a||eu(r)===eu(a)?(t[o]=Math.max((0,tu.k)(eh(r),eh(a),n),0),(th.KN.test(a)||th.KN.test(r))&&(t[o]+="%")):t[o]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,tu.k)(e.rotate||0,i.rotate||0,n))}(r,o,this.latestValues,i,c,d)),s&&void 0!==s.rotate&&(this.animationValues||(this.animationValues=r),this.animationValues.pathRotation=s.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,ty.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ty.Gt.update(()=>{tZ.hasAnimatedSinceResize=!0,ee.q.layout++,this.motionValue||(this.motionValue=(0,eo.OQ)(0)),this.motionValue.jump(0,!1),this.currentAnimation=(0,t9.z)(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{ee.q.layout--},onComplete:()=>{ee.q.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&e8(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||(0,tr.ge)();let e=td(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=td(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}
1ev(e,i),(0,eg.Ww)(e,s),tp(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new eV),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;return 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 n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&eF("z",t,n,this.animationValues);for(let e=0;e<eI.length;e++)eF(`rotate${eI[e]}`,t,n,this.animationValues),eF(`skew${eI[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}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=D(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=D(e?.pointerEvents)||""),this.hasProjected&&!(0,eB.HD)(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let s=n.animationValues||n.latestValues;this.applyTransformsToTarget();let o=function(t,e,i){let n="",s=t.x.translate/e.x,o=t.y.translate/e.y,r=i?.z||0;if((s||o||r)&&(n=`translate3d(${s}px, ${o}px, ${r}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,pathRotation:s,rotateX:o,rotateY:r,skewX:a,skewY:l}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),s&&(n+=`rotate(${s}deg) `),o&&(n+=`rotateX(${o}deg) `),r&&(n+=`rotateY(${r}deg) `),a&&(n+=`skewX(${a}deg) `),l&&(n+=`skewY(${l}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,s);i&&(o=i(s,o)),t.transform=o;let{x:r,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*r.origin}% ${100*a.origin}% 0`,n.animationValues?t.opacity=n===this?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:t.opacity=n===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,et.H){if(void 0===s[e])continue;let{correct:i,applyTo:r,isCSSVariable:a}=et.H[e],l="none"===o?s[e]:i(s[e],n);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=n===this?D(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(eK),this.root.sharedNodes.clear()}}}function eG(t){t.updateLayout()}function eH(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:s}=t.options,o=e.source!==t.layout.source;if("size"===s)tl(t=>{let n=o?e.measuredBox[t]:e.layoutBox[t],s=td(n);n.min=i[t].min,n.max=n.min+s});else if("x"===s||"y"===s){let t="x"===s?"y":"x";ef(o?e.measuredBox[t]:e.layoutBox[t],i[t])}else e8(s,e.layoutBox,i)&&tl(n=>{let s=o?e.measuredBox[n]:e.layoutBox[n],r=td(i[n]);s.max=s.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+r)});let r=(0,tr.xU)();tp(r,i,e.layoutBox);let a=(0,tr.xU)();o?tp(a,t.applyTransform(n,!0),e.measuredBox):tp(a,i,e.layoutBox);let l=!eA(r),h=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:o}=n;
1if(s&&o){let r=t.options.layoutAnchor||void 0,a=(0,tr.ge)();tv(a,e.layoutBox,s.layoutBox,r);let l=(0,tr.ge)();tv(l,i,o.layoutBox,r),eb(a,l)||(h=!0),n.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=a,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function eN(t){ei.Q.value&&eU.nodes++,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 ez(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function e$(t){t.clearSnapshot()}function eK(t){t.clearMeasurements()}function eX(t){t.isLayoutDirty=!0,t.updateLayout()}function eQ(t){t.isLayoutDirty=!1}function eq(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function e_(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function eY(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function eJ(t){t.resolveTargetDelta()}function eZ(t){t.calcProjection()}function e0(t){t.resetSkewAndRotation()}function e1(t){t.removeLeadSnapshot()}function e3(t,e,i){t.translate=(0,tu.k)(e.translate,0,i),t.scale=(0,tu.k)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function e5(t,e,i,n){t.min=(0,tu.k)(e.min,i.min,n),t.max=(0,tu.k)(e.max,i.max,n)}function e2(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let e6={duration:.45,ease:[.4,0,.1,1]},e9=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),e4=e9("applewebkit/")&&!e9("chrome/")?Math.round:to.l;function e7(t){t.min=e4(t.min),t.max=e4(t.max)}function e8(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(eC(e)-eC(i)))}function it(t){return t!==t.root&&t.scroll?.wasRoot}let ie=eW({attachResizeListener:(t,e)=>tS(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),ii={current:void 0},is=eW({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ii.current){let t=new ie({});t.mount(window),t.setOptions({layoutScroll:!0}),ii.current=t}return ii.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});var io=i(38561);function ir(t,e){let i=(0,io.K)(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function ia(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&ty.Gt.postRender(()=>s(e,tb(e)))}class il extends z{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,o]=ir(t,i);return n.forEach(t=>{let i,n=!1,o=!1,r=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},a=t=>{n=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),o&&(o=!1,r(t))},l=t=>{if("touch"!==t.pointerType){if(n){o=!0;return}r(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||ta.x||ta.y)return;o=!1;let r=e(t,n);"function"==typeof r&&(i=r,t.addEventListener("pointerleave",l,s))},s),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",a,s)},s)}),o}(t,(t,e)=>(ia(this.node,e,"Start"),t=>ia(this.node,t,"End"))))}unmount(){}}class ih extends z{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,tk.F)(tS(this.node.current,"focus",()=>this.onFocus()),tS(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var iu=i(81402);let id=(t,e)=>!!e&&(t===e||id(t,e.parentElement)),ic=new WeakSet;function ip(t){return e=>{"Enter"===e.key&&t(e)}}function im(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function iv(t){return tL(t)&&!(ta.x||ta.y)}let iy=new WeakSet;function ig(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let s=n["onTap"+("End"===i?"":i)];s&&ty.Gt.postRender(()=>s(e,tb(e)))}class ix extends z{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;
1this.unmount=function(t,e,i={}){let[n,s,o]=ir(t,i),r=t=>{let n=t.currentTarget;if(!iv(t)||iy.has(t))return;ic.add(n),i.stopPropagation&&iy.add(t);let o=e(n,t),r=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),ic.has(n)&&ic.delete(n),iv(t)&&"function"==typeof o&&o(t,{success:e})},a=t=>{r(t,n===window||n===document||i.useGlobalTarget||id(n,t.target))},l=t=>{r(t,!1)};window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",l,s)};return n.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",r,s),(0,iu.s)(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=ip(()=>{if(ic.has(i))return;im(i,"down");let t=ip(()=>{im(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>im(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,s)),tE.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),o}(t,(t,e)=>(ig(this.node,e,"Start"),(t,{success:e})=>ig(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}let iP=new WeakMap,iw=new WeakMap,iE=t=>{let e=iP.get(t.target);e&&e(t)},iT=t=>{t.forEach(iE)},iS={some:0,all:1};class iA extends z{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:s}=t,o={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:iS[n]},r=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,s&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),o=e?i:n;o&&o(t)};this.stopObserver=function(t,e,i){let n=function({root:t,...e}){let i=t||document;iw.has(i)||iw.set(i,{});let n=iw.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(iT,{root:t,...e})),n[s]}(e);return iP.set(t,i),n.observe(t),()=>{iP.delete(t),n.unobserve(t)}}(this.node.current,o,r)}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(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}let iD=function(t,e){if("undefined"==typeof Proxy)return N;let i=new Map,n=(i,n)=>N(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(s,o)=>"create"===o?n:(i.has(o)||i.set(o,N(o,void 0,t,e)),i.get(o))})}({animation:{Feature:ti},exit:{Feature:ts},inView:{Feature:iA},tap:{Feature:ix},focus:{Feature:ih},hover:{Feature:il},pan:{Feature:tJ},drag:{Feature:t_,ProjectionNode:is,MeasureLayout:t2},layout:{ProjectionNode:is,MeasureLayout:t2}},(t,e)=>e.isSVG??a(t)?new n.l(e):new s.M(e,{allowProjection:t!==o.Fragment}))},35471:(t,e,i)=>{i.d(e,{_:()=>a});var n=i(21767),s=i(54838),o=i(93746);function r(t,e,i={}){let a=(0,n.K)(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:l=t.getDefaultTransition()||{}}=a||{};i.transitionOverride&&(l=i.transitionOverride);let h=a?()=>Promise.all((0,s.$)(t,a,i)):()=>Promise.resolve(),u=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:a,staggerDirection:h}=l;return function(t,e,i=0,n=0,s=0,a=1,l){let h=[];for(let u of t.variantChildren)u.notify("AnimationStart",e),h.push(r(u,e,{...l,delay:i+("function"==typeof n?0:n)+(0,o.L)(t.variantChildren,u,n,s,a)}).then(()=>u.notify("AnimationComplete",e)));return Promise.all(h)}(t,e,n,s,a,h,i)}:()=>Promise.resolve(),{when:d}=l;if(!d)return Promise.all([h(),u(i.delay)]);{let[t,e]="beforeChildren"===d?[h,u]:[u,h];return t().then(()=>e())}}function a(t,e,i={}){let o;if(t.notify("AnimationStart",e),Array.isArray(e))o=Promise.all(e.map(e=>r(t,e,i)));else if("string"==typeof e)o=r(t,e,i);else{let r="function"==typeof e?(0,n.K)(t,e,i.custom):e;o=Promise.all((0,s.$)(t,r,i))}return o.then(()=>{t.notify("AnimationComplete",e)})}}
1,46436:(t,e,i)=>{i.d(e,{E:()=>s});var n=i(12115);let s="undefined"!=typeof window?n.useLayoutEffect:n.useEffect},59132:(t,e,i)=>{i.d(e,{J:()=>l,D:()=>a});var n=i(33182);let s=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function o(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||s.has(t)}let r=t=>!o(t);function a(t){"function"==typeof t&&(r=e=>e.startsWith("on")?!o(e):t(e))}try{a(require("@emotion/is-prop-valid").default)}catch{}function l(t,e,i){let s={};for(let a in t)("values"!==a||"object"!=typeof t.values)&&!(0,n.S)(t[a])&&(r(a)||!0===i&&o(a)||!e&&!o(a)||t.draggable&&a.startsWith("onDrag"))&&(s[a]=t[a]);return s}},59686:(t,e,i)=>{i.d(e,{t:()=>n});let n=(0,i(12115).createContext)(null)},60296:(t,e,i)=>{i.d(e,{L:()=>n});let n=(0,i(12115).createContext)({})},75601:(t,e,i)=>{i.d(e,{xQ:()=>o});var n=i(12115),s=i(59686);function o(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],e=(0,n.useContext)(s.t);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:o,register:r}=e,a=(0,n.useId)();(0,n.useEffect)(()=>{if(t)return r(a)},[t]);let l=(0,n.useCallback)(()=>t&&o&&o(a),[a,o,t]);return!i&&o?[!1,l]:[!0]}},81402:(t,e,i)=>{i.d(e,{s:()=>s});var n=i(73142);function s(t){return(0,n.G)(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}},90236:(t,e,i)=>{let n,s;i.d(e,{X:()=>m});var o=i(29089),r=i(38561);let a=new WeakMap,l=(t,e,i)=>(n,s)=>s&&s[0]?s[0][t+"Size"]:(0,o.x)(n)&&"getBBox"in n?n.getBBox()[e]:n[i],h=l("inline","width","offsetWidth"),u=l("block","height","offsetHeight");function d({target:t,borderBoxSize:e}){a.get(t)?.forEach(i=>{i(t,{get width(){return h(t,e)},get height(){return u(t,e)}})})}function c(t){t.forEach(d)}let p=new Set;function m(t,e){return"function"==typeof t?(p.add(t),s||(s=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};p.forEach(e=>e(t))},window.addEventListener("resize",s)),()=>{p.delete(t),p.size||"function"!=typeof s||(window.removeEventListener("resize",s),s=void 0)}):function(t,e){n||"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(c));let i=(0,r.K)(t);return i.forEach(t=>{let i=a.get(t);i||(i=new Set,a.set(t,i)),i.add(e),n?.observe(t)}),()=>{i.forEach(t=>{let i=a.get(t);i?.delete(e),i?.size||n?.unobserve(t)})}}(t,e)}},93746:(t,e,i)=>{i.d(e,{L:()=>n});function n(t,e,i,s=0,o=1){let r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),a=t.size,l=(a-1)*s;return"function"==typeof i?i(r,a):1===o?r*s:l-r*s}}}]);
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.