"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../generators/utils/is-generator.mjs.js"),t=require("./is-animatable.mjs.js"),r=require("../../../../../motion-utils/dist/es/errors.mjs.js");exports.canAnimate=function(i,n,s,a){const o=i[0];if(null===o)return!1;if("display"===n||"visibility"===n)return!0;const l=i[i.length-1],u=t.isAnimatable(o,n),m=t.isAnimatable(l,n);return r.warning(u===m,`You are trying to animate ${n} from "${o}" to "${l}". "${u?l:o}" is not an animatable value.`,"value-not-animatable"),!(!u||!m)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}(i)||("spring"===s||e.isGenerator(s))&&a)};
//# sourceMappingURL=can-animate.mjs.js.map
