"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const o={EASE_IN:{value:"ease-in",formula:o=>o*o*o},EASE_OUT:{value:"ease-out",formula:o=>1-Math.pow(1-o,3)},EASE_IN_OUT:{value:"ease-in-out",formula:o=>o<.5?4*o*o*o:1-Math.pow(-2*o+2,3)/2},DEFAULT:{value:"default",formula:o=>1+--o*o*o*o*o}},e=o=>{let e;let t=o.options.animation??{};o.on("beforeOptionsChanged",a=>{clearTimeout(e),e=setTimeout(()=>{a.options.animation&&JSON.stringify(a.options.animation)!==JSON.stringify(t)&&(t=a.options.animation,o.update(a.options))},200)})};exports.AnimationPlugin=e,exports.CAROUSEL_ANIMATION=o,exports.DEFAULT_PLAY_SPEED=500,exports.default=e;
