"use client";
import { millisecondsInWeek as f } from "./constants.js";
import { startOfWeek as m } from "./startOfWeek.js";
import { startOfWeekYear as a } from "./startOfWeekYear.js";
import { toDate as i } from "./toDate.js";
function u(r, e) {
  const t = i(r, e?.in), o = +m(t, e) - +a(t, e);
  return Math.round(o / f) + 1;
}
export {
  u as default,
  u as getWeek
};
