"use client";
import { defaultDateLib as f } from "../classes/DateLib.js";
function c(t, r, e = f) {
  const o = Array.isArray(r) ? r : [r];
  let a = t.from;
  const i = e.differenceInCalendarDays(t.to, t.from), s = Math.min(i, 6);
  for (let n = 0; n <= s; n++) {
    if (o.includes(a.getDay()))
      return !0;
    a = e.addDays(a, 1);
  }
  return !1;
}
export {
  c as rangeContainsDayOfWeek
};
