framer-motion 8.2.2 → 8.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +24 -17
- package/dist/es/gestures/use-focus-gesture.mjs +5 -4
- package/dist/es/gestures/use-hover-gesture.mjs +11 -6
- package/dist/es/gestures/use-tap-gesture.mjs +10 -7
- package/dist/es/render/utils/motion-values.mjs +1 -1
- package/dist/es/value/index.mjs +1 -1
- package/dist/framer-motion.dev.js +24 -17
- package/dist/framer-motion.js +1 -1
- package/dist/projection.dev.js +2 -2
- package/dist/size-rollup-dom-animation.js +1 -1
- package/dist/size-rollup-dom-max.js +1 -1
- package/dist/size-rollup-motion.js +1 -1
- package/dist/size-webpack-dom-animation.js +1 -1
- package/dist/size-webpack-dom-max.js +1 -1
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var t={9340:(t,e,n)=>{n.d(e,{K:()=>i,k:()=>s});var i=function(){},s=function(){}},6405:(t,e,n)=>{n.d(e,{Z:()=>Pt});var i=n(9340),s=n(1818);const o=!1;var r=n(8313),a=n(5222),l=n(9273);const u=t=>t*t,c=(0,l.M)(u),h=(0,a.o)(u);var d=n(2890),p=n(9043),m=n(5430);function f(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}var v=n(4775),g=n(6077),y=n(5193);const x=(t,e,n)=>{const i=t*t;return Math.sqrt(Math.max(0,n*(e*e-i)+i))},b=[v.$,g.m,y.J];function w(t){const e=(n=t,b.find((t=>t.test(n))));var n;(0,i.k)(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`);let s=e.parse(t);return e===y.J&&(s=function({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let s=0,o=0,r=0;if(e/=100){const i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;s=f(a,i,t+1/3),o=f(a,i,t),r=f(a,i,t-1/3)}else s=o=r=n;return{red:Math.round(255*s),green:Math.round(255*o),blue:Math.round(255*r),alpha:i}}(s)),s}const P=(t,e)=>{const n=w(t),i=w(e),s={...n};return t=>(s.red=x(n.red,i.red,t),s.green=x(n.green,i.green,t),s.blue=x(n.blue,i.blue,t),s.alpha=(0,m.C)(n.alpha,i.alpha,t),g.m.transform(s))};var T=n(9820),V=n(26);function A(t,e){return"number"==typeof t?n=>(0,m.C)(t,e,n):d.$.test(t)?P(t,e):S(t,e)}const E=(t,e)=>{const n=[...t],i=n.length,s=t.map(((t,n)=>A(t,e[n])));return t=>{for(let e=0;e<i;e++)n[e]=s[e](t);return n}},C=(t,e)=>{const n={...t,...e},i={};for(const s in n)void 0!==t[s]&&void 0!==e[s]&&(i[s]=A(t[s],e[s]));return t=>{for(const e in i)n[e]=i[e](t);return n}},S=(t,e)=>{const n=V.P.createTransformer(e),s=(0,V.V)(t),o=(0,V.V)(e);return s.numColors===o.numColors&&s.numNumbers>=o.numNumbers?(0,T.z)(E(s.values,o.values),n):((0,i.K)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?e:t}`)};var D=n(918);const M=(t,e)=>n=>(0,m.C)(t,e,n);function R(t,e,n){const i=[],s=n||("number"==typeof(o=t[0])?M:"string"==typeof o?d.$.test(o)?P:S:Array.isArray(o)?E:"object"==typeof o?C:M);var o;const r=t.length-1;for(let n=0;n<r;n++){let o=s(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]:e;o=(0,T.z)(t,o)}i.push(o)}return i}function k(t,e,{clamp:n=!0,ease:s,mixer:o}={}){const r=t.length;(0,i.k)(r===e.length,"Both input and output ranges must be the same length"),(0,i.k)(!s||!Array.isArray(s)||s.length===r-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=R(e,s,o),l=a.length,u=e=>{let n=0;if(l>1)for(;n<t.length-2&&!(e<t[n+1]);n++);const i=(0,D.Y)(t[n],t[n+1],e);return a[n](i)};return n?e=>u((0,p.u)(t[0],t[r-1],e)):u}var B=n(2634);const L=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function O(t,e,n,i){if(t===e&&n===i)return B.Z;const s=e=>function(t,e,n,i,s){let o,r,a=0;do{r=e+(n-e)/2,o=L(r,i,s)-t,o>0?n=r:e=r}while(Math.abs(o)>1e-7&&++a<12);return r}(e,0,1,t,n);return t=>0===t||1===t?t:L(s(t),e,i)}var F=n(7110);const j=O(.33,1.53,.69,.99),I=(0,l.M)(j),$=(0,a.o)(I),U={linear:B.Z,easeIn:u,easeInOut:h,easeOut:c,circIn:F.Z7,circInOut:F.X7,circOut:F.Bn,backIn:I,backInOut:$,backOut:j,anticipate:t=>(t*=2)<1?.5*I(t):.5*(2-Math.pow(2,-10*(t-1)))},N=t=>{if(Array.isArray(t)){(0,i.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,s,o]=t;return O(e,n,s,o)}return"string"==typeof t?((0,i.k)(void 0!==U[t],`Invalid easing type '${t}'`),U[t]):t};function Y({keyframes:t,ease:e=h,times:n,duration:i=300}){t=[...t];const s=(t=>Array.isArray(t)&&"number"!=typeof t[0])(e)?e.map(N):N(e),o={done:!1,value:t[0]},r=function(t,e){return t.map((t=>t*e))}(n&&n.length===t.length?n:function(t){const e=t.length;return t.map(((t,n)=>0!==n?n/(e-1):0))}(t),i);function a(){return k(r,t,{ease:Array.isArray(s)?s:(e=t,n=s,e.map((()=>n||h)).splice(0,e.length-1))});var e,n}let l=a();return{next:t=>(o.value=l(t),o.done=t>=i,o),flipTarget:()=>{t.reverse(),l=a()}}}const z=.001;function Z({duration:t=800,bounce:e=.25,velocity:n=0,mass:s=1}){let o,r;(0,i.K)(t<=1e4,"Spring duration must be 10 seconds or less");let a=1-e;a=(0,p.u)(.05,1,a),t=(0,p.u)(.01,10,t/1e3),a<1?(o=e=>{const i=e*a,s=i*t,o=i-n,r=W(e,a),l=Math.exp(-s);return z-o/r*l},r=e=>{const i=e*a*t,s=i*n+n,r=Math.pow(a,2)*Math.pow(e,2)*t,l=Math.exp(-i),u=W(Math.pow(e,2),a);return(-o(e)+z>0?-1:1)*((s-r)*l)/u}):(o=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,r=e=>Math.exp(-e*t)*(t*t*(n-e)));const l=function(t,e,n){let i=n;for(let n=1;n<12;n++)i-=t(i)/e(i);return i}(o,r,5/t);if(t*=1e3,isNaN(l))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(l,2)*s;return{stiffness:e,damping:2*a*Math.sqrt(s*e),duration:t}}}function W(t,e){return t*Math.sqrt(1-e*e)}var H=n(432);const q=["duration","bounce"],X=["stiffness","damping","mass"];function _(t,e){return e.some((e=>void 0!==t[e]))}function G({keyframes:t,restSpeed:e=2,restDelta:n=.01,...i}){let s=t[0],o=t[t.length-1];const r={done:!1,value:s},{stiffness:a,damping:l,mass:u,velocity:c,duration:h,isResolvedFromDuration:d}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!_(t,X)&&_(t,q)){const n=Z(t);e={...e,...n,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}(i);let p=K,m=c?-c/1e3:0;const f=l/(2*Math.sqrt(a*u));function v(){const t=o-s,e=Math.sqrt(a/u)/1e3;if(void 0===n&&(n=Math.min(Math.abs(o-s)/100,.4)),f<1){const n=W(e,f);p=i=>{const s=Math.exp(-f*e*i);return o-s*((m+f*e*t)/n*Math.sin(n*i)+t*Math.cos(n*i))}}else if(1===f)p=n=>o-Math.exp(-e*n)*(t+(m+e*t)*n);else{const n=e*Math.sqrt(f*f-1);p=i=>{const s=Math.exp(-f*e*i),r=Math.min(n*i,300);return o-s*((m+f*e*t)*Math.sinh(r)+n*t*Math.cosh(r))/n}}}return v(),{next:t=>{const i=p(t);if(d)r.done=t>=h;else{let s=m;if(0!==t)if(f<1){const e=Math.max(0,t-5);s=(0,H.R)(i-p(e),t-e)}else s=0;const a=Math.abs(s)<=e,l=Math.abs(o-i)<=n;r.done=a&&l}return r.value=r.done?o:i,r},flipTarget:()=>{m=-m,[s,o]=[o,s],v()}}}G.needsInterpolation=(t,e)=>"string"==typeof t||"string"==typeof e;const K=t=>0;const J={decay:function({keyframes:t=[0],velocity:e=0,power:n=.8,timeConstant:i=350,restDelta:s=.5,modifyTarget:o}){const r=t[0],a={done:!1,value:r};let l=n*e;const u=r+l,c=void 0===o?u:o(u);return c!==u&&(l=c-r),{next:t=>{const e=-l*Math.exp(-t/i);return a.done=!(e>s||e<-s),a.value=a.done?c:c+e,a},flipTarget:()=>{}}},keyframes:Y,tween:Y,spring:G};function Q(t,e,n=0){return t-e-n}const tt=t=>{const e=({delta:e})=>t(e);return{start:()=>r.Z_.update(e,!0),stop:()=>r.qY.update(e)}};function et({duration:t,driver:e=tt,elapsed:n=0,repeat:i=0,repeatType:s="loop",repeatDelay:o=0,keyframes:r,autoplay:a=!0,onPlay:l,onStop:u,onComplete:c,onRepeat:h,onUpdate:d,type:p="keyframes",...m}){var f,v;const g=n;let y,x,b=0,w=t,P=!1,T=!0;const V=J[r.length>2?"keyframes":p]||Y,A=r[0],E=r[r.length-1];let C={done:!1,value:A};(null===(v=(f=V).needsInterpolation)||void 0===v?void 0:v.call(f,A,E))&&(x=k([0,100],[A,E],{clamp:!1}),r=[0,100]);const S=V({...m,duration:t,keyframes:r});function D(){b++,"reverse"===s?(T=b%2==0,n=function(t,e=0,n=0,i=!0){return i?Q(e+-t,e,n):e-(t-e)+n}(n,w,o,T)):(n=Q(n,w,o),"mirror"===s&&S.flipTarget()),P=!1,h&&h()}function M(t){T||(t=-t),n+=t,P||(C=S.next(Math.max(0,n)),x&&(C.value=x(C.value)),P=T?C.done:n<=0),d&&d(C.value),P&&(0===b&&(w=void 0!==w?w:n),b<i?function(t,e,n,i){return i?t>=e+n:t<=-n}(n,w,o,T)&&D():(y&&y.stop(),c&&c()))}return a&&(l&&l(),y=e(M),y.start()),{stop:()=>{u&&u(),y&&y.stop()},sample:e=>{n=g;const i=t&&"number"==typeof t?Math.max(.5*t,50):50;let s=0;for(M(0);s<=e;){const t=e-s;M(Math.min(t,i)),s+=i}return C}}}const nt=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,it={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:nt([0,.65,.55,1]),circOut:nt([.55,0,1,.45]),backIn:nt([.31,.01,.66,-.59]),backOut:nt([.33,1.53,.69,.99])};function st(t){if(t)return Array.isArray(t)?nt(t):it[t]}const ot={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},rt={},at={};for(const t in ot)at[t]=()=>(void 0===rt[t]&&(rt[t]=ot[t]()),rt[t]);const lt=new Set(["opacity"]);function ut(t,e,{onUpdate:n,onComplete:i,...s}){if(!(at.waapi()&<.has(e)&&!s.repeatDelay&&"mirror"!==s.repeatType&&0!==s.damping))return!1;let{keyframes:o,duration:a=300,elapsed:l=0,ease:u}=s;if("spring"===s.type||!(!(c=s.ease)||Array.isArray(c)||"string"==typeof c&&it[c])){if(s.repeat===1/0)return;const t=et(s);let e={done:!1,value:o[0]};const n=[];let i=0;for(;!e.done&&i<2e4;)e=t.sample(i),n.push(e.value),i+=10;o=n,a=i-10,u="linear"}var c;const h=function(t,e,n,{delay:i=0,duration:s,repeat:o=0,repeatType:r="loop",ease:a,times:l}={}){return t.animate({[e]:n,offset:l},{delay:i,duration:s,easing:st(a),fill:"both",iterations:o+1,direction:"reverse"===r?"alternate":"normal"})}(t.owner.current,e,o,{...s,delay:-l,duration:a,ease:u});return h.onfinish=()=>{t.set(function(t,{repeat:e,repeatType:n="loop"}){return t[e&&"loop"!==n&&e%2==1?0:t.length-1]}(o,s)),i&&i()},()=>{const{currentTime:e}=h;if(e){const n=et({...s,autoplay:!1});t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}r.Z_.update((()=>h.cancel()))}}var ct=n(2866);function ht({keyframes:t,elapsed:e,onUpdate:n,onComplete:i}){const s=()=>(n&&n(t[t.length-1]),i&&i(),()=>{});return e?(0,ct.g)(s,-e):s()}var dt=n(5951);const pt=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),mt=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),ft=()=>({type:"keyframes",ease:"linear",duration:.3}),vt={type:"keyframes",duration:.8},gt={x:pt,y:pt,z:pt,rotate:pt,rotateX:pt,rotateY:pt,rotateZ:pt,scaleX:mt,scaleY:mt,scale:mt,opacity:ft,backgroundColor:ft,color:ft,default:mt},yt=(t,{keyframes:e})=>{if(e.length>2)return vt;return(gt[t]||gt.default)(e[1])},xt=(t,e)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!V.P.test(e)||e.startsWith("url(")));var bt=n(6914),wt=n(7101);const Pt=(t,e,n,r={})=>a=>{const l=(0,wt.ev)(r,t)||{},u=l.delay||r.delay||0;let{elapsed:c=0}=r;c-=(0,s.w)(u);const h=function(t,e,n,i){const s=xt(e,n);let o=void 0!==i.from?i.from:t.get();return"none"===o&&s&&"string"==typeof n?o=(0,bt.T)(e,n):(0,wt.Fr)(o)&&"string"==typeof n?o=(0,wt.GZ)(n):!Array.isArray(n)&&(0,wt.Fr)(n)&&"string"==typeof o&&(n=(0,wt.GZ)(o)),Array.isArray(n)?(null===n[0]&&(n[0]=o),n):[o,n]}(e,t,n,l),d=h[0],p=h[h.length-1],m=xt(t,d),f=xt(t,p);(0,i.K)(m===f,`You are trying to animate ${t} from "${d}" to "${p}". ${d} is not an animatable value - to enable this animation set ${d} to a value animatable to ${p} via the \`style\` property.`);let v={keyframes:h,velocity:e.getVelocity(),...l,elapsed:c,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{a(),l.onComplete&&l.onComplete()}};if(!m||!f||o||!1===l.type)return ht(v);if("inertia"===l.type){const t=function({keyframes:t,velocity:e=0,min:n,max:i,power:s=.8,timeConstant:o=750,bounceStiffness:r=500,bounceDamping:a=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:h,onComplete:d,onStop:p}){const m=t[0];let f;function v(t){return void 0!==n&&t<n||void 0!==i&&t>i}function g(t){return void 0===n?i:void 0===i||Math.abs(n-t)<Math.abs(i-t)?n:i}function y(t){null==f||f.stop(),f=et({keyframes:[0,1],velocity:0,...t,driver:c,onUpdate:e=>{var n;null==h||h(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:d,onStop:p})}function x(t){y({type:"spring",stiffness:r,damping:a,restDelta:l,...t})}if(v(m))x({velocity:e,keyframes:[m,g(m)]});else{let t=s*e+m;void 0!==u&&(t=u(t));const i=g(t),r=i===n?-1:1;let a,c;const h=t=>{a=c,c=t,e=(0,H.R)(t-a,dt.w.delta),(1===r&&t>i||-1===r&&t<i)&&x({keyframes:[t,i],velocity:e})};y({type:"decay",keyframes:[m,0],velocity:e,timeConstant:o,power:s,restDelta:l,modifyTarget:u,onUpdate:v(t)?h:void 0})}return{stop:()=>null==f?void 0:f.stop()}}(v);return()=>t.stop()}(0,wt.rw)(l)||(v={...v,...yt(t,v)}),v.duration&&(v.duration=(0,s.w)(v.duration)),v.repeatDelay&&(v.repeatDelay=(0,s.w)(v.repeatDelay));const g=e.owner,y=g&&g.current;if(g&&y instanceof HTMLElement&&!(null==g?void 0:g.getProps().onUpdate)){const n=ut(e,t,v);if(n)return n}const x=et(v);return()=>x.stop()}},2819:(t,e,n)=>{n.d(e,{C:()=>i});const i=t=>Array.isArray(t)},7101:(t,e,n)=>{n.d(e,{Fr:()=>o,GZ:()=>r,ev:()=>a,rw:()=>s});var i=n(6914);function s({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function o(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function r(t){return"number"==typeof t?0:(0,i.T)("",t)}function a(t,e){return t[e]||t.default||t}},1930:(t,e,n)=>{n.d(e,{oO:()=>o});var i=n(8370),s=n(7866);function o(){const t=(0,i.useContext)(s.O);if(null===t)return[!0,null];const{isPresent:e,onExitComplete:n,register:o}=t,r=(0,i.useId)();(0,i.useEffect)((()=>o(r)),[]);return!e&&n?[!1,()=>n&&n(r)]:[!0]}},7866:(t,e,n)=>{n.d(e,{O:()=>s});var i=n(8370);const s=(0,i.createContext)(null)},7110:(t,e,n)=>{n.d(e,{Bn:()=>r,X7:()=>a,Z7:()=>o});var i=n(5222),s=n(9273);const o=t=>1-Math.sin(Math.acos(t)),r=(0,s.M)(o),a=(0,i.o)(r)},5222:(t,e,n)=>{n.d(e,{o:()=>i});const i=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},9273:(t,e,n)=>{n.d(e,{M:()=>i});const i=t=>e=>1-t(1-e)},409:(t,e,n)=>{n.d(e,{Q:()=>s,s:()=>o});var i=n(2426);function s(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const o=t=>e=>(0,i.D)(e)&&t(e,s(e))},1876:(t,e,n)=>{n.d(e,{E:()=>s,p:()=>o});var i=n(8370);function s(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function o(t,e,n,o){(0,i.useEffect)((()=>{const i=t.current;if(n&&i)return s(i,e,n,o)}),[t,e,n,o])}},7815:(t,e,n)=>{n.d(e,{a:()=>o,m:()=>r});var i=n(1876),s=n(409);function o(t,e,n,o){return(0,i.E)(t,e,(0,s.s)(n),o)}function r(t,e,n,o){return(0,i.p)(t,e,n&&(0,s.s)(n),o)}},2426:(t,e,n)=>{n.d(e,{D:()=>i});const i=t=>!1!==t.isPrimary},5951:(t,e,n)=>{n.d(e,{w:()=>i});const i={delta:0,timestamp:0}},8313:(t,e,n)=>{n.d(e,{qY:()=>p,iW:()=>m,Z_:()=>d});const i=1/60*1e3,s="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),o="undefined"!=typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout((()=>t(s())),i);var r=n(5951);let a=!0,l=!1,u=!1;const c=["read","update","preRender","render","postRender"],h=c.reduce(((t,e)=>(t[e]=function(t){let e=[],n=[],i=0,s=!1,o=!1;const r=new WeakSet,a={schedule:(t,o=!1,a=!1)=>{const l=a&&s,u=l?e:n;return o&&r.add(t),-1===u.indexOf(t)&&(u.push(t),l&&s&&(i=e.length)),t},cancel:t=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1),r.delete(t)},process:l=>{if(s)o=!0;else{if(s=!0,[e,n]=[n,e],n.length=0,i=e.length,i)for(let n=0;n<i;n++){const i=e[n];i(l),r.has(i)&&(a.schedule(i),t())}s=!1,o&&(o=!1,a.process(l))}}};return a}((()=>l=!0)),t)),{}),d=c.reduce(((t,e)=>{const n=h[e];return t[e]=(t,e=!1,i=!1)=>(l||g(),n.schedule(t,e,i)),t}),{}),p=c.reduce(((t,e)=>(t[e]=h[e].cancel,t)),{}),m=c.reduce(((t,e)=>(t[e]=()=>h[e].process(r.w),t)),{}),f=t=>h[t].process(r.w),v=t=>{l=!1,r.w.delta=a?i:Math.max(Math.min(t-r.w.timestamp,40),1),r.w.timestamp=t,u=!0,c.forEach(f),u=!1,l&&(a=!1,o(v))},g=()=>{l=!0,a=!0,u||o(v)}},5856:(t,e,n)=>{function i(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}n.d(e,{fJ:()=>r,gD:()=>a});const s=i("dragHorizontal"),o=i("dragVertical");function r(t){let e=!1;if("y"===t)e=o();else if("x"===t)e=s();else{const t=s(),n=o();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function a(){const t=r(!0);return!t||(t(),!1)}},6295:(t,e,n)=>{n.d(e,{x:()=>i});const i=t=>e=>(t(e),null)},483:(t,e,n)=>{function i({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function s({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function o(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}n.d(e,{d7:()=>o,i8:()=>i,z2:()=>s})},1360:(t,e,n)=>{n.d(e,{D2:()=>f,YY:()=>u,am:()=>h,o2:()=>l,q2:()=>o});var i=n(5430),s=n(4918);function o(t,e,n){return n+e*(t-n)}function r(t,e,n,i,s){return void 0!==s&&(t=o(t,s,i)),o(t,n,i)+e}function a(t,e=0,n=1,i,s){t.min=r(t.min,e,n,i,s),t.max=r(t.max,e,n,i,s)}function l(t,{x:e,y:n}){a(t.x,e.translate,e.scale,e.originPoint),a(t.y,n.translate,n.scale,n.originPoint)}function u(t,e,n,i=!1){var o,r;const a=n.length;if(!a)return;let u,h;e.x=e.y=1;for(let c=0;c<a;c++)u=n[c],h=u.projectionDelta,"contents"!==(null===(r=null===(o=u.instance)||void 0===o?void 0:o.style)||void 0===r?void 0:r.display)&&(i&&u.options.layoutScroll&&u.scroll&&u!==u.root&&f(t,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),h&&(e.x*=h.x.scale,e.y*=h.y.scale,l(t,h)),i&&(0,s.ud)(u.latestValues)&&f(t,u.latestValues));e.x=c(e.x),e.y=c(e.y)}function c(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function h(t,e){t.min=t.min+e,t.max=t.max+e}function d(t,e,[n,s,o]){const r=void 0!==e[o]?e[o]:.5,l=(0,i.C)(t.min,t.max,r);a(t,e[n],e[s],l,e.scale)}const p=["x","scaleX","originX"],m=["y","scaleY","originY"];function f(t,e){d(t.x,e,p),d(t.y,e,m)}},1397:(t,e,n)=>{n.d(e,{dO:()=>s,wc:()=>i});const i=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),s=()=>({x:{min:0,max:0},y:{min:0,max:0}})},798:(t,e,n)=>{n.d(e,{B:()=>s,P:()=>i});const i={};function s(t){Object.assign(i,t)}},4918:(t,e,n)=>{function i(t){return void 0===t||1===t}function s({scale:t,scaleX:e,scaleY:n}){return!i(t)||!i(e)||!i(n)}function o(t){return s(t)||r(t)||t.z||t.rotate||t.rotateX||t.rotateY}function r(t){return a(t.x)||a(t.y)}function a(t){return t&&"0%"!==t}n.d(e,{D_:()=>r,Lj:()=>s,ud:()=>o})},8834:(t,e,n)=>{n.d(e,{J:()=>o,z:()=>r});var i=n(483),s=n(1360);function o(t,e){return(0,i.i8)((0,i.d7)(t.getBoundingClientRect(),e))}function r(t,e,n){const i=o(t,n),{scroll:r}=e;return r&&((0,s.am)(i.x,r.offset.x),(0,s.am)(i.y,r.offset.y)),i}},1610:(t,e,n)=>{n.d(e,{H:()=>le});var i=n(8370);function s(t){return"object"==typeof t&&"function"==typeof t.start}var o=n(1930),r=n(7866),a=n(2819);function l(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}const u=t=>/^0[^.\s]+$/.test(t);var c=n(7048),h=n(1421),d=n(26),p=n(6914),m=n(2890),f=n(8366),v=n(5713);const g=t=>e=>e.test(t),y=[f.Rx,v.px,v.aQ,v.RW,v.vw,v.vh,{test:t=>"auto"===t,parse:t=>t}],x=t=>y.find(g(t)),b=[...y,m.$,d.P],w=t=>b.find(g(t));function P(t,e,n,i={},s={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,i,s)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,i,s)),e}function T(t,e,n){const i=t.getProps();return P(i,e,void 0!==n?n:i.custom,function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.get())),e}(t),function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.getVelocity())),e}(t))}function V(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,h.B)(n))}function A(t,e){const n=T(t,e);let{transitionEnd:i={},transition:s={},...o}=n?t.makeTargetAnimatable(n,!1):{};o={...o,...i};for(const e in o){V(t,e,(0,c.Y)(o[e]))}}function E(t,e){if(!e)return;return(e[t]||e.default||e).from}const C=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],S=new Set(C);var D=n(7846);function M(t){return Boolean((0,D.i)(t)&&t.add)}var R=n(8313);function k(t,e){const{MotionAppearAnimations:n}=window,i=((t,e)=>`${t}: ${e}`)(t,S.has(e)?"transform":e),s=n&&n.get(i);return s?(R.Z_.render((()=>{try{s.cancel(),n.delete(i)}catch(t){}})),s.currentTime||0):0}const B=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),L="data-"+B("framerAppearId");var O=n(6405);function F(t,e,n={}){var i;const s=T(t,e,n.custom);let{transition:o=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(o=n.transitionOverride);const r=s?()=>j(t,s,n):()=>Promise.resolve(),a=(null===(i=t.variantChildren)||void 0===i?void 0:i.size)?(i=0)=>{const{delayChildren:s=0,staggerChildren:r,staggerDirection:a}=o;return function(t,e,n=0,i=0,s=1,o){const r=[],a=(t.variantChildren.size-1)*i,l=1===s?(t=0)=>t*i:(t=0)=>a-t*i;return Array.from(t.variantChildren).sort(I).forEach(((t,i)=>{t.notify("AnimationStart",e),r.push(F(t,e,{...o,delay:n+l(i)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(r)}(t,e,s+i,r,a,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[t,e]="beforeChildren"===l?[r,a]:[a,r];return t().then(e)}return Promise.all([r(),a(n.delay)])}function j(t,e,{delay:n=0,transitionOverride:i,type:s}={}){var o;let{transition:r=t.getDefaultTransition(),transitionEnd:a,...l}=t.makeTargetAnimatable(e);const u=t.getValue("willChange");i&&(r=i);const c=[],h=s&&(null===(o=t.animationState)||void 0===o?void 0:o.getState()[s]);for(const e in l){const i=t.getValue(e),s=l[e];if(!i||void 0===s||h&&$(h,e))continue;let o={delay:n,elapsed:0,...r};if(t.shouldReduceMotion&&S.has(e)&&(o={...o,type:!1,delay:0}),!i.hasAnimated){const n=t.getProps()[L];n&&(o.elapsed=k(n,e))}let a=i.start((0,O.Z)(e,i,s,o));M(u)&&(u.add(e),a=a.then((()=>u.remove(e)))),c.push(a)}return Promise.all(c).then((()=>{a&&A(t,a)}))}function I(t,e){return t.sortNodePosition(e)}function $({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}function U(t){return"string"==typeof t||Array.isArray(t)}var N=n(7921);const Y=[N.r.Animate,N.r.InView,N.r.Focus,N.r.Hover,N.r.Tap,N.r.Drag,N.r.Exit],z=[...Y].reverse(),Z=Y.length;function W(t){return e=>Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e)){const s=e.map((e=>F(t,e,n)));i=Promise.all(s)}else if("string"==typeof e)i=F(t,e,n);else{const s="function"==typeof e?T(t,e,n.custom):e;i=j(t,s,n)}return i.then((()=>t.notify("AnimationComplete",e)))}(t,e,n))))}function H(t){let e=W(t);const n={[N.r.Animate]:X(!0),[N.r.InView]:X(),[N.r.Hover]:X(),[N.r.Tap]:X(),[N.r.Drag]:X(),[N.r.Focus]:X(),[N.r.Exit]:X()};let i=!0;const o=(e,n)=>{const i=T(t,n);if(i){const{transition:t,transitionEnd:n,...s}=i;e={...e,...s,...n}}return e};function r(r,u){const c=t.getProps(),h=t.getVariantContext(!0)||{},d=[],p=new Set;let m={},f=1/0;for(let e=0;e<Z;e++){const v=z[e],g=n[v],y=void 0!==c[v]?c[v]:h[v],x=U(y),b=v===u?g.isActive:null;!1===b&&(f=e);let w=y===h[v]&&y!==c[v]&&x;if(w&&i&&t.manuallyAnimateOnMount&&(w=!1),g.protectedKeys={...m},!g.isActive&&null===b||!y&&!g.prevProp||s(y)||"boolean"==typeof y)continue;const P=q(g.prevProp,y);let T=P||v===u&&g.isActive&&!w&&x||e>f&&x;const V=Array.isArray(y)?y:[y];let A=V.reduce(o,{});!1===b&&(A={});const{prevResolvedValues:E={}}=g,C={...E,...A},S=t=>{T=!0,p.delete(t),g.needsAnimating[t]=!0};for(const t in C){const e=A[t],n=E[t];m.hasOwnProperty(t)||(e!==n?(0,a.C)(e)&&(0,a.C)(n)?!l(e,n)||P?S(t):g.protectedKeys[t]=!0:void 0!==e?S(t):p.add(t):void 0!==e&&p.has(t)?S(t):g.protectedKeys[t]=!0)}g.prevProp=y,g.prevResolvedValues=A,g.isActive&&(m={...m,...A}),i&&t.blockInitialAnimation&&(T=!1),T&&!w&&d.push(...V.map((t=>({animation:t,options:{type:v,...r}}))))}if(p.size){const e={};p.forEach((n=>{const i=t.getBaseTarget(n);void 0!==i&&(e[n]=i)})),d.push({animation:e})}let v=Boolean(d.length);return i&&!1===c.initial&&!t.manuallyAnimateOnMount&&(v=!1),i=!1,v?e(d):Promise.resolve()}return{animateChanges:r,setActive:function(e,i,s){var o;if(n[e].isActive===i)return Promise.resolve();null===(o=t.variantChildren)||void 0===o||o.forEach((t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,i)})),n[e].isActive=i;const a=r(s,e);for(const t in n)n[t].protectedKeys={};return a},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}function q(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!l(e,t)}function X(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var _=n(6295);const G={animation:(0,_.x)((({visualElement:t,animate:e})=>{t.animationState||(t.animationState=H(t)),s(e)&&(0,i.useEffect)((()=>e.subscribe(t)),[e])})),exit:(0,_.x)((t=>{const{custom:e,visualElement:n}=t,[s,a]=(0,o.oO)(),l=(0,i.useContext)(r.O);(0,i.useEffect)((()=>{n.isPresent=s;const t=n.animationState&&n.animationState.setActive(N.r.Exit,!s,{custom:l&&l.custom||e});t&&!s&&t.then(a)}),[s])}))};var K=n(1876);var J=n(7815),Q=n(5856);function tt(t,e,n){return(i,s)=>{(function(t){return"pen"!==t.type&&"touch"!==t.type})(i)&&!(0,Q.gD)()&&(t.animationState&&t.animationState.setActive(N.r.Hover,e),n&&n(i,s))}}const et=(t,e)=>!!e&&(t===e||et(t,e.parentElement));var nt=n(9531),it=n(9820);const st=new WeakMap,ot=new WeakMap,rt=t=>{const e=st.get(t.target);e&&e(t)},at=t=>{t.forEach(rt)};function lt(t,e,n){const i=function({root:t,...e}){const n=t||document;ot.has(n)||ot.set(n,{});const i=ot.get(n),s=JSON.stringify(e);return i[s]||(i[s]=new IntersectionObserver(at,{root:t,...e})),i[s]}(e);return st.set(t,n),i.observe(t),()=>{st.delete(t),i.unobserve(t)}}const ut={some:0,all:1};function ct(t,e,n,{root:s,margin:o,amount:r="some",once:a}){(0,i.useEffect)((()=>{if(!t||!n.current)return;const i={root:null==s?void 0:s.current,rootMargin:o,threshold:"number"==typeof r?r:ut[r]};return lt(n.current,i,(t=>{const{isIntersecting:i}=t;if(e.isInView===i)return;if(e.isInView=i,a&&!i&&e.hasEnteredView)return;i&&(e.hasEnteredView=!0),n.animationState&&n.animationState.setActive(N.r.InView,i);const s=n.getProps(),o=i?s.onViewportEnter:s.onViewportLeave;o&&o(t)}))}),[t,s,o,r])}function ht(t,e,n,{fallback:s=!0}){(0,i.useEffect)((()=>{t&&s&&requestAnimationFrame((()=>{e.hasEnteredView=!0;const{onViewportEnter:t}=n.getProps();t&&t(null),n.animationState&&n.animationState.setActive(N.r.InView,!0)}))}),[t])}const dt={inView:(0,_.x)((function({visualElement:t,whileInView:e,onViewportEnter:n,onViewportLeave:s,viewport:o={}}){const r=(0,i.useRef)({hasEnteredView:!1,isInView:!1});let a=Boolean(e||n||s);o.once&&r.current.hasEnteredView&&(a=!1),("undefined"==typeof IntersectionObserver?ht:ct)(a,r.current,t,o)})),tap:(0,_.x)((function({onTap:t,onTapStart:e,onTapCancel:n,whileTap:s,visualElement:o}){const r=t||e||n||s,a=(0,i.useRef)(!1),l=(0,i.useRef)(null),u={passive:!(e||t||n||m)};function c(){l.current&&l.current(),l.current=null}function h(){return c(),a.current=!1,o.animationState&&o.animationState.setActive(N.r.Tap,!1),!(0,Q.gD)()}function d(e,i){h()&&(et(o.current,e.target)?t&&t(e,i):n&&n(e,i))}function p(t,e){h()&&n&&n(t,e)}function m(t,n){c(),a.current||(a.current=!0,l.current=(0,it.z)((0,J.a)(window,"pointerup",d,u),(0,J.a)(window,"pointercancel",p,u)),o.animationState&&o.animationState.setActive(N.r.Tap,!0),e&&e(t,n))}(0,J.m)(o,"pointerdown",r?m:void 0,u),(0,nt.z)(c)})),focus:(0,_.x)((function({whileFocus:t,visualElement:e}){const{animationState:n}=e;(0,K.p)(e,"focus",t?()=>{n&&n.setActive(N.r.Focus,!0)}:void 0),(0,K.p)(e,"blur",t?()=>{n&&n.setActive(N.r.Focus,!1)}:void 0)})),hover:(0,_.x)((function({onHoverStart:t,onHoverEnd:e,whileHover:n,visualElement:i}){(0,J.m)(i,"pointerenter",t||n?tt(i,!0,t):void 0,{passive:!t}),(0,J.m)(i,"pointerleave",e||n?tt(i,!1,e):void 0,{passive:!e})}))},pt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},mt=(t,e)=>C.indexOf(t)-C.indexOf(e);function ft(t){return t.startsWith("--")}const vt=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var gt=n(4923);function yt(t,e,n,i){const{style:s,vars:o,transform:r,transformKeys:a,transformOrigin:l}=t;a.length=0;let u=!1,c=!1,h=!0;for(const t in e){const n=e[t];if(ft(t)){o[t]=n;continue}const i=gt.j[t],d=vt(n,i);if(S.has(t)){if(u=!0,r[t]=d,a.push(t),!h)continue;n!==(i.default||0)&&(h=!1)}else t.startsWith("origin")?(c=!0,l[t]=d):s[t]=d}if(e.transform||(u||i?s.transform=function({transform:t,transformKeys:e},{enableHardwareAcceleration:n=!0,allowTransformNone:i=!0},s,o){let r="";e.sort(mt);for(const n of e)r+=`${pt[n]||n}(${t[n]}) `;return n&&!t.z&&(r+="translateZ(0)"),r=r.trim(),o?r=o(t,s?"":r):i&&s&&(r="none"),r}(t,n,h,i):s.transform&&(s.transform="none")),c){const{originX:t="50%",originY:e="50%",originZ:n=0}=l;s.transformOrigin=`${t} ${e} ${n}`}}var xt=n(798);function bt(t,{layout:e,layoutId:n}){return S.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!xt.P[t]||"opacity"===t)}function wt(t,e){const{style:n}=t,i={};for(const s in n)((0,D.i)(n[s])||e.style&&(0,D.i)(e.style[s])||bt(s,t))&&(i[s]=n[s]);return i}function Pt(t,{style:e,vars:n},i,s){Object.assign(t.style,e,s&&s.getProjectionStyles(i));for(const e in n)t.style.setProperty(e,n[e])}var Tt=n(7557),Vt=n(8834),At=n(6978),Et=n(9340);const Ct="undefined"!=typeof document,St=new Set(["width","height","top","left","right","bottom","x","y"]),Dt=t=>St.has(t),Mt=t=>t===f.Rx||t===v.px;var Rt;!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(Rt||(Rt={}));const kt=(t,e)=>parseFloat(t.split(", ")[e]),Bt=(t,e)=>(n,{transform:i})=>{if("none"===i||!i)return 0;const s=i.match(/^matrix3d\((.+)\)$/);if(s)return kt(s[1],e);{const e=i.match(/^matrix\((.+)\)$/);return e?kt(e[1],t):0}},Lt=new Set(["x","y","z"]),Ot=C.filter((t=>!Lt.has(t)));const Ft={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),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:Bt(4,13),y:Bt(5,14)},jt=(t,e,n={},i={})=>{e={...e},i={...i};const s=Object.keys(e).filter(Dt);let o=[],r=!1;const l=[];if(s.forEach((s=>{const u=t.getValue(s);if(!t.hasValue(s))return;let c=n[s],h=x(c);const d=e[s];let p;if((0,a.C)(d)){const t=d.length,e=null===d[0]?1:0;c=d[e],h=x(c);for(let n=e;n<t;n++)p?(0,Et.k)(x(d[n])===p,"All keyframes must be of the same type"):(p=x(d[n]),(0,Et.k)(p===h||Mt(h)&&Mt(p),"Keyframes must be of the same dimension as the current value"))}else p=x(d);if(h!==p)if(Mt(h)&&Mt(p)){const t=u.get();"string"==typeof t&&u.set(parseFloat(t)),"string"==typeof d?e[s]=parseFloat(d):Array.isArray(d)&&p===v.px&&(e[s]=d.map(parseFloat))}else(null==h?void 0:h.transform)&&(null==p?void 0:p.transform)&&(0===c||0===d)?0===c?u.set(p.transform(c)):e[s]=h.transform(d):(r||(o=function(t){const e=[];return Ot.forEach((n=>{const i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))})),e.length&&t.render(),e}(t),r=!0),l.push(s),i[s]=void 0!==i[s]?i[s]:e[s],u.jump(d))})),l.length){const n=l.indexOf("height")>=0?window.pageYOffset:null,s=((t,e,n)=>{const i=e.measureViewportBox(),s=e.current,o=getComputedStyle(s),{display:r}=o,a={};"none"===r&&e.setStaticValue("display",t.display||"block"),n.forEach((t=>{a[t]=Ft[t](i,o)})),e.render();const l=e.measureViewportBox();return n.forEach((n=>{const i=e.getValue(n);i&&i.jump(a[n]),t[n]=Ft[n](l,o)})),t})(e,t,l);return o.length&&o.forEach((([e,n])=>{t.getValue(e).set(n)})),t.render(),Ct&&null!==n&&window.scrollTo({top:n}),{target:s,transitionEnd:i}}return{target:e,transitionEnd:i}};function It(t,e,n,i){return(t=>Object.keys(t).some(Dt))(e)?jt(t,e,n,i):{target:e,transitionEnd:i}}const $t=t=>({isEnabled:e=>t.some((t=>!!e[t]))}),Ut={measureLayout:$t(["layout","layoutId","drag"]),animation:$t(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:$t(["exit"]),drag:$t(["drag","dragControls"]),focus:$t(["whileFocus"]),hover:$t(["whileHover","onHoverStart","onHoverEnd"]),tap:$t(["whileTap","onTap","onTapStart","onTapCancel"]),pan:$t(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:$t(["whileInView","onViewportEnter","onViewportLeave"])};var Nt=n(1397),Yt=n(3491);const zt={current:null},Zt={current:!1};var Wt=n(1065);const Ht=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function qt(t){return s(t.animate)||Ht.some((e=>U(t[e])))}const Xt=Object.keys(Ut),_t=Xt.length,Gt=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];const Kt=["initial",...Y],Jt=Kt.length;class Qt extends class{constructor({parent:t,props:e,reducedMotionConfig:n,visualState:i},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,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.scheduleRender=()=>R.Z_.render(this.render,!1,!0);const{latestValues:o,renderState:r}=i;this.latestValues=o,this.baseTarget={...o},this.initialValues=e.initial?{...o}:{},this.renderState=r,this.parent=t,this.props=e,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=s,this.isControllingVariants=qt(e),this.isVariantNode=function(t){return Boolean(qt(t)||t.variants)}(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:a,...l}=this.scrapeMotionValuesFromProps(e,{});for(const t in l){const e=l[t];void 0!==o[t]&&(0,D.i)(e)&&(e.set(o[t],!1),M(a)&&a.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){var e;this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null===(e=this.parent)||void 0===e?void 0:e.addVariantChild(this)),this.values.forEach(((t,e)=>this.bindToMotionValue(e,t))),Zt.current||function(){if(Zt.current=!0,Ct)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>zt.current=t.matches;t.addListener(e),e()}else zt.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||zt.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var t,e,n;null===(t=this.projection)||void 0===t||t.unmount(),R.qY.update(this.notifyUpdate),R.qY.render(this.render),this.valueSubscriptions.forEach((t=>t())),null===(e=this.removeFromVariantTree)||void 0===e||e.call(this),null===(n=this.parent)||void 0===n||n.children.delete(this);for(const t in this.events)this.events[t].clear();this.current=null}bindToMotionValue(t,e){const n=S.has(t),i=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&R.Z_.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),s=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,(()=>{i(),s()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures(t,e,n,s,o,r){const a=[];for(let e=0;e<_t;e++){const n=Xt[e],{isEnabled:s,Component:o}=Ut[n];s(t)&&o&&a.push((0,i.createElement)(o,{key:n,...t,visualElement:this}))}if(!this.projection&&o){this.projection=new o(s,this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:i,dragConstraints:a,layoutScroll:l}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(i)||a&&(0,Yt.I)(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:r,layoutScroll:l})}return a}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,Nt.dO)()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,e)}setProps(t){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender();const e=this.props;this.props=t;for(let e=0;e<Gt.length;e++){const n=Gt[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const i=t["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=function(t,e,n){const{willChange:i}=e;for(const s in e){const o=e[s],r=n[s];if((0,D.i)(o))t.addValue(s,o),M(i)&&i.add(s);else if((0,D.i)(r))t.addValue(s,(0,h.B)(o,{owner:t})),M(i)&&i.remove(s);else if(r!==o)if(t.hasValue(s)){const e=t.getValue(s);!e.hasAnimated&&e.set(o)}else{const e=t.getStaticValue(s);t.addValue(s,(0,h.B)(void 0!==e?e:o))}}for(const i in n)void 0===e[i]&&t.removeValue(i);return e}(this,this.scrapeMotionValuesFromProps(t,e),this.prevMotionValues)}getProps(){return this.props}getVariant(t){var e;return null===(e=this.props.variants)||void 0===e?void 0:e[t]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){var t;return this.isVariantNode?this:null===(t=this.parent)||void 0===t?void 0:t.getClosestVariantNode()}getVariantContext(t=!1){var e,n;if(t)return null===(e=this.parent)||void 0===e?void 0:e.getVariantContext();if(!this.isControllingVariants){const t=(null===(n=this.parent)||void 0===n?void 0:n.getVariantContext())||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}const i={};for(let t=0;t<Jt;t++){const e=Kt[t],n=this.props[e];(U(n)||!1===n)&&(i[e]=n)}return i}addVariantChild(t){var e;const n=this.getClosestVariantNode();if(n)return null===(e=n.variantChildren)||void 0===e||e.add(t),()=>n.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){var e;this.values.delete(t),null===(e=this.valueSubscriptions.get(t))||void 0===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 n=this.values.get(t);return void 0===n&&void 0!==e&&(n=(0,h.B)(e,{owner:this}),this.addValue(t,n)),n}readValue(t){return void 0===this.latestValues[t]&&this.current?this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props,i="string"==typeof n||"object"==typeof n?null===(e=P(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==i)return i;const s=this.getBaseTargetFromProps(this.props,t);return void 0===s||(0,D.i)(s)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new Wt.L),this.events[t].add(e)}notify(t,...e){var n;null===(n=this.events[t])||void 0===n||n.notify(...e)}}{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){var n;return null===(n=t.style)||void 0===n?void 0:n[e]}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...n},{transformValues:i},s){let o=function(t,e,n){var i;const s={};for(const o in t){const t=E(o,e);s[o]=void 0!==t?t:null===(i=n.getValue(o))||void 0===i?void 0:i.get()}return s}(n,t||{},this);if(i&&(e&&(e=i(e)),n&&(n=i(n)),o&&(o=i(o))),s){!function(t,e,n){var i,s;const o=Object.keys(e).filter((e=>!t.hasValue(e))),r=o.length;if(r)for(let a=0;a<r;a++){const r=o[a],l=e[r];let c=null;Array.isArray(l)&&(c=l[0]),null===c&&(c=null!==(s=null!==(i=n[r])&&void 0!==i?i:t.readValue(r))&&void 0!==s?s:e[r]),null!=c&&("string"==typeof c&&(/^\-?\d*\.?\d+$/.test(c)||u(c))?c=parseFloat(c):!w(c)&&d.P.test(l)&&(c=(0,p.T)(r,l)),t.addValue(r,(0,h.B)(c,{owner:t})),void 0===n[r]&&(n[r]=c),null!==c&&t.setBaseTarget(r,c))}}(this,n,o);const t=((t,e,n,i)=>{const s=(0,At.mH)(t,e,i);return It(t,e=s.target,n,i=s.transitionEnd)})(this,n,o,e);e=t.transitionEnd,n=t.target}return{transition:t,transitionEnd:e,...n}}}class te extends Qt{readValueFromInstance(t,e){if(S.has(e)){const t=(0,Tt.A)(e);return t&&t.default||0}{const i=(n=t,window.getComputedStyle(n)),s=(ft(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,Vt.J)(t,e)}build(t,e,n,i){yt(t,e,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,e){return wt(t,e)}renderInstance(t,e,n,i){Pt(t,e,n,i)}}function ee(t,e,n){return"string"==typeof t?t:v.px.transform(e+n*t)}const ne={offset:"stroke-dashoffset",array:"stroke-dasharray"},ie={offset:"strokeDashoffset",array:"strokeDasharray"};function se(t,{attrX:e,attrY:n,originX:i,originY:s,pathLength:o,pathSpacing:r=1,pathOffset:a=0,...l},u,c,h){if(yt(t,l,u,h),c)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:d,style:p,dimensions:m}=t;d.transform&&(m&&(p.transform=d.transform),delete d.transform),m&&(void 0!==i||void 0!==s||p.transform)&&(p.transformOrigin=function(t,e,n){return`${ee(e,t.x,t.width)} ${ee(n,t.y,t.height)}`}(m,void 0!==i?i:.5,void 0!==s?s:.5)),void 0!==e&&(d.x=e),void 0!==n&&(d.y=n),void 0!==o&&function(t,e,n=1,i=0,s=!0){t.pathLength=1;const o=s?ne:ie;t[o.offset]=v.px.transform(-i);const r=v.px.transform(e),a=v.px.transform(n);t[o.array]=`${r} ${a}`}(d,o,r,a,!1)}const oe=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"]);class re extends Qt{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){var n;return S.has(e)?(null===(n=(0,Tt.A)(e))||void 0===n?void 0:n.default)||0:(e=oe.has(e)?e:B(e),t.getAttribute(e))}measureInstanceViewportBox(){return(0,Nt.dO)()}scrapeMotionValuesFromProps(t,e){return function(t,e){const n=wt(t,e);for(const i in t)((0,D.i)(t[i])||(0,D.i)(e[i]))&&(n["x"===i||"y"===i?"attr"+i.toUpperCase():i]=t[i]);return n}(t,e)}build(t,e,n,i){se(t,e,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,n,i){!function(t,e,n,i){Pt(t,e,void 0,i);for(const n in e.attrs)t.setAttribute(oe.has(n)?n:B(n),e.attrs[n])}(t,e,0,i)}mount(t){var e;this.isSVGTag="string"==typeof(e=t.tagName)&&"svg"===e.toLowerCase(),super.mount(t)}}const ae=["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"];const le={renderer:(t,e)=>function(t){return"string"==typeof t&&!t.includes("-")&&!!(ae.indexOf(t)>-1||/[A-Z]/.test(t))}(t)?new re(e,{enableHardwareAcceleration:!1}):new te(e,{enableHardwareAcceleration:!0}),...G,...dt}},6978:(t,e,n)=>{n.d(e,{Xp:()=>o,mH:()=>a});var i=n(9340);function s(t){return"string"==typeof t&&t.startsWith("var(--")}const o=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function r(t,e,n=1){(0,i.k)(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[a,l]=function(t){const e=o.exec(t);if(!e)return[,];const[,n,i]=e;return[n,i]}(t);if(!a)return;const u=window.getComputedStyle(e).getPropertyValue(a);return u?u.trim():s(l)?r(l,e,n+1):l}function a(t,{...e},n){const i=t.current;if(!(i instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach((t=>{const e=t.get();if(!s(e))return;const n=r(e,i);n&&t.set(n)}));for(const t in e){const o=e[t];if(!s(o))continue;const a=r(o,i);a&&(e[t]=a,n&&void 0===n[t]&&(n[t]=o))}return{target:e,transitionEnd:n}}},6914:(t,e,n)=>{n.d(e,{T:()=>r});var i=n(26),s=n(8673),o=n(7557);function r(t,e){var n;let r=(0,o.A)(t);return r!==s.h&&(r=i.P),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,e)}},7557:(t,e,n)=>{n.d(e,{A:()=>r});var i=n(2890),s=n(8673);const o={...n(4923).j,color:i.$,backgroundColor:i.$,outlineColor:i.$,fill:i.$,stroke:i.$,borderColor:i.$,borderTopColor:i.$,borderRightColor:i.$,borderBottomColor:i.$,borderLeftColor:i.$,filter:s.h,WebkitFilter:s.h},r=t=>o[t]},4923:(t,e,n)=>{n.d(e,{j:()=>r});var i=n(8366),s=n(5713),o=n(6442);const r={borderWidth:s.px,borderTopWidth:s.px,borderRightWidth:s.px,borderBottomWidth:s.px,borderLeftWidth:s.px,borderRadius:s.px,radius:s.px,borderTopLeftRadius:s.px,borderTopRightRadius:s.px,borderBottomRightRadius:s.px,borderBottomLeftRadius:s.px,width:s.px,maxWidth:s.px,height:s.px,maxHeight:s.px,size:s.px,top:s.px,right:s.px,bottom:s.px,left:s.px,padding:s.px,paddingTop:s.px,paddingRight:s.px,paddingBottom:s.px,paddingLeft:s.px,margin:s.px,marginTop:s.px,marginRight:s.px,marginBottom:s.px,marginLeft:s.px,rotate:s.RW,rotateX:s.RW,rotateY:s.RW,rotateZ:s.RW,scale:i.bA,scaleX:i.bA,scaleY:i.bA,scaleZ:i.bA,skew:s.RW,skewX:s.RW,skewY:s.RW,distance:s.px,translateX:s.px,translateY:s.px,translateZ:s.px,x:s.px,y:s.px,z:s.px,perspective:s.px,transformPerspective:s.px,opacity:i.Fq,originX:s.$C,originY:s.$C,originZ:s.px,zIndex:o.e,fillOpacity:i.Fq,strokeOpacity:i.Fq,numOctaves:o.e}},6442:(t,e,n)=>{n.d(e,{e:()=>i});const i={...n(8366).Rx,transform:Math.round}},7921:(t,e,n)=>{var i;n.d(e,{r:()=>i}),function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.InView="whileInView",t.Exit="exit"}(i||(i={}))},1180:(t,e,n)=>{function i(t,e){-1===t.indexOf(e)&&t.push(e)}function s(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}n.d(e,{cl:()=>s,y4:()=>i})},9043:(t,e,n)=>{n.d(e,{u:()=>i});const i=(t,e,n)=>Math.min(Math.max(n,t),e)},2866:(t,e,n)=>{n.d(e,{g:()=>s});var i=n(8313);function s(t,e){const n=performance.now(),s=({timestamp:o})=>{const r=o-n;r>=e&&(i.qY.read(s),t(r-e))};return i.Z_.read(s,!0),()=>i.qY.read(s)}},3491:(t,e,n)=>{function i(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}n.d(e,{I:()=>i})},5430:(t,e,n)=>{n.d(e,{C:()=>i});const i=(t,e,n)=>-n*t+n*e+t},2634:(t,e,n)=>{n.d(e,{Z:()=>i});const i=t=>t},9820:(t,e,n)=>{n.d(e,{z:()=>s});const i=(t,e)=>n=>e(t(n)),s=(...t)=>t.reduce(i)},918:(t,e,n)=>{n.d(e,{Y:()=>i});const i=(t,e,n)=>{const i=e-t;return 0===i?1:(n-t)/i}},7048:(t,e,n)=>{n.d(e,{Y:()=>o,p:()=>s});var i=n(2819);const s=t=>Boolean(t&&"object"==typeof t&&t.mix&&t.toValue),o=t=>(0,i.C)(t)?t[t.length-1]||0:t},1065:(t,e,n)=>{n.d(e,{L:()=>s});var i=n(1180);class s{constructor(){this.subscriptions=[]}add(t){return(0,i.y4)(this.subscriptions,t),()=>(0,i.cl)(this.subscriptions,t)}notify(t,e,n){const i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,n);else for(let s=0;s<i;s++){const i=this.subscriptions[s];i&&i(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},1818:(t,e,n)=>{n.d(e,{w:()=>i});const i=t=>1e3*t},9531:(t,e,n)=>{n.d(e,{z:()=>s});var i=n(8370);function s(t){return(0,i.useEffect)((()=>()=>t()),[])}},432:(t,e,n)=>{function i(t,e){return e?t*(1e3/e):0}n.d(e,{R:()=>i})},1421:(t,e,n)=>{n.d(e,{B:()=>l});var i=n(5951),s=n(8313),o=n(1065),r=n(432);class a{constructor(t,e={}){var n;this.version="__VERSION__",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;const{delta:n,timestamp:o}=i.w;this.lastUpdated!==o&&(this.timeDelta=n,this.lastUpdated=o,s.Z_.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>s.Z_.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=e.owner}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new o.L);const n=this.events[t].add(e);return"change"===t?()=>{n(),s.Z_.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?(0,r.R)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.stopAnimation=t(e),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.stopAnimation&&(this.stopAnimation(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function l(t,e){return new a(t,e)}},4775:(t,e,n)=>{n.d(e,{$:()=>s});var i=n(6077);const s={test:(0,n(8810).i)("#"),parse:function(t){let e="",n="",i="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,i+=i,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}},transform:i.m.transform}},5193:(t,e,n)=>{n.d(e,{J:()=>a});var i=n(8366),s=n(5713),o=n(6933),r=n(8810);const a={test:(0,r.i)("hsl","hue"),parse:(0,r.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+s.aQ.transform((0,o.Nw)(e))+", "+s.aQ.transform((0,o.Nw)(n))+", "+(0,o.Nw)(i.Fq.transform(r))+")"}},2890:(t,e,n)=>{n.d(e,{$:()=>a});var i=n(6933),s=n(4775),o=n(5193),r=n(6077);const a={test:t=>r.m.test(t)||s.$.test(t)||o.J.test(t),parse:t=>r.m.test(t)?r.m.parse(t):o.J.test(t)?o.J.parse(t):s.$.parse(t),transform:t=>(0,i.HD)(t)?t:t.hasOwnProperty("red")?r.m.transform(t):o.J.transform(t)}},6077:(t,e,n)=>{n.d(e,{m:()=>l});var i=n(9043),s=n(8366),o=n(6933),r=n(8810);const a={...s.Rx,transform:t=>Math.round((t=>(0,i.u)(0,255,t))(t))},l={test:(0,r.i)("rgb","red"),parse:(0,r.d)("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+a.transform(t)+", "+a.transform(e)+", "+a.transform(n)+", "+(0,o.Nw)(s.Fq.transform(i))+")"}},8810:(t,e,n)=>{n.d(e,{d:()=>o,i:()=>s});var i=n(6933);const s=(t,e)=>n=>Boolean((0,i.HD)(n)&&i.mj.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),o=(t,e,n)=>s=>{if(!(0,i.HD)(s))return s;const[o,r,a,l]=s.match(i.KP);return{[t]:parseFloat(o),[e]:parseFloat(r),[n]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},8673:(t,e,n)=>{n.d(e,{h:()=>l});var i=n(26),s=n(6933);const o=new Set(["brightness","contrast","saturate","opacity"]);function r(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[i]=n.match(s.KP)||[];if(!i)return t;const r=n.replace(i,"");let a=o.has(e)?1:0;return i!==n&&(a*=100),e+"("+a+r+")"}const a=/([a-z-]*)\(.*?\)/g,l={...i.P,getAnimatableNone:t=>{const e=t.match(a);return e?e.map(r).join(" "):t}}},26:(t,e,n)=>{n.d(e,{P:()=>d,V:()=>l});var i=n(2890),s=n(8366),o=n(6933);const r="${c}",a="${n}";function l(t){"number"==typeof t&&(t=`${t}`);const e=[];let n=0,l=0;const u=t.match(o.dA);u&&(n=u.length,t=t.replace(o.dA,r),e.push(...u.map(i.$.parse)));const c=t.match(o.KP);return c&&(l=c.length,t=t.replace(o.KP,a),e.push(...c.map(s.Rx.parse))),{values:e,numColors:n,numNumbers:l,tokenised:t}}function u(t){return l(t).values}function c(t){const{values:e,numColors:n,tokenised:s}=l(t),u=e.length;return t=>{let e=s;for(let s=0;s<u;s++)e=e.replace(s<n?r:a,s<n?i.$.transform(t[s]):(0,o.Nw)(t[s]));return e}}const h=t=>"number"==typeof t?0:t;const d={test:function(t){var e,n;return isNaN(t)&&(0,o.HD)(t)&&((null===(e=t.match(o.KP))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(o.dA))||void 0===n?void 0:n.length)||0)>0},parse:u,createTransformer:c,getAnimatableNone:function(t){const e=u(t);return c(t)(e.map(h))}}},8366:(t,e,n)=>{n.d(e,{Fq:()=>o,Rx:()=>s,bA:()=>r});var i=n(9043);const s={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},o={...s,transform:t=>(0,i.u)(0,1,t)},r={...s,default:1}},5713:(t,e,n)=>{n.d(e,{$C:()=>c,RW:()=>o,aQ:()=>r,px:()=>a,vh:()=>l,vw:()=>u});var i=n(6933);const s=t=>({test:e=>(0,i.HD)(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),o=s("deg"),r=s("%"),a=s("px"),l=s("vh"),u=s("vw"),c={...r,parse:t=>r.parse(t)/100,transform:t=>r.transform(100*t)}},6933:(t,e,n)=>{n.d(e,{HD:()=>a,KP:()=>s,Nw:()=>i,dA:()=>o,mj:()=>r});const i=t=>Math.round(1e5*t)/1e5,s=/(-)?([\d]*\.?[\d])+/g,o=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,r=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function a(t){return"string"==typeof t}},7846:(t,e,n)=>{n.d(e,{i:()=>i});const i=t=>!!(null==t?void 0:t.getVelocity)},8370:t=>{t.exports=void 0}},e={};function n(i){var s=e[i];if(void 0!==s)return s.exports;var o=e[i]={exports:{}};return t[i](o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t=n(8370),e=n.n(t),i=n(9340),s=n(409),o=n(8313),r=n(1818),a=n(7815),l=n(9820);const u=(t,e)=>Math.abs(t-e);var c=n(5951),h=n(2426);class d{constructor(t,e,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=f(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=u(t.x,e.x),i=u(t.y,e.y);return Math.sqrt(n**2+i**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:i}=t,{timestamp:s}=c.w;this.history.push({...i,timestamp:s});const{onStart:o,onMove:r}=this.handlers;e||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),r&&r(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=p(e,this.transformPagePoint),o.Z_.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:i}=this.handlers,s=f(p(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,s),i&&i(t,s)},!(0,h.D)(t))return;this.handlers=e,this.transformPagePoint=n;const i=p((0,s.Q)(t),this.transformPagePoint),{point:r}=i,{timestamp:d}=c.w;this.history=[{...r,timestamp:d}];const{onSessionStart:m}=e;m&&m(t,f(i,this.history)),this.removeListeners=(0,l.z)((0,a.a)(window,"pointermove",this.handlePointerMove),(0,a.a)(window,"pointerup",this.handlePointerUp),(0,a.a)(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),o.qY.update(this.updatePoint)}}function p(t,e){return e?{point:e(t.point)}:t}function m(t,e){return{x:t.x-e.x,y:t.y-e.y}}function f({point:t},e){return{point:t,delta:m(t,g(e)),offset:m(t,v(e)),velocity:y(e,.1)}}function v(t){return t[0]}function g(t){return t[t.length-1]}function y(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const s=g(t);for(;n>=0&&(i=t[n],!(s.timestamp-i.timestamp>(0,r.w)(e)));)n--;if(!i)return{x:0,y:0};const o=(s.timestamp-i.timestamp)/1e3;if(0===o)return{x:0,y:0};const a={x:(s.x-i.x)/o,y:(s.y-i.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}var x=n(5856),b=n(3491),w=n(918),P=n(5430);function T(t){return t.max-t.min}function V(t,e=0,n=.01){return Math.abs(t-e)<=n}function A(t,e,n,i=.5){t.origin=i,t.originPoint=(0,P.C)(e.min,e.max,t.origin),t.scale=T(n)/T(e),(V(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=(0,P.C)(n.min,n.max,t.origin)-t.originPoint,(V(t.translate)||isNaN(t.translate))&&(t.translate=0)}function E(t,e,n,i){A(t.x,e.x,n.x,null==i?void 0:i.originX),A(t.y,e.y,n.y,null==i?void 0:i.originY)}function C(t,e,n){t.min=n.min+e.min,t.max=t.min+T(e)}function S(t,e,n){t.min=e.min-n.min,t.max=t.min+T(e)}function D(t,e,n){S(t.x,e.x,n.x),S(t.y,e.y,n.y)}var M=n(9043);function R(t,{min:e,max:n},i){return void 0!==e&&t<e?t=i?(0,P.C)(e,t,i.min):Math.max(t,e):void 0!==n&&t>n&&(t=i?(0,P.C)(n,t,i.max):Math.min(t,n)),t}function k(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function B(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function L(t,e){let n=.5;const i=T(t),s=T(e);return s>i?n=(0,w.Y)(e.min,e.max-i,t.min):i>s&&(n=(0,w.Y)(t.min,t.max-s,e.min)),(0,M.u)(0,1,n)}const O=.35;function F(t,e,n){return{min:j(t,e),max:j(t,n)}}function j(t,e){return"number"==typeof t?t:t[e]||0}var I=n(7921),$=n(1397);function U(t){return[t("x"),t("y")]}var N=n(8834),Y=n(483),z=n(1876),Z=n(5713),W=n(6405);const H=new WeakMap;class q{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,$.dO)(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){if(!1===this.visualElement.isPresent)return;this.panSession=new d(t,{onSessionStart:t=>{this.stopAnimation(),e&&this.snapToCursor((0,s.Q)(t,"page").point)},onStart:(t,e)=>{var n;const{drag:i,dragPropagation:s,onDragStart:o}=this.getProps();(!i||s||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=(0,x.fJ)(i),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),U((t=>{var e,n;let i=this.getAxisMotionValue(t).get()||0;if(Z.aQ.test(i)){const s=null===(n=null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout)||void 0===n?void 0:n.layoutBox[t];if(s){i=T(s)*(parseFloat(i)/100)}}this.originPoint[t]=i})),null==o||o(t,e),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(I.r.Drag,!0))},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:i,onDirectionLock:s,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:r}=e;if(i&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(r),void(null!==this.currentDirection&&(null==s||s(this.currentDirection)));this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),null==o||o(t,e)},onSessionEnd:(t,e)=>this.stop(t,e)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=e;this.startAnimation(i);const{onDragEnd:s}=this.getProps();null==s||s(t,e)}cancel(){var t,e;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(t=this.panSession)||void 0===t||t.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(e=this.visualElement.animationState)||void 0===e||e.setActive(I.r.Drag,!1)}updateAxis(t,e,n){const{drag:i}=this.getProps();if(!n||!X(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=R(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){const{dragConstraints:t,dragElastic:e}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;t&&(0,b.I)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!n)&&function(t,{top:e,left:n,bottom:i,right:s}){return{x:k(t.x,n,s),y:k(t.y,e,i)}}(n.layoutBox,t),this.elastic=function(t=O){return!1===t?t=0:!0===t&&(t=O),{x:F(t,"left","right"),y:F(t,"top","bottom")}}(e),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&U((t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(n.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!(0,b.I)(t))return!1;const n=t.current;(0,i.k)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const o=(0,N.z)(n,s.root,this.visualElement.getTransformPagePoint());let r=function(t,e){return{x:B(t.x,e.x),y:B(t.y,e.y)}}(s.layout.layoutBox,o);if(e){const t=e((0,Y.z2)(r));this.hasMutatedConstraints=!!t,t&&(r=(0,Y.i8)(t))}return r}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},l=U((r=>{if(!X(r,e,this.currentDirection))return;let l=(null==a?void 0:a[r])||{};o&&(l={min:0,max:0});const u=i?200:1e6,c=i?40:1e7,h={type:"inertia",velocity:n?t[r]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(r,h)}));return Promise.all(l).then(r)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return n.start((0,W.Z)(t,n,0,e))}stopAnimation(){U((t=>this.getAxisMotionValue(t).stop()))}getAxisMotionValue(t){var e;const n="_drag"+t.toUpperCase(),i=this.visualElement.getProps()[n];return i||this.visualElement.getValue(t,(null===(e=this.visualElement.getProps().initial)||void 0===e?void 0:e[t])||0)}snapToCursor(t){U((e=>{const{drag:n}=this.getProps();if(!X(e,n,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(e);if(i&&i.layout){const{min:n,max:o}=i.layout.layoutBox[e];s.set(t[e]-(0,P.C)(n,o,.5))}}))}scalePositionWithinConstraints(){var t;if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!(0,b.I)(n)||!i||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};U((t=>{const e=this.getAxisMotionValue(t);if(e){const n=e.get();s[t]=L({min:n,max:n},this.constraints[t])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",null===(t=i.root)||void 0===t||t.updateScroll(),i.updateLayout(),this.resolveConstraints(),U((t=>{if(!X(t,e,null))return;const n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set((0,P.C)(i,o,s[t]))}))}addListeners(){var t;if(!this.visualElement.current)return;H.set(this.visualElement,this);const e=this.visualElement.current,n=(0,a.a)(e,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),i=()=>{const{dragConstraints:t}=this.getProps();(0,b.I)(t)&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,o=s.addEventListener("measure",i);s&&!s.layout&&(null===(t=s.root)||void 0===t||t.updateScroll(),s.updateLayout()),i();const r=(0,z.E)(window,"resize",(()=>this.scalePositionWithinConstraints())),l=s.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(U((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.render())}));return()=>{r(),n(),o(),null==l||l()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=O,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:r}}}function X(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const _=(0,t.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});var G=n(9531);var K=n(6295);const J={pan:(0,K.x)((function({onPan:e,onPanStart:n,onPanEnd:i,onPanSessionStart:s,visualElement:o}){const r=e||n||i||s,l=(0,t.useRef)(null),{transformPagePoint:u}=(0,t.useContext)(_),c={onSessionStart:s,onStart:n,onMove:e,onEnd:(t,e)=>{l.current=null,i&&i(t,e)}};(0,t.useEffect)((()=>{null!==l.current&&l.current.updateHandlers(c)})),(0,a.m)(o,"pointerdown",r&&function(t){l.current=new d(t,c,{transformPagePoint:u})}),(0,G.z)((()=>l.current&&l.current.end()))})),drag:(0,K.x)((function(e){const{dragControls:n,visualElement:i}=e,s=function(e){const n=(0,t.useRef)(null);return null===n.current&&(n.current=e()),n.current}((()=>new q(i)));(0,t.useEffect)((()=>n&&n.subscribe(s)),[s,n]),(0,t.useEffect)((()=>s.addListeners()),[s])}))};var Q=n(1930);const tt=(0,t.createContext)({}),et=(0,t.createContext)({}),nt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function it(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const st={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!Z.px.test(t))return t;t=parseFloat(t)}return`${it(t,e.target.x)}% ${it(t,e.target.y)}%`}};var ot=n(6978),rt=n(26);const at="_$css",lt={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,s=t.includes("var("),o=[];s&&(t=t.replace(ot.Xp,(t=>(o.push(t),at))));const r=rt.P.parse(t);if(r.length>5)return i;const a=rt.P.createTransformer(t),l="number"!=typeof r[0]?1:0,u=n.x.scale*e.x,c=n.y.scale*e.y;r[0+l]/=u,r[1+l]/=c;const h=(0,P.C)(u,c,.5);"number"==typeof r[2+l]&&(r[2+l]/=h),"number"==typeof r[3+l]&&(r[3+l]/=h);let d=a(r);if(s){let t=0;d=d.replace(at,(()=>{const e=o[t];return t++,e}))}return d}};var ut=n(798);class ct extends e().Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:s}=t;(0,ut.B)(ht),s&&(e.group&&e.group.add(s),n&&n.register&&i&&n.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(()=>{this.safeToRemove()})),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),nt.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:i,isPresent:s}=this.props,r=n.projection;return r?(r.isPresent=s,i||t.layoutDependency!==e||void 0===e?r.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?r.promote():r.relegate()||o.Z_.postRender((()=>{var t;(null===(t=r.getStack())||void 0===t?void 0:t.members.length)||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),(null==e?void 0:e.group)&&e.group.remove(i),(null==n?void 0:n.deregister)&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;null==t||t()}render(){return null}}const ht={borderRadius:{...st,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:st,borderTopRightRadius:st,borderBottomLeftRadius:st,borderBottomRightRadius:st,boxShadow:lt},dt={measureLayout:function(n){const[i,s]=(0,Q.oO)(),o=(0,t.useContext)(tt);return e().createElement(ct,{...n,layoutGroup:o,switchLayoutGroup:(0,t.useContext)(et),isPresent:i,safeToRemove:s})}};var pt=n(1421),mt=n(7846);var ft=n(1065),vt=n(7110),gt=n(2634);const yt=["TopLeft","TopRight","BottomLeft","BottomRight"],xt=yt.length,bt=t=>"string"==typeof t?parseFloat(t):t,wt=t=>"number"==typeof t||Z.px.test(t);function Pt(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const Tt=At(0,.5,vt.Bn),Vt=At(.5,.95,gt.Z);function At(t,e,n){return i=>i<t?0:i>e?1:n((0,w.Y)(t,e,i))}function Et(t,e){t.min=e.min,t.max=e.max}function Ct(t,e){Et(t.x,e.x),Et(t.y,e.y)}var St=n(1360);function Dt(t,e,n,i,s){return t-=e,t=(0,St.q2)(t,1/n,i),void 0!==s&&(t=(0,St.q2)(t,1/s,i)),t}function Mt(t,e,[n,i,s],o,r){!function(t,e=0,n=1,i=.5,s,o=t,r=t){Z.aQ.test(e)&&(e=parseFloat(e),e=(0,P.C)(r.min,r.max,e/100)-r.min);if("number"!=typeof e)return;let a=(0,P.C)(o.min,o.max,i);t===o&&(a-=e),t.min=Dt(t.min,e,n,a,s),t.max=Dt(t.max,e,n,a,s)}(t,e[n],e[i],e[s],e.scale,o,r)}const Rt=["x","scaleX","originX"],kt=["y","scaleY","originY"];function Bt(t,e,n,i){Mt(t.x,e,Rt,null==n?void 0:n.x,null==i?void 0:i.x),Mt(t.y,e,kt,null==n?void 0:n.y,null==i?void 0:i.y)}var Lt=n(7101);function Ot(t){return 0===t.translate&&1===t.scale}function Ft(t){return Ot(t.x)&&Ot(t.y)}function jt(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function It(t){return T(t.x)/T(t.y)}var $t=n(1180);class Ut{constructor(){this.members=[]}add(t){(0,$t.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,$t.cl)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex((e=>t===e));if(0===e)return!1;let n;for(let t=e;t>=0;t--){const e=this.members[t];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(t,e){var n;const 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),(null===(n=t.root)||void 0===n?void 0:n.isUpdating)&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;!1===s&&i.hide()}}exitAnimationComplete(){this.members.forEach((t=>{var e,n,i,s,o;null===(n=(e=t.options).onExitComplete)||void 0===n||n.call(e),null===(o=null===(i=t.resumingFrom)||void 0===i?void 0:(s=i.options).onExitComplete)||void 0===o||o.call(s)}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Nt(t,e,n){let i="";const s=t.x.translate/e.x,o=t.y.translate/e.y;if((s||o)&&(i=`translate3d(${s}px, ${o}px, 0) `),1===e.x&&1===e.y||(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:t,rotateX:e,rotateY:s}=n;t&&(i+=`rotate(${t}deg) `),e&&(i+=`rotateX(${e}deg) `),s&&(i+=`rotateY(${s}deg) `)}const r=t.x.scale*e.x,a=t.y.scale*e.y;return 1===r&&1===a||(i+=`scale(${r}, ${a})`),i||"none"}var Yt=n(4918);const zt=(t,e)=>t.depth-e.depth;class Zt{constructor(){this.children=[],this.isDirty=!1}add(t){(0,$t.y4)(this.children,t),this.isDirty=!0}remove(t){(0,$t.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(zt),this.isDirty=!1,this.children.forEach(t)}}var Wt=n(7048);function Ht(t){const e=(0,mt.i)(t)?t.get():t;return(0,Wt.p)(e)?e.toValue():e}var qt=n(2866);const Xt=["","X","Y","Z"];let _t=0;function Gt({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(t,n={},i=(null==e?void 0:e())){this.id=_t++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isTransformDirty=!1,this.isProjectionDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(Qt),this.nodes.forEach(se),this.nodes.forEach(oe)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=t,this.latestValues=n,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0,t&&this.root.registerPotentialNode(t,this);for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new Zt)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new ft.L),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);null==n||n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}registerPotentialNode(t,e){this.potentialNodes.set(t,e)}mount(e,n=!1){var i;if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;const{layoutId:s,layout:o,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),null===(i=this.parent)||void 0===i||i.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),n&&(o||s)&&(this.isLayoutDirty=!0),t){let n;const i=()=>this.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=(0,qt.g)(i,250),nt.hasAnimatedSinceResize&&(nt.hasAnimatedSinceResize=!1,this.nodes.forEach(ie))}))}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&r&&(s||o)&&this.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:i})=>{var s,o,a,l,u;if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const c=null!==(o=null!==(s=this.options.transition)&&void 0!==s?s:r.getDefaultTransition())&&void 0!==o?o:he,{onLayoutAnimationStart:h,onLayoutAnimationComplete:d}=r.getProps(),p=!this.targetLayout||!jt(this.targetLayout,i)||n,m=!e&&n;if((null===(a=this.resumeFrom)||void 0===a?void 0:a.instance)||m||e&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,m);const e={...(0,Lt.ev)(c,"layout"),onPlay:h,onComplete:d};r.shouldReduceMotion&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||0!==this.animationProgress||ie(this),this.isLead()&&(null===(u=(l=this.options).onExitComplete)||void 0===u||u.call(l));this.targetLayout=i}))}unmount(){var t,e;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(t=this.getStack())||void 0===t||t.remove(this),null===(e=this.parent)||void 0===e||e.children.delete(this),this.instance=void 0,o.qY.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var t;return this.isAnimationBlocked||(null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimationBlocked())||!1}startUpdate(){var t;this.isUpdateBlocked()||(this.isUpdating=!0,null===(t=this.nodes)||void 0===t||t.forEach(re),this.animationId++)}willUpdate(t=!0){var e,n,i;if(this.root.isUpdateBlocked())return void(null===(n=(e=this.options).onExitComplete)||void 0===n||n.call(e));if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){const e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot")}const{layoutId:s,layout:o}=this.options;if(void 0===s&&!o)return;const r=null===(i=this.options.visualElement)||void 0===i?void 0:i.getProps().transformTemplate;this.prevTransformTemplateValue=null==r?void 0:r(this.latestValues,""),this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(ee);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(de),this.potentialNodes.clear()),this.nodes.forEach(ne),this.nodes.forEach(Kt),this.nodes.forEach(Jt),this.clearAllSnapshots(),o.iW.update(),o.iW.preRender(),o.iW.render())}clearAllSnapshots(){this.nodes.forEach(te),this.sharedNodes.forEach(ae)}scheduleUpdateProjection(){o.Z_.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){o.Z_.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){var t;if(!this.instance)return;if(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()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=(0,$.dO)(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox),null===(t=this.options.visualElement)||void 0===t||t.notify("LayoutMeasure",this.layout.layoutBox,null==e?void 0:e.layoutBox)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:i(this.instance),offset:n(this.instance)})}resetTransform(){var t;if(!s)return;const e=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!Ft(this.projectionDelta),i=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate,o=null==i?void 0:i(this.latestValues,""),r=o!==this.prevTransformTemplateValue;e&&(n||(0,Yt.ud)(this.latestValues)||r)&&(s(this.instance,o),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var i;return t&&(n=this.removeTransform(n)),pe((i=n).x),pe(i.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return(0,$.dO)();const e=t.measureViewportBox(),{scroll:n}=this.root;return n&&((0,St.am)(e.x,n.offset.x),(0,St.am)(e.y,n.offset.y)),e}removeElementScroll(t){const e=(0,$.dO)();Ct(e,t);for(let n=0;n<this.path.length;n++){const i=this.path[n],{scroll:s,options:o}=i;if(i!==this.root&&s&&o.layoutScroll){if(s.isRoot){Ct(e,t);const{scroll:n}=this.root;n&&((0,St.am)(e.x,-n.offset.x),(0,St.am)(e.y,-n.offset.y))}(0,St.am)(e.x,s.offset.x),(0,St.am)(e.y,s.offset.y)}}return e}applyTransform(t,e=!1){const n=(0,$.dO)();Ct(n,t);for(let t=0;t<this.path.length;t++){const i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(0,St.D2)(n,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),(0,Yt.ud)(i.latestValues)&&(0,St.D2)(n,i.latestValues)}return(0,Yt.ud)(this.latestValues)&&(0,St.D2)(n,this.latestValues),n}removeTransform(t){var e;const n=(0,$.dO)();Ct(n,t);for(let t=0;t<this.path.length;t++){const i=this.path[t];if(!i.instance)continue;if(!(0,Yt.ud)(i.latestValues))continue;(0,Yt.Lj)(i.latestValues)&&i.updateSnapshot();const s=(0,$.dO)();Ct(s,i.measurePageBox()),Bt(n,i.latestValues,null===(e=i.snapshot)||void 0===e?void 0:e.layoutBox,s)}return(0,Yt.ud)(this.latestValues)&&Bt(n,this.latestValues),n}setTargetDelta(t){this.targetDelta=t,this.isProjectionDirty=!0,this.root.scheduleUpdateProjection()}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}resolveTargetDelta(){var t;const e=this.getLead();if(this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),!this.isProjectionDirty&&!this.attemptToResolveRelativeTarget)return;const{layout:n,layoutId:i}=this.options;if(this.layout&&(n||i)){if(!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout?(this.relativeParent=t,this.relativeTarget=(0,$.dO)(),this.relativeTargetOrigin=(0,$.dO)(),D(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),Ct(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}var s,o,r;if(this.relativeTarget||this.targetDelta)if(this.target||(this.target=(0,$.dO)(),this.targetWithTransforms=(0,$.dO)()),this.relativeTarget&&this.relativeTargetOrigin&&(null===(t=this.relativeParent)||void 0===t?void 0:t.target)?(s=this.target,o=this.relativeTarget,r=this.relativeParent.target,C(s.x,o.x,r.x),C(s.y,o.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Ct(this.target,this.layout.layoutBox),(0,St.o2)(this.target,this.targetDelta)):Ct(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target?(this.relativeParent=t,this.relativeTarget=(0,$.dO)(),this.relativeTargetOrigin=(0,$.dO)(),D(this.relativeTargetOrigin,this.target,t.target),Ct(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(this.parent&&!(0,Yt.Lj)(this.parent.latestValues)&&!(0,Yt.D_)(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var t;const{isProjectionDirty:e,isTransformDirty:n}=this;this.isProjectionDirty=this.isTransformDirty=!1;const i=this.getLead(),s=Boolean(this.resumingFrom)||this!==i;let o=!0;if(e&&(o=!1),s&&n&&(o=!1),o)return;const{layout:r,layoutId:a}=this.options;if(this.isTreeAnimating=Boolean((null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!r&&!a)return;Ct(this.layoutCorrected,this.layout.layoutBox),(0,St.YY)(this.layoutCorrected,this.treeScale,this.path,s);const{target:l}=i;if(!l)return;this.projectionDelta||(this.projectionDelta=(0,$.wc)(),this.projectionDeltaWithTransform=(0,$.wc)());const u=this.treeScale.x,c=this.treeScale.y,h=this.projectionTransform;E(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=Nt(this.projectionDelta,this.treeScale),this.projectionTransform===h&&this.treeScale.x===u&&this.treeScale.y===c||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e,n,i;null===(n=(e=this.options).scheduleRender)||void 0===n||n.call(e),t&&(null===(i=this.getStack())||void 0===i||i.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){var n,i;const s=this.snapshot,o=(null==s?void 0:s.latestValues)||{},r={...this.latestValues},a=(0,$.wc)();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!e;const l=(0,$.dO)(),u=(null==s?void 0:s.source)!==(null===(n=this.layout)||void 0===n?void 0:n.source),c=((null===(i=this.getStack())||void 0===i?void 0:i.members.length)||0)<=1,h=Boolean(u&&!c&&!0===this.options.crossfade&&!this.path.some(ce));this.animationProgress=0,this.mixTargetDelta=e=>{var n;const i=e/1e3;var s,d,p,m;le(a.x,t.x,i),le(a.y,t.y,i),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(n=this.relativeParent)||void 0===n?void 0:n.layout)&&(D(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),s=this.relativeTarget,d=this.relativeTargetOrigin,p=l,m=i,ue(s.x,d.x,p.x,m),ue(s.y,d.y,p.y,m)),u&&(this.animationValues=r,function(t,e,n,i,s,o){s?(t.opacity=(0,P.C)(0,void 0!==n.opacity?n.opacity:1,Tt(i)),t.opacityExit=(0,P.C)(void 0!==e.opacity?e.opacity:1,0,Vt(i))):o&&(t.opacity=(0,P.C)(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,i));for(let s=0;s<xt;s++){const o=`border${yt[s]}Radius`;let r=Pt(e,o),a=Pt(n,o);void 0===r&&void 0===a||(r||(r=0),a||(a=0),0===r||0===a||wt(r)===wt(a)?(t[o]=Math.max((0,P.C)(bt(r),bt(a),i),0),(Z.aQ.test(a)||Z.aQ.test(r))&&(t[o]+="%")):t[o]=a)}(e.rotate||n.rotate)&&(t.rotate=(0,P.C)(e.rotate||0,n.rotate||0,i))}(r,o,this.latestValues,i,h,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(0)}startAnimation(t){var e,n;this.notifyListeners("animationStart"),null===(e=this.currentAnimation)||void 0===e||e.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(o.qY.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=o.Z_.update((()=>{nt.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n={}){const i=(0,mt.i)(t)?t:(0,pt.B)(t);return i.start((0,W.Z)("",i,e,n)),{stop:()=>i.stop(),isAnimating:()=>i.isAnimating()}}(0,1e3,{...t,onUpdate:e=>{var n;this.mixTargetDelta(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:()=>{var e;null===(e=t.onComplete)||void 0===e||e.call(t),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){var t;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(t=this.getStack())||void 0===t||t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var t;this.currentAnimation&&(null===(t=this.mixTargetDelta)||void 0===t||t.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:i,latestValues:s}=t;if(e&&n&&i){if(this!==t&&this.layout&&i&&me(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||(0,$.dO)();const e=T(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const i=T(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}Ct(e,n),(0,St.D2)(e,s),E(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){var n,i,s;this.sharedNodes.has(t)||this.sharedNodes.set(t,new Ut);this.sharedNodes.get(t).add(e),e.promote({transition:null===(n=e.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(s=null===(i=e.options.initialPromotionConfig)||void 0===i?void 0:i.shouldPreserveFollowOpacity)||void 0===s?void 0:s.call(i,e)})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const i=this.getStack();i&&i.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(e=!0),!e)return;const i={};for(let e=0;e<Xt.length;e++){const s="rotate"+Xt[e];n[s]&&(i[s]=n[s],t.setStaticValue(s,0))}null==t||t.render();for(const e in i)t.setStaticValue(e,i[e]);t.scheduleRender()}getProjectionStyles(t={}){var e,n,i;const s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";const o=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=Ht(t.pointerEvents)||"",s.transform=o?o(this.latestValues,""):"none",s;const r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){const e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=Ht(t.pointerEvents)||""),this.hasProjected&&!(0,Yt.ud)(this.latestValues)&&(e.transform=o?o({},""):"none",this.hasProjected=!1),e}const a=r.animationValues||r.latestValues;this.applyTransformsToTarget(),s.transform=Nt(this.projectionDeltaWithTransform,this.treeScale,a),o&&(s.transform=o(a,s.transform));const{x:l,y:u}=this.projectionDelta;s.transformOrigin=`${100*l.origin}% ${100*u.origin}% 0`,r.animationValues?s.opacity=r===this?null!==(i=null!==(n=a.opacity)&&void 0!==n?n:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:s.opacity=r===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const t in ut.P){if(void 0===a[t])continue;const{correct:e,applyTo:n}=ut.P[t],i=e(a[t],r);if(n){const t=n.length;for(let e=0;e<t;e++)s[n[e]]=i}else s[t]=i}return this.options.layoutId&&(s.pointerEvents=r===this?Ht(t.pointerEvents)||"":"none"),s}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(ee),this.root.sharedNodes.clear()}}}function Kt(t){t.updateLayout()}function Jt(t){var e,n,i;const s=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&s&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:n}=t.layout,{animationType:i}=t.options,o=s.source!==t.layout.source;"size"===i?U((t=>{const n=o?s.measuredBox[t]:s.layoutBox[t],i=T(n);n.min=e[t].min,n.max=n.min+i})):me(i,s.layoutBox,e)&&U((t=>{const n=o?s.measuredBox[t]:s.layoutBox[t],i=T(e[t]);n.max=n.min+i}));const r=(0,$.wc)();E(r,e,s.layoutBox);const a=(0,$.wc)();o?E(a,t.applyTransform(n,!0),s.measuredBox):E(a,e,s.layoutBox);const l=!Ft(r);let u=!1;if(!t.resumeFrom){const n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){const{snapshot:t,layout:i}=n;if(t&&i){const n=(0,$.dO)();D(n,s.layoutBox,t.layoutBox);const o=(0,$.dO)();D(o,e,i.layoutBox),jt(n,o)||(u=!0)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:s,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else t.isLead()&&(null===(i=(n=t.options).onExitComplete)||void 0===i||i.call(n));t.options.transition=void 0}function Qt(t){t.isProjectionDirty||(t.isProjectionDirty=Boolean(t.parent&&t.parent.isProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=Boolean(t.parent&&t.parent.isTransformDirty))}function te(t){t.clearSnapshot()}function ee(t){t.clearMeasurements()}function ne(t){const{visualElement:e}=t.options;(null==e?void 0:e.getProps().onBeforeLayoutMeasure)&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ie(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function se(t){t.resolveTargetDelta()}function oe(t){t.calcProjection()}function re(t){t.resetRotation()}function ae(t){t.removeLeadSnapshot()}function le(t,e,n){t.translate=(0,P.C)(e.translate,0,n),t.scale=(0,P.C)(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function ue(t,e,n,i){t.min=(0,P.C)(e.min,n.min,i),t.max=(0,P.C)(e.max,n.max,i)}function ce(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const he={duration:.45,ease:[.4,0,.1,1]};function de(t,e){let n=t.root;for(let e=t.path.length-1;e>=0;e--)if(Boolean(t.path[e].instance)){n=t.path[e];break}const i=(n&&n!==t.root?n.instance:document).querySelector(`[data-projection-id="${e}"]`);i&&t.mount(i,!0)}function pe(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function me(t,e,n){return"position"===t||"preserve-aspect"===t&&!V(It(e),It(n),.2)}const fe=Gt({attachResizeListener:(t,e)=>(0,z.E)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ve={current:void 0},ge=Gt({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ve.current){const t=new fe(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),ve.current=t}return ve.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)});n(1610).H})()})();
|
|
1
|
+
(()=>{"use strict";var t={9340:(t,e,n)=>{n.d(e,{K:()=>i,k:()=>s});var i=function(){},s=function(){}},6405:(t,e,n)=>{n.d(e,{Z:()=>Pt});var i=n(9340),s=n(1818);const o=!1;var r=n(8313),a=n(5222),l=n(9273);const u=t=>t*t,c=(0,l.M)(u),h=(0,a.o)(u);var d=n(2890),p=n(9043),m=n(5430);function f(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}var v=n(4775),g=n(6077),y=n(5193);const x=(t,e,n)=>{const i=t*t;return Math.sqrt(Math.max(0,n*(e*e-i)+i))},b=[v.$,g.m,y.J];function w(t){const e=(n=t,b.find((t=>t.test(n))));var n;(0,i.k)(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`);let s=e.parse(t);return e===y.J&&(s=function({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let s=0,o=0,r=0;if(e/=100){const i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;s=f(a,i,t+1/3),o=f(a,i,t),r=f(a,i,t-1/3)}else s=o=r=n;return{red:Math.round(255*s),green:Math.round(255*o),blue:Math.round(255*r),alpha:i}}(s)),s}const P=(t,e)=>{const n=w(t),i=w(e),s={...n};return t=>(s.red=x(n.red,i.red,t),s.green=x(n.green,i.green,t),s.blue=x(n.blue,i.blue,t),s.alpha=(0,m.C)(n.alpha,i.alpha,t),g.m.transform(s))};var T=n(9820),V=n(26);function A(t,e){return"number"==typeof t?n=>(0,m.C)(t,e,n):d.$.test(t)?P(t,e):S(t,e)}const E=(t,e)=>{const n=[...t],i=n.length,s=t.map(((t,n)=>A(t,e[n])));return t=>{for(let e=0;e<i;e++)n[e]=s[e](t);return n}},C=(t,e)=>{const n={...t,...e},i={};for(const s in n)void 0!==t[s]&&void 0!==e[s]&&(i[s]=A(t[s],e[s]));return t=>{for(const e in i)n[e]=i[e](t);return n}},S=(t,e)=>{const n=V.P.createTransformer(e),s=(0,V.V)(t),o=(0,V.V)(e);return s.numColors===o.numColors&&s.numNumbers>=o.numNumbers?(0,T.z)(E(s.values,o.values),n):((0,i.K)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?e:t}`)};var D=n(918);const M=(t,e)=>n=>(0,m.C)(t,e,n);function k(t,e,n){const i=[],s=n||("number"==typeof(o=t[0])?M:"string"==typeof o?d.$.test(o)?P:S:Array.isArray(o)?E:"object"==typeof o?C:M);var o;const r=t.length-1;for(let n=0;n<r;n++){let o=s(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]:e;o=(0,T.z)(t,o)}i.push(o)}return i}function R(t,e,{clamp:n=!0,ease:s,mixer:o}={}){const r=t.length;(0,i.k)(r===e.length,"Both input and output ranges must be the same length"),(0,i.k)(!s||!Array.isArray(s)||s.length===r-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=k(e,s,o),l=a.length,u=e=>{let n=0;if(l>1)for(;n<t.length-2&&!(e<t[n+1]);n++);const i=(0,D.Y)(t[n],t[n+1],e);return a[n](i)};return n?e=>u((0,p.u)(t[0],t[r-1],e)):u}var B=n(2634);const L=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function O(t,e,n,i){if(t===e&&n===i)return B.Z;const s=e=>function(t,e,n,i,s){let o,r,a=0;do{r=e+(n-e)/2,o=L(r,i,s)-t,o>0?n=r:e=r}while(Math.abs(o)>1e-7&&++a<12);return r}(e,0,1,t,n);return t=>0===t||1===t?t:L(s(t),e,i)}var F=n(7110);const j=O(.33,1.53,.69,.99),I=(0,l.M)(j),$=(0,a.o)(I),U={linear:B.Z,easeIn:u,easeInOut:h,easeOut:c,circIn:F.Z7,circInOut:F.X7,circOut:F.Bn,backIn:I,backInOut:$,backOut:j,anticipate:t=>(t*=2)<1?.5*I(t):.5*(2-Math.pow(2,-10*(t-1)))},N=t=>{if(Array.isArray(t)){(0,i.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,s,o]=t;return O(e,n,s,o)}return"string"==typeof t?((0,i.k)(void 0!==U[t],`Invalid easing type '${t}'`),U[t]):t};function Y({keyframes:t,ease:e=h,times:n,duration:i=300}){t=[...t];const s=(t=>Array.isArray(t)&&"number"!=typeof t[0])(e)?e.map(N):N(e),o={done:!1,value:t[0]},r=function(t,e){return t.map((t=>t*e))}(n&&n.length===t.length?n:function(t){const e=t.length;return t.map(((t,n)=>0!==n?n/(e-1):0))}(t),i);function a(){return R(r,t,{ease:Array.isArray(s)?s:(e=t,n=s,e.map((()=>n||h)).splice(0,e.length-1))});var e,n}let l=a();return{next:t=>(o.value=l(t),o.done=t>=i,o),flipTarget:()=>{t.reverse(),l=a()}}}const z=.001;function Z({duration:t=800,bounce:e=.25,velocity:n=0,mass:s=1}){let o,r;(0,i.K)(t<=1e4,"Spring duration must be 10 seconds or less");let a=1-e;a=(0,p.u)(.05,1,a),t=(0,p.u)(.01,10,t/1e3),a<1?(o=e=>{const i=e*a,s=i*t,o=i-n,r=W(e,a),l=Math.exp(-s);return z-o/r*l},r=e=>{const i=e*a*t,s=i*n+n,r=Math.pow(a,2)*Math.pow(e,2)*t,l=Math.exp(-i),u=W(Math.pow(e,2),a);return(-o(e)+z>0?-1:1)*((s-r)*l)/u}):(o=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,r=e=>Math.exp(-e*t)*(t*t*(n-e)));const l=function(t,e,n){let i=n;for(let n=1;n<12;n++)i-=t(i)/e(i);return i}(o,r,5/t);if(t*=1e3,isNaN(l))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(l,2)*s;return{stiffness:e,damping:2*a*Math.sqrt(s*e),duration:t}}}function W(t,e){return t*Math.sqrt(1-e*e)}var H=n(432);const q=["duration","bounce"],X=["stiffness","damping","mass"];function _(t,e){return e.some((e=>void 0!==t[e]))}function G({keyframes:t,restSpeed:e=2,restDelta:n=.01,...i}){let s=t[0],o=t[t.length-1];const r={done:!1,value:s},{stiffness:a,damping:l,mass:u,velocity:c,duration:h,isResolvedFromDuration:d}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!_(t,X)&&_(t,q)){const n=Z(t);e={...e,...n,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}(i);let p=K,m=c?-c/1e3:0;const f=l/(2*Math.sqrt(a*u));function v(){const t=o-s,e=Math.sqrt(a/u)/1e3;if(void 0===n&&(n=Math.min(Math.abs(o-s)/100,.4)),f<1){const n=W(e,f);p=i=>{const s=Math.exp(-f*e*i);return o-s*((m+f*e*t)/n*Math.sin(n*i)+t*Math.cos(n*i))}}else if(1===f)p=n=>o-Math.exp(-e*n)*(t+(m+e*t)*n);else{const n=e*Math.sqrt(f*f-1);p=i=>{const s=Math.exp(-f*e*i),r=Math.min(n*i,300);return o-s*((m+f*e*t)*Math.sinh(r)+n*t*Math.cosh(r))/n}}}return v(),{next:t=>{const i=p(t);if(d)r.done=t>=h;else{let s=m;if(0!==t)if(f<1){const e=Math.max(0,t-5);s=(0,H.R)(i-p(e),t-e)}else s=0;const a=Math.abs(s)<=e,l=Math.abs(o-i)<=n;r.done=a&&l}return r.value=r.done?o:i,r},flipTarget:()=>{m=-m,[s,o]=[o,s],v()}}}G.needsInterpolation=(t,e)=>"string"==typeof t||"string"==typeof e;const K=t=>0;const J={decay:function({keyframes:t=[0],velocity:e=0,power:n=.8,timeConstant:i=350,restDelta:s=.5,modifyTarget:o}){const r=t[0],a={done:!1,value:r};let l=n*e;const u=r+l,c=void 0===o?u:o(u);return c!==u&&(l=c-r),{next:t=>{const e=-l*Math.exp(-t/i);return a.done=!(e>s||e<-s),a.value=a.done?c:c+e,a},flipTarget:()=>{}}},keyframes:Y,tween:Y,spring:G};function Q(t,e,n=0){return t-e-n}const tt=t=>{const e=({delta:e})=>t(e);return{start:()=>r.Z_.update(e,!0),stop:()=>r.qY.update(e)}};function et({duration:t,driver:e=tt,elapsed:n=0,repeat:i=0,repeatType:s="loop",repeatDelay:o=0,keyframes:r,autoplay:a=!0,onPlay:l,onStop:u,onComplete:c,onRepeat:h,onUpdate:d,type:p="keyframes",...m}){var f,v;const g=n;let y,x,b=0,w=t,P=!1,T=!0;const V=J[r.length>2?"keyframes":p]||Y,A=r[0],E=r[r.length-1];let C={done:!1,value:A};(null===(v=(f=V).needsInterpolation)||void 0===v?void 0:v.call(f,A,E))&&(x=R([0,100],[A,E],{clamp:!1}),r=[0,100]);const S=V({...m,duration:t,keyframes:r});function D(){b++,"reverse"===s?(T=b%2==0,n=function(t,e=0,n=0,i=!0){return i?Q(e+-t,e,n):e-(t-e)+n}(n,w,o,T)):(n=Q(n,w,o),"mirror"===s&&S.flipTarget()),P=!1,h&&h()}function M(t){T||(t=-t),n+=t,P||(C=S.next(Math.max(0,n)),x&&(C.value=x(C.value)),P=T?C.done:n<=0),d&&d(C.value),P&&(0===b&&(w=void 0!==w?w:n),b<i?function(t,e,n,i){return i?t>=e+n:t<=-n}(n,w,o,T)&&D():(y&&y.stop(),c&&c()))}return a&&(l&&l(),y=e(M),y.start()),{stop:()=>{u&&u(),y&&y.stop()},sample:e=>{n=g;const i=t&&"number"==typeof t?Math.max(.5*t,50):50;let s=0;for(M(0);s<=e;){const t=e-s;M(Math.min(t,i)),s+=i}return C}}}const nt=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,it={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:nt([0,.65,.55,1]),circOut:nt([.55,0,1,.45]),backIn:nt([.31,.01,.66,-.59]),backOut:nt([.33,1.53,.69,.99])};function st(t){if(t)return Array.isArray(t)?nt(t):it[t]}const ot={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},rt={},at={};for(const t in ot)at[t]=()=>(void 0===rt[t]&&(rt[t]=ot[t]()),rt[t]);const lt=new Set(["opacity"]);function ut(t,e,{onUpdate:n,onComplete:i,...s}){if(!(at.waapi()&<.has(e)&&!s.repeatDelay&&"mirror"!==s.repeatType&&0!==s.damping))return!1;let{keyframes:o,duration:a=300,elapsed:l=0,ease:u}=s;if("spring"===s.type||!(!(c=s.ease)||Array.isArray(c)||"string"==typeof c&&it[c])){if(s.repeat===1/0)return;const t=et(s);let e={done:!1,value:o[0]};const n=[];let i=0;for(;!e.done&&i<2e4;)e=t.sample(i),n.push(e.value),i+=10;o=n,a=i-10,u="linear"}var c;const h=function(t,e,n,{delay:i=0,duration:s,repeat:o=0,repeatType:r="loop",ease:a,times:l}={}){return t.animate({[e]:n,offset:l},{delay:i,duration:s,easing:st(a),fill:"both",iterations:o+1,direction:"reverse"===r?"alternate":"normal"})}(t.owner.current,e,o,{...s,delay:-l,duration:a,ease:u});return h.onfinish=()=>{t.set(function(t,{repeat:e,repeatType:n="loop"}){return t[e&&"loop"!==n&&e%2==1?0:t.length-1]}(o,s)),i&&i()},()=>{const{currentTime:e}=h;if(e){const n=et({...s,autoplay:!1});t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}r.Z_.update((()=>h.cancel()))}}var ct=n(2866);function ht({keyframes:t,elapsed:e,onUpdate:n,onComplete:i}){const s=()=>(n&&n(t[t.length-1]),i&&i(),()=>{});return e?(0,ct.g)(s,-e):s()}var dt=n(5951);const pt=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),mt=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),ft=()=>({type:"keyframes",ease:"linear",duration:.3}),vt={type:"keyframes",duration:.8},gt={x:pt,y:pt,z:pt,rotate:pt,rotateX:pt,rotateY:pt,rotateZ:pt,scaleX:mt,scaleY:mt,scale:mt,opacity:ft,backgroundColor:ft,color:ft,default:mt},yt=(t,{keyframes:e})=>{if(e.length>2)return vt;return(gt[t]||gt.default)(e[1])},xt=(t,e)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!V.P.test(e)||e.startsWith("url(")));var bt=n(6914),wt=n(7101);const Pt=(t,e,n,r={})=>a=>{const l=(0,wt.ev)(r,t)||{},u=l.delay||r.delay||0;let{elapsed:c=0}=r;c-=(0,s.w)(u);const h=function(t,e,n,i){const s=xt(e,n);let o=void 0!==i.from?i.from:t.get();return"none"===o&&s&&"string"==typeof n?o=(0,bt.T)(e,n):(0,wt.Fr)(o)&&"string"==typeof n?o=(0,wt.GZ)(n):!Array.isArray(n)&&(0,wt.Fr)(n)&&"string"==typeof o&&(n=(0,wt.GZ)(o)),Array.isArray(n)?(null===n[0]&&(n[0]=o),n):[o,n]}(e,t,n,l),d=h[0],p=h[h.length-1],m=xt(t,d),f=xt(t,p);(0,i.K)(m===f,`You are trying to animate ${t} from "${d}" to "${p}". ${d} is not an animatable value - to enable this animation set ${d} to a value animatable to ${p} via the \`style\` property.`);let v={keyframes:h,velocity:e.getVelocity(),...l,elapsed:c,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{a(),l.onComplete&&l.onComplete()}};if(!m||!f||o||!1===l.type)return ht(v);if("inertia"===l.type){const t=function({keyframes:t,velocity:e=0,min:n,max:i,power:s=.8,timeConstant:o=750,bounceStiffness:r=500,bounceDamping:a=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:h,onComplete:d,onStop:p}){const m=t[0];let f;function v(t){return void 0!==n&&t<n||void 0!==i&&t>i}function g(t){return void 0===n?i:void 0===i||Math.abs(n-t)<Math.abs(i-t)?n:i}function y(t){null==f||f.stop(),f=et({keyframes:[0,1],velocity:0,...t,driver:c,onUpdate:e=>{var n;null==h||h(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:d,onStop:p})}function x(t){y({type:"spring",stiffness:r,damping:a,restDelta:l,...t})}if(v(m))x({velocity:e,keyframes:[m,g(m)]});else{let t=s*e+m;void 0!==u&&(t=u(t));const i=g(t),r=i===n?-1:1;let a,c;const h=t=>{a=c,c=t,e=(0,H.R)(t-a,dt.w.delta),(1===r&&t>i||-1===r&&t<i)&&x({keyframes:[t,i],velocity:e})};y({type:"decay",keyframes:[m,0],velocity:e,timeConstant:o,power:s,restDelta:l,modifyTarget:u,onUpdate:v(t)?h:void 0})}return{stop:()=>null==f?void 0:f.stop()}}(v);return()=>t.stop()}(0,wt.rw)(l)||(v={...v,...yt(t,v)}),v.duration&&(v.duration=(0,s.w)(v.duration)),v.repeatDelay&&(v.repeatDelay=(0,s.w)(v.repeatDelay));const g=e.owner,y=g&&g.current;if(g&&y instanceof HTMLElement&&!(null==g?void 0:g.getProps().onUpdate)){const n=ut(e,t,v);if(n)return n}const x=et(v);return()=>x.stop()}},2819:(t,e,n)=>{n.d(e,{C:()=>i});const i=t=>Array.isArray(t)},7101:(t,e,n)=>{n.d(e,{Fr:()=>o,GZ:()=>r,ev:()=>a,rw:()=>s});var i=n(6914);function s({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function o(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function r(t){return"number"==typeof t?0:(0,i.T)("",t)}function a(t,e){return t[e]||t.default||t}},1930:(t,e,n)=>{n.d(e,{oO:()=>o});var i=n(8370),s=n(7866);function o(){const t=(0,i.useContext)(s.O);if(null===t)return[!0,null];const{isPresent:e,onExitComplete:n,register:o}=t,r=(0,i.useId)();(0,i.useEffect)((()=>o(r)),[]);return!e&&n?[!1,()=>n&&n(r)]:[!0]}},7866:(t,e,n)=>{n.d(e,{O:()=>s});var i=n(8370);const s=(0,i.createContext)(null)},7110:(t,e,n)=>{n.d(e,{Bn:()=>r,X7:()=>a,Z7:()=>o});var i=n(5222),s=n(9273);const o=t=>1-Math.sin(Math.acos(t)),r=(0,s.M)(o),a=(0,i.o)(r)},5222:(t,e,n)=>{n.d(e,{o:()=>i});const i=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},9273:(t,e,n)=>{n.d(e,{M:()=>i});const i=t=>e=>1-t(1-e)},409:(t,e,n)=>{n.d(e,{Q:()=>s,s:()=>o});var i=n(2426);function s(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const o=t=>e=>(0,i.D)(e)&&t(e,s(e))},1876:(t,e,n)=>{n.d(e,{E:()=>s,p:()=>o});var i=n(8370);function s(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function o(t,e,n,o){(0,i.useEffect)((()=>{const i=t.current;if(n&&i)return s(i,e,n,o)}),[t,e,n,o])}},7815:(t,e,n)=>{n.d(e,{a:()=>o,m:()=>r});var i=n(1876),s=n(409);function o(t,e,n,o){return(0,i.E)(t,e,(0,s.s)(n),o)}function r(t,e,n,o){return(0,i.p)(t,e,n&&(0,s.s)(n),o)}},2426:(t,e,n)=>{n.d(e,{D:()=>i});const i=t=>!1!==t.isPrimary},5951:(t,e,n)=>{n.d(e,{w:()=>i});const i={delta:0,timestamp:0}},8313:(t,e,n)=>{n.d(e,{qY:()=>p,iW:()=>m,Z_:()=>d});const i=1/60*1e3,s="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),o="undefined"!=typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout((()=>t(s())),i);var r=n(5951);let a=!0,l=!1,u=!1;const c=["read","update","preRender","render","postRender"],h=c.reduce(((t,e)=>(t[e]=function(t){let e=[],n=[],i=0,s=!1,o=!1;const r=new WeakSet,a={schedule:(t,o=!1,a=!1)=>{const l=a&&s,u=l?e:n;return o&&r.add(t),-1===u.indexOf(t)&&(u.push(t),l&&s&&(i=e.length)),t},cancel:t=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1),r.delete(t)},process:l=>{if(s)o=!0;else{if(s=!0,[e,n]=[n,e],n.length=0,i=e.length,i)for(let n=0;n<i;n++){const i=e[n];i(l),r.has(i)&&(a.schedule(i),t())}s=!1,o&&(o=!1,a.process(l))}}};return a}((()=>l=!0)),t)),{}),d=c.reduce(((t,e)=>{const n=h[e];return t[e]=(t,e=!1,i=!1)=>(l||g(),n.schedule(t,e,i)),t}),{}),p=c.reduce(((t,e)=>(t[e]=h[e].cancel,t)),{}),m=c.reduce(((t,e)=>(t[e]=()=>h[e].process(r.w),t)),{}),f=t=>h[t].process(r.w),v=t=>{l=!1,r.w.delta=a?i:Math.max(Math.min(t-r.w.timestamp,40),1),r.w.timestamp=t,u=!0,c.forEach(f),u=!1,l&&(a=!1,o(v))},g=()=>{l=!0,a=!0,u||o(v)}},5856:(t,e,n)=>{function i(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}n.d(e,{fJ:()=>r,gD:()=>a});const s=i("dragHorizontal"),o=i("dragVertical");function r(t){let e=!1;if("y"===t)e=o();else if("x"===t)e=s();else{const t=s(),n=o();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function a(){const t=r(!0);return!t||(t(),!1)}},6295:(t,e,n)=>{n.d(e,{x:()=>i});const i=t=>e=>(t(e),null)},483:(t,e,n)=>{function i({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function s({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function o(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}n.d(e,{d7:()=>o,i8:()=>i,z2:()=>s})},1360:(t,e,n)=>{n.d(e,{D2:()=>f,YY:()=>u,am:()=>h,o2:()=>l,q2:()=>o});var i=n(5430),s=n(4918);function o(t,e,n){return n+e*(t-n)}function r(t,e,n,i,s){return void 0!==s&&(t=o(t,s,i)),o(t,n,i)+e}function a(t,e=0,n=1,i,s){t.min=r(t.min,e,n,i,s),t.max=r(t.max,e,n,i,s)}function l(t,{x:e,y:n}){a(t.x,e.translate,e.scale,e.originPoint),a(t.y,n.translate,n.scale,n.originPoint)}function u(t,e,n,i=!1){var o,r;const a=n.length;if(!a)return;let u,h;e.x=e.y=1;for(let c=0;c<a;c++)u=n[c],h=u.projectionDelta,"contents"!==(null===(r=null===(o=u.instance)||void 0===o?void 0:o.style)||void 0===r?void 0:r.display)&&(i&&u.options.layoutScroll&&u.scroll&&u!==u.root&&f(t,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),h&&(e.x*=h.x.scale,e.y*=h.y.scale,l(t,h)),i&&(0,s.ud)(u.latestValues)&&f(t,u.latestValues));e.x=c(e.x),e.y=c(e.y)}function c(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function h(t,e){t.min=t.min+e,t.max=t.max+e}function d(t,e,[n,s,o]){const r=void 0!==e[o]?e[o]:.5,l=(0,i.C)(t.min,t.max,r);a(t,e[n],e[s],l,e.scale)}const p=["x","scaleX","originX"],m=["y","scaleY","originY"];function f(t,e){d(t.x,e,p),d(t.y,e,m)}},1397:(t,e,n)=>{n.d(e,{dO:()=>s,wc:()=>i});const i=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),s=()=>({x:{min:0,max:0},y:{min:0,max:0}})},798:(t,e,n)=>{n.d(e,{B:()=>s,P:()=>i});const i={};function s(t){Object.assign(i,t)}},4918:(t,e,n)=>{function i(t){return void 0===t||1===t}function s({scale:t,scaleX:e,scaleY:n}){return!i(t)||!i(e)||!i(n)}function o(t){return s(t)||r(t)||t.z||t.rotate||t.rotateX||t.rotateY}function r(t){return a(t.x)||a(t.y)}function a(t){return t&&"0%"!==t}n.d(e,{D_:()=>r,Lj:()=>s,ud:()=>o})},8834:(t,e,n)=>{n.d(e,{J:()=>o,z:()=>r});var i=n(483),s=n(1360);function o(t,e){return(0,i.i8)((0,i.d7)(t.getBoundingClientRect(),e))}function r(t,e,n){const i=o(t,n),{scroll:r}=e;return r&&((0,s.am)(i.x,r.offset.x),(0,s.am)(i.y,r.offset.y)),i}},1610:(t,e,n)=>{n.d(e,{H:()=>le});var i=n(8370);function s(t){return"object"==typeof t&&"function"==typeof t.start}var o=n(1930),r=n(7866),a=n(2819);function l(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}const u=t=>/^0[^.\s]+$/.test(t);var c=n(7048),h=n(1421),d=n(26),p=n(6914),m=n(2890),f=n(8366),v=n(5713);const g=t=>e=>e.test(t),y=[f.Rx,v.px,v.aQ,v.RW,v.vw,v.vh,{test:t=>"auto"===t,parse:t=>t}],x=t=>y.find(g(t)),b=[...y,m.$,d.P],w=t=>b.find(g(t));function P(t,e,n,i={},s={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,i,s)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,i,s)),e}function T(t,e,n){const i=t.getProps();return P(i,e,void 0!==n?n:i.custom,function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.get())),e}(t),function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.getVelocity())),e}(t))}function V(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,h.B)(n))}function A(t,e){const n=T(t,e);let{transitionEnd:i={},transition:s={},...o}=n?t.makeTargetAnimatable(n,!1):{};o={...o,...i};for(const e in o){V(t,e,(0,c.Y)(o[e]))}}function E(t,e){if(!e)return;return(e[t]||e.default||e).from}const C=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],S=new Set(C);var D=n(7846);function M(t){return Boolean((0,D.i)(t)&&t.add)}var k=n(8313);function R(t,e){const{MotionAppearAnimations:n}=window,i=((t,e)=>`${t}: ${e}`)(t,S.has(e)?"transform":e),s=n&&n.get(i);return s?(k.Z_.render((()=>{try{s.cancel(),n.delete(i)}catch(t){}})),s.currentTime||0):0}const B=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),L="data-"+B("framerAppearId");var O=n(6405);function F(t,e,n={}){var i;const s=T(t,e,n.custom);let{transition:o=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(o=n.transitionOverride);const r=s?()=>j(t,s,n):()=>Promise.resolve(),a=(null===(i=t.variantChildren)||void 0===i?void 0:i.size)?(i=0)=>{const{delayChildren:s=0,staggerChildren:r,staggerDirection:a}=o;return function(t,e,n=0,i=0,s=1,o){const r=[],a=(t.variantChildren.size-1)*i,l=1===s?(t=0)=>t*i:(t=0)=>a-t*i;return Array.from(t.variantChildren).sort(I).forEach(((t,i)=>{t.notify("AnimationStart",e),r.push(F(t,e,{...o,delay:n+l(i)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(r)}(t,e,s+i,r,a,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[t,e]="beforeChildren"===l?[r,a]:[a,r];return t().then(e)}return Promise.all([r(),a(n.delay)])}function j(t,e,{delay:n=0,transitionOverride:i,type:s}={}){var o;let{transition:r=t.getDefaultTransition(),transitionEnd:a,...l}=t.makeTargetAnimatable(e);const u=t.getValue("willChange");i&&(r=i);const c=[],h=s&&(null===(o=t.animationState)||void 0===o?void 0:o.getState()[s]);for(const e in l){const i=t.getValue(e),s=l[e];if(!i||void 0===s||h&&$(h,e))continue;let o={delay:n,elapsed:0,...r};if(t.shouldReduceMotion&&S.has(e)&&(o={...o,type:!1,delay:0}),!i.hasAnimated){const n=t.getProps()[L];n&&(o.elapsed=R(n,e))}let a=i.start((0,O.Z)(e,i,s,o));M(u)&&(u.add(e),a=a.then((()=>u.remove(e)))),c.push(a)}return Promise.all(c).then((()=>{a&&A(t,a)}))}function I(t,e){return t.sortNodePosition(e)}function $({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}function U(t){return"string"==typeof t||Array.isArray(t)}var N=n(7921);const Y=[N.r.Animate,N.r.InView,N.r.Focus,N.r.Hover,N.r.Tap,N.r.Drag,N.r.Exit],z=[...Y].reverse(),Z=Y.length;function W(t){return e=>Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e)){const s=e.map((e=>F(t,e,n)));i=Promise.all(s)}else if("string"==typeof e)i=F(t,e,n);else{const s="function"==typeof e?T(t,e,n.custom):e;i=j(t,s,n)}return i.then((()=>t.notify("AnimationComplete",e)))}(t,e,n))))}function H(t){let e=W(t);const n={[N.r.Animate]:X(!0),[N.r.InView]:X(),[N.r.Hover]:X(),[N.r.Tap]:X(),[N.r.Drag]:X(),[N.r.Focus]:X(),[N.r.Exit]:X()};let i=!0;const o=(e,n)=>{const i=T(t,n);if(i){const{transition:t,transitionEnd:n,...s}=i;e={...e,...s,...n}}return e};function r(r,u){const c=t.getProps(),h=t.getVariantContext(!0)||{},d=[],p=new Set;let m={},f=1/0;for(let e=0;e<Z;e++){const v=z[e],g=n[v],y=void 0!==c[v]?c[v]:h[v],x=U(y),b=v===u?g.isActive:null;!1===b&&(f=e);let w=y===h[v]&&y!==c[v]&&x;if(w&&i&&t.manuallyAnimateOnMount&&(w=!1),g.protectedKeys={...m},!g.isActive&&null===b||!y&&!g.prevProp||s(y)||"boolean"==typeof y)continue;const P=q(g.prevProp,y);let T=P||v===u&&g.isActive&&!w&&x||e>f&&x;const V=Array.isArray(y)?y:[y];let A=V.reduce(o,{});!1===b&&(A={});const{prevResolvedValues:E={}}=g,C={...E,...A},S=t=>{T=!0,p.delete(t),g.needsAnimating[t]=!0};for(const t in C){const e=A[t],n=E[t];m.hasOwnProperty(t)||(e!==n?(0,a.C)(e)&&(0,a.C)(n)?!l(e,n)||P?S(t):g.protectedKeys[t]=!0:void 0!==e?S(t):p.add(t):void 0!==e&&p.has(t)?S(t):g.protectedKeys[t]=!0)}g.prevProp=y,g.prevResolvedValues=A,g.isActive&&(m={...m,...A}),i&&t.blockInitialAnimation&&(T=!1),T&&!w&&d.push(...V.map((t=>({animation:t,options:{type:v,...r}}))))}if(p.size){const e={};p.forEach((n=>{const i=t.getBaseTarget(n);void 0!==i&&(e[n]=i)})),d.push({animation:e})}let v=Boolean(d.length);return i&&!1===c.initial&&!t.manuallyAnimateOnMount&&(v=!1),i=!1,v?e(d):Promise.resolve()}return{animateChanges:r,setActive:function(e,i,s){var o;if(n[e].isActive===i)return Promise.resolve();null===(o=t.variantChildren)||void 0===o||o.forEach((t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,i)})),n[e].isActive=i;const a=r(s,e);for(const t in n)n[t].protectedKeys={};return a},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}function q(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!l(e,t)}function X(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var _=n(6295);const G={animation:(0,_.x)((({visualElement:t,animate:e})=>{t.animationState||(t.animationState=H(t)),s(e)&&(0,i.useEffect)((()=>e.subscribe(t)),[e])})),exit:(0,_.x)((t=>{const{custom:e,visualElement:n}=t,[s,a]=(0,o.oO)(),l=(0,i.useContext)(r.O);(0,i.useEffect)((()=>{n.isPresent=s;const t=n.animationState&&n.animationState.setActive(N.r.Exit,!s,{custom:l&&l.custom||e});t&&!s&&t.then(a)}),[s])}))};var K=n(1876);var J=n(7815),Q=n(5856);function tt(t,e,n){return(i,s)=>{(function(t){return"pen"!==t.type&&"touch"!==t.type})(i)&&!(0,Q.gD)()&&(t.animationState&&t.animationState.setActive(N.r.Hover,e),n&&n(i,s))}}const et=(t,e)=>!!e&&(t===e||et(t,e.parentElement));var nt=n(9531),it=n(9820);const st=new WeakMap,ot=new WeakMap,rt=t=>{const e=st.get(t.target);e&&e(t)},at=t=>{t.forEach(rt)};function lt(t,e,n){const i=function({root:t,...e}){const n=t||document;ot.has(n)||ot.set(n,{});const i=ot.get(n),s=JSON.stringify(e);return i[s]||(i[s]=new IntersectionObserver(at,{root:t,...e})),i[s]}(e);return st.set(t,n),i.observe(t),()=>{st.delete(t),i.unobserve(t)}}const ut={some:0,all:1};function ct(t,e,n,{root:s,margin:o,amount:r="some",once:a}){(0,i.useEffect)((()=>{if(!t||!n.current)return;const i={root:null==s?void 0:s.current,rootMargin:o,threshold:"number"==typeof r?r:ut[r]};return lt(n.current,i,(t=>{const{isIntersecting:i}=t;if(e.isInView===i)return;if(e.isInView=i,a&&!i&&e.hasEnteredView)return;i&&(e.hasEnteredView=!0),n.animationState&&n.animationState.setActive(N.r.InView,i);const s=n.getProps(),o=i?s.onViewportEnter:s.onViewportLeave;o&&o(t)}))}),[t,s,o,r])}function ht(t,e,n,{fallback:s=!0}){(0,i.useEffect)((()=>{t&&s&&requestAnimationFrame((()=>{e.hasEnteredView=!0;const{onViewportEnter:t}=n.getProps();t&&t(null),n.animationState&&n.animationState.setActive(N.r.InView,!0)}))}),[t])}const dt={inView:(0,_.x)((function({visualElement:t,whileInView:e,onViewportEnter:n,onViewportLeave:s,viewport:o={}}){const r=(0,i.useRef)({hasEnteredView:!1,isInView:!1});let a=Boolean(e||n||s);o.once&&r.current.hasEnteredView&&(a=!1),("undefined"==typeof IntersectionObserver?ht:ct)(a,r.current,t,o)})),tap:(0,_.x)((function({onTap:t,onTapStart:e,onTapCancel:n,whileTap:s,visualElement:o,...r}){const a=t||e||n||s,l=(0,i.useRef)(!1),u=(0,i.useRef)(null),c={passive:!(e||t||n||r.onPointerDown)};function h(){u.current&&u.current(),u.current=null}function d(){return h(),l.current=!1,o.animationState&&o.animationState.setActive(N.r.Tap,!1),!(0,Q.gD)()}function p(e,i){d()&&(et(o.current,e.target)?t&&t(e,i):n&&n(e,i))}function m(t,e){d()&&n&&n(t,e)}const f=(0,i.useCallback)(((t,n)=>{h(),l.current||(l.current=!0,u.current=(0,it.z)((0,J.a)(window,"pointerup",p,c),(0,J.a)(window,"pointercancel",m,c)),o.animationState&&o.animationState.setActive(N.r.Tap,!0),e&&e(t,n))}),[e,o]);(0,J.m)(o,"pointerdown",a?f:void 0,c),(0,nt.z)(h)})),focus:(0,_.x)((function({whileFocus:t,visualElement:e}){const{animationState:n}=e,s=(0,i.useCallback)((()=>{n&&n.setActive(N.r.Focus,!0)}),[n]),o=(0,i.useCallback)((()=>{n&&n.setActive(N.r.Focus,!1)}),[n]);(0,K.p)(e,"focus",t?s:void 0),(0,K.p)(e,"blur",t?o:void 0)})),hover:(0,_.x)((function({onHoverStart:t,onHoverEnd:e,whileHover:n,visualElement:s}){(0,J.m)(s,"pointerenter",(0,i.useMemo)((()=>t||n?tt(s,!0,t):void 0),[t,Boolean(n),s]),{passive:!t}),(0,J.m)(s,"pointerleave",(0,i.useMemo)((()=>e||n?tt(s,!1,e):void 0),[t,Boolean(n),s]),{passive:!e})}))},pt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},mt=(t,e)=>C.indexOf(t)-C.indexOf(e);function ft(t){return t.startsWith("--")}const vt=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var gt=n(4923);function yt(t,e,n,i){const{style:s,vars:o,transform:r,transformKeys:a,transformOrigin:l}=t;a.length=0;let u=!1,c=!1,h=!0;for(const t in e){const n=e[t];if(ft(t)){o[t]=n;continue}const i=gt.j[t],d=vt(n,i);if(S.has(t)){if(u=!0,r[t]=d,a.push(t),!h)continue;n!==(i.default||0)&&(h=!1)}else t.startsWith("origin")?(c=!0,l[t]=d):s[t]=d}if(e.transform||(u||i?s.transform=function({transform:t,transformKeys:e},{enableHardwareAcceleration:n=!0,allowTransformNone:i=!0},s,o){let r="";e.sort(mt);for(const n of e)r+=`${pt[n]||n}(${t[n]}) `;return n&&!t.z&&(r+="translateZ(0)"),r=r.trim(),o?r=o(t,s?"":r):i&&s&&(r="none"),r}(t,n,h,i):s.transform&&(s.transform="none")),c){const{originX:t="50%",originY:e="50%",originZ:n=0}=l;s.transformOrigin=`${t} ${e} ${n}`}}var xt=n(798);function bt(t,{layout:e,layoutId:n}){return S.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!xt.P[t]||"opacity"===t)}function wt(t,e){const{style:n}=t,i={};for(const s in n)((0,D.i)(n[s])||e.style&&(0,D.i)(e.style[s])||bt(s,t))&&(i[s]=n[s]);return i}function Pt(t,{style:e,vars:n},i,s){Object.assign(t.style,e,s&&s.getProjectionStyles(i));for(const e in n)t.style.setProperty(e,n[e])}var Tt=n(7557),Vt=n(8834),At=n(6978),Et=n(9340);const Ct="undefined"!=typeof document,St=new Set(["width","height","top","left","right","bottom","x","y"]),Dt=t=>St.has(t),Mt=t=>t===f.Rx||t===v.px;var kt;!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(kt||(kt={}));const Rt=(t,e)=>parseFloat(t.split(", ")[e]),Bt=(t,e)=>(n,{transform:i})=>{if("none"===i||!i)return 0;const s=i.match(/^matrix3d\((.+)\)$/);if(s)return Rt(s[1],e);{const e=i.match(/^matrix\((.+)\)$/);return e?Rt(e[1],t):0}},Lt=new Set(["x","y","z"]),Ot=C.filter((t=>!Lt.has(t)));const Ft={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),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:Bt(4,13),y:Bt(5,14)},jt=(t,e,n={},i={})=>{e={...e},i={...i};const s=Object.keys(e).filter(Dt);let o=[],r=!1;const l=[];if(s.forEach((s=>{const u=t.getValue(s);if(!t.hasValue(s))return;let c=n[s],h=x(c);const d=e[s];let p;if((0,a.C)(d)){const t=d.length,e=null===d[0]?1:0;c=d[e],h=x(c);for(let n=e;n<t;n++)p?(0,Et.k)(x(d[n])===p,"All keyframes must be of the same type"):(p=x(d[n]),(0,Et.k)(p===h||Mt(h)&&Mt(p),"Keyframes must be of the same dimension as the current value"))}else p=x(d);if(h!==p)if(Mt(h)&&Mt(p)){const t=u.get();"string"==typeof t&&u.set(parseFloat(t)),"string"==typeof d?e[s]=parseFloat(d):Array.isArray(d)&&p===v.px&&(e[s]=d.map(parseFloat))}else(null==h?void 0:h.transform)&&(null==p?void 0:p.transform)&&(0===c||0===d)?0===c?u.set(p.transform(c)):e[s]=h.transform(d):(r||(o=function(t){const e=[];return Ot.forEach((n=>{const i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))})),e.length&&t.render(),e}(t),r=!0),l.push(s),i[s]=void 0!==i[s]?i[s]:e[s],u.jump(d))})),l.length){const n=l.indexOf("height")>=0?window.pageYOffset:null,s=((t,e,n)=>{const i=e.measureViewportBox(),s=e.current,o=getComputedStyle(s),{display:r}=o,a={};"none"===r&&e.setStaticValue("display",t.display||"block"),n.forEach((t=>{a[t]=Ft[t](i,o)})),e.render();const l=e.measureViewportBox();return n.forEach((n=>{const i=e.getValue(n);i&&i.jump(a[n]),t[n]=Ft[n](l,o)})),t})(e,t,l);return o.length&&o.forEach((([e,n])=>{t.getValue(e).set(n)})),t.render(),Ct&&null!==n&&window.scrollTo({top:n}),{target:s,transitionEnd:i}}return{target:e,transitionEnd:i}};function It(t,e,n,i){return(t=>Object.keys(t).some(Dt))(e)?jt(t,e,n,i):{target:e,transitionEnd:i}}const $t=t=>({isEnabled:e=>t.some((t=>!!e[t]))}),Ut={measureLayout:$t(["layout","layoutId","drag"]),animation:$t(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:$t(["exit"]),drag:$t(["drag","dragControls"]),focus:$t(["whileFocus"]),hover:$t(["whileHover","onHoverStart","onHoverEnd"]),tap:$t(["whileTap","onTap","onTapStart","onTapCancel"]),pan:$t(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:$t(["whileInView","onViewportEnter","onViewportLeave"])};var Nt=n(1397),Yt=n(3491);const zt={current:null},Zt={current:!1};var Wt=n(1065);const Ht=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function qt(t){return s(t.animate)||Ht.some((e=>U(t[e])))}const Xt=Object.keys(Ut),_t=Xt.length,Gt=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];const Kt=["initial",...Y],Jt=Kt.length;class Qt extends class{constructor({parent:t,props:e,reducedMotionConfig:n,visualState:i},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,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.scheduleRender=()=>k.Z_.render(this.render,!1,!0);const{latestValues:o,renderState:r}=i;this.latestValues=o,this.baseTarget={...o},this.initialValues=e.initial?{...o}:{},this.renderState=r,this.parent=t,this.props=e,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=s,this.isControllingVariants=qt(e),this.isVariantNode=function(t){return Boolean(qt(t)||t.variants)}(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:a,...l}=this.scrapeMotionValuesFromProps(e,{});for(const t in l){const e=l[t];void 0!==o[t]&&(0,D.i)(e)&&(e.set(o[t],!1),M(a)&&a.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){var e;this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null===(e=this.parent)||void 0===e?void 0:e.addVariantChild(this)),this.values.forEach(((t,e)=>this.bindToMotionValue(e,t))),Zt.current||function(){if(Zt.current=!0,Ct)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>zt.current=t.matches;t.addListener(e),e()}else zt.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||zt.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var t,e,n;null===(t=this.projection)||void 0===t||t.unmount(),k.qY.update(this.notifyUpdate),k.qY.render(this.render),this.valueSubscriptions.forEach((t=>t())),null===(e=this.removeFromVariantTree)||void 0===e||e.call(this),null===(n=this.parent)||void 0===n||n.children.delete(this);for(const t in this.events)this.events[t].clear();this.current=null}bindToMotionValue(t,e){const n=S.has(t),i=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&k.Z_.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),s=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,(()=>{i(),s()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures(t,e,n,s,o,r){const a=[];for(let e=0;e<_t;e++){const n=Xt[e],{isEnabled:s,Component:o}=Ut[n];s(t)&&o&&a.push((0,i.createElement)(o,{key:n,...t,visualElement:this}))}if(!this.projection&&o){this.projection=new o(s,this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:i,dragConstraints:a,layoutScroll:l}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(i)||a&&(0,Yt.I)(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:r,layoutScroll:l})}return a}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,Nt.dO)()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,e)}setProps(t){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender();const e=this.props;this.props=t;for(let e=0;e<Gt.length;e++){const n=Gt[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const i=t["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=function(t,e,n){const{willChange:i}=e;for(const s in e){const o=e[s],r=n[s];if((0,D.i)(o))t.addValue(s,o),M(i)&&i.add(s);else if((0,D.i)(r))t.addValue(s,(0,h.B)(o,{owner:t})),M(i)&&i.remove(s);else if(r!==o)if(t.hasValue(s)){const e=t.getValue(s);!e.hasAnimated&&e.set(o)}else{const e=t.getStaticValue(s);t.addValue(s,(0,h.B)(void 0!==e?e:o))}}for(const i in n)void 0===e[i]&&t.removeValue(i);return e}(this,this.scrapeMotionValuesFromProps(t,e),this.prevMotionValues)}getProps(){return this.props}getVariant(t){var e;return null===(e=this.props.variants)||void 0===e?void 0:e[t]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){var t;return this.isVariantNode?this:null===(t=this.parent)||void 0===t?void 0:t.getClosestVariantNode()}getVariantContext(t=!1){var e,n;if(t)return null===(e=this.parent)||void 0===e?void 0:e.getVariantContext();if(!this.isControllingVariants){const t=(null===(n=this.parent)||void 0===n?void 0:n.getVariantContext())||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}const i={};for(let t=0;t<Jt;t++){const e=Kt[t],n=this.props[e];(U(n)||!1===n)&&(i[e]=n)}return i}addVariantChild(t){var e;const n=this.getClosestVariantNode();if(n)return null===(e=n.variantChildren)||void 0===e||e.add(t),()=>n.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){var e;this.values.delete(t),null===(e=this.valueSubscriptions.get(t))||void 0===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 n=this.values.get(t);return void 0===n&&void 0!==e&&(n=(0,h.B)(e,{owner:this}),this.addValue(t,n)),n}readValue(t){return void 0===this.latestValues[t]&&this.current?this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props,i="string"==typeof n||"object"==typeof n?null===(e=P(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==i)return i;const s=this.getBaseTargetFromProps(this.props,t);return void 0===s||(0,D.i)(s)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new Wt.L),this.events[t].add(e)}notify(t,...e){var n;null===(n=this.events[t])||void 0===n||n.notify(...e)}}{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){var n;return null===(n=t.style)||void 0===n?void 0:n[e]}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...n},{transformValues:i},s){let o=function(t,e,n){var i;const s={};for(const o in t){const t=E(o,e);s[o]=void 0!==t?t:null===(i=n.getValue(o))||void 0===i?void 0:i.get()}return s}(n,t||{},this);if(i&&(e&&(e=i(e)),n&&(n=i(n)),o&&(o=i(o))),s){!function(t,e,n){var i,s;const o=Object.keys(e).filter((e=>!t.hasValue(e))),r=o.length;if(r)for(let a=0;a<r;a++){const r=o[a],l=e[r];let c=null;Array.isArray(l)&&(c=l[0]),null===c&&(c=null!==(s=null!==(i=n[r])&&void 0!==i?i:t.readValue(r))&&void 0!==s?s:e[r]),null!=c&&("string"==typeof c&&(/^\-?\d*\.?\d+$/.test(c)||u(c))?c=parseFloat(c):!w(c)&&d.P.test(l)&&(c=(0,p.T)(r,l)),t.addValue(r,(0,h.B)(c,{owner:t})),void 0===n[r]&&(n[r]=c),null!==c&&t.setBaseTarget(r,c))}}(this,n,o);const t=((t,e,n,i)=>{const s=(0,At.mH)(t,e,i);return It(t,e=s.target,n,i=s.transitionEnd)})(this,n,o,e);e=t.transitionEnd,n=t.target}return{transition:t,transitionEnd:e,...n}}}class te extends Qt{readValueFromInstance(t,e){if(S.has(e)){const t=(0,Tt.A)(e);return t&&t.default||0}{const i=(n=t,window.getComputedStyle(n)),s=(ft(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,Vt.J)(t,e)}build(t,e,n,i){yt(t,e,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,e){return wt(t,e)}renderInstance(t,e,n,i){Pt(t,e,n,i)}}function ee(t,e,n){return"string"==typeof t?t:v.px.transform(e+n*t)}const ne={offset:"stroke-dashoffset",array:"stroke-dasharray"},ie={offset:"strokeDashoffset",array:"strokeDasharray"};function se(t,{attrX:e,attrY:n,originX:i,originY:s,pathLength:o,pathSpacing:r=1,pathOffset:a=0,...l},u,c,h){if(yt(t,l,u,h),c)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:d,style:p,dimensions:m}=t;d.transform&&(m&&(p.transform=d.transform),delete d.transform),m&&(void 0!==i||void 0!==s||p.transform)&&(p.transformOrigin=function(t,e,n){return`${ee(e,t.x,t.width)} ${ee(n,t.y,t.height)}`}(m,void 0!==i?i:.5,void 0!==s?s:.5)),void 0!==e&&(d.x=e),void 0!==n&&(d.y=n),void 0!==o&&function(t,e,n=1,i=0,s=!0){t.pathLength=1;const o=s?ne:ie;t[o.offset]=v.px.transform(-i);const r=v.px.transform(e),a=v.px.transform(n);t[o.array]=`${r} ${a}`}(d,o,r,a,!1)}const oe=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"]);class re extends Qt{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){var n;return S.has(e)?(null===(n=(0,Tt.A)(e))||void 0===n?void 0:n.default)||0:(e=oe.has(e)?e:B(e),t.getAttribute(e))}measureInstanceViewportBox(){return(0,Nt.dO)()}scrapeMotionValuesFromProps(t,e){return function(t,e){const n=wt(t,e);for(const i in t)((0,D.i)(t[i])||(0,D.i)(e[i]))&&(n["x"===i||"y"===i?"attr"+i.toUpperCase():i]=t[i]);return n}(t,e)}build(t,e,n,i){se(t,e,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,n,i){!function(t,e,n,i){Pt(t,e,void 0,i);for(const n in e.attrs)t.setAttribute(oe.has(n)?n:B(n),e.attrs[n])}(t,e,0,i)}mount(t){var e;this.isSVGTag="string"==typeof(e=t.tagName)&&"svg"===e.toLowerCase(),super.mount(t)}}const ae=["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"];const le={renderer:(t,e)=>function(t){return"string"==typeof t&&!t.includes("-")&&!!(ae.indexOf(t)>-1||/[A-Z]/.test(t))}(t)?new re(e,{enableHardwareAcceleration:!1}):new te(e,{enableHardwareAcceleration:!0}),...G,...dt}},6978:(t,e,n)=>{n.d(e,{Xp:()=>o,mH:()=>a});var i=n(9340);function s(t){return"string"==typeof t&&t.startsWith("var(--")}const o=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function r(t,e,n=1){(0,i.k)(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[a,l]=function(t){const e=o.exec(t);if(!e)return[,];const[,n,i]=e;return[n,i]}(t);if(!a)return;const u=window.getComputedStyle(e).getPropertyValue(a);return u?u.trim():s(l)?r(l,e,n+1):l}function a(t,{...e},n){const i=t.current;if(!(i instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach((t=>{const e=t.get();if(!s(e))return;const n=r(e,i);n&&t.set(n)}));for(const t in e){const o=e[t];if(!s(o))continue;const a=r(o,i);a&&(e[t]=a,n&&void 0===n[t]&&(n[t]=o))}return{target:e,transitionEnd:n}}},6914:(t,e,n)=>{n.d(e,{T:()=>r});var i=n(26),s=n(8673),o=n(7557);function r(t,e){var n;let r=(0,o.A)(t);return r!==s.h&&(r=i.P),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,e)}},7557:(t,e,n)=>{n.d(e,{A:()=>r});var i=n(2890),s=n(8673);const o={...n(4923).j,color:i.$,backgroundColor:i.$,outlineColor:i.$,fill:i.$,stroke:i.$,borderColor:i.$,borderTopColor:i.$,borderRightColor:i.$,borderBottomColor:i.$,borderLeftColor:i.$,filter:s.h,WebkitFilter:s.h},r=t=>o[t]},4923:(t,e,n)=>{n.d(e,{j:()=>r});var i=n(8366),s=n(5713),o=n(6442);const r={borderWidth:s.px,borderTopWidth:s.px,borderRightWidth:s.px,borderBottomWidth:s.px,borderLeftWidth:s.px,borderRadius:s.px,radius:s.px,borderTopLeftRadius:s.px,borderTopRightRadius:s.px,borderBottomRightRadius:s.px,borderBottomLeftRadius:s.px,width:s.px,maxWidth:s.px,height:s.px,maxHeight:s.px,size:s.px,top:s.px,right:s.px,bottom:s.px,left:s.px,padding:s.px,paddingTop:s.px,paddingRight:s.px,paddingBottom:s.px,paddingLeft:s.px,margin:s.px,marginTop:s.px,marginRight:s.px,marginBottom:s.px,marginLeft:s.px,rotate:s.RW,rotateX:s.RW,rotateY:s.RW,rotateZ:s.RW,scale:i.bA,scaleX:i.bA,scaleY:i.bA,scaleZ:i.bA,skew:s.RW,skewX:s.RW,skewY:s.RW,distance:s.px,translateX:s.px,translateY:s.px,translateZ:s.px,x:s.px,y:s.px,z:s.px,perspective:s.px,transformPerspective:s.px,opacity:i.Fq,originX:s.$C,originY:s.$C,originZ:s.px,zIndex:o.e,fillOpacity:i.Fq,strokeOpacity:i.Fq,numOctaves:o.e}},6442:(t,e,n)=>{n.d(e,{e:()=>i});const i={...n(8366).Rx,transform:Math.round}},7921:(t,e,n)=>{var i;n.d(e,{r:()=>i}),function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.InView="whileInView",t.Exit="exit"}(i||(i={}))},1180:(t,e,n)=>{function i(t,e){-1===t.indexOf(e)&&t.push(e)}function s(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}n.d(e,{cl:()=>s,y4:()=>i})},9043:(t,e,n)=>{n.d(e,{u:()=>i});const i=(t,e,n)=>Math.min(Math.max(n,t),e)},2866:(t,e,n)=>{n.d(e,{g:()=>s});var i=n(8313);function s(t,e){const n=performance.now(),s=({timestamp:o})=>{const r=o-n;r>=e&&(i.qY.read(s),t(r-e))};return i.Z_.read(s,!0),()=>i.qY.read(s)}},3491:(t,e,n)=>{function i(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}n.d(e,{I:()=>i})},5430:(t,e,n)=>{n.d(e,{C:()=>i});const i=(t,e,n)=>-n*t+n*e+t},2634:(t,e,n)=>{n.d(e,{Z:()=>i});const i=t=>t},9820:(t,e,n)=>{n.d(e,{z:()=>s});const i=(t,e)=>n=>e(t(n)),s=(...t)=>t.reduce(i)},918:(t,e,n)=>{n.d(e,{Y:()=>i});const i=(t,e,n)=>{const i=e-t;return 0===i?1:(n-t)/i}},7048:(t,e,n)=>{n.d(e,{Y:()=>o,p:()=>s});var i=n(2819);const s=t=>Boolean(t&&"object"==typeof t&&t.mix&&t.toValue),o=t=>(0,i.C)(t)?t[t.length-1]||0:t},1065:(t,e,n)=>{n.d(e,{L:()=>s});var i=n(1180);class s{constructor(){this.subscriptions=[]}add(t){return(0,i.y4)(this.subscriptions,t),()=>(0,i.cl)(this.subscriptions,t)}notify(t,e,n){const i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,n);else for(let s=0;s<i;s++){const i=this.subscriptions[s];i&&i(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},1818:(t,e,n)=>{n.d(e,{w:()=>i});const i=t=>1e3*t},9531:(t,e,n)=>{n.d(e,{z:()=>s});var i=n(8370);function s(t){return(0,i.useEffect)((()=>()=>t()),[])}},432:(t,e,n)=>{function i(t,e){return e?t*(1e3/e):0}n.d(e,{R:()=>i})},1421:(t,e,n)=>{n.d(e,{B:()=>l});var i=n(5951),s=n(8313),o=n(1065),r=n(432);class a{constructor(t,e={}){var n;this.version="__VERSION__",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;const{delta:n,timestamp:o}=i.w;this.lastUpdated!==o&&(this.timeDelta=n,this.lastUpdated=o,s.Z_.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>s.Z_.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=e.owner}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new o.L);const n=this.events[t].add(e);return"change"===t?()=>{n(),s.Z_.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?(0,r.R)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.stopAnimation=t(e),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.stopAnimation&&(this.stopAnimation(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function l(t,e){return new a(t,e)}},4775:(t,e,n)=>{n.d(e,{$:()=>s});var i=n(6077);const s={test:(0,n(8810).i)("#"),parse:function(t){let e="",n="",i="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,i+=i,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}},transform:i.m.transform}},5193:(t,e,n)=>{n.d(e,{J:()=>a});var i=n(8366),s=n(5713),o=n(6933),r=n(8810);const a={test:(0,r.i)("hsl","hue"),parse:(0,r.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+s.aQ.transform((0,o.Nw)(e))+", "+s.aQ.transform((0,o.Nw)(n))+", "+(0,o.Nw)(i.Fq.transform(r))+")"}},2890:(t,e,n)=>{n.d(e,{$:()=>a});var i=n(6933),s=n(4775),o=n(5193),r=n(6077);const a={test:t=>r.m.test(t)||s.$.test(t)||o.J.test(t),parse:t=>r.m.test(t)?r.m.parse(t):o.J.test(t)?o.J.parse(t):s.$.parse(t),transform:t=>(0,i.HD)(t)?t:t.hasOwnProperty("red")?r.m.transform(t):o.J.transform(t)}},6077:(t,e,n)=>{n.d(e,{m:()=>l});var i=n(9043),s=n(8366),o=n(6933),r=n(8810);const a={...s.Rx,transform:t=>Math.round((t=>(0,i.u)(0,255,t))(t))},l={test:(0,r.i)("rgb","red"),parse:(0,r.d)("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+a.transform(t)+", "+a.transform(e)+", "+a.transform(n)+", "+(0,o.Nw)(s.Fq.transform(i))+")"}},8810:(t,e,n)=>{n.d(e,{d:()=>o,i:()=>s});var i=n(6933);const s=(t,e)=>n=>Boolean((0,i.HD)(n)&&i.mj.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),o=(t,e,n)=>s=>{if(!(0,i.HD)(s))return s;const[o,r,a,l]=s.match(i.KP);return{[t]:parseFloat(o),[e]:parseFloat(r),[n]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},8673:(t,e,n)=>{n.d(e,{h:()=>l});var i=n(26),s=n(6933);const o=new Set(["brightness","contrast","saturate","opacity"]);function r(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[i]=n.match(s.KP)||[];if(!i)return t;const r=n.replace(i,"");let a=o.has(e)?1:0;return i!==n&&(a*=100),e+"("+a+r+")"}const a=/([a-z-]*)\(.*?\)/g,l={...i.P,getAnimatableNone:t=>{const e=t.match(a);return e?e.map(r).join(" "):t}}},26:(t,e,n)=>{n.d(e,{P:()=>d,V:()=>l});var i=n(2890),s=n(8366),o=n(6933);const r="${c}",a="${n}";function l(t){"number"==typeof t&&(t=`${t}`);const e=[];let n=0,l=0;const u=t.match(o.dA);u&&(n=u.length,t=t.replace(o.dA,r),e.push(...u.map(i.$.parse)));const c=t.match(o.KP);return c&&(l=c.length,t=t.replace(o.KP,a),e.push(...c.map(s.Rx.parse))),{values:e,numColors:n,numNumbers:l,tokenised:t}}function u(t){return l(t).values}function c(t){const{values:e,numColors:n,tokenised:s}=l(t),u=e.length;return t=>{let e=s;for(let s=0;s<u;s++)e=e.replace(s<n?r:a,s<n?i.$.transform(t[s]):(0,o.Nw)(t[s]));return e}}const h=t=>"number"==typeof t?0:t;const d={test:function(t){var e,n;return isNaN(t)&&(0,o.HD)(t)&&((null===(e=t.match(o.KP))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(o.dA))||void 0===n?void 0:n.length)||0)>0},parse:u,createTransformer:c,getAnimatableNone:function(t){const e=u(t);return c(t)(e.map(h))}}},8366:(t,e,n)=>{n.d(e,{Fq:()=>o,Rx:()=>s,bA:()=>r});var i=n(9043);const s={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},o={...s,transform:t=>(0,i.u)(0,1,t)},r={...s,default:1}},5713:(t,e,n)=>{n.d(e,{$C:()=>c,RW:()=>o,aQ:()=>r,px:()=>a,vh:()=>l,vw:()=>u});var i=n(6933);const s=t=>({test:e=>(0,i.HD)(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),o=s("deg"),r=s("%"),a=s("px"),l=s("vh"),u=s("vw"),c={...r,parse:t=>r.parse(t)/100,transform:t=>r.transform(100*t)}},6933:(t,e,n)=>{n.d(e,{HD:()=>a,KP:()=>s,Nw:()=>i,dA:()=>o,mj:()=>r});const i=t=>Math.round(1e5*t)/1e5,s=/(-)?([\d]*\.?[\d])+/g,o=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,r=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function a(t){return"string"==typeof t}},7846:(t,e,n)=>{n.d(e,{i:()=>i});const i=t=>!!(null==t?void 0:t.getVelocity)},8370:t=>{t.exports=void 0}},e={};function n(i){var s=e[i];if(void 0!==s)return s.exports;var o=e[i]={exports:{}};return t[i](o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t=n(8370),e=n.n(t),i=n(9340),s=n(409),o=n(8313),r=n(1818),a=n(7815),l=n(9820);const u=(t,e)=>Math.abs(t-e);var c=n(5951),h=n(2426);class d{constructor(t,e,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=f(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=u(t.x,e.x),i=u(t.y,e.y);return Math.sqrt(n**2+i**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:i}=t,{timestamp:s}=c.w;this.history.push({...i,timestamp:s});const{onStart:o,onMove:r}=this.handlers;e||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),r&&r(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=p(e,this.transformPagePoint),o.Z_.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:i}=this.handlers,s=f(p(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,s),i&&i(t,s)},!(0,h.D)(t))return;this.handlers=e,this.transformPagePoint=n;const i=p((0,s.Q)(t),this.transformPagePoint),{point:r}=i,{timestamp:d}=c.w;this.history=[{...r,timestamp:d}];const{onSessionStart:m}=e;m&&m(t,f(i,this.history)),this.removeListeners=(0,l.z)((0,a.a)(window,"pointermove",this.handlePointerMove),(0,a.a)(window,"pointerup",this.handlePointerUp),(0,a.a)(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),o.qY.update(this.updatePoint)}}function p(t,e){return e?{point:e(t.point)}:t}function m(t,e){return{x:t.x-e.x,y:t.y-e.y}}function f({point:t},e){return{point:t,delta:m(t,g(e)),offset:m(t,v(e)),velocity:y(e,.1)}}function v(t){return t[0]}function g(t){return t[t.length-1]}function y(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const s=g(t);for(;n>=0&&(i=t[n],!(s.timestamp-i.timestamp>(0,r.w)(e)));)n--;if(!i)return{x:0,y:0};const o=(s.timestamp-i.timestamp)/1e3;if(0===o)return{x:0,y:0};const a={x:(s.x-i.x)/o,y:(s.y-i.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}var x=n(5856),b=n(3491),w=n(918),P=n(5430);function T(t){return t.max-t.min}function V(t,e=0,n=.01){return Math.abs(t-e)<=n}function A(t,e,n,i=.5){t.origin=i,t.originPoint=(0,P.C)(e.min,e.max,t.origin),t.scale=T(n)/T(e),(V(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=(0,P.C)(n.min,n.max,t.origin)-t.originPoint,(V(t.translate)||isNaN(t.translate))&&(t.translate=0)}function E(t,e,n,i){A(t.x,e.x,n.x,null==i?void 0:i.originX),A(t.y,e.y,n.y,null==i?void 0:i.originY)}function C(t,e,n){t.min=n.min+e.min,t.max=t.min+T(e)}function S(t,e,n){t.min=e.min-n.min,t.max=t.min+T(e)}function D(t,e,n){S(t.x,e.x,n.x),S(t.y,e.y,n.y)}var M=n(9043);function k(t,{min:e,max:n},i){return void 0!==e&&t<e?t=i?(0,P.C)(e,t,i.min):Math.max(t,e):void 0!==n&&t>n&&(t=i?(0,P.C)(n,t,i.max):Math.min(t,n)),t}function R(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function B(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function L(t,e){let n=.5;const i=T(t),s=T(e);return s>i?n=(0,w.Y)(e.min,e.max-i,t.min):i>s&&(n=(0,w.Y)(t.min,t.max-s,e.min)),(0,M.u)(0,1,n)}const O=.35;function F(t,e,n){return{min:j(t,e),max:j(t,n)}}function j(t,e){return"number"==typeof t?t:t[e]||0}var I=n(7921),$=n(1397);function U(t){return[t("x"),t("y")]}var N=n(8834),Y=n(483),z=n(1876),Z=n(5713),W=n(6405);const H=new WeakMap;class q{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,$.dO)(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){if(!1===this.visualElement.isPresent)return;this.panSession=new d(t,{onSessionStart:t=>{this.stopAnimation(),e&&this.snapToCursor((0,s.Q)(t,"page").point)},onStart:(t,e)=>{var n;const{drag:i,dragPropagation:s,onDragStart:o}=this.getProps();(!i||s||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=(0,x.fJ)(i),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),U((t=>{var e,n;let i=this.getAxisMotionValue(t).get()||0;if(Z.aQ.test(i)){const s=null===(n=null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout)||void 0===n?void 0:n.layoutBox[t];if(s){i=T(s)*(parseFloat(i)/100)}}this.originPoint[t]=i})),null==o||o(t,e),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(I.r.Drag,!0))},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:i,onDirectionLock:s,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:r}=e;if(i&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(r),void(null!==this.currentDirection&&(null==s||s(this.currentDirection)));this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),null==o||o(t,e)},onSessionEnd:(t,e)=>this.stop(t,e)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=e;this.startAnimation(i);const{onDragEnd:s}=this.getProps();null==s||s(t,e)}cancel(){var t,e;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(t=this.panSession)||void 0===t||t.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(e=this.visualElement.animationState)||void 0===e||e.setActive(I.r.Drag,!1)}updateAxis(t,e,n){const{drag:i}=this.getProps();if(!n||!X(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=k(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){const{dragConstraints:t,dragElastic:e}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;t&&(0,b.I)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!n)&&function(t,{top:e,left:n,bottom:i,right:s}){return{x:R(t.x,n,s),y:R(t.y,e,i)}}(n.layoutBox,t),this.elastic=function(t=O){return!1===t?t=0:!0===t&&(t=O),{x:F(t,"left","right"),y:F(t,"top","bottom")}}(e),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&U((t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(n.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!(0,b.I)(t))return!1;const n=t.current;(0,i.k)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const o=(0,N.z)(n,s.root,this.visualElement.getTransformPagePoint());let r=function(t,e){return{x:B(t.x,e.x),y:B(t.y,e.y)}}(s.layout.layoutBox,o);if(e){const t=e((0,Y.z2)(r));this.hasMutatedConstraints=!!t,t&&(r=(0,Y.i8)(t))}return r}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},l=U((r=>{if(!X(r,e,this.currentDirection))return;let l=(null==a?void 0:a[r])||{};o&&(l={min:0,max:0});const u=i?200:1e6,c=i?40:1e7,h={type:"inertia",velocity:n?t[r]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(r,h)}));return Promise.all(l).then(r)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return n.start((0,W.Z)(t,n,0,e))}stopAnimation(){U((t=>this.getAxisMotionValue(t).stop()))}getAxisMotionValue(t){var e;const n="_drag"+t.toUpperCase(),i=this.visualElement.getProps()[n];return i||this.visualElement.getValue(t,(null===(e=this.visualElement.getProps().initial)||void 0===e?void 0:e[t])||0)}snapToCursor(t){U((e=>{const{drag:n}=this.getProps();if(!X(e,n,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(e);if(i&&i.layout){const{min:n,max:o}=i.layout.layoutBox[e];s.set(t[e]-(0,P.C)(n,o,.5))}}))}scalePositionWithinConstraints(){var t;if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!(0,b.I)(n)||!i||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};U((t=>{const e=this.getAxisMotionValue(t);if(e){const n=e.get();s[t]=L({min:n,max:n},this.constraints[t])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",null===(t=i.root)||void 0===t||t.updateScroll(),i.updateLayout(),this.resolveConstraints(),U((t=>{if(!X(t,e,null))return;const n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set((0,P.C)(i,o,s[t]))}))}addListeners(){var t;if(!this.visualElement.current)return;H.set(this.visualElement,this);const e=this.visualElement.current,n=(0,a.a)(e,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),i=()=>{const{dragConstraints:t}=this.getProps();(0,b.I)(t)&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,o=s.addEventListener("measure",i);s&&!s.layout&&(null===(t=s.root)||void 0===t||t.updateScroll(),s.updateLayout()),i();const r=(0,z.E)(window,"resize",(()=>this.scalePositionWithinConstraints())),l=s.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(U((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.render())}));return()=>{r(),n(),o(),null==l||l()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=O,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:r}}}function X(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const _=(0,t.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});var G=n(9531);var K=n(6295);const J={pan:(0,K.x)((function({onPan:e,onPanStart:n,onPanEnd:i,onPanSessionStart:s,visualElement:o}){const r=e||n||i||s,l=(0,t.useRef)(null),{transformPagePoint:u}=(0,t.useContext)(_),c={onSessionStart:s,onStart:n,onMove:e,onEnd:(t,e)=>{l.current=null,i&&i(t,e)}};(0,t.useEffect)((()=>{null!==l.current&&l.current.updateHandlers(c)})),(0,a.m)(o,"pointerdown",r&&function(t){l.current=new d(t,c,{transformPagePoint:u})}),(0,G.z)((()=>l.current&&l.current.end()))})),drag:(0,K.x)((function(e){const{dragControls:n,visualElement:i}=e,s=function(e){const n=(0,t.useRef)(null);return null===n.current&&(n.current=e()),n.current}((()=>new q(i)));(0,t.useEffect)((()=>n&&n.subscribe(s)),[s,n]),(0,t.useEffect)((()=>s.addListeners()),[s])}))};var Q=n(1930);const tt=(0,t.createContext)({}),et=(0,t.createContext)({}),nt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function it(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const st={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!Z.px.test(t))return t;t=parseFloat(t)}return`${it(t,e.target.x)}% ${it(t,e.target.y)}%`}};var ot=n(6978),rt=n(26);const at="_$css",lt={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,s=t.includes("var("),o=[];s&&(t=t.replace(ot.Xp,(t=>(o.push(t),at))));const r=rt.P.parse(t);if(r.length>5)return i;const a=rt.P.createTransformer(t),l="number"!=typeof r[0]?1:0,u=n.x.scale*e.x,c=n.y.scale*e.y;r[0+l]/=u,r[1+l]/=c;const h=(0,P.C)(u,c,.5);"number"==typeof r[2+l]&&(r[2+l]/=h),"number"==typeof r[3+l]&&(r[3+l]/=h);let d=a(r);if(s){let t=0;d=d.replace(at,(()=>{const e=o[t];return t++,e}))}return d}};var ut=n(798);class ct extends e().Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:s}=t;(0,ut.B)(ht),s&&(e.group&&e.group.add(s),n&&n.register&&i&&n.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(()=>{this.safeToRemove()})),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),nt.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:i,isPresent:s}=this.props,r=n.projection;return r?(r.isPresent=s,i||t.layoutDependency!==e||void 0===e?r.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?r.promote():r.relegate()||o.Z_.postRender((()=>{var t;(null===(t=r.getStack())||void 0===t?void 0:t.members.length)||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),(null==e?void 0:e.group)&&e.group.remove(i),(null==n?void 0:n.deregister)&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;null==t||t()}render(){return null}}const ht={borderRadius:{...st,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:st,borderTopRightRadius:st,borderBottomLeftRadius:st,borderBottomRightRadius:st,boxShadow:lt},dt={measureLayout:function(n){const[i,s]=(0,Q.oO)(),o=(0,t.useContext)(tt);return e().createElement(ct,{...n,layoutGroup:o,switchLayoutGroup:(0,t.useContext)(et),isPresent:i,safeToRemove:s})}};var pt=n(1421),mt=n(7846);var ft=n(1065),vt=n(7110),gt=n(2634);const yt=["TopLeft","TopRight","BottomLeft","BottomRight"],xt=yt.length,bt=t=>"string"==typeof t?parseFloat(t):t,wt=t=>"number"==typeof t||Z.px.test(t);function Pt(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const Tt=At(0,.5,vt.Bn),Vt=At(.5,.95,gt.Z);function At(t,e,n){return i=>i<t?0:i>e?1:n((0,w.Y)(t,e,i))}function Et(t,e){t.min=e.min,t.max=e.max}function Ct(t,e){Et(t.x,e.x),Et(t.y,e.y)}var St=n(1360);function Dt(t,e,n,i,s){return t-=e,t=(0,St.q2)(t,1/n,i),void 0!==s&&(t=(0,St.q2)(t,1/s,i)),t}function Mt(t,e,[n,i,s],o,r){!function(t,e=0,n=1,i=.5,s,o=t,r=t){Z.aQ.test(e)&&(e=parseFloat(e),e=(0,P.C)(r.min,r.max,e/100)-r.min);if("number"!=typeof e)return;let a=(0,P.C)(o.min,o.max,i);t===o&&(a-=e),t.min=Dt(t.min,e,n,a,s),t.max=Dt(t.max,e,n,a,s)}(t,e[n],e[i],e[s],e.scale,o,r)}const kt=["x","scaleX","originX"],Rt=["y","scaleY","originY"];function Bt(t,e,n,i){Mt(t.x,e,kt,null==n?void 0:n.x,null==i?void 0:i.x),Mt(t.y,e,Rt,null==n?void 0:n.y,null==i?void 0:i.y)}var Lt=n(7101);function Ot(t){return 0===t.translate&&1===t.scale}function Ft(t){return Ot(t.x)&&Ot(t.y)}function jt(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function It(t){return T(t.x)/T(t.y)}var $t=n(1180);class Ut{constructor(){this.members=[]}add(t){(0,$t.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,$t.cl)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex((e=>t===e));if(0===e)return!1;let n;for(let t=e;t>=0;t--){const e=this.members[t];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(t,e){var n;const 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),(null===(n=t.root)||void 0===n?void 0:n.isUpdating)&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;!1===s&&i.hide()}}exitAnimationComplete(){this.members.forEach((t=>{var e,n,i,s,o;null===(n=(e=t.options).onExitComplete)||void 0===n||n.call(e),null===(o=null===(i=t.resumingFrom)||void 0===i?void 0:(s=i.options).onExitComplete)||void 0===o||o.call(s)}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Nt(t,e,n){let i="";const s=t.x.translate/e.x,o=t.y.translate/e.y;if((s||o)&&(i=`translate3d(${s}px, ${o}px, 0) `),1===e.x&&1===e.y||(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:t,rotateX:e,rotateY:s}=n;t&&(i+=`rotate(${t}deg) `),e&&(i+=`rotateX(${e}deg) `),s&&(i+=`rotateY(${s}deg) `)}const r=t.x.scale*e.x,a=t.y.scale*e.y;return 1===r&&1===a||(i+=`scale(${r}, ${a})`),i||"none"}var Yt=n(4918);const zt=(t,e)=>t.depth-e.depth;class Zt{constructor(){this.children=[],this.isDirty=!1}add(t){(0,$t.y4)(this.children,t),this.isDirty=!0}remove(t){(0,$t.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(zt),this.isDirty=!1,this.children.forEach(t)}}var Wt=n(7048);function Ht(t){const e=(0,mt.i)(t)?t.get():t;return(0,Wt.p)(e)?e.toValue():e}var qt=n(2866);const Xt=["","X","Y","Z"];let _t=0;function Gt({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(t,n={},i=(null==e?void 0:e())){this.id=_t++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isTransformDirty=!1,this.isProjectionDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(Qt),this.nodes.forEach(se),this.nodes.forEach(oe)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=t,this.latestValues=n,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0,t&&this.root.registerPotentialNode(t,this);for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new Zt)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new ft.L),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);null==n||n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}registerPotentialNode(t,e){this.potentialNodes.set(t,e)}mount(e,n=!1){var i;if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;const{layoutId:s,layout:o,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),null===(i=this.parent)||void 0===i||i.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),n&&(o||s)&&(this.isLayoutDirty=!0),t){let n;const i=()=>this.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=(0,qt.g)(i,250),nt.hasAnimatedSinceResize&&(nt.hasAnimatedSinceResize=!1,this.nodes.forEach(ie))}))}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&r&&(s||o)&&this.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:i})=>{var s,o,a,l,u;if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const c=null!==(o=null!==(s=this.options.transition)&&void 0!==s?s:r.getDefaultTransition())&&void 0!==o?o:he,{onLayoutAnimationStart:h,onLayoutAnimationComplete:d}=r.getProps(),p=!this.targetLayout||!jt(this.targetLayout,i)||n,m=!e&&n;if((null===(a=this.resumeFrom)||void 0===a?void 0:a.instance)||m||e&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,m);const e={...(0,Lt.ev)(c,"layout"),onPlay:h,onComplete:d};r.shouldReduceMotion&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||0!==this.animationProgress||ie(this),this.isLead()&&(null===(u=(l=this.options).onExitComplete)||void 0===u||u.call(l));this.targetLayout=i}))}unmount(){var t,e;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(t=this.getStack())||void 0===t||t.remove(this),null===(e=this.parent)||void 0===e||e.children.delete(this),this.instance=void 0,o.qY.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var t;return this.isAnimationBlocked||(null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimationBlocked())||!1}startUpdate(){var t;this.isUpdateBlocked()||(this.isUpdating=!0,null===(t=this.nodes)||void 0===t||t.forEach(re),this.animationId++)}willUpdate(t=!0){var e,n,i;if(this.root.isUpdateBlocked())return void(null===(n=(e=this.options).onExitComplete)||void 0===n||n.call(e));if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){const e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot")}const{layoutId:s,layout:o}=this.options;if(void 0===s&&!o)return;const r=null===(i=this.options.visualElement)||void 0===i?void 0:i.getProps().transformTemplate;this.prevTransformTemplateValue=null==r?void 0:r(this.latestValues,""),this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(ee);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(de),this.potentialNodes.clear()),this.nodes.forEach(ne),this.nodes.forEach(Kt),this.nodes.forEach(Jt),this.clearAllSnapshots(),o.iW.update(),o.iW.preRender(),o.iW.render())}clearAllSnapshots(){this.nodes.forEach(te),this.sharedNodes.forEach(ae)}scheduleUpdateProjection(){o.Z_.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){o.Z_.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){var t;if(!this.instance)return;if(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()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=(0,$.dO)(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox),null===(t=this.options.visualElement)||void 0===t||t.notify("LayoutMeasure",this.layout.layoutBox,null==e?void 0:e.layoutBox)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:i(this.instance),offset:n(this.instance)})}resetTransform(){var t;if(!s)return;const e=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!Ft(this.projectionDelta),i=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate,o=null==i?void 0:i(this.latestValues,""),r=o!==this.prevTransformTemplateValue;e&&(n||(0,Yt.ud)(this.latestValues)||r)&&(s(this.instance,o),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var i;return t&&(n=this.removeTransform(n)),pe((i=n).x),pe(i.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return(0,$.dO)();const e=t.measureViewportBox(),{scroll:n}=this.root;return n&&((0,St.am)(e.x,n.offset.x),(0,St.am)(e.y,n.offset.y)),e}removeElementScroll(t){const e=(0,$.dO)();Ct(e,t);for(let n=0;n<this.path.length;n++){const i=this.path[n],{scroll:s,options:o}=i;if(i!==this.root&&s&&o.layoutScroll){if(s.isRoot){Ct(e,t);const{scroll:n}=this.root;n&&((0,St.am)(e.x,-n.offset.x),(0,St.am)(e.y,-n.offset.y))}(0,St.am)(e.x,s.offset.x),(0,St.am)(e.y,s.offset.y)}}return e}applyTransform(t,e=!1){const n=(0,$.dO)();Ct(n,t);for(let t=0;t<this.path.length;t++){const i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(0,St.D2)(n,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),(0,Yt.ud)(i.latestValues)&&(0,St.D2)(n,i.latestValues)}return(0,Yt.ud)(this.latestValues)&&(0,St.D2)(n,this.latestValues),n}removeTransform(t){var e;const n=(0,$.dO)();Ct(n,t);for(let t=0;t<this.path.length;t++){const i=this.path[t];if(!i.instance)continue;if(!(0,Yt.ud)(i.latestValues))continue;(0,Yt.Lj)(i.latestValues)&&i.updateSnapshot();const s=(0,$.dO)();Ct(s,i.measurePageBox()),Bt(n,i.latestValues,null===(e=i.snapshot)||void 0===e?void 0:e.layoutBox,s)}return(0,Yt.ud)(this.latestValues)&&Bt(n,this.latestValues),n}setTargetDelta(t){this.targetDelta=t,this.isProjectionDirty=!0,this.root.scheduleUpdateProjection()}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}resolveTargetDelta(){var t;const e=this.getLead();if(this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),!this.isProjectionDirty&&!this.attemptToResolveRelativeTarget)return;const{layout:n,layoutId:i}=this.options;if(this.layout&&(n||i)){if(!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout?(this.relativeParent=t,this.relativeTarget=(0,$.dO)(),this.relativeTargetOrigin=(0,$.dO)(),D(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),Ct(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}var s,o,r;if(this.relativeTarget||this.targetDelta)if(this.target||(this.target=(0,$.dO)(),this.targetWithTransforms=(0,$.dO)()),this.relativeTarget&&this.relativeTargetOrigin&&(null===(t=this.relativeParent)||void 0===t?void 0:t.target)?(s=this.target,o=this.relativeTarget,r=this.relativeParent.target,C(s.x,o.x,r.x),C(s.y,o.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Ct(this.target,this.layout.layoutBox),(0,St.o2)(this.target,this.targetDelta)):Ct(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target?(this.relativeParent=t,this.relativeTarget=(0,$.dO)(),this.relativeTargetOrigin=(0,$.dO)(),D(this.relativeTargetOrigin,this.target,t.target),Ct(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(this.parent&&!(0,Yt.Lj)(this.parent.latestValues)&&!(0,Yt.D_)(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var t;const{isProjectionDirty:e,isTransformDirty:n}=this;this.isProjectionDirty=this.isTransformDirty=!1;const i=this.getLead(),s=Boolean(this.resumingFrom)||this!==i;let o=!0;if(e&&(o=!1),s&&n&&(o=!1),o)return;const{layout:r,layoutId:a}=this.options;if(this.isTreeAnimating=Boolean((null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!r&&!a)return;Ct(this.layoutCorrected,this.layout.layoutBox),(0,St.YY)(this.layoutCorrected,this.treeScale,this.path,s);const{target:l}=i;if(!l)return;this.projectionDelta||(this.projectionDelta=(0,$.wc)(),this.projectionDeltaWithTransform=(0,$.wc)());const u=this.treeScale.x,c=this.treeScale.y,h=this.projectionTransform;E(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=Nt(this.projectionDelta,this.treeScale),this.projectionTransform===h&&this.treeScale.x===u&&this.treeScale.y===c||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e,n,i;null===(n=(e=this.options).scheduleRender)||void 0===n||n.call(e),t&&(null===(i=this.getStack())||void 0===i||i.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){var n,i;const s=this.snapshot,o=(null==s?void 0:s.latestValues)||{},r={...this.latestValues},a=(0,$.wc)();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!e;const l=(0,$.dO)(),u=(null==s?void 0:s.source)!==(null===(n=this.layout)||void 0===n?void 0:n.source),c=((null===(i=this.getStack())||void 0===i?void 0:i.members.length)||0)<=1,h=Boolean(u&&!c&&!0===this.options.crossfade&&!this.path.some(ce));this.animationProgress=0,this.mixTargetDelta=e=>{var n;const i=e/1e3;var s,d,p,m;le(a.x,t.x,i),le(a.y,t.y,i),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(n=this.relativeParent)||void 0===n?void 0:n.layout)&&(D(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),s=this.relativeTarget,d=this.relativeTargetOrigin,p=l,m=i,ue(s.x,d.x,p.x,m),ue(s.y,d.y,p.y,m)),u&&(this.animationValues=r,function(t,e,n,i,s,o){s?(t.opacity=(0,P.C)(0,void 0!==n.opacity?n.opacity:1,Tt(i)),t.opacityExit=(0,P.C)(void 0!==e.opacity?e.opacity:1,0,Vt(i))):o&&(t.opacity=(0,P.C)(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,i));for(let s=0;s<xt;s++){const o=`border${yt[s]}Radius`;let r=Pt(e,o),a=Pt(n,o);void 0===r&&void 0===a||(r||(r=0),a||(a=0),0===r||0===a||wt(r)===wt(a)?(t[o]=Math.max((0,P.C)(bt(r),bt(a),i),0),(Z.aQ.test(a)||Z.aQ.test(r))&&(t[o]+="%")):t[o]=a)}(e.rotate||n.rotate)&&(t.rotate=(0,P.C)(e.rotate||0,n.rotate||0,i))}(r,o,this.latestValues,i,h,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(0)}startAnimation(t){var e,n;this.notifyListeners("animationStart"),null===(e=this.currentAnimation)||void 0===e||e.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(o.qY.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=o.Z_.update((()=>{nt.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n={}){const i=(0,mt.i)(t)?t:(0,pt.B)(t);return i.start((0,W.Z)("",i,e,n)),{stop:()=>i.stop(),isAnimating:()=>i.isAnimating()}}(0,1e3,{...t,onUpdate:e=>{var n;this.mixTargetDelta(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:()=>{var e;null===(e=t.onComplete)||void 0===e||e.call(t),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){var t;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(t=this.getStack())||void 0===t||t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var t;this.currentAnimation&&(null===(t=this.mixTargetDelta)||void 0===t||t.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:i,latestValues:s}=t;if(e&&n&&i){if(this!==t&&this.layout&&i&&me(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||(0,$.dO)();const e=T(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const i=T(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}Ct(e,n),(0,St.D2)(e,s),E(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){var n,i,s;this.sharedNodes.has(t)||this.sharedNodes.set(t,new Ut);this.sharedNodes.get(t).add(e),e.promote({transition:null===(n=e.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(s=null===(i=e.options.initialPromotionConfig)||void 0===i?void 0:i.shouldPreserveFollowOpacity)||void 0===s?void 0:s.call(i,e)})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const i=this.getStack();i&&i.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(e=!0),!e)return;const i={};for(let e=0;e<Xt.length;e++){const s="rotate"+Xt[e];n[s]&&(i[s]=n[s],t.setStaticValue(s,0))}null==t||t.render();for(const e in i)t.setStaticValue(e,i[e]);t.scheduleRender()}getProjectionStyles(t={}){var e,n,i;const s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";const o=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=Ht(t.pointerEvents)||"",s.transform=o?o(this.latestValues,""):"none",s;const r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){const e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=Ht(t.pointerEvents)||""),this.hasProjected&&!(0,Yt.ud)(this.latestValues)&&(e.transform=o?o({},""):"none",this.hasProjected=!1),e}const a=r.animationValues||r.latestValues;this.applyTransformsToTarget(),s.transform=Nt(this.projectionDeltaWithTransform,this.treeScale,a),o&&(s.transform=o(a,s.transform));const{x:l,y:u}=this.projectionDelta;s.transformOrigin=`${100*l.origin}% ${100*u.origin}% 0`,r.animationValues?s.opacity=r===this?null!==(i=null!==(n=a.opacity)&&void 0!==n?n:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:s.opacity=r===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const t in ut.P){if(void 0===a[t])continue;const{correct:e,applyTo:n}=ut.P[t],i=e(a[t],r);if(n){const t=n.length;for(let e=0;e<t;e++)s[n[e]]=i}else s[t]=i}return this.options.layoutId&&(s.pointerEvents=r===this?Ht(t.pointerEvents)||"":"none"),s}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(ee),this.root.sharedNodes.clear()}}}function Kt(t){t.updateLayout()}function Jt(t){var e,n,i;const s=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&s&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:n}=t.layout,{animationType:i}=t.options,o=s.source!==t.layout.source;"size"===i?U((t=>{const n=o?s.measuredBox[t]:s.layoutBox[t],i=T(n);n.min=e[t].min,n.max=n.min+i})):me(i,s.layoutBox,e)&&U((t=>{const n=o?s.measuredBox[t]:s.layoutBox[t],i=T(e[t]);n.max=n.min+i}));const r=(0,$.wc)();E(r,e,s.layoutBox);const a=(0,$.wc)();o?E(a,t.applyTransform(n,!0),s.measuredBox):E(a,e,s.layoutBox);const l=!Ft(r);let u=!1;if(!t.resumeFrom){const n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){const{snapshot:t,layout:i}=n;if(t&&i){const n=(0,$.dO)();D(n,s.layoutBox,t.layoutBox);const o=(0,$.dO)();D(o,e,i.layoutBox),jt(n,o)||(u=!0)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:s,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else t.isLead()&&(null===(i=(n=t.options).onExitComplete)||void 0===i||i.call(n));t.options.transition=void 0}function Qt(t){t.isProjectionDirty||(t.isProjectionDirty=Boolean(t.parent&&t.parent.isProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=Boolean(t.parent&&t.parent.isTransformDirty))}function te(t){t.clearSnapshot()}function ee(t){t.clearMeasurements()}function ne(t){const{visualElement:e}=t.options;(null==e?void 0:e.getProps().onBeforeLayoutMeasure)&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ie(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function se(t){t.resolveTargetDelta()}function oe(t){t.calcProjection()}function re(t){t.resetRotation()}function ae(t){t.removeLeadSnapshot()}function le(t,e,n){t.translate=(0,P.C)(e.translate,0,n),t.scale=(0,P.C)(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function ue(t,e,n,i){t.min=(0,P.C)(e.min,n.min,i),t.max=(0,P.C)(e.max,n.max,i)}function ce(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const he={duration:.45,ease:[.4,0,.1,1]};function de(t,e){let n=t.root;for(let e=t.path.length-1;e>=0;e--)if(Boolean(t.path[e].instance)){n=t.path[e];break}const i=(n&&n!==t.root?n.instance:document).querySelector(`[data-projection-id="${e}"]`);i&&t.mount(i,!0)}function pe(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function me(t,e,n){return"position"===t||"preserve-aspect"===t&&!V(It(e),It(n),.2)}const fe=Gt({attachResizeListener:(t,e)=>(0,z.E)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ve={current:void 0},ge=Gt({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ve.current){const t=new fe(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),ve.current=t}return ve.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)});n(1610).H})()})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "framer-motion",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.3",
|
|
4
4
|
"description": "A simple and powerful React animation library",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/es/index.mjs",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"bundlesize": [
|
|
73
73
|
{
|
|
74
74
|
"path": "./dist/size-rollup-motion.js",
|
|
75
|
-
"maxSize": "29.
|
|
75
|
+
"maxSize": "29.39 kB"
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
78
|
"path": "./dist/size-rollup-m.js",
|
|
@@ -80,11 +80,11 @@
|
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
82
|
"path": "./dist/size-rollup-dom-animation.js",
|
|
83
|
-
"maxSize": "14.
|
|
83
|
+
"maxSize": "14.66 kB"
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
"path": "./dist/size-rollup-dom-max.js",
|
|
87
|
-
"maxSize": "25.
|
|
87
|
+
"maxSize": "25.35 kB"
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
"path": "./dist/size-webpack-m.js",
|
|
@@ -92,12 +92,12 @@
|
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
94
|
"path": "./dist/size-webpack-dom-animation.js",
|
|
95
|
-
"maxSize": "18.
|
|
95
|
+
"maxSize": "18.75 kB"
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
"path": "./dist/size-webpack-dom-max.js",
|
|
99
|
-
"maxSize": "30.
|
|
99
|
+
"maxSize": "30.3 kB"
|
|
100
100
|
}
|
|
101
101
|
],
|
|
102
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "07ac572ce1198a13245a8321275559c11597aeed"
|
|
103
103
|
}
|