function l(n, a = -1 / 0, t = 1 / 0) {
  return Math.min(Math.max(n, a), t);
}
function i(n, a) {
  let t = n, e = 0, r = a.toString(), o = r.toLowerCase().indexOf("e-");
  if (o > 0) e = Math.abs(Math.floor(Math.log10(Math.abs(a)))) + o;
  else {
    let f = r.indexOf(".");
    f >= 0 && (e = r.length - f);
  }
  if (e > 0) {
    let f = Math.pow(10, e);
    t = Math.round(t * f) / f;
  }
  return t;
}
function c(n, a, t, e) {
  a = Number(a), t = Number(t);
  let r = (n - (isNaN(a) ? 0 : a)) % e, o = i(Math.abs(r) * 2 >= e ? n + Math.sign(r) * (e - Math.abs(r)) : n - r, e);
  return isNaN(a) ? !isNaN(t) && o > t && (o = Math.floor(i(t / e, e)) * e) : o < a ? o = a : !isNaN(t) && o > t && (o = a + Math.floor(i((t - a) / e, e)) * e), o = i(o, e), o;
}
export {
  l as $,
  c as a
};
//# sourceMappingURL=number-dMxJejI6.es.js.map
