framer-motion 7.6.7 → 7.6.9

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.
@@ -1 +1 @@
1
- (()=>{"use strict";var t={9340:(t,e,n)=>{n.d(e,{K:()=>i,k:()=>o});var i=function(){},o=function(){}},2819:(t,e,n)=>{n.d(e,{C:()=>i});const i=t=>Array.isArray(t)},3880:(t,e,n)=>{n.d(e,{ev:()=>wt,b8:()=>Pt});function i(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(t,i[o])&&(n[i[o]]=t[i[o]])}return n}Object.create;Object.create;var o=n(9340),s=n(1698);const r=.001;function a({duration:t=800,bounce:e=.25,velocity:n=0,mass:i=1}){let a,u;(0,o.K)(t<=1e4,"Spring duration must be 10 seconds or less");let c=1-e;c=(0,s.u)(.05,1,c),t=(0,s.u)(.01,10,t/1e3),c<1?(a=e=>{const i=e*c,o=i*t,s=i-n,a=l(e,c),u=Math.exp(-o);return r-s/a*u},u=e=>{const i=e*c*t,o=i*n+n,s=Math.pow(c,2)*Math.pow(e,2)*t,u=Math.exp(-i),h=l(Math.pow(e,2),c);return(-a(e)+r>0?-1:1)*((o-s)*u)/h}):(a=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,u=e=>Math.exp(-e*t)*(t*t*(n-e)));const h=function(t,e,n){let i=n;for(let n=1;n<12;n++)i-=t(i)/e(i);return i}(a,u,5/t);if(t*=1e3,isNaN(h))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(h,2)*i;return{stiffness:e,damping:2*c*Math.sqrt(i*e),duration:t}}}function l(t,e){return t*Math.sqrt(1-e*e)}const u=["duration","bounce"],c=["stiffness","damping","mass"];function h(t,e){return e.some((e=>void 0!==t[e]))}function d(t){var{from:e=0,to:n=1,restSpeed:o=2,restDelta:s}=t,r=i(t,["from","to","restSpeed","restDelta"]);const d={done:!1,value:e};let{stiffness:m,damping:f,mass:v,velocity:g,duration:y,isResolvedFromDuration:x}=function(t){let e=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!h(t,c)&&h(t,u)){const n=a(t);e=Object.assign(Object.assign(Object.assign({},e),n),{velocity:0,mass:1}),e.isResolvedFromDuration=!0}return e}(r),b=p,w=p;function P(){const t=g?-g/1e3:0,i=n-e,o=f/(2*Math.sqrt(m*v)),r=Math.sqrt(m/v)/1e3;if(void 0===s&&(s=Math.min(Math.abs(n-e)/100,.4)),o<1){const e=l(r,o);b=s=>{const a=Math.exp(-o*r*s);return n-a*((t+o*r*i)/e*Math.sin(e*s)+i*Math.cos(e*s))},w=n=>{const s=Math.exp(-o*r*n);return o*r*s*(Math.sin(e*n)*(t+o*r*i)/e+i*Math.cos(e*n))-s*(Math.cos(e*n)*(t+o*r*i)-e*i*Math.sin(e*n))}}else if(1===o)b=e=>n-Math.exp(-r*e)*(i+(t+r*i)*e);else{const e=r*Math.sqrt(o*o-1);b=s=>{const a=Math.exp(-o*r*s),l=Math.min(e*s,300);return n-a*((t+o*r*i)*Math.sinh(l)+e*i*Math.cosh(l))/e}}}return P(),{next:t=>{const e=b(t);if(x)d.done=t>=y;else{const i=1e3*w(t),r=Math.abs(i)<=o,a=Math.abs(n-e)<=s;d.done=r&&a}return d.value=d.done?n:e,d},flipTarget:()=>{g=-g,[e,n]=[n,e],P()}}}d.needsInterpolation=(t,e)=>"string"==typeof t||"string"==typeof e;const p=t=>0;var m=n(1790),f=n(8481),v=n(9012),g=n(3203),y=n(7493);function x(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}function b({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let o=0,s=0,r=0;if(e/=100){const i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;o=x(a,i,t+1/3),s=x(a,i,t),r=x(a,i,t-1/3)}else o=s=r=n;return{red:Math.round(255*o),green:Math.round(255*s),blue:Math.round(255*r),alpha:i}}const w=(t,e,n)=>{const i=t*t,o=e*e;return Math.sqrt(Math.max(0,n*(o-i)+i))},P=[v.$,g.m,y.J],S=t=>P.find((e=>e.test(t))),V=t=>`'${t}' is not an animatable color. Use the equivalent color code instead.`,E=(t,e)=>{let n=S(t),i=S(e);(0,o.k)(!!n,V(t)),(0,o.k)(!!i,V(e));let s=n.parse(t),r=i.parse(e);n===y.J&&(s=b(s),n=g.m),i===y.J&&(r=b(r),i=g.m);const a=Object.assign({},s);return t=>{for(const e in a)"alpha"!==e&&(a[e]=w(s[e],r[e],t));return a.alpha=(0,f.C)(s.alpha,r.alpha,t),n.transform(a)}};var A=n(7576),T=n(6002),C=n(5091),M=n(934);function R(t,e){return(0,C.e)(t)?n=>(0,f.C)(t,e,n):A.$.test(t)?E(t,e):D(t,e)}const O=(t,e)=>{const n=[...t],i=n.length,o=t.map(((t,n)=>R(t,e[n])));return t=>{for(let e=0;e<i;e++)n[e]=o[e](t);return n}},k=(t,e)=>{const n=Object.assign(Object.assign({},t),e),i={};for(const o in n)void 0!==t[o]&&void 0!==e[o]&&(i[o]=R(t[o],e[o]));return t=>{for(const e in i)n[e]=i[e](t);return n}};function B(t){const e=T.P.parse(t),n=e.length;let i=0,o=0,s=0;for(let t=0;t<n;t++)i||"number"==typeof e[t]?i++:void 0!==e[t].hue?s++:o++;return{parsed:e,numNumbers:i,numRGB:o,numHSL:s}}const D=(t,e)=>{const n=T.P.createTransformer(e),i=B(t),s=B(e);return i.numHSL===s.numHSL&&i.numRGB===s.numRGB&&i.numNumbers>=s.numNumbers?(0,M.z)(O(i.parsed,s.parsed),n):((0,o.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}`)},L=(t,e)=>n=>(0,f.C)(t,e,n);function j(t,e,n){const i=[],o=n||("number"==typeof(s=t[0])?L:"string"==typeof s?A.$.test(s)?E:D:Array.isArray(s)?O:"object"==typeof s?k:void 0);var s;const r=t.length-1;for(let n=0;n<r;n++){let s=o(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]:e;s=(0,M.z)(t,s)}i.push(s)}return i}function F(t,e,{clamp:n=!0,ease:i,mixer:r}={}){const a=t.length;(0,o.k)(a===e.length,"Both input and output ranges must be the same length"),(0,o.k)(!i||!Array.isArray(i)||i.length===a-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[a-1]&&(t=[].concat(t),e=[].concat(e),t.reverse(),e.reverse());const l=j(e,i,r),u=2===a?function([t,e],[n]){return i=>n((0,m.Y)(t,e,i))}(t,l):function(t,e){const n=t.length,i=n-1;return o=>{let s=0,r=!1;if(o<=t[0]?r=!0:o>=t[i]&&(s=i-1,r=!0),!r){let e=1;for(;e<n&&!(t[e]>o||e===i);e++);s=e-1}const a=(0,m.Y)(t[s],t[s+1],o);return e[s](a)}}(t,l);return n?e=>u((0,s.u)(t[0],t[a-1],e)):u}var I=n(6924);function U(t,e){return t.map((()=>e||I.mZ)).splice(0,t.length-1)}function $({from:t=0,to:e=1,ease:n,offset:i,duration:o=300}){const s={done:!1,value:t},r=Array.isArray(e)?e:[t,e],a=function(t,e){return t.map((t=>t*e))}(i&&i.length===r.length?i:function(t){const e=t.length;return t.map(((t,n)=>0!==n?n/(e-1):0))}(r),o);function l(){return F(a,r,{ease:Array.isArray(n)?n:U(r,n)})}let u=l();return{next:t=>(s.value=u(t),s.done=t>=o,s),flipTarget:()=>{r.reverse(),u=l()}}}const N={keyframes:$,spring:d,decay:function({velocity:t=0,from:e=0,power:n=.8,timeConstant:i=350,restDelta:o=.5,modifyTarget:s}){const r={done:!1,value:e};let a=n*t;const l=e+a,u=void 0===s?l:s(l);return u!==l&&(a=u-e),{next:t=>{const e=-a*Math.exp(-t/i);return r.done=!(e>o||e<-o),r.value=r.done?u:u+e,r},flipTarget:()=>{}}}};var Y=n(6162);function z(t,e,n=0){return t-e-n}const W=t=>{const e=({delta:e})=>t(e);return{start:()=>Y.ZP.update(e,!0),stop:()=>Y.qY.update(e)}};function H(t){var e,n,{from:o,autoplay:s=!0,driver:r=W,elapsed:a=0,repeat:l=0,repeatType:u="loop",repeatDelay:c=0,onPlay:h,onStop:p,onComplete:m,onRepeat:f,onUpdate:v}=t,g=i(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let y,x,b,{to:w}=g,P=0,S=g.duration,V=!1,E=!0;const A=function(t){if(Array.isArray(t.to))return $;if(N[t.type])return N[t.type];const e=new Set(Object.keys(t));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?$:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?d:$}(g);(null===(n=(e=A).needsInterpolation)||void 0===n?void 0:n.call(e,o,w))&&(b=F([0,100],[o,w],{clamp:!1}),o=0,w=100);const T=A(Object.assign(Object.assign({},g),{from:o,to:w}));function C(){P++,"reverse"===u?(E=P%2==0,a=function(t,e,n=0,i=!0){return i?z(e+-t,e,n):e-(t-e)+n}(a,S,c,E)):(a=z(a,S,c),"mirror"===u&&T.flipTarget()),V=!1,f&&f()}function M(t){if(E||(t=-t),a+=t,!V){const t=T.next(Math.max(0,a));x=t.value,b&&(x=b(x)),V=E?t.done:a<=0}null==v||v(x),V&&(0===P&&(null!=S||(S=a)),P<l?function(t,e,n,i){return i?t>=e+n:t<=-n}(a,S,c,E)&&C():(y.stop(),m&&m()))}return s&&(null==h||h(),y=r(M),y.start()),{stop:()=>{null==p||p(),y.stop()}}}var q=n(4060);var X=n(1818);const Z=(t,e)=>1-3*e+3*t,G=(t,e)=>3*e-6*t,K=t=>3*t,J=(t,e,n)=>((Z(e,n)*t+G(e,n))*t+K(e))*t,Q=(t,e,n)=>3*Z(e,n)*t*t+2*G(e,n)*t+K(e);const _=.1;function tt(t,e,n,i){if(t===e&&n===i)return I.GE;const o=new Float32Array(11);for(let e=0;e<11;++e)o[e]=J(e*_,t,n);function s(e){let i=0,s=1;for(;10!==s&&o[s]<=e;++s)i+=_;--s;const r=i+(e-o[s])/(o[s+1]-o[s])*_,a=Q(r,t,n);return a>=.001?function(t,e,n,i){for(let o=0;o<8;++o){const o=Q(e,n,i);if(0===o)return e;e-=(J(e,n,i)-t)/o}return e}(e,r,t,n):0===a?r:function(t,e,n,i,o){let s,r,a=0;do{r=e+(n-e)/2,s=J(r,i,o)-t,s>0?n=r:e=r}while(Math.abs(s)>1e-7&&++a<10);return r}(e,i,i+_,t,n)}return t=>0===t||1===t?t:J(s(t),e,i)}const et={linear:I.GE,easeIn:I.YQ,easeInOut:I.mZ,easeOut:I.Vv,circIn:I.Z7,circInOut:I.X7,circOut:I.Bn,backIn:I.G2,backInOut:I.XL,backOut:I.CG,anticipate:I.LU,bounceIn:I.h9,bounceInOut:I.yD,bounceOut:I.gJ},nt=t=>{if(Array.isArray(t)){(0,o.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,i,s]=t;return tt(e,n,i,s)}return"string"==typeof t?((0,o.k)(void 0!==et[t],`Invalid easing type '${t}'`),et[t]):t},it=(t,e)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!T.P.test(e)||e.startsWith("url(")));var ot=n(2819);const st=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),rt=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),at=()=>({type:"keyframes",ease:"linear",duration:.3}),lt=t=>({type:"keyframes",duration:.8,values:t}),ut={x:st,y:st,z:st,rotate:st,rotateX:st,rotateY:st,rotateZ:st,scaleX:rt,scaleY:rt,scale:rt,opacity:at,backgroundColor:at,color:at,default:rt},ct=(t,e)=>{let n;return n=(0,ot.C)(e)?lt:ut[t]||ut.default,{to:e,...n(e)}};var ht=n(6914);const dt=!1;var pt=n(7048),mt=n(2866);let ft=!1;function vt({ease:t,times:e,yoyo:n,flip:i,loop:s,...r}){const a={...r};return e&&(a.offset=e),r.duration&&(a.duration=(0,X.w)(r.duration)),r.repeatDelay&&(a.repeatDelay=(0,X.w)(r.repeatDelay)),t&&(a.ease=(t=>Array.isArray(t)&&"number"!=typeof t[0])(t)?t.map(nt):nt(t)),"tween"===r.type&&(a.type="keyframes"),(n||s||i)&&((0,o.K)(!ft,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),ft=!0,n?a.repeatType="reverse":s?a.repeatType="loop":i&&(a.repeatType="mirror"),a.repeat=s||n||i||r.repeat),"spring"!==r.type&&(a.type="keyframes"),a}function gt(t,e,n){return Array.isArray(e.to)&&void 0===t.duration&&(t.duration=.8),function(t){Array.isArray(t.to)&&null===t.to[0]&&(t.to=[...t.to],t.to[0]=t.from)}(e),function({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:o,repeat:s,repeatType:r,repeatDelay:a,from:l,...u}){return!!Object.keys(u).length}(t)||(t={...t,...ct(n,e.to)}),{...e,...vt(t)}}function yt(t,e,n,i,s){const r=wt(i,t)||{};let a=void 0!==r.from?r.from:e.get();const l=it(t,n);"none"===a&&l&&"string"==typeof n?a=(0,ht.T)(t,n):xt(a)&&"string"==typeof n?a=bt(n):!Array.isArray(n)&&xt(n)&&"string"==typeof a&&(n=bt(a));const u=it(t,a);return(0,o.K)(u===l,`You are trying to animate ${t} from "${a}" to "${n}". ${a} is not an animatable value - to enable this animation set ${a} to a value animatable to ${n} via the \`style\` property.`),u&&l&&!1!==r.type?function(){const i={from:a,to:n,velocity:e.getVelocity(),onComplete:s,onUpdate:t=>e.set(t)};return"inertia"===r.type||"decay"===r.type?function({from:t=0,velocity:e=0,min:n,max:i,power:o=.8,timeConstant:s=750,bounceStiffness:r=500,bounceDamping:a=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:h,onComplete:d,onStop:p}){let m;function f(t){return void 0!==n&&t<n||void 0!==i&&t>i}function v(t){return void 0===n?i:void 0===i||Math.abs(n-t)<Math.abs(i-t)?n:i}function g(t){null==m||m.stop(),m=H(Object.assign(Object.assign({},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 y(t){g(Object.assign({type:"spring",stiffness:r,damping:a,restDelta:l},t))}if(f(t))y({from:t,velocity:e,to:v(t)});else{let i=o*e+t;void 0!==u&&(i=u(i));const r=v(i),a=r===n?-1:1;let c,h;const d=t=>{c=h,h=t,e=(0,q.R)(t-c,(0,Y.$B)().delta),(1===a&&t>r||-1===a&&t<r)&&y({from:t,to:r,velocity:e})};g({type:"decay",from:t,velocity:e,timeConstant:s,power:o,restDelta:l,modifyTarget:u,onUpdate:f(i)?d:void 0})}return{stop:()=>null==m?void 0:m.stop()}}({...i,...r}):H({...gt(r,i,t),onUpdate:t=>{i.onUpdate(t),r.onUpdate&&r.onUpdate(t)},onComplete:()=>{i.onComplete(),r.onComplete&&r.onComplete()}})}:function(){const t=(0,pt.Y)(n);return e.set(t),s(),r.onUpdate&&r.onUpdate(t),r.onComplete&&r.onComplete(),{stop:()=>{}}}}function xt(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function bt(t){return"number"==typeof t?0:(0,ht.T)("",t)}function wt(t,e){return t[e]||t.default||t}function Pt(t,e,n,i={}){return dt&&(i={type:!1}),e.start((o=>{let s;const r=yt(t,e,n,i,o),a=function(t,e){var n,i;return null!==(i=null!==(n=(wt(t,e)||{}).delay)&&void 0!==n?n:t.delay)&&void 0!==i?i:0}(i,t),l=()=>s=r();let u;return a?u=(0,mt.g)(l,(0,X.w)(a)):l(),()=>{u&&u(),s&&s.stop()}}))}},1930:(t,e,n)=>{n.d(e,{oO:()=>s});var i=n(8370),o=n(7866);function s(){const t=(0,i.useContext)(o.O);if(null===t)return[!0,null];const{isPresent:e,onExitComplete:n,register:s}=t,r=(0,i.useId)();(0,i.useEffect)((()=>s(r)),[]);return!e&&n?[!1,()=>n&&n(r)]:[!0]}},7866:(t,e,n)=>{n.d(e,{O:()=>o});var i=n(8370);const o=(0,i.createContext)(null)},409:(t,e,n)=>{n.d(e,{Qk:()=>a,qT:()=>l});var i=n(3541);const o={pageX:0,pageY:0};function s(t,e="page"){const n=t.touches[0]||t.changedTouches[0]||o;return{x:n[e+"X"],y:n[e+"Y"]}}function r(t,e="page"){return{x:t[e+"X"],y:t[e+"Y"]}}function a(t,e="page"){return{point:(0,i.z)(t)?s(t,e):r(t,e)}}const l=(t,e=!1)=>{const n=e=>t(e,a(e));return e?(i=n,t=>{const e=t instanceof MouseEvent;(!e||e&&0===t.button)&&i(t)}):n;var i}},1876:(t,e,n)=>{n.d(e,{E:()=>o,p:()=>s});var i=n(8370);function o(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function s(t,e,n,s){(0,i.useEffect)((()=>{const i=t.current;if(n&&i)return o(i,e,n,s)}),[t,e,n,s])}},1395:(t,e,n)=>{n.d(e,{a:()=>u,m:()=>c});var i=n(1876),o=n(409),s=n(3093);const r={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},a={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function l(t){return s.j&&null===window.onpointerdown?t:s.j&&null===window.ontouchstart?a[t]:s.j&&null===window.onmousedown?r[t]:t}function u(t,e,n,s){return(0,i.E)(t,l(e),(0,o.qT)(n,"pointerdown"===e),s)}function c(t,e,n,s){return(0,i.p)(t,l(e),n&&(0,o.qT)(n,"pointerdown"===e),s)}},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 o=i("dragHorizontal"),s=i("dragVertical");function r(t){let e=!1;if("y"===t)e=s();else if("x"===t)e=o();else{const t=o(),n=s();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function a(){const t=r(!0);return!t||(t(),!1)}},3541:(t,e,n)=>{function i(t){return"undefined"!=typeof PointerEvent&&t instanceof PointerEvent?!("mouse"!==t.pointerType):t instanceof MouseEvent}function o(t){return!!t.touches}n.d(e,{N:()=>i,z:()=>o})},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 o({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function s(t,e){if(!e)return t;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:()=>s,i8:()=>i,z2:()=>o})},1360:(t,e,n)=>{n.d(e,{D2:()=>m,YY:()=>u,am:()=>c,o2:()=>l,q2:()=>s});var i=n(8481),o=n(4918);function s(t,e,n){return n+e*(t-n)}function r(t,e,n,i,o){return void 0!==o&&(t=s(t,o,i)),s(t,n,i)+e}function a(t,e=0,n=1,i,o){t.min=r(t.min,e,n,i,o),t.max=r(t.max,e,n,i,o)}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 s,r;const a=n.length;if(!a)return;let u,c;e.x=e.y=1;for(let h=0;h<a;h++)u=n[h],c=u.projectionDelta,"contents"!==(null===(r=null===(s=u.instance)||void 0===s?void 0:s.style)||void 0===r?void 0:r.display)&&(i&&u.options.layoutScroll&&u.scroll&&u!==u.root&&m(t,{x:-u.scroll.x,y:-u.scroll.y}),c&&(e.x*=c.x.scale,e.y*=c.y.scale,l(t,c)),i&&(0,o.ud)(u.latestValues)&&m(t,u.latestValues))}function c(t,e){t.min=t.min+e,t.max=t.max+e}function h(t,e,[n,o,s]){const r=void 0!==e[s]?e[s]:.5,l=(0,i.C)(t.min,t.max,r);a(t,e[n],e[o],l,e.scale)}const d=["x","scaleX","originX"],p=["y","scaleY","originY"];function m(t,e){h(t.x,e,d),h(t.y,e,p)}},1397:(t,e,n)=>{n.d(e,{dO:()=>o,wc:()=>i});const i=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),o=()=>({x:{min:0,max:0},y:{min:0,max:0}})},798:(t,e,n)=>{n.d(e,{B:()=>o,P:()=>i});const i={};function o(t){Object.assign(i,t)}},4918:(t,e,n)=>{function i(t){return void 0===t||1===t}function o({scale:t,scaleX:e,scaleY:n}){return!i(t)||!i(e)||!i(n)}function s(t){return o(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:()=>o,ud:()=>s})},8834:(t,e,n)=>{n.d(e,{J:()=>s,z:()=>r});var i=n(483),o=n(1360);function s(t,e){return(0,i.i8)((0,i.d7)(t.getBoundingClientRect(),e))}function r(t,e,n){const i=s(t,n),{scroll:r}=e;return r&&((0,o.am)(i.x,r.x),(0,o.am)(i.y,r.y)),i}},5151:(t,e,n)=>{n.d(e,{H:()=>ce});var i=n(8370);function o(t){return"object"==typeof t&&"function"==typeof t.start}var s=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}var u=n(3880),c=n(6002);const h=t=>/^0[^.\s]+$/.test(t);var d=n(7048),p=n(1421),m=n(6914),f=n(7576),v=n(1513),g=n(155);const y=t=>e=>e.test(t),x=[v.Rx,g.px,g.aQ,g.RW,g.vw,g.vh,{test:t=>"auto"===t,parse:t=>t}],b=t=>x.find(y(t)),w=[...x,f.$,c.P],P=t=>w.find(y(t));function S(t,e,n,i={},o={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,i,o)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,i,o)),e}function V(t,e,n){const i=t.getProps();return S(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 E(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,p.B)(n))}function A(t,e){const n=V(t,e);let{transitionEnd:i={},transition:o={},...s}=n?t.makeTargetAnimatable(n,!1):{};s={...s,...i};for(const e in s){E(t,e,(0,d.Y)(s[e]))}}function T(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"],M=new Set(C);var R=n(7846);function O(t){return Boolean((0,R.i)(t)&&t.add)}function k(t,e,n={}){var i;const o=V(t,e,n.custom);let{transition:s=t.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(s=n.transitionOverride);const r=o?()=>B(t,o,n):()=>Promise.resolve(),a=(null===(i=t.variantChildren)||void 0===i?void 0:i.size)?(i=0)=>{const{delayChildren:o=0,staggerChildren:r,staggerDirection:a}=s;return function(t,e,n=0,i=0,o=1,s){const r=[],a=(t.variantChildren.size-1)*i,l=1===o?(t=0)=>t*i:(t=0)=>a-t*i;return Array.from(t.variantChildren).sort(D).forEach(((t,i)=>{r.push(k(t,e,{...s,delay:n+l(i)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(r)}(t,e,o+i,r,a,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[t,e]="beforeChildren"===l?[r,a]:[a,r];return t().then(e)}return Promise.all([r(),a(n.delay)])}function B(t,e,{delay:n=0,transitionOverride:i,type:o}={}){var s;let{transition:r=t.getDefaultTransition(),transitionEnd:a,...l}=t.makeTargetAnimatable(e);const c=t.getValue("willChange");i&&(r=i);const h=[],d=o&&(null===(s=t.animationState)||void 0===s?void 0:s.getState()[o]);for(const e in l){const i=t.getValue(e),o=l[e];if(!i||void 0===o||d&&L(d,e))continue;let s={delay:n,...r};t.shouldReduceMotion&&M.has(e)&&(s={...s,type:!1,delay:0});let a=(0,u.b8)(e,i,o,s);O(c)&&(c.add(e),a=a.then((()=>c.remove(e)))),h.push(a)}return Promise.all(h).then((()=>{a&&A(t,a)}))}function D(t,e){return t.sortNodePosition(e)}function L({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}function j(t){return"string"==typeof t||Array.isArray(t)}var F=n(7921);const I=[F.r.Animate,F.r.InView,F.r.Focus,F.r.Hover,F.r.Tap,F.r.Drag,F.r.Exit],U=[...I].reverse(),$=I.length;function N(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 o=e.map((e=>k(t,e,n)));i=Promise.all(o)}else if("string"==typeof e)i=k(t,e,n);else{const o="function"==typeof e?V(t,e,n.custom):e;i=B(t,o,n)}return i.then((()=>t.notify("AnimationComplete",e)))}(t,e,n))))}function Y(t){let e=N(t);const n={[F.r.Animate]:W(!0),[F.r.InView]:W(),[F.r.Hover]:W(),[F.r.Tap]:W(),[F.r.Drag]:W(),[F.r.Focus]:W(),[F.r.Exit]:W()};let i=!0;const s=(e,n)=>{const i=V(t,n);if(i){const{transition:t,transitionEnd:n,...o}=i;e={...e,...o,...n}}return e};function r(r,u){var c;const h=t.getProps(),d=t.getVariantContext(!0)||{},p=[],m=new Set;let f={},v=1/0;for(let e=0;e<$;e++){const g=U[e],y=n[g],x=null!==(c=h[g])&&void 0!==c?c:d[g],b=j(x),w=g===u?y.isActive:null;!1===w&&(v=e);let P=x===d[g]&&x!==h[g]&&b;if(P&&i&&t.manuallyAnimateOnMount&&(P=!1),y.protectedKeys={...f},!y.isActive&&null===w||!x&&!y.prevProp||o(x)||"boolean"==typeof x)continue;const S=z(y.prevProp,x);let V=S||g===u&&y.isActive&&!P&&b||e>v&&b;const E=Array.isArray(x)?x:[x];let A=E.reduce(s,{});!1===w&&(A={});const{prevResolvedValues:T={}}=y,C={...T,...A},M=t=>{V=!0,m.delete(t),y.needsAnimating[t]=!0};for(const t in C){const e=A[t],n=T[t];f.hasOwnProperty(t)||(e!==n?(0,a.C)(e)&&(0,a.C)(n)?!l(e,n)||S?M(t):y.protectedKeys[t]=!0:void 0!==e?M(t):m.add(t):void 0!==e&&m.has(t)?M(t):y.protectedKeys[t]=!0)}y.prevProp=x,y.prevResolvedValues=A,y.isActive&&(f={...f,...A}),i&&t.blockInitialAnimation&&(V=!1),V&&!P&&p.push(...E.map((t=>({animation:t,options:{type:g,...r}}))))}if(m.size){const e={};m.forEach((n=>{const i=t.getBaseTarget(n);void 0!==i&&(e[n]=i)})),p.push({animation:e})}let g=Boolean(p.length);return i&&!1===h.initial&&!t.manuallyAnimateOnMount&&(g=!1),i=!1,g?e(p):Promise.resolve()}return{animateChanges:r,setActive:function(e,i,o){var s;if(n[e].isActive===i)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.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(o,e);for(const t in n)n[t].protectedKeys={};return a},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}function z(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!l(e,t)}function W(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var H=n(6295);const q={animation:(0,H.x)((({visualElement:t,animate:e})=>{t.animationState||(t.animationState=Y(t)),o(e)&&(0,i.useEffect)((()=>e.subscribe(t)),[e])})),exit:(0,H.x)((t=>{const{custom:e,visualElement:n}=t,[o,a]=(0,s.oO)(),l=(0,i.useContext)(r.O);(0,i.useEffect)((()=>{n.isPresent=o;const t=n.animationState&&n.animationState.setActive(F.r.Exit,!o,{custom:l&&l.custom||e});t&&!o&&t.then(a)}),[o])}))};var X=n(1876);var Z=n(3541),G=n(1395),K=n(5856);function J(t,e,n){return(i,o)=>{(0,Z.N)(i)&&!(0,K.gD)()&&(t.animationState&&t.animationState.setActive(F.r.Hover,e),n&&n(i,o))}}const Q=(t,e)=>!!e&&(t===e||Q(t,e.parentElement));var _=n(9531),tt=n(934);const et=("undefined"==typeof process||process.env,"production"),nt=new Set;const it=new WeakMap,ot=new WeakMap,st=t=>{const e=it.get(t.target);e&&e(t)},rt=t=>{t.forEach(st)};function at(t,e,n){const i=function({root:t,...e}){const n=t||document;ot.has(n)||ot.set(n,{});const i=ot.get(n),o=JSON.stringify(e);return i[o]||(i[o]=new IntersectionObserver(rt,{root:t,...e})),i[o]}(e);return it.set(t,n),i.observe(t),()=>{it.delete(t),i.unobserve(t)}}const lt={some:0,all:1};function ut(t,e,n,{root:o,margin:s,amount:r="some",once:a}){(0,i.useEffect)((()=>{if(!t||!n.current)return;const i={root:null==o?void 0:o.current,rootMargin:s,threshold:"number"==typeof r?r:lt[r]};return at(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(F.r.InView,i);const o=n.getProps(),s=i?o.onViewportEnter:o.onViewportLeave;s&&s(t)}))}),[t,o,s,r])}function ct(t,e,n,{fallback:o=!0}){(0,i.useEffect)((()=>{var i,s;t&&o&&("production"!==et&&(i="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",!1||nt.has(i)||(console.warn(i),s&&console.warn(s),nt.add(i))),requestAnimationFrame((()=>{e.hasEnteredView=!0;const{onViewportEnter:t}=n.getProps();t&&t(null),n.animationState&&n.animationState.setActive(F.r.InView,!0)})))}),[t])}const ht={inView:(0,H.x)((function({visualElement:t,whileInView:e,onViewportEnter:n,onViewportLeave:o,viewport:s={}}){const r=(0,i.useRef)({hasEnteredView:!1,isInView:!1});let a=Boolean(e||n||o);s.once&&r.current.hasEnteredView&&(a=!1),("undefined"==typeof IntersectionObserver?ct:ut)(a,r.current,t,s)})),tap:(0,H.x)((function({onTap:t,onTapStart:e,onTapCancel:n,whileTap:o,visualElement:s}){const r=t||e||n||o,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,s.animationState&&s.animationState.setActive(F.r.Tap,!1),!(0,K.gD)()}function d(e,i){h()&&(Q(s.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,tt.z)((0,G.a)(window,"pointerup",d,u),(0,G.a)(window,"pointercancel",p,u)),s.animationState&&s.animationState.setActive(F.r.Tap,!0),e&&e(t,n))}(0,G.m)(s,"pointerdown",r?m:void 0,u),(0,_.z)(c)})),focus:(0,H.x)((function({whileFocus:t,visualElement:e}){const{animationState:n}=e;(0,X.p)(e,"focus",t?()=>{n&&n.setActive(F.r.Focus,!0)}:void 0),(0,X.p)(e,"blur",t?()=>{n&&n.setActive(F.r.Focus,!1)}:void 0)})),hover:(0,H.x)((function({onHoverStart:t,onHoverEnd:e,whileHover:n,visualElement:i}){(0,G.m)(i,"pointerenter",t||n?J(i,!0,t):void 0,{passive:!t}),(0,G.m)(i,"pointerleave",e||n?J(i,!1,e):void 0,{passive:!e})}))},dt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},pt=(t,e)=>C.indexOf(t)-C.indexOf(e);function mt(t){return t.startsWith("--")}const ft=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var vt=n(4923);function gt(t,e,n,i){const{style:o,vars:s,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(mt(t)){s[t]=n;continue}const i=vt.j[t],d=ft(n,i);if(M.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):o[t]=d}if(e.transform||(u||i?o.transform=function({transform:t,transformKeys:e},{enableHardwareAcceleration:n=!0,allowTransformNone:i=!0},o,s){let r="";e.sort(pt);for(const n of e)r+=`${dt[n]||n}(${t[n]}) `;return n&&!t.z&&(r+="translateZ(0)"),r=r.trim(),s?r=s(t,o?"":r):i&&o&&(r="none"),r}(t,n,h,i):o.transform&&(o.transform="none")),c){const{originX:t="50%",originY:e="50%",originZ:n=0}=l;o.transformOrigin=`${t} ${e} ${n}`}}var yt=n(798);function xt(t,{layout:e,layoutId:n}){return M.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!yt.P[t]||"opacity"===t)}function bt(t){const{style:e}=t,n={};for(const i in e)((0,R.i)(e[i])||xt(i,t))&&(n[i]=e[i]);return n}function wt(t,{style:e,vars:n},i,o){Object.assign(t.style,e,o&&o.getProjectionStyles(i));for(const e in n)t.style.setProperty(e,n[e])}var Pt=n(7557),St=n(8834),Vt=n(6978),Et=n(9340),At=n(3093);const Tt=new Set(["width","height","top","left","right","bottom","x","y"]),Ct=t=>Tt.has(t),Mt=(t,e)=>{t.set(e,!1),t.set(e)},Rt=t=>t===v.Rx||t===g.px;var Ot;!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(Ot||(Ot={}));const kt=(t,e)=>parseFloat(t.split(", ")[e]),Bt=(t,e)=>(n,{transform:i})=>{if("none"===i||!i)return 0;const o=i.match(/^matrix3d\((.+)\)$/);if(o)return kt(o[1],e);{const e=i.match(/^matrix\((.+)\)$/);return e?kt(e[1],t):0}},Dt=new Set(["x","y","z"]),Lt=C.filter((t=>!Dt.has(t)));const jt={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)},Ft=(t,e,n={},i={})=>{e={...e},i={...i};const o=Object.keys(e).filter(Ct);let s=[],r=!1;const l=[];if(o.forEach((o=>{const u=t.getValue(o);if(!t.hasValue(o))return;let c=n[o],h=b(c);const d=e[o];let p;if((0,a.C)(d)){const t=d.length,e=null===d[0]?1:0;c=d[e],h=b(c);for(let n=e;n<t;n++)p?(0,Et.k)(b(d[n])===p,"All keyframes must be of the same type"):(p=b(d[n]),(0,Et.k)(p===h||Rt(h)&&Rt(p),"Keyframes must be of the same dimension as the current value"))}else p=b(d);if(h!==p)if(Rt(h)&&Rt(p)){const t=u.get();"string"==typeof t&&u.set(parseFloat(t)),"string"==typeof d?e[o]=parseFloat(d):Array.isArray(d)&&p===g.px&&(e[o]=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[o]=h.transform(d):(r||(s=function(t){const e=[];return Lt.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(o),i[o]=void 0!==i[o]?i[o]:e[o],Mt(u,d))})),l.length){const n=l.indexOf("height")>=0?window.pageYOffset:null,o=((t,e,n)=>{const i=e.measureViewportBox(),o=e.current,s=getComputedStyle(o),{display:r}=s,a={};"none"===r&&e.setStaticValue("display",t.display||"block"),n.forEach((t=>{a[t]=jt[t](i,s)})),e.render();const l=e.measureViewportBox();return n.forEach((n=>{const i=e.getValue(n);Mt(i,a[n]),t[n]=jt[n](l,s)})),t})(e,t,l);return s.length&&s.forEach((([e,n])=>{t.getValue(e).set(n)})),t.render(),At.j&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:i}}return{target:e,transitionEnd:i}};function It(t,e,n,i){return(t=>Object.keys(t).some(Ct))(e)?Ft(t,e,n,i):{target:e,transitionEnd:i}}var Ut=n(6162);const $t=t=>({isEnabled:e=>t.some((t=>!!e[t]))}),Nt={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 Yt=n(1397),zt=n(3491);const Wt={current:null},Ht={current:!1};var qt=n(1065);const Xt=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function Zt(t){return o(t.animate)||Xt.some((e=>j(t[e])))}const Gt=Object.keys(Nt),Kt=Gt.length,Jt=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];const Qt=["initial",...I],_t=Qt.length;class te extends class{constructor({parent:t,props:e,reducedMotionConfig:n,visualState:i},o={}){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=()=>Ut.ZP.render(this.render,!1,!0);const{latestValues:s,renderState:r}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=e.initial?{...s}:{},this.renderState=r,this.parent=t,this.props=e,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.isControllingVariants=Zt(e),this.isVariantNode=function(t){return Boolean(Zt(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!==s[t]&&(0,R.i)(e)&&(e.set(s[t],!1),O(a)&&a.add(t))}}scrapeMotionValuesFromProps(t){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))),Ht.current||function(){if(Ht.current=!0,At.j)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Wt.current=t.matches;t.addListener(e),e()}else Wt.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Wt.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(),Ut.qY.update(this.notifyUpdate),Ut.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=e.onChange((e=>{this.latestValues[t]=e,this.props.onUpdate&&Ut.ZP.update(this.notifyUpdate,!1,!0)})),i=e.onRenderRequest(this.scheduleRender);this.valueSubscriptions.set(t,(()=>{n(),i()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures(t,e,n,o,s,r){const a=[];"production"!==et&&n&&e&&(0,Et.k)(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let e=0;e<Kt;e++){const n=Gt[e],{isEnabled:o,Component:s}=Nt[n];o(t)&&s&&a.push((0,i.createElement)(s,{key:n,...t,visualElement:this}))}if(!this.projection&&s){this.projection=new s(o,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,zt.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,Yt.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(),this.props=t;for(let e=0;e<Jt.length;e++){const n=Jt[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 o in e){const s=e[o],r=n[o];if((0,R.i)(s))t.addValue(o,s),O(i)&&i.add(o);else if((0,R.i)(r))t.addValue(o,(0,p.B)(s)),O(i)&&i.remove(o);else if(r!==s)if(t.hasValue(o)){const e=t.getValue(o);!e.hasAnimated&&e.set(s)}else{const e=t.getStaticValue(o);t.addValue(o,(0,p.B)(void 0!==e?e:s))}}for(const i in n)void 0===e[i]&&t.removeValue(i);return e}(this,this.scrapeMotionValuesFromProps(t),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<_t;t++){const e=Qt[t],n=this.props[e];(j(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){this.hasValue(t)&&this.removeValue(t),this.values.set(t,e),this.latestValues[t]=e.get(),this.bindToMotionValue(t,e)}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,p.B)(e),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=S(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==i)return i;const o=this.getBaseTargetFromProps(this.props,t);return void 0===o||(0,R.i)(o)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:o}on(t,e){return this.events[t]||(this.events[t]=new qt.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},o){let s=function(t,e,n){var i;const o={};for(const s in t){const t=T(s,e);o[s]=void 0!==t?t:null===(i=n.getValue(s))||void 0===i?void 0:i.get()}return o}(n,t||{},this);if(i&&(e&&(e=i(e)),n&&(n=i(n)),s&&(s=i(s))),o){!function(t,e,n){var i,o;const s=Object.keys(e).filter((e=>!t.hasValue(e))),r=s.length;if(r)for(let a=0;a<r;a++){const r=s[a],l=e[r];let u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!==(o=null!==(i=n[r])&&void 0!==i?i:t.readValue(r))&&void 0!==o?o:e[r]),null!=u&&("string"==typeof u&&(/^\-?\d*\.?\d+$/.test(u)||h(u))?u=parseFloat(u):!P(u)&&c.P.test(l)&&(u=(0,m.T)(r,l)),t.addValue(r,(0,p.B)(u)),void 0===n[r]&&(n[r]=u),null!==u&&t.setBaseTarget(r,u))}}(this,n,s);const t=((t,e,n,i)=>{const o=(0,Vt.mH)(t,e,i);return It(t,e=o.target,n,i=o.transitionEnd)})(this,n,s,e);e=t.transitionEnd,n=t.target}return{transition:t,transitionEnd:e,...n}}}class ee extends te{readValueFromInstance(t,e){if(M.has(e)){const t=(0,Pt.A)(e);return t&&t.default||0}{const i=(n=t,window.getComputedStyle(n)),o=(mt(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,St.J)(t,e)}build(t,e,n,i){gt(t,e,n,i.transformTemplate)}scrapeMotionValuesFromProps(t){return bt(t)}renderInstance(t,e,n,i){wt(t,e,n,i)}}function ne(t,e,n){return"string"==typeof t?t:g.px.transform(e+n*t)}const ie={offset:"stroke-dashoffset",array:"stroke-dasharray"},oe={offset:"strokeDashoffset",array:"strokeDasharray"};function se(t,{attrX:e,attrY:n,originX:i,originY:o,pathLength:s,pathSpacing:r=1,pathOffset:a=0,...l},u,c){gt(t,l,u,c),t.attrs=t.style,t.style={};const{attrs:h,style:d,dimensions:p}=t;h.transform&&(p&&(d.transform=h.transform),delete h.transform),p&&(void 0!==i||void 0!==o||d.transform)&&(d.transformOrigin=function(t,e,n){return`${ne(e,t.x,t.width)} ${ne(n,t.y,t.height)}`}(p,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==e&&(h.x=e),void 0!==n&&(h.y=n),void 0!==s&&function(t,e,n=1,i=0,o=!0){t.pathLength=1;const s=o?ie:oe;t[s.offset]=g.px.transform(-i);const r=g.px.transform(e),a=g.px.transform(n);t[s.array]=`${r} ${a}`}(h,s,r,a,!1)}const re=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),ae=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);class le extends te{getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){var n;return M.has(e)?(null===(n=(0,Pt.A)(e))||void 0===n?void 0:n.default)||0:(e=ae.has(e)?e:re(e),t.getAttribute(e))}measureInstanceViewportBox(){return(0,Yt.dO)()}scrapeMotionValuesFromProps(t){return function(t){const e=bt(t);for(const n in t)(0,R.i)(t[n])&&(e["x"===n||"y"===n?"attr"+n.toUpperCase():n]=t[n]);return e}(t)}build(t,e,n,i){se(t,e,n,i.transformTemplate)}renderInstance(t,e,n,i){!function(t,e,n,i){wt(t,e,void 0,i);for(const n in e.attrs)t.setAttribute(ae.has(n)?n:re(n),e.attrs[n])}(t,e,0,i)}}const ue=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];const ce={renderer:(t,e)=>function(t){return"string"==typeof t&&!t.includes("-")&&!!(ue.indexOf(t)>-1||/[A-Z]/.test(t))}(t)?new le(e,{enableHardwareAcceleration:!1}):new ee(e,{enableHardwareAcceleration:!0}),...q,...ht}},6978:(t,e,n)=>{n.d(e,{Xp:()=>s,mH:()=>a});var i=n(9340);function o(t){return"string"==typeof t&&t.startsWith("var(--")}const s=/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=s.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():o(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(!o(e))return;const n=r(e,i);n&&t.set(n)}));for(const t in e){const s=e[t];if(!o(s))continue;const a=r(s,i);a&&(e[t]=a,n&&void 0===n[t]&&(n[t]=s))}return{target:e,transitionEnd:n}}},6914:(t,e,n)=>{n.d(e,{T:()=>r});var i=n(9500),o=n(6002),s=n(7557);function r(t,e){var n;let r=(0,s.A)(t);return r!==i.h&&(r=o.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(7576),o=n(9500);const s={...n(4923).j,color:i.$,backgroundColor:i.$,outlineColor:i.$,fill:i.$,stroke:i.$,borderColor:i.$,borderTopColor:i.$,borderRightColor:i.$,borderBottomColor:i.$,borderLeftColor:i.$,filter:o.h,WebkitFilter:o.h},r=t=>s[t]},4923:(t,e,n)=>{n.d(e,{j:()=>r});var i=n(155),o=n(1513),s=n(6933);const r={borderWidth:i.px,borderTopWidth:i.px,borderRightWidth:i.px,borderBottomWidth:i.px,borderLeftWidth:i.px,borderRadius:i.px,radius:i.px,borderTopLeftRadius:i.px,borderTopRightRadius:i.px,borderBottomRightRadius:i.px,borderBottomLeftRadius:i.px,width:i.px,maxWidth:i.px,height:i.px,maxHeight:i.px,size:i.px,top:i.px,right:i.px,bottom:i.px,left:i.px,padding:i.px,paddingTop:i.px,paddingRight:i.px,paddingBottom:i.px,paddingLeft:i.px,margin:i.px,marginTop:i.px,marginRight:i.px,marginBottom:i.px,marginLeft:i.px,rotate:i.RW,rotateX:i.RW,rotateY:i.RW,rotateZ:i.RW,scale:o.bA,scaleX:o.bA,scaleY:o.bA,scaleZ:o.bA,skew:i.RW,skewX:i.RW,skewY:i.RW,distance:i.px,translateX:i.px,translateY:i.px,translateZ:i.px,x:i.px,y:i.px,z:i.px,perspective:i.px,transformPerspective:i.px,opacity:o.Fq,originX:i.$C,originY:i.$C,originZ:i.px,zIndex:s.e,fillOpacity:o.Fq,strokeOpacity:o.Fq,numOctaves:s.e}},6933:(t,e,n)=>{n.d(e,{e:()=>i});const i={...n(1513).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 o(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}n.d(e,{cl:()=>o,y4:()=>i})},2866:(t,e,n)=>{n.d(e,{g:()=>o});var i=n(6162);function o(t,e){const n=performance.now(),o=({timestamp:s})=>{const r=s-n;r>=e&&(i.qY.read(o),t(r-e))};return i.ZP.read(o,!0),()=>i.qY.read(o)}},3093:(t,e,n)=>{n.d(e,{j:()=>i});const i="undefined"!=typeof document},3491:(t,e,n)=>{function i(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}n.d(e,{I:()=>i})},7048:(t,e,n)=>{n.d(e,{Y:()=>s,p:()=>o});var i=n(2819);const o=t=>Boolean(t&&"object"==typeof t&&t.mix&&t.toValue),s=t=>(0,i.C)(t)?t[t.length-1]||0:t},1065:(t,e,n)=>{n.d(e,{L:()=>o});var i=n(1180);class o{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 o=0;o<i;o++){const i=this.subscriptions[o];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:()=>o});var i=n(8370);function o(t){return(0,i.useEffect)((()=>()=>t()),[])}},1421:(t,e,n)=>{n.d(e,{B:()=>a});var i=n(6162),o=n(4060),s=n(1065);class r{constructor(t){var e;this.version="__VERSION__",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new s.L,this.velocityUpdateSubscribers=new s.L,this.renderSubscribers=new s.L,this.canTrackVelocity=!1,this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;const{delta:n,timestamp:o}=(0,i.$B)();this.lastUpdated!==o&&(this.timeDelta=n,this.lastUpdated=o,i.ZP.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),e&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>i.ZP.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e)))}onChange(t){return this.updateSubscribers.add(t)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(t){return t(this.get()),this.renderSubscribers.add(t)}attach(t){this.passiveEffect=t}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?(0,o.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)})).then((()=>this.clearAnimation()))}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function a(t){return new r(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},6162:(t,e,n)=>{n.d(e,{qY:()=>p,ZP:()=>x,iW:()=>m,$B:()=>y});const i=1/60*1e3,o="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),s="undefined"!=typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout((()=>t(o())),i);let r=!0,a=!1,l=!1;const u={delta:0,timestamp:0},c=["read","update","preRender","render","postRender"],h=c.reduce(((t,e)=>(t[e]=function(t){let e=[],n=[],i=0,o=!1,s=!1;const r=new WeakSet,a={schedule:(t,s=!1,a=!1)=>{const l=a&&o,u=l?e:n;return s&&r.add(t),-1===u.indexOf(t)&&(u.push(t),l&&o&&(i=e.length)),t},cancel:t=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1),r.delete(t)},process:l=>{if(o)s=!0;else{if(o=!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())}o=!1,s&&(s=!1,a.process(l))}}};return a}((()=>a=!0)),t)),{}),d=c.reduce(((t,e)=>{const n=h[e];return t[e]=(t,e=!1,i=!1)=>(a||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(u),t)),{}),f=t=>h[t].process(u),v=t=>{a=!1,u.delta=r?i:Math.max(Math.min(t-u.timestamp,40),1),u.timestamp=t,l=!0,c.forEach(f),l=!1,a&&(r=!1,s(v))},g=()=>{a=!0,r=!0,l||s(v)},y=()=>u,x=d},6924:(t,e,n)=>{n.d(e,{LU:()=>g,G2:()=>m,XL:()=>v,CG:()=>f,h9:()=>x,yD:()=>b,gJ:()=>y,Z7:()=>h,X7:()=>p,Bn:()=>d,YQ:()=>a,mZ:()=>c,Vv:()=>u,GE:()=>r});const i=t=>e=>1-t(1-e),o=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,s=t=>e=>e*e*((t+1)*e-t),r=t=>t,a=(l=2,t=>Math.pow(t,l));var l;const u=i(a),c=o(a),h=t=>1-Math.sin(Math.acos(t)),d=i(h),p=o(d),m=s(1.525),f=i(m),v=o(m),g=(t=>{const e=s(t);return t=>(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))})(1.525),y=t=>{if(1===t||0===t)return t;const e=t*t;return t<.36363636363636365?7.5625*e:t<.7272727272727273?9.075*e-9.9*t+3.4:t<.9?12.066481994459833*e-19.63545706371191*t+8.898060941828255:10.8*t*t-20.52*t+10.72},x=i(y),b=t=>t<.5?.5*(1-y(1-2*t)):.5*y(2*t-1)+.5},1698:(t,e,n)=>{n.d(e,{u:()=>i});const i=(t,e,n)=>Math.min(Math.max(n,t),e)},5091:(t,e,n)=>{n.d(e,{e:()=>i});const i=t=>"number"==typeof t},8481:(t,e,n)=>{n.d(e,{C:()=>i});const i=(t,e,n)=>-n*t+n*e+t},934:(t,e,n)=>{n.d(e,{z:()=>o});const i=(t,e)=>n=>e(t(n)),o=(...t)=>t.reduce(i)},1790:(t,e,n)=>{n.d(e,{Y:()=>i});const i=(t,e,n)=>{const i=e-t;return 0===i?1:(n-t)/i}},4060:(t,e,n)=>{function i(t,e){return e?t*(1e3/e):0}n.d(e,{R:()=>i})},9012:(t,e,n)=>{n.d(e,{$:()=>o});var i=n(3203);const o={test:(0,n(1552).i)("#"),parse:function(t){let e="",n="",i="",o="";return t.length>5?(e=t.substr(1,2),n=t.substr(3,2),i=t.substr(5,2),o=t.substr(7,2)):(e=t.substr(1,1),n=t.substr(2,1),i=t.substr(3,1),o=t.substr(4,1),e+=e,n+=n,i+=i,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:o?parseInt(o,16)/255:1}},transform:i.m.transform}},7493:(t,e,n)=>{n.d(e,{J:()=>a});var i=n(1513),o=n(155),s=n(5757),r=n(1552);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)+", "+o.aQ.transform((0,s.Nw)(e))+", "+o.aQ.transform((0,s.Nw)(n))+", "+(0,s.Nw)(i.Fq.transform(r))+")"}},7576:(t,e,n)=>{n.d(e,{$:()=>a});var i=n(5757),o=n(9012),s=n(7493),r=n(3203);const a={test:t=>r.m.test(t)||o.$.test(t)||s.J.test(t),parse:t=>r.m.test(t)?r.m.parse(t):s.J.test(t)?s.J.parse(t):o.$.parse(t),transform:t=>(0,i.HD)(t)?t:t.hasOwnProperty("red")?r.m.transform(t):s.J.transform(t)}},3203:(t,e,n)=>{n.d(e,{m:()=>l});var i=n(1513),o=n(5757),s=n(1552);const r=(0,o.uZ)(0,255),a=Object.assign(Object.assign({},i.Rx),{transform:t=>Math.round(r(t))}),l={test:(0,s.i)("rgb","red"),parse:(0,s.d)("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+a.transform(t)+", "+a.transform(e)+", "+a.transform(n)+", "+(0,o.Nw)(i.Fq.transform(s))+")"}},1552:(t,e,n)=>{n.d(e,{d:()=>s,i:()=>o});var i=n(5757);const o=(t,e)=>n=>Boolean((0,i.HD)(n)&&i.mj.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),s=(t,e,n)=>o=>{if(!(0,i.HD)(o))return o;const[s,r,a,l]=o.match(i.KP);return{[t]:parseFloat(s),[e]:parseFloat(r),[n]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},9500:(t,e,n)=>{n.d(e,{h:()=>l});var i=n(6002),o=n(5757);const s=new Set(["brightness","contrast","saturate","opacity"]);function r(t){let[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[i]=n.match(o.KP)||[];if(!i)return t;const r=n.replace(i,"");let a=s.has(e)?1:0;return i!==n&&(a*=100),e+"("+a+r+")"}const a=/([a-z-]*)\(.*?\)/g,l=Object.assign(Object.assign({},i.P),{getAnimatableNone:t=>{const e=t.match(a);return e?e.map(r).join(" "):t}})},6002:(t,e,n)=>{n.d(e,{P:()=>d});var i=n(7576),o=n(1513),s=n(5757);const r="${c}",a="${n}";function l(t){"number"==typeof t&&(t=`${t}`);const e=[];let n=0;const l=t.match(s.dA);l&&(n=l.length,t=t.replace(s.dA,r),e.push(...l.map(i.$.parse)));const u=t.match(s.KP);return u&&(t=t.replace(s.KP,a),e.push(...u.map(o.Rx.parse))),{values:e,numColors:n,tokenised:t}}function u(t){return l(t).values}function c(t){const{values:e,numColors:n,tokenised:o}=l(t),u=e.length;return t=>{let e=o;for(let o=0;o<u;o++)e=e.replace(o<n?r:a,o<n?i.$.transform(t[o]):(0,s.Nw)(t[o]));return e}}const h=t=>"number"==typeof t?0:t;const d={test:function(t){var e,n,i,o;return isNaN(t)&&(0,s.HD)(t)&&(null!==(n=null===(e=t.match(s.KP))||void 0===e?void 0:e.length)&&void 0!==n?n:0)+(null!==(o=null===(i=t.match(s.dA))||void 0===i?void 0:i.length)&&void 0!==o?o:0)>0},parse:u,createTransformer:c,getAnimatableNone:function(t){const e=u(t);return c(t)(e.map(h))}}},1513:(t,e,n)=>{n.d(e,{Fq:()=>s,Rx:()=>o,bA:()=>r});var i=n(5757);const o={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},s=Object.assign(Object.assign({},o),{transform:(0,i.uZ)(0,1)}),r=Object.assign(Object.assign({},o),{default:1})},155:(t,e,n)=>{n.d(e,{$C:()=>c,RW:()=>s,aQ:()=>r,px:()=>a,vh:()=>l,vw:()=>u});var i=n(5757);const o=t=>({test:e=>(0,i.HD)(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),s=o("deg"),r=o("%"),a=o("px"),l=o("vh"),u=o("vw"),c=Object.assign(Object.assign({},r),{parse:t=>r.parse(t)/100,transform:t=>r.transform(100*t)})},5757:(t,e,n)=>{n.d(e,{HD:()=>l,KP:()=>s,Nw:()=>o,dA:()=>r,mj:()=>a,uZ:()=>i});const i=(t,e)=>n=>Math.max(Math.min(n,e),t),o=t=>t%1?Number(t.toFixed(5)):t,s=/(-)?([\d]*\.?[\d])+/g,r=/(#[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,a=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function l(t){return"string"==typeof t}}},e={};function n(i){var o=e[i];if(void 0!==o)return o.exports;var s=e[i]={exports:{}};return t[i](s,s.exports,n),s.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),o=n(3541),s=n(409),r=n(6162),a=n(1818),l=n(1395);const u=t=>t.hasOwnProperty("x")&&t.hasOwnProperty("y"),c=t=>u(t)&&t.hasOwnProperty("z");var h=n(5091);const d=(t,e)=>Math.abs(t-e);function p(t,e){if((0,h.e)(t)&&(0,h.e)(e))return d(t,e);if(u(t)&&u(e)){const n=d(t.x,e.x),i=d(t.y,e.y),o=c(t)&&c(e)?d(t.z,e.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(i,2)+Math.pow(o,2))}}var m=n(934);class f{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=y(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=p(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:i}=t,{timestamp:o}=(0,r.$B)();this.history.push({...i,timestamp:o});const{onStart:s,onMove:a}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=v(e,this.transformPagePoint),(0,o.N)(t)&&0===t.buttons?this.handlePointerUp(t,e):r.ZP.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:i}=this.handlers,o=y(v(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),i&&i(t,o)},(0,o.z)(t)&&t.touches.length>1)return;this.handlers=e,this.transformPagePoint=n;const i=v((0,s.Qk)(t),this.transformPagePoint),{point:a}=i,{timestamp:u}=(0,r.$B)();this.history=[{...a,timestamp:u}];const{onSessionStart:c}=e;c&&c(t,y(i,this.history)),this.removeListeners=(0,m.z)((0,l.a)(window,"pointermove",this.handlePointerMove),(0,l.a)(window,"pointerup",this.handlePointerUp),(0,l.a)(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),r.qY.update(this.updatePoint)}}function v(t,e){return e?{point:e(t.point)}:t}function g(t,e){return{x:t.x-e.x,y:t.y-e.y}}function y({point:t},e){return{point:t,delta:g(t,b(e)),offset:g(t,x(e)),velocity:w(e,.1)}}function x(t){return t[0]}function b(t){return t[t.length-1]}function w(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const o=b(t);for(;n>=0&&(i=t[n],!(o.timestamp-i.timestamp>(0,a.w)(e)));)n--;if(!i)return{x:0,y:0};const s=(o.timestamp-i.timestamp)/1e3;if(0===s)return{x:0,y:0};const r={x:(o.x-i.x)/s,y:(o.y-i.y)/s};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}var P=n(5856),S=n(3491),V=n(8481),E=n(1790),A=n(1698);function T(t){return t.max-t.min}function C(t,e=0,n=.01){return p(t,e)<n}function M(t,e,n,i=.5){t.origin=i,t.originPoint=(0,V.C)(e.min,e.max,t.origin),t.scale=T(n)/T(e),(C(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=(0,V.C)(n.min,n.max,t.origin)-t.originPoint,(C(t.translate)||isNaN(t.translate))&&(t.translate=0)}function R(t,e,n,i){M(t.x,e.x,n.x,null==i?void 0:i.originX),M(t.y,e.y,n.y,null==i?void 0:i.originY)}function O(t,e,n){t.min=n.min+e.min,t.max=t.min+T(e)}function k(t,e,n){t.min=e.min-n.min,t.max=t.min+T(e)}function B(t,e,n){k(t.x,e.x,n.x),k(t.y,e.y,n.y)}function D(t,{min:e,max:n},i){return void 0!==e&&t<e?t=i?(0,V.C)(e,t,i.min):Math.max(t,e):void 0!==n&&t>n&&(t=i?(0,V.C)(n,t,i.max):Math.min(t,n)),t}function L(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 j(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 F(t,e){let n=.5;const i=T(t),o=T(e);return o>i?n=(0,E.Y)(e.min,e.max-i,t.min):i>o&&(n=(0,E.Y)(t.min,t.max-o,e.min)),(0,A.u)(0,1,n)}const I=.35;function U(t,e,n){return{min:$(t,e),max:$(t,n)}}function $(t,e){var n;return"number"==typeof t?t:null!==(n=t[e])&&void 0!==n?n:0}var N=n(7921),Y=n(1397);function z(t){return[t("x"),t("y")]}var W=n(8834),H=n(3880),q=n(483),X=n(1876),Z=n(155);const G=new WeakMap;class K{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,Y.dO)(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){if(!1===this.visualElement.isPresent)return;this.panSession=new f(t,{onSessionStart:t=>{this.stopAnimation(),e&&this.snapToCursor((0,s.Qk)(t,"page").point)},onStart:(t,e)=>{var n;const{drag:i,dragPropagation:o,onDragStart:s}=this.getProps();(!i||o||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=(0,P.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),z((t=>{var e,n;let i=this.getAxisMotionValue(t).get()||0;if(Z.aQ.test(i)){const o=null===(n=null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout)||void 0===n?void 0:n.layoutBox[t];if(o){i=T(o)*(parseFloat(i)/100)}}this.originPoint[t]=i})),null==s||s(t,e),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(N.r.Drag,!0))},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:i,onDirectionLock:o,onDrag:s}=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==o||o(this.currentDirection)));this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),null==s||s(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:o}=this.getProps();null==o||o(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(N.r.Drag,!1)}updateAxis(t,e,n){const{drag:i}=this.getProps();if(!n||!J(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=D(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:e}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;t&&(0,S.I)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!n)&&function(t,{top:e,left:n,bottom:i,right:o}){return{x:L(t.x,n,o),y:L(t.y,e,i)}}(n.layoutBox,t),this.elastic=function(t=I){return!1===t?t=0:!0===t&&(t=I),{x:U(t,"left","right"),y:U(t,"top","bottom")}}(e),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&z((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,S.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:o}=this.visualElement;if(!o||!o.layout)return!1;const s=(0,W.z)(n,o.root,this.visualElement.getTransformPagePoint());let r=function(t,e){return{x:j(t.x,e.x),y:j(t.y,e.y)}}(o.layout.layoutBox,s);if(e){const t=e((0,q.z2)(r));this.hasMutatedConstraints=!!t,t&&(r=(0,q.i8)(t))}return r}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},l=z((r=>{var l;if(!J(r,e,this.currentDirection))return;let u=null!==(l=null==a?void 0:a[r])&&void 0!==l?l:{};s&&(u={min:0,max:0});const c=i?200:1e6,h=i?40:1e7,d={type:"inertia",velocity:n?t[r]:0,bounceStiffness:c,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...u};return this.startAxisValueAnimation(r,d)}));return Promise.all(l).then(r)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return(0,H.b8)(t,n,0,e)}stopAnimation(){z((t=>this.getAxisMotionValue(t).stop()))}getAxisMotionValue(t){var e,n;const i="_drag"+t.toUpperCase(),o=this.visualElement.getProps()[i];return o||this.visualElement.getValue(t,null!==(n=null===(e=this.visualElement.getProps().initial)||void 0===e?void 0:e[t])&&void 0!==n?n:0)}snapToCursor(t){z((e=>{const{drag:n}=this.getProps();if(!J(e,n,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(e);if(i&&i.layout){const{min:n,max:s}=i.layout.layoutBox[e];o.set(t[e]-(0,V.C)(n,s,.5))}}))}scalePositionWithinConstraints(){var t;if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!(0,S.I)(n)||!i||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};z((t=>{const e=this.getAxisMotionValue(t);if(e){const n=e.get();o[t]=F({min:n,max:n},this.constraints[t])}}));const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",null===(t=i.root)||void 0===t||t.updateScroll(),i.updateLayout(),this.resolveConstraints(),z((t=>{if(!J(t,e,null))return;const n=this.getAxisMotionValue(t),{min:i,max:s}=this.constraints[t];n.set((0,V.C)(i,s,o[t]))}))}addListeners(){var t;if(!this.visualElement.current)return;G.set(this.visualElement,this);const e=this.visualElement.current,n=(0,l.a)(e,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),i=()=>{const{dragConstraints:t}=this.getProps();(0,S.I)(t)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,s=o.addEventListener("measure",i);o&&!o.layout&&(null===(t=o.root)||void 0===t||t.updateScroll(),o.updateLayout()),i();const r=(0,X.E)(window,"resize",(()=>this.scalePositionWithinConstraints())),a=o.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(z((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(),s(),null==a||a()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=I,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:r}}}function J(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const Q=(0,t.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});var _=n(9531);var tt=n(6295);const et={pan:(0,tt.x)((function({onPan:e,onPanStart:n,onPanEnd:i,onPanSessionStart:o,visualElement:s}){const r=e||n||i||o,a=(0,t.useRef)(null),{transformPagePoint:u}=(0,t.useContext)(Q),c={onSessionStart:o,onStart:n,onMove:e,onEnd:(t,e)=>{a.current=null,i&&i(t,e)}};(0,t.useEffect)((()=>{null!==a.current&&a.current.updateHandlers(c)})),(0,l.m)(s,"pointerdown",r&&function(t){a.current=new f(t,c,{transformPagePoint:u})}),(0,_.z)((()=>a.current&&a.current.end()))})),drag:(0,tt.x)((function(e){const{dragControls:n,visualElement:i}=e,o=function(e){const n=(0,t.useRef)(null);return null===n.current&&(n.current=e()),n.current}((()=>new K(i)));(0,t.useEffect)((()=>n&&n.subscribe(o)),[o,n]),(0,t.useEffect)((()=>o.addListeners()),[o])}))};var nt=n(1930);const it=(0,t.createContext)({}),ot=(0,t.createContext)({}),st={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rt(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const at={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!Z.px.test(t))return t;t=parseFloat(t)}return`${rt(t,e.target.x)}% ${rt(t,e.target.y)}%`}};var lt=n(6002),ut=n(6978);const ct="_$css",ht={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,o=t.includes("var("),s=[];o&&(t=t.replace(ut.Xp,(t=>(s.push(t),ct))));const r=lt.P.parse(t);if(r.length>5)return i;const a=lt.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,V.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(o){let t=0;d=d.replace(ct,(()=>{const e=s[t];return t++,e}))}return d}};var dt=n(798);class pt extends e().Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:o}=t;(0,dt.B)(mt),o&&(e.group&&e.group.add(o),n&&n.register&&i&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),st.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:i,isPresent:o}=this.props,s=n.projection;return s?(s.isPresent=o,i||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||r.ZP.postRender((()=>{var t;(null===(t=s.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 mt={borderRadius:{...at,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:at,borderTopRightRadius:at,borderBottomLeftRadius:at,borderBottomRightRadius:at,boxShadow:ht},ft={measureLayout:function(n){const[i,o]=(0,nt.oO)(),s=(0,t.useContext)(it);return e().createElement(pt,{...n,layoutGroup:s,switchLayoutGroup:(0,t.useContext)(ot),isPresent:i,safeToRemove:o})}};var vt=n(1421),gt=n(7846);var yt=n(1065),xt=n(6924);const bt=["TopLeft","TopRight","BottomLeft","BottomRight"],wt=bt.length,Pt=t=>"string"==typeof t?parseFloat(t):t,St=t=>"number"==typeof t||Z.px.test(t);function Vt(t,e){var n;return null!==(n=t[e])&&void 0!==n?n:t.borderRadius}const Et=Tt(0,.5,xt.Bn),At=Tt(.5,.95,xt.GE);function Tt(t,e,n){return i=>i<t?0:i>e?1:n((0,E.Y)(t,e,i))}function Ct(t,e){t.min=e.min,t.max=e.max}function Mt(t,e){Ct(t.x,e.x),Ct(t.y,e.y)}var Rt=n(1360);function Ot(t,e,n,i,o){return t-=e,t=(0,Rt.q2)(t,1/n,i),void 0!==o&&(t=(0,Rt.q2)(t,1/o,i)),t}function kt(t,e,[n,i,o],s,r){!function(t,e=0,n=1,i=.5,o,s=t,r=t){Z.aQ.test(e)&&(e=parseFloat(e),e=(0,V.C)(r.min,r.max,e/100)-r.min);if("number"!=typeof e)return;let a=(0,V.C)(s.min,s.max,i);t===s&&(a-=e),t.min=Ot(t.min,e,n,a,o),t.max=Ot(t.max,e,n,a,o)}(t,e[n],e[i],e[o],e.scale,s,r)}const Bt=["x","scaleX","originX"],Dt=["y","scaleY","originY"];function Lt(t,e,n,i){kt(t.x,e,Bt,null==n?void 0:n.x,null==i?void 0:i.x),kt(t.y,e,Dt,null==n?void 0:n.y,null==i?void 0:i.y)}function jt(t){return 0===t.translate&&1===t.scale}function Ft(t){return jt(t.x)&&jt(t.y)}function It(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 Ut(t){return T(t.x)/T(t.y)}var $t=n(1180);class Nt{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,t.snapshot.isShared=!0),(null===(n=t.root)||void 0===n?void 0:n.isUpdating)&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;!1===o&&i.hide()}}exitAnimationComplete(){this.members.forEach((t=>{var e,n,i,o,s;null===(n=(e=t.options).onExitComplete)||void 0===n||n.call(e),null===(s=null===(i=t.resumingFrom)||void 0===i?void 0:(o=i.options).onExitComplete)||void 0===s||s.call(o)}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Yt(t,e,n){let i=`translate3d(${t.x.translate/e.x}px, ${t.y.translate/e.y}px, 0) `;if(i+=`scale(${1/e.x}, ${1/e.y}) `,n){const{rotate:t,rotateX:e,rotateY:o}=n;t&&(i+=`rotate(${t}deg) `),e&&(i+=`rotateX(${e}deg) `),o&&(i+=`rotateY(${o}deg) `)}return i+=`scale(${t.x.scale*e.x}, ${t.y.scale*e.y})`,"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===i?"none":i}var zt=n(4918);const Wt=(t,e)=>t.depth-e.depth;class Ht{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(Wt),this.isDirty=!1,this.children.forEach(t)}}var qt=n(7048);function Xt(t){const e=(0,gt.i)(t)?t.get():t;return(0,qt.p)(e)?e.toValue():e}var Zt=n(2866);const Gt=["","X","Y","Z"];function Kt({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(t,n={},i=(null==e?void 0:e())){this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!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(ie),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 Ht)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new yt.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:o,layout:s,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&&(s||o)&&(this.isLayoutDirty=!0),t){let n;const i=()=>this.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=(0,Zt.g)(i,250),st.hasAnimatedSinceResize&&(st.hasAnimatedSinceResize=!1,this.nodes.forEach(ne))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&r&&(o||s)&&this.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:i})=>{var o,s,a,l,u;if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const c=null!==(s=null!==(o=this.options.transition)&&void 0!==o?o:r.getDefaultTransition())&&void 0!==s?s:ce,{onLayoutAnimationStart:h,onLayoutAnimationComplete:d}=r.getProps(),p=!this.targetLayout||!It(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,H.ev)(c,"layout"),onPlay:h,onComplete:d};r.shouldReduceMotion&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||0!==this.animationProgress||ne(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,r.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(se))}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()}const{layoutId:o,layout:s}=this.options;if(void 0===o&&!s)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(te);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(he),this.potentialNodes.clear()),this.nodes.forEach(ee),this.nodes.forEach(Jt),this.nodes.forEach(Qt),this.clearAllSnapshots(),r.iW.update(),r.iW.preRender(),r.iW.render())}clearAllSnapshots(){this.nodes.forEach(_t),this.sharedNodes.forEach(re)}scheduleUpdateProjection(){r.ZP.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){r.ZP.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,Y.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(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=n(this.instance))}resetTransform(){var t;if(!o)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,s=null==i?void 0:i(this.latestValues,""),r=s!==this.prevTransformTemplateValue;e&&(n||(0,zt.ud)(this.latestValues)||r)&&(o(this.instance,s),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)),de((i=n).x),de(i.y),{measuredBox:e,layoutBox:n,latestValues:{}}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return(0,Y.dO)();const e=t.measureViewportBox(),{scroll:n}=this.root;return n&&((0,Rt.am)(e.x,n.x),(0,Rt.am)(e.y,n.y)),e}removeElementScroll(t){const e=(0,Y.dO)();Mt(e,t);for(let n=0;n<this.path.length;n++){const i=this.path[n],{scroll:o,options:s,isScrollRoot:r}=i;if(i!==this.root&&o&&s.layoutScroll){if(r){Mt(e,t);const{scroll:n}=this.root;n&&((0,Rt.am)(e.x,-n.x),(0,Rt.am)(e.y,-n.y))}(0,Rt.am)(e.x,o.x),(0,Rt.am)(e.y,o.y)}}return e}applyTransform(t,e=!1){const n=(0,Y.dO)();Mt(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,Rt.D2)(n,{x:-i.scroll.x,y:-i.scroll.y}),(0,zt.ud)(i.latestValues)&&(0,Rt.D2)(n,i.latestValues)}return(0,zt.ud)(this.latestValues)&&(0,Rt.D2)(n,this.latestValues),n}removeTransform(t){var e;const n=(0,Y.dO)();Mt(n,t);for(let t=0;t<this.path.length;t++){const i=this.path[t];if(!i.instance)continue;if(!(0,zt.ud)(i.latestValues))continue;(0,zt.Lj)(i.latestValues)&&i.updateSnapshot();const o=(0,Y.dO)();Mt(o,i.measurePageBox()),Lt(n,i.latestValues,null===(e=i.snapshot)||void 0===e?void 0:e.layoutBox,o)}return(0,zt.ud)(this.latestValues)&&Lt(n,this.latestValues),n}setTargetDelta(t){this.targetDelta=t,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{layout:e,layoutId:n}=this.options;if(this.layout&&(e||n)){if(!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout?(this.relativeParent=t,this.relativeTarget=(0,Y.dO)(),this.relativeTargetOrigin=(0,Y.dO)(),B(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),Mt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}var i,o,s;if(this.relativeTarget||this.targetDelta)if(this.target||(this.target=(0,Y.dO)(),this.targetWithTransforms=(0,Y.dO)()),this.relativeTarget&&this.relativeTargetOrigin&&(null===(t=this.relativeParent)||void 0===t?void 0:t.target)?(i=this.target,o=this.relativeTarget,s=this.relativeParent.target,O(i.x,o.x,s.x),O(i.y,o.y,s.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Mt(this.target,this.layout.layoutBox),(0,Rt.o2)(this.target,this.targetDelta)):Mt(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,Y.dO)(),this.relativeTargetOrigin=(0,Y.dO)(),B(this.relativeTargetOrigin,this.target,t.target),Mt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(this.parent&&!(0,zt.Lj)(this.parent.latestValues)&&!(0,zt.D_)(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var t;const{layout:e,layoutId:n}=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||!e&&!n)return;const i=this.getLead();Mt(this.layoutCorrected,this.layout.layoutBox),(0,Rt.YY)(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==i);const{target:o}=i;if(!o)return;this.projectionDelta||(this.projectionDelta=(0,Y.wc)(),this.projectionDeltaWithTransform=(0,Y.wc)());const s=this.treeScale.x,r=this.treeScale.y,a=this.projectionTransform;R(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.projectionTransform=Yt(this.projectionDelta,this.treeScale),this.projectionTransform===a&&this.treeScale.x===s&&this.treeScale.y===r||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}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;const i=this.snapshot,o=(null==i?void 0:i.latestValues)||{},s={...this.latestValues},r=(0,Y.wc)();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!e;const a=(0,Y.dO)(),l=null==i?void 0:i.isShared,u=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0)<=1,c=Boolean(l&&!u&&!0===this.options.crossfade&&!this.path.some(ue));this.animationProgress=0,this.mixTargetDelta=e=>{var n;const i=e/1e3;var h,d,p,m;ae(r.x,t.x,i),ae(r.y,t.y,i),this.setTargetDelta(r),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(n=this.relativeParent)||void 0===n?void 0:n.layout)&&(B(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),h=this.relativeTarget,d=this.relativeTargetOrigin,p=a,m=i,le(h.x,d.x,p.x,m),le(h.y,d.y,p.y,m)),l&&(this.animationValues=s,function(t,e,n,i,o,s){var r,a,l,u;o?(t.opacity=(0,V.C)(0,null!==(r=n.opacity)&&void 0!==r?r:1,Et(i)),t.opacityExit=(0,V.C)(null!==(a=e.opacity)&&void 0!==a?a:1,0,At(i))):s&&(t.opacity=(0,V.C)(null!==(l=e.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,i));for(let o=0;o<wt;o++){const s=`border${bt[o]}Radius`;let r=Vt(e,s),a=Vt(n,s);void 0===r&&void 0===a||(r||(r=0),a||(a=0),0===r||0===a||St(r)===St(a)?(t[s]=Math.max((0,V.C)(Pt(r),Pt(a),i),0),(Z.aQ.test(a)||Z.aQ.test(r))&&(t[s]+="%")):t[s]=a)}(e.rotate||n.rotate)&&(t.rotate=(0,V.C)(e.rotate||0,n.rotate||0,i))}(s,o,this.latestValues,i,c,u)),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&&(r.qY.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=r.ZP.update((()=>{st.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n={}){const i=(0,gt.i)(t)?t:(0,vt.B)(t);return(0,H.b8)("",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:o}=t;if(e&&n&&i){if(this!==t&&this.layout&&i&&pe(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||(0,Y.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}Mt(e,n),(0,Rt.D2)(e,o),R(this.projectionDeltaWithTransform,this.layoutCorrected,e,o)}}registerSharedNode(t,e){var n,i,o;this.sharedNodes.has(t)||this.sharedNodes.set(t,new Nt);this.sharedNodes.get(t).add(e),e.promote({transition:null===(n=e.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(o=null===(i=e.options.initialPromotionConfig)||void 0===i?void 0:i.shouldPreserveFollowOpacity)||void 0===o?void 0:o.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 n={};for(let i=0;i<Gt.length;i++){const o="rotate"+Gt[i];t.getStaticValue(o)&&(e=!0,n[o]=t.getStaticValue(o),t.setStaticValue(o,0))}if(e){null==t||t.render();for(const e in n)t.setStaticValue(e,n[e]);t.scheduleRender()}}getProjectionStyles(t={}){var e,n,i;const o={};if(!this.instance||this.isSVG)return o;if(!this.isVisible)return{visibility:"hidden"};o.visibility="";const s=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,o.opacity="",o.pointerEvents=Xt(t.pointerEvents)||"",o.transform=s?s(this.latestValues,""):"none",o;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=Xt(t.pointerEvents)||""),this.hasProjected&&!(0,zt.ud)(this.latestValues)&&(e.transform=s?s({},""):"none",this.hasProjected=!1),e}const a=r.animationValues||r.latestValues;this.applyTransformsToTarget(),o.transform=Yt(this.projectionDeltaWithTransform,this.treeScale,a),s&&(o.transform=s(a,o.transform));const{x:l,y:u}=this.projectionDelta;o.transformOrigin=`${100*l.origin}% ${100*u.origin}% 0`,r.animationValues?o.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:o.opacity=r===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const t in dt.P){if(void 0===a[t])continue;const{correct:e,applyTo:n}=dt.P[t],i=e(a[t],r);if(n){const t=n.length;for(let e=0;e<t;e++)o[n[e]]=i}else o[t]=i}return this.options.layoutId&&(o.pointerEvents=r===this?Xt(t.pointerEvents)||"":"none"),o}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(te),this.root.sharedNodes.clear()}}}function Jt(t){t.updateLayout()}function Qt(t){var e,n,i;const o=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&o&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:n}=t.layout,{animationType:i}=t.options;"size"===i?z((t=>{const n=o.isShared?o.measuredBox[t]:o.layoutBox[t],i=T(n);n.min=e[t].min,n.max=n.min+i})):pe(i,o.layoutBox,e)&&z((t=>{const n=o.isShared?o.measuredBox[t]:o.layoutBox[t],i=T(e[t]);n.max=n.min+i}));const s=(0,Y.wc)();R(s,e,o.layoutBox);const r=(0,Y.wc)();o.isShared?R(r,t.applyTransform(n,!0),o.measuredBox):R(r,e,o.layoutBox);const a=!Ft(s);let l=!1;if(!t.resumeFrom){const n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){const{snapshot:t,layout:i}=n;if(t&&i){const n=(0,Y.dO)();B(n,o.layoutBox,t.layoutBox);const s=(0,Y.dO)();B(s,e,i.layoutBox),It(n,s)||(l=!0)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:o,delta:r,layoutDelta:s,hasLayoutChanged:a,hasRelativeTargetChanged:l})}else t.isLead()&&(null===(i=(n=t.options).onExitComplete)||void 0===i||i.call(n));t.options.transition=void 0}function _t(t){t.clearSnapshot()}function te(t){t.clearMeasurements()}function ee(t){const{visualElement:e}=t.options;(null==e?void 0:e.getProps().onBeforeLayoutMeasure)&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ne(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function ie(t){t.resolveTargetDelta()}function oe(t){t.calcProjection()}function se(t){t.resetRotation()}function re(t){t.removeLeadSnapshot()}function ae(t,e,n){t.translate=(0,V.C)(e.translate,0,n),t.scale=(0,V.C)(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function le(t,e,n,i){t.min=(0,V.C)(e.min,n.min,i),t.max=(0,V.C)(e.max,n.max,i)}function ue(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const ce={duration:.45,ease:[.4,0,.1,1]};function he(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 de(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function pe(t,e,n){return"position"===t||"preserve-aspect"===t&&!function(t,e,n=.1){return p(t,e)<=n}(Ut(e),Ut(n),.2)}const me=Kt({attachResizeListener:(t,e)=>(0,X.E)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),fe={current:void 0},ve=Kt({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!fe.current){const t=new me(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),fe.current=t}return fe.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)});n(5151).H})()})();
1
+ (()=>{"use strict";var t={9340:(t,e,n)=>{n.d(e,{K:()=>i,k:()=>o});var i=function(){},o=function(){}},2819:(t,e,n)=>{n.d(e,{C:()=>i});const i=t=>Array.isArray(t)},3880:(t,e,n)=>{n.d(e,{ev:()=>Pt,b8:()=>wt});function i(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(t,i[o])&&(n[i[o]]=t[i[o]])}return n}Object.create;Object.create;var o=n(9340),s=n(1698);const r=.001;function a({duration:t=800,bounce:e=.25,velocity:n=0,mass:i=1}){let a,u;(0,o.K)(t<=1e4,"Spring duration must be 10 seconds or less");let c=1-e;c=(0,s.u)(.05,1,c),t=(0,s.u)(.01,10,t/1e3),c<1?(a=e=>{const i=e*c,o=i*t,s=i-n,a=l(e,c),u=Math.exp(-o);return r-s/a*u},u=e=>{const i=e*c*t,o=i*n+n,s=Math.pow(c,2)*Math.pow(e,2)*t,u=Math.exp(-i),h=l(Math.pow(e,2),c);return(-a(e)+r>0?-1:1)*((o-s)*u)/h}):(a=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,u=e=>Math.exp(-e*t)*(t*t*(n-e)));const h=function(t,e,n){let i=n;for(let n=1;n<12;n++)i-=t(i)/e(i);return i}(a,u,5/t);if(t*=1e3,isNaN(h))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(h,2)*i;return{stiffness:e,damping:2*c*Math.sqrt(i*e),duration:t}}}function l(t,e){return t*Math.sqrt(1-e*e)}const u=["duration","bounce"],c=["stiffness","damping","mass"];function h(t,e){return e.some((e=>void 0!==t[e]))}function d(t){var{from:e=0,to:n=1,restSpeed:o=2,restDelta:s}=t,r=i(t,["from","to","restSpeed","restDelta"]);const d={done:!1,value:e};let{stiffness:m,damping:f,mass:v,velocity:g,duration:y,isResolvedFromDuration:x}=function(t){let e=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!h(t,c)&&h(t,u)){const n=a(t);e=Object.assign(Object.assign(Object.assign({},e),n),{velocity:0,mass:1}),e.isResolvedFromDuration=!0}return e}(r),b=p,P=p;function w(){const t=g?-g/1e3:0,i=n-e,o=f/(2*Math.sqrt(m*v)),r=Math.sqrt(m/v)/1e3;if(void 0===s&&(s=Math.min(Math.abs(n-e)/100,.4)),o<1){const e=l(r,o);b=s=>{const a=Math.exp(-o*r*s);return n-a*((t+o*r*i)/e*Math.sin(e*s)+i*Math.cos(e*s))},P=n=>{const s=Math.exp(-o*r*n);return o*r*s*(Math.sin(e*n)*(t+o*r*i)/e+i*Math.cos(e*n))-s*(Math.cos(e*n)*(t+o*r*i)-e*i*Math.sin(e*n))}}else if(1===o)b=e=>n-Math.exp(-r*e)*(i+(t+r*i)*e);else{const e=r*Math.sqrt(o*o-1);b=s=>{const a=Math.exp(-o*r*s),l=Math.min(e*s,300);return n-a*((t+o*r*i)*Math.sinh(l)+e*i*Math.cosh(l))/e}}}return w(),{next:t=>{const e=b(t);if(x)d.done=t>=y;else{const i=1e3*P(t),r=Math.abs(i)<=o,a=Math.abs(n-e)<=s;d.done=r&&a}return d.value=d.done?n:e,d},flipTarget:()=>{g=-g,[e,n]=[n,e],w()}}}d.needsInterpolation=(t,e)=>"string"==typeof t||"string"==typeof e;const p=t=>0;var m=n(1790),f=n(8481),v=n(9012),g=n(3203),y=n(7493);function x(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}function b({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let o=0,s=0,r=0;if(e/=100){const i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;o=x(a,i,t+1/3),s=x(a,i,t),r=x(a,i,t-1/3)}else o=s=r=n;return{red:Math.round(255*o),green:Math.round(255*s),blue:Math.round(255*r),alpha:i}}const P=(t,e,n)=>{const i=t*t,o=e*e;return Math.sqrt(Math.max(0,n*(o-i)+i))},w=[v.$,g.m,y.J],E=t=>w.find((e=>e.test(t))),V=t=>`'${t}' is not an animatable color. Use the equivalent color code instead.`,A=(t,e)=>{let n=E(t),i=E(e);(0,o.k)(!!n,V(t)),(0,o.k)(!!i,V(e));let s=n.parse(t),r=i.parse(e);n===y.J&&(s=b(s),n=g.m),i===y.J&&(r=b(r),i=g.m);const a=Object.assign({},s);return t=>{for(const e in a)"alpha"!==e&&(a[e]=P(s[e],r[e],t));return a.alpha=(0,f.C)(s.alpha,r.alpha,t),n.transform(a)}};var T=n(7576),S=n(6002),C=n(5091),M=n(934);function R(t,e){return(0,C.e)(t)?n=>(0,f.C)(t,e,n):T.$.test(t)?A(t,e):B(t,e)}const D=(t,e)=>{const n=[...t],i=n.length,o=t.map(((t,n)=>R(t,e[n])));return t=>{for(let e=0;e<i;e++)n[e]=o[e](t);return n}},O=(t,e)=>{const n=Object.assign(Object.assign({},t),e),i={};for(const o in n)void 0!==t[o]&&void 0!==e[o]&&(i[o]=R(t[o],e[o]));return t=>{for(const e in i)n[e]=i[e](t);return n}};function k(t){const e=S.P.parse(t),n=e.length;let i=0,o=0,s=0;for(let t=0;t<n;t++)i||"number"==typeof e[t]?i++:void 0!==e[t].hue?s++:o++;return{parsed:e,numNumbers:i,numRGB:o,numHSL:s}}const B=(t,e)=>{const n=S.P.createTransformer(e),i=k(t),s=k(e);return i.numHSL===s.numHSL&&i.numRGB===s.numRGB&&i.numNumbers>=s.numNumbers?(0,M.z)(D(i.parsed,s.parsed),n):((0,o.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}`)},j=(t,e)=>n=>(0,f.C)(t,e,n);function L(t,e,n){const i=[],o=n||("number"==typeof(s=t[0])?j:"string"==typeof s?T.$.test(s)?A:B:Array.isArray(s)?D:"object"==typeof s?O:void 0);var s;const r=t.length-1;for(let n=0;n<r;n++){let s=o(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]:e;s=(0,M.z)(t,s)}i.push(s)}return i}function F(t,e,{clamp:n=!0,ease:i,mixer:r}={}){const a=t.length;(0,o.k)(a===e.length,"Both input and output ranges must be the same length"),(0,o.k)(!i||!Array.isArray(i)||i.length===a-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[a-1]&&(t=[].concat(t),e=[].concat(e),t.reverse(),e.reverse());const l=L(e,i,r),u=2===a?function([t,e],[n]){return i=>n((0,m.Y)(t,e,i))}(t,l):function(t,e){const n=t.length,i=n-1;return o=>{let s=0,r=!1;if(o<=t[0]?r=!0:o>=t[i]&&(s=i-1,r=!0),!r){let e=1;for(;e<n&&!(t[e]>o||e===i);e++);s=e-1}const a=(0,m.Y)(t[s],t[s+1],o);return e[s](a)}}(t,l);return n?e=>u((0,s.u)(t[0],t[a-1],e)):u}var I=n(6924);function U(t,e){return t.map((()=>e||I.mZ)).splice(0,t.length-1)}function $({from:t=0,to:e=1,ease:n,offset:i,duration:o=300}){const s={done:!1,value:t},r=Array.isArray(e)?e:[t,e],a=function(t,e){return t.map((t=>t*e))}(i&&i.length===r.length?i:function(t){const e=t.length;return t.map(((t,n)=>0!==n?n/(e-1):0))}(r),o);function l(){return F(a,r,{ease:Array.isArray(n)?n:U(r,n)})}let u=l();return{next:t=>(s.value=u(t),s.done=t>=o,s),flipTarget:()=>{r.reverse(),u=l()}}}const N={keyframes:$,spring:d,decay:function({velocity:t=0,from:e=0,power:n=.8,timeConstant:i=350,restDelta:o=.5,modifyTarget:s}){const r={done:!1,value:e};let a=n*t;const l=e+a,u=void 0===s?l:s(l);return u!==l&&(a=u-e),{next:t=>{const e=-a*Math.exp(-t/i);return r.done=!(e>o||e<-o),r.value=r.done?u:u+e,r},flipTarget:()=>{}}}};var Y=n(6162);function z(t,e,n=0){return t-e-n}const W=t=>{const e=({delta:e})=>t(e);return{start:()=>Y.ZP.update(e,!0),stop:()=>Y.qY.update(e)}};function H(t){var e,n,{from:o,autoplay:s=!0,driver:r=W,elapsed:a=0,repeat:l=0,repeatType:u="loop",repeatDelay:c=0,onPlay:h,onStop:p,onComplete:m,onRepeat:f,onUpdate:v}=t,g=i(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let y,x,b,{to:P}=g,w=0,E=g.duration,V=!1,A=!0;const T=function(t){if(Array.isArray(t.to))return $;if(N[t.type])return N[t.type];const e=new Set(Object.keys(t));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?$:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?d:$}(g);(null===(n=(e=T).needsInterpolation)||void 0===n?void 0:n.call(e,o,P))&&(b=F([0,100],[o,P],{clamp:!1}),o=0,P=100);const S=T(Object.assign(Object.assign({},g),{from:o,to:P}));function C(){w++,"reverse"===u?(A=w%2==0,a=function(t,e,n=0,i=!0){return i?z(e+-t,e,n):e-(t-e)+n}(a,E,c,A)):(a=z(a,E,c),"mirror"===u&&S.flipTarget()),V=!1,f&&f()}function M(t){if(A||(t=-t),a+=t,!V){const t=S.next(Math.max(0,a));x=t.value,b&&(x=b(x)),V=A?t.done:a<=0}null==v||v(x),V&&(0===w&&(null!=E||(E=a)),w<l?function(t,e,n,i){return i?t>=e+n:t<=-n}(a,E,c,A)&&C():(y.stop(),m&&m()))}return s&&(null==h||h(),y=r(M),y.start()),{stop:()=>{null==p||p(),y.stop()}}}var q=n(4060);var X=n(1818);const Z=(t,e)=>1-3*e+3*t,G=(t,e)=>3*e-6*t,K=t=>3*t,J=(t,e,n)=>((Z(e,n)*t+G(e,n))*t+K(e))*t,Q=(t,e,n)=>3*Z(e,n)*t*t+2*G(e,n)*t+K(e);const _=.1;function tt(t,e,n,i){if(t===e&&n===i)return I.GE;const o=new Float32Array(11);for(let e=0;e<11;++e)o[e]=J(e*_,t,n);function s(e){let i=0,s=1;for(;10!==s&&o[s]<=e;++s)i+=_;--s;const r=i+(e-o[s])/(o[s+1]-o[s])*_,a=Q(r,t,n);return a>=.001?function(t,e,n,i){for(let o=0;o<8;++o){const o=Q(e,n,i);if(0===o)return e;e-=(J(e,n,i)-t)/o}return e}(e,r,t,n):0===a?r:function(t,e,n,i,o){let s,r,a=0;do{r=e+(n-e)/2,s=J(r,i,o)-t,s>0?n=r:e=r}while(Math.abs(s)>1e-7&&++a<10);return r}(e,i,i+_,t,n)}return t=>0===t||1===t?t:J(s(t),e,i)}const et={linear:I.GE,easeIn:I.YQ,easeInOut:I.mZ,easeOut:I.Vv,circIn:I.Z7,circInOut:I.X7,circOut:I.Bn,backIn:I.G2,backInOut:I.XL,backOut:I.CG,anticipate:I.LU,bounceIn:I.h9,bounceInOut:I.yD,bounceOut:I.gJ},nt=t=>{if(Array.isArray(t)){(0,o.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,i,s]=t;return tt(e,n,i,s)}return"string"==typeof t?((0,o.k)(void 0!==et[t],`Invalid easing type '${t}'`),et[t]):t},it=(t,e)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!S.P.test(e)||e.startsWith("url(")));var ot=n(2819);const st=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),rt=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),at=()=>({type:"keyframes",ease:"linear",duration:.3}),lt=t=>({type:"keyframes",duration:.8,values:t}),ut={x:st,y:st,z:st,rotate:st,rotateX:st,rotateY:st,rotateZ:st,scaleX:rt,scaleY:rt,scale:rt,opacity:at,backgroundColor:at,color:at,default:rt},ct=(t,e)=>{let n;return n=(0,ot.C)(e)?lt:ut[t]||ut.default,{to:e,...n(e)}};var ht=n(6914);const dt=!1;var pt=n(7048),mt=n(2866);let ft=!1;function vt({ease:t,times:e,yoyo:n,flip:i,loop:s,...r}){const a={...r};return e&&(a.offset=e),r.duration&&(a.duration=(0,X.w)(r.duration)),r.repeatDelay&&(a.repeatDelay=(0,X.w)(r.repeatDelay)),t&&(a.ease=(t=>Array.isArray(t)&&"number"!=typeof t[0])(t)?t.map(nt):nt(t)),"tween"===r.type&&(a.type="keyframes"),(n||s||i)&&((0,o.K)(!ft,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),ft=!0,n?a.repeatType="reverse":s?a.repeatType="loop":i&&(a.repeatType="mirror"),a.repeat=s||n||i||r.repeat),"spring"!==r.type&&(a.type="keyframes"),a}function gt(t,e,n){return Array.isArray(e.to)&&void 0===t.duration&&(t.duration=.8),function(t){Array.isArray(t.to)&&null===t.to[0]&&(t.to=[...t.to],t.to[0]=t.from)}(e),function({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:o,repeat:s,repeatType:r,repeatDelay:a,from:l,...u}){return!!Object.keys(u).length}(t)||(t={...t,...ct(n,e.to)}),{...e,...vt(t)}}function yt(t,e,n,i,s){const r=Pt(i,t)||{};let a=void 0!==r.from?r.from:e.get();const l=it(t,n);"none"===a&&l&&"string"==typeof n?a=(0,ht.T)(t,n):xt(a)&&"string"==typeof n?a=bt(n):!Array.isArray(n)&&xt(n)&&"string"==typeof a&&(n=bt(a));const u=it(t,a);return(0,o.K)(u===l,`You are trying to animate ${t} from "${a}" to "${n}". ${a} is not an animatable value - to enable this animation set ${a} to a value animatable to ${n} via the \`style\` property.`),u&&l&&!1!==r.type?function(){const i={from:a,to:n,velocity:e.getVelocity(),onComplete:s,onUpdate:t=>e.set(t)};return"inertia"===r.type||"decay"===r.type?function({from:t=0,velocity:e=0,min:n,max:i,power:o=.8,timeConstant:s=750,bounceStiffness:r=500,bounceDamping:a=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:h,onComplete:d,onStop:p}){let m;function f(t){return void 0!==n&&t<n||void 0!==i&&t>i}function v(t){return void 0===n?i:void 0===i||Math.abs(n-t)<Math.abs(i-t)?n:i}function g(t){null==m||m.stop(),m=H(Object.assign(Object.assign({},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 y(t){g(Object.assign({type:"spring",stiffness:r,damping:a,restDelta:l},t))}if(f(t))y({from:t,velocity:e,to:v(t)});else{let i=o*e+t;void 0!==u&&(i=u(i));const r=v(i),a=r===n?-1:1;let c,h;const d=t=>{c=h,h=t,e=(0,q.R)(t-c,(0,Y.$B)().delta),(1===a&&t>r||-1===a&&t<r)&&y({from:t,to:r,velocity:e})};g({type:"decay",from:t,velocity:e,timeConstant:s,power:o,restDelta:l,modifyTarget:u,onUpdate:f(i)?d:void 0})}return{stop:()=>null==m?void 0:m.stop()}}({...i,...r}):H({...gt(r,i,t),onUpdate:t=>{i.onUpdate(t),r.onUpdate&&r.onUpdate(t)},onComplete:()=>{i.onComplete(),r.onComplete&&r.onComplete()}})}:function(){const t=(0,pt.Y)(n);return e.set(t),s(),r.onUpdate&&r.onUpdate(t),r.onComplete&&r.onComplete(),{stop:()=>{}}}}function xt(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function bt(t){return"number"==typeof t?0:(0,ht.T)("",t)}function Pt(t,e){return t[e]||t.default||t}function wt(t,e,n,i={}){return dt&&(i={type:!1}),e.start((o=>{let s;const r=yt(t,e,n,i,o),a=function(t,e){var n,i;return null!==(i=null!==(n=(Pt(t,e)||{}).delay)&&void 0!==n?n:t.delay)&&void 0!==i?i:0}(i,t),l=()=>s=r();let u;return a?u=(0,mt.g)(l,(0,X.w)(a)):l(),()=>{u&&u(),s&&s.stop()}}))}},1930:(t,e,n)=>{n.d(e,{oO:()=>s});var i=n(8370),o=n(7866);function s(){const t=(0,i.useContext)(o.O);if(null===t)return[!0,null];const{isPresent:e,onExitComplete:n,register:s}=t,r=(0,i.useId)();(0,i.useEffect)((()=>s(r)),[]);return!e&&n?[!1,()=>n&&n(r)]:[!0]}},7866:(t,e,n)=>{n.d(e,{O:()=>o});var i=n(8370);const o=(0,i.createContext)(null)},409:(t,e,n)=>{n.d(e,{Qk:()=>a,qT:()=>l});var i=n(3541);const o={pageX:0,pageY:0};function s(t,e="page"){const n=t.touches[0]||t.changedTouches[0]||o;return{x:n[e+"X"],y:n[e+"Y"]}}function r(t,e="page"){return{x:t[e+"X"],y:t[e+"Y"]}}function a(t,e="page"){return{point:(0,i.z)(t)?s(t,e):r(t,e)}}const l=(t,e=!1)=>{const n=e=>t(e,a(e));return e?(i=n,t=>{const e=t instanceof MouseEvent;(!e||e&&0===t.button)&&i(t)}):n;var i}},1876:(t,e,n)=>{n.d(e,{E:()=>o,p:()=>s});var i=n(8370);function o(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function s(t,e,n,s){(0,i.useEffect)((()=>{const i=t.current;if(n&&i)return o(i,e,n,s)}),[t,e,n,s])}},1395:(t,e,n)=>{n.d(e,{a:()=>u,m:()=>c});var i=n(1876),o=n(409),s=n(3093);const r={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},a={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function l(t){return s.j&&null===window.onpointerdown?t:s.j&&null===window.ontouchstart?a[t]:s.j&&null===window.onmousedown?r[t]:t}function u(t,e,n,s){return(0,i.E)(t,l(e),(0,o.qT)(n,"pointerdown"===e),s)}function c(t,e,n,s){return(0,i.p)(t,l(e),n&&(0,o.qT)(n,"pointerdown"===e),s)}},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 o=i("dragHorizontal"),s=i("dragVertical");function r(t){let e=!1;if("y"===t)e=s();else if("x"===t)e=o();else{const t=o(),n=s();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function a(){const t=r(!0);return!t||(t(),!1)}},3541:(t,e,n)=>{function i(t){return"undefined"!=typeof PointerEvent&&t instanceof PointerEvent?!("mouse"!==t.pointerType):t instanceof MouseEvent}function o(t){return!!t.touches}n.d(e,{N:()=>i,z:()=>o})},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 o({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function s(t,e){if(!e)return t;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:()=>s,i8:()=>i,z2:()=>o})},1360:(t,e,n)=>{n.d(e,{D2:()=>m,YY:()=>u,am:()=>c,o2:()=>l,q2:()=>s});var i=n(8481),o=n(4918);function s(t,e,n){return n+e*(t-n)}function r(t,e,n,i,o){return void 0!==o&&(t=s(t,o,i)),s(t,n,i)+e}function a(t,e=0,n=1,i,o){t.min=r(t.min,e,n,i,o),t.max=r(t.max,e,n,i,o)}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 s,r;const a=n.length;if(!a)return;let u,c;e.x=e.y=1;for(let h=0;h<a;h++)u=n[h],c=u.projectionDelta,"contents"!==(null===(r=null===(s=u.instance)||void 0===s?void 0:s.style)||void 0===r?void 0:r.display)&&(i&&u.options.layoutScroll&&u.scroll&&u!==u.root&&m(t,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),c&&(e.x*=c.x.scale,e.y*=c.y.scale,l(t,c)),i&&(0,o.ud)(u.latestValues)&&m(t,u.latestValues))}function c(t,e){t.min=t.min+e,t.max=t.max+e}function h(t,e,[n,o,s]){const r=void 0!==e[s]?e[s]:.5,l=(0,i.C)(t.min,t.max,r);a(t,e[n],e[o],l,e.scale)}const d=["x","scaleX","originX"],p=["y","scaleY","originY"];function m(t,e){h(t.x,e,d),h(t.y,e,p)}},1397:(t,e,n)=>{n.d(e,{dO:()=>o,wc:()=>i});const i=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),o=()=>({x:{min:0,max:0},y:{min:0,max:0}})},798:(t,e,n)=>{n.d(e,{B:()=>o,P:()=>i});const i={};function o(t){Object.assign(i,t)}},4918:(t,e,n)=>{function i(t){return void 0===t||1===t}function o({scale:t,scaleX:e,scaleY:n}){return!i(t)||!i(e)||!i(n)}function s(t){return o(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:()=>o,ud:()=>s})},8834:(t,e,n)=>{n.d(e,{J:()=>s,z:()=>r});var i=n(483),o=n(1360);function s(t,e){return(0,i.i8)((0,i.d7)(t.getBoundingClientRect(),e))}function r(t,e,n){const i=s(t,n),{scroll:r}=e;return r&&((0,o.am)(i.x,r.offset.x),(0,o.am)(i.y,r.offset.y)),i}},5151:(t,e,n)=>{n.d(e,{H:()=>ce});var i=n(8370);function o(t){return"object"==typeof t&&"function"==typeof t.start}var s=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}var u=n(3880),c=n(6002);const h=t=>/^0[^.\s]+$/.test(t);var d=n(7048),p=n(1421),m=n(6914),f=n(7576),v=n(1513),g=n(155);const y=t=>e=>e.test(t),x=[v.Rx,g.px,g.aQ,g.RW,g.vw,g.vh,{test:t=>"auto"===t,parse:t=>t}],b=t=>x.find(y(t)),P=[...x,f.$,c.P],w=t=>P.find(y(t));function E(t,e,n,i={},o={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,i,o)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,i,o)),e}function V(t,e,n){const i=t.getProps();return E(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 A(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,p.B)(n))}function T(t,e){const n=V(t,e);let{transitionEnd:i={},transition:o={},...s}=n?t.makeTargetAnimatable(n,!1):{};s={...s,...i};for(const e in s){A(t,e,(0,d.Y)(s[e]))}}function S(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"],M=new Set(C);var R=n(7846);function D(t){return Boolean((0,R.i)(t)&&t.add)}function O(t,e,n={}){var i;const o=V(t,e,n.custom);let{transition:s=t.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(s=n.transitionOverride);const r=o?()=>k(t,o,n):()=>Promise.resolve(),a=(null===(i=t.variantChildren)||void 0===i?void 0:i.size)?(i=0)=>{const{delayChildren:o=0,staggerChildren:r,staggerDirection:a}=s;return function(t,e,n=0,i=0,o=1,s){const r=[],a=(t.variantChildren.size-1)*i,l=1===o?(t=0)=>t*i:(t=0)=>a-t*i;return Array.from(t.variantChildren).sort(B).forEach(((t,i)=>{r.push(O(t,e,{...s,delay:n+l(i)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(r)}(t,e,o+i,r,a,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[t,e]="beforeChildren"===l?[r,a]:[a,r];return t().then(e)}return Promise.all([r(),a(n.delay)])}function k(t,e,{delay:n=0,transitionOverride:i,type:o}={}){var s;let{transition:r=t.getDefaultTransition(),transitionEnd:a,...l}=t.makeTargetAnimatable(e);const c=t.getValue("willChange");i&&(r=i);const h=[],d=o&&(null===(s=t.animationState)||void 0===s?void 0:s.getState()[o]);for(const e in l){const i=t.getValue(e),o=l[e];if(!i||void 0===o||d&&j(d,e))continue;let s={delay:n,...r};t.shouldReduceMotion&&M.has(e)&&(s={...s,type:!1,delay:0});let a=(0,u.b8)(e,i,o,s);D(c)&&(c.add(e),a=a.then((()=>c.remove(e)))),h.push(a)}return Promise.all(h).then((()=>{a&&T(t,a)}))}function B(t,e){return t.sortNodePosition(e)}function j({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}function L(t){return"string"==typeof t||Array.isArray(t)}var F=n(7921);const I=[F.r.Animate,F.r.InView,F.r.Focus,F.r.Hover,F.r.Tap,F.r.Drag,F.r.Exit],U=[...I].reverse(),$=I.length;function N(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 o=e.map((e=>O(t,e,n)));i=Promise.all(o)}else if("string"==typeof e)i=O(t,e,n);else{const o="function"==typeof e?V(t,e,n.custom):e;i=k(t,o,n)}return i.then((()=>t.notify("AnimationComplete",e)))}(t,e,n))))}function Y(t){let e=N(t);const n={[F.r.Animate]:W(!0),[F.r.InView]:W(),[F.r.Hover]:W(),[F.r.Tap]:W(),[F.r.Drag]:W(),[F.r.Focus]:W(),[F.r.Exit]:W()};let i=!0;const s=(e,n)=>{const i=V(t,n);if(i){const{transition:t,transitionEnd:n,...o}=i;e={...e,...o,...n}}return e};function r(r,u){var c;const h=t.getProps(),d=t.getVariantContext(!0)||{},p=[],m=new Set;let f={},v=1/0;for(let e=0;e<$;e++){const g=U[e],y=n[g],x=null!==(c=h[g])&&void 0!==c?c:d[g],b=L(x),P=g===u?y.isActive:null;!1===P&&(v=e);let w=x===d[g]&&x!==h[g]&&b;if(w&&i&&t.manuallyAnimateOnMount&&(w=!1),y.protectedKeys={...f},!y.isActive&&null===P||!x&&!y.prevProp||o(x)||"boolean"==typeof x)continue;const E=z(y.prevProp,x);let V=E||g===u&&y.isActive&&!w&&b||e>v&&b;const A=Array.isArray(x)?x:[x];let T=A.reduce(s,{});!1===P&&(T={});const{prevResolvedValues:S={}}=y,C={...S,...T},M=t=>{V=!0,m.delete(t),y.needsAnimating[t]=!0};for(const t in C){const e=T[t],n=S[t];f.hasOwnProperty(t)||(e!==n?(0,a.C)(e)&&(0,a.C)(n)?!l(e,n)||E?M(t):y.protectedKeys[t]=!0:void 0!==e?M(t):m.add(t):void 0!==e&&m.has(t)?M(t):y.protectedKeys[t]=!0)}y.prevProp=x,y.prevResolvedValues=T,y.isActive&&(f={...f,...T}),i&&t.blockInitialAnimation&&(V=!1),V&&!w&&p.push(...A.map((t=>({animation:t,options:{type:g,...r}}))))}if(m.size){const e={};m.forEach((n=>{const i=t.getBaseTarget(n);void 0!==i&&(e[n]=i)})),p.push({animation:e})}let g=Boolean(p.length);return i&&!1===h.initial&&!t.manuallyAnimateOnMount&&(g=!1),i=!1,g?e(p):Promise.resolve()}return{animateChanges:r,setActive:function(e,i,o){var s;if(n[e].isActive===i)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.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(o,e);for(const t in n)n[t].protectedKeys={};return a},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}function z(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!l(e,t)}function W(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var H=n(6295);const q={animation:(0,H.x)((({visualElement:t,animate:e})=>{t.animationState||(t.animationState=Y(t)),o(e)&&(0,i.useEffect)((()=>e.subscribe(t)),[e])})),exit:(0,H.x)((t=>{const{custom:e,visualElement:n}=t,[o,a]=(0,s.oO)(),l=(0,i.useContext)(r.O);(0,i.useEffect)((()=>{n.isPresent=o;const t=n.animationState&&n.animationState.setActive(F.r.Exit,!o,{custom:l&&l.custom||e});t&&!o&&t.then(a)}),[o])}))};var X=n(1876);var Z=n(3541),G=n(1395),K=n(5856);function J(t,e,n){return(i,o)=>{(0,Z.N)(i)&&!(0,K.gD)()&&(t.animationState&&t.animationState.setActive(F.r.Hover,e),n&&n(i,o))}}const Q=(t,e)=>!!e&&(t===e||Q(t,e.parentElement));var _=n(9531),tt=n(934);const et=("undefined"==typeof process||process.env,"production"),nt=new Set;const it=new WeakMap,ot=new WeakMap,st=t=>{const e=it.get(t.target);e&&e(t)},rt=t=>{t.forEach(st)};function at(t,e,n){const i=function({root:t,...e}){const n=t||document;ot.has(n)||ot.set(n,{});const i=ot.get(n),o=JSON.stringify(e);return i[o]||(i[o]=new IntersectionObserver(rt,{root:t,...e})),i[o]}(e);return it.set(t,n),i.observe(t),()=>{it.delete(t),i.unobserve(t)}}const lt={some:0,all:1};function ut(t,e,n,{root:o,margin:s,amount:r="some",once:a}){(0,i.useEffect)((()=>{if(!t||!n.current)return;const i={root:null==o?void 0:o.current,rootMargin:s,threshold:"number"==typeof r?r:lt[r]};return at(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(F.r.InView,i);const o=n.getProps(),s=i?o.onViewportEnter:o.onViewportLeave;s&&s(t)}))}),[t,o,s,r])}function ct(t,e,n,{fallback:o=!0}){(0,i.useEffect)((()=>{var i,s;t&&o&&("production"!==et&&(i="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",!1||nt.has(i)||(console.warn(i),s&&console.warn(s),nt.add(i))),requestAnimationFrame((()=>{e.hasEnteredView=!0;const{onViewportEnter:t}=n.getProps();t&&t(null),n.animationState&&n.animationState.setActive(F.r.InView,!0)})))}),[t])}const ht={inView:(0,H.x)((function({visualElement:t,whileInView:e,onViewportEnter:n,onViewportLeave:o,viewport:s={}}){const r=(0,i.useRef)({hasEnteredView:!1,isInView:!1});let a=Boolean(e||n||o);s.once&&r.current.hasEnteredView&&(a=!1),("undefined"==typeof IntersectionObserver?ct:ut)(a,r.current,t,s)})),tap:(0,H.x)((function({onTap:t,onTapStart:e,onTapCancel:n,whileTap:o,visualElement:s}){const r=t||e||n||o,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,s.animationState&&s.animationState.setActive(F.r.Tap,!1),!(0,K.gD)()}function d(e,i){h()&&(Q(s.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,tt.z)((0,G.a)(window,"pointerup",d,u),(0,G.a)(window,"pointercancel",p,u)),s.animationState&&s.animationState.setActive(F.r.Tap,!0),e&&e(t,n))}(0,G.m)(s,"pointerdown",r?m:void 0,u),(0,_.z)(c)})),focus:(0,H.x)((function({whileFocus:t,visualElement:e}){const{animationState:n}=e;(0,X.p)(e,"focus",t?()=>{n&&n.setActive(F.r.Focus,!0)}:void 0),(0,X.p)(e,"blur",t?()=>{n&&n.setActive(F.r.Focus,!1)}:void 0)})),hover:(0,H.x)((function({onHoverStart:t,onHoverEnd:e,whileHover:n,visualElement:i}){(0,G.m)(i,"pointerenter",t||n?J(i,!0,t):void 0,{passive:!t}),(0,G.m)(i,"pointerleave",e||n?J(i,!1,e):void 0,{passive:!e})}))},dt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},pt=(t,e)=>C.indexOf(t)-C.indexOf(e);function mt(t){return t.startsWith("--")}const ft=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var vt=n(4923);function gt(t,e,n,i){const{style:o,vars:s,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(mt(t)){s[t]=n;continue}const i=vt.j[t],d=ft(n,i);if(M.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):o[t]=d}if(e.transform||(u||i?o.transform=function({transform:t,transformKeys:e},{enableHardwareAcceleration:n=!0,allowTransformNone:i=!0},o,s){let r="";e.sort(pt);for(const n of e)r+=`${dt[n]||n}(${t[n]}) `;return n&&!t.z&&(r+="translateZ(0)"),r=r.trim(),s?r=s(t,o?"":r):i&&o&&(r="none"),r}(t,n,h,i):o.transform&&(o.transform="none")),c){const{originX:t="50%",originY:e="50%",originZ:n=0}=l;o.transformOrigin=`${t} ${e} ${n}`}}var yt=n(798);function xt(t,{layout:e,layoutId:n}){return M.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!yt.P[t]||"opacity"===t)}function bt(t){const{style:e}=t,n={};for(const i in e)((0,R.i)(e[i])||xt(i,t))&&(n[i]=e[i]);return n}function Pt(t,{style:e,vars:n},i,o){Object.assign(t.style,e,o&&o.getProjectionStyles(i));for(const e in n)t.style.setProperty(e,n[e])}var wt=n(7557),Et=n(8834),Vt=n(6978),At=n(9340),Tt=n(3093);const St=new Set(["width","height","top","left","right","bottom","x","y"]),Ct=t=>St.has(t),Mt=(t,e)=>{t.set(e,!1),t.set(e)},Rt=t=>t===v.Rx||t===g.px;var Dt;!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(Dt||(Dt={}));const Ot=(t,e)=>parseFloat(t.split(", ")[e]),kt=(t,e)=>(n,{transform:i})=>{if("none"===i||!i)return 0;const o=i.match(/^matrix3d\((.+)\)$/);if(o)return Ot(o[1],e);{const e=i.match(/^matrix\((.+)\)$/);return e?Ot(e[1],t):0}},Bt=new Set(["x","y","z"]),jt=C.filter((t=>!Bt.has(t)));const Lt={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:kt(4,13),y:kt(5,14)},Ft=(t,e,n={},i={})=>{e={...e},i={...i};const o=Object.keys(e).filter(Ct);let s=[],r=!1;const l=[];if(o.forEach((o=>{const u=t.getValue(o);if(!t.hasValue(o))return;let c=n[o],h=b(c);const d=e[o];let p;if((0,a.C)(d)){const t=d.length,e=null===d[0]?1:0;c=d[e],h=b(c);for(let n=e;n<t;n++)p?(0,At.k)(b(d[n])===p,"All keyframes must be of the same type"):(p=b(d[n]),(0,At.k)(p===h||Rt(h)&&Rt(p),"Keyframes must be of the same dimension as the current value"))}else p=b(d);if(h!==p)if(Rt(h)&&Rt(p)){const t=u.get();"string"==typeof t&&u.set(parseFloat(t)),"string"==typeof d?e[o]=parseFloat(d):Array.isArray(d)&&p===g.px&&(e[o]=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[o]=h.transform(d):(r||(s=function(t){const e=[];return jt.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(o),i[o]=void 0!==i[o]?i[o]:e[o],Mt(u,d))})),l.length){const n=l.indexOf("height")>=0?window.pageYOffset:null,o=((t,e,n)=>{const i=e.measureViewportBox(),o=e.current,s=getComputedStyle(o),{display:r}=s,a={};"none"===r&&e.setStaticValue("display",t.display||"block"),n.forEach((t=>{a[t]=Lt[t](i,s)})),e.render();const l=e.measureViewportBox();return n.forEach((n=>{const i=e.getValue(n);Mt(i,a[n]),t[n]=Lt[n](l,s)})),t})(e,t,l);return s.length&&s.forEach((([e,n])=>{t.getValue(e).set(n)})),t.render(),Tt.j&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:i}}return{target:e,transitionEnd:i}};function It(t,e,n,i){return(t=>Object.keys(t).some(Ct))(e)?Ft(t,e,n,i):{target:e,transitionEnd:i}}var Ut=n(6162);const $t=t=>({isEnabled:e=>t.some((t=>!!e[t]))}),Nt={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 Yt=n(1397),zt=n(3491);const Wt={current:null},Ht={current:!1};var qt=n(1065);const Xt=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function Zt(t){return o(t.animate)||Xt.some((e=>L(t[e])))}const Gt=Object.keys(Nt),Kt=Gt.length,Jt=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];const Qt=["initial",...I],_t=Qt.length;class te extends class{constructor({parent:t,props:e,reducedMotionConfig:n,visualState:i},o={}){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=()=>Ut.ZP.render(this.render,!1,!0);const{latestValues:s,renderState:r}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=e.initial?{...s}:{},this.renderState=r,this.parent=t,this.props=e,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.isControllingVariants=Zt(e),this.isVariantNode=function(t){return Boolean(Zt(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!==s[t]&&(0,R.i)(e)&&(e.set(s[t],!1),D(a)&&a.add(t))}}scrapeMotionValuesFromProps(t){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))),Ht.current||function(){if(Ht.current=!0,Tt.j)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Wt.current=t.matches;t.addListener(e),e()}else Wt.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Wt.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(),Ut.qY.update(this.notifyUpdate),Ut.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=M.has(t),i=e.onChange((e=>{this.latestValues[t]=e,this.props.onUpdate&&Ut.ZP.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isProjectionDirty=!0)})),o=e.onRenderRequest(this.scheduleRender);this.valueSubscriptions.set(t,(()=>{i(),o()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures(t,e,n,o,s,r){const a=[];"production"!==et&&n&&e&&(0,At.k)(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let e=0;e<Kt;e++){const n=Gt[e],{isEnabled:o,Component:s}=Nt[n];o(t)&&s&&a.push((0,i.createElement)(s,{key:n,...t,visualElement:this}))}if(!this.projection&&s){this.projection=new s(o,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,zt.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,Yt.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(),this.props=t;for(let e=0;e<Jt.length;e++){const n=Jt[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 o in e){const s=e[o],r=n[o];if((0,R.i)(s))t.addValue(o,s),D(i)&&i.add(o);else if((0,R.i)(r))t.addValue(o,(0,p.B)(s)),D(i)&&i.remove(o);else if(r!==s)if(t.hasValue(o)){const e=t.getValue(o);!e.hasAnimated&&e.set(s)}else{const e=t.getStaticValue(o);t.addValue(o,(0,p.B)(void 0!==e?e:s))}}for(const i in n)void 0===e[i]&&t.removeValue(i);return e}(this,this.scrapeMotionValuesFromProps(t),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<_t;t++){const e=Qt[t],n=this.props[e];(L(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){this.hasValue(t)&&this.removeValue(t),this.values.set(t,e),this.latestValues[t]=e.get(),this.bindToMotionValue(t,e)}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,p.B)(e),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=E(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==i)return i;const o=this.getBaseTargetFromProps(this.props,t);return void 0===o||(0,R.i)(o)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:o}on(t,e){return this.events[t]||(this.events[t]=new qt.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},o){let s=function(t,e,n){var i;const o={};for(const s in t){const t=S(s,e);o[s]=void 0!==t?t:null===(i=n.getValue(s))||void 0===i?void 0:i.get()}return o}(n,t||{},this);if(i&&(e&&(e=i(e)),n&&(n=i(n)),s&&(s=i(s))),o){!function(t,e,n){var i,o;const s=Object.keys(e).filter((e=>!t.hasValue(e))),r=s.length;if(r)for(let a=0;a<r;a++){const r=s[a],l=e[r];let u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!==(o=null!==(i=n[r])&&void 0!==i?i:t.readValue(r))&&void 0!==o?o:e[r]),null!=u&&("string"==typeof u&&(/^\-?\d*\.?\d+$/.test(u)||h(u))?u=parseFloat(u):!w(u)&&c.P.test(l)&&(u=(0,m.T)(r,l)),t.addValue(r,(0,p.B)(u)),void 0===n[r]&&(n[r]=u),null!==u&&t.setBaseTarget(r,u))}}(this,n,s);const t=((t,e,n,i)=>{const o=(0,Vt.mH)(t,e,i);return It(t,e=o.target,n,i=o.transitionEnd)})(this,n,s,e);e=t.transitionEnd,n=t.target}return{transition:t,transitionEnd:e,...n}}}class ee extends te{readValueFromInstance(t,e){if(M.has(e)){const t=(0,wt.A)(e);return t&&t.default||0}{const i=(n=t,window.getComputedStyle(n)),o=(mt(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,Et.J)(t,e)}build(t,e,n,i){gt(t,e,n,i.transformTemplate)}scrapeMotionValuesFromProps(t){return bt(t)}renderInstance(t,e,n,i){Pt(t,e,n,i)}}function ne(t,e,n){return"string"==typeof t?t:g.px.transform(e+n*t)}const ie={offset:"stroke-dashoffset",array:"stroke-dasharray"},oe={offset:"strokeDashoffset",array:"strokeDasharray"};function se(t,{attrX:e,attrY:n,originX:i,originY:o,pathLength:s,pathSpacing:r=1,pathOffset:a=0,...l},u,c){gt(t,l,u,c),t.attrs=t.style,t.style={};const{attrs:h,style:d,dimensions:p}=t;h.transform&&(p&&(d.transform=h.transform),delete h.transform),p&&(void 0!==i||void 0!==o||d.transform)&&(d.transformOrigin=function(t,e,n){return`${ne(e,t.x,t.width)} ${ne(n,t.y,t.height)}`}(p,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==e&&(h.x=e),void 0!==n&&(h.y=n),void 0!==s&&function(t,e,n=1,i=0,o=!0){t.pathLength=1;const s=o?ie:oe;t[s.offset]=g.px.transform(-i);const r=g.px.transform(e),a=g.px.transform(n);t[s.array]=`${r} ${a}`}(h,s,r,a,!1)}const re=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),ae=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);class le extends te{getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){var n;return M.has(e)?(null===(n=(0,wt.A)(e))||void 0===n?void 0:n.default)||0:(e=ae.has(e)?e:re(e),t.getAttribute(e))}measureInstanceViewportBox(){return(0,Yt.dO)()}scrapeMotionValuesFromProps(t){return function(t){const e=bt(t);for(const n in t)(0,R.i)(t[n])&&(e["x"===n||"y"===n?"attr"+n.toUpperCase():n]=t[n]);return e}(t)}build(t,e,n,i){se(t,e,n,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(ae.has(n)?n:re(n),e.attrs[n])}(t,e,0,i)}}const ue=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];const ce={renderer:(t,e)=>function(t){return"string"==typeof t&&!t.includes("-")&&!!(ue.indexOf(t)>-1||/[A-Z]/.test(t))}(t)?new le(e,{enableHardwareAcceleration:!1}):new ee(e,{enableHardwareAcceleration:!0}),...q,...ht}},6978:(t,e,n)=>{n.d(e,{Xp:()=>s,mH:()=>a});var i=n(9340);function o(t){return"string"==typeof t&&t.startsWith("var(--")}const s=/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=s.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():o(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(!o(e))return;const n=r(e,i);n&&t.set(n)}));for(const t in e){const s=e[t];if(!o(s))continue;const a=r(s,i);a&&(e[t]=a,n&&void 0===n[t]&&(n[t]=s))}return{target:e,transitionEnd:n}}},6914:(t,e,n)=>{n.d(e,{T:()=>r});var i=n(9500),o=n(6002),s=n(7557);function r(t,e){var n;let r=(0,s.A)(t);return r!==i.h&&(r=o.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(7576),o=n(9500);const s={...n(4923).j,color:i.$,backgroundColor:i.$,outlineColor:i.$,fill:i.$,stroke:i.$,borderColor:i.$,borderTopColor:i.$,borderRightColor:i.$,borderBottomColor:i.$,borderLeftColor:i.$,filter:o.h,WebkitFilter:o.h},r=t=>s[t]},4923:(t,e,n)=>{n.d(e,{j:()=>r});var i=n(155),o=n(1513),s=n(6933);const r={borderWidth:i.px,borderTopWidth:i.px,borderRightWidth:i.px,borderBottomWidth:i.px,borderLeftWidth:i.px,borderRadius:i.px,radius:i.px,borderTopLeftRadius:i.px,borderTopRightRadius:i.px,borderBottomRightRadius:i.px,borderBottomLeftRadius:i.px,width:i.px,maxWidth:i.px,height:i.px,maxHeight:i.px,size:i.px,top:i.px,right:i.px,bottom:i.px,left:i.px,padding:i.px,paddingTop:i.px,paddingRight:i.px,paddingBottom:i.px,paddingLeft:i.px,margin:i.px,marginTop:i.px,marginRight:i.px,marginBottom:i.px,marginLeft:i.px,rotate:i.RW,rotateX:i.RW,rotateY:i.RW,rotateZ:i.RW,scale:o.bA,scaleX:o.bA,scaleY:o.bA,scaleZ:o.bA,skew:i.RW,skewX:i.RW,skewY:i.RW,distance:i.px,translateX:i.px,translateY:i.px,translateZ:i.px,x:i.px,y:i.px,z:i.px,perspective:i.px,transformPerspective:i.px,opacity:o.Fq,originX:i.$C,originY:i.$C,originZ:i.px,zIndex:s.e,fillOpacity:o.Fq,strokeOpacity:o.Fq,numOctaves:s.e}},6933:(t,e,n)=>{n.d(e,{e:()=>i});const i={...n(1513).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 o(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}n.d(e,{cl:()=>o,y4:()=>i})},2866:(t,e,n)=>{n.d(e,{g:()=>o});var i=n(6162);function o(t,e){const n=performance.now(),o=({timestamp:s})=>{const r=s-n;r>=e&&(i.qY.read(o),t(r-e))};return i.ZP.read(o,!0),()=>i.qY.read(o)}},3093:(t,e,n)=>{n.d(e,{j:()=>i});const i="undefined"!=typeof document},3491:(t,e,n)=>{function i(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}n.d(e,{I:()=>i})},7048:(t,e,n)=>{n.d(e,{Y:()=>s,p:()=>o});var i=n(2819);const o=t=>Boolean(t&&"object"==typeof t&&t.mix&&t.toValue),s=t=>(0,i.C)(t)?t[t.length-1]||0:t},1065:(t,e,n)=>{n.d(e,{L:()=>o});var i=n(1180);class o{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 o=0;o<i;o++){const i=this.subscriptions[o];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:()=>o});var i=n(8370);function o(t){return(0,i.useEffect)((()=>()=>t()),[])}},1421:(t,e,n)=>{n.d(e,{B:()=>a});var i=n(6162),o=n(4060),s=n(1065);class r{constructor(t){var e;this.version="__VERSION__",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new s.L,this.velocityUpdateSubscribers=new s.L,this.renderSubscribers=new s.L,this.canTrackVelocity=!1,this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;const{delta:n,timestamp:o}=(0,i.$B)();this.lastUpdated!==o&&(this.timeDelta=n,this.lastUpdated=o,i.ZP.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),e&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>i.ZP.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e)))}onChange(t){return this.updateSubscribers.add(t)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(t){return t(this.get()),this.renderSubscribers.add(t)}attach(t){this.passiveEffect=t}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?(0,o.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)})).then((()=>this.clearAnimation()))}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function a(t){return new r(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},6162:(t,e,n)=>{n.d(e,{qY:()=>p,ZP:()=>x,iW:()=>m,$B:()=>y});const i=1/60*1e3,o="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),s="undefined"!=typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout((()=>t(o())),i);let r=!0,a=!1,l=!1;const u={delta:0,timestamp:0},c=["read","update","preRender","render","postRender"],h=c.reduce(((t,e)=>(t[e]=function(t){let e=[],n=[],i=0,o=!1,s=!1;const r=new WeakSet,a={schedule:(t,s=!1,a=!1)=>{const l=a&&o,u=l?e:n;return s&&r.add(t),-1===u.indexOf(t)&&(u.push(t),l&&o&&(i=e.length)),t},cancel:t=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1),r.delete(t)},process:l=>{if(o)s=!0;else{if(o=!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())}o=!1,s&&(s=!1,a.process(l))}}};return a}((()=>a=!0)),t)),{}),d=c.reduce(((t,e)=>{const n=h[e];return t[e]=(t,e=!1,i=!1)=>(a||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(u),t)),{}),f=t=>h[t].process(u),v=t=>{a=!1,u.delta=r?i:Math.max(Math.min(t-u.timestamp,40),1),u.timestamp=t,l=!0,c.forEach(f),l=!1,a&&(r=!1,s(v))},g=()=>{a=!0,r=!0,l||s(v)},y=()=>u,x=d},6924:(t,e,n)=>{n.d(e,{LU:()=>g,G2:()=>m,XL:()=>v,CG:()=>f,h9:()=>x,yD:()=>b,gJ:()=>y,Z7:()=>h,X7:()=>p,Bn:()=>d,YQ:()=>a,mZ:()=>c,Vv:()=>u,GE:()=>r});const i=t=>e=>1-t(1-e),o=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,s=t=>e=>e*e*((t+1)*e-t),r=t=>t,a=(l=2,t=>Math.pow(t,l));var l;const u=i(a),c=o(a),h=t=>1-Math.sin(Math.acos(t)),d=i(h),p=o(d),m=s(1.525),f=i(m),v=o(m),g=(t=>{const e=s(t);return t=>(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))})(1.525),y=t=>{if(1===t||0===t)return t;const e=t*t;return t<.36363636363636365?7.5625*e:t<.7272727272727273?9.075*e-9.9*t+3.4:t<.9?12.066481994459833*e-19.63545706371191*t+8.898060941828255:10.8*t*t-20.52*t+10.72},x=i(y),b=t=>t<.5?.5*(1-y(1-2*t)):.5*y(2*t-1)+.5},1698:(t,e,n)=>{n.d(e,{u:()=>i});const i=(t,e,n)=>Math.min(Math.max(n,t),e)},5091:(t,e,n)=>{n.d(e,{e:()=>i});const i=t=>"number"==typeof t},8481:(t,e,n)=>{n.d(e,{C:()=>i});const i=(t,e,n)=>-n*t+n*e+t},934:(t,e,n)=>{n.d(e,{z:()=>o});const i=(t,e)=>n=>e(t(n)),o=(...t)=>t.reduce(i)},1790:(t,e,n)=>{n.d(e,{Y:()=>i});const i=(t,e,n)=>{const i=e-t;return 0===i?1:(n-t)/i}},4060:(t,e,n)=>{function i(t,e){return e?t*(1e3/e):0}n.d(e,{R:()=>i})},9012:(t,e,n)=>{n.d(e,{$:()=>o});var i=n(3203);const o={test:(0,n(1552).i)("#"),parse:function(t){let e="",n="",i="",o="";return t.length>5?(e=t.substr(1,2),n=t.substr(3,2),i=t.substr(5,2),o=t.substr(7,2)):(e=t.substr(1,1),n=t.substr(2,1),i=t.substr(3,1),o=t.substr(4,1),e+=e,n+=n,i+=i,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:o?parseInt(o,16)/255:1}},transform:i.m.transform}},7493:(t,e,n)=>{n.d(e,{J:()=>a});var i=n(1513),o=n(155),s=n(5757),r=n(1552);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)+", "+o.aQ.transform((0,s.Nw)(e))+", "+o.aQ.transform((0,s.Nw)(n))+", "+(0,s.Nw)(i.Fq.transform(r))+")"}},7576:(t,e,n)=>{n.d(e,{$:()=>a});var i=n(5757),o=n(9012),s=n(7493),r=n(3203);const a={test:t=>r.m.test(t)||o.$.test(t)||s.J.test(t),parse:t=>r.m.test(t)?r.m.parse(t):s.J.test(t)?s.J.parse(t):o.$.parse(t),transform:t=>(0,i.HD)(t)?t:t.hasOwnProperty("red")?r.m.transform(t):s.J.transform(t)}},3203:(t,e,n)=>{n.d(e,{m:()=>l});var i=n(1513),o=n(5757),s=n(1552);const r=(0,o.uZ)(0,255),a=Object.assign(Object.assign({},i.Rx),{transform:t=>Math.round(r(t))}),l={test:(0,s.i)("rgb","red"),parse:(0,s.d)("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+a.transform(t)+", "+a.transform(e)+", "+a.transform(n)+", "+(0,o.Nw)(i.Fq.transform(s))+")"}},1552:(t,e,n)=>{n.d(e,{d:()=>s,i:()=>o});var i=n(5757);const o=(t,e)=>n=>Boolean((0,i.HD)(n)&&i.mj.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),s=(t,e,n)=>o=>{if(!(0,i.HD)(o))return o;const[s,r,a,l]=o.match(i.KP);return{[t]:parseFloat(s),[e]:parseFloat(r),[n]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},9500:(t,e,n)=>{n.d(e,{h:()=>l});var i=n(6002),o=n(5757);const s=new Set(["brightness","contrast","saturate","opacity"]);function r(t){let[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[i]=n.match(o.KP)||[];if(!i)return t;const r=n.replace(i,"");let a=s.has(e)?1:0;return i!==n&&(a*=100),e+"("+a+r+")"}const a=/([a-z-]*)\(.*?\)/g,l=Object.assign(Object.assign({},i.P),{getAnimatableNone:t=>{const e=t.match(a);return e?e.map(r).join(" "):t}})},6002:(t,e,n)=>{n.d(e,{P:()=>d});var i=n(7576),o=n(1513),s=n(5757);const r="${c}",a="${n}";function l(t){"number"==typeof t&&(t=`${t}`);const e=[];let n=0;const l=t.match(s.dA);l&&(n=l.length,t=t.replace(s.dA,r),e.push(...l.map(i.$.parse)));const u=t.match(s.KP);return u&&(t=t.replace(s.KP,a),e.push(...u.map(o.Rx.parse))),{values:e,numColors:n,tokenised:t}}function u(t){return l(t).values}function c(t){const{values:e,numColors:n,tokenised:o}=l(t),u=e.length;return t=>{let e=o;for(let o=0;o<u;o++)e=e.replace(o<n?r:a,o<n?i.$.transform(t[o]):(0,s.Nw)(t[o]));return e}}const h=t=>"number"==typeof t?0:t;const d={test:function(t){var e,n,i,o;return isNaN(t)&&(0,s.HD)(t)&&(null!==(n=null===(e=t.match(s.KP))||void 0===e?void 0:e.length)&&void 0!==n?n:0)+(null!==(o=null===(i=t.match(s.dA))||void 0===i?void 0:i.length)&&void 0!==o?o:0)>0},parse:u,createTransformer:c,getAnimatableNone:function(t){const e=u(t);return c(t)(e.map(h))}}},1513:(t,e,n)=>{n.d(e,{Fq:()=>s,Rx:()=>o,bA:()=>r});var i=n(5757);const o={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},s=Object.assign(Object.assign({},o),{transform:(0,i.uZ)(0,1)}),r=Object.assign(Object.assign({},o),{default:1})},155:(t,e,n)=>{n.d(e,{$C:()=>c,RW:()=>s,aQ:()=>r,px:()=>a,vh:()=>l,vw:()=>u});var i=n(5757);const o=t=>({test:e=>(0,i.HD)(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),s=o("deg"),r=o("%"),a=o("px"),l=o("vh"),u=o("vw"),c=Object.assign(Object.assign({},r),{parse:t=>r.parse(t)/100,transform:t=>r.transform(100*t)})},5757:(t,e,n)=>{n.d(e,{HD:()=>l,KP:()=>s,Nw:()=>o,dA:()=>r,mj:()=>a,uZ:()=>i});const i=(t,e)=>n=>Math.max(Math.min(n,e),t),o=t=>t%1?Number(t.toFixed(5)):t,s=/(-)?([\d]*\.?[\d])+/g,r=/(#[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,a=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function l(t){return"string"==typeof t}}},e={};function n(i){var o=e[i];if(void 0!==o)return o.exports;var s=e[i]={exports:{}};return t[i](s,s.exports,n),s.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),o=n(3541),s=n(409),r=n(6162),a=n(1818),l=n(1395);const u=t=>t.hasOwnProperty("x")&&t.hasOwnProperty("y"),c=t=>u(t)&&t.hasOwnProperty("z");var h=n(5091);const d=(t,e)=>Math.abs(t-e);function p(t,e){if((0,h.e)(t)&&(0,h.e)(e))return d(t,e);if(u(t)&&u(e)){const n=d(t.x,e.x),i=d(t.y,e.y),o=c(t)&&c(e)?d(t.z,e.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(i,2)+Math.pow(o,2))}}var m=n(934);class f{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=y(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=p(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:i}=t,{timestamp:o}=(0,r.$B)();this.history.push({...i,timestamp:o});const{onStart:s,onMove:a}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=v(e,this.transformPagePoint),(0,o.N)(t)&&0===t.buttons?this.handlePointerUp(t,e):r.ZP.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:i}=this.handlers,o=y(v(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),i&&i(t,o)},(0,o.z)(t)&&t.touches.length>1)return;this.handlers=e,this.transformPagePoint=n;const i=v((0,s.Qk)(t),this.transformPagePoint),{point:a}=i,{timestamp:u}=(0,r.$B)();this.history=[{...a,timestamp:u}];const{onSessionStart:c}=e;c&&c(t,y(i,this.history)),this.removeListeners=(0,m.z)((0,l.a)(window,"pointermove",this.handlePointerMove),(0,l.a)(window,"pointerup",this.handlePointerUp),(0,l.a)(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),r.qY.update(this.updatePoint)}}function v(t,e){return e?{point:e(t.point)}:t}function g(t,e){return{x:t.x-e.x,y:t.y-e.y}}function y({point:t},e){return{point:t,delta:g(t,b(e)),offset:g(t,x(e)),velocity:P(e,.1)}}function x(t){return t[0]}function b(t){return t[t.length-1]}function P(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const o=b(t);for(;n>=0&&(i=t[n],!(o.timestamp-i.timestamp>(0,a.w)(e)));)n--;if(!i)return{x:0,y:0};const s=(o.timestamp-i.timestamp)/1e3;if(0===s)return{x:0,y:0};const r={x:(o.x-i.x)/s,y:(o.y-i.y)/s};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}var w=n(5856),E=n(3491),V=n(8481),A=n(1790),T=n(1698);function S(t){return t.max-t.min}function C(t,e=0,n=.01){return p(t,e)<n}function M(t,e,n,i=.5){t.origin=i,t.originPoint=(0,V.C)(e.min,e.max,t.origin),t.scale=S(n)/S(e),(C(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=(0,V.C)(n.min,n.max,t.origin)-t.originPoint,(C(t.translate)||isNaN(t.translate))&&(t.translate=0)}function R(t,e,n,i){M(t.x,e.x,n.x,null==i?void 0:i.originX),M(t.y,e.y,n.y,null==i?void 0:i.originY)}function D(t,e,n){t.min=n.min+e.min,t.max=t.min+S(e)}function O(t,e,n){t.min=e.min-n.min,t.max=t.min+S(e)}function k(t,e,n){O(t.x,e.x,n.x),O(t.y,e.y,n.y)}function B(t,{min:e,max:n},i){return void 0!==e&&t<e?t=i?(0,V.C)(e,t,i.min):Math.max(t,e):void 0!==n&&t>n&&(t=i?(0,V.C)(n,t,i.max):Math.min(t,n)),t}function j(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 L(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 F(t,e){let n=.5;const i=S(t),o=S(e);return o>i?n=(0,A.Y)(e.min,e.max-i,t.min):i>o&&(n=(0,A.Y)(t.min,t.max-o,e.min)),(0,T.u)(0,1,n)}const I=.35;function U(t,e,n){return{min:$(t,e),max:$(t,n)}}function $(t,e){var n;return"number"==typeof t?t:null!==(n=t[e])&&void 0!==n?n:0}var N=n(7921),Y=n(1397);function z(t){return[t("x"),t("y")]}var W=n(8834),H=n(3880),q=n(483),X=n(1876),Z=n(155);const G=new WeakMap;class K{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,Y.dO)(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){if(!1===this.visualElement.isPresent)return;this.panSession=new f(t,{onSessionStart:t=>{this.stopAnimation(),e&&this.snapToCursor((0,s.Qk)(t,"page").point)},onStart:(t,e)=>{var n;const{drag:i,dragPropagation:o,onDragStart:s}=this.getProps();(!i||o||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=(0,w.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),z((t=>{var e,n;let i=this.getAxisMotionValue(t).get()||0;if(Z.aQ.test(i)){const o=null===(n=null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout)||void 0===n?void 0:n.layoutBox[t];if(o){i=S(o)*(parseFloat(i)/100)}}this.originPoint[t]=i})),null==s||s(t,e),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(N.r.Drag,!0))},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:i,onDirectionLock:o,onDrag:s}=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==o||o(this.currentDirection)));this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),null==s||s(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:o}=this.getProps();null==o||o(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(N.r.Drag,!1)}updateAxis(t,e,n){const{drag:i}=this.getProps();if(!n||!J(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=B(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:e}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;t&&(0,E.I)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!n)&&function(t,{top:e,left:n,bottom:i,right:o}){return{x:j(t.x,n,o),y:j(t.y,e,i)}}(n.layoutBox,t),this.elastic=function(t=I){return!1===t?t=0:!0===t&&(t=I),{x:U(t,"left","right"),y:U(t,"top","bottom")}}(e),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&z((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,E.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:o}=this.visualElement;if(!o||!o.layout)return!1;const s=(0,W.z)(n,o.root,this.visualElement.getTransformPagePoint());let r=function(t,e){return{x:L(t.x,e.x),y:L(t.y,e.y)}}(o.layout.layoutBox,s);if(e){const t=e((0,q.z2)(r));this.hasMutatedConstraints=!!t,t&&(r=(0,q.i8)(t))}return r}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},l=z((r=>{var l;if(!J(r,e,this.currentDirection))return;let u=null!==(l=null==a?void 0:a[r])&&void 0!==l?l:{};s&&(u={min:0,max:0});const c=i?200:1e6,h=i?40:1e7,d={type:"inertia",velocity:n?t[r]:0,bounceStiffness:c,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...u};return this.startAxisValueAnimation(r,d)}));return Promise.all(l).then(r)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return(0,H.b8)(t,n,0,e)}stopAnimation(){z((t=>this.getAxisMotionValue(t).stop()))}getAxisMotionValue(t){var e,n;const i="_drag"+t.toUpperCase(),o=this.visualElement.getProps()[i];return o||this.visualElement.getValue(t,null!==(n=null===(e=this.visualElement.getProps().initial)||void 0===e?void 0:e[t])&&void 0!==n?n:0)}snapToCursor(t){z((e=>{const{drag:n}=this.getProps();if(!J(e,n,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(e);if(i&&i.layout){const{min:n,max:s}=i.layout.layoutBox[e];o.set(t[e]-(0,V.C)(n,s,.5))}}))}scalePositionWithinConstraints(){var t;if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!(0,E.I)(n)||!i||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};z((t=>{const e=this.getAxisMotionValue(t);if(e){const n=e.get();o[t]=F({min:n,max:n},this.constraints[t])}}));const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",null===(t=i.root)||void 0===t||t.updateScroll(),i.updateLayout(),this.resolveConstraints(),z((t=>{if(!J(t,e,null))return;const n=this.getAxisMotionValue(t),{min:i,max:s}=this.constraints[t];n.set((0,V.C)(i,s,o[t]))}))}addListeners(){var t;if(!this.visualElement.current)return;G.set(this.visualElement,this);const e=this.visualElement.current,n=(0,l.a)(e,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),i=()=>{const{dragConstraints:t}=this.getProps();(0,E.I)(t)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,s=o.addEventListener("measure",i);o&&!o.layout&&(null===(t=o.root)||void 0===t||t.updateScroll(),o.updateLayout()),i();const r=(0,X.E)(window,"resize",(()=>this.scalePositionWithinConstraints())),a=o.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(z((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(),s(),null==a||a()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=I,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:r}}}function J(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const Q=(0,t.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});var _=n(9531);var tt=n(6295);const et={pan:(0,tt.x)((function({onPan:e,onPanStart:n,onPanEnd:i,onPanSessionStart:o,visualElement:s}){const r=e||n||i||o,a=(0,t.useRef)(null),{transformPagePoint:u}=(0,t.useContext)(Q),c={onSessionStart:o,onStart:n,onMove:e,onEnd:(t,e)=>{a.current=null,i&&i(t,e)}};(0,t.useEffect)((()=>{null!==a.current&&a.current.updateHandlers(c)})),(0,l.m)(s,"pointerdown",r&&function(t){a.current=new f(t,c,{transformPagePoint:u})}),(0,_.z)((()=>a.current&&a.current.end()))})),drag:(0,tt.x)((function(e){const{dragControls:n,visualElement:i}=e,o=function(e){const n=(0,t.useRef)(null);return null===n.current&&(n.current=e()),n.current}((()=>new K(i)));(0,t.useEffect)((()=>n&&n.subscribe(o)),[o,n]),(0,t.useEffect)((()=>o.addListeners()),[o])}))};var nt=n(1930);const it=(0,t.createContext)({}),ot=(0,t.createContext)({}),st={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rt(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const at={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!Z.px.test(t))return t;t=parseFloat(t)}return`${rt(t,e.target.x)}% ${rt(t,e.target.y)}%`}};var lt=n(6002),ut=n(6978);const ct="_$css",ht={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,o=t.includes("var("),s=[];o&&(t=t.replace(ut.Xp,(t=>(s.push(t),ct))));const r=lt.P.parse(t);if(r.length>5)return i;const a=lt.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,V.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(o){let t=0;d=d.replace(ct,(()=>{const e=s[t];return t++,e}))}return d}};var dt=n(798);class pt extends e().Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:o}=t;(0,dt.B)(mt),o&&(e.group&&e.group.add(o),n&&n.register&&i&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),st.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:i,isPresent:o}=this.props,s=n.projection;return s?(s.isPresent=o,i||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||r.ZP.postRender((()=>{var t;(null===(t=s.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 mt={borderRadius:{...at,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:at,borderTopRightRadius:at,borderBottomLeftRadius:at,borderBottomRightRadius:at,boxShadow:ht},ft={measureLayout:function(n){const[i,o]=(0,nt.oO)(),s=(0,t.useContext)(it);return e().createElement(pt,{...n,layoutGroup:s,switchLayoutGroup:(0,t.useContext)(ot),isPresent:i,safeToRemove:o})}};var vt=n(1421),gt=n(7846);var yt=n(1065),xt=n(6924);const bt=["TopLeft","TopRight","BottomLeft","BottomRight"],Pt=bt.length,wt=t=>"string"==typeof t?parseFloat(t):t,Et=t=>"number"==typeof t||Z.px.test(t);function Vt(t,e){var n;return null!==(n=t[e])&&void 0!==n?n:t.borderRadius}const At=St(0,.5,xt.Bn),Tt=St(.5,.95,xt.GE);function St(t,e,n){return i=>i<t?0:i>e?1:n((0,A.Y)(t,e,i))}function Ct(t,e){t.min=e.min,t.max=e.max}function Mt(t,e){Ct(t.x,e.x),Ct(t.y,e.y)}var Rt=n(1360);function Dt(t,e,n,i,o){return t-=e,t=(0,Rt.q2)(t,1/n,i),void 0!==o&&(t=(0,Rt.q2)(t,1/o,i)),t}function Ot(t,e,[n,i,o],s,r){!function(t,e=0,n=1,i=.5,o,s=t,r=t){Z.aQ.test(e)&&(e=parseFloat(e),e=(0,V.C)(r.min,r.max,e/100)-r.min);if("number"!=typeof e)return;let a=(0,V.C)(s.min,s.max,i);t===s&&(a-=e),t.min=Dt(t.min,e,n,a,o),t.max=Dt(t.max,e,n,a,o)}(t,e[n],e[i],e[o],e.scale,s,r)}const kt=["x","scaleX","originX"],Bt=["y","scaleY","originY"];function jt(t,e,n,i){Ot(t.x,e,kt,null==n?void 0:n.x,null==i?void 0:i.x),Ot(t.y,e,Bt,null==n?void 0:n.y,null==i?void 0:i.y)}function Lt(t){return 0===t.translate&&1===t.scale}function Ft(t){return Lt(t.x)&&Lt(t.y)}function It(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 Ut(t){return S(t.x)/S(t.y)}var $t=n(1180);class Nt{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:o}=t.options;!1===o&&i.hide()}}exitAnimationComplete(){this.members.forEach((t=>{var e,n,i,o,s;null===(n=(e=t.options).onExitComplete)||void 0===n||n.call(e),null===(s=null===(i=t.resumingFrom)||void 0===i?void 0:(o=i.options).onExitComplete)||void 0===s||s.call(o)}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Yt(t,e,n){let i="";const o=t.x.translate/e.x,s=t.y.translate/e.y;if((o||s)&&(i=`translate3d(${o}px, ${s}px, 0) `),1===e.x&&1===e.y||(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:t,rotateX:e,rotateY:o}=n;t&&(i+=`rotate(${t}deg) `),e&&(i+=`rotateX(${e}deg) `),o&&(i+=`rotateY(${o}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 zt=n(4918);const Wt=(t,e)=>t.depth-e.depth;class Ht{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(Wt),this.isDirty=!1,this.children.forEach(t)}}var qt=n(7048);function Xt(t){const e=(0,gt.i)(t)?t.get():t;return(0,qt.p)(e)?e.toValue():e}var Zt=n(2866);const Gt=["","X","Y","Z"];let Kt=0;function Jt({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(t,n={},i=(null==e?void 0:e())){this.id=Kt++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!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(oe),this.nodes.forEach(se)},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 Ht)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new yt.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:o,layout:s,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&&(s||o)&&(this.isLayoutDirty=!0),t){let n;const i=()=>this.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=(0,Zt.g)(i,250),st.hasAnimatedSinceResize&&(st.hasAnimatedSinceResize=!1,this.nodes.forEach(ie))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&r&&(o||s)&&this.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:i})=>{var o,s,a,l,u;if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const c=null!==(s=null!==(o=this.options.transition)&&void 0!==o?o:r.getDefaultTransition())&&void 0!==s?s:he,{onLayoutAnimationStart:h,onLayoutAnimationComplete:d}=r.getProps(),p=!this.targetLayout||!It(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,H.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,r.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:o,layout:s}=this.options;if(void 0===o&&!s)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(Qt),this.nodes.forEach(_t),this.clearAllSnapshots(),r.iW.update(),r.iW.preRender(),r.iW.render())}clearAllSnapshots(){this.nodes.forEach(te),this.sharedNodes.forEach(ae)}scheduleUpdateProjection(){r.ZP.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){r.ZP.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,Y.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(!o)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,s=null==i?void 0:i(this.latestValues,""),r=s!==this.prevTransformTemplateValue;e&&(n||(0,zt.ud)(this.latestValues)||r)&&(o(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;const n=this.measurePageBox();let i=this.removeElementScroll(n);var o;t&&(i=this.removeTransform(i)),pe((o=i).x),pe(o.y);const s=null===(e=this.options.visualElement)||void 0===e?void 0:e.readValue("position"),r="fixed"===s||"sticky"===s?s:"static";return{animationId:this.root.animationId,measuredBox:n,layoutBox:i,latestValues:{},source:this.id,position:r}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return(0,Y.dO)();const e=t.measureViewportBox(),{scroll:n}=this.root;return n&&((0,Rt.am)(e.x,n.offset.x),(0,Rt.am)(e.y,n.offset.y)),e}removeElementScroll(t){const e=(0,Y.dO)();Mt(e,t);for(let n=0;n<this.path.length;n++){const i=this.path[n],{scroll:o,options:s}=i;if(i!==this.root&&o&&s.layoutScroll){if(o.isRoot){Mt(e,t);const{scroll:n}=this.root;n&&((0,Rt.am)(e.x,-n.offset.x),(0,Rt.am)(e.y,-n.offset.y))}(0,Rt.am)(e.x,o.offset.x),(0,Rt.am)(e.y,o.offset.y)}}return e}applyTransform(t,e=!1){const n=(0,Y.dO)();Mt(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,Rt.D2)(n,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),(0,zt.ud)(i.latestValues)&&(0,Rt.D2)(n,i.latestValues)}return(0,zt.ud)(this.latestValues)&&(0,Rt.D2)(n,this.latestValues),n}removeTransform(t){var e;const n=(0,Y.dO)();Mt(n,t);for(let t=0;t<this.path.length;t++){const i=this.path[t];if(!i.instance)continue;if(!(0,zt.ud)(i.latestValues))continue;(0,zt.Lj)(i.latestValues)&&i.updateSnapshot();const o=(0,Y.dO)();Mt(o,i.measurePageBox()),jt(n,i.latestValues,null===(e=i.snapshot)||void 0===e?void 0:e.layoutBox,o)}return(0,zt.ud)(this.latestValues)&&jt(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;if(this.isProjectionDirty||(this.isProjectionDirty=this.getLead().isProjectionDirty||Boolean(this.parent&&this.parent.isProjectionDirty)),!this.isProjectionDirty)return;const{layout:e,layoutId:n}=this.options;if(this.layout&&(e||n)){if(!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout?(this.relativeParent=t,this.relativeTarget=(0,Y.dO)(),this.relativeTargetOrigin=(0,Y.dO)(),k(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),Mt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}var i,o,s;if(this.relativeTarget||this.targetDelta)if(this.target||(this.target=(0,Y.dO)(),this.targetWithTransforms=(0,Y.dO)()),this.relativeTarget&&this.relativeTargetOrigin&&(null===(t=this.relativeParent)||void 0===t?void 0:t.target)?(i=this.target,o=this.relativeTarget,s=this.relativeParent.target,D(i.x,o.x,s.x),D(i.y,o.y,s.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Mt(this.target,this.layout.layoutBox),(0,Rt.o2)(this.target,this.targetDelta)):Mt(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,Y.dO)(),this.relativeTargetOrigin=(0,Y.dO)(),k(this.relativeTargetOrigin,this.target,t.target),Mt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(this.parent&&!(0,zt.Lj)(this.parent.latestValues)&&!(0,zt.D_)(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var t;if(!this.isProjectionDirty)return;this.isProjectionDirty=!1;const{layout:e,layoutId:n}=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||!e&&!n)return;const i=this.getLead();Mt(this.layoutCorrected,this.layout.layoutBox),(0,Rt.YY)(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==i);const{target:o}=i;if(!o)return;this.projectionDelta||(this.projectionDelta=(0,Y.wc)(),this.projectionDeltaWithTransform=(0,Y.wc)());const s=this.treeScale.x,r=this.treeScale.y,a=this.projectionTransform;R(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.projectionTransform=Yt(this.projectionDelta,this.treeScale),this.projectionTransform===a&&this.treeScale.x===s&&this.treeScale.y===r||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}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 o=this.snapshot,s=(null==o?void 0:o.latestValues)||{},r={...this.latestValues},a=(0,Y.wc)();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!e;const l=(0,Y.dO)(),u=(null==o?void 0:o.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 o,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)&&(k(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),o=this.relativeTarget,d=this.relativeTargetOrigin,p=l,m=i,ue(o.x,d.x,p.x,m),ue(o.y,d.y,p.y,m)),u&&(this.animationValues=r,function(t,e,n,i,o,s){var r,a,l,u;o?(t.opacity=(0,V.C)(0,null!==(r=n.opacity)&&void 0!==r?r:1,At(i)),t.opacityExit=(0,V.C)(null!==(a=e.opacity)&&void 0!==a?a:1,0,Tt(i))):s&&(t.opacity=(0,V.C)(null!==(l=e.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,i));for(let o=0;o<Pt;o++){const s=`border${bt[o]}Radius`;let r=Vt(e,s),a=Vt(n,s);void 0===r&&void 0===a||(r||(r=0),a||(a=0),0===r||0===a||Et(r)===Et(a)?(t[s]=Math.max((0,V.C)(wt(r),wt(a),i),0),(Z.aQ.test(a)||Z.aQ.test(r))&&(t[s]+="%")):t[s]=a)}(e.rotate||n.rotate)&&(t.rotate=(0,V.C)(e.rotate||0,n.rotate||0,i))}(r,s,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&&(r.qY.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=r.ZP.update((()=>{st.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n={}){const i=(0,gt.i)(t)?t:(0,vt.B)(t);return(0,H.b8)("",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:o}=t;if(e&&n&&i){if(this!==t&&this.layout&&i&&me(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||(0,Y.dO)();const e=S(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const i=S(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}Mt(e,n),(0,Rt.D2)(e,o),R(this.projectionDeltaWithTransform,this.layoutCorrected,e,o)}}registerSharedNode(t,e){var n,i,o;this.sharedNodes.has(t)||this.sharedNodes.set(t,new Nt);this.sharedNodes.get(t).add(e),e.promote({transition:null===(n=e.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(o=null===(i=e.options.initialPromotionConfig)||void 0===i?void 0:i.shouldPreserveFollowOpacity)||void 0===o?void 0:o.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<Gt.length;e++){const o="rotate"+Gt[e];n[o]&&(i[o]=n[o],t.setStaticValue(o,0))}null==t||t.render();for(const e in i)t.setStaticValue(e,i[e]);t.scheduleRender()}getProjectionStyles(t={}){var e,n,i;const o={};if(!this.instance||this.isSVG)return o;if(!this.isVisible)return{visibility:"hidden"};o.visibility="";const s=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,o.opacity="",o.pointerEvents=Xt(t.pointerEvents)||"",o.transform=s?s(this.latestValues,""):"none",o;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=Xt(t.pointerEvents)||""),this.hasProjected&&!(0,zt.ud)(this.latestValues)&&(e.transform=s?s({},""):"none",this.hasProjected=!1),e}const a=r.animationValues||r.latestValues;this.applyTransformsToTarget(),o.transform=Yt(this.projectionDeltaWithTransform,this.treeScale,a),s&&(o.transform=s(a,o.transform));const{x:l,y:u}=this.projectionDelta;o.transformOrigin=`${100*l.origin}% ${100*u.origin}% 0`,r.animationValues?o.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:o.opacity=r===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const t in dt.P){if(void 0===a[t])continue;const{correct:e,applyTo:n}=dt.P[t],i=e(a[t],r);if(n){const t=n.length;for(let e=0;e<t;e++)o[n[e]]=i}else o[t]=i}return this.options.layoutId&&(o.pointerEvents=r===this?Xt(t.pointerEvents)||"":"none"),o}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 Qt(t){t.updateLayout()}function _t(t){var e,n,i;const o=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&o&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:n}=t.layout,{animationType:i}=t.options,s=o.source!==t.layout.source;"size"===i?z((t=>{const n=s?o.measuredBox[t]:o.layoutBox[t],i=S(n);n.min=e[t].min,n.max=n.min+i})):me(i,o.layoutBox,e)&&z((t=>{const n=s?o.measuredBox[t]:o.layoutBox[t],i=S(e[t]);n.max=n.min+i}));const r=(0,Y.wc)();R(r,e,o.layoutBox);const a=(0,Y.wc)();s?R(a,t.applyTransform(n,!0),o.measuredBox):R(a,e,o.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,Y.dO)();k(n,o.layoutBox,t.layoutBox);const s=(0,Y.dO)();k(s,e,i.layoutBox),It(n,s)||(u=!0)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:o,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 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 oe(t){t.resolveTargetDelta()}function se(t){t.calcProjection()}function re(t){t.resetRotation()}function ae(t){t.removeLeadSnapshot()}function le(t,e,n){t.translate=(0,V.C)(e.translate,0,n),t.scale=(0,V.C)(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function ue(t,e,n,i){t.min=(0,V.C)(e.min,n.min,i),t.max=(0,V.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&&!function(t,e,n=.1){return p(t,e)<=n}(Ut(e),Ut(n),.2)}const fe=Jt({attachResizeListener:(t,e)=>(0,X.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=Jt({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(5151).H})()})();
@@ -1239,15 +1239,27 @@ declare class FlatTree {
1239
1239
  forEach(callback: (child: WithDepth) => void): void;
1240
1240
  }
1241
1241
 
1242
+ declare type Position = "static" | "sticky" | "fixed";
1242
1243
  interface Measurements {
1244
+ animationId: number;
1243
1245
  measuredBox: Box;
1244
1246
  layoutBox: Box;
1245
1247
  latestValues: ResolvedValues;
1246
- isShared?: boolean;
1248
+ source: number;
1249
+ position: Position;
1250
+ }
1251
+ declare type Phase = "snapshot" | "measure";
1252
+ interface ScrollMeasurements {
1253
+ animationId: number;
1254
+ phase: Phase;
1255
+ isRoot: boolean;
1256
+ offset: Point;
1247
1257
  }
1248
1258
  declare type LayoutEvents = "willUpdate" | "didUpdate" | "beforeMeasure" | "measure" | "projectionUpdate" | "animationStart" | "animationComplete";
1249
1259
  interface IProjectionNode<I = unknown> {
1260
+ id: number;
1250
1261
  elementId: number | undefined;
1262
+ animationId: number;
1251
1263
  parent?: IProjectionNode;
1252
1264
  relativeParent?: IProjectionNode;
1253
1265
  root?: IProjectionNode;
@@ -1266,13 +1278,13 @@ interface IProjectionNode<I = unknown> {
1266
1278
  relativeTarget?: Box;
1267
1279
  targetDelta?: Delta;
1268
1280
  targetWithTransforms?: Box;
1269
- scroll?: Point;
1270
- isScrollRoot?: boolean;
1281
+ scroll?: ScrollMeasurements;
1271
1282
  treeScale?: Point;
1272
1283
  projectionDelta?: Delta;
1273
1284
  projectionDeltaWithTransform?: Delta;
1274
1285
  latestValues: ResolvedValues;
1275
1286
  isLayoutDirty: boolean;
1287
+ isProjectionDirty: boolean;
1276
1288
  shouldResetTransform: boolean;
1277
1289
  prevTransformTemplateValue: string | undefined;
1278
1290
  isUpdateBlocked(): boolean;
@@ -1290,7 +1302,7 @@ interface IProjectionNode<I = unknown> {
1290
1302
  updateLayout(): void;
1291
1303
  updateSnapshot(): void;
1292
1304
  clearSnapshot(): void;
1293
- updateScroll(): void;
1305
+ updateScroll(phase?: Phase): void;
1294
1306
  scheduleUpdateProjection(): void;
1295
1307
  scheduleCheckAfterUnmount(): void;
1296
1308
  checkUpdateFailed(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "framer-motion",
3
- "version": "7.6.7",
3
+ "version": "7.6.9",
4
4
  "description": "A simple and powerful React animation library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/es/index.mjs",
@@ -73,7 +73,7 @@
73
73
  "bundlesize": [
74
74
  {
75
75
  "path": "./dist/size-rollup-motion.js",
76
- "maxSize": "29.35 kB"
76
+ "maxSize": "29.55 kB"
77
77
  },
78
78
  {
79
79
  "path": "./dist/size-rollup-m.js",
@@ -85,7 +85,7 @@
85
85
  },
86
86
  {
87
87
  "path": "./dist/size-rollup-dom-max.js",
88
- "maxSize": "25.32 kB"
88
+ "maxSize": "25.6 kB"
89
89
  },
90
90
  {
91
91
  "path": "./dist/size-webpack-m.js",
@@ -97,8 +97,8 @@
97
97
  },
98
98
  {
99
99
  "path": "./dist/size-webpack-dom-max.js",
100
- "maxSize": "30.55kB"
100
+ "maxSize": "30.8kB"
101
101
  }
102
102
  ],
103
- "gitHead": "94ed9d49995ce1d09037e47a44fd68f83bd1cd22"
103
+ "gitHead": "be3f5174475aa000410d6613a073b863e617079c"
104
104
  }