@keenmate/web-daterangepicker 1.12.0 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- var ga = Object.defineProperty;
2
- var ha = (e, a, t) => a in e ? ga(e, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[a] = t;
3
- var b = (e, a, t) => ha(e, typeof a != "symbol" ? a + "" : a, t);
4
- function Dt(e) {
1
+ var fa = Object.defineProperty;
2
+ var ma = (e, a, t) => a in e ? fa(e, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[a] = t;
3
+ var b = (e, a, t) => ma(e, typeof a != "symbol" ? a + "" : a, t);
4
+ function wt(e) {
5
5
  if (e !== "auto")
6
6
  return e;
7
7
  try {
@@ -40,11 +40,11 @@ function Me(e) {
40
40
  const a = e.getFullYear(), t = String(e.getMonth() + 1).padStart(2, "0"), n = String(e.getDate()).padStart(2, "0");
41
41
  return `${a}-${t}-${n}`;
42
42
  }
43
- function fa(e, a, t, n, r) {
43
+ function ba(e, a, t, n, r) {
44
44
  const i = Me(e), o = e.getDay();
45
45
  return !!(a && e < a || t && e > t || r && r.includes(o) || n.has(i));
46
46
  }
47
- function ma(e, a) {
47
+ function ya(e, a) {
48
48
  for (let t = 0; t < 12; t++) {
49
49
  const n = new Date(a, t + 1, 0).getDate();
50
50
  for (let r = 1; r <= n; r++) {
@@ -55,7 +55,7 @@ function ma(e, a) {
55
55
  }
56
56
  return !1;
57
57
  }
58
- function ba(e, a, t) {
58
+ function va(e, a, t) {
59
59
  const n = new Date(e), r = new Date(a);
60
60
  n.setHours(0, 0, 0, 0), r.setHours(0, 0, 0, 0);
61
61
  const i = new Date(n);
@@ -66,7 +66,7 @@ function ba(e, a, t) {
66
66
  }
67
67
  return !1;
68
68
  }
69
- function ya(e, a, t) {
69
+ function Da(e, a, t) {
70
70
  const n = [], r = new Date(e), i = new Date(a);
71
71
  r.setHours(0, 0, 0, 0), i.setHours(0, 0, 0, 0);
72
72
  const o = new Date(r);
@@ -74,7 +74,7 @@ function ya(e, a, t) {
74
74
  t(o) || n.push(new Date(o)), o.setDate(o.getDate() + 1);
75
75
  return n;
76
76
  }
77
- function va(e, a, t) {
77
+ function _a(e, a, t) {
78
78
  const n = [], r = new Date(e), i = new Date(a);
79
79
  r.setHours(0, 0, 0, 0), i.setHours(0, 0, 0, 0);
80
80
  const o = new Date(r);
@@ -82,7 +82,7 @@ function va(e, a, t) {
82
82
  t(o) && n.push(new Date(o)), o.setDate(o.getDate() + 1);
83
83
  return n;
84
84
  }
85
- function Da(e, a, t) {
85
+ function wa(e, a, t) {
86
86
  const n = new Date(e), r = new Date(a);
87
87
  n.setHours(0, 0, 0, 0), r.setHours(0, 0, 0, 0);
88
88
  let i = new Date(n);
@@ -94,7 +94,7 @@ function Da(e, a, t) {
94
94
  }
95
95
  return r;
96
96
  }
97
- function _a(e, a, t) {
97
+ function xa(e, a, t) {
98
98
  const n = [], r = new Date(e), i = new Date(a);
99
99
  r.setHours(0, 0, 0, 0), i.setHours(0, 0, 0, 0);
100
100
  let o = null;
@@ -110,24 +110,24 @@ function _a(e, a, t) {
110
110
  }
111
111
  return o && n.push({ start: o, end: new Date(i) }), n;
112
112
  }
113
- function $t(e) {
114
- return zt(e, /* @__PURE__ */ new Date());
113
+ function Pt(e) {
114
+ return Nt(e, /* @__PURE__ */ new Date());
115
115
  }
116
- function zt(e, a) {
116
+ function Nt(e, a) {
117
117
  return !e || !a ? !1 : e.getFullYear() === a.getFullYear() && e.getMonth() === a.getMonth() && e.getDate() === a.getDate();
118
118
  }
119
- function wa(e, a, t) {
119
+ function Ma(e, a, t) {
120
120
  return !a || !t ? !1 : e > a && e < t;
121
121
  }
122
- var xa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
123
- function Ma(e) {
122
+ var Sa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
123
+ function Ca(e) {
124
124
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
125
125
  }
126
- var Nt = { exports: {} };
126
+ var Ot = { exports: {} };
127
127
  (function(e) {
128
128
  (function(a, t) {
129
129
  e.exports ? e.exports = t() : a.log = t();
130
- })(xa, function() {
130
+ })(Sa, function() {
131
131
  var a = function() {
132
132
  }, t = "undefined", n = typeof window !== t && typeof window.navigator !== t && /Trident\/|MSIE /.test(window.navigator.userAgent), r = [
133
133
  "trace",
@@ -171,10 +171,10 @@ var Nt = { exports: {} };
171
171
  return l(h) || p.apply(this, arguments);
172
172
  }
173
173
  function g(h, v) {
174
- var f = this, x, E, S, D = "loglevel";
174
+ var f = this, M, C, S, D = "loglevel";
175
175
  typeof h == "string" ? D += ":" + h : typeof h == "symbol" && (D = void 0);
176
- function _(C) {
177
- var I = (r[C] || "silent").toUpperCase();
176
+ function _(E) {
177
+ var I = (r[E] || "silent").toUpperCase();
178
178
  if (!(typeof window === t || !D)) {
179
179
  try {
180
180
  window.localStorage[D] = I;
@@ -188,21 +188,21 @@ var Nt = { exports: {} };
188
188
  }
189
189
  }
190
190
  function k() {
191
- var C;
191
+ var E;
192
192
  if (!(typeof window === t || !D)) {
193
193
  try {
194
- C = window.localStorage[D];
194
+ E = window.localStorage[D];
195
195
  } catch {
196
196
  }
197
- if (typeof C === t)
197
+ if (typeof E === t)
198
198
  try {
199
199
  var I = window.document.cookie, A = encodeURIComponent(D), R = I.indexOf(A + "=");
200
- R !== -1 && (C = /^([^;]+)/.exec(
200
+ R !== -1 && (E = /^([^;]+)/.exec(
201
201
  I.slice(R + A.length + 1)
202
202
  )[1]);
203
203
  } catch {
204
204
  }
205
- return f.levels[C] === void 0 && (C = void 0), C;
205
+ return f.levels[E] === void 0 && (E = void 0), E;
206
206
  }
207
207
  }
208
208
  function L() {
@@ -217,11 +217,11 @@ var Nt = { exports: {} };
217
217
  }
218
218
  }
219
219
  }
220
- function y(C) {
221
- var I = C;
220
+ function y(E) {
221
+ var I = E;
222
222
  if (typeof I == "string" && f.levels[I.toUpperCase()] !== void 0 && (I = f.levels[I.toUpperCase()]), typeof I == "number" && I >= 0 && I <= f.levels.SILENT)
223
223
  return I;
224
- throw new TypeError("log.setLevel() called with invalid level: " + C);
224
+ throw new TypeError("log.setLevel() called with invalid level: " + E);
225
225
  }
226
226
  f.name = h, f.levels = {
227
227
  TRACE: 0,
@@ -231,26 +231,26 @@ var Nt = { exports: {} };
231
231
  ERROR: 4,
232
232
  SILENT: 5
233
233
  }, f.methodFactory = v || u, f.getLevel = function() {
234
- return S ?? E ?? x;
235
- }, f.setLevel = function(C, I) {
236
- return S = y(C), I !== !1 && _(S), c.call(f);
237
- }, f.setDefaultLevel = function(C) {
238
- E = y(C), k() || f.setLevel(C, !1);
234
+ return S ?? C ?? M;
235
+ }, f.setLevel = function(E, I) {
236
+ return S = y(E), I !== !1 && _(S), c.call(f);
237
+ }, f.setDefaultLevel = function(E) {
238
+ C = y(E), k() || f.setLevel(E, !1);
239
239
  }, f.resetLevel = function() {
240
240
  S = null, L(), c.call(f);
241
- }, f.enableAll = function(C) {
242
- f.setLevel(f.levels.TRACE, C);
243
- }, f.disableAll = function(C) {
244
- f.setLevel(f.levels.SILENT, C);
241
+ }, f.enableAll = function(E) {
242
+ f.setLevel(f.levels.TRACE, E);
243
+ }, f.disableAll = function(E) {
244
+ f.setLevel(f.levels.SILENT, E);
245
245
  }, f.rebuild = function() {
246
- if (o !== f && (x = y(o.getLevel())), c.call(f), o === f)
247
- for (var C in i)
248
- i[C].rebuild();
249
- }, x = y(
246
+ if (o !== f && (M = y(o.getLevel())), c.call(f), o === f)
247
+ for (var E in i)
248
+ i[E].rebuild();
249
+ }, M = y(
250
250
  o ? o.getLevel() : "WARN"
251
251
  );
252
- var M = k();
253
- M != null && (S = y(M)), c.call(f);
252
+ var w = k();
253
+ w != null && (S = y(w)), c.call(f);
254
254
  }
255
255
  o = new g(), o.getLogger = function(v) {
256
256
  if (typeof v != "symbol" && typeof v != "string" || v === "")
@@ -268,9 +268,9 @@ var Nt = { exports: {} };
268
268
  return i;
269
269
  }, o.default = o, o;
270
270
  });
271
- })(Nt);
272
- var Sa = Nt.exports;
273
- const Y = /* @__PURE__ */ Ma(Sa), Ca = [
271
+ })(Ot);
272
+ var Ea = Ot.exports;
273
+ const B = /* @__PURE__ */ Ca(Ea), Ia = [
274
274
  "DRP",
275
275
  "DRP:RENDERING",
276
276
  "DRP:INTERACTION",
@@ -279,7 +279,7 @@ const Y = /* @__PURE__ */ Ma(Sa), Ca = [
279
279
  "DRP:UI",
280
280
  "DRP:VALIDATION",
281
281
  "DRP:DRAG"
282
- ], Ea = {
282
+ ], ka = {
283
283
  trace: "#6b7280",
284
284
  // Gray
285
285
  debug: "#0ea5e9",
@@ -290,10 +290,10 @@ const Y = /* @__PURE__ */ Ma(Sa), Ca = [
290
290
  // Orange
291
291
  error: "#ef4444"
292
292
  // Red
293
- }, Ia = Y.methodFactory, ka = (e, a, t) => {
294
- const n = Ia.call(Y, e, a, t);
293
+ }, Ra = B.methodFactory, Aa = (e, a, t) => {
294
+ const n = Ra.call(B, e, a, t);
295
295
  return (...r) => {
296
- const i = Ea[e] || "#6b7280", s = `%c[${(/* @__PURE__ */ new Date()).toLocaleTimeString("en-US", {
296
+ const i = ka[e] || "#6b7280", s = `%c[${(/* @__PURE__ */ new Date()).toLocaleTimeString("en-US", {
297
297
  hour12: !1,
298
298
  hour: "2-digit",
299
299
  minute: "2-digit",
@@ -302,103 +302,103 @@ const Y = /* @__PURE__ */ Ma(Sa), Ca = [
302
302
  })}] [${e.toUpperCase()}] ${t ? `[${t}]` : ""}`;
303
303
  n(s, `color: ${i}`, ...r);
304
304
  };
305
- }, Pt = [];
306
- function te(e) {
307
- const a = Y.getLogger(e);
308
- return a.methodFactory = ka, a.setLevel("silent"), Pt.push(a), a;
309
- }
310
- const T = te("DRP"), he = te("DRP:RENDERING"), ue = te("DRP:INTERACTION"), ce = te("DRP:SELECTION"), w = te("DRP:NAVIGATION"), X = te("DRP:UI"), ne = te("DRP:VALIDATION"), re = te("DRP:DRAG");
311
- Y.setLevel("silent");
312
- const st = (e) => {
313
- Y.setLevel(e), Pt.forEach((a) => a.setLevel(e));
314
- }, Ge = () => {
315
- st("debug");
316
- }, Xe = () => {
317
- st("silent");
318
- }, Ra = (e, a = "debug") => {
305
+ }, Ft = [];
306
+ function ae(e) {
307
+ const a = B.getLogger(e);
308
+ return a.methodFactory = Aa, a.setLevel("silent"), Ft.push(a), a;
309
+ }
310
+ const T = ae("DRP"), he = ae("DRP:RENDERING"), ue = ae("DRP:INTERACTION"), ce = ae("DRP:SELECTION"), x = ae("DRP:NAVIGATION"), J = ae("DRP:UI"), ne = ae("DRP:VALIDATION"), re = ae("DRP:DRAG");
311
+ B.setLevel("silent");
312
+ const ct = (e) => {
313
+ B.setLevel(e), Ft.forEach((a) => a.setLevel(e));
314
+ }, Qe = () => {
315
+ ct("debug");
316
+ }, Ze = () => {
317
+ ct("silent");
318
+ }, Ta = (e, a = "debug") => {
319
319
  const n = {
320
320
  DRP: T,
321
321
  "DRP:RENDERING": he,
322
322
  "DRP:INTERACTION": ue,
323
323
  "DRP:SELECTION": ce,
324
- "DRP:NAVIGATION": w,
325
- "DRP:UI": X,
324
+ "DRP:NAVIGATION": x,
325
+ "DRP:UI": J,
326
326
  "DRP:VALIDATION": ne,
327
327
  "DRP:DRAG": re
328
328
  }[e];
329
329
  n && n.setLevel(a);
330
- }, Aa = () => [...Ca], Q = Math.min, O = Math.max, ze = Math.round, Re = Math.floor, q = (e) => ({
330
+ }, La = () => [...Ia], Z = Math.min, F = Math.max, Pe = Math.round, Ae = Math.floor, W = (e) => ({
331
331
  x: e,
332
332
  y: e
333
- }), Ta = {
333
+ }), $a = {
334
334
  left: "right",
335
335
  right: "left",
336
336
  bottom: "top",
337
337
  top: "bottom"
338
- }, La = {
338
+ }, za = {
339
339
  start: "end",
340
340
  end: "start"
341
341
  };
342
- function Je(e, a, t) {
343
- return O(e, Q(a, t));
342
+ function et(e, a, t) {
343
+ return F(e, Z(a, t));
344
344
  }
345
345
  function ye(e, a) {
346
346
  return typeof e == "function" ? e(a) : e;
347
347
  }
348
- function Z(e) {
348
+ function ee(e) {
349
349
  return e.split("-")[0];
350
350
  }
351
351
  function ve(e) {
352
352
  return e.split("-")[1];
353
353
  }
354
- function Ot(e) {
354
+ function Ht(e) {
355
355
  return e === "x" ? "y" : "x";
356
356
  }
357
- function dt(e) {
357
+ function pt(e) {
358
358
  return e === "y" ? "height" : "width";
359
359
  }
360
- const $a = /* @__PURE__ */ new Set(["top", "bottom"]);
361
- function G(e) {
362
- return $a.has(Z(e)) ? "y" : "x";
360
+ const Pa = /* @__PURE__ */ new Set(["top", "bottom"]);
361
+ function X(e) {
362
+ return Pa.has(ee(e)) ? "y" : "x";
363
363
  }
364
- function lt(e) {
365
- return Ot(G(e));
364
+ function ut(e) {
365
+ return Ht(X(e));
366
366
  }
367
- function za(e, a, t) {
367
+ function Na(e, a, t) {
368
368
  t === void 0 && (t = !1);
369
- const n = ve(e), r = lt(e), i = dt(r);
369
+ const n = ve(e), r = ut(e), i = pt(r);
370
370
  let o = r === "x" ? n === (t ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
371
371
  return a.reference[i] > a.floating[i] && (o = Ne(o)), [o, Ne(o)];
372
372
  }
373
- function Na(e) {
373
+ function Oa(e) {
374
374
  const a = Ne(e);
375
- return [Qe(e), a, Qe(a)];
375
+ return [tt(e), a, tt(a)];
376
376
  }
377
- function Qe(e) {
378
- return e.replace(/start|end/g, (a) => La[a]);
377
+ function tt(e) {
378
+ return e.replace(/start|end/g, (a) => za[a]);
379
379
  }
380
- const _t = ["left", "right"], wt = ["right", "left"], Pa = ["top", "bottom"], Oa = ["bottom", "top"];
381
- function Fa(e, a, t) {
380
+ const xt = ["left", "right"], Mt = ["right", "left"], Fa = ["top", "bottom"], Ha = ["bottom", "top"];
381
+ function Ya(e, a, t) {
382
382
  switch (e) {
383
383
  case "top":
384
384
  case "bottom":
385
- return t ? a ? wt : _t : a ? _t : wt;
385
+ return t ? a ? Mt : xt : a ? xt : Mt;
386
386
  case "left":
387
387
  case "right":
388
- return a ? Pa : Oa;
388
+ return a ? Fa : Ha;
389
389
  default:
390
390
  return [];
391
391
  }
392
392
  }
393
- function Ha(e, a, t, n) {
393
+ function Ba(e, a, t, n) {
394
394
  const r = ve(e);
395
- let i = Fa(Z(e), t === "start", n);
396
- return r && (i = i.map((o) => o + "-" + r), a && (i = i.concat(i.map(Qe)))), i;
395
+ let i = Ya(ee(e), t === "start", n);
396
+ return r && (i = i.map((o) => o + "-" + r), a && (i = i.concat(i.map(tt)))), i;
397
397
  }
398
398
  function Ne(e) {
399
- return e.replace(/left|right|bottom|top/g, (a) => Ta[a]);
399
+ return e.replace(/left|right|bottom|top/g, (a) => $a[a]);
400
400
  }
401
- function Ya(e) {
401
+ function Va(e) {
402
402
  return {
403
403
  top: 0,
404
404
  right: 0,
@@ -407,15 +407,15 @@ function Ya(e) {
407
407
  ...e
408
408
  };
409
409
  }
410
- function Ft(e) {
411
- return typeof e != "number" ? Ya(e) : {
410
+ function Yt(e) {
411
+ return typeof e != "number" ? Va(e) : {
412
412
  top: e,
413
413
  right: e,
414
414
  bottom: e,
415
415
  left: e
416
416
  };
417
417
  }
418
- function Pe(e) {
418
+ function Oe(e) {
419
419
  const {
420
420
  x: a,
421
421
  y: t,
@@ -433,12 +433,12 @@ function Pe(e) {
433
433
  y: t
434
434
  };
435
435
  }
436
- function xt(e, a, t) {
436
+ function St(e, a, t) {
437
437
  let {
438
438
  reference: n,
439
439
  floating: r
440
440
  } = e;
441
- const i = G(a), o = lt(a), s = dt(o), d = Z(a), l = i === "y", c = n.x + n.width / 2 - r.width / 2, p = n.y + n.height / 2 - r.height / 2, u = n[s] / 2 - r[s] / 2;
441
+ const i = X(a), o = ut(a), s = pt(o), d = ee(a), l = i === "y", c = n.x + n.width / 2 - r.width / 2, p = n.y + n.height / 2 - r.height / 2, u = n[s] / 2 - r[s] / 2;
442
442
  let g;
443
443
  switch (d) {
444
444
  case "top":
@@ -481,7 +481,7 @@ function xt(e, a, t) {
481
481
  }
482
482
  return g;
483
483
  }
484
- const Ba = async (e, a, t) => {
484
+ const Ua = async (e, a, t) => {
485
485
  const {
486
486
  placement: n = "bottom",
487
487
  strategy: r = "absolute",
@@ -495,14 +495,14 @@ const Ba = async (e, a, t) => {
495
495
  }), {
496
496
  x: c,
497
497
  y: p
498
- } = xt(l, n, d), u = n, g = {}, m = 0;
498
+ } = St(l, n, d), u = n, g = {}, m = 0;
499
499
  for (let h = 0; h < s.length; h++) {
500
500
  const {
501
501
  name: v,
502
502
  fn: f
503
503
  } = s[h], {
504
- x,
505
- y: E,
504
+ x: M,
505
+ y: C,
506
506
  data: S,
507
507
  reset: D
508
508
  } = await f({
@@ -519,7 +519,7 @@ const Ba = async (e, a, t) => {
519
519
  floating: a
520
520
  }
521
521
  });
522
- c = x ?? c, p = E ?? p, g = {
522
+ c = M ?? c, p = C ?? p, g = {
523
523
  ...g,
524
524
  [v]: {
525
525
  ...g[v],
@@ -532,7 +532,7 @@ const Ba = async (e, a, t) => {
532
532
  }) : D.rects), {
533
533
  x: c,
534
534
  y: p
535
- } = xt(l, u, d)), h = -1);
535
+ } = St(l, u, d)), h = -1);
536
536
  }
537
537
  return {
538
538
  x: c,
@@ -542,7 +542,7 @@ const Ba = async (e, a, t) => {
542
542
  middlewareData: g
543
543
  };
544
544
  };
545
- async function ct(e, a) {
545
+ async function gt(e, a) {
546
546
  var t;
547
547
  a === void 0 && (a = {});
548
548
  const {
@@ -558,28 +558,28 @@ async function ct(e, a) {
558
558
  elementContext: p = "floating",
559
559
  altBoundary: u = !1,
560
560
  padding: g = 0
561
- } = ye(a, e), m = Ft(g), v = s[u ? p === "floating" ? "reference" : "floating" : p], f = Pe(await i.getClippingRect({
561
+ } = ye(a, e), m = Yt(g), v = s[u ? p === "floating" ? "reference" : "floating" : p], f = Oe(await i.getClippingRect({
562
562
  element: (t = await (i.isElement == null ? void 0 : i.isElement(v))) == null || t ? v : v.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(s.floating)),
563
563
  boundary: l,
564
564
  rootBoundary: c,
565
565
  strategy: d
566
- })), x = p === "floating" ? {
566
+ })), M = p === "floating" ? {
567
567
  x: n,
568
568
  y: r,
569
569
  width: o.floating.width,
570
570
  height: o.floating.height
571
- } : o.reference, E = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(s.floating)), S = await (i.isElement == null ? void 0 : i.isElement(E)) ? await (i.getScale == null ? void 0 : i.getScale(E)) || {
571
+ } : o.reference, C = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(s.floating)), S = await (i.isElement == null ? void 0 : i.isElement(C)) ? await (i.getScale == null ? void 0 : i.getScale(C)) || {
572
572
  x: 1,
573
573
  y: 1
574
574
  } : {
575
575
  x: 1,
576
576
  y: 1
577
- }, D = Pe(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
577
+ }, D = Oe(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
578
578
  elements: s,
579
- rect: x,
580
- offsetParent: E,
579
+ rect: M,
580
+ offsetParent: C,
581
581
  strategy: d
582
- }) : x);
582
+ }) : M);
583
583
  return {
584
584
  top: (f.top - D.top + m.top) / S.y,
585
585
  bottom: (D.bottom - f.bottom + m.bottom) / S.y,
@@ -587,7 +587,7 @@ async function ct(e, a) {
587
587
  right: (D.right - f.right + m.right) / S.x
588
588
  };
589
589
  }
590
- const Va = (e) => ({
590
+ const qa = (e) => ({
591
591
  name: "arrow",
592
592
  options: e,
593
593
  async fn(a) {
@@ -605,26 +605,26 @@ const Va = (e) => ({
605
605
  } = ye(e, a) || {};
606
606
  if (l == null)
607
607
  return {};
608
- const p = Ft(c), u = {
608
+ const p = Yt(c), u = {
609
609
  x: t,
610
610
  y: n
611
- }, g = lt(r), m = dt(g), h = await o.getDimensions(l), v = g === "y", f = v ? "top" : "left", x = v ? "bottom" : "right", E = v ? "clientHeight" : "clientWidth", S = i.reference[m] + i.reference[g] - u[g] - i.floating[m], D = u[g] - i.reference[g], _ = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l));
612
- let k = _ ? _[E] : 0;
613
- (!k || !await (o.isElement == null ? void 0 : o.isElement(_))) && (k = s.floating[E] || i.floating[m]);
614
- const L = S / 2 - D / 2, y = k / 2 - h[m] / 2 - 1, M = Q(p[f], y), C = Q(p[x], y), I = M, A = k - h[m] - C, R = k / 2 - h[m] / 2 + L, $ = Je(I, R, A), P = !d.arrow && ve(r) != null && R !== $ && i.reference[m] / 2 - (R < I ? M : C) - h[m] / 2 < 0, z = P ? R < I ? R - I : R - A : 0;
611
+ }, g = ut(r), m = pt(g), h = await o.getDimensions(l), v = g === "y", f = v ? "top" : "left", M = v ? "bottom" : "right", C = v ? "clientHeight" : "clientWidth", S = i.reference[m] + i.reference[g] - u[g] - i.floating[m], D = u[g] - i.reference[g], _ = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l));
612
+ let k = _ ? _[C] : 0;
613
+ (!k || !await (o.isElement == null ? void 0 : o.isElement(_))) && (k = s.floating[C] || i.floating[m]);
614
+ const L = S / 2 - D / 2, y = k / 2 - h[m] / 2 - 1, w = Z(p[f], y), E = Z(p[M], y), I = w, A = k - h[m] - E, R = k / 2 - h[m] / 2 + L, $ = et(I, R, A), N = !d.arrow && ve(r) != null && R !== $ && i.reference[m] / 2 - (R < I ? w : E) - h[m] / 2 < 0, z = N ? R < I ? R - I : R - A : 0;
615
615
  return {
616
616
  [g]: u[g] + z,
617
617
  data: {
618
618
  [g]: $,
619
619
  centerOffset: R - $ - z,
620
- ...P && {
620
+ ...N && {
621
621
  alignmentOffset: z
622
622
  }
623
623
  },
624
- reset: P
624
+ reset: N
625
625
  };
626
626
  }
627
- }), Ua = function(e) {
627
+ }), Wa = function(e) {
628
628
  return e === void 0 && (e = {}), {
629
629
  name: "flip",
630
630
  options: e,
@@ -648,70 +648,70 @@ const Va = (e) => ({
648
648
  } = ye(e, a);
649
649
  if ((t = i.arrow) != null && t.alignmentOffset)
650
650
  return {};
651
- const f = Z(r), x = G(s), E = Z(s) === s, S = await (d.isRTL == null ? void 0 : d.isRTL(l.floating)), D = u || (E || !h ? [Ne(s)] : Na(s)), _ = m !== "none";
652
- !u && _ && D.push(...Ha(s, h, m, S));
653
- const k = [s, ...D], L = await ct(a, v), y = [];
654
- let M = ((n = i.flip) == null ? void 0 : n.overflows) || [];
651
+ const f = ee(r), M = X(s), C = ee(s) === s, S = await (d.isRTL == null ? void 0 : d.isRTL(l.floating)), D = u || (C || !h ? [Ne(s)] : Oa(s)), _ = m !== "none";
652
+ !u && _ && D.push(...Ba(s, h, m, S));
653
+ const k = [s, ...D], L = await gt(a, v), y = [];
654
+ let w = ((n = i.flip) == null ? void 0 : n.overflows) || [];
655
655
  if (c && y.push(L[f]), p) {
656
- const R = za(r, o, S);
656
+ const R = Na(r, o, S);
657
657
  y.push(L[R[0]], L[R[1]]);
658
658
  }
659
- if (M = [...M, {
659
+ if (w = [...w, {
660
660
  placement: r,
661
661
  overflows: y
662
662
  }], !y.every((R) => R <= 0)) {
663
- var C, I;
664
- const R = (((C = i.flip) == null ? void 0 : C.index) || 0) + 1, $ = k[R];
665
- if ($ && (!(p === "alignment" ? x !== G($) : !1) || // We leave the current main axis only if every placement on that axis
663
+ var E, I;
664
+ const R = (((E = i.flip) == null ? void 0 : E.index) || 0) + 1, $ = k[R];
665
+ if ($ && (!(p === "alignment" ? M !== X($) : !1) || // We leave the current main axis only if every placement on that axis
666
666
  // overflows the main axis.
667
- M.every((N) => G(N.placement) === x ? N.overflows[0] > 0 : !0)))
667
+ w.every((P) => X(P.placement) === M ? P.overflows[0] > 0 : !0)))
668
668
  return {
669
669
  data: {
670
670
  index: R,
671
- overflows: M
671
+ overflows: w
672
672
  },
673
673
  reset: {
674
674
  placement: $
675
675
  }
676
676
  };
677
- let P = (I = M.filter((z) => z.overflows[0] <= 0).sort((z, N) => z.overflows[1] - N.overflows[1])[0]) == null ? void 0 : I.placement;
678
- if (!P)
677
+ let N = (I = w.filter((z) => z.overflows[0] <= 0).sort((z, P) => z.overflows[1] - P.overflows[1])[0]) == null ? void 0 : I.placement;
678
+ if (!N)
679
679
  switch (g) {
680
680
  case "bestFit": {
681
681
  var A;
682
- const z = (A = M.filter((N) => {
682
+ const z = (A = w.filter((P) => {
683
683
  if (_) {
684
- const U = G(N.placement);
685
- return U === x || // Create a bias to the `y` side axis due to horizontal
684
+ const Y = X(P.placement);
685
+ return Y === M || // Create a bias to the `y` side axis due to horizontal
686
686
  // reading directions favoring greater width.
687
- U === "y";
687
+ Y === "y";
688
688
  }
689
689
  return !0;
690
- }).map((N) => [N.placement, N.overflows.filter((U) => U > 0).reduce((U, H) => U + H, 0)]).sort((N, U) => N[1] - U[1])[0]) == null ? void 0 : A[0];
691
- z && (P = z);
690
+ }).map((P) => [P.placement, P.overflows.filter((Y) => Y > 0).reduce((Y, Ke) => Y + Ke, 0)]).sort((P, Y) => P[1] - Y[1])[0]) == null ? void 0 : A[0];
691
+ z && (N = z);
692
692
  break;
693
693
  }
694
694
  case "initialPlacement":
695
- P = s;
695
+ N = s;
696
696
  break;
697
697
  }
698
- if (r !== P)
698
+ if (r !== N)
699
699
  return {
700
700
  reset: {
701
- placement: P
701
+ placement: N
702
702
  }
703
703
  };
704
704
  }
705
705
  return {};
706
706
  }
707
707
  };
708
- }, qa = /* @__PURE__ */ new Set(["left", "top"]);
709
- async function Wa(e, a) {
708
+ }, ja = /* @__PURE__ */ new Set(["left", "top"]);
709
+ async function Ka(e, a) {
710
710
  const {
711
711
  placement: t,
712
712
  platform: n,
713
713
  elements: r
714
- } = e, i = await (n.isRTL == null ? void 0 : n.isRTL(r.floating)), o = Z(t), s = ve(t), d = G(t) === "y", l = qa.has(o) ? -1 : 1, c = i && d ? -1 : 1, p = ye(a, e);
714
+ } = e, i = await (n.isRTL == null ? void 0 : n.isRTL(r.floating)), o = ee(t), s = ve(t), d = X(t) === "y", l = ja.has(o) ? -1 : 1, c = i && d ? -1 : 1, p = ye(a, e);
715
715
  let {
716
716
  mainAxis: u,
717
717
  crossAxis: g,
@@ -733,7 +733,7 @@ async function Wa(e, a) {
733
733
  y: g * c
734
734
  };
735
735
  }
736
- const ja = function(e) {
736
+ const Ga = function(e) {
737
737
  return e === void 0 && (e = 0), {
738
738
  name: "offset",
739
739
  options: e,
@@ -744,7 +744,7 @@ const ja = function(e) {
744
744
  y: i,
745
745
  placement: o,
746
746
  middlewareData: s
747
- } = a, d = await Wa(a, e);
747
+ } = a, d = await Ka(a, e);
748
748
  return o === ((t = s.offset) == null ? void 0 : t.placement) && (n = s.arrow) != null && n.alignmentOffset ? {} : {
749
749
  x: r + d.x,
750
750
  y: i + d.y,
@@ -755,7 +755,7 @@ const ja = function(e) {
755
755
  };
756
756
  }
757
757
  };
758
- }, Ka = function(e) {
758
+ }, Xa = function(e) {
759
759
  return e === void 0 && (e = {}), {
760
760
  name: "shift",
761
761
  options: e,
@@ -771,11 +771,11 @@ const ja = function(e) {
771
771
  fn: (v) => {
772
772
  let {
773
773
  x: f,
774
- y: x
774
+ y: M
775
775
  } = v;
776
776
  return {
777
777
  x: f,
778
- y: x
778
+ y: M
779
779
  };
780
780
  }
781
781
  },
@@ -783,15 +783,15 @@ const ja = function(e) {
783
783
  } = ye(e, a), l = {
784
784
  x: t,
785
785
  y: n
786
- }, c = await ct(a, d), p = G(Z(r)), u = Ot(p);
786
+ }, c = await gt(a, d), p = X(ee(r)), u = Ht(p);
787
787
  let g = l[u], m = l[p];
788
788
  if (i) {
789
- const v = u === "y" ? "top" : "left", f = u === "y" ? "bottom" : "right", x = g + c[v], E = g - c[f];
790
- g = Je(x, g, E);
789
+ const v = u === "y" ? "top" : "left", f = u === "y" ? "bottom" : "right", M = g + c[v], C = g - c[f];
790
+ g = et(M, g, C);
791
791
  }
792
792
  if (o) {
793
- const v = p === "y" ? "top" : "left", f = p === "y" ? "bottom" : "right", x = m + c[v], E = m - c[f];
794
- m = Je(x, m, E);
793
+ const v = p === "y" ? "top" : "left", f = p === "y" ? "bottom" : "right", M = m + c[v], C = m - c[f];
794
+ m = et(M, m, C);
795
795
  }
796
796
  const h = s.fn({
797
797
  ...a,
@@ -811,7 +811,7 @@ const ja = function(e) {
811
811
  };
812
812
  }
813
813
  };
814
- }, Ga = function(e) {
814
+ }, Ja = function(e) {
815
815
  return e === void 0 && (e = {}), {
816
816
  name: "size",
817
817
  options: e,
@@ -826,17 +826,17 @@ const ja = function(e) {
826
826
  apply: d = () => {
827
827
  },
828
828
  ...l
829
- } = ye(e, a), c = await ct(a, l), p = Z(r), u = ve(r), g = G(r) === "y", {
829
+ } = ye(e, a), c = await gt(a, l), p = ee(r), u = ve(r), g = X(r) === "y", {
830
830
  width: m,
831
831
  height: h
832
832
  } = i.floating;
833
833
  let v, f;
834
834
  p === "top" || p === "bottom" ? (v = p, f = u === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (f = p, v = u === "end" ? "top" : "bottom");
835
- const x = h - c.top - c.bottom, E = m - c.left - c.right, S = Q(h - c[v], x), D = Q(m - c[f], E), _ = !a.middlewareData.shift;
835
+ const M = h - c.top - c.bottom, C = m - c.left - c.right, S = Z(h - c[v], M), D = Z(m - c[f], C), _ = !a.middlewareData.shift;
836
836
  let k = S, L = D;
837
- if ((t = a.middlewareData.shift) != null && t.enabled.x && (L = E), (n = a.middlewareData.shift) != null && n.enabled.y && (k = x), _ && !u) {
838
- const M = O(c.left, 0), C = O(c.right, 0), I = O(c.top, 0), A = O(c.bottom, 0);
839
- g ? L = m - 2 * (M !== 0 || C !== 0 ? M + C : O(c.left, c.right)) : k = h - 2 * (I !== 0 || A !== 0 ? I + A : O(c.top, c.bottom));
837
+ if ((t = a.middlewareData.shift) != null && t.enabled.x && (L = C), (n = a.middlewareData.shift) != null && n.enabled.y && (k = M), _ && !u) {
838
+ const w = F(c.left, 0), E = F(c.right, 0), I = F(c.top, 0), A = F(c.bottom, 0);
839
+ g ? L = m - 2 * (w !== 0 || E !== 0 ? w + E : F(c.left, c.right)) : k = h - 2 * (I !== 0 || A !== 0 ? I + A : F(c.top, c.bottom));
840
840
  }
841
841
  await d({
842
842
  ...a,
@@ -852,49 +852,49 @@ const ja = function(e) {
852
852
  }
853
853
  };
854
854
  };
855
- function Ye() {
855
+ function Be() {
856
856
  return typeof window < "u";
857
857
  }
858
858
  function De(e) {
859
- return Ht(e) ? (e.nodeName || "").toLowerCase() : "#document";
859
+ return Bt(e) ? (e.nodeName || "").toLowerCase() : "#document";
860
860
  }
861
- function F(e) {
861
+ function H(e) {
862
862
  var a;
863
863
  return (e == null || (a = e.ownerDocument) == null ? void 0 : a.defaultView) || window;
864
864
  }
865
- function j(e) {
865
+ function K(e) {
866
866
  var a;
867
- return (a = (Ht(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : a.documentElement;
867
+ return (a = (Bt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : a.documentElement;
868
868
  }
869
- function Ht(e) {
870
- return Ye() ? e instanceof Node || e instanceof F(e).Node : !1;
869
+ function Bt(e) {
870
+ return Be() ? e instanceof Node || e instanceof H(e).Node : !1;
871
871
  }
872
- function B(e) {
873
- return Ye() ? e instanceof Element || e instanceof F(e).Element : !1;
872
+ function V(e) {
873
+ return Be() ? e instanceof Element || e instanceof H(e).Element : !1;
874
874
  }
875
- function W(e) {
876
- return Ye() ? e instanceof HTMLElement || e instanceof F(e).HTMLElement : !1;
875
+ function j(e) {
876
+ return Be() ? e instanceof HTMLElement || e instanceof H(e).HTMLElement : !1;
877
877
  }
878
- function Mt(e) {
879
- return !Ye() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof F(e).ShadowRoot;
878
+ function Ct(e) {
879
+ return !Be() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof H(e).ShadowRoot;
880
880
  }
881
- const Xa = /* @__PURE__ */ new Set(["inline", "contents"]);
882
- function Ie(e) {
881
+ const Qa = /* @__PURE__ */ new Set(["inline", "contents"]);
882
+ function ke(e) {
883
883
  const {
884
884
  overflow: a,
885
885
  overflowX: t,
886
886
  overflowY: n,
887
887
  display: r
888
- } = V(e);
889
- return /auto|scroll|overlay|hidden|clip/.test(a + n + t) && !Xa.has(r);
888
+ } = U(e);
889
+ return /auto|scroll|overlay|hidden|clip/.test(a + n + t) && !Qa.has(r);
890
890
  }
891
- const Ja = /* @__PURE__ */ new Set(["table", "td", "th"]);
892
- function Qa(e) {
893
- return Ja.has(De(e));
891
+ const Za = /* @__PURE__ */ new Set(["table", "td", "th"]);
892
+ function en(e) {
893
+ return Za.has(De(e));
894
894
  }
895
- const Za = [":popover-open", ":modal"];
896
- function Be(e) {
897
- return Za.some((a) => {
895
+ const tn = [":popover-open", ":modal"];
896
+ function Ve(e) {
897
+ return tn.some((a) => {
898
898
  try {
899
899
  return e.matches(a);
900
900
  } catch {
@@ -902,34 +902,34 @@ function Be(e) {
902
902
  }
903
903
  });
904
904
  }
905
- const en = ["transform", "translate", "scale", "rotate", "perspective"], tn = ["transform", "translate", "scale", "rotate", "perspective", "filter"], an = ["paint", "layout", "strict", "content"];
906
- function pt(e) {
907
- const a = ut(), t = B(e) ? V(e) : e;
908
- return en.some((n) => t[n] ? t[n] !== "none" : !1) || (t.containerType ? t.containerType !== "normal" : !1) || !a && (t.backdropFilter ? t.backdropFilter !== "none" : !1) || !a && (t.filter ? t.filter !== "none" : !1) || tn.some((n) => (t.willChange || "").includes(n)) || an.some((n) => (t.contain || "").includes(n));
905
+ const an = ["transform", "translate", "scale", "rotate", "perspective"], nn = ["transform", "translate", "scale", "rotate", "perspective", "filter"], rn = ["paint", "layout", "strict", "content"];
906
+ function ht(e) {
907
+ const a = ft(), t = V(e) ? U(e) : e;
908
+ return an.some((n) => t[n] ? t[n] !== "none" : !1) || (t.containerType ? t.containerType !== "normal" : !1) || !a && (t.backdropFilter ? t.backdropFilter !== "none" : !1) || !a && (t.filter ? t.filter !== "none" : !1) || nn.some((n) => (t.willChange || "").includes(n)) || rn.some((n) => (t.contain || "").includes(n));
909
909
  }
910
- function nn(e) {
911
- let a = ee(e);
912
- for (; W(a) && !fe(a); ) {
913
- if (pt(a))
910
+ function on(e) {
911
+ let a = te(e);
912
+ for (; j(a) && !fe(a); ) {
913
+ if (ht(a))
914
914
  return a;
915
- if (Be(a))
915
+ if (Ve(a))
916
916
  return null;
917
- a = ee(a);
917
+ a = te(a);
918
918
  }
919
919
  return null;
920
920
  }
921
- function ut() {
921
+ function ft() {
922
922
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
923
923
  }
924
- const rn = /* @__PURE__ */ new Set(["html", "body", "#document"]);
924
+ const sn = /* @__PURE__ */ new Set(["html", "body", "#document"]);
925
925
  function fe(e) {
926
- return rn.has(De(e));
926
+ return sn.has(De(e));
927
927
  }
928
- function V(e) {
929
- return F(e).getComputedStyle(e);
928
+ function U(e) {
929
+ return H(e).getComputedStyle(e);
930
930
  }
931
- function Ve(e) {
932
- return B(e) ? {
931
+ function Ue(e) {
932
+ return V(e) ? {
933
933
  scrollLeft: e.scrollLeft,
934
934
  scrollTop: e.scrollTop
935
935
  } : {
@@ -937,127 +937,127 @@ function Ve(e) {
937
937
  scrollTop: e.scrollY
938
938
  };
939
939
  }
940
- function ee(e) {
940
+ function te(e) {
941
941
  if (De(e) === "html")
942
942
  return e;
943
943
  const a = (
944
944
  // Step into the shadow DOM of the parent of a slotted node.
945
945
  e.assignedSlot || // DOM Element detected.
946
946
  e.parentNode || // ShadowRoot detected.
947
- Mt(e) && e.host || // Fallback.
948
- j(e)
947
+ Ct(e) && e.host || // Fallback.
948
+ K(e)
949
949
  );
950
- return Mt(a) ? a.host : a;
950
+ return Ct(a) ? a.host : a;
951
951
  }
952
- function Yt(e) {
953
- const a = ee(e);
954
- return fe(a) ? e.ownerDocument ? e.ownerDocument.body : e.body : W(a) && Ie(a) ? a : Yt(a);
952
+ function Vt(e) {
953
+ const a = te(e);
954
+ return fe(a) ? e.ownerDocument ? e.ownerDocument.body : e.body : j(a) && ke(a) ? a : Vt(a);
955
955
  }
956
- function Ce(e, a, t) {
956
+ function Ee(e, a, t) {
957
957
  var n;
958
958
  a === void 0 && (a = []), t === void 0 && (t = !0);
959
- const r = Yt(e), i = r === ((n = e.ownerDocument) == null ? void 0 : n.body), o = F(r);
959
+ const r = Vt(e), i = r === ((n = e.ownerDocument) == null ? void 0 : n.body), o = H(r);
960
960
  if (i) {
961
- const s = Ze(o);
962
- return a.concat(o, o.visualViewport || [], Ie(r) ? r : [], s && t ? Ce(s) : []);
961
+ const s = at(o);
962
+ return a.concat(o, o.visualViewport || [], ke(r) ? r : [], s && t ? Ee(s) : []);
963
963
  }
964
- return a.concat(r, Ce(r, [], t));
964
+ return a.concat(r, Ee(r, [], t));
965
965
  }
966
- function Ze(e) {
966
+ function at(e) {
967
967
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
968
968
  }
969
- function Bt(e) {
970
- const a = V(e);
969
+ function Ut(e) {
970
+ const a = U(e);
971
971
  let t = parseFloat(a.width) || 0, n = parseFloat(a.height) || 0;
972
- const r = W(e), i = r ? e.offsetWidth : t, o = r ? e.offsetHeight : n, s = ze(t) !== i || ze(n) !== o;
972
+ const r = j(e), i = r ? e.offsetWidth : t, o = r ? e.offsetHeight : n, s = Pe(t) !== i || Pe(n) !== o;
973
973
  return s && (t = i, n = o), {
974
974
  width: t,
975
975
  height: n,
976
976
  $: s
977
977
  };
978
978
  }
979
- function gt(e) {
980
- return B(e) ? e : e.contextElement;
979
+ function mt(e) {
980
+ return V(e) ? e : e.contextElement;
981
981
  }
982
982
  function ge(e) {
983
- const a = gt(e);
984
- if (!W(a))
985
- return q(1);
983
+ const a = mt(e);
984
+ if (!j(a))
985
+ return W(1);
986
986
  const t = a.getBoundingClientRect(), {
987
987
  width: n,
988
988
  height: r,
989
989
  $: i
990
- } = Bt(a);
991
- let o = (i ? ze(t.width) : t.width) / n, s = (i ? ze(t.height) : t.height) / r;
990
+ } = Ut(a);
991
+ let o = (i ? Pe(t.width) : t.width) / n, s = (i ? Pe(t.height) : t.height) / r;
992
992
  return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
993
993
  x: o,
994
994
  y: s
995
995
  };
996
996
  }
997
- const on = /* @__PURE__ */ q(0);
998
- function Vt(e) {
999
- const a = F(e);
1000
- return !ut() || !a.visualViewport ? on : {
997
+ const dn = /* @__PURE__ */ W(0);
998
+ function qt(e) {
999
+ const a = H(e);
1000
+ return !ft() || !a.visualViewport ? dn : {
1001
1001
  x: a.visualViewport.offsetLeft,
1002
1002
  y: a.visualViewport.offsetTop
1003
1003
  };
1004
1004
  }
1005
- function sn(e, a, t) {
1006
- return a === void 0 && (a = !1), !t || a && t !== F(e) ? !1 : a;
1005
+ function ln(e, a, t) {
1006
+ return a === void 0 && (a = !1), !t || a && t !== H(e) ? !1 : a;
1007
1007
  }
1008
1008
  function oe(e, a, t, n) {
1009
1009
  a === void 0 && (a = !1), t === void 0 && (t = !1);
1010
- const r = e.getBoundingClientRect(), i = gt(e);
1011
- let o = q(1);
1012
- a && (n ? B(n) && (o = ge(n)) : o = ge(e));
1013
- const s = sn(i, t, n) ? Vt(i) : q(0);
1010
+ const r = e.getBoundingClientRect(), i = mt(e);
1011
+ let o = W(1);
1012
+ a && (n ? V(n) && (o = ge(n)) : o = ge(e));
1013
+ const s = ln(i, t, n) ? qt(i) : W(0);
1014
1014
  let d = (r.left + s.x) / o.x, l = (r.top + s.y) / o.y, c = r.width / o.x, p = r.height / o.y;
1015
1015
  if (i) {
1016
- const u = F(i), g = n && B(n) ? F(n) : n;
1017
- let m = u, h = Ze(m);
1016
+ const u = H(i), g = n && V(n) ? H(n) : n;
1017
+ let m = u, h = at(m);
1018
1018
  for (; h && n && g !== m; ) {
1019
- const v = ge(h), f = h.getBoundingClientRect(), x = V(h), E = f.left + (h.clientLeft + parseFloat(x.paddingLeft)) * v.x, S = f.top + (h.clientTop + parseFloat(x.paddingTop)) * v.y;
1020
- d *= v.x, l *= v.y, c *= v.x, p *= v.y, d += E, l += S, m = F(h), h = Ze(m);
1019
+ const v = ge(h), f = h.getBoundingClientRect(), M = U(h), C = f.left + (h.clientLeft + parseFloat(M.paddingLeft)) * v.x, S = f.top + (h.clientTop + parseFloat(M.paddingTop)) * v.y;
1020
+ d *= v.x, l *= v.y, c *= v.x, p *= v.y, d += C, l += S, m = H(h), h = at(m);
1021
1021
  }
1022
1022
  }
1023
- return Pe({
1023
+ return Oe({
1024
1024
  width: c,
1025
1025
  height: p,
1026
1026
  x: d,
1027
1027
  y: l
1028
1028
  });
1029
1029
  }
1030
- function Ue(e, a) {
1031
- const t = Ve(e).scrollLeft;
1032
- return a ? a.left + t : oe(j(e)).left + t;
1030
+ function qe(e, a) {
1031
+ const t = Ue(e).scrollLeft;
1032
+ return a ? a.left + t : oe(K(e)).left + t;
1033
1033
  }
1034
- function Ut(e, a) {
1035
- const t = e.getBoundingClientRect(), n = t.left + a.scrollLeft - Ue(e, t), r = t.top + a.scrollTop;
1034
+ function Wt(e, a) {
1035
+ const t = e.getBoundingClientRect(), n = t.left + a.scrollLeft - qe(e, t), r = t.top + a.scrollTop;
1036
1036
  return {
1037
1037
  x: n,
1038
1038
  y: r
1039
1039
  };
1040
1040
  }
1041
- function dn(e) {
1041
+ function cn(e) {
1042
1042
  let {
1043
1043
  elements: a,
1044
1044
  rect: t,
1045
1045
  offsetParent: n,
1046
1046
  strategy: r
1047
1047
  } = e;
1048
- const i = r === "fixed", o = j(n), s = a ? Be(a.floating) : !1;
1048
+ const i = r === "fixed", o = K(n), s = a ? Ve(a.floating) : !1;
1049
1049
  if (n === o || s && i)
1050
1050
  return t;
1051
1051
  let d = {
1052
1052
  scrollLeft: 0,
1053
1053
  scrollTop: 0
1054
- }, l = q(1);
1055
- const c = q(0), p = W(n);
1056
- if ((p || !p && !i) && ((De(n) !== "body" || Ie(o)) && (d = Ve(n)), W(n))) {
1054
+ }, l = W(1);
1055
+ const c = W(0), p = j(n);
1056
+ if ((p || !p && !i) && ((De(n) !== "body" || ke(o)) && (d = Ue(n)), j(n))) {
1057
1057
  const g = oe(n);
1058
1058
  l = ge(n), c.x = g.x + n.clientLeft, c.y = g.y + n.clientTop;
1059
1059
  }
1060
- const u = o && !p && !i ? Ut(o, d) : q(0);
1060
+ const u = o && !p && !i ? Wt(o, d) : W(0);
1061
1061
  return {
1062
1062
  width: t.width * l.x,
1063
1063
  height: t.height * l.y,
@@ -1065,34 +1065,34 @@ function dn(e) {
1065
1065
  y: t.y * l.y - d.scrollTop * l.y + c.y + u.y
1066
1066
  };
1067
1067
  }
1068
- function ln(e) {
1068
+ function pn(e) {
1069
1069
  return Array.from(e.getClientRects());
1070
1070
  }
1071
- function cn(e) {
1072
- const a = j(e), t = Ve(e), n = e.ownerDocument.body, r = O(a.scrollWidth, a.clientWidth, n.scrollWidth, n.clientWidth), i = O(a.scrollHeight, a.clientHeight, n.scrollHeight, n.clientHeight);
1073
- let o = -t.scrollLeft + Ue(e);
1071
+ function un(e) {
1072
+ const a = K(e), t = Ue(e), n = e.ownerDocument.body, r = F(a.scrollWidth, a.clientWidth, n.scrollWidth, n.clientWidth), i = F(a.scrollHeight, a.clientHeight, n.scrollHeight, n.clientHeight);
1073
+ let o = -t.scrollLeft + qe(e);
1074
1074
  const s = -t.scrollTop;
1075
- return V(n).direction === "rtl" && (o += O(a.clientWidth, n.clientWidth) - r), {
1075
+ return U(n).direction === "rtl" && (o += F(a.clientWidth, n.clientWidth) - r), {
1076
1076
  width: r,
1077
1077
  height: i,
1078
1078
  x: o,
1079
1079
  y: s
1080
1080
  };
1081
1081
  }
1082
- const St = 25;
1083
- function pn(e, a) {
1084
- const t = F(e), n = j(e), r = t.visualViewport;
1082
+ const Et = 25;
1083
+ function gn(e, a) {
1084
+ const t = H(e), n = K(e), r = t.visualViewport;
1085
1085
  let i = n.clientWidth, o = n.clientHeight, s = 0, d = 0;
1086
1086
  if (r) {
1087
1087
  i = r.width, o = r.height;
1088
- const c = ut();
1088
+ const c = ft();
1089
1089
  (!c || c && a === "fixed") && (s = r.offsetLeft, d = r.offsetTop);
1090
1090
  }
1091
- const l = Ue(n);
1091
+ const l = qe(n);
1092
1092
  if (l <= 0) {
1093
1093
  const c = n.ownerDocument, p = c.body, u = getComputedStyle(p), g = c.compatMode === "CSS1Compat" && parseFloat(u.marginLeft) + parseFloat(u.marginRight) || 0, m = Math.abs(n.clientWidth - p.clientWidth - g);
1094
- m <= St && (i -= m);
1095
- } else l <= St && (i += l);
1094
+ m <= Et && (i -= m);
1095
+ } else l <= Et && (i += l);
1096
1096
  return {
1097
1097
  width: i,
1098
1098
  height: o,
@@ -1100,9 +1100,9 @@ function pn(e, a) {
1100
1100
  y: d
1101
1101
  };
1102
1102
  }
1103
- const un = /* @__PURE__ */ new Set(["absolute", "fixed"]);
1104
- function gn(e, a) {
1105
- const t = oe(e, !0, a === "fixed"), n = t.top + e.clientTop, r = t.left + e.clientLeft, i = W(e) ? ge(e) : q(1), o = e.clientWidth * i.x, s = e.clientHeight * i.y, d = r * i.x, l = n * i.y;
1103
+ const hn = /* @__PURE__ */ new Set(["absolute", "fixed"]);
1104
+ function fn(e, a) {
1105
+ const t = oe(e, !0, a === "fixed"), n = t.top + e.clientTop, r = t.left + e.clientLeft, i = j(e) ? ge(e) : W(1), o = e.clientWidth * i.x, s = e.clientHeight * i.y, d = r * i.x, l = n * i.y;
1106
1106
  return {
1107
1107
  width: o,
1108
1108
  height: s,
@@ -1110,16 +1110,16 @@ function gn(e, a) {
1110
1110
  y: l
1111
1111
  };
1112
1112
  }
1113
- function Ct(e, a, t) {
1113
+ function It(e, a, t) {
1114
1114
  let n;
1115
1115
  if (a === "viewport")
1116
- n = pn(e, t);
1116
+ n = gn(e, t);
1117
1117
  else if (a === "document")
1118
- n = cn(j(e));
1119
- else if (B(a))
1120
- n = gn(a, t);
1118
+ n = un(K(e));
1119
+ else if (V(a))
1120
+ n = fn(a, t);
1121
1121
  else {
1122
- const r = Vt(e);
1122
+ const r = qt(e);
1123
1123
  n = {
1124
1124
  x: a.x - r.x,
1125
1125
  y: a.y - r.y,
@@ -1127,36 +1127,36 @@ function Ct(e, a, t) {
1127
1127
  height: a.height
1128
1128
  };
1129
1129
  }
1130
- return Pe(n);
1130
+ return Oe(n);
1131
1131
  }
1132
- function qt(e, a) {
1133
- const t = ee(e);
1134
- return t === a || !B(t) || fe(t) ? !1 : V(t).position === "fixed" || qt(t, a);
1132
+ function jt(e, a) {
1133
+ const t = te(e);
1134
+ return t === a || !V(t) || fe(t) ? !1 : U(t).position === "fixed" || jt(t, a);
1135
1135
  }
1136
- function hn(e, a) {
1136
+ function mn(e, a) {
1137
1137
  const t = a.get(e);
1138
1138
  if (t)
1139
1139
  return t;
1140
- let n = Ce(e, [], !1).filter((s) => B(s) && De(s) !== "body"), r = null;
1141
- const i = V(e).position === "fixed";
1142
- let o = i ? ee(e) : e;
1143
- for (; B(o) && !fe(o); ) {
1144
- const s = V(o), d = pt(o);
1145
- !d && s.position === "fixed" && (r = null), (i ? !d && !r : !d && s.position === "static" && !!r && un.has(r.position) || Ie(o) && !d && qt(e, o)) ? n = n.filter((c) => c !== o) : r = s, o = ee(o);
1140
+ let n = Ee(e, [], !1).filter((s) => V(s) && De(s) !== "body"), r = null;
1141
+ const i = U(e).position === "fixed";
1142
+ let o = i ? te(e) : e;
1143
+ for (; V(o) && !fe(o); ) {
1144
+ const s = U(o), d = ht(o);
1145
+ !d && s.position === "fixed" && (r = null), (i ? !d && !r : !d && s.position === "static" && !!r && hn.has(r.position) || ke(o) && !d && jt(e, o)) ? n = n.filter((c) => c !== o) : r = s, o = te(o);
1146
1146
  }
1147
1147
  return a.set(e, n), n;
1148
1148
  }
1149
- function fn(e) {
1149
+ function bn(e) {
1150
1150
  let {
1151
1151
  element: a,
1152
1152
  boundary: t,
1153
1153
  rootBoundary: n,
1154
1154
  strategy: r
1155
1155
  } = e;
1156
- const o = [...t === "clippingAncestors" ? Be(a) ? [] : hn(a, this._c) : [].concat(t), n], s = o[0], d = o.reduce((l, c) => {
1157
- const p = Ct(a, c, r);
1158
- return l.top = O(p.top, l.top), l.right = Q(p.right, l.right), l.bottom = Q(p.bottom, l.bottom), l.left = O(p.left, l.left), l;
1159
- }, Ct(a, s, r));
1156
+ const o = [...t === "clippingAncestors" ? Ve(a) ? [] : mn(a, this._c) : [].concat(t), n], s = o[0], d = o.reduce((l, c) => {
1157
+ const p = It(a, c, r);
1158
+ return l.top = F(p.top, l.top), l.right = Z(p.right, l.right), l.bottom = Z(p.bottom, l.bottom), l.left = F(p.left, l.left), l;
1159
+ }, It(a, s, r));
1160
1160
  return {
1161
1161
  width: d.right - d.left,
1162
1162
  height: d.bottom - d.top,
@@ -1164,33 +1164,33 @@ function fn(e) {
1164
1164
  y: d.top
1165
1165
  };
1166
1166
  }
1167
- function mn(e) {
1167
+ function yn(e) {
1168
1168
  const {
1169
1169
  width: a,
1170
1170
  height: t
1171
- } = Bt(e);
1171
+ } = Ut(e);
1172
1172
  return {
1173
1173
  width: a,
1174
1174
  height: t
1175
1175
  };
1176
1176
  }
1177
- function bn(e, a, t) {
1178
- const n = W(a), r = j(a), i = t === "fixed", o = oe(e, !0, i, a);
1177
+ function vn(e, a, t) {
1178
+ const n = j(a), r = K(a), i = t === "fixed", o = oe(e, !0, i, a);
1179
1179
  let s = {
1180
1180
  scrollLeft: 0,
1181
1181
  scrollTop: 0
1182
1182
  };
1183
- const d = q(0);
1183
+ const d = W(0);
1184
1184
  function l() {
1185
- d.x = Ue(r);
1185
+ d.x = qe(r);
1186
1186
  }
1187
1187
  if (n || !n && !i)
1188
- if ((De(a) !== "body" || Ie(r)) && (s = Ve(a)), n) {
1188
+ if ((De(a) !== "body" || ke(r)) && (s = Ue(a)), n) {
1189
1189
  const g = oe(a, !0, i, a);
1190
1190
  d.x = g.x + a.clientLeft, d.y = g.y + a.clientTop;
1191
1191
  } else r && l();
1192
1192
  i && !n && r && l();
1193
- const c = r && !n && !i ? Ut(r, s) : q(0), p = o.left + s.scrollLeft - d.x - c.x, u = o.top + s.scrollTop - d.y - c.y;
1193
+ const c = r && !n && !i ? Wt(r, s) : W(0), p = o.left + s.scrollLeft - d.x - c.x, u = o.top + s.scrollTop - d.y - c.y;
1194
1194
  return {
1195
1195
  x: p,
1196
1196
  y: u,
@@ -1198,39 +1198,39 @@ function bn(e, a, t) {
1198
1198
  height: o.height
1199
1199
  };
1200
1200
  }
1201
- function We(e) {
1202
- return V(e).position === "static";
1201
+ function Ge(e) {
1202
+ return U(e).position === "static";
1203
1203
  }
1204
- function Et(e, a) {
1205
- if (!W(e) || V(e).position === "fixed")
1204
+ function kt(e, a) {
1205
+ if (!j(e) || U(e).position === "fixed")
1206
1206
  return null;
1207
1207
  if (a)
1208
1208
  return a(e);
1209
1209
  let t = e.offsetParent;
1210
- return j(e) === t && (t = t.ownerDocument.body), t;
1210
+ return K(e) === t && (t = t.ownerDocument.body), t;
1211
1211
  }
1212
- function Wt(e, a) {
1213
- const t = F(e);
1214
- if (Be(e))
1212
+ function Kt(e, a) {
1213
+ const t = H(e);
1214
+ if (Ve(e))
1215
1215
  return t;
1216
- if (!W(e)) {
1217
- let r = ee(e);
1216
+ if (!j(e)) {
1217
+ let r = te(e);
1218
1218
  for (; r && !fe(r); ) {
1219
- if (B(r) && !We(r))
1219
+ if (V(r) && !Ge(r))
1220
1220
  return r;
1221
- r = ee(r);
1221
+ r = te(r);
1222
1222
  }
1223
1223
  return t;
1224
1224
  }
1225
- let n = Et(e, a);
1226
- for (; n && Qa(n) && We(n); )
1227
- n = Et(n, a);
1228
- return n && fe(n) && We(n) && !pt(n) ? t : n || nn(e) || t;
1225
+ let n = kt(e, a);
1226
+ for (; n && en(n) && Ge(n); )
1227
+ n = kt(n, a);
1228
+ return n && fe(n) && Ge(n) && !ht(n) ? t : n || on(e) || t;
1229
1229
  }
1230
- const yn = async function(e) {
1231
- const a = this.getOffsetParent || Wt, t = this.getDimensions, n = await t(e.floating);
1230
+ const Dn = async function(e) {
1231
+ const a = this.getOffsetParent || Kt, t = this.getDimensions, n = await t(e.floating);
1232
1232
  return {
1233
- reference: bn(e.reference, await a(e.floating), e.strategy),
1233
+ reference: vn(e.reference, await a(e.floating), e.strategy),
1234
1234
  floating: {
1235
1235
  x: 0,
1236
1236
  y: 0,
@@ -1239,27 +1239,27 @@ const yn = async function(e) {
1239
1239
  }
1240
1240
  };
1241
1241
  };
1242
- function vn(e) {
1243
- return V(e).direction === "rtl";
1244
- }
1245
- const Dn = {
1246
- convertOffsetParentRelativeRectToViewportRelativeRect: dn,
1247
- getDocumentElement: j,
1248
- getClippingRect: fn,
1249
- getOffsetParent: Wt,
1250
- getElementRects: yn,
1251
- getClientRects: ln,
1252
- getDimensions: mn,
1242
+ function _n(e) {
1243
+ return U(e).direction === "rtl";
1244
+ }
1245
+ const wn = {
1246
+ convertOffsetParentRelativeRectToViewportRelativeRect: cn,
1247
+ getDocumentElement: K,
1248
+ getClippingRect: bn,
1249
+ getOffsetParent: Kt,
1250
+ getElementRects: Dn,
1251
+ getClientRects: pn,
1252
+ getDimensions: yn,
1253
1253
  getScale: ge,
1254
- isElement: B,
1255
- isRTL: vn
1254
+ isElement: V,
1255
+ isRTL: _n
1256
1256
  };
1257
- function jt(e, a) {
1257
+ function Gt(e, a) {
1258
1258
  return e.x === a.x && e.y === a.y && e.width === a.width && e.height === a.height;
1259
1259
  }
1260
- function _n(e, a) {
1260
+ function xn(e, a) {
1261
1261
  let t = null, n;
1262
- const r = j(e);
1262
+ const r = K(e);
1263
1263
  function i() {
1264
1264
  var s;
1265
1265
  clearTimeout(n), (s = t) == null || s.disconnect(), t = null;
@@ -1274,9 +1274,9 @@ function _n(e, a) {
1274
1274
  } = l;
1275
1275
  if (s || a(), !u || !g)
1276
1276
  return;
1277
- const m = Re(p), h = Re(r.clientWidth - (c + u)), v = Re(r.clientHeight - (p + g)), f = Re(c), E = {
1277
+ const m = Ae(p), h = Ae(r.clientWidth - (c + u)), v = Ae(r.clientHeight - (p + g)), f = Ae(c), C = {
1278
1278
  rootMargin: -m + "px " + -h + "px " + -v + "px " + -f + "px",
1279
- threshold: O(0, Q(1, d)) || 1
1279
+ threshold: F(0, Z(1, d)) || 1
1280
1280
  };
1281
1281
  let S = !0;
1282
1282
  function D(_) {
@@ -1288,22 +1288,22 @@ function _n(e, a) {
1288
1288
  o(!1, 1e-7);
1289
1289
  }, 1e3);
1290
1290
  }
1291
- k === 1 && !jt(l, e.getBoundingClientRect()) && o(), S = !1;
1291
+ k === 1 && !Gt(l, e.getBoundingClientRect()) && o(), S = !1;
1292
1292
  }
1293
1293
  try {
1294
1294
  t = new IntersectionObserver(D, {
1295
- ...E,
1295
+ ...C,
1296
1296
  // Handle <iframe>s
1297
1297
  root: r.ownerDocument
1298
1298
  });
1299
1299
  } catch {
1300
- t = new IntersectionObserver(D, E);
1300
+ t = new IntersectionObserver(D, C);
1301
1301
  }
1302
1302
  t.observe(e);
1303
1303
  }
1304
1304
  return o(!0), i;
1305
1305
  }
1306
- function Kt(e, a, t, n) {
1306
+ function Xt(e, a, t, n) {
1307
1307
  n === void 0 && (n = {});
1308
1308
  const {
1309
1309
  ancestorScroll: r = !0,
@@ -1311,58 +1311,58 @@ function Kt(e, a, t, n) {
1311
1311
  elementResize: o = typeof ResizeObserver == "function",
1312
1312
  layoutShift: s = typeof IntersectionObserver == "function",
1313
1313
  animationFrame: d = !1
1314
- } = n, l = gt(e), c = r || i ? [...l ? Ce(l) : [], ...Ce(a)] : [];
1314
+ } = n, l = mt(e), c = r || i ? [...l ? Ee(l) : [], ...Ee(a)] : [];
1315
1315
  c.forEach((f) => {
1316
1316
  r && f.addEventListener("scroll", t, {
1317
1317
  passive: !0
1318
1318
  }), i && f.addEventListener("resize", t);
1319
1319
  });
1320
- const p = l && s ? _n(l, t) : null;
1320
+ const p = l && s ? xn(l, t) : null;
1321
1321
  let u = -1, g = null;
1322
1322
  o && (g = new ResizeObserver((f) => {
1323
- let [x] = f;
1324
- x && x.target === l && g && (g.unobserve(a), cancelAnimationFrame(u), u = requestAnimationFrame(() => {
1325
- var E;
1326
- (E = g) == null || E.observe(a);
1323
+ let [M] = f;
1324
+ M && M.target === l && g && (g.unobserve(a), cancelAnimationFrame(u), u = requestAnimationFrame(() => {
1325
+ var C;
1326
+ (C = g) == null || C.observe(a);
1327
1327
  })), t();
1328
1328
  }), l && !d && g.observe(l), g.observe(a));
1329
1329
  let m, h = d ? oe(e) : null;
1330
1330
  d && v();
1331
1331
  function v() {
1332
1332
  const f = oe(e);
1333
- h && !jt(h, f) && t(), h = f, m = requestAnimationFrame(v);
1333
+ h && !Gt(h, f) && t(), h = f, m = requestAnimationFrame(v);
1334
1334
  }
1335
1335
  return t(), () => {
1336
1336
  var f;
1337
- c.forEach((x) => {
1338
- r && x.removeEventListener("scroll", t), i && x.removeEventListener("resize", t);
1337
+ c.forEach((M) => {
1338
+ r && M.removeEventListener("scroll", t), i && M.removeEventListener("resize", t);
1339
1339
  }), p == null || p(), (f = g) == null || f.disconnect(), g = null, d && cancelAnimationFrame(m);
1340
1340
  };
1341
1341
  }
1342
- const ht = ja, ft = Ka, mt = Ua, wn = Ga, xn = Va, bt = (e, a, t) => {
1342
+ const bt = Ga, yt = Xa, vt = Wa, Mn = Ja, Sn = qa, Dt = (e, a, t) => {
1343
1343
  const n = /* @__PURE__ */ new Map(), r = {
1344
- platform: Dn,
1344
+ platform: wn,
1345
1345
  ...t
1346
1346
  }, i = {
1347
1347
  ...r.platform,
1348
1348
  _c: n
1349
1349
  };
1350
- return Ba(e, a, {
1350
+ return Ua(e, a, {
1351
1351
  ...r,
1352
1352
  platform: i
1353
1353
  });
1354
1354
  };
1355
- async function Gt(e, a) {
1355
+ async function Jt(e, a) {
1356
1356
  if (!e.options.beforeDateSelectCallback)
1357
1357
  return { isValid: !0 };
1358
1358
  try {
1359
- e.isValidating = !0, Fe(e);
1359
+ e.isValidating = !0, He(e);
1360
1360
  const t = await Promise.resolve(e.options.beforeDateSelectCallback(a));
1361
1361
  switch (ie(e), e.isValidating = !1, t.action) {
1362
1362
  case "accept":
1363
1363
  return se(e), { isValid: !0 };
1364
1364
  case "adjust":
1365
- return a instanceof Date && t.adjustedDate ? (t.message && nt(e, t.message, "info"), { isValid: !0, adjustedDate: t.adjustedDate, message: t.message }) : typeof a == "object" && "start" in a && t.adjustedStartDate && t.adjustedEndDate ? (t.message && nt(e, t.message, "info"), {
1365
+ return a instanceof Date && t.adjustedDate ? (t.message && ot(e, t.message, "info"), { isValid: !0, adjustedDate: t.adjustedDate, message: t.message }) : typeof a == "object" && "start" in a && t.adjustedStartDate && t.adjustedEndDate ? (t.message && ot(e, t.message, "info"), {
1366
1366
  isValid: !0,
1367
1367
  adjustedStart: t.adjustedStartDate,
1368
1368
  adjustedEnd: t.adjustedEndDate,
@@ -1382,16 +1382,16 @@ async function Gt(e, a) {
1382
1382
  return { isValid: !1, message: "Unknown validation action" };
1383
1383
  }
1384
1384
  } catch (t) {
1385
- return ie(e), e.isValidating = !1, Y.error("beforeDateSelectCallback error:", t), { isValid: !1, message: "Validation error occurred" };
1385
+ return ie(e), e.isValidating = !1, B.error("beforeDateSelectCallback error:", t), { isValid: !1, message: "Validation error occurred" };
1386
1386
  }
1387
1387
  }
1388
- function et(e) {
1388
+ function nt(e) {
1389
1389
  e.renderCalendar(), e.updateSummary();
1390
1390
  }
1391
1391
  function pe(e, a) {
1392
1392
  e.input && !e.requiresApplyButton() && (e.input.value = a);
1393
1393
  }
1394
- function It(e, a) {
1394
+ function Rt(e, a) {
1395
1395
  var t;
1396
1396
  for (let n = 0; n < e.monthDates.length; n++) {
1397
1397
  const r = e.monthDates[n];
@@ -1415,7 +1415,7 @@ function It(e, a) {
1415
1415
  return;
1416
1416
  }
1417
1417
  }
1418
- function Mn(e) {
1418
+ function Cn(e) {
1419
1419
  const a = e.options.selectionMode;
1420
1420
  if (a === "range" && e.selectedStartDate && e.selectedEndDate)
1421
1421
  return `${e.formatDate(e.selectedStartDate)} - ${e.formatDate(e.selectedEndDate)}`;
@@ -1427,7 +1427,7 @@ function Mn(e) {
1427
1427
  }
1428
1428
  return null;
1429
1429
  }
1430
- async function Xt(e, a, t) {
1430
+ async function Qt(e, a, t) {
1431
1431
  if (ne.debug(" validateRangeAsync called - mode:", e.options.disabledDatesHandling, "start:", a, "end:", t), e.options.disabledDatesHandling === "prevent") {
1432
1432
  if (ne.debug(" Checking PREVENT mode"), e.hasDisabledDatesInRange(a, t))
1433
1433
  return ne.debug(" PREVENT mode - range contains disabled dates"), { isValid: !1, message: "Range contains disabled dates" };
@@ -1436,7 +1436,7 @@ async function Xt(e, a, t) {
1436
1436
  const r = e.findLastEnabledBeforeGap(a, t);
1437
1437
  return ne.debug(" BLOCK mode - adjusted end:", r), { isValid: !0, adjustedStart: a, adjustedEnd: r };
1438
1438
  }
1439
- const n = await Gt(e, { start: a, end: t });
1439
+ const n = await Jt(e, { start: a, end: t });
1440
1440
  return n.isValid ? n.adjustedStart || n.adjustedEnd ? {
1441
1441
  isValid: !0,
1442
1442
  adjustedStart: n.adjustedStart,
@@ -1450,10 +1450,10 @@ async function Xt(e, a, t) {
1450
1450
  invalidEnd: n.invalidEnd
1451
1451
  } : { isValid: !1, message: n.message };
1452
1452
  }
1453
- async function Sn(e, a) {
1453
+ async function En(e, a) {
1454
1454
  if (a.classList.contains("drp-date-picker__day--disabled")) return;
1455
1455
  if (!a.dataset || !a.dataset.date) {
1456
- Y.warn("selectDay() - called with invalid element:", a);
1456
+ B.warn("selectDay() - called with invalid element:", a);
1457
1457
  return;
1458
1458
  }
1459
1459
  const [t, n, r] = a.dataset.date.split("-").map(Number), i = new Date(t, n - 1, r);
@@ -1466,7 +1466,7 @@ async function Sn(e, a) {
1466
1466
  e.focusedDayIndex = Array.from(d).indexOf(a), ce.debug(`Col${e.activeMonthIndex} selectDay - set focusedDayIndex to:`, e.focusedDayIndex);
1467
1467
  }
1468
1468
  if (e.options.selectionMode === "single") {
1469
- const d = await Gt(e, i);
1469
+ const d = await Jt(e, i);
1470
1470
  if (!d.isValid) {
1471
1471
  ce.debug("Single mode selection prevented by beforeDateSelectCallback");
1472
1472
  return;
@@ -1484,31 +1484,31 @@ async function Sn(e, a) {
1484
1484
  else {
1485
1485
  let d = e.selectedStartDate, l = i;
1486
1486
  i < e.selectedStartDate && (l = e.selectedStartDate, d = i), ce.debug(" selectDay - calling validateRangeAsync with:", d, l);
1487
- const c = await Xt(e, d, l);
1487
+ const c = await Qt(e, d, l);
1488
1488
  if (ce.debug(" selectDay - validation result:", c), !c.isValid) {
1489
- c.message && Y.warn("selectDay() - range validation failed:", c.message), c.showInvalidRange && c.invalidStart && c.invalidEnd && (e.invalidRangeStart = c.invalidStart, e.invalidRangeEnd = c.invalidEnd, e.selectedStartDate = null, e.selectedEndDate = null), et(e);
1489
+ c.message && B.warn("selectDay() - range validation failed:", c.message), c.showInvalidRange && c.invalidStart && c.invalidEnd && (e.invalidRangeStart = c.invalidStart, e.invalidRangeEnd = c.invalidEnd, e.selectedStartDate = null, e.selectedEndDate = null), nt(e);
1490
1490
  return;
1491
1491
  }
1492
1492
  e.selectedStartDate = c.adjustedStart || d, e.selectedEndDate = c.adjustedEnd || l, e.invalidRangeStart = null, e.invalidRangeEnd = null, c.message || se(e), pe(e, `${e.formatDate(e.selectedStartDate)} - ${e.formatDate(e.selectedEndDate)}`);
1493
1493
  const p = { start: e.selectedStartDate, end: e.selectedEndDate };
1494
1494
  e.requiresApplyButton() ? e.pendingSelection = p : e.options.onSelect && e.options.onSelect(p), e.options.positioningMode === "floating" && e.shouldAutoClose() && e.hide();
1495
1495
  }
1496
- et(e), o && It(e, o), e.options.selectionMode === "range" && e.selectedEndDate && It(e, e.selectedEndDate);
1496
+ nt(e), o && Rt(e, o), e.options.selectionMode === "range" && e.selectedEndDate && Rt(e, e.selectedEndDate);
1497
1497
  }
1498
- function Cn(e) {
1498
+ function In(e) {
1499
1499
  e.monthDates[e.activeMonthIndex] = /* @__PURE__ */ new Date(), e.selectedDate = /* @__PURE__ */ new Date(), pe(e, e.formatDate(e.selectedDate)), e.requiresApplyButton() ? e.pendingSelection = e.selectedDate : e.options.onSelect && e.options.onSelect(e.selectedDate), e.renderCalendar(), e.options.positioningMode !== "inline" && e.shouldAutoClose() && e.hide();
1500
1500
  }
1501
- function En(e) {
1502
- e.selectedDate = null, e.selectedStartDate = null, e.selectedEndDate = null, e.selectedRanges = [], e.selectedDates = [], e.pendingSelection = null, e.dragPreviewStart = null, e.dragPreviewEnd = null, e.invalidRangeStart = null, e.invalidRangeEnd = null, e.focusedDayIndex = null, se(e), e.input && (e.input.value = ""), et(e);
1501
+ function kn(e) {
1502
+ e.selectedDate = null, e.selectedStartDate = null, e.selectedEndDate = null, e.selectedRanges = [], e.selectedDates = [], e.pendingSelection = null, e.dragPreviewStart = null, e.dragPreviewEnd = null, e.hoverPreviewEnd = null, e.invalidRangeStart = null, e.invalidRangeEnd = null, e.focusedDayIndex = null, se(e), e.input && (e.input.value = ""), nt(e);
1503
1503
  }
1504
- function In(e) {
1504
+ function Rn(e) {
1505
1505
  if (e.input) {
1506
- const a = Mn(e);
1506
+ const a = Cn(e);
1507
1507
  a !== null && (e.input.value = a);
1508
1508
  }
1509
1509
  e.pendingSelection && (e.options.onSelect && e.options.onSelect(e.pendingSelection), e.pendingSelection = null), e.options.selectionMode === "range" ? (e.committedStartDate = e.selectedStartDate, e.committedEndDate = e.selectedEndDate) : e.options.selectionMode === "single" && (e.committedDate = e.selectedDate), e.options.positioningMode !== "inline" && e.hide();
1510
1510
  }
1511
- function kn(e) {
1511
+ function An(e) {
1512
1512
  e.options.selectionMode === "range" && e.calendar.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--disabled)").forEach((t) => {
1513
1513
  t.addEventListener("mousedown", (n) => {
1514
1514
  const r = n, i = t, o = r.clientX, s = r.clientY, d = 5;
@@ -1517,8 +1517,8 @@ function kn(e) {
1517
1517
  let g;
1518
1518
  p && e.selectedStartDate && e.selectedEndDate ? g = "start" : u && e.selectedStartDate && e.selectedEndDate ? g = "end" : g = "start";
1519
1519
  const m = (v) => {
1520
- const f = Math.abs(v.clientX - o), x = Math.abs(v.clientY - s);
1521
- !l && (f > d || x > d) && (l = !0), l && !c && (c = !0, Jt(e, r, g, i), document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", h));
1520
+ const f = Math.abs(v.clientX - o), M = Math.abs(v.clientY - s);
1521
+ !l && (f > d || M > d) && (l = !0), l && !c && (c = !0, Zt(e, r, g, i), document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", h));
1522
1522
  }, h = () => {
1523
1523
  document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", h);
1524
1524
  };
@@ -1526,7 +1526,7 @@ function kn(e) {
1526
1526
  });
1527
1527
  });
1528
1528
  }
1529
- function Jt(e, a, t, n) {
1529
+ function Zt(e, a, t, n) {
1530
1530
  a.preventDefault(), a.stopPropagation(), e.isDragging = !0, e.draggingType = t, e.invalidRangeStart = null, e.invalidRangeEnd = null;
1531
1531
  const r = n, i = r.dataset.date;
1532
1532
  let o = null;
@@ -1536,9 +1536,9 @@ function Jt(e, a, t, n) {
1536
1536
  }
1537
1537
  !e.selectedStartDate && !e.selectedEndDate ? o && (e.originalStartDate = o, e.originalEndDate = null, e.draggingType = "end") : o && e.selectedStartDate && !e.selectedEndDate ? o.getTime() === e.selectedStartDate.getTime() ? (e.originalStartDate = new Date(e.selectedStartDate), e.originalEndDate = null) : (e.selectedStartDate = null, e.selectedEndDate = null, e.focusedDayIndex = null, e.calendar.querySelectorAll(".drp-date-picker__day--range-start, .drp-date-picker__day--range-end, .drp-date-picker__day--selected, .drp-date-picker__day--focused").forEach((d) => {
1538
1538
  d.classList.remove("drp-date-picker__day--range-start", "drp-date-picker__day--range-end", "drp-date-picker__day--selected", "drp-date-picker__day--focused");
1539
- }), e.originalStartDate = o, e.originalEndDate = null, e.draggingType = "end") : (e.selectedStartDate && (e.originalStartDate = new Date(e.selectedStartDate)), e.selectedEndDate && (e.originalEndDate = new Date(e.selectedEndDate))), r.classList.add("drp-date-picker__day--dragging"), re.debug(`Started dragging ${t} date`), e.onDragMoveBound = (s) => Qt(e, s), e.onDragEndBound = async (s) => await Zt(e), document.addEventListener("mousemove", e.onDragMoveBound), document.addEventListener("mouseup", e.onDragEndBound), document.body.style.cursor = "grabbing";
1539
+ }), e.originalStartDate = o, e.originalEndDate = null, e.draggingType = "end") : (e.selectedStartDate && (e.originalStartDate = new Date(e.selectedStartDate)), e.selectedEndDate && (e.originalEndDate = new Date(e.selectedEndDate))), e.hoverPreviewEnd && (e.hoverPreviewEnd = null, e.updateHoverPreview()), r.classList.add("drp-date-picker__day--dragging"), re.debug(`Started dragging ${t} date`), e.onDragMoveBound = (s) => ea(e, s), e.onDragEndBound = async (s) => await ta(e), document.addEventListener("mousemove", e.onDragMoveBound), document.addEventListener("mouseup", e.onDragEndBound), document.body.style.cursor = "grabbing";
1540
1540
  }
1541
- function Qt(e, a) {
1541
+ function ea(e, a) {
1542
1542
  if (!e.isDragging) return;
1543
1543
  let t = null;
1544
1544
  e.containerElement instanceof ShadowRoot && "elementsFromPoint" in e.containerElement ? t = e.containerElement.elementsFromPoint(a.clientX, a.clientY)[0] || null : t = document.elementFromPoint(a.clientX, a.clientY);
@@ -1564,7 +1564,7 @@ function Qt(e, a) {
1564
1564
  let c = new Date(s, d - 1, l);
1565
1565
  if (i.classList.contains("drp-date-picker__day--disabled")) {
1566
1566
  const p = e.draggingType === "start" ? e.originalEndDate && c > e.originalEndDate ? "backward" : "forward" : e.originalStartDate && c < e.originalStartDate ? "forward" : "backward";
1567
- c = Oe(e, c, p);
1567
+ c = Fe(e, c, p);
1568
1568
  }
1569
1569
  if (e.draggingType === "start" && e.originalEndDate ? (e.dragPreviewStart = c, e.dragPreviewEnd = e.originalEndDate, e.dragPreviewStart > e.dragPreviewEnd && ([e.dragPreviewStart, e.dragPreviewEnd] = [e.dragPreviewEnd, e.dragPreviewStart], e.draggingType = "end")) : e.originalStartDate && (e.dragPreviewStart = e.originalStartDate, e.dragPreviewEnd = c, e.dragPreviewEnd < e.dragPreviewStart && ([e.dragPreviewStart, e.dragPreviewEnd] = [e.dragPreviewEnd, e.dragPreviewStart], e.draggingType = "start")), e.dragPreviewStart && e.dragPreviewEnd) {
1570
1570
  const p = e.options.disabledDatesHandling;
@@ -1575,16 +1575,16 @@ function Qt(e, a) {
1575
1575
  }
1576
1576
  e.updateDragPreview();
1577
1577
  }
1578
- async function Zt(e, a) {
1578
+ async function ta(e, a) {
1579
1579
  if (!e.isDragging) return;
1580
1580
  re.debug("Ended dragging, finalizing selection");
1581
1581
  let t = !1;
1582
1582
  if (e.dragPreviewStart && e.dragPreviewEnd) {
1583
- let n = Oe(e, e.dragPreviewStart, "forward"), r = Oe(e, e.dragPreviewEnd, "backward");
1583
+ let n = Fe(e, e.dragPreviewStart, "forward"), r = Fe(e, e.dragPreviewEnd, "backward");
1584
1584
  n > r && ([n, r] = [r, n]), re.debug("onDragEnd - calling validateRangeAsync with:", n, r);
1585
- const i = await Xt(e, n, r);
1585
+ const i = await Qt(e, n, r);
1586
1586
  if (re.debug("onDragEnd - validation result:", i), !i.isValid)
1587
- i.message && Y.warn("onDragEnd() - drag validation failed:", i.message), i.showInvalidRange && i.invalidStart && i.invalidEnd && (e.invalidRangeStart = i.invalidStart, e.invalidRangeEnd = i.invalidEnd, e.selectedStartDate = null, e.selectedEndDate = null), t = !1;
1587
+ i.message && B.warn("onDragEnd() - drag validation failed:", i.message), i.showInvalidRange && i.invalidStart && i.invalidEnd && (e.invalidRangeStart = i.invalidStart, e.invalidRangeEnd = i.invalidEnd, e.selectedStartDate = null, e.selectedEndDate = null), t = !1;
1588
1588
  else {
1589
1589
  e.selectedStartDate = i.adjustedStart || n, e.selectedEndDate = i.adjustedEnd || r, t = !0, e.invalidRangeStart = null, e.invalidRangeEnd = null, i.message || se(e), pe(e, `${e.formatDate(e.selectedStartDate)} - ${e.formatDate(e.selectedEndDate)}`);
1590
1590
  const o = { start: e.selectedStartDate, end: e.selectedEndDate };
@@ -1615,7 +1615,7 @@ async function Zt(e, a) {
1615
1615
  }
1616
1616
  e.options.positioningMode !== "inline" && e.shouldAutoClose() && t && e.hide();
1617
1617
  }
1618
- function Oe(e, a, t = "forward") {
1618
+ function Fe(e, a, t = "forward") {
1619
1619
  let r = new Date(a);
1620
1620
  if (r.setHours(0, 0, 0, 0), !e.isDateDisabledInternal(r))
1621
1621
  return r;
@@ -1633,19 +1633,19 @@ function Oe(e, a, t = "forward") {
1633
1633
  }
1634
1634
  return a;
1635
1635
  }
1636
- function Rn(e, a) {
1636
+ function Tn(e, a) {
1637
1637
  const t = a.target, n = t.value, r = t.selectionStart || 0, i = e._previousInputValue || "", o = n.length < i.length, { separator: s } = e.formatInfo;
1638
1638
  if (e.options.selectionMode === "range") {
1639
- const d = n.replace(new RegExp(`[^0-9${s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}to ]`, "gi"), ""), l = ea(e, d);
1639
+ const d = n.replace(new RegExp(`[^0-9${s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}\\- ]`, "g"), ""), l = aa(e, d);
1640
1640
  if (l !== n) {
1641
1641
  t.value = l;
1642
1642
  let c = r;
1643
1643
  if (o)
1644
1644
  c = r;
1645
1645
  else if (l.length > n.length)
1646
- if (l.includes(" to ") && !n.includes(" to ")) {
1647
- const p = l.indexOf(" to ");
1648
- r >= p && r <= p + 4 ? c = p + 4 : c = r + (l.length - n.length);
1646
+ if (l.includes(" - ") && !n.includes(" - ")) {
1647
+ const p = l.indexOf(" - ");
1648
+ r >= p && r <= p + 3 ? c = p + 3 : c = r + (l.length - n.length);
1649
1649
  } else
1650
1650
  c = r + (l.length - n.length);
1651
1651
  t.setSelectionRange(c, c);
@@ -1666,7 +1666,7 @@ function Rn(e, a) {
1666
1666
  t.setSelectionRange(c, c);
1667
1667
  }
1668
1668
  }
1669
- e._previousInputValue = t.value, qe(e);
1669
+ e._previousInputValue = t.value, We(e);
1670
1670
  }
1671
1671
  function me(e, a) {
1672
1672
  var c, p, u;
@@ -1683,25 +1683,21 @@ function me(e, a) {
1683
1683
  }
1684
1684
  return d.substring(0, r);
1685
1685
  }
1686
- function ea(e, a) {
1687
- const { separator: t, maxLength: n } = e.formatInfo, r = " to ";
1688
- let i = "", o = "";
1689
- if (a.includes(r)) {
1690
- const d = a.split(r);
1691
- i = d[0], o = d.slice(1).join(r);
1692
- } else
1693
- i = a;
1694
- const s = me(e, i);
1695
- if (s.length === n)
1696
- if (a.includes(r)) {
1697
- const d = me(e, o);
1698
- return s + r + d;
1699
- } else
1700
- return s + r;
1701
- else
1702
- return s;
1703
- }
1704
- function An(e, a) {
1686
+ function aa(e, a) {
1687
+ const { maxLength: t } = e.formatInfo, n = " - ";
1688
+ let r = "", i = "", o = !1;
1689
+ const s = a.indexOf(n);
1690
+ s !== -1 ? (r = a.substring(0, s), i = a.substring(s + n.length), o = !0) : a.length > t ? (r = a.substring(0, t), i = a.substring(t).replace(/^[-\s]+/, ""), o = !0) : r = a;
1691
+ const d = me(e, r);
1692
+ if (d.length === t) {
1693
+ if (!o)
1694
+ return d + n;
1695
+ const l = me(e, i);
1696
+ return d + n + l;
1697
+ }
1698
+ return d;
1699
+ }
1700
+ function Ln(e, a) {
1705
1701
  const { key: t, ctrlKey: n, metaKey: r } = a, { separator: i } = e.formatInfo;
1706
1702
  if (e.calendar.classList.contains("drp-date-picker--visible") && ["ArrowUp", "ArrowDown", "Home", "End", "PageUp", "PageDown"].includes(t)) {
1707
1703
  a.preventDefault();
@@ -1738,18 +1734,18 @@ function An(e, a) {
1738
1734
  return;
1739
1735
  }
1740
1736
  }
1741
- e.options.selectionMode === "range" ? !/^\d$/.test(t) && t !== i && t !== " " && t.toLowerCase() !== "t" && t.toLowerCase() !== "o" && a.preventDefault() : !/^\d$/.test(t) && t !== i && a.preventDefault();
1737
+ e.options.selectionMode === "range" ? !/^\d$/.test(t) && t !== i && t !== " " && t !== "-" && a.preventDefault() : !/^\d$/.test(t) && t !== i && a.preventDefault();
1742
1738
  }
1743
1739
  }
1744
- function Tn(e, a) {
1740
+ function $n(e, a) {
1745
1741
  var u;
1746
1742
  a.preventDefault();
1747
1743
  const t = ((u = a.clipboardData) == null ? void 0 : u.getData("text")) || "", { separator: n } = e.formatInfo, r = t.replace(new RegExp(`[^0-9${n.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}]`, "g"), ""), i = me(e, r), o = a.target, s = o.selectionStart || 0, d = o.selectionEnd || 0, l = o.value, c = l.substring(0, s) + i + l.substring(d);
1748
1744
  o.value = me(e, c);
1749
1745
  const p = s + i.length;
1750
- o.setSelectionRange(p, p), o.dispatchEvent(new Event("input", { bubbles: !0 })), qe(e);
1746
+ o.setSelectionRange(p, p), o.dispatchEvent(new Event("input", { bubbles: !0 })), We(e);
1751
1747
  }
1752
- function qe(e) {
1748
+ function We(e) {
1753
1749
  if (!e.input) return;
1754
1750
  const a = e.input.value;
1755
1751
  if (ue.debug("updateCalendarFromInput - value:", a), !a) {
@@ -1757,15 +1753,18 @@ function qe(e) {
1757
1753
  return;
1758
1754
  }
1759
1755
  const { separator: t, parts: n, maxLength: r } = e.formatInfo;
1760
- if (ue.debug("Format info:", { separator: t, parts: n, maxLength: r }), e.options.selectionMode === "range" && a.includes(" to ")) {
1761
- const o = a.split(" to "), s = o[0], d = o[1];
1762
- ue.debug("Range parts - start:", s, "end:", d), Ae(e, s, "start"), d ? Ae(e, d, "end") : e.selectedEndDate = null;
1763
- return;
1756
+ if (ue.debug("Format info:", { separator: t, parts: n, maxLength: r }), e.options.selectionMode === "range") {
1757
+ let o = null, s = "";
1758
+ const d = a.indexOf(" - ");
1759
+ if (d !== -1 ? (o = a.substring(0, d), s = a.substring(d + 3)) : a.length > r && (o = a.substring(0, r), s = a.substring(r).replace(/^[-\s]+/, "")), o !== null) {
1760
+ ue.debug("Range parts - start:", o, "end:", s), Te(e, o, "start"), s ? Te(e, s, "end") : e.selectedEndDate = null;
1761
+ return;
1762
+ }
1764
1763
  }
1765
1764
  const i = e.options.selectionMode === "range" ? "start" : "single";
1766
- Ae(e, a, i);
1765
+ Te(e, a, i);
1767
1766
  }
1768
- function Ae(e, a, t = "single") {
1767
+ function Te(e, a, t = "single") {
1769
1768
  const { separator: n, parts: r, maxLength: i } = e.formatInfo, o = a.split(n);
1770
1769
  let s = null, d = null, l = null;
1771
1770
  if (o.forEach((c, p) => {
@@ -1806,74 +1805,76 @@ function Ae(e, a, t = "single") {
1806
1805
  c.getMonth() === d - 1 && (t === "single" ? e.selectedDate = c : t === "start" ? e.selectedStartDate = c : t === "end" && (e.selectedEndDate = c), e.renderCalendar(), e.options.selectionMode === "range" && e.updateSummary(), ue.debug(`Set ${t} date:`, c));
1807
1806
  }
1808
1807
  }
1809
- let Te = null, Se = 0, tt = null;
1810
- function Ln() {
1811
- Se === 0 && (tt = document.body.style.overflow, document.body.style.overflow = "hidden"), Se++;
1808
+ let Le = null, Se = null, Ce = 0, rt = null;
1809
+ function zn() {
1810
+ Ce === 0 && (rt = document.body.style.overflow, document.body.style.overflow = "hidden"), Ce++;
1812
1811
  }
1813
- function $n() {
1814
- Se = Math.max(0, Se - 1), Se === 0 && (document.body.style.overflow = tt ?? "", tt = null);
1812
+ function Pn() {
1813
+ Ce = Math.max(0, Ce - 1), Ce === 0 && (document.body.style.overflow = rt ?? "", rt = null);
1815
1814
  }
1816
- function zn(e) {
1815
+ function Nn(e) {
1817
1816
  if (e.modalBackdrop) return e.modalBackdrop;
1818
1817
  const a = document.createElement("div");
1819
1818
  return a.className = "drp-date-picker__backdrop", a.addEventListener("click", () => {
1820
- X.debug("Backdrop clicked - closing modal"), yt(e);
1819
+ J.debug("Backdrop clicked - closing modal"), je(e);
1821
1820
  }), e.containerElement.appendChild(a), e.modalBackdrop = a, a;
1822
1821
  }
1823
- function ta(e) {
1824
- if (e.options.positioningMode === "inline" || e.calendar.classList.contains("drp-date-picker--visible"))
1822
+ function na(e) {
1823
+ var t;
1824
+ if (e.options.positioningMode === "inline" || e.calendar.classList.contains("drp-date-picker--visible") || (t = e.input) != null && t.disabled)
1825
1825
  return;
1826
- X.debug("show() - adding visible class"), e.requiresApplyButton() && e.input && (e.originalInputValue = e.input.value, X.debug("show() - stored original input value:", e.originalInputValue)), qe(e), e.isFirstRender && (e.renderCalendar(), e.isFirstRender = !1, aa(e));
1826
+ J.debug("show() - adding visible class"), e.requiresApplyButton() && e.input && (e.originalInputValue = e.input.value, J.debug("show() - stored original input value:", e.originalInputValue)), We(e), e.isFirstRender && (e.renderCalendar(), e.isFirstRender = !1, ra(e));
1827
1827
  const a = e.options.positioningMode === "modal";
1828
- a && (zn(e).classList.add("drp-date-picker__backdrop--visible"), Ln(), e.input && document.activeElement === e.input ? (e.modalRestoreFocus = !0, e.input.blur()) : e.modalRestoreFocus = !1, e.calendar.classList.add("drp-date-picker--modal")), e.calendar.classList.add("drp-date-picker--visible"), e.setCalendarActive(), X.debug("show() - calendar classes:", e.calendar.className), a ? requestAnimationFrame(() => {
1829
- const t = e.calendar, n = getComputedStyle(t), r = t.getBoundingClientRect(), i = t.querySelector(".drp-date-picker__months, .drp-date-picker__months--grid"), o = i == null ? void 0 : i.getBoundingClientRect(), s = t.querySelectorAll(".drp-date-picker__month"), d = Array.from(s).filter((l) => getComputedStyle(l).display !== "none");
1828
+ a && (Nn(e).classList.add("drp-date-picker__backdrop--visible"), zn(), e.input && document.activeElement === e.input ? (e.modalRestoreFocus = !0, e.input.blur()) : e.modalRestoreFocus = !1, e.calendar.classList.add("drp-date-picker--modal")), e.calendar.classList.add("drp-date-picker--visible"), e.setCalendarActive(), J.debug("show() - calendar classes:", e.calendar.className), a ? requestAnimationFrame(() => {
1829
+ const n = e.calendar, r = getComputedStyle(n), i = n.getBoundingClientRect(), o = n.querySelector(".drp-date-picker__months, .drp-date-picker__months--grid"), s = o == null ? void 0 : o.getBoundingClientRect(), d = n.querySelectorAll(".drp-date-picker__month"), l = Array.from(d).filter((c) => getComputedStyle(c).display !== "none");
1830
1830
  console.warn("[drp modal-debug] show() — modal sizing report", {
1831
1831
  viewport: `${window.innerWidth}×${window.innerHeight}`,
1832
- modalCssWidth: n.width,
1833
- modalCssMaxWidth: n.maxWidth,
1834
- modalCssMinWidth: n.minWidth,
1835
- modalRectWidth: r.width,
1836
- modalRectHeight: r.height,
1837
- monthsContainerClass: i == null ? void 0 : i.className,
1838
- monthsContainerWidth: o == null ? void 0 : o.width,
1839
- monthsContainerCssWidth: i ? getComputedStyle(i).width : null,
1840
- totalMonthEls: s.length,
1841
- visibleMonthEls: d.length,
1842
- firstMonthCssMinWidth: s[0] ? getComputedStyle(s[0]).minWidth : null,
1843
- firstMonthRectWidth: s[0] ? s[0].getBoundingClientRect().width : null,
1844
- containerQueryActive: t.matches(":is(.drp-date-picker--modal)") && r.width <= 600,
1832
+ modalCssWidth: r.width,
1833
+ modalCssMaxWidth: r.maxWidth,
1834
+ modalCssMinWidth: r.minWidth,
1835
+ modalRectWidth: i.width,
1836
+ modalRectHeight: i.height,
1837
+ monthsContainerClass: o == null ? void 0 : o.className,
1838
+ monthsContainerWidth: s == null ? void 0 : s.width,
1839
+ monthsContainerCssWidth: o ? getComputedStyle(o).width : null,
1840
+ totalMonthEls: d.length,
1841
+ visibleMonthEls: l.length,
1842
+ firstMonthCssMinWidth: d[0] ? getComputedStyle(d[0]).minWidth : null,
1843
+ firstMonthRectWidth: d[0] ? d[0].getBoundingClientRect().width : null,
1844
+ containerQueryActive: n.matches(":is(.drp-date-picker--modal)") && i.width <= 600,
1845
1845
  mediaQueryTier: window.matchMedia("(max-width: 480px)").matches ? "xs" : window.matchMedia("(min-width: 481px) and (max-width: 640px)").matches ? "sm" : window.matchMedia("(min-width: 641px) and (max-width: 768px)").matches ? "md" : window.matchMedia("(min-width: 769px) and (max-width: 1024px)").matches ? "lg" : window.matchMedia("(min-width: 1025px)").matches ? "xl" : "?"
1846
1846
  });
1847
- }) : (at(e), Te = Kt(e.input, e.calendar, () => {
1848
- at(e);
1849
- }));
1847
+ }) : (it(e), Le = Xt(e.input, e.calendar, () => {
1848
+ it(e);
1849
+ }, { elementResize: !1 }), Se = () => je(e), window.addEventListener("resize", Se));
1850
1850
  }
1851
- function yt(e) {
1851
+ function je(e) {
1852
1852
  if (e.options.positioningMode === "inline" || !e.calendar.classList.contains("drp-date-picker--visible"))
1853
1853
  return;
1854
1854
  const a = e.options.positioningMode === "modal";
1855
- Te && (Te(), Te = null), a && (e.modalBackdrop && e.modalBackdrop.classList.remove("drp-date-picker__backdrop--visible"), $n(), e.calendar.classList.remove("drp-date-picker--modal"), e.modalRestoreFocus && e.input && e.input.focus(), e.modalRestoreFocus = !1), e.calendar.classList.remove("drp-date-picker--visible"), e.isCalendarActive = !1, e.requiresApplyButton() && e.pendingSelection && e.input && (X.debug("hide() - restoring original input value:", e.originalInputValue), e.originalInputValue !== null && (e.input.value = e.originalInputValue), e.options.selectionMode === "range" ? (e.selectedStartDate = e.committedStartDate, e.selectedEndDate = e.committedEndDate) : e.options.selectionMode === "single" && (e.selectedDate = e.committedDate), X.debug("hide() - reverted selection state")), e.pendingSelection = null;
1855
+ Le && (Le(), Le = null), Se && (window.removeEventListener("resize", Se), Se = null), a && (e.modalBackdrop && e.modalBackdrop.classList.remove("drp-date-picker__backdrop--visible"), Pn(), e.calendar.classList.remove("drp-date-picker--modal"), e.modalRestoreFocus && e.input && e.input.focus(), e.modalRestoreFocus = !1), e.calendar.classList.remove("drp-date-picker--visible"), e.isCalendarActive = !1, e.hoverPreviewEnd = null, e.requiresApplyButton() && e.pendingSelection && e.input && (J.debug("hide() - restoring original input value:", e.originalInputValue), e.originalInputValue !== null && (e.input.value = e.originalInputValue), e.options.selectionMode === "range" ? (e.selectedStartDate = e.committedStartDate, e.selectedEndDate = e.committedEndDate) : e.options.selectionMode === "single" && (e.selectedDate = e.committedDate), J.debug("hide() - reverted selection state")), e.pendingSelection = null;
1856
1856
  for (let t = 0; t < e.showingRollingSelector.length; t++)
1857
1857
  e.showingRollingSelector[t] = !1;
1858
1858
  e.isFirstRender || e.renderCalendar(), e.calendar.style.maxHeight = "", e.calendar.style.overflowY = "";
1859
1859
  }
1860
- function Nn(e) {
1861
- e.calendar.classList.contains("drp-date-picker--visible") ? yt(e) : ta(e);
1860
+ function On(e) {
1861
+ e.calendar.classList.contains("drp-date-picker--visible") ? je(e) : na(e);
1862
1862
  }
1863
- async function at(e) {
1863
+ async function it(e) {
1864
1864
  if (!e.input || e.options.positioningMode === "modal")
1865
1865
  return;
1866
- const a = await bt(e.input, e.calendar, {
1866
+ const a = await Dt(e.input, e.calendar, {
1867
1867
  placement: e.options.calendarPlacement || "bottom-start",
1868
+ strategy: "fixed",
1868
1869
  middleware: [
1869
- ht(8),
1870
- mt({ padding: 8 }),
1871
- ft({ padding: 8 }),
1870
+ bt(8),
1871
+ vt({ padding: 8 }),
1872
+ yt({ padding: 8 }),
1872
1873
  // Cap calendar height to whatever the viewport allows on the chosen side.
1873
1874
  // Scrolling is handled by the inner months container via the flex-column
1874
1875
  // layout in `_base.css` — the calendar itself uses `overflow: hidden` so
1875
1876
  // header and action bar stay pinned while the months area scrolls.
1876
- wn({
1877
+ Mn({
1877
1878
  padding: 8,
1878
1879
  apply({ availableHeight: t, elements: n }) {
1879
1880
  n.floating.style.maxHeight = `${Math.max(0, t)}px`;
@@ -1881,18 +1882,19 @@ async function at(e) {
1881
1882
  })
1882
1883
  ]
1883
1884
  });
1884
- X.debug("position() - x:", a.x, "y:", a.y, "placement:", a.placement), e.calendar.style.left = `${a.x}px`, e.calendar.style.top = `${a.y}px`;
1885
+ J.debug("position() - x:", a.x, "y:", a.y, "placement:", a.placement), e.calendar.style.left = `${a.x}px`, e.calendar.style.top = `${a.y}px`;
1885
1886
  }
1886
- async function Pn(e, a, t) {
1887
+ async function Fn(e, a, t) {
1887
1888
  if (!e.tooltip || !e.tooltipArrow) return;
1888
1889
  e.currentTooltipTarget = a, e.tooltip.innerHTML = t, e.tooltip.appendChild(e.tooltipArrow), e.tooltip.classList.add("drp-date-picker__tooltip--visible");
1889
- const { x: n, y: r, placement: i, middlewareData: o } = await bt(a, e.tooltip, {
1890
+ const { x: n, y: r, placement: i, middlewareData: o } = await Dt(a, e.tooltip, {
1890
1891
  placement: "top",
1892
+ strategy: "fixed",
1891
1893
  middleware: [
1892
- ht(6),
1893
- mt(),
1894
- ft({ padding: 5 }),
1895
- xn({ element: e.tooltipArrow })
1894
+ bt(6),
1895
+ vt(),
1896
+ yt({ padding: 5 }),
1897
+ Sn({ element: e.tooltipArrow })
1896
1898
  ]
1897
1899
  });
1898
1900
  if (Object.assign(e.tooltip.style, {
@@ -1914,10 +1916,10 @@ async function Pn(e, a, t) {
1914
1916
  });
1915
1917
  }
1916
1918
  }
1917
- function On(e) {
1919
+ function Hn(e) {
1918
1920
  e.tooltip && (e.tooltip.classList.remove("drp-date-picker__tooltip--visible"), e.currentTooltipTarget = void 0);
1919
1921
  }
1920
- function Fe(e) {
1922
+ function He(e) {
1921
1923
  if (e.loadingOverlay) return;
1922
1924
  const a = document.createElement("div");
1923
1925
  a.className = "drp-date-picker__loading-overlay", a.innerHTML = `
@@ -1927,9 +1929,9 @@ function Fe(e) {
1927
1929
  function ie(e) {
1928
1930
  e.loadingOverlay && (e.loadingOverlay.remove(), e.loadingOverlay = void 0);
1929
1931
  }
1930
- function nt(e, a, t, n) {
1932
+ function ot(e, a, t, n) {
1931
1933
  if (!e.messageElement) {
1932
- X.warn("showMessage() - messageElement is null/undefined");
1934
+ J.warn("showMessage() - messageElement is null/undefined");
1933
1935
  return;
1934
1936
  }
1935
1937
  e.messageAutoHideTimeout && (clearTimeout(e.messageAutoHideTimeout), e.messageAutoHideTimeout = void 0), e.messageElement.classList.remove(
@@ -1947,7 +1949,7 @@ function nt(e, a, t, n) {
1947
1949
  function se(e) {
1948
1950
  e.messageElement && (e.messageAutoHideTimeout && (clearTimeout(e.messageAutoHideTimeout), e.messageAutoHideTimeout = void 0), e.messageElement.classList.remove("drp-date-picker__message--visible"));
1949
1951
  }
1950
- function J(e, a, t) {
1952
+ function Q(e, a, t) {
1951
1953
  for (let n = 1; n <= 31; n++) {
1952
1954
  const r = new Date(a, t, n);
1953
1955
  if (r.getMonth() === t && !e.isDateDisabledInternal(r))
@@ -1955,35 +1957,35 @@ function J(e, a, t) {
1955
1957
  }
1956
1958
  return !1;
1957
1959
  }
1958
- async function aa(e) {
1960
+ async function ra(e) {
1959
1961
  var a, t, n, r;
1960
1962
  if (e.options.beforeMonthChangedCallback) {
1961
1963
  if (e.isMonthChanging) {
1962
- w.debug("handleInitialMonthLoad() - already changing month, skipping");
1964
+ x.debug("handleInitialMonthLoad() - already changing month, skipping");
1963
1965
  return;
1964
1966
  }
1965
1967
  try {
1966
1968
  if (e.isMonthChanging = !0, e.options.unifiedNavigation) {
1967
1969
  const i = e.options.unifiedNavigationAnchorIndex ?? 0, o = e.monthDates[i], s = o.getFullYear(), d = o.getMonth();
1968
1970
  let l = 1 / 0, c = 1 / 0, p = -1 / 0, u = -1 / 0;
1969
- for (let M = 0; M < e.monthDates.length; M++) {
1970
- const C = e.monthDates[M], I = C.getFullYear(), A = C.getMonth();
1971
+ for (let w = 0; w < e.monthDates.length; w++) {
1972
+ const E = e.monthDates[w], I = E.getFullYear(), A = E.getMonth();
1971
1973
  (I < l || I === l && A < c) && (l = I, c = A), (I > p || I === p && A > u) && (p = I, u = A);
1972
1974
  }
1973
- const h = (new Date(l, c, 1).getDay() - e.weekStartDay + 7) % 7, v = new Date(l, c, 1 - h), f = new Date(p, u + 1, 0).getDate(), E = new Date(p, u, f).getDay(), S = (e.weekStartDay + 6 - E) % 7, D = new Date(p, u, f + S), _ = {
1975
+ const h = (new Date(l, c, 1).getDay() - e.weekStartDay + 7) % 7, v = new Date(l, c, 1 - h), f = new Date(p, u + 1, 0).getDate(), C = new Date(p, u, f).getDay(), S = (e.weekStartDay + 6 - C) % 7, D = new Date(p, u, f + S), _ = {
1974
1976
  year: s,
1975
1977
  month: d,
1976
1978
  monthIndex: i,
1977
1979
  firstVisibleDate: v,
1978
1980
  lastVisibleDate: D
1979
1981
  };
1980
- w.debug(`handleInitialMonthLoad() [UNIFIED] - calling callback for ${s}-${d + 1}, range: ${v.toISOString().split("T")[0]} to ${D.toISOString().split("T")[0]}`);
1982
+ x.debug(`handleInitialMonthLoad() [UNIFIED] - calling callback for ${s}-${d + 1}, range: ${v.toISOString().split("T")[0]} to ${D.toISOString().split("T")[0]}`);
1981
1983
  const k = e.options.beforeMonthChangedCallback(_), L = k instanceof Promise;
1982
- L && Fe(e);
1984
+ L && He(e);
1983
1985
  const y = await Promise.resolve(k);
1984
- L && ie(e), w.debug(`handleInitialMonthLoad() [UNIFIED] - callback completed, metadata items: ${((a = y.metadata) == null ? void 0 : a.size) || 0}, monthHeaders: ${((t = y.monthHeaders) == null ? void 0 : t.size) || 0}`), y.metadata && (e.bulkMetadataCache = y.metadata, w.debug(`handleInitialMonthLoad() [UNIFIED] - bulk metadata cache updated with ${y.metadata.size} entries`)), y.monthHeaders && (e.monthHeadersCache = y.monthHeaders, w.debug(`handleInitialMonthLoad() [UNIFIED] - month headers cache updated with ${y.monthHeaders.size} entries`)), (y.metadata || y.monthHeaders) && e.renderCalendar();
1986
+ L && ie(e), x.debug(`handleInitialMonthLoad() [UNIFIED] - callback completed, metadata items: ${((a = y.metadata) == null ? void 0 : a.size) || 0}, monthHeaders: ${((t = y.monthHeaders) == null ? void 0 : t.size) || 0}`), y.metadata && (e.bulkMetadataCache = y.metadata, x.debug(`handleInitialMonthLoad() [UNIFIED] - bulk metadata cache updated with ${y.metadata.size} entries`)), y.monthHeaders && (e.monthHeadersCache = y.monthHeaders, x.debug(`handleInitialMonthLoad() [UNIFIED] - month headers cache updated with ${y.monthHeaders.size} entries`)), (y.metadata || y.monthHeaders) && e.renderCalendar();
1985
1987
  } else {
1986
- w.debug(`handleInitialMonthLoad() [NON-UNIFIED] - calling callback for ${e.monthDates.length} months`);
1988
+ x.debug(`handleInitialMonthLoad() [NON-UNIFIED] - calling callback for ${e.monthDates.length} months`);
1987
1989
  const i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
1988
1990
  let s = !1;
1989
1991
  for (let d = 0; d < e.monthDates.length; d++) {
@@ -1996,20 +1998,20 @@ async function aa(e) {
1996
1998
  firstVisibleDate: h,
1997
1999
  lastVisibleDate: v
1998
2000
  };
1999
- w.debug(`handleInitialMonthLoad() [NON-UNIFIED] Col${d} - calling callback for ${c}-${p + 1}, range: ${h.toISOString().split("T")[0]} to ${v.toISOString().split("T")[0]}`);
2000
- const x = e.options.beforeMonthChangedCallback(f);
2001
- x instanceof Promise && !s && (s = !0, Fe(e));
2002
- const S = await Promise.resolve(x);
2003
- w.debug(`handleInitialMonthLoad() [NON-UNIFIED] Col${d} - callback completed, metadata items: ${((n = S.metadata) == null ? void 0 : n.size) || 0}, monthHeaders: ${((r = S.monthHeaders) == null ? void 0 : r.size) || 0}`), S.metadata && S.metadata.forEach((D, _) => {
2001
+ x.debug(`handleInitialMonthLoad() [NON-UNIFIED] Col${d} - calling callback for ${c}-${p + 1}, range: ${h.toISOString().split("T")[0]} to ${v.toISOString().split("T")[0]}`);
2002
+ const M = e.options.beforeMonthChangedCallback(f);
2003
+ M instanceof Promise && !s && (s = !0, He(e));
2004
+ const S = await Promise.resolve(M);
2005
+ x.debug(`handleInitialMonthLoad() [NON-UNIFIED] Col${d} - callback completed, metadata items: ${((n = S.metadata) == null ? void 0 : n.size) || 0}, monthHeaders: ${((r = S.monthHeaders) == null ? void 0 : r.size) || 0}`), S.metadata && S.metadata.forEach((D, _) => {
2004
2006
  i.set(_, D);
2005
2007
  }), S.monthHeaders && S.monthHeaders.forEach((D, _) => {
2006
2008
  o.set(_, D);
2007
2009
  });
2008
2010
  }
2009
- s && ie(e), i.size > 0 && (e.bulkMetadataCache = i, w.debug(`handleInitialMonthLoad() [NON-UNIFIED] - combined metadata cache updated with ${i.size} entries`)), o.size > 0 && (e.monthHeadersCache = o, w.debug(`handleInitialMonthLoad() [NON-UNIFIED] - combined month headers cache updated with ${o.size} entries`)), (i.size > 0 || o.size > 0) && e.renderCalendar();
2011
+ s && ie(e), i.size > 0 && (e.bulkMetadataCache = i, x.debug(`handleInitialMonthLoad() [NON-UNIFIED] - combined metadata cache updated with ${i.size} entries`)), o.size > 0 && (e.monthHeadersCache = o, x.debug(`handleInitialMonthLoad() [NON-UNIFIED] - combined month headers cache updated with ${o.size} entries`)), (i.size > 0 || o.size > 0) && e.renderCalendar();
2010
2012
  }
2011
2013
  } catch (i) {
2012
- ie(e), w.debug("handleInitialMonthLoad() - error in callback:", i), console.error("[DateRangePicker] Error in beforeMonthChangedCallback (initial load):", i);
2014
+ ie(e), x.debug("handleInitialMonthLoad() - error in callback:", i), console.error("[DateRangePicker] Error in beforeMonthChangedCallback (initial load):", i);
2013
2015
  } finally {
2014
2016
  e.isMonthChanging = !1;
2015
2017
  }
@@ -2020,20 +2022,20 @@ async function de(e, a, t, n) {
2020
2022
  if (!e.options.beforeMonthChangedCallback)
2021
2023
  return !0;
2022
2024
  if (e.isMonthChanging)
2023
- return w.debug("handleBeforeMonthChange() - already changing month, ignoring"), !1;
2025
+ return x.debug("handleBeforeMonthChange() - already changing month, ignoring"), !1;
2024
2026
  try {
2025
2027
  e.isMonthChanging = !0;
2026
2028
  let o, s;
2027
2029
  if (e.options.unifiedNavigation) {
2028
2030
  let u = 1 / 0, g = 1 / 0, m = -1 / 0, h = -1 / 0;
2029
2031
  for (let k = 0; k < e.monthDates.length; k++) {
2030
- const L = e.monthDates[k], y = L.getFullYear(), M = L.getMonth();
2031
- (y < u || y === u && M < g) && (u = y, g = M), (y > m || y === m && M > h) && (m = y, h = M);
2032
+ const L = e.monthDates[k], y = L.getFullYear(), w = L.getMonth();
2033
+ (y < u || y === u && w < g) && (u = y, g = w), (y > m || y === m && w > h) && (m = y, h = w);
2032
2034
  }
2033
- const x = (new Date(u, g, 1).getDay() - e.weekStartDay + 7) % 7;
2034
- o = new Date(u, g, 1 - x);
2035
- const E = new Date(m, h + 1, 0).getDate(), D = new Date(m, h, E).getDay(), _ = (e.weekStartDay + 6 - D) % 7;
2036
- s = new Date(m, h, E + _);
2035
+ const M = (new Date(u, g, 1).getDay() - e.weekStartDay + 7) % 7;
2036
+ o = new Date(u, g, 1 - M);
2037
+ const C = new Date(m, h + 1, 0).getDate(), D = new Date(m, h, C).getDay(), _ = (e.weekStartDay + 6 - D) % 7;
2038
+ s = new Date(m, h, C + _);
2037
2039
  } else {
2038
2040
  const m = (new Date(a, t, 1).getDay() - e.weekStartDay + 7) % 7;
2039
2041
  o = new Date(a, t, 1 - m), s = new Date(o), s.setDate(o.getDate() + 41);
@@ -2045,86 +2047,86 @@ async function de(e, a, t, n) {
2045
2047
  firstVisibleDate: o,
2046
2048
  lastVisibleDate: s
2047
2049
  };
2048
- w.debug(`handleBeforeMonthChange() - calling callback for ${a}-${t + 1}, range: ${o.toISOString().split("T")[0]} to ${s.toISOString().split("T")[0]}`);
2050
+ x.debug(`handleBeforeMonthChange() - calling callback for ${a}-${t + 1}, range: ${o.toISOString().split("T")[0]} to ${s.toISOString().split("T")[0]}`);
2049
2051
  const l = e.options.beforeMonthChangedCallback(d), c = l instanceof Promise;
2050
- c && Fe(e);
2052
+ c && He(e);
2051
2053
  const p = await Promise.resolve(l);
2052
- return c && ie(e), p.action === "block" ? (w.debug(`handleBeforeMonthChange() - navigation blocked: ${p.message || "no reason provided"}`), p.message && console.warn(`[DateRangePicker] Month navigation blocked: ${p.message}`), !1) : (w.debug(`handleBeforeMonthChange() - navigation accepted, metadata items: ${((r = p.metadata) == null ? void 0 : r.size) || 0}, monthHeaders: ${((i = p.monthHeaders) == null ? void 0 : i.size) || 0}`), p.metadata ? e.bulkMetadataCache ? (p.metadata.forEach((u, g) => {
2054
+ return c && ie(e), p.action === "block" ? (x.debug(`handleBeforeMonthChange() - navigation blocked: ${p.message || "no reason provided"}`), p.message && console.warn(`[DateRangePicker] Month navigation blocked: ${p.message}`), !1) : (x.debug(`handleBeforeMonthChange() - navigation accepted, metadata items: ${((r = p.metadata) == null ? void 0 : r.size) || 0}, monthHeaders: ${((i = p.monthHeaders) == null ? void 0 : i.size) || 0}`), p.metadata ? e.bulkMetadataCache ? (p.metadata.forEach((u, g) => {
2053
2055
  e.bulkMetadataCache.set(g, u);
2054
- }), w.debug(`handleBeforeMonthChange() - merged ${p.metadata.size} entries into cache (total: ${e.bulkMetadataCache.size})`)) : (e.bulkMetadataCache = p.metadata, w.debug(`handleBeforeMonthChange() - bulk metadata cache created with ${p.metadata.size} entries`)) : e.bulkMetadataCache = null, p.monthHeaders && (e.monthHeadersCache ? (p.monthHeaders.forEach((u, g) => {
2056
+ }), x.debug(`handleBeforeMonthChange() - merged ${p.metadata.size} entries into cache (total: ${e.bulkMetadataCache.size})`)) : (e.bulkMetadataCache = p.metadata, x.debug(`handleBeforeMonthChange() - bulk metadata cache created with ${p.metadata.size} entries`)) : e.bulkMetadataCache = null, p.monthHeaders && (e.monthHeadersCache ? (p.monthHeaders.forEach((u, g) => {
2055
2057
  e.monthHeadersCache.set(g, u);
2056
- }), w.debug(`handleBeforeMonthChange() - merged ${p.monthHeaders.size} entries into headers cache (total: ${e.monthHeadersCache.size})`)) : (e.monthHeadersCache = p.monthHeaders, w.debug(`handleBeforeMonthChange() - month headers cache created with ${p.monthHeaders.size} entries`))), !0);
2058
+ }), x.debug(`handleBeforeMonthChange() - merged ${p.monthHeaders.size} entries into headers cache (total: ${e.monthHeadersCache.size})`)) : (e.monthHeadersCache = p.monthHeaders, x.debug(`handleBeforeMonthChange() - month headers cache created with ${p.monthHeaders.size} entries`))), !0);
2057
2059
  } catch (o) {
2058
- return ie(e), w.debug("handleBeforeMonthChange() - error in callback:", o), console.error("[DateRangePicker] Error in beforeMonthChangedCallback:", o), !1;
2060
+ return ie(e), x.debug("handleBeforeMonthChange() - error in callback:", o), console.error("[DateRangePicker] Error in beforeMonthChangedCallback:", o), !1;
2059
2061
  } finally {
2060
2062
  e.isMonthChanging = !1;
2061
2063
  }
2062
2064
  }
2063
- function Fn(e, a) {
2065
+ function Yn(e, a) {
2064
2066
  e.showingRollingSelector[a] = !e.showingRollingSelector[a], e.renderCalendar();
2065
2067
  }
2066
- async function Hn(e, a, t) {
2068
+ async function Bn(e, a, t) {
2067
2069
  const n = e.monthDates[t].getMonth();
2068
2070
  if (!await de(e, a, n, t)) {
2069
- w.debug(`selectYear() Col${t} - navigation blocked by callback`);
2071
+ x.debug(`selectYear() Col${t} - navigation blocked by callback`);
2070
2072
  return;
2071
2073
  }
2072
2074
  const i = e.monthDates[t].getFullYear();
2073
- e.monthDates[t].setFullYear(a), w.debug(`selectYear() Col${t} - changed from ${i} to ${a}`), be(e, t), e.showingRollingSelector[t] = !1, e.renderCalendar();
2075
+ e.monthDates[t].setFullYear(a), x.debug(`selectYear() Col${t} - changed from ${i} to ${a}`), be(e, t), e.showingRollingSelector[t] = !1, e.renderCalendar();
2074
2076
  }
2075
- async function Yn(e, a, t) {
2077
+ async function Vn(e, a, t) {
2076
2078
  const n = e.monthDates[t].getFullYear();
2077
2079
  if (!await de(e, n, a, t)) {
2078
- w.debug(`selectMonth() Col${t} - navigation blocked by callback`);
2080
+ x.debug(`selectMonth() Col${t} - navigation blocked by callback`);
2079
2081
  return;
2080
2082
  }
2081
2083
  const i = e.monthDates[t].getMonth();
2082
- e.monthDates[t].setMonth(a), w.debug(`selectMonth() Col${t} - changed from ${i + 1} to ${a + 1}`), be(e, t), e.showingRollingSelector[t] = !1, e.renderCalendar();
2084
+ e.monthDates[t].setMonth(a), x.debug(`selectMonth() Col${t} - changed from ${i + 1} to ${a + 1}`), be(e, t), e.showingRollingSelector[t] = !1, e.renderCalendar();
2083
2085
  }
2084
2086
  function be(e, a) {
2085
2087
  const t = e.monthDates[a];
2086
2088
  if (a < e.monthDates.length - 1) {
2087
2089
  const n = e.monthDates[a + 1];
2088
- if (He(t, n)) {
2089
- w.debug(`checkAndResolveCollisions() Col${a} - collision with Col${a + 1}, shifting forward`);
2090
+ if (Ye(t, n)) {
2091
+ x.debug(`checkAndResolveCollisions() Col${a} - collision with Col${a + 1}, shifting forward`);
2090
2092
  const r = new Date(t.getFullYear(), t.getMonth() + 1, 1);
2091
2093
  e.monthDates[a + 1] = r, be(e, a + 1);
2092
2094
  }
2093
2095
  }
2094
2096
  if (a > 0) {
2095
2097
  const n = e.monthDates[a - 1];
2096
- if (He(n, t)) {
2097
- w.debug(`checkAndResolveCollisions() Col${a} - collision with Col${a - 1}, shifting backward`);
2098
+ if (Ye(n, t)) {
2099
+ x.debug(`checkAndResolveCollisions() Col${a} - collision with Col${a - 1}, shifting backward`);
2098
2100
  const r = new Date(t.getFullYear(), t.getMonth() - 1, 1);
2099
2101
  e.monthDates[a - 1] = r, be(e, a - 1);
2100
2102
  }
2101
2103
  }
2102
2104
  }
2103
- function He(e, a) {
2105
+ function Ye(e, a) {
2104
2106
  const t = e.getFullYear(), n = e.getMonth(), r = a.getFullYear(), i = a.getMonth();
2105
2107
  return t > r || t === r && n >= i;
2106
2108
  }
2107
- async function vt(e, a, t) {
2109
+ async function _t(e, a, t) {
2108
2110
  const n = isNaN(a) ? e.activeMonthIndex : a, r = t > 0 ? "nextMonth" : "prevMonth";
2109
2111
  e.showingRollingSelector[n] && (e.showingRollingSelector[n] = !1);
2110
2112
  const i = e.monthDates[n], o = new Date(i.getFullYear(), i.getMonth() + t, 1);
2111
- if (!J(e, o.getFullYear(), o.getMonth())) {
2112
- w.debug(`${r}() Col${n} - navigation blocked: target month has no enabled days`);
2113
+ if (!Q(e, o.getFullYear(), o.getMonth())) {
2114
+ x.debug(`${r}() Col${n} - navigation blocked: target month has no enabled days`);
2113
2115
  return;
2114
2116
  }
2115
2117
  if (!await de(e, o.getFullYear(), o.getMonth(), n)) {
2116
- w.debug(`${r}() Col${n} - navigation blocked by callback`);
2118
+ x.debug(`${r}() Col${n} - navigation blocked by callback`);
2117
2119
  return;
2118
2120
  }
2119
- e.monthDates[n] = o, w.debug(`${r}() Col${n} - changed from ${i.getFullYear()}-${i.getMonth() + 1} to ${o.getFullYear()}-${o.getMonth() + 1}`);
2121
+ e.monthDates[n] = o, x.debug(`${r}() Col${n} - changed from ${i.getFullYear()}-${i.getMonth() + 1} to ${o.getFullYear()}-${o.getMonth() + 1}`);
2120
2122
  const d = n + t;
2121
2123
  if (t > 0 ? d < e.monthDates.length : d >= 0) {
2122
2124
  const c = e.monthDates[d];
2123
- (t > 0 ? He(o, c) : He(c, o)) && (w.debug(`${r}() Col${n} - collision detected with Col${d}, shifting`), await vt(e, d, t));
2125
+ (t > 0 ? Ye(o, c) : Ye(c, o)) && (x.debug(`${r}() Col${n} - collision detected with Col${d}, shifting`), await _t(e, d, t));
2124
2126
  }
2125
2127
  e.renderCalendar();
2126
2128
  }
2127
- const Le = (e, a) => vt(e, a, -1), $e = (e, a) => vt(e, a, 1);
2129
+ const $e = (e, a) => _t(e, a, -1), ze = (e, a) => _t(e, a, 1);
2128
2130
  function xe(e, a, t, n, r) {
2129
2131
  let i = a, o = 0;
2130
2132
  const s = 60;
@@ -2142,26 +2144,26 @@ function xe(e, a, t, n, r) {
2142
2144
  }
2143
2145
  return { index: null, monthChanged: !1 };
2144
2146
  }
2145
- function Bn(e, a) {
2147
+ function Un(e, a) {
2146
2148
  var o, s, d, l;
2147
- w.debug(`moveFocus(${a}) Col${e.activeMonthIndex} - focusedDayIndex:`, e.focusedDayIndex);
2149
+ x.debug(`moveFocus(${a}) Col${e.activeMonthIndex} - focusedDayIndex:`, e.focusedDayIndex);
2148
2150
  const t = e.calendar.querySelector(`.drp-date-picker__days[data-month-index="${e.activeMonthIndex}"]`);
2149
2151
  if (!t) {
2150
- w.debug(`moveFocus() Col${e.activeMonthIndex} - ERROR: daysContainer not found!`);
2152
+ x.debug(`moveFocus() Col${e.activeMonthIndex} - ERROR: daysContainer not found!`);
2151
2153
  return;
2152
2154
  }
2153
2155
  const n = t.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)");
2154
- if (w.debug(`moveFocus() Col${e.activeMonthIndex} - found ${n.length} days in column`), n.length === 0) return;
2156
+ if (x.debug(`moveFocus() Col${e.activeMonthIndex} - found ${n.length} days in column`), n.length === 0) return;
2155
2157
  if (e.focusedDayIndex === null) {
2156
2158
  const c = Array.from(n).findIndex((p) => p.classList.contains("drp-date-picker__day--today"));
2157
- e.focusedDayIndex = c !== -1 ? c : 0, w.debug(`moveFocus() Col${e.activeMonthIndex} - initialized focusedDayIndex to ${e.focusedDayIndex} (today or first day), will move by offset ${a}`);
2159
+ e.focusedDayIndex = c !== -1 ? c : 0, x.debug(`moveFocus() Col${e.activeMonthIndex} - initialized focusedDayIndex to ${e.focusedDayIndex} (today or first day), will move by offset ${a}`);
2158
2160
  }
2159
2161
  (o = n[e.focusedDayIndex]) == null || o.classList.remove("drp-date-picker__day--focused");
2160
2162
  const r = e.focusedDayIndex + a;
2161
2163
  if (r < 0) {
2162
2164
  const c = e.activeMonthIndex;
2163
2165
  if (a === -1)
2164
- w.debug(`moveFocus() Col${c} - edge navigation LEFT: going to last enabled day of prev month`), Le(e, e.activeMonthIndex), setTimeout(() => {
2166
+ x.debug(`moveFocus() Col${c} - edge navigation LEFT: going to last enabled day of prev month`), $e(e, e.activeMonthIndex), setTimeout(() => {
2165
2167
  var m, h;
2166
2168
  const p = e.calendar.querySelector(`.drp-date-picker__month[data-month-index="${c}"] .drp-date-picker__days`);
2167
2169
  if (!p) return;
@@ -2172,14 +2174,14 @@ function Bn(e, a) {
2172
2174
  const u = n[e.focusedDayIndex].dataset.date;
2173
2175
  if (u) {
2174
2176
  const [g, m, h] = u.split("-").map(Number), f = new Date(g, m - 1, h).getDay();
2175
- w.debug(`moveFocus() Col${c} - edge navigation UP: current day ${h} is weekday ${f}, going to prev month`), Le(e, e.activeMonthIndex), setTimeout(() => {
2177
+ x.debug(`moveFocus() Col${c} - edge navigation UP: current day ${h} is weekday ${f}, going to prev month`), $e(e, e.activeMonthIndex), setTimeout(() => {
2176
2178
  var _, k;
2177
- const x = e.calendar.querySelector(`.drp-date-picker__month[data-month-index="${c}"] .drp-date-picker__days`);
2178
- if (!x) return;
2179
- const E = x.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)"), D = E[E.length - 1].dataset.date;
2179
+ const M = e.calendar.querySelector(`.drp-date-picker__month[data-month-index="${c}"] .drp-date-picker__days`);
2180
+ if (!M) return;
2181
+ const C = M.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)"), D = C[C.length - 1].dataset.date;
2180
2182
  if (D) {
2181
- const [L, y, M] = D.split("-").map(Number), I = new Date(L, y - 1, M).getDay(), A = (I - f + 7) % 7;
2182
- e.focusedDayIndex = E.length - 1 - A, w.debug(`moveFocus() Col${c} - last day weekday ${I}, target ${f}, focusing on day ${e.focusedDayIndex + 1}`), (_ = E[e.focusedDayIndex]) == null || _.classList.add("drp-date-picker__day--focused"), (k = E[e.focusedDayIndex]) == null || k.scrollIntoView({ block: "nearest" });
2183
+ const [L, y, w] = D.split("-").map(Number), I = new Date(L, y - 1, w).getDay(), A = (I - f + 7) % 7;
2184
+ e.focusedDayIndex = C.length - 1 - A, x.debug(`moveFocus() Col${c} - last day weekday ${I}, target ${f}, focusing on day ${e.focusedDayIndex + 1}`), (_ = C[e.focusedDayIndex]) == null || _.classList.add("drp-date-picker__day--focused"), (k = C[e.focusedDayIndex]) == null || k.scrollIntoView({ block: "nearest" });
2183
2185
  }
2184
2186
  }, 0);
2185
2187
  }
@@ -2188,7 +2190,7 @@ function Bn(e, a) {
2188
2190
  } else if (r >= n.length) {
2189
2191
  const c = e.activeMonthIndex;
2190
2192
  if (a === 1)
2191
- w.debug(`moveFocus() Col${c} - edge navigation RIGHT: going to first enabled day of next month`), $e(e, e.activeMonthIndex), setTimeout(() => {
2193
+ x.debug(`moveFocus() Col${c} - edge navigation RIGHT: going to first enabled day of next month`), ze(e, e.activeMonthIndex), setTimeout(() => {
2192
2194
  var m, h;
2193
2195
  const p = e.calendar.querySelector(`.drp-date-picker__month[data-month-index="${c}"] .drp-date-picker__days`);
2194
2196
  if (!p) return;
@@ -2199,14 +2201,14 @@ function Bn(e, a) {
2199
2201
  const u = n[e.focusedDayIndex].dataset.date;
2200
2202
  if (u) {
2201
2203
  const [g, m, h] = u.split("-").map(Number), f = new Date(g, m - 1, h).getDay();
2202
- w.debug(`moveFocus() Col${c} - edge navigation DOWN: current day ${h} is weekday ${f}, going to next month`), $e(e, e.activeMonthIndex), setTimeout(() => {
2204
+ x.debug(`moveFocus() Col${c} - edge navigation DOWN: current day ${h} is weekday ${f}, going to next month`), ze(e, e.activeMonthIndex), setTimeout(() => {
2203
2205
  var _, k;
2204
- const x = e.calendar.querySelector(`.drp-date-picker__month[data-month-index="${c}"] .drp-date-picker__days`);
2205
- if (!x) return;
2206
- const E = x.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)"), D = E[0].dataset.date;
2206
+ const M = e.calendar.querySelector(`.drp-date-picker__month[data-month-index="${c}"] .drp-date-picker__days`);
2207
+ if (!M) return;
2208
+ const C = M.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)"), D = C[0].dataset.date;
2207
2209
  if (D) {
2208
- const [L, y, M] = D.split("-").map(Number), I = new Date(L, y - 1, M).getDay(), A = (f - I + 7) % 7;
2209
- e.focusedDayIndex = A, w.debug(`moveFocus() Col${c} - first day weekday ${I}, target ${f}, focusing on day ${e.focusedDayIndex + 1}`), (_ = E[e.focusedDayIndex]) == null || _.classList.add("drp-date-picker__day--focused"), (k = E[e.focusedDayIndex]) == null || k.scrollIntoView({ block: "nearest" });
2210
+ const [L, y, w] = D.split("-").map(Number), I = new Date(L, y - 1, w).getDay(), A = (f - I + 7) % 7;
2211
+ e.focusedDayIndex = A, x.debug(`moveFocus() Col${c} - first day weekday ${I}, target ${f}, focusing on day ${e.focusedDayIndex + 1}`), (_ = C[e.focusedDayIndex]) == null || _.classList.add("drp-date-picker__day--focused"), (k = C[e.focusedDayIndex]) == null || k.scrollIntoView({ block: "nearest" });
2210
2212
  }
2211
2213
  }, 0);
2212
2214
  }
@@ -2216,7 +2218,7 @@ function Bn(e, a) {
2216
2218
  const i = xe(e, r, a, n, e.activeMonthIndex);
2217
2219
  if (i.monthChanged) {
2218
2220
  const c = e.activeMonthIndex;
2219
- i.direction === "next" ? $e(e, e.activeMonthIndex) : Le(e, e.activeMonthIndex), setTimeout(() => {
2221
+ i.direction === "next" ? ze(e, e.activeMonthIndex) : $e(e, e.activeMonthIndex), setTimeout(() => {
2220
2222
  var m, h;
2221
2223
  const p = e.calendar.querySelector(`.drp-date-picker__month[data-month-index="${c}"] .drp-date-picker__days`);
2222
2224
  if (!p) return;
@@ -2230,13 +2232,13 @@ function Bn(e, a) {
2230
2232
  }, 0);
2231
2233
  return;
2232
2234
  }
2233
- i.index !== null ? (e.focusedDayIndex = i.index, (s = n[e.focusedDayIndex]) == null || s.classList.add("drp-date-picker__day--focused"), (d = n[e.focusedDayIndex]) == null || d.scrollIntoView({ block: "nearest" })) : (w.debug("moveFocus() - no enabled day found in search range"), (l = n[e.focusedDayIndex]) == null || l.classList.add("drp-date-picker__day--focused"));
2235
+ i.index !== null ? (e.focusedDayIndex = i.index, (s = n[e.focusedDayIndex]) == null || s.classList.add("drp-date-picker__day--focused"), (d = n[e.focusedDayIndex]) == null || d.scrollIntoView({ block: "nearest" })) : (x.debug("moveFocus() - no enabled day found in search range"), (l = n[e.focusedDayIndex]) == null || l.classList.add("drp-date-picker__day--focused"));
2234
2236
  }
2235
- async function Vn(e) {
2237
+ async function qn(e) {
2236
2238
  if (!e.options.unifiedNavigation) return;
2237
2239
  const a = e.options.unifiedNavigationAnchorIndex ?? 0, t = e.monthDates[a], n = new Date(t.getFullYear(), t.getMonth() + 1, 1);
2238
- if (w.debug(`unifiedNextMonth() - anchor index: ${a}, current: ${t.getFullYear()}-${t.getMonth() + 1}, new: ${n.getFullYear()}-${n.getMonth() + 1}`), !J(e, n.getFullYear(), n.getMonth())) {
2239
- w.debug("unifiedNextMonth() - navigation blocked: target month has no enabled days");
2240
+ if (x.debug(`unifiedNextMonth() - anchor index: ${a}, current: ${t.getFullYear()}-${t.getMonth() + 1}, new: ${n.getFullYear()}-${n.getMonth() + 1}`), !Q(e, n.getFullYear(), n.getMonth())) {
2241
+ x.debug("unifiedNextMonth() - navigation blocked: target month has no enabled days");
2240
2242
  return;
2241
2243
  }
2242
2244
  if (await de(e, n.getFullYear(), n.getMonth(), a)) {
@@ -2247,11 +2249,11 @@ async function Vn(e) {
2247
2249
  e.renderCalendar();
2248
2250
  }
2249
2251
  }
2250
- async function Un(e) {
2252
+ async function Wn(e) {
2251
2253
  if (!e.options.unifiedNavigation) return;
2252
2254
  const a = e.options.unifiedNavigationAnchorIndex ?? 0, t = e.monthDates[a], n = new Date(t.getFullYear(), t.getMonth() - 1, 1);
2253
- if (w.debug(`unifiedPrevMonth() - anchor index: ${a}, current: ${t.getFullYear()}-${t.getMonth() + 1}, new: ${n.getFullYear()}-${n.getMonth() + 1}`), !J(e, n.getFullYear(), n.getMonth())) {
2254
- w.debug("unifiedPrevMonth() - navigation blocked: target month has no enabled days");
2255
+ if (x.debug(`unifiedPrevMonth() - anchor index: ${a}, current: ${t.getFullYear()}-${t.getMonth() + 1}, new: ${n.getFullYear()}-${n.getMonth() + 1}`), !Q(e, n.getFullYear(), n.getMonth())) {
2256
+ x.debug("unifiedPrevMonth() - navigation blocked: target month has no enabled days");
2255
2257
  return;
2256
2258
  }
2257
2259
  if (await de(e, n.getFullYear(), n.getMonth(), a)) {
@@ -2262,10 +2264,10 @@ async function Un(e) {
2262
2264
  e.renderCalendar();
2263
2265
  }
2264
2266
  }
2265
- async function qn(e, a) {
2267
+ async function jn(e, a) {
2266
2268
  if (!e.options.unifiedNavigation) return;
2267
2269
  const t = e.options.unifiedNavigationAnchorIndex ?? 0, n = e.monthDates[t].getFullYear();
2268
- if (w.debug(`setUnifiedMonth(${a}) - anchor index: ${t}, year: ${n}`), !!await de(e, n, a, t)) {
2270
+ if (x.debug(`setUnifiedMonth(${a}) - anchor index: ${t}, year: ${n}`), !!await de(e, n, a, t)) {
2269
2271
  for (let i = 0; i < e.monthDates.length; i++) {
2270
2272
  const o = i - t;
2271
2273
  e.monthDates[i] = new Date(n, a + o, 1);
@@ -2273,13 +2275,13 @@ async function qn(e, a) {
2273
2275
  e.showingUnifiedRollingSelector = !1, e.renderCalendar();
2274
2276
  }
2275
2277
  }
2276
- function Wn(e) {
2277
- e.options.unifiedNavigation && (e.showingUnifiedRollingSelector = !e.showingUnifiedRollingSelector, w.debug(`toggleUnifiedRollingSelector() - now ${e.showingUnifiedRollingSelector ? "visible" : "hidden"}`), e.renderCalendar());
2278
+ function Kn(e) {
2279
+ e.options.unifiedNavigation && (e.showingUnifiedRollingSelector = !e.showingUnifiedRollingSelector, x.debug(`toggleUnifiedRollingSelector() - now ${e.showingUnifiedRollingSelector ? "visible" : "hidden"}`), e.renderCalendar());
2278
2280
  }
2279
- async function jn(e, a) {
2281
+ async function Gn(e, a) {
2280
2282
  if (!e.options.unifiedNavigation) return;
2281
2283
  const t = e.options.unifiedNavigationAnchorIndex ?? 0, n = e.monthDates[t].getMonth();
2282
- if (w.debug(`setUnifiedYear(${a}) - anchor index: ${t}, month: ${n}`), !!await de(e, a, n, t)) {
2284
+ if (x.debug(`setUnifiedYear(${a}) - anchor index: ${t}, month: ${n}`), !!await de(e, a, n, t)) {
2283
2285
  for (let i = 0; i < e.monthDates.length; i++) {
2284
2286
  const o = i - t;
2285
2287
  e.monthDates[i] = new Date(a, n + o, 1);
@@ -2287,7 +2289,7 @@ async function jn(e, a) {
2287
2289
  e.showingUnifiedRollingSelector = !1, e.renderCalendar();
2288
2290
  }
2289
2291
  }
2290
- function na(e, a, t) {
2292
+ function ia(e, a, t) {
2291
2293
  if (!e) {
2292
2294
  if (t != null && t.normalizedMinDate || t != null && t.normalizedMaxDate) {
2293
2295
  const n = t.normalizedMinDate ? t.normalizedMinDate.getFullYear() : a - 1, r = t.normalizedMaxDate ? t.normalizedMaxDate.getFullYear() : a + 1;
@@ -2303,16 +2305,16 @@ function na(e, a, t) {
2303
2305
  return { min: n, max: n };
2304
2306
  }
2305
2307
  }
2306
- function ra(e) {
2308
+ function oa(e) {
2307
2309
  if (!e)
2308
2310
  return { min: 1, max: 12 };
2309
2311
  const [a, t] = e.split("-");
2310
2312
  return { min: parseInt(a, 10), max: parseInt(t, 10) };
2311
2313
  }
2312
- function Kn(e) {
2313
- he.debug("[DatePicker 18] renderCalendar called, showingRollingSelector:", e.showingRollingSelector, `activeCol: ${e.activeMonthIndex}`), he.debug("[DatePicker 18] monthDates array:", e.monthDates.map((a, t) => `Col${t}: ${a.getFullYear()}-${a.getMonth() + 1}`).join(", ")), e.options.unifiedNavigation && e.showingUnifiedRollingSelector && Xn(e);
2314
+ function Xn(e) {
2315
+ he.debug("[DatePicker 18] renderCalendar called, showingRollingSelector:", e.showingRollingSelector, `activeCol: ${e.activeMonthIndex}`), he.debug("[DatePicker 18] monthDates array:", e.monthDates.map((a, t) => `Col${t}: ${a.getFullYear()}-${a.getMonth() + 1}`).join(", ")), e.options.unifiedNavigation && e.showingUnifiedRollingSelector && Qn(e);
2314
2316
  for (let a = 0; a < e.options.visibleMonthsCount; a++)
2315
- e.showingRollingSelector[a] ? da(e, a) : ia(e, a);
2317
+ e.showingRollingSelector[a] ? ca(e, a) : sa(e, a);
2316
2318
  if (e.focusedDayIndex !== null) {
2317
2319
  const a = e.calendar.querySelector(`.drp-date-picker__days[data-month-index="${e.activeMonthIndex}"]`);
2318
2320
  if (a) {
@@ -2322,8 +2324,8 @@ function Kn(e) {
2322
2324
  }
2323
2325
  e.options.selectionMode === "range" && !e.isDragging && e.initDragListeners(), e.actionsContainer && e.renderButtons(e.actionsContainer);
2324
2326
  }
2325
- function ia(e, a) {
2326
- var E;
2327
+ function sa(e, a) {
2328
+ var C;
2327
2329
  he.debug(`[DatePicker Col${a} 19] renderNormalView called for month`, a);
2328
2330
  const t = e.calendar.querySelector(`.drp-date-picker__month[data-month-index="${a}"]`);
2329
2331
  if (!t) return;
@@ -2333,7 +2335,7 @@ function ia(e, a) {
2333
2335
  if (d) {
2334
2336
  const S = `${i}-${String(o + 1).padStart(2, "0")}`;
2335
2337
  let D;
2336
- (E = e.monthHeadersCache) != null && E.has(S) ? D = e.monthHeadersCache.get(S) : e.options.getMonthHeaderCallback ? D = e.options.getMonthHeaderCallback({
2338
+ (C = e.monthHeadersCache) != null && C.has(S) ? D = e.monthHeadersCache.get(S) : e.options.getMonthHeaderCallback ? D = e.options.getMonthHeaderCallback({
2337
2339
  month: r,
2338
2340
  monthIndex: a,
2339
2341
  monthName: s,
@@ -2352,28 +2354,28 @@ function ia(e, a) {
2352
2354
  });
2353
2355
  e.unifiedRangeDisplay.textContent = y;
2354
2356
  } else {
2355
- const y = e.monthNames[S.getMonth()], M = e.monthNames[D.getMonth()], C = S.getFullYear(), I = D.getFullYear();
2356
- C === I ? e.unifiedRangeDisplay.textContent = `${y} ${C} - ${M} ${I}` : e.unifiedRangeDisplay.textContent = `${y} ${C} - ${M} ${I}`;
2357
+ const y = e.monthNames[S.getMonth()], w = e.monthNames[D.getMonth()], E = S.getFullYear(), I = D.getFullYear();
2358
+ E === I ? e.unifiedRangeDisplay.textContent = `${y} ${E} - ${w} ${I}` : e.unifiedRangeDisplay.textContent = `${y} ${E} - ${w} ${I}`;
2357
2359
  }
2358
2360
  const L = e.unifiedHeader;
2359
2361
  if (L) {
2360
- const y = S.getMonth() === 0 ? S.getFullYear() - 1 : S.getFullYear(), M = S.getMonth() === 0 ? 11 : S.getMonth() - 1, C = L.querySelector(".drp-date-picker__nav--prev");
2361
- C && (J(e, y, M) ? (C.removeAttribute("disabled"), C.classList.remove("drp-date-picker__nav--disabled")) : (C.setAttribute("disabled", "true"), C.classList.add("drp-date-picker__nav--disabled")));
2362
+ const y = S.getMonth() === 0 ? S.getFullYear() - 1 : S.getFullYear(), w = S.getMonth() === 0 ? 11 : S.getMonth() - 1, E = L.querySelector(".drp-date-picker__nav--prev");
2363
+ E && (Q(e, y, w) ? (E.removeAttribute("disabled"), E.classList.remove("drp-date-picker__nav--disabled")) : (E.setAttribute("disabled", "true"), E.classList.add("drp-date-picker__nav--disabled")));
2362
2364
  const I = D.getMonth() === 11 ? D.getFullYear() + 1 : D.getFullYear(), A = D.getMonth() === 11 ? 0 : D.getMonth() + 1, R = L.querySelector(".drp-date-picker__nav--next");
2363
- R && (J(e, I, A) ? (R.removeAttribute("disabled"), R.classList.remove("drp-date-picker__nav--disabled")) : (R.setAttribute("disabled", "true"), R.classList.add("drp-date-picker__nav--disabled")));
2365
+ R && (Q(e, I, A) ? (R.removeAttribute("disabled"), R.classList.remove("drp-date-picker__nav--disabled")) : (R.setAttribute("disabled", "true"), R.classList.add("drp-date-picker__nav--disabled")));
2364
2366
  }
2365
2367
  }
2366
2368
  const l = r.getFullYear(), c = r.getMonth(), p = c === 0 ? 11 : c - 1, u = c === 0 ? l - 1 : l, g = t.querySelector(".drp-date-picker__nav--prev");
2367
- g && (J(e, u, p) ? (g.removeAttribute("disabled"), g.classList.remove("drp-date-picker__nav--disabled")) : (g.setAttribute("disabled", "true"), g.classList.add("drp-date-picker__nav--disabled")));
2369
+ g && (Q(e, u, p) ? (g.removeAttribute("disabled"), g.classList.remove("drp-date-picker__nav--disabled")) : (g.setAttribute("disabled", "true"), g.classList.add("drp-date-picker__nav--disabled")));
2368
2370
  const m = c === 11 ? 0 : c + 1, h = c === 11 ? l + 1 : l, v = t.querySelector(".drp-date-picker__nav--next");
2369
- v && (J(e, h, m) ? (v.removeAttribute("disabled"), v.classList.remove("drp-date-picker__nav--disabled")) : (v.setAttribute("disabled", "true"), v.classList.add("drp-date-picker__nav--disabled")));
2370
- const f = t.querySelector(".drp-date-picker__weekdays"), x = [
2371
+ v && (Q(e, h, m) ? (v.removeAttribute("disabled"), v.classList.remove("drp-date-picker__nav--disabled")) : (v.setAttribute("disabled", "true"), v.classList.add("drp-date-picker__nav--disabled")));
2372
+ const f = t.querySelector(".drp-date-picker__weekdays"), M = [
2371
2373
  ...e.weekdayNames.slice(e.weekStartDay),
2372
2374
  ...e.weekdayNames.slice(0, e.weekStartDay)
2373
2375
  ];
2374
- f && (f.innerHTML = x.map((S) => `<div class="drp-date-picker__weekday">${S}</div>`).join("")), oa(e, a, r);
2376
+ f && (f.innerHTML = M.map((S) => `<div class="drp-date-picker__weekday">${S}</div>`).join("")), da(e, a, r);
2375
2377
  }
2376
- function oa(e, a, t) {
2378
+ function da(e, a, t) {
2377
2379
  he.debug(`[DatePicker Col${a} 20] renderDays called for month`, a);
2378
2380
  const n = e.calendar.querySelector(`.drp-date-picker__month[data-month-index="${a}"]`);
2379
2381
  if (!n) return;
@@ -2400,8 +2402,8 @@ function oa(e, a, t) {
2400
2402
  isOtherMonth: !1
2401
2403
  });
2402
2404
  }
2403
- const E = 42 - (d + l);
2404
- for (let _ = 1; _ <= E; _++) {
2405
+ const C = 42 - (d + l);
2406
+ for (let _ = 1; _ <= C; _++) {
2405
2407
  const k = new Date(h, v, _);
2406
2408
  f.push({
2407
2409
  date: k,
@@ -2417,9 +2419,9 @@ function oa(e, a, t) {
2417
2419
  let D = "";
2418
2420
  for (const _ of S) {
2419
2421
  const k = _.map((y) => {
2420
- const M = e.getDateInfoInternal(y.date);
2421
- let C = (M == null ? void 0 : M.badgeTooltip) || "";
2422
- if (e.options.badgeTooltipCallback && (M != null && M.badgeText)) {
2422
+ const w = e.getDateInfoInternal(y.date);
2423
+ let E = (w == null ? void 0 : w.badgeTooltip) || "";
2424
+ if (e.options.badgeTooltipCallback && (w != null && w.badgeText)) {
2423
2425
  const A = {
2424
2426
  date: y.date,
2425
2427
  dateString: Me(y.date),
@@ -2430,77 +2432,79 @@ function oa(e, a, t) {
2430
2432
  isStartDate: !1,
2431
2433
  isEndDate: !1,
2432
2434
  isInRange: !1,
2433
- isToday: $t(y.date),
2435
+ isToday: Pt(y.date),
2434
2436
  isWeekend: y.date.getDay() === 0 || y.date.getDay() === 6,
2435
2437
  monthIndex: a,
2436
2438
  element: null,
2437
2439
  // Not available during string rendering
2438
2440
  picker: e
2439
2441
  }, R = e.options.badgeTooltipCallback(A);
2440
- R !== null && (C = R);
2442
+ R !== null && (E = R);
2441
2443
  }
2442
2444
  return {
2443
- text: (M == null ? void 0 : M.badgeText) || "",
2444
- tooltip: C,
2445
- class: (M == null ? void 0 : M.badgeClass) || ""
2445
+ text: (w == null ? void 0 : w.badgeText) || "",
2446
+ tooltip: E,
2447
+ class: (w == null ? void 0 : w.badgeClass) || ""
2446
2448
  };
2447
2449
  });
2448
2450
  if (k.some((y) => y.text)) {
2449
2451
  D += '<div class="drp-date-picker__badge-row">';
2450
2452
  for (const y of k)
2451
2453
  if (y.text) {
2452
- const M = y.tooltip ? ` data-tooltip="${y.tooltip.replace(/"/g, "&quot;")}"` : "", C = y.class ? ` ${y.class}` : "";
2453
- D += `<div class="drp-date-picker__badge-cell${C}"${M}>${y.text}</div>`;
2454
+ const w = y.tooltip ? ` data-tooltip="${y.tooltip.replace(/"/g, "&quot;")}"` : "", E = y.class ? ` ${y.class}` : "";
2455
+ D += `<div class="drp-date-picker__badge-cell${E}"${w}>${y.text}</div>`;
2454
2456
  } else
2455
2457
  D += '<div class="drp-date-picker__badge-cell"></div>';
2456
2458
  D += "</div>";
2457
2459
  }
2458
2460
  D += '<div class="drp-date-picker__date-row">';
2459
2461
  for (const y of _) {
2460
- const M = ["drp-date-picker__day"];
2461
- y.isOtherMonth && M.push("drp-date-picker__day--other-month");
2462
- const C = e.getDateInfoInternal(y.date), I = C && C.isDisabled !== void 0 ? C.isDisabled : e.isDateDisabledInternal(y.date);
2463
- I && M.push("drp-date-picker__day--disabled"), C && C.dayClass && M.push(C.dayClass), e.isToday(y.date) && M.push("drp-date-picker__day--today");
2464
- let A = !1;
2465
- e.options.selectionMode === "single" ? A = e.isSameDay(y.date, e.selectedDate) : e.options.selectionMode === "multiple" && (A = e.selectedDates.some((H) => e.isSameDay(y.date, H))), A && M.push("drp-date-picker__day--selected");
2466
- let R = !1, $ = !1, P = !1;
2462
+ const w = ["drp-date-picker__day"];
2463
+ y.isOtherMonth && w.push("drp-date-picker__day--other-month");
2464
+ const E = y.date.getDay();
2465
+ (E === 0 || E === 6) && w.push("drp-date-picker__day--weekend");
2466
+ const I = e.getDateInfoInternal(y.date), A = I && I.isDisabled !== void 0 ? I.isDisabled : e.isDateDisabledInternal(y.date);
2467
+ A && w.push("drp-date-picker__day--disabled"), I && I.dayClass && w.push(I.dayClass), e.isToday(y.date) && w.push("drp-date-picker__day--today");
2468
+ let R = !1;
2469
+ e.options.selectionMode === "single" ? R = e.isSameDay(y.date, e.selectedDate) : e.options.selectionMode === "multiple" && (R = e.selectedDates.some((q) => e.isSameDay(y.date, q))), R && w.push("drp-date-picker__day--selected");
2470
+ let $ = !1, N = !1, z = !1;
2467
2471
  if (e.options.selectionMode === "range") {
2468
- if (R = e.isSameDay(y.date, e.selectedStartDate), $ = e.isSameDay(y.date, e.selectedEndDate), P = e.isInRange(y.date), R && M.push("drp-date-picker__day--range-start"), $ && M.push("drp-date-picker__day--range-end"), P && (!I || e.options.highlightDisabledInRange) && M.push("drp-date-picker__day--in-range"), e.invalidRangeStart && e.invalidRangeEnd) {
2469
- const H = e.isSameDay(y.date, e.invalidRangeStart), ke = e.isSameDay(y.date, e.invalidRangeEnd), ua = y.date > e.invalidRangeStart && y.date < e.invalidRangeEnd;
2470
- H && M.push("drp-date-picker__day--invalid-range-start"), ke && M.push("drp-date-picker__day--invalid-range-end"), ua && M.push("drp-date-picker__day--invalid-range");
2472
+ if ($ = e.isSameDay(y.date, e.selectedStartDate), N = e.isSameDay(y.date, e.selectedEndDate), z = e.isInRange(y.date), $ && w.push("drp-date-picker__day--range-start"), N && w.push("drp-date-picker__day--range-end"), z && (!A || e.options.highlightDisabledInRange) && w.push("drp-date-picker__day--in-range"), e.invalidRangeStart && e.invalidRangeEnd) {
2473
+ const q = e.isSameDay(y.date, e.invalidRangeStart), Re = e.isSameDay(y.date, e.invalidRangeEnd), ha = y.date > e.invalidRangeStart && y.date < e.invalidRangeEnd;
2474
+ q && w.push("drp-date-picker__day--invalid-range-start"), Re && w.push("drp-date-picker__day--invalid-range-end"), ha && w.push("drp-date-picker__day--invalid-range");
2471
2475
  }
2472
2476
  } else if (e.options.selectionMode === "multiple")
2473
- for (const H of e.selectedRanges)
2474
- e.isSameDay(y.date, H.start) && (R = !0, M.push("drp-date-picker__day--range-start")), e.isSameDay(y.date, H.end) && ($ = !0, M.push("drp-date-picker__day--range-end")), y.date >= H.start && y.date <= H.end && (P = !0, (!I || e.options.highlightDisabledInRange) && M.push("drp-date-picker__day--in-range"));
2475
- const z = `${y.year}-${String(y.month + 1).padStart(2, "0")}-${String(y.day).padStart(2, "0")}`;
2476
- let N = (C == null ? void 0 : C.dayTooltip) || "";
2477
+ for (const q of e.selectedRanges)
2478
+ e.isSameDay(y.date, q.start) && ($ = !0, w.push("drp-date-picker__day--range-start")), e.isSameDay(y.date, q.end) && (N = !0, w.push("drp-date-picker__day--range-end")), y.date >= q.start && y.date <= q.end && (z = !0, (!A || e.options.highlightDisabledInRange) && w.push("drp-date-picker__day--in-range"));
2479
+ const P = `${y.year}-${String(y.month + 1).padStart(2, "0")}-${String(y.day).padStart(2, "0")}`;
2480
+ let Y = (I == null ? void 0 : I.dayTooltip) || "";
2477
2481
  if (e.options.dayTooltipCallback) {
2478
- const H = {
2482
+ const q = {
2479
2483
  date: y.date,
2480
- dateString: z,
2484
+ dateString: P,
2481
2485
  dayNumber: y.day,
2482
- isDisabled: I,
2483
- isSelected: A,
2484
- isStartDate: R,
2485
- isEndDate: $,
2486
- isInRange: P,
2486
+ isDisabled: A,
2487
+ isSelected: R,
2488
+ isStartDate: $,
2489
+ isEndDate: N,
2490
+ isInRange: z,
2487
2491
  isToday: e.isToday(y.date),
2488
2492
  isWeekend: y.date.getDay() === 0 || y.date.getDay() === 6,
2489
2493
  monthIndex: a,
2490
2494
  element: null,
2491
2495
  // Not available during string rendering
2492
2496
  picker: e
2493
- }, ke = e.options.dayTooltipCallback(H);
2494
- ke !== null && (N = ke);
2497
+ }, Re = e.options.dayTooltipCallback(q);
2498
+ Re !== null && (Y = Re);
2495
2499
  }
2496
- const U = N ? ` data-tooltip="${N.replace(/"/g, "&quot;")}"` : "";
2497
- D += `<div class="${M.join(" ")}" data-date="${z}" data-day-number="${y.day}"${U}>`, D += `<slot name="day-${z}">${y.day}</slot>`, D += "</div>";
2500
+ const Ke = Y ? ` data-tooltip="${Y.replace(/"/g, "&quot;")}"` : "";
2501
+ D += `<div class="${w.join(" ")}" data-date="${P}" data-day-number="${y.day}" data-weekday="${E}"${Ke}>`, D += `<slot name="day-${P}">${y.day}</slot>`, D += "</div>";
2498
2502
  }
2499
2503
  D += "</div>";
2500
2504
  }
2501
- r && (r.innerHTML = D, Gn(e, a, r));
2505
+ r && (r.innerHTML = D, Jn(e, a, r));
2502
2506
  }
2503
- function Gn(e, a, t) {
2507
+ function Jn(e, a, t) {
2504
2508
  if (!e.options.renderDayCallback && !e.options.renderDayContentCallback)
2505
2509
  return;
2506
2510
  t.querySelectorAll(".drp-date-picker__day").forEach((r) => {
@@ -2509,14 +2513,14 @@ function Gn(e, a, t) {
2509
2513
  const [d, l, c] = o.split("-"), p = new Date(parseInt(d), parseInt(l) - 1, parseInt(c)), u = i.querySelector(`slot[name="day-${o}"]`);
2510
2514
  if (u && u.assignedNodes().length > 0)
2511
2515
  return;
2512
- const m = e.isDateDisabledInternal(p), h = e.isToday(p), v = p.getDay() === 0 || p.getDay() === 6, f = e.options.selectionMode === "single" && e.isSameDay(p, e.selectedDate), x = e.options.selectionMode === "range" && e.isSameDay(p, e.selectedStartDate), E = e.options.selectionMode === "range" && e.isSameDay(p, e.selectedEndDate), S = e.options.selectionMode === "range" && e.isInRange(p), D = {
2516
+ const m = e.isDateDisabledInternal(p), h = e.isToday(p), v = p.getDay() === 0 || p.getDay() === 6, f = e.options.selectionMode === "single" && e.isSameDay(p, e.selectedDate), M = e.options.selectionMode === "range" && e.isSameDay(p, e.selectedStartDate), C = e.options.selectionMode === "range" && e.isSameDay(p, e.selectedEndDate), S = e.options.selectionMode === "range" && e.isInRange(p), D = {
2513
2517
  date: p,
2514
2518
  dateString: o,
2515
2519
  dayNumber: s,
2516
2520
  isDisabled: m,
2517
- isSelected: f || x || E,
2518
- isStartDate: x,
2519
- isEndDate: E,
2521
+ isSelected: f || M || C,
2522
+ isStartDate: M,
2523
+ isEndDate: C,
2520
2524
  isInRange: S,
2521
2525
  isToday: h,
2522
2526
  isWeekend: v,
@@ -2540,7 +2544,7 @@ function Gn(e, a, t) {
2540
2544
  }
2541
2545
  });
2542
2546
  }
2543
- function kt(e) {
2547
+ function At(e) {
2544
2548
  let a = "";
2545
2549
  for (const t of e.items) {
2546
2550
  const n = t.value === e.currentValue ? "drp-date-picker__rolling-item--selected" : "", r = t.enabled ? "" : "drp-date-picker__rolling-item--disabled";
@@ -2548,48 +2552,48 @@ function kt(e) {
2548
2552
  }
2549
2553
  return a;
2550
2554
  }
2551
- function sa(e, a, t) {
2555
+ function la(e, a, t) {
2552
2556
  if (!a) return;
2553
2557
  const n = [];
2554
2558
  for (let s = t.yearRange.min; s <= t.yearRange.max; s++)
2555
- n.push({ value: s, label: s, enabled: ma(e, s) });
2559
+ n.push({ value: s, label: s, enabled: ya(e, s) });
2556
2560
  const r = [];
2557
2561
  for (let s = t.monthRange.min - 1; s <= t.monthRange.max - 1; s++)
2558
- r.push({ value: s, label: e.monthNames[s], enabled: J(e, t.currentYear, s) });
2562
+ r.push({ value: s, label: e.monthNames[s], enabled: Q(e, t.currentYear, s) });
2559
2563
  const i = a.querySelector('[data-list="years"]');
2560
- i && (i.innerHTML = kt({
2564
+ i && (i.innerHTML = At({
2561
2565
  items: n,
2562
2566
  currentValue: t.currentYear,
2563
2567
  valueAttr: "data-year",
2564
2568
  extraAttrs: t.extraAttrs
2565
2569
  }));
2566
2570
  const o = a.querySelector('[data-list="months"]');
2567
- o && (o.innerHTML = kt({
2571
+ o && (o.innerHTML = At({
2568
2572
  items: r,
2569
2573
  currentValue: t.currentMonth,
2570
2574
  valueAttr: "data-month",
2571
2575
  extraAttrs: t.extraAttrs
2572
2576
  }));
2573
2577
  }
2574
- function da(e, a) {
2578
+ function ca(e, a) {
2575
2579
  const t = e.calendar.querySelector(`.drp-date-picker__month[data-month-index="${a}"]`);
2576
2580
  if (!t) return;
2577
2581
  const n = t.querySelector(".drp-date-picker__rolling-selector");
2578
2582
  n == null || n.classList.add("drp-date-picker__rolling-selector--visible");
2579
2583
  const r = e.monthDates[a];
2580
- sa(e, n, {
2581
- yearRange: na(e.options.rollingYearRange, r.getFullYear(), e),
2582
- monthRange: ra(e.options.rollingMonthRange),
2584
+ la(e, n, {
2585
+ yearRange: ia(e.options.rollingYearRange, r.getFullYear(), e),
2586
+ monthRange: oa(e.options.rollingMonthRange),
2583
2587
  currentYear: r.getFullYear(),
2584
2588
  currentMonth: r.getMonth(),
2585
2589
  extraAttrs: `data-month-index="${a}"`
2586
2590
  });
2587
2591
  }
2588
- function Xn(e) {
2592
+ function Qn(e) {
2589
2593
  if (!e.options.unifiedNavigation || !e.unifiedRollingSelector) return;
2590
2594
  e.unifiedRollingSelector.classList.add("drp-date-picker__unified-rolling-selector--visible");
2591
2595
  const a = e.options.unifiedNavigationAnchorIndex ?? 0, t = e.monthDates[a];
2592
- sa(e, e.unifiedRollingSelector, {
2596
+ la(e, e.unifiedRollingSelector, {
2593
2597
  yearRange: e.getEffectiveYearRange(),
2594
2598
  monthRange: e.getEffectiveMonthRange(),
2595
2599
  currentYear: t.getFullYear(),
@@ -2597,7 +2601,7 @@ function Xn(e) {
2597
2601
  extraAttrs: 'data-unified="true"'
2598
2602
  });
2599
2603
  }
2600
- function Jn(e) {
2604
+ function Zn(e) {
2601
2605
  if (e.options.selectionMode !== "range") return;
2602
2606
  const a = e.calendar.querySelector(".drp-date-picker__summary");
2603
2607
  if (a)
@@ -2647,7 +2651,7 @@ function Jn(e) {
2647
2651
  } else
2648
2652
  a.className = "drp-date-picker__summary drp-date-picker__summary--hidden", a.innerHTML = "";
2649
2653
  }
2650
- function la(e) {
2654
+ function pa(e) {
2651
2655
  if (e.options.selectionMode !== "range") return;
2652
2656
  const a = e.calendar.querySelector(".drp-date-picker__summary");
2653
2657
  if (a && e.dragPreviewStart && e.dragPreviewEnd) {
@@ -2696,7 +2700,36 @@ function la(e) {
2696
2700
  `;
2697
2701
  }
2698
2702
  }
2699
- function Qn(e) {
2703
+ function er(e) {
2704
+ if (e.calendar.querySelectorAll(
2705
+ ".drp-date-picker__day--hover-preview, .drp-date-picker__day--hover-preview-invalid"
2706
+ ).forEach((d) => {
2707
+ d.classList.remove(
2708
+ "drp-date-picker__day--hover-preview",
2709
+ "drp-date-picker__day--hover-preview-invalid"
2710
+ );
2711
+ }), !e.selectedStartDate || e.selectedEndDate || !e.hoverPreviewEnd || e.isDragging) return;
2712
+ let a = e.selectedStartDate, t = e.hoverPreviewEnd;
2713
+ t < a && ([a, t] = [t, a]);
2714
+ const n = e.options.disabledDatesHandling;
2715
+ let r = "drp-date-picker__day--hover-preview", i = !1;
2716
+ if (n === "prevent" && e.hasDisabledDatesInRange(a, t))
2717
+ r = "drp-date-picker__day--hover-preview-invalid";
2718
+ else if (n === "block" && e.hasDisabledDatesInRange(a, t)) {
2719
+ if (t = e.findLastEnabledBeforeGap(a, t), t < a) return;
2720
+ } else n === "split" && (i = !0);
2721
+ const o = e.selectedStartDate.getTime();
2722
+ e.calendar.querySelectorAll(".drp-date-picker__day").forEach((d) => {
2723
+ const l = d.dataset.date;
2724
+ if (!l) return;
2725
+ const [c, p, u] = l.split("-").map(Number), g = new Date(c, p - 1, u);
2726
+ if (g >= a && g <= t) {
2727
+ if (g.getTime() === o || i && d.classList.contains("drp-date-picker__day--disabled")) return;
2728
+ d.classList.add(r);
2729
+ }
2730
+ });
2731
+ }
2732
+ function tr(e) {
2700
2733
  if (e.calendar.querySelectorAll(".drp-date-picker__day--drag-preview, .drp-date-picker__day--drag-invalid").forEach((r) => {
2701
2734
  r.classList.remove("drp-date-picker__day--drag-preview", "drp-date-picker__day--drag-invalid");
2702
2735
  }), !e.dragPreviewStart || !e.dragPreviewEnd) return;
@@ -2706,9 +2739,9 @@ function Qn(e) {
2706
2739
  if (!i) return;
2707
2740
  const [o, s, d] = i.split("-").map(Number), l = new Date(o, s - 1, d);
2708
2741
  l >= e.dragPreviewStart && l <= e.dragPreviewEnd && (r.classList.add("drp-date-picker__day--drag-preview"), t && r.classList.add("drp-date-picker__day--drag-invalid"));
2709
- }), la(e);
2742
+ }), pa(e);
2710
2743
  }
2711
- const rt = {
2744
+ const st = {
2712
2745
  en: {
2713
2746
  today: "Today",
2714
2747
  clear: "Clear",
@@ -2750,21 +2783,21 @@ const rt = {
2750
2783
  nights: "noches"
2751
2784
  }
2752
2785
  };
2753
- function Ee(e) {
2786
+ function Ie(e) {
2754
2787
  if (e !== "auto")
2755
2788
  return e;
2756
2789
  if (typeof navigator < "u" && navigator.language) {
2757
2790
  const a = navigator.language.split("-")[0].toLowerCase();
2758
- return rt[a] ? a : "en";
2791
+ return st[a] ? a : "en";
2759
2792
  }
2760
2793
  return "en";
2761
2794
  }
2762
- function Rt(e, a) {
2763
- const t = Ee(e), n = rt[t] || rt.en;
2795
+ function Tt(e, a) {
2796
+ const t = Ie(e), n = st[t] || st.en;
2764
2797
  return a ? { ...n, ...a } : n;
2765
2798
  }
2766
- function At(e) {
2767
- const a = Ee(e);
2799
+ function Lt(e) {
2800
+ const a = Ie(e);
2768
2801
  try {
2769
2802
  const t = new Intl.DateTimeFormat(a, { weekday: "short" }), n = [];
2770
2803
  for (let r = 0; r < 7; r++) {
@@ -2773,11 +2806,11 @@ function At(e) {
2773
2806
  }
2774
2807
  return n;
2775
2808
  } catch (t) {
2776
- return Y.warn("getWeekdayNames() - Intl.DateTimeFormat failed, using English weekdays", t), ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"];
2809
+ return B.warn("getWeekdayNames() - Intl.DateTimeFormat failed, using English weekdays", t), ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"];
2777
2810
  }
2778
2811
  }
2779
- function Tt(e) {
2780
- const a = Ee(e);
2812
+ function $t(e) {
2813
+ const a = Ie(e);
2781
2814
  try {
2782
2815
  const t = new Intl.DateTimeFormat(a, { month: "long" }), n = [];
2783
2816
  for (let r = 0; r < 12; r++) {
@@ -2786,7 +2819,7 @@ function Tt(e) {
2786
2819
  }
2787
2820
  return n;
2788
2821
  } catch (t) {
2789
- return Y.warn("getMonthNames() - Intl.DateTimeFormat failed, using English months", t), [
2822
+ return B.warn("getMonthNames() - Intl.DateTimeFormat failed, using English months", t), [
2790
2823
  "January",
2791
2824
  "February",
2792
2825
  "March",
@@ -2802,7 +2835,7 @@ function Tt(e) {
2802
2835
  ];
2803
2836
  }
2804
2837
  }
2805
- class Zn {
2838
+ class ar {
2806
2839
  constructor(a, t, n = {}) {
2807
2840
  b(this, "element");
2808
2841
  b(this, "target");
@@ -2833,14 +2866,14 @@ class Zn {
2833
2866
  }
2834
2867
  show() {
2835
2868
  var a;
2836
- this.element.classList.add(this.opts.visibleClassName), (a = this.autoUpdateCleanup) == null || a.call(this), this.autoUpdateCleanup = Kt(this.target, this.element, () => {
2837
- bt(this.target, this.element, {
2869
+ this.element.classList.add(this.opts.visibleClassName), (a = this.autoUpdateCleanup) == null || a.call(this), this.autoUpdateCleanup = Xt(this.target, this.element, () => {
2870
+ Dt(this.target, this.element, {
2838
2871
  placement: this.opts.placement,
2839
2872
  strategy: "fixed",
2840
2873
  middleware: [
2841
- ht(this.opts.offsetDistance),
2842
- mt(),
2843
- ft({ padding: 8 })
2874
+ bt(this.opts.offsetDistance),
2875
+ vt(),
2876
+ yt({ padding: 8 })
2844
2877
  ]
2845
2878
  }).then(({ x: t, y: n }) => {
2846
2879
  Object.assign(this.element.style, {
@@ -2859,7 +2892,7 @@ class Zn {
2859
2892
  this.showTimer !== void 0 && clearTimeout(this.showTimer), this.hideTimer !== void 0 && clearTimeout(this.hideTimer), (a = this.autoUpdateCleanup) == null || a.call(this), this.target.removeEventListener("mouseenter", this.onEnter), this.target.removeEventListener("mouseleave", this.onLeave), this.element.remove();
2860
2893
  }
2861
2894
  }
2862
- function er() {
2895
+ function nr() {
2863
2896
  const e = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set();
2864
2897
  let t = null, n = !1, r = !1;
2865
2898
  const i = () => {
@@ -2884,7 +2917,7 @@ function er() {
2884
2917
  }
2885
2918
  };
2886
2919
  }
2887
- function tr() {
2920
+ function rr() {
2888
2921
  const e = {
2889
2922
  outsideClick: /* @__PURE__ */ new Set(),
2890
2923
  calendarClick: /* @__PURE__ */ new Set()
@@ -2908,13 +2941,13 @@ function tr() {
2908
2941
  i && (i = !1);
2909
2942
  }, 10);
2910
2943
  }, l = (c) => {
2911
- var x;
2944
+ var M;
2912
2945
  if (!a) return;
2913
2946
  if (i) {
2914
2947
  i = !1;
2915
2948
  return;
2916
2949
  }
2917
- const p = c, u = p.composedPath ? p.composedPath() : [], g = u[0] || p.target, m = u.includes(a), h = t && u.includes(t), v = n && u.includes(n), f = (x = g.closest) == null ? void 0 : x.call(g, "[data-calendar-button]");
2950
+ const p = c, u = p.composedPath ? p.composedPath() : [], g = u[0] || p.target, m = u.includes(a), h = t && u.includes(t), v = n && u.includes(n), f = (M = g.closest) == null ? void 0 : M.call(g, "[data-calendar-button]");
2918
2951
  !m && !h && !v && !f && o("outsideClick", {
2919
2952
  target: g,
2920
2953
  event: p,
@@ -2940,7 +2973,7 @@ function tr() {
2940
2973
  }
2941
2974
  };
2942
2975
  }
2943
- const ca = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(--base-font-family, inherit));--drp-spacing-xs: calc(.4 * var(--drp-rem));--drp-spacing-sm: calc(.8 * var(--drp-rem));--drp-spacing-md: calc(1.6 * var(--drp-rem));--drp-spacing-lg: calc(2.4 * var(--drp-rem));--drp-spacing-xl: calc(3.2 * var(--drp-rem));--drp-font-size-2xs: calc(var(--base-font-size-2xs, 1) * var(--drp-rem));--drp-font-size-xs: calc(var(--base-font-size-xs, 1.2) * var(--drp-rem));--drp-font-size-sm: calc(var(--base-font-size-sm, 1.4) * var(--drp-rem));--drp-font-size-base: calc(var(--base-font-size-base, 1.6) * var(--drp-rem));--drp-font-size-lg: calc(var(--base-font-size-lg, 1.8) * var(--drp-rem));--drp-font-size-xl: calc(var(--base-font-size-xl, 2) * var(--drp-rem));--drp-font-size-2xl: calc(var(--base-font-size-2xl, 2.4) * var(--drp-rem));--drp-font-weight-normal: var(--base-font-weight-normal, 400);--drp-font-weight-medium: var(--base-font-weight-medium, 500);--drp-font-weight-semibold: var(--base-font-weight-semibold, 600);--drp-line-height-tight: var(--base-line-height-tight, 1.25);--drp-line-height-normal: var(--base-line-height-normal, 1.5);--drp-line-height-relaxed: var(--base-line-height-relaxed, 1.75);--drp-dropdown-bg: var(--base-dropdown-bg, #ffffff);--drp-border-color: var(--base-border-color, #e5e7eb);--drp-border: var(--base-border, var(--drp-border-width-base) solid var(--drp-border-color));--drp-primary-bg: var(--base-main-bg, #f3f4f6);--drp-primary-bg-hover: var(--base-hover-bg, #e5e7eb);--drp-accent-color: var(--base-accent-color, #3b82f6);--drp-accent-color-hover: var(--base-accent-color-hover, #2563eb);--drp-text-primary: var(--base-text-color-1, #111827);--drp-text-secondary: var(--base-text-color-3, #6b7280);--drp-text-color-on-accent: var(--base-text-color-on-accent, #ffffff);--drp-button-accent-text-color: var(--drp-text-color-on-accent);--drp-tooltip-bg: var(--base-tooltip-bg, #111827);--drp-tooltip-text-color: var(--base-tooltip-text-color, #ffffff);--drp-loading-overlay-bg: rgba(255, 255, 255, .8);--drp-loading-spinner-size: 40px;--drp-loading-spinner-border-width: 4px;--drp-loading-spinner-color: var(--drp-border-color);--drp-loading-spinner-accent: var(--drp-accent-color);--drp-border-width-base: 1px;--drp-border-radius-sm: calc(var(--base-border-radius-sm, .4) * var(--drp-rem));--drp-border-radius-md: calc(var(--base-border-radius-md, .6) * var(--drp-rem));--drp-border-radius-lg: calc(var(--base-border-radius-lg, .8) * var(--drp-rem));--drp-border-radius: var(--drp-border-radius-md);--drp-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--drp-transition-fast: .15s;--drp-easing-snappy: cubic-bezier(.4, 0, .2, 1);--drp-z-index-dropdown: 9500;--drp-z-index-modal-backdrop: 9700;--drp-z-index-modal: 9800;--drp-z-index-tooltip: 9999;--drp-modal-gap: 16px;--drp-modal-backdrop-bg: rgba(0, 0, 0, .45);--drp-modal-transition: .15s ease-out;--drp-modal-width-xs: calc(100vw - 2 * var(--drp-modal-gap));--drp-modal-width-sm: calc(100vw - 2 * var(--drp-modal-gap));--drp-modal-width-md: 900px;--drp-modal-width-lg: 1100px;--drp-input-padding-h: calc(1.2 * var(--drp-rem));--drp-grid-columns: 3;--drp-grid-rows: 2;--drp-opacity-disabled: .6;--drp-opacity-other-month: .5;--drp-opacity-hover: .8;--drp-opacity-dragging: .7;--drp-input-bg: var(--base-input-bg, var(--drp-dropdown-bg));--drp-input-color: var(--base-input-color, var(--drp-text-primary));--drp-input-border: var(--base-input-border, var(--drp-border));--drp-input-border-hover: var(--base-input-border-hover, var(--drp-border-width-base) solid var(--drp-accent-color));--drp-input-border-focus: var(--base-input-border-focus, var(--drp-border-width-base) solid var(--drp-accent-color));--drp-input-placeholder-color: var(--base-input-placeholder-color, var(--drp-text-secondary));--drp-input-bg-disabled: var(--base-input-bg-disabled, var(--drp-primary-bg));--drp-input-focus-shadow-color: rgba(59, 130, 246, .1);--drp-input-focus-shadow-size: 3px;--drp-input-icon-opacity: .6;--drp-input-size-xs-font: var(--drp-font-size-xs);--drp-input-size-xs-padding-v: var(--drp-spacing-xs);--drp-input-size-xs-padding-h: calc(.8 * var(--drp-rem));--drp-input-size-xs-height: calc(var(--base-input-size-xs-height, 3.1) * var(--drp-rem));--drp-input-size-xs-icon-size: .75em;--drp-input-size-sm-font: calc(1.3 * var(--drp-rem));--drp-input-size-sm-padding-v: calc(.5 * var(--drp-rem));--drp-input-size-sm-padding-h: var(--drp-spacing-sm);--drp-input-size-sm-height: calc(var(--base-input-size-sm-height, 3.3) * var(--drp-rem));--drp-input-size-sm-icon-size: .875em;--drp-input-size-md-font: calc(1.4 * var(--drp-rem));--drp-input-size-md-padding-v: var(--drp-spacing-sm);--drp-input-size-md-padding-h: calc(1.2 * var(--drp-rem));--drp-input-size-md-height: calc(var(--base-input-size-md-height, 3.5) * var(--drp-rem));--drp-input-size-md-icon-size: 1em;--drp-input-size-lg-font: calc(1.6 * var(--drp-rem));--drp-input-size-lg-padding-v: calc(1 * var(--drp-rem));--drp-input-size-lg-padding-h: calc(1.4 * var(--drp-rem));--drp-input-size-lg-height: calc(var(--base-input-size-lg-height, 3.8) * var(--drp-rem));--drp-input-size-lg-icon-size: 1.125em;--drp-input-size-xl-font: calc(1.8 * var(--drp-rem));--drp-input-size-xl-padding-v: calc(1.2 * var(--drp-rem));--drp-input-size-xl-padding-h: calc(1.6 * var(--drp-rem));--drp-input-size-xl-height: calc(var(--base-input-size-xl-height, 4.1) * var(--drp-rem));--drp-input-size-xl-icon-size: 1.25em;--drp-header-text-color: var(--drp-text-primary);--drp-header-bg-hover: var(--drp-primary-bg);--drp-header-bg-active: var(--drp-primary-bg-hover);--drp-nav-text-color: var(--drp-text-primary);--drp-nav-border-color: var(--drp-border-color);--drp-nav-border: var(--drp-border-width-base) solid var(--drp-nav-border-color);--drp-nav-bg-hover: var(--drp-primary-bg);--drp-nav-bg-active: var(--drp-primary-bg-hover);--drp-nav-border-hover: var(--drp-accent-color);--drp-nav-border-hover-full: var(--drp-border-width-base) solid var(--drp-nav-border-hover);--drp-nav-size: calc(3.2 * var(--drp-rem));--drp-rolling-bg: var(--drp-primary-bg);--drp-rolling-border-color: var(--drp-border-color);--drp-rolling-border: var(--drp-border-width-base) solid var(--drp-rolling-border-color);--drp-rolling-scrollbar-width: 6px;--drp-rolling-scrollbar-thumb: var(--drp-border-color);--drp-rolling-scrollbar-thumb-hover: var(--drp-accent-color);--drp-rolling-item-bg-hover: var(--drp-primary-bg);--drp-rolling-item-color: var(--drp-text-primary);--drp-rolling-item-bg-selected: var(--drp-accent-color);--drp-rolling-item-color-selected: var(--drp-text-color-on-accent);--drp-rolling-item-bg-selected-hover: var(--drp-accent-color-hover);--drp-rolling-item-justify-content: center;--drp-rolling-item-min-height: calc(3.2 * var(--drp-rem));--drp-rolling-item-padding-v: var(--drp-spacing-xs);--drp-rolling-item-padding-h: var(--drp-spacing-md);--drp-rolling-item-font-size: var(--drp-font-size-sm);--drp-rolling-item-font-weight-selected: var(--drp-font-weight-semibold);--drp-weekday-color: var(--drp-text-secondary);--drp-day-text-color: var(--drp-text-primary);--drp-day-bg-hover: var(--drp-primary-bg);--drp-day-border-hover: var(--drp-accent-color);--drp-day-today-border: var(--drp-accent-color);--drp-day-selected-bg: var(--drp-accent-color);--drp-day-selected-color: var(--drp-text-color-on-accent);--drp-day-selected-bg-hover: var(--drp-accent-color-hover);--drp-day-selected-color-hover: var(--drp-day-selected-color);--drp-day-focused-outline: var(--drp-accent-color);--drp-day-disabled-color: var(--drp-text-secondary);--drp-day-disabled-bg: var(--base-disabled-bg, transparent);--drp-day-other-month-color: var(--drp-text-secondary);--drp-day-range-bg: var(--drp-accent-color);--drp-day-range-bg-hover: var(--drp-accent-color-hover);--drp-day-range-color: var(--drp-text-color-on-accent);--drp-day-range-color-hover: var(--drp-day-range-color);--drp-day-border-width: 2px;--drp-day-border-color: transparent;--drp-day-border: var(--drp-day-border-width) solid var(--drp-day-border-color);--drp-day-focused-outline-width: 2px;--drp-day-focused-outline-offset: 2px;--drp-day-in-range-bg-opacity: .15;--drp-day-in-range-hover-bg-opacity: .25;--drp-day-drag-preview-bg-opacity: .3;--drp-day-drag-preview-edge-bg-opacity: .6;--drp-day-invalid-range-bg: var(--drp-message-error-border);--drp-day-invalid-range-color: var(--drp-text-color-on-accent);--drp-day-disabled-pattern-opacity: .1;--drp-day-dragging-scale: 1.1;--drp-day-drag-preview-border-style: dashed;--drp-day-drag-border: var(--drp-day-border-width) var(--drp-day-drag-preview-border-style) var(--drp-day-range-bg);--drp-day-drag-invalid-bg: #ef4444;--drp-day-drag-invalid-bg-opacity: .2;--drp-holiday-color: #ef4444;--drp-holiday-bg-opacity: .1;--drp-holiday-hover-bg-opacity: .2;--drp-event-color: #10b981;--drp-event-bg-opacity: .1;--drp-event-hover-bg-opacity: .2;--drp-summary-text-color: var(--drp-text-secondary);--drp-summary-border-color: var(--drp-border-color);--drp-summary-border: var(--drp-border-width-base) solid var(--drp-summary-border-color);--drp-summary-count-color: var(--drp-accent-color);--drp-button-border-color: var(--drp-border-color);--drp-button-border: var(--drp-border-width-base) solid var(--drp-button-border-color);--drp-button-bg: transparent;--drp-button-bg-hover: var(--drp-primary-bg);--drp-button-color: var(--drp-text-primary);--drp-button-border-hover: var(--drp-accent-color);--drp-button-border-hover-full: var(--drp-border-width-base) solid var(--drp-button-border-hover);--drp-button-today-color: var(--drp-accent-color);--drp-button-clear-color: var(--drp-text-secondary);--drp-button-cancel-color: var(--drp-text-secondary);--drp-button-apply-bg: var(--drp-accent-color);--drp-button-apply-color: var(--drp-button-accent-text-color);--drp-button-apply-border: var(--drp-accent-color);--drp-button-apply-bg-hover: var(--drp-accent-color-hover);--drp-badge-font-size: var(--drp-font-size-2xs);--drp-badge-padding-v: 1px;--drp-badge-padding-h: 2px;--drp-badge-border-radius: 2px;--drp-badge-max-height: var(--drp-font-size-base);--drp-badge-row-height: var(--drp-badge-max-height);--drp-badge-number-bg: var(--drp-accent-color);--drp-badge-number-color: var(--drp-text-color-on-accent);--drp-badge-count-bg: #ef4444;--drp-badge-count-color: #ffffff;--drp-badge-text-bg: var(--drp-text-secondary);--drp-badge-text-color: #ffffff;--drp-unified-range-text-color: var(--drp-text-primary);--drp-unified-range-bg-hover: var(--drp-primary-bg);--drp-unified-range-bg-active: var(--drp-primary-bg-hover);--drp-unified-month-color: var(--drp-text-secondary);--drp-unified-rolling-disabled-color: var(--drp-text-secondary);--drp-tooltip-line-height: 1.4;--drp-tooltip-max-width: 200px;--drp-tooltip-arrow-size: 8px;--drp-message-error-bg: #fef2f2;--drp-message-error-color: #991b1b;--drp-message-error-border: #fecaca;--drp-message-warning-bg: #fffbeb;--drp-message-warning-color: #92400e;--drp-message-warning-border: #fde68a;--drp-message-info-bg: #eff6ff;--drp-message-info-color: #1e40af;--drp-message-info-border: #bfdbfe;--drp-message-success-bg: #f0fdf4;--drp-message-success-color: #166534;--drp-message-success-border: #bbf7d0;--drp-month-min-width: 280px;--drp-month-min-width-inline: 250px;--drp-calendar-max-width: calc(100vw - 2rem) }.drp-input{width:100%;font-family:var(--drp-font-family, var(--base-font-family, inherit));font-size:var(--drp-input-size-md-font);line-height:var(--drp-line-height-normal);color:var(--drp-input-color);background-color:var(--drp-input-bg);border:var(--drp-input-border);border-radius:var(--drp-border-radius);padding:var(--drp-input-size-md-padding-v) var(--drp-input-size-md-padding-h);padding-right:calc(var(--drp-input-size-md-padding-h) * 2.5);height:var(--drp-input-size-md-height);box-sizing:border-box;transition:border-color var(--drp-transition-fast) var(--drp-easing-snappy),box-shadow var(--drp-transition-fast) var(--drp-easing-snappy)}.drp-input::placeholder{color:var(--drp-input-placeholder-color);opacity:.6}.drp-input:hover:not(:disabled){border:var(--drp-input-border-hover)}.drp-input:focus{outline:none;border:var(--drp-input-border-focus);box-shadow:0 0 0 var(--drp-input-focus-shadow-size) var(--drp-input-focus-shadow-color)}.drp-input:disabled{opacity:var(--drp-opacity-disabled);cursor:not-allowed;background-color:var(--drp-input-bg-disabled)}.drp-input.drp-input--xs{font-size:var(--drp-input-size-xs-font);padding:var(--drp-input-size-xs-padding-v) var(--drp-input-size-xs-padding-h);padding-right:calc(var(--drp-input-size-xs-padding-h) * 2.5);height:var(--drp-input-size-xs-height)}.drp-input.drp-input--sm{font-size:var(--drp-input-size-sm-font);padding:var(--drp-input-size-sm-padding-v) var(--drp-input-size-sm-padding-h);padding-right:calc(var(--drp-input-size-sm-padding-h) * 2.5);height:var(--drp-input-size-sm-height)}.drp-input.drp-input--lg{font-size:var(--drp-input-size-lg-font);padding:var(--drp-input-size-lg-padding-v) var(--drp-input-size-lg-padding-h);padding-right:calc(var(--drp-input-size-lg-padding-h) * 2.5);height:var(--drp-input-size-lg-height)}.drp-input.drp-input--xl{font-size:var(--drp-input-size-xl-font);padding:var(--drp-input-size-xl-padding-v) var(--drp-input-size-xl-padding-h);padding-right:calc(var(--drp-input-size-xl-padding-h) * 2.5);height:var(--drp-input-size-xl-height)}.drp-date-picker-input{position:relative;cursor:pointer;display:inline-block;width:100%}.drp-date-picker-input:after{content:"📅";position:absolute;right:var(--drp-input-size-md-padding-h);top:50%;transform:translateY(-50%);pointer-events:none;opacity:var(--drp-input-icon-opacity);font-size:var(--drp-input-size-md-icon-size)}.drp-date-picker-input.drp-date-picker-input--xs:after{right:var(--drp-input-size-xs-padding-h);font-size:var(--drp-input-size-xs-icon-size)}.drp-date-picker-input.drp-date-picker-input--sm:after{right:var(--drp-input-size-sm-padding-h);font-size:var(--drp-input-size-sm-icon-size)}.drp-date-picker-input.drp-date-picker-input--lg:after{right:var(--drp-input-size-lg-padding-h);font-size:var(--drp-input-size-lg-icon-size)}.drp-date-picker-input.drp-date-picker-input--xl:after{right:var(--drp-input-size-xl-padding-h);font-size:var(--drp-input-size-xl-icon-size)}.drp-date-picker{position:absolute;z-index:var(--drp-z-index-dropdown);font-family:var(--drp-font-family, var(--base-font-family, inherit));background:var(--drp-dropdown-bg);border:var(--drp-border);border-radius:var(--drp-border-radius-lg);box-shadow:var(--drp-shadow-xl);padding:var(--drp-spacing-md);min-width:var(--drp-month-min-width);max-width:var(--drp-calendar-max-width);box-sizing:border-box;-webkit-user-select:none;user-select:none}.drp-date-picker:not(.drp-date-picker--inline){display:flex;flex-direction:column;overflow:hidden}.drp-date-picker:not(.drp-date-picker--inline)>.drp-date-picker__months,.drp-date-picker:not(.drp-date-picker--inline)>.drp-date-picker__months--grid{flex:1 1 auto;min-height:0;overflow-y:auto}.drp-date-picker:not(.drp-date-picker--inline)>.drp-date-picker__unified-header,.drp-date-picker:not(.drp-date-picker--inline)>.drp-date-picker__summary,.drp-date-picker:not(.drp-date-picker--inline)>.drp-date-picker__actions{flex-shrink:0}.drp-date-picker:not(.drp-date-picker--inline) .drp-date-picker__month .drp-date-picker__header{position:sticky;top:0;background:var(--drp-dropdown-bg);z-index:2}.drp-date-picker:not(.drp-date-picker--visible){display:none}.drp-date-picker--inline{position:relative!important;display:block!important;z-index:auto;min-width:0;max-width:100%;width:fit-content;box-sizing:border-box}.drp-date-picker__months{display:flex;gap:var(--drp-spacing-lg)}.drp-date-picker--inline .drp-date-picker__months{flex-wrap:wrap}.drp-date-picker__months--grid{display:grid;grid-template-columns:repeat(var(--drp-grid-columns, 3),minmax(0,1fr));grid-template-rows:repeat(var(--drp-grid-rows, 2),auto);gap:var(--drp-spacing-lg);width:100%}@media (max-width: 1200px){.drp-date-picker__months--grid{grid-template-columns:repeat(min(var(--drp-grid-columns, 3),3),minmax(0,1fr))}}@media (max-width: 768px){.drp-date-picker__months--grid{grid-template-columns:repeat(min(var(--drp-grid-columns, 3),2),minmax(0,1fr))}}@media (max-width: 480px){.drp-date-picker__months--grid{grid-template-columns:minmax(0,1fr)}}.drp-date-picker__month{flex:1;min-width:var(--drp-month-min-width);display:flex;flex-direction:column}.drp-date-picker--inline .drp-date-picker__month{min-width:var(--drp-month-min-width-inline)}.drp-date-picker__months--grid .drp-date-picker__month{min-width:0;width:100%}.drp-date-picker__calendar-container{position:relative;flex:1;display:flex;flex-direction:column;min-height:0}.drp-date-picker__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--drp-spacing-md);gap:var(--drp-spacing-sm)}.drp-date-picker__header--static{justify-content:center}.drp-date-picker__header--static .drp-date-picker__month-year{cursor:default}.drp-date-picker__header--static .drp-date-picker__month-year:hover{background-color:transparent}.drp-date-picker__month-year{flex:1;text-align:center;font-weight:var(--drp-font-weight-semibold);font-size:var(--drp-font-size-base);color:var(--drp-header-text-color);padding:var(--drp-spacing-sm) var(--drp-spacing-md);border-radius:var(--drp-border-radius);cursor:pointer}.drp-date-picker__month-year:hover{background-color:var(--drp-header-bg-hover)}.drp-date-picker__month-year:active{background-color:var(--drp-header-bg-active)}.drp-date-picker__nav{width:var(--drp-nav-size);height:var(--drp-nav-size);display:flex;align-items:center;justify-content:center;border:var(--drp-nav-border);border-radius:var(--drp-border-radius);background:transparent;cursor:pointer;font-size:var(--drp-font-size-lg);color:var(--drp-nav-text-color)}.drp-date-picker__nav:hover{background-color:var(--drp-nav-bg-hover);border:var(--drp-nav-border-hover-full)}.drp-date-picker__nav:active{background-color:var(--drp-nav-bg-active)}.drp-date-picker__nav--disabled,.drp-date-picker__nav[disabled]{opacity:var(--drp-opacity-disabled);cursor:not-allowed;pointer-events:none}.drp-date-picker__nav--disabled:hover,.drp-date-picker__nav[disabled]:hover{background-color:transparent;border:var(--drp-nav-border)}.drp-date-picker__nav--prev:before{content:"‹"}.drp-date-picker__nav--next:before{content:"›"}.drp-date-picker__rolling-selector{position:absolute;top:0;right:0;bottom:0;left:0;display:none;z-index:10;gap:var(--drp-spacing-xs)}.drp-date-picker__rolling-selector.drp-date-picker__rolling-selector--visible{display:flex}.drp-date-picker__rolling-selector.drp-date-picker__rolling-selector--visible~.drp-date-picker__weekdays,.drp-date-picker__rolling-selector.drp-date-picker__rolling-selector--visible~.drp-date-picker__days{visibility:hidden}.drp-date-picker__rolling-list{flex:1;min-width:0;height:100%;overflow-y:auto;border:var(--drp-rolling-border);border-radius:var(--drp-border-radius-lg);display:flex;flex-direction:column;scroll-behavior:smooth}.drp-date-picker__rolling-list::-webkit-scrollbar{width:var(--drp-rolling-scrollbar-width)}.drp-date-picker__rolling-list::-webkit-scrollbar-track{background:var(--drp-rolling-bg)}.drp-date-picker__rolling-list::-webkit-scrollbar-thumb{background:var(--drp-rolling-scrollbar-thumb);border-radius:3px}.drp-date-picker__rolling-list::-webkit-scrollbar-thumb:hover{background:var(--drp-rolling-scrollbar-thumb-hover)}.drp-date-picker__rolling-item{padding:var(--drp-rolling-item-padding-v) var(--drp-rolling-item-padding-h);cursor:pointer;font-size:var(--drp-rolling-item-font-size);color:var(--drp-rolling-item-color);min-height:var(--drp-rolling-item-min-height);flex-shrink:0;display:flex;align-items:center;justify-content:var(--drp-rolling-item-justify-content)}.drp-date-picker__rolling-item:hover{background-color:var(--drp-rolling-item-bg-hover)}.drp-date-picker__rolling-item--selected{background-color:var(--drp-rolling-item-bg-selected);color:var(--drp-rolling-item-color-selected);font-weight:var(--drp-rolling-item-font-weight-selected)}.drp-date-picker__rolling-item--selected:hover{background-color:var(--drp-rolling-item-bg-selected-hover)}.drp-date-picker__rolling-item-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;min-width:0}.drp-date-picker__unified-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--drp-spacing-lg);gap:var(--drp-spacing-sm);padding:0 var(--drp-spacing-sm)}.drp-date-picker__unified-range{flex:1;text-align:center;font-weight:var(--drp-font-weight-semibold);font-size:var(--drp-font-size-lg);color:var(--drp-unified-range-text-color);padding:var(--drp-spacing-sm) var(--drp-spacing-md);border-radius:var(--drp-border-radius);cursor:pointer}.drp-date-picker__unified-range:hover{background-color:var(--drp-unified-range-bg-hover)}.drp-date-picker__unified-range:active{background-color:var(--drp-unified-range-bg-active)}.drp-date-picker__unified-range--static{cursor:default!important}.drp-date-picker__unified-range--static:hover,.drp-date-picker__unified-range--static:active{background-color:transparent}.drp-date-picker__unified-rolling-selector{position:absolute;top:calc(var(--drp-spacing-lg) + var(--drp-spacing-lg) * 2);left:50%;transform:translate(-50%);width:min(90%,450px);height:350px;max-height:350px;display:none;z-index:100;background:var(--drp-dropdown-bg);gap:var(--drp-spacing-xs)}.drp-date-picker__unified-rolling-selector--visible{display:flex}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-list{flex:1;min-width:0;height:100%;overflow-y:auto;border:var(--drp-rolling-border);border-radius:var(--drp-border-radius-lg);display:flex;flex-direction:column;scroll-behavior:smooth}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-list::-webkit-scrollbar{width:var(--drp-rolling-scrollbar-width)}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-list::-webkit-scrollbar-track{background:var(--drp-rolling-bg)}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-list::-webkit-scrollbar-thumb{background:var(--drp-rolling-scrollbar-thumb);border-radius:3px}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-list::-webkit-scrollbar-thumb:hover{background:var(--drp-rolling-scrollbar-thumb-hover)}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-item{padding:var(--drp-rolling-item-padding-v) var(--drp-rolling-item-padding-h);cursor:pointer;font-size:var(--drp-rolling-item-font-size);min-height:var(--drp-rolling-item-min-height);flex-shrink:0;display:flex;align-items:center;justify-content:var(--drp-rolling-item-justify-content)}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-item:hover{background-color:var(--drp-rolling-item-bg-hover)}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-item--selected{background-color:var(--drp-rolling-item-bg-selected);color:var(--drp-rolling-item-color-selected);font-weight:var(--drp-rolling-item-font-weight-selected)}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-item--selected:hover{background-color:var(--drp-rolling-item-bg-selected-hover)}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-item--disabled{color:var(--drp-unified-rolling-disabled-color);opacity:.4;cursor:not-allowed}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-item-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;min-width:0}.drp-date-picker--unified-nav .drp-date-picker__month .drp-date-picker__header .drp-date-picker__nav{display:none}.drp-date-picker--unified-nav .drp-date-picker__month .drp-date-picker__header .drp-date-picker__month-year{cursor:default;font-size:var(--drp-font-size-base);font-weight:var(--drp-font-weight-normal);color:var(--drp-unified-month-color)}.drp-date-picker--unified-nav .drp-date-picker__month .drp-date-picker__header .drp-date-picker__month-year:hover{background-color:transparent}.drp-date-picker--unified-nav .drp-date-picker__month .drp-date-picker__rolling-selector{display:none!important}.drp-date-picker__weekdays{display:grid;grid-template-columns:repeat(7,1fr);gap:var(--drp-spacing-xs);margin-bottom:var(--drp-spacing-sm)}.drp-date-picker__weekday{text-align:center;font-size:var(--drp-font-size-xs);font-weight:var(--drp-font-weight-semibold);color:var(--drp-weekday-color);padding:var(--drp-spacing-xs);text-transform:uppercase}.drp-date-picker__days{display:flex;flex-direction:column;gap:var(--drp-spacing-xs);margin-bottom:var(--drp-spacing-md)}.drp-date-picker__date-row{display:grid;grid-template-columns:repeat(7,1fr);gap:var(--drp-spacing-xs)}.drp-date-picker__day{aspect-ratio:1;display:flex;align-items:center;justify-content:center;font-size:var(--drp-font-size-sm);color:var(--drp-day-text-color);border-radius:var(--drp-border-radius-sm);cursor:pointer;border:var(--drp-day-border);position:relative}.drp-date-picker__day:hover:not(.drp-date-picker__day--disabled):not(.drp-date-picker__day--other-month){background-color:var(--drp-day-bg-hover);border-color:var(--drp-day-border-hover)}.drp-date-picker__day--today{border-color:var(--drp-day-today-border);font-weight:var(--drp-font-weight-semibold)}.drp-date-picker__day--selected{background-color:var(--drp-day-selected-bg);color:var(--drp-day-selected-color);font-weight:var(--drp-font-weight-semibold)}.drp-date-picker__day--selected:hover:not(.drp-date-picker__day--disabled):not(.drp-date-picker__day--other-month){background-color:var(--drp-day-selected-bg-hover);color:var(--drp-day-selected-color-hover)}.drp-date-picker__day--focused{outline:var(--drp-day-focused-outline-width) solid var(--drp-day-focused-outline);outline-offset:var(--drp-day-focused-outline-offset)}.drp-date-picker__day--disabled{color:var(--drp-day-disabled-color);opacity:var(--drp-opacity-disabled);cursor:not-allowed;position:relative;background-color:var(--drp-day-disabled-bg)}.drp-date-picker__day--disabled:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background-image:repeating-linear-gradient(45deg,rgba(0,0,0,var(--drp-day-disabled-pattern-opacity)) 0px,rgba(0,0,0,var(--drp-day-disabled-pattern-opacity)) 1px,transparent 1px,transparent 6px);border-radius:var(--drp-border-radius-sm);pointer-events:none}.drp-date-picker__day--disabled:hover{background-color:transparent;border-color:transparent}.drp-date-picker__day--disabled.drp-date-picker__day--in-range{background-color:color-mix(in srgb,var(--drp-day-range-bg) calc(var(--drp-day-in-range-bg-opacity) * 100%),transparent)}.drp-date-picker__day--other-month{color:var(--drp-day-other-month-color);opacity:var(--drp-opacity-other-month)}.drp-date-picker__day--other-month.drp-date-picker__day--range-start,.drp-date-picker__day--other-month.drp-date-picker__day--range-end,.drp-date-picker__day--other-month.drp-date-picker__day--in-range,.drp-date-picker__day--other-month.drp-date-picker__day--drag-preview{opacity:1}.drp-date-picker__day--range-start,.drp-date-picker__day--range-end{background-color:var(--drp-day-range-bg);color:var(--drp-day-range-color);font-weight:var(--drp-font-weight-semibold);cursor:grab;-webkit-user-select:none;user-select:none}.drp-date-picker__day--range-start:hover:not(.drp-date-picker__day--disabled):not(.drp-date-picker__day--other-month),.drp-date-picker__day--range-end:hover:not(.drp-date-picker__day--disabled):not(.drp-date-picker__day--other-month){background-color:var(--drp-day-range-bg-hover);color:var(--drp-day-range-color-hover)}.drp-date-picker__day--range-start:active,.drp-date-picker__day--range-end:active{cursor:grabbing}.drp-date-picker__day--in-range{background-color:color-mix(in srgb,var(--drp-day-range-bg) calc(var(--drp-day-in-range-bg-opacity) * 100%),transparent)}.drp-date-picker__day--in-range:hover:not(.drp-date-picker__day--disabled):not(.drp-date-picker__day--other-month){background-color:color-mix(in srgb,var(--drp-day-range-bg) calc(var(--drp-day-in-range-hover-bg-opacity) * 100%),transparent)}.drp-date-picker__day--dragging{cursor:grabbing!important;opacity:var(--drp-opacity-dragging);transform:scale(var(--drp-day-dragging-scale));transition:transform var(--drp-transition-fast) var(--drp-easing-snappy)}.drp-date-picker__day--drag-preview{background-color:color-mix(in srgb,var(--drp-day-range-bg) calc(var(--drp-day-drag-preview-bg-opacity) * 100%),transparent);border:var(--drp-day-drag-border)}.drp-date-picker__day--drag-preview.drp-date-picker__day--range-start,.drp-date-picker__day--drag-preview.drp-date-picker__day--range-end{background-color:color-mix(in srgb,var(--drp-day-range-bg) calc(var(--drp-day-drag-preview-edge-bg-opacity) * 100%),transparent);color:var(--drp-day-range-color)}.drp-date-picker__day--drag-invalid{background-color:color-mix(in srgb,var(--drp-day-drag-invalid-bg) calc(var(--drp-day-drag-invalid-bg-opacity) * 100%),transparent)!important;border-color:var(--drp-day-drag-invalid-bg)!important;border-style:dashed!important}.drp-date-picker__day--invalid-range{background-color:color-mix(in srgb,var(--drp-message-error-border) 20%,transparent)}.drp-date-picker__day--invalid-range-start,.drp-date-picker__day--invalid-range-end{background-color:var(--drp-day-invalid-range-bg);color:var(--drp-day-invalid-range-color);font-weight:var(--drp-font-weight-semibold)}.drp-date-picker__day.holiday{background-color:color-mix(in srgb,var(--drp-holiday-color) calc(var(--drp-holiday-bg-opacity) * 100%),transparent)}.drp-date-picker__day.holiday:hover:not(.drp-date-picker__day--disabled){background-color:color-mix(in srgb,var(--drp-holiday-color) calc(var(--drp-holiday-hover-bg-opacity) * 100%),transparent)}.drp-date-picker__day.event{background-color:color-mix(in srgb,var(--drp-event-color) calc(var(--drp-event-bg-opacity) * 100%),transparent)}.drp-date-picker__day.event:hover:not(.drp-date-picker__day--disabled){background-color:color-mix(in srgb,var(--drp-event-color) calc(var(--drp-event-hover-bg-opacity) * 100%),transparent)}.drp-date-picker__rolling-item--disabled{color:var(--drp-unified-rolling-disabled-color);opacity:.4;cursor:not-allowed;pointer-events:none;text-decoration:line-through}.drp-date-picker__rolling-item--disabled:hover{background-color:transparent}.drp-date-picker__badge-row{display:grid;grid-template-columns:repeat(7,1fr);gap:var(--drp-spacing-xs);max-height:var(--drp-badge-row-height);min-height:var(--drp-badge-row-height)}.drp-date-picker__badge-cell{display:flex;align-items:center;justify-content:center;font-size:var(--drp-font-size-2xs);padding:var(--drp-badge-padding-v) var(--drp-badge-padding-h);border-radius:var(--drp-badge-border-radius);cursor:pointer;max-height:var(--drp-badge-row-height)}.drp-date-picker__badge-cell:empty{visibility:hidden}.drp-date-picker__badge-cell:hover:not(:empty){transform:scale(1.05)}.drp-date-picker__badge-cell.badge-number{background-color:var(--drp-badge-number-bg);color:var(--drp-badge-number-color);font-size:calc(1.12 * var(--drp-rem));font-weight:600}.drp-date-picker__badge-cell.badge-count{background-color:var(--drp-badge-count-bg);color:var(--drp-badge-count-color);font-size:calc(1.12 * var(--drp-rem));font-weight:700}.drp-date-picker__badge-cell.badge-text{background-color:var(--drp-badge-text-bg);color:var(--drp-badge-text-color);font-size:calc(1.04 * var(--drp-rem));font-weight:700;text-transform:uppercase}.drp-date-picker__summary{text-align:center;padding:0;margin:0;margin-bottom:var(--drp-spacing-sm);border-top:var(--drp-summary-border);font-size:var(--drp-font-size-sm);color:var(--drp-summary-text-color)}.drp-date-picker__summary--visible{display:block}.drp-date-picker__summary--hidden{display:none}.drp-date-picker__summary-count{font-weight:var(--drp-font-weight-semibold);color:var(--drp-summary-count-color);font-size:var(--drp-font-size-base)}.drp-date-picker__actions{display:flex;gap:var(--drp-spacing-sm);justify-content:space-between;padding-top:var(--drp-spacing-sm);border-top:var(--drp-summary-border)}.drp-date-picker__button{flex:1;padding:var(--drp-spacing-sm) var(--drp-spacing-md);border:var(--drp-button-border);border-radius:var(--drp-border-radius);background:var(--drp-button-bg);color:var(--drp-button-color);cursor:pointer;font-family:inherit;font-size:var(--drp-font-size-sm);font-weight:var(--drp-font-weight-medium)}.drp-date-picker__button:hover{background-color:var(--drp-button-bg-hover);border:var(--drp-button-border-hover-full)}.drp-date-picker__button:disabled,.drp-date-picker__button[disabled]{opacity:var(--drp-opacity-disabled);cursor:not-allowed;pointer-events:none}.drp-date-picker__button:disabled:hover,.drp-date-picker__button[disabled]:hover{background-color:var(--drp-button-bg);border:var(--drp-button-border)}.drp-date-picker__button--today{color:var(--drp-button-today-color)}.drp-date-picker__button--clear{color:var(--drp-button-clear-color)}.drp-date-picker__button--apply{background-color:var(--drp-button-apply-bg);color:var(--drp-button-apply-color);border-color:var(--drp-button-apply-border)}.drp-date-picker__button--apply:hover{background-color:var(--drp-button-apply-bg-hover)}.drp-date-picker__button--cancel{color:var(--drp-button-cancel-color)}.drp-date-picker__tooltip{position:absolute;z-index:var(--drp-z-index-tooltip);background-color:var(--drp-tooltip-bg);color:var(--drp-tooltip-text-color);padding:var(--drp-spacing-xs) var(--drp-spacing-sm);border-radius:var(--drp-border-radius-sm);font-size:var(--drp-font-size-xs);line-height:var(--drp-tooltip-line-height);max-width:var(--drp-tooltip-max-width);word-wrap:break-word;pointer-events:none;opacity:0;transition:opacity var(--drp-transition-fast) var(--drp-easing-snappy)}.drp-date-picker__tooltip--visible{opacity:1}.drp-date-picker__tooltip-arrow{position:absolute;background-color:var(--drp-tooltip-bg);width:var(--drp-tooltip-arrow-size);height:var(--drp-tooltip-arrow-size);transform:rotate(45deg)}.drp-date-picker__loading-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background-color:var(--drp-loading-overlay-bg);display:flex;align-items:center;justify-content:center;z-index:var(--drp-z-index-dropdown);border-radius:var(--drp-border-radius-lg)}.drp-date-picker__loading-spinner{width:var(--drp-loading-spinner-size);height:var(--drp-loading-spinner-size);border:var(--drp-loading-spinner-border-width) solid var(--drp-loading-spinner-color);border-top-color:var(--drp-loading-spinner-accent);border-radius:50%;animation:drp-spin .8s linear infinite}@keyframes drp-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.drp-date-picker__message{display:none;align-items:center;gap:var(--drp-spacing-sm);padding:var(--drp-spacing-sm) var(--drp-spacing-md);margin:0;margin-bottom:var(--drp-spacing-sm);border-radius:var(--drp-border-radius);font-size:var(--drp-font-size-sm);line-height:var(--drp-line-height-normal)}.drp-date-picker__message--visible{display:flex}.drp-date-picker__message-text{flex:1}.drp-date-picker__message-close{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:calc(2 * var(--drp-rem));height:calc(2 * var(--drp-rem));padding:0;border:none;background:transparent;font-size:var(--drp-font-size-lg);line-height:1;cursor:pointer;opacity:.6;transition:opacity var(--drp-transition-fast) var(--drp-easing-snappy)}.drp-date-picker__message-close:hover{opacity:1}.drp-date-picker__message--error{background-color:var(--drp-message-error-bg);color:var(--drp-message-error-color);border:1px solid var(--drp-message-error-border)}.drp-date-picker__message--error .drp-date-picker__message-close{color:var(--drp-message-error-color)}.drp-date-picker__message--warning{background-color:var(--drp-message-warning-bg);color:var(--drp-message-warning-color);border:1px solid var(--drp-message-warning-border)}.drp-date-picker__message--warning .drp-date-picker__message-close{color:var(--drp-message-warning-color)}.drp-date-picker__message--info{background-color:var(--drp-message-info-bg);color:var(--drp-message-info-color);border:1px solid var(--drp-message-info-border)}.drp-date-picker__message--info .drp-date-picker__message-close{color:var(--drp-message-info-color)}.drp-date-picker__message--success{background-color:var(--drp-message-success-bg);color:var(--drp-message-success-color);border:1px solid var(--drp-message-success-border)}.drp-date-picker__message--success .drp-date-picker__message-close{color:var(--drp-message-success-color)}.drp-date-picker__message--custom{background:transparent;border:none;padding:0;margin:0;margin-bottom:var(--drp-spacing-sm)}.drp-date-picker__message--custom .drp-date-picker__message-close{display:none}.drp-date-picker--modal{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);max-width:calc(100vw - 2 * var(--drp-modal-gap));max-height:calc(100vh - 2 * var(--drp-modal-gap));width:auto;z-index:var(--drp-z-index-modal);container-type:inline-size;container-name:drp-modal}.drp-date-picker--modal .drp-date-picker__months--grid{width:auto;grid-template-columns:repeat(var(--drp-grid-columns, 3),minmax(var(--drp-month-min-width, 280px),1fr))}@media (max-width: 480px){.drp-date-picker--modal{width:var(--drp-modal-width-xs)}}@media (min-width: 481px) and (max-width: 768px){.drp-date-picker--modal{width:var(--drp-modal-width-sm)}}@media (min-width: 769px) and (max-width: 1200px){.drp-date-picker--modal{width:var(--drp-modal-width-md)}}@media (min-width: 1201px){.drp-date-picker--modal{width:var(--drp-modal-width-lg)}}@container drp-modal (max-width: 600px){.drp-date-picker--modal .drp-date-picker__month{min-width:0;width:100%}.drp-date-picker--modal .drp-date-picker__month:nth-child(n+2){display:none}.drp-date-picker--modal .drp-date-picker__months--grid{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto!important}}@container drp-modal (min-width: 601px) and (max-width: 900px){.drp-date-picker--modal .drp-date-picker__months:not(.drp-date-picker__months--grid)>.drp-date-picker__month:nth-child(n+3){display:none}.drp-date-picker--modal .drp-date-picker__months--grid{grid-template-columns:repeat(2,minmax(var(--drp-month-min-width, 280px),1fr))!important;grid-template-rows:auto!important}}@container drp-modal (min-width: 901px) and (max-width: 1200px){.drp-date-picker--modal .drp-date-picker__months:not(.drp-date-picker__months--grid)>.drp-date-picker__month:nth-child(n+4){display:none}.drp-date-picker--modal .drp-date-picker__months--grid{grid-template-columns:repeat(min(var(--drp-grid-columns, 3),3),minmax(var(--drp-month-min-width, 280px),1fr))!important;grid-template-rows:auto!important}}.drp-date-picker__backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:var(--drp-modal-backdrop-bg);z-index:var(--drp-z-index-modal-backdrop);opacity:0;pointer-events:none;transition:opacity var(--drp-modal-transition)}.drp-date-picker__backdrop--visible{opacity:1;pointer-events:auto}.drp-date-picker--modal.drp-transitions-enabled{transition:opacity var(--drp-modal-transition)}.drp-date-picker--modal.drp-transitions-enabled:not(.drp-date-picker--visible){opacity:0}.drp-date-picker.drp-transitions-enabled .drp-date-picker__badge-cell{transition:transform var(--drp-transition-fast) var(--drp-easing-snappy)}.drp-date-picker.drp-transitions-enabled .drp-date-picker__nav,.drp-date-picker.drp-transitions-enabled .drp-date-picker__action-btn{transition:background-color var(--drp-transition-fast) var(--drp-easing-snappy),border-color var(--drp-transition-fast) var(--drp-easing-snappy)}.drp-date-picker.drp-transitions-enabled .drp-date-picker__month-year,.drp-date-picker.drp-transitions-enabled .drp-date-picker__rolling-item{transition:background-color var(--drp-transition-fast) var(--drp-easing-snappy)}.drp-date-picker--inline{position:static;display:block;box-shadow:none}', K = class K {
2976
+ const ua = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(--base-font-family, inherit));--drp-spacing-xs: calc(.4 * var(--drp-rem));--drp-spacing-sm: calc(.8 * var(--drp-rem));--drp-spacing-md: calc(1.6 * var(--drp-rem));--drp-spacing-lg: calc(2.4 * var(--drp-rem));--drp-spacing-xl: calc(3.2 * var(--drp-rem));--drp-font-size-2xs: calc(var(--base-font-size-2xs, 1) * var(--drp-rem));--drp-font-size-xs: calc(var(--base-font-size-xs, 1.2) * var(--drp-rem));--drp-font-size-sm: calc(var(--base-font-size-sm, 1.4) * var(--drp-rem));--drp-font-size-base: calc(var(--base-font-size-base, 1.6) * var(--drp-rem));--drp-font-size-lg: calc(var(--base-font-size-lg, 1.8) * var(--drp-rem));--drp-font-size-xl: calc(var(--base-font-size-xl, 2) * var(--drp-rem));--drp-font-size-2xl: calc(var(--base-font-size-2xl, 2.4) * var(--drp-rem));--drp-font-weight-normal: var(--base-font-weight-normal, 400);--drp-font-weight-medium: var(--base-font-weight-medium, 500);--drp-font-weight-semibold: var(--base-font-weight-semibold, 600);--drp-line-height-tight: var(--base-line-height-tight, 1.25);--drp-line-height-normal: var(--base-line-height-normal, 1.5);--drp-line-height-relaxed: var(--base-line-height-relaxed, 1.75);--drp-dropdown-bg: var(--base-dropdown-bg, #ffffff);--drp-border-color: var(--base-border-color, #e5e7eb);--drp-border: var(--base-border, var(--drp-border-width-base) solid var(--drp-border-color));--drp-primary-bg: var(--base-main-bg, #f3f4f6);--drp-primary-bg-hover: var(--base-hover-bg, #e5e7eb);--drp-accent-color: var(--base-accent-color, #3b82f6);--drp-accent-color-hover: var(--base-accent-color-hover, #2563eb);--drp-text-primary: var(--base-text-color-1, #111827);--drp-text-secondary: var(--base-text-color-3, #6b7280);--drp-text-color-on-accent: var(--base-text-color-on-accent, #ffffff);--drp-button-accent-text-color: var(--drp-text-color-on-accent);--drp-tooltip-bg: var(--base-tooltip-bg, #111827);--drp-tooltip-text-color: var(--base-tooltip-text-color, #ffffff);--drp-loading-overlay-bg: rgba(255, 255, 255, .8);--drp-loading-spinner-size: 40px;--drp-loading-spinner-border-width: 4px;--drp-loading-spinner-color: var(--drp-border-color);--drp-loading-spinner-accent: var(--drp-accent-color);--drp-border-width-base: 1px;--drp-border-radius-sm: calc(var(--base-border-radius-sm, .4) * var(--drp-rem));--drp-border-radius-md: calc(var(--base-border-radius-md, .6) * var(--drp-rem));--drp-border-radius-lg: calc(var(--base-border-radius-lg, .8) * var(--drp-rem));--drp-border-radius: var(--drp-border-radius-md);--drp-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--drp-transition-fast: .15s;--drp-easing-snappy: cubic-bezier(.4, 0, .2, 1);--drp-z-index-dropdown: 9500;--drp-z-index-modal-backdrop: 9700;--drp-z-index-modal: 9800;--drp-z-index-tooltip: 9999;--drp-modal-gap: 16px;--drp-modal-backdrop-bg: rgba(0, 0, 0, .45);--drp-modal-transition: .15s ease-out;--drp-modal-width-xs: calc(100vw - 2 * var(--drp-modal-gap));--drp-modal-width-sm: calc(100vw - 2 * var(--drp-modal-gap));--drp-modal-width-md: 900px;--drp-modal-width-lg: 1100px;--drp-input-padding-h: calc(1.2 * var(--drp-rem));--drp-grid-columns: 3;--drp-grid-rows: 2;--drp-opacity-disabled: .6;--drp-opacity-other-month: .5;--drp-opacity-hover: .8;--drp-opacity-dragging: .7;--drp-input-bg: var(--base-input-bg, var(--drp-dropdown-bg));--drp-input-color: var(--base-input-color, var(--drp-text-primary));--drp-input-border: var(--base-input-border, var(--drp-border));--drp-input-border-hover: var(--base-input-border-hover, var(--drp-border-width-base) solid var(--drp-accent-color));--drp-input-border-focus: var(--base-input-border-focus, var(--drp-border-width-base) solid var(--drp-accent-color));--drp-input-placeholder-color: var(--base-input-placeholder-color, var(--drp-text-secondary));--drp-input-bg-disabled: var(--base-input-bg-disabled, var(--drp-primary-bg));--drp-input-focus-shadow-color: rgba(59, 130, 246, .1);--drp-input-focus-shadow-size: 3px;--drp-input-icon-opacity: .6;--drp-input-size-xs-font: var(--drp-font-size-xs);--drp-input-size-xs-padding-v: var(--drp-spacing-xs);--drp-input-size-xs-padding-h: calc(.8 * var(--drp-rem));--drp-input-size-xs-height: calc(var(--base-input-size-xs-height, 3.1) * var(--drp-rem));--drp-input-size-xs-icon-size: .75em;--drp-input-size-sm-font: calc(1.3 * var(--drp-rem));--drp-input-size-sm-padding-v: calc(.5 * var(--drp-rem));--drp-input-size-sm-padding-h: var(--drp-spacing-sm);--drp-input-size-sm-height: calc(var(--base-input-size-sm-height, 3.3) * var(--drp-rem));--drp-input-size-sm-icon-size: .875em;--drp-input-size-md-font: calc(1.4 * var(--drp-rem));--drp-input-size-md-padding-v: var(--drp-spacing-sm);--drp-input-size-md-padding-h: calc(1.2 * var(--drp-rem));--drp-input-size-md-height: calc(var(--base-input-size-md-height, 3.5) * var(--drp-rem));--drp-input-size-md-icon-size: 1em;--drp-input-size-lg-font: calc(1.6 * var(--drp-rem));--drp-input-size-lg-padding-v: calc(1 * var(--drp-rem));--drp-input-size-lg-padding-h: calc(1.4 * var(--drp-rem));--drp-input-size-lg-height: calc(var(--base-input-size-lg-height, 3.8) * var(--drp-rem));--drp-input-size-lg-icon-size: 1.125em;--drp-input-size-xl-font: calc(1.8 * var(--drp-rem));--drp-input-size-xl-padding-v: calc(1.2 * var(--drp-rem));--drp-input-size-xl-padding-h: calc(1.6 * var(--drp-rem));--drp-input-size-xl-height: calc(var(--base-input-size-xl-height, 4.1) * var(--drp-rem));--drp-input-size-xl-icon-size: 1.25em;--drp-header-text-color: var(--drp-text-primary);--drp-header-bg-hover: var(--drp-primary-bg);--drp-header-bg-active: var(--drp-primary-bg-hover);--drp-nav-text-color: var(--drp-text-primary);--drp-nav-border-color: var(--drp-border-color);--drp-nav-border: var(--drp-border-width-base) solid var(--drp-nav-border-color);--drp-nav-bg-hover: var(--drp-primary-bg);--drp-nav-bg-active: var(--drp-primary-bg-hover);--drp-nav-border-hover: var(--drp-accent-color);--drp-nav-border-hover-full: var(--drp-border-width-base) solid var(--drp-nav-border-hover);--drp-nav-size: calc(3.2 * var(--drp-rem));--drp-rolling-bg: var(--drp-primary-bg);--drp-rolling-border-color: var(--drp-border-color);--drp-rolling-border: var(--drp-border-width-base) solid var(--drp-rolling-border-color);--drp-rolling-scrollbar-width: 6px;--drp-rolling-scrollbar-thumb: var(--drp-border-color);--drp-rolling-scrollbar-thumb-hover: var(--drp-accent-color);--drp-rolling-item-bg-hover: var(--drp-primary-bg);--drp-rolling-item-color: var(--drp-text-primary);--drp-rolling-item-bg-selected: var(--drp-accent-color);--drp-rolling-item-color-selected: var(--drp-text-color-on-accent);--drp-rolling-item-bg-selected-hover: var(--drp-accent-color-hover);--drp-rolling-item-justify-content: center;--drp-rolling-item-min-height: calc(3.2 * var(--drp-rem));--drp-rolling-item-padding-v: var(--drp-spacing-xs);--drp-rolling-item-padding-h: var(--drp-spacing-md);--drp-rolling-item-font-size: var(--drp-font-size-sm);--drp-rolling-item-font-weight-selected: var(--drp-font-weight-semibold);--drp-weekday-color: var(--drp-text-secondary);--drp-day-text-color: var(--drp-text-primary);--drp-day-bg-hover: var(--drp-primary-bg);--drp-day-border-hover: var(--drp-accent-color);--drp-day-today-border: var(--drp-accent-color);--drp-day-selected-bg: var(--drp-accent-color);--drp-day-selected-color: var(--drp-text-color-on-accent);--drp-day-selected-bg-hover: var(--drp-accent-color-hover);--drp-day-selected-color-hover: var(--drp-day-selected-color);--drp-day-focused-outline: var(--drp-accent-color);--drp-day-disabled-color: var(--drp-text-secondary);--drp-day-disabled-bg: var(--base-disabled-bg, transparent);--drp-day-other-month-color: var(--drp-text-secondary);--drp-day-range-bg: var(--drp-accent-color);--drp-day-range-bg-hover: var(--drp-accent-color-hover);--drp-day-range-color: var(--drp-text-color-on-accent);--drp-day-range-color-hover: var(--drp-day-range-color);--drp-day-border-width: 2px;--drp-day-border-color: transparent;--drp-day-border: var(--drp-day-border-width) solid var(--drp-day-border-color);--drp-day-focused-outline-width: 2px;--drp-day-focused-outline-offset: 2px;--drp-day-in-range-bg-opacity: .15;--drp-day-in-range-hover-bg-opacity: .25;--drp-day-drag-preview-bg-opacity: .3;--drp-day-drag-preview-edge-bg-opacity: .6;--drp-day-hover-preview-bg-opacity: .18;--drp-day-hover-preview-invalid-bg-opacity: .18;--drp-day-invalid-range-bg: var(--drp-message-error-border);--drp-day-invalid-range-color: var(--drp-text-color-on-accent);--drp-day-disabled-pattern-opacity: .1;--drp-day-dragging-scale: 1.1;--drp-day-drag-preview-border-style: dashed;--drp-day-drag-border: var(--drp-day-border-width) var(--drp-day-drag-preview-border-style) var(--drp-day-range-bg);--drp-day-drag-invalid-bg: #ef4444;--drp-day-drag-invalid-bg-opacity: .2;--drp-holiday-color: #ef4444;--drp-holiday-bg-opacity: .1;--drp-holiday-hover-bg-opacity: .2;--drp-event-color: #10b981;--drp-event-bg-opacity: .1;--drp-event-hover-bg-opacity: .2;--drp-summary-text-color: var(--drp-text-secondary);--drp-summary-border-color: var(--drp-border-color);--drp-summary-border: var(--drp-border-width-base) solid var(--drp-summary-border-color);--drp-summary-count-color: var(--drp-accent-color);--drp-button-border-color: var(--drp-border-color);--drp-button-border: var(--drp-border-width-base) solid var(--drp-button-border-color);--drp-button-bg: transparent;--drp-button-bg-hover: var(--drp-primary-bg);--drp-button-color: var(--drp-text-primary);--drp-button-border-hover: var(--drp-accent-color);--drp-button-border-hover-full: var(--drp-border-width-base) solid var(--drp-button-border-hover);--drp-button-today-color: var(--drp-accent-color);--drp-button-clear-color: var(--drp-text-secondary);--drp-button-cancel-color: var(--drp-text-secondary);--drp-button-apply-bg: var(--drp-accent-color);--drp-button-apply-color: var(--drp-button-accent-text-color);--drp-button-apply-border: var(--drp-accent-color);--drp-button-apply-bg-hover: var(--drp-accent-color-hover);--drp-badge-font-size: var(--drp-font-size-2xs);--drp-badge-padding-v: 1px;--drp-badge-padding-h: 2px;--drp-badge-border-radius: 2px;--drp-badge-max-height: var(--drp-font-size-base);--drp-badge-row-height: var(--drp-badge-max-height);--drp-badge-number-bg: var(--drp-accent-color);--drp-badge-number-color: var(--drp-text-color-on-accent);--drp-badge-count-bg: #ef4444;--drp-badge-count-color: #ffffff;--drp-badge-text-bg: var(--drp-text-secondary);--drp-badge-text-color: #ffffff;--drp-unified-range-text-color: var(--drp-text-primary);--drp-unified-range-bg-hover: var(--drp-primary-bg);--drp-unified-range-bg-active: var(--drp-primary-bg-hover);--drp-unified-month-color: var(--drp-text-secondary);--drp-unified-rolling-disabled-color: var(--drp-text-secondary);--drp-tooltip-line-height: 1.4;--drp-tooltip-max-width: 200px;--drp-tooltip-arrow-size: 8px;--drp-message-error-bg: #fef2f2;--drp-message-error-color: #991b1b;--drp-message-error-border: #fecaca;--drp-message-warning-bg: #fffbeb;--drp-message-warning-color: #92400e;--drp-message-warning-border: #fde68a;--drp-message-info-bg: #eff6ff;--drp-message-info-color: #1e40af;--drp-message-info-border: #bfdbfe;--drp-message-success-bg: #f0fdf4;--drp-message-success-color: #166534;--drp-message-success-border: #bbf7d0;--drp-month-min-width: 280px;--drp-month-min-width-inline: 250px;--drp-calendar-max-width: calc(100vw - 2rem) }.drp-input{width:100%;font-family:var(--drp-font-family, var(--base-font-family, inherit));font-size:var(--drp-input-size-md-font);line-height:var(--drp-line-height-normal);color:var(--drp-input-color);background-color:var(--drp-input-bg);border:var(--drp-input-border);border-radius:var(--drp-border-radius);padding:var(--drp-input-size-md-padding-v) var(--drp-input-size-md-padding-h);padding-right:calc(var(--drp-input-size-md-padding-h) * 2.5);height:var(--drp-input-size-md-height);box-sizing:border-box;transition:border-color var(--drp-transition-fast) var(--drp-easing-snappy),box-shadow var(--drp-transition-fast) var(--drp-easing-snappy)}.drp-input::placeholder{color:var(--drp-input-placeholder-color);opacity:.6}.drp-input:hover:not(:disabled){border:var(--drp-input-border-hover)}.drp-input:focus{outline:none;border:var(--drp-input-border-focus);box-shadow:0 0 0 var(--drp-input-focus-shadow-size) var(--drp-input-focus-shadow-color)}.drp-input:disabled{opacity:var(--drp-opacity-disabled);cursor:not-allowed;background-color:var(--drp-input-bg-disabled)}.drp-input.drp-input--xs{font-size:var(--drp-input-size-xs-font);padding:var(--drp-input-size-xs-padding-v) var(--drp-input-size-xs-padding-h);padding-right:calc(var(--drp-input-size-xs-padding-h) * 2.5);height:var(--drp-input-size-xs-height)}.drp-input.drp-input--sm{font-size:var(--drp-input-size-sm-font);padding:var(--drp-input-size-sm-padding-v) var(--drp-input-size-sm-padding-h);padding-right:calc(var(--drp-input-size-sm-padding-h) * 2.5);height:var(--drp-input-size-sm-height)}.drp-input.drp-input--lg{font-size:var(--drp-input-size-lg-font);padding:var(--drp-input-size-lg-padding-v) var(--drp-input-size-lg-padding-h);padding-right:calc(var(--drp-input-size-lg-padding-h) * 2.5);height:var(--drp-input-size-lg-height)}.drp-input.drp-input--xl{font-size:var(--drp-input-size-xl-font);padding:var(--drp-input-size-xl-padding-v) var(--drp-input-size-xl-padding-h);padding-right:calc(var(--drp-input-size-xl-padding-h) * 2.5);height:var(--drp-input-size-xl-height)}.drp-date-picker-input{position:relative;cursor:pointer;display:inline-block;width:100%}.drp-date-picker-input:after{content:"📅";position:absolute;right:var(--drp-input-size-md-padding-h);top:50%;transform:translateY(-50%);pointer-events:none;opacity:var(--drp-input-icon-opacity);font-size:var(--drp-input-size-md-icon-size)}.drp-date-picker-input.drp-date-picker-input--xs:after{right:var(--drp-input-size-xs-padding-h);font-size:var(--drp-input-size-xs-icon-size)}.drp-date-picker-input.drp-date-picker-input--sm:after{right:var(--drp-input-size-sm-padding-h);font-size:var(--drp-input-size-sm-icon-size)}.drp-date-picker-input.drp-date-picker-input--lg:after{right:var(--drp-input-size-lg-padding-h);font-size:var(--drp-input-size-lg-icon-size)}.drp-date-picker-input.drp-date-picker-input--xl:after{right:var(--drp-input-size-xl-padding-h);font-size:var(--drp-input-size-xl-icon-size)}.drp-date-picker{position:fixed;z-index:var(--drp-z-index-dropdown);font-family:var(--drp-font-family, var(--base-font-family, inherit));background:var(--drp-dropdown-bg);border:var(--drp-border);border-radius:var(--drp-border-radius-lg);box-shadow:var(--drp-shadow-xl);padding:var(--drp-spacing-md);min-width:var(--drp-month-min-width);max-width:var(--drp-calendar-max-width);box-sizing:border-box;-webkit-user-select:none;user-select:none}.drp-date-picker:not(.drp-date-picker--inline){display:flex;flex-direction:column;overflow:hidden}.drp-date-picker:not(.drp-date-picker--inline)>.drp-date-picker__months,.drp-date-picker:not(.drp-date-picker--inline)>.drp-date-picker__months--grid{flex:1 1 auto;min-height:0;overflow-y:auto;padding-inline:4px}.drp-date-picker:not(.drp-date-picker--inline)>.drp-date-picker__unified-header,.drp-date-picker:not(.drp-date-picker--inline)>.drp-date-picker__summary,.drp-date-picker:not(.drp-date-picker--inline)>.drp-date-picker__actions{flex-shrink:0}.drp-date-picker:not(.drp-date-picker--inline) .drp-date-picker__month .drp-date-picker__header{position:sticky;top:0;background:var(--drp-dropdown-bg);z-index:2}.drp-date-picker:not(.drp-date-picker--visible){display:none}.drp-date-picker--inline{position:relative!important;display:block!important;z-index:auto;min-width:0;max-width:100%;width:fit-content;box-sizing:border-box}.drp-date-picker__months{display:flex;gap:var(--drp-spacing-lg)}.drp-date-picker--inline .drp-date-picker__months{flex-wrap:wrap}.drp-date-picker__months--grid{display:grid;grid-template-columns:repeat(var(--drp-grid-columns, 3),minmax(0,1fr));grid-template-rows:repeat(var(--drp-grid-rows, 2),auto);gap:var(--drp-spacing-lg);width:100%}@media (max-width: 1200px){.drp-date-picker__months--grid{grid-template-columns:repeat(min(var(--drp-grid-columns, 3),3),minmax(0,1fr))}}@media (max-width: 768px){.drp-date-picker__months--grid{grid-template-columns:repeat(min(var(--drp-grid-columns, 3),2),minmax(0,1fr))}}@media (max-width: 480px){.drp-date-picker__months--grid{grid-template-columns:minmax(0,1fr)}}.drp-date-picker__month{flex:1;min-width:var(--drp-month-min-width);display:flex;flex-direction:column}.drp-date-picker--inline .drp-date-picker__month{min-width:var(--drp-month-min-width-inline)}.drp-date-picker__months--grid .drp-date-picker__month{min-width:0;width:100%}.drp-date-picker__calendar-container{position:relative;flex:1;display:flex;flex-direction:column;min-height:0}.drp-date-picker__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--drp-spacing-md);gap:var(--drp-spacing-sm)}.drp-date-picker__header--static{justify-content:center}.drp-date-picker__header--static .drp-date-picker__month-year{cursor:default}.drp-date-picker__header--static .drp-date-picker__month-year:hover{background-color:transparent}.drp-date-picker__month-year{flex:1;text-align:center;font-weight:var(--drp-font-weight-semibold);font-size:var(--drp-font-size-base);color:var(--drp-header-text-color);padding:var(--drp-spacing-sm) var(--drp-spacing-md);border-radius:var(--drp-border-radius);cursor:pointer}.drp-date-picker__month-year:hover{background-color:var(--drp-header-bg-hover)}.drp-date-picker__month-year:active{background-color:var(--drp-header-bg-active)}.drp-date-picker__nav{width:var(--drp-nav-size);height:var(--drp-nav-size);display:flex;align-items:center;justify-content:center;border:var(--drp-nav-border);border-radius:var(--drp-border-radius);background:transparent;cursor:pointer;font-size:var(--drp-font-size-lg);color:var(--drp-nav-text-color)}.drp-date-picker__nav:hover{background-color:var(--drp-nav-bg-hover);border:var(--drp-nav-border-hover-full)}.drp-date-picker__nav:active{background-color:var(--drp-nav-bg-active)}.drp-date-picker__nav--disabled,.drp-date-picker__nav[disabled]{opacity:var(--drp-opacity-disabled);cursor:not-allowed;pointer-events:none}.drp-date-picker__nav--disabled:hover,.drp-date-picker__nav[disabled]:hover{background-color:transparent;border:var(--drp-nav-border)}.drp-date-picker__nav--prev:before{content:"‹"}.drp-date-picker__nav--next:before{content:"›"}.drp-date-picker__rolling-selector{position:absolute;top:0;right:0;bottom:0;left:0;display:none;z-index:10;gap:var(--drp-spacing-xs)}.drp-date-picker__rolling-selector.drp-date-picker__rolling-selector--visible{display:flex}.drp-date-picker__rolling-selector.drp-date-picker__rolling-selector--visible~.drp-date-picker__weekdays,.drp-date-picker__rolling-selector.drp-date-picker__rolling-selector--visible~.drp-date-picker__days{visibility:hidden}.drp-date-picker__rolling-list{flex:1;min-width:0;height:100%;box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;border:var(--drp-rolling-border);border-radius:var(--drp-border-radius-lg);display:flex;flex-direction:column;scroll-behavior:smooth}.drp-date-picker__rolling-list::-webkit-scrollbar{width:var(--drp-rolling-scrollbar-width)}.drp-date-picker__rolling-list::-webkit-scrollbar-track{background:var(--drp-rolling-bg)}.drp-date-picker__rolling-list::-webkit-scrollbar-thumb{background:var(--drp-rolling-scrollbar-thumb);border-radius:3px}.drp-date-picker__rolling-list::-webkit-scrollbar-thumb:hover{background:var(--drp-rolling-scrollbar-thumb-hover)}.drp-date-picker__rolling-item{padding:var(--drp-rolling-item-padding-v) var(--drp-rolling-item-padding-h);cursor:pointer;font-size:var(--drp-rolling-item-font-size);color:var(--drp-rolling-item-color);min-height:var(--drp-rolling-item-min-height);flex-shrink:0;display:flex;align-items:center;justify-content:var(--drp-rolling-item-justify-content)}.drp-date-picker__rolling-item:hover{background-color:var(--drp-rolling-item-bg-hover)}.drp-date-picker__rolling-item--selected{background-color:var(--drp-rolling-item-bg-selected);color:var(--drp-rolling-item-color-selected);font-weight:var(--drp-rolling-item-font-weight-selected)}.drp-date-picker__rolling-item--selected:hover{background-color:var(--drp-rolling-item-bg-selected-hover)}.drp-date-picker__rolling-item-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;min-width:0}.drp-date-picker__unified-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--drp-spacing-lg);gap:var(--drp-spacing-sm);padding:0 var(--drp-spacing-sm)}.drp-date-picker__unified-range{flex:1;text-align:center;font-weight:var(--drp-font-weight-semibold);font-size:var(--drp-font-size-lg);color:var(--drp-unified-range-text-color);padding:var(--drp-spacing-sm) var(--drp-spacing-md);border-radius:var(--drp-border-radius);cursor:pointer}.drp-date-picker__unified-range:hover{background-color:var(--drp-unified-range-bg-hover)}.drp-date-picker__unified-range:active{background-color:var(--drp-unified-range-bg-active)}.drp-date-picker__unified-range--static{cursor:default!important}.drp-date-picker__unified-range--static:hover,.drp-date-picker__unified-range--static:active{background-color:transparent}.drp-date-picker__unified-rolling-selector{position:absolute;top:calc(var(--drp-spacing-lg) + var(--drp-spacing-lg) * 2);left:50%;transform:translate(-50%);width:min(90%,450px);height:350px;max-height:350px;display:none;z-index:100;background:var(--drp-dropdown-bg);gap:var(--drp-spacing-xs)}.drp-date-picker__unified-rolling-selector--visible{display:flex}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-list{flex:1;min-width:0;height:100%;overflow-y:auto;border:var(--drp-rolling-border);border-radius:var(--drp-border-radius-lg);display:flex;flex-direction:column;scroll-behavior:smooth}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-list::-webkit-scrollbar{width:var(--drp-rolling-scrollbar-width)}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-list::-webkit-scrollbar-track{background:var(--drp-rolling-bg)}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-list::-webkit-scrollbar-thumb{background:var(--drp-rolling-scrollbar-thumb);border-radius:3px}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-list::-webkit-scrollbar-thumb:hover{background:var(--drp-rolling-scrollbar-thumb-hover)}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-item{padding:var(--drp-rolling-item-padding-v) var(--drp-rolling-item-padding-h);cursor:pointer;font-size:var(--drp-rolling-item-font-size);min-height:var(--drp-rolling-item-min-height);flex-shrink:0;display:flex;align-items:center;justify-content:var(--drp-rolling-item-justify-content)}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-item:hover{background-color:var(--drp-rolling-item-bg-hover)}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-item--selected{background-color:var(--drp-rolling-item-bg-selected);color:var(--drp-rolling-item-color-selected);font-weight:var(--drp-rolling-item-font-weight-selected)}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-item--selected:hover{background-color:var(--drp-rolling-item-bg-selected-hover)}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-item--disabled{color:var(--drp-unified-rolling-disabled-color);opacity:.4;cursor:not-allowed}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-item-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;min-width:0}.drp-date-picker--unified-nav .drp-date-picker__month .drp-date-picker__header .drp-date-picker__nav{display:none}.drp-date-picker--unified-nav .drp-date-picker__month .drp-date-picker__header .drp-date-picker__month-year{cursor:default;font-size:var(--drp-font-size-base);font-weight:var(--drp-font-weight-normal);color:var(--drp-unified-month-color)}.drp-date-picker--unified-nav .drp-date-picker__month .drp-date-picker__header .drp-date-picker__month-year:hover{background-color:transparent}.drp-date-picker--unified-nav .drp-date-picker__month .drp-date-picker__rolling-selector{display:none!important}.drp-date-picker__weekdays{display:grid;grid-template-columns:repeat(7,1fr);gap:var(--drp-spacing-xs);margin-bottom:var(--drp-spacing-sm)}.drp-date-picker__weekday{text-align:center;font-size:var(--drp-font-size-xs);font-weight:var(--drp-font-weight-semibold);color:var(--drp-weekday-color);padding:var(--drp-spacing-xs);text-transform:uppercase}.drp-date-picker__days{display:flex;flex-direction:column;gap:var(--drp-spacing-xs);margin-bottom:var(--drp-spacing-md)}.drp-date-picker__date-row{display:grid;grid-template-columns:repeat(7,1fr);gap:var(--drp-spacing-xs)}.drp-date-picker__day{aspect-ratio:1;display:flex;align-items:center;justify-content:center;font-size:var(--drp-font-size-sm);color:var(--drp-day-text-color);border-radius:var(--drp-border-radius-sm);cursor:pointer;border:var(--drp-day-border);position:relative}.drp-date-picker__day:hover:not(.drp-date-picker__day--disabled):not(.drp-date-picker__day--other-month){background-color:var(--drp-day-bg-hover);border-color:var(--drp-day-border-hover)}.drp-date-picker__day--today{border-color:var(--drp-day-today-border);font-weight:var(--drp-font-weight-semibold)}.drp-date-picker__day--selected{background-color:var(--drp-day-selected-bg);color:var(--drp-day-selected-color);font-weight:var(--drp-font-weight-semibold)}.drp-date-picker__day--selected:hover:not(.drp-date-picker__day--disabled):not(.drp-date-picker__day--other-month){background-color:var(--drp-day-selected-bg-hover);color:var(--drp-day-selected-color-hover)}.drp-date-picker__day--focused{outline:var(--drp-day-focused-outline-width) solid var(--drp-day-focused-outline);outline-offset:var(--drp-day-focused-outline-offset)}.drp-date-picker__day--disabled{color:var(--drp-day-disabled-color);opacity:var(--drp-opacity-disabled);cursor:not-allowed;position:relative;background-color:var(--drp-day-disabled-bg)}.drp-date-picker__day--disabled:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background-image:repeating-linear-gradient(45deg,rgba(0,0,0,var(--drp-day-disabled-pattern-opacity)) 0px,rgba(0,0,0,var(--drp-day-disabled-pattern-opacity)) 1px,transparent 1px,transparent 6px);border-radius:var(--drp-border-radius-sm);pointer-events:none}.drp-date-picker__day--disabled:hover{background-color:transparent;border-color:transparent}.drp-date-picker__day--disabled.drp-date-picker__day--in-range{background-color:color-mix(in srgb,var(--drp-day-range-bg) calc(var(--drp-day-in-range-bg-opacity) * 100%),transparent)}.drp-date-picker__day--other-month{color:var(--drp-day-other-month-color);opacity:var(--drp-opacity-other-month)}.drp-date-picker__day--other-month.drp-date-picker__day--range-start,.drp-date-picker__day--other-month.drp-date-picker__day--range-end,.drp-date-picker__day--other-month.drp-date-picker__day--in-range,.drp-date-picker__day--other-month.drp-date-picker__day--drag-preview{opacity:1}.drp-date-picker__day--range-start,.drp-date-picker__day--range-end{background-color:var(--drp-day-range-bg);color:var(--drp-day-range-color);font-weight:var(--drp-font-weight-semibold);cursor:grab;-webkit-user-select:none;user-select:none}.drp-date-picker__day--range-start:hover:not(.drp-date-picker__day--disabled):not(.drp-date-picker__day--other-month),.drp-date-picker__day--range-end:hover:not(.drp-date-picker__day--disabled):not(.drp-date-picker__day--other-month){background-color:var(--drp-day-range-bg-hover);color:var(--drp-day-range-color-hover)}.drp-date-picker__day--range-start:active,.drp-date-picker__day--range-end:active{cursor:grabbing}.drp-date-picker__day--in-range{background-color:color-mix(in srgb,var(--drp-day-range-bg) calc(var(--drp-day-in-range-bg-opacity) * 100%),transparent)}.drp-date-picker__day--in-range:hover:not(.drp-date-picker__day--disabled):not(.drp-date-picker__day--other-month){background-color:color-mix(in srgb,var(--drp-day-range-bg) calc(var(--drp-day-in-range-hover-bg-opacity) * 100%),transparent)}.drp-date-picker__day--dragging{cursor:grabbing!important;opacity:var(--drp-opacity-dragging);transform:scale(var(--drp-day-dragging-scale));transition:transform var(--drp-transition-fast) var(--drp-easing-snappy)}.drp-date-picker__day--drag-preview{background-color:color-mix(in srgb,var(--drp-day-range-bg) calc(var(--drp-day-drag-preview-bg-opacity) * 100%),transparent);border:var(--drp-day-drag-border)}.drp-date-picker__day--drag-preview.drp-date-picker__day--range-start,.drp-date-picker__day--drag-preview.drp-date-picker__day--range-end{background-color:color-mix(in srgb,var(--drp-day-range-bg) calc(var(--drp-day-drag-preview-edge-bg-opacity) * 100%),transparent);color:var(--drp-day-range-color)}.drp-date-picker__day--drag-invalid{background-color:color-mix(in srgb,var(--drp-day-drag-invalid-bg) calc(var(--drp-day-drag-invalid-bg-opacity) * 100%),transparent)!important;border-color:var(--drp-day-drag-invalid-bg)!important;border-style:dashed!important}.drp-date-picker__day--hover-preview{background-color:color-mix(in srgb,var(--drp-day-range-bg) calc(var(--drp-day-hover-preview-bg-opacity) * 100%),transparent)}.drp-date-picker__day--hover-preview-invalid{background-color:color-mix(in srgb,var(--drp-day-drag-invalid-bg) calc(var(--drp-day-hover-preview-invalid-bg-opacity) * 100%),transparent)}.drp-date-picker__day--invalid-range{background-color:color-mix(in srgb,var(--drp-message-error-border) 20%,transparent)}.drp-date-picker__day--invalid-range-start,.drp-date-picker__day--invalid-range-end{background-color:var(--drp-day-invalid-range-bg);color:var(--drp-day-invalid-range-color);font-weight:var(--drp-font-weight-semibold)}.drp-date-picker__day.holiday{background-color:color-mix(in srgb,var(--drp-holiday-color) calc(var(--drp-holiday-bg-opacity) * 100%),transparent)}.drp-date-picker__day.holiday:hover:not(.drp-date-picker__day--disabled){background-color:color-mix(in srgb,var(--drp-holiday-color) calc(var(--drp-holiday-hover-bg-opacity) * 100%),transparent)}.drp-date-picker__day.event{background-color:color-mix(in srgb,var(--drp-event-color) calc(var(--drp-event-bg-opacity) * 100%),transparent)}.drp-date-picker__day.event:hover:not(.drp-date-picker__day--disabled){background-color:color-mix(in srgb,var(--drp-event-color) calc(var(--drp-event-hover-bg-opacity) * 100%),transparent)}.drp-date-picker__rolling-item--disabled{color:var(--drp-unified-rolling-disabled-color);opacity:.4;cursor:not-allowed;pointer-events:none;text-decoration:line-through}.drp-date-picker__rolling-item--disabled:hover{background-color:transparent}.drp-date-picker__badge-row{display:grid;grid-template-columns:repeat(7,1fr);gap:var(--drp-spacing-xs);max-height:var(--drp-badge-row-height);min-height:var(--drp-badge-row-height)}.drp-date-picker__badge-cell{display:flex;align-items:center;justify-content:center;font-size:var(--drp-font-size-2xs);padding:var(--drp-badge-padding-v) var(--drp-badge-padding-h);border-radius:var(--drp-badge-border-radius);cursor:pointer;max-height:var(--drp-badge-row-height)}.drp-date-picker__badge-cell:empty{visibility:hidden}.drp-date-picker__badge-cell:hover:not(:empty){transform:scale(1.05)}.drp-date-picker__badge-cell.badge-number{background-color:var(--drp-badge-number-bg);color:var(--drp-badge-number-color);font-size:calc(1.12 * var(--drp-rem));font-weight:600}.drp-date-picker__badge-cell.badge-count{background-color:var(--drp-badge-count-bg);color:var(--drp-badge-count-color);font-size:calc(1.12 * var(--drp-rem));font-weight:700}.drp-date-picker__badge-cell.badge-text{background-color:var(--drp-badge-text-bg);color:var(--drp-badge-text-color);font-size:calc(1.04 * var(--drp-rem));font-weight:700;text-transform:uppercase}.drp-date-picker__summary{text-align:center;padding:0;margin:0;margin-bottom:var(--drp-spacing-sm);border-top:var(--drp-summary-border);font-size:var(--drp-font-size-sm);color:var(--drp-summary-text-color)}.drp-date-picker__summary--visible{display:block;margin-top:var(--drp-spacing-sm)}.drp-date-picker__summary--hidden{display:none}.drp-date-picker__summary-count{font-weight:var(--drp-font-weight-semibold);color:var(--drp-summary-count-color);font-size:var(--drp-font-size-base)}.drp-date-picker__actions{display:flex;gap:var(--drp-spacing-sm);justify-content:space-between;padding-top:var(--drp-spacing-sm)}.drp-date-picker:has(.drp-date-picker__summary--visible) .drp-date-picker__actions{border-top:var(--drp-summary-border)}.drp-date-picker__button{flex:1;padding:var(--drp-spacing-sm) var(--drp-spacing-md);border:var(--drp-button-border);border-radius:var(--drp-border-radius);background:var(--drp-button-bg);color:var(--drp-button-color);cursor:pointer;font-family:inherit;font-size:var(--drp-font-size-sm);font-weight:var(--drp-font-weight-medium)}.drp-date-picker__button:hover{background-color:var(--drp-button-bg-hover);border:var(--drp-button-border-hover-full)}.drp-date-picker__button:disabled,.drp-date-picker__button[disabled]{opacity:var(--drp-opacity-disabled);cursor:not-allowed;pointer-events:none}.drp-date-picker__button:disabled:hover,.drp-date-picker__button[disabled]:hover{background-color:var(--drp-button-bg);border:var(--drp-button-border)}.drp-date-picker__button--today{color:var(--drp-button-today-color)}.drp-date-picker__button--clear{color:var(--drp-button-clear-color)}.drp-date-picker__button--apply{background-color:var(--drp-button-apply-bg);color:var(--drp-button-apply-color);border-color:var(--drp-button-apply-border)}.drp-date-picker__button--apply:hover{background-color:var(--drp-button-apply-bg-hover)}.drp-date-picker__button--cancel{color:var(--drp-button-cancel-color)}.drp-date-picker__tooltip{position:fixed;z-index:var(--drp-z-index-tooltip);background-color:var(--drp-tooltip-bg);color:var(--drp-tooltip-text-color);padding:var(--drp-spacing-xs) var(--drp-spacing-sm);border-radius:var(--drp-border-radius-sm);font-size:var(--drp-font-size-xs);line-height:var(--drp-tooltip-line-height);max-width:var(--drp-tooltip-max-width);word-wrap:break-word;pointer-events:none;opacity:0;transition:opacity var(--drp-transition-fast) var(--drp-easing-snappy)}.drp-date-picker__tooltip--visible{opacity:1}.drp-date-picker__tooltip-arrow{position:absolute;background-color:var(--drp-tooltip-bg);width:var(--drp-tooltip-arrow-size);height:var(--drp-tooltip-arrow-size);transform:rotate(45deg)}.drp-date-picker__loading-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background-color:var(--drp-loading-overlay-bg);display:flex;align-items:center;justify-content:center;z-index:var(--drp-z-index-dropdown);border-radius:var(--drp-border-radius-lg)}.drp-date-picker__loading-spinner{width:var(--drp-loading-spinner-size);height:var(--drp-loading-spinner-size);border:var(--drp-loading-spinner-border-width) solid var(--drp-loading-spinner-color);border-top-color:var(--drp-loading-spinner-accent);border-radius:50%;animation:drp-spin .8s linear infinite}@keyframes drp-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.drp-date-picker__message{display:none;align-items:center;gap:var(--drp-spacing-sm);padding:var(--drp-spacing-sm) var(--drp-spacing-md);margin:0;margin-bottom:var(--drp-spacing-sm);border-radius:var(--drp-border-radius);font-size:var(--drp-font-size-sm);line-height:var(--drp-line-height-normal)}.drp-date-picker__message--visible{display:flex}.drp-date-picker__message-text{flex:1}.drp-date-picker__message-close{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:calc(2 * var(--drp-rem));height:calc(2 * var(--drp-rem));padding:0;border:none;background:transparent;font-size:var(--drp-font-size-lg);line-height:1;cursor:pointer;opacity:.6;transition:opacity var(--drp-transition-fast) var(--drp-easing-snappy)}.drp-date-picker__message-close:hover{opacity:1}.drp-date-picker__message--error{background-color:var(--drp-message-error-bg);color:var(--drp-message-error-color);border:1px solid var(--drp-message-error-border)}.drp-date-picker__message--error .drp-date-picker__message-close{color:var(--drp-message-error-color)}.drp-date-picker__message--warning{background-color:var(--drp-message-warning-bg);color:var(--drp-message-warning-color);border:1px solid var(--drp-message-warning-border)}.drp-date-picker__message--warning .drp-date-picker__message-close{color:var(--drp-message-warning-color)}.drp-date-picker__message--info{background-color:var(--drp-message-info-bg);color:var(--drp-message-info-color);border:1px solid var(--drp-message-info-border)}.drp-date-picker__message--info .drp-date-picker__message-close{color:var(--drp-message-info-color)}.drp-date-picker__message--success{background-color:var(--drp-message-success-bg);color:var(--drp-message-success-color);border:1px solid var(--drp-message-success-border)}.drp-date-picker__message--success .drp-date-picker__message-close{color:var(--drp-message-success-color)}.drp-date-picker__message--custom{background:transparent;border:none;padding:0;margin:0;margin-bottom:var(--drp-spacing-sm)}.drp-date-picker__message--custom .drp-date-picker__message-close{display:none}.drp-date-picker--modal{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);max-width:calc(100vw - 2 * var(--drp-modal-gap));max-height:calc(100vh - 2 * var(--drp-modal-gap));width:auto;z-index:var(--drp-z-index-modal);container-type:inline-size;container-name:drp-modal}.drp-date-picker--modal .drp-date-picker__months--grid{width:auto;grid-template-columns:repeat(var(--drp-grid-columns, 3),minmax(var(--drp-month-min-width, 280px),1fr))}@media (max-width: 480px){.drp-date-picker--modal{width:var(--drp-modal-width-xs)}}@media (min-width: 481px) and (max-width: 768px){.drp-date-picker--modal{width:var(--drp-modal-width-sm)}}@media (min-width: 769px) and (max-width: 1200px){.drp-date-picker--modal{width:var(--drp-modal-width-md)}}@media (min-width: 1201px){.drp-date-picker--modal{width:var(--drp-modal-width-lg)}}@container drp-modal (max-width: 600px){.drp-date-picker--modal .drp-date-picker__month{min-width:0;width:100%}.drp-date-picker--modal .drp-date-picker__month:nth-child(n+2){display:none}.drp-date-picker--modal .drp-date-picker__months--grid{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto!important}}@container drp-modal (min-width: 601px) and (max-width: 900px){.drp-date-picker--modal .drp-date-picker__months:not(.drp-date-picker__months--grid)>.drp-date-picker__month:nth-child(n+3){display:none}.drp-date-picker--modal .drp-date-picker__months--grid{grid-template-columns:repeat(2,minmax(var(--drp-month-min-width, 280px),1fr))!important;grid-template-rows:auto!important}}@container drp-modal (min-width: 901px) and (max-width: 1200px){.drp-date-picker--modal .drp-date-picker__months:not(.drp-date-picker__months--grid)>.drp-date-picker__month:nth-child(n+4){display:none}.drp-date-picker--modal .drp-date-picker__months--grid{grid-template-columns:repeat(min(var(--drp-grid-columns, 3),3),minmax(var(--drp-month-min-width, 280px),1fr))!important;grid-template-rows:auto!important}}.drp-date-picker__backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:var(--drp-modal-backdrop-bg);z-index:var(--drp-z-index-modal-backdrop);opacity:0;pointer-events:none;transition:opacity var(--drp-modal-transition)}.drp-date-picker__backdrop--visible{opacity:1;pointer-events:auto}.drp-date-picker--modal.drp-transitions-enabled{transition:opacity var(--drp-modal-transition)}.drp-date-picker--modal.drp-transitions-enabled:not(.drp-date-picker--visible){opacity:0}.drp-date-picker.drp-transitions-enabled .drp-date-picker__badge-cell{transition:transform var(--drp-transition-fast) var(--drp-easing-snappy)}.drp-date-picker.drp-transitions-enabled .drp-date-picker__nav,.drp-date-picker.drp-transitions-enabled .drp-date-picker__action-btn{transition:background-color var(--drp-transition-fast) var(--drp-easing-snappy),border-color var(--drp-transition-fast) var(--drp-easing-snappy)}.drp-date-picker.drp-transitions-enabled .drp-date-picker__month-year,.drp-date-picker.drp-transitions-enabled .drp-date-picker__rolling-item{transition:background-color var(--drp-transition-fast) var(--drp-easing-snappy)}.drp-date-picker--inline{position:static;display:block;box-shadow:none}', G = class G {
2944
2977
  constructor(a, t = {}) {
2945
2978
  b(this, "input");
2946
2979
  b(this, "options");
@@ -2975,6 +3008,7 @@ const ca = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
2975
3008
  b(this, "originalEndDate");
2976
3009
  b(this, "dragPreviewStart");
2977
3010
  b(this, "dragPreviewEnd");
3011
+ b(this, "hoverPreviewEnd");
2978
3012
  b(this, "invalidRangeStart");
2979
3013
  b(this, "invalidRangeEnd");
2980
3014
  b(this, "autoScrollInterval");
@@ -3090,11 +3124,11 @@ const ca = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3090
3124
  showClearButton: t.showClearButton !== void 0 ? t.showClearButton : !0,
3091
3125
  showApplyButton: t.showApplyButton !== void 0 ? t.showApplyButton : t.selectionMode === "range" || t.selectionMode === "multiple",
3092
3126
  showSummary: t.showSummary !== void 0 ? t.showSummary : !0
3093
- }, this.options.showDebugInfo ? Ge() : Xe(), this.options.unifiedNavigation && this.options.unifiedNavigationAnchorIndex !== void 0) {
3127
+ }, this.options.showDebugInfo ? Qe() : Ze(), this.options.unifiedNavigation && this.options.unifiedNavigationAnchorIndex !== void 0) {
3094
3128
  const r = this.options.visibleMonthsCount - 1;
3095
3129
  (this.options.unifiedNavigationAnchorIndex < 0 || this.options.unifiedNavigationAnchorIndex > r) && (console.warn(`unifiedNavigationAnchorIndex (${this.options.unifiedNavigationAnchorIndex}) out of bounds. Using 0.`), this.options.unifiedNavigationAnchorIndex = 0);
3096
3130
  }
3097
- this.weekStartDay = Dt(this.options.weekStartDay), T.debug("Week starts on day:", this.weekStartDay), T.debug("disabledDatesHandling:", this.options.disabledDatesHandling), this.locale = Ee(this.options.locale), this.localeStrings = Rt(this.locale, this.options.customStrings), this.weekdayNames = At(this.locale), this.monthNames = this.options.monthNames || Tt(this.locale), T.debug("Locale:", this.locale, "Weekdays:", this.weekdayNames, "Months:", this.monthNames), this.initializeDateRestrictions(), this.formatInfo = this.parseFormat(this.options.dateFormatMask), T.debug("Format info:", this.formatInfo), this._previousInputValue = "", this.currentDate = /* @__PURE__ */ new Date();
3131
+ this.weekStartDay = wt(this.options.weekStartDay), T.debug("Week starts on day:", this.weekStartDay), T.debug("disabledDatesHandling:", this.options.disabledDatesHandling), this.locale = Ie(this.options.locale), this.localeStrings = Tt(this.locale, this.options.customStrings), this.weekdayNames = Lt(this.locale), this.monthNames = this.options.monthNames || $t(this.locale), T.debug("Locale:", this.locale, "Weekdays:", this.weekdayNames, "Months:", this.monthNames), this.initializeDateRestrictions(), this.formatInfo = this.parseFormat(this.options.dateFormatMask), T.debug("Format info:", this.formatInfo), this._previousInputValue = "", this.currentDate = /* @__PURE__ */ new Date();
3098
3132
  let n;
3099
3133
  if (this.options.initialDate)
3100
3134
  n = _e(this.options.initialDate) || /* @__PURE__ */ new Date(), T.debug(`Using initialDate: ${n.toISOString()}`);
@@ -3120,10 +3154,10 @@ const ca = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3120
3154
  this.selectedDate = null, this.selectedStartDate = null, this.selectedEndDate = null, this.selectedRanges = [], this.selectedDates = [], this.pendingSelection = null, this.focusedDayIndex = null, this.activeMonthIndex = 0, this.showingRollingSelector = [];
3121
3155
  for (let r = 0; r < this.options.visibleMonthsCount; r++)
3122
3156
  this.showingRollingSelector.push(!1);
3123
- this.draggingType = null, this.isDragging = !1, this.dragStartDate = null, this.originalStartDate = null, this.originalEndDate = null, this.dragPreviewStart = null, this.dragPreviewEnd = null, this.invalidRangeStart = null, this.invalidRangeEnd = null, this.autoScrollInterval = null, this.scrollEvents = er(), this.clickEvents = tr(), this.init();
3157
+ this.draggingType = null, this.isDragging = !1, this.dragStartDate = null, this.originalStartDate = null, this.originalEndDate = null, this.dragPreviewStart = null, this.dragPreviewEnd = null, this.hoverPreviewEnd = null, this.invalidRangeStart = null, this.invalidRangeEnd = null, this.autoScrollInterval = null, this.scrollEvents = nr(), this.clickEvents = rr(), this.init();
3124
3158
  }
3125
3159
  init() {
3126
- T.debug("Init called"), this.createCalendar(), this.scrollEvents.init(), this.clickEvents.init(this.calendar, this.input), this.setupEventSubscriptions(), document.addEventListener(K.ACTIVE_EVENT, this.onAnotherPickerActivated), this.input && (this.attachInputListeners(), this.input.value && (T.debug("Parsing pre-filled value:", this.input.value), this.updateCalendarFromInput())), this.options.positioningMode === "inline" && (this.renderCalendar(), this.calendar.classList.add("drp-date-picker--visible", "drp-date-picker--inline"), this.isFirstRender = !1, aa(this)), T.debug("Init complete");
3160
+ T.debug("Init called"), this.createCalendar(), this.scrollEvents.init(), this.clickEvents.init(this.calendar, this.input), this.setupEventSubscriptions(), document.addEventListener(G.ACTIVE_EVENT, this.onAnotherPickerActivated), this.input && (this.attachInputListeners(), this.input.value && (T.debug("Parsing pre-filled value:", this.input.value), this.updateCalendarFromInput())), this.options.positioningMode === "inline" && (this.renderCalendar(), this.calendar.classList.add("drp-date-picker--visible", "drp-date-picker--inline"), this.isFirstRender = !1, ra(this)), T.debug("Init complete");
3127
3161
  }
3128
3162
  /**
3129
3163
  * Set up event subscriptions using the pub/sub event managers
@@ -3211,7 +3245,7 @@ const ca = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3211
3245
  return !1;
3212
3246
  for (const i of Object.keys(a))
3213
3247
  this.options[i] = a[i];
3214
- return n("weekStartDay") && (this.weekStartDay = Dt(this.options.weekStartDay)), (n("locale") || n("customStrings") || n("monthNames")) && (this.locale = Ee(this.options.locale), this.localeStrings = Rt(this.locale, this.options.customStrings), this.weekdayNames = At(this.locale), this.monthNames = this.options.monthNames || Tt(this.locale)), n("dateFormatMask") && (this.formatInfo = this.parseFormat(this.options.dateFormatMask)), (n("minDate") || n("maxDate") || n("disabledDates") || n("specialDates") || n("dateMember")) && this.initializeDateRestrictions(), n("showDebugInfo") && (this.options.showDebugInfo ? Ge() : Xe()), this.renderCalendar(), !0;
3248
+ return n("weekStartDay") && (this.weekStartDay = wt(this.options.weekStartDay)), (n("locale") || n("customStrings") || n("monthNames")) && (this.locale = Ie(this.options.locale), this.localeStrings = Tt(this.locale, this.options.customStrings), this.weekdayNames = Lt(this.locale), this.monthNames = this.options.monthNames || $t(this.locale)), n("dateFormatMask") && (this.formatInfo = this.parseFormat(this.options.dateFormatMask)), (n("minDate") || n("maxDate") || n("disabledDates") || n("specialDates") || n("dateMember")) && this.initializeDateRestrictions(), n("showDebugInfo") && (this.options.showDebugInfo ? Qe() : Ze()), this.renderCalendar(), !0;
3215
3249
  }
3216
3250
  /**
3217
3251
  * Get effective year range considering all constraints
@@ -3220,7 +3254,7 @@ const ca = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3220
3254
  */
3221
3255
  getEffectiveYearRange() {
3222
3256
  const a = (/* @__PURE__ */ new Date()).getFullYear();
3223
- return na(this.options.rollingYearRange, a, this);
3257
+ return ia(this.options.rollingYearRange, a, this);
3224
3258
  }
3225
3259
  /**
3226
3260
  * Get effective month range considering all constraints
@@ -3228,7 +3262,7 @@ const ca = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3228
3262
  * Considers: rollingMonthRange option, or defaults to all months (1-12)
3229
3263
  */
3230
3264
  getEffectiveMonthRange() {
3231
- return ra(this.options.rollingMonthRange);
3265
+ return oa(this.options.rollingMonthRange);
3232
3266
  }
3233
3267
  /**
3234
3268
  * Render action buttons based on configuration
@@ -3285,7 +3319,7 @@ const ca = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3285
3319
  const d = a.find((c) => c.action === s);
3286
3320
  if (!d) return;
3287
3321
  const l = d.getTooltipCallback ? d.getTooltipCallback(this) : d.tooltip;
3288
- l && (o.dataset.tooltipId = `action-${i}`, this.actionButtonTooltipInstances.push(new Zn(o, l, { container: t })));
3322
+ l && (o.dataset.tooltipId = `action-${i}`, this.actionButtonTooltipInstances.push(new ar(o, l, { container: t })));
3289
3323
  });
3290
3324
  }
3291
3325
  destroyAllActionButtonTooltips() {
@@ -3303,7 +3337,7 @@ const ca = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3303
3337
  if (n < t.min || n > t.max)
3304
3338
  return !0;
3305
3339
  const r = this.getEffectiveMonthRange(), i = a.getMonth() + 1;
3306
- return i < r.min || i > r.max ? !0 : fa(
3340
+ return i < r.min || i > r.max ? !0 : ba(
3307
3341
  a,
3308
3342
  this.normalizedMinDate,
3309
3343
  this.normalizedMaxDate,
@@ -3349,40 +3383,40 @@ const ca = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3349
3383
  * Check if there are any disabled dates in a range
3350
3384
  */
3351
3385
  hasDisabledDatesInRange(a, t) {
3352
- return ba(a, t, (n) => this.isDateDisabledInternal(n));
3386
+ return va(a, t, (n) => this.isDateDisabledInternal(n));
3353
3387
  }
3354
3388
  /**
3355
3389
  * Get all enabled dates in a range
3356
3390
  */
3357
3391
  getEnabledDatesInRange(a, t) {
3358
- return ya(a, t, (n) => this.isDateDisabledInternal(n));
3392
+ return Da(a, t, (n) => this.isDateDisabledInternal(n));
3359
3393
  }
3360
3394
  /**
3361
3395
  * Get all disabled dates in a range
3362
3396
  */
3363
3397
  getDisabledDatesInRange(a, t) {
3364
- return va(a, t, (n) => this.isDateDisabledInternal(n));
3398
+ return _a(a, t, (n) => this.isDateDisabledInternal(n));
3365
3399
  }
3366
3400
  /**
3367
3401
  * For 'block' mode: Find the last enabled date before hitting a disabled date
3368
3402
  */
3369
3403
  findLastEnabledBeforeGap(a, t) {
3370
- return Da(a, t, (n) => this.isDateDisabledInternal(n));
3404
+ return wa(a, t, (n) => this.isDateDisabledInternal(n));
3371
3405
  }
3372
3406
  /**
3373
3407
  * For 'split' mode: Split a range into multiple ranges separated by disabled dates
3374
3408
  */
3375
3409
  splitRangeByDisabled(a, t) {
3376
- return _a(a, t, (n) => this.isDateDisabledInternal(n));
3410
+ return xa(a, t, (n) => this.isDateDisabledInternal(n));
3377
3411
  }
3378
3412
  isToday(a) {
3379
- return $t(a);
3413
+ return Pt(a);
3380
3414
  }
3381
3415
  isSameDay(a, t) {
3382
- return zt(a, t);
3416
+ return Nt(a, t);
3383
3417
  }
3384
3418
  isInRange(a) {
3385
- return wa(a, this.selectedStartDate, this.selectedEndDate);
3419
+ return Ma(a, this.selectedStartDate, this.selectedEndDate);
3386
3420
  }
3387
3421
  /**
3388
3422
  * Determine if events/callbacks should be deferred until Apply button click
@@ -3529,7 +3563,17 @@ const ca = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3529
3563
  }, !0), this.calendar.addEventListener("mouseleave", (a) => {
3530
3564
  const t = a.target, n = t.closest(".drp-date-picker__day"), r = t.closest(".drp-date-picker__badge-cell"), i = n || r;
3531
3565
  i && this.currentTooltipTarget === i && this.hideTooltip();
3532
- }, !0), this.calendar.addEventListener("focusin", () => {
3566
+ }, !0), this.calendar.addEventListener("mouseover", (a) => {
3567
+ if (this.options.selectionMode !== "range" || !this.selectedStartDate || this.selectedEndDate || this.isDragging) return;
3568
+ const n = a.target.closest(".drp-date-picker__day");
3569
+ if (!n) return;
3570
+ const r = n.dataset.date;
3571
+ if (!r) return;
3572
+ const [i, o, s] = r.split("-").map(Number), d = new Date(i, o - 1, s);
3573
+ this.hoverPreviewEnd = d, this.updateHoverPreview();
3574
+ }), this.calendar.addEventListener("mouseleave", () => {
3575
+ this.hoverPreviewEnd && (this.hoverPreviewEnd = null, this.updateHoverPreview());
3576
+ }), this.calendar.addEventListener("focusin", () => {
3533
3577
  this.setCalendarActive();
3534
3578
  }), document.addEventListener("keydown", (a) => {
3535
3579
  var t, n, r, i;
@@ -3542,7 +3586,7 @@ const ca = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3542
3586
  this.moveFocus(7), a.preventDefault();
3543
3587
  else if (a.key === "ArrowLeft") {
3544
3588
  if (a.ctrlKey || a.metaKey) {
3545
- w.debug("Ctrl+Left: Navigate to previous month");
3589
+ x.debug("Ctrl+Left: Navigate to previous month");
3546
3590
  const o = this.focusedDayIndex;
3547
3591
  this.prevMonth(this.activeMonthIndex), setTimeout(() => {
3548
3592
  var l, c;
@@ -3554,7 +3598,7 @@ const ca = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3554
3598
  a.preventDefault();
3555
3599
  } else if (a.key === "ArrowRight") {
3556
3600
  if (a.ctrlKey || a.metaKey) {
3557
- w.debug("Ctrl+Right: Navigate to next month");
3601
+ x.debug("Ctrl+Right: Navigate to next month");
3558
3602
  const o = this.focusedDayIndex;
3559
3603
  this.nextMonth(this.activeMonthIndex), setTimeout(() => {
3560
3604
  var l, c;
@@ -3575,13 +3619,13 @@ const ca = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3575
3619
  if (this.options.visibleMonthsCount > 1) {
3576
3620
  const o = a.shiftKey ? -1 : 1, s = this.activeMonthIndex + o;
3577
3621
  if (s >= 0 && s < this.monthDates.length) {
3578
- w.debug(`Tab: switching from Col${this.activeMonthIndex} to Col${s}`);
3622
+ x.debug(`Tab: switching from Col${this.activeMonthIndex} to Col${s}`);
3579
3623
  const d = this.focusedDayIndex ?? 0;
3580
3624
  this.activeMonthIndex = s;
3581
3625
  const l = this.calendar.querySelector(`.drp-date-picker__days[data-month-index="${this.activeMonthIndex}"]`);
3582
3626
  if (l) {
3583
3627
  const c = l.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)");
3584
- this.focusedDayIndex = Math.min(d, c.length - 1), w.debug(`Col${this.activeMonthIndex} Tab: set focusedDayIndex to ${this.focusedDayIndex}`);
3628
+ this.focusedDayIndex = Math.min(d, c.length - 1), x.debug(`Col${this.activeMonthIndex} Tab: set focusedDayIndex to ${this.focusedDayIndex}`);
3585
3629
  }
3586
3630
  this.renderCalendar();
3587
3631
  }
@@ -3610,21 +3654,21 @@ const ca = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3610
3654
  d && (this.focusedDayIndex = Math.min(o !== null ? o : 0, d.length - 1), (l = d[this.focusedDayIndex]) == null || l.classList.add("drp-date-picker__day--focused"), (c = d[this.focusedDayIndex]) == null || c.scrollIntoView({ block: "nearest" }));
3611
3655
  }, 0), a.preventDefault();
3612
3656
  } else if (a.key === "Home") {
3613
- w.debug("Home key pressed, Ctrl:", a.ctrlKey, "Meta:", a.metaKey);
3657
+ x.debug("Home key pressed, Ctrl:", a.ctrlKey, "Meta:", a.metaKey);
3614
3658
  const o = this.monthDates[this.activeMonthIndex].getFullYear(), s = this.monthDates[this.activeMonthIndex].getMonth();
3615
3659
  if (a.ctrlKey || a.metaKey) {
3616
- w.debug("Ctrl+Home: Navigate to year start");
3660
+ x.debug("Ctrl+Home: Navigate to year start");
3617
3661
  const d = this.getEffectiveYearRange(), l = this.getEffectiveMonthRange(), c = s === 0, p = this.focusedDayIndex === 0;
3618
3662
  let u = o, g = Math.max(0, l.min - 1);
3619
- c && p && (u = o - 1), u < d.min && (w.debug("Ctrl+Home: Target year below min, clamping to", d.min), u = d.min);
3663
+ c && p && (u = o - 1), u < d.min && (x.debug("Ctrl+Home: Target year below min, clamping to", d.min), u = d.min);
3620
3664
  const m = new Date(u, g, 1), h = this.monthDates[this.activeMonthIndex];
3621
- (m.getFullYear() !== h.getFullYear() || m.getMonth() !== h.getMonth() || this.focusedDayIndex !== 0) && (w.debug("Going to", g + 1, "/", u), this.monthDates[this.activeMonthIndex] = m, this.renderCalendar(), setTimeout(() => {
3622
- var x, E;
3665
+ (m.getFullYear() !== h.getFullYear() || m.getMonth() !== h.getMonth() || this.focusedDayIndex !== 0) && (x.debug("Going to", g + 1, "/", u), this.monthDates[this.activeMonthIndex] = m, this.renderCalendar(), setTimeout(() => {
3666
+ var M, C;
3623
3667
  const v = this.calendar.querySelector(`.drp-date-picker__days[data-month-index="${this.activeMonthIndex}"]`), f = v == null ? void 0 : v.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)");
3624
- f && (this.focusedDayIndex = 0, (x = f[0]) == null || x.classList.add("drp-date-picker__day--focused"), (E = f[0]) == null || E.scrollIntoView({ block: "nearest" }));
3668
+ f && (this.focusedDayIndex = 0, (M = f[0]) == null || M.classList.add("drp-date-picker__day--focused"), (C = f[0]) == null || C.scrollIntoView({ block: "nearest" }));
3625
3669
  }, 0));
3626
- } else if (w.debug("Home: Navigate to first day (cycles to previous month if already there)"), this.focusedDayIndex === 0)
3627
- w.debug("Already on first day, going to previous month"), this.prevMonth(this.activeMonthIndex), setTimeout(() => {
3670
+ } else if (x.debug("Home: Navigate to first day (cycles to previous month if already there)"), this.focusedDayIndex === 0)
3671
+ x.debug("Already on first day, going to previous month"), this.prevMonth(this.activeMonthIndex), setTimeout(() => {
3628
3672
  var p, u;
3629
3673
  const l = this.calendar.querySelector(`.drp-date-picker__days[data-month-index="${this.activeMonthIndex}"]`), c = l == null ? void 0 : l.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)");
3630
3674
  c && (this.focusedDayIndex = 0, this.calendar.querySelectorAll(".drp-date-picker__day--focused").forEach((g) => g.classList.remove("drp-date-picker__day--focused")), (p = c[0]) == null || p.classList.add("drp-date-picker__day--focused"), (u = c[0]) == null || u.scrollIntoView({ block: "nearest" }));
@@ -3636,24 +3680,24 @@ const ca = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3636
3680
  }
3637
3681
  a.preventDefault();
3638
3682
  } else if (a.key === "End") {
3639
- w.debug("End key pressed, Ctrl:", a.ctrlKey, "Meta:", a.metaKey);
3683
+ x.debug("End key pressed, Ctrl:", a.ctrlKey, "Meta:", a.metaKey);
3640
3684
  const o = this.monthDates[this.activeMonthIndex].getFullYear(), s = this.monthDates[this.activeMonthIndex].getMonth();
3641
3685
  if (a.ctrlKey || a.metaKey) {
3642
- w.debug("Ctrl+End: Navigate to year end");
3686
+ x.debug("Ctrl+End: Navigate to year end");
3643
3687
  const d = this.getEffectiveYearRange(), l = this.getEffectiveMonthRange(), c = s === 11, p = this.calendar.querySelector(`.drp-date-picker__days[data-month-index="${this.activeMonthIndex}"]`), u = p == null ? void 0 : p.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)"), g = u && this.focusedDayIndex === u.length - 1;
3644
3688
  let m = o, h = Math.min(11, l.max - 1);
3645
- c && g && (m = o + 1), m > d.max && (w.debug("Ctrl+End: Target year above max, clamping to", d.max), m = d.max);
3646
- const v = new Date(m, h + 1, 0).getDate(), f = new Date(m, h, v), x = this.monthDates[this.activeMonthIndex];
3647
- (f.getFullYear() !== x.getFullYear() || f.getMonth() !== x.getMonth() || !g) && (w.debug("Going to", h + 1, "/", m), this.monthDates[this.activeMonthIndex] = f, this.renderCalendar(), setTimeout(() => {
3689
+ c && g && (m = o + 1), m > d.max && (x.debug("Ctrl+End: Target year above max, clamping to", d.max), m = d.max);
3690
+ const v = new Date(m, h + 1, 0).getDate(), f = new Date(m, h, v), M = this.monthDates[this.activeMonthIndex];
3691
+ (f.getFullYear() !== M.getFullYear() || f.getMonth() !== M.getMonth() || !g) && (x.debug("Going to", h + 1, "/", m), this.monthDates[this.activeMonthIndex] = f, this.renderCalendar(), setTimeout(() => {
3648
3692
  var D, _;
3649
- const E = this.calendar.querySelector(`.drp-date-picker__days[data-month-index="${this.activeMonthIndex}"]`), S = E == null ? void 0 : E.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)");
3693
+ const C = this.calendar.querySelector(`.drp-date-picker__days[data-month-index="${this.activeMonthIndex}"]`), S = C == null ? void 0 : C.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)");
3650
3694
  S && (this.focusedDayIndex = S.length - 1, (D = S[this.focusedDayIndex]) == null || D.classList.add("drp-date-picker__day--focused"), (_ = S[this.focusedDayIndex]) == null || _.scrollIntoView({ block: "nearest" }));
3651
3695
  }, 0));
3652
3696
  } else {
3653
- w.debug("End: Navigate to last day (cycles to next month if already there)");
3697
+ x.debug("End: Navigate to last day (cycles to next month if already there)");
3654
3698
  const d = this.calendar.querySelector(`.drp-date-picker__days[data-month-index="${this.activeMonthIndex}"]`), l = d == null ? void 0 : d.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)");
3655
3699
  if (!l) return;
3656
- this.focusedDayIndex === l.length - 1 ? (w.debug("Already on last day, going to next month"), this.nextMonth(this.activeMonthIndex), setTimeout(() => {
3700
+ this.focusedDayIndex === l.length - 1 ? (x.debug("Already on last day, going to next month"), this.nextMonth(this.activeMonthIndex), setTimeout(() => {
3657
3701
  var g, m;
3658
3702
  const p = this.calendar.querySelector(`.drp-date-picker__days[data-month-index="${this.activeMonthIndex}"]`), u = p == null ? void 0 : p.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)");
3659
3703
  u && (this.focusedDayIndex = u.length - 1, this.calendar.querySelectorAll(".drp-date-picker__day--focused").forEach((h) => h.classList.remove("drp-date-picker__day--focused")), (g = u[this.focusedDayIndex]) == null || g.classList.add("drp-date-picker__day--focused"), (m = u[this.focusedDayIndex]) == null || m.scrollIntoView({ block: "nearest" }));
@@ -3748,148 +3792,151 @@ const ca = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3748
3792
  * at a time, even though the keydown listener lives on `document`.
3749
3793
  */
3750
3794
  setCalendarActive() {
3751
- this.isCalendarActive || (this.isCalendarActive = !0, document.dispatchEvent(new CustomEvent(K.ACTIVE_EVENT, { detail: this })));
3795
+ this.isCalendarActive || (this.isCalendarActive = !0, document.dispatchEvent(new CustomEvent(G.ACTIVE_EVENT, { detail: this })));
3752
3796
  }
3753
3797
  destroy() {
3754
- this.scrollSubscriptions.forEach((a) => a.unsubscribe()), this.scrollSubscriptions = [], this.clickSubscriptions.forEach((a) => a.unsubscribe()), this.clickSubscriptions = [], this.scrollEvents.destroy(), this.clickEvents.destroy(), document.removeEventListener(K.ACTIVE_EVENT, this.onAnotherPickerActivated), this.destroyAllActionButtonTooltips(), this.calendar.remove(), this.tooltip && this.tooltip.remove(), this.modalBackdrop && (this.modalBackdrop.remove(), this.modalBackdrop = null);
3798
+ this.scrollSubscriptions.forEach((a) => a.unsubscribe()), this.scrollSubscriptions = [], this.clickSubscriptions.forEach((a) => a.unsubscribe()), this.clickSubscriptions = [], this.scrollEvents.destroy(), this.clickEvents.destroy(), document.removeEventListener(G.ACTIVE_EVENT, this.onAnotherPickerActivated), this.destroyAllActionButtonTooltips(), this.calendar.remove(), this.tooltip && this.tooltip.remove(), this.modalBackdrop && (this.modalBackdrop.remove(), this.modalBackdrop = null);
3755
3799
  }
3756
3800
  // UI methods - wrappers for pure functions
3757
3801
  show() {
3758
- return ta(this);
3802
+ return na(this);
3759
3803
  }
3760
3804
  hide() {
3761
- return yt(this);
3805
+ return je(this);
3762
3806
  }
3763
3807
  toggle() {
3764
- return Nn(this);
3808
+ return On(this);
3765
3809
  }
3766
3810
  position() {
3767
- return at(this);
3811
+ return it(this);
3768
3812
  }
3769
3813
  showTooltip(a, t) {
3770
- return Pn(this, a, t);
3814
+ return Fn(this, a, t);
3771
3815
  }
3772
3816
  hideTooltip() {
3773
- return On(this);
3817
+ return Hn(this);
3774
3818
  }
3775
3819
  showMessage(a, t, n) {
3776
- return nt(this, a, t, n);
3820
+ return ot(this, a, t, n);
3777
3821
  }
3778
3822
  hideMessage() {
3779
3823
  return se(this);
3780
3824
  }
3781
3825
  // Rendering methods - wrappers for pure functions
3782
3826
  renderCalendar() {
3783
- return Kn(this);
3827
+ return Xn(this);
3784
3828
  }
3785
3829
  renderNormalView(a) {
3786
- return ia(this, a);
3830
+ return sa(this, a);
3787
3831
  }
3788
3832
  renderDays(a, t) {
3789
- return oa(this, a, t);
3833
+ return da(this, a, t);
3790
3834
  }
3791
3835
  renderRollingSelector(a) {
3792
- return da(this, a);
3836
+ return ca(this, a);
3793
3837
  }
3794
3838
  updateSummary() {
3795
- return Jn(this);
3839
+ return Zn(this);
3796
3840
  }
3797
3841
  updateSummaryWithPreview() {
3798
- return la(this);
3842
+ return pa(this);
3799
3843
  }
3800
3844
  updateDragPreview() {
3801
- return Qn(this);
3845
+ return tr(this);
3846
+ }
3847
+ updateHoverPreview() {
3848
+ return er(this);
3802
3849
  }
3803
3850
  // Navigation methods - wrappers for pure functions
3804
3851
  toggleRollingSelector(a) {
3805
- return Fn(this, a);
3852
+ return Yn(this, a);
3806
3853
  }
3807
3854
  selectYear(a, t) {
3808
- return Hn(this, a, t);
3855
+ return Bn(this, a, t);
3809
3856
  }
3810
3857
  selectMonth(a, t) {
3811
- return Yn(this, a, t);
3858
+ return Vn(this, a, t);
3812
3859
  }
3813
3860
  checkAndResolveCollisions(a) {
3814
3861
  return be(this, a);
3815
3862
  }
3816
3863
  prevMonth(a) {
3817
- return Le(this, a);
3864
+ return $e(this, a);
3818
3865
  }
3819
3866
  nextMonth(a) {
3820
- return $e(this, a);
3867
+ return ze(this, a);
3821
3868
  }
3822
3869
  // Unified navigation methods
3823
3870
  unifiedPrevMonth() {
3824
- return Un(this);
3871
+ return Wn(this);
3825
3872
  }
3826
3873
  unifiedNextMonth() {
3827
- return Vn(this);
3874
+ return qn(this);
3828
3875
  }
3829
3876
  toggleUnifiedRollingSelector() {
3830
- return Wn(this);
3877
+ return Kn(this);
3831
3878
  }
3832
3879
  setUnifiedMonth(a) {
3833
- return qn(this, a);
3880
+ return jn(this, a);
3834
3881
  }
3835
3882
  setUnifiedYear(a) {
3836
- return jn(this, a);
3883
+ return Gn(this, a);
3837
3884
  }
3838
3885
  findNextEnabledDayIndex(a, t, n, r) {
3839
3886
  return xe(this, a, t, n);
3840
3887
  }
3841
3888
  moveFocus(a) {
3842
- return Bn(this, a);
3889
+ return Un(this, a);
3843
3890
  }
3844
3891
  // Selection methods - wrappers for pure functions
3845
3892
  async selectDay(a) {
3846
- return await Sn(this, a);
3893
+ return await En(this, a);
3847
3894
  }
3848
3895
  selectToday() {
3849
- return Cn(this);
3896
+ return In(this);
3850
3897
  }
3851
3898
  clearSelection() {
3852
- return En(this);
3899
+ return kn(this);
3853
3900
  }
3854
3901
  apply() {
3855
- return In(this);
3902
+ return Rn(this);
3856
3903
  }
3857
3904
  // Interaction methods - wrappers for pure functions
3858
3905
  initDragListeners() {
3859
- return kn(this);
3906
+ return An(this);
3860
3907
  }
3861
3908
  startDrag(a, t, n) {
3862
- return Jt(this, a, t, n);
3909
+ return Zt(this, a, t, n);
3863
3910
  }
3864
3911
  onDragMove(a) {
3865
- return Qt(this, a);
3912
+ return ea(this, a);
3866
3913
  }
3867
3914
  async onDragEnd(a) {
3868
- return await Zt(this);
3915
+ return await ta(this);
3869
3916
  }
3870
3917
  findNearestEnabledDate(a, t = "forward") {
3871
- return Oe(this, a, t);
3918
+ return Fe(this, a, t);
3872
3919
  }
3873
3920
  handleInputMask(a) {
3874
- return Rn(this, a);
3921
+ return Tn(this, a);
3875
3922
  }
3876
3923
  applyMask(a) {
3877
3924
  return me(this, a);
3878
3925
  }
3879
3926
  applyRangeMask(a) {
3880
- return ea(this, a);
3927
+ return aa(this, a);
3881
3928
  }
3882
3929
  handleKeydown(a) {
3883
- return An(this, a);
3930
+ return Ln(this, a);
3884
3931
  }
3885
3932
  handlePaste(a) {
3886
- return Tn(this, a);
3933
+ return $n(this, a);
3887
3934
  }
3888
3935
  updateCalendarFromInput() {
3889
- return qe(this);
3936
+ return We(this);
3890
3937
  }
3891
3938
  parseAndUpdateSingleDate(a, t = "single") {
3892
- return Ae(this, a, t);
3939
+ return Te(this, a, t);
3893
3940
  }
3894
3941
  /**
3895
3942
  * Inject global styles for the date picker
@@ -3915,12 +3962,12 @@ const ca = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3915
3962
  * ```
3916
3963
  */
3917
3964
  static injectGlobalStyles(a = !1) {
3918
- if (K.stylesInjected && !a) {
3965
+ if (G.stylesInjected && !a) {
3919
3966
  T.debug("Styles already injected, skipping");
3920
3967
  return;
3921
3968
  }
3922
3969
  const t = document.createElement("style");
3923
- t.setAttribute("data-source", "web-daterangepicker"), t.textContent = ca, document.head.appendChild(t), K.stylesInjected = !0, T.info("Global styles injected successfully");
3970
+ t.setAttribute("data-source", "web-daterangepicker"), t.textContent = ua, document.head.appendChild(t), G.stylesInjected = !0, T.info("Global styles injected successfully");
3924
3971
  }
3925
3972
  /**
3926
3973
  * Check if styles appear to be loaded
@@ -3940,71 +3987,93 @@ const ca = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3940
3987
  }
3941
3988
  };
3942
3989
  // Static flag to track if styles have been injected
3943
- b(K, "stylesInjected", !1), b(K, "ACTIVE_EVENT", "drp-picker-activated");
3944
- let it = K;
3945
- const ae = (e, a) => e.getAttribute(a) || void 0, je = (e, a) => {
3990
+ b(G, "stylesInjected", !1), b(G, "ACTIVE_EVENT", "drp-picker-activated");
3991
+ let dt = G;
3992
+ const O = (e, a) => e.getAttribute(a) || void 0, Xe = (e, a) => {
3946
3993
  const t = parseInt(e.getAttribute(a) || "0");
3947
3994
  return Number.isFinite(t) && t > 0 ? t : void 0;
3948
- }, ar = (e, a) => {
3995
+ }, ir = (e, a) => {
3949
3996
  const t = e.getAttribute(a);
3950
3997
  if (t == null) return;
3951
3998
  const n = parseInt(t);
3952
3999
  return Number.isFinite(n) ? n : void 0;
3953
- }, Ke = (e, a) => e.hasAttribute(a), we = (e, a) => e.hasAttribute(a) ? e.getAttribute(a) === "true" : void 0, nr = (e, a) => e.hasAttribute(a) ? e.getAttribute(a) !== "false" : void 0, le = (e) => (a, t) => {
4000
+ }, Je = (e, a) => e.hasAttribute(a), we = (e, a) => e.hasAttribute(a) ? e.getAttribute(a) === "true" : void 0, or = (e, a) => e.hasAttribute(a) ? e.getAttribute(a) !== "false" : void 0, le = (e) => (a, t) => {
3954
4001
  const n = a.getAttribute(t);
3955
4002
  return n && e.includes(n) ? n : void 0;
3956
- }, Lt = (e) => (a, t) => a.getAttribute(t) || e, rr = (e, a) => {
4003
+ }, zt = (e) => (a, t) => a.getAttribute(t) || e, sr = (e, a) => {
3957
4004
  const t = e.getAttribute(a);
3958
4005
  if (!t) return;
3959
4006
  const n = t.split(",").map((r) => parseInt(r.trim())).filter((r) => !isNaN(r) && r >= 0 && r <= 6);
3960
4007
  return n.length ? n : void 0;
3961
- }, ir = (e, a) => {
4008
+ }, dr = (e, a) => {
4009
+ const t = e.getAttribute(a);
4010
+ if (!t) return;
4011
+ const n = t.split(",").map((r) => r.trim()).filter(Boolean);
4012
+ return n.length ? n : void 0;
4013
+ }, lr = (e, a) => {
3962
4014
  const t = e.getAttribute(a);
3963
4015
  if (!t) return;
3964
4016
  if (t === "auto") return "auto";
3965
4017
  const n = parseInt(t);
3966
4018
  return !isNaN(n) && n >= 0 && n <= 6 ? n : void 0;
3967
- }, or = ["single", "range", "multiple"], sr = ["focus", "typing", "manual"], dr = ["horizontal", "grid"], lr = ["inline", "floating", "modal"], cr = ["allow", "prevent", "block", "split", "individual"], pr = ["never", "selection", "apply"], ot = [
3968
- { attr: "selection-mode", key: "selectionMode", parser: le(or) },
3969
- { attr: "date-format-mask", key: "dateFormatMask", parser: Lt("YYYY-MM-DD") },
3970
- { attr: "visible-months-count", key: "visibleMonthsCount", parser: je },
3971
- { attr: "calendar-open-trigger", key: "calendarOpenTrigger", parser: le(sr) },
3972
- { attr: "month-layout", key: "monthLayout", parser: le(dr) },
3973
- { attr: "grid-rows", key: "gridRows", parser: je },
3974
- { attr: "grid-columns", key: "gridColumns", parser: je },
3975
- { attr: "unified-navigation", key: "unifiedNavigation", parser: Ke },
3976
- { attr: "unified-navigation-anchor-index", key: "unifiedNavigationAnchorIndex", parser: ar },
3977
- { attr: "unified-header-interactive", key: "unifiedHeaderInteractive", parser: Ke },
3978
- { attr: "calendar-placement", key: "calendarPlacement", parser: ae },
3979
- { attr: "positioning-mode", key: "positioningMode", parser: le(lr) },
3980
- { attr: "week-start-day", key: "weekStartDay", parser: ir },
3981
- { attr: "min-date", key: "minDate", parser: ae },
3982
- { attr: "max-date", key: "maxDate", parser: ae },
3983
- { attr: "initial-date", key: "initialDate", parser: ae },
3984
- { attr: "disabled-weekdays", key: "disabledWeekdays", parser: rr },
3985
- { attr: "disabled-dates-handling", key: "disabledDatesHandling", parser: le(cr) },
4019
+ }, cr = ["single", "range", "multiple"], pr = ["focus", "typing", "manual"], ur = ["horizontal", "grid"], gr = ["inline", "floating", "modal"], hr = ["allow", "prevent", "block", "split", "individual"], fr = ["never", "selection", "apply"], lt = [
4020
+ { attr: "selection-mode", key: "selectionMode", parser: le(cr) },
4021
+ { attr: "date-format-mask", key: "dateFormatMask", parser: zt("YYYY-MM-DD") },
4022
+ { attr: "visible-months-count", key: "visibleMonthsCount", parser: Xe },
4023
+ { attr: "calendar-open-trigger", key: "calendarOpenTrigger", parser: le(pr) },
4024
+ { attr: "month-layout", key: "monthLayout", parser: le(ur) },
4025
+ { attr: "grid-rows", key: "gridRows", parser: Xe },
4026
+ { attr: "grid-columns", key: "gridColumns", parser: Xe },
4027
+ { attr: "unified-navigation", key: "unifiedNavigation", parser: Je },
4028
+ { attr: "unified-navigation-anchor-index", key: "unifiedNavigationAnchorIndex", parser: ir },
4029
+ { attr: "unified-header-interactive", key: "unifiedHeaderInteractive", parser: Je },
4030
+ { attr: "calendar-placement", key: "calendarPlacement", parser: O },
4031
+ { attr: "positioning-mode", key: "positioningMode", parser: le(gr) },
4032
+ { attr: "week-start-day", key: "weekStartDay", parser: lr },
4033
+ { attr: "min-date", key: "minDate", parser: O },
4034
+ { attr: "max-date", key: "maxDate", parser: O },
4035
+ { attr: "initial-date", key: "initialDate", parser: O },
4036
+ { attr: "disabled-weekdays", key: "disabledWeekdays", parser: sr },
4037
+ { attr: "disabled-dates", key: "disabledDates", parser: dr },
4038
+ { attr: "date-member", key: "dateMember", parser: O },
4039
+ { attr: "badge-text-member", key: "badgeTextMember", parser: O },
4040
+ { attr: "badge-class-member", key: "badgeClassMember", parser: O },
4041
+ { attr: "day-class-member", key: "dayClassMember", parser: O },
4042
+ { attr: "badge-tooltip-member", key: "badgeTooltipMember", parser: O },
4043
+ { attr: "day-tooltip-member", key: "dayTooltipMember", parser: O },
4044
+ { attr: "is-disabled-member", key: "isDisabledMember", parser: O },
4045
+ { attr: "disabled-dates-handling", key: "disabledDatesHandling", parser: le(hr) },
3986
4046
  { attr: "highlight-disabled-in-range", key: "highlightDisabledInRange", parser: we },
3987
- { attr: "locale", key: "locale", parser: Lt("auto") },
3988
- { attr: "display-format-mask", key: "displayFormatMask", parser: ae },
3989
- { attr: "show-debug-info", key: "showDebugInfo", parser: Ke },
3990
- { attr: "rolling-year-range", key: "rollingYearRange", parser: ae },
3991
- { attr: "rolling-month-range", key: "rollingMonthRange", parser: ae },
3992
- { attr: "auto-close", key: "autoClose", parser: le(pr) },
3993
- { attr: "close-on-scroll", key: "closeOnScroll", parser: nr },
4047
+ { attr: "locale", key: "locale", parser: zt("auto") },
4048
+ { attr: "display-format-mask", key: "displayFormatMask", parser: O },
4049
+ { attr: "show-debug-info", key: "showDebugInfo", parser: Je },
4050
+ { attr: "rolling-year-range", key: "rollingYearRange", parser: O },
4051
+ { attr: "rolling-month-range", key: "rollingMonthRange", parser: O },
4052
+ { attr: "auto-close", key: "autoClose", parser: le(fr) },
4053
+ { attr: "close-on-scroll", key: "closeOnScroll", parser: or },
3994
4054
  { attr: "show-today-button", key: "showTodayButton", parser: we },
3995
4055
  { attr: "show-clear-button", key: "showClearButton", parser: we },
3996
4056
  { attr: "show-apply-button", key: "showApplyButton", parser: we },
3997
4057
  { attr: "show-summary", key: "showSummary", parser: we }
3998
- ], ur = ["value", "placeholder", "disabled", "enable-transitions", "input-size", "mobile-modal-breakpoint", "mobile-modal-min-height"];
3999
- function gr(e) {
4058
+ ], mr = ["value", "placeholder", "disabled", "enable-transitions", "input-size", "mobile-modal-breakpoint", "mobile-modal-min-height"], br = /* @__PURE__ */ new Set([
4059
+ "disabledDates",
4060
+ "dateMember",
4061
+ "badgeTextMember",
4062
+ "badgeClassMember",
4063
+ "dayClassMember",
4064
+ "badgeTooltipMember",
4065
+ "dayTooltipMember",
4066
+ "isDisabledMember"
4067
+ ]);
4068
+ function yr(e) {
4000
4069
  const a = {};
4001
- for (const t of ot) {
4070
+ for (const t of lt) {
4002
4071
  const n = t.parser(e, t.attr);
4003
4072
  n !== void 0 && (a[t.key] = n);
4004
4073
  }
4005
4074
  return a;
4006
4075
  }
4007
- class pa extends HTMLElement {
4076
+ class ga extends HTMLElement {
4008
4077
  constructor() {
4009
4078
  super();
4010
4079
  b(this, "picker");
@@ -4034,6 +4103,10 @@ class pa extends HTMLElement {
4034
4103
  b(this, "_isDisabledMember");
4035
4104
  // Action button configuration
4036
4105
  b(this, "_actionButtons");
4106
+ // Localization overrides (no HTML attribute — content is too structured for
4107
+ // a string attribute; held on the element like the other complex options).
4108
+ b(this, "_customStrings");
4109
+ b(this, "_monthNames");
4037
4110
  // Deferred re-initialization flag
4038
4111
  b(this, "_pendingReinit", !1);
4039
4112
  // Auto-engage state: matchMedia listeners that flip positioning-mode between
@@ -4047,8 +4120,8 @@ class pa extends HTMLElement {
4047
4120
  }
4048
4121
  static get observedAttributes() {
4049
4122
  return [
4050
- ...ot.map((t) => t.attr),
4051
- ...ur
4123
+ ...lt.map((t) => t.attr),
4124
+ ...mr
4052
4125
  ];
4053
4126
  }
4054
4127
  applyTransitionStyles() {
@@ -4062,7 +4135,29 @@ class pa extends HTMLElement {
4062
4135
  this.inputElement.classList.remove("drp-input--xs", "drp-input--sm", "drp-input--lg", "drp-input--xl"), this.inputElement.classList.remove("drp-date-picker-input--xs", "drp-date-picker-input--sm", "drp-date-picker-input--lg", "drp-date-picker-input--xl"), t && t !== "md" && (this.inputElement.classList.add(`drp-input--${t}`), this.inputElement.classList.add(`drp-date-picker-input--${t}`));
4063
4136
  }
4064
4137
  connectedCallback() {
4065
- this.render(), this.initializePicker(), this.setupMobileModalListener();
4138
+ this._liftPreUpgradeProperties(), this.render(), this.initializePicker(), this.setupMobileModalListener();
4139
+ }
4140
+ /**
4141
+ * Standard Custom Elements upgrade fix: if a consumer assigned to a
4142
+ * property setter (e.g. `el.actionButtons = [...]`) before the element
4143
+ * class was registered, that assignment created an own-property that now
4144
+ * shadows the class accessor. Re-running the assignment through the
4145
+ * accessor — after deleting the own-property — routes it through the
4146
+ * setter, populating the private backing field that `initializePicker`
4147
+ * is about to read.
4148
+ */
4149
+ _liftPreUpgradeProperties() {
4150
+ const t = /* @__PURE__ */ new Set();
4151
+ for (let n = Object.getPrototypeOf(this); n && n !== HTMLElement.prototype; n = Object.getPrototypeOf(n))
4152
+ for (const r of Object.getOwnPropertyNames(n)) {
4153
+ if (t.has(r)) continue;
4154
+ t.add(r);
4155
+ const i = Object.getOwnPropertyDescriptor(n, r);
4156
+ if (i != null && i.set && Object.prototype.hasOwnProperty.call(this, r)) {
4157
+ const o = this[r];
4158
+ delete this[r], this[r] = o;
4159
+ }
4160
+ }
4066
4161
  }
4067
4162
  disconnectedCallback() {
4068
4163
  this.teardownMobileModalListener(), this.picker && this.picker.destroy();
@@ -4120,13 +4215,14 @@ class pa extends HTMLElement {
4120
4215
  this.inputElement.placeholder = r;
4121
4216
  return;
4122
4217
  }
4123
- if (t === "disabled" && this.inputElement) {
4218
+ if (t === "display-format-mask" && this.inputElement && !this.hasAttribute("placeholder") && (this.inputElement.placeholder = r ?? ""), t === "disabled" && this.inputElement) {
4124
4219
  this.inputElement.disabled = r !== null;
4125
4220
  return;
4126
4221
  }
4127
4222
  if (!this.picker) return;
4128
- const i = ot.find((o) => o.attr === t);
4223
+ const i = lt.find((o) => o.attr === t);
4129
4224
  if (i) {
4225
+ if (br.has(i.key) && this[i.key] !== void 0) return;
4130
4226
  const o = i.parser(this, i.attr);
4131
4227
  if (this.picker.updateOptions({ [i.key]: o })) return;
4132
4228
  }
@@ -4134,11 +4230,11 @@ class pa extends HTMLElement {
4134
4230
  }
4135
4231
  render() {
4136
4232
  const t = document.createElement("style");
4137
- t.textContent = ca, this.shadow.appendChild(t);
4233
+ t.textContent = ua, this.shadow.appendChild(t);
4138
4234
  const n = this.getAttribute("positioning-mode") || "floating";
4139
4235
  if (n === "floating" || n === "modal") {
4140
4236
  this.inputElement = document.createElement("input"), this.inputElement.type = "text", this.inputElement.classList.add("drp-input", "drp-date-picker-input");
4141
- const r = this.getAttribute("placeholder");
4237
+ const r = this.getAttribute("placeholder") ?? this.getAttribute("display-format-mask");
4142
4238
  r && (this.inputElement.placeholder = r);
4143
4239
  const i = this.getAttribute("value");
4144
4240
  i && (this.inputElement.value = i), this.hasAttribute("disabled") && (this.inputElement.disabled = !0), this.shadow.appendChild(this.inputElement), this.applyInputSizeStyles();
@@ -4147,28 +4243,31 @@ class pa extends HTMLElement {
4147
4243
  initializePicker() {
4148
4244
  const t = this.getAttribute("positioning-mode") || "floating";
4149
4245
  if ((t === "floating" || t === "modal") && !this.inputElement) return;
4150
- const n = {
4151
- ...gr(this),
4246
+ const n = yr(this), r = {
4247
+ ...n,
4152
4248
  // Defaults that aren't attribute-derived or that always need a value
4153
4249
  selectionMode: this.getAttribute("selection-mode") || "single",
4154
4250
  calendarOpenTrigger: this.getAttribute("calendar-open-trigger") || "focus",
4155
4251
  positioningMode: t,
4156
- onSelect: (i) => this.handleDateSelect(i),
4252
+ onSelect: (o) => this.handleDateSelect(o),
4157
4253
  container: this.shadow,
4158
4254
  // Append calendar to shadow root
4159
- // Complex data — held on the element, not attributes
4160
- disabledDates: this._disabledDates,
4255
+ // Complex data — held on the element, not attributes.
4256
+ // Dual-path keys (disabledDates + the *Member family) are also
4257
+ // attribute-parseable; the property wins if set (consistent with
4258
+ // whenDefined-set complex data being the canonical escape hatch).
4259
+ disabledDates: this._disabledDates ?? n.disabledDates,
4161
4260
  specialDates: this._specialDates,
4162
4261
  getDateMetadataCallback: this._getDateMetadataCallback,
4163
4262
  badgeTooltipCallback: this._badgeTooltipCallback,
4164
4263
  dayTooltipCallback: this._dayTooltipCallback,
4165
- dateMember: this._dateMember,
4166
- badgeTextMember: this._badgeTextMember,
4167
- badgeClassMember: this._badgeClassMember,
4168
- dayClassMember: this._dayClassMember,
4169
- badgeTooltipMember: this._badgeTooltipMember,
4170
- dayTooltipMember: this._dayTooltipMember,
4171
- isDisabledMember: this._isDisabledMember,
4264
+ dateMember: this._dateMember ?? n.dateMember,
4265
+ badgeTextMember: this._badgeTextMember ?? n.badgeTextMember,
4266
+ badgeClassMember: this._badgeClassMember ?? n.badgeClassMember,
4267
+ dayClassMember: this._dayClassMember ?? n.dayClassMember,
4268
+ badgeTooltipMember: this._badgeTooltipMember ?? n.badgeTooltipMember,
4269
+ dayTooltipMember: this._dayTooltipMember ?? n.dayTooltipMember,
4270
+ isDisabledMember: this._isDisabledMember ?? n.isDisabledMember,
4172
4271
  customStylesCallback: this._customStylesCallback,
4173
4272
  renderDayCallback: this._renderDayCallback,
4174
4273
  renderDayContentCallback: this._renderDayContentCallback,
@@ -4177,20 +4276,15 @@ class pa extends HTMLElement {
4177
4276
  formatSummaryCallback: this._formatSummaryCallback,
4178
4277
  getUnifiedHeaderCallback: this._getUnifiedHeaderCallback,
4179
4278
  getMonthHeaderCallback: this._getMonthHeaderCallback,
4180
- actionButtons: this._actionButtons
4181
- }, r = t === "inline" ? null : this.inputElement;
4182
- if (this.picker = new it(r, n), this.picker.calendar.addEventListener("custom-action", (i) => {
4183
- const o = i;
4184
- this.dispatchEvent(new CustomEvent("custom-action", {
4185
- detail: o.detail,
4186
- bubbles: !0,
4187
- composed: !0
4188
- }));
4189
- }), this._customStylesCallback) {
4190
- const i = this._customStylesCallback();
4191
- if (i) {
4192
- const o = document.createElement("style");
4193
- o.className = "drp-custom-styles", o.textContent = i, this.shadow.appendChild(o);
4279
+ actionButtons: this._actionButtons,
4280
+ customStrings: this._customStrings,
4281
+ monthNames: this._monthNames
4282
+ }, i = t === "inline" ? null : this.inputElement;
4283
+ if (this.picker = new dt(i, r), this._customStylesCallback) {
4284
+ const o = this._customStylesCallback();
4285
+ if (o) {
4286
+ const s = document.createElement("style");
4287
+ s.className = "drp-custom-styles", s.textContent = o, this.shadow.appendChild(s);
4194
4288
  }
4195
4289
  }
4196
4290
  setTimeout(() => this.applyTransitionStyles(), 0);
@@ -4308,8 +4402,9 @@ class pa extends HTMLElement {
4308
4402
  setInputValue(t) {
4309
4403
  this.inputElement && (this.inputElement.value = t), this.setAttribute("value", t);
4310
4404
  }
4405
+ /** @deprecated Use the `monthNames` property setter instead. */
4311
4406
  setMonthNames(t) {
4312
- this.picker && (this.picker.monthNames = t, this.picker.renderCalendar());
4407
+ this.monthNames = t;
4313
4408
  }
4314
4409
  setRollingItemAlignment(t) {
4315
4410
  const n = this.shadow.querySelector(".drp-date-picker");
@@ -4515,6 +4610,19 @@ class pa extends HTMLElement {
4515
4610
  set actionButtons(t) {
4516
4611
  this._actionButtons = t, this.applyOptionUpdate("actionButtons", t);
4517
4612
  }
4613
+ // Localization overrides
4614
+ get customStrings() {
4615
+ return this._customStrings;
4616
+ }
4617
+ set customStrings(t) {
4618
+ this._customStrings = t, this.applyOptionUpdate("customStrings", t);
4619
+ }
4620
+ get monthNames() {
4621
+ return this._monthNames;
4622
+ }
4623
+ set monthNames(t) {
4624
+ this._monthNames = t, this.applyOptionUpdate("monthNames", t);
4625
+ }
4518
4626
  // Reactive selection properties (forward to picker)
4519
4627
  get selectedRanges() {
4520
4628
  var t;
@@ -4545,33 +4653,33 @@ class pa extends HTMLElement {
4545
4653
  this.picker && (this.picker.isOpen = t);
4546
4654
  }
4547
4655
  }
4548
- customElements.get("web-daterangepicker") || customElements.define("web-daterangepicker", pa);
4549
- function hr() {
4656
+ customElements.get("web-daterangepicker") || customElements.define("web-daterangepicker", ga);
4657
+ function vr() {
4550
4658
  return Array.from(document.querySelectorAll("web-daterangepicker"));
4551
4659
  }
4552
4660
  typeof window < "u" && (window.components = window.components || {}, window.components["web-daterangepicker"] = {
4553
- version: () => "1.12.0",
4661
+ version: () => "1.13.0",
4554
4662
  config: {
4555
4663
  name: "@keenmate/web-daterangepicker",
4556
- version: "1.12.0",
4664
+ version: "1.13.0",
4557
4665
  author: "Keenmate",
4558
4666
  license: "MIT",
4559
4667
  repository: "git+https://github.com/keenmate/web-daterangepicker.git",
4560
4668
  homepage: "https://github.com/keenmate/web-daterangepicker#readme"
4561
4669
  },
4562
4670
  register: () => {
4563
- typeof customElements < "u" && !customElements.get("web-daterangepicker") && customElements.define("web-daterangepicker", pa);
4671
+ typeof customElements < "u" && !customElements.get("web-daterangepicker") && customElements.define("web-daterangepicker", ga);
4564
4672
  },
4565
- getInstances: () => hr(),
4673
+ getInstances: () => vr(),
4566
4674
  logging: {
4567
- enableLogging: Ge,
4568
- disableLogging: Xe,
4569
- setLogLevel: st,
4570
- setCategoryLevel: Ra,
4571
- getCategories: Aa
4675
+ enableLogging: Qe,
4676
+ disableLogging: Ze,
4677
+ setLogLevel: ct,
4678
+ setCategoryLevel: Ta,
4679
+ getCategories: La
4572
4680
  }
4573
4681
  }, window.components["web-daterangepicker"].register());
4574
4682
  export {
4575
- it as DateRangePicker,
4576
- pa as WebDaterangepickerElement
4683
+ dt as DateRangePicker,
4684
+ ga as WebDaterangepickerElement
4577
4685
  };