framer-motion 9.0.3 → 9.0.4
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 +16 -17
- package/dist/es/render/html/utils/build-styles.mjs +2 -4
- package/dist/es/render/html/utils/build-transform.mjs +12 -10
- package/dist/es/render/html/utils/create-render-state.mjs +0 -1
- package/dist/es/render/utils/motion-values.mjs +1 -1
- package/dist/es/value/index.mjs +1 -1
- package/dist/framer-motion.dev.js +16 -17
- package/dist/framer-motion.js +1 -1
- package/dist/index.d.ts +1 -6
- package/dist/projection.dev.js +16 -16
- package/dist/size-rollup-dom-animation-assets.js +1 -1
- package/dist/size-rollup-dom-animation-m.js +1 -1
- package/dist/size-rollup-dom-animation.js +1 -1
- package/dist/size-rollup-dom-max-assets.js +1 -1
- package/dist/size-rollup-dom-max.js +1 -1
- package/dist/size-rollup-m.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/dist/size-webpack-m.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:()=>s});var r=function(){},s=function(){}},6405:(t,e,n)=>{n.d(e,{Z:()=>Vt});var r=n(9340),s=n(1818);const o=!1;var i=n(8313),a=n(5222),c=n(9273);const u=t=>t*t,l=(0,c.M)(u),h=(0,a.o)(u);var p=n(2890),d=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 b=(t,e,n)=>{const r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},w=[v.$,g.m,y.J];function x(t){const e=(n=t,w.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 s=e.parse(t);return e===y.J&&(s=function({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,n/=100;let s=0,o=0,i=0;if(e/=100){const r=n<.5?n*(1+e):n+e-n*e,a=2*n-r;s=m(a,r,t+1/3),o=m(a,r,t),i=m(a,r,t-1/3)}else s=o=i=n;return{red:Math.round(255*s),green:Math.round(255*o),blue:Math.round(255*i),alpha:r}}(s)),s}const V=(t,e)=>{const n=x(t),r=x(e),s={...n};return t=>(s.red=b(n.red,r.red,t),s.green=b(n.green,r.green,t),s.blue=b(n.blue,r.blue,t),s.alpha=(0,f.C)(n.alpha,r.alpha,t),g.m.transform(s))};var A=n(9820),P=n(26);function C(t,e){return"number"==typeof t?n=>(0,f.C)(t,e,n):p.$.test(t)?V(t,e):k(t,e)}const S=(t,e)=>{const n=[...t],r=n.length,s=t.map(((t,n)=>C(t,e[n])));return t=>{for(let e=0;e<r;e++)n[e]=s[e](t);return n}},T=(t,e)=>{const n={...t,...e},r={};for(const s in n)void 0!==t[s]&&void 0!==e[s]&&(r[s]=C(t[s],e[s]));return t=>{for(const e in r)n[e]=r[e](t);return n}},k=(t,e)=>{const n=P.P.createTransformer(e),s=(0,P.V)(t),o=(0,P.V)(e);return s.numColors===o.numColors&&s.numNumbers>=o.numNumbers?(0,A.z)(S(s.values,o.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 M=n(918);const E=(t,e)=>n=>(0,f.C)(t,e,n);function F(t,e,n){const r=[],s=n||("number"==typeof(o=t[0])?E:"string"==typeof o?p.$.test(o)?V:k:Array.isArray(o)?S:"object"==typeof o?T:E);var o;const i=t.length-1;for(let n=0;n<i;n++){let o=s(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]:e;o=(0,A.z)(t,o)}r.push(o)}return r}function O(t,e,{clamp:n=!0,ease:s,mixer:o}={}){const i=t.length;(0,r.k)(i===e.length,"Both input and output ranges must be the same length"),(0,r.k)(!s||!Array.isArray(s)||s.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,s,o),c=a.length,u=e=>{let n=0;if(c>1)for(;n<t.length-2&&!(e<t[n+1]);n++);const r=(0,M.Y)(t[n],t[n+1],e);return a[n](r)};return n?e=>u((0,d.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 s=e=>function(t,e,n,r,s){let o,i,a=0;do{i=e+(n-e)/2,o=R(i,r,s)-t,o>0?n=i:e=i}while(Math.abs(o)>1e-7&&++a<12);return i}(e,0,1,t,n);return t=>0===t||1===t?t:R(s(t),e,r)}var L=n(7110);const B=I(.33,1.53,.69,.99),D=(0,c.M)(B),N=(0,a.o)(D),j={linear:$.Z,easeIn:u,easeInOut:h,easeOut:l,circIn:L.Z7,circInOut:L.X7,circOut:L.Bn,backIn:D,backInOut:N,backOut:B,anticipate:t=>(t*=2)<1?.5*D(t):.5*(2-Math.pow(2,-10*(t-1)))},Z=t=>{if(Array.isArray(t)){(0,r.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,s,o]=t;return I(e,n,s,o)}return"string"==typeof t?((0,r.k)(void 0!==j[t],`Invalid easing type '${t}'`),j[t]):t};function W({keyframes:t,ease:e=h,times:n,duration:r=300}){t=[...t];const s=(t=>Array.isArray(t)&&"number"!=typeof t[0])(e)?e.map(Z):Z(e),o={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(s)?s:(e=t,n=s,e.map((()=>n||h)).splice(0,e.length-1))});var e,n}let c=a();return{next:t=>(o.value=c(t),o.done=t>=r,o),flipTarget:()=>{t.reverse(),c=a()}}}const z=.001;function Y({duration:t=800,bounce:e=.25,velocity:n=0,mass:s=1}){let o,i;(0,r.K)(t<=1e4,"Spring duration must be 10 seconds or less");let a=1-e;a=(0,d.u)(.05,1,a),t=(0,d.u)(.01,10,t/1e3),a<1?(o=e=>{const r=e*a,s=r*t,o=r-n,i=q(e,a),c=Math.exp(-s);return z-o/i*c},i=e=>{const r=e*a*t,s=r*n+n,i=Math.pow(a,2)*Math.pow(e,2)*t,c=Math.exp(-r),u=q(Math.pow(e,2),a);return(-o(e)+z>0?-1:1)*((s-i)*c)/u}):(o=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,i=e=>Math.exp(-e*t)*(t*t*(n-e)));const c=function(t,e,n){let r=n;for(let n=1;n<12;n++)r-=t(r)/e(r);return r}(o,i,5/t);if(t*=1e3,isNaN(c))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(c,2)*s;return{stiffness:e,damping:2*a*Math.sqrt(s*e),duration:t}}}function q(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,restDelta:e,restSpeed:n,...r}){let s=t[0],o=t[t.length-1];const i={done:!1,value:s},{stiffness:a,damping:c,mass:u,velocity:l,duration:h,isResolvedFromDuration:p}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!X(t,K)&&X(t,U)){const n=Y(t);e={...e,...n,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}(r);let d=J,f=l?-l/1e3:0;const m=c/(2*Math.sqrt(a*u));function v(){const t=o-s,r=Math.sqrt(a/u)/1e3,i=Math.abs(t)<5;if(n||(n=i?.01:2),e||(e=i?.005:.5),m<1){const e=q(r,m);d=n=>{const s=Math.exp(-m*r*n);return o-s*((f+m*r*t)/e*Math.sin(e*n)+t*Math.cos(e*n))}}else if(1===m)d=e=>o-Math.exp(-r*e)*(t+(f+r*t)*e);else{const e=r*Math.sqrt(m*m-1);d=n=>{const s=Math.exp(-m*r*n),i=Math.min(e*n,300);return o-s*((f+m*r*t)*Math.sinh(i)+e*t*Math.cosh(i))/e}}}return v(),{next:t=>{const r=d(t);if(p)i.done=t>=h;else{let s=f;if(0!==t)if(m<1){const e=Math.max(0,t-5);s=(0,H.R)(r-d(e),t-e)}else s=0;const a=Math.abs(s)<=n,c=Math.abs(o-r)<=e;i.done=a&&c}return i.value=i.done?o:r,i},flipTarget:()=>{f=-f,[s,o]=[o,s],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:s=.5,modifyTarget:o}){const i=t[0],a={done:!1,value:i};let c=n*e;const u=i+c,l=void 0===o?u:o(u);return l!==u&&(c=l-i),{next:t=>{const e=-c*Math.exp(-t/r);return a.done=!(e>s||e<-s),a.value=a.done?l:l+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:s="loop",repeatDelay:o=0,keyframes:i,autoplay:a=!0,onPlay:c,onStop:u,onComplete:l,onRepeat:h,onUpdate:p,type:d="keyframes",...f}){const m=n;let v,g,y=0,b=t,w=!1,x=!0;const V=G[i.length>2?"keyframes":d]||W,A=i[0],P=i[i.length-1];let C={done:!1,value:A};const{needsInterpolation:S}=V;S&&S(A,P)&&(g=O([0,100],[A,P],{clamp:!1}),i=[0,100]);const T=V({...f,duration:t,keyframes:i});function k(){y++,"reverse"===s?(x=y%2==0,n=function(t,e=0,n=0,r=!0){return r?Q(e+-t,e,n):e-(t-e)+n}(n,b,o,x)):(n=Q(n,b,o),"mirror"===s&&T.flipTarget()),w=!1,h&&h()}function M(t){x||(t=-t),n+=t,w||(C=T.next(Math.max(0,n)),g&&(C.value=g(C.value)),w=x?C.done:n<=0),p&&p(C.value),w&&(0===y&&(b=void 0!==b?b:n),y<r?function(t,e,n,r){return r?t>=e+n:t<=-n}(n,b,o,x)&&k():(v&&v.stop(),l&&l()))}return a&&(c&&c(),v=e(M),v.start()),{stop:()=>{u&&u(),v&&v.stop()},set currentTime(t){n=m,M(t)},sample:e=>{n=m;const r=t&&"number"==typeof t?Math.max(.5*t,50):50;let s=0;for(M(0);s<=e;){const t=e-s;M(Math.min(t,r)),s+=r}return C}}}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 st(t){if(t)return Array.isArray(t)?nt(t):rt[t]}const ot={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},it={},at={};for(const t in ot)at[t]=()=>(void 0===it[t]&&(it[t]=ot[t]()),it[t]);const ct=new Set(["opacity"]);function ut(t,e,{onUpdate:n,onComplete:r,...s}){if(!(at.waapi()&&ct.has(e)&&!s.repeatDelay&&"mirror"!==s.repeatType&&0!==s.damping))return!1;let{keyframes:o,duration:a=300,elapsed:c=0,ease:u}=s;if("spring"===s.type||!(!(l=s.ease)||Array.isArray(l)||"string"==typeof l&&rt[l])){if(s.repeat===1/0)return;const t=et({...s,elapsed:0});let e={done:!1,value:o[0]};const n=[];let r=0;for(;!e.done&&r<2e4;)e=t.sample(r),n.push(e.value),r+=10;o=n,a=r-10,u="linear"}var l;const h=function(t,e,n,{delay:r=0,duration:s,repeat:o=0,repeatType:i="loop",ease:a,times:c}={}){return t.animate({[e]:n,offset:c},{delay:r,duration:s,easing:st(a),fill:"both",iterations:o+1,direction:"reverse"===i?"alternate":"normal"})}(t.owner.current,e,o,{...s,delay:-c,duration:a,ease:u});return h.onfinish=()=>{t.set(function(t,{repeat:e,repeatType:n="loop"}){return t[e&&"loop"!==n&&e%2==1?0:t.length-1]}(o,s)),i.Z_.update((()=>h.cancel())),r&&r()},{get currentTime(){return h.currentTime||0},set currentTime(t){h.currentTime=t},stop:()=>{const{currentTime:e}=h;if(e){const n=et({...s,autoplay:!1});t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}i.Z_.update((()=>h.cancel()))}}}var lt=n(2866);function ht({keyframes:t,elapsed:e,onUpdate:n,onComplete:r}){const s=()=>{n&&n(t[t.length-1]),r&&r()};return e?{stop:(0,lt.g)(s,-e)}:s()}var pt=n(5951);const dt=()=>({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:dt,y:dt,z:dt,rotate:dt,rotateX:dt,rotateY:dt,rotateZ:dt,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])},bt=(t,e)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!P.P.test(e)||e.startsWith("url(")));var wt=n(6914),xt=n(7101);const Vt=(t,e,n,i={})=>a=>{const c=(0,xt.ev)(i,t)||{},u=c.delay||i.delay||0;let{elapsed:l=0}=i;l-=(0,s.w)(u);const h=function(t,e,n,r){const s=bt(e,n);let o=void 0!==r.from?r.from:t.get();return"none"===o&&s&&"string"==typeof n?o=(0,wt.T)(e,n):(0,xt.Fr)(o)&&"string"==typeof n?o=(0,xt.GZ)(n):!Array.isArray(n)&&(0,xt.Fr)(n)&&"string"==typeof o&&(n=(0,xt.GZ)(o)),Array.isArray(n)?(null===n[0]&&(n[0]=o),n):[o,n]}(e,t,n,c),p=h[0],d=h[h.length-1],f=bt(t,p),m=bt(t,d);(0,r.K)(f===m,`You are trying to animate ${t} from "${p}" to "${d}". ${p} is not an animatable value - to enable this animation set ${p} to a value animatable to ${d} via the \`style\` property.`);let v={keyframes:h,velocity:e.getVelocity(),...c,elapsed:l,onUpdate:t=>{e.set(t),c.onUpdate&&c.onUpdate(t)},onComplete:()=>{a(),c.onComplete&&c.onComplete()}};if(!f||!m||o||!1===c.type)return ht(v);if("inertia"===c.type)return function({keyframes:t,velocity:e=0,min:n,max:r,power:s=.8,timeConstant:o=750,bounceStiffness:i=500,bounceDamping:a=10,restDelta:c=1,modifyTarget:u,driver:l,onUpdate:h,onComplete:p,onStop:d}){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){m&&m.stop(),m=et({keyframes:[0,1],velocity:0,...t,driver:l,onUpdate:e=>{h&&h(e),t.onUpdate&&t.onUpdate(e)},onComplete:p,onStop:d})}function b(t){y({type:"spring",stiffness:i,damping:a,restDelta:c,...t})}if(v(f))b({velocity:e,keyframes:[f,g(f)]});else{let t=s*e+f;void 0!==u&&(t=u(t));const r=g(t),i=r===n?-1:1;let a,l;const h=t=>{a=l,l=t,e=(0,H.R)(t-a,pt.w.delta),(1===i&&t>r||-1===i&&t<r)&&b({keyframes:[t,r],velocity:e})};y({type:"decay",keyframes:[f,0],velocity:e,timeConstant:o,power:s,restDelta:c,modifyTarget:u,onUpdate:v(t)?h:void 0})}return{stop:()=>m&&m.stop()}}(v);if((0,xt.rw)(c)||(v={...v,...yt(t,v)}),v.duration&&(v.duration=(0,s.w)(v.duration)),v.repeatDelay&&(v.repeatDelay=(0,s.w)(v.repeatDelay)),e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const n=ut(e,t,v);if(n)return n}return et(v)}},2819:(t,e,n)=>{n.d(e,{C:()=>r});const r=t=>Array.isArray(t)},7101:(t,e,n)=>{n.d(e,{Fr:()=>o,GZ:()=>i,ev:()=>a,rw:()=>s});var r=n(6914);function s({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:o,repeatType:i,repeatDelay:a,from:c,elapsed:u,...l}){return!!Object.keys(l).length}function o(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}},7110:(t,e,n)=>{n.d(e,{Bn:()=>i,X7:()=>a,Z7:()=>o});var r=n(5222),s=n(9273);const o=t=>1-Math.sin(Math.acos(t)),i=(0,s.M)(o),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)},6949:(t,e,n)=>{function r(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}n.d(e,{E:()=>r})},6477:(t,e,n)=>{n.d(e,{a:()=>o});var r=n(6949),s=n(409);function o(t,e,n,o){return(0,r.E)(t,e,(0,s.s)(n),o)}},409:(t,e,n)=>{n.d(e,{Q:()=>s,s:()=>o});var r=n(2426);function s(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const o=t=>e=>(0,r.D)(e)&&t(e,s(e))},2426:(t,e,n)=>{n.d(e,{D:()=>r});const r=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!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:()=>d,Z_:()=>p});const r=1/60*1e3,s="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),o="undefined"!=typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout((()=>t(s())),r);var i=n(5951);let a=!0,c=!1,u=!1;const l=["read","update","preRender","render","postRender"],h=l.reduce(((t,e)=>(t[e]=function(t){let e=[],n=[],r=0,s=!1,o=!1;const i=new WeakSet,a={schedule:(t,o=!1,a=!1)=>{const c=a&&s,u=c?e:n;return o&&i.add(t),-1===u.indexOf(t)&&(u.push(t),c&&s&&(r=e.length)),t},cancel:t=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1),i.delete(t)},process:c=>{if(s)o=!0;else{if(s=!0,[e,n]=[n,e],n.length=0,r=e.length,r)for(let n=0;n<r;n++){const r=e[n];r(c),i.has(r)&&(a.schedule(r),t())}s=!1,o&&(o=!1,a.process(c))}}};return a}((()=>c=!0)),t)),{}),p=l.reduce(((t,e)=>{const n=h[e];return t[e]=(t,e=!1,r=!1)=>(c||v(),n.schedule(t,e,r)),t}),{}),d=l.reduce(((t,e)=>(t[e]=h[e].cancel,t)),{}),f=(l.reduce(((t,e)=>(t[e]=()=>h[e].process(i.w),t)),{}),t=>h[t].process(i.w)),m=t=>{c=!1,i.w.delta=a?r:Math.max(Math.min(t-i.w.timestamp,40),1),i.w.timestamp=t,u=!0,l.forEach(f),u=!1,c&&(a=!1,o(m))},v=()=>{c=!0,a=!0,u||o(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 s=r("dragHorizontal"),o=r("dragVertical");function i(){const t=function(t){let e=!1;if("y"===t)e=o();else if("x"===t)e=s();else{const t=s(),n=o();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}(!0);return!t||(t(),!1)}},3609:(t,e,n)=>{n.d(e,{L:()=>r});class r{constructor(t){this.isMounted=!1,this.node=t}update(){}}},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 s(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:()=>s,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:()=>s});var r=n(483);function s(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 s(t){return"string"==typeof t&&t.startsWith("var(--")}const o=/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,c]=function(t){const e=o.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():s(c)?i(c,e,n+1):c}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(!s(e))return;const n=i(e,r);n&&t.set(n)}));for(const t in e){const o=e[t];if(!s(o))continue;const a=i(o,r);a&&(e[t]=a,n&&void 0===n[t]&&(n[t]=o))}return{target:e,transitionEnd:n}}},6914:(t,e,n)=>{n.d(e,{T:()=>i});var r=n(26),s=n(8673),o=n(7557);function i(t,e){let n=(0,o.A)(t);return n!==s.h&&(n=r.P),n.getAnimatableNone?n.getAnimatableNone(e):void 0}},7557:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(2890),s=n(8673);const o={...n(4923).j,color:r.$,backgroundColor:r.$,outlineColor:r.$,fill:r.$,stroke:r.$,borderColor:r.$,borderTopColor:r.$,borderRightColor:r.$,borderBottomColor:r.$,borderLeftColor:r.$,filter:s.h,WebkitFilter:s.h},i=t=>o[t]},4923:(t,e,n)=>{n.d(e,{j:()=>i});var r=n(8366),s=n(5713),o=n(6442);const i={borderWidth:s.px,borderTopWidth:s.px,borderRightWidth:s.px,borderBottomWidth:s.px,borderLeftWidth:s.px,borderRadius:s.px,radius:s.px,borderTopLeftRadius:s.px,borderTopRightRadius:s.px,borderBottomRightRadius:s.px,borderBottomLeftRadius:s.px,width:s.px,maxWidth:s.px,height:s.px,maxHeight:s.px,size:s.px,top:s.px,right:s.px,bottom:s.px,left:s.px,padding:s.px,paddingTop:s.px,paddingRight:s.px,paddingBottom:s.px,paddingLeft:s.px,margin:s.px,marginTop:s.px,marginRight:s.px,marginBottom:s.px,marginLeft:s.px,rotate:s.RW,rotateX:s.RW,rotateY:s.RW,rotateZ:s.RW,scale:r.bA,scaleX:r.bA,scaleY:r.bA,scaleZ:r.bA,skew:s.RW,skewX:s.RW,skewY:s.RW,distance:s.px,translateX:s.px,translateY:s.px,translateZ:s.px,x:s.px,y:s.px,z:s.px,perspective:s.px,transformPerspective:s.px,opacity:r.Fq,originX:s.$C,originY:s.$C,originZ:s.px,zIndex:o.e,fillOpacity:r.Fq,strokeOpacity:r.Fq,numOctaves:o.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 s(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}n.d(e,{cl:()=>s,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:()=>s});var r=n(8313);function s(t,e){const n=performance.now(),s=({timestamp:o})=>{const i=o-n;i>=e&&(r.qY.read(s),t(i-e))};return r.Z_.read(s,!0),()=>r.qY.read(s)}},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:()=>s});const r=(t,e)=>n=>e(t(n)),s=(...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:()=>s});var r=n(2819);const s=t=>(0,r.C)(t)?t[t.length-1]||0:t},1065:(t,e,n)=>{n.d(e,{L:()=>s});var r=n(1180);class s{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 s=0;s<r;s++){const r=this.subscriptions[s];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},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:()=>c});var r=n(5951),s=n(8313),o=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:o}=r.w;this.lastUpdated!==o&&(this.timeDelta=n,this.lastUpdated=o,s.Z_.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>s.Z_.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=e.owner}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new o.L);const n=this.events[t].add(e);return"change"===t?()=>{n(),s.Z_.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?(0,i.R)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.animation=t(e)||null,this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=null}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function c(t,e){return new a(t,e)}},4775:(t,e,n)=>{n.d(e,{$:()=>s});var r=n(6077);const s={test:(0,n(8810).i)("#"),parse:function(t){let e="",n="",r="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,r+=r,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}},transform:r.m.transform}},5193:(t,e,n)=>{n.d(e,{J:()=>a});var r=n(8366),s=n(5713),o=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)+", "+s.aQ.transform((0,o.Nw)(e))+", "+s.aQ.transform((0,o.Nw)(n))+", "+(0,o.Nw)(r.Fq.transform(i))+")"}},2890:(t,e,n)=>{n.d(e,{$:()=>a});var r=n(6933),s=n(4775),o=n(5193),i=n(6077);const a={test:t=>i.m.test(t)||s.$.test(t)||o.J.test(t),parse:t=>i.m.test(t)?i.m.parse(t):o.J.test(t)?o.J.parse(t):s.$.parse(t),transform:t=>(0,r.HD)(t)?t:t.hasOwnProperty("red")?i.m.transform(t):o.J.transform(t)}},6077:(t,e,n)=>{n.d(e,{m:()=>c});var r=n(9043),s=n(8366),o=n(6933),i=n(8810);const a={...s.Rx,transform:t=>Math.round((t=>(0,r.u)(0,255,t))(t))},c={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,o.Nw)(s.Fq.transform(r))+")"}},8810:(t,e,n)=>{n.d(e,{d:()=>o,i:()=>s});var r=n(6933);const s=(t,e)=>n=>Boolean((0,r.HD)(n)&&r.mj.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),o=(t,e,n)=>s=>{if(!(0,r.HD)(s))return s;const[o,i,a,c]=s.match(r.KP);return{[t]:parseFloat(o),[e]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==c?parseFloat(c):1}}},8673:(t,e,n)=>{n.d(e,{h:()=>c});var r=n(26),s=n(6933);const o=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(s.KP)||[];if(!r)return t;const i=n.replace(r,"");let a=o.has(e)?1:0;return r!==n&&(a*=100),e+"("+a+i+")"}const a=/([a-z-]*)\(.*?\)/g,c={...r.P,getAnimatableNone:t=>{const e=t.match(a);return e?e.map(i).join(" "):t}}},26:(t,e,n)=>{n.d(e,{P:()=>p,V:()=>c});var r=n(2890),s=n(8366),o=n(6933);const i="${c}",a="${n}";function c(t){"number"==typeof t&&(t=`${t}`);const e=[];let n=0,c=0;const u=t.match(o.dA);u&&(n=u.length,t=t.replace(o.dA,i),e.push(...u.map(r.$.parse)));const l=t.match(o.KP);return l&&(c=l.length,t=t.replace(o.KP,a),e.push(...l.map(s.Rx.parse))),{values:e,numColors:n,numNumbers:c,tokenised:t}}function u(t){return c(t).values}function l(t){const{values:e,numColors:n,tokenised:s}=c(t),u=e.length;return t=>{let e=s;for(let s=0;s<u;s++)e=e.replace(s<n?i:a,s<n?r.$.transform(t[s]):(0,o.Nw)(t[s]));return e}}const h=t=>"number"==typeof t?0:t;const p={test:function(t){var e,n;return isNaN(t)&&(0,o.HD)(t)&&((null===(e=t.match(o.KP))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(o.dA))||void 0===n?void 0:n.length)||0)>0},parse:u,createTransformer:l,getAnimatableNone:function(t){const e=u(t);return l(t)(e.map(h))}}},8366:(t,e,n)=>{n.d(e,{Fq:()=>o,Rx:()=>s,bA:()=>i});var r=n(9043);const s={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},o={...s,transform:t=>(0,r.u)(0,1,t)},i={...s,default:1}},5713:(t,e,n)=>{n.d(e,{$C:()=>l,RW:()=>o,aQ:()=>i,px:()=>a,vh:()=>c,vw:()=>u});var r=n(6933);const s=t=>({test:e=>(0,r.HD)(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),o=s("deg"),i=s("%"),a=s("px"),c=s("vh"),u=s("vw"),l={...i,parse:t=>i.parse(t)/100,transform:t=>i.transform(100*t)}},6933:(t,e,n)=>{n.d(e,{HD:()=>a,KP:()=>s,Nw:()=>r,dA:()=>o,mj:()=>i});const r=t=>Math.round(1e5*t)/1e5,s=/(-)?([\d]*\.?[\d])+/g,o=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,i=/^(#[0-9a-f]{3,8}|(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=>Boolean(t&&t.getVelocity)}},e={};function n(r){var s=e[r];if(void 0!==s)return s.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}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),(()=>{function t(t){return"object"==typeof t&&"function"==typeof t.start}var e=n(2819);function r(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 s=t=>/^0[^.\s]+$/.test(t);var o=n(7048),i=n(1421),a=n(26),c=n(6914),u=n(2890),l=n(8366),h=n(5713);const p=t=>e=>e.test(t),d=[l.Rx,h.px,h.aQ,h.RW,h.vw,h.vh,{test:t=>"auto"===t,parse:t=>t}],f=t=>d.find(p(t)),m=[...d,u.$,a.P],v=t=>m.find(p(t));function g(t,e,n,r={},s={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,s)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,s)),e}function y(t,e,n){const r=t.getProps();return g(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 b(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,i.B)(n))}function w(t,e){const n=y(t,e);let{transitionEnd:r={},transition:s={},...i}=n?t.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const e in i){b(t,e,(0,o.Y)(i[e]))}}function x(t,e){if(!e)return;return(e[t]||e.default||e).from}const V=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],A=new Set(V);var P=n(7846);function C(t){return Boolean((0,P.i)(t)&&t.add)}const S=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),T="data-"+S("framerAppearId");var k=n(6405),M=n(8313);function E(t,e,n={}){const r=y(t,e,n.custom);let{transition:s=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const o=r?()=>F(t,r,n):()=>Promise.resolve(),i=t.variantChildren&&t.variantChildren.size?(r=0)=>{const{delayChildren:o=0,staggerChildren:i,staggerDirection:a}=s;return function(t,e,n=0,r=0,s=1,o){const i=[],a=(t.variantChildren.size-1)*r,c=1===s?(t=0)=>t*r:(t=0)=>a-t*r;return Array.from(t.variantChildren).sort(O).forEach(((t,r)=>{t.notify("AnimationStart",e),i.push(E(t,e,{...o,delay:n+c(r)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(i)}(t,e,o+r,i,a,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[t,e]="beforeChildren"===a?[o,i]:[i,o];return t().then(e)}return Promise.all([o(),i(n.delay)])}function F(t,e,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:i,...a}=t.makeTargetAnimatable(e);const c=t.getValue("willChange");r&&(o=r);const u=[],l=s&&t.animationState&&t.animationState.getState()[s];for(const e in a){const r=t.getValue(e),s=a[e];if(!r||void 0===s||l&&$(l,e))continue;const i={delay:n,elapsed:0,...o};if(window.HandoffAppearAnimations&&!r.hasAnimated){const n=t.getProps()[T];n&&(i.elapsed=window.HandoffAppearAnimations(n,e,r,M.Z_))}let h=r.start((0,k.Z)(e,r,s,t.shouldReduceMotion&&A.has(e)?{type:!1}:i));C(c)&&(c.add(e),h=h.then((()=>c.remove(e)))),u.push(h)}return Promise.all(u).then((()=>{i&&w(t,i)}))}function O(t,e){return t.sortNodePosition(e)}function $({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,r}function R(t){return"string"==typeof t||Array.isArray(t)}var I=n(7921);const L=[I.r.Animate,I.r.InView,I.r.Focus,I.r.Hover,I.r.Tap,I.r.Drag,I.r.Exit],B=[...L].reverse(),D=L.length;function N(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 s=e.map((e=>E(t,e,n)));r=Promise.all(s)}else if("string"==typeof e)r=E(t,e,n);else{const s="function"==typeof e?y(t,e,n.custom):e;r=F(t,s,n)}return r.then((()=>t.notify("AnimationComplete",e)))}(t,e,n))))}function j(n){let s=N(n);const o={[I.r.Animate]:W(!0),[I.r.InView]:W(),[I.r.Hover]:W(),[I.r.Tap]:W(),[I.r.Drag]:W(),[I.r.Focus]:W(),[I.r.Exit]:W()};let i=!0;const a=(t,e)=>{const r=y(n,e);if(r){const{transition:e,transitionEnd:n,...s}=r;t={...t,...s,...n}}return t};function c(c,u){const l=n.getProps(),h=n.getVariantContext(!0)||{},p=[],d=new Set;let f={},m=1/0;for(let s=0;s<D;s++){const v=B[s],g=o[v],y=void 0!==l[v]?l[v]:h[v],b=R(y),w=v===u?g.isActive:null;!1===w&&(m=s);let x=y===h[v]&&y!==l[v]&&b;if(x&&i&&n.manuallyAnimateOnMount&&(x=!1),g.protectedKeys={...f},!g.isActive&&null===w||!y&&!g.prevProp||t(y)||"boolean"==typeof y)continue;const V=Z(g.prevProp,y);let A=V||v===u&&g.isActive&&!x&&b||s>m&&b;const P=Array.isArray(y)?y:[y];let C=P.reduce(a,{});!1===w&&(C={});const{prevResolvedValues:S={}}=g,T={...S,...C},k=t=>{A=!0,d.delete(t),g.needsAnimating[t]=!0};for(const t in T){const n=C[t],s=S[t];f.hasOwnProperty(t)||(n!==s?(0,e.C)(n)&&(0,e.C)(s)?!r(n,s)||V?k(t):g.protectedKeys[t]=!0:void 0!==n?k(t):d.add(t):void 0!==n&&d.has(t)?k(t):g.protectedKeys[t]=!0)}g.prevProp=y,g.prevResolvedValues=C,g.isActive&&(f={...f,...C}),i&&n.blockInitialAnimation&&(A=!1),A&&!x&&p.push(...P.map((t=>({animation:t,options:{type:v,...c}}))))}if(d.size){const t={};d.forEach((e=>{const r=n.getBaseTarget(e);void 0!==r&&(t[e]=r)})),p.push({animation:t})}let v=Boolean(p.length);return i&&!1===l.initial&&!n.manuallyAnimateOnMount&&(v=!1),i=!1,v?s(p):Promise.resolve()}return{animateChanges:c,setActive:function(t,e,r){if(o[t].isActive===e)return Promise.resolve();n.variantChildren&&n.variantChildren.forEach((n=>{n.animationState&&n.animationState.setActive(t,e)})),o[t].isActive=e;const s=c(r,t);for(const t in o)o[t].protectedKeys={};return s},setAnimateFunction:function(t){s=t(n)},getState:()=>o}}function Z(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!r(e,t)}function W(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var z=n(3609);class Y extends z.L{constructor(t){super(t),t.animationState||(t.animationState=j(t))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),t(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}}let q=0;class H extends z.L{constructor(){super(...arguments),this.id=q++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const s=this.node.animationState.setActive(I.r.Exit,!t,{custom:null!=n?n:this.node.getProps().custom});e&&!t&&s.then((()=>e(this.id)))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const U={animation:{Feature:Y},exit:{Feature:H}};var K=n(6477),X=n(9820),_=n(5856);function J(t,e){const n="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End");return(0,K.a)(t.current,n,((n,s)=>{if("touch"===n.type||(0,_.gD)())return;const o=t.getProps();t.animationState&&o.whileHover&&t.animationState.setActive(I.r.Hover,e),o[r]&&o[r](n,s)}),{passive:!t.getProps()[r]})}class G extends z.L{mount(){this.unmount=(0,X.z)(J(this.node,!0),J(this.node,!1))}unmount(){}}var Q=n(6949);class tt extends z.L{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive(I.r.Focus,!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive(I.r.Focus,!1),this.isActive=!1)}mount(){this.unmount=(0,X.z)((0,Q.E)(this.node.current,"focus",(()=>this.onFocus())),(0,Q.E)(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}var et=n(409);const nt=(t,e)=>!!e&&(t===e||nt(t,e.parentElement));var rt=n(2634);function st(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,(0,et.Q)(n))}class ot extends z.L{constructor(){super(...arguments),this.removeStartListeners=rt.Z,this.removeEndListeners=rt.Z,this.removeAccessibleListeners=rt.Z,this.startPointerPress=(t,e)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=(0,K.a)(window,"pointerup",((t,e)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();nt(this.node.current,t.target)?n&&n(t,e):r&&r(t,e)}),{passive:!(n.onTap||n.onPointerUp)}),s=(0,K.a)(window,"pointercancel",((t,e)=>this.cancelPress(t,e)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=(0,X.z)(r,s),this.startPress(t,e)},this.startAccessiblePress=()=>{const t=(0,Q.E)(this.node.current,"keydown",(t=>{if("Enter"!==t.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=(0,Q.E)(this.node.current,"keyup",(t=>{"Enter"===t.key&&this.checkPressEnd()&&st("up",this.node.getProps().onTap)})),st("down",((t,e)=>{this.startPress(t,e)}))})),e=(0,Q.E)(this.node.current,"blur",(()=>{this.isPressing&&st("cancel",((t,e)=>this.cancelPress(t,e)))}));this.removeAccessibleListeners=(0,X.z)(t,e)}}startPress(t,e){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive(I.r.Tap,!0),n&&n(t,e)}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive(I.r.Tap,!1),!(0,_.gD)()}cancelPress(t,e){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&n(t,e)}mount(){const t=this.node.getProps(),e=(0,K.a)(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=(0,Q.E)(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=(0,X.z)(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const it=new WeakMap,at=new WeakMap,ct=t=>{const e=it.get(t.target);e&&e(t)},ut=t=>{t.forEach(ct)};function lt(t,e,n){const r=function({root:t,...e}){const n=t||document;at.has(n)||at.set(n,{});const r=at.get(n),s=JSON.stringify(e);return r[s]||(r[s]=new IntersectionObserver(ut,{root:t,...e})),r[s]}(e);return it.set(t,n),r.observe(t),()=>{it.delete(t),r.unobserve(t)}}const ht={some:0,all:1};class pt extends z.L{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}viewportFallback(){requestAnimationFrame((()=>{this.hasEnteredView=!0;const{onViewportEnter:t}=this.node.getProps();t&&t(null),this.node.animationState&&this.node.animationState.setActive(I.r.InView,!0)}))}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:r="some",once:s,fallback:o=!0}=t;if("undefined"==typeof IntersectionObserver)return void(o&&this.viewportFallback());const i={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:ht[r]};return lt(this.node.current,i,(t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,s&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(I.r.InView,e);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=e?n:r;o&&o(t)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}const dt={inView:{Feature:pt},tap:{Feature:ot},focus:{Feature:tt},hover:{Feature:G}},ft={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},mt=(t,e)=>V.indexOf(t)-V.indexOf(e);function vt(t){return t.startsWith("--")}const gt=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var yt=n(4923);function bt(t,e,n,r){const{style:s,vars:o,transform:i,transformKeys:a,transformOrigin:c}=t;a.length=0;let u=!1,l=!1,h=!0;for(const t in e){const n=e[t];if(vt(t)){o[t]=n;continue}const r=yt.j[t],u=gt(n,r);if(A.has(t)){if(!0,i[t]=u,a.push(t),!h)continue;n!==(r.default||0)&&!1}else t.startsWith("origin")?(!0,c[t]=u):s[t]=u}if(e.transform||(u||r?s.transform=function({transform:t,transformKeys:e},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},s,o){let i="";e.sort(mt);for(const n of e)`${ft[n]||n}(${t[n]}) `;return n&&!t.z&&"translateZ(0)",i.trim(),o?o(t,s?"":i):r&&s&&"none",i}(t,n,h,r):s.transform&&(s.transform="none")),l){const{originX:t="50%",originY:e="50%",originZ:n=0}=c;s.transformOrigin=`${t} ${e} ${n}`}}var wt=n(798);function xt(t,{layout:e,layoutId:n}){return A.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!wt.P[t]||"opacity"===t)}function Vt(t,e){const{style:n}=t,r={};for(const s in n)((0,P.i)(n[s])||e.style&&(0,P.i)(e.style[s])||xt(s,t))&&(r[s]=n[s]);return r}function At(t,{style:e,vars:n},r,s){Object.assign(t.style,e,s&&s.getProjectionStyles(r));for(const e in n)t.style.setProperty(e,n[e])}var Pt=n(7557),Ct=n(8834),St=n(6978),Tt=n(9340);const kt="undefined"!=typeof document,Mt=new Set(["width","height","top","left","right","bottom","x","y"]),Et=t=>Mt.has(t),Ft=t=>t===l.Rx||t===h.px;var Ot;!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(Ot||(Ot={}));const $t=(t,e)=>parseFloat(t.split(", ")[e]),Rt=(t,e)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const s=r.match(/^matrix3d\((.+)\)$/);if(s)return $t(s[1],e);{const e=r.match(/^matrix\((.+)\)$/);return e?$t(e[1],t):0}},It=new Set(["x","y","z"]),Lt=V.filter((t=>!It.has(t)));const Bt={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:Rt(4,13),y:Rt(5,14)},Dt=(t,n,r={},s={})=>{n={...n},s={...s};const o=Object.keys(n).filter(Et);let i=[],a=!1;const c=[];if(o.forEach((o=>{const u=t.getValue(o);if(!t.hasValue(o))return;let l=r[o],p=f(l);const d=n[o];let m;if((0,e.C)(d)){const t=d.length,e=null===d[0]?1:0;l=d[e],p=f(l);for(let n=e;n<t;n++)m?(0,Tt.k)(f(d[n])===m,"All keyframes must be of the same type"):(m=f(d[n]),(0,Tt.k)(m===p||Ft(p)&&Ft(m),"Keyframes must be of the same dimension as the current value"))}else m=f(d);if(p!==m)if(Ft(p)&&Ft(m)){const t=u.get();"string"==typeof t&&u.set(parseFloat(t)),"string"==typeof d?n[o]=parseFloat(d):Array.isArray(d)&&m===h.px&&(n[o]=d.map(parseFloat))}else(null==p?void 0:p.transform)&&(null==m?void 0:m.transform)&&(0===l||0===d)?0===l?u.set(m.transform(l)):n[o]=p.transform(d):(a||(i=function(t){const e=[];return Lt.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),c.push(o),s[o]=void 0!==s[o]?s[o]:n[o],u.jump(d))})),c.length){const e=c.indexOf("height")>=0?window.pageYOffset:null,r=((t,e,n)=>{const r=e.measureViewportBox(),s=e.current,o=getComputedStyle(s),{display:i}=o,a={};"none"===i&&e.setStaticValue("display",t.display||"block"),n.forEach((t=>{a[t]=Bt[t](r,o)})),e.render();const c=e.measureViewportBox();return n.forEach((n=>{const r=e.getValue(n);r&&r.jump(a[n]),t[n]=Bt[n](c,o)})),t})(n,t,c);return i.length&&i.forEach((([e,n])=>{t.getValue(e).set(n)})),t.render(),kt&&null!==e&&window.scrollTo({top:e}),{target:r,transitionEnd:s}}return{target:n,transitionEnd:s}};function Nt(t,e,n,r){return(t=>Object.keys(t).some(Et))(e)?Dt(t,e,n,r):{target:e,transitionEnd:r}}var jt=n(1397),Zt=n(3491);const Wt={current:null},zt={current:!1};var Yt=n(1065);const qt=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function Ht(e){return t(e.animate)||qt.some((t=>R(e[t])))}const Ut={animation:["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Kt={};for(const t in Ut)Kt[t]={isEnabled:e=>Ut[t].some((t=>!!e[t]))};const Xt=Object.keys(Kt),_t=Xt.length,Jt=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];const Gt=["initial",...L],Qt=Gt.length;class te extends class{constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:r,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>M.Z_.render(this.render,!1,!0);const{latestValues:i,renderState:a}=s;this.latestValues=i,this.baseTarget={...i},this.initialValues=e.initial?{...i}:{},this.renderState=a,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.isControllingVariants=Ht(e),this.isVariantNode=function(t){return Boolean(Ht(t)||t.variants)}(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(e,{});for(const t in u){const e=u[t];void 0!==i[t]&&(0,P.i)(e)&&(e.set(i[t],!1),C(c)&&c.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((t,e)=>this.bindToMotionValue(e,t))),zt.current||function(){if(zt.current=!0,kt)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Wt.current=t.matches;t.addListener(e),e()}else Wt.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Wt.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),M.qY.update(this.notifyUpdate),M.qY.render(this.render),this.valueSubscriptions.forEach((t=>t())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,e){const n=A.has(t),r=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&M.Z_.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),s=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,(()=>{r(),s()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},n,r,s,o){let i,a;for(let t=0;t<_t;t++){const n=Xt[t],{isEnabled:r,Feature:s,ProjectionNode:o,MeasureLayout:i}=Kt[n];o&&o,r(e)&&(!this.features[n]&&s&&(this.features[n]=new s(this)),i&&i)}if(!this.projection&&i){this.projection=new i(s,this.latestValues,this.parent&&this.parent.projection);const{layoutId:t,layout:n,drag:r,dragConstraints:a,layoutScroll:c,layoutRoot:u}=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:o,layoutScroll:c,layoutRoot:u})}return a}updateFeatures(){for(const t in this.features){const e=this.features[t];e.isMounted?e.update(this.props,this.prevProps):(e.mount(),e.isMounted=!0)}}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)}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<Jt.length;e++){const n=Jt[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 s in e){const o=e[s],a=n[s];if((0,P.i)(o))t.addValue(s,o),C(r)&&r.add(s);else if((0,P.i)(a))t.addValue(s,(0,i.B)(o,{owner:t})),C(r)&&r.remove(s);else if(a!==o)if(t.hasValue(s)){const e=t.getValue(s);!e.hasAnimated&&e.set(o)}else{const e=t.getStaticValue(s);t.addValue(s,(0,i.B)(void 0!==e?e:o,{owner:t}))}}for(const r in n)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}const e={};for(let t=0;t<Qt;t++){const n=Gt[t],r=this.props[n];(R(r)||!1===r)&&(e[n]=r)}return e}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.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){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&((0,i.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===g(this.props,n)||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==r)return r;const s=this.getBaseTargetFromProps(this.props,t);return void 0===s||(0,P.i)(s)?void 0!==this.initialValues[t]&&void 0===r?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new Yt.L),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...n},{transformValues:r},o){let u=function(t,e,n){const r={};for(const s in t){const t=x(s,e);if(void 0!==t)r[s]=t;else{const t=n.getValue(s);t&&(r[s]=t.get())}}return r}(n,t||{},this);if(r&&(e&&r(e),n&&r(n),u&&r(u)),o){!function(t,e,n){var r,o;const u=Object.keys(e).filter((e=>!t.hasValue(e))),l=u.length;if(l)for(let h=0;h<l;h++){const l=u[h],p=e[l];let d=null;Array.isArray(p)&&p[0],null===d&&(null!==(null!==n[l]&&void 0!==r?r:t.readValue(l))&&void 0!==o?o:e[l]),null!=d&&("string"==typeof d&&(/^\-?\d*\.?\d+$/.test(d)||s(d))?parseFloat(d):!v(d)&&a.P.test(p)&&(0,c.T)(l,p),t.addValue(l,(0,i.B)(d,{owner:t})),void 0===n[l]&&(n[l]=d),null!==d&&t.setBaseTarget(l,d))}}(this,n,u);const t=((t,e,n,r)=>{const s=(0,St.mH)(t,e,r);return Nt(t,s.target,n,s.transitionEnd)})(this,n,u,e);t.transitionEnd,t.target}return{transition:t,transitionEnd:e,...n}}}class ee extends te{readValueFromInstance(t,e){if(A.has(e)){const t=(0,Pt.A)(e);return t&&t.default||0}{const r=(t,window.getComputedStyle(n)),s=(vt(e)?r.getPropertyValue(e):r[e])||0;return"string"==typeof s?s.trim():s}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,Ct.J)(t,e)}build(t,e,n,r){bt(t,e,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,e){return Vt(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;(0,P.i)(t)&&(this.childSubscription=t.on("change",(t=>{this.current&&(this.current.textContent=`${t}`)})))}renderInstance(t,e,n,r){At(t,e,n,r)}}function ne(t,e,n){return"string"==typeof t?t:h.px.transform(e+n*t)}const re={offset:"stroke-dashoffset",array:"stroke-dasharray"},se={offset:"strokeDashoffset",array:"strokeDasharray"};function oe(t,{attrX:e,attrY:n,originX:r,originY:s,pathLength:o,pathSpacing:i=1,pathOffset:a=0,...c},u,l,p){if(bt(t,c,u,p),l)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:d,style:f,dimensions:m}=t;d.transform&&(m&&(f.transform=d.transform),delete d.transform),m&&(void 0!==r||void 0!==s||f.transform)&&(f.transformOrigin=function(t,e,n){return`${ne(e,t.x,t.width)} ${ne(n,t.y,t.height)}`}(m,void 0!==r?r:.5,void 0!==s?s:.5)),void 0!==e&&(d.x=e),void 0!==n&&(d.y=n),void 0!==o&&function(t,e,n=1,r=0,s=!0){t.pathLength=1;const o=s?re:se;t[o.offset]=h.px.transform(-r);const i=h.px.transform(e),a=h.px.transform(n);t[o.array]=`${i} ${a}`}(d,o,i,a,!1)}const ie=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 ae extends te{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(A.has(e)){const t=(0,Pt.A)(e);return t&&t.default||0}return ie.has(e)?e:S(e),t.getAttribute(e)}measureInstanceViewportBox(){return(0,jt.dO)()}scrapeMotionValuesFromProps(t,e){return function(t,e){const n=Vt(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){oe(t,e,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,e,n,r){!function(t,e,n,r){At(t,e,void 0,r);for(const n in e.attrs)t.setAttribute(ie.has(n)?n:S(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 ce=["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:()=>s});var r=function(){},s=function(){}},6405:(t,e,n)=>{n.d(e,{Z:()=>Vt});var r=n(9340),s=n(1818);const o=!1;var i=n(8313),a=n(5222),c=n(9273);const u=t=>t*t,l=(0,c.M)(u),h=(0,a.o)(u);var p=n(2890),d=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 b=(t,e,n)=>{const r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},w=[v.$,g.m,y.J];function x(t){const e=(n=t,w.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 s=e.parse(t);return e===y.J&&(s=function({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,n/=100;let s=0,o=0,i=0;if(e/=100){const r=n<.5?n*(1+e):n+e-n*e,a=2*n-r;s=m(a,r,t+1/3),o=m(a,r,t),i=m(a,r,t-1/3)}else s=o=i=n;return{red:Math.round(255*s),green:Math.round(255*o),blue:Math.round(255*i),alpha:r}}(s)),s}const V=(t,e)=>{const n=x(t),r=x(e),s={...n};return t=>(s.red=b(n.red,r.red,t),s.green=b(n.green,r.green,t),s.blue=b(n.blue,r.blue,t),s.alpha=(0,f.C)(n.alpha,r.alpha,t),g.m.transform(s))};var A=n(9820),P=n(26);function C(t,e){return"number"==typeof t?n=>(0,f.C)(t,e,n):p.$.test(t)?V(t,e):k(t,e)}const S=(t,e)=>{const n=[...t],r=n.length,s=t.map(((t,n)=>C(t,e[n])));return t=>{for(let e=0;e<r;e++)n[e]=s[e](t);return n}},T=(t,e)=>{const n={...t,...e},r={};for(const s in n)void 0!==t[s]&&void 0!==e[s]&&(r[s]=C(t[s],e[s]));return t=>{for(const e in r)n[e]=r[e](t);return n}},k=(t,e)=>{const n=P.P.createTransformer(e),s=(0,P.V)(t),o=(0,P.V)(e);return s.numColors===o.numColors&&s.numNumbers>=o.numNumbers?(0,A.z)(S(s.values,o.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 M=n(918);const E=(t,e)=>n=>(0,f.C)(t,e,n);function F(t,e,n){const r=[],s=n||("number"==typeof(o=t[0])?E:"string"==typeof o?p.$.test(o)?V:k:Array.isArray(o)?S:"object"==typeof o?T:E);var o;const i=t.length-1;for(let n=0;n<i;n++){let o=s(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]:e;o=(0,A.z)(t,o)}r.push(o)}return r}function O(t,e,{clamp:n=!0,ease:s,mixer:o}={}){const i=t.length;(0,r.k)(i===e.length,"Both input and output ranges must be the same length"),(0,r.k)(!s||!Array.isArray(s)||s.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,s,o),c=a.length,u=e=>{let n=0;if(c>1)for(;n<t.length-2&&!(e<t[n+1]);n++);const r=(0,M.Y)(t[n],t[n+1],e);return a[n](r)};return n?e=>u((0,d.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 s=e=>function(t,e,n,r,s){let o,i,a=0;do{i=e+(n-e)/2,o=R(i,r,s)-t,o>0?n=i:e=i}while(Math.abs(o)>1e-7&&++a<12);return i}(e,0,1,t,n);return t=>0===t||1===t?t:R(s(t),e,r)}var L=n(7110);const B=I(.33,1.53,.69,.99),D=(0,c.M)(B),N=(0,a.o)(D),j={linear:$.Z,easeIn:u,easeInOut:h,easeOut:l,circIn:L.Z7,circInOut:L.X7,circOut:L.Bn,backIn:D,backInOut:N,backOut:B,anticipate:t=>(t*=2)<1?.5*D(t):.5*(2-Math.pow(2,-10*(t-1)))},Z=t=>{if(Array.isArray(t)){(0,r.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,s,o]=t;return I(e,n,s,o)}return"string"==typeof t?((0,r.k)(void 0!==j[t],`Invalid easing type '${t}'`),j[t]):t};function W({keyframes:t,ease:e=h,times:n,duration:r=300}){t=[...t];const s=(t=>Array.isArray(t)&&"number"!=typeof t[0])(e)?e.map(Z):Z(e),o={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(s)?s:(e=t,n=s,e.map((()=>n||h)).splice(0,e.length-1))});var e,n}let c=a();return{next:t=>(o.value=c(t),o.done=t>=r,o),flipTarget:()=>{t.reverse(),c=a()}}}const z=.001;function Y({duration:t=800,bounce:e=.25,velocity:n=0,mass:s=1}){let o,i;(0,r.K)(t<=1e4,"Spring duration must be 10 seconds or less");let a=1-e;a=(0,d.u)(.05,1,a),t=(0,d.u)(.01,10,t/1e3),a<1?(o=e=>{const r=e*a,s=r*t,o=r-n,i=q(e,a),c=Math.exp(-s);return z-o/i*c},i=e=>{const r=e*a*t,s=r*n+n,i=Math.pow(a,2)*Math.pow(e,2)*t,c=Math.exp(-r),u=q(Math.pow(e,2),a);return(-o(e)+z>0?-1:1)*((s-i)*c)/u}):(o=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,i=e=>Math.exp(-e*t)*(t*t*(n-e)));const c=function(t,e,n){let r=n;for(let n=1;n<12;n++)r-=t(r)/e(r);return r}(o,i,5/t);if(t*=1e3,isNaN(c))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(c,2)*s;return{stiffness:e,damping:2*a*Math.sqrt(s*e),duration:t}}}function q(t,e){return t*Math.sqrt(1-e*e)}var H=n(432);const U=["duration","bounce"],X=["stiffness","damping","mass"];function K(t,e){return e.some((e=>void 0!==t[e]))}function _({keyframes:t,restDelta:e,restSpeed:n,...r}){let s=t[0],o=t[t.length-1];const i={done:!1,value:s},{stiffness:a,damping:c,mass:u,velocity:l,duration:h,isResolvedFromDuration:p}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!K(t,X)&&K(t,U)){const n=Y(t);e={...e,...n,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}(r);let d=J,f=l?-l/1e3:0;const m=c/(2*Math.sqrt(a*u));function v(){const t=o-s,r=Math.sqrt(a/u)/1e3,i=Math.abs(t)<5;if(n||(n=i?.01:2),e||(e=i?.005:.5),m<1){const e=q(r,m);d=n=>{const s=Math.exp(-m*r*n);return o-s*((f+m*r*t)/e*Math.sin(e*n)+t*Math.cos(e*n))}}else if(1===m)d=e=>o-Math.exp(-r*e)*(t+(f+r*t)*e);else{const e=r*Math.sqrt(m*m-1);d=n=>{const s=Math.exp(-m*r*n),i=Math.min(e*n,300);return o-s*((f+m*r*t)*Math.sinh(i)+e*t*Math.cosh(i))/e}}}return v(),{next:t=>{const r=d(t);if(p)i.done=t>=h;else{let s=f;if(0!==t)if(m<1){const e=Math.max(0,t-5);s=(0,H.R)(r-d(e),t-e)}else s=0;const a=Math.abs(s)<=n,c=Math.abs(o-r)<=e;i.done=a&&c}return i.value=i.done?o:r,i},flipTarget:()=>{f=-f,[s,o]=[o,s],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:s=.5,modifyTarget:o}){const i=t[0],a={done:!1,value:i};let c=n*e;const u=i+c,l=void 0===o?u:o(u);return l!==u&&(c=l-i),{next:t=>{const e=-c*Math.exp(-t/r);return a.done=!(e>s||e<-s),a.value=a.done?l:l+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:s="loop",repeatDelay:o=0,keyframes:i,autoplay:a=!0,onPlay:c,onStop:u,onComplete:l,onRepeat:h,onUpdate:p,type:d="keyframes",...f}){const m=n;let v,g,y=0,b=t,w=!1,x=!0;const V=G[i.length>2?"keyframes":d]||W,A=i[0],P=i[i.length-1];let C={done:!1,value:A};const{needsInterpolation:S}=V;S&&S(A,P)&&(g=O([0,100],[A,P],{clamp:!1}),i=[0,100]);const T=V({...f,duration:t,keyframes:i});function k(){y++,"reverse"===s?(x=y%2==0,n=function(t,e=0,n=0,r=!0){return r?Q(e+-t,e,n):e-(t-e)+n}(n,b,o,x)):(n=Q(n,b,o),"mirror"===s&&T.flipTarget()),w=!1,h&&h()}function M(t){x||(t=-t),n+=t,w||(C=T.next(Math.max(0,n)),g&&(C.value=g(C.value)),w=x?C.done:n<=0),p&&p(C.value),w&&(0===y&&(b=void 0!==b?b:n),y<r?function(t,e,n,r){return r?t>=e+n:t<=-n}(n,b,o,x)&&k():(v&&v.stop(),l&&l()))}return a&&(c&&c(),v=e(M),v.start()),{stop:()=>{u&&u(),v&&v.stop()},set currentTime(t){n=m,M(t)},sample:e=>{n=m;const r=t&&"number"==typeof t?Math.max(.5*t,50):50;let s=0;for(M(0);s<=e;){const t=e-s;M(Math.min(t,r)),s+=r}return C}}}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 st(t){if(t)return Array.isArray(t)?nt(t):rt[t]}const ot={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},it={},at={};for(const t in ot)at[t]=()=>(void 0===it[t]&&(it[t]=ot[t]()),it[t]);const ct=new Set(["opacity"]);function ut(t,e,{onUpdate:n,onComplete:r,...s}){if(!(at.waapi()&&ct.has(e)&&!s.repeatDelay&&"mirror"!==s.repeatType&&0!==s.damping))return!1;let{keyframes:o,duration:a=300,elapsed:c=0,ease:u}=s;if("spring"===s.type||!(!(l=s.ease)||Array.isArray(l)||"string"==typeof l&&rt[l])){if(s.repeat===1/0)return;const t=et({...s,elapsed:0});let e={done:!1,value:o[0]};const n=[];let r=0;for(;!e.done&&r<2e4;)e=t.sample(r),n.push(e.value),r+=10;o=n,a=r-10,u="linear"}var l;const h=function(t,e,n,{delay:r=0,duration:s,repeat:o=0,repeatType:i="loop",ease:a,times:c}={}){return t.animate({[e]:n,offset:c},{delay:r,duration:s,easing:st(a),fill:"both",iterations:o+1,direction:"reverse"===i?"alternate":"normal"})}(t.owner.current,e,o,{...s,delay:-c,duration:a,ease:u});return h.onfinish=()=>{t.set(function(t,{repeat:e,repeatType:n="loop"}){return t[e&&"loop"!==n&&e%2==1?0:t.length-1]}(o,s)),i.Z_.update((()=>h.cancel())),r&&r()},{get currentTime(){return h.currentTime||0},set currentTime(t){h.currentTime=t},stop:()=>{const{currentTime:e}=h;if(e){const n=et({...s,autoplay:!1});t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}i.Z_.update((()=>h.cancel()))}}}var lt=n(2866);function ht({keyframes:t,elapsed:e,onUpdate:n,onComplete:r}){const s=()=>{n&&n(t[t.length-1]),r&&r()};return e?{stop:(0,lt.g)(s,-e)}:s()}var pt=n(5951);const dt=()=>({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:dt,y:dt,z:dt,rotate:dt,rotateX:dt,rotateY:dt,rotateZ:dt,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])},bt=(t,e)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!P.P.test(e)||e.startsWith("url(")));var wt=n(6914),xt=n(7101);const Vt=(t,e,n,i={})=>a=>{const c=(0,xt.ev)(i,t)||{},u=c.delay||i.delay||0;let{elapsed:l=0}=i;l-=(0,s.w)(u);const h=function(t,e,n,r){const s=bt(e,n);let o=void 0!==r.from?r.from:t.get();return"none"===o&&s&&"string"==typeof n?o=(0,wt.T)(e,n):(0,xt.Fr)(o)&&"string"==typeof n?o=(0,xt.GZ)(n):!Array.isArray(n)&&(0,xt.Fr)(n)&&"string"==typeof o&&(n=(0,xt.GZ)(o)),Array.isArray(n)?(null===n[0]&&(n[0]=o),n):[o,n]}(e,t,n,c),p=h[0],d=h[h.length-1],f=bt(t,p),m=bt(t,d);(0,r.K)(f===m,`You are trying to animate ${t} from "${p}" to "${d}". ${p} is not an animatable value - to enable this animation set ${p} to a value animatable to ${d} via the \`style\` property.`);let v={keyframes:h,velocity:e.getVelocity(),...c,elapsed:l,onUpdate:t=>{e.set(t),c.onUpdate&&c.onUpdate(t)},onComplete:()=>{a(),c.onComplete&&c.onComplete()}};if(!f||!m||o||!1===c.type)return ht(v);if("inertia"===c.type)return function({keyframes:t,velocity:e=0,min:n,max:r,power:s=.8,timeConstant:o=750,bounceStiffness:i=500,bounceDamping:a=10,restDelta:c=1,modifyTarget:u,driver:l,onUpdate:h,onComplete:p,onStop:d}){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){m&&m.stop(),m=et({keyframes:[0,1],velocity:0,...t,driver:l,onUpdate:e=>{h&&h(e),t.onUpdate&&t.onUpdate(e)},onComplete:p,onStop:d})}function b(t){y({type:"spring",stiffness:i,damping:a,restDelta:c,...t})}if(v(f))b({velocity:e,keyframes:[f,g(f)]});else{let t=s*e+f;void 0!==u&&(t=u(t));const r=g(t),i=r===n?-1:1;let a,l;const h=t=>{a=l,l=t,e=(0,H.R)(t-a,pt.w.delta),(1===i&&t>r||-1===i&&t<r)&&b({keyframes:[t,r],velocity:e})};y({type:"decay",keyframes:[f,0],velocity:e,timeConstant:o,power:s,restDelta:c,modifyTarget:u,onUpdate:v(t)?h:void 0})}return{stop:()=>m&&m.stop()}}(v);if((0,xt.rw)(c)||(v={...v,...yt(t,v)}),v.duration&&(v.duration=(0,s.w)(v.duration)),v.repeatDelay&&(v.repeatDelay=(0,s.w)(v.repeatDelay)),e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const n=ut(e,t,v);if(n)return n}return et(v)}},2819:(t,e,n)=>{n.d(e,{C:()=>r});const r=t=>Array.isArray(t)},7101:(t,e,n)=>{n.d(e,{Fr:()=>o,GZ:()=>i,ev:()=>a,rw:()=>s});var r=n(6914);function s({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:o,repeatType:i,repeatDelay:a,from:c,elapsed:u,...l}){return!!Object.keys(l).length}function o(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}},7110:(t,e,n)=>{n.d(e,{Bn:()=>i,X7:()=>a,Z7:()=>o});var r=n(5222),s=n(9273);const o=t=>1-Math.sin(Math.acos(t)),i=(0,s.M)(o),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)},6949:(t,e,n)=>{function r(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}n.d(e,{E:()=>r})},6477:(t,e,n)=>{n.d(e,{a:()=>o});var r=n(6949),s=n(409);function o(t,e,n,o){return(0,r.E)(t,e,(0,s.s)(n),o)}},409:(t,e,n)=>{n.d(e,{Q:()=>s,s:()=>o});var r=n(2426);function s(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const o=t=>e=>(0,r.D)(e)&&t(e,s(e))},2426:(t,e,n)=>{n.d(e,{D:()=>r});const r=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!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:()=>d,Z_:()=>p});const r=1/60*1e3,s="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),o="undefined"!=typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout((()=>t(s())),r);var i=n(5951);let a=!0,c=!1,u=!1;const l=["read","update","preRender","render","postRender"],h=l.reduce(((t,e)=>(t[e]=function(t){let e=[],n=[],r=0,s=!1,o=!1;const i=new WeakSet,a={schedule:(t,o=!1,a=!1)=>{const c=a&&s,u=c?e:n;return o&&i.add(t),-1===u.indexOf(t)&&(u.push(t),c&&s&&(r=e.length)),t},cancel:t=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1),i.delete(t)},process:c=>{if(s)o=!0;else{if(s=!0,[e,n]=[n,e],n.length=0,r=e.length,r)for(let n=0;n<r;n++){const r=e[n];r(c),i.has(r)&&(a.schedule(r),t())}s=!1,o&&(o=!1,a.process(c))}}};return a}((()=>c=!0)),t)),{}),p=l.reduce(((t,e)=>{const n=h[e];return t[e]=(t,e=!1,r=!1)=>(c||v(),n.schedule(t,e,r)),t}),{}),d=l.reduce(((t,e)=>(t[e]=h[e].cancel,t)),{}),f=(l.reduce(((t,e)=>(t[e]=()=>h[e].process(i.w),t)),{}),t=>h[t].process(i.w)),m=t=>{c=!1,i.w.delta=a?r:Math.max(Math.min(t-i.w.timestamp,40),1),i.w.timestamp=t,u=!0,l.forEach(f),u=!1,c&&(a=!1,o(m))},v=()=>{c=!0,a=!0,u||o(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 s=r("dragHorizontal"),o=r("dragVertical");function i(){const t=function(t){let e=!1;if("y"===t)e=o();else if("x"===t)e=s();else{const t=s(),n=o();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}(!0);return!t||(t(),!1)}},3609:(t,e,n)=>{n.d(e,{L:()=>r});class r{constructor(t){this.isMounted=!1,this.node=t}update(){}}},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 s(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:()=>s,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:()=>s});var r=n(483);function s(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 s(t){return"string"==typeof t&&t.startsWith("var(--")}const o=/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,c]=function(t){const e=o.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():s(c)?i(c,e,n+1):c}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(!s(e))return;const n=i(e,r);n&&t.set(n)}));for(const t in e){const o=e[t];if(!s(o))continue;const a=i(o,r);a&&(e[t]=a,n&&void 0===n[t]&&(n[t]=o))}return{target:e,transitionEnd:n}}},6914:(t,e,n)=>{n.d(e,{T:()=>i});var r=n(26),s=n(8673),o=n(7557);function i(t,e){let n=(0,o.A)(t);return n!==s.h&&(n=r.P),n.getAnimatableNone?n.getAnimatableNone(e):void 0}},7557:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(2890),s=n(8673);const o={...n(4923).j,color:r.$,backgroundColor:r.$,outlineColor:r.$,fill:r.$,stroke:r.$,borderColor:r.$,borderTopColor:r.$,borderRightColor:r.$,borderBottomColor:r.$,borderLeftColor:r.$,filter:s.h,WebkitFilter:s.h},i=t=>o[t]},4923:(t,e,n)=>{n.d(e,{j:()=>i});var r=n(8366),s=n(5713),o=n(6442);const i={borderWidth:s.px,borderTopWidth:s.px,borderRightWidth:s.px,borderBottomWidth:s.px,borderLeftWidth:s.px,borderRadius:s.px,radius:s.px,borderTopLeftRadius:s.px,borderTopRightRadius:s.px,borderBottomRightRadius:s.px,borderBottomLeftRadius:s.px,width:s.px,maxWidth:s.px,height:s.px,maxHeight:s.px,size:s.px,top:s.px,right:s.px,bottom:s.px,left:s.px,padding:s.px,paddingTop:s.px,paddingRight:s.px,paddingBottom:s.px,paddingLeft:s.px,margin:s.px,marginTop:s.px,marginRight:s.px,marginBottom:s.px,marginLeft:s.px,rotate:s.RW,rotateX:s.RW,rotateY:s.RW,rotateZ:s.RW,scale:r.bA,scaleX:r.bA,scaleY:r.bA,scaleZ:r.bA,skew:s.RW,skewX:s.RW,skewY:s.RW,distance:s.px,translateX:s.px,translateY:s.px,translateZ:s.px,x:s.px,y:s.px,z:s.px,perspective:s.px,transformPerspective:s.px,opacity:r.Fq,originX:s.$C,originY:s.$C,originZ:s.px,zIndex:o.e,fillOpacity:r.Fq,strokeOpacity:r.Fq,numOctaves:o.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 s(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}n.d(e,{cl:()=>s,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:()=>s});var r=n(8313);function s(t,e){const n=performance.now(),s=({timestamp:o})=>{const i=o-n;i>=e&&(r.qY.read(s),t(i-e))};return r.Z_.read(s,!0),()=>r.qY.read(s)}},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:()=>s});const r=(t,e)=>n=>e(t(n)),s=(...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:()=>s});var r=n(2819);const s=t=>(0,r.C)(t)?t[t.length-1]||0:t},1065:(t,e,n)=>{n.d(e,{L:()=>s});var r=n(1180);class s{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 s=0;s<r;s++){const r=this.subscriptions[s];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},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:()=>c});var r=n(5951),s=n(8313),o=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:o}=r.w;this.lastUpdated!==o&&(this.timeDelta=n,this.lastUpdated=o,s.Z_.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>s.Z_.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=e.owner}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new o.L);const n=this.events[t].add(e);return"change"===t?()=>{n(),s.Z_.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?(0,i.R)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.animation=t(e)||null,this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=null}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function c(t,e){return new a(t,e)}},4775:(t,e,n)=>{n.d(e,{$:()=>s});var r=n(6077);const s={test:(0,n(8810).i)("#"),parse:function(t){let e="",n="",r="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,r+=r,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}},transform:r.m.transform}},5193:(t,e,n)=>{n.d(e,{J:()=>a});var r=n(8366),s=n(5713),o=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)+", "+s.aQ.transform((0,o.Nw)(e))+", "+s.aQ.transform((0,o.Nw)(n))+", "+(0,o.Nw)(r.Fq.transform(i))+")"}},2890:(t,e,n)=>{n.d(e,{$:()=>a});var r=n(6933),s=n(4775),o=n(5193),i=n(6077);const a={test:t=>i.m.test(t)||s.$.test(t)||o.J.test(t),parse:t=>i.m.test(t)?i.m.parse(t):o.J.test(t)?o.J.parse(t):s.$.parse(t),transform:t=>(0,r.HD)(t)?t:t.hasOwnProperty("red")?i.m.transform(t):o.J.transform(t)}},6077:(t,e,n)=>{n.d(e,{m:()=>c});var r=n(9043),s=n(8366),o=n(6933),i=n(8810);const a={...s.Rx,transform:t=>Math.round((t=>(0,r.u)(0,255,t))(t))},c={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,o.Nw)(s.Fq.transform(r))+")"}},8810:(t,e,n)=>{n.d(e,{d:()=>o,i:()=>s});var r=n(6933);const s=(t,e)=>n=>Boolean((0,r.HD)(n)&&r.mj.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),o=(t,e,n)=>s=>{if(!(0,r.HD)(s))return s;const[o,i,a,c]=s.match(r.KP);return{[t]:parseFloat(o),[e]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==c?parseFloat(c):1}}},8673:(t,e,n)=>{n.d(e,{h:()=>c});var r=n(26),s=n(6933);const o=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(s.KP)||[];if(!r)return t;const i=n.replace(r,"");let a=o.has(e)?1:0;return r!==n&&(a*=100),e+"("+a+i+")"}const a=/([a-z-]*)\(.*?\)/g,c={...r.P,getAnimatableNone:t=>{const e=t.match(a);return e?e.map(i).join(" "):t}}},26:(t,e,n)=>{n.d(e,{P:()=>p,V:()=>c});var r=n(2890),s=n(8366),o=n(6933);const i="${c}",a="${n}";function c(t){"number"==typeof t&&(t=`${t}`);const e=[];let n=0,c=0;const u=t.match(o.dA);u&&(n=u.length,t=t.replace(o.dA,i),e.push(...u.map(r.$.parse)));const l=t.match(o.KP);return l&&(c=l.length,t=t.replace(o.KP,a),e.push(...l.map(s.Rx.parse))),{values:e,numColors:n,numNumbers:c,tokenised:t}}function u(t){return c(t).values}function l(t){const{values:e,numColors:n,tokenised:s}=c(t),u=e.length;return t=>{let e=s;for(let s=0;s<u;s++)e=e.replace(s<n?i:a,s<n?r.$.transform(t[s]):(0,o.Nw)(t[s]));return e}}const h=t=>"number"==typeof t?0:t;const p={test:function(t){var e,n;return isNaN(t)&&(0,o.HD)(t)&&((null===(e=t.match(o.KP))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(o.dA))||void 0===n?void 0:n.length)||0)>0},parse:u,createTransformer:l,getAnimatableNone:function(t){const e=u(t);return l(t)(e.map(h))}}},8366:(t,e,n)=>{n.d(e,{Fq:()=>o,Rx:()=>s,bA:()=>i});var r=n(9043);const s={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},o={...s,transform:t=>(0,r.u)(0,1,t)},i={...s,default:1}},5713:(t,e,n)=>{n.d(e,{$C:()=>l,RW:()=>o,aQ:()=>i,px:()=>a,vh:()=>c,vw:()=>u});var r=n(6933);const s=t=>({test:e=>(0,r.HD)(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),o=s("deg"),i=s("%"),a=s("px"),c=s("vh"),u=s("vw"),l={...i,parse:t=>i.parse(t)/100,transform:t=>i.transform(100*t)}},6933:(t,e,n)=>{n.d(e,{HD:()=>a,KP:()=>s,Nw:()=>r,dA:()=>o,mj:()=>i});const r=t=>Math.round(1e5*t)/1e5,s=/(-)?([\d]*\.?[\d])+/g,o=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,i=/^(#[0-9a-f]{3,8}|(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=>Boolean(t&&t.getVelocity)}},e={};function n(r){var s=e[r];if(void 0!==s)return s.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}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),(()=>{function t(t){return"object"==typeof t&&"function"==typeof t.start}var e=n(2819);function r(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 s=t=>/^0[^.\s]+$/.test(t);var o=n(7048),i=n(1421),a=n(26),c=n(6914),u=n(2890),l=n(8366),h=n(5713);const p=t=>e=>e.test(t),d=[l.Rx,h.px,h.aQ,h.RW,h.vw,h.vh,{test:t=>"auto"===t,parse:t=>t}],f=t=>d.find(p(t)),m=[...d,u.$,a.P],v=t=>m.find(p(t));function g(t,e,n,r={},s={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,s)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,s)),e}function y(t,e,n){const r=t.getProps();return g(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 b(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,i.B)(n))}function w(t,e){const n=y(t,e);let{transitionEnd:r={},transition:s={},...i}=n?t.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const e in i){b(t,e,(0,o.Y)(i[e]))}}function x(t,e){if(!e)return;return(e[t]||e.default||e).from}const V=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],A=new Set(V);var P=n(7846);function C(t){return Boolean((0,P.i)(t)&&t.add)}const S=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),T="data-"+S("framerAppearId");var k=n(6405),M=n(8313);function E(t,e,n={}){const r=y(t,e,n.custom);let{transition:s=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const o=r?()=>F(t,r,n):()=>Promise.resolve(),i=t.variantChildren&&t.variantChildren.size?(r=0)=>{const{delayChildren:o=0,staggerChildren:i,staggerDirection:a}=s;return function(t,e,n=0,r=0,s=1,o){const i=[],a=(t.variantChildren.size-1)*r,c=1===s?(t=0)=>t*r:(t=0)=>a-t*r;return Array.from(t.variantChildren).sort(O).forEach(((t,r)=>{t.notify("AnimationStart",e),i.push(E(t,e,{...o,delay:n+c(r)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(i)}(t,e,o+r,i,a,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[t,e]="beforeChildren"===a?[o,i]:[i,o];return t().then(e)}return Promise.all([o(),i(n.delay)])}function F(t,e,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:i,...a}=t.makeTargetAnimatable(e);const c=t.getValue("willChange");r&&(o=r);const u=[],l=s&&t.animationState&&t.animationState.getState()[s];for(const e in a){const r=t.getValue(e),s=a[e];if(!r||void 0===s||l&&$(l,e))continue;const i={delay:n,elapsed:0,...o};if(window.HandoffAppearAnimations&&!r.hasAnimated){const n=t.getProps()[T];n&&(i.elapsed=window.HandoffAppearAnimations(n,e,r,M.Z_))}let h=r.start((0,k.Z)(e,r,s,t.shouldReduceMotion&&A.has(e)?{type:!1}:i));C(c)&&(c.add(e),h=h.then((()=>c.remove(e)))),u.push(h)}return Promise.all(u).then((()=>{i&&w(t,i)}))}function O(t,e){return t.sortNodePosition(e)}function $({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,r}function R(t){return"string"==typeof t||Array.isArray(t)}var I=n(7921);const L=[I.r.Animate,I.r.InView,I.r.Focus,I.r.Hover,I.r.Tap,I.r.Drag,I.r.Exit],B=[...L].reverse(),D=L.length;function N(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 s=e.map((e=>E(t,e,n)));r=Promise.all(s)}else if("string"==typeof e)r=E(t,e,n);else{const s="function"==typeof e?y(t,e,n.custom):e;r=F(t,s,n)}return r.then((()=>t.notify("AnimationComplete",e)))}(t,e,n))))}function j(n){let s=N(n);const o={[I.r.Animate]:W(!0),[I.r.InView]:W(),[I.r.Hover]:W(),[I.r.Tap]:W(),[I.r.Drag]:W(),[I.r.Focus]:W(),[I.r.Exit]:W()};let i=!0;const a=(t,e)=>{const r=y(n,e);if(r){const{transition:e,transitionEnd:n,...s}=r;t={...t,...s,...n}}return t};function c(c,u){const l=n.getProps(),h=n.getVariantContext(!0)||{},p=[],d=new Set;let f={},m=1/0;for(let s=0;s<D;s++){const v=B[s],g=o[v],y=void 0!==l[v]?l[v]:h[v],b=R(y),w=v===u?g.isActive:null;!1===w&&(m=s);let x=y===h[v]&&y!==l[v]&&b;if(x&&i&&n.manuallyAnimateOnMount&&(x=!1),g.protectedKeys={...f},!g.isActive&&null===w||!y&&!g.prevProp||t(y)||"boolean"==typeof y)continue;const V=Z(g.prevProp,y);let A=V||v===u&&g.isActive&&!x&&b||s>m&&b;const P=Array.isArray(y)?y:[y];let C=P.reduce(a,{});!1===w&&(C={});const{prevResolvedValues:S={}}=g,T={...S,...C},k=t=>{A=!0,d.delete(t),g.needsAnimating[t]=!0};for(const t in T){const n=C[t],s=S[t];f.hasOwnProperty(t)||(n!==s?(0,e.C)(n)&&(0,e.C)(s)?!r(n,s)||V?k(t):g.protectedKeys[t]=!0:void 0!==n?k(t):d.add(t):void 0!==n&&d.has(t)?k(t):g.protectedKeys[t]=!0)}g.prevProp=y,g.prevResolvedValues=C,g.isActive&&(f={...f,...C}),i&&n.blockInitialAnimation&&(A=!1),A&&!x&&p.push(...P.map((t=>({animation:t,options:{type:v,...c}}))))}if(d.size){const t={};d.forEach((e=>{const r=n.getBaseTarget(e);void 0!==r&&(t[e]=r)})),p.push({animation:t})}let v=Boolean(p.length);return i&&!1===l.initial&&!n.manuallyAnimateOnMount&&(v=!1),i=!1,v?s(p):Promise.resolve()}return{animateChanges:c,setActive:function(t,e,r){if(o[t].isActive===e)return Promise.resolve();n.variantChildren&&n.variantChildren.forEach((n=>{n.animationState&&n.animationState.setActive(t,e)})),o[t].isActive=e;const s=c(r,t);for(const t in o)o[t].protectedKeys={};return s},setAnimateFunction:function(t){s=t(n)},getState:()=>o}}function Z(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!r(e,t)}function W(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var z=n(3609);class Y extends z.L{constructor(t){super(t),t.animationState||(t.animationState=j(t))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),t(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}}let q=0;class H extends z.L{constructor(){super(...arguments),this.id=q++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const s=this.node.animationState.setActive(I.r.Exit,!t,{custom:null!=n?n:this.node.getProps().custom});e&&!t&&s.then((()=>e(this.id)))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const U={animation:{Feature:Y},exit:{Feature:H}};var X=n(6477),K=n(9820),_=n(5856);function J(t,e){const n="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End");return(0,X.a)(t.current,n,((n,s)=>{if("touch"===n.type||(0,_.gD)())return;const o=t.getProps();t.animationState&&o.whileHover&&t.animationState.setActive(I.r.Hover,e),o[r]&&o[r](n,s)}),{passive:!t.getProps()[r]})}class G extends z.L{mount(){this.unmount=(0,K.z)(J(this.node,!0),J(this.node,!1))}unmount(){}}var Q=n(6949);class tt extends z.L{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive(I.r.Focus,!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive(I.r.Focus,!1),this.isActive=!1)}mount(){this.unmount=(0,K.z)((0,Q.E)(this.node.current,"focus",(()=>this.onFocus())),(0,Q.E)(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}var et=n(409);const nt=(t,e)=>!!e&&(t===e||nt(t,e.parentElement));var rt=n(2634);function st(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,(0,et.Q)(n))}class ot extends z.L{constructor(){super(...arguments),this.removeStartListeners=rt.Z,this.removeEndListeners=rt.Z,this.removeAccessibleListeners=rt.Z,this.startPointerPress=(t,e)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=(0,X.a)(window,"pointerup",((t,e)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();nt(this.node.current,t.target)?n&&n(t,e):r&&r(t,e)}),{passive:!(n.onTap||n.onPointerUp)}),s=(0,X.a)(window,"pointercancel",((t,e)=>this.cancelPress(t,e)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=(0,K.z)(r,s),this.startPress(t,e)},this.startAccessiblePress=()=>{const t=(0,Q.E)(this.node.current,"keydown",(t=>{if("Enter"!==t.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=(0,Q.E)(this.node.current,"keyup",(t=>{"Enter"===t.key&&this.checkPressEnd()&&st("up",this.node.getProps().onTap)})),st("down",((t,e)=>{this.startPress(t,e)}))})),e=(0,Q.E)(this.node.current,"blur",(()=>{this.isPressing&&st("cancel",((t,e)=>this.cancelPress(t,e)))}));this.removeAccessibleListeners=(0,K.z)(t,e)}}startPress(t,e){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive(I.r.Tap,!0),n&&n(t,e)}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive(I.r.Tap,!1),!(0,_.gD)()}cancelPress(t,e){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&n(t,e)}mount(){const t=this.node.getProps(),e=(0,X.a)(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=(0,Q.E)(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=(0,K.z)(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const it=new WeakMap,at=new WeakMap,ct=t=>{const e=it.get(t.target);e&&e(t)},ut=t=>{t.forEach(ct)};function lt(t,e,n){const r=function({root:t,...e}){const n=t||document;at.has(n)||at.set(n,{});const r=at.get(n),s=JSON.stringify(e);return r[s]||(r[s]=new IntersectionObserver(ut,{root:t,...e})),r[s]}(e);return it.set(t,n),r.observe(t),()=>{it.delete(t),r.unobserve(t)}}const ht={some:0,all:1};class pt extends z.L{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}viewportFallback(){requestAnimationFrame((()=>{this.hasEnteredView=!0;const{onViewportEnter:t}=this.node.getProps();t&&t(null),this.node.animationState&&this.node.animationState.setActive(I.r.InView,!0)}))}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:r="some",once:s,fallback:o=!0}=t;if("undefined"==typeof IntersectionObserver)return void(o&&this.viewportFallback());const i={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:ht[r]};return lt(this.node.current,i,(t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,s&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(I.r.InView,e);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=e?n:r;o&&o(t)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}const dt={inView:{Feature:pt},tap:{Feature:ot},focus:{Feature:tt},hover:{Feature:G}},ft={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},mt=V.length;function vt(t){return t.startsWith("--")}const gt=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var yt=n(4923);function bt(t,e,n,r){const{style:s,vars:o,transform:i,transformOrigin:a}=t;let c=!1,u=!1,l=!0;for(const t in e){const n=e[t];if(vt(t)){o[t]=n;continue}const r=yt.j[t],c=gt(n,r);if(A.has(t)){if(!0,i[t]=c,!l)continue;n!==(r.default||0)&&!1}else t.startsWith("origin")?(!0,a[t]=c):s[t]=c}if(e.transform||(c||r?s.transform=function(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,s){let o="";for(let e=0;e<mt;e++){const n=V[e];void 0!==t[n]&&`${ft[n]||n}(${t[n]}) `}return e&&!t.z&&"translateZ(0)",o.trim(),s?s(t,r?"":o):n&&r&&"none",o}(t.transform,n,l,r):s.transform&&(s.transform="none")),u){const{originX:t="50%",originY:e="50%",originZ:n=0}=a;s.transformOrigin=`${t} ${e} ${n}`}}var wt=n(798);function xt(t,{layout:e,layoutId:n}){return A.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!wt.P[t]||"opacity"===t)}function Vt(t,e){const{style:n}=t,r={};for(const s in n)((0,P.i)(n[s])||e.style&&(0,P.i)(e.style[s])||xt(s,t))&&(r[s]=n[s]);return r}function At(t,{style:e,vars:n},r,s){Object.assign(t.style,e,s&&s.getProjectionStyles(r));for(const e in n)t.style.setProperty(e,n[e])}var Pt=n(7557),Ct=n(8834),St=n(6978),Tt=n(9340);const kt="undefined"!=typeof document,Mt=new Set(["width","height","top","left","right","bottom","x","y"]),Et=t=>Mt.has(t),Ft=t=>t===l.Rx||t===h.px;var Ot;!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(Ot||(Ot={}));const $t=(t,e)=>parseFloat(t.split(", ")[e]),Rt=(t,e)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const s=r.match(/^matrix3d\((.+)\)$/);if(s)return $t(s[1],e);{const e=r.match(/^matrix\((.+)\)$/);return e?$t(e[1],t):0}},It=new Set(["x","y","z"]),Lt=V.filter((t=>!It.has(t)));const Bt={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:Rt(4,13),y:Rt(5,14)},Dt=(t,n,r={},s={})=>{n={...n},s={...s};const o=Object.keys(n).filter(Et);let i=[],a=!1;const c=[];if(o.forEach((o=>{const u=t.getValue(o);if(!t.hasValue(o))return;let l=r[o],p=f(l);const d=n[o];let m;if((0,e.C)(d)){const t=d.length,e=null===d[0]?1:0;l=d[e],p=f(l);for(let n=e;n<t;n++)m?(0,Tt.k)(f(d[n])===m,"All keyframes must be of the same type"):(m=f(d[n]),(0,Tt.k)(m===p||Ft(p)&&Ft(m),"Keyframes must be of the same dimension as the current value"))}else m=f(d);if(p!==m)if(Ft(p)&&Ft(m)){const t=u.get();"string"==typeof t&&u.set(parseFloat(t)),"string"==typeof d?n[o]=parseFloat(d):Array.isArray(d)&&m===h.px&&(n[o]=d.map(parseFloat))}else(null==p?void 0:p.transform)&&(null==m?void 0:m.transform)&&(0===l||0===d)?0===l?u.set(m.transform(l)):n[o]=p.transform(d):(a||(i=function(t){const e=[];return Lt.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),c.push(o),s[o]=void 0!==s[o]?s[o]:n[o],u.jump(d))})),c.length){const e=c.indexOf("height")>=0?window.pageYOffset:null,r=((t,e,n)=>{const r=e.measureViewportBox(),s=e.current,o=getComputedStyle(s),{display:i}=o,a={};"none"===i&&e.setStaticValue("display",t.display||"block"),n.forEach((t=>{a[t]=Bt[t](r,o)})),e.render();const c=e.measureViewportBox();return n.forEach((n=>{const r=e.getValue(n);r&&r.jump(a[n]),t[n]=Bt[n](c,o)})),t})(n,t,c);return i.length&&i.forEach((([e,n])=>{t.getValue(e).set(n)})),t.render(),kt&&null!==e&&window.scrollTo({top:e}),{target:r,transitionEnd:s}}return{target:n,transitionEnd:s}};function Nt(t,e,n,r){return(t=>Object.keys(t).some(Et))(e)?Dt(t,e,n,r):{target:e,transitionEnd:r}}var jt=n(1397),Zt=n(3491);const Wt={current:null},zt={current:!1};var Yt=n(1065);const qt=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function Ht(e){return t(e.animate)||qt.some((t=>R(e[t])))}const Ut={animation:["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Xt={};for(const t in Ut)Xt[t]={isEnabled:e=>Ut[t].some((t=>!!e[t]))};const Kt=Object.keys(Xt),_t=Kt.length,Jt=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];const Gt=["initial",...L],Qt=Gt.length;class te extends class{constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:r,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>M.Z_.render(this.render,!1,!0);const{latestValues:i,renderState:a}=s;this.latestValues=i,this.baseTarget={...i},this.initialValues=e.initial?{...i}:{},this.renderState=a,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.isControllingVariants=Ht(e),this.isVariantNode=function(t){return Boolean(Ht(t)||t.variants)}(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(e,{});for(const t in u){const e=u[t];void 0!==i[t]&&(0,P.i)(e)&&(e.set(i[t],!1),C(c)&&c.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((t,e)=>this.bindToMotionValue(e,t))),zt.current||function(){if(zt.current=!0,kt)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Wt.current=t.matches;t.addListener(e),e()}else Wt.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Wt.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),M.qY.update(this.notifyUpdate),M.qY.render(this.render),this.valueSubscriptions.forEach((t=>t())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,e){const n=A.has(t),r=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&M.Z_.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),s=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,(()=>{r(),s()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},n,r,s,o){let i,a;for(let t=0;t<_t;t++){const n=Kt[t],{isEnabled:r,Feature:s,ProjectionNode:o,MeasureLayout:i}=Xt[n];o&&o,r(e)&&(!this.features[n]&&s&&(this.features[n]=new s(this)),i&&i)}if(!this.projection&&i){this.projection=new i(s,this.latestValues,this.parent&&this.parent.projection);const{layoutId:t,layout:n,drag:r,dragConstraints:a,layoutScroll:c,layoutRoot:u}=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:o,layoutScroll:c,layoutRoot:u})}return a}updateFeatures(){for(const t in this.features){const e=this.features[t];e.isMounted?e.update(this.props,this.prevProps):(e.mount(),e.isMounted=!0)}}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)}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<Jt.length;e++){const n=Jt[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 s in e){const o=e[s],a=n[s];if((0,P.i)(o))t.addValue(s,o),C(r)&&r.add(s);else if((0,P.i)(a))t.addValue(s,(0,i.B)(o,{owner:t})),C(r)&&r.remove(s);else if(a!==o)if(t.hasValue(s)){const e=t.getValue(s);!e.hasAnimated&&e.set(o)}else{const e=t.getStaticValue(s);t.addValue(s,(0,i.B)(void 0!==e?e:o,{owner:t}))}}for(const r in n)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}const e={};for(let t=0;t<Qt;t++){const n=Gt[t],r=this.props[n];(R(r)||!1===r)&&(e[n]=r)}return e}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.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){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&((0,i.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===g(this.props,n)||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==r)return r;const s=this.getBaseTargetFromProps(this.props,t);return void 0===s||(0,P.i)(s)?void 0!==this.initialValues[t]&&void 0===r?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new Yt.L),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...n},{transformValues:r},o){let u=function(t,e,n){const r={};for(const s in t){const t=x(s,e);if(void 0!==t)r[s]=t;else{const t=n.getValue(s);t&&(r[s]=t.get())}}return r}(n,t||{},this);if(r&&(e&&r(e),n&&r(n),u&&r(u)),o){!function(t,e,n){var r,o;const u=Object.keys(e).filter((e=>!t.hasValue(e))),l=u.length;if(l)for(let h=0;h<l;h++){const l=u[h],p=e[l];let d=null;Array.isArray(p)&&p[0],null===d&&(null!==(null!==n[l]&&void 0!==r?r:t.readValue(l))&&void 0!==o?o:e[l]),null!=d&&("string"==typeof d&&(/^\-?\d*\.?\d+$/.test(d)||s(d))?parseFloat(d):!v(d)&&a.P.test(p)&&(0,c.T)(l,p),t.addValue(l,(0,i.B)(d,{owner:t})),void 0===n[l]&&(n[l]=d),null!==d&&t.setBaseTarget(l,d))}}(this,n,u);const t=((t,e,n,r)=>{const s=(0,St.mH)(t,e,r);return Nt(t,s.target,n,s.transitionEnd)})(this,n,u,e);t.transitionEnd,t.target}return{transition:t,transitionEnd:e,...n}}}class ee extends te{readValueFromInstance(t,e){if(A.has(e)){const t=(0,Pt.A)(e);return t&&t.default||0}{const r=(t,window.getComputedStyle(n)),s=(vt(e)?r.getPropertyValue(e):r[e])||0;return"string"==typeof s?s.trim():s}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,Ct.J)(t,e)}build(t,e,n,r){bt(t,e,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,e){return Vt(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;(0,P.i)(t)&&(this.childSubscription=t.on("change",(t=>{this.current&&(this.current.textContent=`${t}`)})))}renderInstance(t,e,n,r){At(t,e,n,r)}}function ne(t,e,n){return"string"==typeof t?t:h.px.transform(e+n*t)}const re={offset:"stroke-dashoffset",array:"stroke-dasharray"},se={offset:"strokeDashoffset",array:"strokeDasharray"};function oe(t,{attrX:e,attrY:n,originX:r,originY:s,pathLength:o,pathSpacing:i=1,pathOffset:a=0,...c},u,l,p){if(bt(t,c,u,p),l)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:d,style:f,dimensions:m}=t;d.transform&&(m&&(f.transform=d.transform),delete d.transform),m&&(void 0!==r||void 0!==s||f.transform)&&(f.transformOrigin=function(t,e,n){return`${ne(e,t.x,t.width)} ${ne(n,t.y,t.height)}`}(m,void 0!==r?r:.5,void 0!==s?s:.5)),void 0!==e&&(d.x=e),void 0!==n&&(d.y=n),void 0!==o&&function(t,e,n=1,r=0,s=!0){t.pathLength=1;const o=s?re:se;t[o.offset]=h.px.transform(-r);const i=h.px.transform(e),a=h.px.transform(n);t[o.array]=`${i} ${a}`}(d,o,i,a,!1)}const ie=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 ae extends te{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(A.has(e)){const t=(0,Pt.A)(e);return t&&t.default||0}return ie.has(e)?e:S(e),t.getAttribute(e)}measureInstanceViewportBox(){return(0,jt.dO)()}scrapeMotionValuesFromProps(t,e){return function(t,e){const n=Vt(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){oe(t,e,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,e,n,r){!function(t,e,n,r){At(t,e,void 0,r);for(const n in e.attrs)t.setAttribute(ie.has(n)?n:S(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 ce=["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"]})()})();
|