import { jsx as a } from "react/jsx-runtime";
import p from "react-countup";
const u = ({ value: e = 0, decimals: t, duration: l = 1, preserveValue: o = !0, ...i }) => {
  const [, r] = e.toString().split("."), n = t ?? ((r == null ? void 0 : r.length) || 0);
  return /* @__PURE__ */ a(
    p,
    {
      end: e,
      ...i,
      duration: l,
      decimals: n,
      enableScrollSpy: !1,
      preserveValue: o
    }
  );
};
export {
  u as d
};
