framer-motion 8.2.2 → 8.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +24 -17
- package/dist/es/gestures/use-focus-gesture.mjs +5 -4
- package/dist/es/gestures/use-hover-gesture.mjs +11 -6
- package/dist/es/gestures/use-tap-gesture.mjs +10 -7
- package/dist/es/render/utils/motion-values.mjs +1 -1
- package/dist/es/value/index.mjs +1 -1
- package/dist/framer-motion.dev.js +24 -17
- package/dist/framer-motion.js +1 -1
- package/dist/projection.dev.js +2 -2
- package/dist/size-rollup-dom-animation.js +1 -1
- package/dist/size-rollup-dom-max.js +1 -1
- package/dist/size-rollup-motion.js +1 -1
- package/dist/size-webpack-dom-animation.js +1 -1
- package/dist/size-webpack-dom-max.js +1 -1
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var t={9340:(t,e,n)=>{n.d(e,{K:()=>r,k:()=>o});var r=function(){},o=function(){}},6405:(t,e,n)=>{n.d(e,{Z:()=>Vt});var r=n(9340),o=n(1818);const s=!1;var i=n(8313),a=n(5222),l=n(9273);const u=t=>t*t,c=(0,l.M)(u),p=(0,a.o)(u);var d=n(2890),h=n(9043),f=n(5430);function m(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}var v=n(4775),g=n(6077),y=n(5193);const w=(t,e,n)=>{const r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},b=[v.$,g.m,y.J];function x(t){const e=(n=t,b.find((t=>t.test(n))));var n;(0,r.k)(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`);let o=e.parse(t);return e===y.J&&(o=function({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,n/=100;let o=0,s=0,i=0;if(e/=100){const r=n<.5?n*(1+e):n+e-n*e,a=2*n-r;o=m(a,r,t+1/3),s=m(a,r,t),i=m(a,r,t-1/3)}else o=s=i=n;return{red:Math.round(255*o),green:Math.round(255*s),blue:Math.round(255*i),alpha:r}}(o)),o}const V=(t,e)=>{const n=x(t),r=x(e),o={...n};return t=>(o.red=w(n.red,r.red,t),o.green=w(n.green,r.green,t),o.blue=w(n.blue,r.blue,t),o.alpha=(0,f.C)(n.alpha,r.alpha,t),g.m.transform(o))};var A=n(9820),C=n(26);function M(t,e){return"number"==typeof t?n=>(0,f.C)(t,e,n):d.$.test(t)?V(t,e):k(t,e)}const S=(t,e)=>{const n=[...t],r=n.length,o=t.map(((t,n)=>M(t,e[n])));return t=>{for(let e=0;e<r;e++)n[e]=o[e](t);return n}},P=(t,e)=>{const n={...t,...e},r={};for(const o in n)void 0!==t[o]&&void 0!==e[o]&&(r[o]=M(t[o],e[o]));return t=>{for(const e in r)n[e]=r[e](t);return n}},k=(t,e)=>{const n=C.P.createTransformer(e),o=(0,C.V)(t),s=(0,C.V)(e);return o.numColors===s.numColors&&o.numNumbers>=s.numNumbers?(0,A.z)(S(o.values,s.values),n):((0,r.K)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?e:t}`)};var E=n(918);const T=(t,e)=>n=>(0,f.C)(t,e,n);function F(t,e,n){const r=[],o=n||("number"==typeof(s=t[0])?T:"string"==typeof s?d.$.test(s)?V:k:Array.isArray(s)?S:"object"==typeof s?P:T);var s;const i=t.length-1;for(let n=0;n<i;n++){let s=o(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]:e;s=(0,A.z)(t,s)}r.push(s)}return r}function O(t,e,{clamp:n=!0,ease:o,mixer:s}={}){const i=t.length;(0,r.k)(i===e.length,"Both input and output ranges must be the same length"),(0,r.k)(!o||!Array.isArray(o)||o.length===i-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[i-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=F(e,o,s),l=a.length,u=e=>{let n=0;if(l>1)for(;n<t.length-2&&!(e<t[n+1]);n++);const r=(0,E.Y)(t[n],t[n+1],e);return a[n](r)};return n?e=>u((0,h.u)(t[0],t[i-1],e)):u}var $=n(2634);const R=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function I(t,e,n,r){if(t===e&&n===r)return $.Z;const o=e=>function(t,e,n,r,o){let s,i,a=0;do{i=e+(n-e)/2,s=R(i,r,o)-t,s>0?n=i:e=i}while(Math.abs(s)>1e-7&&++a<12);return i}(e,0,1,t,n);return t=>0===t||1===t?t:R(o(t),e,r)}var D=n(7110);const B=I(.33,1.53,.69,.99),N=(0,l.M)(B),j=(0,a.o)(N),Z={linear:$.Z,easeIn:u,easeInOut:p,easeOut:c,circIn:D.Z7,circInOut:D.X7,circOut:D.Bn,backIn:N,backInOut:j,backOut:B,anticipate:t=>(t*=2)<1?.5*N(t):.5*(2-Math.pow(2,-10*(t-1)))},L=t=>{if(Array.isArray(t)){(0,r.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,o,s]=t;return I(e,n,o,s)}return"string"==typeof t?((0,r.k)(void 0!==Z[t],`Invalid easing type '${t}'`),Z[t]):t};function W({keyframes:t,ease:e=p,times:n,duration:r=300}){t=[...t];const o=(t=>Array.isArray(t)&&"number"!=typeof t[0])(e)?e.map(L):L(e),s={done:!1,value:t[0]},i=function(t,e){return t.map((t=>t*e))}(n&&n.length===t.length?n:function(t){const e=t.length;return t.map(((t,n)=>0!==n?n/(e-1):0))}(t),r);function a(){return O(i,t,{ease:Array.isArray(o)?o:(e=t,n=o,e.map((()=>n||p)).splice(0,e.length-1))});var e,n}let l=a();return{next:t=>(s.value=l(t),s.done=t>=r,s),flipTarget:()=>{t.reverse(),l=a()}}}const Y=.001;function q({duration:t=800,bounce:e=.25,velocity:n=0,mass:o=1}){let s,i;(0,r.K)(t<=1e4,"Spring duration must be 10 seconds or less");let a=1-e;a=(0,h.u)(.05,1,a),t=(0,h.u)(.01,10,t/1e3),a<1?(s=e=>{const r=e*a,o=r*t,s=r-n,i=z(e,a),l=Math.exp(-o);return Y-s/i*l},i=e=>{const r=e*a*t,o=r*n+n,i=Math.pow(a,2)*Math.pow(e,2)*t,l=Math.exp(-r),u=z(Math.pow(e,2),a);return(-s(e)+Y>0?-1:1)*((o-i)*l)/u}):(s=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,i=e=>Math.exp(-e*t)*(t*t*(n-e)));const l=function(t,e,n){let r=n;for(let n=1;n<12;n++)r-=t(r)/e(r);return r}(s,i,5/t);if(t*=1e3,isNaN(l))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(l,2)*o;return{stiffness:e,damping:2*a*Math.sqrt(o*e),duration:t}}}function z(t,e){return t*Math.sqrt(1-e*e)}var H=n(432);const U=["duration","bounce"],K=["stiffness","damping","mass"];function X(t,e){return e.some((e=>void 0!==t[e]))}function _({keyframes:t,restSpeed:e=2,restDelta:n=.01,...r}){let o=t[0],s=t[t.length-1];const i={done:!1,value:o},{stiffness:a,damping:l,mass:u,velocity:c,duration:p,isResolvedFromDuration:d}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!X(t,K)&&X(t,U)){const n=q(t);e={...e,...n,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}(r);let h=J,f=c?-c/1e3:0;const m=l/(2*Math.sqrt(a*u));function v(){const t=s-o,e=Math.sqrt(a/u)/1e3;if(void 0===n&&(n=Math.min(Math.abs(s-o)/100,.4)),m<1){const n=z(e,m);h=r=>{const o=Math.exp(-m*e*r);return s-o*((f+m*e*t)/n*Math.sin(n*r)+t*Math.cos(n*r))}}else if(1===m)h=n=>s-Math.exp(-e*n)*(t+(f+e*t)*n);else{const n=e*Math.sqrt(m*m-1);h=r=>{const o=Math.exp(-m*e*r),i=Math.min(n*r,300);return s-o*((f+m*e*t)*Math.sinh(i)+n*t*Math.cosh(i))/n}}}return v(),{next:t=>{const r=h(t);if(d)i.done=t>=p;else{let o=f;if(0!==t)if(m<1){const e=Math.max(0,t-5);o=(0,H.R)(r-h(e),t-e)}else o=0;const a=Math.abs(o)<=e,l=Math.abs(s-r)<=n;i.done=a&&l}return i.value=i.done?s:r,i},flipTarget:()=>{f=-f,[o,s]=[s,o],v()}}}_.needsInterpolation=(t,e)=>"string"==typeof t||"string"==typeof e;const J=t=>0;const G={decay:function({keyframes:t=[0],velocity:e=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:s}){const i=t[0],a={done:!1,value:i};let l=n*e;const u=i+l,c=void 0===s?u:s(u);return c!==u&&(l=c-i),{next:t=>{const e=-l*Math.exp(-t/r);return a.done=!(e>o||e<-o),a.value=a.done?c:c+e,a},flipTarget:()=>{}}},keyframes:W,tween:W,spring:_};function Q(t,e,n=0){return t-e-n}const tt=t=>{const e=({delta:e})=>t(e);return{start:()=>i.Z_.update(e,!0),stop:()=>i.qY.update(e)}};function et({duration:t,driver:e=tt,elapsed:n=0,repeat:r=0,repeatType:o="loop",repeatDelay:s=0,keyframes:i,autoplay:a=!0,onPlay:l,onStop:u,onComplete:c,onRepeat:p,onUpdate:d,type:h="keyframes",...f}){var m,v;const g=n;let y,w,b=0,x=t,V=!1,A=!0;const C=G[i.length>2?"keyframes":h]||W,M=i[0],S=i[i.length-1];let P={done:!1,value:M};(null===(v=(m=C).needsInterpolation)||void 0===v?void 0:v.call(m,M,S))&&(w=O([0,100],[M,S],{clamp:!1}),i=[0,100]);const k=C({...f,duration:t,keyframes:i});function E(){b++,"reverse"===o?(A=b%2==0,n=function(t,e=0,n=0,r=!0){return r?Q(e+-t,e,n):e-(t-e)+n}(n,x,s,A)):(n=Q(n,x,s),"mirror"===o&&k.flipTarget()),V=!1,p&&p()}function T(t){A||(t=-t),n+=t,V||(P=k.next(Math.max(0,n)),w&&(P.value=w(P.value)),V=A?P.done:n<=0),d&&d(P.value),V&&(0===b&&(x=void 0!==x?x:n),b<r?function(t,e,n,r){return r?t>=e+n:t<=-n}(n,x,s,A)&&E():(y&&y.stop(),c&&c()))}return a&&(l&&l(),y=e(T),y.start()),{stop:()=>{u&&u(),y&&y.stop()},sample:e=>{n=g;const r=t&&"number"==typeof t?Math.max(.5*t,50):50;let o=0;for(T(0);o<=e;){const t=e-o;T(Math.min(t,r)),o+=r}return P}}}const nt=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,rt={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:nt([0,.65,.55,1]),circOut:nt([.55,0,1,.45]),backIn:nt([.31,.01,.66,-.59]),backOut:nt([.33,1.53,.69,.99])};function ot(t){if(t)return Array.isArray(t)?nt(t):rt[t]}const st={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},it={},at={};for(const t in st)at[t]=()=>(void 0===it[t]&&(it[t]=st[t]()),it[t]);const lt=new Set(["opacity"]);function ut(t,e,{onUpdate:n,onComplete:r,...o}){if(!(at.waapi()&<.has(e)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping))return!1;let{keyframes:s,duration:a=300,elapsed:l=0,ease:u}=o;if("spring"===o.type||!(!(c=o.ease)||Array.isArray(c)||"string"==typeof c&&rt[c])){if(o.repeat===1/0)return;const t=et(o);let e={done:!1,value:s[0]};const n=[];let r=0;for(;!e.done&&r<2e4;)e=t.sample(r),n.push(e.value),r+=10;s=n,a=r-10,u="linear"}var c;const p=function(t,e,n,{delay:r=0,duration:o,repeat:s=0,repeatType:i="loop",ease:a,times:l}={}){return t.animate({[e]:n,offset:l},{delay:r,duration:o,easing:ot(a),fill:"both",iterations:s+1,direction:"reverse"===i?"alternate":"normal"})}(t.owner.current,e,s,{...o,delay:-l,duration:a,ease:u});return p.onfinish=()=>{t.set(function(t,{repeat:e,repeatType:n="loop"}){return t[e&&"loop"!==n&&e%2==1?0:t.length-1]}(s,o)),r&&r()},()=>{const{currentTime:e}=p;if(e){const n=et({...o,autoplay:!1});t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}i.Z_.update((()=>p.cancel()))}}var ct=n(2866);function pt({keyframes:t,elapsed:e,onUpdate:n,onComplete:r}){const o=()=>(n&&n(t[t.length-1]),r&&r(),()=>{});return e?(0,ct.g)(o,-e):o()}var dt=n(5951);const ht=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),ft=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),mt=()=>({type:"keyframes",ease:"linear",duration:.3}),vt={type:"keyframes",duration:.8},gt={x:ht,y:ht,z:ht,rotate:ht,rotateX:ht,rotateY:ht,rotateZ:ht,scaleX:ft,scaleY:ft,scale:ft,opacity:mt,backgroundColor:mt,color:mt,default:ft},yt=(t,{keyframes:e})=>{if(e.length>2)return vt;return(gt[t]||gt.default)(e[1])},wt=(t,e)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!C.P.test(e)||e.startsWith("url(")));var bt=n(6914),xt=n(7101);const Vt=(t,e,n,i={})=>a=>{const l=(0,xt.ev)(i,t)||{},u=l.delay||i.delay||0;let{elapsed:c=0}=i;c-=(0,o.w)(u);const p=function(t,e,n,r){const o=wt(e,n);let s=void 0!==r.from?r.from:t.get();return"none"===s&&o&&"string"==typeof n?s=(0,bt.T)(e,n):(0,xt.Fr)(s)&&"string"==typeof n?s=(0,xt.GZ)(n):!Array.isArray(n)&&(0,xt.Fr)(n)&&"string"==typeof s&&(n=(0,xt.GZ)(s)),Array.isArray(n)?(null===n[0]&&(n[0]=s),n):[s,n]}(e,t,n,l),d=p[0],h=p[p.length-1],f=wt(t,d),m=wt(t,h);(0,r.K)(f===m,`You are trying to animate ${t} from "${d}" to "${h}". ${d} is not an animatable value - to enable this animation set ${d} to a value animatable to ${h} via the \`style\` property.`);let v={keyframes:p,velocity:e.getVelocity(),...l,elapsed:c,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{a(),l.onComplete&&l.onComplete()}};if(!f||!m||s||!1===l.type)return pt(v);if("inertia"===l.type){const t=function({keyframes:t,velocity:e=0,min:n,max:r,power:o=.8,timeConstant:s=750,bounceStiffness:i=500,bounceDamping:a=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:p,onComplete:d,onStop:h}){const f=t[0];let m;function v(t){return void 0!==n&&t<n||void 0!==r&&t>r}function g(t){return void 0===n?r:void 0===r||Math.abs(n-t)<Math.abs(r-t)?n:r}function y(t){null==m||m.stop(),m=et({keyframes:[0,1],velocity:0,...t,driver:c,onUpdate:e=>{var n;null==p||p(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:d,onStop:h})}function w(t){y({type:"spring",stiffness:i,damping:a,restDelta:l,...t})}if(v(f))w({velocity:e,keyframes:[f,g(f)]});else{let t=o*e+f;void 0!==u&&(t=u(t));const r=g(t),i=r===n?-1:1;let a,c;const p=t=>{a=c,c=t,e=(0,H.R)(t-a,dt.w.delta),(1===i&&t>r||-1===i&&t<r)&&w({keyframes:[t,r],velocity:e})};y({type:"decay",keyframes:[f,0],velocity:e,timeConstant:s,power:o,restDelta:l,modifyTarget:u,onUpdate:v(t)?p:void 0})}return{stop:()=>null==m?void 0:m.stop()}}(v);return()=>t.stop()}(0,xt.rw)(l)||(v={...v,...yt(t,v)}),v.duration&&(v.duration=(0,o.w)(v.duration)),v.repeatDelay&&(v.repeatDelay=(0,o.w)(v.repeatDelay));const g=e.owner,y=g&&g.current;if(g&&y instanceof HTMLElement&&!(null==g?void 0:g.getProps().onUpdate)){const n=ut(e,t,v);if(n)return n}const w=et(v);return()=>w.stop()}},2819:(t,e,n)=>{n.d(e,{C:()=>r});const r=t=>Array.isArray(t)},7101:(t,e,n)=>{n.d(e,{Fr:()=>s,GZ:()=>i,ev:()=>a,rw:()=>o});var r=n(6914);function o({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:s,repeatType:i,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function s(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function i(t){return"number"==typeof t?0:(0,r.T)("",t)}function a(t,e){return t[e]||t.default||t}},1930:(t,e,n)=>{n.d(e,{oO:()=>s});var r=n(8370),o=n(7866);function s(){const t=(0,r.useContext)(o.O);if(null===t)return[!0,null];const{isPresent:e,onExitComplete:n,register:s}=t,i=(0,r.useId)();(0,r.useEffect)((()=>s(i)),[]);return!e&&n?[!1,()=>n&&n(i)]:[!0]}},7866:(t,e,n)=>{n.d(e,{O:()=>o});var r=n(8370);const o=(0,r.createContext)(null)},7110:(t,e,n)=>{n.d(e,{Bn:()=>i,X7:()=>a,Z7:()=>s});var r=n(5222),o=n(9273);const s=t=>1-Math.sin(Math.acos(t)),i=(0,o.M)(s),a=(0,r.o)(i)},5222:(t,e,n)=>{n.d(e,{o:()=>r});const r=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},9273:(t,e,n)=>{n.d(e,{M:()=>r});const r=t=>e=>1-t(1-e)},409:(t,e,n)=>{n.d(e,{s:()=>o});var r=n(2426);const o=t=>e=>(0,r.D)(e)&&t(e,function(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}(e))},1876:(t,e,n)=>{n.d(e,{E:()=>o,p:()=>s});var r=n(8370);function o(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function s(t,e,n,s){(0,r.useEffect)((()=>{const r=t.current;if(n&&r)return o(r,e,n,s)}),[t,e,n,s])}},7815:(t,e,n)=>{n.d(e,{a:()=>s,m:()=>i});var r=n(1876),o=n(409);function s(t,e,n,s){return(0,r.E)(t,e,(0,o.s)(n),s)}function i(t,e,n,s){return(0,r.p)(t,e,n&&(0,o.s)(n),s)}},2426:(t,e,n)=>{n.d(e,{D:()=>r});const r=t=>!1!==t.isPrimary},5951:(t,e,n)=>{n.d(e,{w:()=>r});const r={delta:0,timestamp:0}},8313:(t,e,n)=>{n.d(e,{qY:()=>h,Z_:()=>d});const r=1/60*1e3,o="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),s="undefined"!=typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout((()=>t(o())),r);var i=n(5951);let a=!0,l=!1,u=!1;const c=["read","update","preRender","render","postRender"],p=c.reduce(((t,e)=>(t[e]=function(t){let e=[],n=[],r=0,o=!1,s=!1;const i=new WeakSet,a={schedule:(t,s=!1,a=!1)=>{const l=a&&o,u=l?e:n;return s&&i.add(t),-1===u.indexOf(t)&&(u.push(t),l&&o&&(r=e.length)),t},cancel:t=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1),i.delete(t)},process:l=>{if(o)s=!0;else{if(o=!0,[e,n]=[n,e],n.length=0,r=e.length,r)for(let n=0;n<r;n++){const r=e[n];r(l),i.has(r)&&(a.schedule(r),t())}o=!1,s&&(s=!1,a.process(l))}}};return a}((()=>l=!0)),t)),{}),d=c.reduce(((t,e)=>{const n=p[e];return t[e]=(t,e=!1,r=!1)=>(l||v(),n.schedule(t,e,r)),t}),{}),h=c.reduce(((t,e)=>(t[e]=p[e].cancel,t)),{}),f=(c.reduce(((t,e)=>(t[e]=()=>p[e].process(i.w),t)),{}),t=>p[t].process(i.w)),m=t=>{l=!1,i.w.delta=a?r:Math.max(Math.min(t-i.w.timestamp,40),1),i.w.timestamp=t,u=!0,c.forEach(f),u=!1,l&&(a=!1,s(m))},v=()=>{l=!0,a=!0,u||s(m)}},5856:(t,e,n)=>{function r(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}n.d(e,{gD:()=>i});const o=r("dragHorizontal"),s=r("dragVertical");function i(){const t=function(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}(!0);return!t||(t(),!1)}},6295:(t,e,n)=>{n.d(e,{x:()=>r});const r=t=>e=>(t(e),null)},483:(t,e,n)=>{function r({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function o(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}n.d(e,{d7:()=>o,i8:()=>r})},1397:(t,e,n)=>{n.d(e,{dO:()=>r});const r=()=>({x:{min:0,max:0},y:{min:0,max:0}})},798:(t,e,n)=>{n.d(e,{P:()=>r});const r={}},8834:(t,e,n)=>{n.d(e,{J:()=>o});var r=n(483);function o(t,e){return(0,r.i8)((0,r.d7)(t.getBoundingClientRect(),e))}},6978:(t,e,n)=>{n.d(e,{mH:()=>a});var r=n(9340);function o(t){return"string"==typeof t&&t.startsWith("var(--")}const s=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function i(t,e,n=1){(0,r.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,r]=e;return[n,r]}(t);if(!a)return;const u=window.getComputedStyle(e).getPropertyValue(a);return u?u.trim():o(l)?i(l,e,n+1):l}function a(t,{...e},n){const r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach((t=>{const e=t.get();if(!o(e))return;const n=i(e,r);n&&t.set(n)}));for(const t in e){const s=e[t];if(!o(s))continue;const a=i(s,r);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:()=>i});var r=n(26),o=n(8673),s=n(7557);function i(t,e){var n;let i=(0,s.A)(t);return i!==o.h&&(i=r.P),null===(n=i.getAnimatableNone)||void 0===n?void 0:n.call(i,e)}},7557:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(2890),o=n(8673);const s={...n(4923).j,color:r.$,backgroundColor:r.$,outlineColor:r.$,fill:r.$,stroke:r.$,borderColor:r.$,borderTopColor:r.$,borderRightColor:r.$,borderBottomColor:r.$,borderLeftColor:r.$,filter:o.h,WebkitFilter:o.h},i=t=>s[t]},4923:(t,e,n)=>{n.d(e,{j:()=>i});var r=n(8366),o=n(5713),s=n(6442);const i={borderWidth:o.px,borderTopWidth:o.px,borderRightWidth:o.px,borderBottomWidth:o.px,borderLeftWidth:o.px,borderRadius:o.px,radius:o.px,borderTopLeftRadius:o.px,borderTopRightRadius:o.px,borderBottomRightRadius:o.px,borderBottomLeftRadius:o.px,width:o.px,maxWidth:o.px,height:o.px,maxHeight:o.px,size:o.px,top:o.px,right:o.px,bottom:o.px,left:o.px,padding:o.px,paddingTop:o.px,paddingRight:o.px,paddingBottom:o.px,paddingLeft:o.px,margin:o.px,marginTop:o.px,marginRight:o.px,marginBottom:o.px,marginLeft:o.px,rotate:o.RW,rotateX:o.RW,rotateY:o.RW,rotateZ:o.RW,scale:r.bA,scaleX:r.bA,scaleY:r.bA,scaleZ:r.bA,skew:o.RW,skewX:o.RW,skewY:o.RW,distance:o.px,translateX:o.px,translateY:o.px,translateZ:o.px,x:o.px,y:o.px,z:o.px,perspective:o.px,transformPerspective:o.px,opacity:r.Fq,originX:o.$C,originY:o.$C,originZ:o.px,zIndex:s.e,fillOpacity:r.Fq,strokeOpacity:r.Fq,numOctaves:s.e}},6442:(t,e,n)=>{n.d(e,{e:()=>r});const r={...n(8366).Rx,transform:Math.round}},7921:(t,e,n)=>{var r;n.d(e,{r:()=>r}),function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.InView="whileInView",t.Exit="exit"}(r||(r={}))},1180:(t,e,n)=>{function r(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:()=>r})},9043:(t,e,n)=>{n.d(e,{u:()=>r});const r=(t,e,n)=>Math.min(Math.max(n,t),e)},2866:(t,e,n)=>{n.d(e,{g:()=>o});var r=n(8313);function o(t,e){const n=performance.now(),o=({timestamp:s})=>{const i=s-n;i>=e&&(r.qY.read(o),t(i-e))};return r.Z_.read(o,!0),()=>r.qY.read(o)}},3491:(t,e,n)=>{function r(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}n.d(e,{I:()=>r})},5430:(t,e,n)=>{n.d(e,{C:()=>r});const r=(t,e,n)=>-n*t+n*e+t},2634:(t,e,n)=>{n.d(e,{Z:()=>r});const r=t=>t},9820:(t,e,n)=>{n.d(e,{z:()=>o});const r=(t,e)=>n=>e(t(n)),o=(...t)=>t.reduce(r)},918:(t,e,n)=>{n.d(e,{Y:()=>r});const r=(t,e,n)=>{const r=e-t;return 0===r?1:(n-t)/r}},7048:(t,e,n)=>{n.d(e,{Y:()=>o});var r=n(2819);const o=t=>(0,r.C)(t)?t[t.length-1]||0:t},1065:(t,e,n)=>{n.d(e,{L:()=>o});var r=n(1180);class o{constructor(){this.subscriptions=[]}add(t){return(0,r.y4)(this.subscriptions,t),()=>(0,r.cl)(this.subscriptions,t)}notify(t,e,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},1818:(t,e,n)=>{n.d(e,{w:()=>r});const r=t=>1e3*t},9531:(t,e,n)=>{n.d(e,{z:()=>o});var r=n(8370);function o(t){return(0,r.useEffect)((()=>()=>t()),[])}},432:(t,e,n)=>{function r(t,e){return e?t*(1e3/e):0}n.d(e,{R:()=>r})},1421:(t,e,n)=>{n.d(e,{B:()=>l});var r=n(5951),o=n(8313),s=n(1065),i=n(432);class a{constructor(t,e={}){var n;this.version="__VERSION__",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;const{delta:n,timestamp:s}=r.w;this.lastUpdated!==s&&(this.timeDelta=n,this.lastUpdated=s,o.Z_.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>o.Z_.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=e.owner}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new s.L);const n=this.events[t].add(e);return"change"===t?()=>{n(),o.Z_.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?(0,i.R)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.stopAnimation=t(e),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.stopAnimation&&(this.stopAnimation(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function l(t,e){return new a(t,e)}},4775:(t,e,n)=>{n.d(e,{$:()=>o});var r=n(6077);const o={test:(0,n(8810).i)("#"),parse:function(t){let e="",n="",r="",o="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),o=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),o=t.substring(4,5),e+=e,n+=n,r+=r,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:r.m.transform}},5193:(t,e,n)=>{n.d(e,{J:()=>a});var r=n(8366),o=n(5713),s=n(6933),i=n(8810);const a={test:(0,i.i)("hsl","hue"),parse:(0,i.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+o.aQ.transform((0,s.Nw)(e))+", "+o.aQ.transform((0,s.Nw)(n))+", "+(0,s.Nw)(r.Fq.transform(i))+")"}},2890:(t,e,n)=>{n.d(e,{$:()=>a});var r=n(6933),o=n(4775),s=n(5193),i=n(6077);const a={test:t=>i.m.test(t)||o.$.test(t)||s.J.test(t),parse:t=>i.m.test(t)?i.m.parse(t):s.J.test(t)?s.J.parse(t):o.$.parse(t),transform:t=>(0,r.HD)(t)?t:t.hasOwnProperty("red")?i.m.transform(t):s.J.transform(t)}},6077:(t,e,n)=>{n.d(e,{m:()=>l});var r=n(9043),o=n(8366),s=n(6933),i=n(8810);const a={...o.Rx,transform:t=>Math.round((t=>(0,r.u)(0,255,t))(t))},l={test:(0,i.i)("rgb","red"),parse:(0,i.d)("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+a.transform(t)+", "+a.transform(e)+", "+a.transform(n)+", "+(0,s.Nw)(o.Fq.transform(r))+")"}},8810:(t,e,n)=>{n.d(e,{d:()=>s,i:()=>o});var r=n(6933);const o=(t,e)=>n=>Boolean((0,r.HD)(n)&&r.mj.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),s=(t,e,n)=>o=>{if(!(0,r.HD)(o))return o;const[s,i,a,l]=o.match(r.KP);return{[t]:parseFloat(s),[e]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},8673:(t,e,n)=>{n.d(e,{h:()=>l});var r=n(26),o=n(6933);const s=new Set(["brightness","contrast","saturate","opacity"]);function i(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[r]=n.match(o.KP)||[];if(!r)return t;const i=n.replace(r,"");let a=s.has(e)?1:0;return r!==n&&(a*=100),e+"("+a+i+")"}const a=/([a-z-]*)\(.*?\)/g,l={...r.P,getAnimatableNone:t=>{const e=t.match(a);return e?e.map(i).join(" "):t}}},26:(t,e,n)=>{n.d(e,{P:()=>d,V:()=>l});var r=n(2890),o=n(8366),s=n(6933);const i="${c}",a="${n}";function l(t){"number"==typeof t&&(t=`${t}`);const e=[];let n=0,l=0;const u=t.match(s.dA);u&&(n=u.length,t=t.replace(s.dA,i),e.push(...u.map(r.$.parse)));const c=t.match(s.KP);return c&&(l=c.length,t=t.replace(s.KP,a),e.push(...c.map(o.Rx.parse))),{values:e,numColors:n,numNumbers:l,tokenised:t}}function u(t){return l(t).values}function c(t){const{values:e,numColors:n,tokenised:o}=l(t),u=e.length;return t=>{let e=o;for(let o=0;o<u;o++)e=e.replace(o<n?i:a,o<n?r.$.transform(t[o]):(0,s.Nw)(t[o]));return e}}const p=t=>"number"==typeof t?0:t;const d={test:function(t){var e,n;return isNaN(t)&&(0,s.HD)(t)&&((null===(e=t.match(s.KP))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(s.dA))||void 0===n?void 0:n.length)||0)>0},parse:u,createTransformer:c,getAnimatableNone:function(t){const e=u(t);return c(t)(e.map(p))}}},8366:(t,e,n)=>{n.d(e,{Fq:()=>s,Rx:()=>o,bA:()=>i});var r=n(9043);const o={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},s={...o,transform:t=>(0,r.u)(0,1,t)},i={...o,default:1}},5713:(t,e,n)=>{n.d(e,{$C:()=>c,RW:()=>s,aQ:()=>i,px:()=>a,vh:()=>l,vw:()=>u});var r=n(6933);const o=t=>({test:e=>(0,r.HD)(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),s=o("deg"),i=o("%"),a=o("px"),l=o("vh"),u=o("vw"),c={...i,parse:t=>i.parse(t)/100,transform:t=>i.transform(100*t)}},6933:(t,e,n)=>{n.d(e,{HD:()=>a,KP:()=>o,Nw:()=>r,dA:()=>s,mj:()=>i});const r=t=>Math.round(1e5*t)/1e5,o=/(-)?([\d]*\.?[\d])+/g,s=/(#[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,i=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function a(t){return"string"==typeof t}},7846:(t,e,n)=>{n.d(e,{i:()=>r});const r=t=>!!(null==t?void 0:t.getVelocity)},8370:t=>{t.exports=void 0}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var s=e[r]={exports:{}};return t[r](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 r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t=n(8370);function e(t){return"object"==typeof t&&"function"==typeof t.start}var r=n(1930),o=n(7866),s=n(2819);function i(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}const a=t=>/^0[^.\s]+$/.test(t);var l=n(7048),u=n(1421),c=n(26),p=n(6914),d=n(2890),h=n(8366),f=n(5713);const m=t=>e=>e.test(t),v=[h.Rx,f.px,f.aQ,f.RW,f.vw,f.vh,{test:t=>"auto"===t,parse:t=>t}],g=t=>v.find(m(t)),y=[...v,d.$,c.P],w=t=>y.find(m(t));function b(t,e,n,r={},o={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,o)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,o)),e}function x(t,e,n){const r=t.getProps();return b(r,e,void 0!==n?n:r.custom,function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.get())),e}(t),function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.getVelocity())),e}(t))}function V(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,u.B)(n))}function A(t,e){const n=x(t,e);let{transitionEnd:r={},transition:o={},...s}=n?t.makeTargetAnimatable(n,!1):{};s={...s,...r};for(const e in s){V(t,e,(0,l.Y)(s[e]))}}function C(t,e){if(!e)return;return(e[t]||e.default||e).from}const M=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],S=new Set(M);var P=n(7846);function k(t){return Boolean((0,P.i)(t)&&t.add)}var E=n(8313);function T(t,e){const{MotionAppearAnimations:n}=window,r=((t,e)=>`${t}: ${e}`)(t,S.has(e)?"transform":e),o=n&&n.get(r);return o?(E.Z_.render((()=>{try{o.cancel(),n.delete(r)}catch(t){}})),o.currentTime||0):0}const F=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),O="data-"+F("framerAppearId");var $=n(6405);function R(t,e,n={}){var r;const o=x(t,e,n.custom);let{transition:s=t.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(s=n.transitionOverride);const i=o?()=>I(t,o,n):()=>Promise.resolve(),a=(null===(r=t.variantChildren)||void 0===r?void 0:r.size)?(r=0)=>{const{delayChildren:o=0,staggerChildren:i,staggerDirection:a}=s;return function(t,e,n=0,r=0,o=1,s){const i=[],a=(t.variantChildren.size-1)*r,l=1===o?(t=0)=>t*r:(t=0)=>a-t*r;return Array.from(t.variantChildren).sort(D).forEach(((t,r)=>{t.notify("AnimationStart",e),i.push(R(t,e,{...s,delay:n+l(r)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(i)}(t,e,o+r,i,a,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[t,e]="beforeChildren"===l?[i,a]:[a,i];return t().then(e)}return Promise.all([i(),a(n.delay)])}function I(t,e,{delay:n=0,transitionOverride:r,type:o}={}){var s;let{transition:i=t.getDefaultTransition(),transitionEnd:a,...l}=t.makeTargetAnimatable(e);const u=t.getValue("willChange");r&&(i=r);const c=[],p=o&&(null===(s=t.animationState)||void 0===s?void 0:s.getState()[o]);for(const e in l){const r=t.getValue(e),o=l[e];if(!r||void 0===o||p&&B(p,e))continue;let s={delay:n,elapsed:0,...i};if(t.shouldReduceMotion&&S.has(e)&&(s={...s,type:!1,delay:0}),!r.hasAnimated){const n=t.getProps()[O];n&&(s.elapsed=T(n,e))}let a=r.start((0,$.Z)(e,r,o,s));k(u)&&(u.add(e),a=a.then((()=>u.remove(e)))),c.push(a)}return Promise.all(c).then((()=>{a&&A(t,a)}))}function D(t,e){return t.sortNodePosition(e)}function B({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,r}function N(t){return"string"==typeof t||Array.isArray(t)}var j=n(7921);const Z=[j.r.Animate,j.r.InView,j.r.Focus,j.r.Hover,j.r.Tap,j.r.Drag,j.r.Exit],L=[...Z].reverse(),W=Z.length;function Y(t){return e=>Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e)){const o=e.map((e=>R(t,e,n)));r=Promise.all(o)}else if("string"==typeof e)r=R(t,e,n);else{const o="function"==typeof e?x(t,e,n.custom):e;r=I(t,o,n)}return r.then((()=>t.notify("AnimationComplete",e)))}(t,e,n))))}function q(t){let n=Y(t);const r={[j.r.Animate]:H(!0),[j.r.InView]:H(),[j.r.Hover]:H(),[j.r.Tap]:H(),[j.r.Drag]:H(),[j.r.Focus]:H(),[j.r.Exit]:H()};let o=!0;const a=(e,n)=>{const r=x(t,n);if(r){const{transition:t,transitionEnd:n,...o}=r;e={...e,...o,...n}}return e};function l(l,u){const c=t.getProps(),p=t.getVariantContext(!0)||{},d=[],h=new Set;let f={},m=1/0;for(let n=0;n<W;n++){const v=L[n],g=r[v],y=void 0!==c[v]?c[v]:p[v],w=N(y),b=v===u?g.isActive:null;!1===b&&(m=n);let x=y===p[v]&&y!==c[v]&&w;if(x&&o&&t.manuallyAnimateOnMount&&(x=!1),g.protectedKeys={...f},!g.isActive&&null===b||!y&&!g.prevProp||e(y)||"boolean"==typeof y)continue;const V=z(g.prevProp,y);let A=V||v===u&&g.isActive&&!x&&w||n>m&&w;const C=Array.isArray(y)?y:[y];let M=C.reduce(a,{});!1===b&&(M={});const{prevResolvedValues:S={}}=g,P={...S,...M},k=t=>{A=!0,h.delete(t),g.needsAnimating[t]=!0};for(const t in P){const e=M[t],n=S[t];f.hasOwnProperty(t)||(e!==n?(0,s.C)(e)&&(0,s.C)(n)?!i(e,n)||V?k(t):g.protectedKeys[t]=!0:void 0!==e?k(t):h.add(t):void 0!==e&&h.has(t)?k(t):g.protectedKeys[t]=!0)}g.prevProp=y,g.prevResolvedValues=M,g.isActive&&(f={...f,...M}),o&&t.blockInitialAnimation&&(A=!1),A&&!x&&d.push(...C.map((t=>({animation:t,options:{type:v,...l}}))))}if(h.size){const e={};h.forEach((n=>{const r=t.getBaseTarget(n);void 0!==r&&(e[n]=r)})),d.push({animation:e})}let v=Boolean(d.length);return o&&!1===c.initial&&!t.manuallyAnimateOnMount&&(v=!1),o=!1,v?n(d):Promise.resolve()}return{animateChanges:l,setActive:function(e,n,o){var s;if(r[e].isActive===n)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach((t=>{var r;return null===(r=t.animationState)||void 0===r?void 0:r.setActive(e,n)})),r[e].isActive=n;const i=l(o,e);for(const t in r)r[t].protectedKeys={};return i},setAnimateFunction:function(e){n=e(t)},getState:()=>r}}function z(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!i(e,t)}function H(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var U=n(6295);const K={animation:(0,U.x)((({visualElement:n,animate:r})=>{n.animationState||(n.animationState=q(n)),e(r)&&(0,t.useEffect)((()=>r.subscribe(n)),[r])})),exit:(0,U.x)((e=>{const{custom:n,visualElement:s}=e,[i,a]=(0,r.oO)(),l=(0,t.useContext)(o.O);(0,t.useEffect)((()=>{s.isPresent=i;const t=s.animationState&&s.animationState.setActive(j.r.Exit,!i,{custom:l&&l.custom||n});t&&!i&&t.then(a)}),[i])}))};var X=n(1876);var _=n(7815),J=n(5856);function G(t,e,n){return(r,o)=>{(function(t){return"pen"!==t.type&&"touch"!==t.type})(r)&&!(0,J.gD)()&&(t.animationState&&t.animationState.setActive(j.r.Hover,e),n&&n(r,o))}}const Q=(t,e)=>!!e&&(t===e||Q(t,e.parentElement));var tt=n(9531),et=n(9820);const nt=new WeakMap,rt=new WeakMap,ot=t=>{const e=nt.get(t.target);e&&e(t)},st=t=>{t.forEach(ot)};function it(t,e,n){const r=function({root:t,...e}){const n=t||document;rt.has(n)||rt.set(n,{});const r=rt.get(n),o=JSON.stringify(e);return r[o]||(r[o]=new IntersectionObserver(st,{root:t,...e})),r[o]}(e);return nt.set(t,n),r.observe(t),()=>{nt.delete(t),r.unobserve(t)}}const at={some:0,all:1};function lt(e,n,r,{root:o,margin:s,amount:i="some",once:a}){(0,t.useEffect)((()=>{if(!e||!r.current)return;const t={root:null==o?void 0:o.current,rootMargin:s,threshold:"number"==typeof i?i:at[i]};return it(r.current,t,(t=>{const{isIntersecting:e}=t;if(n.isInView===e)return;if(n.isInView=e,a&&!e&&n.hasEnteredView)return;e&&(n.hasEnteredView=!0),r.animationState&&r.animationState.setActive(j.r.InView,e);const o=r.getProps(),s=e?o.onViewportEnter:o.onViewportLeave;s&&s(t)}))}),[e,o,s,i])}function ut(e,n,r,{fallback:o=!0}){(0,t.useEffect)((()=>{e&&o&&requestAnimationFrame((()=>{n.hasEnteredView=!0;const{onViewportEnter:t}=r.getProps();t&&t(null),r.animationState&&r.animationState.setActive(j.r.InView,!0)}))}),[e])}const ct={inView:(0,U.x)((function({visualElement:e,whileInView:n,onViewportEnter:r,onViewportLeave:o,viewport:s={}}){const i=(0,t.useRef)({hasEnteredView:!1,isInView:!1});let a=Boolean(n||r||o);s.once&&i.current.hasEnteredView&&(a=!1),("undefined"==typeof IntersectionObserver?ut:lt)(a,i.current,e,s)})),tap:(0,U.x)((function({onTap:e,onTapStart:n,onTapCancel:r,whileTap:o,visualElement:s}){const i=e||n||r||o,a=(0,t.useRef)(!1),l=(0,t.useRef)(null),u={passive:!(n||e||r||f)};function c(){l.current&&l.current(),l.current=null}function p(){return c(),a.current=!1,s.animationState&&s.animationState.setActive(j.r.Tap,!1),!(0,J.gD)()}function d(t,n){p()&&(Q(s.current,t.target)?e&&e(t,n):r&&r(t,n))}function h(t,e){p()&&r&&r(t,e)}function f(t,e){c(),a.current||(a.current=!0,l.current=(0,et.z)((0,_.a)(window,"pointerup",d,u),(0,_.a)(window,"pointercancel",h,u)),s.animationState&&s.animationState.setActive(j.r.Tap,!0),n&&n(t,e))}(0,_.m)(s,"pointerdown",i?f:void 0,u),(0,tt.z)(c)})),focus:(0,U.x)((function({whileFocus:t,visualElement:e}){const{animationState:n}=e;(0,X.p)(e,"focus",t?()=>{n&&n.setActive(j.r.Focus,!0)}:void 0),(0,X.p)(e,"blur",t?()=>{n&&n.setActive(j.r.Focus,!1)}:void 0)})),hover:(0,U.x)((function({onHoverStart:t,onHoverEnd:e,whileHover:n,visualElement:r}){(0,_.m)(r,"pointerenter",t||n?G(r,!0,t):void 0,{passive:!t}),(0,_.m)(r,"pointerleave",e||n?G(r,!1,e):void 0,{passive:!e})}))},pt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},dt=(t,e)=>M.indexOf(t)-M.indexOf(e);function ht(t){return t.startsWith("--")}const ft=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var mt=n(4923);function vt(t,e,n,r){const{style:o,vars:s,transform:i,transformKeys:a,transformOrigin:l}=t;a.length=0;let u=!1,c=!1,p=!0;for(const t in e){const n=e[t];if(ht(t)){s[t]=n;continue}const r=mt.j[t],u=ft(n,r);if(S.has(t)){if(!0,i[t]=u,a.push(t),!p)continue;n!==(r.default||0)&&!1}else t.startsWith("origin")?(!0,l[t]=u):o[t]=u}if(e.transform||(u||r?o.transform=function({transform:t,transformKeys:e},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},o,s){let i="";e.sort(dt);for(const n of e)`${pt[n]||n}(${t[n]}) `;return n&&!t.z&&"translateZ(0)",i.trim(),s?s(t,o?"":i):r&&o&&"none",i}(t,n,p,r):o.transform&&(o.transform="none")),c){const{originX:t="50%",originY:e="50%",originZ:n=0}=l;o.transformOrigin=`${t} ${e} ${n}`}}var gt=n(798);function yt(t,{layout:e,layoutId:n}){return S.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!gt.P[t]||"opacity"===t)}function wt(t,e){const{style:n}=t,r={};for(const o in n)((0,P.i)(n[o])||e.style&&(0,P.i)(e.style[o])||yt(o,t))&&(r[o]=n[o]);return r}function bt(t,{style:e,vars:n},r,o){Object.assign(t.style,e,o&&o.getProjectionStyles(r));for(const e in n)t.style.setProperty(e,n[e])}var xt=n(7557),Vt=n(8834),At=n(6978),Ct=n(9340);const Mt="undefined"!=typeof document,St=new Set(["width","height","top","left","right","bottom","x","y"]),Pt=t=>St.has(t),kt=t=>t===h.Rx||t===f.px;var Et;!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(Et||(Et={}));const Tt=(t,e)=>parseFloat(t.split(", ")[e]),Ft=(t,e)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Tt(o[1],e);{const e=r.match(/^matrix\((.+)\)$/);return e?Tt(e[1],t):0}},Ot=new Set(["x","y","z"]),$t=M.filter((t=>!Ot.has(t)));const Rt={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:Ft(4,13),y:Ft(5,14)},It=(t,e,n={},r={})=>{e={...e},r={...r};const o=Object.keys(e).filter(Pt);let i=[],a=!1;const l=[];if(o.forEach((o=>{const u=t.getValue(o);if(!t.hasValue(o))return;let c=n[o],p=g(c);const d=e[o];let h;if((0,s.C)(d)){const t=d.length,e=null===d[0]?1:0;c=d[e],p=g(c);for(let n=e;n<t;n++)h?(0,Ct.k)(g(d[n])===h,"All keyframes must be of the same type"):(h=g(d[n]),(0,Ct.k)(h===p||kt(p)&&kt(h),"Keyframes must be of the same dimension as the current value"))}else h=g(d);if(p!==h)if(kt(p)&&kt(h)){const t=u.get();"string"==typeof t&&u.set(parseFloat(t)),"string"==typeof d?e[o]=parseFloat(d):Array.isArray(d)&&h===f.px&&(e[o]=d.map(parseFloat))}else(null==p?void 0:p.transform)&&(null==h?void 0:h.transform)&&(0===c||0===d)?0===c?u.set(h.transform(c)):e[o]=p.transform(d):(a||(i=function(t){const e=[];return $t.forEach((n=>{const r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),e.length&&t.render(),e}(t),a=!0),l.push(o),r[o]=void 0!==r[o]?r[o]:e[o],u.jump(d))})),l.length){const n=l.indexOf("height")>=0?window.pageYOffset:null,o=((t,e,n)=>{const r=e.measureViewportBox(),o=e.current,s=getComputedStyle(o),{display:i}=s,a={};"none"===i&&e.setStaticValue("display",t.display||"block"),n.forEach((t=>{a[t]=Rt[t](r,s)})),e.render();const l=e.measureViewportBox();return n.forEach((n=>{const r=e.getValue(n);r&&r.jump(a[n]),t[n]=Rt[n](l,s)})),t})(e,t,l);return i.length&&i.forEach((([e,n])=>{t.getValue(e).set(n)})),t.render(),Mt&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:e,transitionEnd:r}};function Dt(t,e,n,r){return(t=>Object.keys(t).some(Pt))(e)?It(t,e,n,r):{target:e,transitionEnd:r}}const Bt=t=>({isEnabled:e=>t.some((t=>!!e[t]))}),Nt={measureLayout:Bt(["layout","layoutId","drag"]),animation:Bt(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Bt(["exit"]),drag:Bt(["drag","dragControls"]),focus:Bt(["whileFocus"]),hover:Bt(["whileHover","onHoverStart","onHoverEnd"]),tap:Bt(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Bt(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Bt(["whileInView","onViewportEnter","onViewportLeave"])};var jt=n(1397),Zt=n(3491);const Lt={current:null},Wt={current:!1};var Yt=n(1065);const qt=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function zt(t){return e(t.animate)||qt.some((e=>N(t[e])))}const Ht=Object.keys(Nt),Ut=Ht.length,Kt=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];const Xt=["initial",...Z],_t=Xt.length;class Jt extends class{constructor({parent:t,props:e,reducedMotionConfig:n,visualState:r},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=()=>E.Z_.render(this.render,!1,!0);const{latestValues:s,renderState:i}=r;this.latestValues=s,this.baseTarget={...s},this.initialValues=e.initial?{...s}:{},this.renderState=i,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,P.i)(e)&&(e.set(s[t],!1),k(a)&&a.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){var e;this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null===this.parent||void 0===e?void 0:e.addVariantChild(this)),this.values.forEach(((t,e)=>this.bindToMotionValue(e,t))),Wt.current||function(){if(Wt.current=!0,Mt)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Lt.current=t.matches;t.addListener(e),e()}else Lt.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Lt.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var t,e,n;null===this.projection||void 0===t||t.unmount(),E.qY.update(this.notifyUpdate),E.qY.render(this.render),this.valueSubscriptions.forEach((t=>t())),null===this.removeFromVariantTree||void 0===e||e.call(this),null===this.parent||void 0===n||n.children.delete(this);for(const t in this.events)this.events[t].clear();this.current=null}bindToMotionValue(t,e){const n=S.has(t),r=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&E.Z_.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,(()=>{r(),o()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures(e,n,r,o,s,i){const a=[];for(let n=0;n<Ut;n++){const r=Ht[n],{isEnabled:o,Component:s}=Nt[r];o(e)&&s&&a.push((0,t.createElement)(s,{key:r,...e,visualElement:this}))}if(!this.projection&&s){this.projection=new s(o,this.latestValues,this.parent&&this.parent.projection);const{layoutId:t,layout:n,drag:r,dragConstraints:a,layoutScroll:l}=e;this.projection.setOptions({layoutId:t,layout:n,alwaysMeasureLayout:Boolean(r)||a&&(0,Zt.I)(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:i,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,jt.dO)()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,e)}setProps(t){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender();const e=this.props;this.props=t;for(let e=0;e<Kt.length;e++){const n=Kt[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=t["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(t,e,n){const{willChange:r}=e;for(const o in e){const s=e[o],i=n[o];if((0,P.i)(s))t.addValue(o,s),k(r)&&r.add(o);else if((0,P.i)(i))t.addValue(o,(0,u.B)(s,{owner:t})),k(r)&&r.remove(o);else if(i!==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,u.B)(void 0!==e?e:s))}}for(const r in n)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,e),this.prevMotionValues)}getProps(){return this.props}getVariant(t){var e;return null===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===this.parent||void 0===t?void 0:t.getClosestVariantNode()}getVariantContext(t=!1){var e,n;if(t)return null===this.parent||void 0===e?void 0:e.getVariantContext();if(!this.isControllingVariants){const t=(null===this.parent||void 0===n?void 0:n.getVariantContext())||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}const r={};for(let t=0;t<_t;t++){const e=Xt[t],n=this.props[e];(N(n)||!1===n)&&(r[e]=n)}return r}addVariantChild(t){var e;const n=this.getClosestVariantNode();if(n)return null===n.variantChildren||void 0===e||e.add(t),()=>n.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){var e;this.values.delete(t),null===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&&((0,u.B)(e,{owner:this}),this.addValue(t,n)),n}readValue(t){return void 0===this.latestValues[t]&&this.current?this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===b(this.props,n)||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,t);return void 0===o||(0,P.i)(o)?void 0!==this.initialValues[t]&&void 0===r?void 0:this.baseTarget[t]:o}on(t,e){return this.events[t]||(this.events[t]=new Yt.L),this.events[t].add(e)}notify(t,...e){var n;null===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===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:r},o){let s=function(t,e,n){var r;const o={};for(const s in t){const t=C(s,e);o[s]=void 0!==t?t:null===n.getValue(s)||void 0===r?void 0:r.get()}return o}(n,t||{},this);if(r&&(e&&r(e),n&&r(n),s&&r(s)),o){!function(t,e,n){var r,o;const s=Object.keys(e).filter((e=>!t.hasValue(e))),i=s.length;if(i)for(let l=0;l<i;l++){const i=s[l],d=e[i];let h=null;Array.isArray(d)&&d[0],null===h&&(null!==(null!==n[i]&&void 0!==r?r:t.readValue(i))&&void 0!==o?o:e[i]),null!=h&&("string"==typeof h&&(/^\-?\d*\.?\d+$/.test(h)||a(h))?parseFloat(h):!w(h)&&c.P.test(d)&&(0,p.T)(i,d),t.addValue(i,(0,u.B)(h,{owner:t})),void 0===n[i]&&(n[i]=h),null!==h&&t.setBaseTarget(i,h))}}(this,n,s);const t=((t,e,n,r)=>{const o=(0,At.mH)(t,e,r);return Dt(t,o.target,n,o.transitionEnd)})(this,n,s,e);t.transitionEnd,t.target}return{transition:t,transitionEnd:e,...n}}}class Gt extends Jt{readValueFromInstance(t,e){if(S.has(e)){const t=(0,xt.A)(e);return t&&t.default||0}{const r=(t,window.getComputedStyle(n)),o=(ht(e)?r.getPropertyValue(e):r[e])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,Vt.J)(t,e)}build(t,e,n,r){vt(t,e,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,e){return wt(t,e)}renderInstance(t,e,n,r){bt(t,e,n,r)}}function Qt(t,e,n){return"string"==typeof t?t:f.px.transform(e+n*t)}const te={offset:"stroke-dashoffset",array:"stroke-dasharray"},ee={offset:"strokeDashoffset",array:"strokeDasharray"};function ne(t,{attrX:e,attrY:n,originX:r,originY:o,pathLength:s,pathSpacing:i=1,pathOffset:a=0,...l},u,c,p){if(vt(t,l,u,p),c)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:d,style:h,dimensions:m}=t;d.transform&&(m&&(h.transform=d.transform),delete d.transform),m&&(void 0!==r||void 0!==o||h.transform)&&(h.transformOrigin=function(t,e,n){return`${Qt(e,t.x,t.width)} ${Qt(n,t.y,t.height)}`}(m,void 0!==r?r:.5,void 0!==o?o:.5)),void 0!==e&&(d.x=e),void 0!==n&&(d.y=n),void 0!==s&&function(t,e,n=1,r=0,o=!0){t.pathLength=1;const s=o?te:ee;t[s.offset]=f.px.transform(-r);const i=f.px.transform(e),a=f.px.transform(n);t[s.array]=`${i} ${a}`}(d,s,i,a,!1)}const re=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);class oe extends Jt{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){var n;return S.has(e)?(null===(0,xt.A)(e)||void 0===n?void 0:n.default)||0:(re.has(e)?e:F(e),t.getAttribute(e))}measureInstanceViewportBox(){return(0,jt.dO)()}scrapeMotionValuesFromProps(t,e){return function(t,e){const n=wt(t,e);for(const r in t)((0,P.i)(t[r])||(0,P.i)(e[r]))&&(n["x"===r||"y"===r?"attr"+r.toUpperCase():r]=t[r]);return n}(t,e)}build(t,e,n,r){ne(t,e,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,e,n,r){!function(t,e,n,r){bt(t,e,void 0,r);for(const n in e.attrs)t.setAttribute(re.has(n)?n:F(n),e.attrs[n])}(t,e,0,r)}mount(t){var e;this.isSVGTag="string"==typeof t.tagName&&"svg"===e.toLowerCase(),super.mount(t)}}const se=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"]})()})();
|
|
1
|
+
(()=>{"use strict";var t={9340:(t,e,n)=>{n.d(e,{K:()=>r,k:()=>o});var r=function(){},o=function(){}},6405:(t,e,n)=>{n.d(e,{Z:()=>Vt});var r=n(9340),o=n(1818);const s=!1;var i=n(8313),a=n(5222),l=n(9273);const u=t=>t*t,c=(0,l.M)(u),p=(0,a.o)(u);var d=n(2890),h=n(9043),f=n(5430);function m(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}var v=n(4775),g=n(6077),y=n(5193);const w=(t,e,n)=>{const r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},b=[v.$,g.m,y.J];function x(t){const e=(n=t,b.find((t=>t.test(n))));var n;(0,r.k)(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`);let o=e.parse(t);return e===y.J&&(o=function({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,n/=100;let o=0,s=0,i=0;if(e/=100){const r=n<.5?n*(1+e):n+e-n*e,a=2*n-r;o=m(a,r,t+1/3),s=m(a,r,t),i=m(a,r,t-1/3)}else o=s=i=n;return{red:Math.round(255*o),green:Math.round(255*s),blue:Math.round(255*i),alpha:r}}(o)),o}const V=(t,e)=>{const n=x(t),r=x(e),o={...n};return t=>(o.red=w(n.red,r.red,t),o.green=w(n.green,r.green,t),o.blue=w(n.blue,r.blue,t),o.alpha=(0,f.C)(n.alpha,r.alpha,t),g.m.transform(o))};var A=n(9820),C=n(26);function M(t,e){return"number"==typeof t?n=>(0,f.C)(t,e,n):d.$.test(t)?V(t,e):P(t,e)}const S=(t,e)=>{const n=[...t],r=n.length,o=t.map(((t,n)=>M(t,e[n])));return t=>{for(let e=0;e<r;e++)n[e]=o[e](t);return n}},k=(t,e)=>{const n={...t,...e},r={};for(const o in n)void 0!==t[o]&&void 0!==e[o]&&(r[o]=M(t[o],e[o]));return t=>{for(const e in r)n[e]=r[e](t);return n}},P=(t,e)=>{const n=C.P.createTransformer(e),o=(0,C.V)(t),s=(0,C.V)(e);return o.numColors===s.numColors&&o.numNumbers>=s.numNumbers?(0,A.z)(S(o.values,s.values),n):((0,r.K)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?e:t}`)};var E=n(918);const T=(t,e)=>n=>(0,f.C)(t,e,n);function F(t,e,n){const r=[],o=n||("number"==typeof(s=t[0])?T:"string"==typeof s?d.$.test(s)?V:P:Array.isArray(s)?S:"object"==typeof s?k:T);var s;const i=t.length-1;for(let n=0;n<i;n++){let s=o(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]:e;s=(0,A.z)(t,s)}r.push(s)}return r}function O(t,e,{clamp:n=!0,ease:o,mixer:s}={}){const i=t.length;(0,r.k)(i===e.length,"Both input and output ranges must be the same length"),(0,r.k)(!o||!Array.isArray(o)||o.length===i-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[i-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=F(e,o,s),l=a.length,u=e=>{let n=0;if(l>1)for(;n<t.length-2&&!(e<t[n+1]);n++);const r=(0,E.Y)(t[n],t[n+1],e);return a[n](r)};return n?e=>u((0,h.u)(t[0],t[i-1],e)):u}var $=n(2634);const R=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function I(t,e,n,r){if(t===e&&n===r)return $.Z;const o=e=>function(t,e,n,r,o){let s,i,a=0;do{i=e+(n-e)/2,s=R(i,r,o)-t,s>0?n=i:e=i}while(Math.abs(s)>1e-7&&++a<12);return i}(e,0,1,t,n);return t=>0===t||1===t?t:R(o(t),e,r)}var D=n(7110);const B=I(.33,1.53,.69,.99),N=(0,l.M)(B),j=(0,a.o)(N),Z={linear:$.Z,easeIn:u,easeInOut:p,easeOut:c,circIn:D.Z7,circInOut:D.X7,circOut:D.Bn,backIn:N,backInOut:j,backOut:B,anticipate:t=>(t*=2)<1?.5*N(t):.5*(2-Math.pow(2,-10*(t-1)))},L=t=>{if(Array.isArray(t)){(0,r.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,o,s]=t;return I(e,n,o,s)}return"string"==typeof t?((0,r.k)(void 0!==Z[t],`Invalid easing type '${t}'`),Z[t]):t};function W({keyframes:t,ease:e=p,times:n,duration:r=300}){t=[...t];const o=(t=>Array.isArray(t)&&"number"!=typeof t[0])(e)?e.map(L):L(e),s={done:!1,value:t[0]},i=function(t,e){return t.map((t=>t*e))}(n&&n.length===t.length?n:function(t){const e=t.length;return t.map(((t,n)=>0!==n?n/(e-1):0))}(t),r);function a(){return O(i,t,{ease:Array.isArray(o)?o:(e=t,n=o,e.map((()=>n||p)).splice(0,e.length-1))});var e,n}let l=a();return{next:t=>(s.value=l(t),s.done=t>=r,s),flipTarget:()=>{t.reverse(),l=a()}}}const Y=.001;function q({duration:t=800,bounce:e=.25,velocity:n=0,mass:o=1}){let s,i;(0,r.K)(t<=1e4,"Spring duration must be 10 seconds or less");let a=1-e;a=(0,h.u)(.05,1,a),t=(0,h.u)(.01,10,t/1e3),a<1?(s=e=>{const r=e*a,o=r*t,s=r-n,i=z(e,a),l=Math.exp(-o);return Y-s/i*l},i=e=>{const r=e*a*t,o=r*n+n,i=Math.pow(a,2)*Math.pow(e,2)*t,l=Math.exp(-r),u=z(Math.pow(e,2),a);return(-s(e)+Y>0?-1:1)*((o-i)*l)/u}):(s=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,i=e=>Math.exp(-e*t)*(t*t*(n-e)));const l=function(t,e,n){let r=n;for(let n=1;n<12;n++)r-=t(r)/e(r);return r}(s,i,5/t);if(t*=1e3,isNaN(l))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(l,2)*o;return{stiffness:e,damping:2*a*Math.sqrt(o*e),duration:t}}}function z(t,e){return t*Math.sqrt(1-e*e)}var H=n(432);const U=["duration","bounce"],K=["stiffness","damping","mass"];function X(t,e){return e.some((e=>void 0!==t[e]))}function _({keyframes:t,restSpeed:e=2,restDelta:n=.01,...r}){let o=t[0],s=t[t.length-1];const i={done:!1,value:o},{stiffness:a,damping:l,mass:u,velocity:c,duration:p,isResolvedFromDuration:d}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!X(t,K)&&X(t,U)){const n=q(t);e={...e,...n,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}(r);let h=J,f=c?-c/1e3:0;const m=l/(2*Math.sqrt(a*u));function v(){const t=s-o,e=Math.sqrt(a/u)/1e3;if(void 0===n&&(n=Math.min(Math.abs(s-o)/100,.4)),m<1){const n=z(e,m);h=r=>{const o=Math.exp(-m*e*r);return s-o*((f+m*e*t)/n*Math.sin(n*r)+t*Math.cos(n*r))}}else if(1===m)h=n=>s-Math.exp(-e*n)*(t+(f+e*t)*n);else{const n=e*Math.sqrt(m*m-1);h=r=>{const o=Math.exp(-m*e*r),i=Math.min(n*r,300);return s-o*((f+m*e*t)*Math.sinh(i)+n*t*Math.cosh(i))/n}}}return v(),{next:t=>{const r=h(t);if(d)i.done=t>=p;else{let o=f;if(0!==t)if(m<1){const e=Math.max(0,t-5);o=(0,H.R)(r-h(e),t-e)}else o=0;const a=Math.abs(o)<=e,l=Math.abs(s-r)<=n;i.done=a&&l}return i.value=i.done?s:r,i},flipTarget:()=>{f=-f,[o,s]=[s,o],v()}}}_.needsInterpolation=(t,e)=>"string"==typeof t||"string"==typeof e;const J=t=>0;const G={decay:function({keyframes:t=[0],velocity:e=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:s}){const i=t[0],a={done:!1,value:i};let l=n*e;const u=i+l,c=void 0===s?u:s(u);return c!==u&&(l=c-i),{next:t=>{const e=-l*Math.exp(-t/r);return a.done=!(e>o||e<-o),a.value=a.done?c:c+e,a},flipTarget:()=>{}}},keyframes:W,tween:W,spring:_};function Q(t,e,n=0){return t-e-n}const tt=t=>{const e=({delta:e})=>t(e);return{start:()=>i.Z_.update(e,!0),stop:()=>i.qY.update(e)}};function et({duration:t,driver:e=tt,elapsed:n=0,repeat:r=0,repeatType:o="loop",repeatDelay:s=0,keyframes:i,autoplay:a=!0,onPlay:l,onStop:u,onComplete:c,onRepeat:p,onUpdate:d,type:h="keyframes",...f}){var m,v;const g=n;let y,w,b=0,x=t,V=!1,A=!0;const C=G[i.length>2?"keyframes":h]||W,M=i[0],S=i[i.length-1];let k={done:!1,value:M};(null===(v=(m=C).needsInterpolation)||void 0===v?void 0:v.call(m,M,S))&&(w=O([0,100],[M,S],{clamp:!1}),i=[0,100]);const P=C({...f,duration:t,keyframes:i});function E(){b++,"reverse"===o?(A=b%2==0,n=function(t,e=0,n=0,r=!0){return r?Q(e+-t,e,n):e-(t-e)+n}(n,x,s,A)):(n=Q(n,x,s),"mirror"===o&&P.flipTarget()),V=!1,p&&p()}function T(t){A||(t=-t),n+=t,V||(k=P.next(Math.max(0,n)),w&&(k.value=w(k.value)),V=A?k.done:n<=0),d&&d(k.value),V&&(0===b&&(x=void 0!==x?x:n),b<r?function(t,e,n,r){return r?t>=e+n:t<=-n}(n,x,s,A)&&E():(y&&y.stop(),c&&c()))}return a&&(l&&l(),y=e(T),y.start()),{stop:()=>{u&&u(),y&&y.stop()},sample:e=>{n=g;const r=t&&"number"==typeof t?Math.max(.5*t,50):50;let o=0;for(T(0);o<=e;){const t=e-o;T(Math.min(t,r)),o+=r}return k}}}const nt=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,rt={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:nt([0,.65,.55,1]),circOut:nt([.55,0,1,.45]),backIn:nt([.31,.01,.66,-.59]),backOut:nt([.33,1.53,.69,.99])};function ot(t){if(t)return Array.isArray(t)?nt(t):rt[t]}const st={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},it={},at={};for(const t in st)at[t]=()=>(void 0===it[t]&&(it[t]=st[t]()),it[t]);const lt=new Set(["opacity"]);function ut(t,e,{onUpdate:n,onComplete:r,...o}){if(!(at.waapi()&<.has(e)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping))return!1;let{keyframes:s,duration:a=300,elapsed:l=0,ease:u}=o;if("spring"===o.type||!(!(c=o.ease)||Array.isArray(c)||"string"==typeof c&&rt[c])){if(o.repeat===1/0)return;const t=et(o);let e={done:!1,value:s[0]};const n=[];let r=0;for(;!e.done&&r<2e4;)e=t.sample(r),n.push(e.value),r+=10;s=n,a=r-10,u="linear"}var c;const p=function(t,e,n,{delay:r=0,duration:o,repeat:s=0,repeatType:i="loop",ease:a,times:l}={}){return t.animate({[e]:n,offset:l},{delay:r,duration:o,easing:ot(a),fill:"both",iterations:s+1,direction:"reverse"===i?"alternate":"normal"})}(t.owner.current,e,s,{...o,delay:-l,duration:a,ease:u});return p.onfinish=()=>{t.set(function(t,{repeat:e,repeatType:n="loop"}){return t[e&&"loop"!==n&&e%2==1?0:t.length-1]}(s,o)),r&&r()},()=>{const{currentTime:e}=p;if(e){const n=et({...o,autoplay:!1});t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}i.Z_.update((()=>p.cancel()))}}var ct=n(2866);function pt({keyframes:t,elapsed:e,onUpdate:n,onComplete:r}){const o=()=>(n&&n(t[t.length-1]),r&&r(),()=>{});return e?(0,ct.g)(o,-e):o()}var dt=n(5951);const ht=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),ft=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),mt=()=>({type:"keyframes",ease:"linear",duration:.3}),vt={type:"keyframes",duration:.8},gt={x:ht,y:ht,z:ht,rotate:ht,rotateX:ht,rotateY:ht,rotateZ:ht,scaleX:ft,scaleY:ft,scale:ft,opacity:mt,backgroundColor:mt,color:mt,default:ft},yt=(t,{keyframes:e})=>{if(e.length>2)return vt;return(gt[t]||gt.default)(e[1])},wt=(t,e)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!C.P.test(e)||e.startsWith("url(")));var bt=n(6914),xt=n(7101);const Vt=(t,e,n,i={})=>a=>{const l=(0,xt.ev)(i,t)||{},u=l.delay||i.delay||0;let{elapsed:c=0}=i;c-=(0,o.w)(u);const p=function(t,e,n,r){const o=wt(e,n);let s=void 0!==r.from?r.from:t.get();return"none"===s&&o&&"string"==typeof n?s=(0,bt.T)(e,n):(0,xt.Fr)(s)&&"string"==typeof n?s=(0,xt.GZ)(n):!Array.isArray(n)&&(0,xt.Fr)(n)&&"string"==typeof s&&(n=(0,xt.GZ)(s)),Array.isArray(n)?(null===n[0]&&(n[0]=s),n):[s,n]}(e,t,n,l),d=p[0],h=p[p.length-1],f=wt(t,d),m=wt(t,h);(0,r.K)(f===m,`You are trying to animate ${t} from "${d}" to "${h}". ${d} is not an animatable value - to enable this animation set ${d} to a value animatable to ${h} via the \`style\` property.`);let v={keyframes:p,velocity:e.getVelocity(),...l,elapsed:c,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{a(),l.onComplete&&l.onComplete()}};if(!f||!m||s||!1===l.type)return pt(v);if("inertia"===l.type){const t=function({keyframes:t,velocity:e=0,min:n,max:r,power:o=.8,timeConstant:s=750,bounceStiffness:i=500,bounceDamping:a=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:p,onComplete:d,onStop:h}){const f=t[0];let m;function v(t){return void 0!==n&&t<n||void 0!==r&&t>r}function g(t){return void 0===n?r:void 0===r||Math.abs(n-t)<Math.abs(r-t)?n:r}function y(t){null==m||m.stop(),m=et({keyframes:[0,1],velocity:0,...t,driver:c,onUpdate:e=>{var n;null==p||p(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:d,onStop:h})}function w(t){y({type:"spring",stiffness:i,damping:a,restDelta:l,...t})}if(v(f))w({velocity:e,keyframes:[f,g(f)]});else{let t=o*e+f;void 0!==u&&(t=u(t));const r=g(t),i=r===n?-1:1;let a,c;const p=t=>{a=c,c=t,e=(0,H.R)(t-a,dt.w.delta),(1===i&&t>r||-1===i&&t<r)&&w({keyframes:[t,r],velocity:e})};y({type:"decay",keyframes:[f,0],velocity:e,timeConstant:s,power:o,restDelta:l,modifyTarget:u,onUpdate:v(t)?p:void 0})}return{stop:()=>null==m?void 0:m.stop()}}(v);return()=>t.stop()}(0,xt.rw)(l)||(v={...v,...yt(t,v)}),v.duration&&(v.duration=(0,o.w)(v.duration)),v.repeatDelay&&(v.repeatDelay=(0,o.w)(v.repeatDelay));const g=e.owner,y=g&&g.current;if(g&&y instanceof HTMLElement&&!(null==g?void 0:g.getProps().onUpdate)){const n=ut(e,t,v);if(n)return n}const w=et(v);return()=>w.stop()}},2819:(t,e,n)=>{n.d(e,{C:()=>r});const r=t=>Array.isArray(t)},7101:(t,e,n)=>{n.d(e,{Fr:()=>s,GZ:()=>i,ev:()=>a,rw:()=>o});var r=n(6914);function o({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:s,repeatType:i,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function s(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function i(t){return"number"==typeof t?0:(0,r.T)("",t)}function a(t,e){return t[e]||t.default||t}},1930:(t,e,n)=>{n.d(e,{oO:()=>s});var r=n(8370),o=n(7866);function s(){const t=(0,r.useContext)(o.O);if(null===t)return[!0,null];const{isPresent:e,onExitComplete:n,register:s}=t,i=(0,r.useId)();(0,r.useEffect)((()=>s(i)),[]);return!e&&n?[!1,()=>n&&n(i)]:[!0]}},7866:(t,e,n)=>{n.d(e,{O:()=>o});var r=n(8370);const o=(0,r.createContext)(null)},7110:(t,e,n)=>{n.d(e,{Bn:()=>i,X7:()=>a,Z7:()=>s});var r=n(5222),o=n(9273);const s=t=>1-Math.sin(Math.acos(t)),i=(0,o.M)(s),a=(0,r.o)(i)},5222:(t,e,n)=>{n.d(e,{o:()=>r});const r=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},9273:(t,e,n)=>{n.d(e,{M:()=>r});const r=t=>e=>1-t(1-e)},409:(t,e,n)=>{n.d(e,{s:()=>o});var r=n(2426);const o=t=>e=>(0,r.D)(e)&&t(e,function(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}(e))},1876:(t,e,n)=>{n.d(e,{E:()=>o,p:()=>s});var r=n(8370);function o(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function s(t,e,n,s){(0,r.useEffect)((()=>{const r=t.current;if(n&&r)return o(r,e,n,s)}),[t,e,n,s])}},7815:(t,e,n)=>{n.d(e,{a:()=>s,m:()=>i});var r=n(1876),o=n(409);function s(t,e,n,s){return(0,r.E)(t,e,(0,o.s)(n),s)}function i(t,e,n,s){return(0,r.p)(t,e,n&&(0,o.s)(n),s)}},2426:(t,e,n)=>{n.d(e,{D:()=>r});const r=t=>!1!==t.isPrimary},5951:(t,e,n)=>{n.d(e,{w:()=>r});const r={delta:0,timestamp:0}},8313:(t,e,n)=>{n.d(e,{qY:()=>h,Z_:()=>d});const r=1/60*1e3,o="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),s="undefined"!=typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout((()=>t(o())),r);var i=n(5951);let a=!0,l=!1,u=!1;const c=["read","update","preRender","render","postRender"],p=c.reduce(((t,e)=>(t[e]=function(t){let e=[],n=[],r=0,o=!1,s=!1;const i=new WeakSet,a={schedule:(t,s=!1,a=!1)=>{const l=a&&o,u=l?e:n;return s&&i.add(t),-1===u.indexOf(t)&&(u.push(t),l&&o&&(r=e.length)),t},cancel:t=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1),i.delete(t)},process:l=>{if(o)s=!0;else{if(o=!0,[e,n]=[n,e],n.length=0,r=e.length,r)for(let n=0;n<r;n++){const r=e[n];r(l),i.has(r)&&(a.schedule(r),t())}o=!1,s&&(s=!1,a.process(l))}}};return a}((()=>l=!0)),t)),{}),d=c.reduce(((t,e)=>{const n=p[e];return t[e]=(t,e=!1,r=!1)=>(l||v(),n.schedule(t,e,r)),t}),{}),h=c.reduce(((t,e)=>(t[e]=p[e].cancel,t)),{}),f=(c.reduce(((t,e)=>(t[e]=()=>p[e].process(i.w),t)),{}),t=>p[t].process(i.w)),m=t=>{l=!1,i.w.delta=a?r:Math.max(Math.min(t-i.w.timestamp,40),1),i.w.timestamp=t,u=!0,c.forEach(f),u=!1,l&&(a=!1,s(m))},v=()=>{l=!0,a=!0,u||s(m)}},5856:(t,e,n)=>{function r(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}n.d(e,{gD:()=>i});const o=r("dragHorizontal"),s=r("dragVertical");function i(){const t=function(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}(!0);return!t||(t(),!1)}},6295:(t,e,n)=>{n.d(e,{x:()=>r});const r=t=>e=>(t(e),null)},483:(t,e,n)=>{function r({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function o(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}n.d(e,{d7:()=>o,i8:()=>r})},1397:(t,e,n)=>{n.d(e,{dO:()=>r});const r=()=>({x:{min:0,max:0},y:{min:0,max:0}})},798:(t,e,n)=>{n.d(e,{P:()=>r});const r={}},8834:(t,e,n)=>{n.d(e,{J:()=>o});var r=n(483);function o(t,e){return(0,r.i8)((0,r.d7)(t.getBoundingClientRect(),e))}},6978:(t,e,n)=>{n.d(e,{mH:()=>a});var r=n(9340);function o(t){return"string"==typeof t&&t.startsWith("var(--")}const s=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function i(t,e,n=1){(0,r.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,r]=e;return[n,r]}(t);if(!a)return;const u=window.getComputedStyle(e).getPropertyValue(a);return u?u.trim():o(l)?i(l,e,n+1):l}function a(t,{...e},n){const r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach((t=>{const e=t.get();if(!o(e))return;const n=i(e,r);n&&t.set(n)}));for(const t in e){const s=e[t];if(!o(s))continue;const a=i(s,r);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:()=>i});var r=n(26),o=n(8673),s=n(7557);function i(t,e){var n;let i=(0,s.A)(t);return i!==o.h&&(i=r.P),null===(n=i.getAnimatableNone)||void 0===n?void 0:n.call(i,e)}},7557:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(2890),o=n(8673);const s={...n(4923).j,color:r.$,backgroundColor:r.$,outlineColor:r.$,fill:r.$,stroke:r.$,borderColor:r.$,borderTopColor:r.$,borderRightColor:r.$,borderBottomColor:r.$,borderLeftColor:r.$,filter:o.h,WebkitFilter:o.h},i=t=>s[t]},4923:(t,e,n)=>{n.d(e,{j:()=>i});var r=n(8366),o=n(5713),s=n(6442);const i={borderWidth:o.px,borderTopWidth:o.px,borderRightWidth:o.px,borderBottomWidth:o.px,borderLeftWidth:o.px,borderRadius:o.px,radius:o.px,borderTopLeftRadius:o.px,borderTopRightRadius:o.px,borderBottomRightRadius:o.px,borderBottomLeftRadius:o.px,width:o.px,maxWidth:o.px,height:o.px,maxHeight:o.px,size:o.px,top:o.px,right:o.px,bottom:o.px,left:o.px,padding:o.px,paddingTop:o.px,paddingRight:o.px,paddingBottom:o.px,paddingLeft:o.px,margin:o.px,marginTop:o.px,marginRight:o.px,marginBottom:o.px,marginLeft:o.px,rotate:o.RW,rotateX:o.RW,rotateY:o.RW,rotateZ:o.RW,scale:r.bA,scaleX:r.bA,scaleY:r.bA,scaleZ:r.bA,skew:o.RW,skewX:o.RW,skewY:o.RW,distance:o.px,translateX:o.px,translateY:o.px,translateZ:o.px,x:o.px,y:o.px,z:o.px,perspective:o.px,transformPerspective:o.px,opacity:r.Fq,originX:o.$C,originY:o.$C,originZ:o.px,zIndex:s.e,fillOpacity:r.Fq,strokeOpacity:r.Fq,numOctaves:s.e}},6442:(t,e,n)=>{n.d(e,{e:()=>r});const r={...n(8366).Rx,transform:Math.round}},7921:(t,e,n)=>{var r;n.d(e,{r:()=>r}),function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.InView="whileInView",t.Exit="exit"}(r||(r={}))},1180:(t,e,n)=>{function r(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:()=>r})},9043:(t,e,n)=>{n.d(e,{u:()=>r});const r=(t,e,n)=>Math.min(Math.max(n,t),e)},2866:(t,e,n)=>{n.d(e,{g:()=>o});var r=n(8313);function o(t,e){const n=performance.now(),o=({timestamp:s})=>{const i=s-n;i>=e&&(r.qY.read(o),t(i-e))};return r.Z_.read(o,!0),()=>r.qY.read(o)}},3491:(t,e,n)=>{function r(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}n.d(e,{I:()=>r})},5430:(t,e,n)=>{n.d(e,{C:()=>r});const r=(t,e,n)=>-n*t+n*e+t},2634:(t,e,n)=>{n.d(e,{Z:()=>r});const r=t=>t},9820:(t,e,n)=>{n.d(e,{z:()=>o});const r=(t,e)=>n=>e(t(n)),o=(...t)=>t.reduce(r)},918:(t,e,n)=>{n.d(e,{Y:()=>r});const r=(t,e,n)=>{const r=e-t;return 0===r?1:(n-t)/r}},7048:(t,e,n)=>{n.d(e,{Y:()=>o});var r=n(2819);const o=t=>(0,r.C)(t)?t[t.length-1]||0:t},1065:(t,e,n)=>{n.d(e,{L:()=>o});var r=n(1180);class o{constructor(){this.subscriptions=[]}add(t){return(0,r.y4)(this.subscriptions,t),()=>(0,r.cl)(this.subscriptions,t)}notify(t,e,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},1818:(t,e,n)=>{n.d(e,{w:()=>r});const r=t=>1e3*t},9531:(t,e,n)=>{n.d(e,{z:()=>o});var r=n(8370);function o(t){return(0,r.useEffect)((()=>()=>t()),[])}},432:(t,e,n)=>{function r(t,e){return e?t*(1e3/e):0}n.d(e,{R:()=>r})},1421:(t,e,n)=>{n.d(e,{B:()=>l});var r=n(5951),o=n(8313),s=n(1065),i=n(432);class a{constructor(t,e={}){var n;this.version="__VERSION__",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;const{delta:n,timestamp:s}=r.w;this.lastUpdated!==s&&(this.timeDelta=n,this.lastUpdated=s,o.Z_.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>o.Z_.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=e.owner}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new s.L);const n=this.events[t].add(e);return"change"===t?()=>{n(),o.Z_.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?(0,i.R)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.stopAnimation=t(e),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.stopAnimation&&(this.stopAnimation(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function l(t,e){return new a(t,e)}},4775:(t,e,n)=>{n.d(e,{$:()=>o});var r=n(6077);const o={test:(0,n(8810).i)("#"),parse:function(t){let e="",n="",r="",o="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),o=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),o=t.substring(4,5),e+=e,n+=n,r+=r,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:r.m.transform}},5193:(t,e,n)=>{n.d(e,{J:()=>a});var r=n(8366),o=n(5713),s=n(6933),i=n(8810);const a={test:(0,i.i)("hsl","hue"),parse:(0,i.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+o.aQ.transform((0,s.Nw)(e))+", "+o.aQ.transform((0,s.Nw)(n))+", "+(0,s.Nw)(r.Fq.transform(i))+")"}},2890:(t,e,n)=>{n.d(e,{$:()=>a});var r=n(6933),o=n(4775),s=n(5193),i=n(6077);const a={test:t=>i.m.test(t)||o.$.test(t)||s.J.test(t),parse:t=>i.m.test(t)?i.m.parse(t):s.J.test(t)?s.J.parse(t):o.$.parse(t),transform:t=>(0,r.HD)(t)?t:t.hasOwnProperty("red")?i.m.transform(t):s.J.transform(t)}},6077:(t,e,n)=>{n.d(e,{m:()=>l});var r=n(9043),o=n(8366),s=n(6933),i=n(8810);const a={...o.Rx,transform:t=>Math.round((t=>(0,r.u)(0,255,t))(t))},l={test:(0,i.i)("rgb","red"),parse:(0,i.d)("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+a.transform(t)+", "+a.transform(e)+", "+a.transform(n)+", "+(0,s.Nw)(o.Fq.transform(r))+")"}},8810:(t,e,n)=>{n.d(e,{d:()=>s,i:()=>o});var r=n(6933);const o=(t,e)=>n=>Boolean((0,r.HD)(n)&&r.mj.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),s=(t,e,n)=>o=>{if(!(0,r.HD)(o))return o;const[s,i,a,l]=o.match(r.KP);return{[t]:parseFloat(s),[e]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},8673:(t,e,n)=>{n.d(e,{h:()=>l});var r=n(26),o=n(6933);const s=new Set(["brightness","contrast","saturate","opacity"]);function i(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[r]=n.match(o.KP)||[];if(!r)return t;const i=n.replace(r,"");let a=s.has(e)?1:0;return r!==n&&(a*=100),e+"("+a+i+")"}const a=/([a-z-]*)\(.*?\)/g,l={...r.P,getAnimatableNone:t=>{const e=t.match(a);return e?e.map(i).join(" "):t}}},26:(t,e,n)=>{n.d(e,{P:()=>d,V:()=>l});var r=n(2890),o=n(8366),s=n(6933);const i="${c}",a="${n}";function l(t){"number"==typeof t&&(t=`${t}`);const e=[];let n=0,l=0;const u=t.match(s.dA);u&&(n=u.length,t=t.replace(s.dA,i),e.push(...u.map(r.$.parse)));const c=t.match(s.KP);return c&&(l=c.length,t=t.replace(s.KP,a),e.push(...c.map(o.Rx.parse))),{values:e,numColors:n,numNumbers:l,tokenised:t}}function u(t){return l(t).values}function c(t){const{values:e,numColors:n,tokenised:o}=l(t),u=e.length;return t=>{let e=o;for(let o=0;o<u;o++)e=e.replace(o<n?i:a,o<n?r.$.transform(t[o]):(0,s.Nw)(t[o]));return e}}const p=t=>"number"==typeof t?0:t;const d={test:function(t){var e,n;return isNaN(t)&&(0,s.HD)(t)&&((null===(e=t.match(s.KP))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(s.dA))||void 0===n?void 0:n.length)||0)>0},parse:u,createTransformer:c,getAnimatableNone:function(t){const e=u(t);return c(t)(e.map(p))}}},8366:(t,e,n)=>{n.d(e,{Fq:()=>s,Rx:()=>o,bA:()=>i});var r=n(9043);const o={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},s={...o,transform:t=>(0,r.u)(0,1,t)},i={...o,default:1}},5713:(t,e,n)=>{n.d(e,{$C:()=>c,RW:()=>s,aQ:()=>i,px:()=>a,vh:()=>l,vw:()=>u});var r=n(6933);const o=t=>({test:e=>(0,r.HD)(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),s=o("deg"),i=o("%"),a=o("px"),l=o("vh"),u=o("vw"),c={...i,parse:t=>i.parse(t)/100,transform:t=>i.transform(100*t)}},6933:(t,e,n)=>{n.d(e,{HD:()=>a,KP:()=>o,Nw:()=>r,dA:()=>s,mj:()=>i});const r=t=>Math.round(1e5*t)/1e5,o=/(-)?([\d]*\.?[\d])+/g,s=/(#[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,i=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function a(t){return"string"==typeof t}},7846:(t,e,n)=>{n.d(e,{i:()=>r});const r=t=>!!(null==t?void 0:t.getVelocity)},8370:t=>{t.exports=void 0}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var s=e[r]={exports:{}};return t[r](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 r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t=n(8370);function e(t){return"object"==typeof t&&"function"==typeof t.start}var r=n(1930),o=n(7866),s=n(2819);function i(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}const a=t=>/^0[^.\s]+$/.test(t);var l=n(7048),u=n(1421),c=n(26),p=n(6914),d=n(2890),h=n(8366),f=n(5713);const m=t=>e=>e.test(t),v=[h.Rx,f.px,f.aQ,f.RW,f.vw,f.vh,{test:t=>"auto"===t,parse:t=>t}],g=t=>v.find(m(t)),y=[...v,d.$,c.P],w=t=>y.find(m(t));function b(t,e,n,r={},o={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,o)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,o)),e}function x(t,e,n){const r=t.getProps();return b(r,e,void 0!==n?n:r.custom,function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.get())),e}(t),function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.getVelocity())),e}(t))}function V(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,u.B)(n))}function A(t,e){const n=x(t,e);let{transitionEnd:r={},transition:o={},...s}=n?t.makeTargetAnimatable(n,!1):{};s={...s,...r};for(const e in s){V(t,e,(0,l.Y)(s[e]))}}function C(t,e){if(!e)return;return(e[t]||e.default||e).from}const M=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],S=new Set(M);var k=n(7846);function P(t){return Boolean((0,k.i)(t)&&t.add)}var E=n(8313);function T(t,e){const{MotionAppearAnimations:n}=window,r=((t,e)=>`${t}: ${e}`)(t,S.has(e)?"transform":e),o=n&&n.get(r);return o?(E.Z_.render((()=>{try{o.cancel(),n.delete(r)}catch(t){}})),o.currentTime||0):0}const F=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),O="data-"+F("framerAppearId");var $=n(6405);function R(t,e,n={}){var r;const o=x(t,e,n.custom);let{transition:s=t.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(s=n.transitionOverride);const i=o?()=>I(t,o,n):()=>Promise.resolve(),a=(null===(r=t.variantChildren)||void 0===r?void 0:r.size)?(r=0)=>{const{delayChildren:o=0,staggerChildren:i,staggerDirection:a}=s;return function(t,e,n=0,r=0,o=1,s){const i=[],a=(t.variantChildren.size-1)*r,l=1===o?(t=0)=>t*r:(t=0)=>a-t*r;return Array.from(t.variantChildren).sort(D).forEach(((t,r)=>{t.notify("AnimationStart",e),i.push(R(t,e,{...s,delay:n+l(r)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(i)}(t,e,o+r,i,a,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[t,e]="beforeChildren"===l?[i,a]:[a,i];return t().then(e)}return Promise.all([i(),a(n.delay)])}function I(t,e,{delay:n=0,transitionOverride:r,type:o}={}){var s;let{transition:i=t.getDefaultTransition(),transitionEnd:a,...l}=t.makeTargetAnimatable(e);const u=t.getValue("willChange");r&&(i=r);const c=[],p=o&&(null===(s=t.animationState)||void 0===s?void 0:s.getState()[o]);for(const e in l){const r=t.getValue(e),o=l[e];if(!r||void 0===o||p&&B(p,e))continue;let s={delay:n,elapsed:0,...i};if(t.shouldReduceMotion&&S.has(e)&&(s={...s,type:!1,delay:0}),!r.hasAnimated){const n=t.getProps()[O];n&&(s.elapsed=T(n,e))}let a=r.start((0,$.Z)(e,r,o,s));P(u)&&(u.add(e),a=a.then((()=>u.remove(e)))),c.push(a)}return Promise.all(c).then((()=>{a&&A(t,a)}))}function D(t,e){return t.sortNodePosition(e)}function B({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,r}function N(t){return"string"==typeof t||Array.isArray(t)}var j=n(7921);const Z=[j.r.Animate,j.r.InView,j.r.Focus,j.r.Hover,j.r.Tap,j.r.Drag,j.r.Exit],L=[...Z].reverse(),W=Z.length;function Y(t){return e=>Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e)){const o=e.map((e=>R(t,e,n)));r=Promise.all(o)}else if("string"==typeof e)r=R(t,e,n);else{const o="function"==typeof e?x(t,e,n.custom):e;r=I(t,o,n)}return r.then((()=>t.notify("AnimationComplete",e)))}(t,e,n))))}function q(t){let n=Y(t);const r={[j.r.Animate]:H(!0),[j.r.InView]:H(),[j.r.Hover]:H(),[j.r.Tap]:H(),[j.r.Drag]:H(),[j.r.Focus]:H(),[j.r.Exit]:H()};let o=!0;const a=(e,n)=>{const r=x(t,n);if(r){const{transition:t,transitionEnd:n,...o}=r;e={...e,...o,...n}}return e};function l(l,u){const c=t.getProps(),p=t.getVariantContext(!0)||{},d=[],h=new Set;let f={},m=1/0;for(let n=0;n<W;n++){const v=L[n],g=r[v],y=void 0!==c[v]?c[v]:p[v],w=N(y),b=v===u?g.isActive:null;!1===b&&(m=n);let x=y===p[v]&&y!==c[v]&&w;if(x&&o&&t.manuallyAnimateOnMount&&(x=!1),g.protectedKeys={...f},!g.isActive&&null===b||!y&&!g.prevProp||e(y)||"boolean"==typeof y)continue;const V=z(g.prevProp,y);let A=V||v===u&&g.isActive&&!x&&w||n>m&&w;const C=Array.isArray(y)?y:[y];let M=C.reduce(a,{});!1===b&&(M={});const{prevResolvedValues:S={}}=g,k={...S,...M},P=t=>{A=!0,h.delete(t),g.needsAnimating[t]=!0};for(const t in k){const e=M[t],n=S[t];f.hasOwnProperty(t)||(e!==n?(0,s.C)(e)&&(0,s.C)(n)?!i(e,n)||V?P(t):g.protectedKeys[t]=!0:void 0!==e?P(t):h.add(t):void 0!==e&&h.has(t)?P(t):g.protectedKeys[t]=!0)}g.prevProp=y,g.prevResolvedValues=M,g.isActive&&(f={...f,...M}),o&&t.blockInitialAnimation&&(A=!1),A&&!x&&d.push(...C.map((t=>({animation:t,options:{type:v,...l}}))))}if(h.size){const e={};h.forEach((n=>{const r=t.getBaseTarget(n);void 0!==r&&(e[n]=r)})),d.push({animation:e})}let v=Boolean(d.length);return o&&!1===c.initial&&!t.manuallyAnimateOnMount&&(v=!1),o=!1,v?n(d):Promise.resolve()}return{animateChanges:l,setActive:function(e,n,o){var s;if(r[e].isActive===n)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach((t=>{var r;return null===(r=t.animationState)||void 0===r?void 0:r.setActive(e,n)})),r[e].isActive=n;const i=l(o,e);for(const t in r)r[t].protectedKeys={};return i},setAnimateFunction:function(e){n=e(t)},getState:()=>r}}function z(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!i(e,t)}function H(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var U=n(6295);const K={animation:(0,U.x)((({visualElement:n,animate:r})=>{n.animationState||(n.animationState=q(n)),e(r)&&(0,t.useEffect)((()=>r.subscribe(n)),[r])})),exit:(0,U.x)((e=>{const{custom:n,visualElement:s}=e,[i,a]=(0,r.oO)(),l=(0,t.useContext)(o.O);(0,t.useEffect)((()=>{s.isPresent=i;const t=s.animationState&&s.animationState.setActive(j.r.Exit,!i,{custom:l&&l.custom||n});t&&!i&&t.then(a)}),[i])}))};var X=n(1876);var _=n(7815),J=n(5856);function G(t,e,n){return(r,o)=>{(function(t){return"pen"!==t.type&&"touch"!==t.type})(r)&&!(0,J.gD)()&&(t.animationState&&t.animationState.setActive(j.r.Hover,e),n&&n(r,o))}}const Q=(t,e)=>!!e&&(t===e||Q(t,e.parentElement));var tt=n(9531),et=n(9820);const nt=new WeakMap,rt=new WeakMap,ot=t=>{const e=nt.get(t.target);e&&e(t)},st=t=>{t.forEach(ot)};function it(t,e,n){const r=function({root:t,...e}){const n=t||document;rt.has(n)||rt.set(n,{});const r=rt.get(n),o=JSON.stringify(e);return r[o]||(r[o]=new IntersectionObserver(st,{root:t,...e})),r[o]}(e);return nt.set(t,n),r.observe(t),()=>{nt.delete(t),r.unobserve(t)}}const at={some:0,all:1};function lt(e,n,r,{root:o,margin:s,amount:i="some",once:a}){(0,t.useEffect)((()=>{if(!e||!r.current)return;const t={root:null==o?void 0:o.current,rootMargin:s,threshold:"number"==typeof i?i:at[i]};return it(r.current,t,(t=>{const{isIntersecting:e}=t;if(n.isInView===e)return;if(n.isInView=e,a&&!e&&n.hasEnteredView)return;e&&(n.hasEnteredView=!0),r.animationState&&r.animationState.setActive(j.r.InView,e);const o=r.getProps(),s=e?o.onViewportEnter:o.onViewportLeave;s&&s(t)}))}),[e,o,s,i])}function ut(e,n,r,{fallback:o=!0}){(0,t.useEffect)((()=>{e&&o&&requestAnimationFrame((()=>{n.hasEnteredView=!0;const{onViewportEnter:t}=r.getProps();t&&t(null),r.animationState&&r.animationState.setActive(j.r.InView,!0)}))}),[e])}const ct={inView:(0,U.x)((function({visualElement:e,whileInView:n,onViewportEnter:r,onViewportLeave:o,viewport:s={}}){const i=(0,t.useRef)({hasEnteredView:!1,isInView:!1});let a=Boolean(n||r||o);s.once&&i.current.hasEnteredView&&(a=!1),("undefined"==typeof IntersectionObserver?ut:lt)(a,i.current,e,s)})),tap:(0,U.x)((function({onTap:e,onTapStart:n,onTapCancel:r,whileTap:o,visualElement:s,...i}){const a=e||n||r||o,l=(0,t.useRef)(!1),u=(0,t.useRef)(null),c={passive:!(n||e||r||i.onPointerDown)};function p(){u.current&&u.current(),u.current=null}function d(){return p(),l.current=!1,s.animationState&&s.animationState.setActive(j.r.Tap,!1),!(0,J.gD)()}function h(t,n){d()&&(Q(s.current,t.target)?e&&e(t,n):r&&r(t,n))}function f(t,e){d()&&r&&r(t,e)}const m=(0,t.useCallback)(((t,e)=>{p(),l.current||(l.current=!0,u.current=(0,et.z)((0,_.a)(window,"pointerup",h,c),(0,_.a)(window,"pointercancel",f,c)),s.animationState&&s.animationState.setActive(j.r.Tap,!0),n&&n(t,e))}),[n,s]);(0,_.m)(s,"pointerdown",a?m:void 0,c),(0,tt.z)(p)})),focus:(0,U.x)((function({whileFocus:e,visualElement:n}){const{animationState:r}=n,o=(0,t.useCallback)((()=>{r&&r.setActive(j.r.Focus,!0)}),[r]),s=(0,t.useCallback)((()=>{r&&r.setActive(j.r.Focus,!1)}),[r]);(0,X.p)(n,"focus",e?o:void 0),(0,X.p)(n,"blur",e?s:void 0)})),hover:(0,U.x)((function({onHoverStart:e,onHoverEnd:n,whileHover:r,visualElement:o}){(0,_.m)(o,"pointerenter",(0,t.useMemo)((()=>e||r?G(o,!0,e):void 0),[e,Boolean(r),o]),{passive:!e}),(0,_.m)(o,"pointerleave",(0,t.useMemo)((()=>n||r?G(o,!1,n):void 0),[e,Boolean(r),o]),{passive:!n})}))},pt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},dt=(t,e)=>M.indexOf(t)-M.indexOf(e);function ht(t){return t.startsWith("--")}const ft=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var mt=n(4923);function vt(t,e,n,r){const{style:o,vars:s,transform:i,transformKeys:a,transformOrigin:l}=t;a.length=0;let u=!1,c=!1,p=!0;for(const t in e){const n=e[t];if(ht(t)){s[t]=n;continue}const r=mt.j[t],u=ft(n,r);if(S.has(t)){if(!0,i[t]=u,a.push(t),!p)continue;n!==(r.default||0)&&!1}else t.startsWith("origin")?(!0,l[t]=u):o[t]=u}if(e.transform||(u||r?o.transform=function({transform:t,transformKeys:e},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},o,s){let i="";e.sort(dt);for(const n of e)`${pt[n]||n}(${t[n]}) `;return n&&!t.z&&"translateZ(0)",i.trim(),s?s(t,o?"":i):r&&o&&"none",i}(t,n,p,r):o.transform&&(o.transform="none")),c){const{originX:t="50%",originY:e="50%",originZ:n=0}=l;o.transformOrigin=`${t} ${e} ${n}`}}var gt=n(798);function yt(t,{layout:e,layoutId:n}){return S.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!gt.P[t]||"opacity"===t)}function wt(t,e){const{style:n}=t,r={};for(const o in n)((0,k.i)(n[o])||e.style&&(0,k.i)(e.style[o])||yt(o,t))&&(r[o]=n[o]);return r}function bt(t,{style:e,vars:n},r,o){Object.assign(t.style,e,o&&o.getProjectionStyles(r));for(const e in n)t.style.setProperty(e,n[e])}var xt=n(7557),Vt=n(8834),At=n(6978),Ct=n(9340);const Mt="undefined"!=typeof document,St=new Set(["width","height","top","left","right","bottom","x","y"]),kt=t=>St.has(t),Pt=t=>t===h.Rx||t===f.px;var Et;!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(Et||(Et={}));const Tt=(t,e)=>parseFloat(t.split(", ")[e]),Ft=(t,e)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Tt(o[1],e);{const e=r.match(/^matrix\((.+)\)$/);return e?Tt(e[1],t):0}},Ot=new Set(["x","y","z"]),$t=M.filter((t=>!Ot.has(t)));const Rt={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:Ft(4,13),y:Ft(5,14)},It=(t,e,n={},r={})=>{e={...e},r={...r};const o=Object.keys(e).filter(kt);let i=[],a=!1;const l=[];if(o.forEach((o=>{const u=t.getValue(o);if(!t.hasValue(o))return;let c=n[o],p=g(c);const d=e[o];let h;if((0,s.C)(d)){const t=d.length,e=null===d[0]?1:0;c=d[e],p=g(c);for(let n=e;n<t;n++)h?(0,Ct.k)(g(d[n])===h,"All keyframes must be of the same type"):(h=g(d[n]),(0,Ct.k)(h===p||Pt(p)&&Pt(h),"Keyframes must be of the same dimension as the current value"))}else h=g(d);if(p!==h)if(Pt(p)&&Pt(h)){const t=u.get();"string"==typeof t&&u.set(parseFloat(t)),"string"==typeof d?e[o]=parseFloat(d):Array.isArray(d)&&h===f.px&&(e[o]=d.map(parseFloat))}else(null==p?void 0:p.transform)&&(null==h?void 0:h.transform)&&(0===c||0===d)?0===c?u.set(h.transform(c)):e[o]=p.transform(d):(a||(i=function(t){const e=[];return $t.forEach((n=>{const r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),e.length&&t.render(),e}(t),a=!0),l.push(o),r[o]=void 0!==r[o]?r[o]:e[o],u.jump(d))})),l.length){const n=l.indexOf("height")>=0?window.pageYOffset:null,o=((t,e,n)=>{const r=e.measureViewportBox(),o=e.current,s=getComputedStyle(o),{display:i}=s,a={};"none"===i&&e.setStaticValue("display",t.display||"block"),n.forEach((t=>{a[t]=Rt[t](r,s)})),e.render();const l=e.measureViewportBox();return n.forEach((n=>{const r=e.getValue(n);r&&r.jump(a[n]),t[n]=Rt[n](l,s)})),t})(e,t,l);return i.length&&i.forEach((([e,n])=>{t.getValue(e).set(n)})),t.render(),Mt&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:e,transitionEnd:r}};function Dt(t,e,n,r){return(t=>Object.keys(t).some(kt))(e)?It(t,e,n,r):{target:e,transitionEnd:r}}const Bt=t=>({isEnabled:e=>t.some((t=>!!e[t]))}),Nt={measureLayout:Bt(["layout","layoutId","drag"]),animation:Bt(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Bt(["exit"]),drag:Bt(["drag","dragControls"]),focus:Bt(["whileFocus"]),hover:Bt(["whileHover","onHoverStart","onHoverEnd"]),tap:Bt(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Bt(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Bt(["whileInView","onViewportEnter","onViewportLeave"])};var jt=n(1397),Zt=n(3491);const Lt={current:null},Wt={current:!1};var Yt=n(1065);const qt=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function zt(t){return e(t.animate)||qt.some((e=>N(t[e])))}const Ht=Object.keys(Nt),Ut=Ht.length,Kt=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];const Xt=["initial",...Z],_t=Xt.length;class Jt extends class{constructor({parent:t,props:e,reducedMotionConfig:n,visualState:r},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=()=>E.Z_.render(this.render,!1,!0);const{latestValues:s,renderState:i}=r;this.latestValues=s,this.baseTarget={...s},this.initialValues=e.initial?{...s}:{},this.renderState=i,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,k.i)(e)&&(e.set(s[t],!1),P(a)&&a.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){var e;this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null===this.parent||void 0===e?void 0:e.addVariantChild(this)),this.values.forEach(((t,e)=>this.bindToMotionValue(e,t))),Wt.current||function(){if(Wt.current=!0,Mt)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Lt.current=t.matches;t.addListener(e),e()}else Lt.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Lt.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var t,e,n;null===this.projection||void 0===t||t.unmount(),E.qY.update(this.notifyUpdate),E.qY.render(this.render),this.valueSubscriptions.forEach((t=>t())),null===this.removeFromVariantTree||void 0===e||e.call(this),null===this.parent||void 0===n||n.children.delete(this);for(const t in this.events)this.events[t].clear();this.current=null}bindToMotionValue(t,e){const n=S.has(t),r=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&E.Z_.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,(()=>{r(),o()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures(e,n,r,o,s,i){const a=[];for(let n=0;n<Ut;n++){const r=Ht[n],{isEnabled:o,Component:s}=Nt[r];o(e)&&s&&a.push((0,t.createElement)(s,{key:r,...e,visualElement:this}))}if(!this.projection&&s){this.projection=new s(o,this.latestValues,this.parent&&this.parent.projection);const{layoutId:t,layout:n,drag:r,dragConstraints:a,layoutScroll:l}=e;this.projection.setOptions({layoutId:t,layout:n,alwaysMeasureLayout:Boolean(r)||a&&(0,Zt.I)(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:i,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,jt.dO)()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,e)}setProps(t){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender();const e=this.props;this.props=t;for(let e=0;e<Kt.length;e++){const n=Kt[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=t["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(t,e,n){const{willChange:r}=e;for(const o in e){const s=e[o],i=n[o];if((0,k.i)(s))t.addValue(o,s),P(r)&&r.add(o);else if((0,k.i)(i))t.addValue(o,(0,u.B)(s,{owner:t})),P(r)&&r.remove(o);else if(i!==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,u.B)(void 0!==e?e:s))}}for(const r in n)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,e),this.prevMotionValues)}getProps(){return this.props}getVariant(t){var e;return null===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===this.parent||void 0===t?void 0:t.getClosestVariantNode()}getVariantContext(t=!1){var e,n;if(t)return null===this.parent||void 0===e?void 0:e.getVariantContext();if(!this.isControllingVariants){const t=(null===this.parent||void 0===n?void 0:n.getVariantContext())||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}const r={};for(let t=0;t<_t;t++){const e=Xt[t],n=this.props[e];(N(n)||!1===n)&&(r[e]=n)}return r}addVariantChild(t){var e;const n=this.getClosestVariantNode();if(n)return null===n.variantChildren||void 0===e||e.add(t),()=>n.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){var e;this.values.delete(t),null===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&&((0,u.B)(e,{owner:this}),this.addValue(t,n)),n}readValue(t){return void 0===this.latestValues[t]&&this.current?this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===b(this.props,n)||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,t);return void 0===o||(0,k.i)(o)?void 0!==this.initialValues[t]&&void 0===r?void 0:this.baseTarget[t]:o}on(t,e){return this.events[t]||(this.events[t]=new Yt.L),this.events[t].add(e)}notify(t,...e){var n;null===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===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:r},o){let s=function(t,e,n){var r;const o={};for(const s in t){const t=C(s,e);o[s]=void 0!==t?t:null===n.getValue(s)||void 0===r?void 0:r.get()}return o}(n,t||{},this);if(r&&(e&&r(e),n&&r(n),s&&r(s)),o){!function(t,e,n){var r,o;const s=Object.keys(e).filter((e=>!t.hasValue(e))),i=s.length;if(i)for(let l=0;l<i;l++){const i=s[l],d=e[i];let h=null;Array.isArray(d)&&d[0],null===h&&(null!==(null!==n[i]&&void 0!==r?r:t.readValue(i))&&void 0!==o?o:e[i]),null!=h&&("string"==typeof h&&(/^\-?\d*\.?\d+$/.test(h)||a(h))?parseFloat(h):!w(h)&&c.P.test(d)&&(0,p.T)(i,d),t.addValue(i,(0,u.B)(h,{owner:t})),void 0===n[i]&&(n[i]=h),null!==h&&t.setBaseTarget(i,h))}}(this,n,s);const t=((t,e,n,r)=>{const o=(0,At.mH)(t,e,r);return Dt(t,o.target,n,o.transitionEnd)})(this,n,s,e);t.transitionEnd,t.target}return{transition:t,transitionEnd:e,...n}}}class Gt extends Jt{readValueFromInstance(t,e){if(S.has(e)){const t=(0,xt.A)(e);return t&&t.default||0}{const r=(t,window.getComputedStyle(n)),o=(ht(e)?r.getPropertyValue(e):r[e])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,Vt.J)(t,e)}build(t,e,n,r){vt(t,e,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,e){return wt(t,e)}renderInstance(t,e,n,r){bt(t,e,n,r)}}function Qt(t,e,n){return"string"==typeof t?t:f.px.transform(e+n*t)}const te={offset:"stroke-dashoffset",array:"stroke-dasharray"},ee={offset:"strokeDashoffset",array:"strokeDasharray"};function ne(t,{attrX:e,attrY:n,originX:r,originY:o,pathLength:s,pathSpacing:i=1,pathOffset:a=0,...l},u,c,p){if(vt(t,l,u,p),c)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:d,style:h,dimensions:m}=t;d.transform&&(m&&(h.transform=d.transform),delete d.transform),m&&(void 0!==r||void 0!==o||h.transform)&&(h.transformOrigin=function(t,e,n){return`${Qt(e,t.x,t.width)} ${Qt(n,t.y,t.height)}`}(m,void 0!==r?r:.5,void 0!==o?o:.5)),void 0!==e&&(d.x=e),void 0!==n&&(d.y=n),void 0!==s&&function(t,e,n=1,r=0,o=!0){t.pathLength=1;const s=o?te:ee;t[s.offset]=f.px.transform(-r);const i=f.px.transform(e),a=f.px.transform(n);t[s.array]=`${i} ${a}`}(d,s,i,a,!1)}const re=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);class oe extends Jt{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){var n;return S.has(e)?(null===(0,xt.A)(e)||void 0===n?void 0:n.default)||0:(re.has(e)?e:F(e),t.getAttribute(e))}measureInstanceViewportBox(){return(0,jt.dO)()}scrapeMotionValuesFromProps(t,e){return function(t,e){const n=wt(t,e);for(const r in t)((0,k.i)(t[r])||(0,k.i)(e[r]))&&(n["x"===r||"y"===r?"attr"+r.toUpperCase():r]=t[r]);return n}(t,e)}build(t,e,n,r){ne(t,e,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,e,n,r){!function(t,e,n,r){bt(t,e,void 0,r);for(const n in e.attrs)t.setAttribute(re.has(n)?n:F(n),e.attrs[n])}(t,e,0,r)}mount(t){var e;this.isSVGTag="string"==typeof t.tagName&&"svg"===e.toLowerCase(),super.mount(t)}}const se=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"]})()})();
|