UNPKG

epic-designer-gold

Version:

基于vue3的设计器,可视化开发页面表单

11,952 lines 383 kB
var D0 = Object.defineProperty;
var M0 = (e, n, r) => n in e ? D0(e, n, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[n] = r;
var C = (e, n, r) => M0(e, typeof n != "symbol" ? n + "" : n, r);
import { c as Oe } from "./_commonjsHelpers-BVfed4GL.js";
import { t as D, w as W, x as G, y as Jt, A as Me, B as ut, C as P0, D as Fl, a as Ir, b as Gn, f as mn, d as bt, e as Yl, r as vn, c as vo } from "./index-B2_JTx7E.js";
import { c as Jn, _ as kt, r as El, e as Zr } from "./index-kOCEDlqX.js";
import { r as ke } from "./_vue_commonjs-external-NwvjgbHK.js";
import { s as kn, a as ea } from "./index-CaIHah0h.js";
import { s as ta, b as jr } from "./index-DDGSZCWD.js";
import { f as _o } from "./fade-in-scale-up.cssr-JG1L7qTi.js";
function T0(e, n) {
  for (var r = 0; r < n.length; r++) {
    const a = n[r];
    if (typeof a != "string" && !Array.isArray(a)) {
      for (const i in a)
        if (i !== "default" && !(i in e)) {
          const u = Object.getOwnPropertyDescriptor(a, i);
          u && Object.defineProperty(e, i, u.get ? u : {
            enumerable: !0,
            get: () => a[i]
          });
        }
    }
  }
  return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
}
var go = {}, yl = {}, er = {}, $l = {}, Vt = {};
Vt.addDays = C0;
var w0 = W, S0 = D;
function C0(e, n, r) {
  const a = (0, S0.toDate)(e, r == null ? void 0 : r.in);
  return isNaN(n) ? (0, w0.constructFrom)((r == null ? void 0 : r.in) || e, NaN) : (n && a.setDate(a.getDate() + n), a);
}
var pr = {};
pr.addMonths = j0;
var wc = W, I0 = D;
function j0(e, n, r) {
  const a = (0, I0.toDate)(e, r == null ? void 0 : r.in);
  if (isNaN(n)) return (0, wc.constructFrom)((r == null ? void 0 : r.in) || e, NaN);
  if (!n)
    return a;
  const i = a.getDate(), u = (0, wc.constructFrom)(
    (r == null ? void 0 : r.in) || e,
    a.getTime()
  );
  u.setMonth(a.getMonth() + n + 1, 0);
  const l = u.getDate();
  return i >= l ? u : (a.setFullYear(
    u.getFullYear(),
    u.getMonth(),
    i
  ), a);
}
$l.add = y0;
var x0 = Vt, F0 = pr, Y0 = W, E0 = D;
function y0(e, n, r) {
  const {
    years: a = 0,
    months: i = 0,
    weeks: u = 0,
    days: l = 0,
    hours: d = 0,
    minutes: c = 0,
    seconds: o = 0
  } = n, f = (0, E0.toDate)(e, r == null ? void 0 : r.in), h = i || a ? (0, F0.addMonths)(f, i + a * 12) : f, v = l || u ? (0, x0.addDays)(h, l + u * 7) : h, P = c + d * 60, I = (o + P * 60) * 1e3;
  return (0, Y0.constructFrom)(
    (r == null ? void 0 : r.in) || e,
    +v + I
  );
}
var Nl = {}, Rl = {};
Rl.isSaturday = N0;
var $0 = D;
function N0(e, n) {
  return (0, $0.toDate)(e, n == null ? void 0 : n.in).getDay() === 6;
}
var Hl = {};
Hl.isSunday = H0;
var R0 = D;
function H0(e, n) {
  return (0, R0.toDate)(e, n == null ? void 0 : n.in).getDay() === 0;
}
var _n = {};
_n.isWeekend = A0;
var z0 = D;
function A0(e, n) {
  const r = (0, z0.toDate)(e, n == null ? void 0 : n.in).getDay();
  return r === 0 || r === 6;
}
Nl.addBusinessDays = U0;
var W0 = W, V0 = Rl, B0 = Hl, Ku = _n, L0 = D;
function U0(e, n, r) {
  const a = (0, L0.toDate)(e, r == null ? void 0 : r.in), i = (0, Ku.isWeekend)(a, r);
  if (isNaN(n)) return (0, W0.constructFrom)(r == null ? void 0 : r.in, NaN);
  const u = a.getHours(), l = n < 0 ? -1 : 1, d = Math.trunc(n / 5);
  a.setDate(a.getDate() + d * 7);
  let c = Math.abs(n % 5);
  for (; c > 0; )
    a.setDate(a.getDate() + l), (0, Ku.isWeekend)(a, r) || (c -= 1);
  return i && (0, Ku.isWeekend)(a, r) && n !== 0 && ((0, V0.isSaturday)(a, r) && a.setDate(a.getDate() + (l < 0 ? 2 : -1)), (0, B0.isSunday)(a, r) && a.setDate(a.getDate() + (l < 0 ? 1 : -2))), a.setHours(u), a;
}
var zl = {}, gn = {};
gn.addMilliseconds = Z0;
var q0 = W, Q0 = D;
function Z0(e, n, r) {
  return (0, q0.constructFrom)(
    (r == null ? void 0 : r.in) || e,
    +(0, Q0.toDate)(e) + n
  );
}
zl.addHours = K0;
var p0 = gn, X0 = G;
function K0(e, n, r) {
  return (0, p0.addMilliseconds)(
    e,
    n * X0.millisecondsInHour,
    r
  );
}
var Al = {}, _r = {}, Bt = {};
Bt.startOfISOWeek = J0;
var G0 = Jt;
function J0(e, n) {
  return (0, G0.startOfWeek)(e, { ...n, weekStartsOn: 1 });
}
_r.getISOWeekYear = em;
var Sc = W, Cc = Bt, k0 = D;
function em(e, n) {
  const r = (0, k0.toDate)(e, n == null ? void 0 : n.in), a = r.getFullYear(), i = (0, Sc.constructFrom)(r, 0);
  i.setFullYear(a + 1, 0, 4), i.setHours(0, 0, 0, 0);
  const u = (0, Cc.startOfISOWeek)(
    i
  ), l = (0, Sc.constructFrom)(r, 0);
  l.setFullYear(a, 0, 4), l.setHours(0, 0, 0, 0);
  const d = (0, Cc.startOfISOWeek)(
    l
  );
  return r.getTime() >= u.getTime() ? a + 1 : r.getTime() >= d.getTime() ? a : a - 1;
}
var Wl = {}, tr = {}, rr = {};
rr.getTimezoneOffsetInMilliseconds = rm;
var tm = D;
function rm(e) {
  const n = (0, tm.toDate)(e), r = new Date(
    Date.UTC(
      n.getFullYear(),
      n.getMonth(),
      n.getDate(),
      n.getHours(),
      n.getMinutes(),
      n.getSeconds(),
      n.getMilliseconds()
    )
  );
  return r.setUTCFullYear(n.getFullYear()), +e - +r;
}
var bn = {};
bn.startOfDay = am;
var nm = D;
function am(e, n) {
  const r = (0, nm.toDate)(e, n == null ? void 0 : n.in);
  return r.setHours(0, 0, 0, 0), r;
}
tr.differenceInCalendarDays = lm;
var Ic = rr, im = Me, um = G, jc = bn;
function lm(e, n, r) {
  const [a, i] = (0, im.normalizeDates)(
    r == null ? void 0 : r.in,
    e,
    n
  ), u = (0, jc.startOfDay)(a), l = (0, jc.startOfDay)(i), d = +u - (0, Ic.getTimezoneOffsetInMilliseconds)(u), c = +l - (0, Ic.getTimezoneOffsetInMilliseconds)(l);
  return Math.round(
    (d - c) / um.millisecondsInDay
  );
}
var Xr = {};
Xr.startOfISOWeekYear = om;
var dm = W, cm = _r, sm = Bt;
function om(e, n) {
  const r = (0, cm.getISOWeekYear)(e, n), a = (0, dm.constructFrom)((n == null ? void 0 : n.in) || e, 0);
  return a.setFullYear(r, 0, 4), a.setHours(0, 0, 0, 0), (0, sm.startOfISOWeek)(a);
}
Wl.setISOWeekYear = vm;
var fm = W, hm = tr, xc = Xr, mm = D;
function vm(e, n, r) {
  let a = (0, mm.toDate)(e, r == null ? void 0 : r.in);
  const i = (0, hm.differenceInCalendarDays)(
    a,
    (0, xc.startOfISOWeekYear)(a, r)
  ), u = (0, fm.constructFrom)((r == null ? void 0 : r.in) || e, 0);
  return u.setFullYear(n, 0, 4), u.setHours(0, 0, 0, 0), a = (0, xc.startOfISOWeekYear)(u), a.setDate(a.getDate() + i), a;
}
Al.addISOWeekYears = bm;
var _m = _r, gm = Wl;
function bm(e, n, r) {
  return (0, gm.setISOWeekYear)(
    e,
    (0, _m.getISOWeekYear)(e, r) + n,
    r
  );
}
var ra = {};
ra.addMinutes = Mm;
var Om = G, Dm = D;
function Mm(e, n, r) {
  const a = (0, Dm.toDate)(e, r == null ? void 0 : r.in);
  return a.setTime(a.getTime() + n * Om.millisecondsInMinute), a;
}
var na = {};
na.addQuarters = Tm;
var Pm = pr;
function Tm(e, n, r) {
  return (0, Pm.addMonths)(e, n * 3, r);
}
var Vl = {};
Vl.addSeconds = Sm;
var wm = gn;
function Sm(e, n, r) {
  return (0, wm.addMilliseconds)(e, n * 1e3, r);
}
var On = {};
On.addWeeks = Im;
var Cm = Vt;
function Im(e, n, r) {
  return (0, Cm.addDays)(e, n * 7, r);
}
var Bl = {};
Bl.addYears = xm;
var jm = pr;
function xm(e, n, r) {
  return (0, jm.addMonths)(e, n * 12, r);
}
var bo = {};
bo.areIntervalsOverlapping = Fm;
var Rn = D;
function Fm(e, n, r) {
  const [a, i] = [
    +(0, Rn.toDate)(e.start, r == null ? void 0 : r.in),
    +(0, Rn.toDate)(e.end, r == null ? void 0 : r.in)
  ].sort((d, c) => d - c), [u, l] = [
    +(0, Rn.toDate)(n.start, r == null ? void 0 : r.in),
    +(0, Rn.toDate)(n.end, r == null ? void 0 : r.in)
  ].sort((d, c) => d - c);
  return r != null && r.inclusive ? a <= l && u <= i : a < l && u < i;
}
var Oo = {}, Ll = {};
Ll.max = Em;
var Fc = W, Ym = D;
function Em(e, n) {
  let r, a = n == null ? void 0 : n.in;
  return e.forEach((i) => {
    !a && typeof i == "object" && (a = Fc.constructFrom.bind(null, i));
    const u = (0, Ym.toDate)(i, a);
    (!r || r < u || isNaN(+u)) && (r = u);
  }), (0, Fc.constructFrom)(a, r || NaN);
}
var Ul = {};
Ul.min = $m;
var Yc = W, ym = D;
function $m(e, n) {
  let r, a = n == null ? void 0 : n.in;
  return e.forEach((i) => {
    !a && typeof i == "object" && (a = Yc.constructFrom.bind(null, i));
    const u = (0, ym.toDate)(i, a);
    (!r || r > u || isNaN(+u)) && (r = u);
  }), (0, Yc.constructFrom)(a, r || NaN);
}
Oo.clamp = zm;
var Nm = Me, Rm = Ll, Hm = Ul;
function zm(e, n, r) {
  const [a, i, u] = (0, Nm.normalizeDates)(
    r == null ? void 0 : r.in,
    e,
    n.start,
    n.end
  );
  return (0, Hm.min)(
    [(0, Rm.max)([a, i], r), u],
    r
  );
}
var ql = {};
ql.closestIndexTo = Am;
var Ec = D;
function Am(e, n) {
  const r = +(0, Ec.toDate)(e);
  if (isNaN(r)) return NaN;
  let a, i;
  return n.forEach((u, l) => {
    const d = (0, Ec.toDate)(u);
    if (isNaN(+d)) {
      a = NaN, i = NaN;
      return;
    }
    const c = Math.abs(r - +d);
    (a == null || c < i) && (a = l, i = c);
  }), a;
}
var Do = {};
Do.closestTo = Lm;
var Wm = Me, Vm = ql, Bm = W;
function Lm(e, n, r) {
  const [a, ...i] = (0, Wm.normalizeDates)(
    r == null ? void 0 : r.in,
    e,
    ...n
  ), u = (0, Vm.closestIndexTo)(a, i);
  if (typeof u == "number" && isNaN(u))
    return (0, Bm.constructFrom)(a, NaN);
  if (u !== void 0) return i[u];
}
var xr = {};
xr.compareAsc = Um;
var yc = D;
function Um(e, n) {
  const r = +(0, yc.toDate)(e) - +(0, yc.toDate)(n);
  return r < 0 ? -1 : r > 0 ? 1 : r;
}
var Mo = {};
Mo.compareDesc = qm;
var $c = D;
function qm(e, n) {
  const r = +(0, $c.toDate)(e) - +(0, $c.toDate)(n);
  return r > 0 ? -1 : r < 0 ? 1 : r;
}
var Le = {};
Le.constructNow = Zm;
var Qm = W;
function Zm(e) {
  return (0, Qm.constructFrom)(e, Date.now());
}
var Po = {};
Po.daysToWeeks = Xm;
var pm = G;
function Xm(e) {
  const n = Math.trunc(e / pm.daysInWeek);
  return n === 0 ? 0 : n;
}
var To = {}, Kr = {};
Kr.isSameDay = Gm;
var Km = Me, Nc = bn;
function Gm(e, n, r) {
  const [a, i] = (0, Km.normalizeDates)(
    r == null ? void 0 : r.in,
    e,
    n
  );
  return +(0, Nc.startOfDay)(a) == +(0, Nc.startOfDay)(i);
}
var nr = {}, Ql = {};
Ql.isDate = Jm;
function Jm(e) {
  return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
}
nr.isValid = tv;
var km = Ql, ev = D;
function tv(e) {
  return !(!(0, km.isDate)(e) && typeof e != "number" || isNaN(+(0, ev.toDate)(e)));
}
To.differenceInBusinessDays = uv;
var rv = Me, Rc = Vt, nv = tr, av = Kr, Hc = nr, iv = _n;
function uv(e, n, r) {
  const [a, i] = (0, rv.normalizeDates)(
    r == null ? void 0 : r.in,
    e,
    n
  );
  if (!(0, Hc.isValid)(a) || !(0, Hc.isValid)(i))
    return NaN;
  const u = (0, nv.differenceInCalendarDays)(a, i), l = u < 0 ? -1 : 1, d = Math.trunc(u / 7);
  let c = d * 5, o = (0, Rc.addDays)(i, d * 7);
  for (; !(0, av.isSameDay)(a, o); )
    c += (0, iv.isWeekend)(o, r) ? 0 : l, o = (0, Rc.addDays)(o, l);
  return c === 0 ? 0 : c;
}
var Zl = {};
Zl.differenceInCalendarISOWeekYears = dv;
var lv = Me, zc = _r;
function dv(e, n, r) {
  const [a, i] = (0, lv.normalizeDates)(
    r == null ? void 0 : r.in,
    e,
    n
  );
  return (0, zc.getISOWeekYear)(a, r) - (0, zc.getISOWeekYear)(i, r);
}
var wo = {};
wo.differenceInCalendarISOWeeks = ov;
var Ac = rr, cv = Me, sv = G, Wc = Bt;
function ov(e, n, r) {
  const [a, i] = (0, cv.normalizeDates)(
    r == null ? void 0 : r.in,
    e,
    n
  ), u = (0, Wc.startOfISOWeek)(a), l = (0, Wc.startOfISOWeek)(i), d = +u - (0, Ac.getTimezoneOffsetInMilliseconds)(u), c = +l - (0, Ac.getTimezoneOffsetInMilliseconds)(l);
  return Math.round(
    (d - c) / sv.millisecondsInWeek
  );
}
var aa = {};
aa.differenceInCalendarMonths = hv;
var fv = Me;
function hv(e, n, r) {
  const [a, i] = (0, fv.normalizeDates)(
    r == null ? void 0 : r.in,
    e,
    n
  ), u = a.getFullYear() - i.getFullYear(), l = a.getMonth() - i.getMonth();
  return u * 12 + l;
}
var pl = {}, Xl = {};
Xl.getQuarter = vv;
var mv = D;
function vv(e, n) {
  const r = (0, mv.toDate)(e, n == null ? void 0 : n.in);
  return Math.trunc(r.getMonth() / 3) + 1;
}
pl.differenceInCalendarQuarters = gv;
var _v = Me, Vc = Xl;
function gv(e, n, r) {
  const [a, i] = (0, _v.normalizeDates)(
    r == null ? void 0 : r.in,
    e,
    n
  ), u = a.getFullYear() - i.getFullYear(), l = (0, Vc.getQuarter)(a) - (0, Vc.getQuarter)(i);
  return u * 4 + l;
}
var ia = {};
ia.differenceInCalendarWeeks = Dv;
var Bc = rr, bv = Me, Ov = G, Lc = Jt;
function Dv(e, n, r) {
  const [a, i] = (0, bv.normalizeDates)(
    r == null ? void 0 : r.in,
    e,
    n
  ), u = (0, Lc.startOfWeek)(a, r), l = (0, Lc.startOfWeek)(i, r), d = +u - (0, Bc.getTimezoneOffsetInMilliseconds)(u), c = +l - (0, Bc.getTimezoneOffsetInMilliseconds)(l);
  return Math.round(
    (d - c) / Ov.millisecondsInWeek
  );
}
var ua = {};
ua.differenceInCalendarYears = Pv;
var Mv = Me;
function Pv(e, n, r) {
  const [a, i] = (0, Mv.normalizeDates)(
    r == null ? void 0 : r.in,
    e,
    n
  );
  return a.getFullYear() - i.getFullYear();
}
var la = {};
la.differenceInDays = Sv;
var Tv = Me, wv = tr;
function Sv(e, n, r) {
  const [a, i] = (0, Tv.normalizeDates)(
    r == null ? void 0 : r.in,
    e,
    n
  ), u = Uc(a, i), l = Math.abs(
    (0, wv.differenceInCalendarDays)(a, i)
  );
  a.setDate(a.getDate() - u * l);
  const d = +(Uc(a, i) === -u), c = u * (l - d);
  return c === 0 ? 0 : c;
}
function Uc(e, n) {
  const r = e.getFullYear() - n.getFullYear() || e.getMonth() - n.getMonth() || e.getDate() - n.getDate() || e.getHours() - n.getHours() || e.getMinutes() - n.getMinutes() || e.getSeconds() - n.getSeconds() || e.getMilliseconds() - n.getMilliseconds();
  return r < 0 ? -1 : r > 0 ? 1 : r;
}
var da = {}, ar = {};
ar.getRoundingMethod = Cv;
function Cv(e) {
  return (n) => {
    const a = (e ? Math[e] : Math.trunc)(n);
    return a === 0 ? 0 : a;
  };
}
da.differenceInHours = Fv;
var Iv = ar, jv = Me, xv = G;
function Fv(e, n, r) {
  const [a, i] = (0, jv.normalizeDates)(
    r == null ? void 0 : r.in,
    e,
    n
  ), u = (+a - +i) / xv.millisecondsInHour;
  return (0, Iv.getRoundingMethod)(r == null ? void 0 : r.roundingMethod)(u);
}
var So = {}, Kl = {};
Kl.subISOWeekYears = Ev;
var Yv = Al;
function Ev(e, n, r) {
  return (0, Yv.addISOWeekYears)(e, -n, r);
}
So.differenceInISOWeekYears = Rv;
var yv = Me, qc = xr, $v = Zl, Nv = Kl;
function Rv(e, n, r) {
  const [a, i] = (0, yv.normalizeDates)(
    r == null ? void 0 : r.in,
    e,
    n
  ), u = (0, qc.compareAsc)(a, i), l = Math.abs(
    (0, $v.differenceInCalendarISOWeekYears)(
      a,
      i,
      r
    )
  ), d = (0, Nv.subISOWeekYears)(
    a,
    u * l,
    r
  ), c = +((0, qc.compareAsc)(d, i) === -u), o = u * (l - c);
  return o === 0 ? 0 : o;
}
var ca = {};
ca.differenceInMilliseconds = Hv;
var Qc = D;
function Hv(e, n) {
  return +(0, Qc.toDate)(e) - +(0, Qc.toDate)(n);
}
var sa = {};
sa.differenceInMinutes = Vv;
var zv = ar, Av = G, Wv = ca;
function Vv(e, n, r) {
  const a = (0, Wv.differenceInMilliseconds)(e, n) / Av.millisecondsInMinute;
  return (0, zv.getRoundingMethod)(r == null ? void 0 : r.roundingMethod)(a);
}
var Dn = {}, Gl = {}, oa = {};
oa.endOfDay = Lv;
var Bv = D;
function Lv(e, n) {
  const r = (0, Bv.toDate)(e, n == null ? void 0 : n.in);
  return r.setHours(23, 59, 59, 999), r;
}
var fa = {};
fa.endOfMonth = qv;
var Uv = D;
function qv(e, n) {
  const r = (0, Uv.toDate)(e, n == null ? void 0 : n.in), a = r.getMonth();
  return r.setFullYear(r.getFullYear(), a + 1, 0), r.setHours(23, 59, 59, 999), r;
}
Gl.isLastDayOfMonth = Xv;
var Qv = oa, Zv = fa, pv = D;
function Xv(e, n) {
  const r = (0, pv.toDate)(e, n == null ? void 0 : n.in);
  return +(0, Qv.endOfDay)(r, n) == +(0, Zv.endOfMonth)(r, n);
}
Dn.differenceInMonths = kv;
var Kv = Me, Gu = xr, Gv = aa, Jv = Gl;
function kv(e, n, r) {
  const [a, i, u] = (0, Kv.normalizeDates)(r == null ? void 0 : r.in, e, e, n), l = (0, Gu.compareAsc)(i, u), d = Math.abs(
    (0, Gv.differenceInCalendarMonths)(i, u)
  );
  if (d < 1) return 0;
  i.getMonth() === 1 && i.getDate() > 27 && i.setDate(30), i.setMonth(i.getMonth() - l * d);
  let c = (0, Gu.compareAsc)(i, u) === -l;
  (0, Jv.isLastDayOfMonth)(a) && d === 1 && (0, Gu.compareAsc)(a, u) === 1 && (c = !1);
  const o = l * (d - +c);
  return o === 0 ? 0 : o;
}
var Co = {};
Co.differenceInQuarters = r_;
var e_ = ar, t_ = Dn;
function r_(e, n, r) {
  const a = (0, t_.differenceInMonths)(e, n, r) / 3;
  return (0, e_.getRoundingMethod)(r == null ? void 0 : r.roundingMethod)(a);
}
var Mn = {};
Mn.differenceInSeconds = i_;
var n_ = ar, a_ = ca;
function i_(e, n, r) {
  const a = (0, a_.differenceInMilliseconds)(e, n) / 1e3;
  return (0, n_.getRoundingMethod)(r == null ? void 0 : r.roundingMethod)(a);
}
var Io = {};
Io.differenceInWeeks = d_;
var u_ = ar, l_ = la;
function d_(e, n, r) {
  const a = (0, l_.differenceInDays)(e, n, r) / 7;
  return (0, u_.getRoundingMethod)(r == null ? void 0 : r.roundingMethod)(a);
}
var Jl = {};
Jl.differenceInYears = o_;
var c_ = Me, Zc = xr, s_ = ua;
function o_(e, n, r) {
  const [a, i] = (0, c_.normalizeDates)(
    r == null ? void 0 : r.in,
    e,
    n
  ), u = (0, Zc.compareAsc)(a, i), l = Math.abs(
    (0, s_.differenceInCalendarYears)(a, i)
  );
  a.setFullYear(1584), i.setFullYear(1584);
  const d = (0, Zc.compareAsc)(a, i) === -u, c = u * (l - +d);
  return c === 0 ? 0 : c;
}
var kl = {}, Lt = {};
Lt.normalizeInterval = h_;
var f_ = Me;
function h_(e, n) {
  const [r, a] = (0, f_.normalizeDates)(
    e,
    n.start,
    n.end
  );
  return { start: r, end: a };
}
kl.eachDayOfInterval = __;
var m_ = Lt, v_ = W;
function __(e, n) {
  const { start: r, end: a } = (0, m_.normalizeInterval)(n == null ? void 0 : n.in, e);
  let i = +r > +a;
  const u = i ? +r : +a, l = i ? a : r;
  l.setHours(0, 0, 0, 0);
  let d = (n == null ? void 0 : n.step) ?? 1;
  if (!d) return [];
  d < 0 && (d = -d, i = !i);
  const c = [];
  for (; +l <= u; )
    c.push((0, v_.constructFrom)(r, l)), l.setDate(l.getDate() + d), l.setHours(0, 0, 0, 0);
  return i ? c.reverse() : c;
}
var jo = {};
jo.eachHourOfInterval = O_;
var g_ = Lt, b_ = W;
function O_(e, n) {
  const { start: r, end: a } = (0, g_.normalizeInterval)(n == null ? void 0 : n.in, e);
  let i = +r > +a;
  const u = i ? +r : +a, l = i ? a : r;
  l.setMinutes(0, 0, 0);
  let d = (n == null ? void 0 : n.step) ?? 1;
  if (!d) return [];
  d < 0 && (d = -d, i = !i);
  const c = [];
  for (; +l <= u; )
    c.push((0, b_.constructFrom)(r, l)), l.setHours(l.getHours() + d);
  return i ? c.reverse() : c;
}
var xo = {};
xo.eachMinuteOfInterval = T_;
var D_ = Lt, M_ = ra, P_ = W;
function T_(e, n) {
  const { start: r, end: a } = (0, D_.normalizeInterval)(n == null ? void 0 : n.in, e);
  r.setSeconds(0, 0);
  let i = +r > +a;
  const u = i ? +r : +a;
  let l = i ? a : r, d = (n == null ? void 0 : n.step) ?? 1;
  if (!d) return [];
  d < 0 && (d = -d, i = !i);
  const c = [];
  for (; +l <= u; )
    c.push((0, P_.constructFrom)(r, l)), l = (0, M_.addMinutes)(l, d);
  return i ? c.reverse() : c;
}
var Fo = {};
Fo.eachMonthOfInterval = C_;
var w_ = Lt, S_ = W;
function C_(e, n) {
  const { start: r, end: a } = (0, w_.normalizeInterval)(n == null ? void 0 : n.in, e);
  let i = +r > +a;
  const u = i ? +r : +a, l = i ? a : r;
  l.setHours(0, 0, 0, 0), l.setDate(1);
  let d = (n == null ? void 0 : n.step) ?? 1;
  if (!d) return [];
  d < 0 && (d = -d, i = !i);
  const c = [];
  for (; +l <= u; )
    c.push((0, S_.constructFrom)(r, l)), l.setMonth(l.getMonth() + d);
  return i ? c.reverse() : c;
}
var Yo = {}, ha = {};
ha.startOfQuarter = j_;
var I_ = D;
function j_(e, n) {
  const r = (0, I_.toDate)(e, n == null ? void 0 : n.in), a = r.getMonth(), i = a - a % 3;
  return r.setMonth(i, 1), r.setHours(0, 0, 0, 0), r;
}
Yo.eachQuarterOfInterval = E_;
var x_ = Lt, F_ = na, Y_ = W, Hn = ha;
function E_(e, n) {
  const { start: r, end: a } = (0, x_.normalizeInterval)(n == null ? void 0 : n.in, e);
  let i = +r > +a;
  const u = i ? +(0, Hn.startOfQuarter)(r) : +(0, Hn.startOfQuarter)(a);
  let l = i ? (0, Hn.startOfQuarter)(a) : (0, Hn.startOfQuarter)(r), d = (n == null ? void 0 : n.step) ?? 1;
  if (!d) return [];
  d < 0 && (d = -d, i = !i);
  const c = [];
  for (; +l <= u; )
    c.push((0, Y_.constructFrom)(r, l)), l = (0, F_.addQuarters)(l, d);
  return i ? c.reverse() : c;
}
var Eo = {};
Eo.eachWeekOfInterval = R_;
var y_ = Lt, $_ = On, N_ = W, zn = Jt;
function R_(e, n) {
  const { start: r, end: a } = (0, y_.normalizeInterval)(n == null ? void 0 : n.in, e);
  let i = +r > +a;
  const u = i ? (0, zn.startOfWeek)(a, n) : (0, zn.startOfWeek)(r, n), l = i ? (0, zn.startOfWeek)(r, n) : (0, zn.startOfWeek)(a, n);
  u.setHours(15), l.setHours(15);
  const d = +l.getTime();
  let c = u, o = (n == null ? void 0 : n.step) ?? 1;
  if (!o) return [];
  o < 0 && (o = -o, i = !i);
  const f = [];
  for (; +c <= d; )
    c.setHours(0), f.push((0, N_.constructFrom)(r, c)), c = (0, $_.addWeeks)(c, o), c.setHours(15);
  return i ? f.reverse() : f;
}
var ma = {};
ma.eachWeekendOfInterval = V_;
var H_ = Lt, z_ = W, A_ = kl, W_ = _n;
function V_(e, n) {
  const { start: r, end: a } = (0, H_.normalizeInterval)(n == null ? void 0 : n.in, e), i = (0, A_.eachDayOfInterval)({ start: r, end: a }, n), u = [];
  let l = 0;
  for (; l < i.length; ) {
    const d = i[l++];
    (0, W_.isWeekend)(d) && u.push((0, z_.constructFrom)(r, d));
  }
  return u;
}
var yo = {}, Pn = {};
Pn.startOfMonth = L_;
var B_ = D;
function L_(e, n) {
  const r = (0, B_.toDate)(e, n == null ? void 0 : n.in);
  return r.setDate(1), r.setHours(0, 0, 0, 0), r;
}
yo.eachWeekendOfMonth = Z_;
var U_ = ma, q_ = fa, Q_ = Pn;
function Z_(e, n) {
  const r = (0, Q_.startOfMonth)(e, n), a = (0, q_.endOfMonth)(e, n);
  return (0, U_.eachWeekendOfInterval)({ start: r, end: a }, n);
}
var $o = {}, ed = {};
ed.endOfYear = X_;
var p_ = D;
function X_(e, n) {
  const r = (0, p_.toDate)(e, n == null ? void 0 : n.in), a = r.getFullYear();
  return r.setFullYear(a + 1, 0, 0), r.setHours(23, 59, 59, 999), r;
}
var va = {};
va.startOfYear = G_;
var K_ = D;
function G_(e, n) {
  const r = (0, K_.toDate)(e, n == null ? void 0 : n.in);
  return r.setFullYear(r.getFullYear(), 0, 1), r.setHours(0, 0, 0, 0), r;
}
$o.eachWeekendOfYear = tg;
var J_ = ma, k_ = ed, eg = va;
function tg(e, n) {
  const r = (0, eg.startOfYear)(e, n), a = (0, k_.endOfYear)(e, n);
  return (0, J_.eachWeekendOfInterval)({ start: r, end: a }, n);
}
var No = {};
No.eachYearOfInterval = ag;
var rg = Lt, ng = W;
function ag(e, n) {
  const { start: r, end: a } = (0, rg.normalizeInterval)(n == null ? void 0 : n.in, e);
  let i = +r > +a;
  const u = i ? +r : +a, l = i ? a : r;
  l.setHours(0, 0, 0, 0), l.setMonth(0, 1);
  let d = (n == null ? void 0 : n.step) ?? 1;
  if (!d) return [];
  d < 0 && (d = -d, i = !i);
  const c = [];
  for (; +l <= u; )
    c.push((0, ng.constructFrom)(r, l)), l.setFullYear(l.getFullYear() + d);
  return i ? c.reverse() : c;
}
var Ro = {};
Ro.endOfDecade = ug;
var ig = D;
function ug(e, n) {
  const r = (0, ig.toDate)(e, n == null ? void 0 : n.in), a = r.getFullYear(), i = 9 + Math.floor(a / 10) * 10;
  return r.setFullYear(i, 11, 31), r.setHours(23, 59, 59, 999), r;
}
var Ho = {};
Ho.endOfHour = dg;
var lg = D;
function dg(e, n) {
  const r = (0, lg.toDate)(e, n == null ? void 0 : n.in);
  return r.setMinutes(59, 59, 999), r;
}
var zo = {}, td = {};
td.endOfWeek = og;
var cg = ut, sg = D;
function og(e, n) {
  var d, c, o, f;
  const r = (0, cg.getDefaultOptions)(), a = (n == null ? void 0 : n.weekStartsOn) ?? ((c = (d = n == null ? void 0 : n.locale) == null ? void 0 : d.options) == null ? void 0 : c.weekStartsOn) ?? r.weekStartsOn ?? ((f = (o = r.locale) == null ? void 0 : o.options) == null ? void 0 : f.weekStartsOn) ?? 0, i = (0, sg.toDate)(e, n == null ? void 0 : n.in), u = i.getDay(), l = (u < a ? -7 : 0) + 6 - (u - a);
  return i.setDate(i.getDate() + l), i.setHours(23, 59, 59, 999), i;
}
zo.endOfISOWeek = hg;
var fg = td;
function hg(e, n) {
  return (0, fg.endOfWeek)(e, { ...n, weekStartsOn: 1 });
}
var Ao = {};
Ao.endOfISOWeekYear = gg;
var mg = W, vg = _r, _g = Bt;
function gg(e, n) {
  const r = (0, vg.getISOWeekYear)(e, n), a = (0, mg.constructFrom)(
    (n == null ? void 0 : n.in) || e,
    0
  );
  a.setFullYear(r + 1, 0, 4), a.setHours(0, 0, 0, 0);
  const i = (0, _g.startOfISOWeek)(a, n);
  return i.setMilliseconds(i.getMilliseconds() - 1), i;
}
var Wo = {};
Wo.endOfMinute = Og;
var bg = D;
function Og(e, n) {
  const r = (0, bg.toDate)(e, n == null ? void 0 : n.in);
  return r.setSeconds(59, 999), r;
}
var Vo = {};
Vo.endOfQuarter = Mg;
var Dg = D;
function Mg(e, n) {
  const r = (0, Dg.toDate)(e, n == null ? void 0 : n.in), a = r.getMonth(), i = a - a % 3 + 3;
  return r.setMonth(i, 0), r.setHours(23, 59, 59, 999), r;
}
var Bo = {};
Bo.endOfSecond = Tg;
var Pg = D;
function Tg(e, n) {
  const r = (0, Pg.toDate)(e, n == null ? void 0 : n.in);
  return r.setMilliseconds(999), r;
}
var Lo = {};
Lo.endOfToday = Sg;
var wg = oa;
function Sg(e) {
  return (0, wg.endOfDay)(Date.now(), e);
}
var Uo = {};
Uo.endOfTomorrow = Cg;
var pc = Le;
function Cg(e) {
  const n = (0, pc.constructNow)(e == null ? void 0 : e.in), r = n.getFullYear(), a = n.getMonth(), i = n.getDate(), u = (0, pc.constructNow)(e == null ? void 0 : e.in);
  return u.setFullYear(r, a, i + 1), u.setHours(23, 59, 59, 999), e != null && e.in ? e.in(u) : u;
}
var qo = {};
qo.endOfYesterday = xg;
var Ig = W, jg = Le;
function xg(e) {
  const n = (0, jg.constructNow)(e == null ? void 0 : e.in), r = (0, Ig.constructFrom)(e == null ? void 0 : e.in, 0);
  return r.setFullYear(n.getFullYear(), n.getMonth(), n.getDate() - 1), r.setHours(23, 59, 59, 999), r;
}
var _a = {}, Fr = {};
(function(e) {
  Object.defineProperty(e, "defaultLocale", {
    enumerable: !0,
    get: function() {
      return n.enUS;
    }
  });
  var n = P0;
})(Fr);
var rd = {}, nd = {};
nd.getDayOfYear = yg;
var Fg = tr, Yg = va, Eg = D;
function yg(e, n) {
  const r = (0, Eg.toDate)(e, n == null ? void 0 : n.in);
  return (0, Fg.differenceInCalendarDays)(
    r,
    (0, Yg.startOfYear)(r)
  ) + 1;
}
var ga = {};
ga.getISOWeek = zg;
var $g = G, Ng = Bt, Rg = Xr, Hg = D;
function zg(e, n) {
  const r = (0, Hg.toDate)(e, n == null ? void 0 : n.in), a = +(0, Ng.startOfISOWeek)(r) - +(0, Rg.startOfISOWeekYear)(r);
  return Math.round(a / $g.millisecondsInWeek) + 1;
}
var ba = {}, Oa = {}, Tn = {};
Tn.getWeekYear = Vg;
var Ag = ut, Xc = W, Kc = Jt, Wg = D;
function Vg(e, n) {
  var f, h, v, P;
  const r = (0, Wg.toDate)(e, n == null ? void 0 : n.in), a = r.getFullYear(), i = (0, Ag.getDefaultOptions)(), u = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((h = (f = n == null ? void 0 : n.locale) == null ? void 0 : f.options) == null ? void 0 : h.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((P = (v = i.locale) == null ? void 0 : v.options) == null ? void 0 : P.firstWeekContainsDate) ?? 1, l = (0, Xc.constructFrom)(
    (n == null ? void 0 : n.in) || e,
    0
  );
  l.setFullYear(a + 1, 0, u), l.setHours(0, 0, 0, 0);
  const d = (0, Kc.startOfWeek)(
    l,
    n
  ), c = (0, Xc.constructFrom)(
    (n == null ? void 0 : n.in) || e,
    0
  );
  c.setFullYear(a, 0, u), c.setHours(0, 0, 0, 0);
  const o = (0, Kc.startOfWeek)(
    c,
    n
  );
  return +r >= +d ? a + 1 : +r >= +o ? a : a - 1;
}
Oa.startOfWeekYear = Qg;
var Bg = ut, Lg = W, Ug = Tn, qg = Jt;
function Qg(e, n) {
  var d, c, o, f;
  const r = (0, Bg.getDefaultOptions)(), a = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((c = (d = n == null ? void 0 : n.locale) == null ? void 0 : d.options) == null ? void 0 : c.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((f = (o = r.locale) == null ? void 0 : o.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, i = (0, Ug.getWeekYear)(e, n), u = (0, Lg.constructFrom)((n == null ? void 0 : n.in) || e, 0);
  return u.setFullYear(i, 0, a), u.setHours(0, 0, 0, 0), (0, qg.startOfWeek)(u, n);
}
ba.getWeek = Gg;
var Zg = G, pg = Jt, Xg = Oa, Kg = D;
function Gg(e, n) {
  const r = (0, Kg.toDate)(e, n == null ? void 0 : n.in), a = +(0, pg.startOfWeek)(r, n) - +(0, Xg.startOfWeekYear)(r, n);
  return Math.round(a / Zg.millisecondsInWeek) + 1;
}
var Yr = {};
Yr.addLeadingZeros = Jg;
function Jg(e, n) {
  const r = e < 0 ? "-" : "", a = Math.abs(e).toString().padStart(n, "0");
  return r + a;
}
var Da = {};
Da.lightFormatters = void 0;
var lr = Yr;
Da.lightFormatters = {
  // Year
  y(e, n) {
    const r = e.getFullYear(), a = r > 0 ? r : 1 - r;
    return (0, lr.addLeadingZeros)(
      n === "yy" ? a % 100 : a,
      n.length
    );
  },
  // Month
  M(e, n) {
    const r = e.getMonth();
    return n === "M" ? String(r + 1) : (0, lr.addLeadingZeros)(r + 1, 2);
  },
  // Day of the month
  d(e, n) {
    return (0, lr.addLeadingZeros)(e.getDate(), n.length);
  },
  // AM or PM
  a(e, n) {
    const r = e.getHours() / 12 >= 1 ? "pm" : "am";
    switch (n) {
      case "a":
      case "aa":
        return r.toUpperCase();
      case "aaa":
        return r;
      case "aaaaa":
        return r[0];
      case "aaaa":
      default:
        return r === "am" ? "a.m." : "p.m.";
    }
  },
  // Hour [1-12]
  h(e, n) {
    return (0, lr.addLeadingZeros)(
      e.getHours() % 12 || 12,
      n.length
    );
  },
  // Hour [0-23]
  H(e, n) {
    return (0, lr.addLeadingZeros)(e.getHours(), n.length);
  },
  // Minute
  m(e, n) {
    return (0, lr.addLeadingZeros)(e.getMinutes(), n.length);
  },
  // Second
  s(e, n) {
    return (0, lr.addLeadingZeros)(e.getSeconds(), n.length);
  },
  // Fraction of second
  S(e, n) {
    const r = n.length, a = e.getMilliseconds(), i = Math.trunc(
      a * Math.pow(10, r - 3)
    );
    return (0, lr.addLeadingZeros)(i, n.length);
  }
};
rd.formatters = void 0;
var kg = nd, eb = ga, tb = _r, rb = ba, nb = Tn, He = Yr, dr = Da;
const zr = {
  midnight: "midnight",
  noon: "noon",
  morning: "morning",
  afternoon: "afternoon",
  evening: "evening",
  night: "night"
};
rd.formatters = {
  // Era
  G: function(e, n, r) {
    const a = e.getFullYear() > 0 ? 1 : 0;
    switch (n) {
      case "G":
      case "GG":
      case "GGG":
        return r.era(a, { width: "abbreviated" });
      case "GGGGG":
        return r.era(a, { width: "narrow" });
      case "GGGG":
      default:
        return r.era(a, { width: "wide" });
    }
  },
  // Year
  y: function(e, n, r) {
    if (n === "yo") {
      const a = e.getFullYear(), i = a > 0 ? a : 1 - a;
      return r.ordinalNumber(i, { unit: "year" });
    }
    return dr.lightFormatters.y(e, n);
  },
  // Local week-numbering year
  Y: function(e, n, r, a) {
    const i = (0, nb.getWeekYear)(e, a), u = i > 0 ? i : 1 - i;
    if (n === "YY") {
      const l = u % 100;
      return (0, He.addLeadingZeros)(l, 2);
    }
    return n === "Yo" ? r.ordinalNumber(u, { unit: "year" }) : (0, He.addLeadingZeros)(u, n.length);
  },
  // ISO week-numbering year
  R: function(e, n) {
    const r = (0, tb.getISOWeekYear)(e);
    return (0, He.addLeadingZeros)(r, n.length);
  },
  // Extended year. This is a single number designating the year of this calendar system.
  // The main difference between `y` and `u` localizers are B.C. years:
  // | Year | `y` | `u` |
  // |------|-----|-----|
  // | AC 1 |   1 |   1 |
  // | BC 1 |   1 |   0 |
  // | BC 2 |   2 |  -1 |
  // Also `yy` always returns the last two digits of a year,
  // while `uu` pads single digit years to 2 characters and returns other years unchanged.
  u: function(e, n) {
    const r = e.getFullYear();
    return (0, He.addLeadingZeros)(r, n.length);
  },
  // Quarter
  Q: function(e, n, r) {
    const a = Math.ceil((e.getMonth() + 1) / 3);
    switch (n) {
      case "Q":
        return String(a);
      case "QQ":
        return (0, He.addLeadingZeros)(a, 2);
      case "Qo":
        return r.ordinalNumber(a, { unit: "quarter" });
      case "QQQ":
        return r.quarter(a, {
          width: "abbreviated",
          context: "formatting"
        });
      case "QQQQQ":
        return r.quarter(a, {
          width: "narrow",
          context: "formatting"
        });
      case "QQQQ":
      default:
        return r.quarter(a, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // Stand-alone quarter
  q: function(e, n, r) {
    const a = Math.ceil((e.getMonth() + 1) / 3);
    switch (n) {
      case "q":
        return String(a);
      case "qq":
        return (0, He.addLeadingZeros)(a, 2);
      case "qo":
        return r.ordinalNumber(a, { unit: "quarter" });
      case "qqq":
        return r.quarter(a, {
          width: "abbreviated",
          context: "standalone"
        });
      case "qqqqq":
        return r.quarter(a, {
          width: "narrow",
          context: "standalone"
        });
      case "qqqq":
      default:
        return r.quarter(a, {
          width: "wide",
          context: "standalone"
        });
    }
  },
  // Month
  M: function(e, n, r) {
    const a = e.getMonth();
    switch (n) {
      case "M":
      case "MM":
        return dr.lightFormatters.M(e, n);
      case "Mo":
        return r.ordinalNumber(a + 1, { unit: "month" });
      case "MMM":
        return r.month(a, {
          width: "abbreviated",
          context: "formatting"
        });
      case "MMMMM":
        return r.month(a, {
          width: "narrow",
          context: "formatting"
        });
      case "MMMM":
      default:
        return r.month(a, { width: "wide", context: "formatting" });
    }
  },
  // Stand-alone month
  L: function(e, n, r) {
    const a = e.getMonth();
    switch (n) {
      case "L":
        return String(a + 1);
      case "LL":
        return (0, He.addLeadingZeros)(a + 1, 2);
      case "Lo":
        return r.ordinalNumber(a + 1, { unit: "month" });
      case "LLL":
        return r.month(a, {
          width: "abbreviated",
          context: "standalone"
        });
      case "LLLLL":
        return r.month(a, {
          width: "narrow",
          context: "standalone"
        });
      case "LLLL":
      default:
        return r.month(a, { width: "wide", context: "standalone" });
    }
  },
  // Local week of year
  w: function(e, n, r, a) {
    const i = (0, rb.getWeek)(e, a);
    return n === "wo" ? r.ordinalNumber(i, { unit: "week" }) : (0, He.addLeadingZeros)(i, n.length);
  },
  // ISO week of year
  I: function(e, n, r) {
    const a = (0, eb.getISOWeek)(e);
    return n === "Io" ? r.ordinalNumber(a, { unit: "week" }) : (0, He.addLeadingZeros)(a, n.length);
  },
  // Day of the month
  d: function(e, n, r) {
    return n === "do" ? r.ordinalNumber(e.getDate(), { unit: "date" }) : dr.lightFormatters.d(e, n);
  },
  // Day of year
  D: function(e, n, r) {
    const a = (0, kg.getDayOfYear)(e);
    return n === "Do" ? r.ordinalNumber(a, { unit: "dayOfYear" }) : (0, He.addLeadingZeros)(a, n.length);
  },
  // Day of week
  E: function(e, n, r) {
    const a = e.getDay();
    switch (n) {
      case "E":
      case "EE":
      case "EEE":
        return r.day(a, {
          width: "abbreviated",
          context: "formatting"
        });
      case "EEEEE":
        return r.day(a, {
          width: "narrow",
          context: "formatting"
        });
      case "EEEEEE":
        return r.day(a, {
          width: "short",
          context: "formatting"
        });
      case "EEEE":
      default:
        return r.day(a, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // Local day of week
  e: function(e, n, r, a) {
    const i = e.getDay(), u = (i - a.weekStartsOn + 8) % 7 || 7;
    switch (n) {
      case "e":
        return String(u);
      case "ee":
        return (0, He.addLeadingZeros)(u, 2);
      case "eo":
        return r.ordinalNumber(u, { unit: "day" });
      case "eee":
        return r.day(i, {
          width: "abbreviated",
          context: "formatting"
        });
      case "eeeee":
        return r.day(i, {
          width: "narrow",
          context: "formatting"
        });
      case "eeeeee":
        return r.day(i, {
          width: "short",
          context: "formatting"
        });
      case "eeee":
      default:
        return r.day(i, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // Stand-alone local day of week
  c: function(e, n, r, a) {
    const i = e.getDay(), u = (i - a.weekStartsOn + 8) % 7 || 7;
    switch (n) {
      case "c":
        return String(u);
      case "cc":
        return (0, He.addLeadingZeros)(u, n.length);
      case "co":
        return r.ordinalNumber(u, { unit: "day" });
      case "ccc":
        return r.day(i, {
          width: "abbreviated",
          context: "standalone"
        });
      case "ccccc":
        return r.day(i, {
          width: "narrow",
          context: "standalone"
        });
      case "cccccc":
        return r.day(i, {
          width: "short",
          context: "standalone"
        });
      case "cccc":
      default:
        return r.day(i, {
          width: "wide",
          context: "standalone"
        });
    }
  },
  // ISO day of week
  i: function(e, n, r) {
    const a = e.getDay(), i = a === 0 ? 7 : a;
    switch (n) {
      case "i":
        return String(i);
      case "ii":
        return (0, He.addLeadingZeros)(i, n.length);
      case "io":
        return r.ordinalNumber(i, { unit: "day" });
      case "iii":
        return r.day(a, {
          width: "abbreviated",
          context: "formatting"
        });
      case "iiiii":
        return r.day(a, {
          width: "narrow",
          context: "formatting"
        });
      case "iiiiii":
        return r.day(a, {
          width: "short",
          context: "formatting"
        });
      case "iiii":
      default:
        return r.day(a, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // AM or PM
  a: function(e, n, r) {
    const i = e.getHours() / 12 >= 1 ? "pm" : "am";
    switch (n) {
      case "a":
      case "aa":
        return r.dayPeriod(i, {
          width: "abbreviated",
          context: "formatting"
        });
      case "aaa":
        return r.dayPeriod(i, {
          width: "abbreviated",
          context: "formatting"
        }).toLowerCase();
      case "aaaaa":
        return r.dayPeriod(i, {
          width: "narrow",
          context: "formatting"
        });
      case "aaaa":
      default:
        return r.dayPeriod(i, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // AM, PM, midnight, noon
  b: function(e, n, r) {
    const a = e.getHours();
    let i;
    switch (a === 12 ? i = zr.noon : a === 0 ? i = zr.midnight : i = a / 12 >= 1 ? "pm" : "am", n) {
      case "b":
      case "bb":
        return r.dayPeriod(i, {
          width: "abbreviated",
          context: "formatting"
        });
      case "bbb":
        return r.dayPeriod(i, {
          width: "abbreviated",
          context: "formatting"
        }).toLowerCase();
      case "bbbbb":
        return r.dayPeriod(i, {
          width: "narrow",
          context: "formatting"
        });
      case "bbbb":
      default:
        return r.dayPeriod(i, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // in the morning, in the afternoon, in the evening, at night
  B: function(e, n, r) {
    const a = e.getHours();
    let i;
    switch (a >= 17 ? i = zr.evening : a >= 12 ? i = zr.afternoon : a >= 4 ? i = zr.morning : i = zr.night, n) {
      case "B":
      case "BB":
      case "BBB":
        return r.dayPeriod(i, {
          width: "abbreviated",
          context: "formatting"
        });
      case "BBBBB":
        return r.dayPeriod(i, {
          width: "narrow",
          context: "formatting"
        });
      case "BBBB":
      default:
        return r.dayPeriod(i, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // Hour [1-12]
  h: function(e, n, r) {
    if (n === "ho") {
      let a = e.getHours() % 12;
      return a === 0 && (a = 12), r.ordinalNumber(a, { unit: "hour" });
    }
    return dr.lightFormatters.h(e, n);
  },
  // Hour [0-23]
  H: function(e, n, r) {
    return n === "Ho" ? r.ordinalNumber(e.getHours(), { unit: "hour" }) : dr.lightFormatters.H(e, n);
  },
  // Hour [0-11]
  K: function(e, n, r) {
    const a = e.getHours() % 12;
    return n === "Ko" ? r.ordinalNumber(a, { unit: "hour" }) : (0, He.addLeadingZeros)(a, n.length);
  },
  // Hour [1-24]
  k: function(e, n, r) {
    let a = e.getHours();
    return a === 0 && (a = 24), n === "ko" ? r.ordinalNumber(a, { unit: "hour" }) : (0, He.addLeadingZeros)(a, n.length);
  },
  // Minute
  m: function(e, n, r) {
    return n === "mo" ? r.ordinalNumber(e.getMinutes(), { unit: "minute" }) : dr.lightFormatters.m(e, n);
  },
  // Second
  s: function(e, n, r) {
    return n === "so" ? r.ordinalNumber(e.getSeconds(), { unit: "second" }) : dr.lightFormatters.s(e, n);
  },
  // Fraction of second
  S: function(e, n) {
    return dr.lightFormatters.S(e, n);
  },
  // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
  X: function(e, n, r) {
    const a = e.getTimezoneOffset();
    if (a === 0)
      return "Z";
    switch (n) {
      case "X":
        return Jc(a);
      case "XXXX":
      case "XX":
        return Cr(a);
      case "XXXXX":
      case "XXX":
      default:
        return Cr(a, ":");
    }
  },
  // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
  x: function(e, n, r) {
    const a = e.getTimezoneOffset();
    switch (n) {
      case "x":
        return Jc(a);
      case "xxxx":
      case "xx":
        return Cr(a);
      case "xxxxx":
      case "xxx":
      default:
        return Cr(a, ":");
    }
  },
  // Timezone (GMT)
  O: function(e, n, r) {
    const a = e.getTimezoneOffset();
    switch (n) {
      case "O":
      case "OO":
      case "OOO":
        return "GMT" + Gc(a, ":");
      case "OOOO":
      default:
        return "GMT" + Cr(a, ":");
    }
  },
  // Timezone (specific non-location)
  z: function(e, n, r) {
    const a = e.getTimezoneOffset();
    switch (n) {
      case "z":
      case "zz":
      case "zzz":
        return "GMT" + Gc(a, ":");
      case "zzzz":
      default:
        return "GMT" + Cr(a, ":");
    }
  },
  // Seconds timestamp
  t: function(e, n, r) {
    const a = Math.trunc(+e / 1e3);
    return (0, He.addLeadingZeros)(a, n.length);
  },
  // Milliseconds timestamp
  T: function(e, n, r) {
    return (0, He.addLeadingZeros)(+e, n.length);
  }
};
function Gc(e, n = "") {
  const r = e > 0 ? "-" : "+", a = Math.abs(e), i = Math.trunc(a / 60), u = a % 60;
  return u === 0 ? r + String(i) : r + String(i) + n + (0, He.addLeadingZeros)(u, 2);
}
function Jc(e, n) {
  return e % 60 === 0 ? (e > 0 ? "-" : "+") + (0, He.addLeadingZeros)(Math.abs(e) / 60, 2) : Cr(e, n);
}
function Cr(e, n = "") {
  const r = e > 0 ? "-" : "+", a = Math.abs(e), i = (0, He.addLeadingZeros)(Math.trunc(a / 60), 2), u = (0, He.addLeadingZeros)(a % 60, 2);
  return r + i + n + u;
}
var Ma = {};
Ma.longFormatters = void 0;
const kc = (e, n) => {
  switch (e) {
    case "P":
      return n.date({ width: "short" });
    case "PP":
      return n.date({ width: "medium" });
    case "PPP":
      return n.date({ width: "long" });
    case "PPPP":
    default:
      return n.date({ width: "full" });
  }
}, Qo = (e, n) => {
  switch (e) {
    case "p":
      return n.time({ width: "short" });
    case "pp":
      return n.time({ width: "medium" });
    case "ppp":
      return n.time({ width: "long" });
    case "pppp":
    default:
      return n.time({ width: "full" });
  }
}, ab = (e, n) => {
  const r = e.match(/(P+)(p+)?/) || [], a = r[1], i = r[2];
  if (!i)
    return kc(e, n);
  let u;
  switch (a) {
    case "P":
      u = n.dateTime({ width: "short" });
      break;
    case "PP":
      u = n.dateTime({ width: "medium" });
      break;
    case "PPP":
      u = n.dateTime({ width: "long" });
      break;
    case "PPPP":
    default:
      u = n.dateTime({ width: "full" });
      break;
  }
  return u.replace("{{date}}", kc(a, n)).replace("{{time}}", Qo(i, n));
};
Ma.longFormatters = {
  p: Qo,
  P: ab
};
var wn = {};
wn.isProtectedDayOfYearToken = db;
wn.isProtectedWeekYearToken = cb;
wn.warnOrThrowProtectedError = sb;
const ib = /^D+$/, ub = /^Y+$/, lb = ["D", "DD", "YY", "YYYY"];
function db(e) {
  return ib.test(e);
}
function cb(e) {
  return ub.test(e);
}
function sb(e, n, r) {
  const a = ob(e, n, r);
  if (console.warn(a), lb.includes(e)) throw new RangeError(a);
}
function ob(e, n, r) {
  const a = e[0] === "Y" ? "years" : "days of the month";
  return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${n}\`) for formatting ${a} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
}
(function(e) {
  e.format = e.formatDate = P, Object.defineProperty(e, "formatters", {
    enumerable: !0,
    get: function() {
      return a.formatters;
    }
  }), Object.defineProperty(e, "longFormatters", {
    enumerable: !0,
    get: function() {
      return i.longFormatters;
    }
  });
  var n = Fr, r = ut, a = rd, i = Ma, u = wn, l = nr, d = D;
  const c = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, o = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, f = /^'([^]*?)'?$/, h = /''/g, v = /[a-zA-Z]/;
  function P(I, H, x) {
    var Ie, se, de, L, w, Pe, fe, Fe;
    const Z = (0, r.getDefaultOptions)(), Q = (x == null ? void 0 : x.locale) ?? Z.locale ?? n.defaultLocale, F = (x == null ? void 0 : x.firstWeekContainsDate) ?? ((se = (Ie = x == null ? void 0 : x.locale) == null ? void 0 : Ie.options) == null ? void 0 : se.firstWeekContainsDate) ?? Z.firstWeekContainsDate ?? ((L = (de = Z.locale) == null ? void 0 : de.options) == null ? void 0 : L.firstWeekContainsDate) ?? 1, T = (x == null ? void 0 : x.weekStartsOn) ?? ((Pe = (w = x == null ? void 0 : x.locale) == null ? void 0 : w.options) == null ? void 0 : Pe.weekStartsOn) ?? Z.weekStartsOn ?? ((Fe = (fe = Z.locale) == null ? void 0 : fe.options) == null ? void 0 : Fe.weekStartsOn) ?? 0, X = (0, d.toDate)(I, x == null ? void 0 : x.in);
    if (!(0, l.isValid)(X))
      throw new RangeError("Invalid time value");
    let V = H.match(o).map((ee) => {
      const te = ee[0];
      if (te === "p" || te === "P") {
        const he = i.longFormatters[te];
        return he(ee, Q.formatLong);
      }
      return ee;
    }).join("").match(c).map((ee) => {
      if (ee === "''")
        return { isToken: !1, value: "'" };
      const te = ee[0];
      if (te === "'")
        return { isToken: !1, value: S(ee) };
      if (a.formatters[te])
        return { isToken: !0, value: ee };
      if (te.match(v))
        throw new RangeError(
          "Format string contains an unescaped latin alphabet character `" + te + "`"
        );
      return { isToken: !1, value: ee };
    });
    Q.localize.preprocessor && (V = Q.localize.preprocessor(X, V));
    const oe = {
      firstWeekContainsDate: F,
      weekStartsOn: T,
      locale: Q
    };
    return V.map((ee) => {
      if (!ee.isToken) return ee.value;
      const te = ee.value;
      (!(x != null && x.useAdditionalWeekYearTokens) && (0, u.isProtectedWeekYearToken)(te) || !(x != null && x.useAdditionalDayOfYearTokens) && (0, u.isProtectedDayOfYearToken)(te)) && (0, u.warnOrThrowProtectedError)(te, H, String(I));
      const he = a.formatters[te[0]];
      return he(X, te, Q.localize, oe);
    }).join("");
  }
  function S(I) {
    const H = I.match(f);
    return H ? H[1].replace(h, "'") : I;
  }
})(_a);
var ad = {};
ad.formatDistance = bb;
var fb = Fr, hb = ut, es = rr, mb = Me, vb = xr, Ar = G, _b = Dn, gb = Mn;
function bb(e, n, r) {
  const a = (0, hb.getDefaultOptions)(), i = (r == null ? void 0 : r.locale) ?? a.locale ?? fb.defaultLocale, u = 2520, l = (0, vb.compareAsc)(e, n);
  if (isNaN(l)) throw new RangeError("Invalid time value");
  const d = Object.assign({}, r, {
    addSuffix: r == null ? void 0 : r.addSuffix,
    comparison: l
  }), [c, o] = (0, mb.normalizeDates)(
    r == null ? void 0 : r.in,
    ...l > 0 ? [n, e] : [e, n]
  ), f = (0, gb.differenceInSeconds)(o, c), h = ((0, es.getTimezoneOffsetInMilliseconds)(o) - (0, es.getTimezoneOffsetInMilliseconds)(c)) / 1e3, v = Math.round((f - h) / 60);
  let P;
  if (v < 2)
    return r != null && r.includeSeconds ? f < 5 ? i.formatDistance("lessThanXSeconds", 5, d) : f < 10 ? i.formatDistance("lessThanXSeconds", 10, d) : f < 20 ? i.formatDistance("lessThanXSeconds", 20, d) : f < 40 ? i.formatDistance("halfAMinute", 0, d) : f < 60 ? i.formatDistance("lessThanXMinutes", 1, d) : i.formatDistance("xMinutes", 1, d) : v === 0 ? i.formatDistance("lessThanXMinutes", 1, d) : i.formatDistance("xMinutes", v, d);
  if (v < 45)
    return i.formatDistance("xMinutes", v, d);
  if (v < 90)
    return i.formatDistance("aboutXHours", 1, d);
  if (v < Ar.minutesInDay) {
    const S = Math.round(v / 60);
    return i.formatDistance("aboutXHours", S, d);
  } else {
    if (v < u)
      return i.formatDistance("xDays", 1, d);
    if (v < Ar.minutesInMonth) {
      const S = Math.round(v / Ar.minutesInDay);
      return i.formatDistance("xDays", S, d);
    } else if (v < Ar.minutesInMonth * 2)
      return P = Math.round(v / Ar.minutesInMonth), i.formatDistance("aboutXMonths", P, d);
  }
  if (P = (0, _b.differenceInMonths)(o, c), P < 12) {
    const S = Math.round(v / Ar.minutesInMonth);
    return i.formatDistance("xMonths", S, d);
  } else {
    const S = P % 12, I = Math.trunc(P / 12);
    return S < 3 ? i.formatDistance("aboutXYears", I, d) : S < 9 ? i.formatDistance("overXYears", I, d) : i.formatDistance("almostXYears", I + 1, d);
  }
}
var id = {};
id.formatDistanceStrict = wb;
var Ob = Fr, Db = ut, Mb = ar, ts = rr, Pb = Me, Tb = xr, cr = G;
function wb(e, n, r) {
  const a = (0, Db.getDefaultOptions)(), i = (r == null ? void 0 : r.locale) ?? a.locale ?? Ob.defaultLocale, u = (0, Tb.compareAsc)(e, n);
  if (isNaN(u))
    throw new RangeError("Invalid time value");
  const l = Object.assign({}, r, {
    addSuffix: r == null ? void 0 : r.addSuffix,
    comparison: u
  }), [d, c] = (0, Pb.normalizeDates)(
    r == null ? void 0 : r.in,
    ...u > 0 ? [n, e] : [e, n]
  ), o = (0, Mb.getRoundingMethod)(
    (r == null ? void 0 : r.roundingMethod) ?? "round"
  ), f = c.getTime() - d.getTime(), h = f / cr.millisecondsInMinute, v = (0, ts.getTimezoneOffsetInMilliseconds)(c) - (0, ts.getTimezoneOffsetInMilliseconds)(d), P = (f - v) / cr.millisecondsInMinute, S = r == null ? void 0 : r.unit;
  let I;
  if (S ? I = S : h < 1 ? I = "second" : h < 60 ? I = "minute" : h < cr.minutesInDay ? I = "hour" : P < cr.minutesInMonth ? I = "day" : P < cr.minutesInYear ? I = "month" : I = "year", I === "second") {
    const H = o(f / 1e3);
    return i.formatDistance("xSeconds", H, l);
  } else if (I === "minute") {
    const H = o(h);
    return i.formatDistance("xMinutes", H, l);
  } else if (I === "hour") {
    const H = o(h / 60);
    return i.formatDistance("xHours", H, l);
  } else if (I === "day") {
    const H = o(P / cr.minutesInDay);
    return i.formatDistance("xDays", H, l);
  } else if (I === "month") {
    const H = o(
      P / cr.minutesInMonth
    );
    return H === 12 && S !== "month" ? i.formatDistance("xYears", 1, l) : i.formatDistance("xMonths", H, l);
  } else {
    const H = o(P / cr.minutesInYear);
    return i.formatDistance("xYears", H, l);
  }
}
var Zo = {};
Zo.formatDistanceToNow = Ib;
var Sb = Le, Cb = ad;
function Ib(e, n) {
  return (0, Cb.formatDistance)(
    e,
    (0, Sb.constructNow)(e),
    n
  );
}
var po = {};
po.formatDistanceToNowStrict = Fb;
var jb = Le, xb = id;
function Fb(e, n) {
  return (0, xb.formatDistanceStrict)(
    e,
    (0, jb.constructNow)(e),
    n
  );
}
var Xo = {};
Xo.formatDuration = $b;
var Yb = Fr, Eb = ut;
const yb = [
  "years",
  "months",
  "weeks",
  "days",
  "hours",
  "minutes",
  "seconds"
];
function $b(e, n) {
  const r = (0, Eb.getDefaultOptions)(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? Yb.defaultLocale, i = (n == null ? void 0 : n.format) ?? yb, u = (n == null ? void 0 : n.zero) ?? !1, l = (n == null ? void 0 : n.delimiter) ?? " ";
  return a.formatDistance ? i.reduce((c, o) => {
    const f = `x${o.replace(/(^.)/, (v) => v.toUpperCase())}`, h = e[o];
    return h !== void 0 && (u || e[o]) ? c.concat(a.formatDistance(f, h)) : c;
  }, []).join(l) : "";
}
var Ko = {};
Ko.formatISO = Rb;
var sr = Yr, Nb = D;
function Rb(e, n) {
  const r = (0, Nb.toDate)(e, n == null ? void 0 : n.in);
  if (isNaN(+r))
    throw new RangeError("Invalid time value");
  const a = (n == null ? void 0 : n.format) ?? "extended", i = (n == null ? void 0 : n.representation) ?? "complete";
  let u = "", l = "";
  const d = a === "extended" ? "-" : "", c = a === "extended" ? ":" : "";
  if (i !== "time") {
    const o = (0, sr.addLeadingZeros)(r.getDate(), 2), f = (0, sr.addLeadingZeros)(r.getMonth() + 1, 2);
    u = `${(0, sr.addLeadingZeros)(r.getFullYear(), 4)}${d}${f}${d}${o}`;
  }
  if (i !== "date") {
    const o = r.getTimezoneOffset();
    if (o !== 0) {
      const I = Math.abs(o), H = (0, sr.addLeadingZeros)(
        Math.trunc(I / 60),
        2
      ), x = (0, sr.addLeadingZeros)(I % 60, 2);
      l = `${o < 0 ? "+" : "-"}${H}:${x}`;
    } else
      l = "Z";
    const f = (0, sr.addLeadingZeros)(r.getHours(), 2), h = (0, sr.addLeadingZeros)(r.getMinutes(), 2), v = (0, sr.addLeadingZeros)(r.getSeconds(), 2), P = u === "" ? "" : "T", S = [f, h, v].join(c);
    u = `${u}${P}${S}${l}`;
  }
  return u;
}
var Go = {};
Go.formatISO9075 = Ab;
var Wr = Yr, Hb = nr, zb = D;
function Ab(e, n) {
  const r = (0, zb.toDate)(e, n == null ? void 0 : n.in);
  if (!(0, Hb.isValid)(r))
    throw new RangeError("Invalid time value");
  const a = (n == null ? void 0 : n.format) ?? "extended", i = (n == null ? void 0 : n.representation) ?? "complete";
  let u = "";
  const l = a === "extended" ? "-" : "", d = a === "extended" ? ":" : "";
  if (i !== "time") {
    const c = (0, Wr.addLeadingZeros)(r.getDate(), 2), o = (0, Wr.addLeadingZeros)(r.getMonth() + 1, 2);
    u = `${(0, Wr.addLeadingZeros)(r.getFullYear(), 4)}${l}${o}${l}${c}`;
  }
  if (i !== "date") {
    const c = (0, Wr.addLeadingZeros)(r.getHours(), 2), o = (0, Wr.addLeadingZeros)(r.getMinutes(), 2), f = (0, Wr.addLeadingZeros)(r.getSeconds(), 2);
    u = `${u}${u === "" ? "" : " "}${c}${d}${o}${d}${f}`;
  }
  return u;
}
var Jo = {};
Jo.formatISODuration = Wb;
function Wb(e) {
  const {
    years: n = 0,
    months: r = 0,
    days: a = 0,
    hours: i = 0,
    minutes: u = 0,
    seconds: l = 0
  } = e;
  return `P${n}Y${r}M${a}DT${i}H${u}M${l}S`;
}
var ko = {};
ko.formatRFC3339 = Lb;
var or = Yr, Vb = nr, Bb = D;
function Lb(e, n) {
  const r = (0, Bb.toDate)(e, n == null ? void 0 : n.in);
  if (!(0, Vb.isValid)(r))
    throw new RangeError("Invalid time value");
  const a = (n == null ? void 0 : n.fractionDigits) ?? 0, i = (0, or.addLeadingZeros)(r.getDate(), 2), u = (0, or.addLeadingZeros)(r.getMonth() + 1, 2), l = r.getFullYear(), d = (0, or.addLeadingZeros)(r.getHours(), 2), c = (0, or.addLeadingZeros)(r.getMinutes(), 2), o = (0, or.addLeadingZeros)(r.getSeconds(), 2);
  let f = "";
  if (a > 0) {
    const P = r.getMilliseconds(), S = Math.trunc(
      P * Math.pow(10, a - 3)
    );
    f = "." + (0, or.addLeadingZeros)(S, a);
  }
  let h = "";
  const v = r.getTimezoneOffset();
  if (v !== 0) {
    const P = Math.abs(v), S = (0, or.addLeadingZeros)(
      Math.trunc(P / 60),
      2
    ), I = (0, or.addLeadingZeros)(P % 60, 2);
    h = `${v < 0 ? "+" : "-"}${S}:${I}`;
  } else
    h = "Z";
  return `${l}-${u}-${i}T${d}:${c}:${o}${f}${h}`;
}
var ef = {};
ef.formatRFC7231 = pb;
var An = Yr, Ub = nr, qb = D;
const Qb = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], Zb = [
  "Jan",
  "Feb",
  "Mar",
  "Apr",
  "May",
  "Jun",
  "Jul",
  "Aug",
  "Sep",
  "Oct",
  "Nov",
  "Dec"
];
function pb(e) {
  const n = (0, qb.toDate)(e);
  if (!(0, Ub.isValid)(n))
    throw new RangeError("Invalid time value");
  const r = Qb[n.getUTCDay()], a = (0, An.addLeadingZeros)(n.getUTCDate(), 2), i = Zb[n.getUTCMonth()], u = n.getUTCFullYear(), l = (0, An.addLeadingZeros)(n.getUTCHours(), 2), d = (0, An.addLeadingZeros)(n.getUTCMinutes(), 2), c = (0, An.addLeadingZeros)(n.getUTCSeconds(), 2);
  return `${r}, ${a} ${i} ${u} ${l}:${d}:${c} GMT`;
}
var tf = {};
tf.formatRelative = eO;
var Xb = Fr, Kb = ut, Gb = Me, Jb = tr, kb = _a;
function eO(e, n, r) {
  var h, v, P, S;
  const [a, i] = (0, Gb.normalizeDates)(
    r == null ? void 0 : r.in,
    e,
    n
  ), u = (0, Kb.getDefaultOptions)(), l = (r == null ? void 0 : r.locale) ?? u.locale ?? Xb.defaultLocale, d = (r == null ? void 0 : r.weekStartsOn) ?? ((v = (h = r == null ? void 0 : r.locale) == null ? void 0 : h.options) == null ? void 0 : v.weekStartsOn) ?? u.weekStartsOn ?? ((S = (P = u.locale) == null ? void 0 : P.options) == null ? void 0 : S.weekStartsOn) ?? 0, c = (0, Jb.differenceInCalendarDays)(a, i);
  if (isNaN(c))
    throw new RangeError("Invalid time value");
  let o;
  c < -6 ? o = "other" : c < -1 ? o = "lastWeek" : c < 0 ? o = "yesterday" : c < 1 ? o = "today" : c < 2 ? o = "tomorrow" : c < 7 ? o = "nextWeek" : o = "other";
  const f = l.formatRelative(o, a, i, {
    locale: l,
    weekStartsOn: d
  });
  return (0, kb.format)(a, f, { locale: l, weekStartsOn: d });
}
var rf = {};
rf.fromUnixTime = rO;
var tO = D;
function rO(e, n) {
  return (0, tO.toDate)(e * 1e3, n == null ? void 0 : n.in);
}
var ud = {};
ud.getDate = aO;
var nO = D;
function aO(e, n) {
  return (0, nO.toDate)(e, n == null ? void 0 : n.in).getDate();
}
var Sn = {};
Sn.getDay = uO;
var iO = D;
function uO(e, n) {
  return (0, iO.toDate)(e, n == null ? void 0 : n.in).getDay();
}
var ld = {};
ld.getDaysInMonth = cO;
var lO = W, dO = D;
function cO(e, n) {
  const r = (0, dO.toDate)(e, n == null ? void 0 : n.in), a = r.getFullYear(), i = r.getMonth(), u = (0, lO.constructFrom)(r, 0);
  return u.setFullYear(a, i + 1, 0), u.setHours(0, 0, 0, 0), u.getDate();
}
var nf = {}, dd = {};
dd.isLeapYear = oO;
var sO = D;
function oO(e, n) {
  const a = (0, sO.toDate)(e, n == null ? void 0 : n.in).getFullYear();
  return a % 400 === 0 || a % 4 === 0 && a % 100 !== 0;
}
nf.getDaysInYear = mO;
var fO = dd, hO = D;
function mO(e, n) {
  const r = (0, hO.toDate)(e, n == null ? void 0 : n.in);
  return Number.isNaN(+r) ? NaN : (0, fO.isLeapYear)(r) ? 366 : 365;
}
var af = {};
af.getDecade = _O;
var vO = D;
function _O(e, n) {
  const a = (0, vO.toDate)(e, n == null ? void 0 : n.in).getFullYear();
  return Math.floor(a / 10) * 10;
}
var cd = {};
cd.getDefaultOptions = bO;
var gO = ut;
function bO() {
  return Object.assign({}, (0, gO.getDefaultOptions)());
}
var uf = {};
uf.getHours = DO;
var OO = D;
function DO(e, n) {
  return (0, OO.toDate)(e, n == null ? void 0 : n.in).getHours();
}
var sd = {};
sd.getISODay = PO;
var MO = D;
function PO(e, n) {
  const r = (0, MO.toDate)(e, n == null ? void 0 : n.in).getDay();
  return r === 0 ? 7 : r;
}
var lf = {};
lf.getISOWeeksInYear = SO;
var TO = On, wO = G, rs = Xr;
function SO(e, n) {
  const r = (0, rs.startOfISOWeekYear)(e, n), i = +(0, rs.startOfISOWeekYear)(
    (0, TO.addWeeks)(r, 60)
  ) - +r;
  return Math.round(i / wO.millisecondsInWeek);
}
var df = {};
df.getMilliseconds = IO;
var CO = D;
function IO(e) {
  return (0, CO.toDate)(e).getMilliseconds();
}
var cf = {};
cf.getMinutes = xO;
var jO = D;
function xO(e, n) {
  return (0, jO.toDate)(e, n == null ? void 0 : n.in).getMinutes();
}
var sf = {};
sf.getMonth = YO;
var FO = D;
function YO(e, n) {
  return (0, FO.toDate)(e, n == null ? void 0 : n.in).getMonth();
}
var of = {};
of.getOverlappingDaysInIntervals = yO;
var ns = rr, EO = G, Wn = D;
function yO(e, n) {
  const [r, a] = [
    +(0, Wn.toDate)(e.start),
    +(0, Wn.toDate)(e.end)
  ].sort((h, v) => h - v), [i, u] = [
    +(0, Wn.toDate)(n.start),
    +(0, Wn.toDate)(n.end)
  ].sort((h, v) => h - v);
  if (!(r < u && i < a)) return 0;
  const d = i < r ? r : i, c = d - (0, ns.getTimezoneOffsetInMilliseconds)(d), o = u > a ? a : u, f = o - (0, ns.getTimezoneOffsetInMilliseconds)(o);
  return Math.ceil((f - c) / EO.millisecondsInDay);
}
var ff = {};
ff.getSeconds = NO;
var $O = D;
function NO(e) {
  return (0, $O.toDate)(e).getSeconds();
}
var hf = {};
hf.getTime = HO;
var RO = D;
function HO(e) {
  return +(0, RO.toDate)(e);
}
var mf = {};
mf.getUnixTime = AO;
var zO = D;
function AO(e) {
  return Math.trunc(+(0, zO.toDate)(e) / 1e3);
}
var vf = {};
vf.getWeekOfMonth = qO;
var WO = ut, VO = ud, BO = Sn, LO = Pn, UO = D;
function qO(e, n) {
  var c, o, f, h;
  const r = (0, WO.getDefaultOptions)(), a = (n == null ? void 0 : n.weekStartsOn) ?? ((o = (c = n == null ? void 0 : n.locale) == null ? void 0 : c.options) == null ? void 0 : o.weekStartsOn) ?? r.weekStartsOn ?? ((h = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : h.weekStartsOn) ?? 0, i = (0, VO.getDate)(
    (0, UO.toDate)(e, n == null ? void 0 : n.in)
  );
  if (isNaN(i)) return NaN;
  const u = (0, BO.getDay)(
    (0, LO.startOfMonth)(e, n)
  );
  let l = a - u;
  l <= 0 && (l += 7);
  const d = i - l;
  return Math.ceil(d / 7) + 1;
}
var _f = {}, od = {};
od.lastDayOfMonth = QO;
var as = D;
function QO(e, n) {
  const r = (0, as.toDate)(e, n == null ? void 0 : n.in), a = r.getMonth();
  return r.setFullYear(r.getFullYear(), a + 1, 0), r.setHours(0, 0, 0, 0), (0, as.toDate)(r, n == null ? void 0 : n.in);
}
_f.getWeeksInMonth = GO;
var ZO = ia, pO = od, XO = Pn, KO = D;
function GO(e, n) {
  const r = (0, KO.toDate)(e, n == null ? void 0 : n.in);
  return (0, ZO.differenceInCalendarWeeks)(
    (0, pO.lastDayOfMonth)(r, n),
    (0, XO.startOfMonth)(r, n),
    n
  ) + 1;
}
var gf = {};
gf.getYear = kO;
var JO = D;
function kO(e, n) {
  return (0, JO.toDate)(e, n == null ? void 0 : n.in).getFullYear();
}
var bf = {};
bf.hoursToMilliseconds = tD;
var eD = G;
function tD(e) {
  return Math.trunc(e * eD.millisecondsInHour);
}
var Of = {};
Of.hoursToMinutes = nD;
var rD = G;
function nD(e) {
  return Math.trunc(e * rD.minutesInHour);
}
var Df = {};
Df.hoursToSeconds = iD;
var aD = G;
function iD(e) {
  return Math.trunc(e * aD.secondsInHour);
}
var Mf = {};
Mf.interval = lD;
var uD = Me;
function lD(e, n, r) {
  const [a, i] = (0, uD.normalizeDates)(r == null ? void 0 : r.in, e, n);
  if (isNaN(+a)) throw new TypeError("Start date is invalid");
  if (isNaN(+i)) throw new TypeError("End date is invalid");
  if (r != null && r.assertPositive && +a > +i)
    throw new TypeError("End date must be after start date");
  return { start: a, end: i };
}
var Pf = {};
Pf.intervalToDuration = vD;
var dD = Lt, tn = $l, cD = la, sD = da, oD = sa, fD = Dn, hD = Mn, mD = Jl;
function vD(e, n) {
  const { start: r, end: a } = (0, dD.normalizeInterval)(n == null ? void 0 : n.in, e), i = {}, u = (0, mD.differenceInYears)(a, r);
  u && (i.years = u);
  const l = (0, tn.add)(r, { years: i.years }), d = (0, fD.differenceInMonths)(a, l);
  d && (i.months = d);
  const c = (0, tn.add)(l, {
    months: i.months
  }), o = (0, cD.differenceInDays)(a, c);
  o && (i.days = o);
  const f = (0, tn.add)(c, {
    days: i.days
  }), h = (0, sD.differenceInHours)(a, f);
  h && (i.hours = h);
  const v = (0, tn.add)(f, {
    hours: i.hours
  }), P = (0, oD.differenceInMinutes)(a, v);
  P && (i.minutes = P);
  const S = (0, tn.add)(v, {
    minutes: i.minutes
  }), I = (0, hD.differenceInSeconds)(a, S);
  return I && (i.seconds = I), i;
}
var Tf = {};
Tf.intlFormat = gD;
var _D = D;
function gD(e, n, r) {
  let a;
  return bD(n) ? a = n : r = n, new Intl.DateTimeFormat(r == null ? void 0 : r.locale, a).format(
    (0, _D.toDate)(e)
  );
}
function bD(e) {
  return e !== void 0 && !("locale" in e);
}
var wf = {};
wf.intlFormatDistance = DD;
var OD = Me, Tr = G, Ju = tr, is = aa, ku = pl, us = ia, el = ua, ls = da, ds = sa, tl = Mn;
function DD(e, n, r) {
  let a = 0, i;
  const [u, l] = (0, OD.normalizeDates)(
    r == null ? void 0 : r.in,
    e,
    n
  );
  if (r != null && r.unit)
    i = r == null ? void 0 : r.unit, i === "second" ? a = (0, tl.differenceInSeconds)(u, l) : i === "minute" ? a = (0, ds.differenceInMinutes)(u, l) : i === "hour" ? a = (0, ls.differenceInHours)(u, l) : i === "day" ? a = (0, Ju.differenceInCalendarDays)(u, l) : i === "week" ? a = (0, us.differenceInCalendarWeeks)(u, l) : i === "month" ? a = (0, is.differenceInCalendarMonths)(u, l) : i === "quarter" ? a = (0, ku.differenceInCalendarQuarters)(
      u,
      l
    ) : i === "year" && (a = (0, el.differenceInCalendarYears)(u, l));
  else {
    const c = (0, tl.differenceInSeconds)(
      u,
      l
    );
    Math.abs(c) < Tr.secondsInMinute ? (a = (0, tl.differenceInSeconds)(u, l), i = "second") : Math.abs(c) < Tr.secondsInHour ? (a = (0, ds.differenceInMinutes)(u, l), i = "minute") : Math.abs(c) < Tr.secondsInDay && Math.abs(
      (0, Ju.differenceInCalendarDays)(u, l)
    ) < 1 ? (a = (0, ls.differenceInHours)(u, l), i = "hour") : Math.abs(c) < Tr.secondsInWeek && (a = (0, Ju.differenceInCalendarDays)(
      u,
      l
    )) && Math.abs(a) < 7 ? i = "day" : Math.abs(c) < Tr.secondsInMonth ? (a = (0, us.differenceInCalendarWeeks)(u, l), i = "week") : Math.abs(c) < Tr.secondsInQuarter ? (a = (0, is.differenceInCalendarMonths)(u, l), i = "month") : Math.abs(c) < Tr.secondsInYear && (0, ku.differenceInCalendarQuarters)(u, l) < 4 ? (a = (0, ku.differenceInCalendarQuarters)(
      u,
      l
    ), i = "quarter") : (a = (0, el.differenceInCalendarYears)(u, l), i = "year");
  }
  return new Intl.RelativeTimeFormat(r == null ? void 0 : r.locale, {
    numeric: "auto",
    ...r
  }).format(a, i);
}
var Sf = {};
Sf.isAfter = MD;
var cs = D;
function MD(e, n) {
  return +(0, cs.toDate)(e) > +(0, cs.toDate)(n);
}
var Cf = {};
Cf.isBefore = PD;
var ss = D;
function PD(e, n) {
  return +(0, ss.toDate)(e) < +(0, ss.toDate)(n);
}
var If = {};
If.isEqual = TD;
var os = D;
function TD(e, n) {
  return +(0, os.toDate)(e) == +(0, os.toDate)(n);
}
var jf = {};
jf.isExists = wD;
function wD(e, n, r) {
  const a = new Date(e, n, r);
  return a.getFullYear() === e && a.getMonth() === n && a.getDate() === r;
}
var xf = {};
xf.isFirstDayOfMonth = CD;
var SD = D;
function CD(e, n) {
  return (0, SD.toDate)(e, n == null ? void 0 : n.in).getDate() === 1;
}
var Ff = {};
Ff.isFriday = jD;
var ID = D;
function jD(e, n) {
  return (0, ID.toDate)(e, n == null ? void 0 : n.in).getDay() === 5;
}
var Yf = {};
Yf.isFuture = FD;
var xD = D;
function FD(e) {
  return +(0, xD.toDate)(e) > Date.now();
}
var Ef = {}, fd = {}, vr = {}, hd = {};
hd.transpose = ED;
var YD = W;
function ED(e, n) {
  const r = yD(n) ? new n(0) : (0, YD.constructFrom)(n, 0);
  return r.setFullYear(e.getFullYear(), e.getMonth(), e.getDate()), r.setHours(
    e.getHours(),
    e.getMinutes(),
    e.getSeconds(),
    e.getMilliseconds()
  ), r;
}
function yD(e) {
  var n;
  return typeof e == "function" && ((n = e.prototype) == null ? void 0 : n.constructor) === e;
}
vr.ValueSetter = vr.Setter = vr.DateTimezoneSetter = void 0;
var fs = W, $D = hd;
const ND = 10;
class md {
  constructor() {
    C(this, "subPriority", 0);
  }
  validate(n, r) {
    return !0;
  }
}
vr.Setter = md;
class RD extends md {
  constructor(n, r, a, i, u) {
    super(), this.value = n, this.validateValue = r, this.setValue = a, this.priority = i, u && (this.subPriority = u);
  }
  validate(n, r) {
    return this.validateValue(n, this.value, r);
  }
  set(n, r, a) {
    return this.setValue(n, r, this.value, a);
  }
}
vr.ValueSetter = RD;
class HD extends md {
  constructor(r, a) {
    super();
    C(this, "priority", ND);
    C(this, "subPriority", -1);
    this.context = r || ((i) => (0, fs.constructFrom)(a, i));
  }
  set(r, a) {
    return a.timestampIsSet ? r : (0, fs.constructFrom)(
      r,
      (0, $D.transpose)(r, this.context)
    );
  }
}
vr.DateTimezoneSetter = HD;
var vd = {}, _d = {}, ae = {};
ae.Parser = void 0;
var zD = vr;
class AD {
  run(n, r, a, i) {
    const u = this.parse(n, r, a, i);
    return u ? {
      setter: new zD.ValueSetter(
        u.value,
        this.validate,
        this.set,
        this.priority,
        this.subPriority
      ),
      rest: u.rest
    } : null;
  }
  validate(n, r, a) {
    return !0;
  }
}
ae.Parser = AD;
_d.EraParser = void 0;
var WD = ae;
class VD extends WD.Parser {
  constructor() {
    super(...arguments);
    C(this, "priority", 140);
    C(this, "incompatibleTokens", ["R", "u", "t", "T"]);
  }
  parse(r, a, i) {
    switch (a) {
      case "G":
      case "GG":
      case "GGG":
        return i.era(r, { width: "abbreviated" }) || i.era(r, { width: "narrow" });
      case "GGGGG":
        return i.era(r, { width: "narrow" });
      case "GGGG":
      default:
        return i.era(r, { width: "wide" }) || i.era(r, { width: "abbreviated" }) || i.era(r, { width: "narrow" });
    }
  }
  set(r, a, i) {
    return a.era = i, r.setFullYear(i, 0, 1), r.setHours(0, 0, 0, 0), r;
  }
}
_d.EraParser = VD;
var gd = {}, J = {}, Be = {};
Be.timezonePatterns = Be.numericPatterns = void 0;
Be.numericPatterns = {
  month: /^(1[0-2]|0?\d)/,
  // 0 to 12
  date: /^(3[0-1]|[0-2]?\d)/,
  // 0 to 31
  dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,
  // 0 to 366
  week: /^(5[0-3]|[0-4]?\d)/,
  // 0 to 53
  hour23h: /^(2[0-3]|[0-1]?\d)/,
  // 0 to 23
  hour24h: /^(2[0-4]|[0-1]?\d)/,
  // 0 to 24
  hour11h: /^(1[0-1]|0?\d)/,
  // 0 to 11
  hour12h: /^(1[0-2]|0?\d)/,
  // 0 to 12
  minute: /^[0-5]?\d/,
  // 0 to 59
  second: /^[0-5]?\d/,
  // 0 to 59
  singleDigit: /^\d/,
  // 0 to 9
  twoDigits: /^\d{1,2}/,
  // 0 to 99
  threeDigits: /^\d{1,3}/,
  // 0 to 999
  fourDigits: /^\d{1,4}/,
  // 0 to 9999
  anyDigitsSigned: /^-?\d+/,
  singleDigitSigned: /^-?\d/,
  // 0 to 9, -0 to -9
  twoDigitsSigned: /^-?\d{1,2}/,
  // 0 to 99, -0 to -99
  threeDigitsSigned: /^-?\d{1,3}/,
  // 0 to 999, -0 to -999
  fourDigitsSigned: /^-?\d{1,4}/
  // 0 to 9999, -0 to -9999
};
Be.timezonePatterns = {
  basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
  basic: /^([+-])(\d{2})(\d{2})|Z/,
  basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
  extended: /^([+-])(\d{2}):(\d{2})|Z/,
  extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/
};
J.dayPeriodEnumToHours = ZD;
J.isLeapYearIndex = XD;
J.mapValue = BD;
J.normalizeTwoDigitYear = pD;
J.parseAnyDigitsSigned = UD;
J.parseNDigits = qD;
J.parseNDigitsSigned = QD;
J.parseNumericPattern = gt;
J.parseTimezonePattern = LD;
var rl = G, Gt = Be;
function BD(e, n) {
  return e && {
    value: n(e.value),
    rest: e.rest
  };
}
function gt(e, n) {
  const r = n.match(e);
  return r ? {
    value: parseInt(r[0], 10),
    rest: n.slice(r[0].length)
  } : null;
}
function LD(e, n) {
  const r = n.match(e);
  if (!r)
    return null;
  if (r[0] === "Z")
    return {
      value: 0,
      rest: n.slice(1)
    };
  const a = r[1] === "+" ? 1 : -1, i = r[2] ? parseInt(r[2], 10) : 0, u = r[3] ? parseInt(r[3], 10) : 0, l = r[5] ? parseInt(r[5], 10) : 0;
  return {
    value: a * (i * rl.millisecondsInHour + u * rl.millisecondsInMinute + l * rl.millisecondsInSecond),
    rest: n.slice(r[0].length)
  };
}
function UD(e) {
  return gt(
    Gt.numericPatterns.anyDigitsSigned,
    e
  );
}
function qD(e, n) {
  switch (e) {
    case 1:
      return gt(
        Gt.numericPatterns.singleDigit,
        n
      );
    case 2:
      return gt(
        Gt.numericPatterns.twoDigits,
        n
      );
    case 3:
      return gt(
        Gt.numericPatterns.threeDigits,
        n
      );
    case 4:
      return gt(
        Gt.numericPatterns.fourDigits,
        n
      );
    default:
      return gt(new RegExp("^\\d{1," + e + "}"), n);
  }
}
function QD(e, n) {
  switch (e) {
    case 1:
      return gt(
        Gt.numericPatterns.singleDigitSigned,
        n
      );
    case 2:
      return gt(
        Gt.numericPatterns.twoDigitsSigned,
        n
      );
    case 3:
      return gt(
        Gt.numericPatterns.threeDigitsSigned,
        n
      );
    case 4:
      return gt(
        Gt.numericPatterns.fourDigitsSigned,
        n
      );
    default:
      return gt(new RegExp("^-?\\d{1," + e + "}"), n);
  }
}
function ZD(e) {
  switch (e) {
    case "morning":
      return 4;
    case "evening":
      return 17;
    case "pm":
    case "noon":
    case "afternoon":
      return 12;
    case "am":
    case "midnight":
    case "night":
    default:
      return 0;
  }
}
function pD(e, n) {
  const r = n > 0, a = r ? n : 1 - n;
  let i;
  if (a <= 50)
    i = e || 100;
  else {
    const u = a + 50, l = Math.trunc(u / 100) * 100, d = e >= u % 100;
    i = e + l - (d ? 100 : 0);
  }
  return r ? i : 1 - i;
}
function XD(e) {
  return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
}
gd.YearParser = void 0;
var KD = ae, Vr = J;
class GD extends KD.Parser {
  constructor() {
    super(...arguments);
    C(this, "priority", 130);
    C(this, "incompatibleTokens", ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"]);
  }
  parse(r, a, i) {
    const u = (l) => ({
      year: l,
      isTwoDigitYear: a === "yy"
    });
    switch (a) {
      case "y":
        return (0, Vr.mapValue)(
          (0, Vr.parseNDigits)(4, r),
          u
        );
      case "yo":
        return (0, Vr.mapValue)(
          i.ordinalNumber(r, {
            unit: "year"
          }),
          u
        );
      default:
        return (0, Vr.mapValue)(
          (0, Vr.parseNDigits)(a.length, r),
          u
        );
    }
  }
  validate(r, a) {
    return a.isTwoDigitYear || a.year > 0;
  }
  set(r, a, i) {
    const u = r.getFullYear();
    if (i.isTwoDigitYear) {
      const d = (0, Vr.normalizeTwoDigitYear)(
        i.year,
        u
      );
      return r.setFullYear(d, 0, 1), r.setHours(0, 0, 0, 0), r;
    }
    const l = !("era" in a) || a.era === 1 ? i.year : 1 - i.year;
    return r.setFullYear(l, 0, 1), r.setHours(0, 0, 0, 0), r;
  }
}
gd.YearParser = GD;
var bd = {};
bd.LocalWeekYearParser = void 0;
var JD = Tn, hs = Jt, kD = ae, Br = J;
class eM extends kD.Parser {
  constructor() {
    super(...arguments);
    C(this, "priority", 130);
    C(this, "incompatibleTokens", [
      "y",
      "R",
      "u",
      "Q",
      "q",
      "M",
      "L",
      "I",
      "d",
      "D",
      "i",
      "t",
      "T"
    ]);
  }
  parse(r, a, i) {
    const u = (l) => ({
      year: l,
      isTwoDigitYear: a === "YY"
    });
    switch (a) {
      case "Y":
        return (0, Br.mapValue)(
          (0, Br.parseNDigits)(4, r),
          u
        );
      case "Yo":
        return (0, Br.mapValue)(
          i.ordinalNumber(r, {
            unit: "year"
          }),
          u
        );
      default:
        return (0, Br.mapValue)(
          (0, Br.parseNDigits)(a.length, r),
          u
        );
    }
  }
  validate(r, a) {
    return a.isTwoDigitYear || a.year > 0;
  }
  set(r, a, i, u) {
    const l = (0, JD.getWeekYear)(r, u);
    if (i.isTwoDigitYear) {
      const c = (0, Br.normalizeTwoDigitYear)(
        i.year,
        l
      );
      return r.setFullYear(
        c,
        0,
        u.firstWeekContainsDate
      ), r.setHours(0, 0, 0, 0), (0, hs.startOfWeek)(r, u);
    }
    const d = !("era" in a) || a.era === 1 ? i.year : 1 - i.year;
    return r.setFullYear(d, 0, u.firstWeekContainsDate), r.setHours(0, 0, 0, 0), (0, hs.startOfWeek)(r, u);
  }
}
bd.LocalWeekYearParser = eM;
var Od = {};
Od.ISOWeekYearParser = void 0;
var tM = Bt, rM = W, nM = ae, ms = J;
class aM extends nM.Parser {
  constructor() {
    super(...arguments);
    C(this, "priority", 130);
    C(this, "incompatibleTokens", [
      "G",
      "y",
      "Y",
      "u",
      "Q",
      "q",
      "M",
      "L",
      "w",
      "d",
      "D",
      "e",
      "c",
      "t",
      "T"
    ]);
  }
  parse(r, a) {
    return a === "R" ? (0, ms.parseNDigitsSigned)(4, r) : (0, ms.parseNDigitsSigned)(a.length, r);
  }
  set(r, a, i) {
    const u = (0, rM.constructFrom)(r, 0);
    return u.setFullYear(i, 0, 4), u.setHours(0, 0, 0, 0), (0, tM.startOfISOWeek)(u);
  }
}
Od.ISOWeekYearParser = aM;
var Dd = {};
Dd.ExtendedYearParser = void 0;
var iM = ae, vs = J;
class uM extends iM.Parser {
  constructor() {
    super(...arguments);
    C(this, "priority", 130);
    C(this, "incompatibleTokens", ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]);
  }
  parse(r, a) {
    return a === "u" ? (0, vs.parseNDigitsSigned)(4, r) : (0, vs.parseNDigitsSigned)(a.length, r);
  }
  set(r, a, i) {
    return r.setFullYear(i, 0, 1), r.setHours(0, 0, 0, 0), r;
  }
}
Dd.ExtendedYearParser = uM;
var Md = {};
Md.QuarterParser = void 0;
var lM = ae, dM = J;
class cM extends lM.Parser {
  constructor() {
    super(...arguments);
    C(this, "priority", 120);
    C(this, "incompatibleTokens", [
      "Y",
      "R",
      "q",
      "M",
      "L",
      "w",
      "I",
      "d",
      "D",
      "i",
      "e",
      "c",
      "t",
      "T"
    ]);
  }
  parse(r, a, i) {
    switch (a) {
      case "Q":
      case "QQ":
        return (0, dM.parseNDigits)(a.length, r);
      case "Qo":
        return i.ordinalNumber(r, { unit: "quarter" });
      case "QQQ":
        return i.quarter(r, {
          width: "abbreviated",
          context: "formatting"
        }) || i.quarter(r, {
          width: "narrow",
          context: "formatting"
        });
      case "QQQQQ":
        return i.quarter(r, {
          width: "narrow",
          context: "formatting"
        });
      case "QQQQ":
      default:
        return i.quarter(r, {
          width: "wide",
          context: "formatting"
        }) || i.quarter(r, {
          width: "abbreviated",
          context: "formatting"
        }) || i.quarter(r, {
          width: "narrow",
          context: "formatting"
        });
    }
  }
  validate(r, a) {
    return a >= 1 && a <= 4;
  }
  set(r, a, i) {
    return r.setMonth((i - 1) * 3, 1), r.setHours(0, 0, 0, 0), r;
  }
}
Md.QuarterParser = cM;
var Pd = {};
Pd.StandAloneQuarterParser = void 0;
var sM = ae, oM = J;
class fM extends sM.Parser {
  constructor() {
    super(...arguments);
    C(this, "priority", 120);
    C(this, "incompatibleTokens", [
      "Y",
      "R",
      "Q",
      "M",
      "L",
      "w",
      "I",
      "d",
      "D",
      "i",
      "e",
      "c",
      "t",
      "T"
    ]);
  }
  parse(r, a, i) {
    switch (a) {
      case "q":
      case "qq":
        return (0, oM.parseNDigits)(a.length, r);
      case "qo":
        return i.ordinalNumber(r, { unit: "quarter" });
      case "qqq":
        return i.quarter(r, {
          width: "abbreviated",
          context: "standalone"
        }) || i.quarter(r, {
          width: "narrow",
          context: "standalone"
        });
      case "qqqqq":
        return i.quarter(r, {
          width: "narrow",
          context: "standalone"
        });
      case "qqqq":
      default:
        return i.quarter(r, {
          width: "wide",
          context: "standalone"
        }) || i.quarter(r, {
          width: "abbreviated",
          context: "standalone"
        }) || i.quarter(r, {
          width: "narrow",
          context: "standalone"
        });
    }
  }
  validate(r, a) {
    return a >= 1 && a <= 4;
  }
  set(r, a, i) {
    return r.setMonth((i - 1) * 3, 1), r.setHours(0, 0, 0, 0), r;
  }
}
Pd.StandAloneQuarterParser = fM;
var Td = {};
Td.MonthParser = void 0;
var hM = Be, mM = ae, rn = J;
class vM extends mM.Parser {
  constructor() {
    super(...arguments);
    C(this, "incompatibleTokens", [
      "Y",
      "R",
      "q",
      "Q",
      "L",
      "w",
      "I",
      "D",
      "i",
      "e",
      "c",
      "t",
      "T"
    ]);
    C(this, "priority", 110);
  }
  parse(r, a, i) {
    const u = (l) => l - 1;
    switch (a) {
      case "M":
        return (0, rn.mapValue)(
          (0, rn.parseNumericPattern)(
            hM.numericPatterns.month,
            r
          ),
          u
        );
      case "MM":
        return (0, rn.mapValue)(
          (0, rn.parseNDigits)(2, r),
          u
        );
      case "Mo":
        return (0, rn.mapValue)(
          i.ordinalNumber(r, {
            unit: "month"
          }),
          u
        );
      case "MMM":
        return i.month(r, {
          width: "abbreviated",
          context: "formatting"
        }) || i.month(r, { width: "narrow", context: "formatting" });
      case "MMMMM":
        return i.month(r, {
          width: "narrow",
          context: "formatting"
        });
      case "MMMM":
      default:
        return i.month(r, { width: "wide", context: "formatting" }) || i.month(r, {
          width: "abbreviated",
          context: "formatting"
        }) || i.month(r, { width: "narrow", context: "formatting" });
    }
  }
  validate(r, a) {
    return a >= 0 && a <= 11;
  }
  set(r, a, i) {
    return r.setMonth(i, 1), r.setHours(0, 0, 0, 0), r;
  }
}
Td.MonthParser = vM;
var wd = {};
wd.StandAloneMonthParser = void 0;
var _M = Be, gM = ae, nn = J;
class bM extends gM.Parser {
  constructor() {
    super(...arguments);
    C(this, "priority", 110);
    C(this, "incompatibleTokens", [
      "Y",
      "R",
      "q",
      "Q",
      "M",
      "w",
      "I",
      "D",
      "i",
      "e",
      "c",
      "t",
      "T"
    ]);
  }
  parse(r, a, i) {
    const u = (l) => l - 1;
    switch (a) {
      case "L":
        return (0, nn.mapValue)(
          (0, nn.parseNumericPattern)(
            _M.numericPatterns.month,
            r
          ),
          u
        );
      case "LL":
        return (0, nn.mapValue)(
          (0, nn.parseNDigits)(2, r),
          u
        );
      case "Lo":
        return (0, nn.mapValue)(
          i.ordinalNumber(r, {
            unit: "month"
          }),
          u
        );
      case "LLL":
        return i.month(r, {
          width: "abbreviated",
          context: "standalone"
        }) || i.month(r, { width: "narrow", context: "standalone" });
      case "LLLLL":
        return i.month(r, {
          width: "narrow",
          context: "standalone"
        });
      case "LLLL":
      default:
        return i.month(r, { width: "wide", context: "standalone" }) || i.month(r, {
          width: "abbreviated",
          context: "standalone"
        }) || i.month(r, { width: "narrow", context: "standalone" });
    }
  }
  validate(r, a) {
    return a >= 0 && a <= 11;
  }
  set(r, a, i) {
    return r.setMonth(i, 1), r.setHours(0, 0, 0, 0), r;
  }
}
wd.StandAloneMonthParser = bM;
var Sd = {}, Cd = {};
Cd.setWeek = DM;
var OM = ba, _s = D;
function DM(e, n, r) {
  const a = (0, _s.toDate)(e, r == null ? void 0 : r.in), i = (0, OM.getWeek)(a, r) - n;
  return a.setDate(a.getDate() - i * 7), (0, _s.toDate)(a, r == null ? void 0 : r.in);
}
Sd.LocalWeekParser = void 0;
var MM = Cd, PM = Jt, TM = Be, wM = ae, gs = J;
class SM extends wM.Parser {
  constructor() {
    super(...arguments);
    C(this, "priority", 100);
    C(this, "incompatibleTokens", [
      "y",
      "R",
      "u",
      "q",
      "Q",
      "M",
      "L",
      "I",
      "d",
      "D",
      "i",
      "t",
      "T"
    ]);
  }
  parse(r, a, i) {
    switch (a) {
      case "w":
        return (0, gs.parseNumericPattern)(
          TM.numericPatterns.week,
          r
        );
      case "wo":
        return i.ordinalNumber(r, { unit: "week" });
      default:
        return (0, gs.parseNDigits)(a.length, r);
    }
  }
  validate(r, a) {
    return a >= 1 && a <= 53;
  }
  set(r, a, i, u) {
    return (0, PM.startOfWeek)(
      (0, MM.setWeek)(r, i, u),
      u
    );
  }
}
Sd.LocalWeekParser = SM;
var Id = {}, jd = {};
jd.setISOWeek = jM;
var CM = ga, IM = D;
function jM(e, n, r) {
  const a = (0, IM.toDate)(e, r == null ? void 0 : r.in), i = (0, CM.getISOWeek)(a, r) - n;
  return a.setDate(a.getDate() - i * 7), a;
}
Id.ISOWeekParser = void 0;
var xM = jd, FM = Bt, YM = Be, EM = ae, bs = J;
class yM extends EM.Parser {
  constructor() {
    super(...arguments);
    C(this, "priority", 100);
    C(this, "incompatibleTokens", [
      "y",
      "Y",
      "u",
      "q",
      "Q",
      "M",
      "L",
      "w",
      "d",
      "D",
      "e",
      "c",
      "t",
      "T"
    ]);
  }
  parse(r, a, i) {
    switch (a) {
      case "I":
        return (0, bs.parseNumericPattern)(
          YM.numericPatterns.week,
          r
        );
      case "Io":
        return i.ordinalNumber(r, { unit: "week" });
      default:
        return (0, bs.parseNDigits)(a.length, r);
    }
  }
  validate(r, a) {
    return a >= 1 && a <= 53;
  }
  set(r, a, i) {
    return (0, FM.startOfISOWeek)((0, xM.setISOWeek)(r, i));
  }
}
Id.ISOWeekParser = yM;
var xd = {};
xd.DateParser = void 0;
var $M = Be, NM = ae, nl = J;
const RM = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], HM = [
  31,
  29,
  31,
  30,
  31,
  30,
  31,
  31,
  30,
  31,
  30,
  31
];
class zM extends NM.Parser {
  constructor() {
    super(...arguments);
    C(this, "priority", 90);
    C(this, "subPriority", 1);
    C(this, "incompatibleTokens", [
      "Y",
      "R",
      "q",
      "Q",
      "w",
      "I",
      "D",
      "i",
      "e",
      "c",
      "t",
      "T"
    ]);
  }
  parse(r, a, i) {
    switch (a) {
      case "d":
        return (0, nl.parseNumericPattern)(
          $M.numericPatterns.date,
          r
        );
      case "do":
        return i.ordinalNumber(r, { unit: "date" });
      default:
        return (0, nl.parseNDigits)(a.length, r);
    }
  }
  validate(r, a) {
    const i = r.getFullYear(), u = (0, nl.isLeapYearIndex)(i), l = r.getMonth();
    return u ? a >= 1 && a <= HM[l] : a >= 1 && a <= RM[l];
  }
  set(r, a, i) {
    return r.setDate(i), r.setHours(0, 0, 0, 0), r;
  }
}
xd.DateParser = zM;
var Fd = {};
Fd.DayOfYearParser = void 0;
var AM = Be, WM = ae, al = J;
class VM extends WM.Parser {
  constructor() {
    super(...arguments);
    C(this, "priority", 90);
    C(this, "subpriority", 1);
    C(this, "incompatibleTokens", [
      "Y",
      "R",
      "q",
      "Q",
      "M",
      "L",
      "w",
      "I",
      "d",
      "E",
      "i",
      "e",
      "c",
      "t",
      "T"
    ]);
  }
  parse(r, a, i) {
    switch (a) {
      case "D":
      case "DD":
        return (0, al.parseNumericPattern)(
          AM.numericPatterns.dayOfYear,
          r
        );
      case "Do":
        return i.ordinalNumber(r, { unit: "date" });
      default:
        return (0, al.parseNDigits)(a.length, r);
    }
  }
  validate(r, a) {
    const i = r.getFullYear();
    return (0, al.isLeapYearIndex)(i) ? a >= 1 && a <= 366 : a >= 1 && a <= 365;
  }
  set(r, a, i) {
    return r.setMonth(0, i), r.setHours(0, 0, 0, 0), r;
  }
}
Fd.DayOfYearParser = VM;
var Yd = {}, Cn = {};
Cn.setDay = qM;
var BM = ut, LM = Vt, UM = D;
function qM(e, n, r) {
  var h, v, P, S;
  const a = (0, BM.getDefaultOptions)(), i = (r == null ? void 0 : r.weekStartsOn) ?? ((v = (h = r == null ? void 0 : r.locale) == null ? void 0 : h.options) == null ? void 0 : v.weekStartsOn) ?? a.weekStartsOn ?? ((S = (P = a.locale) == null ? void 0 : P.options) == null ? void 0 : S.weekStartsOn) ?? 0, u = (0, UM.toDate)(e, r == null ? void 0 : r.in), l = u.getDay(), c = (n % 7 + 7) % 7, o = 7 - i, f = n < 0 || n > 6 ? n - (l + o) % 7 : (c + o) % 7 - (l + o) % 7;
  return (0, LM.addDays)(u, f, r);
}
Yd.DayParser = void 0;
var QM = Cn, ZM = ae;
class pM extends ZM.Parser {
  constructor() {
    super(...arguments);
    C(this, "priority", 90);
    C(this, "incompatibleTokens", ["D", "i", "e", "c", "t", "T"]);
  }
  parse(r, a, i) {
    switch (a) {
      case "E":
      case "EE":
      case "EEE":
        return i.day(r, {
          width: "abbreviated",
          context: "formatting"
        }) || i.day(r, { width: "short", context: "formatting" }) || i.day(r, { width: "narrow", context: "formatting" });
      case "EEEEE":
        return i.day(r, {
          width: "narrow",
          context: "formatting"
        });
      case "EEEEEE":
        return i.day(r, { width: "short", context: "formatting" }) || i.day(r, { width: "narrow", context: "formatting" });
      case "EEEE":
      default:
        return i.day(r, { width: "wide", context: "formatting" }) || i.day(r, {
          width: "abbreviated",
          context: "formatting"
        }) || i.day(r, { width: "short", context: "formatting" }) || i.day(r, { width: "narrow", context: "formatting" });
    }
  }
  validate(r, a) {
    return a >= 0 && a <= 6;
  }
  set(r, a, i, u) {
    return r = (0, QM.setDay)(r, i, u), r.setHours(0, 0, 0, 0), r;
  }
}
Yd.DayParser = pM;
var Ed = {};
Ed.LocalDayParser = void 0;
var XM = Cn, KM = ae, il = J;
class GM extends KM.Parser {
  constructor() {
    super(...arguments);
    C(this, "priority", 90);
    C(this, "incompatibleTokens", [
      "y",
      "R",
      "u",
      "q",
      "Q",
      "M",
      "L",
      "I",
      "d",
      "D",
      "E",
      "i",
      "c",
      "t",
      "T"
    ]);
  }
  parse(r, a, i, u) {
    const l = (d) => {
      const c = Math.floor((d - 1) / 7) * 7;
      return (d + u.weekStartsOn + 6) % 7 + c;
    };
    switch (a) {
      case "e":
      case "ee":
        return (0, il.mapValue)(
          (0, il.parseNDigits)(a.length, r),
          l
        );
      case "eo":
        return (0, il.mapValue)(
          i.ordinalNumber(r, {
            unit: "day"
          }),
          l
        );
      case "eee":
        return i.day(r, {
          width: "abbreviated",
          context: "formatting"
        }) || i.day(r, { width: "short", context: "formatting" }) || i.day(r, { width: "narrow", context: "formatting" });
      case "eeeee":
        return i.day(r, {
          width: "narrow",
          context: "formatting"
        });
      case "eeeeee":
        return i.day(r, { width: "short", context: "formatting" }) || i.day(r, { width: "narrow", context: "formatting" });
      case "eeee":
      default:
        return i.day(r, { width: "wide", context: "formatting" }) || i.day(r, {
          width: "abbreviated",
          context: "formatting"
        }) || i.day(r, { width: "short", context: "formatting" }) || i.day(r, { width: "narrow", context: "formatting" });
    }
  }
  validate(r, a) {
    return a >= 0 && a <= 6;
  }
  set(r, a, i, u) {
    return r = (0, XM.setDay)(r, i, u), r.setHours(0, 0, 0, 0), r;
  }
}
Ed.LocalDayParser = GM;
var yd = {};
yd.StandAloneLocalDayParser = void 0;
var JM = Cn, kM = ae, ul = J;
class eP extends kM.Parser {
  constructor() {
    super(...arguments);
    C(this, "priority", 90);
    C(this, "incompatibleTokens", [
      "y",
      "R",
      "u",
      "q",
      "Q",
      "M",
      "L",
      "I",
      "d",
      "D",
      "E",
      "i",
      "e",
      "t",
      "T"
    ]);
  }
  parse(r, a, i, u) {
    const l = (d) => {
      const c = Math.floor((d - 1) / 7) * 7;
      return (d + u.weekStartsOn + 6) % 7 + c;
    };
    switch (a) {
      case "c":
      case "cc":
        return (0, ul.mapValue)(
          (0, ul.parseNDigits)(a.length, r),
          l
        );
      case "co":
        return (0, ul.mapValue)(
          i.ordinalNumber(r, {
            unit: "day"
          }),
          l
        );
      case "ccc":
        return i.day(r, {
          width: "abbreviated",
          context: "standalone"
        }) || i.day(r, { width: "short", context: "standalone" }) || i.day(r, { width: "narrow", context: "standalone" });
      case "ccccc":
        return i.day(r, {
          width: "narrow",
          context: "standalone"
        });
      case "cccccc":
        return i.day(r, { width: "short", context: "standalone" }) || i.day(r, { width: "narrow", context: "standalone" });
      case "cccc":
      default:
        return i.day(r, { width: "wide", context: "standalone" }) || i.day(r, {
          width: "abbreviated",
          context: "standalone"
        }) || i.day(r, { width: "short", context: "standalone" }) || i.day(r, { width: "narrow", context: "standalone" });
    }
  }
  validate(r, a) {
    return a >= 0 && a <= 6;
  }
  set(r, a, i, u) {
    return r = (0, JM.setDay)(r, i, u), r.setHours(0, 0, 0, 0), r;
  }
}
yd.StandAloneLocalDayParser = eP;
var $d = {}, Nd = {};
Nd.setISODay = aP;
var tP = Vt, rP = sd, nP = D;
function aP(e, n, r) {
  const a = (0, nP.toDate)(e, r == null ? void 0 : r.in), i = (0, rP.getISODay)(a, r), u = n - i;
  return (0, tP.addDays)(a, u, r);
}
$d.ISODayParser = void 0;
var iP = Nd, uP = ae, an = J;
class lP extends uP.Parser {
  constructor() {
    super(...arguments);
    C(this, "priority", 90);
    C(this, "incompatibleTokens", [
      "y",
      "Y",
      "u",
      "q",
      "Q",
      "M",
      "L",
      "w",
      "d",
      "D",
      "E",
      "e",
      "c",
      "t",
      "T"
    ]);
  }
  parse(r, a, i) {
    const u = (l) => l === 0 ? 7 : l;
    switch (a) {
      case "i":
      case "ii":
        return (0, an.parseNDigits)(a.length, r);
      case "io":
        return i.ordinalNumber(r, { unit: "day" });
      case "iii":
        return (0, an.mapValue)(
          i.day(r, {
            width: "abbreviated",
            context: "formatting"
          }) || i.day(r, {
            width: "short",
            context: "formatting"
          }) || i.day(r, {
            width: "narrow",
            context: "formatting"
          }),
          u
        );
      case "iiiii":
        return (0, an.mapValue)(
          i.day(r, {
            width: "narrow",
            context: "formatting"
          }),
          u
        );
      case "iiiiii":
        return (0, an.mapValue)(
          i.day(r, {
            width: "short",
            context: "formatting"
          }) || i.day(r, {
            width: "narrow",
            context: "formatting"
          }),
          u
        );
      case "iiii":
      default:
        return (0, an.mapValue)(
          i.day(r, {
            width: "wide",
            context: "formatting"
          }) || i.day(r, {
            width: "abbreviated",
            context: "formatting"
          }) || i.day(r, {
            width: "short",
            context: "formatting"
          }) || i.day(r, {
            width: "narrow",
            context: "formatting"
          }),
          u
        );
    }
  }
  validate(r, a) {
    return a >= 1 && a <= 7;
  }
  set(r, a, i) {
    return r = (0, iP.setISODay)(r, i), r.setHours(0, 0, 0, 0), r;
  }
}
$d.ISODayParser = lP;
var Rd = {};
Rd.AMPMParser = void 0;
var dP = ae, cP = J;
class sP extends dP.Parser {
  constructor() {
    super(...arguments);
    C(this, "priority", 80);
    C(this, "incompatibleTokens", ["b", "B", "H", "k", "t", "T"]);
  }
  parse(r, a, i) {
    switch (a) {
      case "a":
      case "aa":
      case "aaa":
        return i.dayPeriod(r, {
          width: "abbreviated",
          context: "formatting"
        }) || i.dayPeriod(r, {
          width: "narrow",
          context: "formatting"
        });
      case "aaaaa":
        return i.dayPeriod(r, {
          width: "narrow",
          context: "formatting"
        });
      case "aaaa":
      default:
        return i.dayPeriod(r, {
          width: "wide",
          context: "formatting"
        }) || i.dayPeriod(r, {
          width: "abbreviated",
          context: "formatting"
        }) || i.dayPeriod(r, {
          width: "narrow",
          context: "formatting"
        });
    }
  }
  set(r, a, i) {
    return r.setHours((0, cP.dayPeriodEnumToHours)(i), 0, 0, 0), r;
  }
}
Rd.AMPMParser = sP;
var Hd = {};
Hd.AMPMMidnightParser = void 0;
var oP = ae, fP = J;
class hP extends oP.Parser {
  constructor() {
    super(...arguments);
    C(this, "priority", 80);
    C(this, "incompatibleTokens", ["a", "B", "H", "k", "t", "T"]);
  }
  parse(r, a, i) {
    switch (a) {
      case "b":
      case "bb":
      case "bbb":
        return i.dayPeriod(r, {
          width: "abbreviated",
          context: "formatting"
        }) || i.dayPeriod(r, {
          width: "narrow",
          context: "formatting"
        });
      case "bbbbb":
        return i.dayPeriod(r, {
          width: "narrow",
          context: "formatting"
        });
      case "bbbb":
      default:
        return i.dayPeriod(r, {
          width: "wide",
          context: "formatting"
        }) || i.dayPeriod(r, {
          width: "abbreviated",
          context: "formatting"
        }) || i.dayPeriod(r, {
          width: "narrow",
          context: "formatting"
        });
    }
  }
  set(r, a, i) {
    return r.setHours((0, fP.dayPeriodEnumToHours)(i), 0, 0, 0), r;
  }
}
Hd.AMPMMidnightParser = hP;
var zd = {};
zd.DayPeriodParser = void 0;
var mP = ae, vP = J;
class _P extends mP.Parser {
  constructor() {
    super(...arguments);
    C(this, "priority", 80);
    C(this, "incompatibleTokens", ["a", "b", "t", "T"]);
  }
  parse(r, a, i) {
    switch (a) {
      case "B":
      case "BB":
      case "BBB":
        return i.dayPeriod(r, {
          width: "abbreviated",
          context: "formatting"
        }) || i.dayPeriod(r, {
          width: "narrow",
          context: "formatting"
        });
      case "BBBBB":
        return i.dayPeriod(r, {
          width: "narrow",
          context: "formatting"
        });
      case "BBBB":
      default:
        return i.dayPeriod(r, {
          width: "wide",
          context: "formatting"
        }) || i.dayPeriod(r, {
          width: "abbreviated",
          context: "formatting"
        }) || i.dayPeriod(r, {
          width: "narrow",
          context: "formatting"
        });
    }
  }
  set(r, a, i) {
    return r.setHours((0, vP.dayPeriodEnumToHours)(i), 0, 0, 0), r;
  }
}
zd.DayPeriodParser = _P;
var Ad = {};
Ad.Hour1to12Parser = void 0;
var gP = Be, bP = ae, Os = J;
class OP extends bP.Parser {
  constructor() {
    super(...arguments);
    C(this, "priority", 70);
    C(this, "incompatibleTokens", ["H", "K", "k", "t", "T"]);
  }
  parse(r, a, i) {
    switch (a) {
      case "h":
        return (0, Os.parseNumericPattern)(
          gP.numericPatterns.hour12h,
          r
        );
      case "ho":
        return i.ordinalNumber(r, { unit: "hour" });
      default:
        return (0, Os.parseNDigits)(a.length, r);
    }
  }
  validate(r, a) {
    return a >= 1 && a <= 12;
  }
  set(r, a, i) {
    const u = r.getHours() >= 12;
    return u && i < 12 ? r.setHours(i + 12, 0, 0, 0) : !u && i === 12 ? r.setHours(0, 0, 0, 0) : r.setHours(i, 0, 0, 0), r;
  }
}
Ad.Hour1to12Parser = OP;
var Wd = {};
Wd.Hour0to23Parser = void 0;
var DP = Be, MP = ae, Ds = J;
class PP extends MP.Parser {
  constructor() {
    super(...arguments);
    C(this, "priority", 70);
    C(this, "incompatibleTokens", ["a", "b", "h", "K", "k", "t", "T"]);
  }
  parse(r, a, i) {
    switch (a) {
      case "H":
        return (0, Ds.parseNumericPattern)(
          DP.numericPatterns.hour23h,
          r
        );
      case "Ho":
        return i.ordinalNumber(r, { unit: "hour" });
      default:
        return (0, Ds.parseNDigits)(a.length, r);
    }
  }
  validate(r, a) {
    return a >= 0 && a <= 23;
  }
  set(r, a, i) {
    return r.setHours(i, 0, 0, 0), r;
  }
}
Wd.Hour0to23Parser = PP;
var Vd = {};
Vd.Hour0To11Parser = void 0;
var TP = Be, wP = ae, Ms = J;
class SP extends wP.Parser {
  constructor() {
    super(...arguments);
    C(this, "priority", 70);
    C(this, "incompatibleTokens", ["h", "H", "k", "t", "T"]);
  }
  parse(r, a, i) {
    switch (a) {
      case "K":
        return (0, Ms.parseNumericPattern)(
          TP.numericPatterns.hour11h,
          r
        );
      case "Ko":
        return i.ordinalNumber(r, { unit: "hour" });
      default:
        return (0, Ms.parseNDigits)(a.length, r);
    }
  }
  validate(r, a) {
    return a >= 0 && a <= 11;
  }
  set(r, a, i) {
    return r.getHours() >= 12 && i < 12 ? r.setHours(i + 12, 0, 0, 0) : r.setHours(i, 0, 0, 0), r;
  }
}
Vd.Hour0To11Parser = SP;
var Bd = {};
Bd.Hour1To24Parser = void 0;
var CP = Be, IP = ae, Ps = J;
class jP extends IP.Parser {
  constructor() {
    super(...arguments);
    C(this, "priority", 70);
    C(this, "incompatibleTokens", ["a", "b", "h", "H", "K", "t", "T"]);
  }
  parse(r, a, i) {
    switch (a) {
      case "k":
        return (0, Ps.parseNumericPattern)(
          CP.numericPatterns.hour24h,
          r
        );
      case "ko":
        return i.ordinalNumber(r, { unit: "hour" });
      default:
        return (0, Ps.parseNDigits)(a.length, r);
    }
  }
  validate(r, a) {
    return a >= 1 && a <= 24;
  }
  set(r, a, i) {
    const u = i <= 24 ? i % 24 : i;
    return r.setHours(u, 0, 0, 0), r;
  }
}
Bd.Hour1To24Parser = jP;
var Ld = {};
Ld.MinuteParser = void 0;
var xP = Be, FP = ae, Ts = J;
class YP extends FP.Parser {
  constructor() {
    super(...arguments);
    C(this, "priority", 60);
    C(this, "incompatibleTokens", ["t", "T"]);
  }
  parse(r, a, i) {
    switch (a) {
      case "m":
        return (0, Ts.parseNumericPattern)(
          xP.numericPatterns.minute,
          r
        );
      case "mo":
        return i.ordinalNumber(r, { unit: "minute" });
      default:
        return (0, Ts.parseNDigits)(a.length, r);
    }
  }
  validate(r, a) {
    return a >= 0 && a <= 59;
  }
  set(r, a, i) {
    return r.setMinutes(i, 0, 0), r;
  }
}
Ld.MinuteParser = YP;
var Ud = {};
Ud.SecondParser = void 0;
var EP = Be, yP = ae, ws = J;
class $P extends yP.Parser {
  constructor() {
    super(...arguments);
    C(this, "priority", 50);
    C(this, "incompatibleTokens", ["t", "T"]);
  }
  parse(r, a, i) {
    switch (a) {
      case "s":
        return (0, ws.parseNumericPattern)(
          EP.numericPatterns.second,
          r
        );
      case "so":
        return i.ordinalNumber(r, { unit: "second" });
      default:
        return (0, ws.parseNDigits)(a.length, r);
    }
  }
  validate(r, a) {
    return a >= 0 && a <= 59;
  }
  set(r, a, i) {
    return r.setSeconds(i, 0), r;
  }
}
Ud.SecondParser = $P;
var qd = {};
qd.FractionOfSecondParser = void 0;
var NP = ae, Ss = J;
class RP extends NP.Parser {
  constructor() {
    super(...arguments);
    C(this, "priority", 30);
    C(this, "incompatibleTokens", ["t", "T"]);
  }
  parse(r, a) {
    const i = (u) => Math.trunc(u * Math.pow(10, -a.length + 3));
    return (0, Ss.mapValue)(
      (0, Ss.parseNDigits)(a.length, r),
      i
    );
  }
  set(r, a, i) {
    return r.setMilliseconds(i), r;
  }
}
qd.FractionOfSecondParser = RP;
var Qd = {};
Qd.ISOTimezoneWithZParser = void 0;
var HP = W, zP = rr, un = Be, AP = ae, ln = J;
class WP extends AP.Parser {
  constructor() {
    super(...arguments);
    C(this, "priority", 10);
    C(this, "incompatibleTokens", ["t", "T", "x"]);
  }
  parse(r, a) {
    switch (a) {
      case "X":
        return (0, ln.parseTimezonePattern)(
          un.timezonePatterns.basicOptionalMinutes,
          r
        );
      case "XX":
        return (0, ln.parseTimezonePattern)(
          un.timezonePatterns.basic,
          r
        );
      case "XXXX":
        return (0, ln.parseTimezonePattern)(
          un.timezonePatterns.basicOptionalSeconds,
          r
        );
      case "XXXXX":
        return (0, ln.parseTimezonePattern)(
          un.timezonePatterns.extendedOptionalSeconds,
          r
        );
      case "XXX":
      default:
        return (0, ln.parseTimezonePattern)(
          un.timezonePatterns.extended,
          r
        );
    }
  }
  set(r, a, i) {
    return a.timestampIsSet ? r : (0, HP.constructFrom)(
      r,
      r.getTime() - (0, zP.getTimezoneOffsetInMilliseconds)(r) - i
    );
  }
}
Qd.ISOTimezoneWithZParser = WP;
var Zd = {};
Zd.ISOTimezoneParser = void 0;
var VP = W, BP = rr, dn = Be, LP = ae, cn = J;
class UP extends LP.Parser {
  constructor() {
    super(...arguments);
    C(this, "priority", 10);
    C(this, "incompatibleTokens", ["t", "T", "X"]);
  }
  parse(r, a) {
    switch (a) {
      case "x":
        return (0, cn.parseTimezonePattern)(
          dn.timezonePatterns.basicOptionalMinutes,
          r
        );
      case "xx":
        return (0, cn.parseTimezonePattern)(
          dn.timezonePatterns.basic,
          r
        );
      case "xxxx":
        return (0, cn.parseTimezonePattern)(
          dn.timezonePatterns.basicOptionalSeconds,
          r
        );
      case "xxxxx":
        return (0, cn.parseTimezonePattern)(
          dn.timezonePatterns.extendedOptionalSeconds,
          r
        );
      case "xxx":
      default:
        return (0, cn.parseTimezonePattern)(
          dn.timezonePatterns.extended,
          r
        );
    }
  }
  set(r, a, i) {
    return a.timestampIsSet ? r : (0, VP.constructFrom)(
      r,
      r.getTime() - (0, BP.getTimezoneOffsetInMilliseconds)(r) - i
    );
  }
}
Zd.ISOTimezoneParser = UP;
var pd = {};
pd.TimestampSecondsParser = void 0;
var qP = W, QP = ae, ZP = J;
class pP extends QP.Parser {
  constructor() {
    super(...arguments);
    C(this, "priority", 40);
    C(this, "incompatibleTokens", "*");
  }
  parse(r) {
    return (0, ZP.parseAnyDigitsSigned)(r);
  }
  set(r, a, i) {
    return [
      (0, qP.constructFrom)(r, i * 1e3),
      { timestampIsSet: !0 }
    ];
  }
}
pd.TimestampSecondsParser = pP;
var Xd = {};
Xd.TimestampMillisecondsParser = void 0;
var XP = W, KP = ae, GP = J;
class JP extends KP.Parser {
  constructor() {
    super(...arguments);
    C(this, "priority", 20);
    C(this, "incompatibleTokens", "*");
  }
  parse(r) {
    return (0, GP.parseAnyDigitsSigned)(r);
  }
  set(r, a, i) {
    return [(0, XP.constructFrom)(r, i), { timestampIsSet: !0 }];
  }
}
Xd.TimestampMillisecondsParser = JP;
vd.parsers = void 0;
var kP = _d, eT = gd, tT = bd, rT = Od, nT = Dd, aT = Md, iT = Pd, uT = Td, lT = wd, dT = Sd, cT = Id, sT = xd, oT = Fd, fT = Yd, hT = Ed, mT = yd, vT = $d, _T = Rd, gT = Hd, bT = zd, OT = Ad, DT = Wd, MT = Vd, PT = Bd, TT = Ld, wT = Ud, ST = qd, CT = Qd, IT = Zd, jT = pd, xT = Xd;
vd.parsers = {
  G: new kP.EraParser(),
  y: new eT.YearParser(),
  Y: new tT.LocalWeekYearParser(),
  R: new rT.ISOWeekYearParser(),
  u: new nT.ExtendedYearParser(),
  Q: new aT.QuarterParser(),
  q: new iT.StandAloneQuarterParser(),
  M: new uT.MonthParser(),
  L: new lT.StandAloneMonthParser(),
  w: new dT.LocalWeekParser(),
  I: new cT.ISOWeekParser(),
  d: new sT.DateParser(),
  D: new oT.DayOfYearParser(),
  E: new fT.DayParser(),
  e: new hT.LocalDayParser(),
  c: new mT.StandAloneLocalDayParser(),
  i: new vT.ISODayParser(),
  a: new _T.AMPMParser(),
  b: new gT.AMPMMidnightParser(),
  B: new bT.DayPeriodParser(),
  h: new OT.Hour1to12Parser(),
  H: new DT.Hour0to23Parser(),
  K: new MT.Hour0To11Parser(),
  k: new PT.Hour1To24Parser(),
  m: new TT.MinuteParser(),
  s: new wT.SecondParser(),
  S: new ST.FractionOfSecondParser(),
  X: new CT.ISOTimezoneWithZParser(),
  x: new IT.ISOTimezoneParser(),
  t: new jT.TimestampSecondsParser(),
  T: new xT.TimestampMillisecondsParser()
};
(function(e) {
  Object.defineProperty(e, "longFormatters", {
    enumerable: !0,
    get: function() {
      return r.longFormatters;
    }
  }), e.parse = I, Object.defineProperty(e, "parsers", {
    enumerable: !0,
    get: function() {
      return c.parsers;
    }
  });
  var n = Fr, r = Ma, a = wn, i = W, u = cd, l = D, d = vr, c = vd;
  const o = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, f = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, h = /^'([^]*?)'?$/, v = /''/g, P = /\S/, S = /[a-zA-Z]/;
  function I(x, Z, Q, F) {
    var ee, te, he, me, je, Se, Xe, ue;
    const T = () => (0, i.constructFrom)((F == null ? void 0 : F.in) || Q, NaN), X = (0, u.getDefaultOptions)(), V = (F == null ? void 0 : F.locale) ?? X.locale ?? n.defaultLocale, oe = (F == null ? void 0 : F.firstWeekContainsDate) ?? ((te = (ee = F == null ? void 0 : F.locale) == null ? void 0 : ee.options) == null ? void 0 : te.firstWeekContainsDate) ?? X.firstWeekContainsDate ?? ((me = (he = X.locale) == null ? void 0 : he.options) == null ? void 0 : me.firstWeekContainsDate) ?? 1, Ie = (F == null ? void 0 : F.weekStartsOn) ?? ((Se = (je = F == null ? void 0 : F.locale) == null ? void 0 : je.options) == null ? void 0 : Se.weekStartsOn) ?? X.weekStartsOn ?? ((ue = (Xe = X.locale) == null ? void 0 : Xe.options) == null ? void 0 : ue.weekStartsOn) ?? 0;
    if (!Z)
      return x ? T() : (0, l.toDate)(Q, F == null ? void 0 : F.in);
    const se = {
      firstWeekContainsDate: oe,
      weekStartsOn: Ie,
      locale: V
    }, de = [new d.DateTimezoneSetter(F == null ? void 0 : F.in, Q)], L = Z.match(f).map((E) => {
      const y = E[0];
      if (y in r.longFormatters) {
        const K = r.longFormatters[y];
        return K(E, V.formatLong);
      }
      return E;
    }).join("").match(o), w = [];
    for (let E of L) {
      !(F != null && F.useAdditionalWeekYearTokens) && (0, a.isProtectedWeekYearToken)(E) && (0, a.warnOrThrowProtectedError)(E, Z, x), !(F != null && F.useAdditionalDayOfYearTokens) && (0, a.isProtectedDayOfYearToken)(E) && (0, a.warnOrThrowProtectedError)(E, Z, x);
      const y = E[0], K = c.parsers[y];
      if (K) {
        const { incompatibleTokens: Ce } = K;
        if (Array.isArray(Ce)) {
          const et = w.find(
            (ve) => Ce.includes(ve.token) || ve.token === y
          );
          if (et)
            throw new RangeError(
              `The format string mustn't contain \`${et.fullToken}\` and \`${E}\` at the same time`
            );
        } else if (K.incompatibleTokens === "*" && w.length > 0)
          throw new RangeError(
            `The format string mustn't contain \`${E}\` and any other token at the same time`
          );
        w.push({ token: y, fullToken: E });
        const we = K.run(
          x,
          E,
          V.match,
          se
        );
        if (!we)
          return T();
        de.push(we.setter), x = we.rest;
      } else {
        if (y.match(S))
          throw new RangeError(
            "Format string contains an unescaped latin alphabet character `" + y + "`"
          );
        if (E === "''" ? E = "'" : y === "'" && (E = H(E)), x.indexOf(E) === 0)
          x = x.slice(E.length);
        else
          return T();
      }
    }
    if (x.length > 0 && P.test(x))
      return T();
    const Pe = de.map((E) => E.priority).sort((E, y) => y - E).filter((E, y, K) => K.indexOf(E) === y).map(
      (E) => de.filter((y) => y.priority === E).sort((y, K) => K.subPriority - y.subPriority)
    ).map((E) => E[0]);
    let fe = (0, l.toDate)(Q, F == null ? void 0 : F.in);
    if (isNaN(+fe)) return T();
    const Fe = {};
    for (const E of Pe) {
      if (!E.validate(fe, se))
        return T();
      const y = E.set(fe, Fe, se);
      Array.isArray(y) ? (fe = y[0], Object.assign(Fe, y[1])) : fe = y;
    }
    return fe;
  }
  function H(x) {
    return x.match(h)[1].replace(v, "'");
  }
})(fd);
Ef.isMatch = ET;
var FT = nr, YT = fd;
function ET(e, n, r) {
  return (0, FT.isValid)(
    (0, YT.parse)(e, n, /* @__PURE__ */ new Date(), r)
  );
}
var yf = {};
yf.isMonday = $T;
var yT = D;
function $T(e, n) {
  return (0, yT.toDate)(e, n == null ? void 0 : n.in).getDay() === 1;
}
var $f = {};
$f.isPast = RT;
var NT = D;
function RT(e) {
  return +(0, NT.toDate)(e) < Date.now();
}
var Kd = {}, Gd = {};
Gd.startOfHour = zT;
var HT = D;
function zT(e, n) {
  const r = (0, HT.toDate)(e, n == null ? void 0 : n.in);
  return r.setMinutes(0, 0, 0), r;
}
Kd.isSameHour = WT;
var AT = Me, Cs = Gd;
function WT(e, n, r) {
  const [a, i] = (0, AT.normalizeDates)(
    r == null ? void 0 : r.in,
    e,
    n
  );
  return +(0, Cs.startOfHour)(a) == +(0, Cs.startOfHour)(i);
}
var Jd = {};
Jd.isSameISOWeek = BT;
var VT = Fl;
function BT(e, n, r) {
  return (0, VT.isSameWeek)(e, n, {
    ...r,
    weekStartsOn: 1
  });
}
var Nf = {};
Nf.isSameISOWeekYear = UT;
var Is = Xr, LT = Me;
function UT(e, n, r) {
  const [a, i] = (0, LT.normalizeDates)(
    r == null ? void 0 : r.in,
    e,
    n
  );
  return +(0, Is.startOfISOWeekYear)(a) == +(0, Is.startOfISOWeekYear)(i);
}
var kd = {}, ec = {};
ec.startOfMinute = QT;
var qT = D;
function QT(e, n) {
  const r = (0, qT.toDate)(e, n == null ? void 0 : n.in);
  return r.setSeconds(0, 0), r;
}
kd.isSameMinute = ZT;
var js = ec;
function ZT(e, n) {
  return +(0, js.startOfMinute)(e) == +(0, js.startOfMinute)(n);
}
var tc = {};
tc.isSameMonth = XT;
var pT = Me;
function XT(e, n, r) {
  const [a, i] = (0, pT.normalizeDates)(
    r == null ? void 0 : r.in,
    e,
    n
  );
  return a.getFullYear() === i.getFullYear() && a.getMonth() === i.getMonth();
}
var rc = {};
rc.isSameQuarter = GT;
var KT = Me, xs = ha;
function GT(e, n, r) {
  const [a, i] = (0, KT.normalizeDates)(
    r == null ? void 0 : r.in,
    e,
    n
  );
  return +(0, xs.startOfQuarter)(a) == +(0, xs.startOfQuarter)(i);
}
var nc = {}, ac = {};
ac.startOfSecond = kT;
var JT = D;
function kT(e, n) {
  const r = (0, JT.toDate)(e, n == null ? void 0 : n.in);
  return r.setMilliseconds(0), r;
}
nc.isSameSecond = ew;
var Fs = ac;
function ew(e, n) {
  return +(0, Fs.startOfSecond)(e) == +(0, Fs.startOfSecond)(n);
}
var ic = {};
ic.isSameYear = rw;
var tw = Me;
function rw(e, n, r) {
  const [a, i] = (0, tw.normalizeDates)(
    r == null ? void 0 : r.in,
    e,
    n
  );
  return a.getFullYear() === i.getFullYear();
}
var Rf = {};
Rf.isThisHour = uw;
var nw = Le, aw = Kd, iw = D;
function uw(e, n) {
  return (0, aw.isSameHour)(
    (0, iw.toDate)(e, n == null ? void 0 : n.in),
    (0, nw.constructNow)((n == null ? void 0 : n.in) || e)
  );
}
var Hf = {};
Hf.isThisISOWeek = sw;
var lw = W, dw = Le, cw = Jd;
function sw(e, n) {
  return (0, cw.isSameISOWeek)(
    (0, lw.constructFrom)((n == null ? void 0 : n.in) || e, e),
    (0, dw.constructNow)((n == null ? void 0 : n.in) || e)
  );
}
var zf = {};
zf.isThisMinute = hw;
var ow = Le, fw = kd;
function hw(e) {
  return (0, fw.isSameMinute)(e, (0, ow.constructNow)(e));
}
var Af = {};
Af.isThisMonth = gw;
var mw = W, vw = Le, _w = tc;
function gw(e, n) {
  return (0, _w.isSameMonth)(
    (0, mw.constructFrom)((n == null ? void 0 : n.in) || e, e),
    (0, vw.constructNow)((n == null ? void 0 : n.in) || e)
  );
}
var Wf = {};
Wf.isThisQuarter = Mw;
var bw = W, Ow = Le, Dw = rc;
function Mw(e, n) {
  return (0, Dw.isSameQuarter)(
    (0, bw.constructFrom)((n == null ? void 0 : n.in) || e, e),
    (0, Ow.constructNow)((n == null ? void 0 : n.in) || e)
  );
}
var Vf = {};
Vf.isThisSecond = ww;
var Pw = Le, Tw = nc;
function ww(e) {
  return (0, Tw.isSameSecond)(e, (0, Pw.constructNow)(e));
}
var Bf = {};
Bf.isThisWeek = jw;
var Sw = W, Cw = Le, Iw = Fl;
function jw(e, n) {
  return (0, Iw.isSameWeek)(
    (0, Sw.constructFrom)((n == null ? void 0 : n.in) || e, e),
    (0, Cw.constructNow)((n == null ? void 0 : n.in) || e),
    n
  );
}
var Lf = {};
Lf.isThisYear = Ew;
var xw = W, Fw = Le, Yw = ic;
function Ew(e, n) {
  return (0, Yw.isSameYear)(
    (0, xw.constructFrom)((n == null ? void 0 : n.in) || e, e),
    (0, Fw.constructNow)((n == null ? void 0 : n.in) || e)
  );
}
var Uf = {};
Uf.isThursday = $w;
var yw = D;
function $w(e, n) {
  return (0, yw.toDate)(e, n == null ? void 0 : n.in).getDay() === 4;
}
var qf = {};
qf.isToday = zw;
var Nw = W, Rw = Le, Hw = Kr;
function zw(e, n) {
  return (0, Hw.isSameDay)(
    (0, Nw.constructFrom)((n == null ? void 0 : n.in) || e, e),
    (0, Rw.constructNow)((n == null ? void 0 : n.in) || e)
  );
}
var Qf = {};
Qf.isTomorrow = Bw;
var Aw = Vt, Ww = Le, Vw = Kr;
function Bw(e, n) {
  return (0, Vw.isSameDay)(
    e,
    (0, Aw.addDays)((0, Ww.constructNow)((n == null ? void 0 : n.in) || e), 1),
    n
  );
}
var Zf = {};
Zf.isTuesday = Uw;
var Lw = D;
function Uw(e, n) {
  return (0, Lw.toDate)(e, n == null ? void 0 : n.in).getDay() === 2;
}
var pf = {};
pf.isWednesday = Qw;
var qw = D;
function Qw(e, n) {
  return (0, qw.toDate)(e, n == null ? void 0 : n.in).getDay() === 3;
}
var Xf = {};
Xf.isWithinInterval = Zw;
var ll = D;
function Zw(e, n, r) {
  const a = +(0, ll.toDate)(e, r == null ? void 0 : r.in), [i, u] = [
    +(0, ll.toDate)(n.start, r == null ? void 0 : r.in),
    +(0, ll.toDate)(n.end, r == null ? void 0 : r.in)
  ].sort((l, d) => l - d);
  return a >= i && a <= u;
}
var Kf = {}, In = {};
In.subDays = Xw;
var pw = Vt;
function Xw(e, n, r) {
  return (0, pw.addDays)(e, -n, r);
}
Kf.isYesterday = eS;
var Kw = W, Gw = Le, Jw = Kr, kw = In;
function eS(e, n) {
  return (0, Jw.isSameDay)(
    (0, Kw.constructFrom)((n == null ? void 0 : n.in) || e, e),
    (0, kw.subDays)((0, Gw.constructNow)((n == null ? void 0 : n.in) || e), 1)
  );
}
var Gf = {};
Gf.lastDayOfDecade = tS;
var Ys = D;
function tS(e, n) {
  const r = (0, Ys.toDate)(e, n == null ? void 0 : n.in), a = r.getFullYear(), i = 9 + Math.floor(a / 10) * 10;
  return r.setFullYear(i + 1, 0, 0), r.setHours(0, 0, 0, 0), (0, Ys.toDate)(r, n == null ? void 0 : n.in);
}
var Jf = {}, uc = {};
uc.lastDayOfWeek = aS;
var rS = ut, nS = D;
function aS(e, n) {
  var d, c, o, f;
  const r = (0, rS.getDefaultOptions)(), a = (n == null ? void 0 : n.weekStartsOn) ?? ((c = (d = n == null ? void 0 : n.locale) == null ? void 0 : d.options) == null ? void 0 : c.weekStartsOn) ?? r.weekStartsOn ?? ((f = (o = r.locale) == null ? void 0 : o.options) == null ? void 0 : f.weekStartsOn) ?? 0, i = (0, nS.toDate)(e, n == null ? void 0 : n.in), u = i.getDay(), l = (u < a ? -7 : 0) + 6 - (u - a);
  return i.setHours(0, 0, 0, 0), i.setDate(i.getDate() + l), i;
}
Jf.lastDayOfISOWeek = uS;
var iS = uc;
function uS(e, n) {
  return (0, iS.lastDayOfWeek)(e, { ...n, weekStartsOn: 1 });
}
var kf = {};
kf.lastDayOfISOWeekYear = sS;
var lS = W, dS = _r, cS = Bt;
function sS(e, n) {
  const r = (0, dS.getISOWeekYear)(e, n), a = (0, lS.constructFrom)((n == null ? void 0 : n.in) || e, 0);
  a.setFullYear(r + 1, 0, 4), a.setHours(0, 0, 0, 0);
  const i = (0, cS.startOfISOWeek)(a, n);
  return i.setDate(i.getDate() - 1), i;
}
var eh = {};
eh.lastDayOfQuarter = fS;
var oS = D;
function fS(e, n) {
  const r = (0, oS.toDate)(e, n == null ? void 0 : n.in), a = r.getMonth(), i = a - a % 3 + 3;
  return r.setMonth(i, 0), r.setHours(0, 0, 0, 0), r;
}
var th = {};
th.lastDayOfYear = mS;
var hS = D;
function mS(e, n) {
  const r = (0, hS.toDate)(e, n == null ? void 0 : n.in), a = r.getFullYear();
  return r.setFullYear(a + 1, 0, 0), r.setHours(0, 0, 0, 0), r;
}
var rh = {};
(function(e) {
  e.lightFormat = c, Object.defineProperty(e, "lightFormatters", {
    enumerable: !0,
    get: function() {
      return n.lightFormatters;
    }
  });
  var n = Da, r = nr, a = D;
  const i = /(\w)\1*|''|'(''|[^'])+('|$)|./g, u = /^'([^]*?)'?$/, l = /''/g, d = /[a-zA-Z]/;
  function c(f, h) {
    const v = (0, a.toDate)(f);
    if (!(0, r.isValid)(v))
      throw new RangeError("Invalid time value");
    const P = h.match(i);
    return P ? P.map((I) => {
      if (I === "''")
        return "'";
      const H = I[0];
      if (H === "'")
        return o(I);
      const x = n.lightFormatters[H];
      if (x)
        return x(v, I);
      if (H.match(d))
        throw new RangeError(
          "Format string contains an unescaped latin alphabet character `" + H + "`"
        );
      return I;
    }).join("") : "";
  }
  function o(f) {
    const h = f.match(u);
    return h ? h[1].replace(l, "'") : f;
  }
})(rh);
var nh = {};
nh.milliseconds = vS;
var Es = G;
function vS({ years: e, months: n, weeks: r, days: a, hours: i, minutes: u, seconds: l }) {
  let d = 0;
  e && (d += e * Es.daysInYear), n && (d += n * (Es.daysInYear / 12)), r && (d += r * 7), a && (d += a);
  let c = d * 24 * 60 * 60;
  return i && (c += i * 60 * 60), u && (c += u * 60), l && (c += l), Math.trunc(c * 1e3);
}
var ah = {};
ah.millisecondsToHours = gS;
var _S = G;
function gS(e) {
  const n = e / _S.millisecondsInHour;
  return Math.trunc(n);
}
var ih = {};
ih.millisecondsToMinutes = OS;
var bS = G;
function OS(e) {
  const n = e / bS.millisecondsInMinute;
  return Math.trunc(n);
}
var uh = {};
uh.millisecondsToSeconds = MS;
var DS = G;
function MS(e) {
  const n = e / DS.millisecondsInSecond;
  return Math.trunc(n);
}
var lh = {};
lh.minutesToHours = TS;
var PS = G;
function TS(e) {
  const n = e / PS.minutesInHour;
  return Math.trunc(n);
}
var dh = {};
dh.minutesToMilliseconds = SS;
var wS = G;
function SS(e) {
  return Math.trunc(e * wS.millisecondsInMinute);
}
var ch = {};
ch.minutesToSeconds = IS;
var CS = G;
function IS(e) {
  return Math.trunc(e * CS.secondsInMinute);
}
var sh = {};
sh.monthsToQuarters = xS;
var jS = G;
function xS(e) {
  const n = e / jS.monthsInQuarter;
  return Math.trunc(n);
}
var oh = {};
oh.monthsToYears = YS;
var FS = G;
function YS(e) {
  const n = e / FS.monthsInYear;
  return Math.trunc(n);
}
var ir = {};
ir.nextDay = $S;
var ES = Vt, yS = Sn;
function $S(e, n, r) {
  let a = n - (0, yS.getDay)(e, r);
  return a <= 0 && (a += 7), (0, ES.addDays)(e, a, r);
}
var fh = {};
fh.nextFriday = RS;
var NS = ir;
function RS(e, n) {
  return (0, NS.nextDay)(e, 5, n);
}
var hh = {};
hh.nextMonday = zS;
var HS = ir;
function zS(e, n) {
  return (0, HS.nextDay)(e, 1, n);
}
var mh = {};
mh.nextSaturday = WS;
var AS = ir;
function WS(e, n) {
  return (0, AS.nextDay)(e, 6, n);
}
var vh = {};
vh.nextSunday = BS;
var VS = ir;
function BS(e, n) {
  return (0, VS.nextDay)(e, 0, n);
}
var _h = {};
_h.nextThursday = US;
var LS = ir;
function US(e, n) {
  return (0, LS.nextDay)(e, 4, n);
}
var gh = {};
gh.nextTuesday = QS;
var qS = ir;
function QS(e, n) {
  return (0, qS.nextDay)(e, 2, n);
}
var bh = {};
bh.nextWednesday = pS;
var ZS = ir;
function pS(e, n) {
  return (0, ZS.nextDay)(e, 3, n);
}
var Oh = {};
Oh.parseISO = KS;
var Xn = G, XS = W, ys = D;
function KS(e, n) {
  const r = () => (0, XS.constructFrom)(n == null ? void 0 : n.in, NaN), a = (n == null ? void 0 : n.additionalDigits) ?? 2, i = eC(e);
  let u;
  if (i.date) {
    const o = tC(i.date, a);
    u = rC(o.restDateString, o.year);
  }
  if (!u || isNaN(+u)) return r();
  const l = +u;
  let d = 0, c;
  if (i.time && (d = nC(i.time), isNaN(d)))
    return r();
  if (i.timezone) {
    if (c = aC(i.timezone), isNaN(c)) return r();
  } else {
    const o = new Date(l + d), f = (0, ys.toDate)(0, n == null ? void 0 : n.in);
    return f.setFullYear(
      o.getUTCFullYear(),
      o.getUTCMonth(),
      o.getUTCDate()
    ), f.setHours(
      o.getUTCHours(),
      o.getUTCMinutes(),
      o.getUTCSeconds(),
      o.getUTCMilliseconds()
    ), f;
  }
  return (0, ys.toDate)(l + d + c, n == null ? void 0 : n.in);
}
const Vn = {
  dateTimeDelimiter: /[T ]/,
  timeZoneDelimiter: /[Z ]/i,
  timezone: /([Z+-].*)$/
}, GS = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, JS = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, kS = /^([+-])(\d{2})(?::?(\d{2}))?$/;
function eC(e) {
  const n = {}, r = e.split(Vn.dateTimeDelimiter);
  let a;
  if (r.length > 2)
    return n;
  if (/:/.test(r[0]) ? a = r[0] : (n.date = r[0], a = r[1], Vn.timeZoneDelimiter.test(n.date) && (n.date = e.split(Vn.timeZoneDelimiter)[0], a = e.substr(
    n.date.length,
    e.length
  ))), a) {
    const i = Vn.timezone.exec(a);
    i ? (n.time = a.replace(i[1], ""), n.timezone = i[1]) : n.time = a;
  }
  return n;
}
function tC(e, n) {
  const r = new RegExp(
    "^(?:(\\d{4}|[+-]\\d{" + (4 + n) + "})|(\\d{2}|[+-]\\d{" + (2 + n) + "})$)"
  ), a = e.match(r);
  if (!a) return { year: NaN, restDateString: "" };
  const i = a[1] ? parseInt(a[1]) : null, u = a[2] ? parseInt(a[2]) : null;
  return {
    year: u === null ? i : u * 100,
    restDateString: e.slice((a[1] || a[2]).length)
  };
}
function rC(e, n) {
  if (n === null) return /* @__PURE__ */ new Date(NaN);
  const r = e.match(GS);
  if (!r) return /* @__PURE__ */ new Date(NaN);
  const a = !!r[4], i = sn(r[1]), u = sn(r[2]) - 1, l = sn(r[3]), d = sn(r[4]), c = sn(r[5]) - 1;
  if (a)
    return cC(n, d, c) ? iC(n, d, c) : /* @__PURE__ */ new Date(NaN);
  {
    const o = /* @__PURE__ */ new Date(0);
    return !lC(n, u, l) || !dC(n, i) ? /* @__PURE__ */ new Date(NaN) : (o.setUTCFullYear(n, u, Math.max(i, l)), o);
  }
}
function sn(e) {
  return e ? parseInt(e) : 1;
}
function nC(e) {
  const n = e.match(JS);
  if (!n) return NaN;
  const r = dl(n[1]), a = dl(n[2]), i = dl(n[3]);
  return sC(r, a, i) ? r * Xn.millisecondsInHour + a * Xn.millisecondsInMinute + i * 1e3 : NaN;
}
function dl(e) {
  return e && parseFloat(e.replace(",", ".")) || 0;
}
function aC(e) {
  if (e === "Z") return 0;
  const n = e.match(kS);
  if (!n) return 0;
  const r = n[1] === "+" ? -1 : 1, a = parseInt(n[2]), i = n[3] && parseInt(n[3]) || 0;
  return oC(a, i) ? r * (a * Xn.millisecondsInHour + i * Xn.millisecondsInMinute) : NaN;
}
function iC(e, n, r) {
  const a = /* @__PURE__ */ new Date(0);
  a.setUTCFullYear(e, 0, 4);
  const i = a.getUTCDay() || 7, u = (n - 1) * 7 + r + 1 - i;
  return a.setUTCDate(a.getUTCDate() + u), a;
}
const uC = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
function Dh(e) {
  return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
}
function lC(e, n, r) {
  return n >= 0 && n <= 11 && r >= 1 && r <= (uC[n] || (Dh(e) ? 29 : 28));
}
function dC(e, n) {
  return n >= 1 && n <= (Dh(e) ? 366 : 365);
}
function cC(e, n, r) {
  return n >= 1 && n <= 53 && r >= 0 && r <= 6;
}
function sC(e, n, r) {
  return e === 24 ? n === 0 && r === 0 : r >= 0 && r < 60 && n >= 0 && n < 60 && e >= 0 && e < 25;
}
function oC(e, n) {
  return n >= 0 && n <= 59;
}
var Mh = {};
Mh.parseJSON = fC;
var $s = D;
function fC(e, n) {
  const r = e.match(
    /(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/
  );
  return r ? (0, $s.toDate)(
    Date.UTC(
      +r[1],
      +r[2] - 1,
      +r[3],
      +r[4] - (+r[9] || 0) * (r[8] == "-" ? -1 : 1),
      +r[5] - (+r[10] || 0) * (r[8] == "-" ? -1 : 1),
      +r[6],
      +((r[7] || "0") + "00").substring(0, 3)
    ),
    n == null ? void 0 : n.in
  ) : (0, $s.toDate)(NaN, n == null ? void 0 : n.in);
}
var ur = {};
ur.previousDay = vC;
var hC = Sn, mC = In;
function vC(e, n, r) {
  let a = (0, hC.getDay)(e, r) - n;
  return a <= 0 && (a += 7), (0, mC.subDays)(e, a, r);
}
var Ph = {};
Ph.previousFriday = gC;
var _C = ur;
function gC(e, n) {
  return (0, _C.previousDay)(e, 5, n);
}
var Th = {};
Th.previousMonday = OC;
var bC = ur;
function OC(e, n) {
  return (0, bC.previousDay)(e, 1, n);
}
var wh = {};
wh.previousSaturday = MC;
var DC = ur;
function MC(e, n) {
  return (0, DC.previousDay)(e, 6, n);
}
var Sh = {};
Sh.previousSunday = TC;
var PC = ur;
function TC(e, n) {
  return (0, PC.previousDay)(e, 0, n);
}
var Ch = {};
Ch.previousThursday = SC;
var wC = ur;
function SC(e, n) {
  return (0, wC.previousDay)(e, 4, n);
}
var Ih = {};
Ih.previousTuesday = IC;
var CC = ur;
function IC(e, n) {
  return (0, CC.previousDay)(e, 2, n);
}
var jh = {};
jh.previousWednesday = xC;
var jC = ur;
function xC(e, n) {
  return (0, jC.previousDay)(e, 3, n);
}
var xh = {};
xh.quartersToMonths = YC;
var FC = G;
function YC(e) {
  return Math.trunc(e * FC.monthsInQuarter);
}
var Fh = {};
Fh.quartersToYears = yC;
var EC = G;
function yC(e) {
  const n = e / EC.quartersInYear;
  return Math.trunc(n);
}
var Yh = {};
Yh.roundToNearestHours = HC;
var $C = ar, NC = W, RC = D;
function HC(e, n) {
  const r = (n == null ? void 0 : n.nearestTo) ?? 1;
  if (r < 1 || r > 12)
    return (0, NC.constructFrom)((n == null ? void 0 : n.in) || e, NaN);
  const a = (0, RC.toDate)(e, n == null ? void 0 : n.in), i = a.getMinutes() / 60, u = a.getSeconds() / 60 / 60, l = a.getMilliseconds() / 1e3 / 60 / 60, d = a.getHours() + i + u + l, c = (n == null ? void 0 : n.roundingMethod) ?? "round", f = (0, $C.getRoundingMethod)(c)(d / r) * r;
  return a.setHours(f, 0, 0, 0), a;
}
var Eh = {};
Eh.roundToNearestMinutes = VC;
var zC = ar, AC = W, WC = D;
function VC(e, n) {
  const r = (n == null ? void 0 : n.nearestTo) ?? 1;
  if (r < 1 || r > 30)
    return (0, AC.constructFrom)(e, NaN);
  const a = (0, WC.toDate)(e, n == null ? void 0 : n.in), i = a.getSeconds() / 60, u = a.getMilliseconds() / 1e3 / 60, l = a.getMinutes() + i + u, d = (n == null ? void 0 : n.roundingMethod) ?? "round", o = (0, zC.getRoundingMethod)(d)(l / r) * r;
  return a.setMinutes(o, 0, 0), a;
}
var yh = {};
yh.secondsToHours = LC;
var BC = G;
function LC(e) {
  const n = e / BC.secondsInHour;
  return Math.trunc(n);
}
var $h = {};
$h.secondsToMilliseconds = qC;
var UC = G;
function qC(e) {
  return e * UC.millisecondsInSecond;
}
var Nh = {};
Nh.secondsToMinutes = ZC;
var QC = G;
function ZC(e) {
  const n = e / QC.secondsInMinute;
  return Math.trunc(n);
}
var Rh = {}, Pa = {};
Pa.setMonth = GC;
var pC = W, XC = ld, KC = D;
function GC(e, n, r) {
  const a = (0, KC.toDate)(e, r == null ? void 0 : r.in), i = a.getFullYear(), u = a.getDate(), l = (0, pC.constructFrom)((r == null ? void 0 : r.in) || e, 0);
  l.setFullYear(i, n, 15), l.setHours(0, 0, 0, 0);
  const d = (0, XC.getDaysInMonth)(l);
  return a.setMonth(n, Math.min(u, d)), a;
}
Rh.set = tI;
var JC = W, kC = Pa, eI = D;
function tI(e, n, r) {
  let a = (0, eI.toDate)(e, r == null ? void 0 : r.in);
  return isNaN(+a) ? (0, JC.constructFrom)((r == null ? void 0 : r.in) || e, NaN) : (n.year != null && a.setFullYear(n.year), n.month != null && (a = (0, kC.setMonth)(a, n.month)), n.date != null && a.setDate(n.date), n.hours != null && a.setHours(n.hours), n.minutes != null && a.setMinutes(n.minutes), n.seconds != null && a.setSeconds(n.seconds), n.milliseconds != null && a.setMilliseconds(n.milliseconds), a);
}
var Hh = {};
Hh.setDate = nI;
var rI = D;
function nI(e, n, r) {
  const a = (0, rI.toDate)(e, r == null ? void 0 : r.in);
  return a.setDate(n), a;
}
var zh = {};
zh.setDayOfYear = iI;
var aI = D;
function iI(e, n, r) {
  const a = (0, aI.toDate)(e, r == null ? void 0 : r.in);
  return a.setMonth(0), a.setDate(n), a;
}
var Ah = {};
Ah.setDefaultOptions = uI;
var Ns = ut;
function uI(e) {
  const n = {}, r = (0, Ns.getDefaultOptions)();
  for (const a in r)
    Object.prototype.hasOwnProperty.call(r, a) && (n[a] = r[a]);
  for (const a in e)
    Object.prototype.hasOwnProperty.call(e, a) && (e[a] === void 0 ? delete n[a] : n[a] = e[a]);
  (0, Ns.setDefaultOptions)(n);
}
var Wh = {};
Wh.setHours = dI;
var lI = D;
function dI(e, n, r) {
  const a = (0, lI.toDate)(e, r == null ? void 0 : r.in);
  return a.setHours(n), a;
}
var Vh = {};
Vh.setMilliseconds = sI;
var cI = D;
function sI(e, n, r) {
  const a = (0, cI.toDate)(e, r == null ? void 0 : r.in);
  return a.setMilliseconds(n), a;
}
var Bh = {};
Bh.setMinutes = fI;
var oI = D;
function fI(e, n, r) {
  const a = (0, oI.toDate)(e, r == null ? void 0 : r.in);
  return a.setMinutes(n), a;
}
var Lh = {};
Lh.setQuarter = vI;
var hI = Pa, mI = D;
function vI(e, n, r) {
  const a = (0, mI.toDate)(e, r == null ? void 0 : r.in), i = Math.trunc(a.getMonth() / 3) + 1, u = n - i;
  return (0, hI.setMonth)(a, a.getMonth() + u * 3);
}
var Uh = {};
Uh.setSeconds = gI;
var _I = D;
function gI(e, n, r) {
  const a = (0, _I.toDate)(e, r == null ? void 0 : r.in);
  return a.setSeconds(n), a;
}
var qh = {};
qh.setWeekYear = PI;
var bI = ut, OI = W, DI = tr, Rs = Oa, MI = D;
function PI(e, n, r) {
  var c, o, f, h;
  const a = (0, bI.getDefaultOptions)(), i = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((o = (c = r == null ? void 0 : r.locale) == null ? void 0 : c.options) == null ? void 0 : o.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((h = (f = a.locale) == null ? void 0 : f.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, u = (0, DI.differenceInCalendarDays)(
    (0, MI.toDate)(e, r == null ? void 0 : r.in),
    (0, Rs.startOfWeekYear)(e, r),
    r
  ), l = (0, OI.constructFrom)((r == null ? void 0 : r.in) || e, 0);
  l.setFullYear(n, 0, i), l.setHours(0, 0, 0, 0);
  const d = (0, Rs.startOfWeekYear)(l, r);
  return d.setDate(d.getDate() + u), d;
}
var Qh = {};
Qh.setYear = SI;
var TI = W, wI = D;
function SI(e, n, r) {
  const a = (0, wI.toDate)(e, r == null ? void 0 : r.in);
  return isNaN(+a) ? (0, TI.constructFrom)((r == null ? void 0 : r.in) || e, NaN) : (a.setFullYear(n), a);
}
var Zh = {};
Zh.startOfDecade = II;
var CI = D;
function II(e, n) {
  const r = (0, CI.toDate)(e, n == null ? void 0 : n.in), a = r.getFullYear(), i = Math.floor(a / 10) * 10;
  return r.setFullYear(i, 0, 1), r.setHours(0, 0, 0, 0), r;
}
var ph = {};
ph.startOfToday = xI;
var jI = bn;
function xI(e) {
  return (0, jI.startOfDay)(Date.now(), e);
}
var Xh = {};
Xh.startOfTomorrow = EI;
var FI = W, YI = Le;
function EI(e) {
  const n = (0, YI.constructNow)(e == null ? void 0 : e.in), r = n.getFullYear(), a = n.getMonth(), i = n.getDate(), u = (0, FI.constructFrom)(e == null ? void 0 : e.in, 0);
  return u.setFullYear(r, a, i + 1), u.setHours(0, 0, 0, 0), u;
}
var Kh = {};
Kh.startOfYesterday = yI;
var Hs = Le;
function yI(e) {
  const n = (0, Hs.constructNow)(e == null ? void 0 : e.in), r = n.getFullYear(), a = n.getMonth(), i = n.getDate(), u = (0, Hs.constructNow)(e == null ? void 0 : e.in);
  return u.setFullYear(r, a, i - 1), u.setHours(0, 0, 0, 0), u;
}
var Gh = {}, lc = {};
lc.subMonths = NI;
var $I = pr;
function NI(e, n, r) {
  return (0, $I.addMonths)(e, -n, r);
}
Gh.sub = AI;
var RI = W, HI = In, zI = lc;
function AI(e, n, r) {
  const {
    years: a = 0,
    months: i = 0,
    weeks: u = 0,
    days: l = 0,
    hours: d = 0,
    minutes: c = 0,
    seconds: o = 0
  } = n, f = (0, zI.subMonths)(
    e,
    i + a * 12,
    r
  ), h = (0, HI.subDays)(
    f,
    l + u * 7,
    r
  ), v = c + d * 60, S = (o + v * 60) * 1e3;
  return (0, RI.constructFrom)((r == null ? void 0 : r.in) || e, +h - S);
}
var Jh = {};
Jh.subBusinessDays = VI;
var WI = Nl;
function VI(e, n, r) {
  return (0, WI.addBusinessDays)(e, -n, r);
}
var kh = {};
kh.subHours = LI;
var BI = zl;
function LI(e, n, r) {
  return (0, BI.addHours)(e, -n, r);
}
var e0 = {};
e0.subMilliseconds = qI;
var UI = gn;
function qI(e, n, r) {
  return (0, UI.addMilliseconds)(e, -n, r);
}
var t0 = {};
t0.subMinutes = ZI;
var QI = ra;
function ZI(e, n, r) {
  return (0, QI.addMinutes)(e, -n, r);
}
var r0 = {};
r0.subQuarters = XI;
var pI = na;
function XI(e, n, r) {
  return (0, pI.addQuarters)(e, -n, r);
}
var n0 = {};
n0.subSeconds = GI;
var KI = Vl;
function GI(e, n, r) {
  return (0, KI.addSeconds)(e, -n, r);
}
var a0 = {};
a0.subWeeks = kI;
var JI = On;
function kI(e, n, r) {
  return (0, JI.addWeeks)(e, -n, r);
}
var i0 = {};
i0.subYears = tj;
var ej = Bl;
function tj(e, n, r) {
  return (0, ej.addYears)(e, -n, r);
}
var u0 = {};
u0.weeksToDays = nj;
var rj = G;
function nj(e) {
  return Math.trunc(e * rj.daysInWeek);
}
var l0 = {};
l0.yearsToDays = ij;
var aj = G;
function ij(e) {
  return Math.trunc(e * aj.daysInYear);
}
var d0 = {};
d0.yearsToMonths = lj;
var uj = G;
function lj(e) {
  return Math.trunc(e * uj.monthsInYear);
}
var c0 = {};
c0.yearsToQuarters = cj;
var dj = G;
function cj(e) {
  return Math.trunc(e * dj.quartersInYear);
}
(function(e) {
  var n = $l;
  Object.keys(n).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === n[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return n[t];
      }
    });
  });
  var r = Nl;
  Object.keys(r).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === r[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return r[t];
      }
    });
  });
  var a = Vt;
  Object.keys(a).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === a[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return a[t];
      }
    });
  });
  var i = zl;
  Object.keys(i).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === i[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return i[t];
      }
    });
  });
  var u = Al;
  Object.keys(u).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === u[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return u[t];
      }
    });
  });
  var l = gn;
  Object.keys(l).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === l[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return l[t];
      }
    });
  });
  var d = ra;
  Object.keys(d).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === d[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return d[t];
      }
    });
  });
  var c = pr;
  Object.keys(c).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === c[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return c[t];
      }
    });
  });
  var o = na;
  Object.keys(o).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === o[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return o[t];
      }
    });
  });
  var f = Vl;
  Object.keys(f).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === f[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return f[t];
      }
    });
  });
  var h = On;
  Object.keys(h).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === h[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return h[t];
      }
    });
  });
  var v = Bl;
  Object.keys(v).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === v[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return v[t];
      }
    });
  });
  var P = bo;
  Object.keys(P).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === P[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return P[t];
      }
    });
  });
  var S = Oo;
  Object.keys(S).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === S[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return S[t];
      }
    });
  });
  var I = ql;
  Object.keys(I).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === I[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return I[t];
      }
    });
  });
  var H = Do;
  Object.keys(H).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === H[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return H[t];
      }
    });
  });
  var x = xr;
  Object.keys(x).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === x[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return x[t];
      }
    });
  });
  var Z = Mo;
  Object.keys(Z).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Z[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Z[t];
      }
    });
  });
  var Q = W;
  Object.keys(Q).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Q[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Q[t];
      }
    });
  });
  var F = Le;
  Object.keys(F).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === F[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return F[t];
      }
    });
  });
  var T = Po;
  Object.keys(T).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === T[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return T[t];
      }
    });
  });
  var X = To;
  Object.keys(X).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === X[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return X[t];
      }
    });
  });
  var V = tr;
  Object.keys(V).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === V[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return V[t];
      }
    });
  });
  var oe = Zl;
  Object.keys(oe).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === oe[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return oe[t];
      }
    });
  });
  var Ie = wo;
  Object.keys(Ie).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Ie[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Ie[t];
      }
    });
  });
  var se = aa;
  Object.keys(se).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === se[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return se[t];
      }
    });
  });
  var de = pl;
  Object.keys(de).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === de[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return de[t];
      }
    });
  });
  var L = ia;
  Object.keys(L).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === L[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return L[t];
      }
    });
  });
  var w = ua;
  Object.keys(w).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === w[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return w[t];
      }
    });
  });
  var Pe = la;
  Object.keys(Pe).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Pe[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Pe[t];
      }
    });
  });
  var fe = da;
  Object.keys(fe).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === fe[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return fe[t];
      }
    });
  });
  var Fe = So;
  Object.keys(Fe).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Fe[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Fe[t];
      }
    });
  });
  var ee = ca;
  Object.keys(ee).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === ee[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return ee[t];
      }
    });
  });
  var te = sa;
  Object.keys(te).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === te[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return te[t];
      }
    });
  });
  var he = Dn;
  Object.keys(he).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === he[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return he[t];
      }
    });
  });
  var me = Co;
  Object.keys(me).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === me[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return me[t];
      }
    });
  });
  var je = Mn;
  Object.keys(je).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === je[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return je[t];
      }
    });
  });
  var Se = Io;
  Object.keys(Se).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Se[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Se[t];
      }
    });
  });
  var Xe = Jl;
  Object.keys(Xe).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Xe[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Xe[t];
      }
    });
  });
  var ue = kl;
  Object.keys(ue).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === ue[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return ue[t];
      }
    });
  });
  var E = jo;
  Object.keys(E).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === E[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return E[t];
      }
    });
  });
  var y = xo;
  Object.keys(y).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === y[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return y[t];
      }
    });
  });
  var K = Fo;
  Object.keys(K).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === K[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return K[t];
      }
    });
  });
  var Ce = Yo;
  Object.keys(Ce).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Ce[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Ce[t];
      }
    });
  });
  var we = Eo;
  Object.keys(we).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === we[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return we[t];
      }
    });
  });
  var et = ma;
  Object.keys(et).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === et[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return et[t];
      }
    });
  });
  var ve = yo;
  Object.keys(ve).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === ve[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return ve[t];
      }
    });
  });
  var Ee = $o;
  Object.keys(Ee).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Ee[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Ee[t];
      }
    });
  });
  var tt = No;
  Object.keys(tt).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === tt[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return tt[t];
      }
    });
  });
  var ft = oa;
  Object.keys(ft).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === ft[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return ft[t];
      }
    });
  });
  var Ot = Ro;
  Object.keys(Ot).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Ot[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Ot[t];
      }
    });
  });
  var Dt = Ho;
  Object.keys(Dt).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Dt[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Dt[t];
      }
    });
  });
  var Mt = zo;
  Object.keys(Mt).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Mt[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Mt[t];
      }
    });
  });
  var Pt = Ao;
  Object.keys(Pt).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Pt[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Pt[t];
      }
    });
  });
  var Tt = Wo;
  Object.keys(Tt).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Tt[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Tt[t];
      }
    });
  });
  var wt = fa;
  Object.keys(wt).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === wt[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return wt[t];
      }
    });
  });
  var ht = Vo;
  Object.keys(ht).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === ht[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return ht[t];
      }
    });
  });
  var ye = Bo;
  Object.keys(ye).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === ye[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return ye[t];
      }
    });
  });
  var lt = Lo;
  Object.keys(lt).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === lt[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return lt[t];
      }
    });
  });
  var mt = Uo;
  Object.keys(mt).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === mt[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return mt[t];
      }
    });
  });
  var Ze = td;
  Object.keys(Ze).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Ze[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Ze[t];
      }
    });
  });
  var vt = ed;
  Object.keys(vt).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === vt[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return vt[t];
      }
    });
  });
  var g = qo;
  Object.keys(g).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === g[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return g[t];
      }
    });
  });
  var A = _a;
  Object.keys(A).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === A[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return A[t];
      }
    });
  });
  var re = ad;
  Object.keys(re).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === re[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return re[t];
      }
    });
  });
  var Ut = id;
  Object.keys(Ut).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Ut[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Ut[t];
      }
    });
  });
  var Ft = Zo;
  Object.keys(Ft).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Ft[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Ft[t];
      }
    });
  });
  var $e = po;
  Object.keys($e).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === $e[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return $e[t];
      }
    });
  });
  var ie = Xo;
  Object.keys(ie).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === ie[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return ie[t];
      }
    });
  });
  var Yt = Ko;
  Object.keys(Yt).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Yt[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Yt[t];
      }
    });
  });
  var dt = Go;
  Object.keys(dt).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === dt[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return dt[t];
      }
    });
  });
  var qt = Jo;
  Object.keys(qt).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === qt[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return qt[t];
      }
    });
  });
  var Et = ko;
  Object.keys(Et).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Et[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Et[t];
      }
    });
  });
  var rt = ef;
  Object.keys(rt).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === rt[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return rt[t];
      }
    });
  });
  var yt = tf;
  Object.keys(yt).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === yt[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return yt[t];
      }
    });
  });
  var nt = rf;
  Object.keys(nt).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === nt[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return nt[t];
      }
    });
  });
  var _ = ud;
  Object.keys(_).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === _[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return _[t];
      }
    });
  });
  var j = Sn;
  Object.keys(j).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === j[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return j[t];
      }
    });
  });
  var U = nd;
  Object.keys(U).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === U[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return U[t];
      }
    });
  });
  var k = ld;
  Object.keys(k).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === k[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return k[t];
      }
    });
  });
  var Ne = nf;
  Object.keys(Ne).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Ne[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Ne[t];
      }
    });
  });
  var Ue = af;
  Object.keys(Ue).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Ue[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Ue[t];
      }
    });
  });
  var qe = cd;
  Object.keys(qe).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === qe[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return qe[t];
      }
    });
  });
  var De = uf;
  Object.keys(De).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === De[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return De[t];
      }
    });
  });
  var ct = sd;
  Object.keys(ct).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === ct[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return ct[t];
      }
    });
  });
  var st = ga;
  Object.keys(st).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === st[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return st[t];
      }
    });
  });
  var Ke = _r;
  Object.keys(Ke).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Ke[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Ke[t];
      }
    });
  });
  var We = lf;
  Object.keys(We).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === We[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return We[t];
      }
    });
  });
  var $t = df;
  Object.keys($t).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === $t[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return $t[t];
      }
    });
  });
  var St = cf;
  Object.keys(St).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === St[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return St[t];
      }
    });
  });
  var Ct = sf;
  Object.keys(Ct).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Ct[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Ct[t];
      }
    });
  });
  var Nt = of;
  Object.keys(Nt).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Nt[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Nt[t];
      }
    });
  });
  var Rt = Xl;
  Object.keys(Rt).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Rt[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Rt[t];
      }
    });
  });
  var Qe = ff;
  Object.keys(Qe).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Qe[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Qe[t];
      }
    });
  });
  var Qt = hf;
  Object.keys(Qt).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Qt[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Qt[t];
      }
    });
  });
  var Zt = mf;
  Object.keys(Zt).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Zt[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Zt[t];
      }
    });
  });
  var pt = ba;
  Object.keys(pt).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === pt[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return pt[t];
      }
    });
  });
  var pe = vf;
  Object.keys(pe).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === pe[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return pe[t];
      }
    });
  });
  var Xt = Tn;
  Object.keys(Xt).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Xt[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Xt[t];
      }
    });
  });
  var Ht = _f;
  Object.keys(Ht).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Ht[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Ht[t];
      }
    });
  });
  var zt = gf;
  Object.keys(zt).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === zt[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return zt[t];
      }
    });
  });
  var at = bf;
  Object.keys(at).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === at[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return at[t];
      }
    });
  });
  var At = Of;
  Object.keys(At).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === At[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return At[t];
      }
    });
  });
  var it = Df;
  Object.keys(it).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === it[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return it[t];
      }
    });
  });
  var s = Mf;
  Object.keys(s).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === s[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return s[t];
      }
    });
  });
  var m = Pf;
  Object.keys(m).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === m[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return m[t];
      }
    });
  });
  var b = Tf;
  Object.keys(b).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === b[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return b[t];
      }
    });
  });
  var R = wf;
  Object.keys(R).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === R[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return R[t];
      }
    });
  });
  var ce = Sf;
  Object.keys(ce).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === ce[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return ce[t];
      }
    });
  });
  var q = Cf;
  Object.keys(q).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === q[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return q[t];
      }
    });
  });
  var _e = Ql;
  Object.keys(_e).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === _e[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return _e[t];
      }
    });
  });
  var Wt = If;
  Object.keys(Wt).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Wt[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Wt[t];
      }
    });
  });
  var It = jf;
  Object.keys(It).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === It[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return It[t];
      }
    });
  });
  var br = xf;
  Object.keys(br).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === br[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return br[t];
      }
    });
  });
  var Or = Ff;
  Object.keys(Or).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Or[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Or[t];
      }
    });
  });
  var Dr = Yf;
  Object.keys(Dr).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Dr[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Dr[t];
      }
    });
  });
  var Mr = Gl;
  Object.keys(Mr).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Mr[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Mr[t];
      }
    });
  });
  var Pr = dd;
  Object.keys(Pr).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Pr[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Pr[t];
      }
    });
  });
  var kr = Ef;
  Object.keys(kr).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === kr[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return kr[t];
      }
    });
  });
  var en = yf;
  Object.keys(en).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === en[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return en[t];
      }
    });
  });
  var ya = $f;
  Object.keys(ya).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === ya[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return ya[t];
      }
    });
  });
  var $a = Kr;
  Object.keys($a).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === $a[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return $a[t];
      }
    });
  });
  var Na = Kd;
  Object.keys(Na).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Na[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Na[t];
      }
    });
  });
  var Ra = Jd;
  Object.keys(Ra).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Ra[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Ra[t];
      }
    });
  });
  var Ha = Nf;
  Object.keys(Ha).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Ha[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Ha[t];
      }
    });
  });
  var za = kd;
  Object.keys(za).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === za[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return za[t];
      }
    });
  });
  var Aa = tc;
  Object.keys(Aa).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Aa[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Aa[t];
      }
    });
  });
  var Wa = rc;
  Object.keys(Wa).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Wa[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Wa[t];
      }
    });
  });
  var Va = nc;
  Object.keys(Va).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Va[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Va[t];
      }
    });
  });
  var Ba = Fl;
  Object.keys(Ba).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Ba[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Ba[t];
      }
    });
  });
  var La = ic;
  Object.keys(La).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === La[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return La[t];
      }
    });
  });
  var Ua = Rl;
  Object.keys(Ua).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Ua[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Ua[t];
      }
    });
  });
  var qa = Hl;
  Object.keys(qa).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === qa[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return qa[t];
      }
    });
  });
  var Qa = Rf;
  Object.keys(Qa).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Qa[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Qa[t];
      }
    });
  });
  var Za = Hf;
  Object.keys(Za).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Za[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Za[t];
      }
    });
  });
  var pa = zf;
  Object.keys(pa).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === pa[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return pa[t];
      }
    });
  });
  var Xa = Af;
  Object.keys(Xa).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Xa[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Xa[t];
      }
    });
  });
  var Ka = Wf;
  Object.keys(Ka).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Ka[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Ka[t];
      }
    });
  });
  var Ga = Vf;
  Object.keys(Ga).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Ga[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Ga[t];
      }
    });
  });
  var Ja = Bf;
  Object.keys(Ja).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Ja[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Ja[t];
      }
    });
  });
  var ka = Lf;
  Object.keys(ka).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === ka[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return ka[t];
      }
    });
  });
  var ei = Uf;
  Object.keys(ei).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === ei[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return ei[t];
      }
    });
  });
  var ti = qf;
  Object.keys(ti).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === ti[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return ti[t];
      }
    });
  });
  var ri = Qf;
  Object.keys(ri).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === ri[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return ri[t];
      }
    });
  });
  var ni = Zf;
  Object.keys(ni).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === ni[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return ni[t];
      }
    });
  });
  var ai = nr;
  Object.keys(ai).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === ai[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return ai[t];
      }
    });
  });
  var ii = pf;
  Object.keys(ii).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === ii[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return ii[t];
      }
    });
  });
  var ui = _n;
  Object.keys(ui).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === ui[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return ui[t];
      }
    });
  });
  var li = Xf;
  Object.keys(li).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === li[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return li[t];
      }
    });
  });
  var di = Kf;
  Object.keys(di).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === di[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return di[t];
      }
    });
  });
  var ci = Gf;
  Object.keys(ci).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === ci[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return ci[t];
      }
    });
  });
  var si = Jf;
  Object.keys(si).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === si[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return si[t];
      }
    });
  });
  var oi = kf;
  Object.keys(oi).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === oi[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return oi[t];
      }
    });
  });
  var fi = od;
  Object.keys(fi).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === fi[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return fi[t];
      }
    });
  });
  var hi = eh;
  Object.keys(hi).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === hi[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return hi[t];
      }
    });
  });
  var mi = uc;
  Object.keys(mi).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === mi[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return mi[t];
      }
    });
  });
  var vi = th;
  Object.keys(vi).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === vi[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return vi[t];
      }
    });
  });
  var _i = rh;
  Object.keys(_i).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === _i[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return _i[t];
      }
    });
  });
  var gi = Ll;
  Object.keys(gi).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === gi[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return gi[t];
      }
    });
  });
  var bi = nh;
  Object.keys(bi).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === bi[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return bi[t];
      }
    });
  });
  var Oi = ah;
  Object.keys(Oi).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Oi[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Oi[t];
      }
    });
  });
  var Di = ih;
  Object.keys(Di).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Di[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Di[t];
      }
    });
  });
  var Mi = uh;
  Object.keys(Mi).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Mi[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Mi[t];
      }
    });
  });
  var Pi = Ul;
  Object.keys(Pi).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Pi[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Pi[t];
      }
    });
  });
  var Ti = lh;
  Object.keys(Ti).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Ti[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Ti[t];
      }
    });
  });
  var wi = dh;
  Object.keys(wi).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === wi[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return wi[t];
      }
    });
  });
  var Si = ch;
  Object.keys(Si).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Si[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Si[t];
      }
    });
  });
  var Ci = sh;
  Object.keys(Ci).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Ci[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Ci[t];
      }
    });
  });
  var Ii = oh;
  Object.keys(Ii).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Ii[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Ii[t];
      }
    });
  });
  var ji = ir;
  Object.keys(ji).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === ji[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return ji[t];
      }
    });
  });
  var xi = fh;
  Object.keys(xi).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === xi[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return xi[t];
      }
    });
  });
  var Fi = hh;
  Object.keys(Fi).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Fi[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Fi[t];
      }
    });
  });
  var Yi = mh;
  Object.keys(Yi).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Yi[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Yi[t];
      }
    });
  });
  var Ei = vh;
  Object.keys(Ei).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Ei[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Ei[t];
      }
    });
  });
  var yi = _h;
  Object.keys(yi).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === yi[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return yi[t];
      }
    });
  });
  var $i = gh;
  Object.keys($i).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === $i[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return $i[t];
      }
    });
  });
  var Ni = bh;
  Object.keys(Ni).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Ni[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Ni[t];
      }
    });
  });
  var Ri = fd;
  Object.keys(Ri).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Ri[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Ri[t];
      }
    });
  });
  var Hi = Oh;
  Object.keys(Hi).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Hi[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Hi[t];
      }
    });
  });
  var zi = Mh;
  Object.keys(zi).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === zi[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return zi[t];
      }
    });
  });
  var Ai = ur;
  Object.keys(Ai).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Ai[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Ai[t];
      }
    });
  });
  var Wi = Ph;
  Object.keys(Wi).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Wi[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Wi[t];
      }
    });
  });
  var Vi = Th;
  Object.keys(Vi).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Vi[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Vi[t];
      }
    });
  });
  var Bi = wh;
  Object.keys(Bi).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Bi[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Bi[t];
      }
    });
  });
  var Li = Sh;
  Object.keys(Li).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Li[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Li[t];
      }
    });
  });
  var Ui = Ch;
  Object.keys(Ui).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Ui[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Ui[t];
      }
    });
  });
  var qi = Ih;
  Object.keys(qi).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === qi[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return qi[t];
      }
    });
  });
  var Qi = jh;
  Object.keys(Qi).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Qi[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Qi[t];
      }
    });
  });
  var Zi = xh;
  Object.keys(Zi).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Zi[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Zi[t];
      }
    });
  });
  var pi = Fh;
  Object.keys(pi).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === pi[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return pi[t];
      }
    });
  });
  var Xi = Yh;
  Object.keys(Xi).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Xi[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Xi[t];
      }
    });
  });
  var Ki = Eh;
  Object.keys(Ki).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Ki[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Ki[t];
      }
    });
  });
  var Gi = yh;
  Object.keys(Gi).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Gi[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Gi[t];
      }
    });
  });
  var Ji = $h;
  Object.keys(Ji).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Ji[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Ji[t];
      }
    });
  });
  var ki = Nh;
  Object.keys(ki).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === ki[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return ki[t];
      }
    });
  });
  var eu = Rh;
  Object.keys(eu).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === eu[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return eu[t];
      }
    });
  });
  var tu = Hh;
  Object.keys(tu).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === tu[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return tu[t];
      }
    });
  });
  var ru = Cn;
  Object.keys(ru).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === ru[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return ru[t];
      }
    });
  });
  var nu = zh;
  Object.keys(nu).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === nu[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return nu[t];
      }
    });
  });
  var au = Ah;
  Object.keys(au).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === au[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return au[t];
      }
    });
  });
  var iu = Wh;
  Object.keys(iu).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === iu[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return iu[t];
      }
    });
  });
  var uu = Nd;
  Object.keys(uu).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === uu[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return uu[t];
      }
    });
  });
  var lu = jd;
  Object.keys(lu).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === lu[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return lu[t];
      }
    });
  });
  var du = Wl;
  Object.keys(du).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === du[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return du[t];
      }
    });
  });
  var cu = Vh;
  Object.keys(cu).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === cu[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return cu[t];
      }
    });
  });
  var su = Bh;
  Object.keys(su).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === su[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return su[t];
      }
    });
  });
  var ou = Pa;
  Object.keys(ou).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === ou[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return ou[t];
      }
    });
  });
  var fu = Lh;
  Object.keys(fu).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === fu[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return fu[t];
      }
    });
  });
  var hu = Uh;
  Object.keys(hu).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === hu[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return hu[t];
      }
    });
  });
  var mu = Cd;
  Object.keys(mu).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === mu[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return mu[t];
      }
    });
  });
  var vu = qh;
  Object.keys(vu).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === vu[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return vu[t];
      }
    });
  });
  var _u = Qh;
  Object.keys(_u).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === _u[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return _u[t];
      }
    });
  });
  var gu = bn;
  Object.keys(gu).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === gu[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return gu[t];
      }
    });
  });
  var bu = Zh;
  Object.keys(bu).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === bu[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return bu[t];
      }
    });
  });
  var Ou = Gd;
  Object.keys(Ou).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Ou[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Ou[t];
      }
    });
  });
  var Du = Bt;
  Object.keys(Du).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Du[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Du[t];
      }
    });
  });
  var Mu = Xr;
  Object.keys(Mu).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Mu[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Mu[t];
      }
    });
  });
  var Pu = ec;
  Object.keys(Pu).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Pu[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Pu[t];
      }
    });
  });
  var Tu = Pn;
  Object.keys(Tu).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Tu[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Tu[t];
      }
    });
  });
  var wu = ha;
  Object.keys(wu).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === wu[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return wu[t];
      }
    });
  });
  var Su = ac;
  Object.keys(Su).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Su[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Su[t];
      }
    });
  });
  var Cu = ph;
  Object.keys(Cu).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Cu[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Cu[t];
      }
    });
  });
  var Iu = Xh;
  Object.keys(Iu).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Iu[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Iu[t];
      }
    });
  });
  var ju = Jt;
  Object.keys(ju).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === ju[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return ju[t];
      }
    });
  });
  var xu = Oa;
  Object.keys(xu).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === xu[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return xu[t];
      }
    });
  });
  var Fu = va;
  Object.keys(Fu).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Fu[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Fu[t];
      }
    });
  });
  var Yu = Kh;
  Object.keys(Yu).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Yu[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Yu[t];
      }
    });
  });
  var Eu = Gh;
  Object.keys(Eu).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Eu[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Eu[t];
      }
    });
  });
  var yu = Jh;
  Object.keys(yu).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === yu[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return yu[t];
      }
    });
  });
  var $u = In;
  Object.keys($u).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === $u[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return $u[t];
      }
    });
  });
  var Nu = kh;
  Object.keys(Nu).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Nu[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Nu[t];
      }
    });
  });
  var Ru = Kl;
  Object.keys(Ru).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Ru[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Ru[t];
      }
    });
  });
  var Hu = e0;
  Object.keys(Hu).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Hu[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Hu[t];
      }
    });
  });
  var zu = t0;
  Object.keys(zu).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === zu[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return zu[t];
      }
    });
  });
  var Au = lc;
  Object.keys(Au).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Au[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Au[t];
      }
    });
  });
  var Wu = r0;
  Object.keys(Wu).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Wu[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Wu[t];
      }
    });
  });
  var Vu = n0;
  Object.keys(Vu).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Vu[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Vu[t];
      }
    });
  });
  var Bu = a0;
  Object.keys(Bu).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Bu[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Bu[t];
      }
    });
  });
  var Lu = i0;
  Object.keys(Lu).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Lu[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Lu[t];
      }
    });
  });
  var Uu = D;
  Object.keys(Uu).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Uu[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Uu[t];
      }
    });
  });
  var qu = hd;
  Object.keys(qu).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === qu[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return qu[t];
      }
    });
  });
  var Qu = u0;
  Object.keys(Qu).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Qu[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Qu[t];
      }
    });
  });
  var Zu = l0;
  Object.keys(Zu).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Zu[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Zu[t];
      }
    });
  });
  var pu = d0;
  Object.keys(pu).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === pu[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return pu[t];
      }
    });
  });
  var Xu = c0;
  Object.keys(Xu).forEach(function(t) {
    t === "default" || t === "__esModule" || t in e && e[t] === Xu[t] || Object.defineProperty(e, t, {
      enumerable: !0,
      get: function() {
        return Xu[t];
      }
    });
  });
})(er);
var s0 = {}, dc = {}, Ta = {}, cc = {}, jn = {}, sc = {};
Object.defineProperty(sc, "__esModule", { value: !0 });
sc.default = {
  itemFontSize: "12px",
  itemHeight: "36px",
  itemWidth: "52px",
  panelActionPadding: "8px 0"
};
var sj = Oe && Oe.__importDefault || function(e) {
  return e && e.__esModule ? e : { default: e };
};
Object.defineProperty(jn, "__esModule", { value: !0 });
jn.self = o0;
const oj = Jn, fj = Ir, hj = Gn, mj = ta, vj = kn, _j = sj(sc);
function o0(e) {
  const { popoverColor: n, textColor2: r, primaryColor: a, hoverColor: i, dividerColor: u, opacityDisabled: l, boxShadow2: d, borderRadius: c, iconColor: o, iconColorDisabled: f } = e;
  return Object.assign(Object.assign({}, _j.default), {
    panelColor: n,
    panelBoxShadow: d,
    panelDividerColor: u,
    itemTextColor: r,
    itemTextColorActive: a,
    itemColorHover: i,
    itemOpacityDisabled: l,
    itemBorderRadius: c,
    borderRadius: c,
    iconColor: o,
    iconColorDisabled: f
  });
}
const gj = (0, fj.createTheme)({
  name: "TimePicker",
  common: hj.commonLight,
  peers: {
    Scrollbar: oj.scrollbarLight,
    Button: mj.buttonLight,
    Input: vj.inputLight
  },
  self: o0
});
jn.default = gj;
Object.defineProperty(cc, "__esModule", { value: !0 });
const bj = Jn, Oj = Gn, Dj = ta, Mj = kn, Pj = jn, Tj = {
  name: "TimePicker",
  common: Oj.commonDark,
  peers: {
    Scrollbar: bj.scrollbarDark,
    Button: Dj.buttonDark,
    Input: Mj.inputDark
  },
  self: Pj.self
};
cc.default = Tj;
(function(e) {
  var n = Oe && Oe.__importDefault || function(i) {
    return i && i.__esModule ? i : { default: i };
  };
  Object.defineProperty(e, "__esModule", { value: !0 }), e.timePickerLight = e.timePickerDark = void 0;
  var r = cc;
  Object.defineProperty(e, "timePickerDark", { enumerable: !0, get: function() {
    return n(r).default;
  } });
  var a = jn;
  Object.defineProperty(e, "timePickerLight", { enumerable: !0, get: function() {
    return n(a).default;
  } });
})(Ta);
var xn = {}, oc = {};
Object.defineProperty(oc, "__esModule", { value: !0 });
oc.default = {
  itemSize: "24px",
  itemCellWidth: "38px",
  itemCellHeight: "32px",
  scrollItemWidth: "80px",
  scrollItemHeight: "40px",
  panelExtraFooterPadding: "8px 12px",
  panelActionPadding: "8px 12px",
  calendarTitlePadding: "0",
  calendarTitleHeight: "28px",
  arrowSize: "14px",
  panelHeaderPadding: "8px 12px",
  calendarDaysHeight: "32px",
  calendarTitleGridTempateColumns: "28px 28px 1fr 28px 28px",
  // type
  calendarLeftPaddingDate: "6px 12px 4px 12px",
  calendarLeftPaddingDatetime: "4px 12px",
  calendarLeftPaddingDaterange: "6px 12px 4px 12px",
  calendarLeftPaddingDatetimerange: "4px 12px",
  calendarLeftPaddingMonth: "0",
  // TODO: make it actually effective
  calendarLeftPaddingYear: "0",
  calendarLeftPaddingQuarter: "0",
  calendarLeftPaddingMonthrange: "0",
  calendarLeftPaddingQuarterrange: "0",
  calendarLeftPaddingYearrange: "0",
  calendarLeftPaddingWeek: "6px 12px 4px 12px",
  calendarRightPaddingDate: "6px 12px 4px 12px",
  calendarRightPaddingDatetime: "4px 12px",
  calendarRightPaddingDaterange: "6px 12px 4px 12px",
  calendarRightPaddingDatetimerange: "4px 12px",
  calendarRightPaddingMonth: "0",
  calendarRightPaddingYear: "0",
  calendarRightPaddingQuarter: "0",
  calendarRightPaddingMonthrange: "0",
  calendarRightPaddingQuarterrange: "0",
  calendarRightPaddingYearrange: "0",
  calendarRightPaddingWeek: "0"
};
var wj = Oe && Oe.__importDefault || function(e) {
  return e && e.__esModule ? e : { default: e };
};
Object.defineProperty(xn, "__esModule", { value: !0 });
xn.self = f0;
const Sj = mn, Cj = Jn, Ij = Ir, jj = Gn, xj = ta, Fj = kn, Yj = Ta, Ej = wj(oc);
function f0(e) {
  const { hoverColor: n, fontSize: r, textColor2: a, textColorDisabled: i, popoverColor: u, primaryColor: l, borderRadiusSmall: d, iconColor: c, iconColorDisabled: o, textColor1: f, dividerColor: h, boxShadow2: v, borderRadius: P, fontWeightStrong: S } = e;
  return Object.assign(Object.assign({}, Ej.default), {
    itemFontSize: r,
    calendarDaysFontSize: r,
    calendarTitleFontSize: r,
    itemTextColor: a,
    itemTextColorDisabled: i,
    itemTextColorActive: u,
    itemTextColorCurrent: l,
    itemColorIncluded: (0, Sj.changeColor)(l, { alpha: 0.1 }),
    itemColorHover: n,
    itemColorDisabled: n,
    itemColorActive: l,
    itemBorderRadius: d,
    panelColor: u,
    panelTextColor: a,
    arrowColor: c,
    calendarTitleTextColor: f,
    calendarTitleColorHover: n,
    calendarDaysTextColor: a,
    panelHeaderDividerColor: h,
    calendarDaysDividerColor: h,
    calendarDividerColor: h,
    panelActionDividerColor: h,
    panelBoxShadow: v,
    panelBorderRadius: P,
    calendarTitleFontWeight: S,
    scrollItemBorderRadius: P,
    iconColor: c,
    iconColorDisabled: o
  });
}
const yj = (0, Ij.createTheme)({
  name: "DatePicker",
  common: jj.commonLight,
  peers: {
    Input: Fj.inputLight,
    Button: xj.buttonLight,
    TimePicker: Yj.timePickerLight,
    Scrollbar: Cj.scrollbarLight
  },
  self: f0
});
xn.default = yj;
Object.defineProperty(dc, "__esModule", { value: !0 });
const cl = mn, $j = Jn, Nj = Gn, Rj = ta, Hj = kn, zj = Ta, Aj = xn, Wj = {
  name: "DatePicker",
  common: Nj.commonDark,
  peers: {
    Input: Hj.inputDark,
    Button: Rj.buttonDark,
    TimePicker: zj.timePickerDark,
    Scrollbar: $j.scrollbarDark
  },
  self(e) {
    const { popoverColor: n, hoverColor: r, primaryColor: a } = e, i = (0, Aj.self)(e);
    return i.itemColorDisabled = (0, cl.composite)(n, r), i.itemColorIncluded = (0, cl.changeColor)(a, { alpha: 0.15 }), i.itemColorHover = (0, cl.composite)(n, r), i;
  }
};
dc.default = Wj;
(function(e) {
  var n = Oe && Oe.__importDefault || function(i) {
    return i && i.__esModule ? i : { default: i };
  };
  Object.defineProperty(e, "__esModule", { value: !0 }), e.datePickerLight = e.datePickerDark = void 0;
  var r = dc;
  Object.defineProperty(e, "datePickerDark", { enumerable: !0, get: function() {
    return n(r).default;
  } });
  var a = xn;
  Object.defineProperty(e, "datePickerLight", { enumerable: !0, get: function() {
    return n(a).default;
  } });
})(s0);
var Er = {};
Object.defineProperty(Er, "__esModule", { value: !0 });
Er.datePickerInjectionKey = void 0;
const Vj = bt;
Er.datePickerInjectionKey = (0, Vj.createInjectionKey)("n-date-picker");
var fc = {}, Gr = {}, wa = {}, yr = {};
Object.defineProperty(yr, "__esModule", { value: !0 });
yr.MONTH_ITEM_HEIGHT = void 0;
yr.MONTH_ITEM_HEIGHT = 40;
var ze = {};
Object.defineProperty(ze, "__esModule", { value: !0 });
ze.transformNaiveFirstDayOfWeekToDateFns = h0;
ze.dateArray = kj;
ze.extractRangeDefaultTime = ix;
ze.extractSingleDefaultTime = ax;
ze.getDefaultTime = hc;
ze.getDerivedTimeFromKeyboardEvent = Bj;
ze.getMonthString = Qj;
ze.getQuarterString = pj;
ze.getYearString = Zj;
ze.monthArray = ex;
ze.pluckValueFromRange = ux;
ze.quarterArray = tx;
ze.strictParse = nx;
ze.yearArray = rx;
const Y = er;
function Bj(e, n) {
  const r = (0, Y.getTime)(Date.now());
  if (typeof e != "number")
    return r;
  switch (n.key) {
    case "ArrowUp":
      return (0, Y.getTime)((0, Y.addDays)(e, -7));
    case "ArrowDown":
      return (0, Y.getTime)((0, Y.addDays)(e, 7));
    case "ArrowRight":
      return (0, Y.getTime)((0, Y.addDays)(e, 1));
    case "ArrowLeft":
      return (0, Y.getTime)((0, Y.addDays)(e, -1));
  }
  return r;
}
const Lj = {
  date: Y.isSameDay,
  month: Y.isSameMonth,
  year: Y.isSameYear,
  quarter: Y.isSameQuarter
};
function Uj(e) {
  return (n, r) => {
    const a = h0(e);
    return (0, Y.isSameWeek)(n, r, { weekStartsOn: a });
  };
}
function h0(e) {
  return (e + 1) % 7;
}
function Ge(e, n, r, a = 0) {
  return (r === "week" ? Uj(a) : Lj[r])(e, n);
}
function sl(e, n, r, a, i, u) {
  return i === "date" ? qj(e, n, r, a) : Xj(e, n, r, a, u);
}
function qj(e, n, r, a) {
  let i = !1, u = !1, l = !1;
  Array.isArray(r) && (r[0] < e && e < r[1] && (i = !0), Ge(r[0], e, "date") && (u = !0), Ge(r[1], e, "date") && (l = !0));
  const d = r !== null && (Array.isArray(r) ? Ge(r[0], e, "date") || Ge(r[1], e, "date") : Ge(r, e, "date"));
  return {
    type: "date",
    dateObject: {
      date: (0, Y.getDate)(e),
      month: (0, Y.getMonth)(e),
      year: (0, Y.getYear)(e)
    },
    inCurrentMonth: (0, Y.isSameMonth)(e, n),
    isCurrentDate: Ge(a, e, "date"),
    inSpan: i,
    inSelectedWeek: !1,
    startOfSpan: u,
    endOfSpan: l,
    selected: d,
    ts: (0, Y.getTime)(e)
  };
}
function Qj(e, n, r) {
  const a = new Date(2e3, e, 1).getTime();
  return (0, Y.format)(a, n, { locale: r });
}
function Zj(e, n, r) {
  const a = new Date(e, 1, 1).getTime();
  return (0, Y.format)(a, n, { locale: r });
}
function pj(e, n, r) {
  const a = new Date(2e3, e * 3 - 2, 1).getTime();
  return (0, Y.format)(a, n, { locale: r });
}
function Xj(e, n, r, a, i) {
  let u = !1, l = !1, d = !1;
  Array.isArray(r) && (r[0] < e && e < r[1] && (u = !0), Ge(r[0], e, "week", i) && (l = !0), Ge(r[1], e, "week", i) && (d = !0));
  const c = r !== null && (Array.isArray(r) ? Ge(r[0], e, "week", i) || Ge(r[1], e, "week", i) : Ge(r, e, "week", i));
  return {
    type: "date",
    dateObject: {
      date: (0, Y.getDate)(e),
      month: (0, Y.getMonth)(e),
      year: (0, Y.getYear)(e)
    },
    inCurrentMonth: (0, Y.isSameMonth)(e, n),
    isCurrentDate: Ge(a, e, "date"),
    inSpan: u,
    startOfSpan: l,
    endOfSpan: d,
    selected: !1,
    inSelectedWeek: c,
    ts: (0, Y.getTime)(e)
  };
}
function Kj(e, n, r, { monthFormat: a }) {
  return {
    type: "month",
    monthFormat: a,
    dateObject: {
      month: (0, Y.getMonth)(e),
      year: (0, Y.getYear)(e)
    },
    isCurrent: (0, Y.isSameMonth)(r, e),
    selected: n !== null && Ge(n, e, "month"),
    ts: (0, Y.getTime)(e)
  };
}
function Gj(e, n, r, { yearFormat: a }) {
  return {
    type: "year",
    yearFormat: a,
    dateObject: {
      year: (0, Y.getYear)(e)
    },
    isCurrent: (0, Y.isSameYear)(r, e),
    selected: n !== null && Ge(n, e, "year"),
    ts: (0, Y.getTime)(e)
  };
}
function Jj(e, n, r, { quarterFormat: a }) {
  return {
    type: "quarter",
    quarterFormat: a,
    dateObject: {
      quarter: (0, Y.getQuarter)(e),
      year: (0, Y.getYear)(e)
    },
    isCurrent: (0, Y.isSameQuarter)(r, e),
    selected: n !== null && Ge(n, e, "quarter"),
    ts: (0, Y.getTime)(e)
  };
}
function kj(e, n, r, a, i = !1, u = !1) {
  const l = u ? "week" : "date", d = (0, Y.getMonth)(e);
  let c = (0, Y.getTime)((0, Y.startOfMonth)(e)), o = (0, Y.getTime)((0, Y.addDays)(c, -1));
  const f = [];
  let h = !i;
  for (; (0, Y.getDay)(o) !== a || h; )
    f.unshift(sl(o, e, n, r, l, a)), o = (0, Y.getTime)((0, Y.addDays)(o, -1)), h = !1;
  for (; (0, Y.getMonth)(c) === d; )
    f.push(sl(c, e, n, r, l, a)), c = (0, Y.getTime)((0, Y.addDays)(c, 1));
  const v = i ? f.length <= 28 ? 28 : f.length <= 35 ? 35 : 42 : 42;
  for (; f.length < v; )
    f.push(sl(c, e, n, r, l, a)), c = (0, Y.getTime)((0, Y.addDays)(c, 1));
  return f;
}
function ex(e, n, r, a) {
  const i = [], u = (0, Y.startOfYear)(e);
  for (let l = 0; l < 12; l++)
    i.push(Kj((0, Y.getTime)((0, Y.addMonths)(u, l)), n, r, a));
  return i;
}
function tx(e, n, r, a) {
  const i = [], u = (0, Y.startOfYear)(e);
  for (let l = 0; l < 4; l++)
    i.push(Jj((0, Y.getTime)((0, Y.addQuarters)(u, l)), n, r, a));
  return i;
}
function rx(e, n, r, a) {
  const i = a.value, u = [], l = (0, Y.startOfYear)((0, Y.setYear)(/* @__PURE__ */ new Date(), i[0]));
  for (let d = 0; d < i[1] - i[0]; d++)
    u.push(Gj((0, Y.getTime)((0, Y.addYears)(l, d)), e, n, r));
  return u;
}
function nx(e, n, r, a) {
  const i = (0, Y.parse)(e, n, r, a);
  return (0, Y.isValid)(i) ? (0, Y.format)(i, n, a) === e ? i : new Date(Number.NaN) : i;
}
function ax(e, n) {
  const r = n(e);
  return hc(r);
}
function ix(e, n, r, a) {
  const i = n(e, r, a);
  return hc(i);
}
function hc(e) {
  if (e === void 0)
    return;
  if (typeof e == "number")
    return e;
  const [n, r, a] = e.split(":");
  return {
    hours: Number(n),
    minutes: Number(r),
    seconds: Number(a)
  };
}
function ux(e, n) {
  return Array.isArray(e) ? e[n === "start" ? 0 : 1] : null;
}
var $r = {}, Jr = {};
Object.defineProperty(Jr, "__esModule", { value: !0 });
Jr.usePanelCommonProps = void 0;
Jr.usePanelCommon = ox;
const lx = Yl, on = ke, dx = Er, cx = "HH:mm:ss", sx = {
  active: Boolean,
  dateFormat: String,
  fastYearSelect: Boolean,
  fastMonthSelect: Boolean,
  calendarDayFormat: String,
  calendarHeaderYearFormat: String,
  calendarHeaderMonthFormat: String,
  calendarHeaderMonthYearSeparator: { type: String, required: !0 },
  calendarHeaderMonthBeforeYear: {
    type: Boolean,
    default: void 0
  },
  timePickerFormat: {
    type: String,
    value: cx
  },
  value: {
    type: [Array, Number],
    default: null
  },
  shortcuts: Object,
  defaultTime: [Number, String, Array, Function],
  inputReadonly: Boolean,
  onClear: Function,
  onConfirm: Function,
  onClose: Function,
  onTabOut: Function,
  onKeydown: Function,
  actions: Array,
  onSelectYear: Function,
  onSelectMonth: Function,
  onUpdateValue: {
    type: Function,
    required: !0
  },
  themeClass: String,
  onRender: Function,
  panel: Boolean,
  onNextMonth: Function,
  onPrevMonth: Function,
  onNextYear: Function,
  onPrevYear: Function
};
Jr.usePanelCommonProps = sx;
function ox(e) {
  const { dateLocaleRef: n, timePickerSizeRef: r, timePickerPropsRef: a, localeRef: i, mergedClsPrefixRef: u, mergedThemeRef: l } = (0, on.inject)(dx.datePickerInjectionKey), d = (0, on.computed)(() => ({
    locale: n.value.locale
  })), c = (0, on.ref)(null), o = (0, lx.useKeyboard)();
  function f() {
    const { onClear: L } = e;
    L && L();
  }
  function h() {
    const { onConfirm: L, value: w } = e;
    L && L(w);
  }
  function v(L, w) {
    const { onUpdateValue: Pe } = e;
    Pe(L, w);
  }
  function P(L = !1) {
    const { onClose: w } = e;
    w && w(L);
  }
  function S() {
    const { onTabOut: L } = e;
    L && L();
  }
  function I() {
    v(null, !0), P(!0), f();
  }
  function H() {
    S();
  }
  function x() {
    (e.active || e.panel) && (0, on.nextTick)(() => {
      const { value: L } = c;
      if (!L)
        return;
      const w = L.querySelectorAll("[data-n-date]");
      w.forEach((Pe) => {
        Pe.classList.add("transition-disabled");
      }), L.offsetWidth, w.forEach((Pe) => {
        Pe.classList.remove("transition-disabled");
      });
    });
  }
  function Z(L) {
    L.key === "Tab" && L.target === c.value && o.shift && (L.preventDefault(), S());
  }
  function Q(L) {
    const { value: w } = c;
    o.tab && L.target === w && (w != null && w.contains(L.relatedTarget)) && S();
  }
  let F = null, T = !1;
  function X() {
    F = e.value, T = !0;
  }
  function V() {
    T = !1;
  }
  function oe() {
    T && (v(F, !1), T = !1);
  }
  function Ie(L) {
    return typeof L == "function" ? L() : L;
  }
  const se = (0, on.ref)(!1);
  function de() {
    se.value = !se.value;
  }
  return {
    mergedTheme: l,
    mergedClsPrefix: u,
    dateFnsOptions: d,
    timePickerSize: r,
    timePickerProps: a,
    selfRef: c,
    locale: i,
    doConfirm: h,
    doClose: P,
    doUpdateValue: v,
    doTabOut: S,
    handleClearClick: I,
    handleFocusDetectorFocus: H,
    disableTransitionOneTick: x,
    handlePanelKeyDown: Z,
    handlePanelFocus: Q,
    cachePendingValue: X,
    clearPendingValue: V,
    restorePendingValue: oe,
    getShortcutValue: Ie,
    handleShortcutMouseleave: oe,
    showMonthYearPanel: se,
    handleOpenQuickSelectMonthPanel: de
  };
}
Object.defineProperty($r, "__esModule", { value: !0 });
$r.useCalendarProps = void 0;
$r.useCalendar = mx;
const $ = er, Re = ke, zs = yr, fx = Er, fr = ze, m0 = Jr, hx = Object.assign(Object.assign({}, m0.usePanelCommonProps), { defaultCalendarStartTime: Number, actions: {
  type: Array,
  default: () => ["now", "clear", "confirm"]
} });
$r.useCalendarProps = hx;
function mx(e, n) {
  var r;
  const a = (0, m0.usePanelCommon)(e), { isValueInvalidRef: i, isDateDisabledRef: u, isDateInvalidRef: l, isTimeInvalidRef: d, isDateTimeInvalidRef: c, isHourDisabledRef: o, isMinuteDisabledRef: f, isSecondDisabledRef: h, localeRef: v, firstDayOfWeekRef: P, datePickerSlots: S, yearFormatRef: I, monthFormatRef: H, quarterFormatRef: x, yearRangeRef: Z } = (0, Re.inject)(fx.datePickerInjectionKey), Q = {
    isValueInvalid: i,
    isDateDisabled: u,
    isDateInvalid: l,
    isTimeInvalid: d,
    isDateTimeInvalid: c,
    isHourDisabled: o,
    isMinuteDisabled: f,
    isSecondDisabled: h
  }, F = (0, Re.computed)(() => e.dateFormat || v.value.dateFormat), T = (0, Re.computed)(() => e.calendarDayFormat || v.value.dayFormat), X = (0, Re.ref)(e.value === null || Array.isArray(e.value) ? "" : (0, $.format)(e.value, F.value)), V = (0, Re.ref)(e.value === null || Array.isArray(e.value) ? (r = e.defaultCalendarStartTime) !== null && r !== void 0 ? r : Date.now() : e.value), oe = (0, Re.ref)(null), Ie = (0, Re.ref)(null), se = (0, Re.ref)(null), de = (0, Re.ref)(Date.now()), L = (0, Re.computed)(() => {
    var g;
    return (0, fr.dateArray)(V.value, e.value, de.value, (g = P.value) !== null && g !== void 0 ? g : v.value.firstDayOfWeek, !1, n === "week");
  }), w = (0, Re.computed)(() => {
    const { value: g } = e;
    return (0, fr.monthArray)(V.value, Array.isArray(g) ? null : g, de.value, {
      monthFormat: H.value
    });
  }), Pe = (0, Re.computed)(() => {
    const { value: g } = e;
    return (0, fr.yearArray)(Array.isArray(g) ? null : g, de.value, {
      yearFormat: I.value
    }, Z);
  }), fe = (0, Re.computed)(() => {
    const { value: g } = e;
    return (0, fr.quarterArray)(V.value, Array.isArray(g) ? null : g, de.value, {
      quarterFormat: x.value
    });
  }), Fe = (0, Re.computed)(() => L.value.slice(0, 7).map((g) => {
    const { ts: A } = g;
    return (0, $.format)(A, T.value, a.dateFnsOptions.value);
  })), ee = (0, Re.computed)(() => (0, $.format)(V.value, e.calendarHeaderMonthFormat || v.value.monthFormat, a.dateFnsOptions.value)), te = (0, Re.computed)(() => (0, $.format)(V.value, e.calendarHeaderYearFormat || v.value.yearFormat, a.dateFnsOptions.value)), he = (0, Re.computed)(() => {
    var g;
    return (g = e.calendarHeaderMonthBeforeYear) !== null && g !== void 0 ? g : v.value.monthBeforeYear;
  });
  (0, Re.watch)(V, (g, A) => {
    (n === "date" || n === "datetime") && ((0, $.isSameMonth)(g, A) || a.disableTransitionOneTick());
  }), (0, Re.watch)((0, Re.computed)(() => e.value), (g) => {
    g !== null && !Array.isArray(g) ? (X.value = (0, $.format)(g, F.value, a.dateFnsOptions.value), V.value = g) : X.value = "";
  });
  function me(g) {
    var A;
    if (n === "datetime")
      return (0, $.getTime)((0, $.startOfSecond)(g));
    if (n === "month")
      return (0, $.getTime)((0, $.startOfMonth)(g));
    if (n === "year")
      return (0, $.getTime)((0, $.startOfYear)(g));
    if (n === "quarter")
      return (0, $.getTime)((0, $.startOfQuarter)(g));
    if (n === "week") {
      const re = (((A = P.value) !== null && A !== void 0 ? A : v.value.firstDayOfWeek) + 1) % 7;
      return (0, $.getTime)((0, $.startOfWeek)(g, {
        weekStartsOn: re
      }));
    }
    return (0, $.getTime)((0, $.startOfDay)(g));
  }
  function je(g, A) {
    const { isDateDisabled: { value: re } } = Q;
    return re ? re(g, A) : !1;
  }
  function Se(g) {
    const A = (0, fr.strictParse)(g, F.value, /* @__PURE__ */ new Date(), a.dateFnsOptions.value);
    if ((0, $.isValid)(A)) {
      if (e.value === null)
        a.doUpdateValue((0, $.getTime)(me(Date.now())), e.panel);
      else if (!Array.isArray(e.value)) {
        const re = (0, $.set)(e.value, {
          year: (0, $.getYear)(A),
          month: (0, $.getMonth)(A),
          date: (0, $.getDate)(A)
        });
        a.doUpdateValue((0, $.getTime)(me((0, $.getTime)(re))), e.panel);
      }
    } else
      X.value = g;
  }
  function Xe() {
    const g = (0, fr.strictParse)(X.value, F.value, /* @__PURE__ */ new Date(), a.dateFnsOptions.value);
    if ((0, $.isValid)(g)) {
      if (e.value === null)
        a.doUpdateValue((0, $.getTime)(me(Date.now())), !1);
      else if (!Array.isArray(e.value)) {
        const A = (0, $.set)(e.value, {
          year: (0, $.getYear)(g),
          month: (0, $.getMonth)(g),
          date: (0, $.getDate)(g)
        });
        a.doUpdateValue((0, $.getTime)(me((0, $.getTime)(A))), !1);
      }
    } else
      Ee();
  }
  function ue() {
    a.doUpdateValue(null, !0), X.value = "", a.doClose(!0), a.handleClearClick();
  }
  function E() {
    a.doUpdateValue((0, $.getTime)(me(Date.now())), !0);
    const g = Date.now();
    V.value = g, a.doClose(!0), e.panel && (n === "month" || n === "quarter" || n === "year") && (a.disableTransitionOneTick(), Ze(g));
  }
  const y = (0, Re.ref)(null);
  function K(g) {
    g.type === "date" && n === "week" && (y.value = me((0, $.getTime)(g.ts)));
  }
  function Ce(g) {
    return g.type === "date" && n === "week" ? me((0, $.getTime)(g.ts)) === y.value : !1;
  }
  function we(g) {
    if (je(g.ts, g.type === "date" ? {
      type: "date",
      year: g.dateObject.year,
      month: g.dateObject.month,
      date: g.dateObject.date
    } : g.type === "month" ? {
      type: "month",
      year: g.dateObject.year,
      month: g.dateObject.month
    } : g.type === "year" ? { type: "year", year: g.dateObject.year } : {
      type: "quarter",
      year: g.dateObject.year,
      quarter: g.dateObject.quarter
    }))
      return;
    let A;
    if (e.value !== null && !Array.isArray(e.value) ? A = e.value : A = Date.now(), n === "datetime" && e.defaultTime !== null && !Array.isArray(e.defaultTime)) {
      let re;
      typeof e.defaultTime == "function" ? re = (0, fr.extractSingleDefaultTime)(g.ts, e.defaultTime) : re = (0, fr.getDefaultTime)(e.defaultTime), re && (A = (0, $.getTime)((0, $.set)(A, re)));
    }
    switch (A = (0, $.getTime)(g.type === "quarter" && g.dateObject.quarter ? (0, $.setQuarter)((0, $.setYear)(A, g.dateObject.year), g.dateObject.quarter) : (0, $.set)(A, g.dateObject)), a.doUpdateValue(me(A), e.panel || n === "date" || n === "week" || n === "year"), n) {
      case "date":
      case "week":
        a.doClose();
        break;
      case "year":
        e.panel && a.disableTransitionOneTick(), a.doClose();
        break;
      case "month":
        a.disableTransitionOneTick(), Ze(A);
        break;
      case "quarter":
        a.disableTransitionOneTick(), Ze(A);
        break;
    }
  }
  function et(g, A) {
    let re;
    e.value !== null && !Array.isArray(e.value) ? re = e.value : re = Date.now(), re = (0, $.getTime)(g.type === "month" ? (0, $.setMonth)(re, g.dateObject.month) : (0, $.setYear)(re, g.dateObject.year)), A(re), Ze(re);
  }
  function ve(g) {
    V.value = g;
  }
  function Ee(g) {
    if (e.value === null || Array.isArray(e.value)) {
      X.value = "";
      return;
    }
    g === void 0 && (g = e.value), X.value = (0, $.format)(g, F.value, a.dateFnsOptions.value);
  }
  function tt() {
    Q.isDateInvalid.value || Q.isTimeInvalid.value || (a.doConfirm(), ft());
  }
  function ft() {
    e.active && a.doClose();
  }
  function Ot() {
    var g;
    V.value = (0, $.getTime)((0, $.addYears)(V.value, 1)), (g = e.onNextYear) === null || g === void 0 || g.call(e);
  }
  function Dt() {
    var g;
    V.value = (0, $.getTime)((0, $.addYears)(V.value, -1)), (g = e.onPrevYear) === null || g === void 0 || g.call(e);
  }
  function Mt() {
    var g;
    V.value = (0, $.getTime)((0, $.addMonths)(V.value, 1)), (g = e.onNextMonth) === null || g === void 0 || g.call(e);
  }
  function Pt() {
    var g;
    V.value = (0, $.getTime)((0, $.addMonths)(V.value, -1)), (g = e.onPrevMonth) === null || g === void 0 || g.call(e);
  }
  function Tt() {
    const { value: g } = oe;
    return (g == null ? void 0 : g.listElRef) || null;
  }
  function wt() {
    const { value: g } = oe;
    return (g == null ? void 0 : g.itemsElRef) || null;
  }
  function ht() {
    var g;
    (g = Ie.value) === null || g === void 0 || g.sync();
  }
  function ye(g) {
    g !== null && a.doUpdateValue(g, e.panel);
  }
  function lt(g) {
    a.cachePendingValue();
    const A = a.getShortcutValue(g);
    typeof A == "number" && a.doUpdateValue(A, !1);
  }
  function mt(g) {
    const A = a.getShortcutValue(g);
    typeof A == "number" && (a.doUpdateValue(A, e.panel), a.clearPendingValue(), tt());
  }
  function Ze(g) {
    const { value: A } = e;
    if (se.value) {
      const re = g === void 0 ? A === null ? (0, $.getMonth)(Date.now()) : (0, $.getMonth)(A) : (0, $.getMonth)(g);
      se.value.scrollTo({ top: re * zs.MONTH_ITEM_HEIGHT });
    }
    if (oe.value) {
      const re = (g === void 0 ? A === null ? (0, $.getYear)(Date.now()) : (0, $.getYear)(A) : (0, $.getYear)(g)) - Z.value[0];
      oe.value.scrollTo({ top: re * zs.MONTH_ITEM_HEIGHT });
    }
  }
  const vt = {
    monthScrollbarRef: se,
    yearScrollbarRef: Ie,
    yearVlRef: oe
  };
  return Object.assign(Object.assign(Object.assign(Object.assign({
    dateArray: L,
    monthArray: w,
    yearArray: Pe,
    quarterArray: fe,
    calendarYear: te,
    calendarMonth: ee,
    weekdays: Fe,
    calendarMonthBeforeYear: he,
    mergedIsDateDisabled: je,
    nextYear: Ot,
    prevYear: Dt,
    nextMonth: Mt,
    prevMonth: Pt,
    handleNowClick: E,
    handleConfirmClick: tt,
    handleSingleShortcutMouseenter: lt,
    handleSingleShortcutClick: mt
  }, Q), a), vt), {
    // datetime only
    handleDateClick: we,
    handleDateInputBlur: Xe,
    handleDateInput: Se,
    handleDateMouseEnter: K,
    isWeekHovered: Ce,
    handleTimePickerChange: ye,
    clearSelectedDateTime: ue,
    virtualListContainer: Tt,
    virtualListContent: wt,
    handleVirtualListScroll: ht,
    timePickerSize: a.timePickerSize,
    dateInputValue: X,
    datePickerSlots: S,
    handleQuickMonthClick: et,
    justifyColumnsScrollState: Ze,
    calendarValue: V,
    onUpdateCalendarValue: ve
  });
}
Object.defineProperty(wa, "__esModule", { value: !0 });
const Ve = ke, vx = vn, ol = kt, _x = Ir, Bn = bt, Ln = jr, gx = yr, fl = ze, As = $r;
wa.default = (0, Ve.defineComponent)({
  name: "MonthPanel",
  props: Object.assign(Object.assign({}, As.useCalendarProps), {
    type: {
      type: String,
      required: !0
    },
    // panelHeader prop
    useAsQuickJump: Boolean
  }),
  setup(e) {
    const n = (0, As.useCalendar)(e, e.type), { dateLocaleRef: r } = (0, _x.useLocale)("DatePicker"), a = (l) => {
      switch (l.type) {
        case "year":
          return (0, fl.getYearString)(l.dateObject.year, l.yearFormat, r.value.locale);
        case "month":
          return (0, fl.getMonthString)(l.dateObject.month, l.monthFormat, r.value.locale);
        case "quarter":
          return (0, fl.getQuarterString)(l.dateObject.quarter, l.quarterFormat, r.value.locale);
      }
    }, { useAsQuickJump: i } = e, u = (l, d, c) => {
      const { mergedIsDateDisabled: o, handleDateClick: f, handleQuickMonthClick: h } = n;
      return (0, Ve.h)("div", { "data-n-date": !0, key: d, class: [
        `${c}-date-panel-month-calendar__picker-col-item`,
        l.isCurrent && `${c}-date-panel-month-calendar__picker-col-item--current`,
        l.selected && `${c}-date-panel-month-calendar__picker-col-item--selected`,
        !i && o(l.ts, l.type === "year" ? {
          type: "year",
          year: l.dateObject.year
        } : l.type === "month" ? {
          type: "month",
          year: l.dateObject.year,
          month: l.dateObject.month
        } : l.type === "quarter" ? {
          type: "month",
          year: l.dateObject.year,
          month: l.dateObject.quarter
        } : null) && `${c}-date-panel-month-calendar__picker-col-item--disabled`
      ], onClick: () => {
        var v, P;
        l.type === "year" ? (v = e.onSelectYear) === null || v === void 0 || v.call(e) : l.type === "month" && ((P = e.onSelectMonth) === null || P === void 0 || P.call(e)), i ? h(l, (S) => {
          e.onUpdateValue(S, !1);
        }) : f(l);
      } }, a(l));
    };
    return (0, Ve.onMounted)(() => {
      n.justifyColumnsScrollState();
    }), Object.assign(Object.assign({}, n), { renderItem: u });
  },
  render() {
    const { mergedClsPrefix: e, mergedTheme: n, shortcuts: r, actions: a, renderItem: i, type: u, onRender: l } = this;
    return l == null || l(), (0, Ve.h)(
      "div",
      { ref: "selfRef", tabindex: 0, class: [
        `${e}-date-panel`,
        `${e}-date-panel--month`,
        !this.panel && `${e}-date-panel--shadow`,
        this.themeClass
      ], onFocus: this.handlePanelFocus, onKeydown: this.handlePanelKeyDown },
      (0, Ve.h)(
        "div",
        { class: `${e}-date-panel-month-calendar` },
        (0, Ve.h)(ol.NScrollbar, { ref: "yearScrollbarRef", class: `${e}-date-panel-month-calendar__picker-col`, theme: n.peers.Scrollbar, themeOverrides: n.peerOverrides.Scrollbar, container: this.virtualListContainer, content: this.virtualListContent, horizontalRailStyle: { zIndex: 1 }, verticalRailStyle: { zIndex: 1 } }, {
          default: () => (0, Ve.h)(vx.VirtualList, { ref: "yearVlRef", items: this.yearArray, itemSize: gx.MONTH_ITEM_HEIGHT, showScrollbar: !1, keyField: "ts", onScroll: this.handleVirtualListScroll, paddingBottom: 4 }, {
            default: ({ item: d, index: c }) => i(d, c, e)
          })
        }),
        u === "month" || u === "quarter" ? (0, Ve.h)(
          "div",
          { class: `${e}-date-panel-month-calendar__picker-col` },
          (0, Ve.h)(ol.NScrollbar, { ref: "monthScrollbarRef", theme: n.peers.Scrollbar, themeOverrides: n.peerOverrides.Scrollbar }, {
            default: () => [
              (u === "month" ? this.monthArray : this.quarterArray).map((d, c) => i(d, c, e)),
              (0, Ve.h)("div", { class: `${e}-date-panel-${u}-calendar__padding` })
            ]
          })
        ) : null
      ),
      (0, Bn.resolveWrappedSlot)(this.datePickerSlots.footer, (d) => d ? (0, Ve.h)("div", { class: `${e}-date-panel-footer` }, d) : null),
      a != null && a.length || r ? (0, Ve.h)(
        "div",
        { class: `${e}-date-panel-actions` },
        (0, Ve.h)("div", { class: `${e}-date-panel-actions__prefix` }, r && Object.keys(r).map((d) => {
          const c = r[d];
          return Array.isArray(c) ? null : (0, Ve.h)(Ln.NxButton, { size: "tiny", onMouseenter: () => {
            this.handleSingleShortcutMouseenter(c);
          }, onClick: () => {
            this.handleSingleShortcutClick(c);
          }, onMouseleave: () => {
            this.handleShortcutMouseleave();
          } }, { default: () => d });
        })),
        (0, Ve.h)(
          "div",
          { class: `${e}-date-panel-actions__suffix` },
          a != null && a.includes("clear") ? (0, Bn.resolveSlotWithTypedProps)(this.datePickerSlots.clear, {
            onClear: this.handleClearClick,
            text: this.locale.clear
          }, () => [
            (0, Ve.h)(Ln.NButton, { theme: n.peers.Button, themeOverrides: n.peerOverrides.Button, size: "tiny", onClick: this.handleClearClick }, { default: () => this.locale.clear })
          ]) : null,
          a != null && a.includes("now") ? (0, Bn.resolveSlotWithTypedProps)(this.datePickerSlots.now, {
            onNow: this.handleNowClick,
            text: this.locale.now
          }, () => [
            (0, Ve.h)(Ln.NButton, { theme: n.peers.Button, themeOverrides: n.peerOverrides.Button, size: "tiny", onClick: this.handleNowClick }, { default: () => this.locale.now })
          ]) : null,
          a != null && a.includes("confirm") ? (0, Bn.resolveSlotWithTypedProps)(this.datePickerSlots.confirm, {
            onConfirm: this.handleConfirmClick,
            disabled: this.isDateInvalid,
            text: this.locale.confirm
          }, () => [
            (0, Ve.h)(Ln.NButton, { theme: n.peers.Button, themeOverrides: n.peerOverrides.Button, size: "tiny", type: "primary", disabled: this.isDateInvalid, onClick: this.handleConfirmClick }, { default: () => this.locale.confirm })
          ]) : null
        )
      ) : null,
      (0, Ve.h)(ol.NBaseFocusDetector, { onFocus: this.handleFocusDetectorFocus })
    );
  }
});
var bx = Oe && Oe.__importDefault || function(e) {
  return e && e.__esModule ? e : { default: e };
};
Object.defineProperty(Gr, "__esModule", { value: !0 });
const Ox = mn, Dx = El, ot = ke, hl = vn, Mx = bx(wa);
Gr.default = (0, ot.defineComponent)({
  props: {
    mergedClsPrefix: {
      type: String,
      required: !0
    },
    value: Number,
    monthBeforeYear: {
      type: Boolean,
      required: !0
    },
    monthYearSeparator: {
      type: String,
      required: !0
    },
    fastYearSelect: Boolean,
    fastMonthSelect: Boolean,
    calendarMonth: {
      type: String,
      required: !0
    },
    calendarYear: {
      type: String,
      required: !0
    },
    onUpdateValue: {
      type: Function,
      required: !0
    }
  },
  setup(e) {
    const n = (0, ot.ref)(null), r = (0, ot.ref)(null), a = (0, ot.ref)(!1);
    function i() {
      a.value = !a.value;
    }
    function u() {
      e.fastYearSelect && i();
    }
    function l() {
      e.fastMonthSelect && i();
    }
    function d(o) {
      var f;
      a.value && !(!((f = n.value) === null || f === void 0) && f.contains((0, Ox.getPreciseEventTarget)(o))) && (a.value = !1);
    }
    function c() {
      i();
    }
    return {
      show: a,
      triggerRef: n,
      monthPanelRef: r,
      handleSelectYear: u,
      handleSelectMonth: l,
      handleHeaderClick: c,
      handleClickOutside: d
    };
  },
  render() {
    const { handleClickOutside: e, mergedClsPrefix: n } = this;
    return (0, ot.h)(
      "div",
      { class: `${n}-date-panel-month__month-year`, ref: "triggerRef" },
      (0, ot.h)(hl.VBinder, null, {
        default: () => [
          (0, ot.h)(hl.VTarget, null, {
            default: () => (0, ot.h)("div", { class: [
              `${n}-date-panel-month__text`,
              this.show && `${n}-date-panel-month__text--active`
            ], onClick: this.handleHeaderClick }, this.monthBeforeYear ? [
              this.calendarMonth,
              this.monthYearSeparator,
              this.calendarYear
            ] : [
              this.calendarYear,
              this.monthYearSeparator,
              this.calendarMonth
            ])
          }),
          (0, ot.h)(hl.VFollower, { show: this.show, teleportDisabled: !0 }, {
            default: () => (0, ot.h)(ot.Transition, { name: "fade-in-scale-up-transition", appear: !0 }, {
              default: () => this.show ? (0, ot.withDirectives)((0, ot.h)(Mx.default, {
                ref: "monthPanelRef",
                onUpdateValue: this.onUpdateValue,
                onSelectYear: this.handleSelectYear,
                onSelectMonth: this.handleSelectMonth,
                actions: [],
                calendarHeaderMonthYearSeparator: this.monthYearSeparator,
                // month and year click show month type
                type: "month",
                key: "month",
                useAsQuickJump: !0,
                value: this.value
              }), [
                [
                  Dx.clickoutside,
                  e,
                  void 0,
                  { capture: !0 }
                ]
              ]) : null
            })
          })
        ]
      })
    );
  }
});
var Px = Oe && Oe.__importDefault || function(e) {
  return e && e.__esModule ? e : { default: e };
};
Object.defineProperty(fc, "__esModule", { value: !0 });
const ge = ke, Tx = kt, Un = Zr, wr = bt, ml = jr, wx = Px(Gr), Ws = $r;
fc.default = (0, ge.defineComponent)({
  name: "DatePanel",
  props: Object.assign(Object.assign({}, Ws.useCalendarProps), { type: {
    type: String,
    required: !0
  } }),
  setup(e) {
    return process.env.NODE_ENV !== "production" && (0, ge.watchEffect)(() => {
      var n;
      !((n = e.actions) === null || n === void 0) && n.includes("confirm") && (0, wr.warnOnce)("date-picker", "The `confirm` action is not supported for n-date-picker of `date` type");
    }), (0, Ws.useCalendar)(e, e.type);
  },
  render() {
    var e, n, r;
    const { mergedClsPrefix: a, mergedTheme: i, shortcuts: u, onRender: l, datePickerSlots: d, type: c } = this;
    return l == null || l(), (0, ge.h)(
      "div",
      { ref: "selfRef", tabindex: 0, class: [
        `${a}-date-panel`,
        `${a}-date-panel--${c}`,
        !this.panel && `${a}-date-panel--shadow`,
        this.themeClass
      ], onFocus: this.handlePanelFocus, onKeydown: this.handlePanelKeyDown },
      (0, ge.h)(
        "div",
        { class: `${a}-date-panel-calendar` },
        (0, ge.h)(
          "div",
          { class: `${a}-date-panel-month` },
          (0, ge.h)("div", { class: `${a}-date-panel-month__fast-prev`, onClick: this.prevYear }, (0, wr.resolveSlot)(d["prev-year"], () => [
            (0, ge.h)(Un.FastBackwardIcon, null)
          ])),
          (0, ge.h)("div", { class: `${a}-date-panel-month__prev`, onClick: this.prevMonth }, (0, wr.resolveSlot)(d["prev-month"], () => [
            (0, ge.h)(Un.BackwardIcon, null)
          ])),
          (0, ge.h)(wx.default, { fastYearSelect: this.fastYearSelect, fastMonthSelect: this.fastMonthSelect, monthYearSeparator: this.calendarHeaderMonthYearSeparator, monthBeforeYear: this.calendarMonthBeforeYear, value: this.calendarValue, onUpdateValue: this.onUpdateCalendarValue, mergedClsPrefix: a, calendarMonth: this.calendarMonth, calendarYear: this.calendarYear }),
          (0, ge.h)("div", { class: `${a}-date-panel-month__next`, onClick: this.nextMonth }, (0, wr.resolveSlot)(d["next-month"], () => [
            (0, ge.h)(Un.ForwardIcon, null)
          ])),
          (0, ge.h)("div", { class: `${a}-date-panel-month__fast-next`, onClick: this.nextYear }, (0, wr.resolveSlot)(d["next-year"], () => [
            (0, ge.h)(Un.FastForwardIcon, null)
          ]))
        ),
        (0, ge.h)("div", { class: `${a}-date-panel-weekdays` }, this.weekdays.map((o) => (0, ge.h)("div", { key: o, class: `${a}-date-panel-weekdays__day` }, o))),
        (0, ge.h)("div", { class: `${a}-date-panel-dates` }, this.dateArray.map((o, f) => (0, ge.h)(
          "div",
          { "data-n-date": !0, key: f, class: [
            `${a}-date-panel-date`,
            {
              [`${a}-date-panel-date--current`]: o.isCurrentDate,
              [`${a}-date-panel-date--selected`]: o.selected,
              [`${a}-date-panel-date--excluded`]: !o.inCurrentMonth,
              [`${a}-date-panel-date--disabled`]: this.mergedIsDateDisabled(o.ts, {
                type: "date",
                year: o.dateObject.year,
                month: o.dateObject.month,
                date: o.dateObject.date
              }),
              [`${a}-date-panel-date--week-hovered`]: this.isWeekHovered(o),
              [`${a}-date-panel-date--week-selected`]: o.inSelectedWeek
            }
          ], onClick: () => {
            this.handleDateClick(o);
          }, onMouseenter: () => {
            this.handleDateMouseEnter(o);
          } },
          (0, ge.h)("div", { class: `${a}-date-panel-date__trigger` }),
          o.dateObject.date,
          o.isCurrentDate ? (0, ge.h)("div", { class: `${a}-date-panel-date__sup` }) : null
        )))
      ),
      this.datePickerSlots.footer ? (0, ge.h)("div", { class: `${a}-date-panel-footer` }, this.datePickerSlots.footer()) : null,
      !((e = this.actions) === null || e === void 0) && e.length || u ? (0, ge.h)(
        "div",
        { class: `${a}-date-panel-actions` },
        (0, ge.h)("div", { class: `${a}-date-panel-actions__prefix` }, u && Object.keys(u).map((o) => {
          const f = u[o];
          return Array.isArray(f) ? null : (0, ge.h)(ml.NxButton, { size: "tiny", onMouseenter: () => {
            this.handleSingleShortcutMouseenter(f);
          }, onClick: () => {
            this.handleSingleShortcutClick(f);
          }, onMouseleave: () => {
            this.handleShortcutMouseleave();
          } }, { default: () => o });
        })),
        (0, ge.h)(
          "div",
          { class: `${a}-date-panel-actions__suffix` },
          !((n = this.actions) === null || n === void 0) && n.includes("clear") ? (0, wr.resolveSlotWithTypedProps)(this.$slots.clear, {
            onClear: this.handleClearClick,
            text: this.locale.clear
          }, () => [
            (0, ge.h)(ml.NButton, { theme: i.peers.Button, themeOverrides: i.peerOverrides.Button, size: "tiny", onClick: this.handleClearClick }, { default: () => this.locale.clear })
          ]) : null,
          !((r = this.actions) === null || r === void 0) && r.includes("now") ? (0, wr.resolveSlotWithTypedProps)(this.$slots.now, {
            onNow: this.handleNowClick,
            text: this.locale.now
          }, () => [
            (0, ge.h)(ml.NButton, { theme: i.peers.Button, themeOverrides: i.peerOverrides.Button, size: "tiny", onClick: this.handleNowClick }, { default: () => this.locale.now })
          ]) : null
        )
      ) : null,
      (0, ge.h)(Tx.NBaseFocusDetector, { onFocus: this.handleFocusDetectorFocus })
    );
  }
});
var mc = {}, Nr = {};
Object.defineProperty(Nr, "__esModule", { value: !0 });
Nr.useDualCalendarProps = void 0;
Nr.useDualCalendar = Ix;
const O = er, p = ke, Vs = yr, Sx = Er, xe = ze, v0 = Jr, Cx = Object.assign(Object.assign({}, v0.usePanelCommonProps), { defaultCalendarStartTime: Number, defaultCalendarEndTime: Number, bindCalendarMonths: Boolean, actions: {
  type: Array,
  default: () => ["clear", "confirm"]
} });
Nr.useDualCalendarProps = Cx;
function Ix(e, n) {
  var r, a;
  const { isDateDisabledRef: i, isStartHourDisabledRef: u, isEndHourDisabledRef: l, isStartMinuteDisabledRef: d, isEndMinuteDisabledRef: c, isStartSecondDisabledRef: o, isEndSecondDisabledRef: f, isStartDateInvalidRef: h, isEndDateInvalidRef: v, isStartTimeInvalidRef: P, isEndTimeInvalidRef: S, isStartValueInvalidRef: I, isEndValueInvalidRef: H, isRangeInvalidRef: x, localeRef: Z, rangesRef: Q, closeOnSelectRef: F, updateValueOnCloseRef: T, firstDayOfWeekRef: X, datePickerSlots: V, monthFormatRef: oe, yearFormatRef: Ie, quarterFormatRef: se, yearRangeRef: de } = (0, p.inject)(Sx.datePickerInjectionKey), L = {
    isDateDisabled: i,
    isStartHourDisabled: u,
    isEndHourDisabled: l,
    isStartMinuteDisabled: d,
    isEndMinuteDisabled: c,
    isStartSecondDisabled: o,
    isEndSecondDisabled: f,
    isStartDateInvalid: h,
    isEndDateInvalid: v,
    isStartTimeInvalid: P,
    isEndTimeInvalid: S,
    isStartValueInvalid: I,
    isEndValueInvalid: H,
    isRangeInvalid: x
  }, w = (0, v0.usePanelCommon)(e), Pe = (0, p.ref)(null), fe = (0, p.ref)(null), Fe = (0, p.ref)(null), ee = (0, p.ref)(null), te = (0, p.ref)(null), he = (0, p.ref)(null), me = (0, p.ref)(null), je = (0, p.ref)(null), { value: Se } = e, Xe = (r = e.defaultCalendarStartTime) !== null && r !== void 0 ? r : Array.isArray(Se) && typeof Se[0] == "number" ? Se[0] : Date.now(), ue = (0, p.ref)(Xe), E = (0, p.ref)((a = e.defaultCalendarEndTime) !== null && a !== void 0 ? a : Array.isArray(Se) && typeof Se[1] == "number" ? Se[1] : (0, O.getTime)((0, O.addMonths)(Xe, 1)));
  $e(!0);
  const y = (0, p.ref)(Date.now()), K = (0, p.ref)(!1), Ce = (0, p.ref)(0), we = (0, p.computed)(() => e.dateFormat || Z.value.dateFormat), et = (0, p.computed)(() => e.calendarDayFormat || Z.value.dayFormat), ve = (0, p.ref)(Array.isArray(Se) ? (0, O.format)(Se[0], we.value, w.dateFnsOptions.value) : ""), Ee = (0, p.ref)(Array.isArray(Se) ? (0, O.format)(Se[1], we.value, w.dateFnsOptions.value) : ""), tt = (0, p.computed)(() => K.value ? "end" : "start"), ft = (0, p.computed)(() => {
    var s;
    return (0, xe.dateArray)(ue.value, e.value, y.value, (s = X.value) !== null && s !== void 0 ? s : Z.value.firstDayOfWeek);
  }), Ot = (0, p.computed)(() => {
    var s;
    return (0, xe.dateArray)(E.value, e.value, y.value, (s = X.value) !== null && s !== void 0 ? s : Z.value.firstDayOfWeek);
  }), Dt = (0, p.computed)(() => ft.value.slice(0, 7).map((s) => {
    const { ts: m } = s;
    return (0, O.format)(m, et.value, w.dateFnsOptions.value);
  })), Mt = (0, p.computed)(() => (0, O.format)(ue.value, e.calendarHeaderMonthFormat || Z.value.monthFormat, w.dateFnsOptions.value)), Pt = (0, p.computed)(() => (0, O.format)(E.value, e.calendarHeaderMonthFormat || Z.value.monthFormat, w.dateFnsOptions.value)), Tt = (0, p.computed)(() => (0, O.format)(ue.value, e.calendarHeaderYearFormat || Z.value.yearFormat, w.dateFnsOptions.value)), wt = (0, p.computed)(() => (0, O.format)(E.value, e.calendarHeaderYearFormat || Z.value.yearFormat, w.dateFnsOptions.value)), ht = (0, p.computed)(() => {
    const { value: s } = e;
    return Array.isArray(s) ? s[0] : null;
  }), ye = (0, p.computed)(() => {
    const { value: s } = e;
    return Array.isArray(s) ? s[1] : null;
  }), lt = (0, p.computed)(() => {
    const { shortcuts: s } = e;
    return s || Q.value;
  }), mt = (0, p.computed)(() => (0, xe.yearArray)((0, xe.pluckValueFromRange)(e.value, "start"), y.value, {
    yearFormat: Ie.value
  }, de)), Ze = (0, p.computed)(() => (0, xe.yearArray)((0, xe.pluckValueFromRange)(e.value, "end"), y.value, {
    yearFormat: Ie.value
  }, de)), vt = (0, p.computed)(() => {
    const s = (0, xe.pluckValueFromRange)(e.value, "start");
    return (0, xe.quarterArray)(s ?? Date.now(), s, y.value, {
      quarterFormat: se.value
    });
  }), g = (0, p.computed)(() => {
    const s = (0, xe.pluckValueFromRange)(e.value, "end");
    return (0, xe.quarterArray)(s ?? Date.now(), s, y.value, {
      quarterFormat: se.value
    });
  }), A = (0, p.computed)(() => {
    const s = (0, xe.pluckValueFromRange)(e.value, "start");
    return (0, xe.monthArray)(s ?? Date.now(), s, y.value, {
      monthFormat: oe.value
    });
  }), re = (0, p.computed)(() => {
    const s = (0, xe.pluckValueFromRange)(e.value, "end");
    return (0, xe.monthArray)(s ?? Date.now(), s, y.value, {
      monthFormat: oe.value
    });
  }), Ut = (0, p.computed)(() => {
    var s;
    return (s = e.calendarHeaderMonthBeforeYear) !== null && s !== void 0 ? s : Z.value.monthBeforeYear;
  });
  (0, p.watch)((0, p.computed)(() => e.value), (s) => {
    if (s !== null && Array.isArray(s)) {
      const [m, b] = s;
      ve.value = (0, O.format)(m, we.value, w.dateFnsOptions.value), Ee.value = (0, O.format)(b, we.value, w.dateFnsOptions.value), K.value || k(s);
    } else
      ve.value = "", Ee.value = "";
  });
  function Ft(s, m) {
    (n === "daterange" || n === "datetimerange") && ((0, O.getYear)(s) !== (0, O.getYear)(m) || (0, O.getMonth)(s) !== (0, O.getMonth)(m)) && w.disableTransitionOneTick();
  }
  (0, p.watch)(ue, Ft), (0, p.watch)(E, Ft);
  function $e(s) {
    const m = (0, O.startOfMonth)(ue.value), b = (0, O.startOfMonth)(E.value);
    (e.bindCalendarMonths || m >= b) && (s ? E.value = (0, O.getTime)((0, O.addMonths)(m, 1)) : ue.value = (0, O.getTime)((0, O.addMonths)(b, -1)));
  }
  function ie() {
    ue.value = (0, O.getTime)((0, O.addMonths)(ue.value, 12)), $e(!0);
  }
  function Yt() {
    ue.value = (0, O.getTime)((0, O.addMonths)(ue.value, -12)), $e(!0);
  }
  function dt() {
    ue.value = (0, O.getTime)((0, O.addMonths)(ue.value, 1)), $e(!0);
  }
  function qt() {
    ue.value = (0, O.getTime)((0, O.addMonths)(ue.value, -1)), $e(!0);
  }
  function Et() {
    E.value = (0, O.getTime)((0, O.addMonths)(E.value, 12)), $e(!1);
  }
  function rt() {
    E.value = (0, O.getTime)((0, O.addMonths)(E.value, -12)), $e(!1);
  }
  function yt() {
    E.value = (0, O.getTime)((0, O.addMonths)(E.value, 1)), $e(!1);
  }
  function nt() {
    E.value = (0, O.getTime)((0, O.addMonths)(E.value, -1)), $e(!1);
  }
  function _(s) {
    ue.value = s, $e(!0);
  }
  function j(s) {
    E.value = s, $e(!1);
  }
  function U(s) {
    const m = i.value;
    if (!m)
      return !1;
    if (!Array.isArray(e.value) || tt.value === "start")
      return m(s, "start", null);
    {
      const { value: b } = Ce;
      return s < Ce.value ? m(s, "start", [
        b,
        b
      ]) : m(s, "end", [
        b,
        b
      ]);
    }
  }
  function k(s) {
    if (s === null)
      return;
    const [m, b] = s;
    ue.value = m, (0, O.startOfMonth)(b) <= (0, O.startOfMonth)(m) ? E.value = (0, O.getTime)((0, O.startOfMonth)((0, O.addMonths)(m, 1))) : E.value = (0, O.getTime)((0, O.startOfMonth)(b));
  }
  function Ne(s) {
    if (!K.value)
      K.value = !0, Ce.value = s.ts, Ke(s.ts, s.ts, "done");
    else {
      K.value = !1;
      const { value: m } = e;
      e.panel && Array.isArray(m) ? Ke(m[0], m[1], "done") : F.value && n === "daterange" && (T.value ? De() : qe());
    }
  }
  function Ue(s) {
    if (K.value) {
      if (U(s.ts))
        return;
      s.ts >= Ce.value ? Ke(Ce.value, s.ts, "wipPreview") : Ke(s.ts, Ce.value, "wipPreview");
    }
  }
  function qe() {
    x.value || (w.doConfirm(), De());
  }
  function De() {
    K.value = !1, e.active && w.doClose();
  }
  function ct(s) {
    typeof s != "number" && (s = (0, O.getTime)(s)), e.value === null ? w.doUpdateValue([s, s], e.panel) : Array.isArray(e.value) && w.doUpdateValue([s, Math.max(e.value[1], s)], e.panel);
  }
  function st(s) {
    typeof s != "number" && (s = (0, O.getTime)(s)), e.value === null ? w.doUpdateValue([s, s], e.panel) : Array.isArray(e.value) && w.doUpdateValue([Math.min(e.value[0], s), s], e.panel);
  }
  function Ke(s, m, b) {
    if (typeof s != "number" && (s = (0, O.getTime)(s)), b !== "shortcutPreview" && b !== "shortcutDone") {
      let R, ce;
      if (n === "datetimerange") {
        const { defaultTime: q } = e;
        typeof q == "function" ? (R = (0, xe.extractRangeDefaultTime)(s, q, "start", [s, m]), ce = (0, xe.extractRangeDefaultTime)(m, q, "end", [s, m])) : Array.isArray(q) ? (R = (0, xe.getDefaultTime)(q[0]), ce = (0, xe.getDefaultTime)(q[1])) : (R = (0, xe.getDefaultTime)(q), ce = R);
      }
      R && (s = (0, O.getTime)((0, O.set)(s, R))), ce && (m = (0, O.getTime)((0, O.set)(m, ce)));
    }
    w.doUpdateValue([s, m], e.panel && (b === "done" || b === "shortcutDone"));
  }
  function We(s) {
    return n === "datetimerange" ? (0, O.getTime)((0, O.startOfSecond)(s)) : n === "monthrange" ? (0, O.getTime)((0, O.startOfMonth)(s)) : (0, O.getTime)((0, O.startOfDay)(s));
  }
  function $t(s) {
    const m = (0, xe.strictParse)(s, we.value, /* @__PURE__ */ new Date(), w.dateFnsOptions.value);
    if ((0, O.isValid)(m))
      if (e.value) {
        if (Array.isArray(e.value)) {
          const b = (0, O.set)(e.value[0], {
            year: (0, O.getYear)(m),
            month: (0, O.getMonth)(m),
            date: (0, O.getDate)(m)
          });
          ct(We((0, O.getTime)(b)));
        }
      } else {
        const b = (0, O.set)(/* @__PURE__ */ new Date(), {
          year: (0, O.getYear)(m),
          month: (0, O.getMonth)(m),
          date: (0, O.getDate)(m)
        });
        ct(We((0, O.getTime)(b)));
      }
    else
      ve.value = s;
  }
  function St(s) {
    const m = (0, xe.strictParse)(s, we.value, /* @__PURE__ */ new Date(), w.dateFnsOptions.value);
    if ((0, O.isValid)(m)) {
      if (e.value === null) {
        const b = (0, O.set)(/* @__PURE__ */ new Date(), {
          year: (0, O.getYear)(m),
          month: (0, O.getMonth)(m),
          date: (0, O.getDate)(m)
        });
        st(We((0, O.getTime)(b)));
      } else if (Array.isArray(e.value)) {
        const b = (0, O.set)(e.value[1], {
          year: (0, O.getYear)(m),
          month: (0, O.getMonth)(m),
          date: (0, O.getDate)(m)
        });
        st(We((0, O.getTime)(b)));
      }
    } else
      Ee.value = s;
  }
  function Ct() {
    const s = (0, xe.strictParse)(ve.value, we.value, /* @__PURE__ */ new Date(), w.dateFnsOptions.value), { value: m } = e;
    if ((0, O.isValid)(s)) {
      if (m === null) {
        const b = (0, O.set)(/* @__PURE__ */ new Date(), {
          year: (0, O.getYear)(s),
          month: (0, O.getMonth)(s),
          date: (0, O.getDate)(s)
        });
        ct(We((0, O.getTime)(b)));
      } else if (Array.isArray(m)) {
        const b = (0, O.set)(m[0], {
          year: (0, O.getYear)(s),
          month: (0, O.getMonth)(s),
          date: (0, O.getDate)(s)
        });
        ct(We((0, O.getTime)(b)));
      }
    } else
      Rt();
  }
  function Nt() {
    const s = (0, xe.strictParse)(Ee.value, we.value, /* @__PURE__ */ new Date(), w.dateFnsOptions.value), { value: m } = e;
    if ((0, O.isValid)(s)) {
      if (m === null) {
        const b = (0, O.set)(/* @__PURE__ */ new Date(), {
          year: (0, O.getYear)(s),
          month: (0, O.getMonth)(s),
          date: (0, O.getDate)(s)
        });
        st(We((0, O.getTime)(b)));
      } else if (Array.isArray(m)) {
        const b = (0, O.set)(m[1], {
          year: (0, O.getYear)(s),
          month: (0, O.getMonth)(s),
          date: (0, O.getDate)(s)
        });
        st(We((0, O.getTime)(b)));
      }
    } else
      Rt();
  }
  function Rt(s) {
    const { value: m } = e;
    if (m === null || !Array.isArray(m)) {
      ve.value = "", Ee.value = "";
      return;
    }
    s === void 0 && (s = m), ve.value = (0, O.format)(s[0], we.value, w.dateFnsOptions.value), Ee.value = (0, O.format)(s[1], we.value, w.dateFnsOptions.value);
  }
  function Qe(s) {
    s !== null && ct(s);
  }
  function Qt(s) {
    s !== null && st(s);
  }
  function Zt(s) {
    w.cachePendingValue();
    const m = w.getShortcutValue(s);
    Array.isArray(m) && Ke(m[0], m[1], "shortcutPreview");
  }
  function pt(s) {
    const m = w.getShortcutValue(s);
    Array.isArray(m) && (Ke(m[0], m[1], "shortcutDone"), w.clearPendingValue(), qe());
  }
  function pe(s, m) {
    const b = s === void 0 ? e.value : s;
    if (s === void 0 || m === "start") {
      if (me.value) {
        const R = Array.isArray(b) ? (0, O.getMonth)(b[0]) : (0, O.getMonth)(Date.now());
        me.value.scrollTo({
          debounce: !1,
          index: R,
          elSize: Vs.MONTH_ITEM_HEIGHT
        });
      }
      if (te.value) {
        const R = (Array.isArray(b) ? (0, O.getYear)(b[0]) : (0, O.getYear)(Date.now())) - de.value[0];
        te.value.scrollTo({ index: R, debounce: !1 });
      }
    }
    if (s === void 0 || m === "end") {
      if (je.value) {
        const R = Array.isArray(b) ? (0, O.getMonth)(b[1]) : (0, O.getMonth)(Date.now());
        je.value.scrollTo({
          debounce: !1,
          index: R,
          elSize: Vs.MONTH_ITEM_HEIGHT
        });
      }
      if (he.value) {
        const R = (Array.isArray(b) ? (0, O.getYear)(b[1]) : (0, O.getYear)(Date.now())) - de.value[0];
        he.value.scrollTo({ index: R, debounce: !1 });
      }
    }
  }
  function Xt(s, m) {
    const { value: b } = e, R = !Array.isArray(b), ce = s.type === "year" && n !== "yearrange" ? R ? (0, O.set)(s.ts, {
      month: (0, O.getMonth)(n === "quarterrange" ? (0, O.startOfQuarter)(/* @__PURE__ */ new Date()) : /* @__PURE__ */ new Date())
    }).valueOf() : (0, O.set)(s.ts, {
      month: (0, O.getMonth)(n === "quarterrange" ? (0, O.startOfQuarter)(b[m === "start" ? 0 : 1]) : b[m === "start" ? 0 : 1])
    }).valueOf() : s.ts;
    if (R) {
      const Wt = We(ce), It = [Wt, Wt];
      w.doUpdateValue(It, e.panel), pe(It, "start"), pe(It, "end"), w.disableTransitionOneTick();
      return;
    }
    const q = [b[0], b[1]];
    let _e = !1;
    switch (m === "start" ? (q[0] = We(ce), q[0] > q[1] && (q[1] = q[0], _e = !0)) : (q[1] = We(ce), q[0] > q[1] && (q[0] = q[1], _e = !0)), w.doUpdateValue(q, e.panel), n) {
      case "monthrange":
      case "quarterrange":
        w.disableTransitionOneTick(), _e ? (pe(q, "start"), pe(q, "end")) : pe(q, m);
        break;
      case "yearrange":
        w.disableTransitionOneTick(), pe(q, "start"), pe(q, "end");
    }
  }
  function Ht() {
    var s;
    (s = Fe.value) === null || s === void 0 || s.sync();
  }
  function zt() {
    var s;
    (s = ee.value) === null || s === void 0 || s.sync();
  }
  function at(s) {
    var m, b;
    return s === "start" ? ((m = te.value) === null || m === void 0 ? void 0 : m.listElRef) || null : ((b = he.value) === null || b === void 0 ? void 0 : b.listElRef) || null;
  }
  function At(s) {
    var m, b;
    return s === "start" ? ((m = te.value) === null || m === void 0 ? void 0 : m.itemsElRef) || null : ((b = he.value) === null || b === void 0 ? void 0 : b.itemsElRef) || null;
  }
  const it = {
    startYearVlRef: te,
    endYearVlRef: he,
    startMonthScrollbarRef: me,
    endMonthScrollbarRef: je,
    startYearScrollbarRef: Fe,
    endYearScrollbarRef: ee
  };
  return Object.assign(Object.assign(Object.assign(Object.assign({
    startDatesElRef: Pe,
    endDatesElRef: fe,
    handleDateClick: Ne,
    handleColItemClick: Xt,
    handleDateMouseEnter: Ue,
    handleConfirmClick: qe,
    startCalendarPrevYear: Yt,
    startCalendarPrevMonth: qt,
    startCalendarNextYear: ie,
    startCalendarNextMonth: dt,
    endCalendarPrevYear: rt,
    endCalendarPrevMonth: nt,
    endCalendarNextMonth: yt,
    endCalendarNextYear: Et,
    mergedIsDateDisabled: U,
    changeStartEndTime: Ke,
    ranges: Q,
    calendarMonthBeforeYear: Ut,
    startCalendarMonth: Mt,
    startCalendarYear: Tt,
    endCalendarMonth: Pt,
    endCalendarYear: wt,
    weekdays: Dt,
    startDateArray: ft,
    endDateArray: Ot,
    startYearArray: mt,
    startMonthArray: A,
    startQuarterArray: vt,
    endYearArray: Ze,
    endMonthArray: re,
    endQuarterArray: g,
    isSelecting: K,
    handleRangeShortcutMouseenter: Zt,
    handleRangeShortcutClick: pt
  }, w), L), it), {
    // datetimerangeonly
    startDateDisplayString: ve,
    endDateInput: Ee,
    timePickerSize: w.timePickerSize,
    startTimeValue: ht,
    endTimeValue: ye,
    datePickerSlots: V,
    shortcuts: lt,
    startCalendarDateTime: ue,
    endCalendarDateTime: E,
    justifyColumnsScrollState: pe,
    handleFocusDetectorFocus: w.handleFocusDetectorFocus,
    handleStartTimePickerChange: Qe,
    handleEndTimePickerChange: Qt,
    handleStartDateInput: $t,
    handleStartDateInputBlur: Ct,
    handleEndDateInput: St,
    handleEndDateInputBlur: Nt,
    handleStartYearVlScroll: Ht,
    handleEndYearVlScroll: zt,
    virtualListContainer: at,
    virtualListContent: At,
    onUpdateStartCalendarValue: _,
    onUpdateEndCalendarValue: j
  });
}
var jx = Oe && Oe.__importDefault || function(e) {
  return e && e.__esModule ? e : { default: e };
};
Object.defineProperty(mc, "__esModule", { value: !0 });
const B = ke, xx = kt, hr = Zr, jt = bt, vl = jr, Bs = jx(Gr), Ls = Nr;
mc.default = (0, B.defineComponent)({
  name: "DateRangePanel",
  props: Ls.useDualCalendarProps,
  setup(e) {
    return process.env.NODE_ENV !== "production" && (0, B.watchEffect)(() => {
      var n;
      !((n = e.actions) === null || n === void 0) && n.includes("now") && (0, jt.warnOnce)("date-picker", "The `now` action is not supported for n-date-picker of `daterange` type");
    }), (0, Ls.useDualCalendar)(e, "daterange");
  },
  render() {
    var e, n, r;
    const { mergedClsPrefix: a, mergedTheme: i, shortcuts: u, onRender: l, datePickerSlots: d } = this;
    return l == null || l(), (0, B.h)(
      "div",
      { ref: "selfRef", tabindex: 0, class: [
        `${a}-date-panel`,
        `${a}-date-panel--daterange`,
        !this.panel && `${a}-date-panel--shadow`,
        this.themeClass
      ], onKeydown: this.handlePanelKeyDown, onFocus: this.handlePanelFocus },
      (0, B.h)(
        "div",
        { ref: "startDatesElRef", class: `${a}-date-panel-calendar ${a}-date-panel-calendar--start` },
        (0, B.h)(
          "div",
          { class: `${a}-date-panel-month` },
          (0, B.h)("div", { class: `${a}-date-panel-month__fast-prev`, onClick: this.startCalendarPrevYear }, (0, jt.resolveSlot)(d["prev-year"], () => [
            (0, B.h)(hr.FastBackwardIcon, null)
          ])),
          (0, B.h)("div", { class: `${a}-date-panel-month__prev`, onClick: this.startCalendarPrevMonth }, (0, jt.resolveSlot)(d["prev-month"], () => [
            (0, B.h)(hr.BackwardIcon, null)
          ])),
          (0, B.h)(Bs.default, { fastYearSelect: this.fastYearSelect, fastMonthSelect: this.fastMonthSelect, monthYearSeparator: this.calendarHeaderMonthYearSeparator, monthBeforeYear: this.calendarMonthBeforeYear, value: this.startCalendarDateTime, onUpdateValue: this.onUpdateStartCalendarValue, mergedClsPrefix: a, calendarMonth: this.startCalendarMonth, calendarYear: this.startCalendarYear }),
          (0, B.h)("div", { class: `${a}-date-panel-month__next`, onClick: this.startCalendarNextMonth }, (0, jt.resolveSlot)(d["next-month"], () => [
            (0, B.h)(hr.ForwardIcon, null)
          ])),
          (0, B.h)("div", { class: `${a}-date-panel-month__fast-next`, onClick: this.startCalendarNextYear }, (0, jt.resolveSlot)(d["next-year"], () => [
            (0, B.h)(hr.FastForwardIcon, null)
          ]))
        ),
        (0, B.h)("div", { class: `${a}-date-panel-weekdays` }, this.weekdays.map((c) => (0, B.h)("div", { key: c, class: `${a}-date-panel-weekdays__day` }, c))),
        (0, B.h)("div", { class: `${a}-date-panel__divider` }),
        (0, B.h)("div", { class: `${a}-date-panel-dates` }, this.startDateArray.map((c, o) => (0, B.h)(
          "div",
          { "data-n-date": !0, key: o, class: [
            `${a}-date-panel-date`,
            {
              [`${a}-date-panel-date--excluded`]: !c.inCurrentMonth,
              [`${a}-date-panel-date--current`]: c.isCurrentDate,
              [`${a}-date-panel-date--selected`]: c.selected,
              [`${a}-date-panel-date--covered`]: c.inSpan,
              [`${a}-date-panel-date--start`]: c.startOfSpan,
              [`${a}-date-panel-date--end`]: c.endOfSpan,
              [`${a}-date-panel-date--disabled`]: this.mergedIsDateDisabled(c.ts)
            }
          ], onClick: () => {
            this.handleDateClick(c);
          }, onMouseenter: () => {
            this.handleDateMouseEnter(c);
          } },
          (0, B.h)("div", { class: `${a}-date-panel-date__trigger` }),
          c.dateObject.date,
          c.isCurrentDate ? (0, B.h)("div", { class: `${a}-date-panel-date__sup` }) : null
        )))
      ),
      (0, B.h)("div", { class: `${a}-date-panel__vertical-divider` }),
      (0, B.h)(
        "div",
        { ref: "endDatesElRef", class: `${a}-date-panel-calendar ${a}-date-panel-calendar--end` },
        (0, B.h)(
          "div",
          { class: `${a}-date-panel-month` },
          (0, B.h)("div", { class: `${a}-date-panel-month__fast-prev`, onClick: this.endCalendarPrevYear }, (0, jt.resolveSlot)(d["prev-year"], () => [
            (0, B.h)(hr.FastBackwardIcon, null)
          ])),
          (0, B.h)("div", { class: `${a}-date-panel-month__prev`, onClick: this.endCalendarPrevMonth }, (0, jt.resolveSlot)(d["prev-month"], () => [
            (0, B.h)(hr.BackwardIcon, null)
          ])),
          (0, B.h)(Bs.default, { fastYearSelect: this.fastYearSelect, fastMonthSelect: this.fastMonthSelect, monthYearSeparator: this.calendarHeaderMonthYearSeparator, monthBeforeYear: this.calendarMonthBeforeYear, value: this.endCalendarDateTime, onUpdateValue: this.onUpdateEndCalendarValue, mergedClsPrefix: a, calendarMonth: this.endCalendarMonth, calendarYear: this.endCalendarYear }),
          (0, B.h)("div", { class: `${a}-date-panel-month__next`, onClick: this.endCalendarNextMonth }, (0, jt.resolveSlot)(d["next-month"], () => [
            (0, B.h)(hr.ForwardIcon, null)
          ])),
          (0, B.h)("div", { class: `${a}-date-panel-month__fast-next`, onClick: this.endCalendarNextYear }, (0, jt.resolveSlot)(d["next-year"], () => [
            (0, B.h)(hr.FastForwardIcon, null)
          ]))
        ),
        (0, B.h)("div", { class: `${a}-date-panel-weekdays` }, this.weekdays.map((c) => (0, B.h)("div", { key: c, class: `${a}-date-panel-weekdays__day` }, c))),
        (0, B.h)("div", { class: `${a}-date-panel__divider` }),
        (0, B.h)("div", { class: `${a}-date-panel-dates` }, this.endDateArray.map((c, o) => (0, B.h)(
          "div",
          { "data-n-date": !0, key: o, class: [
            `${a}-date-panel-date`,
            {
              [`${a}-date-panel-date--excluded`]: !c.inCurrentMonth,
              [`${a}-date-panel-date--current`]: c.isCurrentDate,
              [`${a}-date-panel-date--selected`]: c.selected,
              [`${a}-date-panel-date--covered`]: c.inSpan,
              [`${a}-date-panel-date--start`]: c.startOfSpan,
              [`${a}-date-panel-date--end`]: c.endOfSpan,
              [`${a}-date-panel-date--disabled`]: this.mergedIsDateDisabled(c.ts)
            }
          ], onClick: () => {
            this.handleDateClick(c);
          }, onMouseenter: () => {
            this.handleDateMouseEnter(c);
          } },
          (0, B.h)("div", { class: `${a}-date-panel-date__trigger` }),
          c.dateObject.date,
          c.isCurrentDate ? (0, B.h)("div", { class: `${a}-date-panel-date__sup` }) : null
        )))
      ),
      this.datePickerSlots.footer ? (0, B.h)("div", { class: `${a}-date-panel-footer` }, this.datePickerSlots.footer()) : null,
      !((e = this.actions) === null || e === void 0) && e.length || u ? (0, B.h)(
        "div",
        { class: `${a}-date-panel-actions` },
        (0, B.h)("div", { class: `${a}-date-panel-actions__prefix` }, u && Object.keys(u).map((c) => {
          const o = u[c];
          return Array.isArray(o) || typeof o == "function" ? (0, B.h)(vl.NxButton, { size: "tiny", onMouseenter: () => {
            this.handleRangeShortcutMouseenter(o);
          }, onClick: () => {
            this.handleRangeShortcutClick(o);
          }, onMouseleave: () => {
            this.handleShortcutMouseleave();
          } }, { default: () => c }) : null;
        })),
        (0, B.h)(
          "div",
          { class: `${a}-date-panel-actions__suffix` },
          !((n = this.actions) === null || n === void 0) && n.includes("clear") ? (0, jt.resolveSlotWithTypedProps)(d.clear, {
            onClear: this.handleClearClick,
            text: this.locale.clear
          }, () => [
            (0, B.h)(vl.NButton, { theme: i.peers.Button, themeOverrides: i.peerOverrides.Button, size: "tiny", onClick: this.handleClearClick }, { default: () => this.locale.clear })
          ]) : null,
          !((r = this.actions) === null || r === void 0) && r.includes("confirm") ? (0, jt.resolveSlotWithTypedProps)(d.confirm, {
            onConfirm: this.handleConfirmClick,
            disabled: this.isRangeInvalid || this.isSelecting,
            text: this.locale.confirm
          }, () => [
            (0, B.h)(vl.NButton, { theme: i.peers.Button, themeOverrides: i.peerOverrides.Button, size: "tiny", type: "primary", disabled: this.isRangeInvalid || this.isSelecting, onClick: this.handleConfirmClick }, { default: () => this.locale.confirm })
          ]) : null
        )
      ) : null,
      (0, B.h)(xx.NBaseFocusDetector, { onFocus: this.handleFocusDetectorFocus })
    );
  }
});
var vc = {}, _c = {}, _0 = {}, g0 = {}, Fn = {}, Sa = {}, Ca = {};
Object.defineProperty(Ca, "__esModule", { value: !0 });
Ca.tzIntlTimeZoneName = void 0;
const Fx = er;
function Yx(e, n, r) {
  var a;
  const i = (0, Fx.getDefaultOptions)(), u = $x(e, r.timeZone, (a = r.locale) !== null && a !== void 0 ? a : i.locale);
  return "formatToParts" in u ? Ex(u, n) : yx(u, n);
}
Ca.tzIntlTimeZoneName = Yx;
function Ex(e, n) {
  const r = e.formatToParts(n);
  for (let a = r.length - 1; a >= 0; --a)
    if (r[a].type === "timeZoneName")
      return r[a].value;
}
function yx(e, n) {
  const r = e.format(n).replace(/\u200E/g, ""), a = / [\w-+ ]+$/.exec(r);
  return a ? a[0].substr(1) : "";
}
function $x(e, n, r) {
  return new Intl.DateTimeFormat(r ? [r.code, "en-US"] : void 0, {
    timeZone: n,
    timeZoneName: e
  });
}
var gr = {}, Ia = {};
Object.defineProperty(Ia, "__esModule", { value: !0 });
Ia.tzTokenizeDate = void 0;
function Nx(e, n) {
  const r = Wx(n);
  return "formatToParts" in r ? Hx(r, e) : zx(r, e);
}
Ia.tzTokenizeDate = Nx;
const Rx = {
  year: 0,
  month: 1,
  day: 2,
  hour: 3,
  minute: 4,
  second: 5
};
function Hx(e, n) {
  try {
    const r = e.formatToParts(n), a = [];
    for (let i = 0; i < r.length; i++) {
      const u = Rx[r[i].type];
      u !== void 0 && (a[u] = parseInt(r[i].value, 10));
    }
    return a;
  } catch (r) {
    if (r instanceof RangeError)
      return [NaN];
    throw r;
  }
}
function zx(e, n) {
  const r = e.format(n), a = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(r);
  return [
    parseInt(a[3], 10),
    parseInt(a[1], 10),
    parseInt(a[2], 10),
    parseInt(a[4], 10),
    parseInt(a[5], 10),
    parseInt(a[6], 10)
  ];
}
const _l = {}, Us = new Intl.DateTimeFormat("en-US", {
  hourCycle: "h23",
  timeZone: "America/New_York",
  year: "numeric",
  month: "2-digit",
  day: "2-digit",
  hour: "2-digit",
  minute: "2-digit",
  second: "2-digit"
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), Ax = Us === "06/25/2014, 00:00:00" || Us === "‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";
function Wx(e) {
  return _l[e] || (_l[e] = Ax ? new Intl.DateTimeFormat("en-US", {
    hourCycle: "h23",
    timeZone: e,
    year: "numeric",
    month: "numeric",
    day: "2-digit",
    hour: "2-digit",
    minute: "2-digit",
    second: "2-digit"
  }) : new Intl.DateTimeFormat("en-US", {
    hour12: !1,
    timeZone: e,
    year: "numeric",
    month: "numeric",
    day: "2-digit",
    hour: "2-digit",
    minute: "2-digit",
    second: "2-digit"
  })), _l[e];
}
var Yn = {};
Object.defineProperty(Yn, "__esModule", { value: !0 });
Yn.newDateUTC = void 0;
function Vx(e, n, r, a, i, u, l) {
  const d = /* @__PURE__ */ new Date(0);
  return d.setUTCFullYear(e, n, r), d.setUTCHours(a, i, u, l), d;
}
Yn.newDateUTC = Vx;
Object.defineProperty(gr, "__esModule", { value: !0 });
gr.tzParseTimezone = void 0;
const Bx = Ia, b0 = Yn, qs = 36e5, Lx = 6e4, gl = {
  timezoneZ: /^(Z)$/,
  timezoneHH: /^([+-]\d{2})$/,
  timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
};
function Ux(e, n, r) {
  if (!e)
    return 0;
  let a = gl.timezoneZ.exec(e);
  if (a)
    return 0;
  let i, u;
  if (a = gl.timezoneHH.exec(e), a)
    return i = parseInt(a[1], 10), Qs(i) ? -(i * qs) : NaN;
  if (a = gl.timezoneHHMM.exec(e), a) {
    i = parseInt(a[2], 10);
    const l = parseInt(a[3], 10);
    return Qs(i, l) ? (u = Math.abs(i) * qs + l * Lx, a[1] === "+" ? -u : u) : NaN;
  }
  if (Zx(e)) {
    n = new Date(n || Date.now());
    const l = r ? n : qx(n), d = xl(l, e);
    return -(r ? d : Qx(n, d, e));
  }
  return NaN;
}
gr.tzParseTimezone = Ux;
function qx(e) {
  return (0, b0.newDateUTC)(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
}
function xl(e, n) {
  const r = (0, Bx.tzTokenizeDate)(e, n), a = (0, b0.newDateUTC)(r[0], r[1] - 1, r[2], r[3] % 24, r[4], r[5], 0).getTime();
  let i = e.getTime();
  const u = i % 1e3;
  return i -= u >= 0 ? u : 1e3 + u, a - i;
}
function Qx(e, n, r) {
  let i = e.getTime() - n;
  const u = xl(new Date(i), r);
  if (n === u)
    return n;
  i -= u - n;
  const l = xl(new Date(i), r);
  return u === l ? u : Math.max(u, l);
}
function Qs(e, n) {
  return -23 <= e && e <= 23 && (n == null || 0 <= n && n <= 59);
}
const Zs = {};
function Zx(e) {
  if (Zs[e])
    return !0;
  try {
    return new Intl.DateTimeFormat(void 0, { timeZone: e }), Zs[e] = !0, !0;
  } catch {
    return !1;
  }
}
Object.defineProperty(Sa, "__esModule", { value: !0 });
Sa.formatters = void 0;
const ps = Ca, px = gr, Xx = 60 * 1e3;
Sa.formatters = {
  // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
  X: function(e, n, r) {
    const a = bl(r.timeZone, e);
    if (a === 0)
      return "Z";
    switch (n) {
      case "X":
        return Xs(a);
      case "XXXX":
      case "XX":
        return Qr(a);
      case "XXXXX":
      case "XXX":
      default:
        return Qr(a, ":");
    }
  },
  // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
  x: function(e, n, r) {
    const a = bl(r.timeZone, e);
    switch (n) {
      case "x":
        return Xs(a);
      case "xxxx":
      case "xx":
        return Qr(a);
      case "xxxxx":
      case "xxx":
      default:
        return Qr(a, ":");
    }
  },
  // Timezone (GMT)
  O: function(e, n, r) {
    const a = bl(r.timeZone, e);
    switch (n) {
      case "O":
      case "OO":
      case "OOO":
        return "GMT" + Kx(a, ":");
      case "OOOO":
      default:
        return "GMT" + Qr(a, ":");
    }
  },
  // Timezone (specific non-location)
  z: function(e, n, r) {
    switch (n) {
      case "z":
      case "zz":
      case "zzz":
        return (0, ps.tzIntlTimeZoneName)("short", e, r);
      case "zzzz":
      default:
        return (0, ps.tzIntlTimeZoneName)("long", e, r);
    }
  }
};
function bl(e, n) {
  var r;
  const a = e ? (0, px.tzParseTimezone)(e, n, !0) / Xx : (r = n == null ? void 0 : n.getTimezoneOffset()) !== null && r !== void 0 ? r : 0;
  if (Number.isNaN(a))
    throw new RangeError("Invalid time zone specified: " + e);
  return a;
}
function Kn(e, n) {
  const r = e < 0 ? "-" : "";
  let a = Math.abs(e).toString();
  for (; a.length < n; )
    a = "0" + a;
  return r + a;
}
function Qr(e, n = "") {
  const r = e > 0 ? "-" : "+", a = Math.abs(e), i = Kn(Math.floor(a / 60), 2), u = Kn(Math.floor(a % 60), 2);
  return r + i + n + u;
}
function Xs(e, n) {
  return e % 60 === 0 ? (e > 0 ? "-" : "+") + Kn(Math.abs(e) / 60, 2) : Qr(e, n);
}
function Kx(e, n = "") {
  const r = e > 0 ? "-" : "+", a = Math.abs(e), i = Math.floor(a / 60), u = a % 60;
  return u === 0 ? r + String(i) : r + String(i) + n + Kn(u, 2);
}
var Rr = {}, ja = {};
Object.defineProperty(ja, "__esModule", { value: !0 });
ja.getTimezoneOffsetInMilliseconds = void 0;
function Gx(e) {
  const n = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
  return n.setUTCFullYear(e.getFullYear()), +e - +n;
}
ja.getTimezoneOffsetInMilliseconds = Gx;
var En = {};
Object.defineProperty(En, "__esModule", { value: !0 });
En.tzPattern = void 0;
En.tzPattern = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;
Object.defineProperty(Rr, "__esModule", { value: !0 });
Rr.toDate = void 0;
const Ks = ja, Jx = gr, kx = En, Ol = 36e5, Gs = 6e4, e2 = 2, Je = {
  dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
  datePattern: /^([0-9W+-]+)(.*)/,
  // year tokens
  YY: /^(\d{2})$/,
  YYY: [
    /^([+-]\d{2})$/,
    // 0 additional digits
    /^([+-]\d{3})$/,
    // 1 additional digit
    /^([+-]\d{4})$/
    // 2 additional digits
  ],
  YYYY: /^(\d{4})/,
  YYYYY: [
    /^([+-]\d{4})/,
    // 0 additional digits
    /^([+-]\d{5})/,
    // 1 additional digit
    /^([+-]\d{6})/
    // 2 additional digits
  ],
  // date tokens
  MM: /^-(\d{2})$/,
  DDD: /^-?(\d{3})$/,
  MMDD: /^-?(\d{2})-?(\d{2})$/,
  Www: /^-?W(\d{2})$/,
  WwwD: /^-?W(\d{2})-?(\d{1})$/,
  HH: /^(\d{2}([.,]\d*)?)$/,
  HHMM: /^(\d{2}):?(\d{2}([.,]\d*)?)$/,
  HHMMSS: /^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,
  // time zone tokens (to identify the presence of a tz)
  timeZone: kx.tzPattern
};
function t2(e, n = {}) {
  if (arguments.length < 1)
    throw new TypeError("1 argument required, but only " + arguments.length + " present");
  if (e === null)
    return /* @__PURE__ */ new Date(NaN);
  const r = n.additionalDigits == null ? e2 : Number(n.additionalDigits);
  if (r !== 2 && r !== 1 && r !== 0)
    throw new RangeError("additionalDigits must be 0, 1 or 2");
  if (e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]")
    return new Date(e.getTime());
  if (typeof e == "number" || Object.prototype.toString.call(e) === "[object Number]")
    return new Date(e);
  if (Object.prototype.toString.call(e) !== "[object String]")
    return /* @__PURE__ */ new Date(NaN);
  const a = r2(e), { year: i, restDateString: u } = n2(a.date, r), l = a2(u, i);
  if (l === null || isNaN(l.getTime()))
    return /* @__PURE__ */ new Date(NaN);
  if (l) {
    const d = l.getTime();
    let c = 0, o;
    if (a.time && (c = i2(a.time), c === null || isNaN(c)))
      return /* @__PURE__ */ new Date(NaN);
    if (a.timeZone || n.timeZone) {
      if (o = (0, Jx.tzParseTimezone)(a.timeZone || n.timeZone, new Date(d + c)), isNaN(o))
        return /* @__PURE__ */ new Date(NaN);
    } else
      o = (0, Ks.getTimezoneOffsetInMilliseconds)(new Date(d + c)), o = (0, Ks.getTimezoneOffsetInMilliseconds)(new Date(d + c + o));
    return new Date(d + c + o);
  } else
    return /* @__PURE__ */ new Date(NaN);
}
Rr.toDate = t2;
function r2(e) {
  const n = {};
  let r = Je.dateTimePattern.exec(e), a;
  if (r ? (n.date = r[1], a = r[3]) : (r = Je.datePattern.exec(e), r ? (n.date = r[1], a = r[2]) : (n.date = null, a = e)), a) {
    const i = Je.timeZone.exec(a);
    i ? (n.time = a.replace(i[1], ""), n.timeZone = i[1].trim()) : n.time = a;
  }
  return n;
}
function n2(e, n) {
  if (e) {
    const r = Je.YYY[n], a = Je.YYYYY[n];
    let i = Je.YYYY.exec(e) || a.exec(e);
    if (i) {
      const u = i[1];
      return {
        year: parseInt(u, 10),
        restDateString: e.slice(u.length)
      };
    }
    if (i = Je.YY.exec(e) || r.exec(e), i) {
      const u = i[1];
      return {
        year: parseInt(u, 10) * 100,
        restDateString: e.slice(u.length)
      };
    }
  }
  return {
    year: null
  };
}
function a2(e, n) {
  if (n === null)
    return null;
  let r, a, i;
  if (!e || !e.length)
    return r = /* @__PURE__ */ new Date(0), r.setUTCFullYear(n), r;
  let u = Je.MM.exec(e);
  if (u)
    return r = /* @__PURE__ */ new Date(0), a = parseInt(u[1], 10) - 1, ks(n, a) ? (r.setUTCFullYear(n, a), r) : /* @__PURE__ */ new Date(NaN);
  if (u = Je.DDD.exec(e), u) {
    r = /* @__PURE__ */ new Date(0);
    const l = parseInt(u[1], 10);
    return d2(n, l) ? (r.setUTCFullYear(n, 0, l), r) : /* @__PURE__ */ new Date(NaN);
  }
  if (u = Je.MMDD.exec(e), u) {
    r = /* @__PURE__ */ new Date(0), a = parseInt(u[1], 10) - 1;
    const l = parseInt(u[2], 10);
    return ks(n, a, l) ? (r.setUTCFullYear(n, a, l), r) : /* @__PURE__ */ new Date(NaN);
  }
  if (u = Je.Www.exec(e), u)
    return i = parseInt(u[1], 10) - 1, eo(i) ? Js(n, i) : /* @__PURE__ */ new Date(NaN);
  if (u = Je.WwwD.exec(e), u) {
    i = parseInt(u[1], 10) - 1;
    const l = parseInt(u[2], 10) - 1;
    return eo(i, l) ? Js(n, i, l) : /* @__PURE__ */ new Date(NaN);
  }
  return null;
}
function i2(e) {
  let n, r, a = Je.HH.exec(e);
  if (a)
    return n = parseFloat(a[1].replace(",", ".")), Dl(n) ? n % 24 * Ol : NaN;
  if (a = Je.HHMM.exec(e), a)
    return n = parseInt(a[1], 10), r = parseFloat(a[2].replace(",", ".")), Dl(n, r) ? n % 24 * Ol + r * Gs : NaN;
  if (a = Je.HHMMSS.exec(e), a) {
    n = parseInt(a[1], 10), r = parseInt(a[2], 10);
    const i = parseFloat(a[3].replace(",", "."));
    return Dl(n, r, i) ? n % 24 * Ol + r * Gs + i * 1e3 : NaN;
  }
  return null;
}
function Js(e, n, r) {
  n = n || 0, r = r || 0;
  const a = /* @__PURE__ */ new Date(0);
  a.setUTCFullYear(e, 0, 4);
  const i = a.getUTCDay() || 7, u = n * 7 + r + 1 - i;
  return a.setUTCDate(a.getUTCDate() + u), a;
}
const u2 = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], l2 = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
function O0(e) {
  return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
}
function ks(e, n, r) {
  if (n < 0 || n > 11)
    return !1;
  if (r != null) {
    if (r < 1)
      return !1;
    const a = O0(e);
    if (a && r > l2[n] || !a && r > u2[n])
      return !1;
  }
  return !0;
}
function d2(e, n) {
  if (n < 1)
    return !1;
  const r = O0(e);
  return !(r && n > 366 || !r && n > 365);
}
function eo(e, n) {
  return !(e < 0 || e > 52 || n != null && (n < 0 || n > 6));
}
function Dl(e, n, r) {
  return !(e < 0 || e >= 25 || n != null && (n < 0 || n >= 60) || r != null && (r < 0 || r >= 60));
}
Object.defineProperty(Fn, "__esModule", { value: !0 });
Fn.format = void 0;
const c2 = _a, s2 = Sa, o2 = Rr, f2 = /([xXOz]+)|''|'(''|[^'])+('|$)/g;
function h2(e, n, r = {}) {
  n = String(n);
  const a = n.match(f2);
  if (a) {
    const i = (0, o2.toDate)(r.originalDate || e, r);
    n = a.reduce(function(u, l) {
      if (l[0] === "'")
        return u;
      const d = u.indexOf(l), c = u[d - 1] === "'", o = u.replace(l, "'" + s2.formatters[l[0]](i, l, r) + "'");
      return c ? o.substring(0, d - 1) + o.substring(d + 1) : o;
    }, n);
  }
  return (0, c2.format)(e, n, r);
}
Fn.format = h2;
var xa = {}, yn = {};
Object.defineProperty(yn, "__esModule", { value: !0 });
yn.toZonedTime = void 0;
const m2 = gr, v2 = Rr;
function _2(e, n, r) {
  e = (0, v2.toDate)(e, r);
  const a = (0, m2.tzParseTimezone)(n, e, !0), i = new Date(e.getTime() - a), u = /* @__PURE__ */ new Date(0);
  return u.setFullYear(i.getUTCFullYear(), i.getUTCMonth(), i.getUTCDate()), u.setHours(i.getUTCHours(), i.getUTCMinutes(), i.getUTCSeconds(), i.getUTCMilliseconds()), u;
}
yn.toZonedTime = _2;
Object.defineProperty(xa, "__esModule", { value: !0 });
xa.formatInTimeZone = void 0;
const g2 = Fn, b2 = yn;
function O2(e, n, r, a) {
  return a = Object.assign(Object.assign({}, a), { timeZone: n, originalDate: e }), (0, g2.format)((0, b2.toZonedTime)(e, n, { timeZone: a.timeZone }), r, a);
}
xa.formatInTimeZone = O2;
var Fa = {};
Object.defineProperty(Fa, "__esModule", { value: !0 });
Fa.fromZonedTime = void 0;
const to = Rr, D2 = En, M2 = gr, P2 = Yn;
function T2(e, n, r) {
  if (typeof e == "string" && !e.match(D2.tzPattern))
    return (0, to.toDate)(e, Object.assign(Object.assign({}, r), { timeZone: n }));
  e = (0, to.toDate)(e, r);
  const a = (0, P2.newDateUTC)(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), i = (0, M2.tzParseTimezone)(n, new Date(a));
  return new Date(a + i);
}
Fa.fromZonedTime = T2;
var Ya = {};
Object.defineProperty(Ya, "__esModule", { value: !0 });
Ya.getTimezoneOffset = void 0;
const w2 = gr;
function S2(e, n) {
  return -(0, w2.tzParseTimezone)(e, n);
}
Ya.getTimezoneOffset = S2;
(function(e) {
  Object.defineProperty(e, "__esModule", { value: !0 }), e.toDate = e.getTimezoneOffset = e.toZonedTime = e.fromZonedTime = e.formatInTimeZone = e.format = void 0;
  var n = Fn;
  Object.defineProperty(e, "format", { enumerable: !0, get: function() {
    return n.format;
  } });
  var r = xa;
  Object.defineProperty(e, "formatInTimeZone", { enumerable: !0, get: function() {
    return r.formatInTimeZone;
  } });
  var a = Fa;
  Object.defineProperty(e, "fromZonedTime", { enumerable: !0, get: function() {
    return a.fromZonedTime;
  } });
  var i = yn;
  Object.defineProperty(e, "toZonedTime", { enumerable: !0, get: function() {
    return i.toZonedTime;
  } });
  var u = Ya;
  Object.defineProperty(e, "getTimezoneOffset", { enumerable: !0, get: function() {
    return u.getTimezoneOffset;
  } });
  var l = Rr;
  Object.defineProperty(e, "toDate", { enumerable: !0, get: function() {
    return l.toDate;
  } });
})(g0);
var $n = {};
Object.defineProperty($n, "__esModule", { value: !0 });
$n.timePickerInjectionKey = void 0;
const C2 = bt;
$n.timePickerInjectionKey = (0, C2.createInjectionKey)("n-time-picker");
var gc = {}, bc = {};
Object.defineProperty(bc, "__esModule", { value: !0 });
const ro = ke;
bc.default = (0, ro.defineComponent)({
  name: "TimePickerPanelCol",
  props: {
    clsPrefix: {
      type: String,
      required: !0
    },
    data: {
      type: Array,
      required: !0
    },
    activeValue: {
      type: [Number, String],
      default: null
    },
    // It should be required but vue's type seems to have bugs
    onItemClick: Function
  },
  render() {
    const { activeValue: e, onItemClick: n, clsPrefix: r } = this;
    return this.data.map((a) => {
      const { label: i, disabled: u, value: l } = a, d = e === l;
      return (0, ro.h)("div", { key: i, "data-active": d ? "" : null, class: [
        `${r}-time-picker-col__item`,
        d && `${r}-time-picker-col__item--active`,
        u && `${r}-time-picker-col__item--disabled`
      ], onClick: n && !u ? () => {
        n(l);
      } : void 0 }, i);
    });
  }
});
var Oc = {};
(function(e) {
  Object.defineProperty(e, "__esModule", { value: !0 }), e.time = void 0, e.getFixValue = a, e.getTimeUnits = i, e.isTimeInStep = u, e.findSimilarTime = l, e.getAmPm = d;
  const n = er, r = bt;
  e.time = {
    amHours: [
      "00",
      "01",
      "02",
      "03",
      "04",
      "05",
      "06",
      "07",
      "08",
      "09",
      "10",
      "11"
    ],
    pmHours: [
      "12",
      "01",
      "02",
      "03",
      "04",
      "05",
      "06",
      "07",
      "08",
      "09",
      "10",
      "11"
    ],
    hours: [
      "00",
      "01",
      "02",
      "03",
      "04",
      "05",
      "06",
      "07",
      "08",
      "09",
      "10",
      "11",
      "12",
      "13",
      "14",
      "15",
      "16",
      "17",
      "18",
      "19",
      "20",
      "21",
      "22",
      "23"
    ],
    minutes: [
      "00",
      "01",
      "02",
      "03",
      "04",
      "05",
      "06",
      "07",
      "08",
      "09",
      "10",
      "11",
      "12",
      "13",
      "14",
      "15",
      "16",
      "17",
      "18",
      "19",
      "20",
      "21",
      "22",
      "23",
      "24",
      "25",
      "26",
      "27",
      "28",
      "29",
      "30",
      "31",
      "32",
      "33",
      "34",
      "35",
      "36",
      "37",
      "38",
      "39",
      "40",
      "41",
      "42",
      "43",
      "44",
      "45",
      "46",
      "47",
      "48",
      "49",
      "50",
      "51",
      "52",
      "53",
      "54",
      "55",
      "56",
      "57",
      "58",
      "59"
    ],
    seconds: [
      "00",
      "01",
      "02",
      "03",
      "04",
      "05",
      "06",
      "07",
      "08",
      "09",
      "10",
      "11",
      "12",
      "13",
      "14",
      "15",
      "16",
      "17",
      "18",
      "19",
      "20",
      "21",
      "22",
      "23",
      "24",
      "25",
      "26",
      "27",
      "28",
      "29",
      "30",
      "31",
      "32",
      "33",
      "34",
      "35",
      "36",
      "37",
      "38",
      "39",
      "40",
      "41",
      "42",
      "43",
      "44",
      "45",
      "46",
      "47",
      "48",
      "49",
      "50",
      "51",
      "52",
      "53",
      "54",
      "55",
      "56",
      "57",
      "58",
      "59"
    ],
    period: ["AM", "PM"]
  };
  function a(c) {
    return `00${c}`.slice(-2);
  }
  function i(c, o, f) {
    return Array.isArray(o) ? (f === "am" ? o.filter((h) => h < 12) : f === "pm" ? o.filter((h) => h >= 12).map((h) => h === 12 ? 12 : h - 12) : o).map((h) => a(h)) : typeof o == "number" ? f === "am" ? c.filter((h) => {
      const v = Number(h);
      return v < 12 && v % o === 0;
    }) : f === "pm" ? c.filter((h) => {
      const v = Number(h);
      return v >= 12 && v % o === 0;
    }).map((h) => {
      const v = Number(h);
      return a(v === 12 ? 12 : v - 12);
    }) : c.filter((h) => Number(h) % o === 0) : f === "am" ? c.filter((h) => Number(h) < 12) : f === "pm" ? c.map((h) => Number(h)).filter((h) => Number(h) >= 12).map((h) => a(h === 12 ? 12 : h - 12)) : c;
  }
  function u(c, o, f) {
    return f ? typeof f == "number" ? c % f === 0 : f.includes(c) : !0;
  }
  function l(c, o, f) {
    const h = i(e.time[o], f).map(Number);
    let v, P;
    for (let S = 0; S < h.length; ++S) {
      const I = h[S];
      if (I === c)
        return I;
      if (I > c) {
        P = I;
        break;
      }
      v = I;
    }
    return v === void 0 ? (P || (0, r.throwError)("time-picker", "Please set 'hours' or 'minutes' or 'seconds' props"), P) : P === void 0 || P - c > c - v ? v : P;
  }
  function d(c) {
    return (0, n.getHours)(c) < 12 ? "am" : "pm";
  }
})(Oc);
var I2 = Oe && Oe.__importDefault || function(e) {
  return e && e.__esModule ? e : { default: e };
};
Object.defineProperty(gc, "__esModule", { value: !0 });
const ne = ke, fn = kt, Ml = jr, j2 = $n, qn = I2(bc), Kt = Oc, x2 = {
  actions: {
    type: Array,
    default: () => ["now", "confirm"]
  },
  showHour: {
    type: Boolean,
    default: !0
  },
  showMinute: {
    type: Boolean,
    default: !0
  },
  showSecond: {
    type: Boolean,
    default: !0
  },
  showPeriod: {
    type: Boolean,
    default: !0
  },
  isHourInvalid: Boolean,
  isMinuteInvalid: Boolean,
  isSecondInvalid: Boolean,
  isAmPmInvalid: Boolean,
  isValueInvalid: Boolean,
  hourValue: {
    type: Number,
    default: null
  },
  minuteValue: {
    type: Number,
    default: null
  },
  secondValue: {
    type: Number,
    default: null
  },
  amPmValue: {
    type: String,
    default: null
  },
  isHourDisabled: Function,
  isMinuteDisabled: Function,
  isSecondDisabled: Function,
  onHourClick: {
    type: Function,
    required: !0
  },
  onMinuteClick: {
    type: Function,
    required: !0
  },
  onSecondClick: {
    type: Function,
    required: !0
  },
  onAmPmClick: {
    type: Function,
    required: !0
  },
  onNowClick: Function,
  clearText: String,
  nowText: String,
  confirmText: String,
  transitionDisabled: Boolean,
  onClearClick: Function,
  onConfirmClick: Function,
  onFocusin: Function,
  onFocusout: Function,
  onFocusDetectorFocus: Function,
  onKeydown: Function,
  hours: [Number, Array],
  minutes: [Number, Array],
  seconds: [Number, Array],
  use12Hours: Boolean
};
gc.default = (0, ne.defineComponent)({
  name: "TimePickerPanel",
  props: x2,
  setup(e) {
    const { mergedThemeRef: n, mergedClsPrefixRef: r } = (0, ne.inject)(j2.timePickerInjectionKey), a = (0, ne.computed)(() => {
      const { isHourDisabled: d, hours: c, use12Hours: o, amPmValue: f } = e;
      if (o) {
        const h = f ?? (0, Kt.getAmPm)(Date.now());
        return (0, Kt.getTimeUnits)(Kt.time.hours, c, h).map((v) => {
          const P = Number(v), S = h === "pm" && P !== 12 ? P + 12 : P;
          return {
            label: v,
            value: S,
            disabled: d ? d(S) : !1
          };
        });
      } else
        return (0, Kt.getTimeUnits)(Kt.time.hours, c).map((h) => ({
          label: h,
          value: Number(h),
          disabled: d ? d(Number(h)) : !1
        }));
    }), i = (0, ne.computed)(() => {
      const { isMinuteDisabled: d, minutes: c } = e;
      return (0, Kt.getTimeUnits)(Kt.time.minutes, c).map((o) => ({
        label: o,
        value: Number(o),
        disabled: d ? d(Number(o), e.hourValue) : !1
      }));
    }), u = (0, ne.computed)(() => {
      const { isSecondDisabled: d, seconds: c } = e;
      return (0, Kt.getTimeUnits)(Kt.time.seconds, c).map((o) => ({
        label: o,
        value: Number(o),
        disabled: d ? d(Number(o), e.minuteValue, e.hourValue) : !1
      }));
    }), l = (0, ne.computed)(() => {
      const { isHourDisabled: d } = e;
      let c = !0, o = !0;
      for (let f = 0; f < 12; ++f)
        if (!(d != null && d(f))) {
          c = !1;
          break;
        }
      for (let f = 12; f < 24; ++f)
        if (!(d != null && d(f))) {
          o = !1;
          break;
        }
      return [
        {
          label: "AM",
          value: "am",
          disabled: c
        },
        {
          label: "PM",
          value: "pm",
          disabled: o
        }
      ];
    });
    return {
      mergedTheme: n,
      mergedClsPrefix: r,
      hours: a,
      minutes: i,
      seconds: u,
      amPm: l,
      hourScrollRef: (0, ne.ref)(null),
      minuteScrollRef: (0, ne.ref)(null),
      secondScrollRef: (0, ne.ref)(null),
      amPmScrollRef: (0, ne.ref)(null)
    };
  },
  render() {
    var e, n, r, a;
    const { mergedClsPrefix: i, mergedTheme: u } = this;
    return (0, ne.h)(
      "div",
      { tabindex: 0, class: `${i}-time-picker-panel`, onFocusin: this.onFocusin, onFocusout: this.onFocusout, onKeydown: this.onKeydown },
      (0, ne.h)(
        "div",
        { class: `${i}-time-picker-cols` },
        this.showHour ? (0, ne.h)(
          "div",
          { class: [
            `${i}-time-picker-col`,
            this.isHourInvalid && `${i}-time-picker-col--invalid`,
            this.transitionDisabled && `${i}-time-picker-col--transition-disabled`
          ] },
          (0, ne.h)(fn.NScrollbar, { ref: "hourScrollRef", theme: u.peers.Scrollbar, themeOverrides: u.peerOverrides.Scrollbar }, {
            default: () => [
              (0, ne.h)(qn.default, { clsPrefix: i, data: this.hours, activeValue: this.hourValue, onItemClick: this.onHourClick }),
              (0, ne.h)("div", { class: `${i}-time-picker-col__padding` })
            ]
          })
        ) : null,
        this.showMinute ? (0, ne.h)(
          "div",
          { class: [
            `${i}-time-picker-col`,
            this.transitionDisabled && `${i}-time-picker-col--transition-disabled`,
            this.isMinuteInvalid && `${i}-time-picker-col--invalid`
          ] },
          (0, ne.h)(fn.NScrollbar, { ref: "minuteScrollRef", theme: u.peers.Scrollbar, themeOverrides: u.peerOverrides.Scrollbar }, {
            default: () => [
              (0, ne.h)(qn.default, { clsPrefix: i, data: this.minutes, activeValue: this.minuteValue, onItemClick: this.onMinuteClick }),
              (0, ne.h)("div", { class: `${i}-time-picker-col__padding` })
            ]
          })
        ) : null,
        this.showSecond ? (0, ne.h)(
          "div",
          { class: [
            `${i}-time-picker-col`,
            this.isSecondInvalid && `${i}-time-picker-col--invalid`,
            this.transitionDisabled && `${i}-time-picker-col--transition-disabled`
          ] },
          (0, ne.h)(fn.NScrollbar, { ref: "secondScrollRef", theme: u.peers.Scrollbar, themeOverrides: u.peerOverrides.Scrollbar }, {
            default: () => [
              (0, ne.h)(qn.default, { clsPrefix: i, data: this.seconds, activeValue: this.secondValue, onItemClick: this.onSecondClick }),
              (0, ne.h)("div", { class: `${i}-time-picker-col__padding` })
            ]
          })
        ) : null,
        this.use12Hours ? (0, ne.h)(
          "div",
          { class: [
            `${i}-time-picker-col`,
            this.isAmPmInvalid && `${i}-time-picker-col--invalid`,
            this.transitionDisabled && `${i}-time-picker-col--transition-disabled`
          ] },
          (0, ne.h)(fn.NScrollbar, { ref: "amPmScrollRef", theme: u.peers.Scrollbar, themeOverrides: u.peerOverrides.Scrollbar }, {
            default: () => [
              (0, ne.h)(qn.default, { clsPrefix: i, data: this.amPm, activeValue: this.amPmValue, onItemClick: this.onAmPmClick }),
              (0, ne.h)("div", { class: `${i}-time-picker-col__padding` })
            ]
          })
        ) : null
      ),
      !((e = this.actions) === null || e === void 0) && e.length ? (0, ne.h)(
        "div",
        { class: `${i}-time-picker-actions` },
        !((n = this.actions) === null || n === void 0) && n.includes("clear") ? (0, ne.h)(Ml.NButton, { theme: u.peers.Button, themeOverrides: u.peerOverrides.Button, size: "tiny", onClick: this.onClearClick }, { default: () => this.clearText }) : null,
        !((r = this.actions) === null || r === void 0) && r.includes("now") ? (0, ne.h)(Ml.NButton, { size: "tiny", theme: u.peers.Button, themeOverrides: u.peerOverrides.Button, onClick: this.onNowClick }, { default: () => this.nowText }) : null,
        !((a = this.actions) === null || a === void 0) && a.includes("confirm") ? (0, ne.h)(Ml.NButton, { size: "tiny", type: "primary", class: `${i}-time-picker-actions__confirm`, theme: u.peers.Button, themeOverrides: u.peerOverrides.Button, disabled: this.isValueInvalid, onClick: this.onConfirmClick }, { default: () => this.confirmText }) : null
      ) : null,
      (0, ne.h)(fn.NBaseFocusDetector, { onFocus: this.onFocusDetectorFocus })
    );
  }
});
var Dc = {};
Object.defineProperty(Dc, "__esModule", {
  value: !0
});
const F2 = _o, Te = vo;
Dc.default = (0, Te.c)([(0, Te.cB)("time-picker", `
 z-index: auto;
 position: relative;
 `, [(0, Te.cB)("time-picker-icon", `
 color: var(--n-icon-color-override);
 transition: color .3s var(--n-bezier);
 `), (0, Te.cM)("disabled", [(0, Te.cB)("time-picker-icon", `
 color: var(--n-icon-color-disabled-override);
 `)])]), (0, Te.cB)("time-picker-panel", `
 transition:
 box-shadow .3s var(--n-bezier),
 background-color .3s var(--n-bezier);
 outline: none;
 font-size: var(--n-item-font-size);
 border-radius: var(--n-border-radius);
 margin: 4px 0;
 min-width: 104px;
 overflow: hidden;
 background-color: var(--n-panel-color);
 box-shadow: var(--n-panel-box-shadow);
 `, [(0, F2.fadeInScaleUpTransition)(), (0, Te.cB)("time-picker-actions", `
 padding: var(--n-panel-action-padding);
 align-items: center;
 display: flex;
 justify-content: space-evenly;
 `), (0, Te.cB)("time-picker-cols", `
 height: calc(var(--n-item-height) * 6);
 display: flex;
 position: relative;
 transition: border-color .3s var(--n-bezier);
 border-bottom: 1px solid var(--n-panel-divider-color);
 `), (0, Te.cB)("time-picker-col", `
 flex-grow: 1;
 min-width: var(--n-item-width);
 height: calc(var(--n-item-height) * 6);
 flex-direction: column;
 transition: box-shadow .3s var(--n-bezier);
 `, [(0, Te.cM)("transition-disabled", [(0, Te.cE)("item", "transition: none;", [(0, Te.c)("&::before", "transition: none;")])]), (0, Te.cE)("padding", `
 height: calc(var(--n-item-height) * 5);
 `), (0, Te.c)("&:first-child", "min-width: calc(var(--n-item-width) + 4px);", [(0, Te.cE)("item", [(0, Te.c)("&::before", "left: 4px;")])]), (0, Te.cE)("item", `
 cursor: pointer;
 height: var(--n-item-height);
 display: flex;
 align-items: center;
 justify-content: center;
 transition: 
 color .3s var(--n-bezier),
 background-color .3s var(--n-bezier),
 opacity .3s var(--n-bezier),
 text-decoration-color .3s var(--n-bezier);
 background: #0000;
 text-decoration-color: #0000;
 color: var(--n-item-text-color);
 z-index: 0;
 box-sizing: border-box;
 padding-top: 4px;
 position: relative;
 `, [(0, Te.c)("&::before", `
 content: "";
 transition: background-color .3s var(--n-bezier);
 z-index: -1;
 position: absolute;
 left: 0;
 right: 4px;
 top: 4px;
 bottom: 0;
 border-radius: var(--n-item-border-radius);
 `), (0, Te.cNotM)("disabled", [(0, Te.c)("&:hover::before", `
 background-color: var(--n-item-color-hover);
 `)]), (0, Te.cM)("active", `
 color: var(--n-item-text-color-active);
 `, [(0, Te.c)("&::before", `
 background-color: var(--n-item-color-hover);
 `)]), (0, Te.cM)("disabled", `
 opacity: var(--n-item-opacity-disabled);
 cursor: not-allowed;
 `)]), (0, Te.cM)("invalid", [(0, Te.cE)("item", [(0, Te.cM)("active", `
 text-decoration: line-through;
 text-decoration-color: var(--n-item-text-color-active);
 `)])])])])]);
(function(e) {
  var n = Oe && Oe.__importDefault || function(T) {
    return T && T.__esModule ? T : { default: T };
  };
  Object.defineProperty(e, "__esModule", { value: !0 }), e.timePickerProps = void 0;
  const r = er, a = g0, i = mn, u = El, l = Yl, d = ke, c = vn, o = kt, f = Zr, h = Ir, v = bt, P = ze, S = ea, I = Ta, H = $n, x = n(gc), Z = n(Dc), Q = Oc;
  function F(T, X) {
    return T === void 0 ? !0 : Array.isArray(T) ? T.every((V) => V >= 0 && V <= X) : T >= 0 && T <= X;
  }
  e.timePickerProps = Object.assign(Object.assign({}, h.useTheme.props), {
    to: v.useAdjustedTo.propTo,
    bordered: {
      type: Boolean,
      default: void 0
    },
    actions: Array,
    defaultValue: {
      type: Number,
      default: null
    },
    defaultFormattedValue: String,
    placeholder: String,
    placement: {
      type: String,
      default: "bottom-start"
    },
    value: Number,
    format: {
      type: String,
      default: "HH:mm:ss"
    },
    valueFormat: String,
    formattedValue: String,
    isHourDisabled: Function,
    size: String,
    isMinuteDisabled: Function,
    isSecondDisabled: Function,
    inputReadonly: Boolean,
    clearable: Boolean,
    status: String,
    "onUpdate:value": [Function, Array],
    onUpdateValue: [Function, Array],
    "onUpdate:show": [Function, Array],
    onUpdateShow: [Function, Array],
    onUpdateFormattedValue: [Function, Array],
    "onUpdate:formattedValue": [Function, Array],
    onBlur: [Function, Array],
    onConfirm: [Function, Array],
    onClear: Function,
    onFocus: [Function, Array],
    // https://www.iana.org/time-zones
    timeZone: String,
    showIcon: {
      type: Boolean,
      default: !0
    },
    disabled: {
      type: Boolean,
      default: void 0
    },
    show: {
      type: Boolean,
      default: void 0
    },
    hours: {
      type: [Number, Array],
      validator: (T) => F(T, 23)
    },
    minutes: {
      type: [Number, Array],
      validator: (T) => F(T, 59)
    },
    seconds: {
      type: [Number, Array],
      validator: (T) => F(T, 59)
    },
    use12Hours: Boolean,
    // private
    stateful: {
      type: Boolean,
      default: !0
    },
    // deprecated
    onChange: [Function, Array]
  }), e.default = (0, d.defineComponent)({
    name: "TimePicker",
    props: e.timePickerProps,
    setup(T) {
      process.env.NODE_ENV !== "production" && (0, d.watchEffect)(() => {
        T.onChange !== void 0 && (0, v.warnOnce)("time-picker", "`on-change` is deprecated, please use `on-update:value` instead.");
      });
      const { mergedBorderedRef: X, mergedClsPrefixRef: V, namespaceRef: oe, inlineThemeDisabled: Ie, mergedComponentPropsRef: se } = (0, h.useConfig)(T), { localeRef: de, dateLocaleRef: L } = (0, h.useLocale)("TimePicker"), w = (0, h.useFormItem)(T, {
        mergedSize: (s) => {
          var m, b;
          const { size: R } = T;
          if (R)
            return R;
          const { mergedSize: ce } = s || {};
          if (ce != null && ce.value)
            return ce.value;
          const q = (b = (m = se == null ? void 0 : se.value) === null || m === void 0 ? void 0 : m.TimePicker) === null || b === void 0 ? void 0 : b.size;
          return q || "medium";
        }
      }), { mergedSizeRef: Pe, mergedDisabledRef: fe, mergedStatusRef: Fe } = w, ee = (0, h.useTheme)("TimePicker", "-time-picker", Z.default, I.timePickerLight, T, V), te = (0, l.useKeyboard)(), he = (0, d.ref)(null), me = (0, d.ref)(null), je = (0, d.computed)(() => ({
        locale: L.value.locale
      }));
      function Se(s) {
        return s === null ? null : (0, P.strictParse)(s, T.valueFormat || T.format, /* @__PURE__ */ new Date(), je.value).getTime();
      }
      const { defaultValue: Xe, defaultFormattedValue: ue } = T, E = (0, d.ref)(ue !== void 0 ? Se(ue) : Xe), y = (0, d.computed)(() => {
        const { formattedValue: s } = T;
        if (s !== void 0)
          return Se(s);
        const { value: m } = T;
        return m !== void 0 ? m : E.value;
      }), K = (0, d.computed)(() => {
        const { timeZone: s } = T;
        return s ? (m, b, R) => (0, a.formatInTimeZone)(m, s, b, R) : (m, b, R) => (0, r.format)(m, b, R);
      }), Ce = (0, d.ref)("");
      (0, d.watch)(() => T.timeZone, () => {
        const s = y.value;
        Ce.value = s === null ? "" : K.value(s, T.format, je.value);
      }, {
        immediate: !0
      });
      const we = (0, d.ref)(!1), et = (0, d.toRef)(T, "show"), ve = (0, l.useMergedState)(et, we), Ee = (0, d.ref)(y.value), tt = (0, d.ref)(!1), ft = (0, d.computed)(() => de.value.clear), Ot = (0, d.computed)(() => de.value.now), Dt = (0, d.computed)(() => T.placeholder !== void 0 ? T.placeholder : de.value.placeholder), Mt = (0, d.computed)(() => de.value.negativeText), Pt = (0, d.computed)(() => de.value.positiveText), Tt = (0, d.computed)(() => /H|h|K|k/.test(T.format)), wt = (0, d.computed)(() => T.format.includes("m")), ht = (0, d.computed)(() => T.format.includes("s")), ye = (0, d.computed)(() => {
        const { value: s } = y;
        return s === null ? null : Number(K.value(s, "HH", je.value));
      }), lt = (0, d.computed)(() => {
        const { value: s } = y;
        return s === null ? null : Number(K.value(s, "mm", je.value));
      }), mt = (0, d.computed)(() => {
        const { value: s } = y;
        return s === null ? null : Number(K.value(s, "ss", je.value));
      }), Ze = (0, d.computed)(() => {
        const { isHourDisabled: s } = T;
        return ye.value === null ? !1 : (0, Q.isTimeInStep)(ye.value, "hours", T.hours) ? s ? s(ye.value) : !1 : !0;
      }), vt = (0, d.computed)(() => {
        const { value: s } = lt, { value: m } = ye;
        if (s === null || m === null)
          return !1;
        if (!(0, Q.isTimeInStep)(s, "minutes", T.minutes))
          return !0;
        const { isMinuteDisabled: b } = T;
        return b ? b(s, m) : !1;
      }), g = (0, d.computed)(() => {
        const { value: s } = lt, { value: m } = ye, { value: b } = mt;
        if (b === null || s === null || m === null)
          return !1;
        if (!(0, Q.isTimeInStep)(b, "seconds", T.seconds))
          return !0;
        const { isSecondDisabled: R } = T;
        return R ? R(b, s, m) : !1;
      }), A = (0, d.computed)(() => Ze.value || vt.value || g.value), re = (0, d.computed)(() => T.format.length + 4), Ut = (0, d.computed)(() => {
        const { value: s } = y;
        return s === null ? null : (0, r.getHours)(s) < 12 ? "am" : "pm";
      });
      function Ft(s, m) {
        const { onUpdateFormattedValue: b, "onUpdate:formattedValue": R } = T;
        b && (0, v.call)(b, s, m), R && (0, v.call)(R, s, m);
      }
      function $e(s) {
        return s === null ? null : K.value(s, T.valueFormat || T.format);
      }
      function ie(s) {
        const { onUpdateValue: m, "onUpdate:value": b, onChange: R } = T, { nTriggerFormChange: ce, nTriggerFormInput: q } = w, _e = $e(s);
        m && (0, v.call)(m, s, _e), b && (0, v.call)(b, s, _e), R && (0, v.call)(R, s, _e), Ft(_e, s), E.value = s, ce(), q();
      }
      function Yt(s) {
        const { onFocus: m } = T, { nTriggerFormFocus: b } = w;
        m && (0, v.call)(m, s), b();
      }
      function dt(s) {
        const { onBlur: m } = T, { nTriggerFormBlur: b } = w;
        m && (0, v.call)(m, s), b();
      }
      function qt() {
        const { onConfirm: s } = T;
        s && (0, v.call)(s, y.value, $e(y.value));
      }
      function Et(s) {
        var m;
        s.stopPropagation(), ie(null), De(null), (m = T.onClear) === null || m === void 0 || m.call(T);
      }
      function rt() {
        Qe({
          returnFocus: !0
        });
      }
      function yt() {
        ie(null), De(null), Qe({
          returnFocus: !0
        });
      }
      function nt(s) {
        s.key === "Escape" && ve.value && (0, v.markEventEffectPerformed)(s);
      }
      function _(s) {
        var m;
        switch (s.key) {
          case "Escape":
            ve.value && ((0, v.markEventEffectPerformed)(s), Qe({
              returnFocus: !0
            }));
            break;
          case "Tab":
            te.shift && s.target === ((m = me.value) === null || m === void 0 ? void 0 : m.$el) && (s.preventDefault(), Qe({
              returnFocus: !0
            }));
            break;
        }
      }
      function j() {
        tt.value = !0, (0, d.nextTick)(() => {
          tt.value = !1;
        });
      }
      function U(s) {
        fe.value || (0, i.happensIn)(s, "clear") || ve.value || Nt();
      }
      function k(s) {
        typeof s != "string" && (y.value === null ? ie((0, r.getTime)((0, r.setHours)((0, r.startOfHour)(/* @__PURE__ */ new Date()), s))) : ie((0, r.getTime)((0, r.setHours)(y.value, s))));
      }
      function Ne(s) {
        typeof s != "string" && (y.value === null ? ie((0, r.getTime)((0, r.setMinutes)((0, r.startOfMinute)(/* @__PURE__ */ new Date()), s))) : ie((0, r.getTime)((0, r.setMinutes)(y.value, s))));
      }
      function Ue(s) {
        typeof s != "string" && (y.value === null ? ie((0, r.getTime)((0, r.setSeconds)((0, r.startOfSecond)(/* @__PURE__ */ new Date()), s))) : ie((0, r.getTime)((0, r.setSeconds)(y.value, s))));
      }
      function qe(s) {
        const { value: m } = y;
        if (m === null) {
          const b = /* @__PURE__ */ new Date(), R = (0, r.getHours)(b);
          s === "pm" && R < 12 ? ie((0, r.getTime)((0, r.setHours)(b, R + 12))) : s === "am" && R >= 12 && ie((0, r.getTime)((0, r.setHours)(b, R - 12))), ie((0, r.getTime)(b));
        } else {
          const b = (0, r.getHours)(m);
          s === "pm" && b < 12 ? ie((0, r.getTime)((0, r.setHours)(m, b + 12))) : s === "am" && b >= 12 && ie((0, r.getTime)((0, r.setHours)(m, b - 12)));
        }
      }
      function De(s) {
        s === void 0 && (s = y.value), s === null ? Ce.value = "" : Ce.value = K.value(s, T.format, je.value);
      }
      function ct(s) {
        Ct(s) || Yt(s);
      }
      function st(s) {
        var m;
        if (!Ct(s))
          if (ve.value) {
            const b = (m = me.value) === null || m === void 0 ? void 0 : m.$el;
            b != null && b.contains(s.relatedTarget) || (De(), dt(s), Qe({
              returnFocus: !1
            }));
          } else
            De(), dt(s);
      }
      function Ke() {
        fe.value || ve.value || Nt();
      }
      function We() {
        fe.value || (De(), Qe({
          returnFocus: !1
        }));
      }
      function $t() {
        if (!me.value)
          return;
        const { hourScrollRef: s, minuteScrollRef: m, secondScrollRef: b, amPmScrollRef: R } = me.value;
        [s, m, b, R].forEach((ce) => {
          var q;
          if (!ce)
            return;
          const _e = (q = ce.contentRef) === null || q === void 0 ? void 0 : q.querySelector("[data-active]");
          _e && ce.scrollTo({
            top: _e.offsetTop
          });
        });
      }
      function St(s) {
        we.value = s;
        const { onUpdateShow: m, "onUpdate:show": b } = T;
        m && (0, v.call)(m, s), b && (0, v.call)(b, s);
      }
      function Ct(s) {
        var m, b, R;
        return !!(!((b = (m = he.value) === null || m === void 0 ? void 0 : m.wrapperElRef) === null || b === void 0) && b.contains(s.relatedTarget) || !((R = me.value) === null || R === void 0) && R.$el.contains(s.relatedTarget));
      }
      function Nt() {
        Ee.value = y.value, St(!0), (0, d.nextTick)($t);
      }
      function Rt(s) {
        var m, b;
        ve.value && !(!((b = (m = he.value) === null || m === void 0 ? void 0 : m.wrapperElRef) === null || b === void 0) && b.contains((0, i.getPreciseEventTarget)(s))) && Qe({
          returnFocus: !1
        });
      }
      function Qe({ returnFocus: s }) {
        var m;
        ve.value && (St(!1), s && ((m = he.value) === null || m === void 0 || m.focus()));
      }
      function Qt(s) {
        if (s === "") {
          ie(null);
          return;
        }
        const m = (0, P.strictParse)(s, T.format, /* @__PURE__ */ new Date(), je.value);
        if (Ce.value = s, (0, r.isValid)(m)) {
          const { value: b } = y;
          if (b !== null) {
            const R = (0, r.set)(b, {
              hours: (0, r.getHours)(m),
              minutes: (0, r.getMinutes)(m),
              seconds: (0, r.getSeconds)(m),
              milliseconds: (0, r.getMilliseconds)(m)
            });
            ie((0, r.getTime)(R));
          } else
            ie((0, r.getTime)(m));
        }
      }
      function Zt() {
        ie(Ee.value), St(!1);
      }
      function pt() {
        const s = /* @__PURE__ */ new Date(), m = {
          hours: r.getHours,
          minutes: r.getMinutes,
          seconds: r.getSeconds
        }, [b, R, ce] = ["hours", "minutes", "seconds"].map((_e) => !T[_e] || (0, Q.isTimeInStep)(m[_e](s), _e, T[_e]) ? m[_e](s) : (0, Q.findSimilarTime)(m[_e](s), _e, T[_e])), q = (0, r.setSeconds)((0, r.setMinutes)((0, r.setHours)(y.value ? y.value : (0, r.getTime)(s), b), R), ce);
        ie((0, r.getTime)(q));
      }
      function pe() {
        De(), qt(), Qe({
          returnFocus: !0
        });
      }
      function Xt(s) {
        Ct(s) || (De(), dt(s), Qe({
          returnFocus: !1
        }));
      }
      (0, d.watch)(y, (s) => {
        De(s), j(), (0, d.nextTick)($t);
      }), (0, d.watch)(ve, () => {
        A.value && ie(Ee.value);
      }), (0, d.provide)(H.timePickerInjectionKey, {
        mergedThemeRef: ee,
        mergedClsPrefixRef: V
      });
      const Ht = {
        focus: () => {
          var s;
          (s = he.value) === null || s === void 0 || s.focus();
        },
        blur: () => {
          var s;
          (s = he.value) === null || s === void 0 || s.blur();
        }
      }, zt = (0, d.computed)(() => {
        const { common: { cubicBezierEaseInOut: s }, self: { iconColor: m, iconColorDisabled: b } } = ee.value;
        return {
          "--n-icon-color-override": m,
          "--n-icon-color-disabled-override": b,
          "--n-bezier": s
        };
      }), at = Ie ? (0, h.useThemeClass)("time-picker-trigger", void 0, zt, T) : void 0, At = (0, d.computed)(() => {
        const { self: { panelColor: s, itemTextColor: m, itemTextColorActive: b, itemColorHover: R, panelDividerColor: ce, panelBoxShadow: q, itemOpacityDisabled: _e, borderRadius: Wt, itemFontSize: It, itemWidth: br, itemHeight: Or, panelActionPadding: Dr, itemBorderRadius: Mr }, common: { cubicBezierEaseInOut: Pr } } = ee.value;
        return {
          "--n-bezier": Pr,
          "--n-border-radius": Wt,
          "--n-item-color-hover": R,
          "--n-item-font-size": It,
          "--n-item-height": Or,
          "--n-item-opacity-disabled": _e,
          "--n-item-text-color": m,
          "--n-item-text-color-active": b,
          "--n-item-width": br,
          "--n-panel-action-padding": Dr,
          "--n-panel-box-shadow": q,
          "--n-panel-color": s,
          "--n-panel-divider-color": ce,
          "--n-item-border-radius": Mr
        };
      }), it = Ie ? (0, h.useThemeClass)("time-picker", void 0, At, T) : void 0;
      return {
        focus: Ht.focus,
        blur: Ht.blur,
        mergedStatus: Fe,
        mergedBordered: X,
        mergedClsPrefix: V,
        namespace: oe,
        uncontrolledValue: E,
        mergedValue: y,
        isMounted: (0, l.useIsMounted)(),
        inputInstRef: he,
        panelInstRef: me,
        adjustedTo: (0, v.useAdjustedTo)(T),
        mergedShow: ve,
        localizedClear: ft,
        localizedNow: Ot,
        localizedPlaceholder: Dt,
        localizedNegativeText: Mt,
        localizedPositiveText: Pt,
        hourInFormat: Tt,
        minuteInFormat: wt,
        secondInFormat: ht,
        mergedAttrSize: re,
        displayTimeString: Ce,
        mergedSize: Pe,
        mergedDisabled: fe,
        isValueInvalid: A,
        isHourInvalid: Ze,
        isMinuteInvalid: vt,
        isSecondInvalid: g,
        transitionDisabled: tt,
        hourValue: ye,
        minuteValue: lt,
        secondValue: mt,
        amPmValue: Ut,
        handleInputKeydown: nt,
        handleTimeInputFocus: ct,
        handleTimeInputBlur: st,
        handleNowClick: pt,
        handleConfirmClick: pe,
        handleTimeInputUpdateValue: Qt,
        handleMenuFocusOut: Xt,
        handleCancelClick: Zt,
        handleClickOutside: Rt,
        handleTimeInputActivate: Ke,
        handleTimeInputDeactivate: We,
        handleHourClick: k,
        handleMinuteClick: Ne,
        handleSecondClick: Ue,
        handleAmPmClick: qe,
        handleTimeInputClear: Et,
        handleFocusDetectorFocus: rt,
        handleMenuKeydown: _,
        handleTriggerClick: U,
        mergedTheme: ee,
        triggerCssVars: Ie ? void 0 : zt,
        triggerThemeClass: at == null ? void 0 : at.themeClass,
        triggerOnRender: at == null ? void 0 : at.onRender,
        cssVars: Ie ? void 0 : At,
        themeClass: it == null ? void 0 : it.themeClass,
        onRender: it == null ? void 0 : it.onRender,
        clearSelectedValue: yt
      };
    },
    render() {
      const { mergedClsPrefix: T, $slots: X, triggerOnRender: V } = this;
      return V == null || V(), (0, d.h)(
        "div",
        { class: [`${T}-time-picker`, this.triggerThemeClass], style: this.triggerCssVars },
        (0, d.h)(c.VBinder, null, {
          default: () => [
            (0, d.h)(c.VTarget, null, {
              default: () => (0, d.h)(S.NInput, { ref: "inputInstRef", status: this.mergedStatus, value: this.displayTimeString, bordered: this.mergedBordered, passivelyActivated: !0, attrSize: this.mergedAttrSize, theme: this.mergedTheme.peers.Input, themeOverrides: this.mergedTheme.peerOverrides.Input, stateful: this.stateful, size: this.mergedSize, placeholder: this.localizedPlaceholder, clearable: this.clearable, disabled: this.mergedDisabled, textDecoration: this.isValueInvalid ? "line-through" : void 0, onFocus: this.handleTimeInputFocus, onBlur: this.handleTimeInputBlur, onActivate: this.handleTimeInputActivate, onDeactivate: this.handleTimeInputDeactivate, onUpdateValue: this.handleTimeInputUpdateValue, onClear: this.handleTimeInputClear, internalDeactivateOnEnter: !0, internalForceFocus: this.mergedShow, readonly: this.inputReadonly || this.mergedDisabled, onClick: this.handleTriggerClick, onKeydown: this.handleInputKeydown }, this.showIcon ? {
                [this.clearable ? "clear-icon-placeholder" : "suffix"]: () => (0, d.h)(o.NBaseIcon, { clsPrefix: T, class: `${T}-time-picker-icon` }, {
                  default: () => X.icon ? X.icon() : (0, d.h)(f.TimeIcon, null)
                })
              } : null)
            }),
            (0, d.h)(c.VFollower, { teleportDisabled: this.adjustedTo === v.useAdjustedTo.tdkey, show: this.mergedShow, to: this.adjustedTo, containerClass: this.namespace, placement: this.placement }, {
              default: () => (0, d.h)(d.Transition, { name: "fade-in-scale-up-transition", appear: this.isMounted }, {
                default: () => {
                  var oe;
                  return this.mergedShow ? ((oe = this.onRender) === null || oe === void 0 || oe.call(this), (0, d.withDirectives)((0, d.h)(x.default, { ref: "panelInstRef", actions: this.actions, class: this.themeClass, style: this.cssVars, seconds: this.seconds, minutes: this.minutes, hours: this.hours, transitionDisabled: this.transitionDisabled, hourValue: this.hourValue, showHour: this.hourInFormat, isHourInvalid: this.isHourInvalid, isHourDisabled: this.isHourDisabled, minuteValue: this.minuteValue, showMinute: this.minuteInFormat, isMinuteInvalid: this.isMinuteInvalid, isMinuteDisabled: this.isMinuteDisabled, secondValue: this.secondValue, amPmValue: this.amPmValue, showSecond: this.secondInFormat, isSecondInvalid: this.isSecondInvalid, isSecondDisabled: this.isSecondDisabled, isValueInvalid: this.isValueInvalid, clearText: this.localizedClear, nowText: this.localizedNow, confirmText: this.localizedPositiveText, use12Hours: this.use12Hours, onFocusout: this.handleMenuFocusOut, onKeydown: this.handleMenuKeydown, onHourClick: this.handleHourClick, onMinuteClick: this.handleMinuteClick, onSecondClick: this.handleSecondClick, onAmPmClick: this.handleAmPmClick, onNowClick: this.handleNowClick, onConfirmClick: this.handleConfirmClick, onClearClick: this.clearSelectedValue, onFocusDetectorFocus: this.handleFocusDetectorFocus }), [
                    [
                      u.clickoutside,
                      this.handleClickOutside,
                      void 0,
                      { capture: !0 }
                    ]
                  ])) : null;
                }
              })
            })
          ]
        })
      );
    }
  });
})(_0);
(function(e) {
  var n = Oe && Oe.__importDefault || function(a) {
    return a && a.__esModule ? a : { default: a };
  };
  Object.defineProperty(e, "__esModule", { value: !0 }), e.timePickerProps = e.NTimePicker = void 0;
  var r = _0;
  Object.defineProperty(e, "NTimePicker", { enumerable: !0, get: function() {
    return n(r).default;
  } }), Object.defineProperty(e, "timePickerProps", { enumerable: !0, get: function() {
    return r.timePickerProps;
  } });
})(_c);
var Y2 = Oe && Oe.__importDefault || function(e) {
  return e && e.__esModule ? e : { default: e };
};
Object.defineProperty(vc, "__esModule", { value: !0 });
const le = ke, E2 = kt, Qn = Zr, Sr = bt, Zn = jr, y2 = ea, $2 = _c, N2 = Y2(Gr), no = $r;
vc.default = (0, le.defineComponent)({
  name: "DateTimePanel",
  props: no.useCalendarProps,
  setup(e) {
    return (0, no.useCalendar)(e, "datetime");
  },
  render() {
    var e, n, r, a;
    const { mergedClsPrefix: i, mergedTheme: u, shortcuts: l, timePickerProps: d, datePickerSlots: c, onRender: o } = this;
    return o == null || o(), (0, le.h)(
      "div",
      { ref: "selfRef", tabindex: 0, class: [
        `${i}-date-panel`,
        `${i}-date-panel--datetime`,
        !this.panel && `${i}-date-panel--shadow`,
        this.themeClass
      ], onKeydown: this.handlePanelKeyDown, onFocus: this.handlePanelFocus },
      (0, le.h)(
        "div",
        { class: `${i}-date-panel-header` },
        (0, le.h)(y2.NInput, { value: this.dateInputValue, theme: u.peers.Input, themeOverrides: u.peerOverrides.Input, stateful: !1, size: this.timePickerSize, readonly: this.inputReadonly, class: `${i}-date-panel-date-input`, textDecoration: this.isDateInvalid ? "line-through" : "", placeholder: this.locale.selectDate, onBlur: this.handleDateInputBlur, onUpdateValue: this.handleDateInput }),
        (0, le.h)($2.NTimePicker, Object.assign({ size: this.timePickerSize, placeholder: this.locale.selectTime, format: this.timePickerFormat }, Array.isArray(d) ? void 0 : d, { showIcon: !1, to: !1, theme: u.peers.TimePicker, themeOverrides: u.peerOverrides.TimePicker, value: Array.isArray(this.value) ? null : this.value, isHourDisabled: this.isHourDisabled, isMinuteDisabled: this.isMinuteDisabled, isSecondDisabled: this.isSecondDisabled, onUpdateValue: this.handleTimePickerChange, stateful: !1 }))
      ),
      (0, le.h)(
        "div",
        { class: `${i}-date-panel-calendar` },
        (0, le.h)(
          "div",
          { class: `${i}-date-panel-month` },
          (0, le.h)("div", { class: `${i}-date-panel-month__fast-prev`, onClick: this.prevYear }, (0, Sr.resolveSlot)(c["prev-year"], () => [
            (0, le.h)(Qn.FastBackwardIcon, null)
          ])),
          (0, le.h)("div", { class: `${i}-date-panel-month__prev`, onClick: this.prevMonth }, (0, Sr.resolveSlot)(c["prev-month"], () => [
            (0, le.h)(Qn.BackwardIcon, null)
          ])),
          (0, le.h)(N2.default, { fastYearSelect: this.fastYearSelect, fastMonthSelect: this.fastMonthSelect, monthYearSeparator: this.calendarHeaderMonthYearSeparator, monthBeforeYear: this.calendarMonthBeforeYear, value: this.calendarValue, onUpdateValue: this.onUpdateCalendarValue, mergedClsPrefix: i, calendarMonth: this.calendarMonth, calendarYear: this.calendarYear }),
          (0, le.h)("div", { class: `${i}-date-panel-month__next`, onClick: this.nextMonth }, (0, Sr.resolveSlot)(c["next-month"], () => [
            (0, le.h)(Qn.ForwardIcon, null)
          ])),
          (0, le.h)("div", { class: `${i}-date-panel-month__fast-next`, onClick: this.nextYear }, (0, Sr.resolveSlot)(c["next-year"], () => [
            (0, le.h)(Qn.FastForwardIcon, null)
          ]))
        ),
        (0, le.h)("div", { class: `${i}-date-panel-weekdays` }, this.weekdays.map((f) => (0, le.h)("div", { key: f, class: `${i}-date-panel-weekdays__day` }, f))),
        (0, le.h)("div", { class: `${i}-date-panel-dates` }, this.dateArray.map((f, h) => (0, le.h)(
          "div",
          { "data-n-date": !0, key: h, class: [
            `${i}-date-panel-date`,
            {
              [`${i}-date-panel-date--current`]: f.isCurrentDate,
              [`${i}-date-panel-date--selected`]: f.selected,
              [`${i}-date-panel-date--excluded`]: !f.inCurrentMonth,
              [`${i}-date-panel-date--disabled`]: this.mergedIsDateDisabled(f.ts, {
                type: "date",
                year: f.dateObject.year,
                month: f.dateObject.month,
                date: f.dateObject.date
              })
            }
          ], onClick: () => {
            this.handleDateClick(f);
          } },
          (0, le.h)("div", { class: `${i}-date-panel-date__trigger` }),
          f.dateObject.date,
          f.isCurrentDate ? (0, le.h)("div", { class: `${i}-date-panel-date__sup` }) : null
        )))
      ),
      this.datePickerSlots.footer ? (0, le.h)("div", { class: `${i}-date-panel-footer` }, this.datePickerSlots.footer()) : null,
      !((e = this.actions) === null || e === void 0) && e.length || l ? (0, le.h)(
        "div",
        { class: `${i}-date-panel-actions` },
        (0, le.h)("div", { class: `${i}-date-panel-actions__prefix` }, l && Object.keys(l).map((f) => {
          const h = l[f];
          return Array.isArray(h) ? null : (0, le.h)(Zn.NxButton, { size: "tiny", onMouseenter: () => {
            this.handleSingleShortcutMouseenter(h);
          }, onClick: () => {
            this.handleSingleShortcutClick(h);
          }, onMouseleave: () => {
            this.handleShortcutMouseleave();
          } }, { default: () => f });
        })),
        (0, le.h)(
          "div",
          { class: `${i}-date-panel-actions__suffix` },
          !((n = this.actions) === null || n === void 0) && n.includes("clear") ? (0, Sr.resolveSlotWithTypedProps)(this.datePickerSlots.clear, {
            onClear: this.clearSelectedDateTime,
            text: this.locale.clear
          }, () => [
            (0, le.h)(Zn.NButton, { theme: u.peers.Button, themeOverrides: u.peerOverrides.Button, size: "tiny", onClick: this.clearSelectedDateTime }, { default: () => this.locale.clear })
          ]) : null,
          !((r = this.actions) === null || r === void 0) && r.includes("now") ? (0, Sr.resolveSlotWithTypedProps)(c.now, {
            onNow: this.handleNowClick,
            text: this.locale.now
          }, () => [
            (0, le.h)(Zn.NButton, { theme: u.peers.Button, themeOverrides: u.peerOverrides.Button, size: "tiny", onClick: this.handleNowClick }, { default: () => this.locale.now })
          ]) : null,
          !((a = this.actions) === null || a === void 0) && a.includes("confirm") ? (0, Sr.resolveSlotWithTypedProps)(c.confirm, {
            onConfirm: this.handleConfirmClick,
            disabled: this.isDateInvalid,
            text: this.locale.confirm
          }, () => [
            (0, le.h)(Zn.NButton, { theme: u.peers.Button, themeOverrides: u.peerOverrides.Button, size: "tiny", type: "primary", disabled: this.isDateInvalid, onClick: this.handleConfirmClick }, { default: () => this.locale.confirm })
          ]) : null
        )
      ) : null,
      (0, le.h)(E2.NBaseFocusDetector, { onFocus: this.handleFocusDetectorFocus })
    );
  }
});
var Mc = {}, R2 = Oe && Oe.__importDefault || function(e) {
  return e && e.__esModule ? e : { default: e };
};
Object.defineProperty(Mc, "__esModule", { value: !0 });
const z = ke, H2 = kt, mr = Zr, xt = bt, Pl = jr, ao = ea, io = _c, uo = R2(Gr), lo = Nr;
Mc.default = (0, z.defineComponent)({
  name: "DateTimeRangePanel",
  props: lo.useDualCalendarProps,
  setup(e) {
    return process.env.NODE_ENV !== "production" && (0, z.watchEffect)(() => {
      var n;
      !((n = e.actions) === null || n === void 0) && n.includes("now") && (0, xt.warnOnce)("date-picker", "The `now` action is not supported for n-date-picker of `datetimerange` type");
    }), (0, lo.useDualCalendar)(e, "datetimerange");
  },
  render() {
    var e, n, r;
    const { mergedClsPrefix: a, mergedTheme: i, shortcuts: u, timePickerProps: l, onRender: d, datePickerSlots: c } = this;
    return d == null || d(), (0, z.h)(
      "div",
      { ref: "selfRef", tabindex: 0, class: [
        `${a}-date-panel`,
        `${a}-date-panel--datetimerange`,
        !this.panel && `${a}-date-panel--shadow`,
        this.themeClass
      ], onKeydown: this.handlePanelKeyDown, onFocus: this.handlePanelFocus },
      (0, z.h)(
        "div",
        { class: `${a}-date-panel-header` },
        (0, z.h)(ao.NInput, { value: this.startDateDisplayString, theme: i.peers.Input, themeOverrides: i.peerOverrides.Input, size: this.timePickerSize, stateful: !1, readonly: this.inputReadonly, class: `${a}-date-panel-date-input`, textDecoration: this.isStartValueInvalid ? "line-through" : "", placeholder: this.locale.selectDate, onBlur: this.handleStartDateInputBlur, onUpdateValue: this.handleStartDateInput }),
        (0, z.h)(io.NTimePicker, Object.assign({ placeholder: this.locale.selectTime, format: this.timePickerFormat, size: this.timePickerSize }, Array.isArray(l) ? l[0] : l, { value: this.startTimeValue, to: !1, showIcon: !1, disabled: this.isSelecting, theme: i.peers.TimePicker, themeOverrides: i.peerOverrides.TimePicker, stateful: !1, isHourDisabled: this.isStartHourDisabled, isMinuteDisabled: this.isStartMinuteDisabled, isSecondDisabled: this.isStartSecondDisabled, onUpdateValue: this.handleStartTimePickerChange })),
        (0, z.h)(ao.NInput, { value: this.endDateInput, theme: i.peers.Input, themeOverrides: i.peerOverrides.Input, stateful: !1, size: this.timePickerSize, readonly: this.inputReadonly, class: `${a}-date-panel-date-input`, textDecoration: this.isEndValueInvalid ? "line-through" : "", placeholder: this.locale.selectDate, onBlur: this.handleEndDateInputBlur, onUpdateValue: this.handleEndDateInput }),
        (0, z.h)(io.NTimePicker, Object.assign({ placeholder: this.locale.selectTime, format: this.timePickerFormat, size: this.timePickerSize }, Array.isArray(l) ? l[1] : l, { disabled: this.isSelecting, showIcon: !1, theme: i.peers.TimePicker, themeOverrides: i.peerOverrides.TimePicker, to: !1, stateful: !1, value: this.endTimeValue, isHourDisabled: this.isEndHourDisabled, isMinuteDisabled: this.isEndMinuteDisabled, isSecondDisabled: this.isEndSecondDisabled, onUpdateValue: this.handleEndTimePickerChange }))
      ),
      (0, z.h)(
        "div",
        { ref: "startDatesElRef", class: `${a}-date-panel-calendar ${a}-date-panel-calendar--start` },
        (0, z.h)(
          "div",
          { class: `${a}-date-panel-month` },
          (0, z.h)("div", { class: `${a}-date-panel-month__fast-prev`, onClick: this.startCalendarPrevYear }, (0, xt.resolveSlot)(c["prev-year"], () => [
            (0, z.h)(mr.FastBackwardIcon, null)
          ])),
          (0, z.h)("div", { class: `${a}-date-panel-month__prev`, onClick: this.startCalendarPrevMonth }, (0, xt.resolveSlot)(c["prev-month"], () => [
            (0, z.h)(mr.BackwardIcon, null)
          ])),
          (0, z.h)(uo.default, { fastYearSelect: this.fastYearSelect, fastMonthSelect: this.fastMonthSelect, monthYearSeparator: this.calendarHeaderMonthYearSeparator, monthBeforeYear: this.calendarMonthBeforeYear, value: this.startCalendarDateTime, onUpdateValue: this.onUpdateStartCalendarValue, mergedClsPrefix: a, calendarMonth: this.startCalendarMonth, calendarYear: this.startCalendarYear }),
          (0, z.h)("div", { class: `${a}-date-panel-month__next`, onClick: this.startCalendarNextMonth }, (0, xt.resolveSlot)(c["next-month"], () => [
            (0, z.h)(mr.ForwardIcon, null)
          ])),
          (0, z.h)("div", { class: `${a}-date-panel-month__fast-next`, onClick: this.startCalendarNextYear }, (0, xt.resolveSlot)(c["next-year"], () => [
            (0, z.h)(mr.FastForwardIcon, null)
          ]))
        ),
        (0, z.h)("div", { class: `${a}-date-panel-weekdays` }, this.weekdays.map((o) => (0, z.h)("div", { key: o, class: `${a}-date-panel-weekdays__day` }, o))),
        (0, z.h)("div", { class: `${a}-date-panel__divider` }),
        (0, z.h)("div", { class: `${a}-date-panel-dates` }, this.startDateArray.map((o, f) => {
          const h = this.mergedIsDateDisabled(o.ts);
          return (0, z.h)(
            "div",
            { "data-n-date": !0, key: f, class: [
              `${a}-date-panel-date`,
              {
                [`${a}-date-panel-date--excluded`]: !o.inCurrentMonth,
                [`${a}-date-panel-date--current`]: o.isCurrentDate,
                [`${a}-date-panel-date--selected`]: o.selected,
                [`${a}-date-panel-date--covered`]: o.inSpan,
                [`${a}-date-panel-date--start`]: o.startOfSpan,
                [`${a}-date-panel-date--end`]: o.endOfSpan,
                [`${a}-date-panel-date--disabled`]: h
              }
            ], onClick: h ? void 0 : () => {
              this.handleDateClick(o);
            }, onMouseenter: h ? void 0 : () => {
              this.handleDateMouseEnter(o);
            } },
            (0, z.h)("div", { class: `${a}-date-panel-date__trigger` }),
            o.dateObject.date,
            o.isCurrentDate ? (0, z.h)("div", { class: `${a}-date-panel-date__sup` }) : null
          );
        }))
      ),
      (0, z.h)("div", { class: `${a}-date-panel__vertical-divider` }),
      (0, z.h)(
        "div",
        { ref: "endDatesElRef", class: `${a}-date-panel-calendar ${a}-date-panel-calendar--end` },
        (0, z.h)(
          "div",
          { class: `${a}-date-panel-month` },
          (0, z.h)("div", { class: `${a}-date-panel-month__fast-prev`, onClick: this.endCalendarPrevYear }, (0, xt.resolveSlot)(c["prev-year"], () => [
            (0, z.h)(mr.FastBackwardIcon, null)
          ])),
          (0, z.h)("div", { class: `${a}-date-panel-month__prev`, onClick: this.endCalendarPrevMonth }, (0, xt.resolveSlot)(c["prev-month"], () => [
            (0, z.h)(mr.BackwardIcon, null)
          ])),
          (0, z.h)(uo.default, { fastYearSelect: this.fastYearSelect, fastMonthSelect: this.fastMonthSelect, monthBeforeYear: this.calendarMonthBeforeYear, value: this.endCalendarDateTime, onUpdateValue: this.onUpdateEndCalendarValue, mergedClsPrefix: a, monthYearSeparator: this.calendarHeaderMonthYearSeparator, calendarMonth: this.endCalendarMonth, calendarYear: this.endCalendarYear }),
          (0, z.h)("div", { class: `${a}-date-panel-month__next`, onClick: this.endCalendarNextMonth }, (0, xt.resolveSlot)(c["next-month"], () => [
            (0, z.h)(mr.ForwardIcon, null)
          ])),
          (0, z.h)("div", { class: `${a}-date-panel-month__fast-next`, onClick: this.endCalendarNextYear }, (0, xt.resolveSlot)(c["next-year"], () => [
            (0, z.h)(mr.FastForwardIcon, null)
          ]))
        ),
        (0, z.h)("div", { class: `${a}-date-panel-weekdays` }, this.weekdays.map((o) => (0, z.h)("div", { key: o, class: `${a}-date-panel-weekdays__day` }, o))),
        (0, z.h)("div", { class: `${a}-date-panel__divider` }),
        (0, z.h)("div", { class: `${a}-date-panel-dates` }, this.endDateArray.map((o, f) => {
          const h = this.mergedIsDateDisabled(o.ts);
          return (0, z.h)(
            "div",
            { "data-n-date": !0, key: f, class: [
              `${a}-date-panel-date`,
              {
                [`${a}-date-panel-date--excluded`]: !o.inCurrentMonth,
                [`${a}-date-panel-date--current`]: o.isCurrentDate,
                [`${a}-date-panel-date--selected`]: o.selected,
                [`${a}-date-panel-date--covered`]: o.inSpan,
                [`${a}-date-panel-date--start`]: o.startOfSpan,
                [`${a}-date-panel-date--end`]: o.endOfSpan,
                [`${a}-date-panel-date--disabled`]: h
              }
            ], onClick: h ? void 0 : () => {
              this.handleDateClick(o);
            }, onMouseenter: h ? void 0 : () => {
              this.handleDateMouseEnter(o);
            } },
            (0, z.h)("div", { class: `${a}-date-panel-date__trigger` }),
            o.dateObject.date,
            o.isCurrentDate ? (0, z.h)("div", { class: `${a}-date-panel-date__sup` }) : null
          );
        }))
      ),
      this.datePickerSlots.footer ? (0, z.h)("div", { class: `${a}-date-panel-footer` }, this.datePickerSlots.footer()) : null,
      !((e = this.actions) === null || e === void 0) && e.length || u ? (0, z.h)(
        "div",
        { class: `${a}-date-panel-actions` },
        (0, z.h)("div", { class: `${a}-date-panel-actions__prefix` }, u && Object.keys(u).map((o) => {
          const f = u[o];
          return Array.isArray(f) || typeof f == "function" ? (0, z.h)(Pl.NxButton, { size: "tiny", onMouseenter: () => {
            this.handleRangeShortcutMouseenter(f);
          }, onClick: () => {
            this.handleRangeShortcutClick(f);
          }, onMouseleave: () => {
            this.handleShortcutMouseleave();
          } }, { default: () => o }) : null;
        })),
        (0, z.h)(
          "div",
          { class: `${a}-date-panel-actions__suffix` },
          !((n = this.actions) === null || n === void 0) && n.includes("clear") ? (0, xt.resolveSlotWithTypedProps)(c.clear, {
            onClear: this.handleClearClick,
            text: this.locale.clear
          }, () => [
            (0, z.h)(Pl.NButton, { theme: i.peers.Button, themeOverrides: i.peerOverrides.Button, size: "tiny", onClick: this.handleClearClick }, { default: () => this.locale.clear })
          ]) : null,
          !((r = this.actions) === null || r === void 0) && r.includes("confirm") ? (0, xt.resolveSlotWithTypedProps)(c.confirm, {
            onConfirm: this.handleConfirmClick,
            disabled: this.isRangeInvalid || this.isSelecting,
            text: this.locale.confirm
          }, () => [
            (0, z.h)(Pl.NButton, { theme: i.peers.Button, themeOverrides: i.peerOverrides.Button, size: "tiny", type: "primary", disabled: this.isRangeInvalid || this.isSelecting, onClick: this.handleConfirmClick }, { default: () => this.locale.confirm })
          ]) : null
        )
      ) : null,
      (0, z.h)(H2.NBaseFocusDetector, { onFocus: this.handleFocusDetectorFocus })
    );
  }
});
var Pc = {};
Object.defineProperty(Pc, "__esModule", { value: !0 });
const be = ke, co = vn, hn = kt, z2 = Ir, pn = bt, Tl = jr, so = yr, wl = ze, oo = Nr;
Pc.default = (0, be.defineComponent)({
  name: "MonthRangePanel",
  props: Object.assign(Object.assign({}, oo.useDualCalendarProps), { type: {
    type: String,
    required: !0
  } }),
  setup(e) {
    process.env.NODE_ENV !== "production" && (0, be.watchEffect)(() => {
      var i;
      !((i = e.actions) === null || i === void 0) && i.includes("now") && (0, pn.warnOnce)("date-picker", `The \`now\` action is not supported for n-date-picker of ${e.type}type`);
    });
    const n = (0, oo.useDualCalendar)(e, e.type), { dateLocaleRef: r } = (0, z2.useLocale)("DatePicker"), a = (i, u, l, d) => {
      const { handleColItemClick: c } = n;
      return (0, be.h)("div", { "data-n-date": !0, key: u, class: [
        `${l}-date-panel-month-calendar__picker-col-item`,
        i.isCurrent && `${l}-date-panel-month-calendar__picker-col-item--current`,
        i.selected && `${l}-date-panel-month-calendar__picker-col-item--selected`,
        !1
      ], onClick: () => {
        c(i, d);
      } }, i.type === "month" ? (0, wl.getMonthString)(i.dateObject.month, i.monthFormat, r.value.locale) : i.type === "quarter" ? (0, wl.getQuarterString)(i.dateObject.quarter, i.quarterFormat, r.value.locale) : (0, wl.getYearString)(i.dateObject.year, i.yearFormat, r.value.locale));
    };
    return (0, be.onMounted)(() => {
      n.justifyColumnsScrollState();
    }), Object.assign(Object.assign({}, n), { renderItem: a });
  },
  render() {
    var e, n, r;
    const { mergedClsPrefix: a, mergedTheme: i, shortcuts: u, type: l, renderItem: d, onRender: c } = this;
    return c == null || c(), (0, be.h)(
      "div",
      { ref: "selfRef", tabindex: 0, class: [
        `${a}-date-panel`,
        `${a}-date-panel--daterange`,
        !this.panel && `${a}-date-panel--shadow`,
        this.themeClass
      ], onKeydown: this.handlePanelKeyDown, onFocus: this.handlePanelFocus },
      (0, be.h)(
        "div",
        { ref: "startDatesElRef", class: `${a}-date-panel-calendar ${a}-date-panel-calendar--start` },
        (0, be.h)(
          "div",
          { class: `${a}-date-panel-month-calendar` },
          (0, be.h)(hn.NScrollbar, { ref: "startYearScrollbarRef", class: `${a}-date-panel-month-calendar__picker-col`, theme: i.peers.Scrollbar, themeOverrides: i.peerOverrides.Scrollbar, container: () => this.virtualListContainer("start"), content: () => this.virtualListContent("start"), horizontalRailStyle: { zIndex: 1 }, verticalRailStyle: { zIndex: 1 } }, {
            default: () => (0, be.h)(co.VirtualList, { ref: "startYearVlRef", items: this.startYearArray, itemSize: so.MONTH_ITEM_HEIGHT, showScrollbar: !1, keyField: "ts", onScroll: this.handleStartYearVlScroll, paddingBottom: 4 }, {
              default: ({ item: o, index: f }) => d(o, f, a, "start")
            })
          }),
          l === "monthrange" || l === "quarterrange" ? (0, be.h)(
            "div",
            { class: `${a}-date-panel-month-calendar__picker-col` },
            (0, be.h)(hn.NScrollbar, { ref: "startMonthScrollbarRef", theme: i.peers.Scrollbar, themeOverrides: i.peerOverrides.Scrollbar }, {
              default: () => [
                (l === "monthrange" ? this.startMonthArray : this.startQuarterArray).map((o, f) => d(o, f, a, "start")),
                l === "monthrange" && (0, be.h)("div", { class: `${a}-date-panel-month-calendar__padding` })
              ]
            })
          ) : null
        )
      ),
      (0, be.h)("div", { class: `${a}-date-panel__vertical-divider` }),
      (0, be.h)(
        "div",
        { ref: "endDatesElRef", class: `${a}-date-panel-calendar ${a}-date-panel-calendar--end` },
        (0, be.h)(
          "div",
          { class: `${a}-date-panel-month-calendar` },
          (0, be.h)(hn.NScrollbar, { ref: "endYearScrollbarRef", class: `${a}-date-panel-month-calendar__picker-col`, theme: i.peers.Scrollbar, themeOverrides: i.peerOverrides.Scrollbar, container: () => this.virtualListContainer("end"), content: () => this.virtualListContent("end"), horizontalRailStyle: { zIndex: 1 }, verticalRailStyle: { zIndex: 1 } }, {
            default: () => (0, be.h)(co.VirtualList, { ref: "endYearVlRef", items: this.endYearArray, itemSize: so.MONTH_ITEM_HEIGHT, showScrollbar: !1, keyField: "ts", onScroll: this.handleEndYearVlScroll, paddingBottom: 4 }, {
              default: ({ item: o, index: f }) => d(o, f, a, "end")
            })
          }),
          l === "monthrange" || l === "quarterrange" ? (0, be.h)(
            "div",
            { class: `${a}-date-panel-month-calendar__picker-col` },
            (0, be.h)(hn.NScrollbar, { ref: "endMonthScrollbarRef", theme: i.peers.Scrollbar, themeOverrides: i.peerOverrides.Scrollbar }, {
              default: () => [
                (l === "monthrange" ? this.endMonthArray : this.endQuarterArray).map((o, f) => d(o, f, a, "end")),
                l === "monthrange" && (0, be.h)("div", { class: `${a}-date-panel-month-calendar__padding` })
              ]
            })
          ) : null
        )
      ),
      (0, pn.resolveWrappedSlot)(this.datePickerSlots.footer, (o) => o ? (0, be.h)("div", { class: `${a}-date-panel-footer` }, o) : null),
      !((e = this.actions) === null || e === void 0) && e.length || u ? (0, be.h)(
        "div",
        { class: `${a}-date-panel-actions` },
        (0, be.h)("div", { class: `${a}-date-panel-actions__prefix` }, u && Object.keys(u).map((o) => {
          const f = u[o];
          return Array.isArray(f) || typeof f == "function" ? (0, be.h)(Tl.NxButton, { size: "tiny", onMouseenter: () => {
            this.handleRangeShortcutMouseenter(f);
          }, onClick: () => {
            this.handleRangeShortcutClick(f);
          }, onMouseleave: () => {
            this.handleShortcutMouseleave();
          } }, { default: () => o }) : null;
        })),
        (0, be.h)(
          "div",
          { class: `${a}-date-panel-actions__suffix` },
          !((n = this.actions) === null || n === void 0) && n.includes("clear") ? (0, pn.resolveSlotWithTypedProps)(this.datePickerSlots.clear, {
            onClear: this.handleClearClick,
            text: this.locale.clear
          }, () => [
            (0, be.h)(Tl.NxButton, { theme: i.peers.Button, themeOverrides: i.peerOverrides.Button, size: "tiny", onClick: this.handleClearClick }, { default: () => this.locale.clear })
          ]) : null,
          !((r = this.actions) === null || r === void 0) && r.includes("confirm") ? (0, pn.resolveSlotWithTypedProps)(this.datePickerSlots.confirm, {
            disabled: this.isRangeInvalid,
            onConfirm: this.handleConfirmClick,
            text: this.locale.confirm
          }, () => [
            (0, be.h)(Tl.NxButton, { theme: i.peers.Button, themeOverrides: i.peerOverrides.Button, size: "tiny", type: "primary", disabled: this.isRangeInvalid, onClick: this.handleConfirmClick }, { default: () => this.locale.confirm })
          ]) : null
        )
      ) : null,
      (0, be.h)(hn.NBaseFocusDetector, { onFocus: this.handleFocusDetectorFocus })
    );
  }
});
var Nn = {};
Object.defineProperty(Nn, "__esModule", { value: !0 });
Nn.datePickerProps = void 0;
const A2 = Ir, W2 = bt;
Nn.datePickerProps = Object.assign(Object.assign({}, A2.useTheme.props), {
  to: W2.useAdjustedTo.propTo,
  bordered: {
    type: Boolean,
    default: void 0
  },
  clearable: Boolean,
  fastYearSelect: Boolean,
  fastMonthSelect: Boolean,
  updateValueOnClose: Boolean,
  calendarDayFormat: String,
  calendarHeaderYearFormat: String,
  calendarHeaderMonthFormat: String,
  calendarHeaderMonthYearSeparator: {
    type: String,
    default: " "
  },
  calendarHeaderMonthBeforeYear: {
    type: Boolean,
    default: void 0
  },
  defaultValue: [Number, Array],
  defaultFormattedValue: [String, Array],
  defaultTime: [Number, String, Array, Function],
  disabled: {
    type: Boolean,
    default: void 0
  },
  placement: {
    type: String,
    default: "bottom-start"
  },
  value: [Number, Array],
  formattedValue: [String, Array],
  size: String,
  type: {
    type: String,
    default: "date"
  },
  valueFormat: String,
  separator: String,
  placeholder: String,
  startPlaceholder: String,
  endPlaceholder: String,
  format: String,
  dateFormat: String,
  timePickerFormat: String,
  actions: Array,
  shortcuts: Object,
  isDateDisabled: Function,
  isTimeDisabled: Function,
  show: {
    type: Boolean,
    default: void 0
  },
  panel: Boolean,
  ranges: Object,
  firstDayOfWeek: Number,
  inputReadonly: Boolean,
  closeOnSelect: Boolean,
  status: String,
  timePickerProps: [Object, Array],
  onClear: Function,
  onConfirm: Function,
  defaultCalendarStartTime: Number,
  defaultCalendarEndTime: Number,
  bindCalendarMonths: Boolean,
  monthFormat: { type: String, default: "M" },
  yearFormat: { type: String, default: "y" },
  quarterFormat: { type: String, default: "'Q'Q" },
  yearRange: {
    type: Array,
    default: () => [1901, 2100]
  },
  "onUpdate:show": [Function, Array],
  onUpdateShow: [Function, Array],
  "onUpdate:formattedValue": [Function, Array],
  onUpdateFormattedValue: [Function, Array],
  "onUpdate:value": [Function, Array],
  onUpdateValue: [Function, Array],
  onFocus: [Function, Array],
  onBlur: [Function, Array],
  onNextMonth: Function,
  onPrevMonth: Function,
  onNextYear: Function,
  onPrevYear: Function,
  // deprecated
  onChange: [Function, Array]
});
var Tc = {};
Object.defineProperty(Tc, "__esModule", {
  value: !0
});
const V2 = _o, M = vo;
Tc.default = (0, M.c)([(0, M.cB)("date-picker", `
 position: relative;
 z-index: auto;
 `, [(0, M.cB)("date-picker-icon", `
 color: var(--n-icon-color-override);
 transition: color .3s var(--n-bezier);
 `), (0, M.cB)("icon", `
 color: var(--n-icon-color-override);
 transition: color .3s var(--n-bezier);
 `), (0, M.cM)("disabled", [(0, M.cB)("date-picker-icon", `
 color: var(--n-icon-color-disabled-override);
 `), (0, M.cB)("icon", `
 color: var(--n-icon-color-disabled-override);
 `)])]), (0, M.cB)("date-panel", `
 width: fit-content;
 outline: none;
 margin: 4px 0;
 display: grid;
 grid-template-columns: 0fr;
 border-radius: var(--n-panel-border-radius);
 background-color: var(--n-panel-color);
 color: var(--n-panel-text-color);
 user-select: none;
 `, [(0, V2.fadeInScaleUpTransition)(), (0, M.cM)("shadow", `
 box-shadow: var(--n-panel-box-shadow);
 `), (0, M.cB)("date-panel-calendar", {
  padding: "var(--n-calendar-left-padding)",
  display: "grid",
  gridTemplateColumns: "1fr",
  gridArea: "left-calendar"
}, [(0, M.cM)("end", {
  padding: "var(--n-calendar-right-padding)",
  gridArea: "right-calendar"
})]), (0, M.cB)("date-panel-month-calendar", {
  display: "flex",
  gridArea: "left-calendar"
}, [(0, M.cE)("picker-col", `
 min-width: var(--n-scroll-item-width);
 height: calc(var(--n-scroll-item-height) * 6);
 user-select: none;
 -webkit-user-select: none;
 `, [(0, M.c)("&:first-child", `
 min-width: calc(var(--n-scroll-item-width) + 4px);
 `, [(0, M.cE)("picker-col-item", [(0, M.c)("&::before", "left: 4px;")])]), (0, M.cE)("padding", `
 height: calc(var(--n-scroll-item-height) * 5)
 `)]), (0, M.cE)("picker-col-item", `
 z-index: 0;
 cursor: pointer;
 height: var(--n-scroll-item-height);
 box-sizing: border-box;
 padding-top: 4px;
 display: flex;
 align-items: center;
 justify-content: center;
 position: relative;
 transition: 
 color .3s var(--n-bezier),
 background-color .3s var(--n-bezier);
 background: #0000;
 color: var(--n-item-text-color);
 `, [(0, M.c)("&::before", `
 z-index: -1;
 content: "";
 position: absolute;
 left: 0;
 right: 4px;
 top: 4px;
 bottom: 0;
 border-radius: var(--n-scroll-item-border-radius);
 transition: 
 background-color .3s var(--n-bezier);
 `), (0, M.cNotM)("disabled", [(0, M.c)("&:hover::before", `
 background-color: var(--n-item-color-hover);
 `), (0, M.cM)("selected", `
 color: var(--n-item-color-active);
 `, [(0, M.c)("&::before", "background-color: var(--n-item-color-hover);")])]), (0, M.cM)("disabled", `
 color: var(--n-item-text-color-disabled);
 cursor: not-allowed;
 `, [(0, M.cM)("selected", [(0, M.c)("&::before", `
 background-color: var(--n-item-color-disabled);
 `)])])])]), (0, M.cM)("date", {
  gridTemplateAreas: `
 "left-calendar"
 "footer"
 "action"
 `
}), (0, M.cM)("week", {
  gridTemplateAreas: `
 "left-calendar"
 "footer"
 "action"
 `
}), (0, M.cM)("daterange", {
  gridTemplateAreas: `
 "left-calendar divider right-calendar"
 "footer footer footer"
 "action action action"
 `
}), (0, M.cM)("datetime", {
  gridTemplateAreas: `
 "header"
 "left-calendar"
 "footer"
 "action"
 `
}), (0, M.cM)("datetimerange", {
  gridTemplateAreas: `
 "header header header"
 "left-calendar divider right-calendar"
 "footer footer footer"
 "action action action"
 `
}), (0, M.cM)("month", {
  gridTemplateAreas: `
 "left-calendar"
 "footer"
 "action"
 `
}), (0, M.cB)("date-panel-footer", {
  gridArea: "footer"
}), (0, M.cB)("date-panel-actions", {
  gridArea: "action"
}), (0, M.cB)("date-panel-header", {
  gridArea: "header"
}), (0, M.cB)("date-panel-header", `
 box-sizing: border-box;
 width: 100%;
 align-items: center;
 padding: var(--n-panel-header-padding);
 display: flex;
 justify-content: space-between;
 border-bottom: 1px solid var(--n-panel-header-divider-color);
 `, [(0, M.c)(">", [(0, M.c)("*:not(:last-child)", {
  marginRight: "10px"
}), (0, M.c)("*", {
  flex: 1,
  width: 0
}), (0, M.cB)("time-picker", {
  zIndex: 1
})])]), (0, M.cB)("date-panel-month", `
 box-sizing: border-box;
 display: grid;
 grid-template-columns: var(--n-calendar-title-grid-template-columns);
 align-items: center;
 justify-items: center;
 padding: var(--n-calendar-title-padding);
 height: var(--n-calendar-title-height);
 `, [(0, M.cE)("prev, next, fast-prev, fast-next", `
 line-height: 0;
 cursor: pointer;
 width: var(--n-arrow-size);
 height: var(--n-arrow-size);
 color: var(--n-arrow-color);
 `), (0, M.cE)("month-year", `
 user-select: none;
 -webkit-user-select: none;
 flex-grow: 1;
 position: relative;
 `, [(0, M.cE)("text", `
 font-size: var(--n-calendar-title-font-size);
 line-height: var(--n-calendar-title-font-size);
 font-weight: var(--n-calendar-title-font-weight);
 padding: 6px 8px;
 text-align: center;
 color: var(--n-calendar-title-text-color);
 cursor: pointer;
 transition: background-color .3s var(--n-bezier);
 border-radius: var(--n-panel-border-radius);
 `, [(0, M.cM)("active", `
 background-color: var(--n-calendar-title-color-hover);
 `), (0, M.c)("&:hover", `
 background-color: var(--n-calendar-title-color-hover);
 `)])])]), (0, M.cB)("date-panel-weekdays", `
 display: grid;
 margin: auto;
 grid-template-columns: repeat(7, var(--n-item-cell-width));
 grid-template-rows: repeat(1, var(--n-item-cell-height));
 align-items: center;
 justify-items: center;
 margin-bottom: 4px;
 border-bottom: 1px solid var(--n-calendar-days-divider-color);
 `, [(0, M.cE)("day", `
 white-space: nowrap;
 user-select: none;
 -webkit-user-select: none;
 line-height: 15px;
 width: var(--n-item-size);
 text-align: center;
 font-size: var(--n-calendar-days-font-size);
 color: var(--n-item-text-color);
 display: flex;
 align-items: center;
 justify-content: center;
 `)]), (0, M.cB)("date-panel-dates", `
 margin: auto;
 display: grid;
 grid-template-columns: repeat(7, var(--n-item-cell-width));
 grid-template-rows: repeat(6, var(--n-item-cell-height));
 align-items: center;
 justify-items: center;
 flex-wrap: wrap;
 `, [(0, M.cB)("date-panel-date", `
 user-select: none;
 -webkit-user-select: none;
 position: relative;
 width: var(--n-item-size);
 height: var(--n-item-size);
 line-height: var(--n-item-size);
 text-align: center;
 font-size: var(--n-item-font-size);
 border-radius: var(--n-item-border-radius);
 z-index: 0;
 cursor: pointer;
 transition:
 background-color .2s var(--n-bezier),
 color .2s var(--n-bezier);
 `, [(0, M.cE)("trigger", `
 position: absolute;
 left: calc(var(--n-item-size) / 2 - var(--n-item-cell-width) / 2);
 top: calc(var(--n-item-size) / 2 - var(--n-item-cell-height) / 2);
 width: var(--n-item-cell-width);
 height: var(--n-item-cell-height);
 `), (0, M.cM)("current", [(0, M.cE)("sup", `
 position: absolute;
 top: 2px;
 right: 2px;
 content: "";
 height: 4px;
 width: 4px;
 border-radius: 2px;
 background-color: var(--n-item-color-active);
 transition:
 background-color .2s var(--n-bezier);
 `)]), (0, M.c)("&::after", `
 content: "";
 z-index: -1;
 position: absolute;
 left: 0;
 right: 0;
 top: 0;
 bottom: 0;
 border-radius: inherit;
 transition: background-color .3s var(--n-bezier);
 `), (0, M.cM)("covered, start, end", [(0, M.cNotM)("excluded", [(0, M.c)("&::before", `
 content: "";
 z-index: -2;
 position: absolute;
 left: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2);
 right: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2);
 top: 0;
 bottom: 0;
 background-color: var(--n-item-color-included);
 `), (0, M.c)("&:nth-child(7n + 1)::before", {
  borderTopLeftRadius: "var(--n-item-border-radius)",
  borderBottomLeftRadius: "var(--n-item-border-radius)"
}), (0, M.c)("&:nth-child(7n + 7)::before", {
  borderTopRightRadius: "var(--n-item-border-radius)",
  borderBottomRightRadius: "var(--n-item-border-radius)"
})])]), (0, M.cM)("selected", {
  color: "var(--n-item-text-color-active)"
}, [(0, M.c)("&::after", {
  backgroundColor: "var(--n-item-color-active)"
}), (0, M.cM)("start", [(0, M.c)("&::before", {
  left: "50%"
})]), (0, M.cM)("end", [(0, M.c)("&::before", {
  right: "50%"
})]), (0, M.cE)("sup", {
  backgroundColor: "var(--n-panel-color)"
})]), (0, M.cM)("excluded", {
  color: "var(--n-item-text-color-disabled)"
}, [(0, M.cM)("selected", [(0, M.c)("&::after", {
  backgroundColor: "var(--n-item-color-disabled)"
})])]), (0, M.cM)("disabled", {
  cursor: "not-allowed",
  color: "var(--n-item-text-color-disabled)"
}, [(0, M.cM)("covered", [(0, M.c)("&::before", {
  backgroundColor: "var(--n-item-color-disabled)"
})]), (0, M.cM)("selected", [(0, M.c)("&::before", {
  backgroundColor: "var(--n-item-color-disabled)"
}), (0, M.c)("&::after", {
  backgroundColor: "var(--n-item-color-disabled)"
})])]), (0, M.cM)("week-hovered", [(0, M.c)("&::before", `
 background-color: var(--n-item-color-included);
 `), (0, M.c)("&:nth-child(7n + 1)::before", `
 border-top-left-radius: var(--n-item-border-radius);
 border-bottom-left-radius: var(--n-item-border-radius);
 `), (0, M.c)("&:nth-child(7n + 7)::before", `
 border-top-right-radius: var(--n-item-border-radius);
 border-bottom-right-radius: var(--n-item-border-radius);
 `)]), (0, M.cM)("week-selected", `
 color: var(--n-item-text-color-active)
 `, [(0, M.c)("&::before", `
 background-color: var(--n-item-color-active);
 `), (0, M.c)("&:nth-child(7n + 1)::before", `
 border-top-left-radius: var(--n-item-border-radius);
 border-bottom-left-radius: var(--n-item-border-radius);
 `), (0, M.c)("&:nth-child(7n + 7)::before", `
 border-top-right-radius: var(--n-item-border-radius);
 border-bottom-right-radius: var(--n-item-border-radius);
 `)])])]), (0, M.cNotM)("week", [(0, M.cB)("date-panel-dates", [(0, M.cB)("date-panel-date", [(0, M.cNotM)("disabled", [(0, M.cNotM)("selected", [(0, M.c)("&:hover", `
 background-color: var(--n-item-color-hover);
 `)])])])])]), (0, M.cM)("week", [(0, M.cB)("date-panel-dates", [(0, M.cB)("date-panel-date", [(0, M.c)("&::before", `
 content: "";
 z-index: -2;
 position: absolute;
 left: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2);
 right: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2);
 top: 0;
 bottom: 0;
 transition: background-color .3s var(--n-bezier);
 `)])])]), (0, M.cE)("vertical-divider", `
 grid-area: divider;
 height: 100%;
 width: 1px;
 background-color: var(--n-calendar-divider-color);
 `), (0, M.cB)("date-panel-footer", `
 border-top: 1px solid var(--n-panel-action-divider-color);
 padding: var(--n-panel-extra-footer-padding);
 `), (0, M.cB)("date-panel-actions", `
 flex: 1;
 padding: var(--n-panel-action-padding);
 display: flex;
 align-items: center;
 justify-content: space-between;
 border-top: 1px solid var(--n-panel-action-divider-color);
 `, [(0, M.cE)("prefix, suffix", `
 display: flex;
 margin-bottom: -8px;
 `), (0, M.cE)("suffix", `
 align-self: flex-end;
 `), (0, M.cE)("prefix", `
 flex-wrap: wrap;
 `), (0, M.cB)("button", `
 margin-bottom: 8px;
 `, [(0, M.c)("&:not(:last-child)", `
 margin-right: 8px;
 `)])])]), (0, M.c)("[data-n-date].transition-disabled", {
  transition: "none !important"
}, [(0, M.c)("&::before, &::after", {
  transition: "none !important"
})])]);
var Ea = {};
Object.defineProperty(Ea, "__esModule", { value: !0 });
Ea.uniCalendarValidation = B2;
Ea.dualCalendarValidation = L2;
const Lr = er, Ye = ke;
function B2(e, n) {
  const r = (0, Ye.computed)(() => {
    const { isTimeDisabled: f } = e, { value: h } = n;
    if (!(h === null || Array.isArray(h)))
      return f == null ? void 0 : f(h);
  }), a = (0, Ye.computed)(() => {
    var f;
    return (f = r.value) === null || f === void 0 ? void 0 : f.isHourDisabled;
  }), i = (0, Ye.computed)(() => {
    var f;
    return (f = r.value) === null || f === void 0 ? void 0 : f.isMinuteDisabled;
  }), u = (0, Ye.computed)(() => {
    var f;
    return (f = r.value) === null || f === void 0 ? void 0 : f.isSecondDisabled;
  }), l = (0, Ye.computed)(() => {
    const { type: f, isDateDisabled: h } = e, { value: v } = n;
    return v === null || Array.isArray(v) || !["date", "datetime"].includes(f) || !h ? !1 : h(v, { type: "input" });
  }), d = (0, Ye.computed)(() => {
    const { type: f } = e, { value: h } = n;
    if (h === null || f === "datetime" || Array.isArray(h))
      return !1;
    const v = new Date(h), P = v.getHours(), S = v.getMinutes(), I = v.getMinutes();
    return (a.value ? a.value(P) : !1) || (i.value ? i.value(S, P) : !1) || (u.value ? u.value(I, S, P) : !1);
  }), c = (0, Ye.computed)(() => l.value || d.value);
  return {
    // date & datetime
    isValueInvalidRef: (0, Ye.computed)(() => {
      const { type: f } = e;
      return f === "date" ? l.value : f === "datetime" ? c.value : !1;
    }),
    isDateInvalidRef: l,
    // datetime only
    isTimeInvalidRef: d,
    isDateTimeInvalidRef: c,
    isHourDisabledRef: a,
    isMinuteDisabledRef: i,
    isSecondDisabledRef: u
  };
}
function L2(e, n) {
  const r = (0, Ye.computed)(() => {
    const { isTimeDisabled: h } = e, { value: v } = n;
    return !Array.isArray(v) || !h ? [void 0, void 0] : [
      h == null ? void 0 : h(v[0], "start", v),
      h == null ? void 0 : h(v[1], "end", v)
    ];
  }), a = {
    isStartHourDisabledRef: (0, Ye.computed)(() => {
      var h;
      return (h = r.value[0]) === null || h === void 0 ? void 0 : h.isHourDisabled;
    }),
    isEndHourDisabledRef: (0, Ye.computed)(() => {
      var h;
      return (h = r.value[1]) === null || h === void 0 ? void 0 : h.isHourDisabled;
    }),
    isStartMinuteDisabledRef: (0, Ye.computed)(() => {
      var h;
      return (h = r.value[0]) === null || h === void 0 ? void 0 : h.isMinuteDisabled;
    }),
    isEndMinuteDisabledRef: (0, Ye.computed)(() => {
      var h;
      return (h = r.value[1]) === null || h === void 0 ? void 0 : h.isMinuteDisabled;
    }),
    isStartSecondDisabledRef: (0, Ye.computed)(() => {
      var h;
      return (h = r.value[0]) === null || h === void 0 ? void 0 : h.isSecondDisabled;
    }),
    isEndSecondDisabledRef: (0, Ye.computed)(() => {
      var h;
      return (h = r.value[1]) === null || h === void 0 ? void 0 : h.isSecondDisabled;
    })
  }, i = (0, Ye.computed)(() => {
    const { type: h, isDateDisabled: v } = e, { value: P } = n;
    return P === null || !Array.isArray(P) || !["daterange", "datetimerange"].includes(h) || !v ? !1 : v(P[0], "start", P);
  }), u = (0, Ye.computed)(() => {
    const { type: h, isDateDisabled: v } = e, { value: P } = n;
    return P === null || !Array.isArray(P) || !["daterange", "datetimerange"].includes(h) || !v ? !1 : v(P[1], "end", P);
  }), l = (0, Ye.computed)(() => {
    const { type: h } = e, { value: v } = n;
    if (v === null || !Array.isArray(v) || h !== "datetimerange")
      return !1;
    const P = (0, Lr.getHours)(v[0]), S = (0, Lr.getMinutes)(v[0]), I = (0, Lr.getSeconds)(v[0]), { isStartHourDisabledRef: H, isStartMinuteDisabledRef: x, isStartSecondDisabledRef: Z } = a;
    return (H.value ? H.value(P) : !1) || (x.value ? x.value(S, P) : !1) || (Z.value ? Z.value(I, S, P) : !1);
  }), d = (0, Ye.computed)(() => {
    const { type: h } = e, { value: v } = n;
    if (v === null || !Array.isArray(v) || h !== "datetimerange")
      return !1;
    const P = (0, Lr.getHours)(v[1]), S = (0, Lr.getMinutes)(v[1]), I = (0, Lr.getSeconds)(v[1]), { isEndHourDisabledRef: H, isEndMinuteDisabledRef: x, isEndSecondDisabledRef: Z } = a;
    return (H.value ? H.value(P) : !1) || (x.value ? x.value(S, P) : !1) || (Z.value ? Z.value(I, S, P) : !1);
  }), c = (0, Ye.computed)(() => i.value || l.value), o = (0, Ye.computed)(() => u.value || d.value), f = (0, Ye.computed)(() => c.value || o.value);
  return Object.assign(Object.assign({}, a), {
    isStartDateInvalidRef: i,
    isEndDateInvalidRef: u,
    isStartTimeInvalidRef: l,
    isEndTimeInvalidRef: d,
    isStartValueInvalidRef: c,
    isEndValueInvalidRef: o,
    isRangeInvalidRef: f
  });
}
var Hr = Oe && Oe.__importDefault || function(e) {
  return e && e.__esModule ? e : { default: e };
};
Object.defineProperty(yl, "__esModule", { value: !0 });
const _t = er, fo = mn, U2 = El, Sl = Yl, N = ke, Cl = vn, Il = kt, jl = Zr, Ur = Ir, Ae = bt, ho = ea, q2 = s0, Q2 = Er, Z2 = Hr(fc), p2 = Hr(mc), X2 = Hr(vc), K2 = Hr(Mc), G2 = Hr(wa), J2 = Hr(Pc), k2 = Nn, e1 = Hr(Tc), qr = ze, mo = Ea;
yl.default = (0, N.defineComponent)({
  name: "DatePicker",
  props: k2.datePickerProps,
  slots: Object,
  setup(e, { slots: n }) {
    var r;
    process.env.NODE_ENV !== "production" && (0, N.watchEffect)(() => {
      e.onChange !== void 0 && (0, Ae.warnOnce)("date-picker", "`on-change` is deprecated, please use `on-update:value` instead.");
    });
    const { localeRef: a, dateLocaleRef: i } = (0, Ur.useLocale)("DatePicker"), { mergedComponentPropsRef: u, mergedClsPrefixRef: l, mergedBorderedRef: d, namespaceRef: c, inlineThemeDisabled: o } = (0, Ur.useConfig)(e), f = (0, Ur.useFormItem)(e, {
      mergedSize: (_) => {
        var j, U;
        const { size: k } = e;
        if (k)
          return k;
        const { mergedSize: Ne } = _ || {};
        if (Ne != null && Ne.value)
          return Ne.value;
        const Ue = (U = (j = u == null ? void 0 : u.value) === null || j === void 0 ? void 0 : j.DatePicker) === null || U === void 0 ? void 0 : U.size;
        return Ue || "medium";
      }
    }), { mergedSizeRef: h, mergedDisabledRef: v, mergedStatusRef: P } = f, S = (0, N.ref)(null), I = (0, N.ref)(null), H = (0, N.ref)(null), x = (0, N.ref)(!1), Z = (0, N.toRef)(e, "show"), Q = (0, Sl.useMergedState)(Z, x), F = (0, N.computed)(() => ({
      locale: i.value.locale,
      useAdditionalWeekYearTokens: !0
    })), T = (0, N.computed)(() => {
      const { format: _ } = e;
      if (_)
        return _;
      switch (e.type) {
        case "date":
        case "daterange":
          return a.value.dateFormat;
        case "datetime":
        case "datetimerange":
          return a.value.dateTimeFormat;
        case "year":
        case "yearrange":
          return a.value.yearTypeFormat;
        case "month":
        case "monthrange":
          return a.value.monthTypeFormat;
        case "quarter":
        case "quarterrange":
          return a.value.quarterFormat;
        case "week":
          return a.value.weekFormat;
      }
    }), X = (0, N.computed)(() => {
      var _;
      return (_ = e.valueFormat) !== null && _ !== void 0 ? _ : T.value;
    });
    function V(_) {
      if (_ === null)
        return null;
      const { value: j } = X, { value: U } = F;
      return Array.isArray(_) ? [
        (0, qr.strictParse)(_[0], j, /* @__PURE__ */ new Date(), U).getTime(),
        (0, qr.strictParse)(_[1], j, /* @__PURE__ */ new Date(), U).getTime()
      ] : (0, qr.strictParse)(_, j, /* @__PURE__ */ new Date(), U).getTime();
    }
    const { defaultFormattedValue: oe, defaultValue: Ie } = e, se = (0, N.ref)((r = oe !== void 0 ? V(oe) : Ie) !== null && r !== void 0 ? r : null), de = (0, N.computed)(() => {
      const { formattedValue: _ } = e;
      return _ !== void 0 ? V(_) : e.value;
    }), L = (0, Sl.useMergedState)(de, se), w = (0, N.ref)(null);
    (0, N.watchEffect)(() => {
      w.value = L.value;
    });
    const Pe = (0, N.ref)(""), fe = (0, N.ref)(""), Fe = (0, N.ref)(""), ee = (0, Ur.useTheme)("DatePicker", "-date-picker", e1.default, q2.datePickerLight, e, l), te = (0, N.computed)(() => {
      var _, j;
      return ((j = (_ = u == null ? void 0 : u.value) === null || _ === void 0 ? void 0 : _.DatePicker) === null || j === void 0 ? void 0 : j.timePickerSize) || "small";
    }), he = (0, N.computed)(() => [
      "daterange",
      "datetimerange",
      "monthrange",
      "quarterrange",
      "yearrange"
    ].includes(e.type)), me = (0, N.computed)(() => {
      const { placeholder: _ } = e;
      if (_ === void 0) {
        const { type: j } = e;
        switch (j) {
          case "date":
            return a.value.datePlaceholder;
          case "datetime":
            return a.value.datetimePlaceholder;
          case "month":
            return a.value.monthPlaceholder;
          case "year":
            return a.value.yearPlaceholder;
          case "quarter":
            return a.value.quarterPlaceholder;
          case "week":
            return a.value.weekPlaceholder;
          default:
            return "";
        }
      } else
        return _;
    }), je = (0, N.computed)(() => e.startPlaceholder === void 0 ? e.type === "daterange" ? a.value.startDatePlaceholder : e.type === "datetimerange" ? a.value.startDatetimePlaceholder : e.type === "monthrange" ? a.value.startMonthPlaceholder : "" : e.startPlaceholder), Se = (0, N.computed)(() => e.endPlaceholder === void 0 ? e.type === "daterange" ? a.value.endDatePlaceholder : e.type === "datetimerange" ? a.value.endDatetimePlaceholder : e.type === "monthrange" ? a.value.endMonthPlaceholder : "" : e.endPlaceholder), Xe = (0, N.computed)(() => {
      const { actions: _, type: j, clearable: U } = e;
      if (_ === null)
        return [];
      if (_ !== void 0)
        return _;
      const k = U ? ["clear"] : [];
      switch (j) {
        case "date":
        case "week":
          return k.push("now"), k;
        case "datetime":
          return k.push("now", "confirm"), k;
        case "daterange":
          return k.push("confirm"), k;
        case "datetimerange":
          return k.push("confirm"), k;
        case "month":
          return k.push("now", "confirm"), k;
        case "year":
          return k.push("now"), k;
        case "quarter":
          return k.push("now", "confirm"), k;
        case "monthrange":
        case "yearrange":
        case "quarterrange":
          return k.push("confirm"), k;
        default: {
          (0, Ae.warn)("date-picker", "The type is wrong, n-date-picker's type only supports `date`, `datetime`, `daterange` and `datetimerange`.");
          break;
        }
      }
    });
    function ue(_) {
      if (_ === null)
        return null;
      if (Array.isArray(_)) {
        const { value: j } = X, { value: U } = F;
        return [
          (0, _t.format)(_[0], j, U),
          (0, _t.format)(_[1], j, F.value)
        ];
      } else
        return (0, _t.format)(_, X.value, F.value);
    }
    function E(_) {
      w.value = _;
    }
    function y(_, j) {
      const { "onUpdate:formattedValue": U, onUpdateFormattedValue: k } = e;
      U && (0, Ae.call)(U, _, j), k && (0, Ae.call)(k, _, j);
    }
    function K(_, j) {
      const { "onUpdate:value": U, onUpdateValue: k, onChange: Ne } = e, { nTriggerFormChange: Ue, nTriggerFormInput: qe } = f, De = ue(_);
      j.doConfirm && we(_, De), k && (0, Ae.call)(k, _, De), U && (0, Ae.call)(U, _, De), Ne && (0, Ae.call)(Ne, _, De), se.value = _, y(De, _), Ue(), qe();
    }
    function Ce() {
      const { onClear: _ } = e;
      _ == null || _();
    }
    function we(_, j) {
      const { onConfirm: U } = e;
      U && U(_, j);
    }
    function et(_) {
      const { onFocus: j } = e, { nTriggerFormFocus: U } = f;
      j && (0, Ae.call)(j, _), U();
    }
    function ve(_) {
      const { onBlur: j } = e, { nTriggerFormBlur: U } = f;
      j && (0, Ae.call)(j, _), U();
    }
    function Ee(_) {
      const { "onUpdate:show": j, onUpdateShow: U } = e;
      j && (0, Ae.call)(j, _), U && (0, Ae.call)(U, _), x.value = _;
    }
    function tt(_) {
      _.key === "Escape" && Q.value && ((0, Ae.markEventEffectPerformed)(_), ie({
        returnFocus: !0
      }));
    }
    function ft(_) {
      _.key === "Escape" && Q.value && (0, Ae.markEventEffectPerformed)(_);
    }
    function Ot() {
      var _;
      Ee(!1), (_ = H.value) === null || _ === void 0 || _.deactivate(), Ce();
    }
    function Dt() {
      var _;
      (_ = H.value) === null || _ === void 0 || _.deactivate(), Ce();
    }
    function Mt() {
      ie({
        returnFocus: !0
      });
    }
    function Pt(_) {
      var j;
      Q.value && !(!((j = I.value) === null || j === void 0) && j.contains((0, fo.getPreciseEventTarget)(_))) && ie({
        returnFocus: !1
      });
    }
    function Tt(_) {
      ie({
        returnFocus: !0,
        disableUpdateOnClose: _
      });
    }
    function wt(_, j) {
      j ? K(_, { doConfirm: !1 }) : E(_);
    }
    function ht() {
      const _ = w.value;
      K(Array.isArray(_) ? [_[0], _[1]] : _, { doConfirm: !0 });
    }
    function ye() {
      const { value: _ } = w;
      he.value ? (Array.isArray(_) || _ === null) && mt(_) : Array.isArray(_) || lt(_);
    }
    function lt(_) {
      _ === null ? Pe.value = "" : Pe.value = (0, _t.format)(_, T.value, F.value);
    }
    function mt(_) {
      if (_ === null)
        fe.value = "", Fe.value = "";
      else {
        const j = F.value;
        fe.value = (0, _t.format)(_[0], T.value, j), Fe.value = (0, _t.format)(_[1], T.value, j);
      }
    }
    function Ze() {
      Q.value || $e();
    }
    function vt(_) {
      var j;
      !((j = S.value) === null || j === void 0) && j.$el.contains(_.relatedTarget) || (ve(_), ye(), ie({
        returnFocus: !1
      }));
    }
    function g() {
      v.value || (ye(), ie({
        returnFocus: !1
      }));
    }
    function A(_) {
      if (_ === "") {
        K(null, { doConfirm: !1 }), w.value = null, Pe.value = "";
        return;
      }
      const j = (0, qr.strictParse)(_, T.value, /* @__PURE__ */ new Date(), F.value);
      (0, _t.isValid)(j) ? (K((0, _t.getTime)(j), { doConfirm: !1 }), ye()) : Pe.value = _;
    }
    function re(_, { source: j }) {
      if (_[0] === "" && _[1] === "") {
        K(null, { doConfirm: !1 }), w.value = null, fe.value = "", Fe.value = "";
        return;
      }
      const [U, k] = _, Ne = (0, qr.strictParse)(U, T.value, /* @__PURE__ */ new Date(), F.value), Ue = (0, qr.strictParse)(k, T.value, /* @__PURE__ */ new Date(), F.value);
      if ((0, _t.isValid)(Ne) && (0, _t.isValid)(Ue)) {
        let qe = (0, _t.getTime)(Ne), De = (0, _t.getTime)(Ue);
        Ue < Ne && (j === 0 ? De = qe : qe = De), K([qe, De], {
          doConfirm: !1
        }), ye();
      } else
        [fe.value, Fe.value] = _;
    }
    function Ut(_) {
      v.value || (0, fo.happensIn)(_, "clear") || Q.value || $e();
    }
    function Ft(_) {
      v.value || et(_);
    }
    function $e() {
      v.value || Q.value || Ee(!0);
    }
    function ie({ returnFocus: _, disableUpdateOnClose: j }) {
      var U;
      Q.value && (Ee(!1), e.type !== "date" && e.updateValueOnClose && !j && ht(), _ && ((U = H.value) === null || U === void 0 || U.focus()));
    }
    (0, N.watch)(w, () => {
      ye();
    }), ye(), (0, N.watch)(Q, (_) => {
      _ || (w.value = L.value);
    });
    const Yt = (0, mo.uniCalendarValidation)(e, w), dt = (0, mo.dualCalendarValidation)(e, w);
    (0, N.provide)(Q2.datePickerInjectionKey, Object.assign(Object.assign(Object.assign({
      mergedClsPrefixRef: l,
      mergedThemeRef: ee,
      timePickerSizeRef: te,
      localeRef: a,
      dateLocaleRef: i,
      firstDayOfWeekRef: (0, N.toRef)(e, "firstDayOfWeek"),
      isDateDisabledRef: (0, N.toRef)(e, "isDateDisabled"),
      rangesRef: (0, N.toRef)(e, "ranges"),
      timePickerPropsRef: (0, N.toRef)(e, "timePickerProps"),
      closeOnSelectRef: (0, N.toRef)(e, "closeOnSelect"),
      updateValueOnCloseRef: (0, N.toRef)(e, "updateValueOnClose"),
      monthFormatRef: (0, N.toRef)(e, "monthFormat"),
      yearFormatRef: (0, N.toRef)(e, "yearFormat"),
      quarterFormatRef: (0, N.toRef)(e, "quarterFormat"),
      yearRangeRef: (0, N.toRef)(e, "yearRange")
    }, Yt), dt), { datePickerSlots: n }));
    const qt = {
      focus: () => {
        var _;
        (_ = H.value) === null || _ === void 0 || _.focus();
      },
      blur: () => {
        var _;
        (_ = H.value) === null || _ === void 0 || _.blur();
      }
    }, Et = (0, N.computed)(() => {
      const { common: { cubicBezierEaseInOut: _ }, self: { iconColor: j, iconColorDisabled: U } } = ee.value;
      return {
        "--n-bezier": _,
        "--n-icon-color-override": j,
        "--n-icon-color-disabled-override": U
      };
    }), rt = o ? (0, Ur.useThemeClass)("date-picker-trigger", void 0, Et, e) : void 0, yt = (0, N.computed)(() => {
      const { type: _ } = e, { common: { cubicBezierEaseInOut: j }, self: { calendarTitleFontSize: U, calendarDaysFontSize: k, itemFontSize: Ne, itemTextColor: Ue, itemColorDisabled: qe, itemColorIncluded: De, itemColorHover: ct, itemColorActive: st, itemBorderRadius: Ke, itemTextColorDisabled: We, itemTextColorActive: $t, panelColor: St, panelTextColor: Ct, arrowColor: Nt, calendarTitleTextColor: Rt, panelActionDividerColor: Qe, panelHeaderDividerColor: Qt, calendarDaysDividerColor: Zt, panelBoxShadow: pt, panelBorderRadius: pe, calendarTitleFontWeight: Xt, panelExtraFooterPadding: Ht, panelActionPadding: zt, itemSize: at, itemCellWidth: At, itemCellHeight: it, scrollItemWidth: s, scrollItemHeight: m, calendarTitlePadding: b, calendarTitleHeight: R, calendarDaysHeight: ce, calendarDaysTextColor: q, arrowSize: _e, panelHeaderPadding: Wt, calendarDividerColor: It, calendarTitleGridTempateColumns: br, iconColor: Or, iconColorDisabled: Dr, scrollItemBorderRadius: Mr, calendarTitleColorHover: Pr, [(0, Ae.createKey)("calendarLeftPadding", _)]: kr, [(0, Ae.createKey)("calendarRightPadding", _)]: en } } = ee.value;
      return {
        "--n-bezier": j,
        "--n-panel-border-radius": pe,
        "--n-panel-color": St,
        "--n-panel-box-shadow": pt,
        "--n-panel-text-color": Ct,
        // panel header
        "--n-panel-header-padding": Wt,
        "--n-panel-header-divider-color": Qt,
        // panel calendar
        "--n-calendar-left-padding": kr,
        "--n-calendar-right-padding": en,
        "--n-calendar-title-color-hover": Pr,
        "--n-calendar-title-height": R,
        "--n-calendar-title-padding": b,
        "--n-calendar-title-font-size": U,
        "--n-calendar-title-font-weight": Xt,
        "--n-calendar-title-text-color": Rt,
        "--n-calendar-title-grid-template-columns": br,
        "--n-calendar-days-height": ce,
        "--n-calendar-days-divider-color": Zt,
        "--n-calendar-days-font-size": k,
        "--n-calendar-days-text-color": q,
        "--n-calendar-divider-color": It,
        // panel action
        "--n-panel-action-padding": zt,
        "--n-panel-extra-footer-padding": Ht,
        "--n-panel-action-divider-color": Qe,
        // panel item
        "--n-item-font-size": Ne,
        "--n-item-border-radius": Ke,
        "--n-item-size": at,
        "--n-item-cell-width": At,
        "--n-item-cell-height": it,
        "--n-item-text-color": Ue,
        "--n-item-color-included": De,
        "--n-item-color-disabled": qe,
        "--n-item-color-hover": ct,
        "--n-item-color-active": st,
        "--n-item-text-color-disabled": We,
        "--n-item-text-color-active": $t,
        // scroll item
        "--n-scroll-item-width": s,
        "--n-scroll-item-height": m,
        "--n-scroll-item-border-radius": Mr,
        // panel arrow
        "--n-arrow-size": _e,
        "--n-arrow-color": Nt,
        // icon in trigger
        "--n-icon-color": Or,
        "--n-icon-color-disabled": Dr
      };
    }), nt = o ? (0, Ur.useThemeClass)("date-picker", (0, N.computed)(() => e.type), yt, e) : void 0;
    return Object.assign(Object.assign({}, qt), {
      mergedStatus: P,
      mergedClsPrefix: l,
      mergedBordered: d,
      namespace: c,
      uncontrolledValue: se,
      pendingValue: w,
      panelInstRef: S,
      triggerElRef: I,
      inputInstRef: H,
      isMounted: (0, Sl.useIsMounted)(),
      displayTime: Pe,
      displayStartTime: fe,
      displayEndTime: Fe,
      mergedShow: Q,
      adjustedTo: (0, Ae.useAdjustedTo)(e),
      isRange: he,
      localizedStartPlaceholder: je,
      localizedEndPlaceholder: Se,
      mergedSize: h,
      mergedDisabled: v,
      localizedPlacehoder: me,
      isValueInvalid: Yt.isValueInvalidRef,
      isStartValueInvalid: dt.isStartValueInvalidRef,
      isEndValueInvalid: dt.isEndValueInvalidRef,
      handleInputKeydown: ft,
      handleClickOutside: Pt,
      handleKeydown: tt,
      handleClear: Ot,
      handlePanelClear: Dt,
      handleTriggerClick: Ut,
      handleInputActivate: Ze,
      handleInputDeactivate: g,
      handleInputFocus: Ft,
      handleInputBlur: vt,
      handlePanelTabOut: Mt,
      handlePanelClose: Tt,
      handleRangeUpdateValue: re,
      handleSingleUpdateValue: A,
      handlePanelUpdateValue: wt,
      handlePanelConfirm: ht,
      mergedTheme: ee,
      actions: Xe,
      triggerCssVars: o ? void 0 : Et,
      triggerThemeClass: rt == null ? void 0 : rt.themeClass,
      triggerOnRender: rt == null ? void 0 : rt.onRender,
      cssVars: o ? void 0 : yt,
      themeClass: nt == null ? void 0 : nt.themeClass,
      onRender: nt == null ? void 0 : nt.onRender,
      onNextMonth: e.onNextMonth,
      onPrevMonth: e.onPrevMonth,
      onNextYear: e.onNextYear,
      onPrevYear: e.onPrevYear
    });
  },
  render() {
    const { clearable: e, triggerOnRender: n, mergedClsPrefix: r, $slots: a } = this, i = {
      onUpdateValue: this.handlePanelUpdateValue,
      onTabOut: this.handlePanelTabOut,
      onClose: this.handlePanelClose,
      onClear: this.handlePanelClear,
      onKeydown: this.handleKeydown,
      onConfirm: this.handlePanelConfirm,
      ref: "panelInstRef",
      value: this.pendingValue,
      active: this.mergedShow,
      actions: this.actions,
      shortcuts: this.shortcuts,
      style: this.cssVars,
      defaultTime: this.defaultTime,
      themeClass: this.themeClass,
      panel: this.panel,
      inputReadonly: this.inputReadonly || this.mergedDisabled,
      onRender: this.onRender,
      onNextMonth: this.onNextMonth,
      onPrevMonth: this.onPrevMonth,
      onNextYear: this.onNextYear,
      onPrevYear: this.onPrevYear,
      timePickerFormat: this.timePickerFormat,
      dateFormat: this.dateFormat,
      fastYearSelect: this.fastYearSelect,
      fastMonthSelect: this.fastMonthSelect,
      calendarDayFormat: this.calendarDayFormat,
      calendarHeaderYearFormat: this.calendarHeaderYearFormat,
      calendarHeaderMonthFormat: this.calendarHeaderMonthFormat,
      calendarHeaderMonthYearSeparator: this.calendarHeaderMonthYearSeparator,
      calendarHeaderMonthBeforeYear: this.calendarHeaderMonthBeforeYear
    }, u = () => {
      const { type: d } = this;
      return d === "datetime" ? (0, N.h)(X2.default, Object.assign({}, i, { defaultCalendarStartTime: this.defaultCalendarStartTime }), a) : d === "daterange" ? (0, N.h)(p2.default, Object.assign({}, i, { defaultCalendarStartTime: this.defaultCalendarStartTime, defaultCalendarEndTime: this.defaultCalendarEndTime, bindCalendarMonths: this.bindCalendarMonths }), a) : d === "datetimerange" ? (0, N.h)(K2.default, Object.assign({}, i, { defaultCalendarStartTime: this.defaultCalendarStartTime, defaultCalendarEndTime: this.defaultCalendarEndTime, bindCalendarMonths: this.bindCalendarMonths }), a) : d === "month" || d === "year" || d === "quarter" ? (0, N.h)(G2.default, Object.assign({}, i, { type: d, key: d })) : d === "monthrange" || d === "yearrange" || d === "quarterrange" ? (0, N.h)(J2.default, Object.assign({}, i, { type: d })) : (0, N.h)(Z2.default, Object.assign({}, i, { type: d, defaultCalendarStartTime: this.defaultCalendarStartTime }), a);
    };
    if (this.panel)
      return u();
    n == null || n();
    const l = {
      bordered: this.mergedBordered,
      size: this.mergedSize,
      passivelyActivated: !0,
      disabled: this.mergedDisabled,
      readonly: this.inputReadonly || this.mergedDisabled,
      clearable: e,
      onClear: this.handleClear,
      onClick: this.handleTriggerClick,
      onKeydown: this.handleInputKeydown,
      onActivate: this.handleInputActivate,
      onDeactivate: this.handleInputDeactivate,
      onFocus: this.handleInputFocus,
      onBlur: this.handleInputBlur
    };
    return (0, N.h)(
      "div",
      { ref: "triggerElRef", class: [
        `${r}-date-picker`,
        this.mergedDisabled && `${r}-date-picker--disabled`,
        this.isRange && `${r}-date-picker--range`,
        this.triggerThemeClass
      ], style: this.triggerCssVars, onKeydown: this.handleKeydown },
      (0, N.h)(Cl.VBinder, null, {
        default: () => [
          (0, N.h)(Cl.VTarget, null, {
            default: () => this.isRange ? (0, N.h)(ho.NInput, Object.assign({ ref: "inputInstRef", status: this.mergedStatus, value: [this.displayStartTime, this.displayEndTime], placeholder: [
              this.localizedStartPlaceholder,
              this.localizedEndPlaceholder
            ], textDecoration: [
              this.isStartValueInvalid ? "line-through" : "",
              this.isEndValueInvalid ? "line-through" : ""
            ], pair: !0, onUpdateValue: this.handleRangeUpdateValue, theme: this.mergedTheme.peers.Input, themeOverrides: this.mergedTheme.peerOverrides.Input, internalForceFocus: this.mergedShow, internalDeactivateOnEnter: !0 }, l), {
              separator: () => this.separator === void 0 ? (0, Ae.resolveSlot)(a.separator, () => [
                (0, N.h)(Il.NBaseIcon, { clsPrefix: r, class: `${r}-date-picker-icon` }, {
                  default: () => (0, N.h)(jl.ToIcon, null)
                })
              ]) : this.separator,
              [e ? "clear-icon-placeholder" : "suffix"]: () => (0, Ae.resolveSlot)(a["date-icon"], () => [
                (0, N.h)(Il.NBaseIcon, { clsPrefix: r, class: `${r}-date-picker-icon` }, {
                  default: () => (0, N.h)(jl.DateIcon, null)
                })
              ])
            }) : (0, N.h)(ho.NInput, Object.assign({ ref: "inputInstRef", status: this.mergedStatus, value: this.displayTime, placeholder: this.localizedPlacehoder, textDecoration: this.isValueInvalid && !this.isRange ? "line-through" : "", onUpdateValue: this.handleSingleUpdateValue, theme: this.mergedTheme.peers.Input, themeOverrides: this.mergedTheme.peerOverrides.Input, internalForceFocus: this.mergedShow, internalDeactivateOnEnter: !0 }, l), {
              [e ? "clear-icon-placeholder" : "suffix"]: () => (0, N.h)(Il.NBaseIcon, { clsPrefix: r, class: `${r}-date-picker-icon` }, {
                default: () => (0, Ae.resolveSlot)(a["date-icon"], () => [
                  (0, N.h)(jl.DateIcon, null)
                ])
              })
            })
          }),
          (0, N.h)(Cl.VFollower, { show: this.mergedShow, containerClass: this.namespace, to: this.adjustedTo, teleportDisabled: this.adjustedTo === Ae.useAdjustedTo.tdkey, placement: this.placement }, {
            default: () => (0, N.h)(N.Transition, { name: "fade-in-scale-up-transition", appear: this.isMounted }, {
              default: () => this.mergedShow ? (0, N.withDirectives)(u(), [
                [
                  U2.clickoutside,
                  this.handleClickOutside,
                  void 0,
                  { capture: !0 }
                ]
              ]) : null
            })
          })
        ]
      })
    );
  }
});
(function(e) {
  var n = Oe && Oe.__importDefault || function(i) {
    return i && i.__esModule ? i : { default: i };
  };
  Object.defineProperty(e, "__esModule", { value: !0 }), e.datePickerProps = e.NDatePicker = void 0;
  var r = yl;
  Object.defineProperty(e, "NDatePicker", { enumerable: !0, get: function() {
    return n(r).default;
  } });
  var a = Nn;
  Object.defineProperty(e, "datePickerProps", { enumerable: !0, get: function() {
    return a.datePickerProps;
  } });
})(go);
const c1 = /* @__PURE__ */ T0({
  __proto__: null
}, [go]);
export {
  c1 as i
};