PageSourceSearch

https://geekflare.com/_next/static/chunks/271q89obr8loy.js

js geekflare.com collected 2026-09-24 07:22:41 UTC 147,300 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,58920,88081,t=>{"use strict";let e,i;var n=t.i(43476),s=t.i(71645),r=t.i(38399),o=t.i(3559),a=t.i(78583);let l=(0,t.i(75254).default)("hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);t.s(["Hash",0,l],88081);let u=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],h=new Set([...u,"pathRotation"]);var c=t.i(79444),d=t.i(69577),p=t.i(30677);let m=new Set(["brightness","contrast","saturate","opacity"]);function f(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(p.floatRegex)||[];if(!n)return t;let s=i.replace(n,""),r=+!!m.has(e);return n!==i&&(r*=100),e+"("+r+s+")"}let v=/\b([a-z-]*)\(.*?\)/gu,g={...d.complex,getAnimatableNone:t=>{let e=t.match(v);return e?e.map(f).join(" "):t}},y={...d.complex,getAnimatableNone:t=>{let e=d.complex.parse(t);return d.complex.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}};var x=t.i(76307);let b={...x.number,transform:Math.round};var w=t.i(65091);let S={rotate:w.degrees,pathRotation:w.degrees,rotateX:w.degrees,rotateY:w.degrees,rotateZ:w.degrees,scale:x.scale,scaleX:x.scale,scaleY:x.scale,scaleZ:x.scale,skew:w.degrees,skewX:w.degrees,skewY:w.degrees,distance:w.px,translateX:w.px,translateY:w.px,translateZ:w.px,x:w.px,y:w.px,z:w.px,perspective:w.px,transformPerspective:w.px,opacity:x.alpha,originX:w.progressPercentage,originY:w.progressPercentage,originZ:w.px},T={borderWidth:w.px,borderTopWidth:w.px,borderRightWidth:w.px,borderBottomWidth:w.px,borderLeftWidth:w.px,borderRadius:w.px,borderTopLeftRadius:w.px,borderTopRightRadius:w.px,borderBottomRightRadius:w.px,borderBottomLeftRadius:w.px,width:w.px,maxWidth:w.px,height:w.px,maxHeight:w.px,top:w.px,right:w.px,bottom:w.px,left:w.px,inset:w.px,insetBlock:w.px,insetBlockStart:w.px,insetBlockEnd:w.px,insetInline:w.px,insetInlineStart:w.px,insetInlineEnd:w.px,padding:w.px,paddingTop:w.px,paddingRight:w.px,paddingBottom:w.px,paddingLeft:w.px,paddingBlock:w.px,paddingBlockStart:w.px,paddingBlockEnd:w.px,paddingInline:w.px,paddingInlineStart:w.px,paddingInlineEnd:w.px,margin:w.px,marginTop:w.px,marginRight:w.px,marginBottom:w.px,marginLeft:w.px,marginBlock:w.px,marginBlockStart:w.px,marginBlockEnd:w.px,marginInline:w.px,marginInlineStart:w.px,marginInlineEnd:w.px,fontSize:w.px,backgroundPositionX:w.px,backgroundPositionY:w.px,...S,zIndex:b,fillOpacity:x.alpha,strokeOpacity:x.alpha,numOctaves:b},P={...T,color:c.color,backgroundColor:c.color,outlineColor:c.color,fill:c.color,stroke:c.color,borderColor:c.color,borderTopColor:c.color,borderRightColor:c.color,borderBottomColor:c.color,borderLeftColor:c.color,filter:g,WebkitFilter:g,mask:y,WebkitMask:y},M=t=>P[t],C=()=>({translate:0,scale:1,origin:0,originPoint:0}),A=()=>({x:C(),y:C()}),E=()=>({min:0,max:0}),V=()=>({x:E(),y:E()});var k=t.i(27228);let D=new Set(["width","height","top","left","right","bottom",...u]),R=[x.number,w.px,w.percent,w.degrees,w.vw,w.vh,{test:t=>"auto"===t,parse:t=>t}],j=t=>R.find(e=>e.test(t));var L=t.i(65566),I=t.i(19928);let B=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,F=new Set([g,y]);function O(t,e){let i=M(t);return F.has(i)||(i=d.complex),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let N=t=>180*t/Math.PI,U=t=>z(N(Math.atan2(t[1],t[0]))),W={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:U,rotateZ:U,skewX:t=>N(Math.atan(t[1])),skewY:t=>N(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},z=t=>((t%=360)<0&&(t+=360),t),G=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Y=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),H={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:G,scaleY:Y,scale:t=>(G(t)+Y(t))/2,rotateX:t=>z(N(Math.atan2(t[6],t[5]))),rotateY:t=>z(N(Math.atan2(-t[2],t[0]))),rotateZ:U,rotate:U,skewX:t=>N(Math.atan(t[4])),skewY:t=>N(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function X(t){return+!!t.includes("scale")}function _(t,e){let i,n;if(!t||"none"===t)return X(e);let s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(s)i=H,n=s;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=W,n=e}if(!n)return X(e);let r=i[e],o=n[1].split(",").map(K);return"function"==typeof r?r(o):o[r]}function K(t){return parseFloat(t.trim())}let q=t=>t===x.number||t===w.px,Z=new Set(["x","y","z"]),$=u.filter(t=>!Z.has(t)),J=new Set(["bottom","right"]);function Q(t,e,i,n,s,r){let o=parseFloat(t);if(!isNaN(o))return o;let{min:a,max:l}=e()[i],u=l-a;return"border-box"===r?u:u-parseFloat(n)-parseFloat(s)}let tt={width:(t,e)=>{let{width:i,paddingLeft:n="0",paddingRight:s="0",boxSizing:r}=t;return Q(i,e,"x",n,s,r)},height:(t,e)=>{let{height:i,paddingTop:n="0",paddingBottom:s="0",boxSizing:r}=t;return Q(i,e,"y",n,s,r)},top:t=>{let{top:e}=t;return parseFloat(e)},left:t=>{let{left:e}=t;return parseFloat(e)},bottom:(t,e)=>{let{top:i}=t,{y:n}=e();return parseFloat(i)+(n.max-n.min)},right:(t,e)=>{let{left:i}=t,{x:n}=e();return parseFloat(i)+(n.max-n.min)},x:t=>{let{transform:e}=t;return _(e,"x")},y:t=>{let{transform:e}=t;return _(e,"y")}};tt.translateX=tt.x,tt.translateY=tt.y;var te=t.i(87022);let ti=new Set,tn=!1,ts=!1,tr=!1;function to(){if(ts){let t=[],e=new Set,i=new Set;
1ti.forEach(n=>{n.needsMeasurement&&(t.push(n),e.add(n.element),J.has(n.name)&&i.add(n.element))});let n=new Map;i.forEach(t=>{let e,i=(e=[],$.forEach(i=>{let n=t.getValue(i);if(void 0!==n){let t=n.get(),s=+!!i.startsWith("scale");if(t===s)return;e.push([i,t]),n.set(s)}}),e);i.length&&(n.set(t,i),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=n.get(t);e&&e.forEach(e=>{var i;let[n,s]=e;null==(i=t.getValue(n))||i.set(s)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}ts=!1,tn=!1,ti.forEach(t=>t.complete(tr)),ti.clear()}function ta(){ti.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(ts=!0)})}class tl{scheduleResolve(){this.state="scheduled",this.isAsync?(ti.add(this),tn||(tn=!0,te.frame.read(ta),te.frame.resolveKeyframes(to))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let s=null==n?void 0:n.get(),r=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){let n=function(t,e,i){if("string"==typeof t){if(/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)||/^0[^.\s]+$/u.test(t))return parseFloat(t);if(!d.complex.test(t)&&d.complex.test(i))return O(e,i)}return null!=t?t:void 0}(i.readValue(e,r),e,r);void 0!==n&&(t[0]=n)}void 0===t[0]&&(t[0]=r),n&&void 0===s&&n.set(t[0])}for(let e=1;e<t.length;e++)null!=t[e]||(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ti.delete(this)}cancel(){"scheduled"===this.state&&(ti.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}constructor(t,e,i,n,s,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=s,this.isAsync=r}}let tu=new Set(["auto","none","0"]);class th extends tl{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,I.isCSSVariableToken)(n))){let s=function t(e,i){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;(0,L.invariant)(n<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'),"max-css-var-depth");let[s,r]=function(t){let e=B.exec(t);if(!e)return[,];let[,i,n,s]=e;return["--".concat(null!=i?i:n),s]}(e);if(!s)return;let o=window.getComputedStyle(i).getPropertyValue(s);if(o){let t=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return(0,I.isCSSVariableToken)(r)?t(r,i,n+1):r}(n,e.current);void 0!==s&&(t[i]=s),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!D.has(i)||2!==t.length)return;let[n,s]=t;if("number"==typeof n&&"number"==typeof s)return;let r=j(n),o=j(s);if((0,I.containsCSSVariable)(n)!==(0,I.containsCSSVariable)(s)&&tt[i]){this.needsMeasurement=!0;return}if(r!==o)if(q(r)&&q(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}
1else tt[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(null===t[e]||function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)}(t[e]))&&i.push(e);i.length&&function(t,e,i){let n,s=0;for(;s<t.length&&!n;){let e=t[s];"string"==typeof e&&!tu.has(e)&&(0,d.hasComplexValues)(e)&&(n=t[s]),s++}if(n&&i)for(let s of e)t[s]!==n&&(t[s]=O(i,n))}(t,i,e)}measure(){let{element:t,name:e}=this;return tt[e](window.getComputedStyle(t.current),()=>t.measureViewportBox())}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),e[0]=this.measuredOrigin;let n=e[e.length-1];if(void 0!==n){var s;null==(s=this.motionValue)||s.jump(n,!1)}}measureEndState(){var t,e;let{element:i,unresolvedKeyframes:n}=this;if(!i||!i.current)return;null==(t=this.motionValue)||t.jump(this.measuredOrigin,!1);let s=n.length-1,r=n[s];n[s]=this.measure(),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),(null==(e=this.removedTransforms)?void 0:e.length)&&this.removedTransforms.forEac
1h(t=>{let[e,n]=t;i.getValue(e).set(n)}),this.resolveNoneKeyframes()}constructor(t,e,i,n,s){super(t,e,i,n,s,!0)}}var tc=t.i(63074),td=t.i(70596),tp=t.i(60830);function tm(t,e,i){e.startsWith("--")?t.style.setProperty(e,i):t.style[e]=i}function tf(t){let e;return()=>(void 0===e&&(e=t()),e)}let tv={};function tg(t,e){let i=tf(t);return()=>{var t;return null!=(t=tv[e])?t:i()}}let ty=tg(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),tx=t=>null!==t;function tb(t,e,i){let{repeat:n,repeatType:s="loop"}=e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=t.filter(tx),a=r<0||n&&"loop"!==s&&n%2==1?0:o.length-1;return a&&void 0!==i?i:o[a]}var tw=t.i(79294),tS=t.i(96173);function tT(t,e){return{kind:t,animation:e,timestamp:tS.time.now(),frameTimestamp:te.frameData.timestamp,frameIsProcessing:te.frameData.isProcessing}}function tP(t,e,i){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({...tT("animation-start",t),options:i?{...e,...i}:e})}catch(t){}}var tM=t.i(60855);let tC=tg(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing");var tA=t.i(56512);let tE=t=>{let[e,i,n,s]=t;return"cubic-bezier(".concat(e,", ").concat(i,", ").concat(n,", ").concat(s,")")},tV={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tE([0,.65,.55,1]),circOut:tE([.55,0,1,.45]),backIn:tE([.31,.01,.66,-.59]),backOut:tE([.33,1.53,.69,.99])};function tk(t){return"function"==typeof t&&"applyToOptions"in t}class tD extends tw.WithPromise{play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,e;null==(t=(e=this.animation).finish)||t.call(e)}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(){var t,e,i;let n=null==(t=this.options)?void 0:t.element;!this.isPseudoElement&&(null==n?void 0:n.isConnected)&&(null==(e=(i=this.animation).commitStyles)||e.call(i))}get duration(){var t,e;let i=(null==(e=this.animation.effect)||null==(t=e.getComputedTiming)?void 0:t.call(e).duration)||0;return(0,tc.millisecondsToSeconds)(Number(i))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+(0,tc.millisecondsToSeconds)(t)}get time(){return(0,tc.millisecondsToSeconds)(Number(this.animation.currentTime)||0)}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=(0,tc.secondsToMilliseconds)(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(){var t;return null!=(t=this.manualStartTime)?t:Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline(t){let{timeline:e,rangeStart:i,rangeEnd:n,observe:s}=t;if(this.allowFlatten){var r;null==(r=this.animation.effect)||r.updateTiming({easing:"linear"})}return(this.animation.onfinish=null,e&&ty())?(this.animation.timeline=e,i&&(this.animation.rangeStart=i),n&&(this.animation.rangeEnd=n),tp.noop):s(this)}constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:n,pseudoElement:s,allowFlatten:r=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!s,this.allowFlatten=r,this.options=t,(0,L.invariant)("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function(t){let{type:e,...i}=t;return tk(e)&&tC()?e.applyToOptions(i):(null!=i.duration||(i.duration=300),null!=i.ease||(i.ease="easeOut"),i)}(t);this.animation=function(t,e,i){let{delay:n=0,duration:s=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,h={[e]:i};l&&(h.offset=l);let c=function t(e,i){if(e)return"function"==typeof e?tC()?(0,tA.generateLinearEasing)(e,i):"ease-out":(0,tM.isBezierDefinition)(e)?tE(e):Array.isArray(e)?e.map(e=>t(e,i)||tV.easeOut):tV[e]}(a,s);Array.isArray(c)&&(h.easing=c);let d={delay:n,duration:s,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:"reverse"===o?"alternate":"normal"};return u&&(d.pseudoElement=u),t.animate(h,d)}(e,i,n,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let t=tb(n,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(t),tm(e,i,t),this.animation.cancel()}null==a||a(),this.notifyFinished()},tP(this,t,l)}}let tR=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),{schedule:tj}=(0,t.i(51571).createRenderBatcher)(queueMicrotask,!1);var tL=t.i(86427);let tI=new WeakMap;function tB(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function tF(t){return"string"==typeof t||Array.isArray(t)}let tO=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tN=["initial",...tO];function tU(t){if(tB(t.animate))return!0;for(let e=0;e<tN.length;e++)if(tF(t[tN[e]]))return!0;return!1}function tW(t){return!!(tU(t)||t.variants)}let tz={current:null},tG={current:!1},tY="u">typeof window;function tH(t){let e=[{},{}];
1return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function tX(t,e,i,n){if("function"==typeof e){let[s,r]=tH(n);e=e(void 0!==i?i:t.custom,s,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,r]=tH(n);e=e(void 0!==i?i:t.custom,s,r)}return e}let t_=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],tK={};class tq{scrapeMotionValuesFromProps(t,e,i){return{}}mount(t){var e,i,n;if(this.hasBeenMounted)for(let t in this.initialValues)null==(n=this.values.get(t))||n.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,tI.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:(tG.current||function(){if(tG.current=!0,tY)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>tz.current=t.matches;t.addEventListener("change",e),e()}else tz.current=!1}(),this.shouldReduceMotion=tz.current),this.shouldSkipAnimations=null!=(e=this.skipAnimationsConfig)&&e,null==(i=this.parent)||i.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;for(let e in this.projection&&this.projection.unmount(),(0,te.cancelFrame)(this.notifyUpdate),(0,te.cancelFrame)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),null==(t=this.parent)||t.removeChild(this),this.events)this.events[e].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),null!=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&&tR.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:n,times:s,ease:r,duration:o}=e.accelerate,a=new tD({element:this.current,name:t,keyframes:n,times:s,ease:r,duration:(0,tc.secondsToMilliseconds)(o)}),l=i(a);this.valueSubscriptions.set(t,()=>{l(),a.cancel()});return}let n=h.has(t);n&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&te.frame.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),i&&i()})}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 tK){let e=tK[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];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):V()}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 s=e[n],r=i[n];if((0,k.isMotionValue)(s))t.addValue(n,s);else if((0,k.isMotionValue)(r))t.addValue(n,(0,tL.motionValue)(s,{owner:t}));else if(r!==s)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(n);t.addValue(n,(0,tL.motionValue)(void 0!==e?e:s,{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}
1addVariantChild(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,tL.motionValue)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let n=void 0===this.latestValues[t]&&this.current?null!=(i=this.getBaseTargetFromProps(this.props,t))?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=n){let i,s;"string"==typeof n&&(i=n,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(i)||(s=n,/^0[^.\s]+$/u.test(s)))?n=parseFloat(n):"number"!=typeof n&&!d.complex.test(n)&&d.complex.test(e)&&(n=O(t,e)),this.setBaseTarget(t,(0,k.isMotionValue)(n)?n.get():n)}return(0,k.isMotionValue)(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){var n;let s=tX(this.props,i,null==(n=this.presenceContext)?void 0:n.custom);s&&(e=s[t])}if(i&&void 0!==e)return e;let s=this.getBaseTargetFromProps(this.props,t);return void 0===s||(0,k.isMotionValue)(s)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new td.SubscriptionManager),this.events[t].add(e)}notify(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];this.events[t]&&this.events[t].notify(...i)}scheduleRenderMicrotask(){tj.render(this.render)}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,skipAnimations:s,blockInitialAnimation:r,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=tl,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=tS.time.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,te.frame.render(this.render,!1,!0))};const{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=s,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=tU(e),this.isVariantNode=tW(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in c){const e=c[t];void 0!==l[t]&&(0,k.isMotionValue)(e)&&e.set(l[t])}}}class tZ extends tq{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,e){let{vars:i,style:n}=e;delete i[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,k.isMotionValue)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent="".concat(t))}))}constructor(){super(...arguments),this.KeyframeResolver=th}}function t$(t){return t.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase()))}let tJ=(t,e)=>e&&"number"==typeof t?e.transform(t):t,tQ={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},t0=u.length;function t1(t,e,i){let{style:n,vars:s,transformOrigin:r}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(h.has(t)){o=!0;continue}if((0,I.isCSSVariableName)(t)){s[t]=i;continue}{let e=tJ(i,T[t]);t.startsWith("origin")?(a=!0,r[t]=e):n[t]=e}}
1if(!e.transform&&(o||i?n.transform=function(t,e,i){let n="",s=!0;for(let r=0;r<t0;r++){let o=u[r],a=t[o];if(void 0===a)continue;let l=!0;if("number"==typeof a)l=a===+!!o.startsWith("scale");else{let t=parseFloat(a);l=o.startsWith("scale")?1===t:0===t}if(!l||i){let t=tJ(a,T[o]);if(!l){s=!1;let e=tQ[o]||o;n+="".concat(e,"(").concat(t,") ")}i&&(e[o]=t)}}let r=t.pathRotation;return r&&(s=!1,n+="rotate(".concat(tJ(r,T.pathRotation),") ")),n=n.trim(),i?n=i(e,s?"":n):s&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=r;n.transformOrigin="".concat(t," ").concat(e," ").concat(i)}}let t2={offset:"stroke-dashoffset",array:"stroke-dasharray"},t5={offset:"strokeDashoffset",array:"strokeDasharray"},t3=["transform","opacity","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function t6(t,e,i,n,s){var r,o;let{attrX:a,attrY:l,attrScale:u,pathLength:h,pathSpacing:c=1,pathOffset:d=0,...p}=e;if(t1(t,p,n),i){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:m,style:f}=t;for(let t of t3)void 0!==m[t]&&(f[t]=m[t],delete m[t]);(f.transform||m.transformOrigin)&&(f.transformOrigin=null!=(r=m.transformOrigin)?r:"50% 50%",delete m.transformOrigin),f.transform&&(f.transformBox=null!=(o=null==s?void 0:s.transformBox)?o:"fill-box",delete m.transformBox),void 0!==a&&(m.x=a),void 0!==l&&(m.y=l),void 0!==u&&(m.scale=u),void 0!==h&&function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=!(arguments.length>4)||void 0===arguments[4]||arguments[4];t.pathLength=1;let r=s?t2:t5;t[r.offset]="".concat(-n),t[r.array]="".concat(e," ").concat(i)}(m,h,c,d,!1)}let t4=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"]),t9=t=>"string"==typeof t&&"svg"===t.toLowerCase();function t7(t,e,i,n){let s,{style:r,vars:o}=e,a=t.style;for(s in r)a[s]=r[s];for(s in null==n||n.applyProjectionStyles(a,i),o)a.setProperty(s,o[s])}let t8=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function et(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let ee={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!w.px.test(t))return t;else t=parseFloat(t);let i=et(t,e.target.x),n=et(t,e.target.y);return"".concat(i,"% ").concat(n,"%")}};var ei=t.i(706);let en={borderRadius:{...ee,applyTo:[...t8]},borderTopLeftRadius:ee,borderTopRightRadius:ee,borderBottomLeftRadius:ee,borderBottomRightRadius:ee,boxShadow:{correct:(t,e)=>{let{treeScale:i,projectionDelta:n}=e,s=d.complex.parse(t);if(s.length>5)return t;let r=d.complex.createTransformer(t),o=+("number"!=typeof s[0]),a=n.x.scale*i.x,l=n.y.scale*i.y;s[0+o]/=a,s[1+o]/=l;let u=(0,ei.mixNumber)(a,l,.5);return"number"==typeof s[2+o]&&(s[2+o]/=u),"number"==typeof s[3+o]&&(s[3+o]/=u),r(s)}}};function es(t,e){let{layout:i,layoutId:n}=e;return h.has(t)||t.startsWith("origin")||(i||void 0!==n)&&(!!en[t]||"opacity"===t)}function er(t,e,i){let n=t.style,s=null==e?void 0:e.style,r={};if(!n)return r;for(let e in n){var o;((0,k.isMotionValue)(n[e])||s&&(0,k.isMotionValue)(s[e])||es(e,t)||(null==i||null==(o=i.getValue(e))?void 0:o.liveStyle)!==void 0)&&(r[e]=n[e])}return r}function eo(t,e,i){let n=er(t,e,i);for(let i in t)((0,k.isMotionValue)(t[i])||(0,k.isMotionValue)(e[i]))&&(n[-1!==u.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}class ea extends tZ{getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(h.has(e)){let t=M(e);return t&&t.default||0}if(t3.includes(e)){let i=getComputedStyle(t)[e];if("string"==typeof i&&i)return i.trim()}return e=t4.has(e)?e:t$(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return eo(t,e,i)}build(t,e,i){t6(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in t7(t,e,void 0,n),e.attrs)t.setAttribute(t4.has(i)?i:t$(i),e.attrs[i])}mount(t){this.isSVGTag=t9(t.tagName),super.mount(t)}constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=V}}function el(t){let{top:e,left:i,right:n,bottom:s}=t;return{x:{min:i,max:n},y:{min:e,max:s}}}function eu(t){return void 0===t||1===t}function eh(t){let{scale:e,scaleX:i,scaleY:n}=t;return!eu(e)||!eu(i)||!eu(n)}function ec(t){return eh(t)||ed(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function ed(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function ep(t,e,i,n,s){return void 0!==s&&(t=n+s*(t-n)),n+i*(t-n)+e}function em(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;t.min=ep(t.min,e,i,n,s),t.max=ep(t.max,e,i,n,s)}function ef(t,e){let{x:i,y:n}=e;em(t.x,i.translate,i.scale,i.originPoint),em(t.y,n.translate,n.scale,n.originPoint)}function ev(t,e){t.min+=e,t.max+=e}function eg(t,e,i,n){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.5,r=(0,ei.mixNumber)(t.min,t.max,s);em(t,e,i,r,n)}function ey(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function ex(t,e,i){let n=null!=i?i:t;eg(t.x,ey(e.x,n.x),e.scaleX,e.scale,e.originX),eg(t.y,ey(e.y,n.y),e.scaleY,e.scale,e.originY)}function eb(t,e){return el(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 ew extends tZ{mount(t){(0,L.invariant)(!!t.style,"motion.create() components must forward their ref to a HTML or SVG element","custom-component-ref"),super.mount(t)}readValueFromInstance(t,e){var i;if(h.has(e))return(null==(i=this.projection)?void 0:i.isProjecting)?X(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return _(i,e)})(t,e);{let i=window.getComputedStyle(t),n=((0,I.isCSSVariableName)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,e){let{transformPagePoint:i}=e;return eb(t,i)}build(t,e,i){t1(t,e,i.transformTemplate)}
1scrapeMotionValuesFromProps(t,e,i){return er(t,e,i)}constructor(){super(...arguments),this.type="html",this.renderInstance=t7}}let eS=["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 eT(t){if("string"!=typeof t||t.includes("-"));else if(eS.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let eP=(0,s.createContext)({}),eM=(0,s.createContext)({strict:!1});var eC=t.i(37806);let eA=(0,s.createContext)({});function eE(t){return Array.isArray(t)?t.join(" "):t}let eV=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ek(t,e,i){for(let n in e)(0,k.isMotionValue)(e[n])||es(n,i)||(t[n]=e[n])}let eD=()=>({...eV(),attrs:{}}),eR=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 ej(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||eR.has(t)}function eL(t){return(0,k.isMotionValue)(t)?t.get():t}let eI=(0,s.createContext)(null);var eB=t.i(47414);let eF=t=>(e,i)=>{let n=(0,s.useContext)(eA),r=(0,s.useContext)(eI),o=()=>(function(t,e,i,n){let{scrapeMotionValuesFromProps:s,createRenderState:r}=t;return{latestValues:function(t,e,i,n){let s={},r=n(t,{});for(let t in r)s[t]=eL(r[t]);let{initial:o,animate:a}=t,l=tU(t),u=tW(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let h=!!i&&!1===i.initial,c=(h=h||!1===o)?a:o;if(c&&"boolean"!=typeof c&&!tB(c)){let e=Array.isArray(c)?c:[c];for(let i=0;i<e.length;i++){let n=tX(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(e,i,n,s),renderState:r()}})(t,e,n,r);return i?o():(0,eB.useConstant)(o)},eO=eF({scrapeMotionValuesFromProps:er,createRenderState:eV}),eN=eF({scrapeMotionValuesFromProps:eo,createRenderState:eD}),eU={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"]},eW=!1;function ez(){return!function(){if(eW)return;let t={};for(let e in eU)t[e]={isEnabled:t=>eU[e].some(e=>!!t[e])};tK=t,eW=!0}(),tK}let eG=Symbol.for("motionComponentSymbol"),eY="data-"+t$("framerAppearId"),eH=(0,s.createContext)({});function eX(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var e_=t.i(74008);function eK(t){var e,i;let{forwardMotionProps:r=!1,type:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0,l=arguments.length>3?arguments[3]:void 0;a&&function(t){let e=ez();for(let i in t)e[i]={...e[i],...t[i]};tK=e}(a);let u=o?"svg"===o:eT(t),h=u?eN:eO;function c(e,i){var o;let a,c,d,p={...(0,s.useContext)(eC.MotionConfigContext),...e,layoutId:function(t){let{layoutId:e}=t,i=(0,s.useContext)(eP).id;return i&&void 0!==e?i+"-"+e:e}(e)},{isStatic:m,isValidProp:f}=p,v=function(t){let{initial:e,animate:i}=function(t,e){if(tU(t)){let{initial:e,animate:i}=t;return{initial:!1===e||tF(e)?e:void 0,animate:tF(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,s.useContext)(eA));return(0,s.useMemo)(()=>({initial:e,animate:i}),[eE(e),eE(i)])}(e),g=h(e,m);if(!m&&"u">typeof window){(0,s.useContext)(eM).strict;let e=function(t){let{drag:e,layout:i}=ez();if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}
1(p);a=e.MeasureLayout,v.visualElement=function(t,e,i,n,r,o){var a,l,u,h;let{visualElement:c}=(0,s.useContext)(eA),d=(0,s.useContext)(eM),p=(0,s.useContext)(eI),m=(0,s.useContext)(eC.MotionConfigContext),f=m.reducedMotion,v=m.skipAnimations,g=(0,s.useRef)(null),y=(0,s.useRef)(!1);n=n||d.renderer,!g.current&&n&&(g.current=n(t,{visualState:e,parent:c,props:i,presenceContext:p,blockInitialAnimation:!!p&&!1===p.initial,reducedMotionConfig:f,skipAnimations:v,isSVG:o}),y.current&&g.current&&(g.current.manuallyAnimateOnMount=!0));let x=g.current,b=(0,s.useContext)(eH);x&&!x.projection&&r&&("html"===x.type||"svg"===x.type)&&function(t,e,i,n){let{layoutId:s,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:h,layoutCrossfade:c}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:s,layout:r,alwaysMeasureLayout:!!o||a&&eX(a),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,crossfade:c,layoutScroll:l,layoutRoot:u,layoutAnchor:h})}(g.current,i,r,b);let w=(0,s.useRef)(!1);(0,s.useInsertionEffect)(()=>{x&&w.current&&x.update(i,p)});let S=i[eY],T=(0,s.useRef)(!!S&&"u">typeof window&&!(null==(a=(l=window).MotionHandoffIsComplete)?void 0:a.call(l,S))&&(null==(u=(h=window).MotionHasOptimisedAnimation)?void 0:u.call(h,S)));return(0,e_.useIsomorphicLayoutEffect)(()=>{y.current=!0,x&&(w.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),x.scheduleRenderMicrotask(),T.current&&x.animationState&&x.animationState.animateChanges())}),(0,s.useEffect)(()=>{x&&(!T.current&&x.animationState&&x.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var t,e;null==(t=(e=window).MotionHandoffMarkAsComplete)||t.call(e,S)}),T.current=!1),x.enteringChildren=void 0)}),x}(t,g,p,l,e.ProjectionNode,u)}return(0,n.jsxs)(eA.Provider,{value:v,children:[a&&v.visualElement?(0,n.jsx)(a,{visualElement:v.visualElement,...p}):null,function(t,e,i,n,r){let{latestValues:o}=n,a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0,u=arguments.length>7?arguments[7]:void 0,h=((null!=l?l:eT(t))?function(t,e,i,n){let r=(0,s.useMemo)(()=>{let i=eD();return t6(i,e,t9(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};ek(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i,n,r={},o=(i=t.style||{},ek(n={},i,t),Object.assign(n,function(t,e){let{transformTemplate:i}=t;return(0,s.useMemo)(()=>{let t=eV();return t1(t,e,i),Object.assign({},t.vars,t.style)},[e])}(t,e)),n);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.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=o,r})(e,o,r,t),c=function(t,e,i,n){let s={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&!(0,k.isMotionValue)(t[r])&&(function(t,e){var i;return t.startsWith("on")?!ej(t):null!=(i=null==e?void 0:e(t))?i:!ej(t)}(r,n)||!0===i&&ej(r)||!e&&!ej(r)||t.draggable&&r.startsWith("onDrag"))&&(s[r]=t[r]);return s}(e,"string"==typeof t,a,u),d=t!==s.Fragment?{...c,...h,ref:i}:{},{children:p}=e,m=(0,s.useMemo)(()=>(0,k.isMotionValue)(p)?p.get():p,[p]);return(0,s.createElement)(t,{...d,children:m})}(t,e,(o=v.visualElement,c=(0,s.useRef)(i),(0,s.useInsertionEffect)(()=>{c.current=i}),d=(0,s.useRef)(null),(0,s.useCallback)(t=>{if(t){var e;null==(e=g.onMount)||e.call(g,t)}o&&(t?o.mount(t):o.unmount());let i=c.current;if("function"==typeof i)if(t){let e=i(t);"function"==typeof e&&(d.current=e)}else d.current?(d.current(),d.current=null):i(t);else i&&(i.current=t)},[o])),g,m,r,u,f)]})}c.displayName="motion.".concat("string"==typeof t?t:"create(".concat(null!=(e=null!=(i=t.displayName)?i:t.name)?e:"",")"));let d=(0,s.forwardRef)(c);return d[eG]=t,d}class eq{update(){}constructor(t){this.isMounted=!1,this.node=t}}function eZ(t,e,i){let n=t.getProps();return tX(n,e,void 0!==i?i:n.custom,t)}function e$(t,e){if((null==t?void 0:t.inherit)&&e){let{inherit:i,...n}=t;return{...e,...n}}return t}function eJ(t,e){var i,n;let s=null!=(i=null!=(n=null==t?void 0:t[e])?n:null==t?void 0:t.default)?i:t;return s!==t?e$(s,t):s}let eQ=t=>Array.isArray(t);var e0=t.i(46791);function e1(t,e){let i=t.getValue("willChange");if((0,k.isMotionValue)(i)&&i.add)return i.add(e);if(!i&&e0.MotionGlobalConfig.WillChange){let i=new e0.MotionGlobalConfig.WillChange("auto");
1t.addValue("willChange",i),i.add(e)}}var e2=t.i(38638),e5=t.i(76959),e3=t.i(3163);let e6=t=>{let e=e=>{let{timestamp:i}=e;return t(i)};return{start:function(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return te.frame.update(e,t)},stop:()=>(0,te.cancelFrame)(e),now:()=>te.frameData.isProcessing?te.frameData.timestamp:tS.time.now()}};var e4=t.i(29462),e9=t.i(68514),e7=t.i(66857),e8=t.i(12008),it=t.i(44573),ie=tw;let ii=t=>t/100;class is extends ie.WithPromise{initAnimation(){let{options:t}=this;(0,it.replaceTransitionType)(t);let{type:e=e9.keyframes,repeat:i=0,repeatDelay:n=0,repeatType:s,velocity:r=0}=t,{keyframes:o}=t,a=e||e9.keyframes;a!==e9.keyframes&&"number"!=typeof o[0]&&(this.mixKeyframes=(0,e2.pipe)(ii,(0,e3.mix)(o[0],o[1])),o=[0,100]);let l=a(o===t.keyframes?t:{...t,keyframes:o});"mirror"===s&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=(0,e7.calcGeneratorDuration)(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){let e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{generator:n,totalDuration:s,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(null===this.startTime)return n.next(0);let{delay:u=0,keyframes:h,repeat:c,repeatType:d,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-s/this.speed,this.startTime)),i?this.currentTime=t:this.updateTime(t);let g=this.currentTime-u*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?g<0:g>s;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=s);let x=this.currentTime,b=n;if(c){let t=Math.min(this.currentTime,s)/a,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,c+1))%2&&("reverse"===d?(i=1-i,p&&(i-=p/a)):"mirror"===d&&(b=o)),x=(0,e5.clamp)(0,1,i)*a}y?(this.delayState.value=h[0],e=this.delayState):e=b.next(x),r&&!y&&(e.value=r(e.value));let{done:w}=e;y||null===l||(w=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return S&&m!==e4.inertia&&(e.value=tb(h,this.options,v,this.speed)),f&&f(e.value),S&&this.finish(),e}then(t,e){return this.finished.then(t,e)}get duration(){return(0,tc.millisecondsToSeconds)(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+(0,tc.millisecondsToSeconds)(t)}get time(){return(0,tc.millisecondsToSeconds)(this.currentTime)}set time(t){t=(0,tc.secondsToMilliseconds)(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(){return(0,e8.calcGeneratorVelocity)(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(tS.time.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=(0,tc.millisecondsToSeconds)(this.currentTime))}play(){var t,e;if(this.isStopped)return;let{driver:i=e6,startTime:n}=this.options;this.driver||(this.driver=i(t=>this.tick(t))),null==(t=(e=this.options).onPlay)||t.call(e);let s=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=s):null!==this.holdTime?this.startTime=s-this.holdTime:this.startTime||(this.startTime=null!=n?n:s),"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(tS.time.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,e;this.notifyFinished(),this.teardown(),this.state="finished",null==(t=(e=this.options).onComplete)||t.call(e)}cancel(){var t,e;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),null==(t=(e=this.options).onCancel)||t.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var e;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),null==(e=this.driver)||e.stop(),t.observe(this)}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=()=>{var t,e;let{motionValue:i}=this.options;i&&i.updatedAt!==tS.time.now()&&this.tick(tS.time.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),null==(t=(e=this.options).onStop)||t.call(e))},this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause(),tP(this,this.options)}}var ir=t.i(91559),io=t.i(41980);let ia={anticipate:t.i(78047).anticipate,backInOut:io.backInOut,circInOut:ir.circInOut};class il extends tD{updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:s,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new is({...r,autoplay:!1}),a=Math.max(10,tS.time.now()-this.startTime),l=(0,e5.clamp)(0,10,a-10),u=o.sample(a).value,{name:h}=this.options;s&&h&&tm(s,h,u),e.setWithVelocity(o.sample(Math.max(0,a-l)).value,u,l),o.stop()}constructor(t){!function(t){"string"==typeof t.ease&&t.ease in ia&&
1(t.ease=ia[t.ease])}(t),(0,it.replaceTransitionType)(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}}let iu=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(d.complex.test(t)||"0"===t)&&!t.startsWith("url("));function ih(t){t.duration=0,t.type="keyframes"}var ic=tw;let id=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,ip=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),im=tf(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class iv extends ic.WithPromise{onKeyframesResolved(t,e,i,n){var s,r;let o;this.keyframeResolver=void 0;let{name:a,type:l,velocity:u,delay:h,isHandoff:c,onUpdate:d}=i;this.resolvedAt=tS.time.now();let p=!0;!function(t,e,i,n){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],o=iu(s,e),a=iu(r,e);return 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||tk(i))&&n:(o!==a&&(0,L.warning)(!1,"You are trying to animate ".concat(e,' from "').concat(s,'" to "').concat(r,'". "').concat(o?r:s,'" is not an animatable value.'),"value-not-animatable"),!1)}(t,a,l,u)&&(p=!1,(e0.MotionGlobalConfig.instantAnimations||!h)&&(null==d||d(tb(t,i,e))),t[0]=t[t.length-1],ih(i),i.repeat=0);let m=n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,{onComplete:f}=i;if(null!=i.startTime||(i.startTime=m),i.finalKeyframe=e,i.keyframes=t,i.onComplete=()=>{null==f||f(),this.notifyFinished()},p&&!c&&function(t){var e;let{motionValue:i,name:n,repeatDelay:s,repeatType:r,damping:o,type:a,keyframes:l}=t;if(!n||!(tR.has(n)||ip.has(n)))return!1;let u=null==i||null==(e=i.owner)?void 0:e.current;if(!(u instanceof HTMLElement)&&!(u instanceof SVGElement))return!1;let{onUpdate:h,transformTemplate:c}=i.owner.getProps();return im()&&(tR.has(n)||ip.has(n)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&id.test(t[e]))return!0;return!1}(l))&&("transform"!==n||!c)&&!h&&!s&&"mirror"!==r&&0!==o&&"inertia"!==a}(i)){i.element=null==(r=i.motionValue)||null==(s=r.owner)?void 0:s.current;try{o=new il(i)}catch(t){o=new is(i)}}else o=new is(i);this.pendingTimeline&&(this.stopTimeline=o.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=o}get finished(){return this._animation?this._animation.finished:super.finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){if(!this._animation){var t;null==(t=this.keyframeResolver)||t.resume(),tr=!0,ta(),to(),tr=!1}return 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(){var t;this._animation&&this.animation.cancel(),null==(t=this.keyframeResolver)||t.cancel()}constructor(t){var e;super(),this.stop=()=>{var t,e;this._animation&&(this._animation.stop(),null==(e=this.stopTimeline)||e.call(this)),null==(t=this.keyframeResolver)||t.cancel()},this.createdAt=tS.time.now();const{keyframes:i,name:n,motionValue:s,element:r}=t;
1null!=t.autoplay||(t.autoplay=!0),null!=t.delay||(t.delay=0),null!=t.type||(t.type="keyframes"),null!=t.repeat||(t.repeat=0),null!=t.repeatDelay||(t.repeatDelay=0),null!=t.repeatType||(t.repeatType="loop");const o=(null==r?void 0:r.KeyframeResolver)||tl;this.keyframeResolver=new o(i,(e,i,n)=>this.onKeyframesResolved(e,i,t,!n),n,s,r),null==(e=this.keyframeResolver)||e.scheduleResolve()}}let ig={type:"spring",stiffness:500,damping:25,restSpeed:10},iy={type:"keyframes",duration:.8},ix={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ib=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),iw=function(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,r=arguments.length>5?arguments[5]:void 0;return o=>{let a=eJ(n,t)||{},l=a.delay||n.delay||0,{elapsed:u=0}=n;u-=(0,tc.secondsToMilliseconds)(l);let c={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:s};!function(t){for(let e in t)if(!ib.has(e))return!0;return!1}(a)&&Object.assign(c,((t,e)=>{let{keyframes:i}=e;return i.length>2?iy:h.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===i[1]?2*Math.sqrt(550):30,restSpeed:10}:ig:ix})(t,c)),c.duration&&(c.duration=(0,tc.secondsToMilliseconds)(c.duration)),c.repeatDelay&&(c.repeatDelay=(0,tc.secondsToMilliseconds)(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(ih(c),0===c.delay&&(d=!0)),(e0.MotionGlobalConfig.instantAnimations||e0.MotionGlobalConfig.skipAnimations||(null==s?void 0:s.shouldSkipAnimations)||a.skipAnimations)&&(d=!0,ih(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,d&&!r&&void 0!==e.get()){let t=tb(c.keyframes,a);if(void 0!==t)return void te.frame.update(()=>{c.onUpdate(t),c.onComplete()})}return a.isSync?new is(c):new iv(c)}},iS="u">typeof window;function iT(t,e){let{delay:i=0,transitionOverride:n,type:s}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{transition:r,transitionEnd:o,...a}=e,l=t.getDefaultTransition(),u=null==(r=r?e$(r,l):l)?void 0:r.reduceMotion,h=null==r?void 0:r.skipAnimations;n&&(r=n);let c=[],d=s&&t.animationState&&t.animationState.getState()[s],p=null==r?void 0:r.path;for(let e in p&&p.animateVisualElement(t,a,r,i,c),a){var m;let n=t.getValue(e,null!=(m=t.latestValues[e])?m:null),s=a[e];if(void 0===s||d&&function(t,e){let{protectedKeys:i,needsAnimating:n}=t,s=i.hasOwnProperty(e)&&!0!==n[e];return n[e]=!1,s}(d,e))continue;let o={delay:i,...eJ(r||{},e)};h&&(o.skipAnimations=!0);let l=n.get();if(void 0!==l&&!n.isAnimating()&&!Array.isArray(s)&&s===l&&!o.velocity){te.frame.update(()=>n.set(s));continue}let p=!1;if(iS&&window.MotionHandoffAnimation){let i=t.props[eY];if(i){let t=window.MotionHandoffAnimation(i,e,te.frame);null!==t&&(o.startTime=t,p=!0)}}e1(t,e);let f=null!=u?u:t.shouldReduceMotion;n.start(iw(e,n,s,f&&D.has(e)?{type:!1}:o,t,p));let v=n.animation;v&&c.push(v)}if(o){let e=()=>te.frame.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:n={},...s}=eZ(t,e)||{};for(let e in s={...s,...i}){var r;let i=eQ(r=s[e])?r[r.length-1]||0:r;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,tL.motionValue)(i))}}(t,o)});c.length?Promise.all(c).then(e):e()}return c}function iP(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*n;return"function"==typeof i?i(r,o):1===s?r*n:a-r*n}function iM(t,e){var i;let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=eZ(t,e,"exit"===n.type?null==(i=t.presenceContext)?void 0:i.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(r=n.transitionOverride);let o=s?()=>Promise.all(iT(t,s,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?function(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=r;return function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=arguments.length>6?arguments[6]:void 0,a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(iM(l,e,{...o,delay:i+("function"==typeof n?0:n)+iP(t.variantChildren,l,n,s,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,i,s,o,a,n)}:()=>Promise.resolve(),{when:l}=r;if(!l)return Promise.all([o(),a(n.delay)]);{let[t,e]="beforeChildren"===l?[o,a]:[a,o];return t().then(()=>e())}}let iC=tN.length;function iA(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 iE=[...tO].reverse(),iV=tO.length;function ik(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function iD(){return{animate:ik(!0),whileInView:ik(),whileHover:ik(),whileTap:ik(),whileDrag:ik(),whileFocus:ik(),exit:ik()}}let iR=0;function ij(t){return[t("x"),t("y")]}
1function iL(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}let iI={x:!1,y:!1};function iB(t){return t.max-t.min}function iF(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;t.origin=n,t.originPoint=(0,ei.mixNumber)(e.min,e.max,t.origin),t.scale=iB(i)/iB(e),t.translate=(0,ei.mixNumber)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function iO(t,e,i,n){iF(t.x,e.x,i.x,n?n.originX:void 0),iF(t.y,e.y,i.y,n?n.originY:void 0)}function iN(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;t.min=(n?(0,ei.mixNumber)(i.min,i.max,n):i.min)+e.min,t.max=t.min+iB(e)}function iU(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=n?(0,ei.mixNumber)(i.min,i.max,n):i.min;t.min=e.min-s,t.max=t.min+iB(e)}function iW(t,e,i,n){iU(t.x,e.x,i.x,null==n?void 0:n.x),iU(t.y,e.y,i.y,null==n?void 0:n.y)}let iz=t=>"object"==typeof t&&null!==t;function iG(t){return iz(t)&&"ownerSVGElement"in t}var iY=t.i(49652);let iH=new WeakMap,iX=(t,e,i)=>(n,s)=>s&&s[0]?s[0][t+"Size"]:iG(n)&&"getBBox"in n?n.getBBox()[e]:n[i],i_=iX("inline","width","offsetWidth"),iK=iX("block","height","offsetHeight");function iq(t){var e;let{target:i,borderBoxSize:n}=t;null==(e=iH.get(i))||e.forEach(t=>{t(i,{get width(){return i_(i,n)},get height(){return iK(i,n)}})})}function iZ(t){t.forEach(iq)}let i$=new Set;function iJ(t,n){let s;return"function"==typeof t?(i$.add(t),i||(i=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};i$.forEach(e=>e(t))},window.addEventListener("resize",i)),()=>{i$.delete(t),i$.size||"function"!=typeof i||(window.removeEventListener("resize",i),i=void 0)}):(!e&&"u">typeof ResizeObserver&&(e=new ResizeObserver(iZ)),(s=(0,iY.resolveElements)(t)).forEach(t=>{let i=iH.get(t);i||(i=new Set,iH.set(t,i)),i.add(n),null==e||e.observe(t)}),()=>{s.forEach(t=>{let i=iH.get(t);null==i||i.delete(n),(null==i?void 0:i.size)||null==e||e.unobserve(t)})})}let iQ=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),i0=new Set(["INPUT","SELECT","TEXTAREA"]),i1=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function i2(t){return{point:{x:t.pageX,y:t.pageY}}}function i5(t,e,i,n){return iL(t,e,t=>i1(t)&&i(t,i2(t)),n)}let i3=t=>{let{current:e}=t;return e?e.ownerDocument.defaultView:null},i6=(t,e)=>Math.abs(t-e),i4=new Set(["auto","scroll"]);class i9{startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(i4.has(t.overflowX)||i4.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,n=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:n.x-e.x,y:n.y-e.y};(0!==s.x||0!==s.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,n),te.frame.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,te.cancelFrame)(this.updatePoint)}constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:s=!1,distanceThreshold:r=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=i7(this.lastRawMoveEventInfo,this.transformPagePoint));let i=nt(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,s=(t=i.offset,e={x:0,y:0},Math.sqrt(i6(t.x,e.x)**2+i6(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!s)return;let{point:r}=i,{timestamp:o}=te.frameData;this.history.push({...r,timestamp:o});let{onStart:a,onMove:l}=this.handlers;n||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=i7(e,this.transformPagePoint),te.frame.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=nt("pointercancel"===t.type?this.lastMoveEventInfo:i7(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),n&&n(t,r)},!i1(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=n||window;
1const a=i7(i2(t),this.transformPagePoint),{point:l}=a,{timestamp:u}=te.frameData;this.history=[{...l,timestamp:u}];const{onSessionStart:h}=e;h&&h(t,nt(a,this.history));const c={passive:!0,capture:!0};this.removeListeners=(0,e2.pipe)(i5(this.contextWindow,"pointermove",this.handlePointerMove,c),i5(this.contextWindow,"pointerup",this.handlePointerUp,c),i5(this.contextWindow,"pointercancel",this.handlePointerUp,c)),o&&this.startScrollTracking(o)}}function i7(t,e){return e?{point:e(t.point)}:t}function i8(t,e){return{x:t.x-e.x,y:t.y-e.y}}function nt(t,e){let{point:i}=t;return{point:i,delta:i8(i,ne(e)),offset:i8(i,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,n=ne(t);for(;e>=0&&(i=t[e],!(n.timestamp-i.timestamp>(0,tc.secondsToMilliseconds)(.1)));)e--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&n.timestamp-i.timestamp>2*(0,tc.secondsToMilliseconds)(.1)&&(i=t[1]);let s=(0,tc.millisecondsToSeconds)(n.timestamp-i.timestamp);if(0===s)return{x:0,y:0};let r={x:(n.x-i.x)/s,y:(n.y-i.y)/s};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(e)}}function ne(t){return t[t.length-1]}var ni=t.i(83920);function nn(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 ns(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function nr(t,e,i){return{min:no(t,e),max:no(t,i)}}function no(t,e){return"number"==typeof t?t:t[e]||0}let na=new WeakMap;class nl{start(t){let{snapToCursor:e=!1,distanceThreshold:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let s=t=>{e&&this.snapToCursor(i2(t).point),this.stopAnimation()},r=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(iI[t])return null;else return iI[t]=!0,()=>{iI[t]=!1};return iI.x||iI.y?null:(iI.x=iI.y=!0,()=>{iI.x=iI.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ij(t=>{let e=this.getAxisMotionValue(t).get()||0;if(w.percent.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=iB(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&te.frame.update(()=>s(t,e),!1,!0),e1(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t){let 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}(o),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),r&&te.frame.update(()=>r(t,e),!1,!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new i9(t,{onSessionStart:s,onStart:r,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:i,contextWindow:i3(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!n||!i)return;let{velocity:r}=n;this.startAnimation(r);let{onDragEnd:o}=this.getProps();o&&te.frame.postRender(()=>o(i,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!nh(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];
1this.constraints&&this.constraints[t]&&(r=function(t,e,i){let{min:n,max:s}=e;return void 0!==n&&t<n?t=i?(0,ei.mixNumber)(n,t,i.min):Math.max(t,n):void 0!==s&&t>s&&(t=i?(0,ei.mixNumber)(s,t,i.max):Math.min(t,s)),t}(r,this.constraints[t],this.elastic[t])),s.set(r)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(t=this.visualElement.projection)?void 0:t.layout,s=this.constraints;e&&eX(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(t,e){let{top:i,left:n,bottom:s,right:r}=e;return{x:nn(t.x,n,r),y:nn(t.y,i,s)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.35;return!1===t?t=0:!0===t&&(t=.35),{x:nr(t,"left","right"),y:nr(t,"top","bottom")}}(i),s!==this.constraints&&!eX(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&ij(t=>{var e,i;let s;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=n.layoutBox[t],i=this.constraints[t],s={},void 0!==i.min&&(s.min=i.min-e.min),void 0!==i.max&&(s.max=i.max-e.min),s))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!eX(e))return!1;let n=e.current;(0,L.invariant)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;s.root&&(s.root.scroll=void 0,s.root.updateScroll());let r=function(t,e,i){let n=eb(t,i),{scroll:s}=e;return s&&(ev(n.x,s.offset.x),ev(n.y,s.offset.y)),n}(n,s.root,this.visualElement.getTransformPagePoint()),o=(t=s.layout.layoutBox,{x:ns(t.x,r.x),y:ns(t.y,r.y)});if(i){let t=i(function(t){let{x:e,y:i}=t;return{top:i.min,right:e.max,bottom:i.max,left:e.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=el(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:r,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(ij(o=>{if(!nh(o,e,this.currentDirection))return;let l=a&&a[o]||{};(!0===r||r===o)&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return e1(this.visualElement,t),i.start(iw(t,i,0,e,this.visualElement,!1))}stopAnimation(){ij(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var e;let i="_drag".concat(t.toUpperCase());return this.visualElement.getProps()[i]||this.visualElement.getValue(t,null!=(e=this.visualElement.latestValues[t])?e:0)}snapToCursor(t){ij(e=>{let{drag:i}=this.getProps();if(!nh(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:r}=n.layout.layoutBox[e],o=s.get()||0;s.set(t[e]-(0,ei.mixNumber)(i,r,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!eX(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};ij(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,s;let r,o,a,l=e.get();n[t]=(i={min:l,max:l},s=this.constraints[t],r=.5,o=iB(i),(a=iB(s))>o?r=(0,ni.progress)(s.min,s.max-o,i.min):o>a&&(r=(0,ni.progress)(i.min,i.max-a,s.min)),(0,e5.clamp)(0,1,r))}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),ij(e=>{if(!nh(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:r}=this.constraints[e];i.set((0,ei.mixNumber)(s,r,n[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;na.set(this.visualElement,this);let e=this.visualElement.current,i=i5(e,"pointerdown",t=>{let{drag:i,dragListener:n=!0}
1=this.getProps(),s=t.target,r=s!==e&&(i0.has(s.tagName)||!0===s.isContentEditable);i&&n&&!r&&this.start(t)}),n=()=>{var i,n,s;let r,o,{dragConstraints:a}=this.getProps();eX(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),t||(i=e,n=a.current,r=iJ(i,nu(s=()=>this.scalePositionWithinConstraints())),o=iJ(n,nu(s)),t=()=>{r(),o()}))},{projection:s}=this.visualElement,r=s.addEventListener("measure",n);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),te.frame.read(n);let o=iL(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",t=>{let{delta:e,hasLayoutChanged:i}=t;this.isDragging&&i&&(ij(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),i(),r(),a&&a(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:r=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:r,dragMomentum:o}}constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=V(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}}function nu(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function nh(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let nc=t=>(e,i)=>{t&&te.frame.update(()=>t(e,i),!1,!0)},nd={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var np=s;let nm=!1;class nf extends np.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),nm&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),nd.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,{projection:r}=i;return r&&(r.isPresent=s,t.layoutDependency!==e&&r.setOptions({...r.options,layoutDependency:e}),nm=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?r.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?r.promote():r.relegate()||te.frame.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:e}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=e,i.root.didUpdate(),tj.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;nm=!0,n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function nv(t){let[e,i]=function(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],e=(0,s.useContext)(eI);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:r}=e,o=(0,s.useId)();(0,s.useEffect)(()=>{if(t)return r(o)},[t]);let a=(0,s.useCallback)(()=>t&&n&&n(o),[o,n,t]);return!i&&n?[!1,a]:[!0]}(),r=(0,np.useContext)(eP);return(0,n.jsx)(nf,{...t,layoutGroup:r,switchLayoutGroup:(0,np.useContext)(eH),isPresent:e,safeToRemove:i})}let ng=t8.length,ny=t=>"string"==typeof t?parseFloat(t):t,nx=t=>"number"==typeof t||w.px.test(t);function nb(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let nw=nT(0,.5,ir.circOut),nS=nT(.5,.95,tp.noop);function nT(t,e,i){return n=>n<t?0:n>e?1:i((0,ni.progress)(t,e,n))}function nP(t,e){t.min=e.min,t.max=e.max}function nM(t,e){nP(t.x,e.x),nP(t.y,e.y)}function nC(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function nA(t,e,i,n,s){return t-=e,t=n+1/i*(t-n),void 0!==s&&(t=n+1/s*(t-n)),t}function nE(t,e,i,n,s){let[r,o,a]=i;!function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,s=arguments.length>4?arguments[4]:void 0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:t;if(w.percent.test(e)&&(e=parseFloat(e),e=(0,ei.mixNumber)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,ei.mixNumber)(r.min,r.max,n);t===r&&(a-=e),t.min=nA(t.min,e,i,a,s),t.max=nA(t.max,e,i,a,s)}(t,e[r],e[o],e[a],e.scale,n,s)}let nV=["x","scaleX","originX"],nk=["y","scaleY","originY"];function nD(t,e,i,n){nE(t.x,e,nV,i?i.x:void 0,n?n.x:void 0),nE(t.y,e,nk,i?i.y:void 0,n?n.y:void 0)}function nR(t){return 0===t.translate&&1===t.scale}function nj(t){return nR(t.x)&&nR(t.y)}function nL(t,e){return t.min===e.min&&t.max===e.max}function nI(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function nB(t,e){return nI(t.x,e.x)&&nI(t.y,e.y)}function nF(t){return iB(t.x)/iB(t.y)}function nO(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var nN=t.i(33887);
1class nU{add(t){(0,nN.addUniqueItem)(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,nN.removeItem)(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if((0,nN.removeItem)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){for(let i=this.members.indexOf(t)-1;i>=0;i--){var e;let t=this.members[i];if(!1!==t.isPresent&&(null==(e=t.instance)?void 0:e.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:s}=i.options,{layoutDependency:r}=t.options;if(void 0===s||s!==r){var n;t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),(null==(n=t.root)?void 0:n.isUpdating)&&(t.isLayoutDirty=!0)}!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var e,i,n,s,r;null==(e=(i=t.options).onExitComplete)||e.call(i),null==(s=t.resumingFrom)||null==(n=(r=s.options).onExitComplete)||n.call(r)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(null==(t=this.lead)?void 0:t.snapshot)&&(this.lead.snapshot=void 0)}constructor(){this.members=[]}}let nW=(t,e)=>t.depth-e.depth;class nz{add(t){(0,nN.addUniqueItem)(this.children,t),this.isDirty=!0}remove(t){(0,nN.removeItem)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(nW),this.isDirty=!1,this.children.forEach(t)}constructor(){this.children=[],this.isDirty=!1}}let nG=["","X","Y","Z"],nY=0;function nH(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function nX(t){let{attachResizeListener:e,defaultParent:i,measureScroll:n,checkIsScrollRoot:s,resetTransform:r}=t;return class{addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new td.SubscriptionManager),this.eventHandlers.get(t).add(e)}notifyListeners(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];let s=this.eventHandlers.get(t);s&&s.notify(...i)}hasListeners(t){return this.eventHandlers.has(t)}mount(t){if(this.instance)return;this.isSVG=iG(t)&&!(iG(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:i,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),e){let i,n=0,s=()=>this.root.updateBlockedByResize=!1;te.frame.read(()=>{n=window.innerWidth}),e(t,()=>{let t=window.innerWidth;if(t!==n){let e,r;n=t,this.root.updateBlockedByResize=!0,i&&i(),e=tS.time.now(),r=t=>{let{timestamp:i}=t,n=i-e;n>=250&&((0,te.cancelFrame)(r),s())},te.frame.setup(r,!0),i=()=>(0,te.cancelFrame)(r),nd.hasAnimatedSinceResize&&(nd.hasAnimatedSinceResize=!1,this.nodes.forEach(n5))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||n)&&this.addEventListener("didUpdate",t=>{let{delta:e,hasLayoutChanged:i,hasRelativeLayoutChanged:n,layout:r}=t;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||s.getDefaultTransition()||se,{onLayoutAnimationStart:a,onLayoutAnimationComplete:l}=s.getProps(),u=!this.targetLayout||!nB(this.targetLayout,r),h=!i&&n;if(this.options.layoutRoot||this.resumeFrom||h||i&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...eJ(o,"layout"),onPlay:a,onComplete:l};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,h,t.path)}else i||n5(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}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,te.cancelFrame)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
1h(n4),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[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[eY];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",te.frame,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEach(nQ),this.nodes.forEach(nJ);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(n0);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(n1),this.nodes.forEach(n2),this.nodes.forEach(n_),this.nodes.forEach(nK)):this.nodes.forEach(n0),this.clearAllSnapshots();let t=tS.time.now();te.frameData.delta=(0,e5.clamp)(0,1e3/60,t-te.frameData.timestamp),te.frameData.timestamp=t,te.frameData.isProcessing=!0,te.frameSteps.update.process(te.frameData),te.frameSteps.preRender.process(te.frameData),te.frameSteps.render.process(te.frameData),te.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tj.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(n$),this.sharedNodes.forEach(n9)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,te.frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){te.frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||iB(this.snapshot.measuredBox.x)||iB(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=V()),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(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"measure",e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=s(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:n(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&&!nj(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||ec(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(){var t;let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],i=this.measurePageBox(),n=this.removeElementScroll(i);return e&&(n=this.removeTransform(n)),ss((t=n).x),ss(t.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return V();let i=e.measureViewportBox();if(!((null==(t=this.scroll)?void 0:t.wasRoot)||this.path.some(so))){let{scroll:t}=this.root;t&&(ev(i.x,t.offset.x),ev(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=V();if(nM(i,t),null==(e=this.scroll)?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let n=this.path[e],{scroll:s,options:r}=n;n!==this.root&&s&&r.layoutScroll&&(s.wasRoot&&nM(i,t),ev(i.x,s.offset.x),ev(i.y,s.offset.y))}return i}applyTransform(t){var e,i;let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=arguments.length>2?arguments[2]:void 0,r=s||V();nM(r,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(ev(r.x,-i.scroll.offset.x),ev(r.y,-i.scroll.offset.y)),ec(i.latestValues)&&ex(r,i.latestValues,null==(e=i.layout)?void 0:e.layoutBox)}return ec(this.latestValues)&&ex(r,this.latestValues,null==(i=this.layout)?void 0:i.layoutBox),r}removeTransform(t){let e=V();nM(e,t);for(let t=0;t<this.path.length;t++){var i;let n,s=this.path[t];ec(s.latestValues)&&(s.instance&&(eh(s.latestValues)&&s.updateSnapshot(),nM(n=V(),s.measurePageBox())),nD(e,s.latestValues,null==(i=s.snapshot)?void 0:i.layoutBox,n))}return ec(this.latestValues)&&nD(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!==te.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(){var t,e,i,n,s;let r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let a=!!this.resumingFrom||this!==o;if(!(r||a&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:l,layoutId:u}=this.options;if(!this.layout||!(l||u))return;this.resolvedRelativeTargetAt=te.frameData.timestamp;let h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&((this.target||(this.target=V(),this.targetWithTransforms=V()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),e=this.target,i=this.relativeTarget,n=this.relativeParent.target,s=this.options.layoutAnchor||void 0,iN(e.x,i.x,n.x,null==s?void 0:s.x),iN(e.y,i.y,n.y,null==s?void 0:s.y)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):nM(this.target,this.layout.layoutBox),ef(this.target,this.targetDelta)):nM(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&1!==this.animationProgress?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||eh(this.parent.latestValues)||ed(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=V(),this.relativeTargetOrigin=V(),iW(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),nM(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty))&&(n=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===te.frameData.timestamp&&(n=!1),n)return;let{layout:s,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||!(s||r))return;nM(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;
1!function(t,e,i){let n,s,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=i.length;if(o){e.x=e.y=1;for(let l=0;l<o;l++){s=(n=i[l]).projectionDelta;let{visualElement:o}=n.options;if((!o||!o.props.style||"contents"!==o.props.style.display)&&(r&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(ev(t.x,-n.scroll.offset.x),ev(t.y,-n.scroll.offset.y)),s&&(e.x*=s.x.scale,e.y*=s.y.scale,ef(t,s)),r&&ec(n.latestValues))){var a;ex(t,n.latestValues,null==(a=n.layout)?void 0:a.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,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=V());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nC(this.prevProjectionDelta.x,this.projectionDelta.x),nC(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),iO(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&nO(this.projectionDelta.x,this.prevProjectionDelta.x)&&nO(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(){var t;let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(null==(t=this.options.visualElement)||t.scheduleRender(),e){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=A(),this.projectionDelta=A(),this.projectionDeltaWithTransform=A()}setAnimationOrigin(t){let e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,s=this.snapshot,r=s?s.latestValues:{},o={...this.latestValues},a=A();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;let l=V(),u=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),c=!h||h.members.length<=1,d=!!(u&&!c&&!0===this.options.crossfade&&!this.path.some(st));this.animationProgress=0;let p=null==n?void 0:n.interpolateProjection(t);this.mixTargetDelta=i=>{let n=i/1e3,s=null==p?void 0:p(n);if(s?(a.x.translate=s.x,a.x.scale=(0,ei.mixNumber)(t.x.scale,1,n),a.x.origin=t.x.origin,a.x.originPoint=t.x.originPoint,a.y.translate=s.y,a.y.scale=(0,ei.mixNumber)(t.y.scale,1,n),a.y.origin=t.y.origin,a.y.originPoint=t.y.originPoint):(n7(a.x,t.x,n),n7(a.y,t.y,n)),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,m,f,v,g,y;iW(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),f=this.relativeTarget,v=this.relativeTargetOrigin,g=l,y=n,n8(f.x,v.x,g.x,y),n8(f.y,v.y,g.y,y),e&&(h=this.relativeTarget,m=e,nL(h.x,m.x)&&nL(h.y,m.y))&&(this.isProjectionDirty=!1),e||(e=V()),nM(e,this.relativeTarget)}u&&(this.animationValues=o,function(t,e,i,n,s,r){var o,a,l,u;s?(t.opacity=(0,ei.mixNumber)(0,null!=(o=i.opacity)?o:1,nw(n)),t.opacityExit=(0,ei.mixNumber)(null!=(a=e.opacity)?a:1,0,nS(n))):r&&(t.opacity=(0,ei.mixNumber)(null!=(l=e.opacity)?l:1,null!=(u=i.opacity)?u:1,n));for(let s=0;s<ng;s++){let r=t8[s],o=nb(e,r),a=nb(i,r);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||nx(o)===nx(a)?(t[r]=Math.max((0,ei.mixNumber)(ny(o),ny(a),n),0),(w.percent.test(a)||w.percent.test(o))&&(t[r]+="%")):t[r]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,ei.mixNumber)(e.rotate||0,i.rotate||0,n))}(o,r,this.latestValues,n,d,c)),s&&void 0!==s.rotate&&(this.animationValues||(this.animationValues=o),this.animationValues.pathRotation=s.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){var e,i,n;this.notifyListeners("animationStart"),null==(e=this.currentAnimation)||e.stop(),null==(n=this.resumingFrom)||null==(i=n.currentAnimation)||i.stop(),this.pendingAnimation&&((0,te.cancelFrame)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=te.frame.update(()=>{var e,i,n;let s;nd.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=(0,tL.motionValue)(0)),this.motionValue.jump(0,!1),this.currentAnimation=(e=this.motionValue,i=[0,1e3],n={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}},(s=(0,k.isMotionValue)(e)?e:(0,tL.motionValue)(e)).start(iw("",s,i,n)),s.animation),function(t,e){let i=globalThis.__MOTION_INSPECT__;if(i)try{i({...tT("layout-animation-start",t),node:e})}catch(t){}}(this.currentAnimation,this),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,layout:i,latestValues:n}=t,{target:s}=t;
1if(e&&s&&i){if(this!==t&&this.layout&&i&&sr(this.options.animationType,this.layout.layoutBox,i.layoutBox)){s=this.target||V();let e=iB(this.layout.layoutBox.x);s.x.min=t.target.x.min,s.x.max=s.x.min+e;let i=iB(this.layout.layoutBox.y);s.y.min=t.target.y.min,s.y.max=s.y.min+i}nM(e,s),ex(e,n),iO(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new nU),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null==(t=this.getStack())?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null==(t=this.getStack())?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote(){let{needsReset:t,transition:e,preserveFollowOpacity:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},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&&nH("z",t,n,this.animationValues);for(let e=0;e<nG.length;e++)nH("rotate".concat(nG[e]),t,n,this.animationValues),nH("skew".concat(nG[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=eL(null==e?void 0: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=eL(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!ec(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let s=n.animationValues||n.latestValues;this.applyTransformsToTarget();let r=function(t,e,i){let n="",s=t.x.translate/e.x,r=t.y.translate/e.y,o=(null==i?void 0:i.z)||0;if((s||r||o)&&(n="translate3d(".concat(s,"px, ").concat(r,"px, ").concat(o,"px) ")),(1!==e.x||1!==e.y)&&(n+="scale(".concat(1/e.x,", ").concat(1/e.y,") ")),i){let{transformPerspective:t,rotate:e,pathRotation:s,rotateX:r,rotateY:o,skewX:a,skewY:l}=i;t&&(n="perspective(".concat(t,"px) ").concat(n)),e&&(n+="rotate(".concat(e,"deg) ")),s&&(n+="rotate(".concat(s,"deg) ")),r&&(n+="rotateX(".concat(r,"deg) ")),o&&(n+="rotateY(".concat(o,"deg) ")),a&&(n+="skewX(".concat(a,"deg) ")),l&&(n+="skewY(".concat(l,"deg) "))}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+="scale(".concat(a,", ").concat(l,")")),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,s);i&&(r=i(s,r)),t.transform=r;let{x:o,y:a}=this.projectionDelta;if(t.transformOrigin="".concat(100*o.origin,"% ").concat(100*a.origin,"% 0"),n.animationValues){var l,u;t.opacity=n===this?null!=(l=null!=(u=s.opacity)?u:this.latestValues.opacity)?l:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit}else t.opacity=n===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(let e in en){if(void 0===s[e])continue;let{correct:i,applyTo:o,isCSSVariable:a}=en[e],l="none"===r?s[e]:i(s[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?eL(null==e?void 0:e.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}
1resetTree(){this.root.nodes.forEach(t=>{var e;return null==(e=t.currentAnimation)?void 0:e.stop()}),this.root.nodes.forEach(nJ),this.root.sharedNodes.clear()}constructor(t={},e=null==i?void 0:i()){this.id=nY++,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,this.nodes.forEach(nq),this.nodes.forEach(n3),this.nodes.forEach(n6),this.nodes.forEach(nZ)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=e?e.root||e:this,this.path=e?[...e.path,e]:[],this.parent=e,this.depth=e?e.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new nz)}}}function n_(t){t.updateLayout()}function nK(t){var e;let i=(null==(e=t.resumeFrom)?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:n}=t.layout,{animationType:s}=t.options,r=i.source!==t.layout.source;if("size"===s)ij(t=>{let n=r?i.measuredBox[t]:i.layoutBox[t],s=iB(n);n.min=e[t].min,n.max=n.min+s});else if("x"===s||"y"===s){let t="x"===s?"y":"x";nP(r?i.measuredBox[t]:i.layoutBox[t],e[t])}else sr(s,i.layoutBox,e)&&ij(n=>{let s=r?i.measuredBox[n]:i.layoutBox[n],o=iB(e[n]);s.max=s.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=A();iO(o,e,i.layoutBox);let a=A();r?iO(a,t.applyTransform(n,!0),i.measuredBox):iO(a,e,i.layoutBox);let l=!nj(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let o=t.options.layoutAnchor||void 0,a=V();iW(a,i.layoutBox,s.layoutBox,o);let l=V();iW(l,e,r.layoutBox,o),nB(a,l)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=a,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,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 nq(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function nZ(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function n$(t){t.clearSnapshot()}function nJ(t){t.clearMeasurements()}function nQ(t){t.isLayoutDirty=!0,t.updateLayout()}function n0(t){t.isLayoutDirty=!1}function n1(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function n2(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function n5(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function n3(t){t.resolveTargetDelta()}function n6(t){t.calcProjection()}function n4(t){t.resetSkewAndRotation()}function n9(t){t.removeLeadSnapshot()}function n7(t,e,i){t.translate=(0,ei.mixNumber)(e.translate,0,i),t.scale=(0,ei.mixNumber)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function n8(t,e,i,n){t.min=(0,ei.mixNumber)(e.min,i.min,n),t.max=(0,ei.mixNumber)(e.max,i.max,n)}function st(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let se={duration:.45,ease:[.4,0,.1,1]},si=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),sn=si("applewebkit/")&&!si("chrome/")?Math.round:tp.noop;function ss(t){t.min=sn(t.min),t.max=sn(t.max)}function sr(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(nF(e)-nF(i)))}function so(t){var e;return t!==t.root&&(null==(e=t.scroll)?void 0:e.wasRoot)}let sa=nX({attachResizeListener:(t,e)=>iL(t,"resize",e),measureScroll:()=>{var t,e;return{x:document.documentElement.scrollLeft||(null==(t=document.body)?void 0:t.scrollLeft)||0,y:document.documentElement.scrollTop||(null==(e=
1document.body)?void 0:e.scrollTop)||0}},checkIsScrollRoot:()=>!0}),sl={current:void 0},su=nX({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!sl.current){let t=new sa({});t.mount(window),t.setOptions({layoutScroll:!0}),sl.current=t}return sl.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function sh(t,e){let i=(0,iY.resolveElements)(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function sc(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&te.frame.postRender(()=>s(e,i2(e)))}let sd=(t,e)=>!!e&&(t===e||sd(t,e.parentElement)),sp=new WeakSet;function sm(t){return e=>{"Enter"===e.key&&t(e)}}function sf(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function sv(t){return i1(t)&&!(iI.x||iI.y)}let sg=new WeakSet;function sy(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let s=n["onTap"+("End"===i?"":i)];s&&te.frame.postRender(()=>s(e,i2(e)))}let sx=new WeakMap,sb=new WeakMap,sw=t=>{let e=sx.get(t.target);e&&e(t)},sS=t=>{t.forEach(sw)},sT={some:0,all:1},sP=function(t,e){if("u"<typeof Proxy)return eK;let i=new Map,n=(i,n)=>eK(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(s,r)=>"create"===r?n:(i.has(r)||i.set(r,eK(r,void 0,t,e)),i.get(r))})}({animation:{Feature:class extends eq{updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();tB(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null==(t=this.unmountControls)||t.call(this)}constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(e=>{let{animation:i,options:n}=e;return function(t,e){let i,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.notify("AnimationStart",e),Array.isArray(e))i=Promise.all(e.map(e=>iM(t,e,n)));else if("string"==typeof e)i=iM(t,e,n);else{let s="function"==typeof e?eZ(t,e,n.custom):e;i=Promise.all(iT(t,s,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}(t,i,n)})),i=iD(),n=!0,s=!1,r=e=>(i,n)=>{var s;let r=eZ(t,n,"exit"===e?null==(s=t.presenceContext)?void 0:s.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<iC;t++){let n=tN[t],s=e.props[n];(tF(s)||!1===s)&&(i[n]=s)}return i}(t.parent)||{},u=[],h=new Set,c={},d=1/0;for(let e=0;e<iV;e++){var p,m;let f=iE[e],v=i[f],g=void 0!==a[f]?a[f]:l[f],y=tF(g),x=f===o?v.isActive:null;!1===x&&(d=e);let b=g===l[f]&&g!==a[f]&&y;if(b&&(n||s)&&t.manuallyAnimateOnMount&&(b=!1),v.protectedKeys={...c},!v.isActive&&null===x||!g&&!v.prevProp||tB(g)||"boolean"==typeof g)continue;if("exit"===f&&v.isActive&&!0!==x){v.prevResolvedValues&&(c={...c,...v.prevResolvedValues});continue}let w=(p=v.prevProp,"string"==typeof(m=g)?m!==p:!!Array.isArray(m)&&!iA(m,p)),S=w||f===o&&v.isActive&&!b&&y||e>d&&y,T=!1,P=Array.isArray(g)?g:[g],M=P.reduce(r(f),{});!1===x&&(M={});let{prevResolvedValues:C={}}=v,A={...C,...M},E=e=>{S=!0,h.has(e)&&(T=!0,h.delete(e)),v.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in A){let e=M[t],i=C[t];if(!c.hasOwnProperty(t))(eQ(e)&&eQ(i)?!iA(e,i)||w:e!==i)?null!=e?E(t):h.add(t):void 0!==e&&h.has(t)?E(t):v.protectedKeys[t]=!0}v.prevProp=g,v.prevResolvedValues=M,v.isActive&&(c={...c,...M}),(n||s)&&t.blockInitialAnimation&&(S=!1);let V=b&&w,k=!V||T;S&&k&&u.push(...P.map(e=>{let i={type:f};if("string"==typeof e&&(n||s)&&!V&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,s=eZ(n,e);if(n.enteringChildren&&s){let{delayChildren:e}=s.transition||{};i.delay=iP(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(h.size){let e={};if("boolean"!=typeof a.initial){let i=eZ(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}
1h.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=null!=n?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,s=!1,f?e(u):Promise.resolve()}return{animateChanges:o,setActive:function(e,n){var s;if(i[e].isActive===n)return Promise.resolve();null==(s=t.variantChildren)||s.forEach(t=>{var i;return null==(i=t.animationState)?void 0:i.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=iD(),s=!0}}}(t))}}},exit:{Feature:class extends eq{update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;if(t&&!1===i){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t||"object"==typeof t&&null!==t&&!Array.isArray(t)){let i=eZ(this.node,t,e);if(i){let{transition:t,transitionEnd:e,...s}=i;for(let t in s){var n;null==(n=this.node.getValue(t))||n.jump(s[t])}}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let s=this.node.animationState.setActive("exit",!t);e&&!t&&s.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
1e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}constructor(){super(...arguments),this.id=iR++,this.isExitComplete=!1}}},inView:{Feature:class extends eq{startObserver(){var t,e;let i;null==(t=this.stopObserver)||t.call(this);let{viewport:n={}}=this.node.getProps(),{root:s,margin:r,amount:o="some",once:a}=n,l={root:s?s.current:void 0,rootMargin:r,threshold:"number"==typeof o?o:sT[o]},u=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,a&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)};this.stopObserver=(e=this.node.current,i=function(t){let{root:e,...i}=t,n=e||document;sb.has(n)||sb.set(n,{});let s=sb.get(n),r=JSON.stringify(i);return s[r]||(s[r]=new IntersectionObserver(sS,{root:e,...i})),s[r]}(l),sx.set(e,u),i.observe(e),()=>{sx.delete(e),i.unobserve(e)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function(t){let{viewport:e={}}=t,{viewport:i={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=>e[t]!==i[t]}(t,e))&&this.startObserver()}unmount(){var t;null==(t=this.stopObserver)||t.call(this),this.hasEnteredView=!1,this.isInView=!1}constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends eq{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},[n,s,r]=sh(t,i),o=t=>{let n=t.currentTarget;if(!sv(t)||sg.has(t))return;sp.add(n),i.stopPropagation&&sg.add(t);let r=e(n,t),o={...s,capture:!0},a=(t,e)=>{window.removeEventListener("pointerup",l,o),window.removeEventListener("pointercancel",u,o),sp.has(n)&&sp.delete(n),sv(t)&&"function"==typeof r&&r(t,{success:e})},l=t=>{a(t,n===window||n===document||i.useGlobalTarget||sd(n,t.target))},u=t=>{a(t,!1)};window.addEventListener("pointerup",l,o),window.addEventListener("pointercancel",u,o)};return n.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,s),iz(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=sm(()=>{if(sp.has(i))return;sf(i,"down");let t=sm(()=>{sf(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>sf(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,s)),iQ.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(sy(this.node,e,"Start"),(t,e)=>{let{success:i}=e;return sy(this.node,t,i?"End":"Cancel")}),{useGlobalTarget:e,stopPropagation:(null==i?void 0:i.tap)===!1})}unmount(){}}},focus:{Feature:class extends eq{onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,e2.pipe)(iL(this.node.current,"focus",()=>this.onFocus()),iL(this.node.current,"blur",()=>this.onBlur()))}unmount(){}constructor(){super(...arguments),this.isActive=!1}}},hover:{Feature:class extends eq{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},[n,s,r]=sh(t,i);return n.forEach(t=>{let i,n=!1,r=!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),r&&(r=!1,o(t))},l=t=>{if("touch"!==t.pointerType){if(n){r=!0;return}o(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||iI.x||iI.y)return;r=!1;let o=e(t,n);"function"==typeof o&&(i=o,t.addEventListener("pointerleave",l,s))},s),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",a,s)},s)}),r}(t,(t,e)=>(sc(this.node,e,"Start"),t=>sc(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends eq{onPointerDown(t){this.session=new i9(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:i3(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:nc(t),onStart:nc(e),onMove:nc(i),onEnd:(t,e)=>{delete this.session,n&&te.frame.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=i5(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}constructor(){super(...arguments),this.removePointerDownListener=tp.noop}}},drag:{Feature:class extends eq{mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tp.noop}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}constructor(t){super(t),this.removeGroupControls=tp.noop,this.removeListeners=tp.noop,this.controls=new nl(t)}},ProjectionNode:su,MeasureLayout:nv},layout:{ProjectionNode:su,MeasureLayout:nv}},(t,e)=>{var i;return(null!=(i=e.isSVG)?i:eT(t))?new ea(e):new ew(e,{allowProjection:t!==s.Fragment})});var sM=t.i(47163);let sC=t=>{let{className:e,containerRef:i,fromRef:r,toRef:o,curvature:a=0,reverse:l=!1,duration:u=5,delay:
1h=0,pathColor:c="gray",pathWidth:d=2,pathOpacity:p=.2,gradientStartColor:m="#ffaa40",gradientStopColor:f="#9c40ff",repeat:v=1/0,repeatDelay:g=0,startXOffset:y=0,startYOffset:x=0,endXOffset:b=0,endYOffset:w=0,fromSide:S,toSide:T}=t,P=(0,s.useId)(),[M,C]=(0,s.useState)(""),[A,E]=(0,s.useState)({width:0,height:0}),V=l?{x1:["90%","-10%"],x2:["100%","0%"],y1:["0%","0%"],y2:["0%","0%"]}:{x1:["10%","110%"],x2:["0%","100%"],y1:["0%","0%"],y2:["0%","0%"]};return(0,s.useEffect)(()=>{let t=()=>{if(i.current&&r.current&&o.current){let t=i.current.getBoundingClientRect(),e=r.current.getBoundingClientRect(),n=o.current.getBoundingClientRect();E({width:t.width,height:t.height});let s=(t,e)=>"left"===e?t.left:"right"===e?t.right:t.left+t.width/2,l=s(e,S)-t.left+y,u=e.top-t.top+e.height/2+x,h=s(n,T)-t.left+b,c=n.top-t.top+n.height/2+w;if(S||T){let t=(h-l)/2;C("M ".concat(l,",").concat(u," C ").concat(l+t,",").concat(u," ").concat(h-t,",").concat(c," ").concat(h,",").concat(c));return}let d=u-a;C("M ".concat(l,",").concat(u," Q ").concat((l+h)/2,",").concat(d," ").concat(h,",").concat(c))}},e=new ResizeObserver(()=>{t()});return i.current&&e.observe(i.current),t(),()=>{e.disconnect()}},[i,r,o,a,y,x,b,w,S,T]),(0,n.jsxs)("svg",{fill:"none",width:A.width,height:A.height,xmlns:"http://www.w3.org/2000/svg",className:(0,sM.cn)("pointer-events-none absolute top-0 left-0 transform-gpu stroke-2",e),viewBox:"0 0 ".concat(A.width," ").concat(A.height),style:{opacity:+!!M,transition:"opacity 700ms ease-out"},children:[(0,n.jsx)("path",{d:M,style:{stroke:c,transition:"stroke 300ms ease, stroke-opacity 300ms ease"},strokeWidth:d,strokeOpacity:p,strokeLinecap:"round"}),(0,n.jsx)("path",{d:M,strokeWidth:d,stroke:"url(#".concat(P,")"),strokeOpacity:"1",strokeLinecap:"round"}),(0,n.jsx)("defs",{children:(0,n.jsxs)(sP.linearGradient,{className:"transform-gpu",id:P,gradientUnits:"userSpaceOnUse",initial:{x1:"0%",x2:"0%",y1:"0%",y2:"0%"},animate:{x1:V.x1,x2:V.x2,y1:V.y1,y2:V.y2},transition:{delay:h,duration:u,ease:[.16,1,.3,1],repeat:v,repeatDelay:g},children:[(0,n.jsx)("stop",{style:{stopColor:m},stopOpacity:"0"}),(0,n.jsx)("stop",{style:{stopColor:m}}),(0,n.jsx)("stop",{offset:"32.5%",style:{stopColor:f}}),(0,n.jsx)("stop",{offset:"100%",style:{stopColor:f},stopOpacity:"0"})]})})]})},sA=[{name:"Cursor",via:"MCP",logo:"https://cdn.geekflare.com/general/cursor.svg",mono:!0,output:"markdown"},{name:"Claude",via:"MCP",logo:"https://cdn.geekflare.com/general/claude.svg",output:"json"},{name:"Codex",via:"MCP",logo:"https://cdn.geekflare.com/general/codex.svg",mono:!0,output:"json"},{name:"n8n",via:"workflow",logo:"https://cdn.geekflare.com/general/n8n-integration.svg",wide:!0,output:"screenshot"},{name:"Python",via:"SDK",logo:"https://cdn.geekflare.com/general/python.svg",output:"pdf"},{name:"cURL",via:"REST",logo:"https://cdn.geekflare.com/general/curl.svg",output:"json"}],sE=[{key:"markdown",label:"Markdown",Icon:l},{key:"json",label:"JSON",Icon:r.Braces},{key:"screenshot",label:"Screenshot",Icon:o.FileImage},{key:"pdf",label:"PDF",Icon:a.FileText}],sV=(0,s.forwardRef)(function(t,e){let{client:i,active:s}=t;return(0,n.jsxs)("div",{ref:e,className:(0,sM.cn)("relative z-10 flex h-10 items-center gap-2 rounded-full border bg-gf-panel py-1 pr-1 pl-1 text-left transition-[border-color,box-shadow,opacity] duration-300 sm:pr-3.5",s?"border-gf-2":"border-gf-line"),children:[(0,n.jsx)("span",{className:"grid size-8 shrink-0 place-items-center rounded-full bg-gf-sunk",children:(0,n.jsx)("img",{src:i.logo,alt:"",width:16,height:16,className:(0,sM.cn)("object-contain",i.wide?"size-5":"size-4"),style:i.mono?{filter:"var(--gf-mono-logo-filter)"}:void 0})}),(0,n.jsxs)("span",{className:"hidden min-w-0 sm:block",children:[(0,n.jsx)("span",{className:"block text-[12.5px] leading-tight font-semibold whitespace-nowrap",children:i.name}),(0,n.jsx)("span",{className:"block font-gf-mono text-[10px] leading-tight text-gf-quiet",children:i.via})]}),(0,n.jsx)("span",{className:"sr-only sm:hidden",children:i.name})]})}),sk=(0,s.forwardRef)(function(t,e){let{label:i,Icon:s,active:r}=t;return(0,n.jsxs)("div",{ref:e,className:(0,sM.cn)("relative z-10 flex h-10 items-center gap-2 rounded-full border bg-gf-panel py-1 pr-1 pl-1 transition-[border-color,box-shadow,opacity] duration-300 sm:pr-3.5",r?"border-gf-brand":"border-gf-line"),children:[(0,n.jsx)("span",{className:(0,sM.cn)("grid size-8 shrink-0 place-items-center rounded-full transition-colors duration-300",r?"bg-gf-accent-soft text-gf-accent":"bg-gf-sunk text-gf-dim"),children:(0,n.jsx)(s,{"aria-hidden":!0,
1className:"size-4",strokeWidth:2})}),(0,n.jsx)("span",{className:"hidden font-gf-mono text-[12px] whitespace-nowrap sm:block",children:i})]})});t.s(["HeroBeam",0,function(){let{clients:t=sA,outputs:e=sE}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=(0,s.useRef)(null),r=(0,s.useRef)(null),[o]=(0,s.useState)(()=>t.map(()=>(0,s.createRef)())),[a]=(0,s.useState)(()=>e.map(()=>(0,s.createRef)())),[l,u]=(0,s.useState)(0),[h,c]=(0,s.useState)(!1);(0,s.useEffect)(()=>{if(h||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let e=setInterval(()=>u(e=>(e+1)%t.length),2800);return()=>clearInterval(e)},[h,t.length]);let d=t[l],p=e.findIndex(t=>t.key===d.output);return(0,n.jsxs)("div",{ref:i,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),className:"relative grid h-[400px] w-full grid-cols-[auto_1fr_auto] items-center gap-3 px-1 py-5 sm:px-2",children:[(0,n.jsx)("div",{className:"flex h-full flex-col justify-between",children:t.map((t,e)=>(0,n.jsx)(sV,{ref:o[e],client:t,active:e===l},t.name))}),(0,n.jsx)("div",{className:"flex justify-center",children:(0,n.jsxs)("div",{ref:r,className:"relative z-10 grid size-[76px] place-items-center",children:[(0,n.jsx)("span",{"aria-hidden":!0,className:"absolute inset-0 animate-gf-halo rounded-[22px] bg-gf-brand/25"}),(0,n.jsx)("span",{className:"relative grid size-[76px] place-items-center rounded-[22px] border border-gf-brand bg-gf-panel",children:(0,n.jsx)("img",{src:"https://cdn.geekflare.com/general/favicon-transparent.png",alt:"Geekflare",width:38,height:38,className:"size-[38px]"})})]})}),(0,n.jsx)("div",{className:"flex h-full flex-col justify-center gap-[34px]",children:e.map((t,e)=>(0,n.jsx)(sk,{ref:a[e],label:t.label,Icon:t.Icon,active:e===p},t.key))}),t.map((t,e)=>(0,n.jsx)(sC,{containerRef:i,fromRef:o[e],toRef:r,fromSide:"right",toSide:"left",pathColor:e===l?"var(--gf-2)":"var(--gf-line-2)",pathOpacity:e===l?.55:1,pathWidth:e===l?2:1.5,gradientStartColor:"var(--gf-2)",gradientStopColor:"var(--gf-2)",duration:e===l?2.2:4.5,delay:.35*e},"in-".concat(t.name))),e.map((t,e)=>(0,n.jsx)(sC,{containerRef:i,fromRef:r,toRef:a[e],fromSide:"right",toSide:"left",pathColor:e===p?"var(--gf-brand)":"var(--gf-line-2)",pathOpacity:e===p?.45:1,pathWidth:e===p?2:1.5,gradientStartColor:"var(--gf-brand)",gradientStopColor:"#ffb094",duration:e===p?2.2:4.5,delay:.6+.3*e},"out-".concat(t.key)))]})}],58920)},37806,47414,t=>{"use strict";var e=t.i(71645);let i=(0,e.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});t.s(["MotionConfigContext",0,i],37806),t.s(["useConstant",0,function(t){let i=(0,e.useRef)(null);return null===i.current&&(i.current=t()),i.current}],47414)},74008,t=>{"use strict";var e=t.i(71645);let i="u">typeof window?e.useLayoutEffect:e.useEffect;t.s(["useIsomorphicLayoutEffect",0,i],74008)},3559,t=>{"use strict";let e=(0,t.i(75254).default)("file-image",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]]);t.s(["FileImage",0,e],3559)},29462,66857,28409,t=>{"use strict";var e=t.i(63074),i=t.i(76959),n=t.i(65566),s=t.i(56512);function r(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2e4,n=arguments.length>3?arguments[3]:void 0,s=0,r=t.next(s);for(null==n||n.push(r.value);!r.done&&s<i;)s+=e,r=t.next(s),null==n||n.push(r.value);return s>=i?1/0:s}t.s(["calcGeneratorDuration",0,r,"maxGeneratorDuration",0,2e4],66857);let o=.01,a=2,l=.005,u=.5;function h(t,e){return t*Math.sqrt(1-e*e)}let c=["duration","bounce"],d=["stiffness","damping","mass"];function p(t,e){return e.some(e=>void 0!==t[e])}function m(){let t,m,f,v=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.3,g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.3,y="object"!=typeof v?{visualDuration:v,keyframes:[0,1],bounce:g}:v,x=y.keyframes[0],b=y.keyframes[y.keyframes.length-1],w={done:!1,value:x},{stiffness:S,damping:T,mass:P,duration:M,velocity:C,isResolvedFromDuration:A}=function(t){let s={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!p(t,d)&&p(t,c))if(s.velocity=0,t.visualDuration){let e=2*Math.PI/(1.2*t.visualDuration),n=e*e,r=2*(0,i.clamp)(.05,1,1-(t.bounce||0))*Math.sqrt(n);s={...s,mass:1,stiffness:n,damping:r}}else{let r=function(t){let s,r,{duration:o=800,bounce:a=.3,velocity:l=0,mass:u=1}=t;(0,n.warning)(o<=(0,e.secondsToMilliseconds)(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let c=1-a;c=(0,i.clamp)(.05,1,c),o=(0,i.clamp)(.01,10,(0,e.millisecondsToSeconds)(o)),c<1?(s=t=>{let e=t*c,i=e*o;return .001-(e-l)/h(t,c)*Math.exp(-i)},r=t=>{let e=t*c*o,i=c*c*t*t*o,n=Math.exp(-e),r=h(t*t,c);return(e*l+l-i)*n*(-s(t)+.001>0?-1:1)/r}):(s=t=>-.001+Math.exp(-t*o)*((t-l)*o+1),r=t=>o*o*(l-t)*Math.exp(-t*o));
1let d=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(s,r,5/o);if(o=(0,e.secondsToMilliseconds)(o),isNaN(d))return{stiffness:100,damping:10,duration:o};{let t=d*d*u;return{stiffness:t,damping:2*c*Math.sqrt(u*t),duration:o}}}({...t,velocity:0});(s={...s,...r,mass:1}).isResolvedFromDuration=!0}return s}({...y,velocity:-(0,e.millisecondsToSeconds)(y.velocity||0)}),E=T/(2*Math.sqrt(S*P)),V=(0,e.millisecondsToSeconds)(Math.sqrt(S/P)),k=E*V,D={target:b,delta:b-x,velocity:C||0,restSpeed:0,restDelta:0},R=()=>{let t=5>Math.abs(D.delta);D.restSpeed=y.restSpeed||(t?o:a),D.restDelta=y.restDelta||(t?l:u)};if(R(),E<1){let e=h(V,E),i={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};f=()=>{i.A=(D.velocity+k*D.delta)/e,i.sinC=k*i.A+D.delta*e,i.cosC=k*D.delta-i.A*e};let n=t=>{t!==i.t&&(i.t=t,i.env=Math.exp(-k*t),i.sin=Math.sin(e*t),i.cos=Math.cos(e*t))};t=t=>(n(t),D.target-i.env*(i.A*i.sin+D.delta*i.cos)),m=t=>(n(t),i.env*(i.sinC*i.sin+i.cosC*i.cos))}else if(1===E){t=t=>D.target-Math.exp(-V*t)*(D.delta+(D.velocity+V*D.delta)*t);let e={C:0};f=()=>{e.C=D.velocity+V*D.delta},m=t=>Math.exp(-V*t)*(V*e.C*t-D.velocity)}else{let e=V*Math.sqrt(E*E-1);t=t=>{let i=Math.exp(-k*t),n=Math.min(e*t,300);return D.target-i*((D.velocity+k*D.delta)*Math.sinh(n)+e*D.delta*Math.cosh(n))/e};let i={P:0,sinh:0,cosh:0};f=()=>{i.P=(D.velocity+k*D.delta)/e,i.sinh=k*i.P-D.delta*e,i.cosh=k*D.delta-i.P*e},m=t=>{let n=Math.exp(-k*t),s=Math.min(e*t,300);return n*(i.sinh*Math.sinh(s)+i.cosh*Math.cosh(s))}}f();let j=!p(y,d)&&p(y,c),L=A&&M||null,I={calculatedDuration:L,retarget:(t,i)=>{D.target=t[t.length-1],D.delta=D.target-t[0],D.velocity=j?0:-(0,e.millisecondsToSeconds)(i),y.restSpeed&&y.restDelta||R(),I.calculatedDuration=L,w.done=!1,f()},velocity:t=>(0,e.secondsToMilliseconds)(m(t)),next:i=>{let n=t(i);return A?w.done=i>=M:w.done=Math.abs((0,e.secondsToMilliseconds)(m(i)))<=D.restSpeed&&Math.abs(D.target-n)<=D.restDelta,w.value=w.done?D.target:n,w},toString:()=>{let t=Math.min(r(I),2e4),e=(0,s.generateLinearEasing)(e=>I.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return I}m.applyToOptions=t=>{let i=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2?arguments[2]:void 0,s=n({...t,keyframes:[0,i]}),o=Math.min(r(s),2e4);return{type:"keyframes",ease:t=>s.next(o*t).value/i,duration:(0,e.millisecondsToSeconds)(o)}}(t,100,m);return t.ease=i.ease,t.duration=(0,e.secondsToMilliseconds)(i.duration),t.type="keyframes",t},t.s(["spring",0,m],28409),t.s(["inertia",0,function(t){let e,i,{keyframes:n,velocity:s=0,power:r=.8,timeConstant:o=325,bounceDamping:a=10,bounceStiffness:l=500,modifyTarget:u,min:h,max:c,restDelta:d=.5,restSpeed:p}=t,f=n[0],v={done:!1,value:f},g=r*s,y=f+g,x=void 0===u?y:u(y);x!==y&&(g=x-f);let b=t=>-g*Math.exp(-t/o),w=t=>{let e=b(t);v.done=Math.abs(e)<=d,v.value=v.done?x:x+e},S=t=>{let n;if((n=v.value)<h||n>c){var s;e=t,i=m({keyframes:[v.value,(s=v.value,void 0===h?c:void 0===c||Math.abs(h-s)<Math.abs(c-s)?h:c)],velocity:-b(t)/o*1e3,damping:a,stiffness:l,restDelta:d,restSpeed:p})}};return S(0),{calculatedDuration:null,next:t=>{let n=!1;return(i||void 0!==e||(n=!0,w(t),S(t)),void 0!==e&&t>=e)?i.next(t-e):(n||w(t),v)}}}],29462)},68514,44230,12008,t=>{"use strict";var e=t.i(37025),i=t.i(93544),n=t.i(32943),s=t.i(46791),r=t.i(76959),o=t.i(65566),a=t.i(60830),l=t.i(38638),u=t.i(83920),h=t.i(3163);function c(t,e){let{clamp:i=!0,ease:n,mixer:c}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},d=t.length;if((0,o.invariant)(d===e.length,"Both input and output ranges must be the same length","range-length"),1===d)return()=>e[0];if(2===d&&e[0]===e[1])return()=>e[1];let p=t[0]===t[1];t[0]>t[d-1]&&(t=[...t].reverse(),e=[...e].reverse());let m=function(t,e,i){let n=[],r=i||s.MotionGlobalConfig.mix||h.mix,o=t.length-1;for(let i=0;i<o;i++){let s=r(t[i],t[i+1]);if(e){let t=Array.isArray(e)?e[i]||a.noop:e;s=(0,l.pipe)(t,s)}n.push(s)}return n}(e,n,c),f=m.length,v=i=>{if(p&&i<t[0])return e[0];let n=0;if(f>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let s=(0,u.progress)(t[n],t[n+1],i);return m[n](s)};return i?e=>v((0,r.clamp)(t[0],t[d-1],e)):v}t.s(["interpolate",0,c],44230);var d=t.i(706);t.s(["keyframes",0,function(t){var o;let a,{duration:l=300,keyframes:p,times:m,ease:f="easeInOut"}=t,v=(0,i.isEasingArray)(f)?f.map(n.easingDefinitionToFunction):(0,n.easingDefinitionToFunction)(f),g={done:!1,value:p[0]};if(2===p.length&&!Array.isArray(v)&&(!m||2!==m.length||0===m[0]&&1===m[1])){let[t,e]=p,i=t===e?void 0:(s.MotionGlobalConfig.mix||h.mix)(t,e);return{calculatedDuration:l,next:t=>(g.value=i?i(v(l>0?(0,r.clamp)(0,1,t/l):1)):e,g.done=t>=l,g)}}let y=c((o=m&&m.length===p.length?m:(!function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let s=(0,u.progress)(0,e,n);t.push((0,d.mixNumber)(i,1,s))}}(a=[0],p.length-1),a),o.map(t=>t*l)),p,{ease:Array.isArray(v)?v:p.map(()=>v||e.easeInOut).splice(0,p.length-1)});return{calculatedDuration:l,next:t=>(g.value=y(t),g.done=t>=l,g)}}],68514);var p=t.i(25791);t.s(["calcGeneratorVelocity",0,function(t,e){var i,n;let s,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return e<=0?r:t.velocity?t.velocity(e):(i=e=>
1t.next(e).value,n=t.next(e).value,s=Math.max(e-5,0),(0,p.velocityPerSecond)(n-i(s),e-s))}],12008)},79294,t=>{"use strict";t.s(["WithPromise",0,class{get finished(){return this._finished||(this._finished=this.isResolved?Promise.resolve():new Promise(t=>{this._resolve=t})),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){var t;this.isResolved=!0,null==(t=this._resolve)||t.call(this)}then(t,e){return this.finished.then(t,e)}constructor(){this.isResolved=!1}}])},19928,t=>{"use strict";let e=t=>e=>"string"==typeof e&&e.startsWith(t),i=e("--"),n=e("var(--"),s=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;t.s(["containsCSSVariable",0,function(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")},"isCSSVariableName",0,i,"isCSSVariableToken",0,t=>!!n(t)&&s.test(t.split("/*")[0].trim())])},44573,t=>{"use strict";var e=t.i(29462),i=t.i(68514),n=t.i(28409);let s={decay:e.inertia,inertia:e.inertia,tween:i.keyframes,keyframes:i.keyframes,spring:n.spring};t.s(["replaceTransitionType",0,function(t){"string"==typeof t.type&&(t.type=s[t.type])}])},56512,t=>{"use strict";t.s(["generateLinearEasing",0,function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,n="",s=Math.max(Math.round(e/i),2);for(let e=0;e<s;e++)n+=Math.round(1e4*t(e/(s-1)))/1e4+", ";return"linear(".concat(n.substring(0,n.length-2),")")}])},87022,51571,t=>{"use strict";var e=t.i(60830),i=t.i(46791);let n=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function s(t,e){let s=!1,r=!0,o={delta:0,timestamp:0,isProcessing:!1},a=()=>s=!0,l=n.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,n=!1,s=!1,r=new Set,o={delta:0,timestamp:0,isProcessing:!1};function a(e){r.has(e)&&(i.add(e),t()),e(o)}let l={schedule:function(t){let s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=o&&n?e:i;return s&&r.add(t),a.add(t),t},cancel:t=>{i.delete(t),r.delete(t)},process:t=>{if(o=t,n){s=!0;return}n=!0;let r=e;e=i,i=r,e.forEach(a),e.clear(),n=!1,s&&(s=!1,l.process(t))}};return l}(a),t),{}),{setup:u,read:h,resolveKeyframes:c,preUpdate:d,update:p,preRender:m,render:f,postRender:v}=l,g=()=>{let n=i.MotionGlobalConfig.useManualTiming,a=n?o.timestamp:performance.now();s=!1,n||(o.delta=r?1e3/60:Math.max(Math.min(a-o.timestamp,40),1)),o.timestamp=a,o.isProcessing=!0,u.process(o),h.process(o),c.process(o),d.process(o),p.process(o),m.process(o),f.process(o),v.process(o),o.isProcessing=!1,s&&e&&(r=!1,t(g))};return{schedule:n.reduce((e,i)=>{let n=l[i];return e[i]=function(e){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!s&&(s=!0,r=!0,o.isProcessing||t(g)),n.schedule(e,i,a)},e},{}),cancel:t=>{for(let e=0;e<n.length;e++)l[n[e]].cancel(t)},state:o,steps:l}}t.s(["createRenderBatcher",0,s],51571);let{schedule:r,cancel:o,state:a,steps:l}=s("u">typeof requestAnimationFrame?requestAnimationFrame:e.noop,!0);t.s(["cancelFrame",0,o,"frame",0,r,"frameData",0,a,"frameSteps",0,l],87022)},96173,t=>{"use strict";let e;var i=t.i(46791),n=t.i(87022);function s(){e=void 0}let r={now:()=>(void 0===e&&r.set(n.frameData.isProcessing||i.MotionGlobalConfig.useManualTiming?n.frameData.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(s)}};t.s(["time",0,r])},3163,t=>{"use strict";var e=t.i(60720),i=t.i(38638),n=t.i(65566),s=t.i(19928),r=t.i(79444),o=t.i(69577),a=t.i(63011),l=t.i(22660),u=t.i(48393),h=t.i(66820),c=t.i(8618),d=t.i(706);let p=(t,e,i)=>{let n=t*t,s=i*(e*e-n)+n;return s<0?0:Math.sqrt(s)},m=[a.hex,h.rgba,l.hsla];function f(t){let e=m.find(e=>e.test(t));if(!e)return(0,n.warning)(!1,"'".concat(t,"' is not an animatable color. Use the equivalent color code instead."),"color-not-animatable"),!1;let i=e.parse(t);return e===l.hsla&&(i=(0,u.hslaToRgba)(i)),i}let v=(t,e)=>{let i=f(t),n=f(e);if(!i||!n)return(0,c.mixImmediate)(t,e);let s={...i};return t=>(s.red=p(i.red,n.red,t),s.green=p(i.green,n.green,t),s.blue=p(i.blue,n.blue,t),s.alpha=(0,d.mixNumber)(i.alpha,n.alpha,t),h.rgba.transform(s))},g=new Set(["none","hidden"]);function y(t,e){return i=>(0,d.mixNumber)(t,e,i)}function x(t){return"number"==typeof t?y:"string"==typeof t?(0,s.isCSSVariableToken)(t)?c.mixImmediate:r.color.test(t)?v:S:Array.isArray(t)?b:"object"==typeof t?r.color.test(t)?v:w:c.mixImmediate}function b(t,e){let i=[...t],n=i.length,s=t.map((t,i)=>x(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=s[e](t);return i}}function w(t,e){let i={...t,...e},n={};for(let s in i)void 0!==t[s]&&void 0!==e[s]&&(n[s]=x(t[s])(t[s],e[s]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let S=(t,e)=>{let s=o.complex.createTransformer(e),r=(0,o.analyseComplexValue)(t),a=(0,o.analyseComplexValue)(e);if(!(r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length))return(0,n.warning)(!0,"Complex values '".concat(t,"' and '").concat(e,"' too different to mix. Ensure all c
1olors 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"),(0,c.mixImmediate)(t,e);if(g.has(t)&&!a.values.length||g.has(e)&&!r.values.length)return g.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return(0,i.pipe)(b(function(t,e){let i=[],n={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){var s;let o=e.types[r],a=t.indexes[o][n[o]],l=null!=(s=t.values[a])?s:0;i[r]=l,n[o]++}return i}(r,a),a.values),s)},T=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;t.s(["mix",0,function(t,i,n){if("number"==typeof t&&"number"==typeof i&&"number"==typeof n)return(0,d.mixNumber)(t,i,n);if("string"==typeof t&&"string"==typeof i){let n=function(t,i){let n=T.exec(t);if(!n)return;let s=T.exec(i);if(!s||n[2]!==s[2])return;let r=n[2],o=parseFloat(n[1]),a=parseFloat(s[1]);return t=>(0,e.sanitize)((0,d.mixNumber)(o,a,t))+r}(t,i);if(n)return n}return x(t)(t,i)}],3163)},706,t=>{"use strict";t.s(["mixNumber",0,(t,e,i)=>t+(e-t)*i])},49652,t=>{"use strict";t.s(["resolveElements",0,function(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){var n;let s=document;e&&(s=e.current);let r=null!=(n=null==i?void 0:i[t])?n:s.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t).filter(t=>null!=t)}])},86427,t=>{"use strict";t.i(47167);var e=t.i(70596),i=t.i(25791),n=t.i(96173),s=t.i(87022);let r={current:void 0};class o{setCurrent(t){this.current=t,this.updatedAt=n.time.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.current;this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,i){var n;return"change"===t?this.onChangeSubscribe(i):((n=this.events)[t]||(n[t]=new e.SubscriptionManager)).add(i)}onChangeSubscribe(t){let{events:i}=this;return i.change||this.changeSubscriber?(i.change||(i.change=new e.SubscriptionManager,i.change.add(this.changeSubscriber),this.changeSubscriber=void 0),i.change.add(t)):this.changeSubscriber=t,()=>{if(this.changeSubscriber===t)this.changeSubscriber=void 0;else{var e;null==(e=i.change)||e.remove(t)}this.stopIfUnobserved()}}stopIfUnobserved(){s.frame.read(()=>{var t;this.changeSubscriber||(null==(t=this.events.change)?void 0:t.getSize())||this.stop()})}clearListeners(){for(let t in this.changeSubscriber=void 0,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){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.notifyChange()}notifyChange(){let{current:t,changeSubscriber:e}=this;if(e)e(t);else{var i;null==(i=this.events.change)||i.notify(t)}}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return r.current&&r.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=n.time.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,i.velocityPerSecond)(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{var i;let n;this.hasAnimated=!0;let s=!1;n=t(()=>{var t;s=!0,null==(t=this.events.animationComplete)||t.notify(),this.animation===n&&this.clearAnimation(),e()}),s||(this.animation=n),null==(i=this.events.animationStart)||i.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){var t,e;null==(t=this.dependents)||t.clear(),null==(e=this.events.destroy)||e.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=n.time.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.notifyChange(),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}}t.s(["collectMotionValues",0,r,"motionValue",0,function(t,e){return new o(t,e)}])},48393,8618,t=>{"use strict";function e(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}t.s(["hslaToRgba",0,function(t){let{hue:i,saturation:n,lightness:s,alpha:r}=t;i/=360,s/=100;let o=0,a=0,l=0;if(n/=100){let t=s<.5?s*(1+n):s+n-s*n,r=2*s-t;o=e(r,t,i+1/3),a=e(r,t,i),l=e(r,t,i-1/3)}else o=a=l=s;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*l),alpha:r}}],48393),t.s(["mixImmediate",0,function(t,e){return i=>i>0?e:t}],8618)},79444,30677,66820,63011,65091,22660,69577,t=>{"use strict";var e=t.i(76959),i=t.i(76307),n=t.i(60720);let s=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;t.s(["floatRegex",0,s],30677);let r=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,o=(t,e)=>i=>!!("string"==typeof i&&r.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),a=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[r,o,a,l]=n.match(s);return{[t]:parseFloat(r),[e]:parseFloat(o),[i]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}},l={...i.number,transform:t=>Math.round((0,e.clamp)(0,255,t))},u={test:o("rgb","red"),parse:a("red","green","blue"),transform:t=>{let{red:e,green:s,blue:r,alpha:o=1}=t;return"rgba("+l.transform(e)+", "+l.transform(s)+", "+l.transform(r)+", "+(0,n.sanitize)(i.alpha.transform(o))+")"}};t.s(["rgba",0,u],66820);let h={test:o("#"),parse:function(t){let e="",i="",n="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alph
1a:s?parseInt(s,16)/255:1}},transform:u.transform};t.s(["hex",0,h],63011);let c=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>"".concat(e).concat(t)}),d=c("deg"),p=c("%"),m=c("px"),f=c("vh"),v=c("vw"),g={...p,parse:t=>p.parse(t)/100,transform:t=>p.transform(100*t)};t.s(["degrees",0,d,"percent",0,p,"progressPercentage",0,g,"px",0,m,"vh",0,f,"vw",0,v],65091);let y={test:o("hsl","hue"),parse:a("hue","saturation","lightness"),transform:t=>{let{hue:e,saturation:s,lightness:r,alpha:o=1}=t;return"hsla("+Math.round(e)+", "+p.transform((0,n.sanitize)(s))+", "+p.transform((0,n.sanitize)(r))+", "+(0,n.sanitize)(i.alpha.transform(o))+")"}};t.s(["hsla",0,y],22660);let x={test:t=>u.test(t)||h.test(t)||y.test(t),parse:t=>u.test(t)?u.parse(t):y.test(t)?y.parse(t):h.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?u.transform(t):y.transform(t),getAnimatableNone:t=>{let e=x.parse(t);return e.alpha=0,x.transform(e)}};t.s(["color",0,x],79444);let b=new RegExp(s.source),w=RegExp(/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu.source,"i"),S="number",T="color",P=/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 M(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},s=[],r=0,o=e.replace(P,t=>(x.test(t)?(n.color.push(r),s.push(T),i.push(x.parse(t))):t.startsWith("var(")?(n.var.push(r),s.push("var"),i.push(t)):(n.number.push(r),s.push(S),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:o,indexes:n,types:s}}function C(t){let{split:e,types:i}=t,s=e.length;return t=>{let r="";for(let o=0;o<s;o++)if(r+=e[o],void 0!==t[o]){let e=i[o];e===S?r+=(0,n.sanitize)(t[o]):e===T?r+=x.transform(t[o]):r+=t[o]}return r}}t.s(["analyseComplexValue",0,M,"complex",0,{test:function(t){return isNaN(t)&&"string"==typeof t&&(b.test(t)||w.test(t))},parse:function(t){return M(t).values},createTransformer:function(t){return C(M(t))},getAnimatableNone:function(t){let e=M(t);return C(e)(e.values.map((t,i)=>((t,e)=>"number"==typeof t?(null==e?void 0:e.trim().endsWith("/"))?t:0:"number"==typeof t?0:x.test(t)?x.getAnimatableNone(t):t)(t,e.split[i])))}},"hasComplexValues",0,function(t){let e=t.toString();return b.test(e)||w.test(e)}],69577)},76307,t=>{"use strict";var e=t.i(76959);let i={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},n={...i,transform:t=>(0,e.clamp)(0,1,t)},s={...i,default:1};t.s(["alpha",0,n,"number",0,i,"scale",0,s])},60720,t=>{"use strict";t.s(["sanitize",0,t=>Math.round(1e5*t)/1e5])},27228,t=>{"use strict";t.s(["isMotionValue",0,t=>!!(t&&t.getVelocity)])},76959,t=>{"use strict";t.s(["clamp",0,(t,e,i)=>i>e?e:i<t?t:i])},78047,41980,91559,t=>{"use strict";var e=t.i(40254);let i=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,n=t=>e=>1-t(1-e),s=(0,e.cubicBezier)(.33,1.53,.69,.99),r=n(s),o=i(r);t.s(["backIn",0,r,"backInOut",0,o,"backOut",0,s],41980),t.s(["anticipate",0,t=>t>=1?1:(t*=2)<1?.5*r(t):.5*(2-Math.pow(2,-10*(t-1)))],78047);let a=t=>1-Math.sin(Math.acos(t)),l=n(a),u=i(a);t.s(["circIn",0,a,"circInOut",0,u,"circOut",0,l],91559)},37025,40254,93544,t=>{"use strict";var e=t.i(60830);let i=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function n(t,n,s,r){return t===n&&s===r?e.noop:e=>0===e||1===e?e:i(function(t,e,n,s,r){let o,a,l=0;do(o=i(a=e+(n-e)/2,s,r)-t)>0?n=a:e=a;while(Math.abs(o)>1e-7&&++l<12)return a}(e,0,1,t,s),n,r)}t.s(["cubicBezier",0,n],40254);let s=n(.42,0,1,1),r=n(0,0,.58,1),o=n(.42,0,.58,1);t.s(["easeIn",0,s,"easeInOut",0,o,"easeOut",0,r],37025),t.s(["isEasingArray",0,t=>Array.isArray(t)&&"number"!=typeof t[0]],93544)},60855,t=>{"use strict";t.s(["isBezierDefinition",0,t=>Array.isArray(t)&&"number"==typeof t[0]])},32943,t=>{"use strict";var e=t.i(65566),i=t.i(60830),n=t.i(78047),s=t.i(41980),r=t.i(91559),o=t.i(40254),a=t.i(37025),l=t.i(60855);let u={linear:i.noop,easeIn:a.easeIn,easeInOut:a.easeInOut,easeOut:a.easeOut,circIn:r.circIn,circInOut:r.circInOut,circOut:r.circOut,backIn:s.backIn,backInOut:s.backInOut,backOut:s.backOut,anticipate:n.anticipate};t.s(["easingDefinitionToFunction",0,t=>{if((0,l.isBezierDefinition)(t)){(0,e.invariant)(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[i,n,s,r]=t;return(0,o.cubicBezier)(i,n,s,r)}return"string"==typeof t?((0,e.invariant)(void 0!==u[t],"Invalid easing type '".concat(t,"'"),"invalid-easing-type"),u[t]):t}])},65566,t=>{"use strict";var e,i=t.i(47167);function n(t,e){return e?"".concat(t,". For more information and steps for solving, visit https://motion.dev/troubleshooting/").concat(e):t}let s=()=>{},r=()=>{};void 0!==i.default&&(null==(e=i.default.env)?void 0:e.NODE_ENV)!=="production"&&(s=(t,e,i)=>{!t&&"u">typeof console&&console.warn(n(e,i))},r=(t,e,i)=>{if(!t)throw Error(n(e,i))}),t.s(["invariant",0,r,"warning",0,s],65566)},46791,t=>{"use strict";t.s(["MotionGlobalConfig",0,{}])},60830,t=>{"use strict";t.s(["noop",0,t=>t])},38638,t=>{"use strict";t.s(["pipe",0,function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return e.reduce((t,e)=>i=>e(t(i)))}])},83920,t=>{"use strict";t.s(["progress",0,(t,e,i)=>{let n=e-t;return n?(i-t)/n:1}])},70596,33887,t=>{"use strict";function e(t,e){-1===t.indexOf(e)&&t.push(e)}function i(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}t.s(["addUniqueItem",0,e,"removeItem",0,i],33887),t.s(["SubscriptionManager",0,class{add(t){return e(this.subscriptions,t),()=>this.remove(t)}remove(t){i(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 s=0;s<n;s++){let n=this.subscriptions[s];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}constructor(){this.subscriptions=[]}}],70596)},63074,t=>{"use strict";t.s(["millisecondsToSeconds",0,t=>t/1e3,"secondsToMilliseconds",0,t=>1e3*t])},25791,t=>{"use strict";t.s(["velocityPerSecond",0,(t,e)=>e?1e3/e*t:0])}]);

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.