PageSourceSearch

https://rotation-restaurant-production.up.railway.app/_next/static/chunks/3617-4e1aaf0a102e0d6c.js

js rotation-restaurant-production.up.railway.app collected 2026-10-03 12:14:02 UTC 131,945 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3617],{920:(t,e,i)=>{i.d(e,{P:()=>rJ});let n=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],r=new Set(n);var s=i(55389),o=i(24888),a=i(24531);let l=new Set(["brightness","contrast","saturate","opacity"]);function u(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(a.S)||[];if(!n)return t;let r=i.replace(n,""),s=+!!l.has(e);return n!==i&&(s*=100),e+"("+s+r+")"}let h=/\b([a-z-]*)\(.*?\)/gu,d={...o.f,getAnimatableNone:t=>{let e=t.match(h);return e?e.map(u).join(" "):t}},c={...o.f,getAnimatableNone:t=>{let e=o.f.parse(t);return o.f.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}};var p=i(37822);let m={...p.ai,transform:Math.round};var f=i(92419);let v={rotate:f.uj,rotateX:f.uj,rotateY:f.uj,rotateZ:f.uj,scale:p.hs,scaleX:p.hs,scaleY:p.hs,scaleZ:p.hs,skew:f.uj,skewX:f.uj,skewY:f.uj,distance:f.px,translateX:f.px,translateY:f.px,translateZ:f.px,x:f.px,y:f.px,z:f.px,perspective:f.px,transformPerspective:f.px,opacity:p.X4,originX:f.gQ,originY:f.gQ,originZ:f.px},y={borderWidth:f.px,borderTopWidth:f.px,borderRightWidth:f.px,borderBottomWidth:f.px,borderLeftWidth:f.px,borderRadius:f.px,borderTopLeftRadius:f.px,borderTopRightRadius:f.px,borderBottomRightRadius:f.px,borderBottomLeftRadius:f.px,width:f.px,maxWidth:f.px,height:f.px,maxHeight:f.px,top:f.px,right:f.px,bottom:f.px,left:f.px,inset:f.px,insetBlock:f.px,insetBlockStart:f.px,insetBlockEnd:f.px,insetInline:f.px,insetInlineStart:f.px,insetInlineEnd:f.px,padding:f.px,paddingTop:f.px,paddingRight:f.px,paddingBottom:f.px,paddingLeft:f.px,paddingBlock:f.px,paddingBlockStart:f.px,paddingBlockEnd:f.px,paddingInline:f.px,paddingInlineStart:f.px,paddingInlineEnd:f.px,margin:f.px,marginTop:f.px,marginRight:f.px,marginBottom:f.px,marginLeft:f.px,marginBlock:f.px,marginBlockStart:f.px,marginBlockEnd:f.px,marginInline:f.px,marginInlineStart:f.px,marginInlineEnd:f.px,fontSize:f.px,backgroundPositionX:f.px,backgroundPositionY:f.px,...v,zIndex:m,fillOpacity:p.X4,strokeOpacity:p.X4,numOctaves:m},g={...y,color:s.y,backgroundColor:s.y,outlineColor:s.y,fill:s.y,stroke:s.y,borderColor:s.y,borderTopColor:s.y,borderRightColor:s.y,borderBottomColor:s.y,borderLeftColor:s.y,filter:d,WebkitFilter:d,mask:c,WebkitMask:c},x=t=>g[t],w=()=>({translate:0,scale:1,origin:0,originPoint:0}),T=()=>({x:w(),y:w()}),S=()=>({min:0,max:0}),P=()=>({x:S(),y:S()}),b=t=>!!(t&&t.getVelocity),k=new Set(["width","height","top","left","right","bottom",...n]),E=t=>e=>e.test(t),A=[p.ai,f.px,f.KN,f.uj,f.vw,f.vh,{test:t=>"auto"===t,parse:t=>t}],M=t=>A.find(E(t));var V=i(78041);let C=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);var D=i(21391);let R=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,L=t=>180*t/Math.PI,j=t=>F(L(Math.atan2(t[1],t[0]))),B={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:j,rotateZ:j,skewX:t=>L(Math.atan(t[1])),skewY:t=>L(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},F=t=>((t%=360)<0&&(t+=360),t),O=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),I=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),_={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:O,scaleY:I,scale:t=>(O(t)+I(t))/2,rotateX:t=>F(L(Math.atan2(t[6],t[5]))),rotateY:t=>F(L(Math.atan2(-t[2],t[0]))),rotateZ:j,rotate:j,skewX:t=>L(Math.atan(t[4])),skewY:t=>L(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function W(t){return+!!t.includes("scale")}function U(t,e){let i,n;if(!t||"none"===t)return W(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=_,n=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=B,n=e}if(!n)return W(e);let s=i[e],o=n[1].split(",").map(N);return"function"==typeof s?s(o):o[s]}function N(t){return parseFloat(t.trim())}let G=t=>t===p.ai||t===f.px,$=new Set(["x","y","z"]),X=n.filter(t=>!$.has(t)),q={width:({x:t},{paddingLeft:e="0",paddingRight:i="0",boxSizing:n})=>{let r=t.max-t.min;return"border-box"===n?r:r-parseFloat(e)-parseFloat(i)},height:({y:t},{paddingTop:e="0",paddingBottom:i="0",boxSizing:n})=>{let r=t.max-t.min;return"border-box"===n?r:r-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:(t,{transform:e})=>U(e,"x"),y:(t,{transform:e})=>U(e,"y")};q.translateX=q.x,q.translateY=q.y;var z=i(73934);let K=new Set,Y=!1,H=!1,Q=!1;function Z(){if(H){let t=Array.from(K).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];
1return X.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e}(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])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}H=!1,Y=!1,K.forEach(t=>t.complete(Q)),K.clear()}function J(){K.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(H=!0)})}class tt{constructor(t,e,i,n,r,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(K.add(this),Y||(Y=!0,z.Gt.read(J),z.Gt.resolveKeyframes(Z))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let r=n?.get(),s=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let n=i.readValue(e,s);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=s),n&&void 0===r&&n.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),K.delete(this)}cancel(){"scheduled"===this.state&&(K.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let te=t=>/^0[^.\s]+$/u.test(t),ti=new Set([d,c]);function tn(t,e){let i=x(t);return ti.has(i)||(i=o.f),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let tr=new Set(["auto","none","0"]);class ts extends tt{constructor(t,e,i,n,r){super(t,e,i,n,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 n=t[i];if("string"==typeof n&&(n=n.trim(),(0,D.pG)(n))){let r=function t(e,i,n=1){(0,V.V)(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,s]=function(t){let e=R.exec(t);if(!e)return[,];let[,i,n,r]=e;return[`--${i??n}`,r]}(e);if(!r)return;let o=window.getComputedStyle(i).getPropertyValue(r);if(o){let t=o.trim();return C(t)?parseFloat(t):t}return(0,D.pG)(s)?t(s,i,n+1):s}(n,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!k.has(i)||2!==t.length)return;let[n,r]=t,s=M(n),o=M(r);if((0,D.rm)(n)!==(0,D.rm)(r)&&q[i]){this.needsMeasurement=!0;return}if(s!==o)if(G(s)&&G(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else q[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var n;(null===t[e]||("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||te(n)))&&i.push(e)}i.length&&function(t,e,i){let n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!tr.has(e)&&(0,o.V)(e).values.length&&(n=t[r]),r++}if(n&&i)for(let r of e)t[r]=tn(i,n)}(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=q[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let r=i.length-1,s=i[r];i[r]=q[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let to=t=>1e3*t;var ta=i(8453),tl=i(6500);function tu(t,e,i){e.startsWith("--")?t.style.setProperty(e,i):t.style[e]=i}var th=i(64995);let td=t=>null!==t;function tc(t,{repeat:e,repeatType:i="loop"},n,r=1){let s=t.filter(td),o=r<0||e&&"loop"!==i&&e%2==1?0:s.length-1;return o&&void 0!==n?n:s[o]}class tp{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let tm={layout:0,mainThread:0,waapi:0};var tf=i(23867);let tv=t=>Array.isArray(t)&&"number"==typeof t[0],ty=(0,i(50955).J)(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),tg=(t,e,i=10)=>{let n="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)n+=Math.round(1e4*t(e/(r-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},tx=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,tw={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tx([0,.65,.55,1]),circOut:tx([.55,0,1,.45]),backIn:tx([.31,.01,.66,-.59]),backOut:tx([.33,1.53,.69,.99])};function tT(t){return"function"==typeof t&&"applyToOptions"in t}class tS extends tp{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;let{element:e,name:i,keyframes:n,pseudoElement:r,allowFlatten:s=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!r,this.allowFlatten=s,this.options=t,(0,V.V)("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let l=function({type:t,...e}){return tT(t)&&ty()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u){let h={[e]:i};l&&(h.offset=l);let d=function t(e,i){if(e)return"function"==typeof e?ty()?tg(e,i):"ease-out":tv(e)?tx(e):Array.isArray(e)?e.map(e=>t(e,i)||tw.easeOut):tw[e]}(a,r);Array.isArray(d)&&(h.easing=d),tf.Q.value&&tm.waapi++;let c={delay:n,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"};u&&(c.pseudoElement=u);let p=t.animate(h,c);return tf.Q.value&&p.finished.finally(()=>{tm.waapi--}),p}(e,i,n,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let t=tc(n,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(t),tu(e,i,t),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=to(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:i,observe:n}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&(0,th.J)())?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),i&&(this.animation.rangeEnd=i),tl.l):n(this)}}let tP=new Set(["opacity","clipPath","filter","transform"]),{schedule:tb}=(0,i(44300).I)(queueMicrotask,!1);var tk=i(27424),tE=i(22039);let tA=[...A,s.y,o.f],tM=new WeakMap;function tV(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function tC(t){return"string"==typeof t||Array.isArray(t)}let tD=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tR=["initial",...tD];function tL(t){return tV(t.animate)||tR.some(e=>tC(t[e]))}function tj(t){return!!(tL(t)||t.variants)}var tB=i(15824);function tF(t){let e=[{},{}];
1return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function tO(t,e,i,n){if("function"==typeof e){let[r,s]=tF(n);e=e(void 0!==i?i:t.custom,r,s)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,s]=tF(n);e=e(void 0!==i?i:t.custom,r,s)}return e}var tI=i(40031);let t_=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],tW={};class tU{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,skipAnimations:r,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=tt,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=tk.k.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,z.Gt.render(this.render,!1,!0))};let{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=r,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=tL(e),this.isVariantNode=tj(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:h,...d}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in d){let e=d[t];void 0!==l[t]&&b(e)&&e.set(l[t])}}mount(t){if(this.hasBeenMounted)for(let t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,tM.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(tI.r.current||(0,tB.Uu)(),this.shouldReduceMotion=tI.O.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),(0,z.WG)(this.notifyUpdate),(0,z.WG)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(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}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&tP.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:n,times:r,ease:s,duration:o}=e.accelerate,a=new tS({element:this.current,name:t,keyframes:n,times:r,ease:s,duration:to(o)}),l=i(a);this.valueSubscriptions.set(t,()=>{l(),a.cancel()});return}let n=r.has(t);n&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&z.Gt.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"undefined"!=typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),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 tW){let e=tW[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];
1e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):P()}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<t_.length;e++){let i=t_[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let r=e[n],s=i[n];if(b(r))t.addValue(n,r);else if(b(s))t.addValue(n,(0,tE.OQ)(r,{owner:t}));else if(s!==r)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(n);t.addValue(n,(0,tE.OQ)(void 0!==e?e:r,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=(0,tE.OQ)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=i){if("string"==typeof i&&(C(i)||te(i)))i=parseFloat(i);else{let n;n=i,!tA.find(E(n))&&o.f.test(e)&&(i=tn(t,e))}this.setBaseTarget(t,b(i)?i.get():i)}return b(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=tO(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||b(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new ta.v),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){tb.render(this.render)}}class tN extends tU{constructor(){super(...arguments),this.KeyframeResolver=ts}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;b(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function tG(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let t$=(t,e)=>e&&"number"==typeof t?e.transform(t):t,tX={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tq=n.length;function tz(t,e,i){let{style:s,vars:o,transformOrigin:a}=t,l=!1,u=!1;for(let t in e){let i=e[t];if(r.has(t)){l=!0;continue}if((0,D.j4)(t)){o[t]=i;continue}{let e=t$(i,y[t]);t.startsWith("origin")?(u=!0,a[t]=e):s[t]=e}}
1if(!e.transform&&(l||i?s.transform=function(t,e,i){let r="",s=!0;for(let o=0;o<tq;o++){let a=n[o],l=t[a];if(void 0===l)continue;let u=!0;if("number"==typeof l)u=l===+!!a.startsWith("scale");else{let t=parseFloat(l);u=a.startsWith("scale")?1===t:0===t}if(!u||i){let t=t$(l,y[a]);if(!u){s=!1;let e=tX[a]||a;r+=`${e}(${t}) `}i&&(e[a]=t)}}return r=r.trim(),i?r=i(e,s?"":r):s&&(r="none"),r}(e,t.transform,i):s.transform&&(s.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:i=0}=a;s.transformOrigin=`${t} ${e} ${i}`}}let tK={offset:"stroke-dashoffset",array:"stroke-dasharray"},tY={offset:"strokeDashoffset",array:"strokeDasharray"},tH=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function tQ(t,{attrX:e,attrY:i,attrScale:n,pathLength:r,pathSpacing:s=1,pathOffset:o=0,...a},l,u,h){if(tz(t,a,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:c}=t;for(let t of(d.transform&&(c.transform=d.transform,delete d.transform),(c.transform||d.transformOrigin)&&(c.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),c.transform&&(c.transformBox=h?.transformBox??"fill-box",delete d.transformBox),tH))void 0!==d[t]&&(c[t]=d[t],delete d[t]);void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==n&&(d.scale=n),void 0!==r&&function(t,e,i=1,n=0,r=!0){t.pathLength=1;let s=r?tK:tY;t[s.offset]=`${-n}`,t[s.array]=`${e} ${i}`}(d,r,s,o,!1)}let tZ=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"]),tJ=t=>"string"==typeof t&&"svg"===t.toLowerCase();function t0(t,{style:e,vars:i},n,r){let s,o=t.style;for(s in e)o[s]=e[s];for(s in r?.applyProjectionStyles(o,n),i)o.setProperty(s,i[s])}function t1(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let t2={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!f.px.test(t))return t;else t=parseFloat(t);let i=t1(t,e.target.x),n=t1(t,e.target.y);return`${i}% ${n}%`}};var t5=i(39361);let t3={borderRadius:{...t2,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:t2,borderTopRightRadius:t2,borderBottomLeftRadius:t2,borderBottomRightRadius:t2,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=o.f.parse(t);if(n.length>5)return t;let r=o.f.createTransformer(t),s=+("number"!=typeof n[0]),a=i.x.scale*e.x,l=i.y.scale*e.y;n[0+s]/=a,n[1+s]/=l;let u=(0,t5.k)(a,l,.5);return"number"==typeof n[2+s]&&(n[2+s]/=u),"number"==typeof n[3+s]&&(n[3+s]/=u),r(n)}}};function t4(t,{layout:e,layoutId:i}){return r.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!t3[t]||"opacity"===t)}function t9(t,e,i){let n=t.style,r=e?.style,s={};if(!n)return s;for(let e in n)(b(n[e])||r&&b(r[e])||t4(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(s[e]=n[e]);return s}function t6(t,e,i){let r=t9(t,e,i);for(let i in t)(b(t[i])||b(e[i]))&&(r[-1!==n.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return r}class t8 extends tN{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=P}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(r.has(e)){let t=x(e);return t&&t.default||0}return e=tZ.has(e)?e:tG(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return t6(t,e,i)}build(t,e,i){tQ(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in t0(t,e,void 0,n),e.attrs)t.setAttribute(tZ.has(i)?i:tG(i),e.attrs[i])}mount(t){this.isSVGTag=tJ(t.tagName),super.mount(t)}}function t7({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function et(t){return void 0===t||1===t}function ee({scale:t,scaleX:e,scaleY:i}){return!et(t)||!et(e)||!et(i)}function ei(t){return ee(t)||en(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function en(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function er(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function es(t,e=0,i=1,n,r){t.min=er(t.min,e,i,n,r),t.max=er(t.max,e,i,n,r)}function eo(t,{x:e,y:i}){es(t.x,e.translate,e.scale,e.originPoint),es(t.y,i.translate,i.scale,i.originPoint)}function ea(t,e){t.min+=e,t.max+=e}function el(t,e,i,n,r=.5){let s=(0,t5.k)(t.min,t.max,r);es(t,e,i,s,n)}function eu(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function eh(t,e,i){let n=i??t;el(t.x,eu(e.x,n.x),e.scaleX,e.scale,e.originX),el(t.y,eu(e.y,n.y),e.scaleY,e.scale,e.originY)}function ed(t,e){return t7(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}class ec extends tN{constructor(){super(...arguments),this.type="html",this.renderInstance=t0}readValueFromInstance(t,e){if(r.has(e))return this.projection?.isProjecting?W(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return U(i,e)})(t,e);{let i=window.getComputedStyle(t),n=((0,D.j4)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return ed(t,e)}build(t,e,i){tz(t,e,i.transformTemplate)}
1scrapeMotionValuesFromProps(t,e,i){return t9(t,e,i)}}var ep=i(12115),em=["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 ef(t){if("string"!=typeof t||t.includes("-"));else if(em.indexOf(t)>-1||RegExp("[A-Z]","u").test(t))return!0;return!1}var ev=i(82732),ey=i(45849),eg=i(95155),ex=i(60296),ew=(0,ep.createContext)({strict:!1}),eT=i(53127),eS=(0,ep.createContext)({});function eP(t){return Array.isArray(t)?t.join(" "):t}var eb=function(){return{style:{},transform:{},transformOrigin:{},vars:{}}};function ek(t,e,i){for(var n in e)b(e[n])||t4(n,i)||(t[n]=e[n])}var eE=function(){return(0,ey._)((0,ev._)({},eb()),{attrs:{}})},eA=i(80971),eM=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function eV(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||eM.has(t)}var eC=function(t){return!eV(t)};try{!function(t){"function"==typeof t&&(eC=function(e){return e.startsWith("on")?!eV(e):t(e)})}(require("@emotion/is-prop-valid").default)}catch(t){}var eD=i(17389);function eR(t){return b(t)?t.get():t}var eL=i(59686),ej=i(94416),eB=function(t){return function(e,i){var n=(0,ep.useContext)(eS),r=(0,ep.useContext)(eL.t),s=function(){var i,s;return i=t.scrapeMotionValuesFromProps,s=t.createRenderState,{latestValues:function(t,e,i,n){var r={},s=n(t,{});for(var o in s)r[o]=eR(s[o]);var a=t.initial,l=t.animate,u=tL(t),h=tj(t);e&&h&&!u&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===l&&(l=e.animate));var d=!!i&&!1===i.initial,c=(d=d||!1===a)?l:a;if(c&&"boolean"!=typeof c&&!tV(c))for(var p=Array.isArray(c)?c:[c],m=0;m<p.length;m++){var f=tO(t,p[m]);if(f){var v=f.transitionEnd,y=(f.transition,(0,eD._)(f,["transitionEnd","transition"]));for(var g in y){var x=y[g];if(Array.isArray(x)){var w=d?x.length-1:0;x=x[w]}null!==x&&(r[g]=x)}for(var T in v)r[T]=v[T]}}return r}(e,n,r,i),renderState:s()}};return i?s():(0,ej.M)(s)}},eF=eB({scrapeMotionValuesFromProps:t9,createRenderState:eb}),eO=eB({scrapeMotionValuesFromProps:t6,createRenderState:eE}),eI={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"]},e_=!1;function eW(){var t=function(t){e[t]={isEnabled:function(e){return eI[t].some(function(t){return!!e[t]})}}};if(!e_){var e={};for(var i in eI)t(i);tW=e,e_=!0}return tW}var eU=Symbol.for("motionComponentSymbol");let eN="data-"+tG("framerAppearId");var eG=(0,ep.createContext)({});function e$(t){return t&&(void 0===t?"undefined":(0,eA._)(t))==="object"&&Object.prototype.hasOwnProperty.call(t,"current")}var eX=i(46436);function eq(t){var e,i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.forwardMotionProps,s=void 0!==r&&r,o=n.type,a=arguments.length>2?arguments[2]:void 0,l=arguments.length>3?arguments[3]:void 0;a&&function(t){var e=eW();for(var i in t)e[i]=(0,ev._)({},e[i],t[i]);tW=e}(a);var u=o?"svg"===o:ef(t),h=u?eO:eF;function d(e,i){var n,r,o,a,d,c,p=(0,ey._)((0,ev._)({},(0,ep.useContext)(eT.Q),e),{layoutId:(n=e.layoutId,(r=(0,ep.useContext)(ex.L).id)&&void 0!==n?r+"-"+n:n)}),m=p.isStatic,f=(D=(C=function(t,e){if(tL(t)){var i=t.initial,n=t.animate;return{initial:!1===i||tC(i)?i:void 0,animate:tC(n)?n:void 0}}return!1!==t.inherit?e:{}}(e,(0,ep.useContext)(eS))).initial,R=C.animate,(0,ep.useMemo)(function(){return{initial:D,animate:R}},[eP(D),eP(R)])),v=h(e,m);if(!m&&"undefined"!=typeof window){(0,ep.useContext)(ew).strict;var y,g,x,w,T,S,P,k,E,A,M,V,C,D,R,L,j,B,F,O,I,_,W,U,N,G,$,X,q,z,K,Y,H,Q,Z=function(t){var e=eW(),i=e.drag,n=e.layout;if(!i&&!n)return{};var r=(0,ev._)({},i,n);return{MeasureLayout:(null==i?void 0:i.isEnabled(t))||(null==n?void 0:n.isEnabled(t))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}
1(p);c=Z.MeasureLayout,L=l,j=Z.ProjectionNode,_=(0,ep.useContext)(eS).visualElement,W=(0,ep.useContext)(ew),U=(0,ep.useContext)(eL.t),G=(N=(0,ep.useContext)(eT.Q)).reducedMotion,$=N.skipAnimations,X=(0,ep.useRef)(null),q=(0,ep.useRef)(!1),L=L||W.renderer,!X.current&&L&&(X.current=L(t,{visualState:v,parent:_,props:p,presenceContext:U,blockInitialAnimation:!!U&&!1===U.initial,reducedMotionConfig:G,skipAnimations:$,isSVG:u}),q.current&&X.current&&(X.current.manuallyAnimateOnMount=!0)),z=X.current,K=(0,ep.useContext)(eG),z&&!z.projection&&j&&("html"===z.type||"svg"===z.type)&&(y=X.current,g=p,x=j,w=K,T=g.layoutId,S=g.layout,P=g.drag,k=g.dragConstraints,E=g.layoutScroll,A=g.layoutRoot,M=g.layoutAnchor,V=g.layoutCrossfade,y.projection=new x(y.latestValues,g["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(y.parent)),y.projection.setOptions({layoutId:T,layout:S,alwaysMeasureLayout:!!P||k&&e$(k),visualElement:y,animationType:"string"==typeof S?S:"both",initialPromotionConfig:w,crossfade:V,layoutScroll:E,layoutRoot:A,layoutAnchor:M})),Y=(0,ep.useRef)(!1),(0,ep.useInsertionEffect)(function(){z&&Y.current&&z.update(p,U)}),H=p[eN],Q=(0,ep.useRef)(!!H&&"undefined"!=typeof window&&!(null==(B=(F=window).MotionHandoffIsComplete)?void 0:B.call(F,H))&&(null==(O=(I=window).MotionHasOptimisedAnimation)?void 0:O.call(I,H))),(0,eX.E)(function(){q.current=!0,z&&(Y.current=!0,window.MotionIsMounted=!0,z.updateFeatures(),z.scheduleRenderMicrotask(),Q.current&&z.animationState&&z.animationState.animateChanges())}),(0,ep.useEffect)(function(){z&&(!Q.current&&z.animationState&&z.animationState.animateChanges(),Q.current&&(queueMicrotask(function(){var t,e;null==(t=(e=window).MotionHandoffMarkAsComplete)||t.call(e,H)}),Q.current=!1),z.enteringChildren=void 0)}),f.visualElement=z}return(0,eg.jsxs)(eS.Provider,{value:f,children:[c&&f.visualElement?(0,eg.jsx)(c,(0,ev._)({visualElement:f.visualElement},p)):null,function(t,e,i,n,r){var s=n.latestValues,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6?arguments[6]:void 0,l=((null!=a?a:ef(t))?function(t,e,i,n){var r=(0,ep.useMemo)(function(){var i=eE();return tQ(i,e,tJ(n),t.transformTemplate,t.style),(0,ey._)((0,ev._)({},i.attrs),{style:(0,ev._)({},i.style)})},[e]);if(t.style){var s={};ek(s,t.style,t),r.style=(0,ev._)({},s,r.style)}return r}:function(t,e){var i,n,r={},s=(ek(i={},t.style||{},t),Object.assign(i,(n=t.transformTemplate,(0,ep.useMemo)(function(){var t=eb();return tz(t,e,n),Object.assign({},t.vars,t.style)},[e]))),i);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===t.drag?"none":"pan-".concat("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=s,r})(e,s,r,t),u=function(t,e,i){var n={};for(var r in t)("values"!==r||"object"!==(0,eA._)(t.values))&&!b(t[r])&&(eC(r)||!0===i&&eV(r)||!e&&!eV(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(e,"string"==typeof t,o),h=t!==ep.Fragment?(0,ey._)((0,ev._)({},u,l),{ref:i}):{},d=e.children,c=(0,ep.useMemo)(function(){return b(d)?d.get():d},[d]);return(0,ep.createElement)(t,(0,ey._)((0,ev._)({},h),{children:c}))}(t,e,(o=f.visualElement,a=(0,ep.useRef)(i),(0,ep.useInsertionEffect)(function(){a.current=i}),d=(0,ep.useRef)(null),(0,ep.useCallback)(function(t){if(t){var e;null==(e=v.onMount)||e.call(v,t)}var i=a.current;if("function"==typeof i)if(t){var n=i(t);"function"==typeof n&&(d.current=n)}else d.current?(d.current(),d.current=null):i(t);else i&&(i.current=t);o&&(t?o.mount(t):o.unmount())}
1,[o])),v,m,s,u)]})}d.displayName="motion.".concat("string"==typeof t?t:"create(".concat(null!=(i=null!=(e=t.displayName)?e:t.name)?i:"",")"));var c=(0,ep.forwardRef)(d);return c[eU]=t,c}var ez=i(87773),eK=i(44351),eY=i(51462),eH=i(3037);function eQ(t,e,i){let n=t.getProps();return tO(n,e,void 0!==i?i:n.custom,t)}function eZ(t,e){if(t?.inherit&&e){let{inherit:i,...n}=t;return{...e,...n}}return t}function eJ(t,e){let i=t?.[e]??t?.default??t;return i!==t?eZ(i,t):i}let e0=t=>Array.isArray(t);var e1=i(40042);function e2(t,e){let i=t.getValue("willChange");if(b(i)&&i.add)return i.add(e);if(!i&&e1.W.WillChange){let i=new e1.W.WillChange("auto");t.addValue("willChange",i),i.add(e)}}var e5=i(23656),e3=i(48895),e4=i(45130);let e9=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>z.Gt.update(e,t),stop:()=>(0,z.WG)(e),now:()=>z.uv.isProcessing?z.uv.timestamp:tk.k.now()}};function e6(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}let e8={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function e7(t,e){return t*Math.sqrt(1-e*e)}let it=["duration","bounce"],ie=["stiffness","damping","mass"];function ii(t,e){return e.some(e=>void 0!==t[e])}function ir(t=e8.visualDuration,e=e8.bounce){let i,n,r,s,o,a,l="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:u,restDelta:h}=l,d=l.keyframes[0],c=l.keyframes[l.keyframes.length-1],p={done:!1,value:d},{stiffness:m,damping:f,mass:v,duration:y,velocity:g,isResolvedFromDuration:x}=function(t){let e={velocity:e8.velocity,stiffness:e8.stiffness,damping:e8.damping,mass:e8.mass,isResolvedFromDuration:!1,...t};if(!ii(t,ie)&&ii(t,it))if(e.velocity=0,t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,r=2*(0,e3.q)(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:e8.mass,stiffness:n,damping:r}}else{let i=function({duration:t=e8.duration,bounce:e=e8.bounce,velocity:i=e8.velocity,mass:n=e8.mass}){let r,s;(0,V.$)(t<=to(e8.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=(0,e3.q)(e8.minDamping,e8.maxDamping,o),t=(0,e3.q)(e8.minDuration,e8.maxDuration,t/1e3),o<1?(r=e=>{let n=e*o,r=n*t;return .001-(n-i)/e7(e,o)*Math.exp(-r)},s=e=>{let n=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-n),l=e7(Math.pow(e,2),o);return(n*i+i-s)*a*(-r(e)+.001>0?-1:1)/l}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(r,s,5/t);if(t=to(t),isNaN(a))return{stiffness:e8.stiffness,damping:e8.damping,duration:t};{let e=Math.pow(a,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}({...t,velocity:0});(e={...e,...i,mass:e8.mass}).isResolvedFromDuration=!0}return e}({...l,velocity:-((l.velocity||0)/1e3)}),w=g||0,T=f/(2*Math.sqrt(m*v)),S=c-d,P=Math.sqrt(m/v)/1e3,b=5>Math.abs(S);if(u||(u=b?e8.restSpeed.granular:e8.restSpeed.default),h||(h=b?e8.restDelta.granular:e8.restDelta.default),T<1)r=e7(P,T),s=(w+T*P*S)/r,i=t=>c-Math.exp(-T*P*t)*(s*Math.sin(r*t)+S*Math.cos(r*t)),o=T*P*s+S*r,a=T*P*S-s*r,n=t=>Math.exp(-T*P*t)*(o*Math.sin(r*t)+a*Math.cos(r*t));else if(1===T){i=t=>c-Math.exp(-P*t)*(S+(w+P*S)*t);let t=w+P*S;n=e=>Math.exp(-P*e)*(P*t*e-w)}else{let t=P*Math.sqrt(T*T-1);i=e=>{let i=Math.exp(-T*P*e),n=Math.min(t*e,300);return c-i*((w+T*P*S)*Math.sinh(n)+t*S*Math.cosh(n))/t};let e=(w+T*P*S)/t,r=T*P*e-S*t,s=T*P*S-e*t;n=e=>{let i=Math.exp(-T*P*e),n=Math.min(t*e,300);return i*(r*Math.sinh(n)+s*Math.cosh(n))}}let k={calculatedDuration:x&&y||null,velocity:t=>to(n(t)),next:t=>{if(!x&&T<1){let e=Math.exp(-T*P*t),i=Math.sin(r*t),n=Math.cos(r*t),l=c-e*(s*i+S*n);return p.done=Math.abs(to(e*(o*i+a*n)))<=u&&Math.abs(c-l)<=h,p.value=p.done?c:l,p}let e=i(t);return x?p.done=t>=y:p.done=Math.abs(to(n(t)))<=u&&Math.abs(c-e)<=h,p.value=p.done?c:e,p},toString:()=>{let t=Math.min(e6(k),2e4),e=tg(e=>k.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return k}ir.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),r=Math.min(e6(n),2e4);return{type:"keyframes",ease:t=>n.next(r*t).value/e,duration:r/1e3}}(t,100,ir);return t.ease=e.ease,t.duration=to(e.duration),t.type="keyframes",t};var is=i(45242);function io(t,e,i){let n=Math.max(e-5,0);return(0,is.f)(i-t(n),e-n)}
1function ia({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let d,c,p=t[0],m={done:!1,value:p},f=i*e,v=p+f,y=void 0===o?v:o(v);y!==v&&(f=y-p);let g=t=>-f*Math.exp(-t/n),x=t=>y+g(t),w=t=>{let e=g(t),i=x(t);m.done=Math.abs(e)<=u,m.value=m.done?y:i},T=t=>{let e;if(e=m.value,void 0!==a&&e<a||void 0!==l&&e>l){var i;d=t,c=ir({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:io(x,t,m.value),damping:r,stiffness:s,restDelta:u,restSpeed:h})}};return T(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,w(t),T(t)),void 0!==d&&t>=d)?c.next(t-d):(e||w(t),m)}}}let il=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function iu(t,e,i,n){return t===e&&i===n?tl.l:r=>0===r||1===r?r:il(function(t,e,i,n,r){let s,o,a=0;do(s=il(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o}(r,0,1,t,i),e,n)}let ih=iu(.42,0,1,1),id=iu(0,0,.58,1),ic=iu(.42,0,.58,1),ip=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,im=t=>e=>1-t(1-e),iv=iu(.33,1.53,.69,.99),iy=im(iv),ig=ip(iy),ix=t=>t>=1?1:(t*=2)<1?.5*iy(t):.5*(2-Math.pow(2,-10*(t-1))),iw=t=>1-Math.sin(Math.acos(t)),iT=im(iw),iS=ip(iw),iP={linear:tl.l,easeIn:ih,easeInOut:ic,easeOut:id,circIn:iw,circInOut:iS,circOut:iT,backIn:iy,backInOut:ig,backOut:iv,anticipate:ix},ib=t=>{if(tv(t)){(0,V.V)(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,r]=t;return iu(e,i,n,r)}return"string"==typeof t?((0,V.V)(void 0!==iP[t],`Invalid easing type '${t}'`,"invalid-easing-type"),iP[t]):t};var ik=i(16706),iE=i(96827);function iA({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var r;let s=Array.isArray(n)&&"number"!=typeof n[0]?n.map(ib):ib(n),o={done:!1,value:e[0]},a=(r=i&&i.length===e.length?i:(0,iE.Z)(e),r.map(e=>e*t)),l=(0,ik.G)(a,e,{ease:Array.isArray(s)?s:e.map(()=>s||ic).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=l(e),o.done=e>=t,o)}}let iM={decay:ia,inertia:ia,tween:iA,keyframes:iA,spring:ir};function iV(t){"string"==typeof t.type&&(t.type=iM[t.type])}let iC=t=>t/100;class iD extends tp{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==tk.k.now()&&this.tick(tk.k.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},tm.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;iV(t);let{type:e=iA,repeat:i=0,repeatDelay:n=0,repeatType:r,velocity:s=0}=t,{keyframes:o}=t,a=e||iA;a!==iA&&"number"!=typeof o[0]&&(this.mixKeyframes=(0,e5.F)(iC,(0,e4.j)(o[0],o[1])),o=[0,100]);let l=a({...t,keyframes:o});"mirror"===r&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=e6(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let i,{generator:n,totalDuration:r,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(null===this.startTime)return n.next(0);let{delay:u=0,keyframes:h,repeat:d,repeatType:c,repeatDelay:p,type:m,onUpdate:f,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?y<0:y>r;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let x=this.currentTime,w=n;if(d){let t=Math.min(this.currentTime,r)/a,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===c?(i=1-i,p&&(i-=p/a)):"mirror"===c&&(w=o)),x=(0,e3.q)(0,1,i)*a}g?(this.delayState.value=h[0],i=this.delayState):i=w.next(x),s&&!g&&(i.value=s(i.value));let{done:T}=i;g||null===l||(T=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&T);return S&&m!==ia&&(i.value=tc(h,this.options,v,this.speed)),f&&f(i.value),S&&this.finish(),i}then(t,e){return this.finished.then(t,e)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return this.currentTime/1e3}set time(t){t=to(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;
1if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let e=this.generator.next(t).value;return io(t=>this.generator.next(t).value,t,e)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(tk.k.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=e9,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(tk.k.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,tm.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}let iR={anticipate:ix,backInOut:ig,circInOut:iS};class iL extends tS{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in iR&&(t.ease=iR[t.ease])}(t),iV(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:r,...s}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new iD({...s,autoplay:!1}),a=Math.max(10,tk.k.now()-this.startTime),l=(0,e3.q)(0,10,a-10),u=o.sample(a).value,{name:h}=this.options;r&&h&&tu(r,h,u),e.setWithVelocity(o.sample(Math.max(0,a-l)).value,u,l),o.stop()}}let ij=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(o.f.test(t)||"0"===t)&&!t.startsWith("url("));function iB(t){t.duration=0,t.type="keyframes"}var iF=i(60178);let iO=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,iI=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),i_=(0,iF.p)(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class iW extends tp{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",keyframes:o,name:a,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tk.k.now();let d={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:s,name:a,motionValue:l,element:u,...h},c=u?.KeyframeResolver||tt;this.keyframeResolver=new c(o,(t,e,i)=>this.onKeyframesResolved(t,e,d,!i),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){let r;this.keyframeResolver=void 0;let{name:s,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:h}=i;this.resolvedAt=tk.k.now();let d=!0;!function(t,e,i,n){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=ij(r,e),a=ij(s,e);return(0,V.$)(o===a,`You are trying to animate ${e} from "${r}" to "${s}". "${o?s:r}" is not an animatable value.`,"value-not-animatable"),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||tT(i))&&n)}(t,s,o,a)&&(d=!1,(e1.W.instantAnimations||!l)&&h?.(tc(t,i,e)),t[0]=t[t.length-1],iB(i),i.repeat=0);let c={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},p=d&&!u&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:o,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;
1let{onUpdate:l,transformTemplate:u}=e.owner.getProps();return i_()&&i&&(tP.has(i)||iI.has(i)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&iO.test(t[e]))return!0;return!1}(a))&&("transform"!==i||!u)&&!l&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}(c),m=c.motionValue?.owner?.current;if(p)try{r=new iL({...c,element:m})}catch{r=new iD(c)}else r=new iD(c);r.finished.then(()=>{this.notifyFinished()}).catch(tl.l),this.pendingTimeline&&(this.stopTimeline=r.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=r}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Q=!0,J(),Z(),Q=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let iU={type:"spring",stiffness:500,damping:25,restSpeed:10},iN={type:"keyframes",duration:.8},iG={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},i$=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),iX=(t,e,i,n={},s,o)=>a=>{let l=eJ(n,t)||{},u=l.delay||n.delay||0,{elapsed:h=0}=n;h-=to(u);let d={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-h,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:o?void 0:s};!function(t){for(let e in t)if(!i$.has(e))return!0;return!1}(l)&&Object.assign(d,((t,{keyframes:e})=>e.length>2?iN:r.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:iU:iG)(t,d)),d.duration&&(d.duration=to(d.duration)),d.repeatDelay&&(d.repeatDelay=to(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let c=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(iB(d),0===d.delay&&(c=!0)),(e1.W.instantAnimations||e1.W.skipAnimations||s?.shouldSkipAnimations)&&(c=!0,iB(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,c&&!o&&void 0!==e.get()){let t=tc(d.keyframes,l);if(void 0!==t)return void z.Gt.update(()=>{d.onUpdate(t),d.onComplete()})}return l.isSync?new iD(d):new iW(d)};function iq(t,e,{delay:i=0,transitionOverride:n,type:r}={}){let{transition:s,transitionEnd:o,...a}=e,l=t.getDefaultTransition();s=s?eZ(s,l):l;let u=s?.reduceMotion;n&&(s=n);let h=[],d=r&&t.animationState&&t.animationState.getState()[r];for(let e in a){let n=t.getValue(e,t.latestValues[e]??null),r=a[e];if(void 0===r||d&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(d,e))continue;let o={delay:i,...eJ(s||{},e)},l=n.get();if(void 0!==l&&!n.isAnimating()&&!Array.isArray(r)&&r===l&&!o.velocity){z.Gt.update(()=>n.set(r));continue}let c=!1;if(window.MotionHandoffAnimation){let i=t.props[eN];if(i){let t=window.MotionHandoffAnimation(i,e,z.Gt);null!==t&&(o.startTime=t,c=!0)}}e2(t,e);let p=u??t.shouldReduceMotion;n.start(iX(e,n,r,p&&k.has(e)?{type:!1}:o,t,c));let m=n.animation;m&&h.push(m)}if(o){let e=()=>z.Gt.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:n={},...r}=eQ(t,e)||{};for(let e in r={...r,...i}){var s;let i=e0(s=r[e])?s[s.length-1]||0:s;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,tE.OQ)(i))}}(t,o)});h.length?Promise.all(h).then(e):e()}return h}function iz(t,e,i,n=0,r=1){let s=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*n;return"function"==typeof i?i(s,o):1===r?s*n:a-s*n}function iK(t,e,i={}){let n=eQ(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverride);let s=n?()=>Promise.all(iq(t,n,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=r;
1return function(t,e,i=0,n=0,r=0,s=1,o){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(iK(l,e,{...o,delay:i+("function"==typeof n?0:n)+iz(t.variantChildren,l,n,r,s)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,n,s,o,a,i)}:()=>Promise.resolve(),{when:a}=r;if(!a)return Promise.all([s(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[s,o]:[o,s];return t().then(()=>e())}}let iY=tR.length;function iH(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}let iQ=[...tD].reverse(),iZ=tD.length;function iJ(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function i0(){return{animate:iJ(!0),whileInView:iJ(),whileHover:iJ(),whileTap:iJ(),whileDrag:iJ(),whileFocus:iJ(),exit:iJ()}}class i1{constructor(t){this.isMounted=!1,this.node=t}update(){}}var i2=function(t){function e(t){var i;return(0,eK._)(this,e),i=(0,ez._)(this,e,[t]),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>iK(t,e,i)));else if("string"==typeof e)n=iK(t,e,i);else{let r="function"==typeof e?eQ(t,e,i.custom):e;n=Promise.all(iq(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=i0(),n=!0,r=!1,s=e=>(i,n)=>{let r=eQ(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(r){let{transition:t,transitionEnd:e,...n}=r;i={...i,...n,...e}}return i};function o(o){let{props:a}=t,l=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<iY;t++){let n=tR[t],r=e.props[n];(tC(r)||!1===r)&&(i[n]=r)}return i}(t.parent)||{},u=[],h=new Set,d={},c=1/0;for(let e=0;e<iZ;e++){var p,m;let f=iQ[e],v=i[f],y=void 0!==a[f]?a[f]:l[f],g=tC(y),x=f===o?v.isActive:null;!1===x&&(c=e);let w=y===l[f]&&y!==a[f]&&g;if(w&&(n||r)&&t.manuallyAnimateOnMount&&(w=!1),v.protectedKeys={...d},!v.isActive&&null===x||!y&&!v.prevProp||tV(y)||"boolean"==typeof y)continue;if("exit"===f&&v.isActive&&!0!==x){v.prevResolvedValues&&(d={...d,...v.prevResolvedValues});continue}let T=(p=v.prevProp,"string"==typeof(m=y)?m!==p:!!Array.isArray(m)&&!iH(m,p)),S=T||f===o&&v.isActive&&!w&&g||e>c&&g,P=!1,b=Array.isArray(y)?y:[y],k=b.reduce(s(f),{});!1===x&&(k={});let{prevResolvedValues:E={}}=v,A={...E,...k},M=e=>{S=!0,h.has(e)&&(P=!0,h.delete(e)),v.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in A){let e=k[t],i=E[t];if(!d.hasOwnProperty(t))(e0(e)&&e0(i)?iH(e,i):e===i)?void 0!==e&&h.has(t)?M(t):v.protectedKeys[t]=!0:null!=e?M(t):h.add(t)}v.prevProp=y,v.prevResolvedValues=k,v.isActive&&(d={...d,...k}),(n||r)&&t.blockInitialAnimation&&(S=!1);let V=w&&T,C=!V||P;S&&C&&u.push(...b.map(e=>{let i={type:f};if("string"==typeof e&&(n||r)&&!V&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,r=eQ(n,e);if(n.enteringChildren&&r){let{delayChildren:e}=r.transition||{};i.delay=iz(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(h.size){let e={};if("boolean"!=typeof a.initial){let i=eQ(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}h.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=n??null}),u.push({animation:e})}let f=!!u.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(f=!1),n=!1,r=!1,f?e(u):Promise.resolve()}return{animateChanges:o,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let r=o(e);for(let t in i)i[t].protectedKeys={};return r},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=i0(),r=!0}}}(t)),i}return(0,eH._)(e,t),(0,eY._)(e,[{key:"updateAnimationControlsSubscription",value:function(){var t=this.node.getProps().animate;tV(t)&&(this.unmountControls=t.subscribe(this.node))}},{key:"mount",value:function(){this.updateAnimationControlsSubscription()}},{key:"update",value:function(){this.node.getProps().animate!==(this.node.prevProps||{}).animate&&this.updateAnimationControlsSubscription()}},{key:"unmount",value:function(){var t;this.node.animationState.reset(),null==(t=this.unmountControls)||t.call(this)}}]),e}(i1),i5=0,i3=function(t){function e(){var t;return(0,eK._)(this,e),t=(0,ez._)(this,e,arguments),t.id=i5++,t.isExitComplete=!1,t}return(0,eH._)(e,t),(0,eY._)(e,[{key:"update",value:function(){var t=this;if(this.node.presenceContext){var e=this.node.presenceContext,i=e.isPresent,n=e.onExitComplete,r=(this.node.prevPresenceContext||{}).isPresent;if(this.node.animationState&&i!==r){if(i&&!1===r){if(this.isExitComplete){var s=this.node.getProps(),o=s.initial,a=s.custom;if("string"==typeof o){var l=eQ(this.node,o,a);if(l){l.transition,l.transitionEnd;var u,h=(0,eD._)(l,["transition","transitionEnd"]);for(var d in h)null==(u=this.node.getValue(d))||u.jump(h[d])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}var c=this.node.animationState.setActive("exit",!i);n&&!i&&c.then(function(){t.isExitComplete=!0,n(t.id)})}}}},{key:"mount",value:function(){var t=this.node.presenceContext||{},e=t.register,i=t.onExitComplete;
1i&&i(this.id),e&&(this.unmount=e(this.id))}},{key:"unmount",value:function(){}}]),e}(i1);let i4={x:!1,y:!1};function i9(t){return[t("x"),t("y")]}function i6(t){return t.max-t.min}function i8(t,e,i,n=.5){t.origin=n,t.originPoint=(0,t5.k)(e.min,e.max,t.origin),t.scale=i6(i)/i6(e),t.translate=(0,t5.k)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function i7(t,e,i,n){i8(t.x,e.x,i.x,n?n.originX:void 0),i8(t.y,e.y,i.y,n?n.originY:void 0)}function nt(t,e,i,n=0){t.min=(n?(0,t5.k)(i.min,i.max,n):i.min)+e.min,t.max=t.min+i6(e)}function ne(t,e,i,n=0){let r=n?(0,t5.k)(i.min,i.max,n):i.min;t.min=e.min-r,t.max=t.min+i6(e)}function ni(t,e,i,n){ne(t.x,e.x,i.x,n?.x),ne(t.y,e.y,i.y,n?.y)}let nn=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),nr=new Set(["INPUT","SELECT","TEXTAREA"]);function ns(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}var no=i(90236);let na=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function nl(t){return{point:{x:t.pageX,y:t.pageY}}}function nu(t,e,i,n){return ns(t,e,function(t){return na(t)&&i(t,nl(t))},n)}var nh=function(t){var e=t.current;return e?e.ownerDocument.defaultView:null},nd=function(t,e){return Math.abs(t-e)},nc=new Set(["auto","scroll"]),np=function(){function t(e,i){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=r.transformPagePoint,o=r.contextWindow,a=void 0===o?window:o,l=r.dragSnapToOrigin,u=r.distanceThreshold,h=r.element;if((0,eK._)(this,t),this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=function(t){n.handleScroll(t.target)},this.onWindowScroll=function(){n.handleScroll(window)},this.updatePoint=function(){if(n.lastMoveEvent&&n.lastMoveEventInfo){n.lastRawMoveEventInfo&&(n.lastMoveEventInfo=nm(n.lastRawMoveEventInfo,n.transformPagePoint));var t,e,i=nv(n.lastMoveEventInfo,n.history),r=null!==n.startEvent,s=(t=i.offset,e={x:0,y:0},Math.sqrt(Math.pow(nd(t.x,e.x),2)+Math.pow(nd(t.y,e.y),2))>=n.distanceThreshold);if(r||s){var o=i.point,a=z.uv.timestamp;n.history.push((0,ey._)((0,ev._)({},o),{timestamp:a}));var l=n.handlers,u=l.onStart,h=l.onMove;r||(u&&u(n.lastMoveEvent,i),n.startEvent=n.lastMoveEvent),h&&h(n.lastMoveEvent,i)}}},this.handlePointerMove=function(t,e){n.lastMoveEvent=t,n.lastRawMoveEventInfo=e,n.lastMoveEventInfo=nm(e,n.transformPagePoint),z.Gt.update(n.updatePoint,!0)},this.handlePointerUp=function(t,e){n.end();var i=n.handlers,r=i.onEnd,s=i.onSessionEnd,o=i.resumeAnimation;if((n.dragSnapToOrigin||!n.startEvent)&&o&&o(),n.lastMoveEvent&&n.lastMoveEventInfo){var a=nv("pointercancel"===t.type?n.lastMoveEventInfo:nm(e,n.transformPagePoint),n.history);n.startEvent&&r&&r(t,a),s&&s(t,a)}},na(e)){this.dragSnapToOrigin=void 0!==l&&l,this.handlers=i,this.transformPagePoint=s,this.distanceThreshold=void 0===u?3:u,this.contextWindow=a||window;var d=nm(nl(e),this.transformPagePoint),c=d.point,p=z.uv.timestamp;this.history=[(0,ey._)((0,ev._)({},c),{timestamp:p})];var m=i.onSessionStart;m&&m(e,nv(d,this.history)),this.removeListeners=(0,e5.F)(nu(this.contextWindow,"pointermove",this.handlePointerMove),nu(this.contextWindow,"pointerup",this.handlePointerUp),nu(this.contextWindow,"pointercancel",this.handlePointerUp)),h&&this.startScrollTracking(h)}}return(0,eY._)(t,[{key:"startScrollTracking",value:function(t){for(var e=this,i=t.parentElement;i;){var n=getComputedStyle(i);(nc.has(n.overflowX)||nc.has(n.overflowY))&&this.scrollPositions.set(i,{x:i.scrollLeft,y:i.scrollTop}),i=i.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=function(){window.removeEventListener("scroll",e.onElementScroll,{capture:!0}),window.removeEventListener("scroll",e.onWindowScroll)}}},{key:"handleScroll",value:function(t){var e=this.scrollPositions.get(t);if(e){var i=t===window,n=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},r={x:n.x-e.x,y:n.y-e.y};(0!==r.x||0!==r.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(t,n),z.Gt.update(this.updatePoint,!0))}}},{key:"updateHandlers",value:function(t){this.handlers=t}},{key:"end",value:function(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,z.WG)(this.updatePoint)}}]),t}();function nm(t,e){return e?{point:e(t.point)}:t}function nf(t,e){return{x:t.x-e.x,y:t.y-e.y}}function nv(t,e){var i=t.point;return{point:i,delta:nf(i,ny(e)),offset:nf(i,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};for(var i=t.length-1,n=null,r=ny(t);i>=0&&(n=t[i],!(r.timestamp-n.timestamp>to(.1)));)i--;if(!n)return{x:0,y:0};n===t[0]&&t.length>2&&r.timestamp-n.timestamp>2*to(e)&&(n=t[1]);var s=(r.timestamp-n.timestamp)/1e3;if(0===s)return{x:0,y:0};var o={x:(r.x-n.x)/s,y:(r.y-n.y)/s}
1;return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function ny(t){return t[t.length-1]}var ng=i(91225);function nx(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 nw(t,e){var i,n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&(n=(i=[r,n])[0],r=i[1]),{min:n,max:r}}function nT(t,e,i){return{min:nS(t,e),max:nS(t,i)}}function nS(t,e){return"number"==typeof t?t:t[e]||0}var nP=new WeakMap,nb=function(){function t(e){(0,eK._)(this,t),this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=P(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}return(0,eY._)(t,[{key:"start",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i.snapToCursor,r=void 0!==n&&n,s=i.distanceThreshold,o=this.visualElement.presenceContext;if(!o||!1!==o.isPresent){var a=this.getProps().dragSnapToOrigin;this.panSession=new np(t,{onSessionStart:function(t){r&&e.snapToCursor(nl(t).point),e.stopAnimation()},onStart:function(t,i){var n=e.getProps(),r=n.drag,s=n.dragPropagation,o=n.onDragStart;if(!r||s||(e.openDragLock&&e.openDragLock(),e.openDragLock=function(t){if("x"===t||"y"===t)if(i4[t])return null;else return i4[t]=!0,()=>{i4[t]=!1};return i4.x||i4.y?null:(i4.x=i4.y=!0,()=>{i4.x=i4.y=!1})}(r),e.openDragLock)){e.latestPointerEvent=t,e.latestPanInfo=i,e.isDragging=!0,e.currentDirection=null,e.resolveConstraints(),e.visualElement.projection&&(e.visualElement.projection.isAnimationBlocked=!0,e.visualElement.projection.target=void 0),i9(function(t){var i=e.getAxisMotionValue(t).get()||0;if(f.KN.test(i)){var n=e.visualElement.projection;if(n&&n.layout){var r=n.layout.layoutBox[t];r&&(i=i6(r)*(parseFloat(i)/100))}}e.originPoint[t]=i}),o&&z.Gt.update(function(){return o(t,i)},!1,!0),e2(e.visualElement,"transform");var a=e.visualElement.animationState;a&&a.setActive("whileDrag",!0)}},onMove:function(t,i){e.latestPointerEvent=t,e.latestPanInfo=i;var n=e.getProps(),r=n.dragPropagation,s=n.dragDirectionLock,o=n.onDirectionLock,a=n.onDrag;if(r||e.openDragLock){var l=i.offset;if(s&&null===e.currentDirection){e.currentDirection=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(l),null!==e.currentDirection&&o&&o(e.currentDirection);return}e.updateAxis("x",i.point,l),e.updateAxis("y",i.point,l),e.visualElement.render(),a&&z.Gt.update(function(){return a(t,i)},!1,!0)}},onSessionEnd:function(t,i){e.latestPointerEvent=t,e.latestPanInfo=i,e.stop(t,i),e.latestPointerEvent=null,e.latestPanInfo=null},resumeAnimation:function(){(e.getProps().dragSnapToOrigin||e.constraints)&&e.startAnimation({x:0,y:0})}},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:a,distanceThreshold:s,contextWindow:nh(this.visualElement),element:this.visualElement.current})}}},{key:"stop",value:function(t,e){var i=t||this.latestPointerEvent,n=e||this.latestPanInfo,r=this.isDragging;if(this.cancel(),r&&n&&i){var s=n.velocity;this.startAnimation(s);var o=this.getProps().onDragEnd;o&&z.Gt.postRender(function(){return o(i,n)})}}},{key:"cancel",value:function(){this.isDragging=!1;var t=this.visualElement,e=t.projection,i=t.animationState;e&&(e.isAnimationBlocked=!1),this.endPanSession(),!this.getProps().dragPropagation&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),i&&i.setActive("whileDrag",!1)}},{key:"endPanSession",value:function(){this.panSession&&this.panSession.end(),this.panSession=void 0}},{key:"updateAxis",value:function(t,e,i){var n=this.getProps().drag;if(i&&nE(t,n,this.currentDirection)){var r,s,o,a,l,u=this.getAxisMotionValue(t),h=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=h,s=this.constraints[t],o=this.elastic[t],a=s.min,l=s.max,void 0!==a&&r<a?r=o?(0,t5.k)(a,r,o.min):Math.max(r,a):void 0!==l&&r>l&&(r=o?(0,t5.k)(l,r,o.max):Math.min(r,l)),h=r),u.set(h)}}},{key:"resolveConstraints",value:function(){var t,e,i,n,r,s,o=this,a=this.getProps(),l=a.dragConstraints,u=a.dragElastic,h=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(s=this.visualElement.projection)?void 0:s.layout,d=this.constraints;l&&e$(l)?this.constraints||(this.constraints=this.resolveRefConstraints()):l&&h?this.constraints=(t=h.layoutBox,e=l.top,i=l.left,n=l.bottom,r=l.right,{x:nx(t.x,i,r),y:nx(t.y,e,n)}):this.constraints=!1,this.elastic=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.35;return!1===t?t=0:!0===t&&(t=.35),{x:nT(t,"left","right"),y:nT(t,"top","bottom")}}(u),d!==this.constraints&&!e$(l)&&h&&this.constraints&&!this.hasMutatedConstraints&&i9(function(t){var e,i,n;!1!==o.constraints&&o.getAxisMotionValue(t)&&(o.constraints[t]=(e=h.layoutBox[t],i=o.constraints[t],n={},void 0!==i.min&&(n.min=i.min-e.min),void 0!==i.max&&(n.max=i.max-e.min),n))})}},{key:"resolveRefConstraints",value:function(){var t,e=this.getProps(),i=e.dragConstraints,n=e.onMeasureDragConstraints;if(!i||!e$(i))return!1;var r=i.current;(0,V.V)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");var s=this.visualElement.projection;if(!s||!s.layout)return!1;
1var o=function(t,e,i){let n=ed(t,i),{scroll:r}=e;return r&&(ea(n.x,r.offset.x),ea(n.y,r.offset.y)),n}(r,s.root,this.visualElement.getTransformPagePoint()),a=(t=s.layout.layoutBox,{x:nw(t.x,o.x),y:nw(t.y,o.y)});if(n){var l=n(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(a));this.hasMutatedConstraints=!!l,l&&(a=t7(l))}return a}},{key:"startAnimation",value:function(t){var e=this,i=this.getProps(),n=i.drag,r=i.dragMomentum,s=i.dragElastic,o=i.dragTransition,a=i.dragSnapToOrigin,l=i.onDragTransitionEnd,u=this.constraints||{};return Promise.all(i9(function(i){if(nE(i,n,e.currentDirection)){var l=u&&u[i]||{};(!0===a||a===i)&&(l={min:0,max:0});var h=(0,ev._)({type:"inertia",velocity:r?t[i]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10},o,l);return e.startAxisValueAnimation(i,h)}})).then(l)}},{key:"startAxisValueAnimation",value:function(t,e){var i=this.getAxisMotionValue(t);return e2(this.visualElement,t),i.start(iX(t,i,0,e,this.visualElement,!1))}},{key:"stopAnimation",value:function(){var t=this;i9(function(e){return t.getAxisMotionValue(e).stop()})}},{key:"getAxisMotionValue",value:function(t){var e="_drag".concat(t.toUpperCase()),i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}},{key:"snapToCursor",value:function(t){var e=this;i9(function(i){if(nE(i,e.getProps().drag,e.currentDirection)){var n=e.visualElement.projection,r=e.getAxisMotionValue(i);if(n&&n.layout){var s=n.layout.layoutBox[i],o=s.min,a=s.max,l=r.get()||0;r.set(t[i]-(0,t5.k)(o,a,.5)+l)}}})}},{key:"scalePositionWithinConstraints",value:function(){var t=this;if(this.visualElement.current){var e=this.getProps(),i=e.drag,n=e.dragConstraints,r=this.visualElement.projection;if(e$(n)&&r&&this.constraints){this.stopAnimation();var s={x:0,y:0};i9(function(e){var i=t.getAxisMotionValue(e);if(i&&!1!==t.constraints){var n,r,o,a,l,u=i.get();s[e]=(n={min:u,max:u},r=t.constraints[e],o=.5,a=i6(n),(l=i6(r))>a?o=(0,ng.q)(r.min,r.max-a,n.min):a>l&&(o=(0,ng.q)(n.min,n.max-l,r.min)),(0,e3.q)(0,1,o))}});var o=this.visualElement.getProps().transformTemplate;this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),i9(function(e){if(nE(e,i,null)){var n=t.getAxisMotionValue(e),r=t.constraints[e],o=r.min,a=r.max;n.set((0,t5.k)(o,a,s[e]))}}),this.visualElement.render()}}}},{key:"addListeners",value:function(){var t,e=this;if(this.visualElement.current){nP.set(this.visualElement,this);var i=this.visualElement.current,n=nu(i,"pointerdown",function(t){var n=e.getProps(),r=n.drag,s=n.dragListener,o=t.target,a=o!==i&&(nr.has(o.tagName)||!0===o.isContentEditable);r&&(void 0===s||s)&&!a&&e.start(t)}),r=function(){var n,r,s,o,a,l=e.getProps().dragConstraints;e$(l)&&l.current&&(e.constraints=e.resolveRefConstraints(),t||(n=i,r=l.current,s=function(){return e.scalePositionWithinConstraints()},o=(0,no.X)(n,nk(s)),a=(0,no.X)(r,nk(s)),t=function(){o(),a()}))},s=this.visualElement.projection,o=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),z.Gt.read(r);var a=ns(window,"resize",function(){return e.scalePositionWithinConstraints()}),l=s.addEventListener("didUpdate",function(t){var i=t.delta,n=t.hasLayoutChanged;e.isDragging&&n&&(i9(function(t){var n=e.getAxisMotionValue(t);n&&(e.originPoint[t]+=i[t].translate,n.set(n.get()+i[t].translate))}),e.visualElement.render())});return function(){a(),n(),o(),l&&l(),t&&t()}}}},{key:"getProps",value:function(){var t=this.visualElement.getProps(),e=t.drag,i=t.dragDirectionLock,n=t.dragPropagation,r=t.dragConstraints,s=t.dragElastic,o=t.dragMomentum;return(0,ey._)((0,ev._)({},t),{drag:void 0!==e&&e,dragDirectionLock:void 0!==i&&i,dragPropagation:void 0!==n&&n,dragConstraints:void 0!==r&&r,dragElastic:void 0===s?.35:s,dragMomentum:void 0===o||o})}}]),t}();function nk(t){var e=!0;return function(){if(e){e=!1;return}t()}}function nE(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}var nA=function(t){function e(t){var i;return(0,eK._)(this,e),(i=(0,ez._)(this,e,[t])).removeGroupControls=tl.l,i.removeListeners=tl.l,i.controls=new nb(t),i}return(0,eH._)(e,t),(0,eY._)(e,[{key:"mount",value:function(){var t=this.node.getProps().dragControls;t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tl.l}},{key:"update",value:function(){var t=this.node.getProps().dragControls;t!==(this.node.prevProps||{}).dragControls&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}},{key:"unmount",value:function(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}]),e}(i1),nM=function(t){return function(e,i){t&&z.Gt.update(function(){return t(e,i)},!1,!0)}},nV=function(t){function e(){var t;return(0,eK._)(this,e),t=(0,ez._)(this,e,arguments),t.removePointerDownListener=tl.l,t}return(0,eH._)(e,t),(0,eY._)(e,[{key:"onPointerDown",value:function(t){this.session=new np(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nh(this.node)})}},{key:"createPanHandlers",value:function(){var t=this,e=this.node.getProps(),i=e.onPanSessionStart,n=e.onPanStart,r=e.onPan,s=e.onPanEnd;return{onSessionStart:nM(i),onStart:nM(n),onMove:nM(r),onEnd:function(e,i){delete t.session,s&&z.Gt.postRender(function(){return s(e,i)})}}}},{key:"mount",value:function(){var t=this;this.removePointerDownListener=nu(this.node.current,"pointerdown",function(e){return t.onPointerDown(e)})}},{key:"update",value:function(){this.session&&this.session.updateHandlers(this.createPanHandlers())}},{key:"unmount",value:function(){this.removePointerDownListener(),this.session&&this.session.end()}}]),e}(i1),nC=i(22043);let nD={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var nR=i(75601),nL=!1,nj=function(t){function e(){return(0,eK._)(this,e),(0,ez._)(this,e,arguments)}
1return(0,eH._)(e,t),(0,eY._)(e,[{key:"componentDidMount",value:function(){var t=this,e=this.props,i=e.visualElement,n=e.layoutGroup,r=e.switchLayoutGroup,s=e.layoutId,o=i.projection;o&&(n.group&&n.group.add(o),r&&r.register&&s&&r.register(o),nL&&o.root.didUpdate(),o.addEventListener("animationComplete",function(){t.safeToRemove()}),o.setOptions((0,ey._)((0,ev._)({},o.options),{layoutDependency:this.props.layoutDependency,onExitComplete:function(){return t.safeToRemove()}}))),nD.hasEverUpdated=!0}},{key:"getSnapshotBeforeUpdate",value:function(t){var e=this,i=this.props,n=i.layoutDependency,r=i.visualElement,s=i.drag,o=i.isPresent,a=r.projection;return a&&(a.isPresent=o,t.layoutDependency!==n&&a.setOptions((0,ey._)((0,ev._)({},a.options),{layoutDependency:n})),nL=!0,s||t.layoutDependency!==n||void 0===n||t.isPresent!==o?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||z.Gt.postRender(function(){var t=a.getStack();t&&t.members.length||e.safeToRemove()}))),null}},{key:"componentDidUpdate",value:function(){var t=this,e=this.props,i=e.visualElement,n=e.layoutAnchor,r=i.projection;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),tb.postRender(function(){!r.currentAnimation&&r.isLead()&&t.safeToRemove()}))}},{key:"componentWillUnmount",value:function(){var t=this.props,e=t.visualElement,i=t.layoutGroup,n=t.switchLayoutGroup,r=e.projection;nL=!0,r&&(r.scheduleCheckAfterUnmount(),i&&i.group&&i.group.remove(r),n&&n.deregister&&n.deregister(r))}},{key:"safeToRemove",value:function(){var t=this.props.safeToRemove;t&&t()}},{key:"render",value:function(){return null}}]),e}(ep.Component);function nB(t){var e=(0,nC._)((0,nR.xQ)(),2),i=e[0],n=e[1],r=(0,ep.useContext)(ex.L);return(0,eg.jsx)(nj,(0,ey._)((0,ev._)({},t),{layoutGroup:r,switchLayoutGroup:(0,ep.useContext)(eG),isPresent:i,safeToRemove:n}))}var nF=i(29089);let nO=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],nI=nO.length,n_=t=>"string"==typeof t?parseFloat(t):t,nW=t=>"number"==typeof t||f.px.test(t);function nU(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let nN=n$(0,.5,iT),nG=n$(.5,.95,tl.l);function n$(t,e,i){return n=>n<t?0:n>e?1:i((0,ng.q)(t,e,n))}function nX(t,e){t.min=e.min,t.max=e.max}function nq(t,e){nX(t.x,e.x),nX(t.y,e.y)}function nz(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function nK(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function nY(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(f.KN.test(e)&&(e=parseFloat(e),e=(0,t5.k)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,t5.k)(s.min,s.max,n);t===s&&(a-=e),t.min=nK(t.min,e,i,a,r),t.max=nK(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let nH=["x","scaleX","originX"],nQ=["y","scaleY","originY"];function nZ(t,e,i,n){nY(t.x,e,nH,i?i.x:void 0,n?n.x:void 0),nY(t.y,e,nQ,i?i.y:void 0,n?n.y:void 0)}function nJ(t){return 0===t.translate&&1===t.scale}function n0(t){return nJ(t.x)&&nJ(t.y)}function n1(t,e){return t.min===e.min&&t.max===e.max}function n2(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function n5(t,e){return n2(t.x,e.x)&&n2(t.y,e.y)}function n3(t){return i6(t.x)/i6(t.y)}function n4(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var n9=i(16105);class n6{constructor(){this.members=[]}add(t){(0,n9.Kq)(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let n=i.instance;n&&!1!==n.isConnected||i.snapshot||((0,n9.Ai)(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if((0,n9.Ai)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:n}=i.options,{layoutDependency:r}=t.options;(void 0===n||n!==r)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isU
1pdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let n8=(t,e)=>t.depth-e.depth;class n7{constructor(){this.children=[],this.isDirty=!1}add(t){(0,n9.Kq)(this.children,t),this.isDirty=!0}remove(t){(0,n9.Ai)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(n8),this.isDirty=!1,this.children.forEach(t)}}let rt={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},re=["","X","Y","Z"],ri=0;function rn(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function rr({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=e?.()){this.id=ri++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,tf.Q.value&&(rt.nodes=rt.calculatedTargetDeltas=rt.calculatedProjections=0),this.nodes.forEach(ra),this.nodes.forEach(rv),this.nodes.forEach(ry),this.nodes.forEach(rl),tf.Q.addProjectionMetrics&&tf.Q.addProjectionMetrics(rt)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new n7)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new ta.v),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=(0,nF.x)(e)&&(!(0,nF.x)(e)||"svg"!==e.tagName),this.instance=e;let{layoutId:i,layout:n,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i,n=0,r=()=>this.root.updateBlockedByResize=!1;z.Gt.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;t!==n&&(n=t,this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=tk.k.now(),n=({timestamp:e})=>{let r=e-i;r>=250&&((0,z.WG)(n),t(r-250))};return z.Gt.setup(n,!0),()=>(0,z.WG)(n)}(r,250),nD.hasAnimatedSinceResize&&(nD.hasAnimatedSinceResize=!1,this.nodes.forEach(rf)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&r&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||r.getDefaultTransition()||rP,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!n5(this.targetLayout,n),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);let e={...eJ(s,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u)}else e||rf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,z.WG)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
1h(rg),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=i.props[eN];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",z.Gt,!(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,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEach(rd),this.nodes.forEach(rh);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(rc);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(rp),this.nodes.forEach(rm),this.nodes.forEach(rs),this.nodes.forEach(ro)):this.nodes.forEach(rc),this.clearAllSnapshots();let t=tk.k.now();z.uv.delta=(0,e3.q)(0,1e3/60,t-z.uv.timestamp),z.uv.timestamp=t,z.uv.isProcessing=!0,z.PP.update.process(z.uv),z.PP.preRender.process(z.uv),z.PP.render.process(z.uv),z.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tb.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ru),this.sharedNodes.forEach(rx)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,z.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){z.Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||i6(this.snapshot.measuredBox.x)||i6(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=P()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!n0(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||ei(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),rE((e=n).x),rE(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return P();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(rM))){let{scroll:t}=this.root;t&&(ea(e.x,t.offset.x),ea(e.y,t.offset.y))}return e}removeElementScroll(t){let e=P();if(nq(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:r,options:s}=n;n!==this.root&&r&&s.layoutScroll&&(r.wasRoot&&nq(e,t),ea(e.x,r.offset.x),ea(e.y,r.offset.y))}return e}applyTransform(t,e=!1,i){let n=i||P();nq(n,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(ea(n.x,-i.scroll.offset.x),ea(n.y,-i.scroll.offset.y)),ei(i.latestValues)&&eh(n,i.latestValues,i.layout?.layoutBox)}return ei(this.latestValues)&&eh(n,this.latestValues,this.layout?.layoutBox),n}removeTransform(t){let e=P();nq(e,t);for(let t=0;t<this.path.length;t++){let i,n=this.path[t];ei(n.latestValues)&&(n.instance&&(ee(n.latestValues)&&n.updateSnapshot(),nq(i=P(),n.measurePageBox())),nZ(e,n.latestValues,n.snapshot?.layoutBox,i))}return ei(this.latestValues)&&nZ(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!==z.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:r}=this.options;if(!this.layout||!(n||r))return;this.resolvedRelativeTargetAt=z.uv.timestamp;let s=this.getClosestProjectingParent();if(s&&this.linkedParentVersion!==s.layoutVersion&&!s.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&s&&s.layout?this.createRelativeTarget(s,this.layout.layoutBox,s.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=P(),this.targetWithTransforms=P()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,a,l,u;this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,l=this.relativeParent.target,u=this.options.layoutAnchor||void 0,nt(o.x,a.x,l.x,u?.x),nt
1(o.y,a.y,l.y,u?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):nq(this.target,this.layout.layoutBox),eo(this.target,this.targetDelta)):nq(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&s&&!!s.resumingFrom==!!this.resumingFrom&&!s.options.layoutScroll&&s.target&&1!==this.animationProgress?this.createRelativeTarget(s,this.target,s.target):this.relativeParent=this.relativeTarget=void 0),tf.Q.value&&rt.calculatedTargetDeltas++}}getClosestProjectingParent(){if(!(!this.parent||ee(this.parent.latestValues)||en(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=P(),this.relativeTargetOrigin=P(),ni(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),nq(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===z.uv.timestamp&&(i=!1),i)return;let{layout:n,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||r))return;nq(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,o=this.treeScale.y;!function(t,e,i,n=!1){let r,s,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(r=i[a]).projectionDelta;let{visualElement:o}=r.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(ea(t.x,-r.scroll.offset.x),ea(t.y,-r.scroll.offset.y)),s&&(e.x*=s.x.scale,e.y*=s.y.scale,eo(t,s)),n&&ei(r.latestValues)&&eh(t,r.latestValues,r.layout?.layoutBox))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=P());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nz(this.prevProjectionDelta.x,this.projectionDelta.x),nz(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),i7(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===s&&this.treeScale.y===o&&n4(this.projectionDelta.x,this.prevProjectionDelta.x)&&n4(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),tf.Q.value&&rt.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=T(),this.projectionDelta=T(),this.projectionDeltaWithTransform=T()}setAnimationOrigin(t,e=!1){let i,n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},o=T();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=P(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,d=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(rS));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(rw(o.x,t.x,n),rw(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,p,m,v,y;ni(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),p=this.relativeTarget,m=this.relativeTargetOrigin,v=a,y=n,rT(p.x,m.x,v.x,y),rT(p.y,m.y,v.y,y),i&&(u=this.relativeTarget,c=i,n1(u.x,c.x)&&n1(u.y,c.y))&&(this.isProjectionDirty=!1),i||(i=P()),nq(i,this.relativeTarget)}
1l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=(0,t5.k)(0,i.opacity??1,nN(n)),t.opacityExit=(0,t5.k)(e.opacity??1,0,nG(n))):s&&(t.opacity=(0,t5.k)(e.opacity??1,i.opacity??1,n));for(let r=0;r<nI;r++){let s=nO[r],o=nU(e,s),a=nU(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||nW(o)===nW(a)?(t[s]=Math.max((0,t5.k)(n_(o),n_(a),n),0),(f.KN.test(a)||f.KN.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,t5.k)(e.rotate||0,i.rotate||0,n))}(s,r,this.latestValues,n,d,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,z.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=z.Gt.update(()=>{nD.hasAnimatedSinceResize=!0,tm.layout++,this.motionValue||(this.motionValue=(0,tE.OQ)(0)),this.motionValue.jump(0,!1),this.currentAnimation=function(t,e,i){let n=b(t)?t:(0,tE.OQ)(t);return n.start(iX("",n,e,i)),n.animation}(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{tm.layout--},onComplete:()=>{tm.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&rA(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||P();let e=i6(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=i6(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}nq(e,i),eh(e,r),i7(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new n6),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
1return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&rn("z",t,n,this.animationValues);for(let e=0;e<re.length;e++)rn(`rotate${re[e]}`,t,n,this.animationValues),rn(`skew${re[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=eR(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=eR(e?.pointerEvents)||""),this.hasProjected&&!ei(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let r=n.animationValues||n.latestValues;this.applyTransformsToTarget();let s=function(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y,o=i?.z||0;if((r||s||o)&&(n=`translate3d(${r}px, ${s}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:s,skewX:o,skewY:a}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),r&&(n+=`rotateX(${r}deg) `),s&&(n+=`rotateY(${s}deg) `),o&&(n+=`skewX(${o}deg) `),a&&(n+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);i&&(s=i(r,s)),t.transform=s;let{x:o,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,n.animationValues?t.opacity=n===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:t.opacity=n===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,t3){if(void 0===r[e])continue;let{correct:i,applyTo:o,isCSSVariable:a}=t3[e],l="none"===s?r[e]:i(r[e],n);if(o){let e=o.length;for(let i=0;i<e;i++)t[o[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?eR(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(rh),this.root.sharedNodes.clear()}}}function rs(t){t.updateLayout()}function ro(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:r}=t.options,s=e.source!==t.layout.source;if("size"===r)i9(t=>{let n=s?e.measuredBox[t]:e.layoutBox[t],r=i6(n);n.min=i[t].min,n.max=n.min+r});else if("x"===r||"y"===r){let t="x"===r?"y":"x";nX(s?e.measuredBox[t]:e.layoutBox[t],i[t])}else rA(r,e.layoutBox,i)&&i9(n=>{let r=s?e.measuredBox[n]:e.layoutBox[n],o=i6(i[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=T();i7(o,i,e.layoutBox);let a=T();s?i7(a,t.applyTransform(n,!0),e.measuredBox):i7(a,i,e.layoutBox);let l=!n0(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=t.options.layoutAnchor||void 0,a=P();ni(a,e.layoutBox,r.layoutBox,o);let l=P();ni(l,i,s.layoutBox,o),n5(a,l)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=a,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function ra(t){tf.Q.value&&rt.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 rl(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ru(t){t.clearSnapshot()}function rh(t){t.clearMeasurements()}function rd(t){t.isLayoutDirty=!0,t.updateLayout()}function rc(t){t.isLayoutDirty=!1}function rp(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function rm(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function rf(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function rv(t){t.resolveTargetDelta()}function ry(t){t.calcProjection()}function rg(t){t.resetSkewAndRotation()}function rx(t){t.removeLeadSnapshot()}function rw(t,e,i){t.translate=(0,t5.k)(e.translate,0,i),t.scale=(0,t5.k)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function rT(t,e,i,n){t.min=(0,t5.k)(e.min,i.min,n),t.max=(0,t5.k)(e.max,i.max,n)}function rS(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let rP={duration:.45,ease:[.4,0,.1,1]},rb=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),rk=rb("applewebkit/")&&!rb("chrome/")?Math.round:tl.l;function rE(t){t.min=rk(t.min),t.max=rk(t.max)}function rA(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(n3(e)-n3(i)))}function rM(t){return t!==t.root&&t.scroll?.wasRoot}let rV=rr({attachResizeListener:(t,e)=>ns(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),rC={current:void 0},rD=rr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!rC.current){let t=new rV({});t.mount(window),t.setOptions({layoutScroll:!0}),rC.current=t}return rC.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});var rR=i(38561);function rL(t,e){let i=(0,rR.K)(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function rj(t,e,i){var n=t.props;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);var r=n["onHover"+i];r&&z.Gt.postRender(function(){return r(e,nl(e))})}var rB=function(t){function e(){return(0,eK._)(this,e),(0,ez._)(this,e,arguments)}return(0,eH._)(e,t),(0,eY._)(e,[{key:"mount",value:function(){var t=this,e=this.node.current;e&&(this.unmount=function(t,e,i={}){let[n,r,s]=rL(t,i);return n.forEach(t=>{let i,n=!1,s=!1,o=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},a=t=>{n=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),s&&(s=!1,o(t))},l=t=>{if("touch"!==t.pointerType){if(n){s=!0;return}o(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||i4.x||i4.y)return;s=!1;let o=e(t,n);"function"==typeof o&&(i=o,t.addEventListener("pointerleave",l,r))},r),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",a,r)},r)}),s}(e,function(e,i){return rj(t.node,i,"Start"),function(e){return rj(t.node,e,"End")}}))}},{key:"unmount",value:function(){}}]),e}(i1),rF=function(t){function e(){var t;return(0,eK._)(this,e),t=(0,ez._)(this,e,arguments),t.isActive=!1,t}return(0,eH._)(e,t),(0,eY._)(e,[{key:"onFocus",value:function(){var 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)}},{key:"onBlur",value:function(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}},{key:"mount",value:function(){var t=this;this.unmount=(0,e5.F)(ns(this.node.current,"focus",function(){return t.onFocus()}),ns(this.node.current,"blur",function(){return t.onBlur()}))}},{key:"unmount",value:function(){}}]),e}(i1),rO=i(79703),rI=i(81402);let r_=(t,e)=>!!e&&(t===e||r_(t,e.parentElement)),rW=new WeakSet;function rU(t){return e=>{"Enter"===e.key&&t(e)}}function rN(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function rG(t){return na(t)&&!(i4.x||i4.y)}let r$=new WeakSet;function rX(t,e,i){var n=t.props;if(!(0,rO._)(t.current,HTMLButtonElement)||!t.current.disabled){t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);var r=n["onTap"+("End"===i?"":i)];r&&z.Gt.postRender(function(){return r(e,nl(e))})}}var rq=function(t){function e(){return(0,eK._)(this,e),(0,ez._)(this,e,arguments)}return(0,eH._)(e,t),(0,eY._)(e,[{key:"mount",value:function(){var t=this,e=this.node.current;if(e){var i=this.node.props,n=i.globalTapTarget,r=i.propagate;
1this.unmount=function(t,e,i={}){let[n,r,s]=rL(t,i),o=t=>{let n=t.currentTarget;if(!rG(t)||r$.has(t))return;rW.add(n),i.stopPropagation&&r$.add(t);let s=e(n,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),rW.has(n)&&rW.delete(n),rG(t)&&"function"==typeof s&&s(t,{success:e})},a=t=>{o(t,n===window||n===document||i.useGlobalTarget||r_(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};return n.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",o,r),(0,rI.s)(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=rU(()=>{if(rW.has(i))return;rN(i,"down");let t=rU(()=>{rN(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>rN(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,r)),nn.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),s}(e,function(e,i){return rX(t.node,i,"Start"),function(e,i){var n=i.success;return rX(t.node,e,n?"End":"Cancel")}},{useGlobalTarget:n,stopPropagation:(null==r?void 0:r.tap)===!1})}}},{key:"unmount",value:function(){}}]),e}(i1),rz=new WeakMap,rK=new WeakMap,rY=function(t){var e=rz.get(t.target);e&&e(t)},rH=function(t){t.forEach(rY)},rQ={some:0,all:1},rZ=function(t){function e(){var t;return(0,eK._)(this,e),t=(0,ez._)(this,e,arguments),t.hasEnteredView=!1,t.isInView=!1,t}return(0,eH._)(e,t),(0,eY._)(e,[{key:"startObserver",value:function(){var t,e,i,n,r,s,o,a,l,u=this;null==(l=this.stopObserver)||l.call(this);var h=this.node.getProps().viewport,d=void 0===h?{}:h,c=d.root,p=d.margin,m=d.amount,f=void 0===m?"some":m,v=d.once,y={root:c?c.current:void 0,rootMargin:p,threshold:"number"==typeof f?f:rQ[f]};this.stopObserver=(t=this.node.current,e=function(t){var e=t.isIntersecting;if(u.isInView!==e){if(u.isInView=e,v&&!e&&u.hasEnteredView)return;e&&(u.hasEnteredView=!0),u.node.animationState&&u.node.animationState.setActive("whileInView",e);var i=u.node.getProps(),n=i.onViewportEnter,r=i.onViewportLeave,s=e?n:r;s&&s(t)}},i=y.root,n=(0,eD._)(y,["root"]),r=i||document,rK.has(r)||rK.set(r,{}),(s=rK.get(r))[o=JSON.stringify(n)]||(s[o]=new IntersectionObserver(rH,(0,ev._)({root:i},n))),a=s[o],rz.set(t,e),a.observe(t),function(){rz.delete(t),a.unobserve(t)})}},{key:"mount",value:function(){this.startObserver()}},{key:"update",value:function(){if("undefined"!=typeof IntersectionObserver){var t=this.node;["amount","margin","root"].some(function(t){var e=t.viewport,i=void 0===e?{}:e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.viewport,s=void 0===r?{}:r;return function(t){return i[t]!==s[t]}}(t.props,t.prevProps))&&this.startObserver()}}},{key:"unmount",value:function(){var t;null==(t=this.stopObserver)||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}]),e}(i1),rJ=function(t,e){if("undefined"==typeof Proxy)return eq;var i=new Map,n=function(i,n){return eq(i,n,t,e)};return new Proxy(function(t,e){return n(t,e)},{get:function(r,s){return"create"===s?n:(i.has(s)||i.set(s,eq(s,void 0,t,e)),i.get(s))}})}((0,ev._)({},{animation:{Feature:i2},exit:{Feature:i3}},{inView:{Feature:rZ},tap:{Feature:rq},focus:{Feature:rF},hover:{Feature:rB}},{pan:{Feature:nV},drag:{Feature:nA,ProjectionNode:rD,MeasureLayout:nB}},{layout:{ProjectionNode:rD,MeasureLayout:nB}}),function(t,e){var i;return(null!=(i=e.isSVG)?i:ef(t))?new t8(e):new ec(e,{allowProjection:t!==ep.Fragment})})},2066:(t,e,i)=>{let n;function r(){return"undefined"!=typeof window}function s(t){return l(t)?(t.nodeName||"").toLowerCase():"#document"}function o(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function a(t){var e;return null==(e=(l(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function l(t){return!!r()&&(t instanceof Node||t instanceof o(t).Node)}function u(t){return!!r()&&(t instanceof Element||t instanceof o(t).Element)}function h(t){return!!r()&&(t instanceof HTMLElement||t instanceof o(t).HTMLElement)}function d(t){return!!r()&&"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof o(t).ShadowRoot)}function c(t){let{overflow:e,overflowX:i,overflowY:n,display:r}=S(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+i)&&"inline"!==r&&"contents"!==r}function p(t){return/^(table|td|th)$/.test(s(t))}function m(t){try{if(t.matches(":popover-open"))return!0}catch(t){}try{return t.matches(":modal")}catch(t){return!1}}i.d(e,{$4:()=>b,CP:()=>P,L9:()=>S,Ll:()=>l,Lv:()=>p,Ng:()=>d,Tc:()=>w,Tf:()=>m,ZU:()=>c,_m:()=>k,ep:()=>a,eu:()=>T,gJ:()=>x,mq:()=>s,sQ:()=>g,sb:()=>h,v9:()=>function t(e,i,n){var r;void 0===i&&(i=[]),void 0===n&&(n=!0);let s=function t(e){let i=b(e);return T(i)?e.ownerDocument?e.ownerDocument.body:e.body:h(i)&&c(i)?i:t(i)}(e),a=s===(null==(r=e.ownerDocument)?void 0:r.body),l=o(s);if(!a)return i.concat(s,t(s,[],n));{let e=k(l);
1return i.concat(l,l.visualViewport||[],c(s)?s:[],e&&n?t(e):[])}},vq:()=>u,zk:()=>o});let f=/transform|translate|scale|rotate|perspective|filter/,v=/paint|layout|strict|content/,y=t=>!!t&&"none"!==t;function g(t){let e=u(t)?S(t):t;return y(e.transform)||y(e.translate)||y(e.scale)||y(e.rotate)||y(e.perspective)||!w()&&(y(e.backdropFilter)||y(e.filter))||f.test(e.willChange||"")||v.test(e.contain||"")}function x(t){let e=b(t);for(;h(e)&&!T(e);){if(g(e))return e;if(m(e))break;e=b(e)}return null}function w(){return null==n&&(n="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),n}function T(t){return/^(html|body|#document)$/.test(s(t))}function S(t){return o(t).getComputedStyle(t)}function P(t){return u(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function b(t){if("html"===s(t))return t;let e=t.assignedSlot||t.parentNode||d(t)&&t.host||a(t);return d(e)?e.host:e}function k(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}},6500:(t,e,i)=>{i.d(e,{l:()=>n});let n=t=>t},8453:(t,e,i)=>{i.d(e,{v:()=>r});var n=i(16105);class r{constructor(){this.subscriptions=[]}add(t){return(0,n.Kq)(this.subscriptions,t),()=>(0,n.Ai)(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},9150:(t,e,i)=>{i.d(e,{a:()=>n});let n=t=>Math.round(1e5*t)/1e5},15824:(t,e,i)=>{i.d(e,{Uu:()=>s});var n=i(40031);let r="undefined"!=typeof window;function s(){if(n.r.current=!0,r)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>n.O.current=t.matches;t.addEventListener("change",e),e()}else n.O.current=!1}}
1,16105:(t,e,i)=>{function n(t,e){-1===t.indexOf(e)&&t.push(e)}function r(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}i.d(e,{Ai:()=>r,Kq:()=>n})},16706:(t,e,i)=>{i.d(e,{G:()=>h});var n=i(40042),r=i(6500),s=i(23656),o=i(78041),a=i(91225),l=i(48895),u=i(45130);function h(t,e,{clamp:i=!0,ease:d,mixer:c}={}){let p=t.length;if((0,o.V)(p===e.length,"Both input and output ranges must be the same length","range-length"),1===p)return()=>e[0];if(2===p&&e[0]===e[1])return()=>e[1];let m=t[0]===t[1];t[0]>t[p-1]&&(t=[...t].reverse(),e=[...e].reverse());let f=function(t,e,i){let o=[],a=i||n.W.mix||u.j,l=t.length-1;for(let i=0;i<l;i++){let n=a(t[i],t[i+1]);if(e){let t=Array.isArray(e)?e[i]||r.l:e;n=(0,s.F)(t,n)}o.push(n)}return o}(e,d,c),v=f.length,y=i=>{if(m&&i<t[0])return e[0];let n=0;if(v>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let r=(0,a.q)(t[n],t[n+1],i);return f[n](r)};return i?e=>y((0,l.q)(t[0],t[p-1],e)):y}},17389:(t,e,i)=>{i.r(e),i.d(e,{_:()=>n});function n(t,e){if(null==t)return{};var i,n,r=function(t,e){if(null==t)return{};var i,n,r={},s=Object.keys(t);for(n=0;n<s.length;n++)i=s[n],e.indexOf(i)>=0||(r[i]=t[i]);return r}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(n=0;n<s.length;n++)i=s[n],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(t,i)&&(r[i]=t[i])}return r}},21391:(t,e,i)=>{i.d(e,{j4:()=>r,pG:()=>o,rm:()=>l});let n=t=>e=>"string"==typeof e&&e.startsWith(t),r=n("--"),s=n("var(--"),o=t=>!!s(t)&&a.test(t.split("/*")[0].trim()),a=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function l(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}},22039:(t,e,i)=>{i.d(e,{OQ:()=>u,bt:()=>a});var n=i(8453),r=i(45242),s=i(27424),o=i(73934);let a={current:void 0};class l{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=s.k.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=s.k.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 n.v);let i=this.events[t].add(e);return"change"===t?()=>{i(),o.Gt.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){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}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()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return a.current&&a.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=s.k.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,r.f)(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function u(t,e){return new l(t,e)}},23656:(t,e,i)=>{i.d(e,{F:()=>r});let n=(t,e)=>i=>
1e(t(i)),r=(...t)=>t.reduce(n)},23867:(t,e,i)=>{i.d(e,{Q:()=>n});let n={value:null,addProjectionMetrics:null}},23919:(t,e,i)=>{i.d(e,{$:()=>s,q:()=>o});var n=i(24531);let r=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,s=(t,e)=>i=>!!("string"==typeof i&&r.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),o=(t,e,i)=>r=>{if("string"!=typeof r)return r;let[s,o,a,l]=r.match(n.S);return{[t]:parseFloat(s),[e]:parseFloat(o),[i]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},24531:(t,e,i)=>{i.d(e,{S:()=>n});let n=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},24888:(t,e,i)=>{i.d(e,{V:()=>h,f:()=>c});var n=i(55389);let r=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var s=i(24531),o=i(9150);let a="number",l="color",u=/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 h(t){let e=t.toString(),i=[],r={color:[],number:[],var:[]},s=[],o=0,h=e.replace(u,t=>(n.y.test(t)?(r.color.push(o),s.push(l),i.push(n.y.parse(t))):t.startsWith("var(")?(r.var.push(o),s.push("var"),i.push(t)):(r.number.push(o),s.push(a),i.push(parseFloat(t))),++o,"${}")).split("${}");return{values:i,split:h,indexes:r,types:s}}function d({split:t,types:e}){let i=t.length;return r=>{let s="";for(let u=0;u<i;u++)if(s+=t[u],void 0!==r[u]){let t=e[u];t===a?s+=(0,o.a)(r[u]):t===l?s+=n.y.transform(r[u]):s+=r[u]}return s}}let c={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(s.S)?.length||0)+(t.match(r)?.length||0)>0},parse:function(t){return h(t).values},createTransformer:function(t){return d(h(t))},getAnimatableNone:function(t){let e=h(t);return d(e)(e.values.map((t,i)=>{var r;let s;return r=e.split[i],"number"==typeof t?r?.trim().endsWith("/")?t:0:"number"==typeof(s=t)?0:n.y.test(s)?n.y.getAnimatableNone(s):s}))}}},27424:(t,e,i)=>{let n;i.d(e,{k:()=>a});var r=i(40042),s=i(73934);function o(){n=void 0}let a={now:()=>(void 0===n&&a.set(s.uv.isProcessing||r.W.useManualTiming?s.uv.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(o)}}},29089:(t,e,i)=>{i.d(e,{x:()=>r});var n=i(73142);function r(t){return(0,n.G)(t)&&"ownerSVGElement"in t}},31739:(t,e,i)=>{i.d(e,{B:()=>l});var n=i(48895),r=i(37822),s=i(9150),o=i(23919);let a={...r.ai,transform:t=>Math.round((0,n.q)(0,255,t))},l={test:(0,o.$)("rgb","red"),parse:(0,o.q)("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+a.transform(t)+", "+a.transform(e)+", "+a.transform(i)+", "+(0,s.a)(r.X4.transform(n))+")"}},37822:(t,e,i)=>{i.d(e,{X4:()=>s,ai:()=>r,hs:()=>o});var n=i(48895);let r={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},s={...r,transform:t=>(0,n.q)(0,1,t)},o={...r,default:1}},38561:(t,e,i)=>{i.d(e,{K:()=>n});function n(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let n=document;e&&(n=e.current);let r=i?.[t]??n.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t).filter(t=>null!=t)}},39361:(t,e,i)=>{i.d(e,{k:()=>n});let n=(t,e,i)=>t+(e-t)*i},40031:(t,e,i)=>{i.d(e,{O:()=>n,r:()=>r});let n={current:null},r={current:!1}},40042:(t,e,i)=>{i.d(e,{W:()=>n});let n={}},44300:(t,e,i)=>{i.d(e,{I:()=>o});var n=i(40042);let r=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var s=i(23867);function o(t,e){let i=!1,o=!0,a={delta:0,timestamp:0,isProcessing:!1},l=()=>i=!0,u=r.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,r=!1,o=!1,a=new WeakSet,l={delta:0,timestamp:0,isProcessing:!1},u=0;function h(e){a.has(e)&&(d.schedule(e),t()),u++,e(l)}let d={schedule:(t,e=!1,s=!1)=>{let o=s&&r?i:n;return e&&a.add(t),o.add(t),t},cancel:t=>{n.delete(t),a.delete(t)},process:t=>{if(l=t,r){o=!0;return}r=!0;let a=i;i=n,n=a,i.forEach(h),e&&s.Q.value&&s.Q.value.frameloop[e].push(u),u=0,i.clear(),r=!1,o&&(o=!1,d.process(t))}};return d}(l,e?i:void 0),t),{}),{setup:h,read:d,resolveKeyframes:c,preUpdate:p,update:m,preRender:f,render:v,postRender:y}=u,g=()=>{let r=n.W.useManualTiming,s=r?a.timestamp:performance.now();i=!1,r||(a.delta=o?1e3/60:Math.max(Math.min(s-a.timestamp,40),1)),a.timestamp=s,a.isProcessing=!0,h.process(a),d.process(a),c.process(a),p.process(a),m.process(a),f.process(a),v.process(a),y.process(a),a.isProcessing=!1,i&&e&&(o=!1,t(g))};return{schedule:r.reduce((e,n)=>{let r=u[n];return e[n]=(e,n=!1,s=!1)=>(!i&&(i=!0,o=!0,a.isProcessing||t(g)),r.schedule(e,n,s)),e},{}),cancel:t=>{for(let e=0;e<r.length;e++)u[r[e]].cancel(t)},state:a,steps:u}}},44807:(t,e,i)=>{i.d(e,{V:()=>a});var n=i(37822),r=i(92419),s=i(9150),o=i(23919);let a={test:(0,o.$)("hsl","hue"),parse:(0,o.q)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:o=1})=>"hsla("+Math.round(t)+", "+r.KN.transform((0,s.a)(e))+", "+r.KN.transform((0,s.a)(i))+", "+(0,s.a)(n.X4.transform(o))+")"}},45130:(t,e,i)=>{i.d(e,{j:()=>b});var n=i(23656),r=i(78041),s=i(21391),o=i(55389),a=i(24888),l=i(68894),u=i(44807);
1function h(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}var d=i(31739);function c(t,e){return i=>i>0?e:t}var p=i(39361);let m=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},f=[l.u,d.B,u.V];function v(t){let e=f.find(e=>e.test(t));if((0,r.$)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===u.V&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,s=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;r=h(a,n,t+1/3),s=h(a,n,t),o=h(a,n,t-1/3)}else r=s=o=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*o),alpha:n}}(i)),i}let y=(t,e)=>{let i=v(t),n=v(e);if(!i||!n)return c(t,e);let r={...i};return t=>(r.red=m(i.red,n.red,t),r.green=m(i.green,n.green,t),r.blue=m(i.blue,n.blue,t),r.alpha=(0,p.k)(i.alpha,n.alpha,t),d.B.transform(r))},g=new Set(["none","hidden"]);function x(t,e){return i=>(0,p.k)(t,e,i)}function w(t){return"number"==typeof t?x:"string"==typeof t?(0,s.pG)(t)?c:o.y.test(t)?y:P:Array.isArray(t)?T:"object"==typeof t?o.y.test(t)?y:S:c}function T(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>w(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function S(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=w(t[r])(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let P=(t,e)=>{let i=a.f.createTransformer(e),s=(0,a.V)(t),o=(0,a.V)(e);return s.indexes.var.length===o.indexes.var.length&&s.indexes.color.length===o.indexes.color.length&&s.indexes.number.length>=o.indexes.number.length?g.has(t)&&!o.values.length||g.has(e)&&!s.values.length?function(t,e){return g.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):(0,n.F)(T(function(t,e){let i=[],n={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){let s=e.types[r],o=t.indexes[s][n[s]],a=t.values[o]??0;i[r]=a,n[s]++}return i}(s,o),o.values),i):((0,r.$)(!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.`,"complex-values-different"),c(t,e))};function b(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?(0,p.k)(t,e,i):w(t)(t,e)}},45242:(t,e,i)=>{i.d(e,{f:()=>n});function n(t,e){return e?1e3/e*t:0}},46436:(t,e,i)=>{i.d(e,{E:()=>r});var n=i(12115),r="undefined"!=typeof window?n.useLayoutEffect:n.useEffect},48895:(t,e,i)=>{i.d(e,{q:()=>n});let n=(t,e,i)=>i>e?e:i<t?t:i},50955:(t,e,i)=>{i.d(e,{J:()=>s});var n=i(60178);let r={};function s(t,e){let i=(0,n.p)(t);return()=>r[e]??i()}},53127:(t,e,i)=>{i.d(e,{Q:()=>n});var n=(0,i(12115).createContext)({transformPagePoint:function(t){return t},isStatic:!1,reducedMotion:"never"})},55389:(t,e,i)=>{i.d(e,{y:()=>o});var n=i(68894),r=i(44807),s=i(31739);let o={test:t=>s.B.test(t)||n.u.test(t)||r.V.test(t),parse:t=>s.B.test(t)?s.B.parse(t):r.V.test(t)?r.V.parse(t):n.u.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?s.B.transform(t):r.V.transform(t),getAnimatableNone:t=>{let e=o.parse(t);return e.alpha=0,o.transform(e)}}},59686:(t,e,i)=>{i.d(e,{t:()=>n});var n=(0,i(12115).createContext)(null)},60178:(t,e,i)=>{i.d(e,{p:()=>n});function n(t){let e;return()=>(void 0===e&&(e=t()),e)}},60296:(t,e,i)=>{i.d(e,{L:()=>n});var n=(0,i(12115).createContext)({})},64995:(t,e,i)=>{i.d(e,{J:()=>r,d:()=>s});var n=i(50955);let r=(0,n.J)(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),s=(0,n.J)(()=>void 0!==window.ViewTimeline,"viewTimeline")},68894:(t,e,i)=>{i.d(e,{u:()=>r});var n=i(31739);let r={test:(0,i(23919).$)("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:n.B.transform}},73142:(t,e,i)=>{i.d(e,{G:()=>n});function n(t){return"object"==typeof t&&null!==t}},73934:(t,e,i)=>{i.d(e,{Gt:()=>r,PP:()=>a,WG:()=>s,uv:()=>o});var n=i(6500);let{schedule:r,cancel:s,state:o,steps:a}=(0,i(44300).I)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:n.l,!0)},75601:(t,e,i)=>{i.d(e,{xQ:()=>s});var n=i(12115),r=i(59686);function s(){var t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],e=(0,n.useContext)(r.t);if(null===e)return[!0,null];var i=e.isPresent,s=e.onExitComplete,o=e.register,a=(0,n.useId)();(0,n.useEffect)(function(){if(t)return o(a)},[t]);var l=(0,n.useCallback)(function(){return t&&s&&s(a)},[a,s,t]);return!i&&s?[!1,l]:[!0]}}
1,78041:(t,e,i)=>{i.d(e,{$:()=>n,V:()=>r}),i(87358);let n=()=>{},r=()=>{}},81402:(t,e,i)=>{i.d(e,{s:()=>r});var n=i(73142);function r(t){return(0,n.G)(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}},90236:(t,e,i)=>{let n,r;i.d(e,{X:()=>m});var s=i(29089),o=i(38561);let a=new WeakMap,l=(t,e,i)=>(n,r)=>r&&r[0]?r[0][t+"Size"]:(0,s.x)(n)&&"getBBox"in n?n.getBBox()[e]:n[i],u=l("inline","width","offsetWidth"),h=l("block","height","offsetHeight");function d({target:t,borderBoxSize:e}){a.get(t)?.forEach(i=>{i(t,{get width(){return u(t,e)},get height(){return h(t,e)}})})}function c(t){t.forEach(d)}let p=new Set;function m(t,e){return"function"==typeof t?(p.add(t),r||(r=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};p.forEach(e=>e(t))},window.addEventListener("resize",r)),()=>{p.delete(t),p.size||"function"!=typeof r||(window.removeEventListener("resize",r),r=void 0)}):function(t,e){n||"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(c));let i=(0,o.K)(t);return i.forEach(t=>{let i=a.get(t);i||(i=new Set,a.set(t,i)),i.add(e),n?.observe(t)}),()=>{i.forEach(t=>{let i=a.get(t);i?.delete(e),i?.size||n?.unobserve(t)})}}(t,e)}},91225:(t,e,i)=>{i.d(e,{q:()=>n});let n=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n}},92419:(t,e,i)=>{i.d(e,{KN:()=>s,gQ:()=>u,px:()=>o,uj:()=>r,vh:()=>a,vw:()=>l});let n=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),r=n("deg"),s=n("%"),o=n("px"),a=n("vh"),l=n("vw"),u={...s,parse:t=>s.parse(t)/100,transform:t=>s.transform(100*t)}},94416:(t,e,i)=>{i.d(e,{M:()=>r});var n=i(12115);function r(t){var e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},96827:(t,e,i)=>{i.d(e,{Z:()=>s});var n=i(91225),r=i(39361);function s(t){let e=[0];return!function(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let o=(0,n.q)(0,e,s);t.push((0,r.k)(i,1,o))}}(e,t.length-1),e}}}]);

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.