"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1408],{6500:(t,e,i)=>{i.d(e,{l:()=>n});let n=t=>t},8453:(t,e,i)=>{i.d(e,{v:()=>s});var n=i(16105);class s{constructor(){this.subscriptions=[]}add(t){return(0,n.Kq)(this.subscriptions,t),()=>(0,n.Ai)(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let s=0;s<n;s++){let n=this.subscriptions[s];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},9150:(t,e,i)=>{i.d(e,{a:()=>n});let n=t=>Math.round(1e5*t)/1e5},12096:(t,e,i)=>{i.d(e,{K:()=>s});var n=i(34100);function s(t,e,i){let s=t.getProps();return(0,n.a)(s,e,void 0!==i?i:s.custom,t)}},16105:(t,e,i)=>{function n(t,e){-1===t.indexOf(e)&&t.push(e)}function s(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}i.d(e,{Ai:()=>s,Kq:()=>n})},16815:(t,e,i)=>{i.d(e,{G:()=>n});let n=t=>e=>1-t(1-e)},18344:(t,e,i)=>{i.d(e,{s:()=>u});var n=i(94416),s=i(86553),r=i(78041),a=i(98763),o=i(55888);function l(t,e){[...e].reverse().forEach(i=>{let n=t.getVariant(i);n&&(0,a.U)(t,n),t.variantChildren&&t.variantChildren.forEach(t=>{l(t,e)})})}function h(){let t=!1,e=new Set,i={subscribe:t=>(e.add(t),()=>void e.delete(t)),start(i,n){(0,r.V)(t,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");let s=[];return e.forEach(t=>{s.push((0,o._)(t,i,{transitionOverride:n}))}),Promise.all(s)},set:i=>((0,r.V)(t,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),e.forEach(t=>{var e,n;e=t,Array.isArray(n=i)?l(e,n):"string"==typeof n?l(e,[n]):(0,a.U)(e,n)})),stop(){e.forEach(t=>{t.values.forEach(t=>t.stop())})},mount:()=>(t=!0,()=>{t=!1,i.stop()})};return i}let u=function(){let t=(0,n.M)(h);return(0,s.E)(t.mount,[]),t}},20508:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(71847).A)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},21391:(t,e,i)=>{i.d(e,{j:()=>s,p:()=>a});let n=t=>e=>"string"==typeof e&&e.startsWith(t),s=n("--"),r=n("var(--"),a=t=>!!r(t)&&o.test(t.split("/*")[0].trim()),o=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},21873:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(71847).A)("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]])},22039:(t,e,i)=>{i.d(e,{OQ:()=>h});var n=i(8453),s=i(45242),r=i(27424),a=i(73934);let o={current:void 0};class l{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=r.k.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=r.k.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new n.v);let i=this.events[t].add(e);return"change"===t?()=>{i(),a.Gt.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return o.current&&o.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=r.k.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,s.f)(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function h(t,e){return new l(t,e)}},23656:(t,e,i)=>{i.d(e,{F:()=>s});let n=(t,e)=>i=>e(t(i)),s=(...t)=>t.reduce(n)},23867:(t,e,i)=>{i.d(e,{Q:()=>n});let n={value:null,addProjectionMetrics:null}},23919:(t,e,i)=>{i.d(e,{$:()=>r,q:()=>a});var n=i(24531);let s=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,r=(t,e)=>i=>!!("string"==typeof i&&s.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),a=(t,e,i)=>s=>{if("string"!=typeof s)return s;let[r,a,o,l]=s.match(n.S);return{[t]:parseFloat(r),[e]:parseFloat(a),[i]:parseFloat(o),alpha:void 0!==l?parseFloat(l):1}}},24531:(t,e,i)=>{i.d(e,{S:()=>n});let n=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},24888:(t,e,i)=>{i.d(e,{V:()=>u,f:()=>m});var n=i(55389);let s=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var r=i(24531),a=i(9150);let o="number",l="color",h=/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 u(t){let e=t.toString(),i=[],s={color:[],number:[],var:[]},r=[],a=0,u=e.replace(h,t=>(n.y.test(t)?(s.color.push(a),r.push(l),i.push(n.y.parse(t))):t.startsWith("var(")?(s.var.push(a),r.push("var"),i.push(t)):(s.number.push(a),r.push(o),i.push(parseFloat(t))),++a,"${}")).split("${}");return{values:i,split:u,indexes:s,types:r}}function d(t){return u(t).values}function c(t){let{split:e,types:i}=u(t),s=e.length;return t=>{let r="";for(let h=0;h<s;h++)if(r+=e[h],void 0!==t[h]){let e=i[h];e===o?r+=(0,a.a)(t[h]):e===l?r+=n.y.transform(t[h]):r+=t[h]}return r}}let p=t=>"number"==typeof t?0:n.y.test(t)?n.y.getAnimatableNone(t):t,m={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(r.S)?.length||0)+(t.match(s)?.length||0)>0},parse:d,createTransformer:c,getAnimatableNone:function(t){let e=d(t);return c(t)(e.map(p))}}},27290:(t,e,i)=>{i.d(e,{X:()=>s,f:()=>n});let n=t=>1e3*t,s=t=>t/1e3},27424:(t,e,i)=>{let n;i.d(e,{k:()=>o});var s=i(40042),r=i(73934);function a(){n=void 0}let o={now:()=>(void 0===n&&o.set(r.uv.isProcessing||s.W.useManualTiming?r.uv.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(a)}}},31739:(t,e,i)=>{i.d(e,{B:()=>l});var n=i(48895),s=i(37822),r=i(9150),a=i(23919);let o={...s.ai,transform:t=>Math.round((0,n.q)(0,255,t))},l={test:(0,a.$)("rgb","red"),parse:(0,a.q)("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+o.transform(t)+", "+o.transform(e)+", "+o.transform(i)+", "+(0,r.a)(s.X4.transform(n))+")"}},33182:(t,e,i)=>{i.d(e,{S:()=>n});let n=t=>!!(t&&t.getVelocity)},33577:(t,e,i)=>{i.d(e,{B:()=>n});let n="undefined"!=typeof window},34100:(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 s(t,e,i,s){if("function"==typeof e){let[r,a]=n(s);e=e(void 0!==i?i:t.custom,r,a)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,a]=n(s);e=e(void 0!==i?i:t.custom,r,a)}return e}i.d(e,{a:()=>s})},37822:(t,e,i)=>{i.d(e,{X4:()=>r,ai:()=>s,hs:()=>a});var n=i(48895);let s={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},r={...s,transform:t=>(0,n.q)(0,1,t)},a={...s,default:1}},37899:(t,e,i)=>{i.d(e,{Ib:()=>c,ry:()=>d,zs:()=>u});let n=t=>180*t/Math.PI,s=t=>a(n(Math.atan2(t[1],t[0]))),r={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:s,rotateZ:s,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},a=t=>((t%=360)<0&&(t+=360),t),o=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),l=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),h={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:o,scaleY:l,scale:t=>(o(t)+l(t))/2,rotateX:t=>a(n(Math.atan2(t[6],t[5]))),rotateY:t=>a(n(Math.atan2(-t[2],t[0]))),rotateZ:s,rotate:s,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 u(t){return+!!t.includes("scale")}function d(t,e){let i,n;if(!t||"none"===t)return u(e);let s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(s)i=h,n=s;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=r,n=e}if(!n)return u(e);let a=i[e],o=n[1].split(",").map(p);return"function"==typeof a?a(o):o[a]}let c=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return d(i,e)};function p(t){return parseFloat(t.trim())}},39347:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(71847).A)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]])},39361:(t,e,i)=>{i.d(e,{k:()=>n});let n=(t,e,i)=>t+(e-t)*i},40042:(t,e,i)=>{i.d(e,{W:()=>n});let n={}},40479:(t,e,i)=>{i.d(e,{U:()=>n,f:()=>s});let n=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],s=new Set(n)},41089:(t,e,i)=>{i.d(e,{p:()=>n});let n=t=>Array.isArray(t)},41515:(t,e,i)=>{i.d(e,{P:()=>s});var n=i(61729);function s(t){return t.props[n.n]}},44300:(t,e,i)=>{i.d(e,{I:()=>a});var n=i(40042);let s=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var r=i(23867);function a(t,e){let i=!1,a=!0,o={delta:0,timestamp:0,isProcessing:!1},l=()=>i=!0,h=s.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,s=!1,a=!1,o=new WeakSet,l={delta:0,timestamp:0,isProcessing:!1},h=0;function u(e){o.has(e)&&(d.schedule(e),t()),h++,e(l)}let d={schedule:(t,e=!1,r=!1)=>{let a=r&&s?i:n;return e&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{if(l=t,s){a=!0;return}s=!0,[i,n]=[n,i],i.forEach(u),e&&r.Q.value&&r.Q.value.frameloop[e].push(h),h=0,i.clear(),s=!1,a&&(a=!1,d.process(t))}};return d}(l,e?i:void 0),t),{}),{setup:u,read:d,resolveKeyframes:c,preUpdate:p,update:m,preRender:f,render:v,postRender:y}=h,g=()=>{let s=n.W.useManualTiming?o.timestamp:performance.now();i=!1,n.W.useManualTiming||(o.delta=a?1e3/60:Math.max(Math.min(s-o.timestamp,40),1)),o.timestamp=s,o.isProcessing=!0,u.process(o),d.process(o),c.process(o),p.process(o),m.process(o),f.process(o),v.process(o),y.process(o),o.isProcessing=!1,i&&e&&(a=!1,t(g))};return{schedule:s.reduce((e,n)=>{let s=h[n];return e[n]=(e,n=!1,r=!1)=>(!i&&(i=!0,a=!0,o.isProcessing||t(g)),s.schedule(e,n,r)),e},{}),cancel:t=>{for(let e=0;e<s.length;e++)h[s[e]].cancel(t)},state:o,steps:h}}},44807:(t,e,i)=>{i.d(e,{V:()=>o});var n=i(37822),s=i(92419),r=i(9150),a=i(23919);let o={test:(0,a.$)("hsl","hue"),parse:(0,a.q)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:a=1})=>"hsla("+Math.round(t)+", "+s.KN.transform((0,r.a)(e))+", "+s.KN.transform((0,r.a)(i))+", "+(0,r.a)(n.X4.transform(a))+")"}},45242:(t,e,i)=>{i.d(e,{f:()=>n});function n(t,e){return e?1e3/e*t:0}},48895:(t,e,i)=>{i.d(e,{q:()=>n});let n=(t,e,i)=>i>e?e:i<t?t:i},52579:(t,e,i)=>{i.d(e,{L:()=>n});function n(t,e,i,s=0,r=1){let a=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,l=(o-1)*s;return"function"==typeof i?i(a,o):1===r?a*s:l-a*s}},52987:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(71847).A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},55389:(t,e,i)=>{i.d(e,{y:()=>a});var n=i(68894),s=i(44807),r=i(31739);let a={test:t=>r.B.test(t)||n.u.test(t)||s.V.test(t),parse:t=>r.B.test(t)?r.B.parse(t):s.V.test(t)?s.V.parse(t):n.u.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?r.B.transform(t):s.V.transform(t),getAnimatableNone:t=>{let e=a.parse(t);return e.alpha=0,a.transform(e)}}},55888:(t,e,i)=>{i.d(e,{_:()=>m});var n=i(12096),s=i(63354),r=i(73934),a=i(88786),o=i(98763),l=i(76258),h=i(41515),u=i(65177);function d(t,e,{delay:i=0,transitionOverride:n,type:c}={}){let{transition:p=t.getDefaultTransition(),transitionEnd:m,...f}=e;n&&(p=n);let v=[],y=c&&t.animationState&&t.animationState.getState()[c];for(let e in f){let n=t.getValue(e,t.latestValues[e]??null),o=f[e];if(void 0===o||y&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(y,e))continue;let d={delay:i,...(0,s.r)(p||{},e)},c=n.get();if(void 0!==c&&!n.isAnimating&&!Array.isArray(o)&&o===c&&!d.velocity)continue;let m=!1;if(window.MotionHandoffAnimation){let i=(0,h.P)(t);if(i){let t=window.MotionHandoffAnimation(i,e,r.Gt);null!==t&&(d.startTime=t,m=!0)}}(0,l.g)(t,e),n.start((0,u.f)(e,n,o,t.shouldReduceMotion&&a.$.has(e)?{type:!1}:d,t,m));let g=n.animation;g&&v.push(g)}return m&&Promise.all(v).then(()=>{r.Gt.update(()=>{m&&(0,o.U)(t,m)})}),v}var c=i(52579);function p(t,e,i={}){let s=(0,n.K)(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(r=i.transitionOverride);let a=s?()=>Promise.all(d(t,s,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:a,staggerDirection:o}=r;return function(t,e,i=0,n=0,s=0,r=1,a){let o=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),o.push(p(l,e,{...a,delay:i+("function"==typeof n?0:n)+(0,c.L)(t.variantChildren,l,n,s,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(o)}(t,e,n,s,a,o,i)}:()=>Promise.resolve(),{when:l}=r;if(!l)return Promise.all([a(),o(i.delay)]);{let[t,e]="beforeChildren"===l?[a,o]:[o,a];return t().then(()=>e())}}function m(t,e,i={}){let s;if(t.notify("AnimationStart",e),Array.isArray(e))s=Promise.all(e.map(e=>p(t,e,i)));else if("string"==typeof e)s=p(t,e,i);else{let r="function"==typeof e?(0,n.K)(t,e,i.custom):e;s=Promise.all(d(t,r,i))}return s.then(()=>{t.notify("AnimationComplete",e)})}},61729:(t,e,i)=>{i.d(e,{n:()=>n});let n="data-"+(0,i(92287).I)("framerAppearId")},62213:(t,e,i)=>{i.d(e,{q:()=>n});let n={layout:0,mainThread:0,waapi:0}},63354:(t,e,i)=>{i.d(e,{r:()=>n});function n(t,e){return t?.[e]??t?.default??t}},63946:(t,e,i)=>{i.d(e,{h:()=>c,q:()=>d});var n=i(78617),s=i(73934);let r=new Set,a=!1,o=!1,l=!1;function h(){if(o){let t=Array.from(r).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=(0,n.W9)(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)})}o=!1,a=!1,r.forEach(t=>t.complete(l)),r.clear()}function u(){r.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(o=!0)})}function d(){l=!0,u(),h(),l=!1}class c{constructor(t,e,i,n,s,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=s,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(r.add(this),a||(a=!0,s.Gt.read(u),s.Gt.resolveKeyframes(h))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let s=n?.get(),r=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){let n=i.readValue(e,r);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=r),n&&void 0===s&&n.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),r.delete(this)}cancel(){"scheduled"===this.state&&(r.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}},65177:(t,e,i)=>{i.d(e,{f:()=>tO});var n=i(63354);function s(t){t.duration=0,t.type="keyframes"}var r=i(73934),a=i(23656),o=i(48895),l=i(27290),h=i(27424),u=i(62213),d=i(78041),c=i(21391),p=i(55389),m=i(24888),f=i(68894),v=i(44807);function y(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 g=i(31739);function x(t,e){return i=>i>0?e:t}var T=i(39361);let w=(t,e,i)=>{let n=t*t,s=i*(e*e-n)+n;return s<0?0:Math.sqrt(s)},P=[f.u,g.B,v.V];function b(t){let e=P.find(e=>e.test(t));if((0,d.$)(!!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===v.V&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let s=0,r=0,a=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,o=2*i-n;s=y(o,n,t+1/3),r=y(o,n,t),a=y(o,n,t-1/3)}else s=r=a=i;return{red:Math.round(255*s),green:Math.round(255*r),blue:Math.round(255*a),alpha:n}}(i)),i}let S=(t,e)=>{let i=b(t),n=b(e);if(!i||!n)return x(t,e);let s={...i};return t=>(s.red=w(i.red,n.red,t),s.green=w(i.green,n.green,t),s.blue=w(i.blue,n.blue,t),s.alpha=(0,T.k)(i.alpha,n.alpha,t),g.B.transform(s))},A=new Set(["none","hidden"]);function V(t,e){return i=>(0,T.k)(t,e,i)}function k(t){return"number"==typeof t?V:"string"==typeof t?(0,c.p)(t)?x:p.y.test(t)?S:C:Array.isArray(t)?M:"object"==typeof t?p.y.test(t)?S:E:x}function M(t,e){let i=[...t],n=i.length,s=t.map((t,i)=>k(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=s[e](t);return i}}function E(t,e){let i={...t,...e},n={};for(let s in i)void 0!==t[s]&&void 0!==e[s]&&(n[s]=k(t[s])(t[s],e[s]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let C=(t,e)=>{let i=m.f.createTransformer(e),n=(0,m.V)(t),s=(0,m.V)(e);return n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length?A.has(t)&&!s.values.length||A.has(e)&&!n.values.length?function(t,e){return A.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):(0,a.F)(M(function(t,e){let i=[],n={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let r=e.types[s],a=t.indexes[r][n[r]],o=t.values[a]??0;i[s]=o,n[r]++}return i}(n,s),s.values),i):((0,d.$)(!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"),x(t,e))};function D(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?(0,T.k)(t,e,i):k(t)(t,e)}let R=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>r.Gt.update(e,t),stop:()=>(0,r.WG)(e),now:()=>r.uv.isProcessing?r.uv.timestamp:h.k.now()}},j=(t,e,i=10)=>{let n="",s=Math.max(Math.round(e/i),2);for(let e=0;e<s;e++)n+=Math.round(1e4*t(e/(s-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`};function L(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}var F=i(45242);function B(t,e,i){let n=Math.max(e-5,0);return(0,F.f)(i-t(n),e-n)}let O={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 I(t,e){return t*Math.sqrt(1-e*e)}let U=["duration","bounce"],W=["stiffness","damping","mass"];function N(t,e){return e.some(e=>void 0!==t[e])}function $(t=O.visualDuration,e=O.bounce){let i,n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:s,restDelta:r}=n,a=n.keyframes[0],h=n.keyframes[n.keyframes.length-1],u={done:!1,value:a},{stiffness:c,damping:p,mass:m,duration:f,velocity:v,isResolvedFromDuration:y}=function(t){let e={velocity:O.velocity,stiffness:O.stiffness,damping:O.damping,mass:O.mass,isResolvedFromDuration:!1,...t};if(!N(t,W)&&N(t,U))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,s=2*(0,o.q)(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:O.mass,stiffness:n,damping:s}}else{let i=function({duration:t=O.duration,bounce:e=O.bounce,velocity:i=O.velocity,mass:n=O.mass}){let s,r;(0,d.$)(t<=(0,l.f)(O.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-e;a=(0,o.q)(O.minDamping,O.maxDamping,a),t=(0,o.q)(O.minDuration,O.maxDuration,(0,l.X)(t)),a<1?(s=e=>{let n=e*a,s=n*t;return .001-(n-i)/I(e,a)*Math.exp(-s)},r=e=>{let n=e*a*t,r=Math.pow(a,2)*Math.pow(e,2)*t,o=Math.exp(-n),l=I(Math.pow(e,2),a);return(n*i+i-r)*o*(-s(e)+.001>0?-1:1)/l}):(s=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),r=e=>t*t*(i-e)*Math.exp(-e*t));let h=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(s,r,5/t);if(t=(0,l.f)(t),isNaN(h))return{stiffness:O.stiffness,damping:O.damping,duration:t};{let e=Math.pow(h,2)*n;return{stiffness:e,damping:2*a*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:O.mass}).isResolvedFromDuration=!0}return e}({...n,velocity:-(0,l.X)(n.velocity||0)}),g=v||0,x=p/(2*Math.sqrt(c*m)),T=h-a,w=(0,l.X)(Math.sqrt(c/m)),P=5>Math.abs(T);if(s||(s=P?O.restSpeed.granular:O.restSpeed.default),r||(r=P?O.restDelta.granular:O.restDelta.default),x<1){let t=I(w,x);i=e=>h-Math.exp(-x*w*e)*((g+x*w*T)/t*Math.sin(t*e)+T*Math.cos(t*e))}else if(1===x)i=t=>h-Math.exp(-w*t)*(T+(g+w*T)*t);else{let t=w*Math.sqrt(x*x-1);i=e=>{let i=Math.exp(-x*w*e),n=Math.min(t*e,300);return h-i*((g+x*w*T)*Math.sinh(n)+t*T*Math.cosh(n))/t}}let b={calculatedDuration:y&&f||null,next:t=>{let e=i(t);if(y)u.done=t>=f;else{let n=0===t?g:0;x<1&&(n=0===t?(0,l.f)(g):B(i,t,e));let a=Math.abs(h-e)<=r;u.done=Math.abs(n)<=s&&a}return u.value=u.done?h:e,u},toString:()=>{let t=Math.min(L(b),2e4),e=j(e=>b.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return b}function q({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:a,min:o,max:l,restDelta:h=.5,restSpeed:u}){let d,c,p=t[0],m={done:!1,value:p},f=i*e,v=p+f,y=void 0===a?v:a(v);y!==v&&(f=y-p);let g=t=>-f*Math.exp(-t/n),x=t=>y+g(t),T=t=>{let e=g(t),i=x(t);m.done=Math.abs(e)<=h,m.value=m.done?y:i},w=t=>{let e;if(e=m.value,void 0!==o&&e<o||void 0!==l&&e>l){var i;d=t,c=$({keyframes:[m.value,(i=m.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:B(x,t,m.value),damping:s,stiffness:r,restDelta:h,restSpeed:u})}};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,T(t),w(t)),void 0!==d&&t>=d)?c.next(t-d):(e||T(t),m)}}}$.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),s=Math.min(L(n),2e4);return{type:"keyframes",ease:t=>n.next(s*t).value/e,duration:(0,l.X)(s)}}(t,100,$);return t.ease=e.ease,t.duration=(0,l.f)(e.duration),t.type="keyframes",t};var G=i(6500);let X=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function K(t,e,i,n){return t===e&&i===n?G.l:s=>0===s||1===s?s:X(function(t,e,i,n,s){let r,a,o=0;do(r=X(a=e+(i-e)/2,n,s)-t)>0?i=a:e=a;while(Math.abs(r)>1e-7&&++o<12);return a}(s,0,1,t,i),e,n)}let z=K(.42,0,1,1),H=K(0,0,.58,1),Y=K(.42,0,.58,1);var Q=i(95516),_=i(16815);let Z=K(.33,1.53,.69,.99),J=(0,_.G)(Z),tt=(0,Q.V)(J),te=t=>(t*=2)<1?.5*J(t):.5*(2-Math.pow(2,-10*(t-1)));var ti=i(69809);let tn=t=>Array.isArray(t)&&"number"==typeof t[0],ts={linear:G.l,easeIn:z,easeInOut:Y,easeOut:H,circIn:ti.po,circInOut:ti.tn,circOut:ti.yT,backIn:J,backInOut:tt,backOut:Z,anticipate:te},tr=t=>{if(tn(t)){(0,d.V)(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,s]=t;return K(e,i,n,s)}return"string"==typeof t?((0,d.V)(void 0!==ts[t],`Invalid easing type '${t}'`,"invalid-easing-type"),ts[t]):t};var ta=i(40042),to=i(91225);function tl({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var s;let r=Array.isArray(n)&&"number"!=typeof n[0]?n.map(tr):tr(n),l={done:!1,value:e[0]},h=function(t,e,{clamp:i=!0,ease:n,mixer:s}={}){let r=t.length;if((0,d.V)(r===e.length,"Both input and output ranges must be the same length","range-length"),1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];let l=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let h=function(t,e,i){let n=[],s=i||ta.W.mix||D,r=t.length-1;for(let i=0;i<r;i++){let r=s(t[i],t[i+1]);if(e){let t=Array.isArray(e)?e[i]||G.l:e;r=(0,a.F)(t,r)}n.push(r)}return n}(e,n,s),u=h.length,c=i=>{if(l&&i<t[0])return e[0];let n=0;if(u>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let s=(0,to.q)(t[n],t[n+1],i);return h[n](s)};return i?e=>c((0,o.q)(t[0],t[r-1],e)):c}((s=i&&i.length===e.length?i:function(t){let e=[0];return!function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let s=(0,to.q)(0,e,n);t.push((0,T.k)(i,1,s))}}(e,t.length-1),e}(e),s.map(e=>e*t)),e,{ease:Array.isArray(r)?r:e.map(()=>r||Y).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(l.value=h(e),l.done=e>=t,l)}}let th=t=>null!==t;function tu(t,{repeat:e,repeatType:i="loop"},n,s=1){let r=t.filter(th),a=s<0||e&&"loop"!==i&&e%2==1?0:r.length-1;return a&&void 0!==n?n:r[a]}let td={decay:q,inertia:q,tween:tl,keyframes:tl,spring:$};function tc(t){"string"==typeof t.type&&(t.type=td[t.type])}class tp{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let tm=t=>t/100;class tf extends tp{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==h.k.now()&&this.tick(h.k.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},u.q.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;tc(t);let{type:e=tl,repeat:i=0,repeatDelay:n=0,repeatType:s,velocity:r=0}=t,{keyframes:o}=t,l=e||tl;l!==tl&&"number"!=typeof o[0]&&(this.mixKeyframes=(0,a.F)(tm,D(o[0],o[1])),o=[0,100]);let h=l({...t,keyframes:o});"mirror"===s&&(this.mirroredGenerator=l({...t,keyframes:[...o].reverse(),velocity:-r})),null===h.calculatedDuration&&(h.calculatedDuration=L(h));let{calculatedDuration:u}=h;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=h}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{generator:i,totalDuration:n,mixKeyframes:s,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:l}=this;if(null===this.startTime)return i.next(0);let{delay:h=0,keyframes:u,repeat:d,repeatType:c,repeatDelay:p,type:m,onUpdate:f,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let y=this.currentTime-h*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?y<0:y>n;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let x=this.currentTime,T=i;if(d){let t=Math.min(this.currentTime,n)/a,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===c?(i=1-i,p&&(i-=p/a)):"mirror"===c&&(T=r)),x=(0,o.q)(0,1,i)*a}let w=g?{done:!1,value:u[0]}:T.next(x);s&&(w.value=s(w.value));let{done:P}=w;g||null===l||(P=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let b=null===this.holdTime&&("finished"===this.state||"running"===this.state&&P);return b&&m!==q&&(w.value=tu(u,this.options,v,this.speed)),f&&f(w.value),b&&this.finish(),w}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.f)(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?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(h.k.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=(0,l.X)(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=R,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(h.k.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,u.q.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 tv=i(63946);function ty(t){let e;return()=>(void 0===e&&(e=t()),e)}let tg=ty(()=>void 0!==window.ScrollTimeline);var tx=i(23867);let tT={},tw=function(t,e){let i=ty(t);return()=>tT[e]??i()}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),tP=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,tb={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tP([0,.65,.55,1]),circOut:tP([.55,0,1,.45]),backIn:tP([.31,.01,.66,-.59]),backOut:tP([.33,1.53,.69,.99])};function tS(t){return"function"==typeof t&&"applyToOptions"in t}class tA extends tp{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;let{element:e,name:i,keyframes:n,pseudoElement:s,allowFlatten:r=!1,finalKeyframe:a,onComplete:o}=t;this.isPseudoElement=!!s,this.allowFlatten=r,this.options=t,(0,d.V)("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let l=function({type:t,...e}){return tS(t)&&tw()?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:s=300,repeat:r=0,repeatType:a="loop",ease:o="easeOut",times:l}={},h){let d={[e]:i};l&&(d.offset=l);let c=function t(e,i){if(e)return"function"==typeof e?tw()?j(e,i):"ease-out":tn(e)?tP(e):Array.isArray(e)?e.map(e=>t(e,i)||tb.easeOut):tb[e]}(o,s);Array.isArray(c)&&(d.easing=c),tx.Q.value&&u.q.waapi++;let p={delay:n,duration:s,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:"reverse"===a?"alternate":"normal"};h&&(p.pseudoElement=h);let m=t.animate(d,p);return tx.Q.value&&m.finished.finally(()=>{u.q.waapi--}),m}(e,i,n,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let t=tu(n,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(t):function(t,e,i){e.startsWith("--")?t.style.setProperty(e,i):t.style[e]=i}(e,i,t),this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(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(){this.isPseudoElement||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){this.finishedTime=null,this.animation.currentTime=(0,l.f)(t)}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 Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&tg())?(this.animation.timeline=t,G.l):e(this)}}let tV={anticipate:te,backInOut:tt,circInOut:ti.tn};class tk extends tA{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in tV&&(t.ease=tV[t.ease])}(t),tc(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:s,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let a=new tf({...r,autoplay:!1}),o=(0,l.f)(this.finishedTime??this.time);e.setWithVelocity(a.sample(o-10).value,a.sample(o).value,10),a.stop()}}let tM=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(m.f.test(t)||"0"===t)&&!t.startsWith("url(")),tE=new Set(["opacity","clipPath","filter","transform"]),tC=ty(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class tD extends tp{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:r="loop",keyframes:a,name:o,motionValue:l,element:u,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=h.k.now();let c={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:s,repeatType:r,name:o,motionValue:l,element:u,...d},p=u?.KeyframeResolver||tv.h;this.keyframeResolver=new p(a,(t,e,i)=>this.onKeyframesResolved(t,e,c,!i),o,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){this.keyframeResolver=void 0;let{name:r,type:a,velocity:o,delay:l,isHandoff:u,onUpdate:c}=i;this.resolvedAt=h.k.now(),!function(t,e,i,n){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],a=tM(s,e),o=tM(r,e);return(0,d.$)(a===o,`You are trying to animate ${e} from "${s}" to "${r}". "${a?r:s}" is not an animatable value.`,"value-not-animatable"),!!a&&!!o&&(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||tS(i))&&n)}(t,r,a,o)&&((ta.W.instantAnimations||!l)&&c?.(tu(t,i,e)),t[0]=t[t.length-1],s(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=!u&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:s,damping:r,type:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:o,transformTemplate:l}=e.owner.getProps();return tC()&&i&&tE.has(i)&&("transform"!==i||!l)&&!o&&!n&&"mirror"!==s&&0!==r&&"inertia"!==a}(p)?new tk({...p,element:p.motionValue.owner.current}):new tf(p);m.finished.then(()=>this.notifyFinished()).catch(G.l),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}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,tv.q)()),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 tR=t=>null!==t;var tj=i(40479);let tL={type:"spring",stiffness:500,damping:25,restSpeed:10},tF={type:"keyframes",duration:.8},tB={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tO=(t,e,i,a={},o,h)=>u=>{let d=(0,n.r)(a,t)||{},c=d.delay||a.delay||0,{elapsed:p=0}=a;p-=(0,l.f)(c);let m={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...d,delay:-p,onUpdate:t=>{e.set(t),d.onUpdate&&d.onUpdate(t)},onComplete:()=>{u(),d.onComplete&&d.onComplete()},name:t,motionValue:e,element:h?void 0:o};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:s,repeat:r,repeatType:a,repeatDelay:o,from:l,elapsed:h,...u}){return!!Object.keys(u).length}(d)&&Object.assign(m,((t,{keyframes:e})=>e.length>2?tF:tj.f.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:tL:tB)(t,m)),m.duration&&(m.duration=(0,l.f)(m.duration)),m.repeatDelay&&(m.repeatDelay=(0,l.f)(m.repeatDelay)),void 0!==m.from&&(m.keyframes[0]=m.from);let f=!1;if(!1!==m.type&&(0!==m.duration||m.repeatDelay)||(s(m),0===m.delay&&(f=!0)),(ta.W.instantAnimations||ta.W.skipAnimations)&&(f=!0,s(m),m.delay=0),m.allowFlatten=!d.type&&!d.ease,f&&!h&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"},n){let s=t.filter(tR),r=e&&"loop"!==i&&e%2==1?0:s.length-1;return s[r]}(m.keyframes,d);if(void 0!==t)return void r.Gt.update(()=>{m.onUpdate(t),m.onComplete()})}return d.isSync?new tf(m):new tD(m)}},68894:(t,e,i)=>{i.d(e,{u:()=>s});var n=i(31739);let s={test:(0,i(23919).$)("#"),parse:function(t){let e="",i="",n="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}},transform:n.B.transform}},69809:(t,e,i)=>{i.d(e,{po:()=>r,tn:()=>o,yT:()=>a});var n=i(95516),s=i(16815);let r=t=>1-Math.sin(Math.acos(t)),a=(0,s.G)(r),o=(0,n.V)(r)},73934:(t,e,i)=>{i.d(e,{Gt:()=>s,PP:()=>o,WG:()=>r,uv:()=>a});var n=i(6500);let{schedule:s,cancel:r,state:a,steps:o}=(0,i(44300).I)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:n.l,!0)},76258:(t,e,i)=>{i.d(e,{g:()=>r});var n=i(40042),s=i(33182);function r(t,e){let i=t.getValue("willChange");if((0,s.S)(i)&&i.add)return i.add(e);if(!i&&n.W.WillChange){let i=new n.W.WillChange("auto");t.addValue("willChange",i),i.add(e)}}},78041:(t,e,i)=>{i.d(e,{$:()=>n,V:()=>s});let n=()=>{},s=()=>{}},78598:(t,e,i)=>{i.d(e,{P:()=>np});var n=i(12115),s=i(40479),r=i(37899),a=i(21391);function o({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}var l=i(39361);function h(t){return void 0===t||1===t}function u({scale:t,scaleX:e,scaleY:i}){return!h(t)||!h(e)||!h(i)}function d(t){return u(t)||c(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function c(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function p(t,e,i,n,s){return void 0!==s&&(t=n+s*(t-n)),n+i*(t-n)+e}function m(t,e=0,i=1,n,s){t.min=p(t.min,e,i,n,s),t.max=p(t.max,e,i,n,s)}function f(t,{x:e,y:i}){m(t.x,e.translate,e.scale,e.originPoint),m(t.y,i.translate,i.scale,i.originPoint)}function v(t,e){t.min=t.min+e,t.max=t.max+e}function y(t,e,i,n,s=.5){let r=(0,l.k)(t.min,t.max,s);m(t,e,i,r,n)}function g(t,e){y(t.x,e.x,e.scaleX,e.scale,e.originX),y(t.y,e.y,e.scaleY,e.scale,e.originY)}function x(t,e){return o(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}var T=i(88786),w=i(37822),P=i(92419);let b=t=>e=>e.test(t),S=[w.ai,P.px,P.KN,P.uj,P.vw,P.vh,{test:t=>"auto"===t,parse:t=>t}],A=t=>S.find(b(t));var V=i(78041);let k=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),M=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var E=i(63946);let C=t=>/^0[^.\s]+$/u.test(t);var D=i(24888),R=i(24531);let j=new Set(["brightness","contrast","saturate","opacity"]);function L(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(R.S)||[];if(!n)return t;let s=i.replace(n,""),r=+!!j.has(e);return n!==i&&(r*=100),e+"("+r+s+")"}let F=/\b([a-z-]*)\(.*?\)/gu,B={...D.f,getAnimatableNone:t=>{let e=t.match(F);return e?e.map(L).join(" "):t}};var O=i(55389);let I={...w.ai,transform:Math.round},U={rotate:P.uj,rotateX:P.uj,rotateY:P.uj,rotateZ:P.uj,scale:w.hs,scaleX:w.hs,scaleY:w.hs,scaleZ:w.hs,skew:P.uj,skewX:P.uj,skewY:P.uj,distance:P.px,translateX:P.px,translateY:P.px,translateZ:P.px,x:P.px,y:P.px,z:P.px,perspective:P.px,transformPerspective:P.px,opacity:w.X4,originX:P.gQ,originY:P.gQ,originZ:P.px},W={borderWidth:P.px,borderTopWidth:P.px,borderRightWidth:P.px,borderBottomWidth:P.px,borderLeftWidth:P.px,borderRadius:P.px,radius:P.px,borderTopLeftRadius:P.px,borderTopRightRadius:P.px,borderBottomRightRadius:P.px,borderBottomLeftRadius:P.px,width:P.px,maxWidth:P.px,height:P.px,maxHeight:P.px,top:P.px,right:P.px,bottom:P.px,left:P.px,padding:P.px,paddingTop:P.px,paddingRight:P.px,paddingBottom:P.px,paddingLeft:P.px,margin:P.px,marginTop:P.px,marginRight:P.px,marginBottom:P.px,marginLeft:P.px,backgroundPositionX:P.px,backgroundPositionY:P.px,...U,zIndex:I,fillOpacity:w.X4,strokeOpacity:w.X4,numOctaves:I},N={...W,color:O.y,backgroundColor:O.y,outlineColor:O.y,fill:O.y,stroke:O.y,borderColor:O.y,borderTopColor:O.y,borderRightColor:O.y,borderBottomColor:O.y,borderLeftColor:O.y,filter:B,WebkitFilter:B},$=t=>N[t];function q(t,e){let i=$(t);return i!==B&&(i=D.f),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let G=new Set(["auto","none","0"]);var X=i(78617);class K extends E.h{constructor(t,e,i,n,s){super(t,e,i,n,s,!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.p)(n))){let s=function t(e,i,n=1){(0,V.V)(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[s,r]=function(t){let e=M.exec(t);if(!e)return[,];let[,i,n,s]=e;return[`--${i??n}`,s]}(e);if(!s)return;let o=window.getComputedStyle(i).getPropertyValue(s);if(o){let t=o.trim();return k(t)?parseFloat(t):t}return(0,a.p)(r)?t(r,i,n+1):r}(n,e.current);void 0!==s&&(t[i]=s),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!T.$.has(i)||2!==t.length)return;let[n,s]=t,r=A(n),o=A(s);if(r!==o)if((0,X.E4)(r)&&(0,X.E4)(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else X.Hr[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||C(n)))&&i.push(e)}i.length&&function(t,e,i){let n,s=0;for(;s<t.length&&!n;){let e=t[s];"string"==typeof e&&!G.has(e)&&(0,D.V)(e).values.length&&(n=t[s]),s++}if(n&&i)for(let s of e)t[s]=q(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=X.Hr[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 s=i.length-1,r=i[s];i[s]=X.Hr[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}var z=i(33182),H=i(27424),Y=i(73934),Q=i(22039);let _=[...S,O.y,D.f],{schedule:Z}=(0,i(44300).I)(queueMicrotask,!1);var J=i(8453);let tt={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"]},te={};for(let t in tt)te[t]={isEnabled:e=>tt[t].some(t=>!!e[t])};let ti=()=>({translate:0,scale:1,origin:0,originPoint:0}),tn=()=>({x:ti(),y:ti()}),ts=()=>({min:0,max:0}),tr=()=>({x:ts(),y:ts()});var ta=i(33577);let to={current:null},tl={current:!1},th=new WeakMap;function tu(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function td(t){return"string"==typeof t||Array.isArray(t)}let tc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tp=["initial",...tc];function tm(t){return tu(t.animate)||tp.some(e=>td(t[e]))}function tf(t){return!!(tm(t)||t.variants)}var tv=i(34100);let ty=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class tg{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:s,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=E.h,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=H.k.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,Y.Gt.render(this.render,!1,!0))};let{latestValues:o,renderState:l}=r;this.latestValues=o,this.baseTarget={...o},this.initialValues=e.initial?{...o}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=tm(e),this.isVariantNode=tf(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:h,...u}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in u){let e=u[t];void 0!==o[t]&&(0,z.S)(e)&&e.set(o[t])}}mount(t){this.current=t,th.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)),tl.current||function(){if(tl.current=!0,ta.B)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>to.current=t.matches;t.addEventListener("change",e),e()}else to.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||to.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),(0,Y.WG)(this.notifyUpdate),(0,Y.WG)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=s.f.has(t);n&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&Y.Gt.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 te){let e=te[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):tr()}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<ty.length;e++){let i=ty[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let s=e[n],r=i[n];if((0,z.S)(s))t.addValue(n,s);else if((0,z.S)(r))t.addValue(n,(0,Q.OQ)(s,{owner:t}));else if(r!==s)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(n);t.addValue(n,(0,Q.OQ)(void 0!==e?e:s,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}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,Q.OQ)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=i){if("string"==typeof i&&(k(i)||C(i)))i=parseFloat(i);else{let n;n=i,!_.find(b(n))&&D.f.test(e)&&(i=q(t,e))}this.setBaseTarget(t,(0,z.S)(i)?i.get():i)}return(0,z.S)(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=(0,tv.a)(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,z.S)(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 J.v),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){Z.render(this.render)}}class tx extends tg{constructor(){super(...arguments),this.KeyframeResolver=K}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,z.S)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}let tT=(t,e)=>e&&"number"==typeof t?e.transform(t):t,tw={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tP=s.U.length;function tb(t,e,i){let{style:n,vars:r,transformOrigin:o}=t,l=!1,h=!1;for(let t in e){let i=e[t];if(s.f.has(t)){l=!0;continue}if((0,a.j)(t)){r[t]=i;continue}{let e=tT(i,W[t]);t.startsWith("origin")?(h=!0,o[t]=e):n[t]=e}}if(!e.transform&&(l||i?n.transform=function(t,e,i){let n="",r=!0;for(let a=0;a<tP;a++){let o=s.U[a],l=t[o];if(void 0===l)continue;let h=!0;if(!(h="number"==typeof l?l===+!!o.startsWith("scale"):0===parseFloat(l))||i){let t=tT(l,W[o]);if(!h){r=!1;let e=tw[o]||o;n+=`${e}(${t}) `}i&&(e[o]=t)}}return n=n.trim(),i?n=i(e,r?"":n):r&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),h){let{originX:t="50%",originY:e="50%",originZ:i=0}=o;n.transformOrigin=`${t} ${e} ${i}`}}function tS(t,{style:e,vars:i},n,s){let r,a=t.style;for(r in e)a[r]=e[r];for(r in s?.applyProjectionStyles(a,n),i)a.setProperty(r,i[r])}let tA={};function tV(t,{layout:e,layoutId:i}){return s.f.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!tA[t]||"opacity"===t)}function tk(t,e,i){let{style:n}=t,s={};for(let r in n)((0,z.S)(n[r])||e.style&&(0,z.S)(e.style[r])||tV(r,t)||i?.getValue(r)?.liveStyle!==void 0)&&(s[r]=n[r]);return s}class tM extends tx{constructor(){super(...arguments),this.type="html",this.renderInstance=tS}readValueFromInstance(t,e){if(s.f.has(e))return this.projection?.isProjecting?(0,r.zs)(e):(0,r.Ib)(t,e);{let i=window.getComputedStyle(t),n=((0,a.j)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return x(t,e)}build(t,e,i){tb(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return tk(t,e,i)}}var tE=i(92287);let tC={offset:"stroke-dashoffset",array:"stroke-dasharray"},tD={offset:"strokeDashoffset",array:"strokeDasharray"};function tR(t,{attrX:e,attrY:i,attrScale:n,pathLength:s,pathSpacing:r=1,pathOffset:a=0,...o},l,h,u){if(tb(t,o,h),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:c}=t;d.transform&&(c.transform=d.transform,delete d.transform),(c.transform||d.transformOrigin)&&(c.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),c.transform&&(c.transformBox=u?.transformBox??"fill-box",delete d.transformBox),void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==n&&(d.scale=n),void 0!==s&&function(t,e,i=1,n=0,s=!0){t.pathLength=1;let r=s?tC:tD;t[r.offset]=P.px.transform(-n);let a=P.px.transform(e),o=P.px.transform(i);t[r.array]=`${a} ${o}`}(d,s,r,a,!1)}let tj=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"]),tL=t=>"string"==typeof t&&"svg"===t.toLowerCase();function tF(t,e,i){let n=tk(t,e,i);for(let i in t)((0,z.S)(t[i])||(0,z.S)(e[i]))&&(n[-1!==s.U.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}class tB extends tx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=tr}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(s.f.has(e)){let t=$(e);return t&&t.default||0}return e=tj.has(e)?e:(0,tE.I)(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return tF(t,e,i)}build(t,e,i){tR(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in tS(t,e,void 0,n),e.attrs)t.setAttribute(tj.has(i)?i:(0,tE.I)(i),e.attrs[i])}mount(t){this.isSVGTag=tL(t.tagName),super.mount(t)}}let tO=["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 tI(t){if("string"!=typeof t||t.includes("-"));else if(tO.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var tU=i(95155);let tW=(0,n.createContext)({}),tN=(0,n.createContext)({strict:!1}),t$=(0,n.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),tq=(0,n.createContext)({});function tG(t){return Array.isArray(t)?t.join(" "):t}let tX=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function tK(t,e,i){for(let n in e)(0,z.S)(e[n])||tV(n,i)||(t[n]=e[n])}let tz=()=>({...tX(),attrs:{}}),tH=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 tY(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||tH.has(t)}let tQ=t=>!tY(t);try{!function(t){"function"==typeof t&&(tQ=e=>e.startsWith("on")?!tY(e):t(e))}(require("@emotion/is-prop-valid").default)}catch{}let t_=(0,n.createContext)(null);var tZ=i(94416);function tJ(t){return(0,z.S)(t)?t.get():t}let t0=t=>(e,i)=>{let s=(0,n.useContext)(tq),r=(0,n.useContext)(t_),a=()=>(function(t,e,i,n){let{scrapeMotionValuesFromProps:s,createRenderState:r}=t;return{latestValues:function(t,e,i,n){let s={},r=n(t,{});for(let t in r)s[t]=tJ(r[t]);let{initial:a,animate:o}=t,l=tm(t),h=tf(t);e&&h&&!l&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===o&&(o=e.animate));let u=!!i&&!1===i.initial,d=(u=u||!1===a)?o:a;if(d&&"boolean"!=typeof d&&!tu(d)){let e=Array.isArray(d)?d:[d];for(let i=0;i<e.length;i++){let n=(0,tv.a)(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=u?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(e,i,n,s),renderState:r()}})(t,e,s,r);return i?a():(0,tZ.M)(a)},t1=t0({scrapeMotionValuesFromProps:tk,createRenderState:tX}),t2=t0({scrapeMotionValuesFromProps:tF,createRenderState:tz}),t5=Symbol.for("motionComponentSymbol");function t3(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var t9=i(61729);let t4=(0,n.createContext)({});var t8=i(86553);function t7(t){var e,i;let{forwardMotionProps:s=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0;r&&function(t){for(let e in t)te[e]={...te[e],...t[e]}}(r);let o=tI(t)?t2:t1;function l(e,i){var r;let l,h={...(0,n.useContext)(t$),...e,layoutId:function(t){let{layoutId:e}=t,i=(0,n.useContext)(tW).id;return i&&void 0!==e?i+"-"+e:e}(e)},{isStatic:u}=h,d=function(t){let{initial:e,animate:i}=function(t,e){if(tm(t)){let{initial:e,animate:i}=t;return{initial:!1===e||td(e)?e:void 0,animate:td(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,n.useContext)(tq));return(0,n.useMemo)(()=>({initial:e,animate:i}),[tG(e),tG(i)])}(e),c=o(e,u);if(!u&&ta.B){(0,n.useContext)(tN).strict;let e=function(t){let{drag:e,layout:i}=te;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(h);l=e.MeasureLayout,d.visualElement=function(t,e,i,s,r){var a,o,l,h;let{visualElement:u}=(0,n.useContext)(tq),d=(0,n.useContext)(tN),c=(0,n.useContext)(t_),p=(0,n.useContext)(t$).reducedMotion,m=(0,n.useRef)(null);s=s||d.renderer,!m.current&&s&&(m.current=s(t,{visualState:e,parent:u,props:i,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:p}));let f=m.current,v=(0,n.useContext)(t4);f&&!f.projection&&r&&("html"===f.type||"svg"===f.type)&&function(t,e,i,n){let{layoutId:s,layout:r,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:h,layoutCrossfade:u}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:s,layout:r,alwaysMeasureLayout:!!a||o&&t3(o),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,crossfade:u,layoutScroll:l,layoutRoot:h})}(m.current,i,r,v);let y=(0,n.useRef)(!1);(0,n.useInsertionEffect)(()=>{f&&y.current&&f.update(i,c)});let g=i[t9.n],x=(0,n.useRef)(!!g&&!(null==(a=(o=window).MotionHandoffIsComplete)?void 0:a.call(o,g))&&(null==(l=(h=window).MotionHasOptimisedAnimation)?void 0:l.call(h,g)));return(0,t8.E)(()=>{f&&(y.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),x.current&&f.animationState&&f.animationState.animateChanges())}),(0,n.useEffect)(()=>{f&&(!x.current&&f.animationState&&f.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var t,e;null==(t=(e=window).MotionHandoffMarkAsComplete)||t.call(e,g)}),x.current=!1),f.enteringChildren=void 0)}),f}(t,c,h,a,e.ProjectionNode)}return(0,tU.jsxs)(tq.Provider,{value:d,children:[l&&d.visualElement?(0,tU.jsx)(l,{visualElement:d.visualElement,...h}):null,function(t,e,i,s,r){let{latestValues:a}=s,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=(tI(t)?function(t,e,i,s){let r=(0,n.useMemo)(()=>{let i=tz();return tR(i,e,tL(s),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};tK(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i={},s=function(t,e){let i=t.style||{},s={};return tK(s,i,t),Object.assign(s,function(t,e){let{transformTemplate:i}=t;return(0,n.useMemo)(()=>{let t=tX();return tb(t,e,i),Object.assign({},t.vars,t.style)},[e])}(t,e)),s}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===t.drag?"none":"pan-".concat("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=s,i})(e,a,r,t),h=function(t,e,i){let n={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&(tQ(s)||!0===i&&tY(s)||!e&&!tY(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}(e,"string"==typeof t,o),u=t!==n.Fragment?{...h,...l,ref:i}:{},{children:d}=e,c=(0,n.useMemo)(()=>(0,z.S)(d)?d.get():d,[d]);return(0,n.createElement)(t,{...u,children:c})}(t,e,(r=d.visualElement,(0,n.useCallback)(t=>{t&&c.onMount&&c.onMount(t),r&&(t?r.mount(t):r.unmount()),i&&("function"==typeof i?i(t):t3(i)&&(i.current=t))},[r])),c,u,s)]})}l.displayName="motion.".concat("string"==typeof t?t:"create(".concat(null!=(i=null!=(e=t.displayName)?e:t.name)?i:"",")"));let h=(0,n.forwardRef)(l);return h[t5]=t,h}var t6=i(55888),et=i(52579),ee=i(41089);function ei(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}let en=tp.length;var es=i(12096);let er=[...tc].reverse(),ea=tc.length;function eo(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function el(){return{animate:eo(!0),whileInView:eo(),whileHover:eo(),whileTap:eo(),whileDrag:eo(),whileFocus:eo(),exit:eo()}}class eh{constructor(t){this.isMounted=!1,this.node=t}update(){}}class eu extends eh{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(0,t6._)(t,e,i))),i=el(),n=!0,s=e=>(i,n)=>{let s=(0,es.K)(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function r(r){let{props:a}=t,o=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<en;t++){let n=tp[t],s=e.props[n];(td(s)||!1===s)&&(i[n]=s)}return i}(t.parent)||{},l=[],h=new Set,u={},d=1/0;for(let e=0;e<ea;e++){var c,p;let m=er[e],f=i[m],v=void 0!==a[m]?a[m]:o[m],y=td(v),g=m===r?f.isActive:null;!1===g&&(d=e);let x=v===o[m]&&v!==a[m]&&y;if(x&&n&&t.manuallyAnimateOnMount&&(x=!1),f.protectedKeys={...u},!f.isActive&&null===g||!v&&!f.prevProp||tu(v)||"boolean"==typeof v)continue;let T=(c=f.prevProp,"string"==typeof(p=v)?p!==c:!!Array.isArray(p)&&!ei(p,c)),w=T||m===r&&f.isActive&&!x&&y||e>d&&y,P=!1,b=Array.isArray(v)?v:[v],S=b.reduce(s(m),{});!1===g&&(S={});let{prevResolvedValues:A={}}=f,V={...A,...S},k=e=>{w=!0,h.has(e)&&(P=!0,h.delete(e)),f.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in V){let e=S[t],i=A[t];if(!u.hasOwnProperty(t))((0,ee.p)(e)&&(0,ee.p)(i)?ei(e,i):e===i)?void 0!==e&&h.has(t)?k(t):f.protectedKeys[t]=!0:null!=e?k(t):h.add(t)}f.prevProp=v,f.prevResolvedValues=S,f.isActive&&(u={...u,...S}),n&&t.blockInitialAnimation&&(w=!1);let M=x&&T,E=!M||P;w&&E&&l.push(...b.map(e=>{let i={type:m};if("string"==typeof e&&n&&!M&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,s=(0,es.K)(n,e);if(n.enteringChildren&&s){let{delayChildren:e}=s.transition||{};i.delay=(0,et.L)(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(h.size){let e={};if("boolean"!=typeof a.initial){let i=(0,es.K)(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}h.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=n??null}),l.push({animation:e})}let m=!!l.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(m=!1),n=!1,m?e(l):Promise.resolve()}return{animateChanges:r,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let s=r(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=el()}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();tu(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 ed=0;class ec extends eh{constructor(){super(...arguments),this.id=ed++}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||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}var ep=i(6500);let em={x:!1,y:!1};var ef=i(65177);function ev(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let ey=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function eg(t){return{point:{x:t.pageX,y:t.pageY}}}function ex(t,e,i,n){return ev(t,e,t=>ey(t)&&i(t,eg(t)),n)}function eT(t){return t.max-t.min}function ew(t,e,i,n=.5){t.origin=n,t.originPoint=(0,l.k)(e.min,e.max,t.origin),t.scale=eT(i)/eT(e),t.translate=(0,l.k)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function eP(t,e,i,n){ew(t.x,e.x,i.x,n?n.originX:void 0),ew(t.y,e.y,i.y,n?n.originY:void 0)}function eb(t,e,i){t.min=i.min+e.min,t.max=t.min+eT(e)}function eS(t,e,i){t.min=e.min-i.min,t.max=t.min+eT(e)}function eA(t,e,i){eS(t.x,e.x,i.x),eS(t.y,e.y,i.y)}function eV(t){return[t("x"),t("y")]}let ek=({current:t})=>t?t.ownerDocument.defaultView:null;var eM=i(76258),eE=i(23656),eC=i(27290);let eD=(t,e)=>Math.abs(t-e);class eR{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:s=!1,distanceThreshold:r=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=eF(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(eD(t.x,e.x)**2+eD(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=this.distanceThreshold;if(!e&&!i)return;let{point:n}=t,{timestamp:s}=Y.uv;this.history.push({...n,timestamp:s});let{onStart:r,onMove:a}=this.handlers;e||(r&&r(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=ej(e,this.transformPagePoint),Y.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=eF("pointercancel"===t.type?this.lastMoveEventInfo:ej(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),n&&n(t,r)},!ey(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=n||window;let a=ej(eg(t),this.transformPagePoint),{point:o}=a,{timestamp:l}=Y.uv;this.history=[{...o,timestamp:l}];let{onSessionStart:h}=e;h&&h(t,eF(a,this.history)),this.removeListeners=(0,eE.F)(ex(this.contextWindow,"pointermove",this.handlePointerMove),ex(this.contextWindow,"pointerup",this.handlePointerUp),ex(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,Y.WG)(this.updatePoint)}}function ej(t,e){return e?{point:e(t.point)}:t}function eL(t,e){return{x:t.x-e.x,y:t.y-e.y}}function eF({point:t},e){return{point:t,delta:eL(t,eB(e)),offset:eL(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,s=eB(t);for(;i>=0&&(n=t[i],!(s.timestamp-n.timestamp>(0,eC.f)(.1)));)i--;if(!n)return{x:0,y:0};let r=(0,eC.X)(s.timestamp-n.timestamp);if(0===r)return{x:0,y:0};let a={x:(s.x-n.x)/r,y:(s.y-n.y)/r};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(e,.1)}}function eB(t){return t[t.length-1]}var eO=i(91225),eI=i(48895);function eU(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 eW(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 eN(t,e,i){return{min:e$(t,e),max:e$(t,i)}}function e$(t,e){return"number"==typeof t?t:t[e]||0}let eq=new WeakMap;class eG{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=tr(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let s=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(eg(t).point)},r=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(em[t])return null;else return em[t]=!0,()=>{em[t]=!1};return em.x||em.y?null:(em.x=em.y=!0,()=>{em.x=em.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),eV(t=>{let e=this.getAxisMotionValue(t).get()||0;if(P.KN.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=eT(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&Y.Gt.postRender(()=>s(t,e)),(0,eM.g)(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=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}(a),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),r&&r(t,e)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>eV(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play()),{dragSnapToOrigin:h}=this.getProps();this.panSession=new eR(t,{onSessionStart:s,onStart:r,onMove:a,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:i,contextWindow:ek(this.visualElement)})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!n||!i)return;let{velocity:r}=n;this.startAnimation(r);let{onDragEnd:a}=this.getProps();a&&Y.Gt.postRender(()=>a(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||!eX(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?(0,l.k)(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?(0,l.k)(i,t,n.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),s.set(r)}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&&t3(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:eU(t.x,i,s),y:eU(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:eN(t,"left","right"),y:eN(t,"top","bottom")}}(e),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&eV(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||!t3(e))return!1;let n=e.current;(0,V.V)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;let r=function(t,e,i){let n=x(t,i),{scroll:s}=e;return s&&(v(n.x,s.offset.x),v(n.y,s.offset.y)),n}(n,s.root,this.visualElement.getTransformPagePoint()),a=(t=s.layout.layoutBox,{x:eW(t.x,r.x),y:eW(t.y,r.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(a));this.hasMutatedConstraints=!!t,t&&(a=o(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(eV(a=>{if(!eX(a,e,this.currentDirection))return;let l=o&&o[a]||{};r&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(a,h)})).then(a)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,eM.g)(this.visualElement,t),i.start((0,ef.f)(t,i,0,e,this.visualElement,!1))}stopAnimation(){eV(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){eV(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){eV(e=>{let{drag:i}=this.getProps();if(!eX(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:r}=n.layout.layoutBox[e];s.set(t[e]-(0,l.k)(i,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!t3(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};eV(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=eT(t),s=eT(e);return s>n?i=(0,eO.q)(e.min,e.max-n,t.min):n>s&&(i=(0,eO.q)(t.min,t.max-s,e.min)),(0,eI.q)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),eV(e=>{if(!eX(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:r}=this.constraints[e];i.set((0,l.k)(s,r,n[e]))})}addListeners(){if(!this.visualElement.current)return;eq.set(this.visualElement,this);let t=ex(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();t3(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()),Y.Gt.read(e);let s=ev(window,"resize",()=>this.scalePositionWithinConstraints()),r=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(eV(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),t(),n(),r&&r()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:r=.35,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:r,dragMomentum:a}}}function eX(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class eK extends eh{constructor(t){super(t),this.removeGroupControls=ep.l,this.removeListeners=ep.l,this.controls=new eG(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ep.l}unmount(){this.removeGroupControls(),this.removeListeners()}}let ez=t=>(e,i)=>{t&&Y.Gt.postRender(()=>t(e,i))};class eH extends eh{constructor(){super(...arguments),this.removePointerDownListener=ep.l}onPointerDown(t){this.session=new eR(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ek(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:ez(t),onStart:ez(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&Y.Gt.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=ex(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let eY={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function eQ(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let e_={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!P.px.test(t))return t;else t=parseFloat(t);let i=eQ(t,e.target.x),n=eQ(t,e.target.y);return`${i}% ${n}%`}},eZ=!1;class eJ extends n.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;for(let t in e1)tA[t]=e1[t],(0,a.j)(t)&&(tA[t].isCSSVariable=!0);s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),eZ&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),eY.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,{projection:r}=i;return r&&(r.isPresent=s,eZ=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?r.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?r.promote():r.relegate()||Y.Gt.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Z.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;eZ=!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 e0(t){let[e,i]=function(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],e=(0,n.useContext)(t_);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:s,register:r}=e,a=(0,n.useId)();(0,n.useEffect)(()=>{if(t)return r(a)},[t]);let o=(0,n.useCallback)(()=>t&&s&&s(a),[a,s,t]);return!i&&s?[!1,o]:[!0]}(),s=(0,n.useContext)(tW);return(0,tU.jsx)(eJ,{...t,layoutGroup:s,switchLayoutGroup:(0,n.useContext)(t4),isPresent:e,safeToRemove:i})}let e1={borderRadius:{...e_,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:e_,borderTopRightRadius:e_,borderBottomLeftRadius:e_,borderBottomRightRadius:e_,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=D.f.parse(t);if(n.length>5)return t;let s=D.f.createTransformer(t),r=+("number"!=typeof n[0]),a=i.x.scale*e.x,o=i.y.scale*e.y;n[0+r]/=a,n[1+r]/=o;let h=(0,l.k)(a,o,.5);return"number"==typeof n[2+r]&&(n[2+r]/=h),"number"==typeof n[3+r]&&(n[3+r]/=h),s(n)}}};var e2=i(23867);function e5(t){return"object"==typeof t&&null!==t}function e3(t){return e5(t)&&"ownerSVGElement"in t}var e9=i(63354),e4=i(62213),e8=i(41515),e7=i(16105);let e6=(t,e)=>t.depth-e.depth;class it{constructor(){this.children=[],this.isDirty=!1}add(t){(0,e7.Kq)(this.children,t),this.isDirty=!0}remove(t){(0,e7.Ai)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(e6),this.isDirty=!1,this.children.forEach(t)}}var ie=i(69809);let ii=["TopLeft","TopRight","BottomLeft","BottomRight"],is=ii.length,ir=t=>"string"==typeof t?parseFloat(t):t,ia=t=>"number"==typeof t||P.px.test(t);function io(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let il=iu(0,.5,ie.yT),ih=iu(.5,.95,ep.l);function iu(t,e,i){return n=>n<t?0:n>e?1:i((0,eO.q)(t,e,n))}function id(t,e){t.min=e.min,t.max=e.max}function ic(t,e){id(t.x,e.x),id(t.y,e.y)}function ip(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function im(t,e,i,n,s){return t-=e,t=n+1/i*(t-n),void 0!==s&&(t=n+1/s*(t-n)),t}function iv(t,e,[i,n,s],r,a){!function(t,e=0,i=1,n=.5,s,r=t,a=t){if(P.KN.test(e)&&(e=parseFloat(e),e=(0,l.k)(a.min,a.max,e/100)-a.min),"number"!=typeof e)return;let o=(0,l.k)(r.min,r.max,n);t===r&&(o-=e),t.min=im(t.min,e,i,o,s),t.max=im(t.max,e,i,o,s)}(t,e[i],e[n],e[s],e.scale,r,a)}let iy=["x","scaleX","originX"],ig=["y","scaleY","originY"];function ix(t,e,i,n){iv(t.x,e,iy,i?i.x:void 0,n?n.x:void 0),iv(t.y,e,ig,i?i.y:void 0,n?n.y:void 0)}function iT(t){return 0===t.translate&&1===t.scale}function iw(t){return iT(t.x)&&iT(t.y)}function iP(t,e){return t.min===e.min&&t.max===e.max}function ib(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function iS(t,e){return ib(t.x,e.x)&&ib(t.y,e.y)}function iA(t){return eT(t.x)/eT(t.y)}function iV(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class ik{constructor(){this.members=[]}add(t){(0,e7.Kq)(this.members,t),t.scheduleRender()}remove(t){if((0,e7.Ai)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade: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)}}let iM={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},iE=["","X","Y","Z"],iC=0;function iD(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function iR({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=e?.()){this.id=iC++,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,e2.Q.value&&(iM.nodes=iM.calculatedTargetDeltas=iM.calculatedProjections=0),this.nodes.forEach(iF),this.nodes.forEach(i$),this.nodes.forEach(iq),this.nodes.forEach(iB),e2.Q.addProjectionMetrics&&e2.Q.addProjectionMetrics(iM)},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 it)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new J.v),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=e3(e)&&!(e3(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i,n=0,s=()=>this.root.updateBlockedByResize=!1;Y.Gt.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;t!==n&&(n=t,this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=H.k.now(),n=({timestamp:e})=>{let s=e-i;s>=250&&((0,Y.WG)(n),t(s-250))};return Y.Gt.setup(n,!0),()=>(0,Y.WG)(n)}(s,250),eY.hasAnimatedSinceResize&&(eY.hasAnimatedSinceResize=!1,this.nodes.forEach(iN)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||iY,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=s.getProps(),l=!this.targetLayout||!iS(this.targetLayout,n),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...(0,e9.r)(r,"layout"),onPlay:a,onComplete:o};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h)}else e||iN(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,Y.WG)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(iG),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,e8.P)(i);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Y.Gt,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,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.forEach(iI);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(iU);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(iW),this.nodes.forEach(ij),this.nodes.forEach(iL)):this.nodes.forEach(iU),this.clearAllSnapshots();let t=H.k.now();Y.uv.delta=(0,eI.q)(0,1e3/60,t-Y.uv.timestamp),Y.uv.timestamp=t,Y.uv.isProcessing=!0,Y.PP.update.process(Y.uv),Y.PP.preRender.process(Y.uv),Y.PP.render.process(Y.uv),Y.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Z.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(iO),this.sharedNodes.forEach(iX)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Y.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Y.Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||eT(this.snapshot.measuredBox.x)||eT(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=tr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!s)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!iw(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,r=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||d(this.latestValues)||r)&&(s(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),iZ((e=n).x),iZ(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return tr();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(i0))){let{scroll:t}=this.root;t&&(v(e.x,t.offset.x),v(e.y,t.offset.y))}return e}removeElementScroll(t){let e=tr();if(ic(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:s,options:r}=n;n!==this.root&&s&&r.layoutScroll&&(s.wasRoot&&ic(e,t),v(e.x,s.offset.x),v(e.y,s.offset.y))}return e}applyTransform(t,e=!1){let i=tr();ic(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&&g(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),d(n.latestValues)&&g(i,n.latestValues)}return d(this.latestValues)&&g(i,this.latestValues),i}removeTransform(t){let e=tr();ic(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!d(i.latestValues))continue;u(i.latestValues)&&i.updateSnapshot();let n=tr();ic(n,i.measurePageBox()),ix(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return d(this.latestValues)&&ix(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!==Y.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:s}=this.options;if(!this.layout||!(n||s))return;this.resolvedRelativeTargetAt=Y.uv.timestamp;let r=this.getClosestProjectingParent();if(r&&this.linkedParentVersion!==r.layoutVersion&&!r.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(r&&r.layout?this.createRelativeTarget(r,this.layout.layoutBox,r.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=tr(),this.targetWithTransforms=tr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var a,o,l;this.forceRelativeParentToResolveTarget(),a=this.target,o=this.relativeTarget,l=this.relativeParent.target,eb(a.x,o.x,l.x),eb(a.y,o.y,l.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ic(this.target,this.layout.layoutBox),f(this.target,this.targetDelta)):ic(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,r&&!!r.resumingFrom==!!this.resumingFrom&&!r.options.layoutScroll&&r.target&&1!==this.animationProgress?this.createRelativeTarget(r,this.target,r.target):this.relativeParent=this.relativeTarget=void 0),e2.Q.value&&iM.calculatedTargetDeltas++}}getClosestProjectingParent(){if(!(!this.parent||u(this.parent.latestValues)||c(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=tr(),this.relativeTargetOrigin=tr(),eA(this.relativeTargetOrigin,e,i),ic(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===Y.uv.timestamp&&(i=!1),i)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||s))return;ic(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,n=!1){let s,r,a=i.length;if(a){e.x=e.y=1;for(let o=0;o<a;o++){r=(s=i[o]).projectionDelta;let{visualElement:a}=s.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&g(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,f(t,r)),n&&d(s.latestValues)&&g(t,s.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=tr());let{target:o}=t;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(ip(this.prevProjectionDelta.x,this.projectionDelta.x),ip(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),eP(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&iV(this.projectionDelta.x,this.prevProjectionDelta.x)&&iV(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o)),e2.Q.value&&iM.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=tn(),this.projectionDelta=tn(),this.projectionDeltaWithTransform=tn()}setAnimationOrigin(t,e=!1){let i,n=this.snapshot,s=n?n.latestValues:{},r={...this.latestValues},a=tn();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let o=tr(),h=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),d=!u||u.members.length<=1,c=!!(h&&!d&&!0===this.options.crossfade&&!this.path.some(iH));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(iK(a.x,t.x,n),iK(a.y,t.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,p,m,f,v,y;eA(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),m=this.relativeTarget,f=this.relativeTargetOrigin,v=o,y=n,iz(m.x,f.x,v.x,y),iz(m.y,f.y,v.y,y),i&&(u=this.relativeTarget,p=i,iP(u.x,p.x)&&iP(u.y,p.y))&&(this.isProjectionDirty=!1),i||(i=tr()),ic(i,this.relativeTarget)}h&&(this.animationValues=r,function(t,e,i,n,s,r){s?(t.opacity=(0,l.k)(0,i.opacity??1,il(n)),t.opacityExit=(0,l.k)(e.opacity??1,0,ih(n))):r&&(t.opacity=(0,l.k)(e.opacity??1,i.opacity??1,n));for(let s=0;s<is;s++){let r=`border${ii[s]}Radius`,a=io(e,r),o=io(i,r);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||ia(a)===ia(o)?(t[r]=Math.max((0,l.k)(ir(a),ir(o),n),0),(P.KN.test(o)||P.KN.test(a))&&(t[r]+="%")):t[r]=o)}(e.rotate||i.rotate)&&(t.rotate=(0,l.k)(e.rotate||0,i.rotate||0,n))}(r,s,this.latestValues,n,c,d)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,Y.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Y.Gt.update(()=>{eY.hasAnimatedSinceResize=!0,e4.q.layout++,this.motionValue||(this.motionValue=(0,Q.OQ)(0)),this.currentAnimation=function(t,e,i){let n=(0,z.S)(t)?t:(0,Q.OQ)(t);return n.start((0,ef.f)("",n,e,i)),n.animation}(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{e4.q.layout--},onComplete:()=>{e4.q.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&iJ(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||tr();let e=eT(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=eT(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}ic(e,i),g(e,s),eP(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new ik),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&iD("z",t,n,this.animationValues);for(let e=0;e<iE.length;e++)iD(`rotate${iE[e]}`,t,n,this.animationValues),iD(`skew${iE[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=tJ(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=tJ(e?.pointerEvents)||""),this.hasProjected&&!d(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let s=n.animationValues||n.latestValues;this.applyTransformsToTarget();let r=function(t,e,i){let n="",s=t.x.translate/e.x,r=t.y.translate/e.y,a=i?.z||0;if((s||r||a)&&(n=`translate3d(${s}px, ${r}px, ${a}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:s,rotateY:r,skewX:a,skewY:o}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),s&&(n+=`rotateX(${s}deg) `),r&&(n+=`rotateY(${r}deg) `),a&&(n+=`skewX(${a}deg) `),o&&(n+=`skewY(${o}deg) `)}let o=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==o||1!==l)&&(n+=`scale(${o}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,s);i&&(r=i(s,r)),t.transform=r;let{x:a,y:o}=this.projectionDelta;for(let e in t.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,n.animationValues?t.opacity=n===this?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:t.opacity=n===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,tA){if(void 0===s[e])continue;let{correct:i,applyTo:a,isCSSVariable:o}=tA[e],l="none"===r?s[e]:i(s[e],n);if(a){let e=a.length;for(let i=0;i<e;i++)t[a[i]]=l}else o?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?tJ(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(iI),this.root.sharedNodes.clear()}}}function ij(t){t.updateLayout()}function iL(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:s}=t.options,r=e.source!==t.layout.source;"size"===s?eV(t=>{let n=r?e.measuredBox[t]:e.layoutBox[t],s=eT(n);n.min=i[t].min,n.max=n.min+s}):iJ(s,e.layoutBox,i)&&eV(n=>{let s=r?e.measuredBox[n]:e.layoutBox[n],a=eT(i[n]);s.max=s.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+a)});let a=tn();eP(a,i,e.layoutBox);let o=tn();r?eP(o,t.applyTransform(n,!0),e.measuredBox):eP(o,i,e.layoutBox);let l=!iw(a),h=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let a=tr();eA(a,e.layoutBox,s.layoutBox);let o=tr();eA(o,i,r.layoutBox),iS(a,o)||(h=!0),n.options.layoutRoot&&(t.relativeTarget=o,t.relativeTargetOrigin=a,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function iF(t){e2.Q.value&&iM.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function iB(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function iO(t){t.clearSnapshot()}function iI(t){t.clearMeasurements()}function iU(t){t.isLayoutDirty=!1}function iW(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function iN(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function i$(t){t.resolveTargetDelta()}function iq(t){t.calcProjection()}function iG(t){t.resetSkewAndRotation()}function iX(t){t.removeLeadSnapshot()}function iK(t,e,i){t.translate=(0,l.k)(e.translate,0,i),t.scale=(0,l.k)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function iz(t,e,i,n){t.min=(0,l.k)(e.min,i.min,n),t.max=(0,l.k)(e.max,i.max,n)}function iH(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let iY={duration:.45,ease:[.4,0,.1,1]},iQ=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),i_=iQ("applewebkit/")&&!iQ("chrome/")?Math.round:ep.l;function iZ(t){t.min=i_(t.min),t.max=i_(t.max)}function iJ(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(iA(e)-iA(i)))}function i0(t){return t!==t.root&&t.scroll?.wasRoot}let i1=iR({attachResizeListener:(t,e)=>ev(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),i2={current:void 0},i5=iR({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!i2.current){let t=new i1({});t.mount(window),t.setOptions({layoutScroll:!0}),i2.current=t}return i2.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function i3(t,e){let i=function(t,e,i){if(t instanceof EventTarget)return[t];if("string"==typeof t){let e=document,i=(void 0)??e.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function i9(t){return!("touch"===t.pointerType||em.x||em.y)}function i4(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&Y.Gt.postRender(()=>s(e,eg(e)))}class i8 extends eh{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,r]=i3(t,i),a=t=>{if(!i9(t))return;let{target:i}=t,n=e(i,t);if("function"!=typeof n||!i)return;let r=t=>{i9(t)&&(n(t),i.removeEventListener("pointerleave",r))};i.addEventListener("pointerleave",r,s)};return n.forEach(t=>{t.addEventListener("pointerenter",a,s)}),r}(t,(t,e)=>(i4(this.node,e,"Start"),t=>i4(this.node,t,"End"))))}unmount(){}}class i7 extends eh{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,eE.F)(ev(this.node.current,"focus",()=>this.onFocus()),ev(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let i6=(t,e)=>!!e&&(t===e||i6(t,e.parentElement)),nt=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),ne=new WeakSet;function ni(t){return e=>{"Enter"===e.key&&t(e)}}function nn(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function ns(t){return ey(t)&&!(em.x||em.y)}function nr(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let s=n["onTap"+("End"===i?"":i)];s&&Y.Gt.postRender(()=>s(e,eg(e)))}class na extends eh{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,r]=i3(t,i),a=t=>{let n=t.currentTarget;if(!ns(t))return;ne.add(n);let r=e(n,t),a=(t,e)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),ne.has(n)&&ne.delete(n),ns(t)&&"function"==typeof r&&r(t,{success:e})},o=t=>{a(t,n===window||n===document||i.useGlobalTarget||i6(n,t.target))},l=t=>{a(t,!1)};window.addEventListener("pointerup",o,s),window.addEventListener("pointercancel",l,s)};return n.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",a,s),e5(t)&&"offsetHeight"in t&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=ni(()=>{if(ne.has(i))return;nn(i,"down");let t=ni(()=>{nn(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>nn(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,s)),nt.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(nr(this.node,e,"Start"),(t,{success:e})=>nr(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let no=new WeakMap,nl=new WeakMap,nh=t=>{let e=no.get(t.target);e&&e(t)},nu=t=>{t.forEach(nh)},nd={some:0,all:1};class nc extends eh{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:s}=t,r={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:nd[n]},a=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,s&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),r=e?i:n;r&&r(t)};var o=this.node.current;let l=function({root:t,...e}){let i=t||document;nl.has(i)||nl.set(i,{});let n=nl.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(nu,{root:t,...e})),n[s]}(r);return no.set(o,a),l.observe(o),()=>{no.delete(o),l.unobserve(o)}}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 np=function(t,e){if("undefined"==typeof Proxy)return t7;let i=new Map,n=(i,n)=>t7(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(s,r)=>"create"===r?n:(i.has(r)||i.set(r,t7(r,void 0,t,e)),i.get(r))})}({animation:{Feature:eu},exit:{Feature:ec},inView:{Feature:nc},tap:{Feature:na},focus:{Feature:i7},hover:{Feature:i8},pan:{Feature:eH},drag:{Feature:eK,ProjectionNode:i5,MeasureLayout:e0},layout:{ProjectionNode:i5,MeasureLayout:e0}},(t,e)=>tI(t)?new tB(e):new tM(e,{allowProjection:t!==n.Fragment}))},78617:(t,e,i)=>{i.d(e,{E4:()=>o,Hr:()=>d,W9:()=>u});var n=i(37899),s=i(40479),r=i(37822),a=i(92419);let o=t=>t===r.ai||t===a.px,l=new Set(["x","y","z"]),h=s.U.filter(t=>!l.has(t));function u(t){let e=[];return h.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e}let d={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>(0,n.ry)(e,"x"),y:(t,{transform:e})=>(0,n.ry)(e,"y")};d.translateX=d.x,d.translateY=d.y},84926:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(71847).A)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]])},86553:(t,e,i)=>{i.d(e,{E:()=>s});var n=i(12115);let s=i(33577).B?n.useLayoutEffect:n.useEffect},88786:(t,e,i)=>{i.d(e,{$:()=>n});let n=new Set(["width","height","top","left","right","bottom",...i(40479).U])},91225:(t,e,i)=>{i.d(e,{q:()=>n});let n=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n}},92287:(t,e,i)=>{i.d(e,{I:()=>n});let n=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase()},92419:(t,e,i)=>{i.d(e,{KN:()=>r,gQ:()=>h,px:()=>a,uj:()=>s,vh:()=>o,vw:()=>l});let n=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),s=n("deg"),r=n("%"),a=n("px"),o=n("vh"),l=n("vw"),h={...r,parse:t=>r.parse(t)/100,transform:t=>r.transform(100*t)}},94416:(t,e,i)=>{i.d(e,{M:()=>s});var n=i(12115);function s(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},95516:(t,e,i)=>{i.d(e,{V:()=>n});let n=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},98763:(t,e,i)=>{i.d(e,{U:()=>a});var n=i(22039),s=i(41089),r=i(12096);function a(t,e){let{transitionEnd:i={},transition:a={},...o}=(0,r.K)(t,e)||{};for(let e in o={...o,...i}){var l;let i=(l=o[e],(0,s.p)(l)?l[l.length-1]||0:l);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,n.OQ)(i))}}},99550:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(71847).A)("gamepad",[["line",{x1:"6",x2:"10",y1:"12",y2:"12",key:"161bw2"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"15",x2:"15.01",y1:"13",y2:"13",key:"dqpgro"}],["line",{x1:"18",x2:"18.01",y1:"11",y2:"11",key:"meh2c"}],["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}]])}}]);