"use client";
function T(o, f, h, c) {
  const s = o[0], a = o[o.length - 1], { ISOWeek: d, fixedWeeks: l, broadcastCalendar: r } = h ?? {}, { addDays: O, differenceInCalendarDays: D, differenceInCalendarMonths: g, endOfBroadcastWeek: u, endOfISOWeek: I, endOfMonth: W, endOfWeek: x, isAfter: y, startOfBroadcastWeek: C, startOfISOWeek: F, startOfWeek: M } = c, i = r ? C(s, c) : d ? F(s) : M(s), S = r ? u(a) : d ? I(W(a)) : x(W(a)), A = D(S, i), B = g(a, s) + 1, e = [];
  for (let t = 0; t <= A; t++) {
    const n = O(i, t);
    if (f && y(n, f))
      break;
    e.push(n);
  }
  const k = (r ? 35 : 42) * B;
  if (l && e.length < k) {
    const t = k - e.length;
    for (let n = 0; n < t; n++) {
      const b = O(e[e.length - 1], 1);
      e.push(b);
    }
  }
  return e;
}
export {
  T as getDates
};
