react-luminus-components 1.3.30 → 1.3.31

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.
Files changed (29) hide show
  1. package/dist/.vite/manifest.json +60 -60
  2. package/dist/{FromToDatePickerDropdownToggle-C4ntsFqz.cjs → FromToDatePickerDropdownToggle-EhHpHC9A.cjs} +4 -4
  3. package/dist/{FromToDatePickerDropdownToggle-CK3riYKN.js → FromToDatePickerDropdownToggle-a6zb7EV7.js} +19 -16
  4. package/dist/{PrimaryButton-BOdgT4u0.js → PrimaryButton-BbKMePCv.js} +1 -1
  5. package/dist/{PrimaryButton-OffsUx-G.cjs → PrimaryButton-ugYzKlak.cjs} +1 -1
  6. package/dist/{SimpleTooltip-D4KGsTa_.js → SimpleTooltip-Boktzm98.js} +1 -1
  7. package/dist/{SimpleTooltip-D92MXZSs.cjs → SimpleTooltip-ngcscCjg.cjs} +1 -1
  8. package/dist/contexts.cjs.js +1 -1
  9. package/dist/contexts.es.js +4 -4
  10. package/dist/dateUtils-CIDS0n5B.cjs +1 -0
  11. package/dist/{dateUtils-DqftcSRs.js → dateUtils-D5PdELhi.js} +162 -162
  12. package/dist/hooks.cjs.js +1 -1
  13. package/dist/hooks.es.js +5 -5
  14. package/dist/layout.cjs.js +1 -1
  15. package/dist/layout.es.js +3 -3
  16. package/dist/main.cjs.js +1 -1
  17. package/dist/main.es.js +6 -6
  18. package/dist/{searchUtils-DKaMRBRf.cjs → searchUtils-9_EWs2V9.cjs} +1 -1
  19. package/dist/{searchUtils-BHsouXbH.js → searchUtils-CEjMiULh.js} +1 -1
  20. package/dist/{useLocalStorageState-DmtUyPYX.cjs → useLocalStorageState-CT8xepqa.cjs} +1 -1
  21. package/dist/{useLocalStorageState-BY8tnvJS.js → useLocalStorageState-DkeM8Y6R.js} +1 -1
  22. package/dist/{usePermissions-CYURG0V1.cjs → usePermissions-BkVAe1PL.cjs} +1 -1
  23. package/dist/{usePermissions-DOWgyuUi.js → usePermissions-Dh1Sgbd7.js} +1 -1
  24. package/dist/utils/text/textUtils.d.ts +8 -0
  25. package/dist/utils.cjs.js +1 -1
  26. package/dist/utils.d.ts +10 -0
  27. package/dist/utils.es.js +32 -30
  28. package/package.json +1 -1
  29. package/dist/dateUtils-DRVYuJv7.cjs +0 -1
@@ -1,7 +1,7 @@
1
- import { t as h, a as b, b3 as Z, m as U, b as $, d as j, b0 as K } from "./FromToDatePickerDropdownToggle-CK3riYKN.js";
2
- let tt = {};
1
+ import { t as h, a as b, b5 as J, m as U, b as $, d as j, b0 as Z } from "./FromToDatePickerDropdownToggle-a6zb7EV7.js";
2
+ let K = {};
3
3
  function S() {
4
- return tt;
4
+ return K;
5
5
  }
6
6
  function x(t, e) {
7
7
  var c, o, d, m;
@@ -37,28 +37,28 @@ function L(t) {
37
37
  );
38
38
  return n.setUTCFullYear(e.getFullYear()), +t - +n;
39
39
  }
40
- function et(t, e) {
40
+ function tt(t, e) {
41
41
  const n = I(t), r = I(e), a = +n - L(n), i = +r - L(r);
42
- return Math.round((a - i) / Z);
42
+ return Math.round((a - i) / J);
43
43
  }
44
- function nt(t) {
44
+ function et(t) {
45
45
  const e = G(t), n = b(t, 0);
46
46
  return n.setFullYear(e, 0, 4), n.setHours(0, 0, 0, 0), W(n);
47
47
  }
48
- function rt(t) {
48
+ function nt(t) {
49
49
  return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
50
50
  }
51
- function at(t) {
52
- if (!rt(t) && typeof t != "number")
51
+ function rt(t) {
52
+ if (!nt(t) && typeof t != "number")
53
53
  return !1;
54
54
  const e = h(t);
55
55
  return !isNaN(Number(e));
56
56
  }
57
- function it(t) {
57
+ function at(t) {
58
58
  const e = h(t), n = b(t, 0);
59
59
  return n.setFullYear(e.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
60
60
  }
61
- const st = {
61
+ const it = {
62
62
  lessThanXSeconds: {
63
63
  one: "less than a second",
64
64
  other: "less than {{count}} seconds"
@@ -120,9 +120,9 @@ const st = {
120
120
  one: "almost 1 year",
121
121
  other: "almost {{count}} years"
122
122
  }
123
- }, ot = (t, e, n) => {
123
+ }, st = (t, e, n) => {
124
124
  let r;
125
- const a = st[t];
125
+ const a = it[t];
126
126
  return typeof a == "string" ? r = a : e === 1 ? r = a.one : r = a.other.replace("{{count}}", e.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
127
127
  };
128
128
  function p(t) {
@@ -131,42 +131,42 @@ function p(t) {
131
131
  return t.formats[n] || t.formats[t.defaultWidth];
132
132
  };
133
133
  }
134
- const ut = {
134
+ const ot = {
135
135
  full: "EEEE, MMMM do, y",
136
136
  long: "MMMM do, y",
137
137
  medium: "MMM d, y",
138
138
  short: "MM/dd/yyyy"
139
- }, ct = {
139
+ }, ut = {
140
140
  full: "h:mm:ss a zzzz",
141
141
  long: "h:mm:ss a z",
142
142
  medium: "h:mm:ss a",
143
143
  short: "h:mm a"
144
- }, dt = {
144
+ }, ct = {
145
145
  full: "{{date}} 'at' {{time}}",
146
146
  long: "{{date}} 'at' {{time}}",
147
147
  medium: "{{date}}, {{time}}",
148
148
  short: "{{date}}, {{time}}"
149
- }, ft = {
149
+ }, dt = {
150
150
  date: p({
151
- formats: ut,
151
+ formats: ot,
152
152
  defaultWidth: "full"
153
153
  }),
154
154
  time: p({
155
- formats: ct,
155
+ formats: ut,
156
156
  defaultWidth: "full"
157
157
  }),
158
158
  dateTime: p({
159
- formats: dt,
159
+ formats: ct,
160
160
  defaultWidth: "full"
161
161
  })
162
- }, mt = {
162
+ }, ft = {
163
163
  lastWeek: "'last' eeee 'at' p",
164
164
  yesterday: "'yesterday at' p",
165
165
  today: "'today at' p",
166
166
  tomorrow: "'tomorrow at' p",
167
167
  nextWeek: "eeee 'at' p",
168
168
  other: "P"
169
- }, lt = (t, e, n, r) => mt[t];
169
+ }, mt = (t, e, n, r) => ft[t];
170
170
  function T(t) {
171
171
  return (e, n) => {
172
172
  const r = n != null && n.context ? String(n.context) : "standalone";
@@ -182,15 +182,15 @@ function T(t) {
182
182
  return a[i];
183
183
  };
184
184
  }
185
- const ht = {
185
+ const lt = {
186
186
  narrow: ["B", "A"],
187
187
  abbreviated: ["BC", "AD"],
188
188
  wide: ["Before Christ", "Anno Domini"]
189
- }, gt = {
189
+ }, ht = {
190
190
  narrow: ["1", "2", "3", "4"],
191
191
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
192
192
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
193
- }, wt = {
193
+ }, gt = {
194
194
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
195
195
  abbreviated: [
196
196
  "Jan",
@@ -220,7 +220,7 @@ const ht = {
220
220
  "November",
221
221
  "December"
222
222
  ]
223
- }, yt = {
223
+ }, wt = {
224
224
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
225
225
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
226
226
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
@@ -233,7 +233,7 @@ const ht = {
233
233
  "Friday",
234
234
  "Saturday"
235
235
  ]
236
- }, bt = {
236
+ }, yt = {
237
237
  narrow: {
238
238
  am: "a",
239
239
  pm: "p",
@@ -264,7 +264,7 @@ const ht = {
264
264
  evening: "evening",
265
265
  night: "night"
266
266
  }
267
- }, Dt = {
267
+ }, bt = {
268
268
  narrow: {
269
269
  am: "a",
270
270
  pm: "p",
@@ -295,7 +295,7 @@ const ht = {
295
295
  evening: "in the evening",
296
296
  night: "at night"
297
297
  }
298
- }, Mt = (t, e) => {
298
+ }, Dt = (t, e) => {
299
299
  const n = Number(t), r = n % 100;
300
300
  if (r > 20 || r < 10)
301
301
  switch (r % 10) {
@@ -307,29 +307,29 @@ const ht = {
307
307
  return n + "rd";
308
308
  }
309
309
  return n + "th";
310
- }, Ot = {
311
- ordinalNumber: Mt,
310
+ }, Mt = {
311
+ ordinalNumber: Dt,
312
312
  era: T({
313
- values: ht,
313
+ values: lt,
314
314
  defaultWidth: "wide"
315
315
  }),
316
316
  quarter: T({
317
- values: gt,
317
+ values: ht,
318
318
  defaultWidth: "wide",
319
319
  argumentCallback: (t) => t - 1
320
320
  }),
321
321
  month: T({
322
- values: wt,
322
+ values: gt,
323
323
  defaultWidth: "wide"
324
324
  }),
325
325
  day: T({
326
- values: yt,
326
+ values: wt,
327
327
  defaultWidth: "wide"
328
328
  }),
329
329
  dayPeriod: T({
330
- values: bt,
330
+ values: yt,
331
331
  defaultWidth: "wide",
332
- formattingValues: Dt,
332
+ formattingValues: bt,
333
333
  defaultFormattingWidth: "wide"
334
334
  })
335
335
  };
@@ -338,9 +338,9 @@ function P(t) {
338
338
  const r = n.width, a = r && t.matchPatterns[r] || t.matchPatterns[t.defaultMatchWidth], i = e.match(a);
339
339
  if (!i)
340
340
  return null;
341
- const s = i[0], c = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], o = Array.isArray(c) ? Pt(c, (g) => g.test(s)) : (
341
+ const s = i[0], c = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], o = Array.isArray(c) ? Tt(c, (g) => g.test(s)) : (
342
342
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
343
- Tt(c, (g) => g.test(s))
343
+ Ot(c, (g) => g.test(s))
344
344
  );
345
345
  let d;
346
346
  d = t.valueCallback ? t.valueCallback(o) : o, d = n.valueCallback ? (
@@ -351,17 +351,17 @@ function P(t) {
351
351
  return { value: d, rest: m };
352
352
  };
353
353
  }
354
- function Tt(t, e) {
354
+ function Ot(t, e) {
355
355
  for (const n in t)
356
356
  if (Object.prototype.hasOwnProperty.call(t, n) && e(t[n]))
357
357
  return n;
358
358
  }
359
- function Pt(t, e) {
359
+ function Tt(t, e) {
360
360
  for (let n = 0; n < t.length; n++)
361
361
  if (e(t[n]))
362
362
  return n;
363
363
  }
364
- function kt(t) {
364
+ function Pt(t) {
365
365
  return (e, n = {}) => {
366
366
  const r = e.match(t.matchPattern);
367
367
  if (!r)
@@ -375,23 +375,23 @@ function kt(t) {
375
375
  return { value: s, rest: c };
376
376
  };
377
377
  }
378
- const xt = /^(\d+)(th|st|nd|rd)?/i, vt = /\d+/i, Wt = {
378
+ const kt = /^(\d+)(th|st|nd|rd)?/i, xt = /\d+/i, vt = {
379
379
  narrow: /^(b|a)/i,
380
380
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
381
381
  wide: /^(before christ|before common era|anno domini|common era)/i
382
- }, St = {
382
+ }, Wt = {
383
383
  any: [/^b/i, /^(a|c)/i]
384
- }, Yt = {
384
+ }, St = {
385
385
  narrow: /^[1234]/i,
386
386
  abbreviated: /^q[1234]/i,
387
387
  wide: /^[1234](th|st|nd|rd)? quarter/i
388
- }, pt = {
388
+ }, Yt = {
389
389
  any: [/1/i, /2/i, /3/i, /4/i]
390
- }, Nt = {
390
+ }, pt = {
391
391
  narrow: /^[jfmasond]/i,
392
392
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
393
393
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
394
- }, Ft = {
394
+ }, Nt = {
395
395
  narrow: [
396
396
  /^j/i,
397
397
  /^f/i,
@@ -420,18 +420,18 @@ const xt = /^(\d+)(th|st|nd|rd)?/i, vt = /\d+/i, Wt = {
420
420
  /^n/i,
421
421
  /^d/i
422
422
  ]
423
- }, Ct = {
423
+ }, Ft = {
424
424
  narrow: /^[smtwf]/i,
425
425
  short: /^(su|mo|tu|we|th|fr|sa)/i,
426
426
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
427
427
  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
428
- }, Et = {
428
+ }, Ct = {
429
429
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
430
430
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
431
- }, qt = {
431
+ }, Et = {
432
432
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
433
433
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
434
- }, Ht = {
434
+ }, qt = {
435
435
  any: {
436
436
  am: /^a/i,
437
437
  pm: /^p/i,
@@ -442,61 +442,61 @@ const xt = /^(\d+)(th|st|nd|rd)?/i, vt = /\d+/i, Wt = {
442
442
  evening: /evening/i,
443
443
  night: /night/i
444
444
  }
445
- }, It = {
446
- ordinalNumber: kt({
447
- matchPattern: xt,
448
- parsePattern: vt,
445
+ }, Ht = {
446
+ ordinalNumber: Pt({
447
+ matchPattern: kt,
448
+ parsePattern: xt,
449
449
  valueCallback: (t) => parseInt(t, 10)
450
450
  }),
451
451
  era: P({
452
- matchPatterns: Wt,
452
+ matchPatterns: vt,
453
453
  defaultMatchWidth: "wide",
454
- parsePatterns: St,
454
+ parsePatterns: Wt,
455
455
  defaultParseWidth: "any"
456
456
  }),
457
457
  quarter: P({
458
- matchPatterns: Yt,
458
+ matchPatterns: St,
459
459
  defaultMatchWidth: "wide",
460
- parsePatterns: pt,
460
+ parsePatterns: Yt,
461
461
  defaultParseWidth: "any",
462
462
  valueCallback: (t) => t + 1
463
463
  }),
464
464
  month: P({
465
- matchPatterns: Nt,
465
+ matchPatterns: pt,
466
466
  defaultMatchWidth: "wide",
467
- parsePatterns: Ft,
467
+ parsePatterns: Nt,
468
468
  defaultParseWidth: "any"
469
469
  }),
470
470
  day: P({
471
- matchPatterns: Ct,
471
+ matchPatterns: Ft,
472
472
  defaultMatchWidth: "wide",
473
- parsePatterns: Et,
473
+ parsePatterns: Ct,
474
474
  defaultParseWidth: "any"
475
475
  }),
476
476
  dayPeriod: P({
477
- matchPatterns: qt,
477
+ matchPatterns: Et,
478
478
  defaultMatchWidth: "any",
479
- parsePatterns: Ht,
479
+ parsePatterns: qt,
480
480
  defaultParseWidth: "any"
481
481
  })
482
- }, Lt = {
482
+ }, It = {
483
483
  code: "en-US",
484
- formatDistance: ot,
485
- formatLong: ft,
486
- formatRelative: lt,
487
- localize: Ot,
488
- match: It,
484
+ formatDistance: st,
485
+ formatLong: dt,
486
+ formatRelative: mt,
487
+ localize: Mt,
488
+ match: Ht,
489
489
  options: {
490
490
  weekStartsOn: 0,
491
491
  firstWeekContainsDate: 1
492
492
  }
493
493
  };
494
- function Qt(t) {
494
+ function Lt(t) {
495
495
  const e = h(t);
496
- return et(e, it(e)) + 1;
496
+ return tt(e, at(e)) + 1;
497
497
  }
498
- function Rt(t) {
499
- const e = h(t), n = +W(e) - +nt(e);
498
+ function Qt(t) {
499
+ const e = h(t), n = +W(e) - +et(e);
500
500
  return Math.round(n / U) + 1;
501
501
  }
502
502
  function A(t, e) {
@@ -508,13 +508,13 @@ function A(t, e) {
508
508
  const d = x(o, e);
509
509
  return n.getTime() >= c.getTime() ? r + 1 : n.getTime() >= d.getTime() ? r : r - 1;
510
510
  }
511
- function _t(t, e) {
511
+ function Rt(t, e) {
512
512
  var c, o, d, m;
513
513
  const n = S(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((o = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : o.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((m = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, a = A(t, e), i = b(t, 0);
514
514
  return i.setFullYear(a, 0, r), i.setHours(0, 0, 0, 0), x(i, e);
515
515
  }
516
- function Xt(t, e) {
517
- const n = h(t), r = +x(n, e) - +_t(n, e);
516
+ function _t(t, e) {
517
+ const n = h(t), r = +x(n, e) - +Rt(n, e);
518
518
  return Math.round(r / U) + 1;
519
519
  }
520
520
  function u(t, e) {
@@ -742,12 +742,12 @@ const w = {
742
742
  },
743
743
  // Local week of year
744
744
  w: function(t, e, n, r) {
745
- const a = Xt(t, r);
745
+ const a = _t(t, r);
746
746
  return e === "wo" ? n.ordinalNumber(a, { unit: "week" }) : u(a, e.length);
747
747
  },
748
748
  // ISO week of year
749
749
  I: function(t, e, n) {
750
- const r = Rt(t);
750
+ const r = Qt(t);
751
751
  return e === "Io" ? n.ordinalNumber(r, { unit: "week" }) : u(r, e.length);
752
752
  },
753
753
  // Day of the month
@@ -756,7 +756,7 @@ const w = {
756
756
  },
757
757
  // Day of year
758
758
  D: function(t, e, n) {
759
- const r = Qt(t);
759
+ const r = Lt(t);
760
760
  return e === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : u(r, e.length);
761
761
  },
762
762
  // Day of week
@@ -1107,7 +1107,7 @@ const X = (t, e) => {
1107
1107
  default:
1108
1108
  return e.time({ width: "full" });
1109
1109
  }
1110
- }, Ut = (t, e) => {
1110
+ }, Xt = (t, e) => {
1111
1111
  const n = t.match(/(P+)(p+)?/) || [], r = n[1], a = n[2];
1112
1112
  if (!a)
1113
1113
  return X(t, e);
@@ -1128,47 +1128,47 @@ const X = (t, e) => {
1128
1128
  break;
1129
1129
  }
1130
1130
  return i.replace("{{date}}", X(r, e)).replace("{{time}}", B(a, e));
1131
- }, $t = {
1131
+ }, Ut = {
1132
1132
  p: B,
1133
- P: Ut
1134
- }, jt = /^D+$/, Gt = /^Y+$/, At = ["D", "DD", "YY", "YYYY"];
1133
+ P: Xt
1134
+ }, $t = /^D+$/, jt = /^Y+$/, Gt = ["D", "DD", "YY", "YYYY"];
1135
+ function At(t) {
1136
+ return $t.test(t);
1137
+ }
1135
1138
  function Bt(t) {
1136
1139
  return jt.test(t);
1137
1140
  }
1138
- function Vt(t) {
1139
- return Gt.test(t);
1140
- }
1141
- function zt(t, e, n) {
1142
- const r = Jt(t, e, n);
1143
- if (console.warn(r), At.includes(t))
1141
+ function Vt(t, e, n) {
1142
+ const r = zt(t, e, n);
1143
+ if (console.warn(r), Gt.includes(t))
1144
1144
  throw new RangeError(r);
1145
1145
  }
1146
- function Jt(t, e, n) {
1146
+ function zt(t, e, n) {
1147
1147
  const r = t[0] === "Y" ? "years" : "days of the month";
1148
1148
  return `Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
1149
1149
  }
1150
- const Zt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Kt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, te = /^'([^]*?)'?$/, ee = /''/g, ne = /[a-zA-Z]/;
1150
+ const Jt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Zt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Kt = /^'([^]*?)'?$/, te = /''/g, ee = /[a-zA-Z]/;
1151
1151
  function V(t, e, n) {
1152
1152
  var m, g, M, O, C, E, q, H;
1153
- const r = S(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? Lt, i = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((g = (m = n == null ? void 0 : n.locale) == null ? void 0 : m.options) == null ? void 0 : g.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((O = (M = r.locale) == null ? void 0 : M.options) == null ? void 0 : O.firstWeekContainsDate) ?? 1, s = (n == null ? void 0 : n.weekStartsOn) ?? ((E = (C = n == null ? void 0 : n.locale) == null ? void 0 : C.options) == null ? void 0 : E.weekStartsOn) ?? r.weekStartsOn ?? ((H = (q = r.locale) == null ? void 0 : q.options) == null ? void 0 : H.weekStartsOn) ?? 0, c = h(t);
1154
- if (!at(c))
1153
+ const r = S(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? It, i = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((g = (m = n == null ? void 0 : n.locale) == null ? void 0 : m.options) == null ? void 0 : g.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((O = (M = r.locale) == null ? void 0 : M.options) == null ? void 0 : O.firstWeekContainsDate) ?? 1, s = (n == null ? void 0 : n.weekStartsOn) ?? ((E = (C = n == null ? void 0 : n.locale) == null ? void 0 : C.options) == null ? void 0 : E.weekStartsOn) ?? r.weekStartsOn ?? ((H = (q = r.locale) == null ? void 0 : q.options) == null ? void 0 : H.weekStartsOn) ?? 0, c = h(t);
1154
+ if (!rt(c))
1155
1155
  throw new RangeError("Invalid time value");
1156
- let o = e.match(Kt).map((l) => {
1156
+ let o = e.match(Zt).map((l) => {
1157
1157
  const f = l[0];
1158
1158
  if (f === "p" || f === "P") {
1159
- const Y = $t[f];
1159
+ const Y = Ut[f];
1160
1160
  return Y(l, a.formatLong);
1161
1161
  }
1162
1162
  return l;
1163
- }).join("").match(Zt).map((l) => {
1163
+ }).join("").match(Jt).map((l) => {
1164
1164
  if (l === "''")
1165
1165
  return { isToken: !1, value: "'" };
1166
1166
  const f = l[0];
1167
1167
  if (f === "'")
1168
- return { isToken: !1, value: re(l) };
1168
+ return { isToken: !1, value: ne(l) };
1169
1169
  if (Q[f])
1170
1170
  return { isToken: !0, value: l };
1171
- if (f.match(ne))
1171
+ if (f.match(ee))
1172
1172
  throw new RangeError(
1173
1173
  "Format string contains an unescaped latin alphabet character `" + f + "`"
1174
1174
  );
@@ -1184,30 +1184,30 @@ function V(t, e, n) {
1184
1184
  if (!l.isToken)
1185
1185
  return l.value;
1186
1186
  const f = l.value;
1187
- (!(n != null && n.useAdditionalWeekYearTokens) && Vt(f) || !(n != null && n.useAdditionalDayOfYearTokens) && Bt(f)) && zt(f, e, String(t));
1187
+ (!(n != null && n.useAdditionalWeekYearTokens) && Bt(f) || !(n != null && n.useAdditionalDayOfYearTokens) && At(f)) && Vt(f, e, String(t));
1188
1188
  const Y = Q[f[0]];
1189
1189
  return Y(c, f, a.localize, d);
1190
1190
  }).join("");
1191
1191
  }
1192
- function re(t) {
1193
- const e = t.match(te);
1194
- return e ? e[1].replace(ee, "'") : t;
1192
+ function ne(t) {
1193
+ const e = t.match(Kt);
1194
+ return e ? e[1].replace(te, "'") : t;
1195
1195
  }
1196
1196
  function F(t, e) {
1197
- const r = oe(t);
1197
+ const r = se(t);
1198
1198
  let a;
1199
1199
  if (r.date) {
1200
- const o = ue(r.date, 2);
1201
- a = ce(o.restDateString, o.year);
1200
+ const o = oe(r.date, 2);
1201
+ a = ue(o.restDateString, o.year);
1202
1202
  }
1203
1203
  if (!a || isNaN(a.getTime()))
1204
1204
  return /* @__PURE__ */ new Date(NaN);
1205
1205
  const i = a.getTime();
1206
1206
  let s = 0, c;
1207
- if (r.time && (s = de(r.time), isNaN(s)))
1207
+ if (r.time && (s = ce(r.time), isNaN(s)))
1208
1208
  return /* @__PURE__ */ new Date(NaN);
1209
1209
  if (r.timezone) {
1210
- if (c = fe(r.timezone), isNaN(c))
1210
+ if (c = de(r.timezone), isNaN(c))
1211
1211
  return /* @__PURE__ */ new Date(NaN);
1212
1212
  } else {
1213
1213
  const o = new Date(i + s), d = /* @__PURE__ */ new Date(0);
@@ -1228,8 +1228,8 @@ const v = {
1228
1228
  dateTimeDelimiter: /[T ]/,
1229
1229
  timeZoneDelimiter: /[Z ]/i,
1230
1230
  timezone: /([Z+-].*)$/
1231
- }, ae = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, ie = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, se = /^([+-])(\d{2})(?::?(\d{2}))?$/;
1232
- function oe(t) {
1231
+ }, re = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, ae = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, ie = /^([+-])(\d{2})(?::?(\d{2}))?$/;
1232
+ function se(t) {
1233
1233
  const e = {}, n = t.split(v.dateTimeDelimiter);
1234
1234
  let r;
1235
1235
  if (n.length > 2)
@@ -1243,7 +1243,7 @@ function oe(t) {
1243
1243
  }
1244
1244
  return e;
1245
1245
  }
1246
- function ue(t, e) {
1246
+ function oe(t, e) {
1247
1247
  const n = new RegExp(
1248
1248
  "^(?:(\\d{4}|[+-]\\d{" + (4 + e) + "})|(\\d{2}|[+-]\\d{" + (2 + e) + "})$)"
1249
1249
  ), r = t.match(n);
@@ -1255,119 +1255,119 @@ function ue(t, e) {
1255
1255
  restDateString: t.slice((r[1] || r[2]).length)
1256
1256
  };
1257
1257
  }
1258
- function ce(t, e) {
1258
+ function ue(t, e) {
1259
1259
  if (e === null)
1260
1260
  return /* @__PURE__ */ new Date(NaN);
1261
- const n = t.match(ae);
1261
+ const n = t.match(re);
1262
1262
  if (!n)
1263
1263
  return /* @__PURE__ */ new Date(NaN);
1264
1264
  const r = !!n[4], a = k(n[1]), i = k(n[2]) - 1, s = k(n[3]), c = k(n[4]), o = k(n[5]) - 1;
1265
1265
  if (r)
1266
- return we(e, c, o) ? me(e, c, o) : /* @__PURE__ */ new Date(NaN);
1266
+ return ge(e, c, o) ? fe(e, c, o) : /* @__PURE__ */ new Date(NaN);
1267
1267
  {
1268
1268
  const d = /* @__PURE__ */ new Date(0);
1269
- return !he(e, i, s) || !ge(e, a) ? /* @__PURE__ */ new Date(NaN) : (d.setUTCFullYear(e, i, Math.max(a, s)), d);
1269
+ return !le(e, i, s) || !he(e, a) ? /* @__PURE__ */ new Date(NaN) : (d.setUTCFullYear(e, i, Math.max(a, s)), d);
1270
1270
  }
1271
1271
  }
1272
1272
  function k(t) {
1273
1273
  return t ? parseInt(t) : 1;
1274
1274
  }
1275
- function de(t) {
1276
- const e = t.match(ie);
1275
+ function ce(t) {
1276
+ const e = t.match(ae);
1277
1277
  if (!e)
1278
1278
  return NaN;
1279
1279
  const n = N(e[1]), r = N(e[2]), a = N(e[3]);
1280
- return ye(n, r, a) ? n * $ + r * j + a * 1e3 : NaN;
1280
+ return we(n, r, a) ? n * $ + r * j + a * 1e3 : NaN;
1281
1281
  }
1282
1282
  function N(t) {
1283
1283
  return t && parseFloat(t.replace(",", ".")) || 0;
1284
1284
  }
1285
- function fe(t) {
1285
+ function de(t) {
1286
1286
  if (t === "Z")
1287
1287
  return 0;
1288
- const e = t.match(se);
1288
+ const e = t.match(ie);
1289
1289
  if (!e)
1290
1290
  return 0;
1291
1291
  const n = e[1] === "+" ? -1 : 1, r = parseInt(e[2]), a = e[3] && parseInt(e[3]) || 0;
1292
- return be(r, a) ? n * (r * $ + a * j) : NaN;
1292
+ return ye(r, a) ? n * (r * $ + a * j) : NaN;
1293
1293
  }
1294
- function me(t, e, n) {
1294
+ function fe(t, e, n) {
1295
1295
  const r = /* @__PURE__ */ new Date(0);
1296
1296
  r.setUTCFullYear(t, 0, 4);
1297
1297
  const a = r.getUTCDay() || 7, i = (e - 1) * 7 + n + 1 - a;
1298
1298
  return r.setUTCDate(r.getUTCDate() + i), r;
1299
1299
  }
1300
- const le = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
1300
+ const me = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
1301
1301
  function z(t) {
1302
1302
  return t % 400 === 0 || t % 4 === 0 && t % 100 !== 0;
1303
1303
  }
1304
- function he(t, e, n) {
1305
- return e >= 0 && e <= 11 && n >= 1 && n <= (le[e] || (z(t) ? 29 : 28));
1304
+ function le(t, e, n) {
1305
+ return e >= 0 && e <= 11 && n >= 1 && n <= (me[e] || (z(t) ? 29 : 28));
1306
1306
  }
1307
- function ge(t, e) {
1307
+ function he(t, e) {
1308
1308
  return e >= 1 && e <= (z(t) ? 366 : 365);
1309
1309
  }
1310
- function we(t, e, n) {
1310
+ function ge(t, e, n) {
1311
1311
  return e >= 1 && e <= 53 && n >= 0 && n <= 6;
1312
1312
  }
1313
- function ye(t, e, n) {
1313
+ function we(t, e, n) {
1314
1314
  return t === 24 ? e === 0 && n === 0 : n >= 0 && n < 60 && e >= 0 && e < 60 && t >= 0 && t < 25;
1315
1315
  }
1316
- function be(t, e) {
1316
+ function ye(t, e) {
1317
1317
  return e >= 0 && e <= 59;
1318
1318
  }
1319
- function Oe(t) {
1319
+ function Te(t) {
1320
1320
  return t == null ? "" : V(F(t), "dd.MM.yyyy");
1321
1321
  }
1322
- function De(t) {
1322
+ function be(t) {
1323
1323
  return (t == null ? void 0 : t.toString().split("T")[0]) ?? "";
1324
1324
  }
1325
- function Te(t) {
1325
+ function Pe(t) {
1326
1326
  return t == null ? "" : V(F(t), "dd.MM.yyyy HH:mm");
1327
1327
  }
1328
- function Pe(t) {
1328
+ function ke(t) {
1329
1329
  return t && t.charAt(0).toUpperCase() + t.slice(1);
1330
1330
  }
1331
- const ke = (t, e) => K(" ", t ? `${t},` : void 0, e), xe = (t, e) => `${e}${t != null ? ` (${t})` : ""}`, ve = (t, e) => `[${t ?? ""}] ${e ?? ""}`, We = (t) => {
1331
+ const xe = (t, e) => Z(" ", t ? `${t},` : void 0, e), ve = (t, e) => `${e}${t != null ? ` (${t})` : ""}`, We = (t, e) => `[${t ?? ""}] ${e ?? ""}`, Se = (t) => {
1332
1332
  const e = F(t);
1333
1333
  return !Number.isNaN(e.getTime());
1334
1334
  };
1335
- function Se() {
1335
+ function Ye() {
1336
1336
  const t = /* @__PURE__ */ new Date(), e = new Date(t);
1337
1337
  return e.setHours(24, 0, 0, 0), e.getTime() - t.getTime();
1338
1338
  }
1339
- function Ye(t) {
1339
+ function pe(t) {
1340
1340
  return t instanceof Date && !Number.isNaN(t.getTime());
1341
1341
  }
1342
- function pe(t, e) {
1342
+ function Ne(t, e) {
1343
1343
  const n = new Date(t), r = new Date(e);
1344
1344
  return n.setHours(0, 0, 0, 0), r.setHours(0, 0, 0, 0), n.getTime() - r.getTime();
1345
1345
  }
1346
- function Ne(t, e) {
1346
+ function Fe(t, e) {
1347
1347
  const n = new Date(t), r = new Date(e);
1348
1348
  return n.getTime() - r.getTime();
1349
1349
  }
1350
- function Fe(t = Date.now(), e = Date.now()) {
1350
+ function Ce(t = Date.now(), e = Date.now()) {
1351
1351
  const n = new Date(t), r = new Date(e);
1352
1352
  n.setHours(10, 0, 0, 0), r.setHours(0, 0, 0, 0);
1353
1353
  const a = n.getTime() - r.getTime();
1354
1354
  return Math.floor(a / (1e3 * 3600 * 24));
1355
1355
  }
1356
- function Ce(t = /* @__PURE__ */ new Date()) {
1356
+ function De(t = /* @__PURE__ */ new Date()) {
1357
1357
  const e = new Date(t);
1358
1358
  return e.setDate(1), e;
1359
1359
  }
1360
- function J(t = /* @__PURE__ */ new Date()) {
1360
+ function Me(t = /* @__PURE__ */ new Date()) {
1361
1361
  const e = new Date(t);
1362
1362
  return e.setMonth(e.getMonth() + 1), e.setDate(0), e;
1363
1363
  }
1364
1364
  function Ee(t) {
1365
1365
  const e = /* @__PURE__ */ new Date();
1366
- return e.setMonth(e.getMonth() + t), J(e);
1366
+ return e.setMonth(e.getMonth() + t), De(e);
1367
1367
  }
1368
1368
  function qe(t) {
1369
1369
  const e = /* @__PURE__ */ new Date();
1370
- return e.setMonth(e.getMonth() + t), J(e);
1370
+ return e.setMonth(e.getMonth() + t), Me(e);
1371
1371
  }
1372
1372
  function He(t) {
1373
1373
  const e = t ?? (/* @__PURE__ */ new Date()).getFullYear(), n = new Date(e, 0, 1);
@@ -1378,30 +1378,30 @@ function Ie(t) {
1378
1378
  return n.setMinutes(n.getMinutes() - n.getTimezoneOffset()), n;
1379
1379
  }
1380
1380
  function Le(t) {
1381
- return De(t.toISOString());
1381
+ return be(t.toISOString());
1382
1382
  }
1383
1383
  export {
1384
- Ce as a,
1384
+ De as a,
1385
1385
  He as b,
1386
- Oe as c,
1387
- et as d,
1388
- Te as e,
1386
+ Te as c,
1387
+ tt as d,
1388
+ Pe as e,
1389
1389
  V as f,
1390
1390
  L as g,
1391
- Pe as h,
1392
- We as i,
1393
- ke as j,
1394
- xe as k,
1395
- ve as l,
1396
- Se as m,
1397
- Ye as n,
1398
- pe as o,
1391
+ ke as h,
1392
+ Se as i,
1393
+ xe as j,
1394
+ ve as k,
1395
+ We as l,
1396
+ Ye as m,
1397
+ pe as n,
1398
+ Ne as o,
1399
1399
  F as p,
1400
- Ne as q,
1401
- Fe as r,
1400
+ Fe as q,
1401
+ Ce as r,
1402
1402
  x as s,
1403
- De as t,
1404
- J as u,
1403
+ be as t,
1404
+ Me as u,
1405
1405
  Ee as v,
1406
1406
  qe as w,
1407
1407
  Ie as x,