import{__read as e}from"../../../../node_modules/tslib/tslib.es6.js";import{invariant as i}from"../../../../../hey-listen/dist/hey-listen.es.js";import{cubicBezier as r}from"../../../../../popmotion/dist/es/easing/cubic-bezier.js";import{linear as n,easeIn as t,easeInOut as s,easeOut as o,circIn as a,circInOut as u,circOut as c,backIn as m,backInOut as b,backOut as p,anticipate as f,bounceIn as l,bounceInOut as y,bounceOut as I}from"../../../../../popmotion/dist/es/easing/index.js";var d={linear:n,easeIn:t,easeInOut:s,easeOut:o,circIn:a,circInOut:u,circOut:c,backIn:m,backInOut:b,backOut:p,anticipate:f,bounceIn:l,bounceInOut:y,bounceOut:I},O=function(n){if(Array.isArray(n)){i(4===n.length,"Cubic bezier arrays must contain four numerical values.");var t=e(n,4),s=t[0],o=t[1],a=t[2],u=t[3];return r(s,o,a,u)}return"string"==typeof n?(i(void 0!==d[n],"Invalid easing type '"+n+"'"),d[n]):n},g=function(e){return Array.isArray(e)&&"number"!=typeof e[0]};export{O as easingDefinitionToFunction,g as isEasingArray};
//# sourceMappingURL=easing.js.map
