PageSourceSearch

https://static-assets.monzo.com/monzo-com/e2dd208e37221e4c19d9aaeb…/static/chunks/8678-7ab71c037097a3e5.js

js monzo.com collected 2026-09-24 08:29:59 UTC 140,155 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8678],{80166:function(t,e,i){i.d(e,{j:function(){return X}});class n{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t){let e=this.animations.map(e=>e.attachTimeline(t));return()=>{e.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return r(this.animations,"duration")}get iterationDuration(){return r(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(e=>e[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function r(t,e){let i=0;for(let n=0;n<t.length;n++){let r=t[n][e];null!==r&&r>i&&(i=r)}return i}class s extends n{then(t,e){return this.finished.finally(t).then(()=>{})}}var o,a=i(87508),l=i(24279),u=i(30888),h=i(33810),c=i(8506),d=i(25402),f=i(30979),p=i(87302),m=i(77781);let g=(t,e,i)=>{let n=e-t;return((i-t)%n+n)%n+t};var v=i(71334);function y(t,e){return(0,v.N)(t)?t[g(0,t.length,e)]:t}var x=i(53870),w=i(47474);function T(t){return"object"==typeof t&&!Array.isArray(t)}function P(t,e,i,n){return"string"==typeof t&&T(e)?(0,w.I)(t,i,n):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}function b(t,e,i,n){return"number"==typeof e?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):"<"===e?i:e.startsWith("<")?Math.max(0,i+parseFloat(e.slice(1))):n.get(e)??t}var S=i(86977);function A(t,e){return t.at!==e.at?t.at-e.at:null===t.value?1:null===e.value?-1:0}function M(t,e){return e.has(t)||e.set(t,{}),e.get(t)}function E(t,e){return e[t]||(e[t]=[]),e[t]}let V=t=>"number"==typeof t,D=t=>t.every(V);var C=i(16578),k=i(82609),R=i(71137),L=i(34459),j=i(74422),B=i(33933),F=i(14166);class O extends F.l{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,e){if(e in t){let i=t[e];if("string"==typeof i||"number"==typeof i)return i}}getBaseTargetFromProps(){}removeValueFromRenderState(t,e){delete e.output[t]}measureInstanceViewportBox(){return(0,B.dO)()}build(t,e){Object.assign(t.output,e)}renderInstance(t,{output:e}){Object.assign(t,e)}sortInstanceNodePosition(){return 0}}var W=i(47447);function I(t){let e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},i=(0,R.v)(t)&&!(0,L.r)(t)?new W.e(e):new j.W(e);i.mount(t),C.R.set(t,i)}function $(t){let e=new O({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});e.mount(t),C.R.set(t,e)}var U=i(79943);function N(t,e,i,n){let r=[];if((0,f.i)(t)||"number"==typeof t||"string"==typeof t&&!T(e))r.push((0,U.D)(t,T(e)&&e.default||e,i&&i.default||i));else{let s=P(t,e,n),o=s.length;(0,m.k)(!!o,"No valid elements provided.","no-valid-elements");for(let t=0;t<o;t++){let n=s[t];(0,m.k)(null!==n,"You're trying to perform an animation on null. Ensure that selectors are correctly finding elements and refs are correctly hydrated.","animate-null");let a=n instanceof Element?I:$;C.R.has(n)||a(n);let l=C.R.get(n),u={...i};"delay"in u&&"function"==typeof u.delay&&(u.delay=u.delay(t,o)),r.push(...(0,k.w)(l,{...e,transition:u},{}))}}return r}let X=function(t,e,i){let n,r=[];if(Array.isArray(t)&&t.some(Array.isArray))r=function(t,e,i){let n=[];return(function(t,{defaultTransition:e={},...i}={},n,r){let s=e.duration||.3,o=new Map,l=new Map,g={},v=new Map,w=0,T=0,V=0;for(let i=0;i<t.length;i++){let o=t[i];if("string"==typeof o){v.set(o,T);continue}if(!Array.isArray(o)){v.set(o.name,b(T,o.at,w,v));continue}let[x,A,C={}]=o;void 0!==C.at&&(T=b(T,C.at,w,v));let k=0,R=(t,i,n,o=0,l=0)=>{let f=Array.isArray(t)?t:[t],{delay:g=0,times:v=(0,u.Y)(f),type:x="keyframes",repeat:w,repeatType:P,repeatDelay:b=0,...A}=i,{ease:M=e.ease||"easeOut",duration:E}=i,C="function"==typeof g?g(o,l):g,R=f.length,L=(0,h.x)(x)?x:r?.[x||"keyframes"];if(R<=2&&L){let t=100;2===R&&D(f)&&(t=Math.abs(f[1]-f[0]));let e={...A};void 0!==E&&(e.duration=(0,p.w)(E));let i=(0,c.S)(e,t,L);M=i.ease,E=i.duration}E??(E=s);let j=T+C;1===v.length&&0===v[0]&&(v[1]=1);let B=v.length-f.length;if(B>0&&(0,d.c)(v,B),1===f.length&&f.unshift(null),w){(0,m.k)(w<20,"Repeat count too high, must be less than 20","repeat-count-high"),E*=w+1;let t=[...f],e=[...v],i=[...M=Array.isArray(M)?[...M]:[M]];for(let n=0;n<w;n++){f.push(...t);for(let r=0;r<t.length;r++)v.push(e[r]+(n+1)),M.push(0===r?"linear":y(i,r-1))}!function(t,e){for(let i=0;i<t.length;i++)t[i]=t[i]/(e+1)}(v,w)}let F=j+E;
1(function(t,e,i,n,r,s){!function(t,e,i){for(let n=0;n<t.length;n++){let r=t[n];r.at>e&&r.at<i&&((0,a.cl)(t,r),n--)}}(t,r,s);for(let o=0;o<e.length;o++)t.push({value:e[o],at:(0,S.t)(r,s,n[o]),easing:y(i,o)})})(n,f,M,v,j,F),k=Math.max(C+E,k),V=Math.max(F,V)};if((0,f.i)(x))R(A,C,E("default",M(x,l)));else{let t=P(x,A,n,g),e=t.length;for(let i=0;i<e;i++){let n=M(t[i],l);for(let t in A)R(A[t],C&&C[t]?{...C,...C[t]}:{...C},E(t,n),i,e)}}w=T,T+=k}return l.forEach((t,n)=>{for(let r in t){let s=t[r];s.sort(A);let a=[],l=[],u=[];for(let t=0;t<s.length;t++){let{at:e,value:i,easing:n}=s[t];a.push(i),l.push((0,x.Y)(0,V,e)),u.push(n||"easeOut")}0!==l[0]&&(l.unshift(0),a.unshift(a[0]),u.unshift("easeInOut")),1!==l[l.length-1]&&(l.push(1),a.push(null)),o.has(n)||o.set(n,{keyframes:{},transition:{}});let h=o.get(n);h.keyframes[r]=a,h.transition[r]={...e,duration:V,ease:u,times:l,...i}}}),o})(t,e,i,{spring:l.S}).forEach(({keyframes:t,transition:e},i)=>{n.push(...N(i,t,e))}),n}(t,e,void 0);else{let{onComplete:s,...a}=i||{};"function"==typeof s&&(n=s),r=N(t,e,a,o)}let g=new s(r);return n&&g.finished.then(n),o&&(o.animations.push(g),g.finished.then(()=>{(0,a.cl)(o.animations,g)})),g}},79943:function(t,e,i){i.d(e,{D:function(){return o}});var n=i(30979),r=i(41804),s=i(85997);function o(t,e,i){let o=(0,n.i)(t)?t:(0,r.BX)(t);return o.start((0,s.v)("",o,e,i)),o.animation}},85997:function(t,e,i){i.d(e,{v:function(){return tP}});var n=i(99890);function r(t){t.duration=0,t.type="keyframes"}var s=i(48365),o=i(87856),a=i(19009),l=i(87302),u=i(87977),h=i(72387),c=i(70865);let d=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>s.Wi.update(e,t),stop:()=>(0,s.Pn)(e),now:()=>s.frameData.isProcessing?s.frameData.timestamp:u.X.now()}};var f=i(24279),p=i(38922);function m(t,e,i){let n=Math.max(e-5,0);return(0,p.R)(i-t(n),e-n)}function g({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,d;let p=t[0],g={done:!1,value:p},v=t=>void 0!==a&&t<a||void 0!==l&&t>l,y=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)<Math.abs(l-t)?a:l,x=i*e,w=p+x,T=void 0===o?w:o(w);T!==w&&(x=T-p);let P=t=>-x*Math.exp(-t/n),b=t=>T+P(t),S=t=>{let e=P(t),i=b(t);g.done=Math.abs(e)<=u,g.value=g.done?T:i},A=t=>{v(g.value)&&(c=t,d=(0,f.S)({keyframes:[g.value,y(g.value)],velocity:m(b,t,g.value),damping:r,stiffness:s,restDelta:u,restSpeed:h}))};return A(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,S(t),A(t)),void 0!==c&&t>=c)?d.next(t-c):(e||S(t),g)}}}var v=i(87363);let y=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function x(t,e,i,n){if(t===e&&i===n)return v.Z;let r=e=>(function(t,e,i,n,r){let s,o;let a=0;do(s=y(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o})(e,0,1,t,i);return t=>0===t||1===t?t:y(r(t),e,n)}let w=x(.42,0,1,1),T=x(0,0,.58,1),P=x(.42,0,.58,1);var b=i(71334),S=i(77781),A=i(26183),M=i(42196);let E=x(.33,1.53,.69,.99),V=(0,M.M)(E),D=(0,A.o)(V),C=t=>t>=1?1:(t*=2)<1?.5*V(t):.5*(2-Math.pow(2,-10*(t-1)));var k=i(85548);let R=t=>Array.isArray(t)&&"number"==typeof t[0],L={linear:v.Z,easeIn:w,easeInOut:P,easeOut:T,circIn:k.Z7,circInOut:k.X7,circOut:k.Bn,backIn:V,backInOut:D,backOut:E,anticipate:C},j=t=>"string"==typeof t,B=t=>{if(R(t)){(0,S.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,r]=t;return x(e,i,n,r)}return j(t)?((0,S.k)(void 0!==L[t],`Invalid easing type '${t}'`,"invalid-easing-type"),L[t]):t};var F=i(8574),O=i(30888);function W({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){let r=(0,b.N)(n)?n.map(B):B(n),s={done:!1,value:e[0]},o=(i&&i.length===e.length?i:(0,O.Y)(e)).map(e=>e*t),a=(0,F.s)(o,e,{ease:Array.isArray(r)?r:e.map(()=>r||P).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=a(e),s.done=e>=t,s)}}var I=i(10854);let $=t=>null!==t;function U(t,{repeat:e,repeatType:i="loop"},n,r=1){let s=t.filter($),o=r<0||e&&"loop"!==i&&e%2==1?0:s.length-1;return o&&void 0!==n?n:s[o]}let N={decay:g,inertia:g,tween:W,keyframes:W,spring:f.S};function X(t){"string"==typeof t.type&&(t.type=N[t.type])}class z{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let Y=t=>t/100;class H extends z{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==u.X.now()&&this.tick(u.X.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},h.P.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;X(t);let{type:e=W,repeat:i=0,repeatDelay:n=0,repeatType:r,velocity:s=0}=t,{keyframes:a}=t,l=e||W;l!==W&&"number"!=typeof a[0]&&(this.mixKeyframes=(0,o.z)(Y,(0,c.C)(a[0],a[1])),a=[0,100]);let u=l({...t,keyframes:a});"mirror"===r&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-s})),null===u.calculatedDuration&&(u.calculatedDuration=(0,I.i)(u));let{calculatedDuration:h}=u;this.calculatedDuration=h,this.resolvedDuration=h+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=u}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let i;let{generator:n,totalDuration:r,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:l,calculatedDuration:u}=this;if(null===this.startTime)return n.next(0);
1let{delay:h=0,keyframes:c,repeat:d,repeatType:f,repeatDelay:p,type:m,onUpdate:v,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let x=this.currentTime-h*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?x<0:x>r;this.currentTime=Math.max(x,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let T=this.currentTime,P=n;if(d){let t=Math.min(this.currentTime,r)/l,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===f?(i=1-i,p&&(i-=p/l)):"mirror"===f&&(P=o)),T=(0,a.u)(0,1,i)*l}w?(this.delayState.value=c[0],i=this.delayState):i=P.next(T),s&&!w&&(i.value=s(i.value));let{done:b}=i;w||null===u||(b=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return S&&m!==g&&(i.value=U(c,this.options,y,this.speed)),v&&v(i.value),S&&this.finish(),i}then(t,e){return this.finished.then(t,e)}get duration(){return(0,l.X)(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+(0,l.X)(t)}get time(){return(0,l.X)(this.currentTime)}set time(t){t=(0,l.w)(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let e=this.generator.next(t).value;return m(t=>this.generator.next(t).value,t,e)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(u.X.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=(0,l.X)(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=d,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(u.X.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,h.P.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}var K=i(30731),Z=i(724);let G=t=>t.startsWith("--");function _(t,e,i){G(e)?t.style.setProperty(e,i):t.style[e]=i}var q=i(11404),J=i(82504);let Q=(0,i(3719).p)(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing");var tt=i(35881);let te=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,ti={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])};var tn=i(33810);class tr extends z{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;let{element:e,name:i,keyframes:n,pseudoElement:r,allowFlatten:s=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!r,this.allowFlatten=s,this.options=t,(0,S.k)("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let l=function({type:t,...e}){return(0,tn.x)(t)&&Q()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u){let c={[e]:i};l&&(c.offset=l);let d=function t(e,i){if(e)return"function"==typeof e?Q()?(0,tt.w)(e,i):"ease-out":R(e)?te(e):Array.isArray(e)?e.map(e=>t(e,i)||ti.easeOut):ti[e]}(a,r);Array.isArray(d)&&(c.easing=d),J.f.value&&h.P.waapi++;let f={delay:n,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"};u&&(f.pseudoElement=u);let p=t.animate(c,f);return J.f.value&&p.finished.finally(()=>{h.P.waapi--}),p}(e,i,n,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let t=U(n,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(t),_(e,i,t),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return(0,l.X)(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+(0,l.X)(t)}get time(){return(0,l.X)(Number(this.animation.currentTime)||0)}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=(0,l.w)(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:i,observe:n}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&(0,q.t)())?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),i&&(this.animation.rangeEnd=i),v.Z):n(this)}}let ts={anticipate:C,backInOut:D,circInOut:k.X7};class to extends tr{constructor(t){"string"==typeof t.ease&&t.ease in ts&&(t.ease=ts[t.ease]),X(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:r,...s}=this.options;if(!e)return;if(void 0!==t){e.set(t);return}let o=new H({...s,autoplay:!1}),l=Math.max(10,u.X.now()-this.startTime),h=(0,a.u)(0,10,l-10),c=o.sample(l).value,{name:d}=this.options;r&&d&&_(r,d,c),e.setWithVelocity(o.sample(Math.max(0,l-h)).value,c,h),o.stop()}}var ta=i(40959);let tl=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(ta.P.test(t)||"0"===t)&&!t.startsWith("url("));var tu=i(4321);let th=new Set(["opacity","clipPath","filter","transform"]),tc=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,td=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),tf=(0,tu.X)(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class tp extends z{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",keyframes:o,name:a,motionValue:l,element:h,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=u.X.now();let d={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:s,name:a,motionValue:l,element:h,...c}
1,f=h?.KeyframeResolver||Z.e;this.keyframeResolver=new f(o,(t,e,i)=>this.onKeyframesResolved(t,e,d,!i),a,l,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){let s;this.keyframeResolver=void 0;let{name:o,type:a,velocity:l,delay:h,isHandoff:c,onUpdate:d}=i;this.resolvedAt=u.X.now();let f=!0;!function(t,e,i,n){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=tl(r,e),a=tl(s,e);return(0,S.K)(o===a,`You are trying to animate ${e} from "${r}" to "${s}". "${o?s:r}" is not an animatable value.`,"value-not-animatable"),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||(0,tn.x)(i))&&n)}(t,o,a,l)&&(f=!1,(K.c.instantAnimations||!h)&&d?.(U(t,i,e)),t[0]=t[t.length-1],r(i),i.repeat=0);let p={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},m=f&&!c&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:o,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:u}=e.owner.getProps();return tf()&&i&&(th.has(i)||td.has(i)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&tc.test(t[e]))return!0;return!1}(a))&&("transform"!==i||!u)&&!l&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}(p),g=p.motionValue?.owner?.current;if(m)try{s=new to({...p,element:g})}catch{s=new H(p)}else s=new H(p);s.finished.then(()=>{this.notifyFinished()}).catch(v.Z),this.pendingTimeline&&(this.stopTimeline=s.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=s}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),(0,Z.m)()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let tm=t=>null!==t;var tg=i(97584);let tv={type:"spring",stiffness:500,damping:25,restSpeed:10},ty=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),tx={type:"keyframes",duration:.8},tw={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tT=(t,{keyframes:e})=>e.length>2?tx:tg.G.has(t)?t.startsWith("scale")?ty(e[1]):tv:tw,tP=(t,e,i,o={},a,u)=>h=>{let c=(0,n.e)(o,t)||{},d=c.delay||o.delay||0,{elapsed:f=0}=o;f-=(0,l.w)(d);let p={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...c,delay:-f,onUpdate:t=>{e.set(t),c.onUpdate&&c.onUpdate(t)},onComplete:()=>{h(),c.onComplete&&c.onComplete()},name:t,motionValue:e,element:u?void 0:a};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(c)&&Object.assign(p,tT(t,p)),p.duration&&(p.duration=(0,l.w)(p.duration)),p.repeatDelay&&(p.repeatDelay=(0,l.w)(p.repeatDelay)),void 0!==p.from&&(p.keyframes[0]=p.from);let m=!1;if(!1!==p.type&&(0!==p.duration||p.repeatDelay)||(r(p),0!==p.delay||(m=!0)),(K.c.instantAnimations||K.c.skipAnimations)&&(m=!0,r(p),p.delay=0),p.allowFlatten=!c.type&&!c.ease,m&&!u&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"},n){let r=t.filter(tm),s=e&&"loop"!==i&&e%2==1?0:r.length-1;return r[s]}(p.keyframes,c);if(void 0!==t){s.Wi.update(()=>{p.onUpdate(t),p.onComplete()});return}}return c.isSync?new H(p):new tp(p)}},82609:function(t,e,i){i.d(e,{w:function(){return d}});var n=i(99890),r=i(48365),s=i(39612),o=i(41804),a=i(55721),l=i(12841),u=i(39276),h=i(58880),c=i(85997);function d(t,e,{delay:i=0,transitionOverride:d,type:f}={}){let{transition:p=t.getDefaultTransition(),transitionEnd:m,...g}=e;d&&(p=d);let v=[],y=f&&t.animationState&&t.animationState.getState()[f];for(let e in g){let o=t.getValue(e,t.latestValues[e]??null),a=g[e];if(void 0===a||y&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(y,e))continue;let l={delay:i,...(0,n.e)(p||{},e)},d=o.get();
1if(void 0!==d&&!o.isAnimating&&!Array.isArray(a)&&a===d&&!l.velocity)continue;let f=!1;if(window.MotionHandoffAnimation){let i=(0,h.s)(t);if(i){let t=window.MotionHandoffAnimation(i,e,r.Wi);null!==t&&(l.startTime=t,f=!0)}}(0,u.K)(t,e),o.start((0,c.v)(e,o,a,t.shouldReduceMotion&&s.z.has(e)?{type:!1}:l,t,f));let m=o.animation;m&&v.push(m)}return m&&Promise.all(v).then(()=>{r.Wi.update(()=>{m&&function(t,e){let{transitionEnd:i={},transition:n={},...r}=(0,l.x)(t,e)||{};for(let e in r={...r,...i}){var s;let i=(s=r[e],(0,a.C)(s)?s[s.length-1]||0:s);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,o.BX)(i))}}(t,m)})}),v}},67098:function(t,e,i){i.d(e,{M:function(){return n}});let n="data-"+(0,i(18754).D)("framerAppearId")},58880:function(t,e,i){i.d(e,{s:function(){return r}});var n=i(67098);function r(t){return t.props[n.M]}},12816:function(t,e,i){i.d(e,{H:function(){return n}});function n(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}},55721:function(t,e,i){i.d(e,{C:function(){return n}});let n=t=>Array.isArray(t)},60976:function(t,e,i){i.d(e,{_:function(){return n}});let n=(0,i(2784).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},7397:function(t,e,i){i.d(e,{featureDefinitions:function(){return r}});let n={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"]},r={};for(let t in n)r[t]={isEnabled:e=>n[t].some(t=>!!e[t])}},41980:function(t,e,i){i.d(e,{j:function(){return s}});var n=i(97584),r=i(50456);function s(t,{layout:e,layoutId:i}){return n.G.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!r.P[t]||"opacity"===t)}},77222:function(t,e,i){function n({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function r({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function s(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}}i.d(e,{d7:function(){return s},i8:function(){return n},z2:function(){return r}})},2217:function(t,e,i){i.d(e,{D2:function(){return d},YY:function(){return u},am:function(){return h},o2:function(){return l},q2:function(){return s}});var n=i(86977),r=i(28749);function s(t,e,i){return i+e*(t-i)}function o(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function a(t,e=0,i=1,n,r){t.min=o(t.min,e,i,n,r),t.max=o(t.max,e,i,n,r)}function l(t,{x:e,y:i}){a(t.x,e.translate,e.scale,e.originPoint),a(t.y,i.translate,i.scale,i.originPoint)}function u(t,e,i,n=!1){let s,o;let a=i.length;if(a){e.x=e.y=1;for(let u=0;u<a;u++){o=(s=i[u]).projectionDelta;let{visualElement:a}=s.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&d(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,l(t,o)),n&&(0,r.ud)(s.latestValues)&&d(t,s.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}function h(t,e){t.min=t.min+e,t.max=t.max+e}function c(t,e,i,r,s=.5){let o=(0,n.t)(t.min,t.max,s);a(t,e,i,o,r)}function d(t,e){c(t.x,e.x,e.scaleX,e.scale,e.originX),c(t.y,e.y,e.scaleY,e.scale,e.originY)}},33933:function(t,e,i){i.d(e,{dO:function(){return o},wc:function(){return r}});let n=()=>({translate:0,scale:1,origin:0,originPoint:0}),r=()=>({x:n(),y:n()}),s=()=>({min:0,max:0}),o=()=>({x:s(),y:s()})},50456:function(t,e,i){i.d(e,{P:function(){return l}});var n=i(13083);function r(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let s={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!n.px.test(t))return t;t=parseFloat(t)}let i=r(t,e.target.x),s=r(t,e.target.y);return`${i}% ${s}%`}};var o=i(40959),a=i(86977);let l={borderRadius:{...s,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:s,borderTopRightRadius:s,borderBottomLeftRadius:s,borderBottomRightRadius:s,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=o.P.parse(t);if(n.length>5)return t;let r=o.P.createTransformer(t),s="number"!=typeof n[0]?1:0,l=i.x.scale*e.x,u=i.y.scale*e.y;n[0+s]/=l,n[1+s]/=u;let h=(0,a.t)(l,u,.5);return"number"==typeof n[2+s]&&(n[2+s]/=h),"number"==typeof n[3+s]&&(n[3+s]/=h),r(n)}}}}
1,28749:function(t,e,i){function n(t){return void 0===t||1===t}function r({scale:t,scaleX:e,scaleY:i}){return!n(t)||!n(e)||!n(i)}function s(t){return r(t)||o(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function o(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}i.d(e,{D_:function(){return o},Lj:function(){return r},ud:function(){return s}})},85579:function(t,e,i){i.d(e,{J:function(){return s},z:function(){return o}});var n=i(77222),r=i(2217);function s(t,e){return(0,n.i8)((0,n.d7)(t.getBoundingClientRect(),e))}function o(t,e,i){let n=s(t,i),{scroll:o}=e;return o&&((0,r.am)(n.x,o.offset.x),(0,r.am)(n.y,o.offset.y)),n}},14166:function(t,e,i){i.d(e,{l:function(){return D}});var n=i(724),r=i(87977),s=i(48365),o=i(30979),a=i(97584),l=i(41804),u=i(41615),h=i(40959),c=i(32399),d=i(62464);let f=[...c.$,u.$,h.P],p=t=>f.find((0,d.l)(t));var m=i(88943),g=i(17586),v=i(10020),y=i(26687),x=i(91214),w=i(7397),T=i(33933),P=i(33791);let b={current:null},S={current:!1};var A=i(16578),M=i(23293),E=i(99764);let V=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class D{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:a,blockInitialAnimation:l,visualState:u},h={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=n.e,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=r.X.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,s.Wi.render(this.render,!1,!0))};let{latestValues:c,renderState:d}=u;this.latestValues=c,this.baseTarget={...c},this.initialValues=e.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.options=h,this.blockInitialAnimation=!!l,this.isControllingVariants=(0,M.G)(e),this.isVariantNode=(0,M.M)(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:f,...p}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in p){let e=p[t];void 0!==c[t]&&(0,o.i)(e)&&e.set(c[t])}}mount(t){this.current=t,A.R.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)),S.current||function(){if(S.current=!0,P.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>b.current=t.matches;t.addEventListener("change",e),e()}else b.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||b.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),(0,s.Pn)(this.notifyUpdate),(0,s.Pn)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=a.G.has(t);n&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&s.Wi.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in w.featureDefinitions){let e=w.featureDefinitions[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];
1e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,T.dO)()}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<V.length;e++){let i=V[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let r=e[n],s=i[n];if((0,o.i)(r))t.addValue(n,r);else if((0,o.i)(s))t.addValue(n,(0,l.BX)(r,{owner:t}));else if(s!==r){if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(n);t.addValue(n,(0,l.BX)(void 0!==e?e:r,{owner:t}))}}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=(0,l.BX)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=i&&("string"==typeof i&&((0,v.P)(i)||(0,y.W)(i))?i=parseFloat(i):!p(i)&&h.P.test(e)&&(i=(0,m.T)(t,e)),this.setBaseTarget(t,(0,o.i)(i)?i.get():i)),(0,o.i)(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e;let{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=(0,E.o)(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||(0,o.i)(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new x.L),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){g.g.render(this.render)}}},52278:function(t,e,i){i.d(e,{E:function(){return iP}});var n,r=i(2784),s=i(74422),o=i(47447);let a=["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 l(t){if("string"!=typeof t||t.includes("-"));else if(a.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var u=i(52322);let h=(0,r.createContext)({}),c=(0,r.createContext)({strict:!1});var d=i(60976);let f=(0,r.createContext)({});var p=i(23293),m=i(20330);function g(t){return Array.isArray(t)?t.join(" "):t}var v=i(30979),y=i(41980),x=i(96627);let w=()=>({style:{},transform:{},transformOrigin:{},vars:{}});
1function T(t,e,i){for(let n in e)(0,v.i)(e[n])||(0,y.j)(n,i)||(t[n]=e[n])}var P=i(57132);let b=()=>({...w(),attrs:{}});var S=i(13336);let A=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function M(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||A.has(t)}let E=t=>!M(t);try{n=require("@emotion/is-prop-valid").default,"function"==typeof n&&(E=t=>t.startsWith("on")?!M(t):n(t))}catch{}var V=i(12816);let D=(0,r.createContext)(null);var C=i(99764),k=i(3105);function R(t){return(0,v.i)(t)?t.get():t}let L=t=>(e,i)=>{let n=(0,r.useContext)(f),s=(0,r.useContext)(D),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,r){return{latestValues:function(t,e,i,n){let r={},s=n(t,{});for(let t in s)r[t]=R(s[t]);let{initial:o,animate:a}=t,l=(0,p.G)(t),u=(0,p.M)(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&&!(0,V.H)(c)){let e=Array.isArray(c)?c:[c];for(let i=0;i<e.length;i++){let n=(0,C.o)(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&&(r[t]=e)}for(let e in t)r[e]=t[e]}}}return r}(i,n,r,t),renderState:e()}})(t,e,n,s);return i?o():(0,k.h)(o)},j=L({scrapeMotionValuesFromProps:i(53921).U,createRenderState:w}),B=L({scrapeMotionValuesFromProps:i(7587).U,createRenderState:b});var F=i(33791),O=i(7397);let W=Symbol.for("motionComponentSymbol");function I(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var $=i(67098);let U=(0,r.createContext)({});var N=i(23617);function X(t,{forwardMotionProps:e=!1}={},i,n){i&&function(t){for(let e in t)O.featureDefinitions[e]={...O.featureDefinitions[e],...t[e]}}(i);let s=l(t)?B:j;function o(i,o){var a;let y;let A={...(0,r.useContext)(d._),...i,layoutId:function({layoutId:t}){let e=(0,r.useContext)(h).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:V}=A,C=function(t){let{initial:e,animate:i}=function(t,e){if((0,p.G)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,m.$)(e)?e:void 0,animate:(0,m.$)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,r.useContext)(f));return(0,r.useMemo)(()=>({initial:e,animate:i}),[g(e),g(i)])}(i),k=s(i,V);if(!V&&F.j){(0,r.useContext)(c).strict;let e=function(t){let{drag:e,layout:i}=O.featureDefinitions;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(A);y=e.MeasureLayout,C.visualElement=function(t,e,i,n,s){let{visualElement:o}=(0,r.useContext)(f),a=(0,r.useContext)(c),l=(0,r.useContext)(D),u=(0,r.useContext)(d._).reducedMotion,h=(0,r.useRef)(null);n=n||a.renderer,!h.current&&n&&(h.current=n(t,{visualState:e,parent:o,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:u}));let p=h.current,m=(0,r.useContext)(U);p&&!p.projection&&s&&("html"===p.type||"svg"===p.type)&&function(t,e,i,n){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:h}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!o||a&&I(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,crossfade:h,layoutScroll:l,layoutRoot:u})}(h.current,i,s,m);let g=(0,r.useRef)(!1);(0,r.useInsertionEffect)(()=>{p&&g.current&&p.update(i,l)});let v=i[$.M],y=(0,r.useRef)(!!v&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return(0,N.L)(()=>{p&&(g.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),y.current&&p.animationState&&p.animationState.animateChanges())}),(0,r.useEffect)(()=>{p&&(!y.current&&p.animationState&&p.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),y.current=!1),p.enteringChildren=void 0)}),p}(t,k,A,n,e.ProjectionNode)}return(0,u.jsxs)(f.Provider,{value:C,children:[y&&C.visualElement?(0,u.jsx)(y,{visualElement:C.visualElement,...A}
1):null,function(t,e,i,{latestValues:n},s,o=!1){let a=(l(t)?function(t,e,i,n){let s=(0,r.useMemo)(()=>{let i=b();return(0,P.i)(i,e,(0,S.a)(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};T(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return T(n,i,t),Object.assign(n,function({transformTemplate:t},e){return(0,r.useMemo)(()=>{let i=w();return(0,x.r)(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(e,n,s,t),u=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(E(r)||!0===i&&M(r)||!e&&!M(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(e,"string"==typeof t,o),h=t!==r.Fragment?{...u,...a,ref:i}:{},{children:c}=e,d=(0,r.useMemo)(()=>(0,v.i)(c)?c.get():c,[c]);return(0,r.createElement)(t,{...h,children:d})}(t,i,(a=C.visualElement,(0,r.useCallback)(t=>{t&&k.onMount&&k.onMount(t),a&&(t?a.mount(t):a.unmount()),o&&("function"==typeof o?o(t):I(o)&&(o.current=t))},[a])),k,V,e)]})}o.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let a=(0,r.forwardRef)(o);return a[W]=t,a}var z=i(12841),Y=i(82609);function H(t,e,i,n=0,r=1){let s=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*n;return"function"==typeof i?i(s,o):1===r?s*n:a-s*n}function K(t,e,i={}){let n=(0,z.x)(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverride);let s=n?()=>Promise.all((0,Y.w)(t,n,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=r;return function(t,e,i=0,n=0,r=0,s=1,o){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(K(l,e,{...o,delay:i+("function"==typeof n?0:n)+H(t.variantChildren,l,n,r,s)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,n,s,o,a,i)}:()=>Promise.resolve(),{when:a}=r;if(!a)return Promise.all([s(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[s,o]:[o,s];return t().then(()=>e())}}var Z=i(55721);function G(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}var _=i(36427);let q=_.V.length,J=[..._.e].reverse(),Q=_.e.length;function tt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function te(){return{animate:tt(!0),whileInView:tt(),whileHover:tt(),whileTap:tt(),whileDrag:tt(),whileFocus:tt(),exit:tt()}}class ti{constructor(t){this.isMounted=!1,this.node=t}update(){}}class tn extends ti{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>K(t,e,i)));else if("string"==typeof e)n=K(t,e,i);else{let r="function"==typeof e?(0,z.x)(t,e,i.custom):e;n=Promise.all((0,Y.w)(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=te(),n=!0,r=e=>(i,n)=>{let r=(0,z.x)(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(r){let{transition:t,transitionEnd:e,...n}=r;i={...i,...n,...e}}return i};function s(s){let{props:o}=t,a=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<q;t++){let n=_.V[t],r=e.props[n];((0,m.$)(r)||!1===r)&&(i[n]=r)}return i}(t.parent)||{},l=[],u=new Set,h={},c=1/0;for(let e=0;e<Q;e++){var d;let f=J[e],p=i[f],g=void 0!==o[f]?o[f]:a[f],v=(0,m.$)(g),y=f===s?p.isActive:null;!1===y&&(c=e);let x=g===a[f]&&g!==o[f]&&v;if(x&&n&&t.manuallyAnimateOnMount&&(x=!1),p.protectedKeys={...h},!p.isActive&&null===y||!g&&!p.prevProp||(0,V.H)(g)||"boolean"==typeof g)continue;let w=(d=p.prevProp,"string"==typeof g?g!==d:!!Array.isArray(g)&&!G(g,d)),T=w||f===s&&p.isActive&&!x&&v||e>c&&v,P=!1,b=Array.isArray(g)?g:[g],S=b.reduce(r(f),{});!1===y&&(S={});let{prevResolvedValues:A={}}=p,M={...A,...S},E=e=>{T=!0,u.has(e)&&(P=!0,u.delete(e)),p.needsAnimating[e]=!0;let i=t.getValue(e);
1i&&(i.liveStyle=!1)};for(let t in M){let e=S[t],i=A[t];if(!h.hasOwnProperty(t))((0,Z.C)(e)&&(0,Z.C)(i)?G(e,i):e===i)?void 0!==e&&u.has(t)?E(t):p.protectedKeys[t]=!0:null!=e?E(t):u.add(t)}p.prevProp=g,p.prevResolvedValues=S,p.isActive&&(h={...h,...S}),n&&t.blockInitialAnimation&&(T=!1);let D=x&&w,C=!D||P;T&&C&&l.push(...b.map(e=>{let i={type:f};if("string"==typeof e&&n&&!D&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,r=(0,z.x)(n,e);if(n.enteringChildren&&r){let{delayChildren:e}=r.transition||{};i.delay=H(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(u.size){let e={};if("boolean"!=typeof o.initial){let i=(0,z.x)(t,Array.isArray(o.initial)?o.initial[0]:o.initial);i&&i.transition&&(e.transition=i.transition)}u.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=n??null}),l.push({animation:e})}let f=!!l.length;return n&&(!1===o.initial||o.initial===o.animate)&&!t.manuallyAnimateOnMount&&(f=!1),n=!1,f?e(l):Promise.resolve()}return{animateChanges:s,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let r=s(e);for(let t in i)i[t].protectedKeys={};return r},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=te()}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,V.H)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let tr=0;class ts extends ti{constructor(){super(...arguments),this.id=tr++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
1e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}var to=i(87363);let ta={x:!1,y:!1};var tl=i(13083),tu=i(48365),th=i(86977),tc=i(77781),td=i(85997);function tf(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let tp=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function tm(t){return{point:{x:t.pageX,y:t.pageY}}}let tg=t=>e=>tp(e)&&t(e,tm(e));function tv(t,e,i,n){return tf(t,e,tg(i),n)}var ty=i(77222);function tx(t){return t.max-t.min}function tw(t,e,i,n=.5){t.origin=n,t.originPoint=(0,th.t)(e.min,e.max,t.origin),t.scale=tx(i)/tx(e),t.translate=(0,th.t)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function tT(t,e,i,n){tw(t.x,e.x,i.x,n?n.originX:void 0),tw(t.y,e.y,i.y,n?n.originY:void 0)}function tP(t,e,i){t.min=i.min+e.min,t.max=t.min+tx(e)}function tb(t,e,i){t.min=e.min-i.min,t.max=t.min+tx(e)}function tS(t,e,i){tb(t.x,e.x,i.x),tb(t.y,e.y,i.y)}var tA=i(33933);function tM(t){return[t("x"),t("y")]}var tE=i(85579);let tV=({current:t})=>t?t.ownerDocument.defaultView:null;var tD=i(39276),tC=i(87856),tk=i(87302);let tR=(t,e)=>Math.abs(t-e);class tL{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:r=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=tF(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,r=(t=i.offset,e={x:0,y:0},Math.sqrt(tR(t.x,e.x)**2+tR(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!r)return;let{point:s}=i,{timestamp:o}=tu.frameData;this.history.push({...s,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.lastMoveEventInfo=tj(e,this.transformPagePoint),tu.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=tF("pointercancel"===t.type?this.lastMoveEventInfo:tj(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!tp(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=n||window;let o=tj(tm(t),this.transformPagePoint),{point:a}=o,{timestamp:l}=tu.frameData;this.history=[{...a,timestamp:l}];let{onSessionStart:u}=e;u&&u(t,tF(o,this.history)),this.removeListeners=(0,tC.z)(tv(this.contextWindow,"pointermove",this.handlePointerMove),tv(this.contextWindow,"pointerup",this.handlePointerUp),tv(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,tu.Pn)(this.updatePoint)}}function tj(t,e){return e?{point:e(t.point)}:t}function tB(t,e){return{x:t.x-e.x,y:t.y-e.y}}function tF({point:t},e){return{point:t,delta:tB(t,tO(e)),offset:tB(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=tO(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>(0,tk.w)(.1)));)i--;if(!n)return{x:0,y:0};let s=(0,tk.X)(r.timestamp-n.timestamp);if(0===s)return{x:0,y:0};let o={x:(r.x-n.x)/s,y:(r.y-n.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,0)}}function tO(t){return t[t.length-1]}var tW=i(53870),tI=i(19009);function t$(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 tU(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 tN(t,e,i){return{min:tX(t,e),max:tX(t,i)}}function tX(t,e){return"number"==typeof t?t:t[e]||0}let tz=new WeakMap;class tY{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,tA.dO)(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let{dragSnapToOrigin:r}=this.getProps();this.panSession=new tL(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(tm(t).point)},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===i||"y"===i?ta[i]?null:(ta[i]=!0,()=>{ta[i]=!1}):ta.x||ta.y?null:(ta.x=ta.y=!0,()=>{ta.x=ta.y=!1}),!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),tM(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tl.aQ.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];if(n){let t=tx(n);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),r&&tu.Wi.postRender(()=>r(t,e)),(0,tD.K)(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},onSessionEnd:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>tM(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,distanceThreshold:i,contextWindow:tV(this.visualElement)})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!n||!i)return;let{velocity:s}=n;this.startAnimation(s);let{onDragEnd:o}=this.getProps();o&&tu.Wi.postRender(()=>o(i,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!tH(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?(0,th.t)(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?(0,th.t)(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&I(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:t$(t.x,i,r),y:t$(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:tN(t,"left","right"),y:tN(t,"top","bottom")}}(e),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&tM(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!I(e))return!1;let n=e.current;(0,tc.k)(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:r}=this.visualElement;if(!r||!r.layout)return!1;let s=(0,tE.z)(n,r.root,this.visualElement.getTransformPagePoint()),o={x:tU((t=r.layout.layoutBox).x,s.x),y:tU(t.y,s.y)};if(i){let t=i((0,ty.z2)(o));this.hasMutatedConstraints=!!t,t&&(o=(0,ty.i8)(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(tM(o=>
1{if(!tH(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(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,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,tD.K)(this.visualElement,t),i.start((0,td.v)(t,i,0,e,this.visualElement,!1))}stopAnimation(){tM(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){tM(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){tM(e=>{let{drag:i}=this.getProps();if(!tH(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e];r.set(t[e]-(0,th.t)(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!I(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};tM(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=tx(t),r=tx(e);return r>n?i=(0,tW.Y)(e.min,e.max-n,t.min):n>r&&(i=(0,tW.Y)(t.min,t.max-r,e.min)),(0,tI.u)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),tM(e=>{if(!tH(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set((0,th.t)(r,s,n[e]))})}addListeners(){if(!this.visualElement.current)return;tz.set(this.visualElement,this);let t=tv(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();I(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),tu.Wi.read(e);let r=tf(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(tM(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),n(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function tH(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class tK extends ti{constructor(t){super(t),this.removeGroupControls=to.Z,this.removeListeners=to.Z,this.controls=new tY(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||to.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let tZ=t=>(e,i)=>{t&&tu.Wi.postRender(()=>t(e,i))};class tG extends ti{constructor(){super(...arguments),this.removePointerDownListener=to.Z}onPointerDown(t){this.session=new tL(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tV(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:tZ(t),onStart:tZ(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&tu.Wi.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=tv(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var t_=i(17586);let tq={hasAnimatedSinceResize:!0,hasEverUpdated:!1},tJ=!1;class tQ extends r.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),tJ&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),tq.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,{projection:s}=i;return s&&(s.isPresent=r,tJ=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==r?s.willUpdate():this.safeToRemove(),t.isPresent===r||(r?s.promote():s.relegate()||tu.Wi.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),t_.g.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;tJ=!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 t0(t){let[e,i]=function(t=!0){let e=(0,r.useContext)(D);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:s}=e,o=(0,r.useId)();(0,r.useEffect)(()=>
1{if(t)return s(o)},[t]);let a=(0,r.useCallback)(()=>t&&n&&n(o),[o,n,t]);return!i&&n?[!1,a]:[!0]}(),n=(0,r.useContext)(h);return(0,u.jsx)(tQ,{...t,layoutGroup:n,switchLayoutGroup:(0,r.useContext)(U),isPresent:e,safeToRemove:i})}var t1=i(82504),t7=i(71137),t3=i(34459),t9=i(99890),t8=i(87977),t2=i(72387),t5=i(41804),t4=i(91214),t6=i(79943),et=i(58880),ee=i(87508);let ei=(t,e)=>t.depth-e.depth;class en{constructor(){this.children=[],this.isDirty=!1}add(t){(0,ee.y4)(this.children,t),this.isDirty=!0}remove(t){(0,ee.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(ei),this.isDirty=!1,this.children.forEach(t)}}var er=i(85548);let es=["TopLeft","TopRight","BottomLeft","BottomRight"],eo=es.length,ea=t=>"string"==typeof t?parseFloat(t):t,el=t=>"number"==typeof t||tl.px.test(t);function eu(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let eh=ed(0,.5,er.Bn),ec=ed(.5,.95,to.Z);function ed(t,e,i){return n=>n<t?0:n>e?1:i((0,tW.Y)(t,e,n))}function ef(t,e){t.min=e.min,t.max=e.max}function ep(t,e){ef(t.x,e.x),ef(t.y,e.y)}function em(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var eg=i(2217);function ev(t,e,i,n,r){return t-=e,t=(0,eg.q2)(t,1/i,n),void 0!==r&&(t=(0,eg.q2)(t,1/r,n)),t}function ey(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(tl.aQ.test(e)&&(e=parseFloat(e),e=(0,th.t)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,th.t)(s.min,s.max,n);t===s&&(a-=e),t.min=ev(t.min,e,i,a,r),t.max=ev(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let ex=["x","scaleX","originX"],ew=["y","scaleY","originY"];function eT(t,e,i,n){ey(t.x,e,ex,i?i.x:void 0,n?n.x:void 0),ey(t.y,e,ew,i?i.y:void 0,n?n.y:void 0)}function eP(t){return 0===t.translate&&1===t.scale}function eb(t){return eP(t.x)&&eP(t.y)}function eS(t,e){return t.min===e.min&&t.max===e.max}function eA(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function eM(t,e){return eA(t.x,e.x)&&eA(t.y,e.y)}function eE(t){return tx(t.x)/tx(t.y)}function eV(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class eD{constructor(){this.members=[]}add(t){(0,ee.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,ee.cl)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;let i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}var eC=i(50456),ek=i(28749);let eR={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},eL=["","X","Y","Z"],ej=0;function eB(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function eF({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=e?.()){this.id=ej++,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,t1.f.value&&(eR.nodes=eR.calculatedTargetDeltas=eR.calculatedProjections=0),this.nodes.forEac
1h(eI),this.nodes.forEach(eH),this.nodes.forEach(eK),this.nodes.forEach(e$),t1.f.addProjectionMetrics&&t1.f.addProjectionMetrics(eR)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new en)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new t4.L),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=(0,t7.v)(e)&&!(0,t3.r)(e),this.instance=e;let{layoutId:i,layout:n,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i;let n=0,r=()=>this.root.updateBlockedByResize=!1;tu.Wi.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;t!==n&&(n=t,this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=t8.X.now(),n=({timestamp:e})=>{let r=e-i;r>=250&&((0,tu.Pn)(n),t(r-250))};return tu.Wi.setup(n,!0),()=>(0,tu.Pn)(n)}(r,0),tq.hasAnimatedSinceResize&&(tq.hasAnimatedSinceResize=!1,this.nodes.forEach(eY)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&r&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||r.getDefaultTransition()||eQ,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!eM(this.targetLayout,n),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...(0,t9.e)(s,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u)}else e||eY(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,tu.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(eZ),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=(0,et.s)(i);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",tu.Wi,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEac
1h(eN);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(eX);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ez),this.nodes.forEach(eO),this.nodes.forEach(eW)):this.nodes.forEach(eX),this.clearAllSnapshots();let t=t8.X.now();tu.frameData.delta=(0,tI.u)(0,1e3/60,t-tu.frameData.timestamp),tu.frameData.timestamp=t,tu.frameData.isProcessing=!0,tu.yL.update.process(tu.frameData),tu.yL.preRender.process(tu.frameData),tu.yL.render.process(tu.frameData),tu.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,t_.g.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(eU),this.sharedNodes.forEach(eG)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tu.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tu.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||tx(this.snapshot.measuredBox.x)||tx(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=(0,tA.dO)(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!eb(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||(0,ek.ud)(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),e7((e=n).x),e7(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,tA.dO)();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(e9))){let{scroll:t}=this.root;t&&((0,eg.am)(e.x,t.offset.x),(0,eg.am)(e.y,t.offset.y))}return e}removeElementScroll(t){let e=(0,tA.dO)();if(ep(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:r,options:s}=n;n!==this.root&&r&&s.layoutScroll&&(r.wasRoot&&ep(e,t),(0,eg.am)(e.x,r.offset.x),(0,eg.am)(e.y,r.offset.y))}return e}applyTransform(t,e=!1){let i=(0,tA.dO)();ep(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(0,eg.D2)(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),(0,ek.ud)(n.latestValues)&&(0,eg.D2)(i,n.latestValues)}return(0,ek.ud)(this.latestValues)&&(0,eg.D2)(i,this.latestValues),i}removeTransform(t){let e=(0,tA.dO)();ep(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,ek.ud)(i.latestValues))continue;(0,ek.Lj)(i.latestValues)&&i.updateSnapshot();let n=(0,tA.dO)();ep(n,i.measurePageBox()),eT(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return(0,ek.ud)(this.latestValues)&&eT(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==tu.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:r}=this.options;if(!this.layout||!(n||r))return;this.resolvedRelativeTargetAt=tu.frameData.timestamp;let s=this.getClosestProjectingParent();if(s&&this.linkedParentVersion!==s.layoutVersion&&!s.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(s&&s.layout?this.createRelativeTarget(s,this.layout.layoutBox,s.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=(0,tA.dO)(),this.targetWithTransforms=(0,tA.dO)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,a,l;this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,l=this.relativeParent.target,tP(o.x,a.x,l.x),tP(o.y,a.y,l.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ep(this.target,this.layout.layoutBox),(0,eg.o2)(this.target,this.targetDelta)):ep(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,s&&!!s.resumingFrom==!!this.resumingFrom&&!s.options.layoutScroll&&s.target&&1!==this.animationProgress?this.createRelativeTarget(s,this.target,s.target):this.relativeParent=this.relativeTarget=void 0),t1.f.value&&eR.calculatedTargetDeltas++}}getClosestProjectingParent(){return!this.parent||(0,ek.Lj)(this.parent.latestValues)||(0,ek.D_)(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,tA.dO)(),this.relativeTargetOrigin=(0,tA.dO)(),tS(this.relativeTargetOrigin,e,i),ep(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===tu.frameData.timestamp&&(i=!1),i)return;let{layout:n,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||r))return;ep(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,o=this.treeScale.y;(0,eg.YY)(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=(0,tA.dO)());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(em(this.prevProjectionDelta.x,this.projectionDelta.x),em(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),tT(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===s&&this.treeScale.y===o&&eV(this.projectionDelta.x,this.prevProjectionDelta.x)&&eV(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),t1.f.value&&eR.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,tA.wc)(),this.projectionDelta=(0,tA.wc)(),this.projectionDeltaWithTransform=(0,tA.wc)()}setAnimationOrigin(t,e=!1){let i;let n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},o=(0,tA.wc)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=(0,tA.dO)(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(eJ));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(e_(o.x,t.x,n),e_(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,f,p;tS(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,p=this.relativeTargetOrigin,eq(f.x,p.x,a.x,n),eq(f.y,p.y,a.y,n),i&&(u=this.relativeTarget,d=i,eS(u.x,d.x)&&eS(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=(0,tA.dO)()),ep(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=(0,th.t)(0,i.opacity??1,eh(n)),t.opacityExit=(0,th.t)(e.opacity??1,0,ec(n))):s&&(t.opacity=(0,th.t)(e.opacity??1,i.opacity??1,n));for(let r=0;r<eo;r++){let s=`border${es[r]}Radius`,o=eu(e,s),a=eu(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||el(o)===el(a)?(t[s]=Math.max((0,th.t)(ea(o),ea(a),n),0),(tl.aQ.test(a)||tl.aQ.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,th.t)(e.rotate||0,i.rotate||0,n))}(s,r,this.latestValues,n,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,tu.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tu.Wi.update(()=>{tq.hasAnimatedSinceResize=!0,t2.P.layout++,this.motionValue||(this.motionValue=(0,t5.BX)(0)),this.currentAnimation=(0,t6.D)(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{t2.P.layout--},onComplete:()=>{t2.P.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&e3(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||(0,tA.dO)();let e=tx(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=tx(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}ep(e,i),(0,eg.D2)(e,r),tT(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new eD),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
1return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&eB("z",t,n,this.animationValues);for(let e=0;e<eL.length;e++)eB(`rotate${eL[e]}`,t,n,this.animationValues),eB(`skew${eL[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=R(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=R(e?.pointerEvents)||""),this.hasProjected&&!(0,ek.ud)(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let r=n.animationValues||n.latestValues;this.applyTransformsToTarget();let s=function(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y,o=i?.z||0;if((r||s||o)&&(n=`translate3d(${r}px, ${s}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:s,skewX:o,skewY:a}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),r&&(n+=`rotateX(${r}deg) `),s&&(n+=`rotateY(${s}deg) `),o&&(n+=`skewX(${o}deg) `),a&&(n+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);i&&(s=i(r,s)),t.transform=s;let{x:o,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,n.animationValues?t.opacity=n===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:t.opacity=n===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,eC.P){if(void 0===r[e])continue;let{correct:i,applyTo:o,isCSSVariable:a}=eC.P[e],l="none"===s?r[e]:i(r[e],n);if(o){let e=o.length;for(let i=0;i<e;i++)t[o[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?R(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(eN),this.root.sharedNodes.clear()}}}function eO(t){t.updateLayout()}function eW(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:r}=t.options,s=e.source!==t.layout.source;"size"===r?tM(t=>{let n=s?e.measuredBox[t]:e.layoutBox[t],r=tx(n);n.min=i[t].min,n.max=n.min+r}):e3(r,e.layoutBox,i)&&tM(n=>{let r=s?e.measuredBox[n]:e.layoutBox[n],o=tx(i[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=(0,tA.wc)();tT(o,i,e.layoutBox);let a=(0,tA.wc)();s?tT(a,t.applyTransform(n,!0),e.measuredBox):tT(a,i,e.layoutBox);let l=!eb(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=(0,tA.dO)();tS(o,e.layoutBox,r.layoutBox);let a=(0,tA.dO)();tS(a,i,s.layoutBox),eM(o,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function eI(t){t1.f.value&&eR.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
1isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function e$(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function eU(t){t.clearSnapshot()}function eN(t){t.clearMeasurements()}function eX(t){t.isLayoutDirty=!1}function ez(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function eY(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function eH(t){t.resolveTargetDelta()}function eK(t){t.calcProjection()}function eZ(t){t.resetSkewAndRotation()}function eG(t){t.removeLeadSnapshot()}function e_(t,e,i){t.translate=(0,th.t)(e.translate,0,i),t.scale=(0,th.t)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function eq(t,e,i,n){t.min=(0,th.t)(e.min,i.min,n),t.max=(0,th.t)(e.max,i.max,n)}function eJ(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let eQ={duration:.45,ease:[.4,0,.1,1]},e0=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),e1=e0("applewebkit/")&&!e0("chrome/")?Math.round:to.Z;function e7(t){t.min=e1(t.min),t.max=e1(t.max)}function e3(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(eE(e)-eE(i)))}function e9(t){return t!==t.root&&t.scroll?.wasRoot}let e8=eF({attachResizeListener:(t,e)=>tf(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),e2={current:void 0},e5=eF({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!e2.current){let t=new e8({});t.mount(window),t.setOptions({layoutScroll:!0}),e2.current=t}return e2.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});var e4=i(47474);function e6(t,e){let i=(0,e4.I)(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function it(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&tu.Wi.postRender(()=>r(e,tm(e)))}class ie extends ti{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,r,s]=e6(t,i);return n.forEach(t=>{let i,n=!1,s=!1,o=()=>{t.removeEventListener("pointerleave",u)},a=t=>{i&&(i(t),i=void 0),o()},l=t=>{n=!1,window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",l),s&&(s=!1,a(t))},u=t=>{if("touch"!==t.pointerType){if(n){s=!0;return}a(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||ta.x||ta.y)return;s=!1;let o=e(t,n);"function"==typeof o&&(i=o,t.addEventListener("pointerleave",u,r))},r),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",l,r),window.addEventListener("pointercancel",l,r)},r)}),s}(t,(t,e)=>(it(this.node,e,"Start"),t=>it(this.node,t,"End"))))}unmount(){}}class ii extends ti{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,tC.z)(tf(this.node.current,"focus",()=>this.onFocus()),tf(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var ir=i(99970);let is=(t,e)=>!!e&&(t===e||is(t,e.parentElement)),io=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),ia=new WeakSet;function il(t){return e=>{"Enter"===e.key&&t(e)}}function iu(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let ih=(t,e)=>{let i=t.currentTarget;if(!i)return;let n=il(()=>{if(ia.has(i))return;iu(i,"down");let t=il(()=>{iu(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>iu(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)};function ic(t){return tp(t)&&!(ta.x||ta.y)}let id=new WeakSet;function ip(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 r=n["onTap"+("End"===i?"":i)];r&&tu.Wi.postRender(()=>r(e,tm(e)))}class im extends ti{mount(){let{current:t}=this.node;
1t&&(this.unmount=function(t,e,i={}){let[n,r,s]=e6(t,i),o=t=>{let n=t.currentTarget;if(!ic(t)||id.has(t))return;ia.add(n),i.stopPropagation&&id.add(t);let s=e(n,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),ia.has(n)&&ia.delete(n),ic(t)&&"function"==typeof s&&s(t,{success:e})},a=t=>{o(t,n===window||n===document||i.useGlobalTarget||is(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};return n.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,r),(0,ir.R)(t)&&(t.addEventListener("focus",t=>ih(t,r)),io.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),s}(t,(t,e)=>(ip(this.node,e,"Start"),(t,{success:e})=>ip(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let ig=new WeakMap,iv=new WeakMap,iy=t=>{let e=ig.get(t.target);e&&e(t)},ix=t=>{t.forEach(iy)},iw={some:0,all:1};class iT extends ti{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:r}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:iw[n]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;iv.has(i)||iv.set(i,{});
1let n=iv.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(ix,{root:t,...e})),n[r]}(e);return ig.set(t,i),n.observe(t),()=>{ig.delete(t),n.unobserve(t)}}(this.node.current,s,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!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)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let iP=function(t,e){if("undefined"==typeof Proxy)return X;let i=new Map,n=(i,n)=>X(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(r,s)=>"create"===s?n:(i.has(s)||i.set(s,X(s,void 0,t,e)),i.get(s))})}({animation:{Feature:tn},exit:{Feature:ts},inView:{Feature:iT},tap:{Feature:im},focus:{Feature:ii},hover:{Feature:ie},pan:{Feature:tG},drag:{Feature:tK,ProjectionNode:e5,MeasureLayout:t0},layout:{ProjectionNode:e5,MeasureLayout:t0}},(t,e)=>l(t)?new o.e(e):new s.W(e,{allowProjection:t!==r.Fragment}))},99260:function(t,e,i){i.d(e,{J:function(){return y}});var n=i(39612),r=i(32399),s=i(77781),o=i(10020),a=i(61101);let l=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var u=i(724),h=i(26687),c=i(40959),d=i(88943);let f=new Set(["auto","none","0"]);var p=i(51366);class m extends u.e{constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&(n=n.trim(),(0,a.tm)(n))){let r=function t(e,i,n=1){(0,s.k)(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,u]=function(t){let e=l.exec(t);if(!e)return[,];let[,i,n,r]=e;return[`--${i??n}`,r]}(e);if(!r)return;let h=window.getComputedStyle(i).getPropertyValue(r);if(h){let t=h.trim();return(0,o.P)(t)?parseFloat(t):t}return(0,a.tm)(u)?t(u,i,n+1):u}(n,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!n.z.has(i)||2!==t.length)return;let[u,h]=t,c=(0,r.C)(u),d=(0,r.C)(h);if((0,a.V3)(u)!==(0,a.V3)(h)&&p.lw[i]){this.needsMeasurement=!0;return}if(c!==d){if((0,p.mP)(c)&&(0,p.mP)(d))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else p.lw[i]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var n;(null===t[e]||("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||(0,h.W)(n)))&&i.push(e)}i.length&&function(t,e,i){let n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!f.has(e)&&(0,c.V)(e).values.length&&(n=t[r]),r++}if(n&&i)for(let r of e)t[r]=(0,d.T)(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=p.lw[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let r=i.length-1,s=i[r];i[r]=p.lw[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}var g=i(30979),v=i(14166);class y extends v.l{constructor(){super(...arguments),this.KeyframeResolver=m}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,g.i)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}},18754:function(t,e,i){i.d(e,{D:function(){return n}});let n=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase()},74422:function(t,e,i){i.d(e,{W:function(){return c}});var n=i(97584),r=i(67619),s=i(61101),o=i(85579),a=i(99260),l=i(96627),u=i(2473),h=i(53921);class c extends a.J{constructor(){super(...arguments),this.type="html",this.renderInstance=u.N}readValueFromInstance(t,e){if(n.G.has(e))return this.projection?.isProjecting?(0,r.E$)(e):(0,r.RT)(t,e);{let i=window.getComputedStyle(t),n=((0,s.f9)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,o.J)(t,e)}build(t,e,i){(0,l.r)(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return(0,h.U)(t,e,i)}}},96627:function(t,e,i){i.d(e,{r:function(){return u}});var n=i(97584),r=i(61101);let s=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var o=i(5703);let a={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},l=n._.length;function u(t,e,i){let{style:u,vars:h,transformOrigin:c}=t,d=!1,f=!1;for(let t in e){let i=e[t];if(n.G.has(t)){d=!0;continue}if((0,r.f9)(t)){h[t]=i;continue}{let e=s(i,o.j[t]);t.startsWith("origin")?(f=!0,c[t]=e):u[t]=e}}if(!e.transform&&(d||i?u.transform=function(t,e,i){let r="",u=!0;for(let h=0;h<l;h++){let l=n._[h],c=t[l];if(void 0===c)continue;let d=!0;if(!(d="number"==typeof c?c===(l.startsWith("scale")?1:0):0===parseFloat(c))||i){let t=s(c,o.j[l]);if(!d){u=!1;let e=a[l]||l;r+=`${e}(${t}) `}i&&(e[l]=t)}}return r=r.trim(),i?r=i(e,u?"":r):u&&(r="none"),r}(e,t.transform,i):u.transform&&(u.transform="none")),f){let{originX:t="50%",originY:e="50%",originZ:i=0}=c;u.transformOrigin=`${t} ${e} ${i}`}}},2473:function(t,e,i){i.d(e,{N:function(){return n}});function n(t,{style:e,vars:i},n,r){let s;let o=t.style;for(s in e)o[s]=e[s];for(s in r?.applyProjectionStyles(o,n),i)o.setProperty(s,i[s])}},53921:function(t,e,i){i.d(e,{U:function(){return s}});var n=i(30979),r=i(41980);function s(t,e,i){let{style:s}=t,o={};for(let a in s)((0,n.i)(s[a])||e.style&&(0,n.i)(e.style[a])||(0,r.j)(a,t)||i?.getValue(a)?.liveStyle!==void 0)&&(o[a]=s[a]);return o}},16578:function(t,e,i){i.d(e,{R:function(){return n}});let n=new WeakMap},47447:function(t,e,i){i.d(e,{e:function(){return f}});var n=i(97584),r=i(45379),s=i(33933),o=i(99260),a=i(18754),l=i(57132);let u=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"]);var h=i(13336),c=i(2473),d=i(7587);class f extends o.J{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=s.dO}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(n.G.has(e)){let t=(0,r.A)(e);return t&&t.default||0}return e=u.has(e)?e:(0,a.D)(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return(0,d.U)(t,e,i)}build(t,e,i){(0,l.i)(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){!function(t,e,i,n){for(let i in(0,c.N)(t,e,void 0,n),e.attrs)t.setAttribute(u.has(i)?i:(0,a.D)(i),e.attrs[i])}(t,e,0,n)}mount(t){this.isSVGTag=(0,h.a)(t.tagName),super.mount(t)}}},57132:function(t,e,i){i.d(e,{i:function(){return a}});var n=i(96627),r=i(13083);let s={offset:"stroke-dashoffset",array:"stroke-dasharray"},o={offset:"strokeDashoffset",array:"strokeDasharray"};function a(t,{attrX:e,attrY:i,attrScale:a,pathLength:l,pathSpacing:u=1,pathOffset:h=0,...c}
1,d,f,p){if((0,n.r)(t,c,f),d){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:m,style:g}=t;m.transform&&(g.transform=m.transform,delete m.transform),(g.transform||m.transformOrigin)&&(g.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),g.transform&&(g.transformBox=p?.transformBox??"fill-box",delete m.transformBox),void 0!==e&&(m.x=e),void 0!==i&&(m.y=i),void 0!==a&&(m.scale=a),void 0!==l&&function(t,e,i=1,n=0,a=!0){t.pathLength=1;let l=a?s:o;t[l.offset]=r.px.transform(-n);let u=r.px.transform(e),h=r.px.transform(i);t[l.array]=`${u} ${h}`}(m,l,u,h,!1)}},13336:function(t,e,i){i.d(e,{a:function(){return n}});let n=t=>"string"==typeof t&&"svg"===t.toLowerCase()},7587:function(t,e,i){i.d(e,{U:function(){return o}});var n=i(30979),r=i(97584),s=i(53921);function o(t,e,i){let o=(0,s.U)(t,e,i);for(let i in t)((0,n.i)(t[i])||(0,n.i)(e[i]))&&(o[-1!==r._.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return o}},23293:function(t,e,i){i.d(e,{G:function(){return o},M:function(){return a}});var n=i(12816),r=i(20330),s=i(36427);function o(t){return(0,n.H)(t.animate)||s.V.some(e=>(0,r.$)(t[e]))}function a(t){return!!(o(t)||t.variants)}},20330:function(t,e,i){i.d(e,{$:function(){return n}});function n(t){return"string"==typeof t||Array.isArray(t)}},12841:function(t,e,i){i.d(e,{x:function(){return r}});var n=i(99764);function r(t,e,i){let r=t.getProps();return(0,n.o)(r,e,void 0!==i?i:r.custom,t)}},99764:function(t,e,i){function n(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function r(t,e,i,r){if("function"==typeof e){let[s,o]=n(r);e=e(void 0!==i?i:t.custom,s,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,o]=n(r);e=e(void 0!==i?i:t.custom,s,o)}return e}i.d(e,{o:function(){return r}})},36427:function(t,e,i){i.d(e,{V:function(){return r},e:function(){return n}});let n=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],r=["initial",...n]},33791:function(t,e,i){i.d(e,{j:function(){return n}});let n="undefined"!=typeof window},66612:function(t,e,i){i.d(e,{p:function(){return o}});var n=i(48365),r=i(2784),s=i(60976);function o(t){let e=(0,r.useRef)(0),{isStatic:i}=(0,r.useContext)(s._);(0,r.useEffect)(()=>{if(i)return;let r=({timestamp:i,delta:n})=>{e.current||(e.current=i),t(i-e.current,n)};return n.Wi.update(r,!0),()=>(0,n.Pn)(r)},[t])}},3105:function(t,e,i){i.d(e,{h:function(){return r}});var n=i(2784);function r(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},23617:function(t,e,i){i.d(e,{L:function(){return r}});var n=i(2784);let r=i(33791).j?n.useLayoutEffect:n.useEffect},21687:function(t,e,i){i.d(e,{c:function(){return a}});var n=i(41804),r=i(2784),s=i(60976),o=i(3105);function a(t){let e=(0,o.h)(()=>(0,n.BX)(t)),{isStatic:i}=(0,r.useContext)(s._);if(i){let[,i]=(0,r.useState)(t);(0,r.useEffect)(()=>e.on("change",i),[])}return e}},40397:function(t,e,i){let n,r;i.d(e,{v:function(){return K}});var s=i(41804),o=i(77781),a=i(2784),l=i(87363),u=i(48365);function h(t,e){let i;let n=()=>{let{currentTime:n}=e,r=(null===n?0:n.value)/100;i!==r&&t(r),i=r};return u.Wi.preUpdate(n,!0),()=>(0,u.Pn)(n)}var c=i(11404),d=i(71137),f=i(47474);let p=new WeakMap,m=(t,e,i)=>(n,r)=>r&&r[0]?r[0][t+"Size"]:(0,d.v)(n)&&"getBBox"in n?n.getBBox()[e]:n[i],g=m("inline","width","offsetWidth"),v=m("block","height","offsetHeight");function y({target:t,borderBoxSize:e}){p.get(t)?.forEach(i=>{i(t,{get width(){return g(t,e)},get height(){return v(t,e)}})})}function x(t){t.forEach(y)}let w=new Set;var T=i(53870),P=i(38922);let b=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),S=()=>({time:0,x:b(),y:b()}),A={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function M(t,e,i,n){let r=i[e],{length:s,position:o}=A[e],a=r.current,l=i.time;r.current=t[`scroll${o}`],r.scrollLength=t[`scroll${s}`]-t[`client${s}`],r.offset.length=0,r.offset[0]=0,r.offset[1]=r.scrollLength,r.progress=(0,T.Y)(0,r.scrollLength,r.current);let u=n-l;r.velocity=u>50?0:(0,P.R)(r.current-a,u)}var E=i(8574),V=i(30888),D=i(19009),C=i(99970);let k={start:0,center:.5,end:1};function R(t,e,i=0){let n=0;if(t in k&&(t=k[t]),"string"==typeof t){let e=parseFloat(t);t.endsWith("px")?n=e:t.endsWith("%")?t=e/100:t.endsWith("vw")?n=e/100*document.documentElement.clientWidth:t.endsWith("vh")?n=e/100*document.documentElement.clientHeight:t=e}return"number"==typeof t&&(n=e*t),i+n}let L=[0,0],j=[[0,0],[1,1]],B={x:0,y:0},F=new WeakMap,O=new WeakMap,W=new WeakMap,I=t=>t===document.scrollingElement?window:t;function $(t,{container:e=document.scrollingElement,...i}={}){if(!e)return l.Z;let s=W.get(e);s||(s=new Set,W.set(e,s));
1let o=function(t,e,i,n={}){return{measure:e=>{!function(t,e=t,i){if(i.x.targetOffset=0,i.y.targetOffset=0,e!==t){let n=e;for(;n&&n!==t;)i.x.targetOffset+=n.offsetLeft,i.y.targetOffset+=n.offsetTop,n=n.offsetParent}i.x.targetLength=e===t?e.scrollWidth:e.clientWidth,i.y.targetLength=e===t?e.scrollHeight:e.clientHeight,i.x.containerLength=t.clientWidth,i.y.containerLength=t.clientHeight}(t,n.target,i),M(t,"x",i,e),M(t,"y",i,e),i.time=e,(n.offset||n.target)&&function(t,e,i){let{offset:n=j}=i,{target:r=t,axis:s="y"}=i,o="y"===s?"height":"width",a=r!==t?function(t,e){let i={x:0,y:0},n=t;for(;n&&n!==e;)if((0,C.R)(n))i.x+=n.offsetLeft,i.y+=n.offsetTop,n=n.offsetParent;else if("svg"===n.tagName){let t=n.getBoundingClientRect(),e=(n=n.parentElement).getBoundingClientRect();i.x+=t.left-e.left,i.y+=t.top-e.top}else if(n instanceof SVGGraphicsElement){let{x:t,y:e}=n.getBBox();i.x+=t,i.y+=e;let r=null,s=n.parentNode;for(;!r;)"svg"===s.tagName&&(r=s),s=n.parentNode;n=r}else break;return i}(r,t):B,l=r===t?{width:t.scrollWidth,height:t.scrollHeight}:"getBBox"in r&&"svg"!==r.tagName?r.getBBox():{width:r.clientWidth,height:r.clientHeight},u={width:t.clientWidth,height:t.clientHeight};e[s].offset.length=0;let h=!e[s].interpolate,c=n.length;for(let t=0;t<c;t++){let i=function(t,e,i,n){let r=Array.isArray(t)?t:L,s=0;return"number"==typeof t?r=[t,t]:"string"==typeof t&&(r=(t=t.trim()).includes(" ")?t.split(" "):[t,k[t]?t:"0"]),R(r[0],i,n)-R(r[1],e)}(n[t],u[o],l[o],a[s]);h||i===e[s].interpolatorOffsets[t]||(h=!0),e[s].offset[t]=i}h&&(e[s].interpolate=(0,E.s)(e[s].offset,(0,V.Y)(n),{clamp:!1}),e[s].interpolatorOffsets=[...e[s].offset]),e[s].progress=(0,D.u)(0,1,e[s].interpolate(e[s].current))}(t,i,n)},notify:()=>e(i)}}(e,t,S(),i);if(s.add(o),!F.has(e)){let t=()=>{for(let t of s)t.measure(u.frameData.timestamp);u.Wi.preUpdate(i)},i=()=>{for(let t of s)t.notify()},o=()=>u.Wi.read(t);F.set(e,o);let a=I(e);window.addEventListener("resize",o,{passive:!0}),e!==document.documentElement&&O.set(e,"function"==typeof e?(w.add(e),r||(r=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};w.forEach(e=>e(t))},window.addEventListener("resize",r)),()=>{w.delete(e),w.size||"function"!=typeof r||(window.removeEventListener("resize",r),r=void 0)}):function(t,e){n||"undefined"==typeof ResizeObserver||(n=new ResizeObserver(x));let i=(0,f.I)(t);return i.forEach(t=>{let i=p.get(t);i||(i=new Set,p.set(t,i)),i.add(e),n?.observe(t)}),()=>{i.forEach(t=>{let i=p.get(t);i?.delete(e),i?.size||n?.unobserve(t)})}}(e,o)),a.addEventListener("scroll",o,{passive:!0}),o()}let a=F.get(e);return u.Wi.read(a,!1,!0),()=>{(0,u.Pn)(a);let t=W.get(e);if(!t||(t.delete(o),t.size))return;let i=F.get(e);F.delete(e),i&&(I(e).removeEventListener("scroll",i),O.get(e)?.(),window.removeEventListener("resize",i))}}let U=new Map;function N({source:t,container:e,...i}){let{axis:n}=i;t&&(e=t);let r=U.get(e)??new Map;U.set(e,r);let s=i.target??"self",o=r.get(s)??{},a=n+(i.offset??[]).join(",");return o[a]||(o[a]=!i.target&&(0,c.t)()?new ScrollTimeline({source:e,axis:n}):function(t){let e={value:0},i=$(i=>{e.value=100*i[t.axis].progress},t);return{currentTime:e,cancel:i}}({container:e,...i})),o[a]}var X=i(3105),z=i(23617);let Y=()=>({scrollX:(0,s.BX)(0),scrollY:(0,s.BX)(0),scrollXProgress:(0,s.BX)(0),scrollYProgress:(0,s.BX)(0)}),H=t=>!!t&&!t.current;function K({container:t,target:e,...i}={}){let n=(0,X.h)(Y),r=(0,a.useRef)(null),s=(0,a.useRef)(!1),u=(0,a.useCallback)(()=>(r.current=function(t,{axis:e="y",container:i=document.scrollingElement,...n}={}){if(!i)return l.Z;let r={axis:e,container:i,...n};return"function"==typeof t?2===t.length?$(e=>{t(e[r.axis].progress,e)},r):h(t,N(r)):function(t,e){let i=N(e);return t.attachTimeline({timeline:e.target?void 0:i,observe:t=>(t.pause(),h(e=>{t.time=t.iterationDuration*e},i))})}(t,r)}((t,{x:e,y:i})=>{n.scrollX.set(e.current),n.scrollXProgress.set(e.progress),n.scrollY.set(i.current),n.scrollYProgress.set(i.progress)},{...i,container:t?.current||void 0,target:e?.current||void 0}),()=>{r.current?.()}),[t,e,JSON.stringify(i.offset)]);return(0,z.L)(()=>
1{if(s.current=!1,!(H(t)||H(e)))return u();s.current=!0},[u]),(0,a.useEffect)(()=>s.current?((0,o.k)(!H(t),"Container ref is defined but not hydrated","use-scroll-ref"),(0,o.k)(!H(e),"Target ref is defined but not hydrated","use-scroll-ref"),u()):void 0,[u]),n}},81190:function(t,e,i){i.d(e,{H:function(){return h}});var n=i(8574),r=i(3105),s=i(48365),o=i(23617),a=i(21687);function l(t,e){let i=(0,a.c)(e()),n=()=>i.set(e());return n(),(0,o.L)(()=>{let e=()=>s.Wi.preRender(n,!1,!0),i=t.map(t=>t.on("change",e));return()=>{i.forEach(t=>t()),(0,s.Pn)(n)}}),i}var u=i(41804);function h(t,e,i,r){if("function"==typeof t)return function(t){u.S1.current=[],t();let e=l(u.S1.current,t);return u.S1.current=void 0,e}(t);let s="function"==typeof e?e:function(...t){let e=!Array.isArray(t[0]),i=e?0:-1,r=t[0+i],s=t[1+i],o=t[2+i],a=t[3+i],l=(0,n.s)(s,o,a);return e?l(r):l}(e,i,r);return Array.isArray(t)?c(t,s):c([t],([t])=>s(t))}function c(t,e){let i=(0,r.h)(()=>[]);return l(t,()=>{i.length=0;let n=t.length;for(let e=0;e<n;e++)i[e]=t[e].get();return e(i)})}},39276:function(t,e,i){i.d(e,{K:function(){return s}});var n=i(30731),r=i(30979);function s(t,e){let i=t.getValue("willChange");if((0,r.i)(i)&&i.add)return i.add(e);if(!i&&n.c.WillChange){let i=new n.c.WillChange("auto");t.addValue("willChange",i),i.add(e)}}},24279:function(t,e,i){i.d(e,{S:function(){return p}});var n=i(77781),r=i(87302),s=i(19009),o=i(35881),a=i(10854),l=i(8506);let u={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function h(t,e){return t*Math.sqrt(1-e*e)}let c=["duration","bounce"],d=["stiffness","damping","mass"];function f(t,e){return e.some(e=>void 0!==t[e])}function p(t=u.visualDuration,e=u.bounce){let i,l,p,m,g,v;let y="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:x,restDelta:w}=y,T=y.keyframes[0],P=y.keyframes[y.keyframes.length-1],b={done:!1,value:T},{stiffness:S,damping:A,mass:M,duration:E,velocity:V,isResolvedFromDuration:D}=function(t){let e={velocity:u.velocity,stiffness:u.stiffness,damping:u.damping,mass:u.mass,isResolvedFromDuration:!1,...t};if(!f(t,d)&&f(t,c)){if(e.velocity=0,t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,r=2*(0,s.u)(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:u.mass,stiffness:n,damping:r}}else{let i=function({duration:t=u.duration,bounce:e=u.bounce,velocity:i=u.velocity,mass:o=u.mass}){let a,l;(0,n.K)(t<=(0,r.w)(u.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let c=1-e;c=(0,s.u)(u.minDamping,u.maxDamping,c),t=(0,s.u)(u.minDuration,u.maxDuration,(0,r.X)(t)),c<1?(a=e=>{let n=e*c,r=n*t;return .001-(n-i)/h(e,c)*Math.exp(-r)},l=e=>{let n=e*c*t,r=Math.pow(c,2)*Math.pow(e,2)*t,s=h(Math.pow(e,2),c);return(n*i+i-r)*Math.exp(-n)*(-a(e)+.001>0?-1:1)/s}):(a=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),l=e=>t*t*(i-e)*Math.exp(-e*t));let d=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(a,l,5/t);if(t=(0,r.w)(t),isNaN(d))return{stiffness:u.stiffness,damping:u.damping,duration:t};{let e=Math.pow(d,2)*o;return{stiffness:e,damping:2*c*Math.sqrt(o*e),duration:t}}}({...t,velocity:0});(e={...e,...i,mass:u.mass}).isResolvedFromDuration=!0}}return e}({...y,velocity:-(0,r.X)(y.velocity||0)}),C=V||0,k=A/(2*Math.sqrt(S*M)),R=P-T,L=(0,r.X)(Math.sqrt(S/M)),j=5>Math.abs(R);if(x||(x=j?u.restSpeed.granular:u.restSpeed.default),w||(w=j?u.restDelta.granular:u.restDelta.default),k<1)p=h(L,k),m=(C+k*L*R)/p,i=t=>P-Math.exp(-k*L*t)*(m*Math.sin(p*t)+R*Math.cos(p*t)),g=k*L*m+R*p,v=k*L*R-m*p,l=t=>Math.exp(-k*L*t)*(g*Math.sin(p*t)+v*Math.cos(p*t));else if(1===k){i=t=>P-Math.exp(-L*t)*(R+(C+L*R)*t);let t=C+L*R;l=e=>Math.exp(-L*e)*(L*t*e-C)}else{let t=L*Math.sqrt(k*k-1);i=e=>{let i=Math.exp(-k*L*e),n=Math.min(t*e,300);return P-i*((C+k*L*R)*Math.sinh(n)+t*R*Math.cosh(n))/t};let e=(C+k*L*R)/t,n=k*L*e-R*t,r=k*L*R-e*t;l=e=>{let i=Math.exp(-k*L*e),s=Math.min(t*e,300);return i*(n*Math.sinh(s)+r*Math.cosh(s))}}let B={calculatedDuration:D&&E||null,velocity:t=>(0,r.w)(l(t)),next:t=>{if(!D&&k<1){let e=Math.exp(-k*L*t),i=Math.sin(p*t),n=Math.cos(p*t),s=P-e*(m*i+R*n),o=(0,r.w)(e*(g*i+v*n));return b.done=Math.abs(o)<=x&&Math.abs(P-s)<=w,b.value=b.done?P:s,b}let e=i(t);if(D)b.done=t>=E;else{let i=(0,r.w)(l(t));b.done=Math.abs(i)<=x&&Math.abs(P-e)<=w}return b.value=b.done?P:e,b},toString:()=>{let t=Math.min((0,a.i)(B),a.E),e=(0,o.w)(e=>B.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return B}p.applyToOptions=t=>{let e=(0,l.S)(t,100,p);return t.ease=e.ease,t.duration=(0,r.w)(e.duration),t.type="keyframes",t}}
1,10854:function(t,e,i){i.d(e,{E:function(){return n},i:function(){return r}});let n=2e4;function r(t){let e=0,i=t.next(e);for(;!i.done&&e<n;)e+=50,i=t.next(e);return e>=n?1/0:e}},8506:function(t,e,i){i.d(e,{S:function(){return s}});var n=i(87302),r=i(10854);function s(t,e=100,i){let s=i({...t,keyframes:[0,e]}),o=Math.min((0,r.i)(s),r.E);return{type:"keyframes",ease:t=>s.next(o*t).value/e,duration:(0,n.X)(o)}}},33810:function(t,e,i){i.d(e,{x:function(){return n}});function n(t){return"function"==typeof t&&"applyToOptions"in t}},724:function(t,e,i){i.d(e,{e:function(){return d},m:function(){return c}});var n=i(51366),r=i(48365);let s=new Set,o=!1,a=!1,l=!1;function u(){if(a){let t=Array.from(s).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=(0,n.Ei)(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}a=!1,o=!1,s.forEach(t=>t.complete(l)),s.clear()}function h(){s.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(a=!0)})}function c(){l=!0,h(),u(),l=!1}class d{constructor(t,e,i,n,r,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(s.add(this),o||(o=!0,r.Wi.read(h),r.Wi.resolveKeyframes(u))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let r=n?.get(),s=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let n=i.readValue(e,s);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=s),n&&void 0===r&&n.set(t[0])}!function(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),s.delete(this)}cancel(){"scheduled"===this.state&&(s.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}},30888:function(t,e,i){i.d(e,{Y:function(){return r}});var n=i(25402);function r(t){let e=[0];return(0,n.c)(e,t.length-1),e}},25402:function(t,e,i){i.d(e,{c:function(){return s}});var n=i(53870),r=i(86977);function s(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let o=(0,n.Y)(0,e,s);t.push((0,r.t)(i,1,o))}}},51366:function(t,e,i){i.d(e,{Ei:function(){return h},lw:function(){return c},mP:function(){return a}});var n=i(67619),r=i(97584),s=i(95988),o=i(13083);let a=t=>t===s.Rx||t===o.px,l=new Set(["x","y","z"]),u=r._.filter(t=>!l.has(t));function h(t){let e=[];return u.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(i.startsWith("scale")?1:0))}),e}let c={width:({x:t},{paddingLeft:e="0",paddingRight:i="0",boxSizing:n})=>{let r=t.max-t.min;return"border-box"===n?r:r-parseFloat(e)-parseFloat(i)},height:({y:t},{paddingTop:e="0",paddingBottom:i="0",boxSizing:n})=>{let r=t.max-t.min;return"border-box"===n?r:r-parseFloat(e)-parseFloat(i)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>(0,n.WK)(e,"x"),y:(t,{transform:e})=>(0,n.WK)(e,"y")};c.translateX=c.x,c.translateY=c.y},99890:function(t,e,i){i.d(e,{e:function(){return n}});function n(t,e){let i=t?.[e]??t?.default??t;return i!==t?function(t,e){if(t?.inherit&&e){let{inherit:i,...n}=t;return{...e,...n}}return t}(i,t):i}},61101:function(t,e,i){i.d(e,{V3:function(){return l},f9:function(){return r},tm:function(){return o}});let n=t=>e=>"string"==typeof e&&e.startsWith(t),r=n("--"),s=n("var(--"),o=t=>!!s(t)&&a.test(t.split("/*")[0].trim()),a=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function l(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}}
1,35881:function(t,e,i){i.d(e,{w:function(){return n}});let n=(t,e,i=10)=>{let n="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)n+=Math.round(1e4*t(e/(r-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`}},71277:function(t,e,i){i.d(e,{Z:function(){return o}});var n=i(30731);let r=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var s=i(82504);function o(t,e){let i=!1,o=!0,a={delta:0,timestamp:0,isProcessing:!1},l=()=>i=!0,u=r.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,r=!1,o=!1,a=new WeakSet,l={delta:0,timestamp:0,isProcessing:!1},u=0;function h(e){a.has(e)&&(c.schedule(e),t()),u++,e(l)}let c={schedule:(t,e=!1,s=!1)=>{let o=s&&r?i:n;return e&&a.add(t),o.add(t),t},cancel:t=>{n.delete(t),a.delete(t)},process:t=>{if(l=t,r){o=!0;return}r=!0;let a=i;i=n,n=a,i.forEach(h),e&&s.f.value&&s.f.value.frameloop[e].push(u),u=0,i.clear(),r=!1,o&&(o=!1,c.process(t))}};return c}(l,e?i:void 0),t),{}),{setup:h,read:c,resolveKeyframes:d,preUpdate:f,update:p,preRender:m,render:g,postRender:v}=u,y=()=>{let r=n.c.useManualTiming,s=r?a.timestamp:performance.now();i=!1,r||(a.delta=o?1e3/60:Math.max(Math.min(s-a.timestamp,40),1)),a.timestamp=s,a.isProcessing=!0,h.process(a),c.process(a),d.process(a),f.process(a),p.process(a),m.process(a),g.process(a),v.process(a),a.isProcessing=!1,i&&e&&(o=!1,t(y))},x=()=>{i=!0,o=!0,a.isProcessing||t(y)};return{schedule:r.reduce((t,e)=>{let n=u[e];return t[e]=(t,e=!1,r=!1)=>(i||x(),n.schedule(t,e,r)),t},{}),cancel:t=>{for(let e=0;e<r.length;e++)u[r[e]].cancel(t)},state:a,steps:u}}},48365:function(t,e,i){i.d(e,{Pn:function(){return s},Wi:function(){return r},frameData:function(){return o},yL:function(){return a}});var n=i(87363);let{schedule:r,cancel:s,state:o,steps:a}=(0,i(71277).Z)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:n.Z,!0)},17586:function(t,e,i){i.d(e,{g:function(){return n}});let{schedule:n,cancel:r}=(0,i(71277).Z)(queueMicrotask,!1)},87977:function(t,e,i){let n;i.d(e,{X:function(){return a}});var r=i(30731),s=i(48365);function o(){n=void 0}let a={now:()=>(void 0===n&&a.set(s.frameData.isProcessing||r.c.useManualTiming?s.frameData.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(o)}}},67619:function(t,e,i){i.d(e,{E$:function(){return h},RT:function(){return d},WK:function(){return c}});let n=t=>180*t/Math.PI,r=t=>o(n(Math.atan2(t[1],t[0]))),s={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:r,rotateZ:r,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},o=t=>((t%=360)<0&&(t+=360),t),a=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),l=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),u={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:a,scaleY:l,scale:t=>(a(t)+l(t))/2,rotateX:t=>o(n(Math.atan2(t[6],t[5]))),rotateY:t=>o(n(Math.atan2(-t[2],t[0]))),rotateZ:r,rotate:r,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 h(t){return t.includes("scale")?1:0}function c(t,e){let i,n;if(!t||"none"===t)return h(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=u,n=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=s,n=e}if(!n)return h(e);let o=i[e],a=n[1].split(",").map(f);return"function"==typeof o?o(a):a[o]}let d=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return c(i,e)};function f(t){return parseFloat(t.trim())}},39612:function(t,e,i){i.d(e,{z:function(){return n}});let n=new Set(["width","height","top","left","right","bottom",...i(97584)._])},97584:function(t,e,i){i.d(e,{G:function(){return r},_:function(){return n}});let n=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],r=new Set(n)},72387:function(t,e,i){i.d(e,{P:function(){return n}});let n={layout:0,mainThread:0,waapi:0}},82504:function(t,e,i){i.d(e,{f:function(){return n}});let n={value:null,addProjectionMetrics:null}},8574:function(t,e,i){i.d(e,{s:function(){return h}});var n=i(30731),r=i(87363),s=i(87856),o=i(77781),a=i(53870),l=i(19009),u=i(70865);function h(t,e,{clamp:i=!0,ease:h,mixer:c}={}){let d=t.length;if((0,o.k)(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 f=t[0]===t[1];t[0]>t[d-1]&&(t=[...t].reverse(),e=[...e].reverse());
1let p=function(t,e,i){let o=[],a=i||n.c.mix||u.C,l=t.length-1;for(let i=0;i<l;i++){let n=a(t[i],t[i+1]);if(e){let t=Array.isArray(e)?e[i]||r.Z:e;n=(0,s.z)(t,n)}o.push(n)}return o}(e,h,c),m=p.length,g=i=>{if(f&&i<t[0])return e[0];let n=0;if(m>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let r=(0,a.Y)(t[n],t[n+1],i);return p[n](r)};return i?e=>g((0,l.u)(t[0],t[d-1],e)):g}},99970:function(t,e,i){i.d(e,{R:function(){return r}});var n=i(66019);function r(t){return(0,n.K)(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}},71137:function(t,e,i){i.d(e,{v:function(){return r}});var n=i(66019);function r(t){return(0,n.K)(t)&&"ownerSVGElement"in t}},34459:function(t,e,i){i.d(e,{r:function(){return r}});var n=i(71137);function r(t){return(0,n.v)(t)&&"svg"===t.tagName}},70865:function(t,e,i){i.d(e,{C:function(){return A}});var n=i(87856),r=i(77781),s=i(61101),o=i(41615),a=i(40959),l=i(17596),u=i(18529);function h(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}var c=i(99609);function d(t,e){return i=>i>0?e:t}var f=i(86977);let p=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},m=[l.$,c.m,u.J],g=t=>m.find(e=>e.test(t));function v(t){let e=g(t);if((0,r.K)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===u.J&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,s=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;r=h(a,n,t+1/3),s=h(a,n,t),o=h(a,n,t-1/3)}else r=s=o=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*o),alpha:n}}(i)),i}let y=(t,e)=>{let i=v(t),n=v(e);if(!i||!n)return d(t,e);let r={...i};return t=>(r.red=p(i.red,n.red,t),r.green=p(i.green,n.green,t),r.blue=p(i.blue,n.blue,t),r.alpha=(0,f.t)(i.alpha,n.alpha,t),c.m.transform(r))},x=new Set(["none","hidden"]);function w(t,e){return i=>(0,f.t)(t,e,i)}function T(t){return"number"==typeof t?w:"string"==typeof t?(0,s.tm)(t)?d:o.$.test(t)?y:S:Array.isArray(t)?P:"object"==typeof t?o.$.test(t)?y:b:d}function P(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>T(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function b(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=T(t[r])(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let S=(t,e)=>{let i=a.P.createTransformer(e),s=(0,a.V)(t),o=(0,a.V)(e);return s.indexes.var.length===o.indexes.var.length&&s.indexes.color.length===o.indexes.color.length&&s.indexes.number.length>=o.indexes.number.length?x.has(t)&&!o.values.length||x.has(e)&&!s.values.length?x.has(t)?i=>i<=0?t:e:i=>i>=1?e:t:(0,n.z)(P(function(t,e){let i=[],n={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){let s=e.types[r],o=t.indexes[s][n[s]],a=t.values[o]??0;i[r]=a,n[s]++}return i}(s,o),o.values),i):((0,r.K)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),d(t,e))};function A(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?(0,f.t)(t,e,i):T(t)(t,e)}},86977:function(t,e,i){i.d(e,{t:function(){return n}});let n=(t,e,i)=>t+(e-t)*i},47474:function(t,e,i){i.d(e,{I:function(){return n}});function n(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let n=document;e&&(n=e.current);let r=i?.[t]??n.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t).filter(t=>null!=t)}},3719:function(t,e,i){i.d(e,{p:function(){return s}});var n=i(4321);let r={};function s(t,e){let i=(0,n.X)(t);return()=>r[e]??i()}},11404:function(t,e,i){i.d(e,{t:function(){return n}});let n=(0,i(3719).p)(()=>void 0!==window.ScrollTimeline,"scrollTimeline")},41804:function(t,e,i){i.d(e,{BX:function(){return h},S1:function(){return l}});var n=i(91214),r=i(38922),s=i(87977),o=i(48365);let a=t=>!isNaN(parseFloat(t)),l={current:void 0};class u{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=s.X.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=s.X.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=a(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new n.L);let i=this.events[t].add(e);return"change"===t?()=>{i(),o.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return l.current&&l.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=s.X.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,r.R)(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function h(t,e){return new u(t,e)}}
1,17596:function(t,e,i){i.d(e,{$:function(){return r}});var n=i(99609);let r={test:(0,i(47681).i)("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:n.m.transform}},18529:function(t,e,i){i.d(e,{J:function(){return a}});var n=i(95988),r=i(13083),s=i(54348),o=i(47681);let a={test:(0,o.i)("hsl","hue"),parse:(0,o.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:o=1})=>"hsla("+Math.round(t)+", "+r.aQ.transform((0,s.N)(e))+", "+r.aQ.transform((0,s.N)(i))+", "+(0,s.N)(n.Fq.transform(o))+")"}},41615:function(t,e,i){i.d(e,{$:function(){return o}});var n=i(17596),r=i(18529),s=i(99609);let o={test:t=>s.m.test(t)||n.$.test(t)||r.J.test(t),parse:t=>s.m.test(t)?s.m.parse(t):r.J.test(t)?r.J.parse(t):n.$.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?s.m.transform(t):r.J.transform(t),getAnimatableNone:t=>{let e=o.parse(t);return e.alpha=0,o.transform(e)}}},99609:function(t,e,i){i.d(e,{m:function(){return u}});var n=i(19009),r=i(95988),s=i(54348),o=i(47681);let a=t=>(0,n.u)(0,255,t),l={...r.Rx,transform:t=>Math.round(a(t))},u={test:(0,o.i)("rgb","red"),parse:(0,o.d)("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+l.transform(t)+", "+l.transform(e)+", "+l.transform(i)+", "+(0,s.N)(r.Fq.transform(n))+")"}},47681:function(t,e,i){i.d(e,{i:function(){return s},d:function(){return o}});var n=i(67365);let r=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,s=(t,e)=>i=>!!("string"==typeof i&&r.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),o=(t,e,i)=>r=>{if("string"!=typeof r)return r;let[s,o,a,l]=r.match(n.K);return{[t]:parseFloat(s),[e]:parseFloat(o),[i]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},61989:function(t,e,i){i.d(e,{h:function(){return l}});var n=i(40959),r=i(67365);let s=new Set(["brightness","contrast","saturate","opacity"]);function o(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(r.K)||[];if(!n)return t;let o=i.replace(n,""),a=s.has(e)?1:0;return n!==i&&(a*=100),e+"("+a+o+")"}let a=/\b([a-z-]*)\(.*?\)/gu,l={...n.P,getAnimatableNone:t=>{let e=t.match(a);return e?e.map(o).join(" "):t}}},40959:function(t,e,i){i.d(e,{V:function(){return h},P:function(){return p}});var n=i(41615);let r=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var s=i(67365),o=i(54348);let a="number",l="color",u=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function h(t){let e=t.toString(),i=[],r={color:[],number:[],var:[]},s=[],o=0,h=e.replace(u,t=>(n.$.test(t)?(r.color.push(o),s.push(l),i.push(n.$.parse(t))):t.startsWith("var(")?(r.var.push(o),s.push("var"),i.push(t)):(r.number.push(o),s.push(a),i.push(parseFloat(t))),++o,"${}")).split("${}");return{values:i,split:h,indexes:r,types:s}}function c({split:t,types:e}){let i=t.length;return r=>{let s="";for(let u=0;u<i;u++)if(s+=t[u],void 0!==r[u]){let t=e[u];t===a?s+=(0,o.N)(r[u]):t===l?s+=n.$.transform(r[u]):s+=r[u]}return s}}let d=t=>"number"==typeof t?0:n.$.test(t)?n.$.getAnimatableNone(t):t,f=(t,e)=>"number"==typeof t?e?.trim().endsWith("/")?t:0:d(t),p={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(s.K)?.length||0)+(t.match(r)?.length||0)>0},parse:function(t){return h(t).values},createTransformer:function(t){return c(h(t))},getAnimatableNone:function(t){let e=h(t);return c(e)(e.values.map((t,i)=>f(t,e.split[i])))}}},50105:function(t,e,i){i.d(e,{s:function(){return r}});var n=i(40959);let r={...n.P,getAnimatableNone:t=>{let e=n.P.parse(t);return n.P.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}}}
1,32399:function(t,e,i){i.d(e,{$:function(){return o},C:function(){return a}});var n=i(95988),r=i(13083),s=i(62464);let o=[n.Rx,r.px,r.aQ,r.RW,r.vw,r.vh,{test:t=>"auto"===t,parse:t=>t}],a=t=>o.find((0,s.l)(t))},45379:function(t,e,i){i.d(e,{A:function(){return a}});var n=i(41615),r=i(61989),s=i(50105);let o={...i(5703).j,color:n.$,backgroundColor:n.$,outlineColor:n.$,fill:n.$,stroke:n.$,borderColor:n.$,borderTopColor:n.$,borderRightColor:n.$,borderBottomColor:n.$,borderLeftColor:n.$,filter:r.h,WebkitFilter:r.h,mask:s.s,WebkitMask:s.s},a=t=>o[t]},5703:function(t,e,i){i.d(e,{j:function(){return a}});var n=i(95988);let r={...n.Rx,transform:Math.round};var s=i(13083);let o={rotate:s.RW,rotateX:s.RW,rotateY:s.RW,rotateZ:s.RW,scale:n.bA,scaleX:n.bA,scaleY:n.bA,scaleZ:n.bA,skew:s.RW,skewX:s.RW,skewY:s.RW,distance:s.px,translateX:s.px,translateY:s.px,translateZ:s.px,x:s.px,y:s.px,z:s.px,perspective:s.px,transformPerspective:s.px,opacity:n.Fq,originX:s.$C,originY:s.$C,originZ:s.px},a={borderWidth:s.px,borderTopWidth:s.px,borderRightWidth:s.px,borderBottomWidth:s.px,borderLeftWidth:s.px,borderRadius:s.px,borderTopLeftRadius:s.px,borderTopRightRadius:s.px,borderBottomRightRadius:s.px,borderBottomLeftRadius:s.px,width:s.px,maxWidth:s.px,height:s.px,maxHeight:s.px,top:s.px,right:s.px,bottom:s.px,left:s.px,inset:s.px,insetBlock:s.px,insetBlockStart:s.px,insetBlockEnd:s.px,insetInline:s.px,insetInlineStart:s.px,insetInlineEnd:s.px,padding:s.px,paddingTop:s.px,paddingRight:s.px,paddingBottom:s.px,paddingLeft:s.px,paddingBlock:s.px,paddingBlockStart:s.px,paddingBlockEnd:s.px,paddingInline:s.px,paddingInlineStart:s.px,paddingInlineEnd:s.px,margin:s.px,marginTop:s.px,marginRight:s.px,marginBottom:s.px,marginLeft:s.px,marginBlock:s.px,marginBlockStart:s.px,marginBlockEnd:s.px,marginInline:s.px,marginInlineStart:s.px,marginInlineEnd:s.px,fontSize:s.px,backgroundPositionX:s.px,backgroundPositionY:s.px,...o,zIndex:r,fillOpacity:n.Fq,strokeOpacity:n.Fq,numOctaves:r}},95988:function(t,e,i){i.d(e,{Fq:function(){return s},Rx:function(){return r},bA:function(){return o}});var n=i(19009);let r={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},s={...r,transform:t=>(0,n.u)(0,1,t)},o={...r,default:1}},13083:function(t,e,i){i.d(e,{$C:function(){return u},RW:function(){return r},aQ:function(){return s},px:function(){return o},vh:function(){return a},vw:function(){return l}});let n=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),r=n("deg"),s=n("%"),o=n("px"),a=n("vh"),l=n("vw"),u={...s,parse:t=>s.parse(t)/100,transform:t=>s.transform(100*t)}},62464:function(t,e,i){i.d(e,{l:function(){return n}});let n=t=>e=>e.test(t)},88943:function(t,e,i){i.d(e,{T:function(){return l}});var n=i(40959),r=i(61989),s=i(50105),o=i(45379);let a=new Set([r.h,s.s]);function l(t,e){let i=(0,o.A)(t);return a.has(i)||(i=n.P),i.getAnimatableNone?i.getAnimatableNone(e):void 0}},67365:function(t,e,i){i.d(e,{K:function(){return n}});let n=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},54348:function(t,e,i){i.d(e,{N:function(){return n}});let n=t=>Math.round(1e5*t)/1e5},30979:function(t,e,i){i.d(e,{i:function(){return n}});let n=t=>!!(t&&t.getVelocity)},87508:function(t,e,i){function n(t,e){-1===t.indexOf(e)&&t.push(e)}function r(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}i.d(e,{cl:function(){return r},y4:function(){return n}})},19009:function(t,e,i){i.d(e,{u:function(){return n}});let n=(t,e,i)=>i>e?e:i<t?t:i},85548:function(t,e,i){i.d(e,{Bn:function(){return o},X7:function(){return a},Z7:function(){return s}});var n=i(26183),r=i(42196);let s=t=>1-Math.sin(Math.acos(t)),o=(0,r.M)(s),a=(0,n.o)(s)},26183:function(t,e,i){i.d(e,{o:function(){return n}});let n=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},42196:function(t,e,i){i.d(e,{M:function(){return n}});let n=t=>e=>1-t(1-e)},71334:function(t,e,i){i.d(e,{N:function(){return n}});let n=t=>Array.isArray(t)&&"number"!=typeof t[0]},77781:function(t,e,i){i.d(e,{K:function(){return n},k:function(){return r}}),i(34406);let n=()=>{},r=()=>{}},30731:function(t,e,i){i.d(e,{c:function(){return n}});let n={}}
1,10020:function(t,e,i){i.d(e,{P:function(){return n}});let n=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)},66019:function(t,e,i){i.d(e,{K:function(){return n}});let n=t=>"object"==typeof t&&null!==t},26687:function(t,e,i){i.d(e,{W:function(){return n}});let n=t=>/^0[^.\s]+$/u.test(t)},4321:function(t,e,i){i.d(e,{X:function(){return n}});function n(t){let e;return()=>(void 0===e&&(e=t()),e)}},87363:function(t,e,i){i.d(e,{Z:function(){return n}});let n=t=>t},87856:function(t,e,i){i.d(e,{z:function(){return n}});let n=(...t)=>t.reduce((t,e)=>i=>e(t(i)))},53870:function(t,e,i){i.d(e,{Y:function(){return n}});let n=(t,e,i)=>{let n=e-t;return n?(i-t)/n:1}},91214:function(t,e,i){i.d(e,{L:function(){return r}});var n=i(87508);class r{constructor(){this.subscriptions=[]}add(t){return(0,n.y4)(this.subscriptions,t),()=>(0,n.cl)(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},87302:function(t,e,i){i.d(e,{X:function(){return r},w:function(){return n}});let n=t=>1e3*t,r=t=>t/1e3},38922:function(t,e,i){i.d(e,{R:function(){return n}});let n=(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.