"use client";
import { defaultDateLib as o } from "../classes/DateLib.js";
function c(f, r, t = !1, s = o) {
  let { from: n, to: e } = f;
  const { differenceInCalendarDays: i, isSameDay: a } = s;
  return n && e ? (i(e, n) < 0 && ([n, e] = [e, n]), i(r, n) >= (t ? 1 : 0) && i(e, r) >= (t ? 1 : 0)) : !t && e ? a(e, r) : !t && n ? a(n, r) : !1;
}
export {
  c as rangeIncludesDate
};
