function r({ velocity: o = 0, from: n = 0, power: i = 0.8, timeConstant: s = 350, restDelta: u = 0.5, modifyTarget: c }) {
  const e = { done: !1, value: n };
  let a = i * o;
  const d = n + a, t = c === void 0 ? d : c(d);
  return t !== d && (a = t - n), {
    next: (p) => {
      const l = -a * Math.exp(-p / s);
      return e.done = !(l > u || l < -u), e.value = e.done ? t : t + l, e;
    },
    flipTarget: () => {
    }
  };
}
export {
  r as decay
};
//# sourceMappingURL=decay.es.js.map
