1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,12693,280420,52737,578155,68148,251518,666124,102263,651268,535515,427962,981578,77291,271219,765469,24463,392900,199036,283529,94071,787318,898706,402122,465607,785389,272851,319568,353348,906634,386584,992287,443226,370836,156823,387111,t=>{"use strict";let e;function i(t){if("u"<typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,s)=>"create"===s?t:(e.has(s)||e.set(s,t(s)),e.get(s))})}function s(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function r(t){let e=[{},{}];return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function n(t,e,i,s){if("function"==typeof e){let[n,a]=r(s);e=e(void 0!==i?i:t.custom,n,a)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[n,a]=r(s);e=e(void 0!==i?i:t.custom,n,a)}return e}function a(t,e,i){let s=t.getProps();return n(s,e,void 0!==i?i:s.custom,t)}function o(t,e){return t?t[e]||t.default||t:void 0}t.i(482681),t.s(["createDOMMotionComponentProxy",()=>i],12693),t.s(["isAnimationControls",()=>s],280420),t.s(["resolveVariantFromProps",()=>n],52737),t.s(["getValueTransition",()=>o],578155);var l=t.i(371404);let u=new Set(["width","height","top","left","right","bottom",...l.transformPropOrder]),h=t=>Array.isArray(t),c=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),d=t=>h(t)?t[t.length-1]||0:t;t.s(["isCustomValue",()=>c,"resolveFinalValueInKeyframes",()=>d],68148);var p=t.i(439399),m=t.i(770830);function f(t,e){let i=t.getValue("willChange");if((0,m.isMotionValue)(i)&&i.add)return i.add(e)}let v=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();t.s(["camelToDash",()=>v],251518);let g="data-"+v("framerAppearId");function y(t){return t.props[g]}function x(t){let e;return()=>(void 0===e&&(e=t()),e)}t.s(["optimizedAppearDataAttribute",()=>g],666124),t.s(["getOptimisedAppearId",()=>y],102263);let T=x(()=>void 0!==window.ScrollTimeline);t.s(["supportsScrollTimeline",()=>T],651268);class P{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t,e){let i=this.animations.map(i=>T()&&i.attachTimeline?i.attachTimeline(t):"function"==typeof e?e(i):void 0);return()=>{i.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach(e=>e[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class b extends P{then(t,e){return Promise.all(this.animations).then(t).catch(e)}}var w=t.i(327739),S=t.i(469569),A=t.i(177876),V=t.i(313411),M=t.i(147543),D=t.i(459783);function C(t,e){t.timeline=e,t.onfinish=null}var E=t.i(447145);let R,B=(e=x(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0}),()=>{var t;return null!=(t=R)?t:e()});var k=t.i(68872);let L=([t,e,i,s])=>`cubic-bezier(${t}, ${e}, ${i}, ${s})`,F={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:L([0,.65,.55,1]),circOut:L([.55,0,1,.45]),backIn:L([.31,.01,.66,-.59]),backOut:L([.33,1.53,.69,.99])};var j=t.i(286561),O=t.i(998039),I=t.i(915720);let N=t=>/^0[^.\s]+$/u.test(t);t.s(["isZeroValueString",()=>N],535515);var U=t.i(129274),$=t.i(283836);let W=new Set(["brightness","contrast","saturate","opacity"]);function z(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[s]=i.match($.floatRegex)||[];if(!s)return t;let r=i.replace(s,""),n=+!!W.has(e);return s!==i&&(n*=100),e+"("+n+r+")"}let K=/\b([a-z-]*)\(.*?\)/gu,H={...U.complex,getAnimatableNone:t=>{let e=t.match(K);return e?e.map(z).join(" "):t}};var Y=t.i(232818),G=t.i(521454),X=t.i(567919);let q={borderWidth:X.px,borderTopWidth:X.px,borderRightWidth:X.px,borderBottomWidth:X.px,borderLeftWidth:X.px,borderRadius:X.px,radius:X.px,borderTopLeftRadius:X.px,borderTopRightRadius:X.px,borderBottomRightRadius:X.px,borderBottomLeftRadius:X.px,width:X.px,maxWidth:X.px,height:X.px,maxHeight:X.px,top:X.px,right:X.px,bottom:X.px,left:X.px,padding:X.px,paddingTop:X.px,paddingRight:X.px,paddingBottom:X.px,paddingLeft:X.px,margin:X.px,marginTop:X.px,marginRight:X.px,marginBottom:X.px,marginLeft:X.px,backgroundPositionX:X.px,backgroundPositionY:X.px},_={rotate:X.degrees,rotateX:X.degrees,rotateY:X.degrees,rotateZ:X.degrees,scale:G.scale,scaleX:G.scale,scaleY:G.scale,scaleZ:G.scale,skew:X.degrees,skewX:X.degrees,skewY:X.degrees,distance:X.px,translateX:X.px,translateY:X.px,translateZ:X.px,x:X.px,y:X.px,z:X.px,perspective:X.px,transformPerspective:X.px,opacity:G.alpha,originX:X.progressPercentage,originY:X.progressPercentage,originZ:X.px},Z={...G.number,transform:Math.round},J={...q,..._,zIndex:Z,size:X.px,fillOpacity:G.alpha,strokeOpacity:G.alpha,numOctaves:Z};t.s(["numberValueTypes",()=>J],427962);let Q={...J,color:Y.color,backgroundColor:Y.color,outlineColor:Y.color,fill:Y.color,stroke:Y.color,borderColor:Y.color,borderTopColor:Y.color,borderRightColor:Y.color,borderBottomColor:Y.color,borderLeftColor:Y.color,filter:H,WebkitFilter:H},tt=t=>Q[t];function te(t,e){let i=tt(t);return i!==H&&(i=U.complex),i.getAnimatableNone?i.getAnimatableNone(e):void 0}t.s(["getDefaultValueType",()=>tt],981578),t.s(["getAnimatableNone",()=>te],77291);let ti=new Set(["auto","none","0"]);var ts=t.i(426888),tr=t.i(750969);let tn=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);t.s(["isNumericalString",()=>tn],271219);var ta=t.i(895709);let to=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var tl=t.i(682377);let tu=t=>e=>e.test(t);t.s(["testValueType",()=>tu],765469);let th=[G.number,X.px,X.percent,X.degrees,X.vw,X.vh,{test:t=>"auto"===t,parse:t=>t}],tc=t=>th.find(tu(t));t.s(["dimensionValueTypes",()=>th,"findDimensionValueType",()=>tc],24463);class td extends ts.KeyframeResolver{constructor(t,e,i,s,r){super(t,e,i,s,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let s=t[i];if("string"==typeof s&&(s=s.trim(),(0,ta.isCSSVariableToken)(s))){let r=function t(e,i,s=1){(0,tr.invariant)(s<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,n]=function(t){let e=to.exec(t);if(!e)return[,];let[,i,s,r]=e;return[`--${null!=i?i:s}`,r]}(e);if(!r)return;let a=window.getComputedStyle(i).getPropertyValue(r);if(a){let t=a.trim();return tn(t)?parseFloat(t):t}return(0,ta.isCSSVariableToken)(n)?t(n,i,s+1):n}(s,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!u.has(i)||2!==t.length)return;let[s,r]=t,n=tc(s),a=tc(r);if(n!==a)if((0,tl.isNumOrPxType)(n)&&(0,tl.isNumOrPxType)(a))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var s;("number"==typeof(s=t[e])?0===s:null===s||"none"===s||"0"===s||N(s))&&i.push(e)}
1i.length&&function(t,e,i){let s,r=0;for(;r<t.length&&!s;){let e=t[r];"string"==typeof e&&!ti.has(e)&&(0,U.analyseComplexValue)(e).values.length&&(s=t[r]),r++}if(s&&i)for(let r of e)t[r]=te(i,s)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tl.positionalValues[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let s=e[e.length-1];void 0!==s&&t.getValue(i,s).jump(s,!1)}measureEndState(){var t;let{element:e,name:i,unresolvedKeyframes:s}=this;if(!e||!e.current)return;let r=e.getValue(i);r&&r.jump(this.measuredOrigin,!1);let n=s.length-1,a=s[n];s[n]=tl.positionalValues[i](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),(null==(t=this.removedTransforms)?void 0:t.length)&&this.removedTransforms.forEach(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}t.s(["DOMKeyframesResolver",()=>td],392900);var tp=t.i(814624),tm=t.i(62637);let tf=new Set(["opacity","clipPath","filter","transform"]);var tv=t.i(866179),tg=t.i(393639),ty=t.i(280382);let tx=x(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),tT={anticipate:j.anticipate,backInOut:O.backInOut,circInOut:I.circInOut};class tP extends tp.BaseAnimation{constructor(t){super(t);const{name:e,motionValue:i,element:s,keyframes:r}=this.options;this.resolver=new td(r,(t,e)=>this.onKeyframesResolved(t,e),e,i,s),this.resolver.scheduleResolve()}initPlayback(t,e){var i;let{duration:s=300,times:r,ease:n,type:a,motionValue:o,name:l,startTime:u}=this.options;if(!o.owner||!o.owner.current)return!1;if("string"==typeof n&&B()&&n in tT&&(n=tT[n]),i=this.options,(0,D.isGenerator)(i.type)||"spring"===i.type||!function t(e){return!!("function"==typeof e&&B()||!e||"string"==typeof e&&(e in F||B())||(0,E.isBezierDefinition)(e)||Array.isArray(e)&&e.every(t))}(i.ease)){let{onComplete:e,onUpdate:i,motionValue:o,element:l,...u}=this.options,h=function(t,e){let i=new tm.MainThreadAnimation({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),s={done:!1,value:t[0]},r=[],n=0;for(;!s.done&&n<2e4;)r.push((s=i.sample(n)).value),n+=10;return{times:void 0,keyframes:r,duration:n-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),s=h.duration,r=h.times,n=h.ease,a="keyframes"}let h=function(t,e,i,{delay:s=0,duration:r=300,repeat:n=0,repeatType:a="loop",ease:o="easeInOut",times:l}={}){let u={[e]:i};l&&(u.offset=l);let h=function t(e,i){if(e)return"function"==typeof e&&B()?(0,k.generateLinearEasing)(e,i):(0,E.isBezierDefinition)(e)?L(e):Array.isArray(e)?e.map(e=>t(e,i)||F.easeOut):F[e]}(o,r);Array.isArray(h)&&(u.easing=h),tg.statsBuffer.value&&tv.activeAnimations.waapi++;let c=t.animate(u,{delay:s,duration:r,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:n+1,direction:"reverse"===a?"alternate":"normal"});return tg.statsBuffer.value&&c.finished.finally(()=>{tv.activeAnimations.waapi--}),c}(o.owner.current,l,t,{...this.options,duration:s,times:r,ease:n});return h.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?(C(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{let{onComplete:i}=this.options;o.set((0,ty.getFinalKeyframe)(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:s,times:r,type:a,ease:n,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return(0,w.millisecondsToSeconds)(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return(0,w.millisecondsToSeconds)(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=(0,w.secondsToMilliseconds)(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return M.noop;let{animation:i}=e;C(i,t)}else this.pendingTimeline=t;return M.noop}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;
1"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:s,type:r,ease:n,times:a}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:o,element:l,...u}=this.options,h=new tm.MainThreadAnimation({...u,keyframes:i,duration:s,type:r,ease:n,times:a,isGenerator:!0}),c=(0,w.secondsToMilliseconds)(this.time);t.setWithVelocity(h.sample(c-10).value,h.sample(c).value,10)}let{onStop:o}=this.options;o&&o(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:e,name:i,repeatDelay:s,repeatType:r,damping:n,type:a}=t;if(!e||!e.owner||!(e.owner.current instanceof HTMLElement))return!1;let{onUpdate:o,transformTemplate:l}=e.owner.getProps();return tx()&&i&&tf.has(i)&&!o&&!l&&!s&&"mirror"!==r&&0!==n&&"inertia"!==a}}let tb={type:"spring",stiffness:500,damping:25,restSpeed:10},tw={type:"keyframes",duration:.8},tS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tA=(t,e,i,s={},r,n)=>a=>{let u=o(s,t)||{},h=u.delay||s.delay||0,{elapsed:c=0}=s;c-=(0,w.secondsToMilliseconds)(h);let d={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...u,delay:-c,onUpdate:t=>{e.set(t),u.onUpdate&&u.onUpdate(t)},onComplete:()=>{a(),u.onComplete&&u.onComplete()},name:t,motionValue:e,element:n?void 0:r};!function({when:t,delay:e,delayChildren:i,staggerChildren:s,staggerDirection:r,repeat:n,repeatType:a,repeatDelay:o,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(u)&&(d={...d,...((t,{keyframes:e})=>e.length>2?tw:l.transformProps.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:tb:tS)(t,d)}),d.duration&&(d.duration=(0,w.secondsToMilliseconds)(d.duration)),d.repeatDelay&&(d.repeatDelay=(0,w.secondsToMilliseconds)(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let p=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(d.duration=0,0===d.delay&&(p=!0)),(V.instantAnimationState.current||A.MotionGlobalConfig.skipAnimations)&&(p=!0,d.duration=0,d.delay=0),p&&!n&&void 0!==e.get()){let t=(0,ty.getFinalKeyframe)(d.keyframes,u);if(void 0!==t)return S.frame.update(()=>{d.onUpdate(t),d.onComplete()}),new b([])}return!n&&tP.supports(d)?new tP(d):new tm.MainThreadAnimation(d)};function tV(t,e,{delay:i=0,transitionOverride:s,type:r}={}){var n;let{transition:l=t.getDefaultTransition(),transitionEnd:h,...c}=e;s&&(l=s);let m=[],v=r&&t.animationState&&t.animationState.getState()[r];for(let e in c){let s=t.getValue(e,null!=(n=t.latestValues[e])?n:null),r=c[e];if(void 0===r||v&&function({protectedKeys:t,needsAnimating:e},i){let s=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,s}(v,e))continue;let a={delay:i,...o(l||{},e)},h=!1;if(window.MotionHandoffAnimation){let i=y(t);if(i){let t=window.MotionHandoffAnimation(i,e,S.frame);null!==t&&(a.startTime=t,h=!0)}}f(t,e),s.start(tA(e,s,r,t.shouldReduceMotion&&u.has(e)?{type:!1}:a,t,h));let d=s.animation;d&&m.push(d)}return h&&Promise.all(m).then(()=>{S.frame.update(()=>{h&&function(t,e){let{transitionEnd:i={},transition:s={},...r}=a(t,e)||{};for(let e in r={...r,...i}){let i=d(r[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,p.motionValue)(i))}}(t,h)})}),m}function tM(t,e,i={}){var s;let r=a(t,e,"exit"===i.type?null==(s=t.presenceContext)?void 0:s.custom:void 0),{transition:n=t.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(n=i.transitionOverride);let o=r?()=>Promise.all(tV(t,r,i)):()=>Promise.resolve(),l=t.variantChildren&&t.variantChildren.size?(s=0)=>{let{delayChildren:r=0,staggerChildren:a,staggerDirection:o}=n;return function(t,e,i=0,s=0,r=1,n){let a=[],o=(t.variantChildren.size-1)*s,l=1===r?(t=0)=>t*s:(t=0)=>o-t*s;return Array.from(t.variantChildren).sort(tD).forEach((t,s)=>{t.notify("AnimationStart",e),a.push(tM(t,e,{...n,delay:i+l(s)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(a)}(t,e,r+s,a,o,i)}:()=>Promise.resolve(),{when:u}=n;if(!u)return Promise.all([o(),l(i.delay)]);{let[t,e]="beforeChildren"===u?[o,l]:[l,o];return t().then(()=>e())}}function tD(t,e){return t.sortNodePosition(e)}function tC(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}function tE(t){return"string"==typeof t||Array.isArray(t)}t.s(["animateMotionValue",()=>tA],199036),t.s(["isVariantLabel",()=>tE],283529);let tR=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tB=["initial",...tR];t.s(["variantPriorityOrder",()=>tR,"variantProps",()=>tB],94071);let tk=tB.length,tL=[...tR].reverse(),tF=tR.length;function tj(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function tO(){return{animate:tj(!0),whileInView:tj(),whileHover:tj(),whileTap:tj(),whileDrag:tj(),whileFocus:tj(),exit:tj()}}class tI{constructor(t){this.isMounted=!1,this.node=t}update(){}}t.s(["Feature",()=>tI],787318);let tN=0,tU={animation:{Feature:class extends tI{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>
1(function(t,e,i={}){let s;if(t.notify("AnimationStart",e),Array.isArray(e))s=Promise.all(e.map(e=>tM(t,e,i)));else if("string"==typeof e)s=tM(t,e,i);else{let r="function"==typeof e?a(t,e,i.custom):e;s=Promise.all(tV(t,r,i))}return s.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=tO(),r=!0,n=e=>(i,s)=>{var r;let n=a(t,s,"exit"===e?null==(r=t.presenceContext)?void 0:r.custom:void 0);if(n){let{transition:t,transitionEnd:e,...s}=n;i={...i,...s,...e}}return i};function o(o){let{props:l}=t,u=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<tk;t++){let s=tB[t],r=e.props[s];(tE(r)||!1===r)&&(i[s]=r)}return i}(t.parent)||{},c=[],d=new Set,p={},m=1/0;for(let e=0;e<tF;e++){var f,v;let a=tL[e],g=i[a],y=void 0!==l[a]?l[a]:u[a],x=tE(y),T=a===o?g.isActive:null;!1===T&&(m=e);let P=y===u[a]&&y!==l[a]&&x;if(P&&r&&t.manuallyAnimateOnMount&&(P=!1),g.protectedKeys={...p},!g.isActive&&null===T||!y&&!g.prevProp||s(y)||"boolean"==typeof y)continue;let b=(f=g.prevProp,"string"==typeof(v=y)?v!==f:!!Array.isArray(v)&&!tC(v,f)),w=b||a===o&&g.isActive&&!P&&x||e>m&&x,S=!1,A=Array.isArray(y)?y:[y],V=A.reduce(n(a),{});!1===T&&(V={});let{prevResolvedValues:M={}}=g,D={...M,...V},C=e=>{w=!0,d.has(e)&&(S=!0,d.delete(e)),g.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in D){let e=V[t],i=M[t];if(!p.hasOwnProperty(t))(h(e)&&h(i)?tC(e,i):e===i)?void 0!==e&&d.has(t)?C(t):g.protectedKeys[t]=!0:null!=e?C(t):d.add(t)}g.prevProp=y,g.prevResolvedValues=V,g.isActive&&(p={...p,...V}),r&&t.blockInitialAnimation&&(w=!1);let E=!(P&&b)||S;w&&E&&c.push(...A.map(t=>({animation:t,options:{type:a}})))}if(d.size){let e={};if("boolean"!=typeof l.initial){let i=a(t,Array.isArray(l.initial)?l.initial[0]:l.initial);i&&i.transition&&(e.transition=i.transition)}d.forEach(i=>{let s=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=null!=s?s:null}),c.push({animation:e})}let g=!!c.length;return r&&(!1===l.initial||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(g=!1),r=!1,g?e(c):Promise.resolve()}return{animateChanges:o,setActive:function(e,s){var r;if(i[e].isActive===s)return Promise.resolve();null==(r=t.variantChildren)||r.forEach(t=>{var i;return null==(i=t.animationState)?void 0:i.setActive(e,s)}),i[e].isActive=s;let n=o(e);for(let t in i)i[t].protectedKeys={};return n},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=tO(),r=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();s(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)||t.call(this)}}},exit:{Feature:class extends tI{constructor(){super(...arguments),this.id=tN++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let s=this.node.animationState.setActive("exit",!t);e&&!t&&s.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
1e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}}};t.s(["animations",()=>tU],898706);let t$={x:!1,y:!1};function tW(){return t$.x||t$.y}t.s(["isDragActive",()=>tW,"isDragging",()=>t$],402122);let tz=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function tK(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}function tH(t){return{point:{x:t.pageX,y:t.pageY}}}t.s(["isPrimaryPointer",()=>tz],465607),t.s(["addDomEvent",()=>tK],785389);let tY=t=>e=>tz(e)&&t(e,tH(e));function tG(t,e,i,s){return tK(t,e,tY(i),s)}t.s(["addPointerInfo",()=>tY,"extractEventInfo",()=>tH],272851);let tX=(t,e)=>Math.abs(t-e);var tq=t.i(755095);class t_{constructor(t,e,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:r=!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=tQ(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,r=(t=i.offset,e={x:0,y:0},Math.sqrt(tX(t.x,e.x)**2+tX(t.y,e.y)**2)>=3);if(!s&&!r)return;let{point:n}=i,{timestamp:a}=S.frameData;this.history.push({...n,timestamp:a});let{onStart:o,onMove:l}=this.handlers;s||(o&&o(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=tZ(e,this.transformPagePoint),S.frame.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=tQ("pointercancel"===t.type?this.lastMoveEventInfo:tZ(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,n),s&&s(t,n)},!tz(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=s||window;const n=tZ(tH(t),this.transformPagePoint),{point:a}=n,{timestamp:o}=S.frameData;this.history=[{...a,timestamp:o}];const{onSessionStart:l}=e;l&&l(t,tQ(n,this.history)),this.removeListeners=(0,tq.pipe)(tG(this.contextWindow,"pointermove",this.handlePointerMove),tG(this.contextWindow,"pointerup",this.handlePointerUp),tG(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,S.cancelFrame)(this.updatePoint)}}function tZ(t,e){return e?{point:e(t.point)}:t}function tJ(t,e){return{x:t.x-e.x,y:t.y-e.y}}function tQ({point:t},e){return{point:t,delta:tJ(t,t0(e)),offset:tJ(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null,r=t0(t);for(;i>=0&&(s=t[i],!(r.timestamp-s.timestamp>(0,w.secondsToMilliseconds)(.1)));)i--;if(!s)return{x:0,y:0};let n=(0,w.millisecondsToSeconds)(r.timestamp-s.timestamp);if(0===n)return{x:0,y:0};let a={x:(r.x-s.x)/n,y:(r.y-s.y)/n};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(e,.1)}}function t0(t){return t[t.length-1]}function t1(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}t.s(["isRefObject",()=>t1],319568);var t2=t.i(115446),t3=t.i(804570);function t5(t){return t.max-t.min}function t9(t,e,i){return Math.abs(t-e)<=i}function t8(t,e,i,s=.5){t.origin=s,t.originPoint=(0,t3.mixNumber)(e.min,e.max,t.origin),t.scale=t5(i)/t5(e),t.translate=(0,t3.mixNumber)(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 t6(t,e,i,s){t8(t.x,e.x,i.x,s?s.originX:void 0),t8(t.y,e.y,i.y,s?s.originY:void 0)}function t4(t,e,i){t.min=i.min+e.min,t.max=t.min+t5(e)}function t7(t,e,i){t4(t.x,e.x,i.x),t4(t.y,e.y,i.y)}function et(t,e,i){t.min=e.min-i.min,t.max=t.min+t5(e)}function ee(t,e,i){et(t.x,e.x,i.x),et(t.y,e.y,i.y)}t.s(["calcBoxDelta",()=>t6,"calcLength",()=>t5,"calcRelativeBox",()=>t7,"calcRelativePosition",()=>ee,"isNear",()=>t9],353348);var ei=t.i(524003);function es(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 er(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 en(t,e,i){return{min:ea(t,e),max:ea(t,i)}}function ea(t,e){return"number"==typeof t?t:t[e]||0}let eo=()=>({translate:0,scale:1,origin:0,originPoint:0}),el=()=>({x:eo(),y:eo()}),eu=()=>({min:0,max:0}),eh=()=>({x:eu(),y:eu()});function ec(t){return[t("x"),t("y")]}function ed({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}function ep(t){return void 0===t||1===t}function em({scale:t,scaleX:e,scaleY:i}){return!ep(t)||!ep(e)||!ep(i)}function ef(t){return em(t)||ev(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function ev(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}t.s(["createBox",()=>eh,"createDelta",()=>el],906634),t.s(["eachAxis",()=>ec],386584);function eg(t,e,i){return i+e*(t-i)}function ey(t,e,i,s,r){return void 0!==r&&(t=s+r*(t-s)),s+i*(t-s)+e}function ex(t,e=0,i=1,s,r){t.min=ey(t.min,e,i,s,r),t.max=ey(t.max,e,i,s,r)}function eT(t,{x:e,y:i}){ex(t.x,e.translate,e.scale,e.originPoint),ex(t.y,i.translate,i.scale,i.originPoint)}function eP(t,e,i,s=!1){let r,n,a=i.length;if(a){e.x=e.y=1;for(let o=0;o<a;o++){n=(r=i[o]).projectionDelta;let{visualElement:a}=r.options;
1(!a||!a.props.style||"contents"!==a.props.style.display)&&(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&eS(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),n&&(e.x*=n.x.scale,e.y*=n.y.scale,eT(t,n)),s&&ef(r.latestValues)&&eS(t,r.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}function eb(t,e){t.min=t.min+e,t.max=t.max+e}function ew(t,e,i,s,r=.5){let n=(0,t3.mixNumber)(t.min,t.max,r);ex(t,e,i,n,s)}function eS(t,e){ew(t.x,e.x,e.scaleX,e.scale,e.originX),ew(t.y,e.y,e.scaleY,e.scale,e.originY)}function eA(t,e){return ed(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))}function eV(t,e,i){let s=eA(t,i),{scroll:r}=e;return r&&(eb(s.x,r.offset.x),eb(s.y,r.offset.y)),s}t.s(["has2DTranslate",()=>ev,"hasScale",()=>em,"hasTransform",()=>ef],992287),t.s(["applyBoxDelta",()=>eT,"applyTreeDeltas",()=>eP,"scalePoint",()=>eg,"transformBox",()=>eS,"translateAxis",()=>eb],443226),t.s(["measurePageBox",()=>eV,"measureViewportBox",()=>eA],370836);let eM=({current:t})=>t?t.ownerDocument.defaultView:null,eD=new WeakMap;class eC{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=eh(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let s=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(tH(t).point)},r=(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:r}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(t$[t])return null;else return t$[t]=!0,()=>{t$[t]=!1};return t$.x||t$.y?null:(t$.x=t$.y=!0,()=>{t$.x=t$.y=!1})}(i),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ec(t=>{let e=this.getAxisMotionValue(t).get()||0;if(X.percent.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=t5(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&S.frame.postRender(()=>r(t,e)),f(this.visualElement,"transform");let{animationState:n}=this.visualElement;n&&n.setActive("whileDrag",!0)},n=(t,e)=>{let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:r,onDrag:n}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=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}(a),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),n&&n(t,e)},a=(t,e)=>this.stop(t,e),o=()=>ec(t=>{var e;return"paused"===this.getAnimationState(t)&&(null==(e=this.getAxisMotionValue(t).animation)?void 0:e.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new t_(t,{onSessionStart:s,onStart:r,onMove:n,onSessionEnd:a,resumeAnimation:o},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:eM(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:s}=e;this.startAnimation(s);let{onDragEnd:r}=this.getProps();r&&S.frame.postRender(()=>r(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.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:s}=this.getProps();if(!i||!eE(t,s,this.currentDirection))return;let r=this.getAxisMotionValue(t),n=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(n=function(t,{min:e,max:i},s){return void 0!==e&&t<e?t=s?(0,t3.mixNumber)(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?(0,t3.mixNumber)(i,t,s.max):Math.min(t,i)),t}(n,this.constraints[t],this.elastic[t])),r.set(n)}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.layout,r=this.constraints;e&&t1(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=function(t,{top:e,left:i,bottom:s,right:r}){return{x:es(t.x,i,r),y:es(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:en(t,"left","right"),y:en(t,"top","bottom")}}(i),r!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&ec(t=>{var e,i;let r;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=s.layoutBox[t],i=this.constraints[t],r={},void 0!==i.min&&(r.min=i.min-e.min),void 0!==i.max&&(r.max=i.max-e.min),r))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!t1(e))return!1;let s=e.current;(0,tr.invariant)(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let n=eV(s,r.root,this.visualElement.getTransformPagePoint()),a=(t=r.layout.layoutBox,{x:er(t.x,n.x),y:er(t.y,n.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=ed(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:r,dragSnapToOrigin:n,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(ec(a=>{if(!eE(a,e,this.currentDirection))return;let l=o&&o[a]||{};n&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[a]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return f(this.visualElement,t),i.start(tA(t,i,0,e,this.visualElement,!1))}stopAnimation(){ec(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ec(t=>{var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.pause()})}getAnimationState(t){var e;return null==(e=this.getAxisMotionValue(t).animation)?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){ec(e=>{let{drag:i}=this.getProps();if(!eE(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,r=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:n}=s.layout.layoutBox[e];r.set(t[e]-(0,t3.mixNumber)(i,n,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!t1(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};ec(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,r;let n,a,o,l=e.get();s[t]=(i={min:l,max:l},r=this.constraints[t],n=.5,a=t5(i),(o=t5(r))>a?n=(0,t2.progress)(r.min,r.max-a,i.min):a>o&&(n=(0,t2.progress)(i.min,i.max-o,r.min)),(0,ei.clamp)(0,1,n))}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),ec(e=>{if(!eE(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:n}=this.constraints[e];i.set((0,t3.mixNumber)(r,n,s[e]))})}addListeners(){if(!this.visualElement.current)return;eD.set(this.visualElement,this);let t=tG(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();t1(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()),S.frame.read(e);let r=tK(window,"resize",()=>this.scalePositionWithinConstraints()),n=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(ec(e=>{let i=this.getAxisMotionValue(e);
1i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),s(),n&&n()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:r=!1,dragElastic:n=.35,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:r,dragElastic:n,dragMomentum:a}}}function eE(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class eR extends tI{constructor(t){super(t),this.removeGroupControls=M.noop,this.removeListeners=M.noop,this.controls=new eC(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||M.noop}unmount(){this.removeGroupControls(),this.removeListeners()}}t.s(["DragGesture",()=>eR],156823);let eB=t=>(e,i)=>{t&&S.frame.postRender(()=>t(e,i))};class ek extends tI{constructor(){super(...arguments),this.removePointerDownListener=M.noop}onPointerDown(t){this.session=new t_(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:eM(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:eB(t),onStart:eB(e),onMove:i,onEnd:(t,e)=>{delete this.session,s&&S.frame.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=tG(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}t.s(["PanGesture",()=>ek],387111)},661607,884929,t=>{"use strict";var e=t.i(581488);let i=(0,e.createContext)(null);function s(t=!0){let r=(0,e.useContext)(i);if(null===r)return[!0,null];let{isPresent:n,onExitComplete:a,register:o}=r,l=(0,e.useId)();(0,e.useEffect)(()=>{t&&o(l)},[t]);let u=(0,e.useCallback)(()=>t&&a&&a(l),[l,a,t]);return!n&&a?[!1,u]:[!0]}t.s(["PresenceContext",()=>i],884929),t.s(["usePresence",()=>s],661607)},699105,t=>{"use strict";let e=(0,t.i(581488).createContext)({});t.s(["LayoutGroupContext",()=>e])},371404,177876,147543,393639,131801,469569,762046,876932,635910,329904,439399,770830,327739,313411,459783,447145,115446,68872,998039,286561,915720,524003,521454,283836,567919,232818,129274,682377,426888,750969,895709,280382,814624,866179,804570,755095,318053,281824,62637,64019,t=>{"use strict";let e,i,s=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],r=new Set(s);t.s(["transformPropOrder",()=>s,"transformProps",()=>r],371404),t.i(482681);let n={skipAnimations:!1,useManualTiming:!1};t.s(["MotionGlobalConfig",()=>n],177876);let a=t=>t;t.s(["noop",()=>a],147543);let o=["read","resolveKeyframes","update","preRender","render","postRender"],l={value:null,addProjectionMetrics:null};function u(t,e){let i=!1,s=!0,r={delta:0,timestamp:0,isProcessing:!1},a=()=>i=!0,u=o.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,s=new Set,r=!1,n=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1},u=0;function h(e){a.has(e)&&(c.schedule(e),t()),u++,e(o)}let c={schedule:(t,e=!1,n=!1)=>{let o=n&&r?i:s;return e&&a.add(t),o.has(t)||o.add(t),t},cancel:t=>{s.delete(t),a.delete(t)},process:t=>{if(o=t,r){n=!0;return}r=!0,[i,s]=[s,i],i.forEach(h),e&&l.value&&l.value.frameloop[e].push(u),u=0,i.clear(),r=!1,n&&(n=!1,c.process(t))}};return c}(a,e?i:void 0),t),{}),{read:h,resolveKeyframes:c,update:d,preRender:p,render:m,postRender:f}=u,v=()=>{let a=n.useManualTiming?r.timestamp:performance.now();i=!1,n.useManualTiming||(r.delta=s?1e3/60:Math.max(Math.min(a-r.timestamp,40),1)),r.timestamp=a,r.isProcessing=!0,h.process(r),c.process(r),d.process(r),p.process(r),m.process(r),f.process(r),r.isProcessing=!1,i&&e&&(s=!1,t(v))};return{schedule:o.reduce((e,n)=>{let a=u[n];return e[n]=(e,n=!1,o=!1)=>(!i&&(i=!0,s=!0,r.isProcessing||t(v)),a.schedule(e,n,o)),e},{}),cancel:t=>{for(let e=0;e<o.length;e++)u[o[e]].cancel(t)},state:r,steps:u}}t.s(["statsBuffer",()=>l],393639),t.s(["createRenderBatcher",()=>u],131801);let{schedule:h,cancel:c,state:d,steps:p}=u("u">typeof requestAnimationFrame?requestAnimationFrame:a,!0);function m(){i=void 0}t.s(["cancelFrame",()=>c,"frame",()=>h,"frameData",()=>d,"frameSteps",()=>p],469569);let f={now:()=>(void 0===i&&f.set(d.isProcessing||n.useManualTiming?d.timestamp:performance.now()),i),set
1:t=>{i=t,queueMicrotask(m)}};function v(t,e){-1===t.indexOf(e)&&t.push(e)}function g(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}t.s(["time",()=>f],762046),t.s(["addUniqueItem",()=>v,"removeItem",()=>g],876932);class y{constructor(){this.subscriptions=[]}add(t){return v(this.subscriptions,t),()=>g(this.subscriptions,t)}notify(t,e,i){let s=this.subscriptions.length;if(s)if(1===s)this.subscriptions[0](t,e,i);else for(let r=0;r<s;r++){let s=this.subscriptions[r];s&&s(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function x(t,e){return e?1e3/e*t:0}t.s(["SubscriptionManager",()=>y],635910),t.s(["velocityPerSecond",()=>x],329904);class T{constructor(t,e={}){this.version="12.4.3",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=f.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=f.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new y);let i=this.events[t].add(e);return"change"===t?()=>{i(),h.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return e&&e.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=f.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return x(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function P(t,e){return new T(t,e)}t.s(["motionValue",()=>P],439399);let b=t=>!!(t&&t.getVelocity);t.s(["isMotionValue",()=>b],770830);let w=t=>1e3*t,S=t=>t/1e3;t.s(["millisecondsToSeconds",()=>S,"secondsToMilliseconds",()=>w],327739);let A={current:!1};function V(t){return"function"==typeof t}t.s(["instantAnimationState",()=>A],313411),t.s(["isGenerator",()=>V],459783);let M=t=>Array.isArray(t)&&"number"==typeof t[0];t.s(["isBezierDefinition",()=>M],447145);let D=(t,e,i)=>{let s=e-t;return 0===s?1:(i-t)/s};t.s(["progress",()=>D],115446);let C=(t,e,i=10)=>{let s="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)s+=t(D(0,r-1,e))+", ";return`linear(${s.substring(0,s.length-2)})`};t.s(["generateLinearEasing",()=>C],68872);let E=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function R(t,e,i,s){return t===e&&i===s?a:r=>0===r||1===r?r:E(function(t,e,i,s,r){let n,a,o=0;do(n=E(a=e+(i-e)/2,s,r)-t)>0?i=a:e=a;while(Math.abs(n)>1e-7&&++o<12)return a}(r,0,1,t,i),e,s)}let B=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,k=t=>e=>1-t(1-e),L=R(.33,1.53,.69,.99),F=k(L),j=B(F);t.s(["backIn",()=>F,"backInOut",()=>j,"backOut",()=>L],998039);let O=t=>(t*=2)<1?.5*F(t):.5*(2-Math.pow(2,-10*(t-1)));t.s(["anticipate",()=>O],286561);let I=t=>1-Math.sin(Math.acos(t)),N=k(I),U=B(I);t.s(["circIn",()=>I,"circInOut",()=>U,"circOut",()=>N],915720);let $=(t,e,i)=>i>e?e:i<t?t:i;t.s(["clamp",()=>$],524003);let W={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},z={...W,transform:t=>$(0,1,t)},K={...W,default:1};t.s(["alpha",()=>z,"number",()=>W,"scale",()=>K],521454);let H=t=>Math.round(1e5*t)/1e5,Y=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;t.s(["floatRegex",()=>Y],283836);let G=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,X=(t,e)=>i=>!!("string"==typeof i&&G.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),q=(t,e,i)=>s=>{if("string"!=typeof s)return s;let[r,n,a,o]=s.match(Y);return{[t]:parseFloat(r),[e]:parseFloat(n),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},_={...W,transform:t=>Math.round($(0,255,t))},Z={test:X("rgb","red"),parse:q("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:s=1})=>"rgba("+_.transform(t)+", "+_.transform(e)+", "+_.transform(i)+", "+H(z.transform(s))+")"},J={test:X("#"),parse:function(t){let e="",i="",s="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),s=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),s=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,s+=s,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(s,16),alph
1a:r?parseInt(r,16)/255:1}},transform:Z.transform},Q=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),tt=Q("deg"),te=Q("%"),ti=Q("px"),ts=Q("vh"),tr=Q("vw"),tn={...te,parse:t=>te.parse(t)/100,transform:t=>te.transform(100*t)};t.s(["degrees",()=>tt,"percent",()=>te,"progressPercentage",()=>tn,"px",()=>ti,"vh",()=>ts,"vw",()=>tr],567919);let ta={test:X("hsl","hue"),parse:q("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:s=1})=>"hsla("+Math.round(t)+", "+te.transform(H(e))+", "+te.transform(H(i))+", "+H(z.transform(s))+")"},to={test:t=>Z.test(t)||J.test(t)||ta.test(t),parse:t=>Z.test(t)?Z.parse(t):ta.test(t)?ta.parse(t):J.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?Z.transform(t):ta.transform(t)};t.s(["color",()=>to],232818);let tl=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tu="number",th="color",tc=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function td(t){let e=t.toString(),i=[],s={color:[],number:[],var:[]},r=[],n=0,a=e.replace(tc,t=>(to.test(t)?(s.color.push(n),r.push(th),i.push(to.parse(t))):t.startsWith("var(")?(s.var.push(n),r.push("var"),i.push(t)):(s.number.push(n),r.push(tu),i.push(parseFloat(t))),++n,"${}")).split("${}");return{values:i,split:a,indexes:s,types:r}}function tp(t){return td(t).values}function tm(t){let{split:e,types:i}=td(t),s=e.length;return t=>{let r="";for(let n=0;n<s;n++)if(r+=e[n],void 0!==t[n]){let e=i[n];e===tu?r+=H(t[n]):e===th?r+=to.transform(t[n]):r+=t[n]}return r}}let tf=t=>"number"==typeof t?0:t,tv={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null==(e=t.match(Y))?void 0:e.length)||0)+((null==(i=t.match(tl))?void 0:i.length)||0)>0},parse:tp,createTransformer:tm,getAnimatableNone:function(t){let e=tp(t);return tm(t)(e.map(tf))}};t.s(["analyseComplexValue",()=>td,"complex",()=>tv],129274);let tg=t=>t===W||t===ti,ty=(t,e)=>parseFloat(t.split(", ")[e]),tx=(t,e)=>(i,{transform:s})=>{if("none"===s||!s)return 0;let r=s.match(/^matrix3d\((.+)\)$/u);if(r)return ty(r[1],e);{let e=s.match(/^matrix\((.+)\)$/u);return e?ty(e[1],t):0}},tT=new Set(["x","y","z"]),tP=s.filter(t=>!tT.has(t));function tb(t){let e=[];return tP.forEach(i=>{let s=t.getValue(i);void 0!==s&&(e.push([i,s.get()]),s.set(+!!i.startsWith("scale")))}),e}let tw={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:tx(4,13),y:tx(5,14)};tw.translateX=tw.x,tw.translateY=tw.y,t.s(["isNumOrPxType",()=>tg,"positionalValues",()=>tw,"removeNonTranslationalTransform",()=>tb],682377);let tS=new Set,tA=!1,tV=!1;function tM(){if(tV){let t=Array.from(tS).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=tb(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{var s;null==(s=t.getValue(e))||s.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tV=!1,tA=!1,tS.forEach(t=>t.complete()),tS.clear()}function tD(){tS.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tV=!0)})}function tC(){tD(),tM()}class tE{constructor(t,e,i,s,r,n=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=s,this.element=r,this.isAsync=n}scheduleResolve(){this.isScheduled=!0,this.isAsync?(tS.add(this),tA||(tA=!0,h.read(tD),h.resolveKeyframes(tM))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:s}=this;for(let r=0;r<t.length;r++)if(null===t[r])if(0===r){let r=null==s?void 0:s.get(),n=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let s=i.readValue(e,n);null!=s&&(t[0]=s)}void 0===t[0]&&(t[0]=n),s&&void 0===r&&s.set(t[0])}else t[r]=t[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),tS.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,tS.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}t.s(["KeyframeResolver",()=>tE,"flushKeyframeResolvers",()=>tC],426888),t.s(["invariant",()=>a,"warning",()=>a],750969);let tR=t=>e=>"string"==typeof e&&e.startsWith(t),tB=tR("--"),tk=tR("var(--"),tL=t=>!!tk(t)&&tF.test(t.split("/*")[0].trim()),tF=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;t.s(["isCSSVariableName",()=>tB,"isCSSVariableToken",()=>tL],895709);let tj=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tv.test(t)||"0"===t)&&!t.startsWith("url(")),tO=t=>null!==t;function tI(t,{repeat:e,repeatType:i="loop"},s){let r=t.filter(tO),n=e&&"loop"!==i&&e%2==1?0:r.length-1;return n&&void 0!==s?s:r[n]}t.s(["getFinalKeyframe",()=>tI],280382);class tN{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:n="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=f.now(),this.options={autoplay:t,delay:e,type:i,repeat:s,repeatDelay:r,repeatType:n,...a}
1,this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||tC(),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=f.now(),this.hasAttemptedResolve=!0;let{name:i,type:s,velocity:r,delay:n,onComplete:o,onUpdate:l,isGenerator:u}=this.options;if(!u&&!function(t,e,i,s){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let n=t[t.length-1],o=tj(r,e),l=tj(n,e);return a(o===l,`You are trying to animate ${e} from "${r}" to "${n}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${n} via the \`style\` property.`),!!o&&!!l&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||V(i))&&s)}(t,i,s,r))if(A.current||!n){l&&l(tI(t,this.options,e)),o&&o(),this.resolveFinishedPromise();return}else this.options.duration=0;let h=this.initPlayback(t,e);!1!==h&&(this._resolved={keyframes:t,finalKeyframe:e,...h},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function tU(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}t.s(["BaseAnimation",()=>tN],814624);let t$={layout:0,mainThread:0,waapi:0};t.s(["activeAnimations",()=>t$],866179);let tW=(t,e,i)=>t+(e-t)*i;function tz(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function tK(t,e){return i=>i>0?e:t}t.s(["mixNumber",()=>tW],804570);let tH=(t,e,i)=>{let s=t*t,r=i*(e*e-s)+s;return r<0?0:Math.sqrt(r)},tY=[J,Z,ta];function tG(t){let e=tY.find(e=>e.test(t));if(a(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===ta&&(i=function({hue:t,saturation:e,lightness:i,alpha:s}){t/=360,i/=100;let r=0,n=0,a=0;if(e/=100){let s=i<.5?i*(1+e):i+e-i*e,o=2*i-s;r=tz(o,s,t+1/3),n=tz(o,s,t),a=tz(o,s,t-1/3)}else r=n=a=i;return{red:Math.round(255*r),green:Math.round(255*n),blue:Math.round(255*a),alpha:s}}(i)),i}let tX=(t,e)=>{let i=tG(t),s=tG(e);if(!i||!s)return tK(t,e);let r={...i};return t=>(r.red=tH(i.red,s.red,t),r.green=tH(i.green,s.green,t),r.blue=tH(i.blue,s.blue,t),r.alpha=tW(i.alpha,s.alpha,t),Z.transform(r))},tq=(t,e)=>i=>e(t(i)),t_=(...t)=>t.reduce(tq);t.s(["pipe",()=>t_],755095);let tZ=new Set(["none","hidden"]);function tJ(t,e){return i=>tW(t,e,i)}function tQ(t){return"number"==typeof t?tJ:"string"==typeof t?tL(t)?tK:to.test(t)?tX:t2:Array.isArray(t)?t0:"object"==typeof t?to.test(t)?tX:t1:tK}function t0(t,e){let i=[...t],s=i.length,r=t.map((t,i)=>tQ(t)(t,e[i]));return t=>{for(let e=0;e<s;e++)i[e]=r[e](t);return i}}function t1(t,e){let i={...t,...e},s={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(s[r]=tQ(t[r])(t[r],e[r]));return t=>{for(let e in s)i[e]=s[e](t);return i}}let t2=(t,e)=>{let i=tv.createTransformer(e),s=td(t),r=td(e);if(!(s.indexes.var.length===r.indexes.var.length&&s.indexes.color.length===r.indexes.color.length&&s.indexes.number.length>=r.indexes.number.length))return a(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),tK(t,e);if(tZ.has(t)&&!r.values.length||tZ.has(e)&&!s.values.length)return tZ.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return t_(t0(function(t,e){var i;let s=[],r={color:0,var:0,number:0};for(let n=0;n<e.values.length;n++){let a=e.types[n],o=t.indexes[a][r[a]],l=null!=(i=t.values[o])?i:0;s[n]=l,r[a]++}return s}(s,r),r.values),i)};function t3(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?tW(t,e,i):tQ(t)(t,e)}function t5(t,e,i){let s=Math.max(e-5,0);return x(i-t(s),e-s)}let t9=.01,t8=2,t6=.005,t4=.5;function t7(t,e){return t*Math.sqrt(1-e*e)}let et=["duration","bounce"],ee=["stiffness","damping","mass"];function ei(t,e){return e.some(e=>void 0!==t[e])}function es(t=.3,e=.3){let i,s="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:r,restDelta:n}=s,o=s.keyframes[0],l=s.keyframes[s.keyframes.length-1],u={done:!1,value:o},{stiffness:h,damping:c,mass:d,duration:p,velocity:m,isResolvedFromDuration:f}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!ei(t,ee)&&ei(t,et))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),s=i*i,r=2*$(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:1,stiffness:s,damping:r}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:s=1}){let r,n;a(t<=w(10),"Spring duration must be 10 seconds or less");let o=1-e;o=$(.05,1,o),t=$(.01,10,S(t)),o<1?(r=e=>{let s=e*o,r=s*t;return .001-(s-i)/t7(e,o)*Math.exp(-r)},n=e=>{let s=e*o*t,n=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-s),l=t7(Math.pow(e,2),o);return(s*i+i-n)*a*(-r(e)+.001>0?-1:1)/l}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),n=e=>t*t*(i-e)*Math.exp(-e*t));
1let l=function(t,e,i){let s=i;for(let i=1;i<12;i++)s-=t(s)/e(s);return s}(r,n,5/t);if(t=w(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(l,2)*s;return{stiffness:e,damping:2*o*Math.sqrt(s*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...s,velocity:-S(s.velocity||0)}),v=m||0,g=c/(2*Math.sqrt(h*d)),y=l-o,x=S(Math.sqrt(h/d)),T=5>Math.abs(y);if(r||(r=T?t9:t8),n||(n=T?t6:t4),g<1){let t=t7(x,g);i=e=>l-Math.exp(-g*x*e)*((v+g*x*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}else if(1===g)i=t=>l-Math.exp(-x*t)*(y+(v+x*y)*t);else{let t=x*Math.sqrt(g*g-1);i=e=>{let i=Math.exp(-g*x*e),s=Math.min(t*e,300);return l-i*((v+g*x*y)*Math.sinh(s)+t*y*Math.cosh(s))/t}}let P={calculatedDuration:f&&p||null,next:t=>{let e=i(t);if(f)u.done=t>=p;else{let s=0;g<1&&(s=0===t?w(v):t5(i,t,e));let a=Math.abs(l-e)<=n;u.done=Math.abs(s)<=r&&a}return u.value=u.done?l:e,u},toString:()=>{let t=Math.min(tU(P),2e4),e=C(e=>P.next(t*e).value,t,30);return t+"ms "+e}};return P}function er({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:r=10,bounceStiffness:n=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:h}){let c,d,p=t[0],m={done:!1,value:p},f=i*e,v=p+f,g=void 0===a?v:a(v);g!==v&&(f=g-p);let y=t=>-f*Math.exp(-t/s),x=t=>g+y(t),T=t=>{let e=y(t),i=x(t);m.done=Math.abs(e)<=u,m.value=m.done?g:i},P=t=>{let e;if(e=m.value,void 0!==o&&e<o||void 0!==l&&e>l){var i;c=t,d=es({keyframes:[m.value,(i=m.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:t5(x,t,m.value),damping:r,stiffness:n,restDelta:u,restSpeed:h})}};return P(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,T(t),P(t)),void 0!==c&&t>=c)?d.next(t-c):(e||T(t),m)}}}let en=R(.42,0,1,1),ea=R(0,0,.58,1),eo=R(.42,0,.58,1),el={linear:a,easeIn:en,easeInOut:eo,easeOut:ea,circIn:I,circInOut:U,circOut:N,backIn:F,backInOut:j,backOut:L,anticipate:O},eu=t=>{if(M(t)){a(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,s,r]=t;return R(e,i,s,r)}return"string"==typeof t?(a(void 0!==el[t],`Invalid easing type '${t}'`),el[t]):t};function eh(t,e,{clamp:i=!0,ease:s,mixer:r}={}){let n=t.length;if(a(n===e.length,"Both input and output ranges must be the same length"),1===n)return()=>e[0];if(2===n&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[n-1]&&(t=[...t].reverse(),e=[...e].reverse());let l=function(t,e,i){let s=[],r=i||t3,n=t.length-1;for(let i=0;i<n;i++){let n=r(t[i],t[i+1]);e&&(n=t_(Array.isArray(e)?e[i]||a:e,n)),s.push(n)}return s}(e,s,r),u=l.length,h=i=>{if(o&&i<t[0])return e[0];let s=0;if(u>1)for(;s<t.length-2&&!(i<t[s+1]);s++);let r=D(t[s],t[s+1],i);return l[s](r)};return i?e=>h($(t[0],t[n-1],e)):h}function ec(t){let e=[0];return!function(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let r=D(0,e,s);t.push(tW(i,1,r))}}(e,t.length-1),e}function ed({duration:t=300,keyframes:e,times:i,ease:s="easeInOut"}){var r;let n=Array.isArray(s)&&"number"!=typeof s[0]?s.map(eu):eu(s),a={done:!1,value:e[0]},o=eh((r=i&&i.length===e.length?i:ec(e),r.map(e=>e*t)),e,{ease:Array.isArray(n)?n:e.map(()=>n||eo).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(a.value=o(e),a.done=e>=t,a)}}t.s(["interpolate",()=>eh],318053),t.s(["defaultOffset",()=>ec],281824);let ep=t=>{let e=({timestamp:e})=>t(e);return{start:()=>h.update(e,!0),stop:()=>c(e),now:()=>d.isProcessing?d.timestamp:f.now()}},em={decay:er,inertia:er,tween:ed,keyframes:ed,spring:es},ef=t=>t/100;class ev extends tN{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};const{name:e,motionValue:i,element:s,keyframes:r}=this.options,n=(null==s?void 0:s.KeyframeResolver)||tE,a=(t,e)=>this.onKeyframesResolved(t,e);this.resolver=new n(r,a,e,i,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}
1initPlayback(t){let e,i,{type:s="keyframes",repeat:r=0,repeatDelay:n=0,repeatType:a,velocity:o=0}=this.options,l=V(s)?s:em[s]||ed;l!==ed&&"number"!=typeof t[0]&&(e=t_(ef,t3(t[0],t[1])),t=[0,100]);let u=l({...this.options,keyframes:t});"mirror"===a&&(i=l({...this.options,keyframes:[...t].reverse(),velocity:-o})),null===u.calculatedDuration&&(u.calculatedDuration=tU(u));let{calculatedDuration:h}=u,c=h+n;return{generator:u,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:h,resolvedDuration:c,totalDuration:c*(r+1)-n}}onPostResolved(){let{autoplay:t=!0}=this.options;t$.mainThread++,this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:s,generator:r,mirroredGenerator:n,mapPercentToKeyframes:a,keyframes:o,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=i;if(null===this.startTime)return r.next(0);let{delay:c,repeat:d,repeatType:p,repeatDelay:m,onUpdate:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let v=this.currentTime-c*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=r;if(d){let t=Math.min(this.currentTime,u)/h,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/h)):"mirror"===p&&(x=n)),y=$(0,1,i)*h}let T=g?{done:!1,value:o[0]}:x.next(y);a&&(T.value=a(T.value));let{done:P}=T;g||null===l||(P=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let b=null===this.holdTime&&("finished"===this.state||"running"===this.state&&P);return b&&void 0!==s&&(T.value=tI(o,this.options,s)),f&&f(T.value),b&&this.finish(),T}get duration(){let{resolved:t}=this;return t?S(t.calculatedDuration):0}get time(){return S(this.currentTime)}set time(t){t=w(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=S(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=ep,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let s=this.driver.now();null!==this.holdTime?this.startTime=s-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=s):this.startTime=null!=i?i:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!=(t=this.currentTime)?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel(),t$.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}function eg(t){return new ev(t)}function ey(t,e,i){var s;if(t instanceof Element)return[t];if("string"==typeof t){let r=document;e&&(r=e.current);let n=null!=(s=null==i?void 0:i[t])?s:r.querySelectorAll(t);return n?Array.from(n):[]}return Array.from(t)}t.s(["MainThreadAnimation",()=>ev,"animateValue",()=>eg],62637),t.s(["resolveElements",()=>ey],64019)},624213,608071,472371,t=>{"use strict";var e=t.i(581488);let i=(0,e.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});t.s(["MotionConfigContext",()=>i],624213);let s="u">typeof window;t.s(["isBrowser",()=>s],608071);let r=s?e.useLayoutEffect:e.useEffect;t.s(["useIsomorphicLayoutEffect",()=>r],472371)},765491,t=>{"use strict";var e=t.i(581488);function i(t){let i=(0,e.useRef)(null);return null===i.current&&(i.current=t()),i.current}t.s(["useConstant",()=>i])},909807,t=>{"use strict";var e,i,s,r=t.i(12693),n=t.i(898706),a=t.i(156823),o=t.i(387111),l=t.i(603491),u=t.i(581488),h=t.i(661607),c=t.i(699105);let d=(0,u.createContext)({}),p={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var m=t.i(567919);function f(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let v={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!m.px.test(t))return t;else t=parseFloat(t);let i=f(t,e.target.x),s=f(t,e.target.y);return`${i}% ${s}%`}};var g=t.i(804570),y=t.i(129274),x=t.i(895709);let T={},{schedule:P,cancel:b}=(0,t.i(131801).createRenderBatcher)(queueMicrotask,!1);var w=t.i(469569);class S extends u.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:r}=t;for(let t in V)T[t]=V[t],(0,x.isCSSVariableName)(t)&&(T[t].isCSSVariable=!0);r&&(e.group&&e.group.add(r),i&&i.register&&s&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),p.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:r}=this.props,n=i.projection;return n&&(n.isPresent=r,s||t.layoutDependency!==e||void 0===e?n.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?n.promote():n.relegate()||w.frame.postRender(()=>{let t=n.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),P.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 A(t){let[e,i]=(0,h.usePresence)(),s=(0,u.useContext)(c.LayoutGroupContext);return(0,l.jsx)(S,{...t,layoutGroup:s,switchLayoutGroup:(0,u.useContext)(d),isPresent:e,safeToRemove:i})}let V={borderRadius:{...v,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:v,borderTopRightRadius:v,borderBottomLeftRadius:v,borderBottomRightRadius:v,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let s=y.complex.parse(t);if(s.length>5)return t;let r=y.complex.createTransformer(t),n=+("number"!=typeof s[0]),a=i.x.scale*e.x,o=i.y.scale*e.y;s[0+n]/=a,s[1+n]/=o;let l=(0,g.mixNumber)(a,o,.5);return"number"==typeof s[2+n]&&(s[2+n]/=l),"number"==typeof s[3+n]&&(s[3+n]/=l),r(s)}}};
1var M=t.i(147543),D=t.i(578155),C=t.i(439399),E=t.i(770830),R=t.i(199036),B=t.i(102263),k=t.i(762046),L=t.i(876932);let F=(t,e)=>t.depth-e.depth;class j{constructor(){this.children=[],this.isDirty=!1}add(t){(0,L.addUniqueItem)(this.children,t),this.isDirty=!0}remove(t){(0,L.removeItem)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(F),this.isDirty=!1,this.children.forEach(t)}}var O=t.i(866179),I=t.i(393639),N=t.i(524003);t.i(327739);var U=t.i(635910),$=t.i(68148);function W(t){let e=(0,E.isMotionValue)(t)?t.get():t;return(0,$.isCustomValue)(e)?e.toValue():e}var z=t.i(115446),K=t.i(915720);let H=["TopLeft","TopRight","BottomLeft","BottomRight"],Y=H.length,G=t=>"string"==typeof t?parseFloat(t):t,X=t=>"number"==typeof t||m.px.test(t);function q(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let _=J(0,.5,K.circOut),Z=J(.5,.95,M.noop);function J(t,e,i){return s=>s<t?0:s>e?1:i((0,z.progress)(t,e,s))}function Q(t,e){t.min=e.min,t.max=e.max}function tt(t,e){Q(t.x,e.x),Q(t.y,e.y)}function te(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var ti=t.i(443226),ts=t.i(353348);function tr(t,e,i,s,r){return t-=e,t=(0,ti.scalePoint)(t,1/i,s),void 0!==r&&(t=(0,ti.scalePoint)(t,1/r,s)),t}function tn(t,e,[i,s,r],n,a){!function(t,e=0,i=1,s=.5,r,n=t,a=t){if(m.percent.test(e)&&(e=parseFloat(e),e=(0,g.mixNumber)(a.min,a.max,e/100)-a.min),"number"!=typeof e)return;let o=(0,g.mixNumber)(n.min,n.max,s);t===n&&(o-=e),t.min=tr(t.min,e,i,o,r),t.max=tr(t.max,e,i,o,r)}(t,e[i],e[s],e[r],e.scale,n,a)}let ta=["x","scaleX","originX"],to=["y","scaleY","originY"];function tl(t,e,i,s){tn(t.x,e,ta,i?i.x:void 0,s?s.x:void 0),tn(t.y,e,to,i?i.y:void 0,s?s.y:void 0)}var tu=t.i(906634);function th(t){return 0===t.translate&&1===t.scale}function tc(t){return th(t.x)&&th(t.y)}function td(t,e){return t.min===e.min&&t.max===e.max}function tp(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function tm(t,e){return tp(t.x,e.x)&&tp(t.y,e.y)}function tf(t){return(0,ts.calcLength)(t.x)/(0,ts.calcLength)(t.y)}function tv(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class tg{constructor(){this.members=[]}add(t){(0,L.addUniqueItem)(this.members,t),t.scheduleRender()}remove(t){if((0,L.removeItem)(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,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)}}var ty=t.i(386584),tx=t.i(992287);let tT={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},tP=["","X","Y","Z"],tb={visibility:"hidden"},tw=0;function tS(t,e,i,s){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),s&&(s[t]=0))}function tA({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(t={},i=null==e?void 0:e()){this.id=tw++,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,I.statsBuffer.value&&(tT.nodes=tT.calculatedTargetDeltas=tT.calculatedProjections=0),this.nodes.forEac
1h(tD),this.nodes.forEach(tF),this.nodes.forEach(tj),this.nodes.forEach(tC),I.statsBuffer.addProjectionMetrics&&I.statsBuffer.addProjectionMetrics(tT)},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 j)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new U.SubscriptionManager),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:r,visualElement:n}=this.options;if(n&&!n.current&&n.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(r||s)&&(this.isLayoutDirty=!0),t){let i,s=()=>this.root.updateBlockedByResize=!1;t(e,()=>{let t,e;this.root.updateBlockedByResize=!0,i&&i(),t=k.time.now(),e=({timestamp:i})=>{let r=i-t;r>=250&&((0,w.cancelFrame)(e),s(r-250))},w.frame.read(e,!0),i=()=>(0,w.cancelFrame)(e),p.hasAnimatedSinceResize&&(p.hasAnimatedSinceResize=!1,this.nodes.forEach(tL))})}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&n&&(s||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||n.getDefaultTransition()||tW,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=n.getProps(),l=!this.targetLayout||!tm(this.targetLayout,s),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...(0,D.getValueTransition)(r,"layout"),onPlay:a,onComplete:o};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||tL(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,w.cancelFrame)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(tO),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,B.getOptimisedAppearId)(i);if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",w.frame,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(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.forEac
1h(tR);return}this.isUpdating||this.nodes.forEach(tB),this.isUpdating=!1,this.nodes.forEach(tk),this.nodes.forEach(tV),this.nodes.forEach(tM),this.clearAllSnapshots();let t=k.time.now();w.frameData.delta=(0,N.clamp)(0,1e3/60,t-w.frameData.timestamp),w.frameData.timestamp=t,w.frameData.isProcessing=!0,w.frameSteps.update.process(w.frameData),w.frameSteps.preRender.process(w.frameData),w.frameSteps.render.process(w.frameData),w.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,P.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(tE),this.sharedNodes.forEach(tI)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,w.frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){w.frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||(0,ts.calcLength)(this.snapshot.measuredBox.x)||(0,ts.calcLength)(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.layoutCorrected=(0,tu.createBox)(),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(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!tc(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,n=s!==this.prevTransformTemplateValue;t&&(e||(0,tx.hasTransform)(this.latestValues)||n)&&(r(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)),tH((e=s).x),tH(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(0,tu.createBox)();let i=e.measureViewportBox();if(!((null==(t=this.scroll)?void 0:t.wasRoot)||this.path.some(tG))){let{scroll:t}=this.root;t&&((0,ti.translateAxis)(i.x,t.offset.x),(0,ti.translateAxis)(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=(0,tu.createBox)();if(tt(i,t),null==(e=this.scroll)?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let s=this.path[e],{scroll:r,options:n}=s;s!==this.root&&r&&n.layoutScroll&&(r.wasRoot&&tt(i,t),(0,ti.translateAxis)(i.x,r.offset.x),(0,ti.translateAxis)(i.y,r.offset.y))}return i}applyTransform(t,e=!1){let i=(0,tu.createBox)();tt(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&&(0,ti.transformBox)(i,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),(0,tx.hasTransform)(s.latestValues)&&(0,ti.transformBox)(i,s.latestValues)}return(0,tx.hasTransform)(this.latestValues)&&(0,ti.transformBox)(i,this.latestValues),i}removeTransform(t){let e=(0,tu.createBox)();tt(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,tx.hasTransform)(i.latestValues))continue;(0,tx.hasScale)(i.latestValues)&&i.updateSnapshot();let s=(0,tu.createBox)();tt(s,i.measurePageBox()),tl(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,s)}return(0,tx.hasTransform)(this.latestValues)&&tl(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!==w.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e;let i=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=i.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=i.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=i.isSharedProjectionDirty);let s=!!this.resumingFrom||this!==i;if(!(t||s&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:n}=this.options;if(this.layout&&(r||n)){if(this.resolvedRelativeTargetAt=w.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,tu.createBox)(),this.relativeTargetOrigin=(0,tu.createBox)(),(0,ts.calcRelativePosition)(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),tt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=(0,tu.createBox)(),this.targetWithTransforms=(0,tu.createBox)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),(0,ts.calcRelativeBox)(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):tt(this.target,this.layout.layoutBox),(0,ti.applyBoxDelta)(this.target,this.targetDelta)):tt(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=(0,tu.createBox)(),this.relativeTargetOrigin=(0,tu.createBox)(),(0,ts.calcRelativePosition)(this.relativeTargetOrigin,this.target,t.target),tt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}I.statsBuffer.value&&tT.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||(0,tx.hasScale)(this.parent.latestValues)||(0,tx.has2DTranslate)(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)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,s=!0;if((this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty))&&(s=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(s=!1),this.resolvedRelativeTargetAt===w.frameData.timestamp&&(s=!1),s)return;let{layout:r,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||n))return;tt(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;(0,ti.applyTreeDeltas)(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=(0,tu.createBox)());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(te(this.prevProjectionDelta.x,this.projectionDelta.x),te(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),(0,ts.calcBoxDelta)(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&tv(this.projectionDelta.x,this.prevProjectionDelta.x)&&tv(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),I.statsBuffer.value&&tT.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null==(e=this.options.visualElement)||e.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,tu.createDelta)(),this.projectionDelta=(0,tu.createDelta)(),this.projectionDeltaWithTransform=(0,tu.createDelta)()}setAnimationOrigin(t,e=!1){let i,s=this.snapshot,r=s?s.latestValues:{},n={...this.latestValues},a=(0,tu.createDelta)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let o=(0,tu.createBox)(),l=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&
1!0===this.options.crossfade&&!this.path.some(t$));this.animationProgress=0,this.mixTargetDelta=e=>{let s=e/1e3;if(tN(a.x,t.x,s),tN(a.y,t.y,s),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,f,v,y;(0,ts.calcRelativePosition)(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,v=o,y=s,tU(p.x,f.x,v.x,y),tU(p.y,f.y,v.y,y),i&&(u=this.relativeTarget,d=i,td(u.x,d.x)&&td(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=(0,tu.createBox)()),tt(i,this.relativeTarget)}l&&(this.animationValues=n,function(t,e,i,s,r,n){r?(t.opacity=(0,g.mixNumber)(0,void 0!==i.opacity?i.opacity:1,_(s)),t.opacityExit=(0,g.mixNumber)(void 0!==e.opacity?e.opacity:1,0,Z(s))):n&&(t.opacity=(0,g.mixNumber)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,s));for(let r=0;r<Y;r++){let n=`border${H[r]}Radius`,a=q(e,n),o=q(i,n);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||X(a)===X(o)?(t[n]=Math.max((0,g.mixNumber)(G(a),G(o),s),0),(m.percent.test(o)||m.percent.test(a))&&(t[n]+="%")):t[n]=o)}(e.rotate||i.rotate)&&(t.rotate=(0,g.mixNumber)(e.rotate||0,i.rotate||0,s))}(n,r,this.latestValues,s,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=s},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,w.cancelFrame)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=w.frame.update(()=>{var e;let i;p.hasAnimatedSinceResize=!0,O.activeAnimations.layout++,this.currentAnimation=(e={...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{O.activeAnimations.layout--},onComplete:()=>{O.activeAnimations.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}},(i=(0,E.isMotionValue)(0)?0:(0,C.motionValue)(0)).start((0,R.animateMotionValue)("",i,1e3,e)),i.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:s,latestValues:r}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&tY(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||(0,tu.createBox)();let e=(0,ts.calcLength)(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=(0,ts.calcLength)(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}tt(e,i),(0,ti.transformBox)(e,r),(0,ts.calcBoxDelta)(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new tg),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.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null==(t=this.getStack())?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)}
1resetSkewAndRotation(){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&&tS("z",t,s,this.animationValues);for(let e=0;e<tP.length;e++)tS(`rotate${tP[e]}`,t,s,this.animationValues),tS(`skew${tP[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 tb;let s={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=W(null==t?void 0:t.pointerEvents)||"",s.transform=r?r(this.latestValues,""):"none",s;let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=W(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!(0,tx.hasTransform)(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1),e}let a=n.animationValues||n.latestValues;this.applyTransformsToTarget(),s.transform=function(t,e,i){let s="",r=t.x.translate/e.x,n=t.y.translate/e.y,a=(null==i?void 0:i.z)||0;if((r||n||a)&&(s=`translate3d(${r}px, ${n}px, ${a}px) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:n,skewX:a,skewY:o}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),r&&(s+=`rotateX(${r}deg) `),n&&(s+=`rotateY(${n}deg) `),a&&(s+=`skewX(${a}deg) `),o&&(s+=`skewY(${o}deg) `)}let o=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==o||1!==l)&&(s+=`scale(${o}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,a),r&&(s.transform=r(a,s.transform));let{x:o,y:l}=this.projectionDelta;for(let t in s.transformOrigin=`${100*o.origin}% ${100*l.origin}% 0`,n.animationValues?s.opacity=n===this?null!=(i=null!=(e=a.opacity)?e:this.latestValues.opacity)?i:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:s.opacity=n===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,T){if(void 0===a[t])continue;let{correct:e,applyTo:i,isCSSVariable:r}=T[t],o="none"===s.transform?a[t]:e(a[t],n);if(i){let t=i.length;for(let e=0;e<t;e++)s[i[e]]=o}else r?this.options.visualElement.renderState.vars[t]=o:s[t]=o}return this.options.layoutId&&(s.pointerEvents=n===this?W(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.stop()}),this.root.nodes.forEach(tR),this.root.sharedNodes.clear()}}}function tV(t){t.updateLayout()}function tM(t){var e;let i=(null==(e=t.resumeFrom)?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:s}=t.layout,{animationType:r}=t.options,n=i.source!==t.layout.source;"size"===r?(0,ty.eachAxis)(t=>{let s=n?i.measuredBox[t]:i.layoutBox[t],r=(0,ts.calcLength)(s);s.min=e[t].min,s.max=s.min+r}):tY(r,i.layoutBox,e)&&(0,ty.eachAxis)(s=>{let r=n?i.measuredBox[s]:i.layoutBox[s],a=(0,ts.calcLength)(e[s]);r.max=r.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+a)});let a=(0,tu.createDelta)();(0,ts.calcBoxDelta)(a,e,i.layoutBox);let o=(0,tu.createDelta)();n?(0,ts.calcBoxDelta)(o,t.applyTransform(s,!0),i.measuredBox):(0,ts.calcBoxDelta)(o,e,i.layoutBox);let l=!tc(a),u=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:r,layout:n}=s;if(r&&n){let a=(0,tu.createBox)();(0,ts.calcRelativePosition)(a,i.layoutBox,r.layoutBox);let o=(0,tu.createBox)();(0,ts.calcRelativePosition)(o,e,n.layoutBox),tm(a,o)||(u=!0),s.options.layoutRoot&&(t.relativeTarget=o,t.relativeTargetOrigin=a,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function tD(t){I.statsBuffer.value&&tT.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
1isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function tC(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function tE(t){t.clearSnapshot()}function tR(t){t.clearMeasurements()}function tB(t){t.isLayoutDirty=!1}function tk(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function tL(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function tF(t){t.resolveTargetDelta()}function tj(t){t.calcProjection()}function tO(t){t.resetSkewAndRotation()}function tI(t){t.removeLeadSnapshot()}function tN(t,e,i){t.translate=(0,g.mixNumber)(e.translate,0,i),t.scale=(0,g.mixNumber)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function tU(t,e,i,s){t.min=(0,g.mixNumber)(e.min,i.min,s),t.max=(0,g.mixNumber)(e.max,i.max,s)}function t$(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let tW={duration:.45,ease:[.4,0,.1,1]},tz=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),tK=tz("applewebkit/")&&!tz("chrome/")?Math.round:M.noop;function tH(t){t.min=tK(t.min),t.max=tK(t.max)}function tY(t,e,i){return"position"===t||"preserve-aspect"===t&&!(0,ts.isNear)(tf(e),tf(i),.2)}function tG(t){var e;return t!==t.root&&(null==(e=t.scroll)?void 0:e.wasRoot)}var tX=t.i(785389);let tq=tA({attachResizeListener:(t,e)=>(0,tX.addDomEvent)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),t_={current:void 0},tZ=tA({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!t_.current){let t=new tq({});t.mount(window),t.setOptions({layoutScroll:!0}),t_.current=t}return t_.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),tJ={pan:{Feature:o.PanGesture},drag:{Feature:a.DragGesture,ProjectionNode:tZ,MeasureLayout:A}};var tQ=t.i(402122),t0=t.i(64019);function t1(t,e){let i=(0,t0.resolveElements)(t),s=new AbortController;return[i,{passive:!0,...e,signal:s.signal},()=>s.abort()]}function t2(t){return!("touch"===t.pointerType||(0,tQ.isDragActive)())}var t3=t.i(272851),t5=t.i(787318);function t9(t,e,i){let{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=s["onHover"+i];r&&w.frame.postRender(()=>r(e,(0,t3.extractEventInfo)(e)))}class t8 extends t5.Feature{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[s,r,n]=t1(t,i),a=t=>{if(!t2(t))return;let{target:i}=t,s=e(i,t);if("function"!=typeof s||!i)return;let n=t=>{t2(t)&&(s(t),i.removeEventListener("pointerleave",n))};i.addEventListener("pointerleave",n,r)};return s.forEach(t=>{t.addEventListener("pointerenter",a,r)}),n}(t,(t,e)=>(t9(this.node,e,"Start"),t=>t9(this.node,t,"End"))))}unmount(){}}var t6=t5,t4=t.i(755095);class t7 extends t6.Feature{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,t4.pipe)((0,tX.addDomEvent)(this.node.current,"focus",()=>this.onFocus()),(0,tX.addDomEvent)(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let et=(t,e)=>!!e&&(t===e||et(t,e.parentElement));var ee=t.i(465607);let ei=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),es=new WeakSet;function er(t){return e=>{"Enter"===e.key&&t(e)}}function en(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function ea(t){return(0,ee.isPrimaryPointer)(t)&&!(0,tQ.isDragActive)()}var eo=t5;function el(t,e,i){let{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap","Start"===i);let r=s["onTap"+("End"===i?"":i)];r&&w.frame.postRender(()=>r(e,(0,t3.extractEventInfo)(e)))}class eu extends eo.Feature{mount(){let{current:t}=this.node;
1t&&(this.unmount=function(t,e,i={}){let[s,r,n]=t1(t,i),a=t=>{let s=t.currentTarget;if(!ea(t)||es.has(s))return;es.add(s);let n=e(s,t),a=(t,e)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),ea(t)&&es.has(s)&&(es.delete(s),"function"==typeof n&&n(t,{success:e}))},o=t=>{a(t,i.useGlobalTarget||et(s,t.target))},l=t=>{a(t,!1)};window.addEventListener("pointerup",o,r),window.addEventListener("pointercancel",l,r)};return s.forEach(t=>{ei.has(t.tagName)||-1!==t.tabIndex||null!==t.getAttribute("tabindex")||(t.tabIndex=0),(i.useGlobalTarget?window:t).addEventListener("pointerdown",a,r),t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let s=er(()=>{if(es.has(i))return;en(i,"down");let t=er(()=>{en(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>en(i,"cancel"),e)});i.addEventListener("keydown",s,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),e)})(t,r),r)}),n}(t,(t,e)=>(el(this.node,e,"Start"),(t,{success:e})=>el(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}var eh=t5;let ec=new WeakMap,ed=new WeakMap,ep=t=>{let e=ec.get(t.target);e&&e(t)},em=t=>{t.forEach(ep)},ef={some:0,all:1};class ev extends eh.Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:s,margin:r,amount:n="some",once:a}=i,o={root:s?s.current:void 0,rootMargin:r,threshold:"number"==typeof n?n:ef[n]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,a&&!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(),r=e?i:s;r&&r(t)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;ed.has(i)||ed.set(i,{});let s=ed.get(i),r=JSON.stringify(e);return s[r]||(s[r]=new IntersectionObserver(em,{root:t,...e})),s[r]}(o),ec.set(t,l),e.observe(t),()=>{ec.delete(t),e.unobserve(t)}}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}t.i(482681);let eg=(0,u.createContext)({strict:!1});var ey=t.i(624213);let ex=(0,u.createContext)({});var eT=t.i(280420),eP=t.i(283529),eb=t.i(94071);function ew(t){return(0,eT.isAnimationControls)(t.animate)||eb.variantProps.some(e=>(0,eP.isVariantLabel)(t[e]))}function eS(t){return!!(ew(t)||t.variants)}function eA(t){return Array.isArray(t)?t.join(" "):t}var eV=t.i(608071);let eM={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"]},eD={};for(let t in eM)eD[t]={isEnabled:e=>eM[t].some(t=>!!e[t])};let eC=Symbol.for("motionComponentSymbol");var eE=t.i(319568),eR=t.i(884929),eB=t.i(472371),ek=t.i(666124),eL=t.i(371404);function eF(t,{layout:e,layoutId:i}){return eL.transformProps.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!T[t]||"opacity"===t)}let ej=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var eO=t.i(427962);let eI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eN=eL.transformPropOrder.length;function eU(t,e,i){let{style:s,vars:r,transformOrigin:n}=t,a=!1,o=!1;for(let t in e){let i=e[t];if(eL.transformProps.has(t)){a=!0;continue}if((0,x.isCSSVariableName)(t)){r[t]=i;continue}{let e=ej(i,eO.numberValueTypes[t]);t.startsWith("origin")?(o=!0,n[t]=e):s[t]=e}}if(!e.transform&&(a||i?s.transform=function(t,e,i){let s="",r=!0;for(let n=0;n<eN;n++){let a=eL.transformPropOrder[n],o=t[a];if(void 0===o)continue;let l=!0;if(!(l="number"==typeof o?o===+!!a.startsWith("scale"):0===parseFloat(o))||i){let t=ej(o,eO.numberValueTypes[a]);if(!l){r=!1;let e=eI[a]||a;s+=`${e}(${t}) `}i&&(e[a]=t)}}return s=s.trim(),i?s=i(e,r?"":s):r&&(s="none"),s}(e,t.transform,i):s.transform&&(s.transform="none")),o){let{originX:t="50%",originY:e="50%",originZ:i=0}=n;s.transformOrigin=`${t} ${e} ${i}`}}let e$=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function eW(t,e,i){for(let s in e)(0,E.isMotionValue)(e[s])||eF(s,i)||(t[s]=e[s])}let ez=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function eK(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ez.has(t)}let eH=t=>!eK(t);try{(e=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default)&&(eH=t=>t.startsWith("on")?!eK(t):e(t))}catch(t){}let eY=["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 eG(t){if("string"!=typeof t||t.includes("-"));else if(eY.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let eX={offset:"stroke-dashoffset",array:"stroke-dasharray"},eq={offset:"strokeDashoffset",array:"strokeDasharray"};function e_(t,e,i){return"string"==typeof t?t:m.px.transform(e+i*t)}function eZ(t,{attrX:e,attrY:i,attrScale:s,originX:r,originY:n,pathLength:a,pathSpacing:o=1,pathOffset:l=0,...u},h,c){let d,p;
1if(eU(t,u,c),h){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:f,style:v,dimensions:g}=t;f.transform&&(g&&(v.transform=f.transform),delete f.transform),g&&(void 0!==r||void 0!==n||v.transform)&&(d=e_(void 0!==r?r:.5,g.x,g.width),p=e_(void 0!==n?n:.5,g.y,g.height),v.transformOrigin=`${d} ${p}`),void 0!==e&&(f.x=e),void 0!==i&&(f.y=i),void 0!==s&&(f.scale=s),void 0!==a&&function(t,e,i=1,s=0,r=!0){t.pathLength=1;let n=r?eX:eq;t[n.offset]=m.px.transform(-s);let a=m.px.transform(e),o=m.px.transform(i);t[n.array]=`${a} ${o}`}(f,a,o,l,!1)}let eJ=()=>({...e$(),attrs:{}}),eQ=t=>"string"==typeof t&&"svg"===t.toLowerCase();var e0=t.i(52737),e1=t.i(765491);let e2=t=>(e,i)=>{let s=(0,u.useContext)(ex),r=(0,u.useContext)(eR.PresenceContext),n=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:i},s,r,n){let a={latestValues:function(t,e,i,s){let r={},n=s(t,{});for(let t in n)r[t]=W(n[t]);let{initial:a,animate:o}=t,l=ew(t),u=eS(t);e&&u&&!l&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===o&&(o=e.animate));let h=!!i&&!1===i.initial,c=(h=h||!1===a)?o:a;if(c&&"boolean"!=typeof c&&!(0,eT.isAnimationControls)(c)){let e=Array.isArray(c)?c:[c];for(let i=0;i<e.length;i++){let s=(0,e0.resolveVariantFromProps)(t,e[i]);if(s){let{transitionEnd:t,transition:e,...i}=s;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let e in t)r[e]=t[e]}}}return r}(s,r,n,t),renderState:e()};return i&&(a.onMount=t=>i({props:s,current:t,...a}),a.onUpdate=t=>i(t)),a})(t,e,s,r);return i?n():(0,e1.useConstant)(n)};function e3(t,e,i){var s;let{style:r}=t,n={};for(let a in r)((0,E.isMotionValue)(r[a])||e.style&&(0,E.isMotionValue)(e.style[a])||eF(a,t)||(null==(s=null==i?void 0:i.getValue(a))?void 0:s.liveStyle)!==void 0)&&(n[a]=r[a]);return n}let e5={useVisualState:e2({scrapeMotionValuesFromProps:e3,createRenderState:e$})};function e9(t,e){try{e.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(t){e.dimensions={x:0,y:0,width:0,height:0}}}var e8=t.i(251518);function e6(t,{style:e,vars:i},s,r){for(let n in Object.assign(t.style,e,r&&r.getProjectionStyles(s)),i)t.style.setProperty(n,i[n])}let e4=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function e7(t,e,i,s){for(let i in e6(t,e,void 0,s),e.attrs)t.setAttribute(e4.has(i)?i:(0,e8.camelToDash)(i),e.attrs[i])}function it(t,e,i){let s=e3(t,e,i);for(let i in t)((0,E.isMotionValue)(t[i])||(0,E.isMotionValue)(e[i]))&&(s[-1!==eL.transformPropOrder.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return s}let ie=["x","y","width","height","cx","cy","r"],ii={useVisualState:e2({scrapeMotionValuesFromProps:it,createRenderState:eJ,onUpdate:({props:t,prevProps:e,current:i,renderState:s,latestValues:r})=>{if(!i)return;let n=!!t.drag;if(!n){for(let t in r)if(eL.transformProps.has(t)){n=!0;break}}if(!n)return;let a=!e;if(e)for(let i=0;i<ie.length;i++){let s=ie[i];t[s]!==e[s]&&(a=!0)}a&&w.frame.read(()=>{e9(i,s),w.frame.render(()=>{eZ(s,r,eQ(i.tagName),t.transformTemplate),e7(i,s)})})}})};var is=t.i(370836),ir=t.i(271219),ia=t.i(535515);let io={current:null},il={current:!1};var iu=t.i(77291),ih=t.i(232818),ic=t.i(24463),id=t.i(765469);let ip=[...ic.dimensionValueTypes,ih.color,y.complex],im=new WeakMap;var iv=t.i(426888);let ig=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class iy{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:r,visualState:n},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=iv.KeyframeResolver,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=k.time.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,w.frame.render(this.render,!1,!0))};const{latestValues:o,renderState:l,onUpdate:u}=n;this.onUpdate=u,this.latestValues=o,this.baseTarget={...o},this.initialValues=e.initial?{...o}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=ew(e),this.isVariantNode=eS(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in c){const e=c[t];void 0!==o[t]&&(0,E.isMotionValue)(e)&&e.set(o[t],!1)}}mount(t){this.current=t,im.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.forEac
1h((t,e)=>this.bindToMotionValue(e,t)),il.current||function(){if(il.current=!0,eV.isBrowser)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>io.current=t.matches;t.addListener(e),e()}else io.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||io.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),(0,w.cancelFrame)(this.notifyUpdate),(0,w.cancelFrame)(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=eL.transformProps.has(t);s&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&w.frame.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),n=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),n(),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 eD){let e=eD[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];e.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):(0,tu.createBox)()}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<ig.length;e++){let i=ig[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 r=e[s],n=i[s];if((0,E.isMotionValue)(r))t.addValue(s,r);else if((0,E.isMotionValue)(n))t.addValue(s,(0,C.motionValue)(r,{owner:t}));else if(n!==r)if(t.hasValue(s)){let e=t.getValue(s);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(s);t.addValue(s,(0,C.motionValue)(void 0!==e?e:r,{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(),this.onUpdate&&this.onUpdate(this)}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,C.motionValue)(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))?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=s){if("string"==typeof s&&((0,ir.isNumericalString)(s)||(0,ia.isZeroValueString)(s)))s=parseFloat(s);else{let i;i=s,!ip.find((0,id.testValueType)(i))&&y.complex.test(e)&&(s=(0,iu.getAnimatableNone)(t,e))}this.setBaseTarget(t,(0,E.isMotionValue)(s)?s.get():s)}return(0,E.isMotionValue)(s)?s.get():s}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i,{initial:s}=this.props;if("string"==typeof s||"object"==typeof s){let r=(0,e0.resolveVariantFromProps)(this.props,s,null==(e=this.presenceContext)?void 0:e.custom);r&&(i=r[t])}if(s&&void 0!==i)return i;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||(0,E.isMotionValue)(r)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new U.SubscriptionManager),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}var ix=t.i(392900);class iT extends iy{constructor(){super(...arguments),this.KeyframeResolver=ix.DOMKeyframesResolver}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]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,E.isMotionValue)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}var iP=t.i(981578);class ib extends iT{constructor(){super(...arguments),this.type="html",this.renderInstance=e6}readValueFromInstance(t,e){if(eL.transformProps.has(e)){let t=(0,iP.getDefaultValueType)(e);return t&&t.default||0}{let i=window.getComputedStyle(t),s=((0,x.isCSSVariableName)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,is.measureViewportBox)(t,e)}build(t,e,i){eU(t,e,i.transformTemplate)}
1scrapeMotionValuesFromProps(t,e,i){return e3(t,e,i)}}class iw extends iT{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=tu.createBox,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&e9(this.current,this.renderState)}}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(eL.transformProps.has(e)){let t=(0,iP.getDefaultValueType)(e);return t&&t.default||0}return e=e4.has(e)?e:(0,e8.camelToDash)(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return it(t,e,i)}onBindTransform(){this.current&&!this.renderState.dimensions&&w.frame.postRender(this.updateDimensions)}build(t,e,i){eZ(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,s){e7(t,e,i,s)}mount(t){this.isSVGTag=eQ(t.tagName),super.mount(t)}}let iS=(i={...n.animations,inView:{Feature:ev},tap:{Feature:eu},focus:{Feature:t7},hover:{Feature:t8},...tJ,layout:{ProjectionNode:tZ,MeasureLayout:A}},s=(t,e)=>eG(t)?new iw(e):new ib(e,{allowProjection:t!==u.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:s,Component:r}){var n,a;function o(t,n){var a;let o,h={...(0,u.useContext)(ey.MotionConfigContext),...t,layoutId:function({layoutId:t}){let e=(0,u.useContext)(c.LayoutGroupContext).id;return e&&void 0!==t?e+"-"+t:t}(t)},{isStatic:p}=h,m=function(t){let{initial:e,animate:i}=function(t,e){if(ew(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,eP.isVariantLabel)(e)?e:void 0,animate:(0,eP.isVariantLabel)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,u.useContext)(ex));return(0,u.useMemo)(()=>({initial:e,animate:i}),[eA(e),eA(i)])}(t),f=s(t,p);if(!p&&eV.isBrowser){(0,u.useContext)(eg).strict;let t=function(t){let{drag:e,layout:i}=eD;if(!e&&!i)return{};let s={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}(h);o=t.MeasureLayout,m.visualElement=function(t,e,i,s,r){var n,a;let{visualElement:o}=(0,u.useContext)(ex),l=(0,u.useContext)(eg),h=(0,u.useContext)(eR.PresenceContext),c=(0,u.useContext)(ey.MotionConfigContext).reducedMotion,p=(0,u.useRef)(null);s=s||l.renderer,!p.current&&s&&(p.current=s(t,{visualState:e,parent:o,props:i,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:c}));let m=p.current,f=(0,u.useContext)(d);m&&!m.projection&&r&&("html"===m.type||"svg"===m.type)&&function(t,e,i,s){let{layoutId:r,layout:n,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:u}=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:r,layout:n,alwaysMeasureLayout:!!a||o&&(0,eE.isRefObject)(o),visualElement:t,animationType:"string"==typeof n?n:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:u})}(p.current,i,r,f);let v=(0,u.useRef)(!1);(0,u.useInsertionEffect)(()=>{m&&v.current&&m.update(i,h)});let g=i[ek.optimizedAppearDataAttribute],y=(0,u.useRef)(!!g&&!(null==(n=window.MotionHandoffIsComplete)?void 0:n.call(window,g))&&(null==(a=window.MotionHasOptimisedAnimation)?void 0:a.call(window,g)));return(0,eB.useIsomorphicLayoutEffect)(()=>{m&&(v.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),P.render(m.render),y.current&&m.animationState&&m.animationState.animateChanges())}),(0,u.useEffect)(()=>{m&&(!y.current&&m.animationState&&m.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var t;null==(t=window.MotionHandoffMarkAsComplete)||t.call(window,g)}),y.current=!1))}),m}(r,f,h,e,t.ProjectionNode)}return(0,l.jsxs)(ex.Provider,{value:m,children:[o&&m.visualElement?(0,l.jsx)(o,{visualElement:m.visualElement,...h}):null,i(r,t,(a=m.visualElement,(0,u.useCallback)(t=>{t&&f.onMount&&f.onMount(t),a&&(t?a.mount(t):a.unmount()),n&&("function"==typeof n?n(t):(0,eE.isRefObject)(n)&&(n.current=t))},[a])),f,p,m.visualElement)]})}t&&function(t){for(let e in t)eD[e]={...eD[e],...t[e]}}(t),o.displayName=`motion.${"string"==typeof r?r:`create(${null!=(a=null!=(n=r.displayName)?n:r.name)?a:""})`}`;let h=(0,u.forwardRef)(o);return h[eC]=r,h}({...eG(t)?ii:e5,preloadedFeatures:i,useRender:function(t=!1){return(e,i,s,{latestValues:r},n)=>
1{let a=(eG(e)?function(t,e,i,s){let r=(0,u.useMemo)(()=>{let i=eJ();return eZ(i,e,eQ(s),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};eW(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i,s,r={},n=(i=t.style||{},eW(s={},i,t),Object.assign(s,function({transformTemplate:t},e){return(0,u.useMemo)(()=>{let i=e$();return eU(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),s);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=n,r})(i,r,n,e),o=function(t,e,i){let s={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(eH(r)||!0===i&&eK(r)||!e&&!eK(r)||t.draggable&&r.startsWith("onDrag"))&&(s[r]=t[r]);return s}(i,"string"==typeof e,t),l=e!==u.Fragment?{...o,...a,ref:s}:{},{children:h}=i,c=(0,u.useMemo)(()=>(0,E.isMotionValue)(h)?h.get():h,[h]);return(0,u.createElement)(e,{...l,children:c})}}(e),createVisualElement:s,Component:t})}),iA=(0,r.createDOMMotionComponentProxy)(iS);t.s(["motion",()=>iA],909807)}]);
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.