react-semaphor 0.1.246 → 0.1.248

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 (39) hide show
  1. package/dist/chunks/{dashboard-controls-Df35Ggku.js → dashboard-controls-CcBYCUyU.js} +1 -1
  2. package/dist/chunks/{dashboard-controls-CM3zRWAB.js → dashboard-controls-ftroIaNx.js} +5 -5
  3. package/dist/chunks/{dashboard-json-Cgd8yP2L.js → dashboard-json-DlMnblcC.js} +1 -1
  4. package/dist/chunks/{dashboard-json-B8oZ6KB5.js → dashboard-json-NeZhQblG.js} +1 -1
  5. package/dist/chunks/{dashboard-summary-settings-dialog-BHsvhkQ1.js → dashboard-summary-settings-dialog-BP2d8qXY.js} +1 -1
  6. package/dist/chunks/{dashboard-summary-settings-dialog-pftsHC1x.js → dashboard-summary-settings-dialog-PIw3yw3g.js} +1 -1
  7. package/dist/chunks/date-formatter-CqXdM6JO.js +1 -0
  8. package/dist/chunks/{date-formatter-BeFtqSQ2.js → date-formatter-vkCj9Ct-.js} +207 -203
  9. package/dist/chunks/edit-dashboard-visual-XRVx1WJw.js +193 -0
  10. package/dist/chunks/{edit-dashboard-visual-Bw34s1x6.js → edit-dashboard-visual-eZZFFLbw.js} +6900 -6601
  11. package/dist/chunks/{editor-action-buttons-B2ezYVT4.js → editor-action-buttons-D2GgF45c.js} +2 -2
  12. package/dist/chunks/{editor-action-buttons-DXsjsv4l.js → editor-action-buttons-tq0tFVfj.js} +1 -1
  13. package/dist/chunks/{index-C9qmu37e.js → index-CFyPug8b.js} +39210 -38628
  14. package/dist/chunks/index-DGpLwb-T.js +1109 -0
  15. package/dist/chunks/{notification-bell-Bws3aQQp.js → notification-bell--dNtQUYL.js} +4 -4
  16. package/dist/chunks/{notification-bell-DttaqoMO.js → notification-bell-CLFSIKbb.js} +1 -1
  17. package/dist/chunks/{resource-management-panel-BMNgcD-1.js → resource-management-panel-C1tJjUe9.js} +1 -1
  18. package/dist/chunks/{resource-management-panel-KeJHHJcg.js → resource-management-panel-DjmiAnYz.js} +2 -2
  19. package/dist/chunks/{use-visual-utils-Buzoaljj.js → use-visual-utils-B6nZIeae.js} +1 -1
  20. package/dist/chunks/{use-visual-utils-BkDR14Dn.js → use-visual-utils-Cdc_8imE.js} +1 -1
  21. package/dist/dashboard/index.cjs +1 -1
  22. package/dist/dashboard/index.js +1 -1
  23. package/dist/format-utils/index.cjs +1 -1
  24. package/dist/format-utils/index.js +2 -2
  25. package/dist/index.cjs +1 -1
  26. package/dist/index.js +5 -5
  27. package/dist/style.css +1 -1
  28. package/dist/surfboard/index.cjs +1 -1
  29. package/dist/surfboard/index.js +2 -2
  30. package/dist/types/dashboard.d.ts +13 -1
  31. package/dist/types/format-utils.d.ts +3 -3
  32. package/dist/types/main.d.ts +13 -1
  33. package/dist/types/shared.d.ts +13 -1
  34. package/dist/types/surfboard.d.ts +13 -1
  35. package/dist/types/types.d.ts +13 -1
  36. package/package.json +4 -3
  37. package/dist/chunks/date-formatter-CZ8p6ngp.js +0 -1
  38. package/dist/chunks/edit-dashboard-visual-DrolVPud.js +0 -188
  39. package/dist/chunks/index-B38ZMz4j.js +0 -1109
@@ -1,4 +1,4 @@
1
- const Ye = {
1
+ const Pe = {
2
2
  lessThanXSeconds: {
3
3
  one: "less than a second",
4
4
  other: "less than {{count}} seconds"
@@ -60,9 +60,9 @@ const Ye = {
60
60
  one: "almost 1 year",
61
61
  other: "almost {{count}} years"
62
62
  }
63
- }, Pe = (t, e, n) => {
63
+ }, Ie = (t, e, n) => {
64
64
  let r;
65
- const a = Ye[t];
65
+ const a = Pe[t];
66
66
  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;
67
67
  };
68
68
  function X(t) {
@@ -71,42 +71,42 @@ function X(t) {
71
71
  return t.formats[n] || t.formats[t.defaultWidth];
72
72
  };
73
73
  }
74
- const Ie = {
74
+ const ke = {
75
75
  full: "EEEE, MMMM do, y",
76
76
  long: "MMMM do, y",
77
77
  medium: "MMM d, y",
78
78
  short: "MM/dd/yyyy"
79
- }, ke = {
79
+ }, Se = {
80
80
  full: "h:mm:ss a zzzz",
81
81
  long: "h:mm:ss a z",
82
82
  medium: "h:mm:ss a",
83
83
  short: "h:mm a"
84
- }, Se = {
84
+ }, We = {
85
85
  full: "{{date}} 'at' {{time}}",
86
86
  long: "{{date}} 'at' {{time}}",
87
87
  medium: "{{date}}, {{time}}",
88
88
  short: "{{date}}, {{time}}"
89
- }, We = {
89
+ }, ve = {
90
90
  date: X({
91
- formats: Ie,
91
+ formats: ke,
92
92
  defaultWidth: "full"
93
93
  }),
94
94
  time: X({
95
- formats: ke,
95
+ formats: Se,
96
96
  defaultWidth: "full"
97
97
  }),
98
98
  dateTime: X({
99
- formats: Se,
99
+ formats: We,
100
100
  defaultWidth: "full"
101
101
  })
102
- }, ve = {
102
+ }, Ce = {
103
103
  lastWeek: "'last' eeee 'at' p",
104
104
  yesterday: "'yesterday at' p",
105
105
  today: "'today at' p",
106
106
  tomorrow: "'tomorrow at' p",
107
107
  nextWeek: "eeee 'at' p",
108
108
  other: "P"
109
- }, Ce = (t, e, n, r) => ve[t];
109
+ }, Ee = (t, e, n, r) => Ce[t];
110
110
  function k(t) {
111
111
  return (e, n) => {
112
112
  const r = n != null && n.context ? String(n.context) : "standalone";
@@ -122,15 +122,15 @@ function k(t) {
122
122
  return a[i];
123
123
  };
124
124
  }
125
- const Fe = {
125
+ const $e = {
126
126
  narrow: ["B", "A"],
127
127
  abbreviated: ["BC", "AD"],
128
128
  wide: ["Before Christ", "Anno Domini"]
129
- }, Ee = {
129
+ }, Fe = {
130
130
  narrow: ["1", "2", "3", "4"],
131
131
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
132
132
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
133
- }, $e = {
133
+ }, He = {
134
134
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
135
135
  abbreviated: [
136
136
  "Jan",
@@ -160,7 +160,7 @@ const Fe = {
160
160
  "November",
161
161
  "December"
162
162
  ]
163
- }, He = {
163
+ }, Le = {
164
164
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
165
165
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
166
166
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
@@ -173,7 +173,7 @@ const Fe = {
173
173
  "Friday",
174
174
  "Saturday"
175
175
  ]
176
- }, Le = {
176
+ }, _e = {
177
177
  narrow: {
178
178
  am: "a",
179
179
  pm: "p",
@@ -204,7 +204,7 @@ const Fe = {
204
204
  evening: "evening",
205
205
  night: "night"
206
206
  }
207
- }, _e = {
207
+ }, Xe = {
208
208
  narrow: {
209
209
  am: "a",
210
210
  pm: "p",
@@ -235,7 +235,7 @@ const Fe = {
235
235
  evening: "in the evening",
236
236
  night: "at night"
237
237
  }
238
- }, Xe = (t, e) => {
238
+ }, Ue = (t, e) => {
239
239
  const n = Number(t), r = n % 100;
240
240
  if (r > 20 || r < 10)
241
241
  switch (r % 10) {
@@ -247,29 +247,29 @@ const Fe = {
247
247
  return n + "rd";
248
248
  }
249
249
  return n + "th";
250
- }, Ue = {
251
- ordinalNumber: Xe,
250
+ }, Ze = {
251
+ ordinalNumber: Ue,
252
252
  era: k({
253
- values: Fe,
253
+ values: $e,
254
254
  defaultWidth: "wide"
255
255
  }),
256
256
  quarter: k({
257
- values: Ee,
257
+ values: Fe,
258
258
  defaultWidth: "wide",
259
259
  argumentCallback: (t) => t - 1
260
260
  }),
261
261
  month: k({
262
- values: $e,
262
+ values: He,
263
263
  defaultWidth: "wide"
264
264
  }),
265
265
  day: k({
266
- values: He,
266
+ values: Le,
267
267
  defaultWidth: "wide"
268
268
  }),
269
269
  dayPeriod: k({
270
- values: Le,
270
+ values: _e,
271
271
  defaultWidth: "wide",
272
- formattingValues: _e,
272
+ formattingValues: Xe,
273
273
  defaultFormattingWidth: "wide"
274
274
  })
275
275
  };
@@ -278,9 +278,9 @@ function S(t) {
278
278
  const r = n.width, a = r && t.matchPatterns[r] || t.matchPatterns[t.defaultMatchWidth], i = e.match(a);
279
279
  if (!i)
280
280
  return null;
281
- const c = i[0], u = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], s = Array.isArray(u) ? Ge(u, (D) => D.test(c)) : (
281
+ const c = i[0], u = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], s = Array.isArray(u) ? Ae(u, (D) => D.test(c)) : (
282
282
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
283
- Ze(u, (D) => D.test(c))
283
+ Ge(u, (D) => D.test(c))
284
284
  );
285
285
  let f;
286
286
  f = t.valueCallback ? t.valueCallback(s) : s, f = n.valueCallback ? (
@@ -291,17 +291,17 @@ function S(t) {
291
291
  return { value: f, rest: d };
292
292
  };
293
293
  }
294
- function Ze(t, e) {
294
+ function Ge(t, e) {
295
295
  for (const n in t)
296
296
  if (Object.prototype.hasOwnProperty.call(t, n) && e(t[n]))
297
297
  return n;
298
298
  }
299
- function Ge(t, e) {
299
+ function Ae(t, e) {
300
300
  for (let n = 0; n < t.length; n++)
301
301
  if (e(t[n]))
302
302
  return n;
303
303
  }
304
- function Ae(t) {
304
+ function qe(t) {
305
305
  return (e, n = {}) => {
306
306
  const r = e.match(t.matchPattern);
307
307
  if (!r) return null;
@@ -313,23 +313,23 @@ function Ae(t) {
313
313
  return { value: c, rest: u };
314
314
  };
315
315
  }
316
- const qe = /^(\d+)(th|st|nd|rd)?/i, Re = /\d+/i, je = {
316
+ const Re = /^(\d+)(th|st|nd|rd)?/i, je = /\d+/i, ze = {
317
317
  narrow: /^(b|a)/i,
318
318
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
319
319
  wide: /^(before christ|before common era|anno domini|common era)/i
320
- }, ze = {
321
- any: [/^b/i, /^(a|c)/i]
322
320
  }, Be = {
321
+ any: [/^b/i, /^(a|c)/i]
322
+ }, Qe = {
323
323
  narrow: /^[1234]/i,
324
324
  abbreviated: /^q[1234]/i,
325
325
  wide: /^[1234](th|st|nd|rd)? quarter/i
326
- }, Qe = {
327
- any: [/1/i, /2/i, /3/i, /4/i]
328
326
  }, Ve = {
327
+ any: [/1/i, /2/i, /3/i, /4/i]
328
+ }, Je = {
329
329
  narrow: /^[jfmasond]/i,
330
330
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
331
331
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
332
- }, Je = {
332
+ }, Ke = {
333
333
  narrow: [
334
334
  /^j/i,
335
335
  /^f/i,
@@ -358,18 +358,18 @@ const qe = /^(\d+)(th|st|nd|rd)?/i, Re = /\d+/i, je = {
358
358
  /^n/i,
359
359
  /^d/i
360
360
  ]
361
- }, Ke = {
361
+ }, pe = {
362
362
  narrow: /^[smtwf]/i,
363
363
  short: /^(su|mo|tu|we|th|fr|sa)/i,
364
364
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
365
365
  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
366
- }, pe = {
366
+ }, et = {
367
367
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
368
368
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
369
- }, et = {
369
+ }, tt = {
370
370
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
371
371
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
372
- }, tt = {
372
+ }, nt = {
373
373
  any: {
374
374
  am: /^a/i,
375
375
  pm: /^p/i,
@@ -380,60 +380,60 @@ const qe = /^(\d+)(th|st|nd|rd)?/i, Re = /\d+/i, je = {
380
380
  evening: /evening/i,
381
381
  night: /night/i
382
382
  }
383
- }, nt = {
384
- ordinalNumber: Ae({
385
- matchPattern: qe,
386
- parsePattern: Re,
383
+ }, rt = {
384
+ ordinalNumber: qe({
385
+ matchPattern: Re,
386
+ parsePattern: je,
387
387
  valueCallback: (t) => parseInt(t, 10)
388
388
  }),
389
389
  era: S({
390
- matchPatterns: je,
390
+ matchPatterns: ze,
391
391
  defaultMatchWidth: "wide",
392
- parsePatterns: ze,
392
+ parsePatterns: Be,
393
393
  defaultParseWidth: "any"
394
394
  }),
395
395
  quarter: S({
396
- matchPatterns: Be,
396
+ matchPatterns: Qe,
397
397
  defaultMatchWidth: "wide",
398
- parsePatterns: Qe,
398
+ parsePatterns: Ve,
399
399
  defaultParseWidth: "any",
400
400
  valueCallback: (t) => t + 1
401
401
  }),
402
402
  month: S({
403
- matchPatterns: Ve,
403
+ matchPatterns: Je,
404
404
  defaultMatchWidth: "wide",
405
- parsePatterns: Je,
405
+ parsePatterns: Ke,
406
406
  defaultParseWidth: "any"
407
407
  }),
408
408
  day: S({
409
- matchPatterns: Ke,
409
+ matchPatterns: pe,
410
410
  defaultMatchWidth: "wide",
411
- parsePatterns: pe,
411
+ parsePatterns: et,
412
412
  defaultParseWidth: "any"
413
413
  }),
414
414
  dayPeriod: S({
415
- matchPatterns: et,
415
+ matchPatterns: tt,
416
416
  defaultMatchWidth: "any",
417
- parsePatterns: tt,
417
+ parsePatterns: nt,
418
418
  defaultParseWidth: "any"
419
419
  })
420
420
  }, ge = {
421
421
  code: "en-US",
422
- formatDistance: Pe,
423
- formatLong: We,
424
- formatRelative: Ce,
425
- localize: Ue,
426
- match: nt,
422
+ formatDistance: Ie,
423
+ formatLong: ve,
424
+ formatRelative: Ee,
425
+ localize: Ze,
426
+ match: rt,
427
427
  options: {
428
428
  weekStartsOn: 0,
429
429
  firstWeekContainsDate: 1
430
430
  }
431
431
  };
432
- let rt = {};
432
+ let at = {};
433
433
  function P() {
434
- return rt;
434
+ return at;
435
435
  }
436
- const we = 6048e5, at = 864e5, On = 6e4, Nn = 36e5, v = 43200, V = 1440;
436
+ const we = 6048e5, it = 864e5, On = 6e4, Nn = 36e5, v = 43200, V = 1440;
437
437
  function l(t) {
438
438
  const e = Object.prototype.toString.call(t);
439
439
  return t instanceof Date || typeof t == "object" && e === "[object Date]" ? new t.constructor(+t) : typeof t == "number" || e === "[object Number]" || typeof t == "string" || e === "[object String]" ? new Date(t) : /* @__PURE__ */ new Date(NaN);
@@ -442,7 +442,7 @@ function J(t) {
442
442
  const e = l(t);
443
443
  return e.setHours(0, 0, 0, 0), e;
444
444
  }
445
- function F(t) {
445
+ function E(t) {
446
446
  const e = l(t), n = new Date(
447
447
  Date.UTC(
448
448
  e.getFullYear(),
@@ -456,43 +456,43 @@ function F(t) {
456
456
  );
457
457
  return n.setUTCFullYear(e.getFullYear()), +t - +n;
458
458
  }
459
- function it(t, e) {
460
- const n = J(t), r = J(e), a = +n - F(n), i = +r - F(r);
461
- return Math.round((a - i) / at);
459
+ function ct(t, e) {
460
+ const n = J(t), r = J(e), a = +n - E(n), i = +r - E(r);
461
+ return Math.round((a - i) / it);
462
462
  }
463
463
  function T(t, e) {
464
464
  return t instanceof Date ? new t.constructor(e) : new Date(e);
465
465
  }
466
- function ct(t) {
466
+ function ut(t) {
467
467
  const e = l(t), n = T(t, 0);
468
468
  return n.setFullYear(e.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
469
469
  }
470
- function ut(t) {
470
+ function st(t) {
471
471
  const e = l(t);
472
- return it(e, ct(e)) + 1;
472
+ return ct(e, ut(e)) + 1;
473
473
  }
474
474
  function W(t, e) {
475
475
  var u, s, f, d;
476
476
  const n = P(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((s = (u = e == null ? void 0 : e.locale) == null ? void 0 : u.options) == null ? void 0 : s.weekStartsOn) ?? n.weekStartsOn ?? ((d = (f = n.locale) == null ? void 0 : f.options) == null ? void 0 : d.weekStartsOn) ?? 0, a = l(t), i = a.getDay(), c = (i < r ? 7 : 0) + i - r;
477
477
  return a.setDate(a.getDate() - c), a.setHours(0, 0, 0, 0), a;
478
478
  }
479
- function E(t) {
479
+ function $(t) {
480
480
  return W(t, { weekStartsOn: 1 });
481
481
  }
482
482
  function De(t) {
483
483
  const e = l(t), n = e.getFullYear(), r = T(t, 0);
484
484
  r.setFullYear(n + 1, 0, 4), r.setHours(0, 0, 0, 0);
485
- const a = E(r), i = T(t, 0);
485
+ const a = $(r), i = T(t, 0);
486
486
  i.setFullYear(n, 0, 4), i.setHours(0, 0, 0, 0);
487
- const c = E(i);
487
+ const c = $(i);
488
488
  return e.getTime() >= a.getTime() ? n + 1 : e.getTime() >= c.getTime() ? n : n - 1;
489
489
  }
490
- function st(t) {
490
+ function ft(t) {
491
491
  const e = De(t), n = T(t, 0);
492
- return n.setFullYear(e, 0, 4), n.setHours(0, 0, 0, 0), E(n);
492
+ return n.setFullYear(e, 0, 4), n.setHours(0, 0, 0, 0), $(n);
493
493
  }
494
- function ft(t) {
495
- const e = l(t), n = +E(e) - +st(e);
494
+ function ot(t) {
495
+ const e = l(t), n = +$(e) - +ft(e);
496
496
  return Math.round(n / we) + 1;
497
497
  }
498
498
  function ye(t, e) {
@@ -504,13 +504,13 @@ function ye(t, e) {
504
504
  const f = W(s, e);
505
505
  return n.getTime() >= u.getTime() ? r + 1 : n.getTime() >= f.getTime() ? r : r - 1;
506
506
  }
507
- function ot(t, e) {
507
+ function lt(t, e) {
508
508
  var u, s, f, d;
509
509
  const n = P(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((s = (u = e == null ? void 0 : e.locale) == null ? void 0 : u.options) == null ? void 0 : s.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((d = (f = n.locale) == null ? void 0 : f.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, a = ye(t, e), i = T(t, 0);
510
510
  return i.setFullYear(a, 0, r), i.setHours(0, 0, 0, 0), W(i, e);
511
511
  }
512
- function lt(t, e) {
513
- const n = l(t), r = +W(n, e) - +ot(n, e);
512
+ function dt(t, e) {
513
+ const n = l(t), r = +W(n, e) - +lt(n, e);
514
514
  return Math.round(r / we) + 1;
515
515
  }
516
516
  function o(t, e) {
@@ -736,12 +736,12 @@ const x = {
736
736
  },
737
737
  // Local week of year
738
738
  w: function(t, e, n, r) {
739
- const a = lt(t, r);
739
+ const a = dt(t, r);
740
740
  return e === "wo" ? n.ordinalNumber(a, { unit: "week" }) : o(a, e.length);
741
741
  },
742
742
  // ISO week of year
743
743
  I: function(t, e, n) {
744
- const r = ft(t);
744
+ const r = ot(t);
745
745
  return e === "Io" ? n.ordinalNumber(r, { unit: "week" }) : o(r, e.length);
746
746
  },
747
747
  // Day of the month
@@ -750,7 +750,7 @@ const x = {
750
750
  },
751
751
  // Day of year
752
752
  D: function(t, e, n) {
753
- const r = ut(t);
753
+ const r = st(t);
754
754
  return e === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : o(r, e.length);
755
755
  },
756
756
  // Day of week
@@ -1101,7 +1101,7 @@ const te = (t, e) => {
1101
1101
  default:
1102
1102
  return e.time({ width: "full" });
1103
1103
  }
1104
- }, dt = (t, e) => {
1104
+ }, mt = (t, e) => {
1105
1105
  const n = t.match(/(P+)(p+)?/) || [], r = n[1], a = n[2];
1106
1106
  if (!a)
1107
1107
  return te(t, e);
@@ -1122,55 +1122,55 @@ const te = (t, e) => {
1122
1122
  break;
1123
1123
  }
1124
1124
  return i.replace("{{date}}", te(r, e)).replace("{{time}}", Me(a, e));
1125
- }, mt = {
1125
+ }, ht = {
1126
1126
  p: Me,
1127
- P: dt
1128
- }, ht = /^D+$/, gt = /^Y+$/, wt = ["D", "DD", "YY", "YYYY"];
1129
- function Dt(t) {
1130
- return ht.test(t);
1131
- }
1127
+ P: mt
1128
+ }, gt = /^D+$/, wt = /^Y+$/, Dt = ["D", "DD", "YY", "YYYY"];
1132
1129
  function yt(t) {
1133
1130
  return gt.test(t);
1134
1131
  }
1135
- function Mt(t, e, n) {
1136
- const r = xt(t, e, n);
1137
- if (console.warn(r), wt.includes(t)) throw new RangeError(r);
1132
+ function Mt(t) {
1133
+ return wt.test(t);
1138
1134
  }
1139
1135
  function xt(t, e, n) {
1136
+ const r = Tt(t, e, n);
1137
+ if (console.warn(r), Dt.includes(t)) throw new RangeError(r);
1138
+ }
1139
+ function Tt(t, e, n) {
1140
1140
  const r = t[0] === "Y" ? "years" : "days of the month";
1141
1141
  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`;
1142
1142
  }
1143
- function Tt(t) {
1143
+ function Ot(t) {
1144
1144
  return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
1145
1145
  }
1146
- function Ot(t) {
1147
- if (!Tt(t) && typeof t != "number")
1146
+ function Nt(t) {
1147
+ if (!Ot(t) && typeof t != "number")
1148
1148
  return !1;
1149
1149
  const e = l(t);
1150
1150
  return !isNaN(Number(e));
1151
1151
  }
1152
- const Nt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, bt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Yt = /^'([^]*?)'?$/, Pt = /''/g, It = /[a-zA-Z]/;
1152
+ const bt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Yt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Pt = /^'([^]*?)'?$/, It = /''/g, kt = /[a-zA-Z]/;
1153
1153
  function xe(t, e, n) {
1154
1154
  var d, D, m, y, M, N, B, Q;
1155
1155
  const r = P(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? ge, i = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((D = (d = n == null ? void 0 : n.locale) == null ? void 0 : d.options) == null ? void 0 : D.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((y = (m = r.locale) == null ? void 0 : m.options) == null ? void 0 : y.firstWeekContainsDate) ?? 1, c = (n == null ? void 0 : n.weekStartsOn) ?? ((N = (M = n == null ? void 0 : n.locale) == null ? void 0 : M.options) == null ? void 0 : N.weekStartsOn) ?? r.weekStartsOn ?? ((Q = (B = r.locale) == null ? void 0 : B.options) == null ? void 0 : Q.weekStartsOn) ?? 0, u = l(t);
1156
- if (!Ot(u))
1156
+ if (!Nt(u))
1157
1157
  throw new RangeError("Invalid time value");
1158
- let s = e.match(bt).map((w) => {
1158
+ let s = e.match(Yt).map((w) => {
1159
1159
  const g = w[0];
1160
1160
  if (g === "p" || g === "P") {
1161
- const _ = mt[g];
1161
+ const _ = ht[g];
1162
1162
  return _(w, a.formatLong);
1163
1163
  }
1164
1164
  return w;
1165
- }).join("").match(Nt).map((w) => {
1165
+ }).join("").match(bt).map((w) => {
1166
1166
  if (w === "''")
1167
1167
  return { isToken: !1, value: "'" };
1168
1168
  const g = w[0];
1169
1169
  if (g === "'")
1170
- return { isToken: !1, value: kt(w) };
1170
+ return { isToken: !1, value: St(w) };
1171
1171
  if (K[g])
1172
1172
  return { isToken: !0, value: w };
1173
- if (g.match(It))
1173
+ if (g.match(kt))
1174
1174
  throw new RangeError(
1175
1175
  "Format string contains an unescaped latin alphabet character `" + g + "`"
1176
1176
  );
@@ -1185,50 +1185,50 @@ function xe(t, e, n) {
1185
1185
  return s.map((w) => {
1186
1186
  if (!w.isToken) return w.value;
1187
1187
  const g = w.value;
1188
- (!(n != null && n.useAdditionalWeekYearTokens) && yt(g) || !(n != null && n.useAdditionalDayOfYearTokens) && Dt(g)) && Mt(g, e, String(t));
1188
+ (!(n != null && n.useAdditionalWeekYearTokens) && Mt(g) || !(n != null && n.useAdditionalDayOfYearTokens) && yt(g)) && xt(g, e, String(t));
1189
1189
  const _ = K[g[0]];
1190
1190
  return _(u, g, a.localize, f);
1191
1191
  }).join("");
1192
1192
  }
1193
- function kt(t) {
1194
- const e = t.match(Yt);
1195
- return e ? e[1].replace(Pt, "'") : t;
1193
+ function St(t) {
1194
+ const e = t.match(Pt);
1195
+ return e ? e[1].replace(It, "'") : t;
1196
1196
  }
1197
1197
  function C(t, e) {
1198
1198
  const n = l(t), r = l(e), a = n.getTime() - r.getTime();
1199
1199
  return a < 0 ? -1 : a > 0 ? 1 : a;
1200
1200
  }
1201
- function St(t) {
1201
+ function Wt(t) {
1202
1202
  return T(t, Date.now());
1203
1203
  }
1204
- function Wt(t, e) {
1204
+ function vt(t, e) {
1205
1205
  const n = l(t), r = l(e), a = n.getFullYear() - r.getFullYear(), i = n.getMonth() - r.getMonth();
1206
1206
  return a * 12 + i;
1207
1207
  }
1208
- function vt(t) {
1208
+ function Ct(t) {
1209
1209
  return (e) => {
1210
1210
  const r = (t ? Math[t] : Math.trunc)(e);
1211
1211
  return r === 0 ? 0 : r;
1212
1212
  };
1213
1213
  }
1214
- function Ct(t, e) {
1214
+ function Et(t, e) {
1215
1215
  return +l(t) - +l(e);
1216
1216
  }
1217
- function Ft(t) {
1217
+ function $t(t) {
1218
1218
  const e = l(t);
1219
1219
  return e.setHours(23, 59, 59, 999), e;
1220
1220
  }
1221
- function Et(t) {
1221
+ function Ft(t) {
1222
1222
  const e = l(t), n = e.getMonth();
1223
1223
  return e.setFullYear(e.getFullYear(), n + 1, 0), e.setHours(23, 59, 59, 999), e;
1224
1224
  }
1225
- function $t(t) {
1225
+ function Ht(t) {
1226
1226
  const e = l(t);
1227
- return +Ft(e) == +Et(e);
1227
+ return +$t(e) == +Ft(e);
1228
1228
  }
1229
- function Ht(t, e) {
1229
+ function Lt(t, e) {
1230
1230
  const n = l(t), r = l(e), a = C(n, r), i = Math.abs(
1231
- Wt(n, r)
1231
+ vt(n, r)
1232
1232
  );
1233
1233
  let c;
1234
1234
  if (i < 1)
@@ -1236,15 +1236,15 @@ function Ht(t, e) {
1236
1236
  else {
1237
1237
  n.getMonth() === 1 && n.getDate() > 27 && n.setDate(30), n.setMonth(n.getMonth() - a * i);
1238
1238
  let u = C(n, r) === -a;
1239
- $t(l(t)) && i === 1 && C(t, r) === 1 && (u = !1), c = a * (i - Number(u));
1239
+ Ht(l(t)) && i === 1 && C(t, r) === 1 && (u = !1), c = a * (i - Number(u));
1240
1240
  }
1241
1241
  return c === 0 ? 0 : c;
1242
1242
  }
1243
- function Lt(t, e, n) {
1244
- const r = Ct(t, e) / 1e3;
1245
- return vt(n == null ? void 0 : n.roundingMethod)(r);
1246
- }
1247
1243
  function _t(t, e, n) {
1244
+ const r = Et(t, e) / 1e3;
1245
+ return Ct(n == null ? void 0 : n.roundingMethod)(r);
1246
+ }
1247
+ function Xt(t, e, n) {
1248
1248
  const r = P(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? ge, i = 2520, c = C(t, e);
1249
1249
  if (isNaN(c))
1250
1250
  throw new RangeError("Invalid time value");
@@ -1254,7 +1254,7 @@ function _t(t, e, n) {
1254
1254
  });
1255
1255
  let s, f;
1256
1256
  c > 0 ? (s = l(e), f = l(t)) : (s = l(t), f = l(e));
1257
- const d = Lt(f, s), D = (F(f) - F(s)) / 1e3, m = Math.round((d - D) / 60);
1257
+ const d = _t(f, s), D = (E(f) - E(s)) / 1e3, m = Math.round((d - D) / 60);
1258
1258
  let y;
1259
1259
  if (m < 2)
1260
1260
  return n != null && n.includeSeconds ? d < 5 ? a.formatDistance("lessThanXSeconds", 5, u) : d < 10 ? a.formatDistance("lessThanXSeconds", 10, u) : d < 20 ? a.formatDistance("lessThanXSeconds", 20, u) : d < 40 ? a.formatDistance("halfAMinute", 0, u) : d < 60 ? a.formatDistance("lessThanXMinutes", 1, u) : a.formatDistance("xMinutes", 1, u) : m === 0 ? a.formatDistance("lessThanXMinutes", 1, u) : a.formatDistance("xMinutes", m, u);
@@ -1274,7 +1274,7 @@ function _t(t, e, n) {
1274
1274
  } else if (m < v * 2)
1275
1275
  return y = Math.round(m / v), a.formatDistance("aboutXMonths", y, u);
1276
1276
  }
1277
- if (y = Ht(f, s), y < 12) {
1277
+ if (y = Lt(f, s), y < 12) {
1278
1278
  const M = Math.round(m / v);
1279
1279
  return a.formatDistance("xMonths", M, u);
1280
1280
  } else {
@@ -1282,37 +1282,37 @@ function _t(t, e, n) {
1282
1282
  return M < 3 ? a.formatDistance("aboutXYears", N, u) : M < 9 ? a.formatDistance("overXYears", N, u) : a.formatDistance("almostXYears", N + 1, u);
1283
1283
  }
1284
1284
  }
1285
- function Xt(t, e) {
1286
- return _t(t, St(t), e);
1285
+ function Ut(t, e) {
1286
+ return Xt(t, Wt(t), e);
1287
1287
  }
1288
- function Ut() {
1288
+ function Zt() {
1289
1289
  return Object.assign({}, P());
1290
1290
  }
1291
1291
  function ne(t, e, n) {
1292
- const r = Ut(), a = At(t, n.timeZone, n.locale ?? r.locale);
1293
- return "formatToParts" in a ? Zt(a, e) : Gt(a, e);
1292
+ const r = Zt(), a = qt(t, n.timeZone, n.locale ?? r.locale);
1293
+ return "formatToParts" in a ? Gt(a, e) : At(a, e);
1294
1294
  }
1295
- function Zt(t, e) {
1295
+ function Gt(t, e) {
1296
1296
  const n = t.formatToParts(e);
1297
1297
  for (let r = n.length - 1; r >= 0; --r)
1298
1298
  if (n[r].type === "timeZoneName")
1299
1299
  return n[r].value;
1300
1300
  }
1301
- function Gt(t, e) {
1301
+ function At(t, e) {
1302
1302
  const n = t.format(e).replace(/\u200E/g, ""), r = / [\w-+ ]+$/.exec(n);
1303
1303
  return r ? r[0].substr(1) : "";
1304
1304
  }
1305
- function At(t, e, n) {
1305
+ function qt(t, e, n) {
1306
1306
  return new Intl.DateTimeFormat(n ? [n.code, "en-US"] : void 0, {
1307
1307
  timeZone: e,
1308
1308
  timeZoneName: t
1309
1309
  });
1310
1310
  }
1311
- function qt(t, e) {
1312
- const n = Qt(e);
1313
- return "formatToParts" in n ? jt(n, t) : zt(n, t);
1311
+ function Rt(t, e) {
1312
+ const n = Vt(e);
1313
+ return "formatToParts" in n ? zt(n, t) : Bt(n, t);
1314
1314
  }
1315
- const Rt = {
1315
+ const jt = {
1316
1316
  year: 0,
1317
1317
  month: 1,
1318
1318
  day: 2,
@@ -1320,11 +1320,11 @@ const Rt = {
1320
1320
  minute: 4,
1321
1321
  second: 5
1322
1322
  };
1323
- function jt(t, e) {
1323
+ function zt(t, e) {
1324
1324
  try {
1325
1325
  const n = t.formatToParts(e), r = [];
1326
1326
  for (let a = 0; a < n.length; a++) {
1327
- const i = Rt[n[a].type];
1327
+ const i = jt[n[a].type];
1328
1328
  i !== void 0 && (r[i] = parseInt(n[a].value, 10));
1329
1329
  }
1330
1330
  return r;
@@ -1334,7 +1334,7 @@ function jt(t, e) {
1334
1334
  throw n;
1335
1335
  }
1336
1336
  }
1337
- function zt(t, e) {
1337
+ function Bt(t, e) {
1338
1338
  const n = t.format(e), r = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);
1339
1339
  return [
1340
1340
  parseInt(r[3], 10),
@@ -1354,9 +1354,9 @@ const U = {}, re = new Intl.DateTimeFormat("en-US", {
1354
1354
  hour: "2-digit",
1355
1355
  minute: "2-digit",
1356
1356
  second: "2-digit"
1357
- }).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), Bt = re === "06/25/2014, 00:00:00" || re === "‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";
1358
- function Qt(t) {
1359
- return U[t] || (U[t] = Bt ? new Intl.DateTimeFormat("en-US", {
1357
+ }).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), Qt = re === "06/25/2014, 00:00:00" || re === "‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";
1358
+ function Vt(t) {
1359
+ return U[t] || (U[t] = Qt ? new Intl.DateTimeFormat("en-US", {
1360
1360
  hourCycle: "h23",
1361
1361
  timeZone: t,
1362
1362
  year: "numeric",
@@ -1380,7 +1380,7 @@ function z(t, e, n, r, a, i, c) {
1380
1380
  const u = /* @__PURE__ */ new Date(0);
1381
1381
  return u.setUTCFullYear(t, e, n), u.setUTCHours(r, a, i, c), u;
1382
1382
  }
1383
- const ae = 36e5, Vt = 6e4, Z = {
1383
+ const ae = 36e5, Jt = 6e4, Z = {
1384
1384
  timezoneZ: /^(Z)$/,
1385
1385
  timezoneHH: /^([+-]\d{2})$/,
1386
1386
  timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
@@ -1397,25 +1397,25 @@ function L(t, e, n) {
1397
1397
  if (r = Z.timezoneHHMM.exec(t), r) {
1398
1398
  a = parseInt(r[2], 10);
1399
1399
  const c = parseInt(r[3], 10);
1400
- return ie(a, c) ? (i = Math.abs(a) * ae + c * Vt, r[1] === "+" ? -i : i) : NaN;
1400
+ return ie(a, c) ? (i = Math.abs(a) * ae + c * Jt, r[1] === "+" ? -i : i) : NaN;
1401
1401
  }
1402
- if (pt(t)) {
1402
+ if (en(t)) {
1403
1403
  e = new Date(e || Date.now());
1404
- const c = n ? e : Jt(e), u = R(c, t);
1405
- return -(n ? u : Kt(e, u, t));
1404
+ const c = n ? e : Kt(e), u = R(c, t);
1405
+ return -(n ? u : pt(e, u, t));
1406
1406
  }
1407
1407
  return NaN;
1408
1408
  }
1409
- function Jt(t) {
1409
+ function Kt(t) {
1410
1410
  return z(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds());
1411
1411
  }
1412
1412
  function R(t, e) {
1413
- const n = qt(t, e), r = z(n[0], n[1] - 1, n[2], n[3] % 24, n[4], n[5], 0).getTime();
1413
+ const n = Rt(t, e), r = z(n[0], n[1] - 1, n[2], n[3] % 24, n[4], n[5], 0).getTime();
1414
1414
  let a = t.getTime();
1415
1415
  const i = a % 1e3;
1416
1416
  return a -= i >= 0 ? i : 1e3 + i, r - a;
1417
1417
  }
1418
- function Kt(t, e, n) {
1418
+ function pt(t, e, n) {
1419
1419
  let a = t.getTime() - e;
1420
1420
  const i = R(new Date(a), n);
1421
1421
  if (e === i)
@@ -1428,7 +1428,7 @@ function ie(t, e) {
1428
1428
  return -23 <= t && t <= 23 && (e == null || 0 <= e && e <= 59);
1429
1429
  }
1430
1430
  const ce = {};
1431
- function pt(t) {
1431
+ function en(t) {
1432
1432
  if (ce[t])
1433
1433
  return !0;
1434
1434
  try {
@@ -1437,7 +1437,7 @@ function pt(t) {
1437
1437
  return !1;
1438
1438
  }
1439
1439
  }
1440
- const en = 60 * 1e3, tn = {
1440
+ const tn = 60 * 1e3, nn = {
1441
1441
  // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
1442
1442
  X: function(t, e, n) {
1443
1443
  const r = G(n.timeZone, t);
@@ -1477,7 +1477,7 @@ const en = 60 * 1e3, tn = {
1477
1477
  case "O":
1478
1478
  case "OO":
1479
1479
  case "OOO":
1480
- return "GMT" + nn(r, ":");
1480
+ return "GMT" + rn(r, ":");
1481
1481
  case "OOOO":
1482
1482
  default:
1483
1483
  return "GMT" + Y(r, ":");
@@ -1497,12 +1497,12 @@ const en = 60 * 1e3, tn = {
1497
1497
  }
1498
1498
  };
1499
1499
  function G(t, e) {
1500
- const n = t ? L(t, e, !0) / en : (e == null ? void 0 : e.getTimezoneOffset()) ?? 0;
1500
+ const n = t ? L(t, e, !0) / tn : (e == null ? void 0 : e.getTimezoneOffset()) ?? 0;
1501
1501
  if (Number.isNaN(n))
1502
1502
  throw new RangeError("Invalid time zone specified: " + t);
1503
1503
  return n;
1504
1504
  }
1505
- function $(t, e) {
1505
+ function F(t, e) {
1506
1506
  const n = t < 0 ? "-" : "";
1507
1507
  let r = Math.abs(t).toString();
1508
1508
  for (; r.length < e; )
@@ -1510,21 +1510,21 @@ function $(t, e) {
1510
1510
  return n + r;
1511
1511
  }
1512
1512
  function Y(t, e = "") {
1513
- const n = t > 0 ? "-" : "+", r = Math.abs(t), a = $(Math.floor(r / 60), 2), i = $(Math.floor(r % 60), 2);
1513
+ const n = t > 0 ? "-" : "+", r = Math.abs(t), a = F(Math.floor(r / 60), 2), i = F(Math.floor(r % 60), 2);
1514
1514
  return n + a + e + i;
1515
1515
  }
1516
1516
  function ue(t, e) {
1517
- return t % 60 === 0 ? (t > 0 ? "-" : "+") + $(Math.abs(t) / 60, 2) : Y(t, e);
1517
+ return t % 60 === 0 ? (t > 0 ? "-" : "+") + F(Math.abs(t) / 60, 2) : Y(t, e);
1518
1518
  }
1519
- function nn(t, e = "") {
1519
+ function rn(t, e = "") {
1520
1520
  const n = t > 0 ? "-" : "+", r = Math.abs(t), a = Math.floor(r / 60), i = r % 60;
1521
- return i === 0 ? n + String(a) : n + String(a) + e + $(i, 2);
1521
+ return i === 0 ? n + String(a) : n + String(a) + e + F(i, 2);
1522
1522
  }
1523
1523
  function se(t) {
1524
1524
  const e = new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()));
1525
1525
  return e.setUTCFullYear(t.getFullYear()), +t - +e;
1526
1526
  }
1527
- const Te = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, A = 36e5, fe = 6e4, rn = 2, h = {
1527
+ const Te = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, A = 36e5, fe = 6e4, an = 2, h = {
1528
1528
  dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
1529
1529
  datePattern: /^([0-9W+-]+)(.*)/,
1530
1530
  // year tokens
@@ -1563,7 +1563,7 @@ function H(t, e = {}) {
1563
1563
  throw new TypeError("1 argument required, but only " + arguments.length + " present");
1564
1564
  if (t === null)
1565
1565
  return /* @__PURE__ */ new Date(NaN);
1566
- const n = e.additionalDigits == null ? rn : Number(e.additionalDigits);
1566
+ const n = e.additionalDigits == null ? an : Number(e.additionalDigits);
1567
1567
  if (n !== 2 && n !== 1 && n !== 0)
1568
1568
  throw new RangeError("additionalDigits must be 0, 1 or 2");
1569
1569
  if (t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]")
@@ -1572,13 +1572,13 @@ function H(t, e = {}) {
1572
1572
  return new Date(t);
1573
1573
  if (Object.prototype.toString.call(t) !== "[object String]")
1574
1574
  return /* @__PURE__ */ new Date(NaN);
1575
- const r = an(t), { year: a, restDateString: i } = cn(r.date, n), c = un(i, a);
1575
+ const r = cn(t), { year: a, restDateString: i } = un(r.date, n), c = sn(i, a);
1576
1576
  if (c === null || isNaN(c.getTime()))
1577
1577
  return /* @__PURE__ */ new Date(NaN);
1578
1578
  if (c) {
1579
1579
  const u = c.getTime();
1580
1580
  let s = 0, f;
1581
- if (r.time && (s = sn(r.time), s === null || isNaN(s)))
1581
+ if (r.time && (s = fn(r.time), s === null || isNaN(s)))
1582
1582
  return /* @__PURE__ */ new Date(NaN);
1583
1583
  if (r.timeZone || e.timeZone) {
1584
1584
  if (f = L(r.timeZone || e.timeZone, new Date(u + s)), isNaN(f))
@@ -1589,7 +1589,7 @@ function H(t, e = {}) {
1589
1589
  } else
1590
1590
  return /* @__PURE__ */ new Date(NaN);
1591
1591
  }
1592
- function an(t) {
1592
+ function cn(t) {
1593
1593
  const e = {};
1594
1594
  let n = h.dateTimePattern.exec(t), r;
1595
1595
  if (n ? (e.date = n[1], r = n[3]) : (n = h.datePattern.exec(t), n ? (e.date = n[1], r = n[2]) : (e.date = null, r = t)), r) {
@@ -1598,7 +1598,7 @@ function an(t) {
1598
1598
  }
1599
1599
  return e;
1600
1600
  }
1601
- function cn(t, e) {
1601
+ function un(t, e) {
1602
1602
  if (t) {
1603
1603
  const n = h.YYY[e], r = h.YYYYY[e];
1604
1604
  let a = h.YYYY.exec(t) || r.exec(t);
@@ -1621,7 +1621,7 @@ function cn(t, e) {
1621
1621
  year: null
1622
1622
  };
1623
1623
  }
1624
- function un(t, e) {
1624
+ function sn(t, e) {
1625
1625
  if (e === null)
1626
1626
  return null;
1627
1627
  let n, r, a;
@@ -1633,7 +1633,7 @@ function un(t, e) {
1633
1633
  if (i = h.DDD.exec(t), i) {
1634
1634
  n = /* @__PURE__ */ new Date(0);
1635
1635
  const c = parseInt(i[1], 10);
1636
- return ln(e, c) ? (n.setUTCFullYear(e, 0, c), n) : /* @__PURE__ */ new Date(NaN);
1636
+ return dn(e, c) ? (n.setUTCFullYear(e, 0, c), n) : /* @__PURE__ */ new Date(NaN);
1637
1637
  }
1638
1638
  if (i = h.MMDD.exec(t), i) {
1639
1639
  n = /* @__PURE__ */ new Date(0), r = parseInt(i[1], 10) - 1;
@@ -1649,7 +1649,7 @@ function un(t, e) {
1649
1649
  }
1650
1650
  return null;
1651
1651
  }
1652
- function sn(t) {
1652
+ function fn(t) {
1653
1653
  let e, n, r = h.HH.exec(t);
1654
1654
  if (r)
1655
1655
  return e = parseFloat(r[1].replace(",", ".")), q(e) ? e % 24 * A : NaN;
@@ -1669,7 +1669,7 @@ function oe(t, e, n) {
1669
1669
  const a = r.getUTCDay() || 7, i = e * 7 + n + 1 - a;
1670
1670
  return r.setUTCDate(r.getUTCDate() + i), r;
1671
1671
  }
1672
- const fn = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], on = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
1672
+ const on = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], ln = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
1673
1673
  function Oe(t) {
1674
1674
  return t % 400 === 0 || t % 4 === 0 && t % 100 !== 0;
1675
1675
  }
@@ -1680,12 +1680,12 @@ function le(t, e, n) {
1680
1680
  if (n < 1)
1681
1681
  return !1;
1682
1682
  const r = Oe(t);
1683
- if (r && n > on[e] || !r && n > fn[e])
1683
+ if (r && n > ln[e] || !r && n > on[e])
1684
1684
  return !1;
1685
1685
  }
1686
1686
  return !0;
1687
1687
  }
1688
- function ln(t, e) {
1688
+ function dn(t, e) {
1689
1689
  if (e < 1)
1690
1690
  return !1;
1691
1691
  const n = Oe(t);
@@ -1697,34 +1697,34 @@ function de(t, e) {
1697
1697
  function q(t, e, n) {
1698
1698
  return !(t < 0 || t >= 25 || e != null && (e < 0 || e >= 60) || n != null && (n < 0 || n >= 60));
1699
1699
  }
1700
- const dn = /([xXOz]+)|''|'(''|[^'])+('|$)/g;
1701
- function mn(t, e, n = {}) {
1700
+ const mn = /([xXOz]+)|''|'(''|[^'])+('|$)/g;
1701
+ function hn(t, e, n = {}) {
1702
1702
  e = String(e);
1703
- const r = e.match(dn);
1703
+ const r = e.match(mn);
1704
1704
  if (r) {
1705
1705
  const a = H(n.originalDate || t, n);
1706
1706
  e = r.reduce(function(i, c) {
1707
1707
  if (c[0] === "'")
1708
1708
  return i;
1709
- const u = i.indexOf(c), s = i[u - 1] === "'", f = i.replace(c, "'" + tn[c[0]](a, c, n) + "'");
1709
+ const u = i.indexOf(c), s = i[u - 1] === "'", f = i.replace(c, "'" + nn[c[0]](a, c, n) + "'");
1710
1710
  return s ? f.substring(0, u - 1) + f.substring(u + 1) : f;
1711
1711
  }, e);
1712
1712
  }
1713
1713
  return xe(t, e, n);
1714
1714
  }
1715
- function hn(t, e, n) {
1715
+ function gn(t, e, n) {
1716
1716
  t = H(t, n);
1717
1717
  const r = L(e, t, !0), a = new Date(t.getTime() - r), i = /* @__PURE__ */ new Date(0);
1718
1718
  return i.setFullYear(a.getUTCFullYear(), a.getUTCMonth(), a.getUTCDate()), i.setHours(a.getUTCHours(), a.getUTCMinutes(), a.getUTCSeconds(), a.getUTCMilliseconds()), i;
1719
1719
  }
1720
- function gn(t, e, n, r) {
1720
+ function wn(t, e, n, r) {
1721
1721
  return r = {
1722
1722
  ...r,
1723
1723
  timeZone: e,
1724
1724
  originalDate: t
1725
- }, mn(hn(t, e, { timeZone: r.timeZone }), n, r);
1725
+ }, hn(gn(t, e, { timeZone: r.timeZone }), n, r);
1726
1726
  }
1727
- function wn(t, e, n) {
1727
+ function Dn(t, e, n) {
1728
1728
  if (typeof t == "string" && !t.match(Te))
1729
1729
  return H(t, { ...n, timeZone: e });
1730
1730
  t = H(t, n);
@@ -1748,7 +1748,7 @@ function j(t, e) {
1748
1748
  return he(t, "en-US");
1749
1749
  }
1750
1750
  }
1751
- function Dn(t) {
1751
+ function yn(t) {
1752
1752
  try {
1753
1753
  return new Intl.NumberFormat(t), !0;
1754
1754
  } catch {
@@ -1756,7 +1756,7 @@ function Dn(t) {
1756
1756
  }
1757
1757
  }
1758
1758
  function I(t) {
1759
- return t && Dn(t) ? t : "en-US";
1759
+ return t && yn(t) ? t : "en-US";
1760
1760
  }
1761
1761
  function Ne(t, e) {
1762
1762
  if (t == null || isNaN(t))
@@ -1784,7 +1784,7 @@ function Ne(t, e) {
1784
1784
  }
1785
1785
  return `${(e == null ? void 0 : e.prefix) ?? ""}${a}${(e == null ? void 0 : e.suffix) ?? ""}`;
1786
1786
  }
1787
- function yn(t, e) {
1787
+ function Mn(t, e) {
1788
1788
  if (t == null || isNaN(t))
1789
1789
  return "";
1790
1790
  const n = I(e == null ? void 0 : e.locale), r = (e == null ? void 0 : e.currency) || "USD", a = t < 0, i = !!(e != null && e.negativeInParentheses && a), c = i ? Math.abs(t) : t;
@@ -1820,7 +1820,7 @@ function yn(t, e) {
1820
1820
  return a ? e != null && e.negativeInParentheses ? `(${d})` : `-${d}` : d;
1821
1821
  }
1822
1822
  }
1823
- function Mn(t, e) {
1823
+ function xn(t, e) {
1824
1824
  if (t == null || isNaN(t))
1825
1825
  return "";
1826
1826
  const n = I(e == null ? void 0 : e.locale), a = (e == null ? void 0 : e.alreadyPercent) ?? (e == null ? void 0 : e.percentValueMode) === "whole" ? t / 100 : t;
@@ -1831,7 +1831,7 @@ function Mn(t, e) {
1831
1831
  useGrouping: (e == null ? void 0 : e.useGrouping) ?? !0
1832
1832
  }).format(a);
1833
1833
  }
1834
- function xn(t, e) {
1834
+ function be(t, e) {
1835
1835
  if (t == null || isNaN(t))
1836
1836
  return "";
1837
1837
  const n = I(e == null ? void 0 : e.locale);
@@ -1860,7 +1860,11 @@ function bn(t, e, n = "en-US") {
1860
1860
  minimumFractionDigits: (e == null ? void 0 : e.minimumFractionDigits) ?? 0,
1861
1861
  maximumFractionDigits: (e == null ? void 0 : e.maximumFractionDigits) ?? 2,
1862
1862
  useGrouping: (e == null ? void 0 : e.useGrouping) ?? !0
1863
- }).format(t) : new Intl.NumberFormat(r, {
1863
+ }).format(t) : a === "scientific" ? be(t, {
1864
+ locale: r,
1865
+ minimumFractionDigits: (e == null ? void 0 : e.minimumFractionDigits) ?? 0,
1866
+ maximumFractionDigits: (e == null ? void 0 : e.maximumFractionDigits) ?? 2
1867
+ }) : new Intl.NumberFormat(r, {
1864
1868
  minimumFractionDigits: (e == null ? void 0 : e.minimumFractionDigits) ?? 0,
1865
1869
  maximumFractionDigits: (e == null ? void 0 : e.maximumFractionDigits) ?? 2,
1866
1870
  useGrouping: (e == null ? void 0 : e.useGrouping) ?? !0
@@ -1881,11 +1885,11 @@ function Yn(t, e, n) {
1881
1885
  };
1882
1886
  switch (e) {
1883
1887
  case "currency":
1884
- return yn(t, r);
1885
- case "percent":
1886
1888
  return Mn(t, r);
1887
- case "scientific":
1889
+ case "percent":
1888
1890
  return xn(t, r);
1891
+ case "scientific":
1892
+ return be(t, r);
1889
1893
  default:
1890
1894
  return Ne(t, r);
1891
1895
  }
@@ -1917,7 +1921,7 @@ function kn(t) {
1917
1921
  return t;
1918
1922
  }
1919
1923
  }
1920
- function be(t, e = "auto") {
1924
+ function Ye(t, e = "auto") {
1921
1925
  if (!t)
1922
1926
  return /* @__PURE__ */ new Date(NaN);
1923
1927
  const n = t.endsWith("Z"), r = /[+-]\d{2}:?\d{2}$/.test(t), a = /\([A-Z]{3,4}\)$/.test(t);
@@ -1929,17 +1933,17 @@ function be(t, e = "auto") {
1929
1933
  return new Date(i);
1930
1934
  }
1931
1935
  return new Date(t);
1932
- } else return e === "UTC" ? n ? new Date(t) : r ? new Date(t) : /* @__PURE__ */ new Date(t + "Z") : n || r || a ? new Date(t) : wn(t, e);
1936
+ } else return e === "UTC" ? n ? new Date(t) : r ? new Date(t) : /* @__PURE__ */ new Date(t + "Z") : n || r || a ? new Date(t) : Dn(t, e);
1933
1937
  }
1934
1938
  const Tn = "MM/dd/yyyy", Sn = (t, e, n, r = "auto") => {
1935
1939
  if (!t)
1936
1940
  return "";
1937
1941
  try {
1938
- const a = be(t, r);
1942
+ const a = Ye(t, r);
1939
1943
  if (isNaN(a.getTime()))
1940
1944
  return t;
1941
1945
  const c = (e && e.trim() ? e : Tn).replace(/LLLL/g, "MMMM").replace(/LLL/g, "MMM");
1942
- return n && n !== "auto" ? gn(a, n, c) : xe(a, c);
1946
+ return n && n !== "auto" ? wn(a, n, c) : xe(a, c);
1943
1947
  } catch (a) {
1944
1948
  return console.error("Date formatting error:", a), t;
1945
1949
  }
@@ -1947,8 +1951,8 @@ const Tn = "MM/dd/yyyy", Sn = (t, e, n, r = "auto") => {
1947
1951
  if (!t)
1948
1952
  return "";
1949
1953
  try {
1950
- const n = be(t, e);
1951
- return isNaN(n.getTime()) ? t : Xt(n, { addSuffix: !0 });
1954
+ const n = Ye(t, e);
1955
+ return isNaN(n.getTime()) ? t : Ut(n, { addSuffix: !0 });
1952
1956
  } catch (n) {
1953
1957
  return console.error("Relative time formatting error:", n), t;
1954
1958
  }
@@ -1957,22 +1961,22 @@ export {
1957
1961
  Wn as a,
1958
1962
  Sn as b,
1959
1963
  Ne as c,
1960
- yn as d,
1961
- Mn as e,
1964
+ Mn as d,
1965
+ xn as e,
1962
1966
  bn as f,
1963
- xn as g,
1967
+ be as g,
1964
1968
  Yn as h,
1965
1969
  In as i,
1966
1970
  kn as j,
1967
- Xt as k,
1971
+ Ut as k,
1968
1972
  xe as l,
1969
1973
  T as m,
1970
1974
  Nn as n,
1971
1975
  On as o,
1972
- be as p,
1973
- gn as q,
1976
+ Ye as p,
1977
+ wn as q,
1974
1978
  Pn as r,
1975
- wn as s,
1979
+ Dn as s,
1976
1980
  l as t,
1977
- hn as u
1981
+ gn as u
1978
1982
  };