Socket
Socket
Sign inDemoInstall

motion

Package Overview
Dependencies
Maintainers
1
Versions
207
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

motion - npm Package Compare versions

Comparing version 10.1.1 to 10.1.2

8

CHANGELOG.md

@@ -5,2 +5,8 @@ # Changelog

## [10.1.2] [2021-10-02]
### Fixed
- **Fill both:** Previously, if a timeline animation had a delay and an initially-defined first keyframe (`opacity: [0, 1]`) the animation would start from its rendered style to that first keyframe. Now, the initial keyframe gets stretched to the very start of the whole animation by setting `fill: "both"`. [Issue (sponsors only)](https://github.com/motiondivision/motion/issues/20)
## [10.1.1] [2021-09-28]

@@ -10,3 +16,3 @@

- **Scrub to end:** Setting `currentTime` to `duration` was removing the animation effect. This has been fixed by setting `fill: "forwards"` on the WAAPI animation. This won't affect memory consumption as animations are flattened into styles and removed on finish. ([Issue (sponsors only)](https://github.com/motiondivision/motion/issues/21))
- **Scrub to end:** Setting `currentTime` to `duration` was removing the animation effect. This has been fixed by setting `fill: "forwards"` on the WAAPI animation. This won't affect memory consumption as animations are flattened into styles and removed on finish. [Issue (sponsors only)](https://github.com/motiondivision/motion/issues/21)

@@ -13,0 +19,0 @@ ### Changed

2

dist/motion.min.js

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).Motion={})}(this,(function(t){"use strict";const e=new WeakMap;function n(t){return e.has(t)||e.set(t,{activeTransforms:[],activeAnimations:{}}),e.get(t)}function i(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const a=()=>{},s=t=>t,r=["","X","Y","Z"],o={x:"translateX",y:"translateY",z:"translateZ"},l={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:t=>t+"deg"},c={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:t=>t+"px"},rotate:l,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:s},skew:l},u=new Map,f=t=>`--motion-${t}`,h=["x","y","z"];["translate","scale","rotate","skew"].forEach((t=>{r.forEach((e=>{h.push(t+e),u.set(f(t+e),c[t])}))}));const p=(t,e)=>h.indexOf(t)-h.indexOf(e),d=new Set(h),y=t=>t.sort(p).reduce(m,"").trim(),m=(t,e)=>`${t} ${e}(var(${f(e)}))`,g=t=>t.startsWith("--"),v=new Set;const b=t=>1e3*t;function w(t){try{"finished"!==t.playState&&t.commitStyles(),t.cancel()}catch(t){}}const x=t=>Array.isArray(t)&&"number"!=typeof t[0],O=t=>(t=>Array.isArray(t)&&"number"==typeof t[0])(t)?T(t):t,T=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,S=t=>document.createElement("div").animate(t,{duration:.001}),M={cssRegisterProperty:()=>"undefined"!=typeof CSS&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{S({opacity:[1]})}catch(t){return!1}return!0},finished:()=>Boolean(S({opacity:[0,1]}).finished)},A={},j=Object.keys(M).reduce(((t,e)=>(t[e]=()=>(void 0===A[e]&&(A[e]=M[e]()),A[e]),t)),{}),P={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},k=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function D(t,e,n,i){if(t===e&&n===i)return s;const a=e=>function(t,e,n,i,a){let s,r,o=0;do{r=e+(n-e)/2,s=k(r,i,a)-t,s>0?n=r:e=r}while(Math.abs(s)>1e-7&&++o<12);return r}(e,0,1,t,n);return t=>0===t||1===t?t:k(a(t),e,i)}const E=(t,e="end")=>n=>{const i=(n="end"===e?Math.min(n,.999):Math.max(n,.001))*t,a="end"===e?Math.floor(i):Math.ceil(i);return s=0,r=1,o=a/t,Math.min(Math.max(o,s),r);var s,r,o},V={ease:D(.25,.1,.25,1),"ease-in":D(.42,0,1,1),"ease-in-out":D(.42,0,.58,1),"ease-out":D(0,0,.58,1)},$=/\((.*?)\)/;function R(t){if("function"==typeof t)return t;if(Array.isArray(t))return D(...t);if(V[t])return V[t];if(t.startsWith("steps")){const e=$.exec(t);if(e){const t=e[1].split(",");return E(parseFloat(t[0]),t[1].trim())}}return s}const U=(t,e,n)=>-n*t+n*e+t,W=(t,e,n)=>e-t==0?1:(n-t)/(e-t);function F(t,e){return x(t)?t[((t,e,n)=>{const i=e-t;return((n-t)%i+i)%i+t})(0,t.length,e)]:t}function q(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const a=W(0,e,i);t.push(U(n,1,a))}}function C(t){const e=[0];return q(e,t-1),e}function z(t,e=C(t.length),n=s){const i=t.length,a=i-e.length;return a>0&&q(e,a),a=>{let s=0;for(;s<i-2&&!(a<e[s+1]);s++);let r=(o=W(e[s],e[s+1],a),Math.min(1,Math.max(o,0)));var o;return r=F(n,s)(r),U(t[s],t[s+1],r)}}class K{constructor(t,e,{easing:n=P.easing,duration:i=P.duration,delay:a=P.delay,endDelay:s=P.endDelay,offset:r,repeat:o=P.repeat,direction:l="normal"}){this.startTime=0,this.rate=1,this.t=0,this.cancelT=0,this.playState="idle",this.finished=new Promise(((t,e)=>{this.resolve=t,this.reject=e}));const c=i*(o+1),u=z(e,r,x(n)?n.map(R):R(n));this.tick=e=>{if("finished"===this.playState){const e=u(1);return t(e),void this.resolve(e)}this.pauseTime&&(e=this.pauseTime);let n=(e-this.startTime)*this.rate;this.t=n,n/=1e3,n=Math.max(n-a,0);const r=n/i;let o=Math.floor(r),f=r%1;!f&&r>=1&&(f=1),1===f&&o--;const h=o%2;("reverse"===l||"alternate"===l&&h||"alternate-reverse"===l&&!h)&&(f=1-f);const p=n>=c?1:Math.min(f,1),d=u(p);t(d);n>=c+s?(this.playState="finished",this.resolve(d)):"idle"!==this.playState&&requestAnimationFrame(this.tick)},this.play()}play(){const t=performance.now();this.playState="running",this.pauseTime?this.startTime=t-(this.pauseTime-this.startTime):this.startTime||(this.startTime=t),this.pauseTime=void 0,requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=performance.now()}finish(){this.playState="finished",this.tick(0)}cancel(){this.playState="idle",this.tick(this.cancelT),this.reject(!1)}reverse(){this.rate*=-1}commitStyles(){this.cancelT=this.t}get currentTime(){return this.t}set currentTime(t){this.pauseTime||0===this.rate?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}}const X=(t,e)=>{let n=g(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!n&&0!==n){const t=u.get(e);t&&(n=t.initialValue)}return n};const Y=t=>Array.isArray(t)?t:[t];function Z(t,e,i,s={}){let{duration:r=P.duration,delay:l=P.delay,endDelay:c=P.endDelay,repeat:h=P.repeat,easing:p=P.easing,direction:m,offset:T,allowWebkitAcceleration:S=!1}=s;const M=n(t);let A=j.waapi(),k=a;const D=(t=>d.has(t))(e);D&&(o[e]&&(e=o[e]),((t,e)=>{const{activeTransforms:i}=n(t);var a,s;s=e,-1===(a=i).indexOf(s)&&a.push(s),t.style.transform=y(i)})(t,e),e=f(e));const E=u.get(e);let V,$=function(t,e,n){for(let i=0;i<t.length;i++)null===t[i]&&(t[i]=i?t[i-1]:X(e,n));return t}(Y(i),t,e);if(function(t,e){t.activeAnimations[e]&&(w(t.activeAnimations[e]),t.activeAnimations[e]=void 0)}(M,e),g(e)?(k=((t,e)=>n=>t.style.setProperty(e,n))(t,e),j.cssRegisterProperty()?function(t){if(!v.has(t)){v.add(t);try{const{syntax:e,initialValue:n}=u.has(t)?u.get(t):{};CSS.registerProperty({name:t,inherits:!1,syntax:e,initialValue:n})}catch(t){}}}(e):A=!1):k=((t,e)=>n=>t.style[e]=n)(t,e),A){E&&($=$.map((t=>"number"==typeof t?E.toDefaultUnit(t):t))),j.partialKeyframes()||1!==$.length||$.unshift(X(t,e));const n={delay:b(l),duration:b(r),endDelay:b(c),easing:x(p)?void 0:O(p),direction:m,iterations:h+1,fill:"forwards"};V=t.animate({[e]:$,offset:T,easing:x(p)?p.map(O):void 0},n),V.finished||(V.finished=new Promise(((t,e)=>{V.onfinish=t,V.oncancel=e})));const i=$[$.length-1];V.finished.then((()=>k(i))).catch(a),S||(V.playbackRate=1.000001)}else if(D&&$.every(_)){if(1===$.length&&$.unshift(X(t,e)||(null==E?void 0:E.initialValue)||0),$=$.map((t=>"string"==typeof t?parseFloat(t):t)),E){const t=k;k=e=>t(E.toDefaultUnit(e))}V=function(t,e=[0,1],n={}){return new K(t,e,n)}(k,$,s)}else{const t=$[$.length-1];k(E&&"number"==typeof t?E.toDefaultUnit(t):t)}return M.activeAnimations[e]=V,null==V||V.finished.then((()=>M.activeAnimations[e]=void 0)).catch(a),V}const _=t=>"number"==typeof t,B=(t,e)=>t[e]?Object.assign(Object.assign({},t),t[e]):Object.assign({},t);function I(t,e){var n;return"string"==typeof t?e?(null!==(n=e[t])&&void 0!==n||(e[t]=document.querySelectorAll(t)),t=e[t]):t=document.querySelectorAll(t):t instanceof Element&&(t=[t]),Array.from(t)}const G=(t,e)=>new Proxy({animations:t,duration:e},J),H=t=>t.animations[0],J={get:(t,e)=>{var n,i;switch(e){case"duration":return t.duration;case"currentTime":let s=(null===(n=H(t))||void 0===n?void 0:n[e])||0;return s?s/1e3:0;case"playbackRate":return null===(i=H(t))||void 0===i?void 0:i[e];case"finished":return t.finished||(t.finished=Promise.all(t.animations.map(L)).catch(a)),t.finished;case"stop":return()=>t.animations.forEach(w);default:return()=>t.animations.forEach((t=>t[e]()))}},set:(t,e,n)=>{switch(e){case"currentTime":n=b(n);case"currentTime":case"playbackRate":for(let i=0;i<t.animations.length;i++)t.animations[i][e]=n;return!0}return!1}},L=t=>t.finished;function N(t,e,n){return"function"==typeof t?t(e,n):t}function Q(t,e,n,i){var a;return"number"==typeof e?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):"<"===e?n:null!==(a=i.get(e))&&void 0!==a?a:t}function tt(t,e,n,a,s,r){!function(t,e,n){for(let a=0;a<t.length;a++){const s=t[a];s.at>e&&s.at<n&&(i(t,s),a--)}}(t,s,r);for(let i=0;i<e.length;i++)t.push({value:e[i],at:U(s,r,a[i]),easing:F(n,i)})}function et(t,e){return t.at===e.at?null===t.value?1:-1:t.at-e.at}function nt(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function it(t,e){return e[t]||(e[t]=[]),e[t]}t.animate=function(t,e,n={}){var i;const a=[],s=(t=I(t)).length;for(let i=0;i<s;i++){const r=t[i];for(const t in e){const o=B(n,t);o.delay=N(o.delay,i,s);const l=Z(r,t,e[t],o);l&&a.push(l)}}return G(a,null!==(i=n.duration)&&void 0!==i?i:P.duration)},t.animateStyle=Z,t.stagger=function(t=.1,{start:e=0,from:n=0,easing:i}={}){return(a,s)=>{const r="number"==typeof n?n:function(t,e){if("first"===t)return 0;{const n=e-1;return"last"===t?n:n/2}}(n,s),o=Math.abs(r-a);let l=t*o;if(i){const t=s*a;l=R(i)(l/t)*t}return e+l}},t.timeline=function(t,e={}){var n,i;const a=[],s=function(t,e={}){var{defaultOptions:n={}}=e,i=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(t);a<i.length;a++)e.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(t,i[a])&&(n[i[a]]=t[i[a]])}return n}(e,["defaultOptions"]);const a=[],s=new Map,r={},o=new Map;let l=0,c=0,u=0;for(let e=0;e<t.length;e++){const[i,a,f={}]=t[e];void 0!==f.at&&(c=Q(c,f.at,l,o));let h=0;const p=I(i,r),d=p.length;for(let t=0;t<d;t++){const e=nt(p[t],s);for(const i in a){const s=it(i,e),r=Y(a[i]),o=B(f,i),{duration:l=n.duration||P.duration,easing:p=n.easing||P.easing,offset:y=C(r.length)}=o,m=N(f.delay,t,d)||0,g=c+m,v=g+l;1===y.length&&0===y[0]&&(y[1]=1);const b=length-r.length;b>0&&q(y,b),1===r.length&&r.unshift(null),tt(s,r,p,y,g,v),h=Math.max(m+l,h),u=Math.max(v,u)}}l=c,c+=h}return s.forEach(((t,e)=>{for(const s in t){const r=t[s];r.sort(et);const o=[],l=[],c=[];for(let t=0;t<r.length;t++){const{at:e,value:n,easing:i}=r[t];o.push(n),l.push(W(0,u,e)),c.push(i||P.easing)}1!==l[l.length-1]&&(l.push(1),o.push(null)),a.push([e,s,o,Object.assign(Object.assign(Object.assign({},n),{duration:u,easing:c,offset:l}),i)])}})),a}(t,e);for(let t=0;t<s.length;t++){const e=Z(...s[t]);e&&a.push(e)}return G(a,null!==(i=null===(n=s[0])||void 0===n?void 0:n[3].duration)&&void 0!==i?i:P.duration)},Object.defineProperty(t,"__esModule",{value:!0})}));
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).Motion={})}(this,(function(t){"use strict";const e=new WeakMap;function n(t){return e.has(t)||e.set(t,{activeTransforms:[],activeAnimations:{}}),e.get(t)}function i(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const a=()=>{},s=t=>t,r=["","X","Y","Z"],o={x:"translateX",y:"translateY",z:"translateZ"},l={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:t=>t+"deg"},c={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:t=>t+"px"},rotate:l,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:s},skew:l},u=new Map,f=t=>`--motion-${t}`,h=["x","y","z"];["translate","scale","rotate","skew"].forEach((t=>{r.forEach((e=>{h.push(t+e),u.set(f(t+e),c[t])}))}));const p=(t,e)=>h.indexOf(t)-h.indexOf(e),d=new Set(h),y=t=>t.sort(p).reduce(m,"").trim(),m=(t,e)=>`${t} ${e}(var(${f(e)}))`,g=t=>t.startsWith("--"),v=new Set;const b=t=>1e3*t;function x(t){try{"finished"!==t.playState&&t.commitStyles(),t.cancel()}catch(t){}}const O=t=>Array.isArray(t)&&"number"!=typeof t[0],T=t=>(t=>Array.isArray(t)&&"number"==typeof t[0])(t)?w(t):t,w=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,S=t=>document.createElement("div").animate(t,{duration:.001}),M={cssRegisterProperty:()=>"undefined"!=typeof CSS&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{S({opacity:[1]})}catch(t){return!1}return!0},finished:()=>Boolean(S({opacity:[0,1]}).finished)},A={},j=Object.keys(M).reduce(((t,e)=>(t[e]=()=>(void 0===A[e]&&(A[e]=M[e]()),A[e]),t)),{}),P={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},k=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function D(t,e,n,i){if(t===e&&n===i)return s;const a=e=>function(t,e,n,i,a){let s,r,o=0;do{r=e+(n-e)/2,s=k(r,i,a)-t,s>0?n=r:e=r}while(Math.abs(s)>1e-7&&++o<12);return r}(e,0,1,t,n);return t=>0===t||1===t?t:k(a(t),e,i)}const E=(t,e="end")=>n=>{const i=(n="end"===e?Math.min(n,.999):Math.max(n,.001))*t,a="end"===e?Math.floor(i):Math.ceil(i);return s=0,r=1,o=a/t,Math.min(Math.max(o,s),r);var s,r,o},V={ease:D(.25,.1,.25,1),"ease-in":D(.42,0,1,1),"ease-in-out":D(.42,0,.58,1),"ease-out":D(0,0,.58,1)},$=/\((.*?)\)/;function R(t){if("function"==typeof t)return t;if(Array.isArray(t))return D(...t);if(V[t])return V[t];if(t.startsWith("steps")){const e=$.exec(t);if(e){const t=e[1].split(",");return E(parseFloat(t[0]),t[1].trim())}}return s}const U=(t,e,n)=>-n*t+n*e+t,W=(t,e,n)=>e-t==0?1:(n-t)/(e-t);function F(t,e){return O(t)?t[((t,e,n)=>{const i=e-t;return((n-t)%i+i)%i+t})(0,t.length,e)]:t}function q(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const a=W(0,e,i);t.push(U(n,1,a))}}function C(t){const e=[0];return q(e,t-1),e}function z(t,e=C(t.length),n=s){const i=t.length,a=i-e.length;return a>0&&q(e,a),a=>{let s=0;for(;s<i-2&&!(a<e[s+1]);s++);let r=(o=W(e[s],e[s+1],a),Math.min(1,Math.max(o,0)));var o;return r=F(n,s)(r),U(t[s],t[s+1],r)}}class K{constructor(t,e,{easing:n=P.easing,duration:i=P.duration,delay:a=P.delay,endDelay:s=P.endDelay,offset:r,repeat:o=P.repeat,direction:l="normal"}){this.startTime=0,this.rate=1,this.t=0,this.cancelT=0,this.playState="idle",this.finished=new Promise(((t,e)=>{this.resolve=t,this.reject=e}));const c=i*(o+1),u=z(e,r,O(n)?n.map(R):R(n));this.tick=e=>{if("finished"===this.playState){const e=u(1);return t(e),void this.resolve(e)}this.pauseTime&&(e=this.pauseTime);let n=(e-this.startTime)*this.rate;this.t=n,n/=1e3,n=Math.max(n-a,0);const r=n/i;let o=Math.floor(r),f=r%1;!f&&r>=1&&(f=1),1===f&&o--;const h=o%2;("reverse"===l||"alternate"===l&&h||"alternate-reverse"===l&&!h)&&(f=1-f);const p=n>=c?1:Math.min(f,1),d=u(p);t(d);n>=c+s?(this.playState="finished",this.resolve(d)):"idle"!==this.playState&&requestAnimationFrame(this.tick)},this.play()}play(){const t=performance.now();this.playState="running",this.pauseTime?this.startTime=t-(this.pauseTime-this.startTime):this.startTime||(this.startTime=t),this.pauseTime=void 0,requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=performance.now()}finish(){this.playState="finished",this.tick(0)}cancel(){this.playState="idle",this.tick(this.cancelT),this.reject(!1)}reverse(){this.rate*=-1}commitStyles(){this.cancelT=this.t}get currentTime(){return this.t}set currentTime(t){this.pauseTime||0===this.rate?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}}const X=(t,e)=>{let n=g(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!n&&0!==n){const t=u.get(e);t&&(n=t.initialValue)}return n};const Y=t=>Array.isArray(t)?t:[t];function Z(t,e,i,s={}){let{duration:r=P.duration,delay:l=P.delay,endDelay:c=P.endDelay,repeat:h=P.repeat,easing:p=P.easing,direction:m,offset:w,allowWebkitAcceleration:S=!1}=s;const M=n(t);let A=j.waapi(),k=a;const D=(t=>d.has(t))(e);D&&(o[e]&&(e=o[e]),((t,e)=>{const{activeTransforms:i}=n(t);var a,s;s=e,-1===(a=i).indexOf(s)&&a.push(s),t.style.transform=y(i)})(t,e),e=f(e));const E=u.get(e);let V,$=function(t,e,n){for(let i=0;i<t.length;i++)null===t[i]&&(t[i]=i?t[i-1]:X(e,n));return t}(Y(i),t,e);if(function(t,e){t.activeAnimations[e]&&(x(t.activeAnimations[e]),t.activeAnimations[e]=void 0)}(M,e),g(e)?(k=((t,e)=>n=>t.style.setProperty(e,n))(t,e),j.cssRegisterProperty()?function(t){if(!v.has(t)){v.add(t);try{const{syntax:e,initialValue:n}=u.has(t)?u.get(t):{};CSS.registerProperty({name:t,inherits:!1,syntax:e,initialValue:n})}catch(t){}}}(e):A=!1):k=((t,e)=>n=>t.style[e]=n)(t,e),A){E&&($=$.map((t=>"number"==typeof t?E.toDefaultUnit(t):t))),j.partialKeyframes()||1!==$.length||$.unshift(X(t,e));const n={delay:b(l),duration:b(r),endDelay:b(c),easing:O(p)?void 0:T(p),direction:m,iterations:h+1,fill:"both"};V=t.animate({[e]:$,offset:w,easing:O(p)?p.map(T):void 0},n),V.finished||(V.finished=new Promise(((t,e)=>{V.onfinish=t,V.oncancel=e})));const i=$[$.length-1];V.finished.then((()=>k(i))).catch(a),S||(V.playbackRate=1.000001)}else if(D&&$.every(_)){if(1===$.length&&$.unshift(X(t,e)||(null==E?void 0:E.initialValue)||0),$=$.map((t=>"string"==typeof t?parseFloat(t):t)),E){const t=k;k=e=>t(E.toDefaultUnit(e))}V=function(t,e=[0,1],n={}){return new K(t,e,n)}(k,$,s)}else{const t=$[$.length-1];k(E&&"number"==typeof t?E.toDefaultUnit(t):t)}return M.activeAnimations[e]=V,null==V||V.finished.then((()=>M.activeAnimations[e]=void 0)).catch(a),V}const _=t=>"number"==typeof t,B=(t,e)=>t[e]?Object.assign(Object.assign({},t),t[e]):Object.assign({},t);function I(t,e){var n;return"string"==typeof t?e?(null!==(n=e[t])&&void 0!==n||(e[t]=document.querySelectorAll(t)),t=e[t]):t=document.querySelectorAll(t):t instanceof Element&&(t=[t]),Array.from(t)}const G=(t,e)=>new Proxy({animations:t,duration:e},J),H=t=>t.animations[0],J={get:(t,e)=>{var n,i;switch(e){case"duration":return t.duration;case"currentTime":let s=(null===(n=H(t))||void 0===n?void 0:n[e])||0;return s?s/1e3:0;case"playbackRate":return null===(i=H(t))||void 0===i?void 0:i[e];case"finished":return t.finished||(t.finished=Promise.all(t.animations.map(L)).catch(a)),t.finished;case"stop":return()=>t.animations.forEach(x);default:return()=>t.animations.forEach((t=>t[e]()))}},set:(t,e,n)=>{switch(e){case"currentTime":n=b(n);case"currentTime":case"playbackRate":for(let i=0;i<t.animations.length;i++)t.animations[i][e]=n;return!0}return!1}},L=t=>t.finished;function N(t,e,n){return"function"==typeof t?t(e,n):t}function Q(t,e,n,i){var a;return"number"==typeof e?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):"<"===e?n:null!==(a=i.get(e))&&void 0!==a?a:t}function tt(t,e,n,a,s,r){!function(t,e,n){for(let a=0;a<t.length;a++){const s=t[a];s.at>e&&s.at<n&&(i(t,s),a--)}}(t,s,r);for(let i=0;i<e.length;i++)t.push({value:e[i],at:U(s,r,a[i]),easing:F(n,i)})}function et(t,e){return t.at===e.at?null===t.value?1:-1:t.at-e.at}function nt(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function it(t,e){return e[t]||(e[t]=[]),e[t]}t.animate=function(t,e,n={}){var i;const a=[],s=(t=I(t)).length;for(let i=0;i<s;i++){const r=t[i];for(const t in e){const o=B(n,t);o.delay=N(o.delay,i,s);const l=Z(r,t,e[t],o);l&&a.push(l)}}return G(a,null!==(i=n.duration)&&void 0!==i?i:P.duration)},t.animateStyle=Z,t.stagger=function(t=.1,{start:e=0,from:n=0,easing:i}={}){return(a,s)=>{const r="number"==typeof n?n:function(t,e){if("first"===t)return 0;{const n=e-1;return"last"===t?n:n/2}}(n,s),o=Math.abs(r-a);let l=t*o;if(i){const t=s*a;l=R(i)(l/t)*t}return e+l}},t.timeline=function(t,e={}){var n,i;const a=[],s=function(t,e={}){var{defaultOptions:n={}}=e,i=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(t);a<i.length;a++)e.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(t,i[a])&&(n[i[a]]=t[i[a]])}return n}(e,["defaultOptions"]);const a=[],s=new Map,r={},o=new Map;let l=0,c=0,u=0;for(let e=0;e<t.length;e++){const[i,a,f={}]=t[e];void 0!==f.at&&(c=Q(c,f.at,l,o));let h=0;const p=I(i,r),d=p.length;for(let t=0;t<d;t++){const e=nt(p[t],s);for(const i in a){const s=it(i,e),r=Y(a[i]),o=B(f,i),{duration:l=n.duration||P.duration,easing:p=n.easing||P.easing,offset:y=C(r.length)}=o,m=N(f.delay,t,d)||0,g=c+m,v=g+l;1===y.length&&0===y[0]&&(y[1]=1);const b=length-r.length;b>0&&q(y,b),1===r.length&&r.unshift(null),tt(s,r,p,y,g,v),h=Math.max(m+l,h),u=Math.max(v,u)}}l=c,c+=h}return s.forEach(((t,e)=>{for(const s in t){const r=t[s];r.sort(et);const o=[],l=[],c=[];for(let t=0;t<r.length;t++){const{at:e,value:n,easing:i}=r[t];o.push(n),l.push(W(0,u,e)),c.push(i||P.easing)}1!==l[l.length-1]&&(l.push(1),o.push(null)),a.push([e,s,o,Object.assign(Object.assign(Object.assign({},n),{duration:u,easing:c,offset:l}),i)])}})),a}(t,e);for(let t=0;t<s.length;t++){const e=Z(...s[t]);e&&a.push(e)}return G(a,null!==(i=null===(n=s[0])||void 0===n?void 0:n[3].duration)&&void 0!==i?i:P.duration)},Object.defineProperty(t,"__esModule",{value:!0})}));

@@ -564,7 +564,3 @@ (function (global, factory) {

iterations: repeat + 1,
/**
* This allows `currentTime` to be set as `duration`. Otherwise, the animation
* effect is considered finished and is removed entirely.
*/
fill: "forwards",
fill: "both",
};

@@ -571,0 +567,0 @@ animation = element.animate({

@@ -1,1 +0,1 @@

const t=new WeakMap;function e(e){return t.has(e)||t.set(e,{activeTransforms:[],activeAnimations:{}}),t.get(e)}const n=()=>{},i=t=>t,a=["","X","Y","Z"],s={x:"translateX",y:"translateY",z:"translateZ"},r={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:t=>t+"deg"},o={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:t=>t+"px"},rotate:r,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:i},skew:r},c=new Map,l=t=>`--motion-${t}`,u=["x","y","z"];["translate","scale","rotate","skew"].forEach((t=>{a.forEach((e=>{u.push(t+e),c.set(l(t+e),o[t])}))}));const h=(t,e)=>u.indexOf(t)-u.indexOf(e),f=new Set(u),m=t=>t.sort(h).reduce(d,"").trim(),d=(t,e)=>`${t} ${e}(var(${l(e)}))`,y=t=>t.startsWith("--"),p=new Set;const g=t=>1e3*t;function v(t){try{"finished"!==t.playState&&t.commitStyles(),t.cancel()}catch(t){}}const T=t=>Array.isArray(t)&&"number"!=typeof t[0],w=t=>(t=>Array.isArray(t)&&"number"==typeof t[0])(t)?S(t):t,S=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,b=t=>document.createElement("div").animate(t,{duration:.001}),A={cssRegisterProperty:()=>"undefined"!=typeof CSS&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{b({opacity:[1]})}catch(t){return!1}return!0},finished:()=>Boolean(b({opacity:[0,1]}).finished)},x={},k=Object.keys(A).reduce(((t,e)=>(t[e]=()=>(void 0===x[e]&&(x[e]=A[e]()),x[e]),t)),{}),M={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},D=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function P(t,e,n,a){if(t===e&&n===a)return i;const s=e=>function(t,e,n,i,a){let s,r,o=0;do{r=e+(n-e)/2,s=D(r,i,a)-t,s>0?n=r:e=r}while(Math.abs(s)>1e-7&&++o<12);return r}(e,0,1,t,n);return t=>0===t||1===t?t:D(s(t),e,a)}const O=(t,e="end")=>n=>{const i=(n="end"===e?Math.min(n,.999):Math.max(n,.001))*t,a="end"===e?Math.floor(i):Math.ceil(i);return s=0,r=1,o=a/t,Math.min(Math.max(o,s),r);var s,r,o},j={ease:P(.25,.1,.25,1),"ease-in":P(.42,0,1,1),"ease-in-out":P(.42,0,.58,1),"ease-out":P(0,0,.58,1)},V=/\((.*?)\)/;function $(t){if("function"==typeof t)return t;if(Array.isArray(t))return P(...t);if(j[t])return j[t];if(t.startsWith("steps")){const e=V.exec(t);if(e){const t=e[1].split(",");return O(parseFloat(t[0]),t[1].trim())}}return i}const E=(t,e,n)=>-n*t+n*e+t,R=(t,e,n)=>e-t==0?1:(n-t)/(e-t);function U(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const a=R(0,e,i);t.push(E(n,1,a))}}function q(t,e=function(t){const e=[0];return U(e,t-1),e}(t.length),n=i){const a=t.length,s=a-e.length;return s>0&&U(e,s),i=>{let s=0;for(;s<a-2&&!(i<e[s+1]);s++);let r=(o=R(e[s],e[s+1],i),Math.min(1,Math.max(o,0)));var o;return r=function(t,e){return T(t)?t[((t,e,n)=>{const i=e-t;return((n-t)%i+i)%i+t})(0,t.length,e)]:t}(n,s)(r),E(t[s],t[s+1],r)}}class C{constructor(t,e,{easing:n=M.easing,duration:i=M.duration,delay:a=M.delay,endDelay:s=M.endDelay,offset:r,repeat:o=M.repeat,direction:c="normal"}){this.startTime=0,this.rate=1,this.t=0,this.cancelT=0,this.playState="idle",this.finished=new Promise(((t,e)=>{this.resolve=t,this.reject=e}));const l=i*(o+1),u=q(e,r,T(n)?n.map($):$(n));this.tick=e=>{if("finished"===this.playState){const e=u(1);return t(e),void this.resolve(e)}this.pauseTime&&(e=this.pauseTime);let n=(e-this.startTime)*this.rate;this.t=n,n/=1e3,n=Math.max(n-a,0);const r=n/i;let o=Math.floor(r),h=r%1;!h&&r>=1&&(h=1),1===h&&o--;const f=o%2;("reverse"===c||"alternate"===c&&f||"alternate-reverse"===c&&!f)&&(h=1-h);const m=n>=l?1:Math.min(h,1),d=u(m);t(d);n>=l+s?(this.playState="finished",this.resolve(d)):"idle"!==this.playState&&requestAnimationFrame(this.tick)},this.play()}play(){const t=performance.now();this.playState="running",this.pauseTime?this.startTime=t-(this.pauseTime-this.startTime):this.startTime||(this.startTime=t),this.pauseTime=void 0,requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=performance.now()}finish(){this.playState="finished",this.tick(0)}cancel(){this.playState="idle",this.tick(this.cancelT),this.reject(!1)}reverse(){this.rate*=-1}commitStyles(){this.cancelT=this.t}get currentTime(){return this.t}set currentTime(t){this.pauseTime||0===this.rate?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}}const F=(t,e)=>{let n=y(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!n&&0!==n){const t=c.get(e);t&&(n=t.initialValue)}return n};function W(t,i,a,r={}){let{duration:o=M.duration,delay:u=M.delay,endDelay:h=M.endDelay,repeat:d=M.repeat,easing:S=M.easing,direction:b,offset:A,allowWebkitAcceleration:x=!1}=r;const D=e(t);let P=k.waapi(),O=n;const j=(t=>f.has(t))(i);j&&(s[i]&&(i=s[i]),((t,n)=>{const{activeTransforms:i}=e(t);var a,s;s=n,-1===(a=i).indexOf(s)&&a.push(s),t.style.transform=m(i)})(t,i),i=l(i));const V=c.get(i);let $,E=function(t,e,n){for(let i=0;i<t.length;i++)null===t[i]&&(t[i]=i?t[i-1]:F(e,n));return t}((t=>Array.isArray(t)?t:[t])(a),t,i);if(function(t,e){t.activeAnimations[e]&&(v(t.activeAnimations[e]),t.activeAnimations[e]=void 0)}(D,i),y(i)?(O=((t,e)=>n=>t.style.setProperty(e,n))(t,i),k.cssRegisterProperty()?function(t){if(!p.has(t)){p.add(t);try{const{syntax:e,initialValue:n}=c.has(t)?c.get(t):{};CSS.registerProperty({name:t,inherits:!1,syntax:e,initialValue:n})}catch(t){}}}(i):P=!1):O=((t,e)=>n=>t.style[e]=n)(t,i),P){V&&(E=E.map((t=>"number"==typeof t?V.toDefaultUnit(t):t))),k.partialKeyframes()||1!==E.length||E.unshift(F(t,i));const e={delay:g(u),duration:g(o),endDelay:g(h),easing:T(S)?void 0:w(S),direction:b,iterations:d+1,fill:"forwards"};$=t.animate({[i]:E,offset:A,easing:T(S)?S.map(w):void 0},e),$.finished||($.finished=new Promise(((t,e)=>{$.onfinish=t,$.oncancel=e})));const a=E[E.length-1];$.finished.then((()=>O(a))).catch(n),x||($.playbackRate=1.000001)}else if(j&&E.every(z)){if(1===E.length&&E.unshift(F(t,i)||(null==V?void 0:V.initialValue)||0),E=E.map((t=>"string"==typeof t?parseFloat(t):t)),V){const t=O;O=e=>t(V.toDefaultUnit(e))}$=function(t,e=[0,1],n={}){return new C(t,e,n)}(O,E,r)}else{const t=E[E.length-1];O(V&&"number"==typeof t?V.toDefaultUnit(t):t)}return D.activeAnimations[i]=$,null==$||$.finished.then((()=>D.activeAnimations[i]=void 0)).catch(n),$}const z=t=>"number"==typeof t,K=(t,e)=>t[e]?Object.assign(Object.assign({},t),t[e]):Object.assign({},t);const X=t=>t.animations[0],Y={get:(t,e)=>{var i,a;switch(e){case"duration":return t.duration;case"currentTime":let s=(null===(i=X(t))||void 0===i?void 0:i[e])||0;return s?s/1e3:0;case"playbackRate":return null===(a=X(t))||void 0===a?void 0:a[e];case"finished":return t.finished||(t.finished=Promise.all(t.animations.map(Z)).catch(n)),t.finished;case"stop":return()=>t.animations.forEach(v);default:return()=>t.animations.forEach((t=>t[e]()))}},set:(t,e,n)=>{switch(e){case"currentTime":n=g(n);case"currentTime":case"playbackRate":for(let i=0;i<t.animations.length;i++)t.animations[i][e]=n;return!0}return!1}},Z=t=>t.finished;function B(t,e,n){return"function"==typeof t?t(e,n):t}function G(t,e,n={}){var i;const a=[],s=(t=function(t,e){var n;return"string"==typeof t?e?(null!==(n=e[t])&&void 0!==n||(e[t]=document.querySelectorAll(t)),t=e[t]):t=document.querySelectorAll(t):t instanceof Element&&(t=[t]),Array.from(t)}(t)).length;for(let i=0;i<s;i++){const r=t[i];for(const t in e){const o=K(n,t);o.delay=B(o.delay,i,s);const c=W(r,t,e[t],o);c&&a.push(c)}}return((t,e)=>new Proxy({animations:t,duration:e},Y))(a,null!==(i=n.duration)&&void 0!==i?i:M.duration)}export{G as animate};
const t=new WeakMap;function e(e){return t.has(e)||t.set(e,{activeTransforms:[],activeAnimations:{}}),t.get(e)}const n=()=>{},i=t=>t,a=["","X","Y","Z"],s={x:"translateX",y:"translateY",z:"translateZ"},r={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:t=>t+"deg"},o={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:t=>t+"px"},rotate:r,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:i},skew:r},c=new Map,l=t=>`--motion-${t}`,u=["x","y","z"];["translate","scale","rotate","skew"].forEach((t=>{a.forEach((e=>{u.push(t+e),c.set(l(t+e),o[t])}))}));const h=(t,e)=>u.indexOf(t)-u.indexOf(e),f=new Set(u),m=t=>t.sort(h).reduce(d,"").trim(),d=(t,e)=>`${t} ${e}(var(${l(e)}))`,y=t=>t.startsWith("--"),p=new Set;const g=t=>1e3*t;function v(t){try{"finished"!==t.playState&&t.commitStyles(),t.cancel()}catch(t){}}const T=t=>Array.isArray(t)&&"number"!=typeof t[0],b=t=>(t=>Array.isArray(t)&&"number"==typeof t[0])(t)?S(t):t,S=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,w=t=>document.createElement("div").animate(t,{duration:.001}),A={cssRegisterProperty:()=>"undefined"!=typeof CSS&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{w({opacity:[1]})}catch(t){return!1}return!0},finished:()=>Boolean(w({opacity:[0,1]}).finished)},x={},k=Object.keys(A).reduce(((t,e)=>(t[e]=()=>(void 0===x[e]&&(x[e]=A[e]()),x[e]),t)),{}),M={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},D=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function P(t,e,n,a){if(t===e&&n===a)return i;const s=e=>function(t,e,n,i,a){let s,r,o=0;do{r=e+(n-e)/2,s=D(r,i,a)-t,s>0?n=r:e=r}while(Math.abs(s)>1e-7&&++o<12);return r}(e,0,1,t,n);return t=>0===t||1===t?t:D(s(t),e,a)}const O=(t,e="end")=>n=>{const i=(n="end"===e?Math.min(n,.999):Math.max(n,.001))*t,a="end"===e?Math.floor(i):Math.ceil(i);return s=0,r=1,o=a/t,Math.min(Math.max(o,s),r);var s,r,o},j={ease:P(.25,.1,.25,1),"ease-in":P(.42,0,1,1),"ease-in-out":P(.42,0,.58,1),"ease-out":P(0,0,.58,1)},V=/\((.*?)\)/;function $(t){if("function"==typeof t)return t;if(Array.isArray(t))return P(...t);if(j[t])return j[t];if(t.startsWith("steps")){const e=V.exec(t);if(e){const t=e[1].split(",");return O(parseFloat(t[0]),t[1].trim())}}return i}const E=(t,e,n)=>-n*t+n*e+t,R=(t,e,n)=>e-t==0?1:(n-t)/(e-t);function U(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const a=R(0,e,i);t.push(E(n,1,a))}}function q(t,e=function(t){const e=[0];return U(e,t-1),e}(t.length),n=i){const a=t.length,s=a-e.length;return s>0&&U(e,s),i=>{let s=0;for(;s<a-2&&!(i<e[s+1]);s++);let r=(o=R(e[s],e[s+1],i),Math.min(1,Math.max(o,0)));var o;return r=function(t,e){return T(t)?t[((t,e,n)=>{const i=e-t;return((n-t)%i+i)%i+t})(0,t.length,e)]:t}(n,s)(r),E(t[s],t[s+1],r)}}class C{constructor(t,e,{easing:n=M.easing,duration:i=M.duration,delay:a=M.delay,endDelay:s=M.endDelay,offset:r,repeat:o=M.repeat,direction:c="normal"}){this.startTime=0,this.rate=1,this.t=0,this.cancelT=0,this.playState="idle",this.finished=new Promise(((t,e)=>{this.resolve=t,this.reject=e}));const l=i*(o+1),u=q(e,r,T(n)?n.map($):$(n));this.tick=e=>{if("finished"===this.playState){const e=u(1);return t(e),void this.resolve(e)}this.pauseTime&&(e=this.pauseTime);let n=(e-this.startTime)*this.rate;this.t=n,n/=1e3,n=Math.max(n-a,0);const r=n/i;let o=Math.floor(r),h=r%1;!h&&r>=1&&(h=1),1===h&&o--;const f=o%2;("reverse"===c||"alternate"===c&&f||"alternate-reverse"===c&&!f)&&(h=1-h);const m=n>=l?1:Math.min(h,1),d=u(m);t(d);n>=l+s?(this.playState="finished",this.resolve(d)):"idle"!==this.playState&&requestAnimationFrame(this.tick)},this.play()}play(){const t=performance.now();this.playState="running",this.pauseTime?this.startTime=t-(this.pauseTime-this.startTime):this.startTime||(this.startTime=t),this.pauseTime=void 0,requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=performance.now()}finish(){this.playState="finished",this.tick(0)}cancel(){this.playState="idle",this.tick(this.cancelT),this.reject(!1)}reverse(){this.rate*=-1}commitStyles(){this.cancelT=this.t}get currentTime(){return this.t}set currentTime(t){this.pauseTime||0===this.rate?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}}const F=(t,e)=>{let n=y(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!n&&0!==n){const t=c.get(e);t&&(n=t.initialValue)}return n};function W(t,i,a,r={}){let{duration:o=M.duration,delay:u=M.delay,endDelay:h=M.endDelay,repeat:d=M.repeat,easing:S=M.easing,direction:w,offset:A,allowWebkitAcceleration:x=!1}=r;const D=e(t);let P=k.waapi(),O=n;const j=(t=>f.has(t))(i);j&&(s[i]&&(i=s[i]),((t,n)=>{const{activeTransforms:i}=e(t);var a,s;s=n,-1===(a=i).indexOf(s)&&a.push(s),t.style.transform=m(i)})(t,i),i=l(i));const V=c.get(i);let $,E=function(t,e,n){for(let i=0;i<t.length;i++)null===t[i]&&(t[i]=i?t[i-1]:F(e,n));return t}((t=>Array.isArray(t)?t:[t])(a),t,i);if(function(t,e){t.activeAnimations[e]&&(v(t.activeAnimations[e]),t.activeAnimations[e]=void 0)}(D,i),y(i)?(O=((t,e)=>n=>t.style.setProperty(e,n))(t,i),k.cssRegisterProperty()?function(t){if(!p.has(t)){p.add(t);try{const{syntax:e,initialValue:n}=c.has(t)?c.get(t):{};CSS.registerProperty({name:t,inherits:!1,syntax:e,initialValue:n})}catch(t){}}}(i):P=!1):O=((t,e)=>n=>t.style[e]=n)(t,i),P){V&&(E=E.map((t=>"number"==typeof t?V.toDefaultUnit(t):t))),k.partialKeyframes()||1!==E.length||E.unshift(F(t,i));const e={delay:g(u),duration:g(o),endDelay:g(h),easing:T(S)?void 0:b(S),direction:w,iterations:d+1,fill:"both"};$=t.animate({[i]:E,offset:A,easing:T(S)?S.map(b):void 0},e),$.finished||($.finished=new Promise(((t,e)=>{$.onfinish=t,$.oncancel=e})));const a=E[E.length-1];$.finished.then((()=>O(a))).catch(n),x||($.playbackRate=1.000001)}else if(j&&E.every(z)){if(1===E.length&&E.unshift(F(t,i)||(null==V?void 0:V.initialValue)||0),E=E.map((t=>"string"==typeof t?parseFloat(t):t)),V){const t=O;O=e=>t(V.toDefaultUnit(e))}$=function(t,e=[0,1],n={}){return new C(t,e,n)}(O,E,r)}else{const t=E[E.length-1];O(V&&"number"==typeof t?V.toDefaultUnit(t):t)}return D.activeAnimations[i]=$,null==$||$.finished.then((()=>D.activeAnimations[i]=void 0)).catch(n),$}const z=t=>"number"==typeof t,K=(t,e)=>t[e]?Object.assign(Object.assign({},t),t[e]):Object.assign({},t);const X=t=>t.animations[0],Y={get:(t,e)=>{var i,a;switch(e){case"duration":return t.duration;case"currentTime":let s=(null===(i=X(t))||void 0===i?void 0:i[e])||0;return s?s/1e3:0;case"playbackRate":return null===(a=X(t))||void 0===a?void 0:a[e];case"finished":return t.finished||(t.finished=Promise.all(t.animations.map(Z)).catch(n)),t.finished;case"stop":return()=>t.animations.forEach(v);default:return()=>t.animations.forEach((t=>t[e]()))}},set:(t,e,n)=>{switch(e){case"currentTime":n=g(n);case"currentTime":case"playbackRate":for(let i=0;i<t.animations.length;i++)t.animations[i][e]=n;return!0}return!1}},Z=t=>t.finished;function B(t,e,n){return"function"==typeof t?t(e,n):t}function G(t,e,n={}){var i;const a=[],s=(t=function(t,e){var n;return"string"==typeof t?e?(null!==(n=e[t])&&void 0!==n||(e[t]=document.querySelectorAll(t)),t=e[t]):t=document.querySelectorAll(t):t instanceof Element&&(t=[t]),Array.from(t)}(t)).length;for(let i=0;i<s;i++){const r=t[i];for(const t in e){const o=K(n,t);o.delay=B(o.delay,i,s);const c=W(r,t,e[t],o);c&&a.push(c)}}return((t,e)=>new Proxy({animations:t,duration:e},Y))(a,null!==(i=n.duration)&&void 0!==i?i:M.duration)}export{G as animate};

@@ -1,1 +0,1 @@

const t=new WeakMap;function e(e){return t.has(e)||t.set(e,{activeTransforms:[],activeAnimations:{}}),t.get(e)}const i=()=>{},n=t=>t,a=["","X","Y","Z"],s={x:"translateX",y:"translateY",z:"translateZ"},r={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:t=>t+"deg"},o={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:t=>t+"px"},rotate:r,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:n},skew:r},l=new Map,c=t=>`--motion-${t}`,h=["x","y","z"];["translate","scale","rotate","skew"].forEach((t=>{a.forEach((e=>{h.push(t+e),l.set(c(t+e),o[t])}))}));const u=(t,e)=>h.indexOf(t)-h.indexOf(e),f=new Set(h),p=t=>t.sort(u).reduce(y,"").trim(),y=(t,e)=>`${t} ${e}(var(${c(e)}))`,m=t=>t.startsWith("--"),d=new Set;const g=t=>1e3*t;const v=t=>Array.isArray(t)&&"number"!=typeof t[0],T=t=>(t=>Array.isArray(t)&&"number"==typeof t[0])(t)?S(t):t,S=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,w=t=>document.createElement("div").animate(t,{duration:.001}),x={cssRegisterProperty:()=>"undefined"!=typeof CSS&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{w({opacity:[1]})}catch(t){return!1}return!0},finished:()=>Boolean(w({opacity:[0,1]}).finished)},A={},b=Object.keys(x).reduce(((t,e)=>(t[e]=()=>(void 0===A[e]&&(A[e]=x[e]()),A[e]),t)),{}),M={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},k=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function D(t,e,i,a){if(t===e&&i===a)return n;const s=e=>function(t,e,i,n,a){let s,r,o=0;do{r=e+(i-e)/2,s=k(r,n,a)-t,s>0?i=r:e=r}while(Math.abs(s)>1e-7&&++o<12);return r}(e,0,1,t,i);return t=>0===t||1===t?t:k(s(t),e,a)}const P=(t,e="end")=>i=>{const n=(i="end"===e?Math.min(i,.999):Math.max(i,.001))*t,a="end"===e?Math.floor(n):Math.ceil(n);return s=0,r=1,o=a/t,Math.min(Math.max(o,s),r);var s,r,o},O={ease:D(.25,.1,.25,1),"ease-in":D(.42,0,1,1),"ease-in-out":D(.42,0,.58,1),"ease-out":D(0,0,.58,1)},V=/\((.*?)\)/;function $(t){if("function"==typeof t)return t;if(Array.isArray(t))return D(...t);if(O[t])return O[t];if(t.startsWith("steps")){const e=V.exec(t);if(e){const t=e[1].split(",");return P(parseFloat(t[0]),t[1].trim())}}return n}const U=(t,e,i)=>-i*t+i*e+t,j=(t,e,i)=>e-t==0?1:(i-t)/(e-t);function R(t,e){const i=t[t.length-1];for(let n=1;n<=e;n++){const a=j(0,e,n);t.push(U(i,1,a))}}function C(t,e=function(t){const e=[0];return R(e,t-1),e}(t.length),i=n){const a=t.length,s=a-e.length;return s>0&&R(e,s),n=>{let s=0;for(;s<a-2&&!(n<e[s+1]);s++);let r=(o=j(e[s],e[s+1],n),Math.min(1,Math.max(o,0)));var o;return r=function(t,e){return v(t)?t[((t,e,i)=>{const n=e-t;return((i-t)%n+n)%n+t})(0,t.length,e)]:t}(i,s)(r),U(t[s],t[s+1],r)}}class E{constructor(t,e,{easing:i=M.easing,duration:n=M.duration,delay:a=M.delay,endDelay:s=M.endDelay,offset:r,repeat:o=M.repeat,direction:l="normal"}){this.startTime=0,this.rate=1,this.t=0,this.cancelT=0,this.playState="idle",this.finished=new Promise(((t,e)=>{this.resolve=t,this.reject=e}));const c=n*(o+1),h=C(e,r,v(i)?i.map($):$(i));this.tick=e=>{if("finished"===this.playState){const e=h(1);return t(e),void this.resolve(e)}this.pauseTime&&(e=this.pauseTime);let i=(e-this.startTime)*this.rate;this.t=i,i/=1e3,i=Math.max(i-a,0);const r=i/n;let o=Math.floor(r),u=r%1;!u&&r>=1&&(u=1),1===u&&o--;const f=o%2;("reverse"===l||"alternate"===l&&f||"alternate-reverse"===l&&!f)&&(u=1-u);const p=i>=c?1:Math.min(u,1),y=h(p);t(y);i>=c+s?(this.playState="finished",this.resolve(y)):"idle"!==this.playState&&requestAnimationFrame(this.tick)},this.play()}play(){const t=performance.now();this.playState="running",this.pauseTime?this.startTime=t-(this.pauseTime-this.startTime):this.startTime||(this.startTime=t),this.pauseTime=void 0,requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=performance.now()}finish(){this.playState="finished",this.tick(0)}cancel(){this.playState="idle",this.tick(this.cancelT),this.reject(!1)}reverse(){this.rate*=-1}commitStyles(){this.cancelT=this.t}get currentTime(){return this.t}set currentTime(t){this.pauseTime||0===this.rate?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}}const F=(t,e)=>{let i=m(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!i&&0!==i){const t=l.get(e);t&&(i=t.initialValue)}return i};function W(t,n,a,r={}){let{duration:o=M.duration,delay:h=M.delay,endDelay:u=M.endDelay,repeat:y=M.repeat,easing:S=M.easing,direction:w,offset:x,allowWebkitAcceleration:A=!1}=r;const k=e(t);let D=b.waapi(),P=i;const O=(t=>f.has(t))(n);O&&(s[n]&&(n=s[n]),((t,i)=>{const{activeTransforms:n}=e(t);var a,s;s=i,-1===(a=n).indexOf(s)&&a.push(s),t.style.transform=p(n)})(t,n),n=c(n));const V=l.get(n);let $,U=function(t,e,i){for(let n=0;n<t.length;n++)null===t[n]&&(t[n]=n?t[n-1]:F(e,i));return t}((t=>Array.isArray(t)?t:[t])(a),t,n);if(function(t,e){t.activeAnimations[e]&&(!function(t){try{"finished"!==t.playState&&t.commitStyles(),t.cancel()}catch(t){}}(t.activeAnimations[e]),t.activeAnimations[e]=void 0)}(k,n),m(n)?(P=((t,e)=>i=>t.style.setProperty(e,i))(t,n),b.cssRegisterProperty()?function(t){if(!d.has(t)){d.add(t);try{const{syntax:e,initialValue:i}=l.has(t)?l.get(t):{};CSS.registerProperty({name:t,inherits:!1,syntax:e,initialValue:i})}catch(t){}}}(n):D=!1):P=((t,e)=>i=>t.style[e]=i)(t,n),D){V&&(U=U.map((t=>"number"==typeof t?V.toDefaultUnit(t):t))),b.partialKeyframes()||1!==U.length||U.unshift(F(t,n));const e={delay:g(h),duration:g(o),endDelay:g(u),easing:v(S)?void 0:T(S),direction:w,iterations:y+1,fill:"forwards"};$=t.animate({[n]:U,offset:x,easing:v(S)?S.map(T):void 0},e),$.finished||($.finished=new Promise(((t,e)=>{$.onfinish=t,$.oncancel=e})));const a=U[U.length-1];$.finished.then((()=>P(a))).catch(i),A||($.playbackRate=1.000001)}else if(O&&U.every(z)){if(1===U.length&&U.unshift(F(t,n)||(null==V?void 0:V.initialValue)||0),U=U.map((t=>"string"==typeof t?parseFloat(t):t)),V){const t=P;P=e=>t(V.toDefaultUnit(e))}$=function(t,e=[0,1],i={}){return new E(t,e,i)}(P,U,r)}else{const t=U[U.length-1];P(V&&"number"==typeof t?V.toDefaultUnit(t):t)}return k.activeAnimations[n]=$,null==$||$.finished.then((()=>k.activeAnimations[n]=void 0)).catch(i),$}const z=t=>"number"==typeof t;export{W as animateStyle};
const t=new WeakMap;function e(e){return t.has(e)||t.set(e,{activeTransforms:[],activeAnimations:{}}),t.get(e)}const i=()=>{},n=t=>t,a=["","X","Y","Z"],s={x:"translateX",y:"translateY",z:"translateZ"},r={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:t=>t+"deg"},o={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:t=>t+"px"},rotate:r,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:n},skew:r},l=new Map,c=t=>`--motion-${t}`,h=["x","y","z"];["translate","scale","rotate","skew"].forEach((t=>{a.forEach((e=>{h.push(t+e),l.set(c(t+e),o[t])}))}));const u=(t,e)=>h.indexOf(t)-h.indexOf(e),f=new Set(h),p=t=>t.sort(u).reduce(y,"").trim(),y=(t,e)=>`${t} ${e}(var(${c(e)}))`,m=t=>t.startsWith("--"),d=new Set;const g=t=>1e3*t;const v=t=>Array.isArray(t)&&"number"!=typeof t[0],T=t=>(t=>Array.isArray(t)&&"number"==typeof t[0])(t)?S(t):t,S=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,w=t=>document.createElement("div").animate(t,{duration:.001}),x={cssRegisterProperty:()=>"undefined"!=typeof CSS&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{w({opacity:[1]})}catch(t){return!1}return!0},finished:()=>Boolean(w({opacity:[0,1]}).finished)},b={},A=Object.keys(x).reduce(((t,e)=>(t[e]=()=>(void 0===b[e]&&(b[e]=x[e]()),b[e]),t)),{}),M={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},k=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function D(t,e,i,a){if(t===e&&i===a)return n;const s=e=>function(t,e,i,n,a){let s,r,o=0;do{r=e+(i-e)/2,s=k(r,n,a)-t,s>0?i=r:e=r}while(Math.abs(s)>1e-7&&++o<12);return r}(e,0,1,t,i);return t=>0===t||1===t?t:k(s(t),e,a)}const P=(t,e="end")=>i=>{const n=(i="end"===e?Math.min(i,.999):Math.max(i,.001))*t,a="end"===e?Math.floor(n):Math.ceil(n);return s=0,r=1,o=a/t,Math.min(Math.max(o,s),r);var s,r,o},O={ease:D(.25,.1,.25,1),"ease-in":D(.42,0,1,1),"ease-in-out":D(.42,0,.58,1),"ease-out":D(0,0,.58,1)},V=/\((.*?)\)/;function $(t){if("function"==typeof t)return t;if(Array.isArray(t))return D(...t);if(O[t])return O[t];if(t.startsWith("steps")){const e=V.exec(t);if(e){const t=e[1].split(",");return P(parseFloat(t[0]),t[1].trim())}}return n}const U=(t,e,i)=>-i*t+i*e+t,j=(t,e,i)=>e-t==0?1:(i-t)/(e-t);function R(t,e){const i=t[t.length-1];for(let n=1;n<=e;n++){const a=j(0,e,n);t.push(U(i,1,a))}}function C(t,e=function(t){const e=[0];return R(e,t-1),e}(t.length),i=n){const a=t.length,s=a-e.length;return s>0&&R(e,s),n=>{let s=0;for(;s<a-2&&!(n<e[s+1]);s++);let r=(o=j(e[s],e[s+1],n),Math.min(1,Math.max(o,0)));var o;return r=function(t,e){return v(t)?t[((t,e,i)=>{const n=e-t;return((i-t)%n+n)%n+t})(0,t.length,e)]:t}(i,s)(r),U(t[s],t[s+1],r)}}class E{constructor(t,e,{easing:i=M.easing,duration:n=M.duration,delay:a=M.delay,endDelay:s=M.endDelay,offset:r,repeat:o=M.repeat,direction:l="normal"}){this.startTime=0,this.rate=1,this.t=0,this.cancelT=0,this.playState="idle",this.finished=new Promise(((t,e)=>{this.resolve=t,this.reject=e}));const c=n*(o+1),h=C(e,r,v(i)?i.map($):$(i));this.tick=e=>{if("finished"===this.playState){const e=h(1);return t(e),void this.resolve(e)}this.pauseTime&&(e=this.pauseTime);let i=(e-this.startTime)*this.rate;this.t=i,i/=1e3,i=Math.max(i-a,0);const r=i/n;let o=Math.floor(r),u=r%1;!u&&r>=1&&(u=1),1===u&&o--;const f=o%2;("reverse"===l||"alternate"===l&&f||"alternate-reverse"===l&&!f)&&(u=1-u);const p=i>=c?1:Math.min(u,1),y=h(p);t(y);i>=c+s?(this.playState="finished",this.resolve(y)):"idle"!==this.playState&&requestAnimationFrame(this.tick)},this.play()}play(){const t=performance.now();this.playState="running",this.pauseTime?this.startTime=t-(this.pauseTime-this.startTime):this.startTime||(this.startTime=t),this.pauseTime=void 0,requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=performance.now()}finish(){this.playState="finished",this.tick(0)}cancel(){this.playState="idle",this.tick(this.cancelT),this.reject(!1)}reverse(){this.rate*=-1}commitStyles(){this.cancelT=this.t}get currentTime(){return this.t}set currentTime(t){this.pauseTime||0===this.rate?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}}const F=(t,e)=>{let i=m(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!i&&0!==i){const t=l.get(e);t&&(i=t.initialValue)}return i};function W(t,n,a,r={}){let{duration:o=M.duration,delay:h=M.delay,endDelay:u=M.endDelay,repeat:y=M.repeat,easing:S=M.easing,direction:w,offset:x,allowWebkitAcceleration:b=!1}=r;const k=e(t);let D=A.waapi(),P=i;const O=(t=>f.has(t))(n);O&&(s[n]&&(n=s[n]),((t,i)=>{const{activeTransforms:n}=e(t);var a,s;s=i,-1===(a=n).indexOf(s)&&a.push(s),t.style.transform=p(n)})(t,n),n=c(n));const V=l.get(n);let $,U=function(t,e,i){for(let n=0;n<t.length;n++)null===t[n]&&(t[n]=n?t[n-1]:F(e,i));return t}((t=>Array.isArray(t)?t:[t])(a),t,n);if(function(t,e){t.activeAnimations[e]&&(!function(t){try{"finished"!==t.playState&&t.commitStyles(),t.cancel()}catch(t){}}(t.activeAnimations[e]),t.activeAnimations[e]=void 0)}(k,n),m(n)?(P=((t,e)=>i=>t.style.setProperty(e,i))(t,n),A.cssRegisterProperty()?function(t){if(!d.has(t)){d.add(t);try{const{syntax:e,initialValue:i}=l.has(t)?l.get(t):{};CSS.registerProperty({name:t,inherits:!1,syntax:e,initialValue:i})}catch(t){}}}(n):D=!1):P=((t,e)=>i=>t.style[e]=i)(t,n),D){V&&(U=U.map((t=>"number"==typeof t?V.toDefaultUnit(t):t))),A.partialKeyframes()||1!==U.length||U.unshift(F(t,n));const e={delay:g(h),duration:g(o),endDelay:g(u),easing:v(S)?void 0:T(S),direction:w,iterations:y+1,fill:"both"};$=t.animate({[n]:U,offset:x,easing:v(S)?S.map(T):void 0},e),$.finished||($.finished=new Promise(((t,e)=>{$.onfinish=t,$.oncancel=e})));const a=U[U.length-1];$.finished.then((()=>P(a))).catch(i),b||($.playbackRate=1.000001)}else if(O&&U.every(z)){if(1===U.length&&U.unshift(F(t,n)||(null==V?void 0:V.initialValue)||0),U=U.map((t=>"string"==typeof t?parseFloat(t):t)),V){const t=P;P=e=>t(V.toDefaultUnit(e))}$=function(t,e=[0,1],i={}){return new E(t,e,i)}(P,U,r)}else{const t=U[U.length-1];P(V&&"number"==typeof t?V.toDefaultUnit(t):t)}return k.activeAnimations[n]=$,null==$||$.finished.then((()=>k.activeAnimations[n]=void 0)).catch(i),$}const z=t=>"number"==typeof t;export{W as animateStyle};

@@ -1,1 +0,1 @@

import*as t from"react";import{useRef as e,useEffect as n,useState as i,createContext as r,useContext as s,forwardRef as o,createElement as a,useMemo as c}from"react";const l=new WeakMap;function u(t){return l.has(t)||l.set(t,{activeTransforms:[],activeAnimations:{}}),l.get(t)}const p=()=>{},f=t=>t,h=["","X","Y","Z"],y={x:"translateX",y:"translateY",z:"translateZ"},m={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:t=>t+"deg"},d={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:t=>t+"px"},rotate:m,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:f},skew:m},v=new Map,g=t=>`--motion-${t}`,w=["x","y","z"];["translate","scale","rotate","skew"].forEach((t=>{h.forEach((e=>{w.push(t+e),v.set(g(t+e),d[t])}))}));const b=(t,e)=>w.indexOf(t)-w.indexOf(e),O=new Set(w),x=t=>O.has(t),S=t=>t.sort(b).reduce(j,"").trim(),j=(t,e)=>`${t} ${e}(var(${g(e)}))`,A=t=>t.startsWith("--"),P=new Set;const T=t=>1e3*t;const V=t=>Array.isArray(t)&&"number"!=typeof t[0],k=t=>(t=>Array.isArray(t)&&"number"==typeof t[0])(t)?M(t):t,M=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,D=t=>document.createElement("div").animate(t,{duration:.001}),E={cssRegisterProperty:()=>"undefined"!=typeof CSS&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{D({opacity:[1]})}catch(t){return!1}return!0},finished:()=>Boolean(D({opacity:[0,1]}).finished)},$={},C=Object.keys(E).reduce(((t,e)=>(t[e]=()=>(void 0===$[e]&&($[e]=E[e]()),$[e]),t)),{}),L={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},U=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function I(t,e,n,i){if(t===e&&n===i)return f;const r=e=>function(t,e,n,i,r){let s,o,a=0;do{o=e+(n-e)/2,s=U(o,i,r)-t,s>0?n=o:e=o}while(Math.abs(s)>1e-7&&++a<12);return o}(e,0,1,t,n);return t=>0===t||1===t?t:U(r(t),e,i)}const R=(t,e="end")=>n=>{const i=(n="end"===e?Math.min(n,.999):Math.max(n,.001))*t,r="end"===e?Math.floor(i):Math.ceil(i);return s=0,o=1,a=r/t,Math.min(Math.max(a,s),o);var s,o,a},F={ease:I(.25,.1,.25,1),"ease-in":I(.42,0,1,1),"ease-in-out":I(.42,0,.58,1),"ease-out":I(0,0,.58,1)},W=/\((.*?)\)/;function z(t){if("function"==typeof t)return t;if(Array.isArray(t))return I(...t);if(F[t])return F[t];if(t.startsWith("steps")){const e=W.exec(t);if(e){const t=e[1].split(",");return R(parseFloat(t[0]),t[1].trim())}}return f}const q=(t,e,n)=>-n*t+n*e+t,B=(t,e,n)=>e-t==0?1:(n-t)/(e-t);function K(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const r=B(0,e,i);t.push(q(n,1,r))}}function X(t,e=function(t){const e=[0];return K(e,t-1),e}(t.length),n=f){const i=t.length,r=i-e.length;return r>0&&K(e,r),r=>{let s=0;for(;s<i-2&&!(r<e[s+1]);s++);let o=(a=B(e[s],e[s+1],r),Math.min(1,Math.max(a,0)));var a;return o=function(t,e){return V(t)?t[((t,e,n)=>{const i=e-t;return((n-t)%i+i)%i+t})(0,t.length,e)]:t}(n,s)(o),q(t[s],t[s+1],o)}}class Y{constructor(t,e,{easing:n=L.easing,duration:i=L.duration,delay:r=L.delay,endDelay:s=L.endDelay,offset:o,repeat:a=L.repeat,direction:c="normal"}){this.startTime=0,this.rate=1,this.t=0,this.cancelT=0,this.playState="idle",this.finished=new Promise(((t,e)=>{this.resolve=t,this.reject=e}));const l=i*(a+1),u=X(e,o,V(n)?n.map(z):z(n));this.tick=e=>{if("finished"===this.playState){const e=u(1);return t(e),void this.resolve(e)}this.pauseTime&&(e=this.pauseTime);let n=(e-this.startTime)*this.rate;this.t=n,n/=1e3,n=Math.max(n-r,0);const o=n/i;let a=Math.floor(o),p=o%1;!p&&o>=1&&(p=1),1===p&&a--;const f=a%2;("reverse"===c||"alternate"===c&&f||"alternate-reverse"===c&&!f)&&(p=1-p);const h=n>=l?1:Math.min(p,1),y=u(h);t(y);n>=l+s?(this.playState="finished",this.resolve(y)):"idle"!==this.playState&&requestAnimationFrame(this.tick)},this.play()}play(){const t=performance.now();this.playState="running",this.pauseTime?this.startTime=t-(this.pauseTime-this.startTime):this.startTime||(this.startTime=t),this.pauseTime=void 0,requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=performance.now()}finish(){this.playState="finished",this.tick(0)}cancel(){this.playState="idle",this.tick(this.cancelT),this.reject(!1)}reverse(){this.rate*=-1}commitStyles(){this.cancelT=this.t}get currentTime(){return this.t}set currentTime(t){this.pauseTime||0===this.rate?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}}const Z=(t,e)=>{let n=A(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!n&&0!==n){const t=v.get(e);t&&(n=t.initialValue)}return n};function G(t,e,n,i={}){let{duration:r=L.duration,delay:s=L.delay,endDelay:o=L.endDelay,repeat:a=L.repeat,easing:c=L.easing,direction:l,offset:f,allowWebkitAcceleration:h=!1}=i;const m=u(t);let d=C.waapi(),w=p;const b=x(e);b&&(y[e]&&(e=y[e]),((t,e)=>{const{activeTransforms:n}=u(t);var i,r;r=e,-1===(i=n).indexOf(r)&&i.push(r),t.style.transform=S(n)})(t,e),e=g(e));const O=v.get(e);let j,M=function(t,e,n){for(let i=0;i<t.length;i++)null===t[i]&&(t[i]=i?t[i-1]:Z(e,n));return t}((t=>Array.isArray(t)?t:[t])(n),t,e);if(function(t,e){t.activeAnimations[e]&&(!function(t){try{"finished"!==t.playState&&t.commitStyles(),t.cancel()}catch(t){}}(t.activeAnimations[e]),t.activeAnimations[e]=void 0)}(m,e),A(e)?(w=((t,e)=>n=>t.style.setProperty(e,n))(t,e),C.cssRegisterProperty()?function(t){if(!P.has(t)){P.add(t);try{const{syntax:e,initialValue:n}=v.has(t)?v.get(t):{};CSS.registerProperty({name:t,inherits:!1,syntax:e,initialValue:n})}catch(t){}}}(e):d=!1):w=((t,e)=>n=>t.style[e]=n)(t,e),d){O&&(M=M.map((t=>"number"==typeof t?O.toDefaultUnit(t):t))),C.partialKeyframes()||1!==M.length||M.unshift(Z(t,e));const n={delay:T(s),duration:T(r),endDelay:T(o),easing:V(c)?void 0:k(c),direction:l,iterations:a+1,fill:"forwards"};j=t.animate({[e]:M,offset:f,easing:V(c)?c.map(k):void 0},n),j.finished||(j.finished=new Promise(((t,e)=>{j.onfinish=t,j.oncancel=e})));const i=M[M.length-1];j.finished.then((()=>w(i))).catch(p),h||(j.playbackRate=1.000001)}else if(b&&M.every(H)){if(1===M.length&&M.unshift(Z(t,e)||(null==O?void 0:O.initialValue)||0),M=M.map((t=>"string"==typeof t?parseFloat(t):t)),O){const t=w;w=e=>t(O.toDefaultUnit(e))}j=function(t,e=[0,1],n={}){return new Y(t,e,n)}(w,M,i)}else{const t=M[M.length-1];w(O&&"number"==typeof t?O.toDefaultUnit(t):t)}return m.activeAnimations[e]=j,null==j||j.finished.then((()=>m.activeAnimations[e]=void 0)).catch(p),j}const H=t=>"number"==typeof t;const J=(t,e)=>t[e]?Object.assign(Object.assign({},t),t[e]):Object.assign({},t);function N(t,i,r,s,o,a){const c=e(i);n((()=>{const e={};if(new Set([...Object.keys(r),...Object.keys(c.current)]).forEach((t=>{let n=r[t];var i,s;(i=n,s=c.current[t],typeof i==typeof s&&(Array.isArray(i)&&Array.isArray(s)?function(t,e){const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}(i,s):i===s))||(e[t]=n)})),Object.keys(e).length&&t.current){null==o||o(e);const n=[];for(const i in e){const r=G(t.current,i,e[i],J(s,i));r&&n.push(r)}Promise.all(n.map((t=>t.finished))).then((()=>null==a?void 0:a(e))).catch(p)}c.current=r}))}function Q(t,e,n={}){return t?"string"==typeof t?n[t]:t:e?n[e]:void 0}function _(t,e,n){if(n)for(const i in n)"options"!==i&&(t[i]=n[i],n.options&&(e[i]=J(n.options,i)))}function tt(t,e,n,r,s){const[o,a]=i(!1);return(o||r)&&_(t,e,Q(n,r,s)),[o||Boolean(r),a]}var et=r(null);var nt=0,it=function(){return nt++},rt=function(){return t=it,null===(n=e(null)).current&&(n.current=t()),n.current;var t,n};function st(t,e,{exit:i,poses:r},{exit:o}){const[a,c]=function(){var t=s(et);if(null===t)return[!0,null];var e=t.isPresent,i=t.onExitComplete,r=t.register,o=rt();return n((function(){return r(o)}),[]),!e&&i?[!1,function(){return null==i?void 0:i(o)}]:[!0]}();if(n((()=>{i||null==c||c()}),[a]),i&&!a)return _(t,e,Q(i,o,r)),c}const ot=r({});function at(i){return o((function(r,o){const l=e(null),{options:u,style:p,initial:f,hover:h,press:m,exit:d,inViewport:w,viewport:b,poses:O,onStart:j,onComplete:A,onViewportEnter:P,onViewportLeave:T,inherit:V=!0}=r,k=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n}(r,["options","style","initial","hover","press","exit","inViewport","viewport","poses","onStart","onComplete","onViewportEnter","onViewportLeave","inherit"]),M={initial:!0,style:!0};let D=s(ot);V||(D={});const E=Q(p,D.style,O),$=Q(f,D.initial,O),C=Object.assign(Object.assign({},E),$),L=Object.assign(Object.assign({},$),E),U=Object.assign(Object.assign({},u),null==E?void 0:E.options),I=e(null);I.current||(I.current=function(t){const e={},n=[];for(let i in t){const r=t[i];x(i)&&(y[i]&&(i=y[i]),n.push(i),i=g(i));let s=Array.isArray(r)?r[0]:r;const o=v.get(i);o&&(s="number"==typeof r?o.toDefaultUnit(r):r),e[i]=s}return n.length&&(e.transform=S(n)),e}(C));const R=function(t,e,{hover:n,onPointerEnter:i,onPointerLeave:r,poses:s}={},{hover:o},a){const[c,l]=tt(t,e,n,o,s);return a.hover=c,n?{onPointerEnter:t=>{null==i||i(t),l(!0)},onPointerLeave:t=>{null==r||r(t),l(!1)}}:{}}(L,U,r,D,M),F=function(t,e,{press:n,onPointerDown:i,poses:r}={},{press:s},o){const[a,c]=tt(t,e,n,s,r);if(o.press=a,!n)return{};const l=()=>{c(!1),window.removeEventListener("pointerup",l)};return{onPointerDown:t=>{null==i||i(t),c(!0),window.addEventListener("pointerup",l)}}}(L,U,r,D,M);!function(t,e,i,{inViewport:r,poses:s,viewport:o={},onViewportEnter:a,onViewportLeave:c},{inViewport:l},u){const{root:p,margin:f,once:h,threshold:y}=o,[m,d]=tt(e,i,r,l,s);u.inViewport=m;let v=!!r||!!a||!!c;h&&m&&(v=!1),n((()=>{if(!v||"undefined"==typeof IntersectionObserver)return;const e=new IntersectionObserver((([t])=>{d(t.isIntersecting);const e=t.isIntersecting?a:c;e&&e(t)}),{root:null==p?void 0:p.current,rootMargin:f,threshold:y});return e.observe(t.current),()=>e.disconnect()}),[r,a,c,p,f,y])}(l,L,U,r,D,M);const W=st(L,U,r,D);N(l,C,L,U,j,(t=>{A&&A(t),W&&W()}));const z=a(i,Object.assign({},k,R,F,{style:I.current,ref:l})),q=ct.reduce(((t,e)=>(t[e]=void 0,r[e]?"string"==typeof r[e]&&M[e]&&(t[e]=r[e]):D[e]&&(t[e]=D[e]),t)),{}),B=c((()=>q),Object.values(q));return t.createElement(ot.Provider,{value:B},z)}))}const ct=["initial","style","hover","press","inViewport","exit"],lt=new Map,ut=new Proxy({},{get:(t,e)=>(lt.has(e)||lt.set(e,at(e)),lt.get(e))});export{ut as animated};
import*as t from"react";import{useRef as e,useEffect as n,useState as i,createContext as r,useContext as s,forwardRef as o,createElement as a,useMemo as c}from"react";const l=new WeakMap;function u(t){return l.has(t)||l.set(t,{activeTransforms:[],activeAnimations:{}}),l.get(t)}const p=()=>{},h=t=>t,f=["","X","Y","Z"],y={x:"translateX",y:"translateY",z:"translateZ"},m={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:t=>t+"deg"},d={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:t=>t+"px"},rotate:m,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:h},skew:m},v=new Map,g=t=>`--motion-${t}`,w=["x","y","z"];["translate","scale","rotate","skew"].forEach((t=>{f.forEach((e=>{w.push(t+e),v.set(g(t+e),d[t])}))}));const b=(t,e)=>w.indexOf(t)-w.indexOf(e),O=new Set(w),x=t=>O.has(t),S=t=>t.sort(b).reduce(j,"").trim(),j=(t,e)=>`${t} ${e}(var(${g(e)}))`,A=t=>t.startsWith("--"),P=new Set;const T=t=>1e3*t;const V=t=>Array.isArray(t)&&"number"!=typeof t[0],k=t=>(t=>Array.isArray(t)&&"number"==typeof t[0])(t)?M(t):t,M=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,D=t=>document.createElement("div").animate(t,{duration:.001}),E={cssRegisterProperty:()=>"undefined"!=typeof CSS&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{D({opacity:[1]})}catch(t){return!1}return!0},finished:()=>Boolean(D({opacity:[0,1]}).finished)},$={},C=Object.keys(E).reduce(((t,e)=>(t[e]=()=>(void 0===$[e]&&($[e]=E[e]()),$[e]),t)),{}),L={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},U=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function I(t,e,n,i){if(t===e&&n===i)return h;const r=e=>function(t,e,n,i,r){let s,o,a=0;do{o=e+(n-e)/2,s=U(o,i,r)-t,s>0?n=o:e=o}while(Math.abs(s)>1e-7&&++a<12);return o}(e,0,1,t,n);return t=>0===t||1===t?t:U(r(t),e,i)}const R=(t,e="end")=>n=>{const i=(n="end"===e?Math.min(n,.999):Math.max(n,.001))*t,r="end"===e?Math.floor(i):Math.ceil(i);return s=0,o=1,a=r/t,Math.min(Math.max(a,s),o);var s,o,a},F={ease:I(.25,.1,.25,1),"ease-in":I(.42,0,1,1),"ease-in-out":I(.42,0,.58,1),"ease-out":I(0,0,.58,1)},W=/\((.*?)\)/;function z(t){if("function"==typeof t)return t;if(Array.isArray(t))return I(...t);if(F[t])return F[t];if(t.startsWith("steps")){const e=W.exec(t);if(e){const t=e[1].split(",");return R(parseFloat(t[0]),t[1].trim())}}return h}const q=(t,e,n)=>-n*t+n*e+t,B=(t,e,n)=>e-t==0?1:(n-t)/(e-t);function K(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const r=B(0,e,i);t.push(q(n,1,r))}}function X(t,e=function(t){const e=[0];return K(e,t-1),e}(t.length),n=h){const i=t.length,r=i-e.length;return r>0&&K(e,r),r=>{let s=0;for(;s<i-2&&!(r<e[s+1]);s++);let o=(a=B(e[s],e[s+1],r),Math.min(1,Math.max(a,0)));var a;return o=function(t,e){return V(t)?t[((t,e,n)=>{const i=e-t;return((n-t)%i+i)%i+t})(0,t.length,e)]:t}(n,s)(o),q(t[s],t[s+1],o)}}class Y{constructor(t,e,{easing:n=L.easing,duration:i=L.duration,delay:r=L.delay,endDelay:s=L.endDelay,offset:o,repeat:a=L.repeat,direction:c="normal"}){this.startTime=0,this.rate=1,this.t=0,this.cancelT=0,this.playState="idle",this.finished=new Promise(((t,e)=>{this.resolve=t,this.reject=e}));const l=i*(a+1),u=X(e,o,V(n)?n.map(z):z(n));this.tick=e=>{if("finished"===this.playState){const e=u(1);return t(e),void this.resolve(e)}this.pauseTime&&(e=this.pauseTime);let n=(e-this.startTime)*this.rate;this.t=n,n/=1e3,n=Math.max(n-r,0);const o=n/i;let a=Math.floor(o),p=o%1;!p&&o>=1&&(p=1),1===p&&a--;const h=a%2;("reverse"===c||"alternate"===c&&h||"alternate-reverse"===c&&!h)&&(p=1-p);const f=n>=l?1:Math.min(p,1),y=u(f);t(y);n>=l+s?(this.playState="finished",this.resolve(y)):"idle"!==this.playState&&requestAnimationFrame(this.tick)},this.play()}play(){const t=performance.now();this.playState="running",this.pauseTime?this.startTime=t-(this.pauseTime-this.startTime):this.startTime||(this.startTime=t),this.pauseTime=void 0,requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=performance.now()}finish(){this.playState="finished",this.tick(0)}cancel(){this.playState="idle",this.tick(this.cancelT),this.reject(!1)}reverse(){this.rate*=-1}commitStyles(){this.cancelT=this.t}get currentTime(){return this.t}set currentTime(t){this.pauseTime||0===this.rate?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}}const Z=(t,e)=>{let n=A(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!n&&0!==n){const t=v.get(e);t&&(n=t.initialValue)}return n};function G(t,e,n,i={}){let{duration:r=L.duration,delay:s=L.delay,endDelay:o=L.endDelay,repeat:a=L.repeat,easing:c=L.easing,direction:l,offset:h,allowWebkitAcceleration:f=!1}=i;const m=u(t);let d=C.waapi(),w=p;const b=x(e);b&&(y[e]&&(e=y[e]),((t,e)=>{const{activeTransforms:n}=u(t);var i,r;r=e,-1===(i=n).indexOf(r)&&i.push(r),t.style.transform=S(n)})(t,e),e=g(e));const O=v.get(e);let j,M=function(t,e,n){for(let i=0;i<t.length;i++)null===t[i]&&(t[i]=i?t[i-1]:Z(e,n));return t}((t=>Array.isArray(t)?t:[t])(n),t,e);if(function(t,e){t.activeAnimations[e]&&(!function(t){try{"finished"!==t.playState&&t.commitStyles(),t.cancel()}catch(t){}}(t.activeAnimations[e]),t.activeAnimations[e]=void 0)}(m,e),A(e)?(w=((t,e)=>n=>t.style.setProperty(e,n))(t,e),C.cssRegisterProperty()?function(t){if(!P.has(t)){P.add(t);try{const{syntax:e,initialValue:n}=v.has(t)?v.get(t):{};CSS.registerProperty({name:t,inherits:!1,syntax:e,initialValue:n})}catch(t){}}}(e):d=!1):w=((t,e)=>n=>t.style[e]=n)(t,e),d){O&&(M=M.map((t=>"number"==typeof t?O.toDefaultUnit(t):t))),C.partialKeyframes()||1!==M.length||M.unshift(Z(t,e));const n={delay:T(s),duration:T(r),endDelay:T(o),easing:V(c)?void 0:k(c),direction:l,iterations:a+1,fill:"both"};j=t.animate({[e]:M,offset:h,easing:V(c)?c.map(k):void 0},n),j.finished||(j.finished=new Promise(((t,e)=>{j.onfinish=t,j.oncancel=e})));const i=M[M.length-1];j.finished.then((()=>w(i))).catch(p),f||(j.playbackRate=1.000001)}else if(b&&M.every(H)){if(1===M.length&&M.unshift(Z(t,e)||(null==O?void 0:O.initialValue)||0),M=M.map((t=>"string"==typeof t?parseFloat(t):t)),O){const t=w;w=e=>t(O.toDefaultUnit(e))}j=function(t,e=[0,1],n={}){return new Y(t,e,n)}(w,M,i)}else{const t=M[M.length-1];w(O&&"number"==typeof t?O.toDefaultUnit(t):t)}return m.activeAnimations[e]=j,null==j||j.finished.then((()=>m.activeAnimations[e]=void 0)).catch(p),j}const H=t=>"number"==typeof t;const J=(t,e)=>t[e]?Object.assign(Object.assign({},t),t[e]):Object.assign({},t);function N(t,i,r,s,o,a){const c=e(i);n((()=>{const e={};if(new Set([...Object.keys(r),...Object.keys(c.current)]).forEach((t=>{let n=r[t];var i,s;(i=n,s=c.current[t],typeof i==typeof s&&(Array.isArray(i)&&Array.isArray(s)?function(t,e){const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}(i,s):i===s))||(e[t]=n)})),Object.keys(e).length&&t.current){null==o||o(e);const n=[];for(const i in e){const r=G(t.current,i,e[i],J(s,i));r&&n.push(r)}Promise.all(n.map((t=>t.finished))).then((()=>null==a?void 0:a(e))).catch(p)}c.current=r}))}function Q(t,e,n={}){return t?"string"==typeof t?n[t]:t:e?n[e]:void 0}function _(t,e,n){if(n)for(const i in n)"options"!==i&&(t[i]=n[i],n.options&&(e[i]=J(n.options,i)))}function tt(t,e,n,r,s){const[o,a]=i(!1);return(o||r)&&_(t,e,Q(n,r,s)),[o||Boolean(r),a]}var et=r(null);var nt=0,it=function(){return nt++},rt=function(){return t=it,null===(n=e(null)).current&&(n.current=t()),n.current;var t,n};function st(t,e,{exit:i,poses:r},{exit:o}){const[a,c]=function(){var t=s(et);if(null===t)return[!0,null];var e=t.isPresent,i=t.onExitComplete,r=t.register,o=rt();return n((function(){return r(o)}),[]),!e&&i?[!1,function(){return null==i?void 0:i(o)}]:[!0]}();if(n((()=>{i||null==c||c()}),[a]),i&&!a)return _(t,e,Q(i,o,r)),c}const ot=r({});function at(i){return o((function(r,o){const l=e(null),{options:u,style:p,initial:h,hover:f,press:m,exit:d,inViewport:w,viewport:b,poses:O,onStart:j,onComplete:A,onViewportEnter:P,onViewportLeave:T,inherit:V=!0}=r,k=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n}(r,["options","style","initial","hover","press","exit","inViewport","viewport","poses","onStart","onComplete","onViewportEnter","onViewportLeave","inherit"]),M={initial:!0,style:!0};let D=s(ot);V||(D={});const E=Q(p,D.style,O),$=Q(h,D.initial,O),C=Object.assign(Object.assign({},E),$),L=Object.assign(Object.assign({},$),E),U=Object.assign(Object.assign({},u),null==E?void 0:E.options),I=e(null);I.current||(I.current=function(t){const e={},n=[];for(let i in t){const r=t[i];x(i)&&(y[i]&&(i=y[i]),n.push(i),i=g(i));let s=Array.isArray(r)?r[0]:r;const o=v.get(i);o&&(s="number"==typeof r?o.toDefaultUnit(r):r),e[i]=s}return n.length&&(e.transform=S(n)),e}(C));const R=function(t,e,{hover:n,onPointerEnter:i,onPointerLeave:r,poses:s}={},{hover:o},a){const[c,l]=tt(t,e,n,o,s);return a.hover=c,n?{onPointerEnter:t=>{null==i||i(t),l(!0)},onPointerLeave:t=>{null==r||r(t),l(!1)}}:{}}(L,U,r,D,M),F=function(t,e,{press:n,onPointerDown:i,poses:r}={},{press:s},o){const[a,c]=tt(t,e,n,s,r);if(o.press=a,!n)return{};const l=()=>{c(!1),window.removeEventListener("pointerup",l)};return{onPointerDown:t=>{null==i||i(t),c(!0),window.addEventListener("pointerup",l)}}}(L,U,r,D,M);!function(t,e,i,{inViewport:r,poses:s,viewport:o={},onViewportEnter:a,onViewportLeave:c},{inViewport:l},u){const{root:p,margin:h,once:f,threshold:y}=o,[m,d]=tt(e,i,r,l,s);u.inViewport=m;let v=!!r||!!a||!!c;f&&m&&(v=!1),n((()=>{if(!v||"undefined"==typeof IntersectionObserver)return;const e=new IntersectionObserver((([t])=>{d(t.isIntersecting);const e=t.isIntersecting?a:c;e&&e(t)}),{root:null==p?void 0:p.current,rootMargin:h,threshold:y});return e.observe(t.current),()=>e.disconnect()}),[r,a,c,p,h,y])}(l,L,U,r,D,M);const W=st(L,U,r,D);N(l,C,L,U,j,(t=>{A&&A(t),W&&W()}));const z=a(i,Object.assign({},k,R,F,{style:I.current,ref:l})),q=ct.reduce(((t,e)=>(t[e]=void 0,r[e]?"string"==typeof r[e]&&M[e]&&(t[e]=r[e]):D[e]&&(t[e]=D[e]),t)),{}),B=c((()=>q),Object.values(q));return t.createElement(ot.Provider,{value:B},z)}))}const ct=["initial","style","hover","press","inViewport","exit"],lt=new Map,ut=new Proxy({},{get:(t,e)=>(lt.has(e)||lt.set(e,at(e)),lt.get(e))});export{ut as animated};

@@ -1,1 +0,1 @@

const t=(t,e,n)=>e-t==0?1:(n-t)/(e-t),e=()=>{},n=t=>t,a=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function i(t,e,i,s){if(t===e&&i===s)return n;const r=e=>function(t,e,n,i,s){let r,o,l=0;do{o=e+(n-e)/2,r=a(o,i,s)-t,r>0?n=o:e=o}while(Math.abs(r)>1e-7&&++l<12);return o}(e,0,1,t,i);return t=>0===t||1===t?t:a(r(t),e,s)}const s=(t,e="end")=>n=>{const a=(n="end"===e?Math.min(n,.999):Math.max(n,.001))*t,i="end"===e?Math.floor(a):Math.ceil(a);return s=0,r=1,o=i/t,Math.min(Math.max(o,s),r);var s,r,o},r={ease:i(.25,.1,.25,1),"ease-in":i(.42,0,1,1),"ease-in-out":i(.42,0,.58,1),"ease-out":i(0,0,.58,1)},o=/\((.*?)\)/;function l(t){if("function"==typeof t)return t;if(Array.isArray(t))return i(...t);if(r[t])return r[t];if(t.startsWith("steps")){const e=o.exec(t);if(e){const t=e[1].split(",");return s(parseFloat(t[0]),t[1].trim())}}return n}function c(t,e,n){return"function"==typeof t?t(e,n):t}const u=(t,e,n)=>-n*t+n*e+t;function h(e,n){const a=e[e.length-1];for(let i=1;i<=n;i++){const s=t(0,n,i);e.push(u(a,1,s))}}function f(t){const e=[0];return h(e,t-1),e}const p=new WeakMap;function d(t){return p.has(t)||p.set(t,{activeTransforms:[],activeAnimations:{}}),p.get(t)}function m(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const y=["","X","Y","Z"],g={x:"translateX",y:"translateY",z:"translateZ"},v={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:t=>t+"deg"},b={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:t=>t+"px"},rotate:v,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:n},skew:v},w=new Map,O=t=>`--motion-${t}`,x=["x","y","z"];["translate","scale","rotate","skew"].forEach((t=>{y.forEach((e=>{x.push(t+e),w.set(O(t+e),b[t])}))}));const T=(t,e)=>x.indexOf(t)-x.indexOf(e),S=new Set(x),A=t=>t.sort(T).reduce(M,"").trim(),M=(t,e)=>`${t} ${e}(var(${O(e)}))`,j=t=>t.startsWith("--"),k=new Set;const P=t=>1e3*t;function D(t){try{"finished"!==t.playState&&t.commitStyles(),t.cancel()}catch(t){}}const E=t=>Array.isArray(t)&&"number"!=typeof t[0],V=t=>(t=>Array.isArray(t)&&"number"==typeof t[0])(t)?$(t):t,$=([t,e,n,a])=>`cubic-bezier(${t}, ${e}, ${n}, ${a})`,R=t=>document.createElement("div").animate(t,{duration:.001}),U={cssRegisterProperty:()=>"undefined"!=typeof CSS&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{R({opacity:[1]})}catch(t){return!1}return!0},finished:()=>Boolean(R({opacity:[0,1]}).finished)},W={},F=Object.keys(U).reduce(((t,e)=>(t[e]=()=>(void 0===W[e]&&(W[e]=U[e]()),W[e]),t)),{}),q={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"};function C(t,e){return E(t)?t[((t,e,n)=>{const a=e-t;return((n-t)%a+a)%a+t})(0,t.length,e)]:t}function z(e,a=f(e.length),i=n){const s=e.length,r=s-a.length;return r>0&&h(a,r),n=>{let r=0;for(;r<s-2&&!(n<a[r+1]);r++);let o=(l=t(a[r],a[r+1],n),Math.min(1,Math.max(l,0)));var l;return o=C(i,r)(o),u(e[r],e[r+1],o)}}class K{constructor(t,e,{easing:n=q.easing,duration:a=q.duration,delay:i=q.delay,endDelay:s=q.endDelay,offset:r,repeat:o=q.repeat,direction:c="normal"}){this.startTime=0,this.rate=1,this.t=0,this.cancelT=0,this.playState="idle",this.finished=new Promise(((t,e)=>{this.resolve=t,this.reject=e}));const u=a*(o+1),h=z(e,r,E(n)?n.map(l):l(n));this.tick=e=>{if("finished"===this.playState){const e=h(1);return t(e),void this.resolve(e)}this.pauseTime&&(e=this.pauseTime);let n=(e-this.startTime)*this.rate;this.t=n,n/=1e3,n=Math.max(n-i,0);const r=n/a;let o=Math.floor(r),l=r%1;!l&&r>=1&&(l=1),1===l&&o--;const f=o%2;("reverse"===c||"alternate"===c&&f||"alternate-reverse"===c&&!f)&&(l=1-l);const p=n>=u?1:Math.min(l,1),d=h(p);t(d);n>=u+s?(this.playState="finished",this.resolve(d)):"idle"!==this.playState&&requestAnimationFrame(this.tick)},this.play()}play(){const t=performance.now();this.playState="running",this.pauseTime?this.startTime=t-(this.pauseTime-this.startTime):this.startTime||(this.startTime=t),this.pauseTime=void 0,requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=performance.now()}finish(){this.playState="finished",this.tick(0)}cancel(){this.playState="idle",this.tick(this.cancelT),this.reject(!1)}reverse(){this.rate*=-1}commitStyles(){this.cancelT=this.t}get currentTime(){return this.t}set currentTime(t){this.pauseTime||0===this.rate?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}}const X=(t,e)=>{let n=j(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!n&&0!==n){const t=w.get(e);t&&(n=t.initialValue)}return n};const Y=t=>Array.isArray(t)?t:[t];function Z(t,n,a,i={}){let{duration:s=q.duration,delay:r=q.delay,endDelay:o=q.endDelay,repeat:l=q.repeat,easing:c=q.easing,direction:u,offset:h,allowWebkitAcceleration:f=!1}=i;const p=d(t);let m=F.waapi(),y=e;const v=(t=>S.has(t))(n);v&&(g[n]&&(n=g[n]),((t,e)=>{const{activeTransforms:n}=d(t);var a,i;i=e,-1===(a=n).indexOf(i)&&a.push(i),t.style.transform=A(n)})(t,n),n=O(n));const b=w.get(n);let x,T=function(t,e,n){for(let a=0;a<t.length;a++)null===t[a]&&(t[a]=a?t[a-1]:X(e,n));return t}(Y(a),t,n);if(function(t,e){t.activeAnimations[e]&&(D(t.activeAnimations[e]),t.activeAnimations[e]=void 0)}(p,n),j(n)?(y=((t,e)=>n=>t.style.setProperty(e,n))(t,n),F.cssRegisterProperty()?function(t){if(!k.has(t)){k.add(t);try{const{syntax:e,initialValue:n}=w.has(t)?w.get(t):{};CSS.registerProperty({name:t,inherits:!1,syntax:e,initialValue:n})}catch(t){}}}(n):m=!1):y=((t,e)=>n=>t.style[e]=n)(t,n),m){b&&(T=T.map((t=>"number"==typeof t?b.toDefaultUnit(t):t))),F.partialKeyframes()||1!==T.length||T.unshift(X(t,n));const a={delay:P(r),duration:P(s),endDelay:P(o),easing:E(c)?void 0:V(c),direction:u,iterations:l+1,fill:"forwards"};x=t.animate({[n]:T,offset:h,easing:E(c)?c.map(V):void 0},a),x.finished||(x.finished=new Promise(((t,e)=>{x.onfinish=t,x.oncancel=e})));const i=T[T.length-1];x.finished.then((()=>y(i))).catch(e),f||(x.playbackRate=1.000001)}else if(v&&T.every(B)){if(1===T.length&&T.unshift(X(t,n)||(null==b?void 0:b.initialValue)||0),T=T.map((t=>"string"==typeof t?parseFloat(t):t)),b){const t=y;y=e=>t(b.toDefaultUnit(e))}x=function(t,e=[0,1],n={}){return new K(t,e,n)}(y,T,i)}else{const t=T[T.length-1];y(b&&"number"==typeof t?b.toDefaultUnit(t):t)}return p.activeAnimations[n]=x,null==x||x.finished.then((()=>p.activeAnimations[n]=void 0)).catch(e),x}const B=t=>"number"==typeof t,I=t=>t.animations[0],G={get:(t,n)=>{var a,i;switch(n){case"duration":return t.duration;case"currentTime":let s=(null===(a=I(t))||void 0===a?void 0:a[n])||0;return s?s/1e3:0;case"playbackRate":return null===(i=I(t))||void 0===i?void 0:i[n];case"finished":return t.finished||(t.finished=Promise.all(t.animations.map(H)).catch(e)),t.finished;case"stop":return()=>t.animations.forEach(D);default:return()=>t.animations.forEach((t=>t[n]()))}},set:(t,e,n)=>{switch(e){case"currentTime":n=P(n);case"currentTime":case"playbackRate":for(let a=0;a<t.animations.length;a++)t.animations[a][e]=n;return!0}return!1}},H=t=>t.finished,J=(t,e)=>t[e]?Object.assign(Object.assign({},t),t[e]):Object.assign({},t);function L(t,e){var n;return"string"==typeof t?e?(null!==(n=e[t])&&void 0!==n||(e[t]=document.querySelectorAll(t)),t=e[t]):t=document.querySelectorAll(t):t instanceof Element&&(t=[t]),Array.from(t)}function N(t,e,n,a){var i;return"number"==typeof e?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):"<"===e?n:null!==(i=a.get(e))&&void 0!==i?i:t}function Q(t,e,n,a,i,s){!function(t,e,n){for(let a=0;a<t.length;a++){const i=t[a];i.at>e&&i.at<n&&(m(t,i),a--)}}(t,i,s);for(let r=0;r<e.length;r++)t.push({value:e[r],at:u(i,s,a[r]),easing:C(n,r)})}function _(t,e){return t.at===e.at?null===t.value?1:-1:t.at-e.at}function tt(t,e={}){var n,a;const i=[],s=et(t,e);for(let t=0;t<s.length;t++){const e=Z(...s[t]);e&&i.push(e)}return((t,e)=>new Proxy({animations:t,duration:e},G))(i,null!==(a=null===(n=s[0])||void 0===n?void 0:n[3].duration)&&void 0!==a?a:q.duration)}function et(e,n={}){var{defaultOptions:a={}}=n,i=function(t,e){var n={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(n[a]=t[a]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(t);i<a.length;i++)e.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(t,a[i])&&(n[a[i]]=t[a[i]])}return n}(n,["defaultOptions"]);const s=[],r=new Map,o={},l=new Map;let u=0,p=0,d=0;for(let t=0;t<e.length;t++){const[n,i,s={}]=e[t];void 0!==s.at&&(p=N(p,s.at,u,l));let m=0;const y=L(n,o),g=y.length;for(let t=0;t<g;t++){const e=nt(y[t],r);for(const n in i){const r=at(n,e),o=Y(i[n]),l=J(s,n),{duration:u=a.duration||q.duration,easing:y=a.easing||q.easing,offset:v=f(o.length)}=l,b=c(s.delay,t,g)||0,w=p+b,O=w+u;1===v.length&&0===v[0]&&(v[1]=1);const x=length-o.length;x>0&&h(v,x),1===o.length&&o.unshift(null),Q(r,o,y,v,w,O),m=Math.max(b+u,m),d=Math.max(O,d)}}u=p,p+=m}return r.forEach(((e,n)=>{for(const r in e){const o=e[r];o.sort(_);const l=[],c=[],u=[];for(let e=0;e<o.length;e++){const{at:n,value:a,easing:i}=o[e];l.push(a),c.push(t(0,d,n)),u.push(i||q.easing)}1!==c[c.length-1]&&(c.push(1),l.push(null)),s.push([n,r,l,Object.assign(Object.assign(Object.assign({},a),{duration:d,easing:u,offset:c}),i)])}})),s}function nt(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function at(t,e){return e[t]||(e[t]=[]),e[t]}export{et as createAnimationsFromTimeline,tt as timeline};
const t=(t,e,n)=>e-t==0?1:(n-t)/(e-t),e=()=>{},n=t=>t,i=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function a(t,e,a,s){if(t===e&&a===s)return n;const r=e=>function(t,e,n,a,s){let r,o,l=0;do{o=e+(n-e)/2,r=i(o,a,s)-t,r>0?n=o:e=o}while(Math.abs(r)>1e-7&&++l<12);return o}(e,0,1,t,a);return t=>0===t||1===t?t:i(r(t),e,s)}const s=(t,e="end")=>n=>{const i=(n="end"===e?Math.min(n,.999):Math.max(n,.001))*t,a="end"===e?Math.floor(i):Math.ceil(i);return s=0,r=1,o=a/t,Math.min(Math.max(o,s),r);var s,r,o},r={ease:a(.25,.1,.25,1),"ease-in":a(.42,0,1,1),"ease-in-out":a(.42,0,.58,1),"ease-out":a(0,0,.58,1)},o=/\((.*?)\)/;function l(t){if("function"==typeof t)return t;if(Array.isArray(t))return a(...t);if(r[t])return r[t];if(t.startsWith("steps")){const e=o.exec(t);if(e){const t=e[1].split(",");return s(parseFloat(t[0]),t[1].trim())}}return n}function c(t,e,n){return"function"==typeof t?t(e,n):t}const u=(t,e,n)=>-n*t+n*e+t;function h(e,n){const i=e[e.length-1];for(let a=1;a<=n;a++){const s=t(0,n,a);e.push(u(i,1,s))}}function f(t){const e=[0];return h(e,t-1),e}const p=new WeakMap;function d(t){return p.has(t)||p.set(t,{activeTransforms:[],activeAnimations:{}}),p.get(t)}function m(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const y=["","X","Y","Z"],g={x:"translateX",y:"translateY",z:"translateZ"},v={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:t=>t+"deg"},b={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:t=>t+"px"},rotate:v,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:n},skew:v},w=new Map,O=t=>`--motion-${t}`,x=["x","y","z"];["translate","scale","rotate","skew"].forEach((t=>{y.forEach((e=>{x.push(t+e),w.set(O(t+e),b[t])}))}));const T=(t,e)=>x.indexOf(t)-x.indexOf(e),S=new Set(x),A=t=>t.sort(T).reduce(M,"").trim(),M=(t,e)=>`${t} ${e}(var(${O(e)}))`,j=t=>t.startsWith("--"),k=new Set;const P=t=>1e3*t;function D(t){try{"finished"!==t.playState&&t.commitStyles(),t.cancel()}catch(t){}}const E=t=>Array.isArray(t)&&"number"!=typeof t[0],V=t=>(t=>Array.isArray(t)&&"number"==typeof t[0])(t)?$(t):t,$=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,R=t=>document.createElement("div").animate(t,{duration:.001}),U={cssRegisterProperty:()=>"undefined"!=typeof CSS&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{R({opacity:[1]})}catch(t){return!1}return!0},finished:()=>Boolean(R({opacity:[0,1]}).finished)},W={},F=Object.keys(U).reduce(((t,e)=>(t[e]=()=>(void 0===W[e]&&(W[e]=U[e]()),W[e]),t)),{}),q={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"};function C(t,e){return E(t)?t[((t,e,n)=>{const i=e-t;return((n-t)%i+i)%i+t})(0,t.length,e)]:t}function z(e,i=f(e.length),a=n){const s=e.length,r=s-i.length;return r>0&&h(i,r),n=>{let r=0;for(;r<s-2&&!(n<i[r+1]);r++);let o=(l=t(i[r],i[r+1],n),Math.min(1,Math.max(l,0)));var l;return o=C(a,r)(o),u(e[r],e[r+1],o)}}class K{constructor(t,e,{easing:n=q.easing,duration:i=q.duration,delay:a=q.delay,endDelay:s=q.endDelay,offset:r,repeat:o=q.repeat,direction:c="normal"}){this.startTime=0,this.rate=1,this.t=0,this.cancelT=0,this.playState="idle",this.finished=new Promise(((t,e)=>{this.resolve=t,this.reject=e}));const u=i*(o+1),h=z(e,r,E(n)?n.map(l):l(n));this.tick=e=>{if("finished"===this.playState){const e=h(1);return t(e),void this.resolve(e)}this.pauseTime&&(e=this.pauseTime);let n=(e-this.startTime)*this.rate;this.t=n,n/=1e3,n=Math.max(n-a,0);const r=n/i;let o=Math.floor(r),l=r%1;!l&&r>=1&&(l=1),1===l&&o--;const f=o%2;("reverse"===c||"alternate"===c&&f||"alternate-reverse"===c&&!f)&&(l=1-l);const p=n>=u?1:Math.min(l,1),d=h(p);t(d);n>=u+s?(this.playState="finished",this.resolve(d)):"idle"!==this.playState&&requestAnimationFrame(this.tick)},this.play()}play(){const t=performance.now();this.playState="running",this.pauseTime?this.startTime=t-(this.pauseTime-this.startTime):this.startTime||(this.startTime=t),this.pauseTime=void 0,requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=performance.now()}finish(){this.playState="finished",this.tick(0)}cancel(){this.playState="idle",this.tick(this.cancelT),this.reject(!1)}reverse(){this.rate*=-1}commitStyles(){this.cancelT=this.t}get currentTime(){return this.t}set currentTime(t){this.pauseTime||0===this.rate?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}}const X=(t,e)=>{let n=j(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!n&&0!==n){const t=w.get(e);t&&(n=t.initialValue)}return n};const Y=t=>Array.isArray(t)?t:[t];function Z(t,n,i,a={}){let{duration:s=q.duration,delay:r=q.delay,endDelay:o=q.endDelay,repeat:l=q.repeat,easing:c=q.easing,direction:u,offset:h,allowWebkitAcceleration:f=!1}=a;const p=d(t);let m=F.waapi(),y=e;const v=(t=>S.has(t))(n);v&&(g[n]&&(n=g[n]),((t,e)=>{const{activeTransforms:n}=d(t);var i,a;a=e,-1===(i=n).indexOf(a)&&i.push(a),t.style.transform=A(n)})(t,n),n=O(n));const b=w.get(n);let x,T=function(t,e,n){for(let i=0;i<t.length;i++)null===t[i]&&(t[i]=i?t[i-1]:X(e,n));return t}(Y(i),t,n);if(function(t,e){t.activeAnimations[e]&&(D(t.activeAnimations[e]),t.activeAnimations[e]=void 0)}(p,n),j(n)?(y=((t,e)=>n=>t.style.setProperty(e,n))(t,n),F.cssRegisterProperty()?function(t){if(!k.has(t)){k.add(t);try{const{syntax:e,initialValue:n}=w.has(t)?w.get(t):{};CSS.registerProperty({name:t,inherits:!1,syntax:e,initialValue:n})}catch(t){}}}(n):m=!1):y=((t,e)=>n=>t.style[e]=n)(t,n),m){b&&(T=T.map((t=>"number"==typeof t?b.toDefaultUnit(t):t))),F.partialKeyframes()||1!==T.length||T.unshift(X(t,n));const i={delay:P(r),duration:P(s),endDelay:P(o),easing:E(c)?void 0:V(c),direction:u,iterations:l+1,fill:"both"};x=t.animate({[n]:T,offset:h,easing:E(c)?c.map(V):void 0},i),x.finished||(x.finished=new Promise(((t,e)=>{x.onfinish=t,x.oncancel=e})));const a=T[T.length-1];x.finished.then((()=>y(a))).catch(e),f||(x.playbackRate=1.000001)}else if(v&&T.every(B)){if(1===T.length&&T.unshift(X(t,n)||(null==b?void 0:b.initialValue)||0),T=T.map((t=>"string"==typeof t?parseFloat(t):t)),b){const t=y;y=e=>t(b.toDefaultUnit(e))}x=function(t,e=[0,1],n={}){return new K(t,e,n)}(y,T,a)}else{const t=T[T.length-1];y(b&&"number"==typeof t?b.toDefaultUnit(t):t)}return p.activeAnimations[n]=x,null==x||x.finished.then((()=>p.activeAnimations[n]=void 0)).catch(e),x}const B=t=>"number"==typeof t,I=t=>t.animations[0],G={get:(t,n)=>{var i,a;switch(n){case"duration":return t.duration;case"currentTime":let s=(null===(i=I(t))||void 0===i?void 0:i[n])||0;return s?s/1e3:0;case"playbackRate":return null===(a=I(t))||void 0===a?void 0:a[n];case"finished":return t.finished||(t.finished=Promise.all(t.animations.map(H)).catch(e)),t.finished;case"stop":return()=>t.animations.forEach(D);default:return()=>t.animations.forEach((t=>t[n]()))}},set:(t,e,n)=>{switch(e){case"currentTime":n=P(n);case"currentTime":case"playbackRate":for(let i=0;i<t.animations.length;i++)t.animations[i][e]=n;return!0}return!1}},H=t=>t.finished,J=(t,e)=>t[e]?Object.assign(Object.assign({},t),t[e]):Object.assign({},t);function L(t,e){var n;return"string"==typeof t?e?(null!==(n=e[t])&&void 0!==n||(e[t]=document.querySelectorAll(t)),t=e[t]):t=document.querySelectorAll(t):t instanceof Element&&(t=[t]),Array.from(t)}function N(t,e,n,i){var a;return"number"==typeof e?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):"<"===e?n:null!==(a=i.get(e))&&void 0!==a?a:t}function Q(t,e,n,i,a,s){!function(t,e,n){for(let i=0;i<t.length;i++){const a=t[i];a.at>e&&a.at<n&&(m(t,a),i--)}}(t,a,s);for(let r=0;r<e.length;r++)t.push({value:e[r],at:u(a,s,i[r]),easing:C(n,r)})}function _(t,e){return t.at===e.at?null===t.value?1:-1:t.at-e.at}function tt(t,e={}){var n,i;const a=[],s=et(t,e);for(let t=0;t<s.length;t++){const e=Z(...s[t]);e&&a.push(e)}return((t,e)=>new Proxy({animations:t,duration:e},G))(a,null!==(i=null===(n=s[0])||void 0===n?void 0:n[3].duration)&&void 0!==i?i:q.duration)}function et(e,n={}){var{defaultOptions:i={}}=n,a=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(t);a<i.length;a++)e.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(t,i[a])&&(n[i[a]]=t[i[a]])}return n}(n,["defaultOptions"]);const s=[],r=new Map,o={},l=new Map;let u=0,p=0,d=0;for(let t=0;t<e.length;t++){const[n,a,s={}]=e[t];void 0!==s.at&&(p=N(p,s.at,u,l));let m=0;const y=L(n,o),g=y.length;for(let t=0;t<g;t++){const e=nt(y[t],r);for(const n in a){const r=it(n,e),o=Y(a[n]),l=J(s,n),{duration:u=i.duration||q.duration,easing:y=i.easing||q.easing,offset:v=f(o.length)}=l,b=c(s.delay,t,g)||0,w=p+b,O=w+u;1===v.length&&0===v[0]&&(v[1]=1);const x=length-o.length;x>0&&h(v,x),1===o.length&&o.unshift(null),Q(r,o,y,v,w,O),m=Math.max(b+u,m),d=Math.max(O,d)}}u=p,p+=m}return r.forEach(((e,n)=>{for(const r in e){const o=e[r];o.sort(_);const l=[],c=[],u=[];for(let e=0;e<o.length;e++){const{at:n,value:i,easing:a}=o[e];l.push(i),c.push(t(0,d,n)),u.push(a||q.easing)}1!==c[c.length-1]&&(c.push(1),l.push(null)),s.push([n,r,l,Object.assign(Object.assign(Object.assign({},i),{duration:d,easing:u,offset:c}),a)])}})),s}function nt(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function it(t,e){return e[t]||(e[t]=[]),e[t]}export{et as createAnimationsFromTimeline,tt as timeline};

@@ -1,1 +0,1 @@

!function(t){var e={};function n(i){if(e[i])return e[i].exports;var a=e[i]={i:i,l:!1,exports:{}};return t[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(i,a,function(e){return t[e]}.bind(null,a));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";n.r(e),n.d(e,"animate",(function(){return I}));const i=new WeakMap;function a(t){return i.has(t)||i.set(t,{activeTransforms:[],activeAnimations:{}}),i.get(t)}const r=()=>{},s=t=>t,o=["","X","Y","Z"],c={x:"translateX",y:"translateY",z:"translateZ"},l={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:t=>t+"deg"},u={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:t=>t+"px"},rotate:l,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:s},skew:l},f=new Map,h=t=>`--motion-${t}`,d=["x","y","z"];["translate","scale","rotate","skew"].forEach((t=>{o.forEach((e=>{d.push(t+e),f.set(h(t+e),u[t])}))}));const p=(t,e)=>d.indexOf(t)-d.indexOf(e),y=new Set(d),m=t=>t.sort(p).reduce(g,"").trim(),g=(t,e)=>`${t} ${e}(var(${h(e)}))`,v=t=>t.startsWith("--"),b=new Set;const S=t=>1e3*t;function T(t){try{"finished"!==t.playState&&t.commitStyles(),t.cancel()}catch(t){}}const w=t=>Array.isArray(t)&&"number"!=typeof t[0],x=t=>(t=>Array.isArray(t)&&"number"==typeof t[0])(t)?A(t):t,A=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,M=t=>document.createElement("div").animate(t,{duration:.001}),O={cssRegisterProperty:()=>"undefined"!=typeof CSS&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{M({opacity:[1]})}catch(t){return!1}return!0},finished:()=>Boolean(M({opacity:[0,1]}).finished)},P={},j=Object.keys(O).reduce(((t,e)=>(t[e]=()=>(void 0===P[e]&&(P[e]=O[e]()),P[e]),t)),{}),k={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},D=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function V(t,e,n,i){if(t===e&&n===i)return s;const a=e=>function(t,e,n,i,a){let r,s,o=0;do{s=e+(n-e)/2,r=D(s,i,a)-t,r>0?n=s:e=s}while(Math.abs(r)>1e-7&&++o<12);return s}(e,0,1,t,n);return t=>0===t||1===t?t:D(a(t),e,i)}const $=(t,e="end")=>n=>{const i=(n="end"===e?Math.min(n,.999):Math.max(n,.001))*t,a="end"===e?Math.floor(i):Math.ceil(i);return r=0,s=1,o=a/t,Math.min(Math.max(o,r),s);var r,s,o},E={ease:V(.25,.1,.25,1),"ease-in":V(.42,0,1,1),"ease-in-out":V(.42,0,.58,1),"ease-out":V(0,0,.58,1)},R=/\((.*?)\)/;function U(t){if("function"==typeof t)return t;if(Array.isArray(t))return V(...t);if(E[t])return E[t];if(t.startsWith("steps")){const e=R.exec(t);if(e){const t=e[1].split(",");return $(parseFloat(t[0]),t[1].trim())}}return s}const _=(t,e,n)=>-n*t+n*e+t,q=(t,e,n)=>e-t==0?1:(n-t)/(e-t);function C(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const a=q(0,e,i);t.push(_(n,1,a))}}function F(t,e=function(t){const e=[0];return C(e,t-1),e}(t.length),n=s){const i=t.length,a=i-e.length;return a>0&&C(e,a),a=>{let r=0;for(;r<i-2&&!(a<e[r+1]);r++);let s=(o=q(e[r],e[r+1],a),Math.min(1,Math.max(o,0)));var o;return s=function(t,e){return w(t)?t[((t,e,n)=>{const i=e-t;return((n-t)%i+i)%i+t})(0,t.length,e)]:t}(n,r)(s),_(t[r],t[r+1],s)}}class W{constructor(t,e,{easing:n=k.easing,duration:i=k.duration,delay:a=k.delay,endDelay:r=k.endDelay,offset:s,repeat:o=k.repeat,direction:c="normal"}){this.startTime=0,this.rate=1,this.t=0,this.cancelT=0,this.playState="idle",this.finished=new Promise(((t,e)=>{this.resolve=t,this.reject=e}));const l=i*(o+1),u=F(e,s,w(n)?n.map(U):U(n));this.tick=e=>{if("finished"===this.playState){const e=u(1);return t(e),void this.resolve(e)}this.pauseTime&&(e=this.pauseTime);let n=(e-this.startTime)*this.rate;this.t=n,n/=1e3,n=Math.max(n-a,0);const s=n/i;let o=Math.floor(s),f=s%1;!f&&s>=1&&(f=1),1===f&&o--;const h=o%2;("reverse"===c||"alternate"===c&&h||"alternate-reverse"===c&&!h)&&(f=1-f);const d=n>=l?1:Math.min(f,1),p=u(d);t(p);n>=l+r?(this.playState="finished",this.resolve(p)):"idle"!==this.playState&&requestAnimationFrame(this.tick)},this.play()}play(){const t=performance.now();this.playState="running",this.pauseTime?this.startTime=t-(this.pauseTime-this.startTime):this.startTime||(this.startTime=t),this.pauseTime=void 0,requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=performance.now()}finish(){this.playState="finished",this.tick(0)}cancel(){this.playState="idle",this.tick(this.cancelT),this.reject(!1)}reverse(){this.rate*=-1}commitStyles(){this.cancelT=this.t}get currentTime(){return this.t}set currentTime(t){this.pauseTime||0===this.rate?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}}const z=(t,e)=>{let n=v(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!n&&0!==n){const t=f.get(e);t&&(n=t.initialValue)}return n};function K(t,e,n,i={}){let{duration:s=k.duration,delay:o=k.delay,endDelay:l=k.endDelay,repeat:u=k.repeat,easing:d=k.easing,direction:p,offset:g,allowWebkitAcceleration:A=!1}=i;const M=a(t);let O=j.waapi(),P=r;const D=(t=>y.has(t))(e);D&&(c[e]&&(e=c[e]),((t,e)=>{const{activeTransforms:n}=a(t);var i,r;r=e,-1===(i=n).indexOf(r)&&i.push(r),t.style.transform=m(n)})(t,e),e=h(e));const V=f.get(e);let $,E=function(t,e,n){for(let i=0;i<t.length;i++)null===t[i]&&(t[i]=i?t[i-1]:z(e,n));return t}((t=>Array.isArray(t)?t:[t])(n),t,e);if(function(t,e){t.activeAnimations[e]&&(T(t.activeAnimations[e]),t.activeAnimations[e]=void 0)}(M,e),v(e)?(P=((t,e)=>n=>t.style.setProperty(e,n))(t,e),j.cssRegisterProperty()?function(t){if(!b.has(t)){b.add(t);try{const{syntax:e,initialValue:n}=f.has(t)?f.get(t):{};CSS.registerProperty({name:t,inherits:!1,syntax:e,initialValue:n})}catch(t){}}}(e):O=!1):P=((t,e)=>n=>t.style[e]=n)(t,e),O){V&&(E=E.map((t=>"number"==typeof t?V.toDefaultUnit(t):t))),j.partialKeyframes()||1!==E.length||E.unshift(z(t,e));const n={delay:S(o),duration:S(s),endDelay:S(l),easing:w(d)?void 0:x(d),direction:p,iterations:u+1,fill:"forwards"};$=t.animate({[e]:E,offset:g,easing:w(d)?d.map(x):void 0},n),$.finished||($.finished=new Promise(((t,e)=>{$.onfinish=t,$.oncancel=e})));const i=E[E.length-1];$.finished.then((()=>P(i))).catch(r),A||($.playbackRate=1.000001)}else if(D&&E.every(X)){if(1===E.length&&E.unshift(z(t,e)||(null==V?void 0:V.initialValue)||0),E=E.map((t=>"string"==typeof t?parseFloat(t):t)),V){const t=P;P=e=>t(V.toDefaultUnit(e))}$=function(t,e=[0,1],n={}){return new W(t,e,n)}(P,E,i)}else{const t=E[E.length-1];P(V&&"number"==typeof t?V.toDefaultUnit(t):t)}return M.activeAnimations[e]=$,null==$||$.finished.then((()=>M.activeAnimations[e]=void 0)).catch(r),$}const X=t=>"number"==typeof t,Y=(t,e)=>t[e]?Object.assign(Object.assign({},t),t[e]):Object.assign({},t);const Z=t=>t.animations[0],B={get:(t,e)=>{var n,i;switch(e){case"duration":return t.duration;case"currentTime":let a=(null===(n=Z(t))||void 0===n?void 0:n[e])||0;return a?a/1e3:0;case"playbackRate":return null===(i=Z(t))||void 0===i?void 0:i[e];case"finished":return t.finished||(t.finished=Promise.all(t.animations.map(G)).catch(r)),t.finished;case"stop":return()=>t.animations.forEach(T);default:return()=>t.animations.forEach((t=>t[e]()))}},set:(t,e,n)=>{switch(e){case"currentTime":n=S(n);case"currentTime":case"playbackRate":for(let i=0;i<t.animations.length;i++)t.animations[i][e]=n;return!0}return!1}},G=t=>t.finished;function H(t,e,n){return"function"==typeof t?t(e,n):t}function I(t,e,n={}){var i;const a=[],r=(t=function(t,e){var n;return"string"==typeof t?e?(null!==(n=e[t])&&void 0!==n||(e[t]=document.querySelectorAll(t)),t=e[t]):t=document.querySelectorAll(t):t instanceof Element&&(t=[t]),Array.from(t)}(t)).length;for(let i=0;i<r;i++){const s=t[i];for(const t in e){const o=Y(n,t);o.delay=H(o.delay,i,r);const c=K(s,t,e[t],o);c&&a.push(c)}}return((t,e)=>new Proxy({animations:t,duration:e},B))(a,null!==(i=n.duration)&&void 0!==i?i:k.duration)}}]);
!function(t){var e={};function n(i){if(e[i])return e[i].exports;var a=e[i]={i:i,l:!1,exports:{}};return t[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(i,a,function(e){return t[e]}.bind(null,a));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";n.r(e),n.d(e,"animate",(function(){return I}));const i=new WeakMap;function a(t){return i.has(t)||i.set(t,{activeTransforms:[],activeAnimations:{}}),i.get(t)}const r=()=>{},s=t=>t,o=["","X","Y","Z"],c={x:"translateX",y:"translateY",z:"translateZ"},l={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:t=>t+"deg"},u={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:t=>t+"px"},rotate:l,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:s},skew:l},f=new Map,h=t=>`--motion-${t}`,d=["x","y","z"];["translate","scale","rotate","skew"].forEach((t=>{o.forEach((e=>{d.push(t+e),f.set(h(t+e),u[t])}))}));const p=(t,e)=>d.indexOf(t)-d.indexOf(e),y=new Set(d),m=t=>t.sort(p).reduce(g,"").trim(),g=(t,e)=>`${t} ${e}(var(${h(e)}))`,v=t=>t.startsWith("--"),b=new Set;const S=t=>1e3*t;function T(t){try{"finished"!==t.playState&&t.commitStyles(),t.cancel()}catch(t){}}const x=t=>Array.isArray(t)&&"number"!=typeof t[0],w=t=>(t=>Array.isArray(t)&&"number"==typeof t[0])(t)?A(t):t,A=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,M=t=>document.createElement("div").animate(t,{duration:.001}),O={cssRegisterProperty:()=>"undefined"!=typeof CSS&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{M({opacity:[1]})}catch(t){return!1}return!0},finished:()=>Boolean(M({opacity:[0,1]}).finished)},P={},j=Object.keys(O).reduce(((t,e)=>(t[e]=()=>(void 0===P[e]&&(P[e]=O[e]()),P[e]),t)),{}),k={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},D=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function V(t,e,n,i){if(t===e&&n===i)return s;const a=e=>function(t,e,n,i,a){let r,s,o=0;do{s=e+(n-e)/2,r=D(s,i,a)-t,r>0?n=s:e=s}while(Math.abs(r)>1e-7&&++o<12);return s}(e,0,1,t,n);return t=>0===t||1===t?t:D(a(t),e,i)}const $=(t,e="end")=>n=>{const i=(n="end"===e?Math.min(n,.999):Math.max(n,.001))*t,a="end"===e?Math.floor(i):Math.ceil(i);return r=0,s=1,o=a/t,Math.min(Math.max(o,r),s);var r,s,o},E={ease:V(.25,.1,.25,1),"ease-in":V(.42,0,1,1),"ease-in-out":V(.42,0,.58,1),"ease-out":V(0,0,.58,1)},R=/\((.*?)\)/;function U(t){if("function"==typeof t)return t;if(Array.isArray(t))return V(...t);if(E[t])return E[t];if(t.startsWith("steps")){const e=R.exec(t);if(e){const t=e[1].split(",");return $(parseFloat(t[0]),t[1].trim())}}return s}const _=(t,e,n)=>-n*t+n*e+t,q=(t,e,n)=>e-t==0?1:(n-t)/(e-t);function C(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const a=q(0,e,i);t.push(_(n,1,a))}}function F(t,e=function(t){const e=[0];return C(e,t-1),e}(t.length),n=s){const i=t.length,a=i-e.length;return a>0&&C(e,a),a=>{let r=0;for(;r<i-2&&!(a<e[r+1]);r++);let s=(o=q(e[r],e[r+1],a),Math.min(1,Math.max(o,0)));var o;return s=function(t,e){return x(t)?t[((t,e,n)=>{const i=e-t;return((n-t)%i+i)%i+t})(0,t.length,e)]:t}(n,r)(s),_(t[r],t[r+1],s)}}class W{constructor(t,e,{easing:n=k.easing,duration:i=k.duration,delay:a=k.delay,endDelay:r=k.endDelay,offset:s,repeat:o=k.repeat,direction:c="normal"}){this.startTime=0,this.rate=1,this.t=0,this.cancelT=0,this.playState="idle",this.finished=new Promise(((t,e)=>{this.resolve=t,this.reject=e}));const l=i*(o+1),u=F(e,s,x(n)?n.map(U):U(n));this.tick=e=>{if("finished"===this.playState){const e=u(1);return t(e),void this.resolve(e)}this.pauseTime&&(e=this.pauseTime);let n=(e-this.startTime)*this.rate;this.t=n,n/=1e3,n=Math.max(n-a,0);const s=n/i;let o=Math.floor(s),f=s%1;!f&&s>=1&&(f=1),1===f&&o--;const h=o%2;("reverse"===c||"alternate"===c&&h||"alternate-reverse"===c&&!h)&&(f=1-f);const d=n>=l?1:Math.min(f,1),p=u(d);t(p);n>=l+r?(this.playState="finished",this.resolve(p)):"idle"!==this.playState&&requestAnimationFrame(this.tick)},this.play()}play(){const t=performance.now();this.playState="running",this.pauseTime?this.startTime=t-(this.pauseTime-this.startTime):this.startTime||(this.startTime=t),this.pauseTime=void 0,requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=performance.now()}finish(){this.playState="finished",this.tick(0)}cancel(){this.playState="idle",this.tick(this.cancelT),this.reject(!1)}reverse(){this.rate*=-1}commitStyles(){this.cancelT=this.t}get currentTime(){return this.t}set currentTime(t){this.pauseTime||0===this.rate?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}}const z=(t,e)=>{let n=v(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!n&&0!==n){const t=f.get(e);t&&(n=t.initialValue)}return n};function K(t,e,n,i={}){let{duration:s=k.duration,delay:o=k.delay,endDelay:l=k.endDelay,repeat:u=k.repeat,easing:d=k.easing,direction:p,offset:g,allowWebkitAcceleration:A=!1}=i;const M=a(t);let O=j.waapi(),P=r;const D=(t=>y.has(t))(e);D&&(c[e]&&(e=c[e]),((t,e)=>{const{activeTransforms:n}=a(t);var i,r;r=e,-1===(i=n).indexOf(r)&&i.push(r),t.style.transform=m(n)})(t,e),e=h(e));const V=f.get(e);let $,E=function(t,e,n){for(let i=0;i<t.length;i++)null===t[i]&&(t[i]=i?t[i-1]:z(e,n));return t}((t=>Array.isArray(t)?t:[t])(n),t,e);if(function(t,e){t.activeAnimations[e]&&(T(t.activeAnimations[e]),t.activeAnimations[e]=void 0)}(M,e),v(e)?(P=((t,e)=>n=>t.style.setProperty(e,n))(t,e),j.cssRegisterProperty()?function(t){if(!b.has(t)){b.add(t);try{const{syntax:e,initialValue:n}=f.has(t)?f.get(t):{};CSS.registerProperty({name:t,inherits:!1,syntax:e,initialValue:n})}catch(t){}}}(e):O=!1):P=((t,e)=>n=>t.style[e]=n)(t,e),O){V&&(E=E.map((t=>"number"==typeof t?V.toDefaultUnit(t):t))),j.partialKeyframes()||1!==E.length||E.unshift(z(t,e));const n={delay:S(o),duration:S(s),endDelay:S(l),easing:x(d)?void 0:w(d),direction:p,iterations:u+1,fill:"both"};$=t.animate({[e]:E,offset:g,easing:x(d)?d.map(w):void 0},n),$.finished||($.finished=new Promise(((t,e)=>{$.onfinish=t,$.oncancel=e})));const i=E[E.length-1];$.finished.then((()=>P(i))).catch(r),A||($.playbackRate=1.000001)}else if(D&&E.every(X)){if(1===E.length&&E.unshift(z(t,e)||(null==V?void 0:V.initialValue)||0),E=E.map((t=>"string"==typeof t?parseFloat(t):t)),V){const t=P;P=e=>t(V.toDefaultUnit(e))}$=function(t,e=[0,1],n={}){return new W(t,e,n)}(P,E,i)}else{const t=E[E.length-1];P(V&&"number"==typeof t?V.toDefaultUnit(t):t)}return M.activeAnimations[e]=$,null==$||$.finished.then((()=>M.activeAnimations[e]=void 0)).catch(r),$}const X=t=>"number"==typeof t,Y=(t,e)=>t[e]?Object.assign(Object.assign({},t),t[e]):Object.assign({},t);const Z=t=>t.animations[0],B={get:(t,e)=>{var n,i;switch(e){case"duration":return t.duration;case"currentTime":let a=(null===(n=Z(t))||void 0===n?void 0:n[e])||0;return a?a/1e3:0;case"playbackRate":return null===(i=Z(t))||void 0===i?void 0:i[e];case"finished":return t.finished||(t.finished=Promise.all(t.animations.map(G)).catch(r)),t.finished;case"stop":return()=>t.animations.forEach(T);default:return()=>t.animations.forEach((t=>t[e]()))}},set:(t,e,n)=>{switch(e){case"currentTime":n=S(n);case"currentTime":case"playbackRate":for(let i=0;i<t.animations.length;i++)t.animations[i][e]=n;return!0}return!1}},G=t=>t.finished;function H(t,e,n){return"function"==typeof t?t(e,n):t}function I(t,e,n={}){var i;const a=[],r=(t=function(t,e){var n;return"string"==typeof t?e?(null!==(n=e[t])&&void 0!==n||(e[t]=document.querySelectorAll(t)),t=e[t]):t=document.querySelectorAll(t):t instanceof Element&&(t=[t]),Array.from(t)}(t)).length;for(let i=0;i<r;i++){const s=t[i];for(const t in e){const o=Y(n,t);o.delay=H(o.delay,i,r);const c=K(s,t,e[t],o);c&&a.push(c)}}return((t,e)=>new Proxy({animations:t,duration:e},B))(a,null!==(i=n.duration)&&void 0!==i?i:k.duration)}}]);

@@ -90,7 +90,3 @@ 'use strict';

iterations: repeat + 1,
/**
* This allows `currentTime` to be set as `duration`. Otherwise, the animation
* effect is considered finished and is removed entirely.
*/
fill: "forwards",
fill: "both",
};

@@ -97,0 +93,0 @@ animation = element.animate({

@@ -86,7 +86,3 @@ import { getAnimationData } from './data.es.js';

iterations: repeat + 1,
/**
* This allows `currentTime` to be set as `duration`. Otherwise, the animation
* effect is considered finished and is removed entirely.
*/
fill: "forwards",
fill: "both",
};

@@ -93,0 +89,0 @@ animation = element.animate({

{
"name": "motion",
"version": "10.1.1",
"version": "10.1.2",
"description": "The Motion library for the web",

@@ -5,0 +5,0 @@ "author": "Matt Perry",

@@ -11,3 +11,3 @@ import { AnimationControls, AnimationOptions } from "../dom/types";

private cancelT;
private playState;
playState: AnimationPlayState;
constructor(output: (v: number) => void, keyframes: number[], { easing, duration, delay, endDelay, offset, repeat, direction, }: AnimationOptions);

@@ -14,0 +14,0 @@ finished: Promise<unknown>;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc